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/1458.3ca950e3.async.js

1383 lines
1.9 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

!(function(){var ac=Object.defineProperty,lc=Object.defineProperties;var uc=Object.getOwnPropertyDescriptors;var ca=Object.getOwnPropertySymbols;var Kl=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable;var Yl=(bt,pt,Ce)=>pt in bt?ac(bt,pt,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):bt[pt]=Ce,oo=(bt,pt)=>{for(var Ce in pt||(pt={}))Kl.call(pt,Ce)&&Yl(bt,Ce,pt[Ce]);if(ca)for(var Ce of ca(pt))Ql.call(pt,Ce)&&Yl(bt,Ce,pt[Ce]);return bt},Ba=(bt,pt)=>lc(bt,uc(pt));var Jl=(bt,pt)=>{var Ce={};for(var ve in bt)Kl.call(bt,ve)&&pt.indexOf(ve)<0&&(Ce[ve]=bt[ve]);if(bt!=null&&ca)for(var ve of ca(bt))pt.indexOf(ve)<0&&Ql.call(bt,ve)&&(Ce[ve]=bt[ve]);return Ce};(self.webpackChunk=self.webpackChunk||[]).push([[1458],{38470:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return at}});var ve=Ce(33885),Ue=Ce(54476),a=Ce(76190),he=Ce(42978),de=Ce(75931),te=Ce(59301),oe=Ce(43403),ne=Ce(65030),ee=Ce(92310),se=Ce.n(ee),z=Ce(34280),x=Ce(18929);function b($e){return $e!==null&&(0,a.Z)($e)==="object"}function E($e,Je,Ye){if($e===!1||Je===!1&&(!b($e)||!$e.closeIcon))return null;var Qe=typeof Je!="boolean"?Je:void 0;if(b($e)){var st;return(0,ve.Z)((0,ve.Z)({},$e),{},{closeIcon:(st=$e.closeIcon)!==null&&st!==void 0?st:Qe})}return Ye||$e||Je?{closeIcon:Qe}:"empty"}function re($e,Je,Ye,Qe){return te.useMemo(function(){var st=E($e,Je,!1),ot=E(Ye,Qe,!0);return st!=="empty"?st:ot},[Ye,Qe,$e,Je])}var ae=Ce(6089);function le($e){var Je=window.innerWidth||document.documentElement.clientWidth,Ye=window.innerHeight||document.documentElement.clientHeight,Qe=$e.getBoundingClientRect(),st=Qe.top,ot=Qe.right,mt=Qe.bottom,ft=Qe.left;return st>=0&&ft>=0&&ot<=Je&&mt<=Ye}function fe($e,Je,Ye){var Qe;return(Qe=Ye!=null?Ye:Je)!==null&&Qe!==void 0?Qe:$e===null?"center":"bottom"}function ce($e){return typeof $e=="number"&&!Number.isNaN($e)}function ue($e,Je,Ye,Qe){var st=(0,te.useState)(void 0),ot=(0,he.Z)(st,2),mt=ot[0],ft=ot[1];(0,z.Z)(function(){var dt=typeof $e=="function"?$e():$e;ft(dt||null)});var qe=(0,te.useState)(null),Be=(0,he.Z)(qe,2),lt=Be[0],Ne=Be[1],rt=(0,ae.Z)(function(){if(mt){!le(mt)&&Je&&mt.scrollIntoView(Qe);var dt=mt.getBoundingClientRect(),Ve=dt.left,He=dt.top,Ze=dt.width,et=dt.height,Ie={left:Ve,top:He,width:Ze,height:et,radius:0};Ne(function(je){return JSON.stringify(je)!==JSON.stringify(Ie)?Ie:je})}else Ne(null)}),gt=function(Ve){var He;return(He=Array.isArray(Ye==null?void 0:Ye.offset)?Ye==null?void 0:Ye.offset[Ve]:Ye==null?void 0:Ye.offset)!==null&&He!==void 0?He:6};(0,z.Z)(function(){return rt(),window.addEventListener("resize",rt),function(){window.removeEventListener("resize",rt)}},[mt,Je,rt]);var yt=(0,te.useMemo)(function(){if(!lt)return lt;var dt=gt(0),Ve=gt(1),He=ce(Ye==null?void 0:Ye.radius)?Ye==null?void 0:Ye.radius:2;return{left:lt.left-dt,top:lt.top-Ve,width:lt.width+dt*2,height:lt.height+Ve*2,radius:He}},[lt,Ye]);return[yt,mt]}var ye=Ce(80402),Se={fill:"transparent",pointerEvents:"auto"},we=function(Je){var Ye=Je.prefixCls,Qe=Je.rootClassName,st=Je.pos,ot=Je.showMask,mt=Je.style,ft=mt===void 0?{}:mt,qe=Je.fill,Be=qe===void 0?"rgba(0,0,0,0.5)":qe,lt=Je.open,Ne=Je.animated,rt=Je.zIndex,gt=Je.disabledInteraction,yt=(0,ye.Z)(),dt="".concat(Ye,"-mask-").concat(yt),Ve=(0,a.Z)(Ne)==="object"?Ne==null?void 0:Ne.placeholder:Ne,He=typeof navigator!="undefined"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ze=He?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return te.createElement(oe.Z,{open:lt,autoLock:!0},te.createElement("div",{className:se()("".concat(Ye,"-mask"),Qe),style:(0,ve.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:rt,pointerEvents:st&&!gt?"none":"auto"},ft)},ot?te.createElement("svg",{style:{width:"100%",height:"100%"}},te.createElement("defs",null,te.createElement("mask",{id:dt},te.createElement("rect",(0,Ue.Z)({x:"0",y:"0"},Ze,{fill:"white"})),st&&te.createElement("rect",{x:st.left,y:st.top,rx:st.radius,width:st.width,height:st.height,fill:"black",className:Ve?"".concat(Ye,"-placeholder-animated"):""}))),te.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:Be,mask:"url(#".concat(dt,")")}),st&&te.createElement(te.Fragment,null,te.createElement("rect",(0,Ue.Z)({},Se,{x:"0",y:"0",width:"100%",height:st.top})),te.createElement("rect",(0,Ue.Z)({},Se,{x:"0",y:"0",width:st.left,height:"100%"})),te.createElement("rect",(0,Ue.Z)({},Se,{x:"0",y:st.top+st.height,width:"100%",height:"calc(100vh - ".concat(st.top+st.height,"px)")})),te.createElement("rect",(0,Ue.Z)({},Se,{x:st.left+st.width,y:"0",width:"calc(100vw - ".concat(st.left+st.width,"px)"),height:"100%"})))):null))},xe=we,ge={adjustX:1,adjustY:1},_e=[0,0],be={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Ae(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Je={};return Object.keys(be).forEach(function(Ye){Je[Ye]=(0,ve.Z)((0,ve.Z)({},be[Ye]),{},{autoArrow:$e,targetOffset:_e})}),Je}var Te=Ae(),Le=Ce(94480),ke=Ce(26112);function Pe($e){var Je,Ye=$e.prefixCls,Qe=$e.current,st=$e.total,ot=$e.title,mt=$e.description,ft=$e.onClose,qe=$e.onPrev,Be=$e.onNext,lt=$e.onFinish,Ne=$e.className,rt=$e.closable,gt=(0,ke.Z)(rt||{},!0),yt=(Je=rt==null?void 0:rt.closeIcon)!==null&&Je!==void 0?Je:te.createElement("span",{className:"".concat(Ye,"-close-x")},"\xD7"),dt=!!rt;return te.createElement("div",{className:se()("".concat(Ye,"-content"),Ne)},te.createElement("div",{className:"".concat(Ye,"-inner")},dt&&te.createElement("button",(0,Ue.Z)({type:"button",onClick:ft,"aria-label":"Close"},gt,{className:"".concat(Ye,"-close")}),yt),te.createElement("div",{className:"".concat(Ye,"-header")},te.createElement("div",{className:"".concat(Ye,"-title")},ot)),te.createElement("div",{className:"".concat(Ye,"-description")},mt),te.createElement("div",{className:"".concat(Ye,"-footer")},te.createElement("div",{className:"".concat(Ye,"-sliders")},st>1?(0,Le.Z)(Array.from({length:st}).keys()).map(function(Ve,He){return te.createElement("span",{key:Ve,className:He===Qe?"active":""})}):null),te.createElement("div",{className:"".concat(Ye,"-buttons")},Qe!==0?te.createElement("button",{className:"".concat(Ye,"-prev-btn"),onClick:qe},"Prev"):null,Qe===st-1?te.createElement("button",{className:"".concat(Ye,"-finish-btn"),onClick:lt},"Finish"):te.createElement("button",{className:"".concat(Ye,"-next-btn"),onClick:Be},"Next")))))}var Oe=function(Je){var Ye=Je.current,Qe=Je.renderPanel;return te.createElement(te.Fragment,null,typeof Qe=="function"?Qe(Je,Ye):te.createElement(Pe,Je))},ze=Oe,Ge=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],tt={left:"50%",top:"50%",width:1,height:1},Me={block:"center",inline:"center"},We=function(Je){var Ye=Je.prefixCls,Qe=Ye===void 0?"rc-tour":Ye,st=Je.steps,ot=st===void 0?[]:st,mt=Je.defaultCurrent,ft=Je.current,qe=Je.onChange,Be=Je.onClose,lt=Je.onFinish,Ne=Je.open,rt=Je.mask,gt=rt===void 0?!0:rt,yt=Je.arrow,dt=yt===void 0?!0:yt,Ve=Je.rootClassName,He=Je.placement,Ze=Je.renderPanel,et=Je.gap,Ie=Je.animated,je=Je.scrollIntoViewOptions,De=je===void 0?Me:je,Xe=Je.zIndex,ct=Xe===void 0?1001:Xe,Fe=Je.closeIcon,vt=Je.closable,wt=Je.builtinPlacements,Ot=Je.disabledInteraction,Tt=(0,de.Z)(Je,Ge),xt=te.useRef(),Nt=(0,x.Z)(0,{value:ft,defaultValue:mt}),Rt=(0,he.Z)(Nt,2),Ut=Rt[0],Qt=Rt[1],or=(0,x.Z)(void 0,{value:Ne,postState:function(Lr){return Ut<0||Ut>=ot.length?!1:Lr!=null?Lr:!0}}),cr=(0,he.Z)(or,2),ir=cr[0],_r=cr[1],Fr=te.useState(ir),Hr=(0,he.Z)(Fr,2),Vr=Hr[0],on=Hr[1],yn=te.useRef(ir);(0,z.Z)(function(){ir&&(yn.current||Qt(0),on(!0)),yn.current=ir},[ir]);var Rr=ot[Ut]||{},Fn=Rr.target,ni=Rr.placement,Hn=Rr.style,Ln=Rr.arrow,qt=Rr.className,er=Rr.mask,Wt=Rr.scrollIntoViewOptions,Vt=Wt===void 0?Me:Wt,tr=Rr.closeIcon,mr=Rr.closable,Dt=re(mr,tr,vt,Fe),jt=ir&&(er!=null?er:gt),_t=Vt!=null?Vt:De,Ct=ue(Fn,Ne,et,_t),It=(0,he.Z)(Ct,2),Gt=It[0],kt=It[1],Et=fe(kt,He,ni),Ft=kt?typeof Ln=="undefined"?dt:Ln:!1,Mt=(0,a.Z)(Ft)==="object"?Ft.pointAtCenter:!1;(0,z.Z)(function(){var Or;(Or=xt.current)===null||Or===void 0||Or.forceAlign()},[Mt,Ut]);var zt=function(Lr){Qt(Lr),qe==null||qe(Lr)},Yt=(0,te.useMemo)(function(){return wt?typeof wt=="function"?wt({arrowPointAtCenter:Mt}):wt:Ae(Mt)},[wt,Mt]);if(kt===void 0||!Vr)return null;var br=function(){_r(!1),Be==null||Be(Ut)},Tr=function(){return te.createElement(ze,(0,Ue.Z)({arrow:Ft,key:"content",prefixCls:Qe,total:ot.length,renderPanel:Ze,onPrev:function(){zt(Ut-1)},onNext:function(){zt(Ut+1)},onClose:br,current:Ut,onFinish:function(){br(),lt==null||lt()}},ot[Ut],{closable:Dt}))},Sr=typeof jt=="boolean"?jt:!!jt,Ht=typeof jt=="boolean"?void 0:jt,nr=function(Lr){return Lr||kt||document.body};return te.createElement(te.Fragment,null,te.createElement(xe,{zIndex:ct,prefixCls:Qe,pos:Gt,showMask:Sr,style:Ht==null?void 0:Ht.style,fill:Ht==null?void 0:Ht.color,open:ir,animated:Ie,rootClassName:Ve,disabledInteraction:Ot}),te.createElement(ne.Z,(0,Ue.Z)({},Tt,{builtinPlacements:Yt,ref:xt,popupStyle:Hn,popupPlacement:Et,popupVisible:ir,popupClassName:se()(Ve,qt),prefixCls:Qe,popup:Tr,forceRender:!1,destroyPopupOnHide:!0,zIndex:ct,getTriggerDOMNode:nr,arrow:!!Ft}),te.createElement(oe.Z,{open:ir,autoLock:!0},te.createElement("div",{className:se()(Ve,"".concat(Qe,"-target-placeholder")),style:(0,ve.Z)((0,ve.Z)({},Gt||tt),{},{position:"fixed",pointerEvents:"none"})}))))},it=We,at=it},45559:function(){"use strict"},96408:function(bt,pt){"use strict";pt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},829:function(){"use strict"},84482:function(bt,pt,Ce){"use strict";var ve=Ce(59301),Ue=Object.defineProperty,a=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,te=(ee,se,z)=>se in ee?Ue(ee,se,{enumerable:!0,configurable:!0,writable:!0,value:z}):ee[se]=z,oe=(ee,se)=>{for(var z in se||(se={}))he.call(se,z)&&te(ee,z,se[z]);if(a)for(var z of a(se))de.call(se,z)&&te(ee,z,se[z]);return ee};const ne=ee=>React.createElement("svg",oe({className:"left_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},ee),React.createElement("path",{d:"M0 512a512 512 0 1 0 1024 0A512 512 0 1 0 0 512Z",fill:"#EBEFF7"}),React.createElement("path",{d:"m368.333 487.526 24.78-24.524L591.31 267.008c14.848-14.694 34.713-14.694 49.561 0a37.376 37.376 0 0 1-4.966 48.998L437.76 512l198.195 195.994c14.848 14.694 14.848 34.304 0 48.998-14.848 14.694-34.662 14.694-49.51 0L388.096 560.998l-19.814-24.524A37.222 37.222 0 0 1 358.4 512c0-9.78 0-14.694 9.933-24.474z",fill:"#AAAFB9"}));pt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTAgNTEyYTUxMiA1MTIgMCAxIDAgMTAyNCAwQTUxMiA1MTIgMCAxIDAgMCA1MTJaIiBmaWxsPSIjRUJFRkY3Ii8+PHBhdGggZD0ibTM2OC4zMzMgNDg3LjUyNiAyNC43OC0yNC41MjRMNTkxLjMxIDI2Ny4wMDhjMTQuODQ4LTE0LjY5NCAzNC43MTMtMTQuNjk0IDQ5LjU2MSAwYTM3LjM3NiAzNy4zNzYgMCAwIDEtNC45NjYgNDguOTk4TDQzNy43NiA1MTJsMTk4LjE5NSAxOTUuOTk0YzE0Ljg0OCAxNC42OTQgMTQuODQ4IDM0LjMwNCAwIDQ4Ljk5OC0xNC44NDggMTQuNjk0LTM0LjY2MiAxNC42OTQtNDkuNTEgMEwzODguMDk2IDU2MC45OThsLTE5LjgxNC0yNC41MjRBMzcuMjIyIDM3LjIyMiAwIDAgMSAzNTguNCA1MTJjMC05Ljc4IDAtMTQuNjk0IDkuOTMzLTI0LjQ3NHoiIGZpbGw9IiNBQUFGQjkiLz48L3N2Zz4="},47510:function(bt,pt,Ce){"use strict";var ve=Ce(59301),Ue=Object.defineProperty,a=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,te=(ee,se,z)=>se in ee?Ue(ee,se,{enumerable:!0,configurable:!0,writable:!0,value:z}):ee[se]=z,oe=(ee,se)=>{for(var z in se||(se={}))he.call(se,z)&&te(ee,z,se[z]);if(a)for(var z of a(se))de.call(se,z)&&te(ee,z,se[z]);return ee};const ne=ee=>React.createElement("svg",oe({width:20,height:20,xmlns:"http://www.w3.org/2000/svg"},ee),React.createElement("title",null,"\u5411\u53F3\u5907\u4EFD"),React.createElement("g",{transform:"matrix(-1 0 0 1 20 0)",fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#EBEFF7",cx:10,cy:10,r:10}),React.createElement("path",{d:"m12.459 9.522-.484-.479-3.872-3.828c-.29-.287-.678-.287-.968 0a.73.73 0 0 0 .097.957L11.103 10l-3.871 3.828c-.29.287-.29.67 0 .957.29.287.677.287.968 0l3.871-3.828.388-.479a.727.727 0 0 0 .193-.478c0-.191 0-.287-.193-.478Z",fill:"#3061D0",fillRule:"nonzero"})));pt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgdHJhbnNmb3JtPSJtYXRyaXgoLTEgMCAwIDEgMjAgMCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBmaWxsPSIjRUJFRkY3IiBjeD0iMTAiIGN5PSIxMCIgcj0iMTAiLz48cGF0aCBkPSJtMTIuNDU5IDkuNTIyLS40ODQtLjQ3OS0zLjg3Mi0zLjgyOGMtLjI5LS4yODctLjY3OC0uMjg3LS45NjggMGEuNzMuNzMgMCAwIDAgLjA5Ny45NTdMMTEuMTAzIDEwbC0zLjg3MSAzLjgyOGMtLjI5LjI4Ny0uMjkuNjcgMCAuOTU3LjI5LjI4Ny42NzcuMjg3Ljk2OCAwbDMuODcxLTMuODI4LjM4OC0uNDc5YS43MjcuNzI3IDAgMCAwIC4xOTMtLjQ3OGMwLS4xOTEgMC0uMjg3LS4xOTMtLjQ3OFoiIGZpbGw9IiMzMDYxRDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4="},53842:function(bt,pt,Ce){"use strict";var ve=Ce(59301),Ue=Object.defineProperty,a=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,te=(ee,se,z)=>se in ee?Ue(ee,se,{enumerable:!0,configurable:!0,writable:!0,value:z}):ee[se]=z,oe=(ee,se)=>{for(var z in se||(se={}))he.call(se,z)&&te(ee,z,se[z]);if(a)for(var z of a(se))de.call(se,z)&&te(ee,z,se[z]);return ee};const ne=ee=>React.createElement("svg",oe({className:"right_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},ee),React.createElement("path",{d:"M0 512a512 512 0 1 0 1024 0A512 512 0 1 0 0 512Z",fill:"#EBEFF7"}),React.createElement("path",{d:"m903.782 51.2 51.2 51.2-51.2-51.2zm51.2 0-51.2 51.2 51.2-51.2z"}),React.createElement("path",{d:"m637.9 487.526-24.78-24.524-198.246-195.994c-14.848-14.694-34.714-14.694-49.562 0a37.376 37.376 0 0 0 4.966 48.998L568.474 512 370.278 707.994c-14.848 14.694-14.848 34.304 0 48.998 14.848 14.694 34.663 14.694 49.562 0l198.195-195.994 19.866-24.524A37.222 37.222 0 0 0 647.782 512c0-9.78 0-14.694-9.881-24.474z",fill:"#AAAFB9"}));pt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTAgNTEyYTUxMiA1MTIgMCAxIDAgMTAyNCAwQTUxMiA1MTIgMCAxIDAgMCA1MTJaIiBmaWxsPSIjRUJFRkY3Ii8+PHBhdGggZD0ibTkwMy43ODIgNTEuMiA1MS4yIDUxLjItNTEuMi01MS4yem01MS4yIDAtNTEuMiA1MS4yIDUxLjItNTEuMnoiLz48cGF0aCBkPSJtNjM3LjkgNDg3LjUyNi0yNC43OC0yNC41MjQtMTk4LjI0Ni0xOTUuOTk0Yy0xNC44NDgtMTQuNjk0LTM0LjcxNC0xNC42OTQtNDkuNTYyIDBhMzcuMzc2IDM3LjM3NiAwIDAgMCA0Ljk2NiA0OC45OThMNTY4LjQ3NCA1MTIgMzcwLjI3OCA3MDcuOTk0Yy0xNC44NDggMTQuNjk0LTE0Ljg0OCAzNC4zMDQgMCA0OC45OTggMTQuODQ4IDE0LjY5NCAzNC42NjMgMTQuNjk0IDQ5LjU2MiAwbDE5OC4xOTUtMTk1Ljk5NCAxOS44NjYtMjQuNTI0QTM3LjIyMiAzNy4yMjIgMCAwIDAgNjQ3Ljc4MiA1MTJjMC05Ljc4IDAtMTQuNjk0LTkuODgxLTI0LjQ3NHoiIGZpbGw9IiNBQUFGQjkiLz48L3N2Zz4="},82718:function(bt,pt,Ce){"use strict";var ve=Ce(59301),Ue=Object.defineProperty,a=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,te=(ee,se,z)=>se in ee?Ue(ee,se,{enumerable:!0,configurable:!0,writable:!0,value:z}):ee[se]=z,oe=(ee,se)=>{for(var z in se||(se={}))he.call(se,z)&&te(ee,z,se[z]);if(a)for(var z of a(se))de.call(se,z)&&te(ee,z,se[z]);return ee};const ne=ee=>React.createElement("svg",oe({width:20,height:20,xmlns:"http://www.w3.org/2000/svg"},ee),React.createElement("title",null,"\u5411\u53F3"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#EBEFF7",cx:10,cy:10,r:10}),React.createElement("path",{d:"m12.459 9.522-.484-.479-3.872-3.828c-.29-.287-.678-.287-.968 0a.73.73 0 0 0 .097.957L11.103 10l-3.871 3.828c-.29.287-.29.67 0 .957.29.287.677.287.968 0l3.871-3.828.388-.479a.727.727 0 0 0 .193-.478c0-.191 0-.287-.193-.478Z",fill:"#3061D0",fillRule:"nonzero"})));pt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNFQkVGRjciIGN4PSIxMCIgY3k9IjEwIiByPSIxMCIvPjxwYXRoIGQ9Im0xMi40NTkgOS41MjItLjQ4NC0uNDc5LTMuODcyLTMuODI4Yy0uMjktLjI4Ny0uNjc4LS4yODctLjk2OCAwYS43My43MyAwIDAgMCAuMDk3Ljk1N0wxMS4xMDMgMTBsLTMuODcxIDMuODI4Yy0uMjkuMjg3LS4yOS42NyAwIC45NTcuMjkuMjg3LjY3Ny4yODcuOTY4IDBsMy44NzEtMy44MjguMzg4LS40NzlhLjcyNy43MjcgMCAwIDAgLjE5My0uNDc4YzAtLjE5MSAwLS4yODctLjE5My0uNDc4WiIgZmlsbD0iIzMwNjFEMCIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9nPjwvc3ZnPg=="},93510: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 bt={},pt="5.0",Ce={},ve=null,Ue=!1,a=!1,he=null,de=!1,te=null,oe=null,ne=0;ne<arguments.length;ne++){var ee=arguments[ne];if(ee!==null)switch(typeof ee){case"number":pt=ee.toFixed(1);break;case"string":ee.match(new RegExp("^[0-9]\\.[0-9]+$"))?pt=ee:he=ee;break;case"object":typeof ee.is3D!="undefined"?ve=ee:Ce=ee;break;case"boolean":Ue=ee,a=!0;break}}ve===null&&(ve={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ce.material_id!==void 0&&!a&&(Ue=!0)),he!==null&&Ce.id===void 0&&(Ce.id=he);var se="",z="",x=!1,b=null,E=null,re=null,ae=!1,le=null,fe=null,ce=null,ue=null,ye=null;Ce.height!==void 0&&(Ce.height=Math.round(Ce.height)),Ce.width!==void 0&&(Ce.width=Math.round(Ce.width));var Se=function(Je){return parseFloat(Je)>4?parseFloat(Je):5};bt.setHTML5Codebase=function(Je,Ye){oe=Je,it(Je,Ye)},bt.setJavaCodebase=bt.setJavaCodebaseVersion=bt.isCompiledInstalled=bt.setPreCompiledScriptPath=bt.setPreCompiledResourcePath=function(){},bt.setHTML5CodebaseVersion=function(Je,Ye){var Qe=parseFloat(Je);if(Qe!==NaN&&Qe<5){console.log("The GeoGebra HTML5 codebase version "+Qe+" is deprecated. Using version latest instead.");return}te=Je,We(Je,Ye)},bt.getHTML5CodebaseVersion=function(){return E},bt.getParameters=function(){return Ce},bt.setFontsCSSURL=function(Je){ue=Je},bt.setGiacJSURL=function(Je){},bt.setJNLPFile=function(Je){se=Je},bt.setJNLPBaseDir=function(Je){},bt.inject=function(){function Je(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ye="auto",Qe=Ce.id,st,ot=!1,mt=0;mt<arguments.length;mt++){var ft=arguments[mt];typeof ft=="string"?(ft=ft.toLowerCase(),ft.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ye=ft:Qe=arguments[mt]):typeof ft=="boolean"?ot=ft:ft instanceof HTMLElement&&(st=ft)}qe();function qe(){if(!de){setTimeout(qe,200);return}Ye=tt(Ye);var Be=st||document.getElementById(Qe);if(!Be){console.log("possibly bug on ajax loading? ");return}if(bt.removeExistingApplet(Be,!1),Ce.width===void 0&&Be.clientWidth&&(Ce.width=Be.clientWidth),Ce.height===void 0&&Be.clientHeight&&(Ce.height=Be.clientHeight),!(Ce.width&&Ce.height)&&Ye==="html5"&&(delete Ce.width,delete Ce.height),b=Ye,Ye==="screenshot")ke(Be,Ce);else{var lt=!1;Ce.hasOwnProperty("playButton")&&Ce.playButton||Ce.hasOwnProperty("clickToLoad")&&Ce.clickToLoad?lt=!0:Ce.hasOwnProperty("playButtonAutoDecide")&&Ce.playButtonAutoDecide&&(lt=(!we()||Je())&&xe()),lt?(b="screenshot",Oe(Be,Ce,ot,Ye)):Le(Be,Ce,ot)}}};function we(){try{return window.self!==window.top}catch(Je){return!0}}function xe(){return Ce.hasOwnProperty("screenshotGenerator")&&Ce.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}bt.getViews=function(){return ve},bt.isJavaInstalled=function(){return!1};var ge=function(Je){var Ye=function(mt){var ft=JSON.parse(mt),qe=function(Ne){return Ne.type=="G"||Ne.type=="E"},Be=ft.elements?ft.elements.filter(qe)[0]:ft;if(!Be||!Be.url){Qe();return}Ce.fileName=Be.url,_e(Be.settings||{}),ve.is3D=!0;var lt="https://www.geogebra.org/images/";bt.setPreviewImage(le||Be.previewUrl,lt+"GeoGebra_loading.png",lt+"applet_play.png"),Je()},Qe=function(){Ce.onError&&Ce.onError(),at("Error: Fetching material (id "+Ce.material_id+") failed.",Ce)},st=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ot="/materials/"+Ce.material_id+"?scope=basic";be("https://"+st+"/api/proxy.php?path="+encodeURIComponent(ot),Ye,Qe)};function _e(Je){var Ye=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Qe){Je[Qe]=!!Je[Qe]}),Ye.forEach(function(Qe){Ce[Qe]===void 0&&Je[Qe]!==void 0&&(Ce[Qe]=Je[Qe])}),Ce.showToolBarHelp===void 0&&(Ce.showToolBarHelp=Ce.showToolBar)}function be(Je,Ye,Qe){var st=new XMLHttpRequest;st.open("GET",Je),st.onload=function(){Ye(st.responseText)},st.onerror=Qe,st.send()}bt.isHTML5Installed=function(){return!0},bt.getLoadedAppletType=function(){return b},bt.setPreviewImage=function(Je,Ye,Qe){le=Je,fe=Ye,ce=Qe},bt.removeExistingApplet=function(Je,Ye){var Qe;typeof Je=="string"&&(Je=document.getElementById(Je)),b=null;var st=null;for(Qe=0;Qe<Je.childNodes.length;Qe++){var ot=Je.childNodes[Qe],mt=ot.className;mt==="applet_screenshot"?Ye?(ot.style.display="block",b="screenshot"):ot.style.display="none":mt!=="applet_scaler prerender"&&(Je.removeChild(ot),st=mt&&mt.indexOf("appletParameters")!=-1?ot.id:null,Qe--)}var ft=Ce.id!==void 0?Ce.id:st,qe=window[ft];qe&&typeof qe.getBase64=="function"&&(qe.remove(),window[ft]=null)},bt.refreshHitPoints=function(){if(Se(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Je=bt.getAppletObject();return Je&&typeof Je.recalculateEnvironments=="function"?(Je.recalculateEnvironments(),!0):!1},bt.startAnimation=function(){var Je=bt.getAppletObject();return Je&&typeof Je.startAnimation=="function"?(Je.startAnimation(),!0):!1},bt.stopAnimation=function(){var Je=bt.getAppletObject();return Je&&typeof Je.stopAnimation=="function"?(Je.stopAnimation(),!0):!1},bt.getAppletObject=function(){var Je=Ce.id!==void 0?Ce.id:"ggbApplet";return window[Je]},bt.resize=function(){};var Ae=function(Je,Ye,Qe){var st=document.createElement("param");st.setAttribute("name",Ye),st.setAttribute("value",Qe),Je.appendChild(st)},Te=function(Je){return Je&&Je!=="false"},Le=function(Je,Ye,Qe){Se(E)<=4.2&&(Qe=!0);var st=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==E||ggbHTML5LoadedCodebaseIsWebSimple&&!ae)&&(st=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ot=document.createElement("div");ot.classList.add("appletParameters","notranslate");var mt=Ye.width,ft=Ye.height;if(Ye.disableAutoScale=Ye.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ye.disableAutoScale,Ye.width!==void 0)if(Se(E)<=4.4)Te(Ye.showToolBar)&&(Ye.height-=7),Te(Ye.showAlgebraInput)&&(Ye.height-=37),Ye.width<605&&Te(Ye.showToolBar)&&(Ye.width=605,mt=605);else{var qe=100;(Te(Ye.showToolBar)||Te(Ye.showMenuBar))&&(Ye.hasOwnProperty("customToolBar")&&(Ye.customToolbar=Ye.customToolBar),qe=Te(Ye.showMenuBar)?245:155),mt<qe&&(Ye.width=qe,mt=qe)}ot.style.border="none",ot.style.display="inline-block";for(var Be in Ye)Ye.hasOwnProperty(Be)&&Be!=="appletOnLoad"&&ot.setAttribute("data-param-"+Be,Ye[Be]);ue&&ot.setAttribute("data-param-fontscssurl",ue),bt.resize=function(){GGBAppletUtils.responsiveResize(Je,Ye)},window.addEventListener("resize",function(De){bt.resize()});var lt=typeof Ye.appletOnLoad=="function"?Ye.appletOnLoad:function(){};if(!Qe&&Ye.width!==void 0){Ye.hasOwnProperty("showSplash")||ot.setAttribute("data-param-showSplash","false");var Ne=Je.querySelector(".applet_scaler.prerender"),rt=Ne!==null;if(rt)var gt=Ne.querySelector(".ggb_preview");else{var gt=Ge(mt,ft,Ye.borderColor,!1);Ne=document.createElement("div"),Ne.className="applet_scaler",Ne.style.position="relative",Ne.style.display="block",Ne.style.width=mt+"px",Ne.style.height=ft+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ne,"66%"),Se(E)>=5?(Ye.appletOnLoad=function(De){var Xe=Je.querySelector(".ggb_preview");Xe&&Xe.parentNode.removeChild(Xe),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ne),window.GGBT_wsf_view&&$(window).trigger("resize"),lt(De)},rt||Ne.appendChild(gt)):ot.appendChild(gt),Ne.appendChild(ot),rt||Je.appendChild(Ne),setTimeout(function(){bt.resize()},1)}else{var yt=document.createElement("div");yt.className="applet_scaler",yt.style.position="relative",yt.style.display="block",yt.appendChild(ot),Je.appendChild(yt),Ye.appletOnLoad=function(De){bt.resize(),lt(De)}}function dt(De,Xe){Xe&&typeof Xe.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(De,Xe.appletOnLoad):renderGGBElement(De),at("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Xe)}function Ve(De,Xe){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:De,params:Xe}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ct){dt(ct.article,ct.params)}),html5AppletsToProcess=null)},Se(E)<5&&(De.className+=" geogebraweb")):dt(De,Xe)}if(st){scriptLoadStarted=!0;for(var He=0;He<ot.childNodes.length;He++){var Ze=ot.childNodes[He].tagName;Ze==="TABLE"&&(ot.removeChild(ot.childNodes[He]),He--)}if(ggbHTML5LoadedScript!==null){var et=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');et!=null&&et.parentNode.removeChild(et)}var Ie=document.createElement("script"),je=function(){Ve(ot,Ye)};Ie.src=z+re,ggbHTML5LoadedCodebaseIsWebSimple=ae,ggbHTML5LoadedCodebaseVersion=E,ggbHTML5LoadedScript=Ie.src,at("GeoGebra HTML5 codebase loaded: '"+z+"'.",Ye),!oe&&(!te||te=="5.0")?(ae?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),je()):z.requirejs?__webpack_require__.e(3861).then(function(){var De=[__webpack_require__(40341)];je.apply(null,De)}.bind(this)).catch(__webpack_require__.oe):(Ie.onload=je,Je.appendChild(Ie))}else Ve(ot,Ye);Ye.height=ft,Ye.width=mt},ke=function(Je,Ye,Qe){var st=Ge(Ye.width,Ye.height,Ye.borderColor,Qe),ot=document.createElement("div");ot.style.position="relative",ot.style.display="block",ot.style.width=Ye.width+"px",ot.style.height=Ye.height+"px",ot.className="applet_screenshot applet_scaler"+(Qe?" applet_screenshot_play":""),ot.appendChild(st);var mt=GGBAppletUtils.getScale(Ye,Je,Qe);Qe?(Je.appendChild(ze()),window.GGBT_wsf_view||(Je.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ot,"66%"),Je.appendChild(ot),mt!==1&&!isNaN(mt)&&(GGBAppletUtils.scaleElement(ot,mt),ot.style.width=Ye.width+"px",ot.style.height=Ye.height+"px",ot.parentNode.style.width=Ye.width*mt+"px",ot.parentNode.style.height=Ye.height*mt+"px"),bt.resize=function(){Pe(Je,st,ot,Qe)},window.addEventListener("resize",function(ft){bt.resize()}),bt.resize()};function Pe(Je,Ye,Qe,st){if(Je.contains(Ye)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Je.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Je)}var ot=GGBAppletUtils.getScale(Ce,Je,st);Qe.parentNode!==null&&(!isNaN(ot)&&ot!==1?(GGBAppletUtils.scaleElement(Qe,ot),Qe.parentNode.style.width=Ce.width*ot+"px",Qe.parentNode.style.height=Ce.height*ot+"px"):(GGBAppletUtils.scaleElement(Qe,1),Qe.parentNode.style.width=Ce.width+"px",Qe.parentNode.style.height=Ce.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Je),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}bt.onExitFullscreen=function(Je,Ye){Ye.appendChild(Je)};var Oe=function(Je,Ye,Qe,st){ke(Je,Ye,!0);for(var ot=function(){var qe=[];for(ft=0;ft<Je.childNodes.length;ft++)qe.push(Je.childNodes[ft]);if(window.GGBT_wsf_view){var Be=window.GGBT_wsf_view.renderFullScreen(Je,Ye.id),lt=document.getElementById("fullscreencontainer"),Ne=jQuery(Je).find(".fullscreencontent");Ne.length>0?(Be.remove(),Ne.attr("id","fullscreencontent").show(),jQuery(lt).append(Ne),window.dispatchEvent(new Event("resize"))):Le(Be,Ye,!1),window.GGBT_wsf_view.launchFullScreen(lt)}else b=st,Le(Je,Ye,!1);if(!window.GGBT_wsf_view)for(ft=0;ft<qe.length;ft++)Je.removeChild(qe[ft])},mt=Je.getElementsByClassName("ggb_preview_play"),ft=0;ft<mt.length;ft++)mt[ft].addEventListener("click",ot,!1),mt[ft].addEventListener("ontouchstart",ot,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Je),xe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ze=function(){var Je=document.createElement("div");if(Je.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ye='.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");}',Qe=document.createElement("style");Qe.styleSheet?Qe.styleSheet.cssText=Ye:Qe.appendChild(document.createTextNode(Ye)),document.getElementsByTagName("head")[0].appendChild(Qe)}return Je},Ge=function(Je,Ye,Qe,st){var ot=document.createElement("div");ot.className="ggb_preview",ot.style.position="absolute",ot.style.zIndex="90",ot.style.width=Je-2+"px",ot.style.height=Ye-2+"px",ot.style.top="0px",ot.style.left="0px",ot.style.overflow="hidden",ot.style.backgroundColor="white";var mt="lightgrey";Qe!==void 0&&(Qe==="none"?mt="transparent":mt=Qe),ot.style.border="1px solid "+mt;var ft=document.createElement("img");if(ft.style.position="relative",ft.style.zIndex="1000",ft.style.top="-1px",ft.style.left="-1px",le!==null&&ft.setAttribute("src",le),ft.style.opacity=.7,fe!==null){var qe,Be,lt;if(!st){qe=document.createElement("img"),qe.style.position="absolute",qe.style.zIndex="1001",qe.style.opacity=1,ft.style.opacity=.3,Be=360,Be>Je/4*3&&(Be=Je/4*3),lt=Be/5.8,qe.setAttribute("src",fe),qe.setAttribute("width",Be),qe.setAttribute("height",lt);var Ne=(Je-Be)/2,rt=(Ye-lt)/2;qe.style.left=Ne+"px",qe.style.top=rt+"px",ot.appendChild(qe)}}return ot.appendChild(ft),ot},tt=function(Je){return Je=Je.toLowerCase(),Je==="html5"||Je==="screenshot"?Je:"html5"},Me=["web","webSimple","web3d","tablet","tablet3d","phone"],We=function(Je,Ye){if(E=Je,Ye){it(E,!0);return}var Qe=!Ue;if(Qe){var st=Se(E);!isNaN(st)&&st<4.4&&(Qe=!1)}var ot,mt;window.location.protocol.substr(0,4)==="http"?ot=window.location.protocol:ot="http:";var ft=E.indexOf("//");ft>0?mt=E:ft===0?mt=ot+E:mt="https://www.geogebra.org/apps/5.2.814.0/";for(var qe in Me)if(E.slice(Me[qe].length*-1)===Me[qe]||E.slice((Me[qe].length+1)*-1)===Me[qe]+"/"){it(mt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Qe&&!ve.is3D&&!ve.AV&&!ve.SV&&!ve.CV&&!ve.EV2&&!ve.CP&&!ve.PC&&!ve.DA&&!ve.FI&&!ve.PV&&!Te(Ce.showToolBar)&&!Te(Ce.showMenuBar)&&!Te(Ce.showAlgebraInput)&&!Te(Ce.enableRightClick)&&(!Ce.appName||Ce.appName=="classic")?mt+="webSimple/":mt+="web3d/",it(mt,!1)},it=function(Je,Ye){if(Je.requirejs){z=Je;return}Je.slice(-1)!=="/"&&(Je+="/"),z=Je,Ye===null&&(Ye=Je.indexOf("http")===-1),x=Ye,re="web.nocache.js",ae=!1;var Qe=z.split("/");Qe.length>1&&(!Ye&&Qe[Qe.length-2]==="webSimple"?(re="webSimple.nocache.js",ae=!0):Me.indexOf(Qe[Qe.length-2])>=0&&(re=Qe[Qe.length-2]+".nocache.js")),Qe=Je.split("/"),E=Qe[Qe.length-3],E.substr(0,4)==="test"?E=E.substr(4,1)+"."+E.substr(5,1):(E.substr(0,3)==="war"||E.substr(0,4)==="beta")&&(E="5.0");var st=parseFloat(E);st!==NaN&&st<5&&Je.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+st+" is deprecated. Using version latest instead."),We("5.0",Ye))},at=function(Je,Ye){window.console&&window.console.log&&(!Ye||typeof Ye.showLogging=="undefined"||Ye.showLogging&&Ye.showLogging!=="false")&&console.log(Je)};Ce.material_id!==void 0?ge($e):$e();function $e(){var Je=pt;te!==null?Je=te:parseFloat(Je)<5&&(Je="5.0"),We(Je,!1),oe!==null&&it(oe,x),de=!0}return bt},GGBAppletUtils=function(){"use strict";function bt(){return window.GGBT_wsf_edit!==void 0}function pt(de,te){te!=1?(de.style.transformOrigin="0% 0% 0px",de.style.webkitTransformOrigin="0% 0% 0px",de.style.transform="scale("+te+","+te+")",de.style.webkitTransform="scale("+te+","+te+")",de.style.maxWidth="initial",de.querySelector(".ggb_preview")!==null&&(de.querySelector(".ggb_preview").style.maxWidth="initial"),de.querySelectorAll(".ggb_preview img")[0]!==void 0&&(de.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),de.querySelectorAll(".ggb_preview img")[1]!==void 0&&(de.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(de.style.transform="none",de.style.webkitTransform="none")}function Ce(de,te,oe,ne,ee,se){var z=null;if(se!=null&&se!="")for(var x=de.parentNode;x!=null;)if((" "+x.className+" ").indexOf(" "+se+" ")>-1){z=x;break}else x=x.parentNode;var b=0,E=0,re=0,ae=0,le=0,fe=0,ce=0;if(z)b=z.offsetWidth,E=Math.max(ne?z.offsetWidth:0,z.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(b=Math.min(window.innerWidth,document.documentElement.clientWidth),E=Math.min(window.innerHeight,document.documentElement.clientHeight),re=b):(b=window.innerWidth,E=window.innerHeight,re=window.innerWidth),de){var ue=de.getBoundingClientRect();ue.left>0&&ue.left<=b&&(ee===void 0||!ee)&&(document.dir==="rtl"?(le=b-ue.width-ue.left,fe=re<=480?10:30):(fe=ue.left,le=re<=480?10:30),ae=fe+le)}if(de&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ye=de.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ae=40,ce=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ae=0,ce=40)}}return de&&((oe===void 0||!oe)&&te>0&&te+ae<b?b=te:b-=ae,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(oe===void 0||!oe)&&(E-=ce)),{width:b,height:E}}function ve(de,te,oe,ne,ee){if(de.isScreenshoGenerator)return 1;var se=ne!==void 0&&ne,z=de.noScaleMargin!=null&&de.noScaleMargin,x=function(ye){return ye&&ye!=="false"},b=x(de.autoHeight),E=Ce(te,de.width,oe,b,se&&window.GGBT_wsf_view||z,ee),re=parseInt(E.width),ae=de.width,le=de.height;if(ae===void 0){var fe=te.querySelector(".appletParameters");fe&&(ae=fe.offsetWidth,le=fe.offsetHeight)}var ce=re/ae,ue=se?1:E.height/le;return oe!==void 0&&!oe&&(ce=Math.min(1,ce),ue=Math.min(1,ue)),Math.min(ce,ue)}function Ue(de,te,oe){var ne=1,ee,se=!1;if(de.hasOwnProperty("allowUpscale")&&(se=de.allowUpscale),de.hasOwnProperty("scale")&&(ne=parseFloat(de.scale),(isNaN(ne)||ne===null||ne===0)&&(ne=1),ne>1&&(se=!0)),te&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se=!0),!(de.hasOwnProperty("disableAutoScale")&&de.disableAutoScale))ee=ve(de,te,se,oe,de.scaleContainerClass);else return ne;return se&&(!de.hasOwnProperty("scale")||ne===1)?ee:Math.min(ne,ee)}function a(de){var te=Math.min(window.innerWidth,document.documentElement.clientWidth),oe=Math.min(window.innerHeight,document.documentElement.clientHeight),ne=de.getBoundingClientRect(),ee=(te-ne.width)/2,se=(oe-ne.height)/2;se<0&&(se=0),de.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee<40?de.style.left="40px":de.style.left=ee+"px",de.style.top=se+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(se<40?de.style.top="40px":de.style.top=se+"px",de.style.left=ee+"px")}function he(de,te){var oe=de.querySelector(".appletParameters");if(oe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(te.id!==oe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(de)}if(oe.parentElement&&/fullscreen/.test(oe.parentElement.className))return;var ne=Ue(te,de);bt()&&oe.setAttribute("data-param-scale",ne);for(var ee=null,se=0;se<de.childNodes.length;se++)if(de.childNodes[se].className!==void 0&&de.childNodes[se].className.match(/^applet_scaler/)){ee=de.childNodes[se];break}if(ee!==null&&ee.querySelector(".noscale")!==null)return;var z=te.id!==void 0?te.id:"ggbApplet",x=window[z];(x==null||!x.recalculateEnvironments)&&ee!==null&&!ee.className.match(/fullscreen/)&&(ee.parentNode.style.transform="",!isNaN(ne)&&ne!==1?(ee.parentNode.style.width=te.width*ne+"px",ee.parentNode.style.height=te.height*ne+"px",pt(ee,ne)):(pt(ee,1),ee.parentNode.style.width=te.width+"px",ee.parentNode.style.height=te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&a(de),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(oe).parents(".content-added-content"))}}return{responsiveResize:he,isFlexibleWorksheetEditor:bt,positionCenter:a,getScale:Ue,scaleElement:pt}}();__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 bt=n.location.search;return bt.indexOf(J)!=-1||bt.indexOf(K)!=-1}function q(bt,pt){}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(bt){var pt=s[L].bindings;s[L].bindings=function(){for(var Ce=pt?pt():{},ve=bt[webModule.__softPermutationId],Ue=O;Ue<ve.length;Ue++){var a=ve[Ue];Ce[a[O]]=a[P]}return Ce}};var t;function u(){return v(),t}function v(){if(!t){var bt=o.createElement(Q);if(bt.id=L,bt.style.cssText=R+S,bt.tabIndex=-1,o.body.appendChild(bt),t=bt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var pt=document.compatMode==U?V:W;t.write(pt+X),t.close()}}}function w(bt){function pt(ve){function Ue(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var a=Ue();if(a){ve();return}function he(){if(!a){if(!Ue())return;a=!0,ve(),o.removeEventListener&&o.removeEventListener(Z,he,!1),de&&clearInterval(de)}}o.addEventListener&&o.addEventListener(Z,he,!1);var de=setInterval(function(){he()},$)}function Ce(ve){var Ue=u(),a=Ue.body,he=Ue.createElement(_);he.language=ab,he.crossOrigin=W,he.src=ve,webModule.__errFn&&(he.onerror=function(){webModule.__errFn(L,new Error(bb+ve))}),a.appendChild(he)}pt(function(){Ce(bt)})}webModule.__startLoadingFragment=function(bt){return C(bt)},webModule.__installRunAsyncCode=function(bt){var pt=u(),Ce=pt.body,ve=pt.createElement(_);ve.language=ab,ve.text=bt,Ce.appendChild(ve),Ce.removeChild(ve)};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(bt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(bt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(bt){var pt=c[bt];return pt==null?null:pt},r=d,webModule.__errFn=e}function B(){function bt(de){var te=de.lastIndexOf(rb);te==-1&&(te=de.length);var oe=de.indexOf(sb);oe==-1&&(oe=de.length);var ne=de.lastIndexOf(tb,Math.min(oe,te));return ne>=O?de.substring(O,ne+P):W}function pt(de){if(!de.match(/^\w+:\/\//)){var te=o.createElement(ub);te.src=de+vb,de=bt(te.src)}return de}function Ce(){var de=__gwt_getMetaProperty(wb);return de!=null?de:W}function ve(){for(var de=o.getElementsByTagName(_),te=O;te<de.length;++te)if(de[te].src.indexOf(xb)!=-1)return bt(de[te].src);return W}function Ue(){var de=o.getElementsByTagName(yb);return de.length>O?de[de.length-P].href:W}function a(){var de=o.location;return de.href==de.protocol+zb+de.host+de.pathname+de.search+de.hash}var he=Ce();return he==W&&(he=ve()),he==W&&(he=Ue()),he==W&&a()&&(he=bt(o.location.href)),he=pt(he),he}function C(bt){return bt.match(/^\//)||bt.match(/^[a-zA-Z]+:\/\//)?bt:webModule.__moduleBase+bt}function D(){var bt=[],pt=O,Ce=[],ve=[];function Ue(de){var te=ve[de](),oe=Ce[de];if(te in oe)return te;var ne=[];for(var ee in oe)ne[oe[ee]]=ee;throw r&&r(de,ne,te),null}if(__gwt_isKnownPropertyValue=function(de,te){return te in Ce[de]},webModule.__getPropMap=function(){var de={};for(var te in Ce)Ce.hasOwnProperty(te)&&(de[te]=Ue(te));return de},webModule.__computePropValue=Ue,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var a;try{a=Cb;var he=a.indexOf(Db);he!=-1&&(pt=parseInt(a.substring(he+P),$),a=a.substring(O,he))}catch(de){}return webModule.__softPermutationId=pt,C(a+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})()},28735:function(bt,pt,Ce){"use strict";Ce.d(pt,{Ax:function(){return he},Ds:function(){return de},KI:function(){return oe},SI:function(){return a},f1:function(){return Ue}});var ve=Ce(74128);function Ue(ne){let ee=!0;if(ne.length>0){for(let se=0;se<ne.length;se++)if(ne[se].compile_success==0||!ne[se].compile_success){ee=!1;break}}else ee=!1;return ee}function a(ne,ee=""){let se=[];for(let z=0;z<ne.length;z++){let x=ne[z],b=ee?`${ee}/${x.name}`:`${x.name}`;se.push({title:x.name,type:x.type,isLeaf:x.type!=="tree",key:b})}return se}function he(ne,ee,se){for(let z=0;z<ne.length;z++){let x=ne[z];if(x.key===ee){x.children=se;break}x.children&&he(x.children,ee,se)}return ne}function de(ne,ee,se){let z;return function(){let x=this,b=arguments,E=function(){z=null,se||ne.apply(x,b)},re=se&&!z;clearTimeout(z),z=setTimeout(E,ee),re&&ne.apply(x,b)}}const te=!0,oe=ve.Z.API_SERVER},96935:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return E}});var ve=Ce(7939),Ue=Ce(59301),a=Object.defineProperty,he=Object.defineProperties,de=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,ee=(re,ae,le)=>ae in re?a(re,ae,{enumerable:!0,configurable:!0,writable:!0,value:le}):re[ae]=le,se=(re,ae)=>{for(var le in ae||(ae={}))oe.call(ae,le)&&ee(re,le,ae[le]);if(te)for(var le of te(ae))ne.call(ae,le)&&ee(re,le,ae[le]);return re},z=(re,ae)=>he(re,de(ae)),x=(re,ae)=>{var le={};for(var fe in re)oe.call(re,fe)&&ae.indexOf(fe)<0&&(le[fe]=re[fe]);if(re!=null&&te)for(var fe of te(re))ae.indexOf(fe)<0&&ne.call(re,fe)&&(le[fe]=re[fe]);return le},b=(re,ae,le)=>new Promise((fe,ce)=>{var ue=we=>{try{Se(le.next(we))}catch(xe){ce(xe)}},ye=we=>{try{Se(le.throw(we))}catch(xe){ce(xe)}},Se=we=>we.done?fe(we.value):Promise.resolve(we.value).then(ue,ye);Se((le=le.apply(re,ae)).next())});const E=re=>{var ae=re,{children:le}=ae,fe=x(ae,["children"]);const[ce,ue]=(0,Ue.useState)(!1);return Ue.createElement(ve.ZP,z(se({},fe),{loading:ce,onClick:ye=>b(void 0,null,function*(){try{ue(!0),yield fe.onClick(ye),ue(!1)}catch(Se){console.error(Se),ue(!1)}})}),le)}},48530:function(bt,pt,Ce){"use strict";var ve=Ce(86204),Ue=Ce.n(ve),a=Object.defineProperty,he=(ne,ee,se)=>ee in ne?a(ne,ee,{enumerable:!0,configurable:!0,writable:!0,value:se}):ne[ee]=se,de=(ne,ee,se)=>he(ne,typeof ee!="symbol"?ee+"":ee,se),te=(ne,ee,se)=>new Promise((z,x)=>{var b=ae=>{try{re(se.next(ae))}catch(le){x(le)}},E=ae=>{try{re(se.throw(ae))}catch(le){x(le)}},re=ae=>ae.done?z(ae.value):Promise.resolve(ae.value).then(b,E);re((se=se.apply(ne,ee)).next())});class oe extends ve.EventEmitter{constructor(ee,se){super(),de(this,"url"),de(this,"body"),de(this,"fullContent",""),de(this,"controller",null),de(this,"buffer",""),this.url=ee,this.body=se}startStream(){return te(this,null,function*(){this.controller=new AbortController;const{signal:ee}=this.controller;try{const se=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:ee});if(!se.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${se.status}`);const z=se.headers.get("content-type");if(!z)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(z.includes("application/json")){const E=yield se.json();this.emit("error",E);return}if(!z.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const x=se.body.getReader(),b=new TextDecoder("utf-8");for(;;){const{done:E,value:re}=yield x.read();if(E)break;const ae=b.decode(re,{stream:!0});this.buffer+=ae;const le=this.buffer.split(`
`);this.buffer=le.pop()||"";for(const fe of le)if(fe.startsWith("data:")){const ce=fe.slice(5).trim();if(ce==="[DONE]")break;try{const ue=JSON.parse(ce);ue.data&&this.handleData(ue.data)}catch(ue){this.buffer=fe+`
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",ue)}}}this.emit("done",this.fullContent)}catch(se){se.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",se.message)}})}handleData(ee){ee.content&&(this.fullContent+=ee.content,this.emit("data",{chunk:ee,full:this.fullContent}))}cancelRequest(){var ee;(ee=this.controller)==null||ee.abort()}}pt.Z=oe},65541:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return He}});var ve=Ce(59301),Ue=Ce(92310),a=Ce.n(Ue),he={agent:"agent___exMfN",add:"add___cWyoE",imgUpLoad:"imgUpLoad___Wg61u",tip:"tip___WGAb5"},de=Ce(28284),te=Ce(6767),oe=Ce(14566),ne=Ce(25399),ee=Ce(75727),se=Ce(62957),z=Ce(77019),x=Ce(7939),b=Ce(54172),E=Ce(82326),re=Ce(37568),ae=Ce(5269),le=Ce(62673),fe=Ce(47889),ce=Ce(2524),ue=Ce(38147),ye=Ce(82636),Se=Ce(19248),we=Ce(74128),xe=Ce(65582),ge=Ce(13747),_e=Ce(89392),be=Object.defineProperty,Ae=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,ke=(Ze,et,Ie)=>et in Ze?be(Ze,et,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Ze[et]=Ie,Pe=(Ze,et)=>{for(var Ie in et||(et={}))Te.call(et,Ie)&&ke(Ze,Ie,et[Ie]);if(Ae)for(var Ie of Ae(et))Le.call(et,Ie)&&ke(Ze,Ie,et[Ie]);return Ze},Oe=(Ze,et)=>{var Ie={};for(var je in Ze)Te.call(Ze,je)&&et.indexOf(je)<0&&(Ie[je]=Ze[je]);if(Ze!=null&&Ae)for(var je of Ae(Ze))et.indexOf(je)<0&&Le.call(Ze,je)&&(Ie[je]=Ze[je]);return Ie},ze=(Ze,et,Ie)=>new Promise((je,De)=>{var Xe=vt=>{try{Fe(Ie.next(vt))}catch(wt){De(wt)}},ct=vt=>{try{Fe(Ie.throw(vt))}catch(wt){De(wt)}},Fe=vt=>vt.done?je(vt.value):Promise.resolve(vt.value).then(Xe,ct);Fe((Ie=Ie.apply(Ze,et)).next())});const Ge=Ze=>{var et=Ze,{user:Ie,pathsDetail:je,onOk:De,dispatch:Xe}=et,ct=Oe(et,["user","pathsDetail","onOk","dispatch"]),Fe;const[vt,wt]=(0,ve.useState)({}),[Ot]=(0,xe.useSearchParams)(),[Tt]=de.default.useForm(),[xt,Nt]=(0,ve.useState)([]),[Rt,Ut]=(0,ve.useState)({page:1,per_page:15,agent_type:"",status:"enabled",deployable_id:((Fe=je==null?void 0:je.detail)==null?void 0:Fe.id)||Ot.get("subject_id"),creation_type:"by_user",deployable_type:"Subject",keyword:""}),[Qt,or]=(0,ve.useState)([]);function cr(){return ze(this,null,function*(){let ir=yield(0,ue.ZP)("/api/ai/agents.json",{method:"get",params:Rt});(ir==null?void 0:ir.status)===0&&Nt(ir==null?void 0:ir.data)})}return(0,ve.useEffect)(()=>{je.actionTabs.key==="\u667A\u80FD\u52A9\u6559\u9009\u7528"&&cr()},[je.actionTabs.key,Rt]),ve.createElement(se.default,{centered:!0,title:"\u9009\u7528\u667A\u80FD\u4F53",open:je.actionTabs.key==="\u667A\u80FD\u52A9\u6559\u9009\u7528",width:500,onCancel:()=>{Xe({type:"pathsDetail/setActionTabs",payload:{}})},onOk:()=>ze(void 0,null,function*(){if((Qt==null?void 0:Qt.length)===0){te.ZP.info("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u667A\u80FD\u4F53");return}(yield De({agent_ids:Qt})).status===0&&or([])})},ve.createElement(de.default,{layout:"inline",size:"large",style:{justifyContent:"end"},form:Tt,initialValues:{deployable_type:""},onValuesChange:(0,_e.debounce)((ir,_r)=>{Rt.page=1,Rt.per_page=20,Ut(Pe(Pe({},Rt),_r))},300)},ve.createElement("div",{style:{textAlign:"end"}})),ve.createElement(b.default,{style:{marginTop:20},scroll:{y:400},rowSelection:{type:"checkbox",onChange(ir,_r,Fr){or(ir)},getCheckboxProps:ir=>{var _r,Fr,Hr;return{disabled:((_r=je.actionTabs)==null?void 0:_r.item_type)==="Shixun"?(Fr=ir==null?void 0:ir.agent_application_info)==null?void 0:Fr.subject_shixun:(Hr=ir==null?void 0:ir.agent_application_info)==null?void 0:Hr.subject_assistant}},selectedRowKeys:Qt},rowKey:ir=>ir==null?void 0:ir.id,pagination:!1,columns:[{title:"\u5E8F\u53F7",dataIndex:"deployable_name",render:(ir,_r,Fr)=>`${(Rt.page-1)*Rt.per_page+Fr+1}`,width:50},{title:"\u667A\u80FD\u4F53\u540D\u79F0",dataIndex:"name"}],dataSource:xt==null?void 0:xt.agents}),ve.createElement(ge.Z,{style:{marginTop:20},pageSize:Rt.per_page,current:Rt.page,onChange:(ir,_r)=>{Rt.page=ir,Rt.per_page=_r,Ut(Pe({},Rt))},hideOnSinglePage:!0,total:xt==null?void 0:xt.total_count}))};var tt=(0,xe.connect)(({user:Ze,pathsDetail:et})=>({user:Ze,pathsDetail:et}))(Ge),Me=Object.defineProperty,We=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,$e=(Ze,et,Ie)=>et in Ze?Me(Ze,et,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Ze[et]=Ie,Je=(Ze,et)=>{for(var Ie in et||(et={}))it.call(et,Ie)&&$e(Ze,Ie,et[Ie]);if(We)for(var Ie of We(et))at.call(et,Ie)&&$e(Ze,Ie,et[Ie]);return Ze},Ye=(Ze,et)=>{var Ie={};for(var je in Ze)it.call(Ze,je)&&et.indexOf(je)<0&&(Ie[je]=Ze[je]);if(Ze!=null&&We)for(var je of We(Ze))et.indexOf(je)<0&&at.call(Ze,je)&&(Ie[je]=Ze[je]);return Ie},Qe=(Ze,et,Ie)=>new Promise((je,De)=>{var Xe=vt=>{try{Fe(Ie.next(vt))}catch(wt){De(wt)}},ct=vt=>{try{Fe(Ie.throw(vt))}catch(wt){De(wt)}},Fe=vt=>vt.done?je(vt.value):Promise.resolve(vt.value).then(Xe,ct);Fe((Ie=Ie.apply(Ze,et)).next())});const st=Ze=>{var et=Ze,{user:Ie,pathsDetail:je,onOk:De,dispatch:Xe}=et,ct=Ye(et,["user","pathsDetail","onOk","dispatch"]);const[Fe,vt]=(0,ve.useState)({}),[wt]=(0,xe.useSearchParams)(),Ot=(0,xe.useParams)(),[Tt]=de.default.useForm(),[xt,Nt]=(0,ve.useState)([]),[Rt,Ut]=(0,ve.useState)({page:1,per_page:15,agent_type:"",status:"enabled",deployable_id:Ot.coursesId||wt.get("subject_id"),creation_type:"by_user",deployable_type:"Course",keyword:""}),[Qt,or]=(0,ve.useState)([]);function cr(){return Qe(this,null,function*(){let ir=yield(0,ue.ZP)("/api/ai/agents.json",{method:"get",params:Rt});(ir==null?void 0:ir.status)===0&&Nt(ir==null?void 0:ir.data)})}return(0,ve.useEffect)(()=>{je.actionTabs.key==="\u8BFE\u5802\u667A\u80FD\u52A9\u6559\u9009\u7528"&&cr()},[je.actionTabs.key,Rt]),ve.createElement(se.default,{centered:!0,title:"\u9009\u7528\u667A\u80FD\u4F53",open:je.actionTabs.key==="\u8BFE\u5802\u667A\u80FD\u52A9\u6559\u9009\u7528",width:500,onCancel:()=>{Xe({type:"pathsDetail/setActionTabs",payload:{}})},onOk:()=>Qe(void 0,null,function*(){if((Qt==null?void 0:Qt.length)===0){te.ZP.info("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u667A\u80FD\u4F53");return}(yield De({agent_ids:Qt})).status===0&&or([])})},ve.createElement(de.default,{layout:"inline",size:"large",style:{justifyContent:"end"},form:Tt,initialValues:{deployable_type:""},onValuesChange:(0,_e.debounce)((ir,_r)=>{Rt.page=1,Rt.per_page=20,Ut(Je(Je({},Rt),_r))},300)},ve.createElement("div",{style:{textAlign:"end"}})),ve.createElement(b.default,{style:{marginTop:20},rowSelection:{type:"checkbox",onChange(ir,_r,Fr){or(ir)},getCheckboxProps:ir=>{var _r;return{disabled:(_r=ir==null?void 0:ir.agent_application_info)==null?void 0:_r.subject_assistant}},selectedRowKeys:Qt},rowKey:ir=>ir==null?void 0:ir.id,pagination:!1,columns:[{title:"\u5E8F\u53F7",dataIndex:"deployable_name",render:(ir,_r,Fr)=>`${(Rt.page-1)*Rt.per_page+Fr+1}`,width:50},{title:"\u667A\u80FD\u4F53\u540D\u79F0",dataIndex:"name"}],dataSource:xt==null?void 0:xt.agents}),ve.createElement(ge.Z,{style:{marginTop:20},pageSize:Rt.per_page,current:Rt.page,onChange:(ir,_r)=>{Rt.page=ir,Rt.per_page=_r,Ut(Je({},Rt))},hideOnSinglePage:!0,total:xt==null?void 0:xt.total_count}))};var ot=(0,xe.connect)(({user:Ze,pathsDetail:et})=>({user:Ze,pathsDetail:et}))(st),mt=Object.defineProperty,ft=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,rt=(Ze,et,Ie)=>et in Ze?mt(Ze,et,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Ze[et]=Ie,gt=(Ze,et)=>{for(var Ie in et||(et={}))lt.call(et,Ie)&&rt(Ze,Ie,et[Ie]);if(Be)for(var Ie of Be(et))Ne.call(et,Ie)&&rt(Ze,Ie,et[Ie]);return Ze},yt=(Ze,et)=>ft(Ze,qe(et)),dt=(Ze,et,Ie)=>new Promise((je,De)=>{var Xe=vt=>{try{Fe(Ie.next(vt))}catch(wt){De(wt)}},ct=vt=>{try{Fe(Ie.throw(vt))}catch(wt){De(wt)}},Fe=vt=>vt.done?je(vt.value):Promise.resolve(vt.value).then(Xe,ct);Fe((Ie=Ie.apply(Ze,et)).next())}),He=({className:Ze,style:et={},addStyle:Ie={},buttonMaxWidth:je,buttonMaxCount:De=3,buttonAutoWidth:Xe,value:ct,data:Fe,url:vt,onChange:wt,getIAData:Ot,queryInfo:Tt,showParams:xt=!1})=>{var Nt,Rt,Ut,Qt;const or=(0,xe.useDispatch)(),cr=(0,xe.useSelector)(Mt=>Mt==null?void 0:Mt.shixunsDetail),ir=(0,xe.useSelector)(Mt=>Mt==null?void 0:Mt.pathsDetail),[_r]=de.default.useForm(),[Fr,Hr]=(0,ve.useState)(),[Vr,on]=(0,ve.useState)(!1),[yn,Rr]=(0,ve.useState)(!1),[Fn,ni]=(0,ve.useState)(!1),[Hn,Ln]=(0,ve.useState)(null),[qt,er]=(0,ve.useState)([]),[Wt,Vt]=(0,ve.useState)([]),[tr]=(0,xe.useSearchParams)(),mr=(0,xe.useParams)(),Dt={Course:"\u4EC5\u8BFE\u5802\u6559\u5E08\u53EF\u89C1",Subject:"\u4EC5\u6559\u5B66\u56E2\u961F\u53EF\u89C1",Shixun:"\u4EC5\u534F\u4F5C\u8005\u53EF\u89C1"};(0,ve.useEffect)(()=>{cr.actionTabs.key=="\u7F16\u8F91\u667A\u80FD\u5E94\u7528"?Ft(cr.actionTabs.params):cr.actionTabs.key=="\u6DFB\u52A0\u667A\u80FD\u5E94\u7528"&&(_r.setFieldsValue({open_range:0}),Hr({open_range:0}))},[cr.actionTabs.key]);const jt={fileList:Wt,maxCount:1,accept:".jpg,.png",withCredentials:!0,showUploadList:!1,beforeUpload:Mt=>{const zt=Mt.size/1024/1024/100;return zt>2||zt==0?(te.ZP.error(`${Mt.name} \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002${zt==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u56FE\u7247\u5927\u5C0F\u9650\u5236(200MB)"}`),oe.default.LIST_IGNORE):!0},onRemove:Mt=>{Vt([])},onChange:Mt=>{var zt,Yt,br;_r.setFieldsValue({attachment_id:""}),["uploading","done","removed"].includes(Mt.file.status)&&(Vt(Mt.fileList),_r.setFieldsValue({attachment_id:(br=(Yt=(zt=Mt.fileList)==null?void 0:zt[0])==null?void 0:Yt.response)==null?void 0:br.id}))},action:`${we.Z.API_SERVER}/api/attachments.json`},_t=()=>{var Mt,zt;return ve.createElement("div",{className:he.imgUpLoad},ve.createElement("img",{src:we.Z.API_SERVER+"/api/attachments/"+((zt=(Mt=Wt==null?void 0:Wt[0])==null?void 0:Mt.response)==null?void 0:zt.id),alt:"avatar",style:{width:"100%"}}),ve.createElement("div",null,ve.createElement(Se.Z,{onClick:()=>{Vt([]),_r.setFieldsValue({attachment_id:""})},style:{fontSize:"16px",color:"red"}})))},Ct=[{title:"\u5E94\u7528\u540D\u79F0",dataIndex:"name",width:280,ellipsis:{showTitle:!1},render:(Mt,zt)=>ve.createElement(ne.Z,{title:Mt},Mt)},{title:"\u5E94\u7528\u7C7B\u578B",dataIndex:"application_type",render:(Mt,zt)=>(zt==null?void 0:zt.application_type)==="chat_assistant"?"\u804A\u5929\u52A9\u624B":(zt==null?void 0:zt.application_type)==="text_generation"?"\u6587\u672C\u751F\u6210":"\u5DE5\u4F5C\u6D41"},{title:"API\u79D8\u94A5",dataIndex:"api_key",width:280,ellipsis:{showTitle:!1},render:(Mt,zt)=>ve.createElement(ne.Z,{title:Mt,placement:"topLeft"},Mt)},{title:"\u667A\u80FD\u4F53\u5E73\u53F0",dataIndex:"platform",render:(Mt,zt)=>(zt==null?void 0:zt.platform)==="dify"?"Dify":"\u667A\u80FD\u5DE5\u5382"},{title:"\u64CD\u4F5C",width:100,align:"right",render:(Mt,zt)=>ve.createElement(ve.Fragment,null,!(zt!=null&&zt.agent_type)&&ve.createElement("span",{onClick:()=>{or({type:"shixunsDetail/setActionTabs",payload:{key:"\u7F16\u8F91\u667A\u80FD\u5E94\u7528",params:zt}})},className:"current c-light-primary mr15"},"\u7F16\u8F91"),ve.createElement("span",{onClick:()=>{zt!=null&&zt.agent_type?Et(zt):kt(zt)},className:"current c-red"},"\u79FB\u51FA"))}],It=()=>dt(void 0,null,function*(){var Mt;const zt=yield(0,ue.ZP)("/api/ai/intelligent_applications/get_platform.json",{method:"get"});(zt==null?void 0:zt.code)===0&&er((Mt=zt==null?void 0:zt.data)==null?void 0:Mt.platforms)}),Gt=Mt=>dt(void 0,null,function*(){ni(!0);const zt=gt(gt({},Mt),Tt),Yt=yield(0,ue.ZP)(`/api/ai/intelligent_applications${Hn?"/"+Hn.id:""}.json`,{method:Hn?"put":"post",body:zt});(Yt==null?void 0:Yt.status)===0&&(te.ZP.success(Hn?"\u7F16\u8F91\u6210\u529F":"\u6DFB\u52A0\u6210\u529F"),or({type:"shixunsDetail/setActionTabs",payload:{}}),Ot()),ni(!1)}),kt=Mt=>dt(void 0,null,function*(){Rr(!0);const zt=yield(0,ue.ZP)(`/api/ai/intelligent_applications/${Mt==null?void 0:Mt.id}.json`,{method:"delete"});(zt==null?void 0:zt.status)===0&&(te.ZP.success("\u79FB\u9664\u6210\u529F"),Ot()),Rr(!1)}),Et=Mt=>dt(void 0,null,function*(){Rr(!0);let zt={};Tt.item_type==="Shixun"?zt.subject_shixun=!1:zt.subject_assistant=!1;let Yt=yield(0,ue.ZP)("/api/ai/agents/set_agent_applications.json",{method:"post",body:yt(gt({},zt),{agent_ids:[Mt==null?void 0:Mt.id]})});(Yt==null?void 0:Yt.status)===0&&(te.ZP.success("\u79FB\u9664\u6210\u529F"),Ot()),Rr(!1)}),Ft=Mt=>dt(void 0,null,function*(){Ln(Mt),_r.setFieldsValue(gt({},Mt)),Hr(gt({},Mt)),Mt!=null&&Mt.attachment&&Vt([{response:Mt==null?void 0:Mt.attachment}])});return ve.createElement(ve.Fragment,null,ve.createElement(ee.Z,{menu:{items:(Rt=[(((Nt=ir==null?void 0:ir.detail)==null?void 0:Nt.id)||mr.coursesId||tr.get("subject_id"))&&{key:"2",label:ve.createElement("a",{onClick:Mt=>{var zt,Yt;if(Mt.stopPropagation(),Tt.item_type==="Course"){or({type:"pathsDetail/setActionTabs",payload:{key:"\u8BFE\u5802\u667A\u80FD\u52A9\u6559\u9009\u7528",deployable_type:"Subject",item_type:Tt.item_type,deployable_id:(zt=ir==null?void 0:ir.detail)==null?void 0:zt.id}});return}or({type:"pathsDetail/setActionTabs",payload:{key:"\u667A\u80FD\u52A9\u6559\u9009\u7528",deployable_type:"Subject",item_type:Tt.item_type,deployable_id:(Yt=ir==null?void 0:ir.detail)==null?void 0:Yt.id}})}},"\u9009\u7528\u667A\u80FD\u4F53")},{key:"3",label:ve.createElement("a",{onClick:Mt=>{Mt.stopPropagation(),It(),on(!0)}},"\u7BA1\u7406\u81EA\u5B9A\u4E49\u667A\u80FD\u5E94\u7528")}])==null?void 0:Rt.filter(Mt=>!!Mt)}},ve.createElement("div",{className:a()(he.agent,Ze),style:et},ve.createElement("div",{className:he.add,style:Ie,onClick:()=>{}},ve.createElement("i",{className:"iconfont icon-tianjiadaohang"})))),ir.actionTabs.key==="\u667A\u80FD\u52A9\u6559\u9009\u7528"&&ve.createElement(tt,{onOk:Mt=>dt(void 0,null,function*(){var zt;let Yt={};((zt=ir.actionTabs)==null?void 0:zt.item_type)==="Shixun"?Yt.subject_shixun=!0:Yt.subject_assistant=!0;let br=yield(0,ue.ZP)("/api/ai/agents/set_agent_applications.json",{method:"post",body:gt(gt({},Yt),Mt)});return(br==null?void 0:br.status)===0&&(te.ZP.info("\u9009\u7528\u6210\u529F"),or({type:"pathsDetail/setActionTabs",payload:{}}),Ot()),br})}),ir.actionTabs.key==="\u8BFE\u5802\u667A\u80FD\u52A9\u6559\u9009\u7528"&&ve.createElement(ot,{onOk:Mt=>dt(void 0,null,function*(){let zt={subject_assistant:!0},Yt=yield(0,ue.ZP)("/api/ai/agents/set_agent_applications.json",{method:"post",body:gt(gt({},zt),Mt)});return(Yt==null?void 0:Yt.status)===0&&(te.ZP.info("\u9009\u7528\u6210\u529F"),or({type:"pathsDetail/setActionTabs",payload:{}}),Ot()),Yt})}),ve.createElement(se.default,{zIndex:1e3,width:900,centered:!0,title:"\u7BA1\u7406\u81EA\u5B9A\u4E49\u667A\u80FD\u5E94\u7528",open:Vr,footer:null,onCancel:()=>on(!1)},ve.createElement(z.Z,{align:"middle"},ve.createElement(x.ZP,{onClick:()=>{if((Fe==null?void 0:Fe.length)>=De){te.ZP.warning("\u6700\u591A\u540C\u65F6\u652F\u6301\u6DFB\u52A03\u4E2A\u5E94\u7528");return}or({type:"shixunsDetail/setActionTabs",payload:{key:"\u6DFB\u52A0\u667A\u80FD\u5E94\u7528"}})},type:"primary"},"\u7ACB\u5373\u6DFB\u52A0"),ve.createElement("div",{className:"ml10 c-grey-666 font14"},"\u60A8\u53EF\u4EE5\u6DFB\u52A0\u5DF2\u5728\u667A\u80FD\u4F53\u5E73\u53F0\u521B\u5EFA\u5B8C\u6210\u7684\u667A\u80FD\u5E94\u7528")),(Fe==null?void 0:Fe.length)>0?ve.createElement(b.default,{className:"mt20",style:{marginBottom:15},pagination:!1,dataSource:Fe,loading:yn,columns:Ct}):ve.createElement(ce.Z,{customText:"\u6682\u672A\u6DFB\u52A0\u81EA\u5B9A\u4E49\u7684\u667A\u80FD\u5E94\u7528~",styles:{margin:"50px auto"}})),ve.createElement(se.default,{zIndex:1001,width:530,centered:!0,title:ve.createElement(z.Z,{align:"middle"},ve.createElement("b",{className:"font16 c-black"},cr.actionTabs.key)),open:["\u7F16\u8F91\u667A\u80FD\u5E94\u7528","\u6DFB\u52A0\u667A\u80FD\u5E94\u7528"].includes(cr.actionTabs.key),confirmLoading:Fn,onCancel:()=>{or({type:"shixunsDetail/setActionTabs",payload:{}})},onOk:()=>_r.submit(),afterClose:()=>{_r.resetFields(),Ln(null),Vt([])}},ve.createElement(de.default,{form:_r,className:"mt10",labelCol:{span:5},wrapperCol:{span:20},onFinish:Gt,colon:!1,size:"large",labelAlign:"right",onValuesChange:()=>Hr(gt({},_r.getFieldsValue()))},ve.createElement(de.default.Item,{label:"\u667A\u80FD\u4F53\u5E73\u53F0",name:"platform",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u667A\u80FD\u4F53\u5E73\u53F0"}]},ve.createElement(E.default,{placeholder:"\u8BF7\u9009\u62E9\u5E94\u7528\u7C7B\u578B"},qt==null?void 0:qt.map(Mt=>ve.createElement(E.default.Option,{key:Mt==null?void 0:Mt.value,value:Mt==null?void 0:Mt.value},Mt==null?void 0:Mt.name)))),ve.createElement(de.default.Item,{label:"\u5E94\u7528\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D\u79F0"}]},ve.createElement(re.default,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D\u79F0\uFF0C\u6700\u5927\u652F\u630120\u4E2A\u5B57\u7B26",maxLength:20})),ve.createElement(de.default.Item,{name:"attachment_id",label:"\u5E94\u7528\u56FE\u6807",rules:[{required:!1,message:"\u8BF7\u4E0A\u4F20\u5E94\u7528\u56FE\u6807"}]},ve.createElement("div",{className:he.upload},ve.createElement(oe.default,gt({},jt),ve.createElement(z.Z,{wrap:!1,align:"middle"},ve.createElement(ye.op,{style:{borderRadius:"2px"},icon:ve.createElement("i",{className:"iconfont icon-shangchuan3"})},"\u70B9\u51FB\u4E0A\u4F20"),ve.createElement(ae.Z,{style:{marginLeft:"14px",color:"#999999"},onClick:Mt=>{Mt.preventDefault(),Mt.stopPropagation()}},"\u652F\u6301jpg/png\uFF0C\u4E0D\u4E0A\u4F20\u5219\u4F7F\u7528\u9ED8\u8BA4\u56FE\u6807"))),((Qt=(Ut=Wt==null?void 0:Wt[0])==null?void 0:Ut.response)==null?void 0:Qt.id)&&_t())),ve.createElement(de.default.Item,{label:"\u5E94\u7528\u7C7B\u578B",name:"application_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5E94\u7528\u7C7B\u578B"}]},ve.createElement(E.default,{placeholder:"\u8BF7\u9009\u62E9\u5E94\u7528\u7C7B\u578B"},ve.createElement(E.default.Option,{value:"chat_assistant"},"\u804A\u5929\u52A9\u624B"),(Fr==null?void 0:Fr.platform)=="dify"&&ve.createElement(E.default.Option,{value:"text_generation"},"\u6587\u672C\u751F\u6210"),ve.createElement(E.default.Option,{value:"workflow"},"\u5DE5\u4F5C\u6D41"))),xt&&ve.createElement(de.default.Item,{name:"built_variable",label:ve.createElement("div",null,ve.createElement("span",null,"\u53C2\u6570"),ve.createElement(ne.Z,{title:"\u64CD\u4F5C\u8BF4\u660E: \u52FE\u9009\u540E\uFF0C\u8C03\u7528\u667A\u80FD\u4F53\u65F6\u5C06\u9ED8\u8BA4\u643A\u5E26\u5BF9\u5E94\u7684\u5B9E\u9A8C\u4FE1\u606F\uFF0C\u53EF\u5728\u667A\u80FD\u4F53\u4E2D\u901A\u8FC7\u81EA\u5B9A\u4E49\u53C2\u6570\u8FDB\u884C\u5F15\u5165"},ve.createElement("i",{className:"iconfont icon-tishixiaowenhao ml5"})))},ve.createElement(le.default.Group,{options:[{label:"\u9898\u76EE\u63CF\u8FF0\uFF08question_description\uFF09",value:"question_description"},{label:"\u6D4B\u8BD5\u96C6\uFF08test_sets\uFF09",value:"test_sets"},{label:"\u4EE3\u7801\u6587\u4EF6\uFF08code_files\uFF09",value:"code_files"}]})),ve.createElement(de.default.Item,{label:"\u516C\u5F00\u8303\u56F4",name:"open_range"},ve.createElement(fe.ZP.Group,{options:[{value:0,label:Dt[Tt==null?void 0:Tt.item_type]},{value:1,label:"\u6240\u6709\u4EBA\u53EF\u89C1"}]})),ve.createElement(de.default.Item,{className:"mb0",label:"API\u79D8\u94A5",name:"api_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165API\u79D8\u94A5"}]},ve.createElement(re.default,{placeholder:"\u8BF7\u8F93\u5165API\u79D8\u94A5"})),ve.createElement("div",{className:he.tip},ve.createElement("i",{className:"iconfont icon-tishi9"}),ve.createElement("span",null,"\u8BF7\u52A1\u5FC5\u4FDD\u8BC1\u79D8\u94A5\u6B63\u786E\uFF0C\u5426\u5219\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u667A\u80FD\u5E94\u7528")))))}},95532:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return b}});var ve=Ce(59301),Ue=Ce(30641),a=Ce(77019),he=Ce(5269),de={smartWrp:"smartWrp___NjRcB"},te=Ce(50258),oe=Ce(82636),ne=Ce(96935),ee=Ce(59301),se=(E,re,ae)=>new Promise((le,fe)=>{var ce=Se=>{try{ye(ae.next(Se))}catch(we){fe(we)}},ue=Se=>{try{ye(ae.throw(Se))}catch(we){fe(we)}},ye=Se=>Se.done?le(Se.value):Promise.resolve(Se.value).then(ce,ue);ye((ae=ae.apply(E,re)).next())});const z=`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>\u5FEB\u901F\u6392\u5E8F\u6F14\u793A</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 20px;
}
.array-container {
display: flex;
justify-content: center;
align-items: flex-end;
height: 300px;
margin-top: 20px;
}
.bar {
width: 30px;
margin: 0 2px;
background-color: #4caf50;
color: white;
display: flex;
justify-content: center;
align-items: center;
border-radius: 5px;
transition: all 0.3s ease;
}
.bar.sorted {
background-color: #ff9800;
}
.bar.pivot {
background-color: #f44336;
}
</style>
</head>
<body>
<h1>\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A</h1>
<button id="start-sort">\u5F00\u59CB\u6392\u5E8F</button>
<div class="array-container" id="array-container"></div>
<script>
const array = [34, 7, 23, 32, 5, 62]; // \u56FA\u5B9A\u6570\u7EC4
let bars = [];
// \u521D\u59CB\u5316\u6570\u7EC4\u663E\u793A
function initArrayDisplay() {
const container = document.getElementById('array-container');
container.innerHTML = '';
bars = array.map(value => {
const bar = document.createElement('div');
bar.className = 'bar';
bar.style.height = \`\${value * 5}px\`;
bar.textContent = value;
container.appendChild(bar);
return bar;
});
}
// \u9AD8\u4EAE\u67D0\u4E2A\u8303\u56F4\u5185\u7684\u67F1\u5B50
function highlightBars(indices, className) {
indices.forEach(index => bars[index].classList.add(className));
}
// \u79FB\u9664\u9AD8\u4EAE
function removeHighlightBars(indices, className) {
indices.forEach(index => bars[index].classList.remove(className));
}
// \u5FEB\u901F\u6392\u5E8F\u4E3B\u51FD\u6570
async function quickSort(arr, left = 0, right = arr.length - 1) {
if (left >= right) return;
const pivotIndex = await partition(arr, left, right);
await quickSort(arr, left, pivotIndex - 1);
await quickSort(arr, pivotIndex + 1, right);
}
// \u5206\u533A\u51FD\u6570
async function partition(arr, left, right) {
const pivot = arr[right];
let i = left - 1;
highlightBars([right], 'pivot'); // \u9AD8\u4EAE\u57FA\u51C6\u503C
for (let j = left; j < right; j++) {
highlightBars([j], 'sorted'); // \u9AD8\u4EAE\u5F53\u524D\u6BD4\u8F83\u5143\u7D20
await sleep(500);
if (arr[j] <= pivot) {
i++;
[arr[i], arr[j]] = [arr[j], arr[i]];
// \u66F4\u65B0\u67F1\u5B50\u9AD8\u5EA6
bars[i].style.height = \`\${arr[i] * 5}px\`;
bars[i].textContent = arr[i];
bars[j].style.height = \`\${arr[j] * 5}px\`;
bars[j].textContent = arr[j];
await sleep(500);
}
removeHighlightBars([j], 'sorted'); // \u79FB\u9664\u9AD8\u4EAE
}
// \u5C06\u57FA\u51C6\u503C\u653E\u5230\u6B63\u786E\u4F4D\u7F6E
[arr[i + 1], arr[right]] = [arr[right], arr[i + 1]];
bars[i + 1].style.height = \`\${arr[i + 1] * 5}px\`;
bars[i + 1].textContent = arr[i + 1];
bars[right].style.height = \`\${arr[right] * 5}px\`;
bars[right].textContent = arr[right];
removeHighlightBars([right], 'pivot'); // \u79FB\u9664\u57FA\u51C6\u503C\u9AD8\u4EAE
highlightBars([i + 1], 'sorted'); // \u9AD8\u4EAE\u6700\u7EC8\u4F4D\u7F6E
await sleep(500);
removeHighlightBars([i + 1], 'sorted');
return i + 1;
}
// \u5EF6\u8FDF\u51FD\u6570
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
// \u5F00\u59CB\u6392\u5E8F\u6309\u94AE\u70B9\u51FB\u4E8B\u4EF6
document.getElementById('start-sort').addEventListener('click', () => {
quickSort(array);
});
// \u521D\u59CB\u5316\u9875\u9762
initArrayDisplay();
<\/script>
</body>
</html>`;function x({open:E=!0,onChange:re,defaultValue:ae,placement:le,width:fe,height:ce,extra:ue,onDynamic:ye,onOpenChange:Se,showExtra:we=!0}){const xe=(0,ve.useRef)(null),ge=(0,ve.useRef)(null),[_e,be]=(0,ve.useState)(ae||""),[Ae,Te]=(0,ve.useState)(ae||""),[Le,ke]=(0,ve.useState)(!!E),[Pe,Oe]=(0,ve.useState)(1),ze={selectOnLineNumbers:!0};(0,ve.useEffect)(()=>{E&&(be(ae),Te(ae),ke(!0))},[E,ae]),(0,ve.useEffect)(()=>{_e!==""&&(clearTimeout(ge.current),ge.current=setTimeout(()=>{const tt=document.createElement("iframe");if(tt.style.width="100%",tt.style.height="100%",tt.style.border="0",xe.current){xe.current.innerHTML="",xe.current.appendChild(tt);const Me=tt.contentDocument||tt.contentWindow.document;Me.open(),Me.write(_e),Me.close()}},1e3))},[E,_e]);const Ge=tt=>{be(tt),re==null||re(tt,Ae)};return ee.createElement(Ue.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Le,width:"100%",height:ce||"100vh",rootClassName:de.smartWrp,destroyOnClose:!0,onClose:()=>{ke(!1),Se==null||Se(_e)},extra:we&&ee.createElement("div",null,ee.createElement(oe.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Pe,onChange:tt=>Oe(tt)}),ee.createElement(ne.Z,{type:"primary",className:"ml20",onClick:()=>se(this,null,function*(){yield ye(_e,()=>{ke(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ee.createElement(a.Z,{className:"h100"},ee.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Pe===1?"block":"none"}},ee.createElement("div",{className:"h100",ref:xe})),ee.createElement(he.Z,{flex:"1",style:{display:Pe===2?"block":"none"}},ee.createElement(te.ZP,{height:"90vh",value:ae,language:"html",theme:"vs",showMiniMap:!1,options:ze,onChange:Ge}))))}var b=x},12709:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return _e}});var ve=Ce(59301),Ue=Ce(97831),a=Ce(66328),he=Ce(3977),de=Ce(18369),te=Ce(56102),oe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},ne=Ce(6767),ee=Ce(90083),se=Ce(23513),z=Ce(30084),x=Ce(10787),b=Ce(48850),E=Ce(95532),re=Object.defineProperty,ae=Object.defineProperties,le=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,ye=(be,Ae,Te)=>Ae in be?re(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Te}):be[Ae]=Te,Se=(be,Ae)=>{for(var Te in Ae||(Ae={}))ce.call(Ae,Te)&&ye(be,Te,Ae[Te]);if(fe)for(var Te of fe(Ae))ue.call(Ae,Te)&&ye(be,Te,Ae[Te]);return be},we=(be,Ae)=>ae(be,le(Ae)),xe=(be,Ae)=>{var Te={};for(var Le in be)ce.call(be,Le)&&Ae.indexOf(Le)<0&&(Te[Le]=be[Le]);if(be!=null&&fe)for(var Le of fe(be))Ae.indexOf(Le)<0&&ue.call(be,Le)&&(Te[Le]=be[Le]);return Te},_e=({onFinish:be,value:Ae,streamingStatus:Te,cancelIndex:Le,loadImage:ke,onDynamic:Pe,isHiddenHtml:Oe})=>{const[ze,Ge]=(0,ve.useState)(""),[tt,Me]=(0,ve.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[We,it]=(0,ve.useState)(0),[at,$e]=(0,ve.useState)(!1),Je=st=>{const ot=/(```[\s\S]*?```|`[^`]*`)/g;let mt=0,ft="",qe=null;const Be=lt=>(lt=lt.replace(/\$\$([\s\S]*?)\$\$/g,(Ne,rt)=>{const gt=rt.trim();return`<mathx data-text="${gt}">$$${gt}$$</mathx>`}),lt=lt.replace(/\\\[([\s\S]*?[\\_^{}][\s\S]*?)\\\]/g,(Ne,rt)=>{const gt=rt.trim();return`<mathx data-text="${gt}">$$${gt}$$</mathx>`}),lt=lt.replace(/\\\(([\s\S]*?)\\\)/g,(Ne,rt)=>{const gt=rt.trim();return`<mathx data-text="${gt}">$${gt}$</mathx>`}),lt=lt.replace(/\$(?!\$)([^\n$]+?)\$(?!\$)/g,(Ne,rt)=>{const gt=rt.trim();return`<mathx data-text="${gt}">$${gt}$</mathx>`}),lt);for(;(qe=ot.exec(st))!==null;)qe.index>mt&&(ft+=Be(st.slice(mt,qe.index))),ft+=qe[0],mt=qe.index+qe[0].length;return mt<st.length&&(ft+=Be(st.slice(mt))),ft},Ye=()=>{$e(!0),be==null||be()};(0,ve.useEffect)(()=>{const st=ke?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${Ae}`:Ae,ot=Je(st);if(!at)if(ke||!Te||Le>0){Ge(ot),it(ot.length),(!Te||Le>0)&&!ke&&Ye();return}else if((ot==null?void 0:ot.length)<4)Ge(ot),it(ot.length);else if(We<ot.length){const mt=ot.length-We,ft=setInterval(()=>{Ge(ot.slice(0,We+2)),it(qe=>qe+2)},mt>10?Math.max(500/(mt/2),20):50);return()=>clearInterval(ft)}else Te||Ye()},[Ae,Te,Le,ke,We]);const Qe=(0,ve.useMemo)(()=>ve.createElement("section",{className:`${oe.answer} fadeIn animated edu_md`},ve.createElement(Ue.UG,{remarkPlugins:[z.Z,x.Z],rehypePlugins:[se.Z,he.Z],components:{code(st){var ot=st,{node:mt,inline:ft,className:qe,children:Be}=ot,lt=xe(ot,["node","inline","className","children"]);const Ne=/language-(\w+)/.exec(qe||""),rt=String(Be).trim();return ft||!Ne?ve.createElement("code",Se({className:qe},lt),Be):ve.createElement("code",{className:oe.codeCopy,"data-text":`\`\`\`${Ne?Ne[1]:""}
${Be}
\`\`\``},!Oe&&ve.createElement(te.CopyToClipboard,{text:rt,onCopy:()=>ne.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ve.createElement("button",null,"\u590D\u5236")),!Oe&&Ne[1]==="html"&&at&&ve.createElement("button",{className:oe.runCode,onClick:()=>{Me(Se({},we(Se({},tt),{open:++tt.open,defaultValue:rt,language:Ne[1]})))}},"\u8FD0\u884CHTML"),ve.createElement(a.Z,Se({wrapLongLines:!0,style:de.Z,language:Ne[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},lt),rt))},img({node:st}){var ot;const mt=(ot=st.properties)==null?void 0:ot.src;return ve.createElement(ee.Z,{src:mt,width:320,"data-text":mt,onLoad:()=>ke&&setTimeout(()=>Ye(),500)})},a:st=>{var ot=st,{node:mt}=ot,ft=xe(ot,["node"]);return ve.createElement("a",we(Se({},ft),{target:"_blank",rel:"noopener noreferrer"}))}}},at?ze:`${ze}__`)),[ze,at]);return ve.createElement(ve.Fragment,null,ve.createElement(E.Z,{defaultValue:tt.defaultValue,open:tt.open,language:tt.language,height:tt.height,onChange:(st,ot)=>{Ge(ze.replaceAll(ot,st))},onDynamic:Pe}),Qe)}},52516:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return oe}});var ve=Ce(59301),Ue=Ce(65862),a={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj",extraNode:"extraNode___tnBrt",specialImg:"specialImg___yAPav",bubble:"bubble___qNdfF",upImg:"upImg___Mx6QM"},he=Ce(74128),de=Ce(37166),oe=({src:ne,onClick:ee,topPercentage:se=.62,draggableExtraNode:z,showAvatarEditData:x})=>{var b;const E=(0,ve.useRef)(null),re=(0,ve.useRef)(!1),ae=(0,ve.useRef)(!1),[le,fe]=(0,ve.useState)(window.innerHeight*se),[ce,ue]=(0,ve.useState)(!1),ye=10;return(0,ve.useEffect)(()=>{if(E.current){let Se=function(be){var Ae;re.current=!0,_e=be.pageY,ge=be.pageY-(((Ae=E.current)==null?void 0:Ae.getBoundingClientRect().top)||0),(0,Ue.kk)("none"),document.onselectstart=function(){return!1}},we=function(){re.current&&!ae.current&&ee&&ee(),re.current=!1,ae.current=!1,(0,Ue.kk)("auto"),document.onselectstart=null},xe=function(be){var Ae;if(re.current){const Le=be.pageY-ge,ke=window.innerHeight-(((Ae=E.current)==null?void 0:Ae.offsetHeight)||0)-50,Pe=50;if(!ae.current&&Math.abs(_e-be.pageY)>ye&&(ae.current=!0),ae.current){let Oe=Math.max(Pe,Math.min(Le,ke));fe(Oe)}}},ge=0,_e=0;return E.current.addEventListener("mousedown",Se),document.addEventListener("mousemove",xe),document.addEventListener("mouseup",we),()=>{var be,Ae;(Ae=(be=E==null?void 0:E.current)==null?void 0:be.removeEventListener)==null||Ae.call(be,"mousedown",Se),document.removeEventListener("mousemove",xe),document.removeEventListener("mouseup",we)}}},[ee]),(0,ve.useEffect)(()=>{const Se=()=>{fe(window.innerHeight*se)};return window.addEventListener("resize",Se),()=>{window.removeEventListener("resize",Se)}},[se]),ve.createElement("div",{className:a.draggableImage,style:{top:`${le}px`,display:ce?"none":"block",cursor:re.current?"grabbing":"grab"},ref:E},z&&ve.createElement("div",{className:a.extraNode,onMouseUp:Se=>Se.stopPropagation(),onMouseDownCapture:Se=>Se.stopPropagation()},z),x!=null&&x.nickname?ve.createElement("div",{className:a.specialImg},ve.createElement("div",{className:a.bubble},x==null?void 0:x.nickname),ve.createElement("img",{className:a.upImg,src:x!=null&&x.headImgId?((b=he.Z)==null?void 0:b.API_SERVER)+"/api/attachments/"+(x==null?void 0:x.headImgId):de,width:60,draggable:"false"})):ve.createElement("img",{className:a.img,src:ne,width:60,draggable:"false"}),ve.createElement("i",{className:`iconfont icon-tupianguanbi ${a.close}`,onMouseUp:Se=>{Se.stopPropagation(),ue(!0)}}))}},86409:function(bt,pt,Ce){"use strict";Ce.d(pt,{r:function(){return le}});var ve=Ce(59301),Ue=Ce(44104),a=Ce(62957),he=Ce(65862),de=Ce(74128),te=Ce(82636),oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABb0lEQVR4AZxQPUsDQRSc3Xx4Fy9EMATRIIIpFAyCsbIV0cYilfbqb7AL/gVLjRLEwk5bwQRBK2NlejuroKKJwuVyt+u+44Qkd9GQ4719s3MzA2+5vD2YEOXCpVMuNO2bgvyr29f7rfphqvZ+lMvC+7hjixMhkZcShsf1HRIyKqxm1v5+vv84XVgmIVfHquqBirGQ0jEIp5Vofb7cvR3PrVCAptiBivEIjPQaIsY0wnpK50y/oICBzL8iLbmIRGZL9T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z=Ce.n(se),x=Ce(64270),b=Ce.n(x),E=Ce(12709),re=Ce(4676),ae=(fe,ce,ue)=>new Promise((ye,Se)=>{var we=_e=>{try{ge(ue.next(_e))}catch(be){Se(be)}},xe=_e=>{try{ge(ue.throw(_e))}catch(be){Se(be)}},ge=_e=>_e.done?ye(_e.value):Promise.resolve(_e.value).then(we,xe);ge((ue=ue.apply(fe,ce)).next())});const le=fe=>{const ce=[{key:"markdown",name:"\u5BFC\u51FA\u4E3AMarkdown",icon:oe},{key:"word",name:"\u5BFC\u51FA\u4E3AWord",icon:ne}],ue=be=>be==null?"":String(be).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),ye=be=>ae(void 0,null,function*(){return new Promise(Ae=>{const Te=document.createElement("div");Te.style.position="fixed",Te.style.left="-9999px",Te.style.top="0",Te.style.width="720px",document.body.appendChild(Te);let Le=null,ke=!1;const Pe=be==null?void 0:be.trim().startsWith("<img");try{if(Pe){Te.innerHTML=be?`<p style="color:#434D6C;">\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A</p>${be}`:"";const it=Te.querySelector("img");if(it){it.addEventListener("load",()=>{try{const $e=document.createElement("canvas");$e.width=320,$e.height=320;const Je=$e.getContext("2d");Je&&Je.drawImage(it,0,0);const Ye=$e.toDataURL("image/png");it.src=Ye}catch($e){console.error("\u56FE\u7247\u8F6C base64 \u5931\u8D25",$e)}const at=Te.innerHTML;Te.parentNode&&Te.parentNode.removeChild(Te),Ae(at)}),it.addEventListener("error",()=>{const at=Te.innerHTML;Te.parentNode&&Te.parentNode.removeChild(Te),Ae(at)});return}else{const at=Te.innerHTML;Te.parentNode&&Te.parentNode.removeChild(Te),Ae(at);return}}else if(re.render)re.render(ve.createElement(E.Z,{value:be,streamingStatus:!1}),Te);else{Te.innerText=be!=null?be:"";const it=Te.innerHTML;document.body.removeChild(Te),Ae(it);return}}catch(it){console.error("[exportHistory] render Answer failed:",it),Te.innerText=typeof be=="string"?be:String(be!=null?be:"");const at=Te.innerHTML;try{ke&&Le&&Le.unmount?Le.unmount():re.unmountComponentAtNode&&re.unmountComponentAtNode(Te)}catch($e){}document.body.removeChild(Te),Ae(at);return}let Oe=Date.now();const ze=new MutationObserver(()=>{Oe=Date.now()});ze.observe(Te,{childList:!0,subtree:!0,attributes:!0,characterData:!0});const Ge=350,tt=6e3,Me=Date.now(),We=()=>{const it=Date.now();if(it-Oe>Ge){ze.disconnect();const at=Te.innerHTML;try{ke&&Le&&Le.unmount?Le.unmount():re.unmountComponentAtNode&&re.unmountComponentAtNode(Te)}catch($e){}Te.parentNode&&Te.parentNode.removeChild(Te),Ae(at);return}if(it-Me>tt){ze.disconnect();const at=Te.innerHTML;try{ke&&Le&&Le.unmount?Le.unmount():re.unmountComponentAtNode&&re.unmountComponentAtNode(Te)}catch($e){}Te.parentNode&&Te.parentNode.removeChild(Te),Ae(at);return}setTimeout(We,Ge)};setTimeout(We,Ge)})}),Se=be=>z()(be).format("YYYY-MM-DD HH:mm:ss"),we=(be,Ae,Te)=>ae(void 0,null,function*(){return(yield Promise.all(be.map(ke=>ae(void 0,null,function*(){var Pe,Oe;let ze="";try{ze=yield ye(ke.answer)}catch(Ge){console.error("[exportHistory] renderAnswer error:",Ge),ze=ue(String((Pe=ke.answer)!=null?Pe:""))}return`
<div class="message">
<p class="user-name">${ue(Ae)}<span class="timestamp">${Se(ke.updated_at)}</span></p>
<pre class="code">${ue((Oe=ke.question)!=null?Oe:"")}</pre>
</div>
<div class="message">
<p class="user-name">${ue(Te)}</p>
<div class="code">${ze}</div>
</div>
`})))).join("")}),xe=be=>ae(void 0,null,function*(){const Ae=yield we(be.data,be.my_user_name,be.user_name),Te=`export-id-${String(Math.random()).slice(-6)}`,Le=`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
.wrap {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
padding: 20px 20px 0 20px;
background-color: #f9f9f9;
position:fixed;
left: 0;
top: 0;
z-index: 100;
width: 100vw;
height: 100vh;
overflow: auto;
box-sizing: border-box;
}
.message {
margin-bottom: 20px;
padding: 10px;
border-radius: 5px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.user-name {
font-size: 14px;
font-weight: bold;
color: #333;
margin: 0;
}
.timestamp {
display: block;
font-size: 12px;
color: #666;
margin-top: 5px;
}
pre.code {
background-color: #f5f5f5;
padding: 10px;
border-radius: 5px;
overflow-x: auto;
white-space: pre-wrap;
word-wrap: break-word;
margin: 10px 0 0;
}
.code > .animated {
animation-duration: 0s;
}
.code > img {
width: 320px;
}
</style>
</head>
<body>
<div class='wrap' id='${Te}'>
${Ae}
</div>
</body>
</html>
`,ke=document.createElement("div");ke.innerHTML=Le.replace(/box-shadow/g,"// box-shadow"),document.body.appendChild(ke);const Pe=document.getElementById(Te);if(!Pe){console.error("PDF \u5143\u7D20\u672A\u627E\u5230"),ke.parentNode&&ke.parentNode.removeChild(ke);return}Pe.style.width="auto",Pe.style.height="auto",Pe.style.position="initial";try{const ze=(yield b()(Pe,{useCORS:!0,backgroundColor:"#fff"})).toDataURL("image/png"),Ge=document.createElement("a");Ge.href=ze,Ge.download=`\u5386\u53F2\u5BF9\u8BDD-${be.my_user_name}-${z()().format("YYYYMMDDHHmmss")}.png`,Ge.click()}catch(Oe){console.error("[exportHistory] html2canvas error:",Oe)}finally{ke.parentNode&&ke.parentNode.removeChild(ke)}});let ge="markdown";const _e=()=>{const[be,Ae]=(0,ve.useState)(ge);return ge=be,ve.createElement(Ue.Z,{size:30},ce.map(Te=>ve.createElement(te.op,{key:Te.key,style:be===Te.key?{border:"1px solid #165dff",color:"#165dff"}:{},onClick:()=>Ae(Te.key),shape:"default",icon:ve.createElement("img",{src:Te.icon})},Te.name)))};a.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4",width:538,cancelText:"\u53D6\u6D88",title:"\u5BFC\u51FA\u5386\u53F2\u5BF9\u8BDD",content:ve.createElement(_e,null),onOk:()=>ae(void 0,null,function*(){var be,Ae,Te;if(ge==="image"){const ke=yield(0,ee.ZP)(`/api/course_qna_sessions/${fe}.json`,{method:"get"});if((ke==null?void 0:ke.status)===0){const Pe=(Ae=(be=ke==null?void 0:ke.data)==null?void 0:be.messages)==null?void 0:Ae.map(ze=>({updated_at:ze.updated_at,question:ze.question,answer:ze.answer})),Oe={my_user_name:(Te=ke==null?void 0:ke.data)==null?void 0:Te.user_name,user_name:"AI\u56DE\u7B54",data:Pe};yield xe(Oe)}return}const Le=`${de.Z.API_SERVER}/api/course_qna_sessions/${fe}/download_chat_data.json?file_type=${ge}`;(0,he.Nd)(null,Le)})})}},30688:function(bt,pt,Ce){"use strict";var ve=Ce(59301),Ue=Object.defineProperty,a=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,te=(x,b,E)=>b in x?Ue(x,b,{enumerable:!0,configurable:!0,writable:!0,value:E}):x[b]=E,oe=(x,b)=>{for(var E in b||(b={}))he.call(b,E)&&te(x,E,b[E]);if(a)for(var E of a(b))de.call(b,E)&&te(x,E,b[E]);return x},ne=(x,b)=>{var E={};for(var re in x)he.call(x,re)&&b.indexOf(re)<0&&(E[re]=x[re]);if(x!=null&&a)for(var re of a(x))b.indexOf(re)<0&&de.call(x,re)&&(E[re]=x[re]);return E};const ee=Ce(20441),se={};ee.keys().forEach(x=>{const b=x.replace("./","").replace(".svg","");se[b]=ee(x)});const z=x=>{var b=x,{filename:E}=b,re=ne(b,["filename"]),ae;const le=((ae=E==null?void 0:E.split(".").pop())==null?void 0:ae.toLowerCase())||"unknown",fe=se[le]||se.default;return ve.createElement("img",oe({src:fe,alt:le},re))};pt.Z=z},89757:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return mr}});var ve=Ce(59301),Ue=Ce(30641),a=Ce(6767),he=Ce(14566),de=Ce(62957),te=Ce(25399),oe=Ce(37568),ne=Ce(7939),ee=Ce(29787),se=Ce(584),z=Ce(93725),x=Ce(75727),b=Ce(37639),E=Ce(92310),re=Ce.n(E),ae=Ce(12709),le=Ce(10298),fe=Ce(28044),ce={flex_box_center:"flex_box_center___NfmQB",flex_space_between:"flex_space_between___kVtBD",flex_box_vertical_center:"flex_box_vertical_center___EegZo",flex_box_center_end:"flex_box_center_end___Ueaqo",flex_box_column:"flex_box_column___Sd9Zb",loadingPic:"loadingPic___sQWGQ",loading:"loading___ss_U1",dot:"dot___eTny8","dot-fade":"dot-fade___gzUhM",wrap:"wrap___SoLR4",chatContainer:"chatContainer___bSpXP",footerContainer:"footerContainer___IbaJq",btnWrp:"btnWrp___z89PH",btn:"btn___VK3Di",btnActive:"btnActive___en_8L",inputContainer:"inputContainer___q_PRC",uploadBtn:"uploadBtn___fY3BV",sendBtn:"sendBtn____aYXt",sendBtnDisabled:"sendBtnDisabled____WhtC",cancelBtn:"cancelBtn___I91qC",lineFour:"lineFour___t_eBm",fullIcon:"fullIcon___WYjW2",footerContainerSelected:"footerContainerSelected___TV_oq",full:"full___h1vtm",li:"li___DXR9A",avatarIcon:"avatarIcon___EYoqp",img:"img___wrenL",content:"content___NK_Ew",borderBox:"borderBox___UVtN4",text:"text___d_gYw",fileWrap:"fileWrap___kbAp0",file:"file___R5FNg",fileName:"fileName___oTYTw",source:"source___JD93j",action:"action___CTh1w",disabledInput:"disabledInput___rMs3e",backBottom:"backBottom___VIz5U",head:"head___vWC9s",title:"title___l1GaK",headBtn:"headBtn___fGGSq",menuWarp:"menuWarp___Py4k9",menu:"menu___Rpj4l",menuText:"menuText___zGoGw",menuDel:"menuDel___qa0au",active:"active___n_Cfs",draggableWrap:"draggableWrap___u95gi",modal:"modal___Q60Fu",footer:"footer___lxKwN",main:"main____xLI7",files:"files___U6HeB",fileDel:"fileDel___HitRv",inputWrap:"inputWrap___ydzLc",btnWrap:"btnWrap___ENcDO",btnDisabled:"btnDisabled___AFYEZ",uploadDisabledBtn:"uploadDisabledBtn___LslUe",bottomlist:"bottomlist___Unmz9"},ue=Ce(38147),ye=Ce(65862),Se=Ce(52516),we=Ce(37166),xe=Ce(28984),ge=Ce(71986),_e=Ce(74128),be=Ce(56102),Ae=Ce(48530),Te=Ce(30688),Le=Ce(12911),ke=Ce.n(Le),Pe=Ce(37712),Oe=Ce(4676),ze=function(){return ze=Object.assign||function(Dt){for(var jt,_t=1,Ct=arguments.length;_t<Ct;_t++){jt=arguments[_t];for(var It in jt)Object.prototype.hasOwnProperty.call(jt,It)&&(Dt[It]=jt[It])}return Dt},ze.apply(this,arguments)},Ge={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},tt={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Me={width:"20px",height:"20px",position:"absolute",zIndex:1},We={top:ze(ze({},Ge),{top:"-5px"}),right:ze(ze({},tt),{left:void 0,right:"-5px"}),bottom:ze(ze({},Ge),{top:void 0,bottom:"-5px"}),left:ze(ze({},tt),{left:"-5px"}),topRight:ze(ze({},Me),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:ze(ze({},Me),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:ze(ze({},Me),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:ze(ze({},Me),{left:"-10px",top:"-10px",cursor:"nw-resize"})},it=(0,ve.memo)(function(Dt){var jt=Dt.onResizeStart,_t=Dt.direction,Ct=Dt.children,It=Dt.replaceStyles,Gt=Dt.className,kt=(0,ve.useCallback)(function(Mt){jt(Mt,_t)},[jt,_t]),Et=(0,ve.useCallback)(function(Mt){jt(Mt,_t)},[jt,_t]),Ft=(0,ve.useMemo)(function(){return ze(ze({position:"absolute",userSelect:"none"},We[_t]),It!=null?It:{})},[It,_t]);return(0,Pe.jsx)("div",{className:Gt||void 0,style:Ft,onMouseDown:kt,onTouchStart:Et,children:Ct})}),at=function(){var Dt=function(jt,_t){return Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,It){Ct.__proto__=It}||function(Ct,It){for(var Gt in It)Object.prototype.hasOwnProperty.call(It,Gt)&&(Ct[Gt]=It[Gt])},Dt(jt,_t)};return function(jt,_t){if(typeof _t!="function"&&_t!==null)throw new TypeError("Class extends value "+String(_t)+" is not a constructor or null");Dt(jt,_t);function Ct(){this.constructor=jt}jt.prototype=_t===null?Object.create(_t):(Ct.prototype=_t.prototype,new Ct)}}(),$e=function(){return $e=Object.assign||function(Dt){for(var jt,_t=1,Ct=arguments.length;_t<Ct;_t++){jt=arguments[_t];for(var It in jt)Object.prototype.hasOwnProperty.call(jt,It)&&(Dt[It]=jt[It])}return Dt},$e.apply(this,arguments)},Je={width:"auto",height:"auto"},Ye=function(Dt,jt,_t){return Math.max(Math.min(Dt,_t),jt)},Qe=function(Dt,jt,_t){var Ct=Math.round(Dt/jt);return Ct*jt+_t*(Ct-1)},st=function(Dt,jt){return new RegExp(Dt,"i").test(jt)},ot=function(Dt){return!!(Dt.touches&&Dt.touches.length)},mt=function(Dt){return!!((Dt.clientX||Dt.clientX===0)&&(Dt.clientY||Dt.clientY===0))},ft=function(Dt,jt,_t){_t===void 0&&(_t=0);var Ct=jt.reduce(function(Gt,kt,Et){return Math.abs(kt-Dt)<Math.abs(jt[Gt]-Dt)?Et:Gt},0),It=Math.abs(jt[Ct]-Dt);return _t===0||It<_t?jt[Ct]:Dt},qe=function(Dt){return Dt=Dt.toString(),Dt==="auto"||Dt.endsWith("px")||Dt.endsWith("%")||Dt.endsWith("vh")||Dt.endsWith("vw")||Dt.endsWith("vmax")||Dt.endsWith("vmin")?Dt:"".concat(Dt,"px")},Be=function(Dt,jt,_t,Ct){if(Dt&&typeof Dt=="string"){if(Dt.endsWith("px"))return Number(Dt.replace("px",""));if(Dt.endsWith("%")){var It=Number(Dt.replace("%",""))/100;return jt*It}if(Dt.endsWith("vw")){var It=Number(Dt.replace("vw",""))/100;return _t*It}if(Dt.endsWith("vh")){var It=Number(Dt.replace("vh",""))/100;return Ct*It}}return Dt},lt=function(Dt,jt,_t,Ct,It,Gt,kt){return Ct=Be(Ct,Dt.width,jt,_t),It=Be(It,Dt.height,jt,_t),Gt=Be(Gt,Dt.width,jt,_t),kt=Be(kt,Dt.height,jt,_t),{maxWidth:typeof Ct=="undefined"?void 0:Number(Ct),maxHeight:typeof It=="undefined"?void 0:Number(It),minWidth:typeof Gt=="undefined"?void 0:Number(Gt),minHeight:typeof kt=="undefined"?void 0:Number(kt)}},Ne=function(Dt){return Array.isArray(Dt)?Dt:[Dt,Dt]},rt=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],gt="__resizable_base__",yt=function(Dt){at(jt,Dt);function jt(_t){var Ct,It,Gt,kt,Et=Dt.call(this,_t)||this;return Et.ratio=1,Et.resizable=null,Et.parentLeft=0,Et.parentTop=0,Et.resizableLeft=0,Et.resizableRight=0,Et.resizableTop=0,Et.resizableBottom=0,Et.targetLeft=0,Et.targetTop=0,Et.delta={width:0,height:0},Et.appendBase=function(){if(!Et.resizable||!Et.window)return null;var Ft=Et.parentNode;if(!Ft)return null;var Mt=Et.window.document.createElement("div");return Mt.style.width="100%",Mt.style.height="100%",Mt.style.position="absolute",Mt.style.transform="scale(0, 0)",Mt.style.left="0",Mt.style.flex="0 0 100%",Mt.classList?Mt.classList.add(gt):Mt.className+=gt,Ft.appendChild(Mt),Mt},Et.removeBase=function(Ft){var Mt=Et.parentNode;Mt&&Mt.removeChild(Ft)},Et.state={isResizing:!1,width:(It=(Ct=Et.propsSize)===null||Ct===void 0?void 0:Ct.width)!==null&&It!==void 0?It:"auto",height:(kt=(Gt=Et.propsSize)===null||Gt===void 0?void 0:Gt.height)!==null&&kt!==void 0?kt:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},Et.onResizeStart=Et.onResizeStart.bind(Et),Et.onMouseMove=Et.onMouseMove.bind(Et),Et.onMouseUp=Et.onMouseUp.bind(Et),Et}return Object.defineProperty(jt.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Je},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"size",{get:function(){var _t=0,Ct=0;if(this.resizable&&this.window){var It=this.resizable.offsetWidth,Gt=this.resizable.offsetHeight,kt=this.resizable.style.position;kt!=="relative"&&(this.resizable.style.position="relative"),_t=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:It,Ct=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:Gt,this.resizable.style.position=kt}return{width:_t,height:Ct}},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"sizeStyle",{get:function(){var _t=this,Ct=this.props.size,It=function(Et){var Ft;if(typeof _t.state[Et]=="undefined"||_t.state[Et]==="auto")return"auto";if(_t.propsSize&&_t.propsSize[Et]&&(!((Ft=_t.propsSize[Et])===null||Ft===void 0)&&Ft.toString().endsWith("%"))){if(_t.state[Et].toString().endsWith("%"))return _t.state[Et].toString();var Mt=_t.getParentSize(),zt=Number(_t.state[Et].toString().replace("px","")),Yt=zt/Mt[Et]*100;return"".concat(Yt,"%")}return qe(_t.state[Et])},Gt=Ct&&typeof Ct.width!="undefined"&&!this.state.isResizing?qe(Ct.width):It("width"),kt=Ct&&typeof Ct.height!="undefined"&&!this.state.isResizing?qe(Ct.height):It("height");return{width:Gt,height:kt}},enumerable:!1,configurable:!0}),jt.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var _t=this.appendBase();if(!_t)return{width:0,height:0};var Ct=!1,It=this.parentNode.style.flexWrap;It!=="wrap"&&(Ct=!0,this.parentNode.style.flexWrap="wrap"),_t.style.position="relative",_t.style.minWidth="100%",_t.style.minHeight="100%";var Gt={width:_t.offsetWidth,height:_t.offsetHeight};return Ct&&(this.parentNode.style.flexWrap=It),this.removeBase(_t),Gt},jt.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},jt.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},jt.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var _t=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:_t.flexBasis!=="auto"?_t.flexBasis:void 0})}},jt.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},jt.prototype.createSizeForCssProperty=function(_t,Ct){var It=this.propsSize&&this.propsSize[Ct];return this.state[Ct]==="auto"&&this.state.original[Ct]===_t&&(typeof It=="undefined"||It==="auto")?"auto":_t},jt.prototype.calculateNewMaxFromBoundary=function(_t,Ct){var It=this.props.boundsByDirection,Gt=this.state.direction,kt=It&&st("left",Gt),Et=It&&st("top",Gt),Ft,Mt;if(this.props.bounds==="parent"){var zt=this.parentNode;zt&&(Ft=kt?this.resizableRight-this.parentLeft:zt.offsetWidth+(this.parentLeft-this.resizableLeft),Mt=Et?this.resizableBottom-this.parentTop:zt.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(Ft=kt?this.resizableRight:this.window.innerWidth-this.resizableLeft,Mt=Et?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(Ft=kt?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),Mt=Et?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return Ft&&Number.isFinite(Ft)&&(_t=_t&&_t<Ft?_t:Ft),Mt&&Number.isFinite(Mt)&&(Ct=Ct&&Ct<Mt?Ct:Mt),{maxWidth:_t,maxHeight:Ct}},jt.prototype.calculateNewSizeFromDirection=function(_t,Ct){var It=this.props.scale||1,Gt=Ne(this.props.resizeRatio||1),kt=Gt[0],Et=Gt[1],Ft=this.state,Mt=Ft.direction,zt=Ft.original,Yt=this.props,br=Yt.lockAspectRatio,Tr=Yt.lockAspectRatioExtraHeight,Sr=Yt.lockAspectRatioExtraWidth,Ht=zt.width,nr=zt.height,Or=Tr||0,Lr=Sr||0;return st("right",Mt)&&(Ht=zt.width+(_t-zt.x)*kt/It,br&&(nr=(Ht-Lr)/this.ratio+Or)),st("left",Mt)&&(Ht=zt.width-(_t-zt.x)*kt/It,br&&(nr=(Ht-Lr)/this.ratio+Or)),st("bottom",Mt)&&(nr=zt.height+(Ct-zt.y)*Et/It,br&&(Ht=(nr-Or)*this.ratio+Lr)),st("top",Mt)&&(nr=zt.height-(Ct-zt.y)*Et/It,br&&(Ht=(nr-Or)*this.ratio+Lr)),{newWidth:Ht,newHeight:nr}},jt.prototype.calculateNewSizeFromAspectRatio=function(_t,Ct,It,Gt){var kt=this.props,Et=kt.lockAspectRatio,Ft=kt.lockAspectRatioExtraHeight,Mt=kt.lockAspectRatioExtraWidth,zt=typeof Gt.width=="undefined"?10:Gt.width,Yt=typeof It.width=="undefined"||It.width<0?_t:It.width,br=typeof Gt.height=="undefined"?10:Gt.height,Tr=typeof It.height=="undefined"||It.height<0?Ct:It.height,Sr=Ft||0,Ht=Mt||0;if(Et){var nr=(br-Sr)*this.ratio+Ht,Or=(Tr-Sr)*this.ratio+Ht,Lr=(zt-Ht)/this.ratio+Sr,Br=(Yt-Ht)/this.ratio+Sr,wr=Math.max(zt,nr),jr=Math.min(Yt,Or),rr=Math.max(br,Lr),Xt=Math.min(Tr,Br);_t=Ye(_t,wr,jr),Ct=Ye(Ct,rr,Xt)}else _t=Ye(_t,zt,Yt),Ct=Ye(Ct,br,Tr);return{newWidth:_t,newHeight:Ct}},jt.prototype.setBoundingClientRect=function(){var _t=1/(this.props.scale||1);if(this.props.bounds==="parent"){var Ct=this.parentNode;if(Ct){var It=Ct.getBoundingClientRect();this.parentLeft=It.left*_t,this.parentTop=It.top*_t}}if(this.props.bounds&&typeof this.props.bounds!="string"){var Gt=this.props.bounds.getBoundingClientRect();this.targetLeft=Gt.left*_t,this.targetTop=Gt.top*_t}if(this.resizable){var kt=this.resizable.getBoundingClientRect(),Et=kt.left,Ft=kt.top,Mt=kt.right,zt=kt.bottom;this.resizableLeft=Et*_t,this.resizableRight=Mt*_t,this.resizableTop=Ft*_t,this.resizableBottom=zt*_t}},jt.prototype.onResizeStart=function(_t,Ct){if(!(!this.resizable||!this.window)){var It=0,Gt=0;if(_t.nativeEvent&&mt(_t.nativeEvent)?(It=_t.nativeEvent.clientX,Gt=_t.nativeEvent.clientY):_t.nativeEvent&&ot(_t.nativeEvent)&&(It=_t.nativeEvent.touches[0].clientX,Gt=_t.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var kt=this.props.onResizeStart(_t,Ct,this.resizable);if(kt===!1)return}this.props.size&&(typeof this.props.size.height!="undefined"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width!="undefined"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var Et,Ft=this.window.getComputedStyle(this.resizable);if(Ft.flexBasis!=="auto"){var Mt=this.parentNode;if(Mt){var zt=this.window.getComputedStyle(Mt).flexDirection;this.flexDir=zt.startsWith("row")?"row":"column",Et=Ft.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var Yt={original:{x:It,y:Gt,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:$e($e({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(_t.target).cursor||"auto"}),direction:Ct,flexBasis:Et};this.setState(Yt)}},jt.prototype.onMouseMove=function(_t){var Ct=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&ot(_t))try{_t.preventDefault(),_t.stopPropagation()}catch(Pi){}var It=this.props,Gt=It.maxWidth,kt=It.maxHeight,Et=It.minWidth,Ft=It.minHeight,Mt=ot(_t)?_t.touches[0].clientX:_t.clientX,zt=ot(_t)?_t.touches[0].clientY:_t.clientY,Yt=this.state,br=Yt.direction,Tr=Yt.original,Sr=Yt.width,Ht=Yt.height,nr=this.getParentSize(),Or=lt(nr,this.window.innerWidth,this.window.innerHeight,Gt,kt,Et,Ft);Gt=Or.maxWidth,kt=Or.maxHeight,Et=Or.minWidth,Ft=Or.minHeight;var Lr=this.calculateNewSizeFromDirection(Mt,zt),Br=Lr.newHeight,wr=Lr.newWidth,jr=this.calculateNewMaxFromBoundary(Gt,kt);this.props.snap&&this.props.snap.x&&(wr=ft(wr,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(Br=ft(Br,this.props.snap.y,this.props.snapGap));var rr=this.calculateNewSizeFromAspectRatio(wr,Br,{width:jr.maxWidth,height:jr.maxHeight},{width:Et,height:Ft});if(wr=rr.newWidth,Br=rr.newHeight,this.props.grid){var Xt=Qe(wr,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),zr=Qe(Br,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),Nr=this.props.snapGap||0,Qr=Nr===0||Math.abs(Xt-wr)<=Nr?Xt:wr,pn=Nr===0||Math.abs(zr-Br)<=Nr?zr:Br;wr=Qr,Br=pn}var en={width:wr-Tr.width,height:Br-Tr.height};if(this.delta=en,Sr&&typeof Sr=="string"){if(Sr.endsWith("%")){var tn=wr/nr.width*100;wr="".concat(tn,"%")}else if(Sr.endsWith("vw")){var zn=wr/this.window.innerWidth*100;wr="".concat(zn,"vw")}else if(Sr.endsWith("vh")){var Jr=wr/this.window.innerHeight*100;wr="".concat(Jr,"vh")}}if(Ht&&typeof Ht=="string"){if(Ht.endsWith("%")){var tn=Br/nr.height*100;Br="".concat(tn,"%")}else if(Ht.endsWith("vw")){var zn=Br/this.window.innerWidth*100;Br="".concat(zn,"vw")}else if(Ht.endsWith("vh")){var Jr=Br/this.window.innerHeight*100;Br="".concat(Jr,"vh")}}var Xr={width:this.createSizeForCssProperty(wr,"width"),height:this.createSizeForCssProperty(Br,"height")};this.flexDir==="row"?Xr.flexBasis=Xr.width:this.flexDir==="column"&&(Xr.flexBasis=Xr.height);var On=this.state.width!==Xr.width,Qn=this.state.height!==Xr.height,ii=this.state.flexBasis!==Xr.flexBasis,Jn=On||Qn||ii;Jn&&(0,Oe.flushSync)(function(){Ct.setState(Xr)}),this.props.onResize&&Jn&&this.props.onResize(_t,br,this.resizable,en)}},jt.prototype.onMouseUp=function(_t){var Ct,It,Gt=this.state,kt=Gt.isResizing,Et=Gt.direction,Ft=Gt.original;!kt||!this.resizable||(this.props.onResizeStop&&this.props.onResizeStop(_t,Et,this.resizable,this.delta),this.props.size&&this.setState({width:(Ct=this.props.size.width)!==null&&Ct!==void 0?Ct:"auto",height:(It=this.props.size.height)!==null&&It!==void 0?It:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:$e($e({},this.state.backgroundStyle),{cursor:"auto"})}))},jt.prototype.updateSize=function(_t){var Ct,It;this.setState({width:(Ct=_t.width)!==null&&Ct!==void 0?Ct:"auto",height:(It=_t.height)!==null&&It!==void 0?It:"auto"})},jt.prototype.renderResizer=function(){var _t=this,Ct=this.props,It=Ct.enable,Gt=Ct.handleStyles,kt=Ct.handleClasses,Et=Ct.handleWrapperStyle,Ft=Ct.handleWrapperClass,Mt=Ct.handleComponent;if(!It)return null;var zt=Object.keys(It).map(function(Yt){return It[Yt]!==!1?(0,Pe.jsx)(it,{direction:Yt,onResizeStart:_t.onResizeStart,replaceStyles:Gt&&Gt[Yt],className:kt&&kt[Yt],children:Mt&&Mt[Yt]?Mt[Yt]:null},Yt):null});return(0,Pe.jsx)("div",{className:Ft,style:Et,children:zt})},jt.prototype.render=function(){var _t=this,Ct=Object.keys(this.props).reduce(function(kt,Et){return rt.indexOf(Et)!==-1||(kt[Et]=_t.props[Et]),kt},{}),It=$e($e($e({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(It.flexBasis=this.state.flexBasis);var Gt=this.props.as||"div";return(0,Pe.jsxs)(Gt,$e({style:It,className:this.props.className},Ct,{ref:function(kt){kt&&(_t.resizable=kt)},children:[this.state.isResizing&&(0,Pe.jsx)("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},jt.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},jt}(ve.PureComponent);var dt=function(Dt,jt){return dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_t,Ct){_t.__proto__=Ct}||function(_t,Ct){for(var It in Ct)Ct.hasOwnProperty(It)&&(_t[It]=Ct[It])},dt(Dt,jt)};function Ve(Dt,jt){dt(Dt,jt);function _t(){this.constructor=Dt}Dt.prototype=jt===null?Object.create(jt):(_t.prototype=jt.prototype,new _t)}var He=function(){return He=Object.assign||function(jt){for(var _t,Ct=1,It=arguments.length;Ct<It;Ct++){_t=arguments[Ct];for(var Gt in _t)Object.prototype.hasOwnProperty.call(_t,Gt)&&(jt[Gt]=_t[Gt])}return jt},He.apply(this,arguments)};function Ze(Dt,jt){var _t={};for(var Ct in Dt)Object.prototype.hasOwnProperty.call(Dt,Ct)&&jt.indexOf(Ct)<0&&(_t[Ct]=Dt[Ct]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Ct=Object.getOwnPropertySymbols(Dt);It<Ct.length;It++)jt.indexOf(Ct[It])<0&&Object.prototype.propertyIsEnumerable.call(Dt,Ct[It])&&(_t[Ct[It]]=Dt[Ct[It]]);return _t}var et={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},Ie=function(Dt){return{bottom:Dt,bottomLeft:Dt,bottomRight:Dt,left:Dt,right:Dt,top:Dt,topLeft:Dt,topRight:Dt}},je=function(Dt){Ve(jt,Dt);function jt(_t){var Ct=Dt.call(this,_t)||this;return Ct.resizingPosition={x:0,y:0},Ct.offsetFromParent={left:0,top:0},Ct.resizableElement={current:null},Ct.originalPosition={x:0,y:0},Ct.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:_t.maxWidth,maxHeight:_t.maxHeight},Ct.onResizeStart=Ct.onResizeStart.bind(Ct),Ct.onResize=Ct.onResize.bind(Ct),Ct.onResizeStop=Ct.onResizeStop.bind(Ct),Ct.onDragStart=Ct.onDragStart.bind(Ct),Ct.onDrag=Ct.onDrag.bind(Ct),Ct.onDragStop=Ct.onDragStop.bind(Ct),Ct.getMaxSizesFromProps=Ct.getMaxSizesFromProps.bind(Ct),Ct}return jt.prototype.componentDidMount=function(){this.updateOffsetFromParent();var _t=this.offsetFromParent,Ct=_t.left,It=_t.top,Gt=this.getDraggablePosition(),kt=Gt.x,Et=Gt.y;this.draggable.setState({x:kt-Ct,y:Et-It}),this.forceUpdate()},jt.prototype.getDraggablePosition=function(){var _t=this.draggable.state,Ct=_t.x,It=_t.y;return{x:Ct,y:It}},jt.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},jt.prototype.getParentSize=function(){return this.resizable.getParentSize()},jt.prototype.getMaxSizesFromProps=function(){var _t=typeof this.props.maxWidth=="undefined"?Number.MAX_SAFE_INTEGER:this.props.maxWidth,Ct=typeof this.props.maxHeight=="undefined"?Number.MAX_SAFE_INTEGER:this.props.maxHeight;return{maxWidth:_t,maxHeight:Ct}},jt.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},jt.prototype.getOffsetHeight=function(_t){var Ct=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/Ct;case"body":return document.body.offsetHeight/Ct;default:return _t.offsetHeight}},jt.prototype.getOffsetWidth=function(_t){var Ct=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/Ct;case"body":return document.body.offsetWidth/Ct;default:return _t.offsetWidth}},jt.prototype.onDragStart=function(_t,Ct){this.props.onDragStart&&this.props.onDragStart(_t,Ct);var It=this.getDraggablePosition();if(this.originalPosition=It,!!this.props.bounds){var Gt=this.getParent(),kt=this.props.scale,Et;if(this.props.bounds==="parent")Et=Gt;else if(this.props.bounds==="body"){var Ft=Gt.getBoundingClientRect(),Mt=Ft.left,zt=Ft.top,Yt=document.body.getBoundingClientRect(),br=-(Mt-Gt.offsetLeft*kt-Yt.left)/kt,Tr=-(zt-Gt.offsetTop*kt-Yt.top)/kt,Sr=(document.body.offsetWidth-this.resizable.size.width*kt)/kt+br,Ht=(document.body.offsetHeight-this.resizable.size.height*kt)/kt+Tr;return this.setState({bounds:{top:Tr,right:Sr,bottom:Ht,left:br}})}else if(this.props.bounds==="window"){if(!this.resizable)return;var nr=Gt.getBoundingClientRect(),Or=nr.left,Lr=nr.top,Br=-(Or-Gt.offsetLeft*kt)/kt,wr=-(Lr-Gt.offsetTop*kt)/kt,Sr=(window.innerWidth-this.resizable.size.width*kt)/kt+Br,Ht=(window.innerHeight-this.resizable.size.height*kt)/kt+wr;return this.setState({bounds:{top:wr,right:Sr,bottom:Ht,left:Br}})}else typeof this.props.bounds=="string"?Et=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(Et=this.props.bounds);if(!(!(Et instanceof HTMLElement)||!(Gt instanceof HTMLElement))){var jr=Et.getBoundingClientRect(),rr=jr.left,Xt=jr.top,zr=Gt.getBoundingClientRect(),Nr=zr.left,Qr=zr.top,pn=(rr-Nr)/kt,en=Xt-Qr;if(this.resizable){this.updateOffsetFromParent();var tn=this.offsetFromParent;this.setState({bounds:{top:en-tn.top,right:pn+(Et.offsetWidth-this.resizable.size.width)-tn.left/kt,bottom:en+(Et.offsetHeight-this.resizable.size.height)-tn.top,left:pn-tn.left/kt}})}}}},jt.prototype.onDrag=function(_t,Ct){if(this.props.onDrag){var It=this.offsetFromParent,Gt=It.left,kt=It.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDrag(_t,He(He({},Ct),{x:Ct.x+Gt,y:Ct.y+kt}));if(this.props.dragAxis==="x")return this.props.onDrag(_t,He(He({},Ct),{x:Ct.x+Gt,y:this.originalPosition.y+kt,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDrag(_t,He(He({},Ct),{x:this.originalPosition.x+Gt,y:Ct.y+kt,deltaX:0}))}},jt.prototype.onDragStop=function(_t,Ct){if(this.props.onDragStop){var It=this.offsetFromParent,Gt=It.left,kt=It.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDragStop(_t,He(He({},Ct),{x:Ct.x+Gt,y:Ct.y+kt}));if(this.props.dragAxis==="x")return this.props.onDragStop(_t,He(He({},Ct),{x:Ct.x+Gt,y:this.originalPosition.y+kt,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDragStop(_t,He(He({},Ct),{x:this.originalPosition.x+Gt,y:Ct.y+kt,deltaX:0}))}},jt.prototype.onResizeStart=function(_t,Ct,It){_t.stopPropagation(),this.setState({resizing:!0});var Gt=this.props.scale,kt=this.offsetFromParent,Et=this.getDraggablePosition();if(this.resizingPosition={x:Et.x+kt.left,y:Et.y+kt.top},this.originalPosition=Et,this.props.bounds){var Ft=this.getParent(),Mt=void 0;this.props.bounds==="parent"?Mt=Ft:this.props.bounds==="body"?Mt=document.body:this.props.bounds==="window"?Mt=window:typeof this.props.bounds=="string"?Mt=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(Mt=this.props.bounds);var zt=this.getSelfElement();if(zt instanceof Element&&(Mt instanceof HTMLElement||Mt===window)&&Ft instanceof HTMLElement){var Yt=this.getMaxSizesFromProps(),br=Yt.maxWidth,Tr=Yt.maxHeight,Sr=this.getParentSize();if(br&&typeof br=="string")if(br.endsWith("%")){var Ht=Number(br.replace("%",""))/100;br=Sr.width*Ht}else br.endsWith("px")&&(br=Number(br.replace("px","")));if(Tr&&typeof Tr=="string")if(Tr.endsWith("%")){var Ht=Number(Tr.replace("%",""))/100;Tr=Sr.height*Ht}else Tr.endsWith("px")&&(Tr=Number(Tr.replace("px","")));var nr=zt.getBoundingClientRect(),Or=nr.left,Lr=nr.top,Br=this.props.bounds==="window"?{left:0,top:0}:Mt.getBoundingClientRect(),wr=Br.left,jr=Br.top,rr=this.getOffsetWidth(Mt),Xt=this.getOffsetHeight(Mt),zr=Ct.toLowerCase().endsWith("left"),Nr=Ct.toLowerCase().endsWith("right"),Qr=Ct.startsWith("top"),pn=Ct.startsWith("bottom");if((zr||Qr)&&this.resizable){var en=(Or-wr)/Gt+this.resizable.size.width;this.setState({maxWidth:en>Number(br)?br:en})}if(Nr||this.props.lockAspectRatio&&!zr&&!Qr){var en=rr+(wr-Or)/Gt;this.setState({maxWidth:en>Number(br)?br:en})}if((Qr||zr)&&this.resizable){var en=(Lr-jr)/Gt+this.resizable.size.height;this.setState({maxHeight:en>Number(Tr)?Tr:en})}if(pn||this.props.lockAspectRatio&&!Qr&&!zr){var en=Xt+(jr-Lr)/Gt;this.setState({maxHeight:en>Number(Tr)?Tr:en})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(_t,Ct,It)},jt.prototype.onResize=function(_t,Ct,It,Gt){var kt=this,Et={x:this.originalPosition.x,y:this.originalPosition.y},Ft=-Gt.width,Mt=-Gt.height,zt=["top","left","topLeft","bottomLeft","topRight"];zt.includes(Ct)&&(Ct==="bottomLeft"?Et.x+=Ft:(Ct==="topRight"||(Et.x+=Ft),Et.y+=Mt));var Yt=this.draggable.state;(Et.x!==Yt.x||Et.y!==Yt.y)&&(0,Oe.flushSync)(function(){kt.draggable.setState(Et)}),this.updateOffsetFromParent();var br=this.offsetFromParent,Tr=this.getDraggablePosition().x+br.left,Sr=this.getDraggablePosition().y+br.top;this.resizingPosition={x:Tr,y:Sr},this.props.onResize&&this.props.onResize(_t,Ct,It,Gt,{x:Tr,y:Sr})},jt.prototype.onResizeStop=function(_t,Ct,It,Gt){this.setState({resizing:!1});var kt=this.getMaxSizesFromProps(),Et=kt.maxWidth,Ft=kt.maxHeight;this.setState({maxWidth:Et,maxHeight:Ft}),this.props.onResizeStop&&this.props.onResizeStop(_t,Ct,It,Gt,this.resizingPosition)},jt.prototype.updateSize=function(_t){this.resizable&&this.resizable.updateSize({width:_t.width,height:_t.height})},jt.prototype.updatePosition=function(_t){this.draggable.setState(_t)},jt.prototype.updateOffsetFromParent=function(){var _t=this.props.scale,Ct=this.getParent(),It=this.getSelfElement();if(!Ct||It===null)return{top:0,left:0};var Gt=Ct.getBoundingClientRect(),kt=Gt.left,Et=Gt.top,Ft=It.getBoundingClientRect(),Mt=this.getDraggablePosition(),zt=Ct.scrollLeft,Yt=Ct.scrollTop;this.offsetFromParent={left:Ft.left-kt+zt-Mt.x*_t,top:Ft.top-Et+Yt-Mt.y*_t}},jt.prototype.render=function(){var _t=this,Ct=this.props,It=Ct.disableDragging,Gt=Ct.style,kt=Ct.dragHandleClassName,Et=Ct.position,Ft=Ct.onMouseDown,Mt=Ct.onMouseUp,zt=Ct.dragAxis,Yt=Ct.dragGrid,br=Ct.bounds,Tr=Ct.enableUserSelectHack,Sr=Ct.cancel,Ht=Ct.children,nr=Ct.onResizeStart,Or=Ct.onResize,Lr=Ct.onResizeStop,Br=Ct.onDragStart,wr=Ct.onDrag,jr=Ct.onDragStop,rr=Ct.resizeHandleStyles,Xt=Ct.resizeHandleClasses,zr=Ct.resizeHandleComponent,Nr=Ct.enableResizing,Qr=Ct.resizeGrid,pn=Ct.resizeHandleWrapperClass,en=Ct.resizeHandleWrapperStyle,tn=Ct.scale,zn=Ct.allowAnyClick,Jr=Ct.dragPositionOffset,Xr=Ze(Ct,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick","dragPositionOffset"]),On=this.props.default?He({},this.props.default):void 0;delete Xr.default;var Qn=It||kt?{cursor:"auto"}:{cursor:"move"},ii=He(He(He({},et),Qn),Gt),Jn=this.offsetFromParent,Pi=Jn.left,Si=Jn.top,vi;Et&&(vi={x:Et.x-Pi,y:Et.y-Si});var un=this.state.resizing?void 0:vi,ai=this.state.resizing?"both":zt;return(0,ve.createElement)(ke(),{ref:function(Un){Un&&(_t.draggable=Un)},handle:kt?".".concat(kt):void 0,defaultPosition:On,onMouseDown:Ft,onMouseUp:Mt,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:ai,disabled:It,grid:Yt,bounds:br?this.state.bounds:void 0,position:un,enableUserSelectHack:Tr,cancel:Sr,scale:tn,allowAnyClick:zn,nodeRef:this.resizableElement,positionOffset:Jr},(0,ve.createElement)(yt,He({},Xr,{ref:function(Un){Un&&(_t.resizable=Un,_t.resizableElement.current=Un.resizable)},defaultSize:On,size:this.props.size,enable:typeof Nr=="boolean"?Ie(Nr):Nr,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:ii,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:Qr,handleWrapperClass:pn,handleWrapperStyle:en,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:rr,handleClasses:Xt,handleComponent:zr,scale:this.props.scale}),Ht))},jt.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},jt}(ve.PureComponent),De=Ce(86409),Xe=Object.defineProperty,ct=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Tt=(Dt,jt,_t)=>jt in Dt?Xe(Dt,jt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Dt[jt]=_t,xt=(Dt,jt)=>{for(var _t in jt||(jt={}))wt.call(jt,_t)&&Tt(Dt,_t,jt[_t]);if(vt)for(var _t of vt(jt))Ot.call(jt,_t)&&Tt(Dt,_t,jt[_t]);return Dt},Nt=(Dt,jt)=>ct(Dt,Fe(jt)),Rt=(Dt,jt,_t)=>new Promise((Ct,It)=>{var Gt=Ft=>{try{Et(_t.next(Ft))}catch(Mt){It(Mt)}},kt=Ft=>{try{Et(_t.throw(Ft))}catch(Mt){It(Mt)}},Et=Ft=>Ft.done?Ct(Ft.value):Promise.resolve(Ft.value).then(Gt,kt);Et((_t=_t.apply(Dt,jt)).next())}),Qt=({title:Dt="\u5934\u6B4CAI",placeholder:jt,hideUpload:_t,hideInputBox:Ct,aiIcon:It=we,userIcon:Gt=xe,dragIcon:kt=ge,children:Et,fetchUrl:Ft,fetchData:Mt={},extraAnswerAction:zt,showDefaultTips:Yt=!0,onOpen:br,onClose:Tr,loadingOption:Sr,showPreference:Ht=!1,initMessage:nr,customRequest:Or,visible:Lr,width:Br=1200,isCheckRestrictNumber:wr=!1,headNode:jr,headFunctionNode:rr,showRedraw:Xt,showEdit:zr,promptPropName:Nr="prompt",topPercentage:Qr,showSwitchingModel:pn=!1,showImageGenerator:en=!1,showLookHistory:tn=!1,fetchListObject:zn,customPreference:Jr,customDataNode:Xr,showAddSession:On,historyId:Qn,draggableExtraNode:ii,drawerExtraNode:Jn,menuExtraFunctionNode:Pi,showSceneAwareness:Si=!1,showThiking:vi=!1,ReactComponent:un=Ue.Z,topFunctionNode:ai,footerContainerStyle:Un,chatContainerStyle:Pn={},showCodePreview:li=!1,showSource:Ri=!0,onSendMessage:Ii,onDynamic:Ci=()=>{},setSelectItem:qn,isPath:Wn=!1,BottomNode:Ei,BOttomNodeName:so,ysclist:Sn={}})=>{var Rn,Ai,Cn,Bi,Ji,Ni,Ti,Ar,Wr;const[Pr,In]=(0,ve.useState)(!1),[sn,ur]=(0,ve.useState)("qwen-plus-latest"),[Jt,hr]=(0,ve.useState)([]),[dr,Mr]=(0,ve.useState)([]),[Ur,sr]=(0,ve.useState)(!1),[Zr,Gr]=(0,ve.useState)(!1),[an,Gn]=(0,ve.useState)(!1),[kr,nn]=(0,ve.useState)([]),[En,qi]=(0,ve.useState)(""),[is,os]=(0,ve.useState)(0),[Po,Ro]=(0,ve.useState)(void 0),[cn,xo]=(0,ve.useState)(!1),[Fi,ui]=(0,ve.useState)(null),[ao,Hi]=(0,ve.useState)(""),qr=(0,ve.useRef)(),ci=(0,ve.useRef)(null),Yr=(0,ve.useRef)(null),[gi,$i]=(0,ve.useState)(!1),[zi,Io]=(0,ve.useState)(!1),[ss,fa]=(0,ve.useState)(!1),[lo,_o]=(0,ve.useState)(!1),[as,Is]=(0,ve.useState)(!1),[ls,Bo]=(0,ve.useState)(0),uo=(0,ve.useRef)(null),Ui=(0,ve.useRef)(!1),yi=(0,ve.useRef)(null),[bi,So]=(0,ve.useState)(void 0),[Bs,wi]=(0,ve.useState)(!0),[eo,us]=(0,ve.useState)(Br-28),[Na,da]=(0,ve.useState)(!1),[Fa,Ns]=(0,ve.useState)(!0),[Co,co]=(0,ve.useState)([]),Vn=(0,ve.useRef)([]),No=(0,ve.useRef)(null),Fo=(0,ve.useRef)(null),cs=(0,ve.useRef)(!1),Ho=eo-22,Fs=En==null?void 0:En.split(`
`).length,{onAdd:Hs,onGetList:zs,onListClick:Eo,onListDelete:Us,onListDealData:Ws}=zn||{},[Wi,ki]=(0,ve.useState)([]),Ao=50,fo=10,fi={maxCount:Ao,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Jt,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:Lt=>Rt(void 0,null,function*(){var fr,gr,yr,Dr;const Cr=(Dr=(yr=(gr=(fr=Lt==null?void 0:Lt.name)==null?void 0:fr.split("."))==null?void 0:gr.slice(-1))==null?void 0:yr[0])==null?void 0:Dr.toLowerCase(),ln=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Cr);return Lt.size==0?(a.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),he.default.LIST_IGNORE):ln?Lt.size/1024/1024>100?(a.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),he.default.LIST_IGNORE):!0:(a.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),he.default.LIST_IGNORE)}),onChange:({fileList:Lt})=>{hr(Lt)},action:`${(Rn=_e.Z)==null?void 0:Rn.API_SERVER}/api/intelligent_imports/upload_file.json`},Gs={maxCount:fo,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:dr,multiple:!0,accept:".jpg,.png,",beforeUpload:Lt=>{var fr,gr,yr,Dr;const Cr=(Dr=(yr=(gr=(fr=Lt==null?void 0:Lt.name)==null?void 0:fr.split("."))==null?void 0:gr.slice(-1))==null?void 0:yr[0])==null?void 0:Dr.toLowerCase(),ln=["jpg","png"].includes(Cr);return Lt.size==0?(a.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),he.default.LIST_IGNORE):ln?Lt.size/1024/1024>10?(a.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),he.default.LIST_IGNORE):!0:(a.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),he.default.LIST_IGNORE)},onChange:({fileList:Lt})=>{Mr(Lt)},action:`${(Ai=_e.Z)==null?void 0:Ai.API_SERVER}/api/ai/generals/update_file.json`};(0,ve.useEffect)(()=>{if(!kr.length||!qr.current)return;const Lt=kr[kr.length-1];Lt!=null&&Lt.loading&&(qr.current.scrollTop=qr.current.scrollHeight)},[kr.length]),(0,ve.useEffect)(()=>{if(!qr.current||!uo.current)return;const Lt=new IntersectionObserver(([fr])=>{var gr,yr,Dr,Cr;if(!document.contains(fr.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((gr=fr.rootBounds)==null?void 0:gr.width)===0&&((yr=fr.rootBounds)==null?void 0:yr.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((Dr=fr.boundingClientRect)==null?void 0:Dr.width)===0&&((Cr=fr.boundingClientRect)==null?void 0:Cr.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}wi(fr.isIntersecting)},{root:qr.current,rootMargin:"70px",threshold:0});return Lt.observe(uo.current),()=>{uo.current&&Lt.unobserve(uo.current)}},[qr.current,uo.current]),(0,ve.useEffect)(()=>{var Lt,fr,gr;let yr=Object.values(((Lt=Sn==null?void 0:Sn.bot_option_data)==null?void 0:Lt.model_detail_map)||{});(yr==null?void 0:yr.length)>0&&((gr=(fr=yr==null?void 0:yr[0])==null?void 0:fr.name.toLowerCase())!=null&&gr.includes("reasoner"))?Io(!0):Io(!1)},[Sn]),(0,ve.useEffect)(()=>{if(!gi)return;const Lt=qr.current,fr=yi.current;Ui.current=!1;let gr=Lt.scrollTop;const yr=()=>{const{scrollTop:Cr,scrollHeight:fn,clientHeight:ln}=Lt;Cr>gr?Cr+ln>=fn-50&&(Lt.scrollTop=Lt.scrollHeight,Ui.current=!1):Cr<gr&&(Ui.current=!0),gr=Cr};Lt.addEventListener("scroll",yr);const Dr=new ResizeObserver(()=>{Ui.current||(Lt.scrollTop=Lt.scrollHeight)});return Dr.observe(fr),()=>{var Cr;Dr.unobserve(fr),(Cr=Lt==null?void 0:Lt.removeEventListener)==null||Cr.call(Lt,"scroll",yr)}},[gi]),(0,ve.useEffect)(()=>{!gi&&Vn.current.length&&(nn([...kr,...Vn.current]),Vn.current=[])},[gi]),(0,ve.useEffect)(()=>{if(!qr.current)return;const Lt=new ResizeObserver(()=>{var fr;qr.current&&us((fr=qr.current)==null?void 0:fr.offsetWidth)});return Lt.observe(qr.current),()=>{qr.current&&Lt.unobserve(qr.current)}},[qr.current]),(0,ve.useEffect)(()=>{typeof Lr=="boolean"&&In(Lr)},[Lr]),(0,ve.useEffect)(()=>{var Lt;if(ci.current&&Fi!==null){ci.current.focus();const fr=(Lt=ci.current.resizableTextArea)==null?void 0:Lt.textArea;fr&&(fr.selectionStart=fr.selectionEnd=fr.value.length)}},[Fi]),(0,ve.useEffect)(()=>{Fs<5&&xo(!1)},[Fs]),(0,ve.useEffect)(()=>{Pr&&nr&&(nn(di(nr)),sr(!0),Zn(nr,{history:[]})),Pr&&(zo(),Qn?xi(Qn):On&&!bi&&xn()),Pr||Gi()},[Pr]);const di=(Lt="",fr=[],gr=[])=>{const yr=Date.now();return[{text:Lt,key:yr,sender:"user",fileList:fr,imageList:gr,show:!0},{loading:!0,key:yr,sender:"AI",show:!0,model:Mt!=null&&Mt.application_id?"other":sn,imageGenerator:lo,thinkingEnabled:zi,codePreview:ss}]},Gi=()=>{Hi(""),ui(null),hr([]),Mr([]),qi("")},fs=()=>{if(br){br({chatData:kr,setChatData:nn,setLoading:sr,getData:Zn,renderChatItems:di,handleAdd:xn,identifier:bi});return}In(!0)},ds=()=>{if(Ns(!0),Tr){Tr();return}In(!1)},Vs=()=>{xo(!cn)},zo=()=>Rt(void 0,null,function*(){if(!wr)return;const Lt=yield(0,ue.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(Lt==null?void 0:Lt.status)===0&&(Lt==null?void 0:Lt.total_number)!==-1&&(os((Lt==null?void 0:Lt.total_number)-(Lt==null?void 0:Lt.remaining_number)),Ro(Lt==null?void 0:Lt.total_number))}),ha=()=>{de.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:ve.createElement("div",null,ve.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ve.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",Po,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},Uo=Lt=>Lt.reduce((gr,yr)=>{if(yr.sender==="user"&&yr.text){const Dr=Lt.find(Cr=>Cr.key===yr.key&&Cr.sender==="AI");Dr&&(Dr!=null&&Dr.text)&&!(Dr!=null&&Dr.error)&&gr.push({question:yr.text,answer:Dr.text})}return gr},[]),Zn=(...Lt)=>Rt(void 0,[...Lt],function*(fr="",gr={},yr=kr){if(ki([]),Or&&(yield Or({mes:fr,setChatData:nn,fileList:Jt,body:gr,checkNum:zo,setLoading:sr,bodyChatData:yr,setTyping:$i,setImageGenerator:_o,renderChatItems:di})),!Or){const Dr=Jt==null?void 0:Jt.map(vn=>{var Xn;return(Xn=vn==null?void 0:vn.response)==null?void 0:Xn.file_id}),Cr=dr==null?void 0:dr.map(vn=>{var Xn;return(Xn=vn==null?void 0:vn.response)==null?void 0:Xn.data}),fn=gr.history||Uo(yr),ln=xt(xt({identifier:bi,response_mode:"streaming",model:sn,scene_awareness:as,thinking_enabled:zi,image_generator:lo,code_preview:ss,file_ids:Dr,image_list:Cr,history:fn,[Nr]:fr},Mt),gr),An=Object.fromEntries(Object.entries(ln).filter(([vn,Xn])=>Xn!==void 0));Yr.current=new Ae.Z(_e.Z.API_SERVER+Ft,An),yield new Promise((vn,Xn)=>{let vs=null,To=null;Yr.current.on("data",Yi=>{$i(!0);const{chunk:{content:hi,type:_i,created:ko,msg:po}}=Yi,gs=po==="error";_i==="thinking"&&(vs=vs||ko,nn(Mi=>[...Mi].map((Ki,Oi)=>Oi===Mi.length-1?Nt(xt({},Ki),{reasoning:(Ki.reasoning||"")+hi,loading:!1,hideAnswer:!0,error:gs}):Ki))),_i==="text"&&(To=To||ko,nn(Mi=>[...Mi].map((Ki,Oi)=>Oi===Mi.length-1?Nt(xt({},Ki),{text:(Ki.text||"")+hi,loading:!1,startTime:vs,endTime:To,error:gs}):Ki))),_i==="follow_up"&&(ki([]),ki(hi))}),Yr.current.on("done",()=>{vn()}),Yr.current.on("error",Yi=>{let hi="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(Yi)==="[object Object]"&&Yi.status===-9&&(hi=Yi==null?void 0:Yi.message),nn(_i=>[..._i].map((ko,po)=>po===_i.length-1?Nt(xt({},ko),{text:hi,loading:!1,error:!0}):ko)),vn()}),Yr.current.on("cancelled",()=>{vn()}),Yr.current.startStream()})}zo(),sr(!1)}),ho=Lt=>{qi(Lt.target.value)},to=(Lt,fr)=>{if(Gi(),sr(!0),Lt==="edit"){Vn.current=kr.slice(fr+2);const gr=kr.splice(fr),{fileList:yr=[],imageList:Dr=[]}=(gr==null?void 0:gr[0])||{},Cr=yr.map(An=>{var vn;return(vn=An.response)==null?void 0:vn.file_id}),fn=Dr.map(An=>{var vn;return(vn=An.response)==null?void 0:vn.data}),ln={history:Uo(kr),file_ids:Cr,image_list:fn,edit:!0};nn([...kr,...di(ao,yr,Dr)]),Zn(ao,ln,kr)}if(Lt==="redraw"){Vn.current=kr.slice(fr+1);const gr=kr.splice(fr-1),{text:yr,fileList:Dr=[],imageList:Cr=[]}=(gr==null?void 0:gr[0])||{},fn=Dr.map(vn=>{var Xn;return(Xn=vn.response)==null?void 0:Xn.file_id}),ln=Cr.map(vn=>{var Xn;return(Xn=vn.response)==null?void 0:Xn.data}),An={history:Uo(kr),file_ids:fn,image_list:ln,edit:!0};nn([...kr,...di(yr,Dr,Cr)]),Zn(yr,An,kr)}},Wo=()=>{if(En.trim()!==""){Gi(),sr(!0);const Lt=Jt.filter(gr=>gr.status==="done"),fr=dr.filter(gr=>gr.status==="done");nn([...kr,...di(En,Lt,fr)]),Zn(En)}},hs=Lt=>{if(Lt.shiftKey){if(Lt.key==="Enter")return}else if(Lt.key==="Enter"){if(Lt.preventDefault(),Vo||cs.current)return;Wo()}},Zs=(Lt,fr)=>{let gr=!1;zr===!0?gr=!0:zr==="last"&&(gr=kr.reduce((fn,ln,An)=>ln.sender==="user"?An:fn,-1)===fr);const yr=fr===Fi,Dr=[...(Lt==null?void 0:Lt.fileList)||[],...(Lt==null?void 0:Lt.imageList)||[]];return ve.createElement("div",{className:ce.li,style:xt({width:Ho},Pn)},ve.createElement("div",{className:ce.avatarIcon},ve.createElement("img",{className:ce.img,src:Gt})),ve.createElement("div",{className:ce.content},!!(Dr!=null&&Dr.length)&&ve.createElement("div",{className:ce.fileWrap},Dr==null?void 0:Dr.map((Cr,fn)=>ve.createElement("div",{key:fn,className:ce.file},ve.createElement(Te.Z,{filename:Cr==null?void 0:Cr.name,className:"mr10",width:24}),ve.createElement("aside",null,ve.createElement(te.Z,{title:Cr==null?void 0:Cr.name},ve.createElement("div",{className:ce.fileName},Cr==null?void 0:Cr.name)),ve.createElement("div",{className:"c-grey-999 font12"},(0,ye.RD)(Cr==null?void 0:Cr.size)))))),ve.createElement("div",{className:ce.borderBox},yr?ve.createElement(oe.default.TextArea,{value:ao,ref:ci,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Cr=>Hi(Cr.target.value)}):ve.createElement("div",{className:ce.text},Lt==null?void 0:Lt.text)),yr?ve.createElement("div",{className:ce.action},ve.createElement(ne.ZP,{onClick:()=>{Hi(""),ui(null)},size:"small"},"\u53D6\u6D88"),ve.createElement(ne.ZP,{disabled:!ao.trim(),onClick:()=>to("edit",fr),type:"primary",size:"small"},"\u786E\u8BA4")):ve.createElement("div",{className:ce.action},ve.createElement(be.CopyToClipboard,{text:(Lt==null?void 0:Lt.text)||"",onCopy:()=>a.ZP.success("\u590D\u5236\u6210\u529F")},ve.createElement(te.Z,{title:"\u590D\u5236"},ve.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),gr&&!Ur&&ve.createElement(te.Z,{title:"\u7F16\u8F91"},ve.createElement("i",{onClick:()=>{ui(fr),Hi((Lt==null?void 0:Lt.text)||"")},className:"iconfont icon-bianji10 font14"})))))},ps=(Lt,fr)=>{console.log(Lt);let gr=!1;Xt===!0?gr=!0:Xt==="last"&&(gr=kr.reduce((Cr,fn,ln)=>fn.sender==="AI"?ln:Cr,-1)===fr);let yr="";return Lt!=null&&Lt.source?yr=Lt==null?void 0:Lt.source:(Lt==null?void 0:Lt.model)==="deepseek-r1"?yr="\u7531deepseek\u751F\u6210":(Lt==null?void 0:Lt.model)==="qwen-plus-latest"&&(yr="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),ve.createElement("div",{className:ce.li,style:xt({width:Ho},Pn)},ve.createElement("div",{className:ce.avatarIcon},ve.createElement("img",{className:ce.img,src:It})),ve.createElement("div",{className:ce.content},ve.createElement("div",{className:ce.borderBox},Lt.loading&&ve.createElement(ve.Fragment,null,Lt!=null&&Lt.imageGenerator?ve.createElement("div",{className:ce.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",ve.createElement("div",{className:"ai-loading"})):!(Lt!=null&&Lt.thinkingEnabled)&&ve.createElement("div",null,ve.createElement("div",{className:ce.loading},ve.createElement("div",{className:ce.dot}),ve.createElement("div",{className:ce.dot}),ve.createElement("div",{className:ce.dot})),ve.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(Sr==null?void 0:Sr.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(Lt==null?void 0:Lt.thinkingEnabled)&&ve.createElement(le.Z,{time:Lt==null?void 0:Lt.time,cancelIndex:ls,loading:Lt.loading,streamingStatus:!(Lt!=null&&Lt.text),onFinish:()=>{Bo(0),nn(Dr=>[...Dr].map((Cr,fn)=>fn===Dr.length-1?Nt(xt({},Cr),{hideAnswer:!1,time:Cr.startTime?Cr.endTime-Cr.startTime:null}):Cr))},value:Lt==null?void 0:Lt.reasoning}),!!(Lt!=null&&Lt.text)&&!Lt.hideAnswer&&ve.createElement(ae.Z,{onDynamic:Ci,cancelIndex:ls,streamingStatus:Ur,loadImage:!!(Lt!=null&&Lt.imageGenerator),onFinish:()=>Rt(void 0,null,function*(){Bo(0),setTimeout(()=>$i(!1),0)}),value:Lt==null?void 0:Lt.text})),Ri&&!(Lt!=null&&Lt.application_id)&&(Lt==null?void 0:Lt.model)!="other"&&!!(Lt!=null&&Lt.text)&&yr&&ve.createElement("div",{className:ce.source},yr),ve.createElement("div",{className:ce.action},zt==null?void 0:zt(Lt,fr,Xi),!(Lt!=null&&Lt.imageGenerator)&&ve.createElement(be.CopyToClipboard,{text:String((Lt==null?void 0:Lt.text)||""),onCopy:()=>a.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ve.createElement(te.Z,{title:"\u590D\u5236"},ve.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Ht&&!Ur&&ve.createElement(ve.Fragment,null,ve.createElement(te.Z,{title:"\u559C\u6B22"},ve.createElement("i",{style:Lt!=null&&Lt.like?{color:"#FA8D30"}:{},onClick:()=>Vi("like",!(Lt!=null&&Lt.like),fr),className:"iconfot icon-yijiejue font15"})),ve.createElement(te.Z,{title:"\u4E0D\u559C\u6B22"},ve.createElement("i",{style:Lt!=null&&Lt.dislike?{color:"#e86d7c"}:{},onClick:()=>Vi("dislike",!(Lt!=null&&Lt.dislike),fr),className:"iconfot icon-weijiejuezhengchang font15"}))),gr&&!Ur&&ve.createElement(te.Z,{title:"\u91CD\u65B0\u751F\u6210"},ve.createElement("i",{onClick:()=>to("redraw",fr),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},Vi=(Lt,fr,gr)=>Rt(void 0,null,function*(){if(Jr){const yr=kr.slice(0,gr+1),Cr=Uo(yr).length;yield Jr({type:Lt,value:fr,index:gr,identifier:bi,objectIndex:Cr})}nn(yr=>(yr[gr][Lt]=fr,fr&&(yr[gr][Lt==="like"?"dislike":"like"]=!1),[...yr]))}),ro=()=>{var Lt,fr;Bo(1),(fr=(Lt=Yr.current)==null?void 0:Lt.cancelRequest)==null||fr.call(Lt),sr(!1),$i(!1)},xn=()=>Rt(void 0,null,function*(){var Lt,fr,gr;qn({}),ki([]),(fr=(Lt=Yr.current)==null?void 0:Lt.cancelRequest)==null||fr.call(Lt),Gi(),nn([]),sr(!0);const yr=yield Hs();(yr==null?void 0:yr.status)===0&&So((gr=yr==null?void 0:yr.data)==null?void 0:gr.identifier),sr(!1),$i(!1)}),Di=()=>Rt(void 0,null,function*(){var Lt;Gn(!0);const fr=yield zs();(fr==null?void 0:fr.status)===0&&co(((Lt=fr==null?void 0:fr.data)==null?void 0:Lt.list)||[]),Gn(!1)}),xi=(...Lt)=>Rt(void 0,[...Lt],function*(fr=bi){var gr,yr,Dr,Cr,fn;qn({}),ki([]),(yr=(gr=Yr.current)==null?void 0:gr.cancelRequest)==null||yr.call(gr),Gi(),Gr(!0);const ln=yield Eo(fr);if(ln.status===0){const An=Ws(((Dr=ln==null?void 0:ln.data)==null?void 0:Dr.messages)||[]);qn({type:(Cr=ln==null?void 0:ln.data)==null?void 0:Cr.scene_type}),nn(An),Gr(!1),So((fn=ln==null?void 0:ln.data)==null?void 0:fn.identifier);return}nn([]),Gr(!1)}),Go=(Lt,fr)=>Rt(void 0,null,function*(){(yield Us(Lt)).status===0&&(a.ZP.success("\u5220\u9664\u6210\u529F"),fr===bi&&xn(),Di())}),pa=()=>ve.createElement("div",{className:ce.menuWarp},ve.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),ve.createElement(ee.Z,{spinning:an},!Co.length&&ve.createElement(se.Z,{style:{width:250,paddingBottom:30},image:se.Z.PRESENTED_IMAGE_SIMPLE}),!!Co.length&&ve.createElement("div",{className:ce.menu},Co.map(function(Lt,fr){return ve.createElement("aside",{className:re()(bi===Lt.identifier&&ce.active),key:Lt.id,onClick:()=>xi(Lt.id)},ve.createElement("div",{className:ce.menuText},ve.createElement(te.Z,{title:Lt==null?void 0:Lt.question},ve.createElement("span",null,Lt==null?void 0:Lt.question)),Pi&&Pi(Lt)),ve.createElement("div",{className:ce.menuDel,onClick:gr=>gr.stopPropagation()},ve.createElement("i",{onClick:()=>(0,De.r)(Lt.id),className:"iconfont icon-daochubeifen primary-hover font14"})),ve.createElement("div",{className:ce.menuDel,onClick:gr=>gr.stopPropagation()},ve.createElement(z.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>Go(Lt.id,Lt.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},ve.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),ms=Lt=>{if(Lt==="file"){if(dr.length){de.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Mr([]),No.current.upload.uploader.fileInput.click()}});return}No.current.upload.uploader.fileInput.click()}if(Lt==="image"){if(Jt.length){de.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{hr([]),Fo.current.upload.uploader.fileInput.click()}});return}Fo.current.upload.uploader.fileInput.click()}},Zi=[...Jt,...dr],Vo=Zi.some(Lt=>Lt.status==="uploading")||Ur||gi,Xs=is>=Po,Xi={chatData:kr,stream:Yr,isDisabledNum:Xs,isDisAbledUpload:Vo,checkNumModal:ha,checkNum:zo,onClose:ds,setChatData:nn,setLoading:sr,getData:Zn,clearStatus:Gi,typing:gi,setImageGenerator:_o,renderChatItems:di,setSceneAwareness:Is,setIdentifier:So,setCodePreview:fa,setTyping:$i,onMenuClick:xi};return ve.createElement(ve.Fragment,null,Et?ve.createElement("div",{onClick:fs},Et):Et!==null&&!Pr&&ve.createElement(Se.Z,{draggableExtraNode:ii,showAvatarEditData:{nickname:"\u5B9E\u9A8C\u52A9\u6559",headImgId:null},src:kt,onClick:fs,topPercentage:Qr}),Pr&&ve.createElement("div",{className:ce.draggableWrap},ve.createElement(je,{dragHandleClassName:ce.title,bounds:"parent",minHeight:400,maxHeight:window.innerHeight-40,minWidth:736,maxWidth:window.innerWidth-40,resizeHandleStyles:{right:{width:5}},default:{x:window.innerWidth-756,y:20,width:736,height:window.innerHeight-40}},ve.createElement("div",{className:ce.modal},ve.createElement("div",{className:ce.head},ve.createElement("div",{className:ce.title},ve.createElement("b",{className:"c-grey-333 font16"},"\u5B9E\u9A8C\u52A9\u6559"),ve.createElement("span",{className:"c-grey-333 font14"},"\uFF08\u70B9\u51FB\u53EF\u62D6\u52A8\u7A97\u53E3\uFF09")),Jn,pn&&ve.createElement(fe.Z,{value:sn,onChange:Lt=>{Io(!1),_o(!1),ur(Lt),Mr([]),hr([])}}),tn&&ve.createElement(ve.Fragment,null,ve.createElement(x.Z,{className:"ml10",dropdownRender:pa,onOpenChange:Lt=>{Lt&&Di()},placement:"bottomRight",arrow:{pointAtCenter:!0}},ve.createElement("div",{className:ce.headBtn},ve.createElement("i",{className:"icon-lishiduihua1 font14"})))),On&&ve.createElement(ve.Fragment,null,ve.createElement(te.Z,{title:"\u65B0\u5EFA\u5BF9\u8BDD"},ve.createElement("div",{className:ce.headBtn,onClick:xn},ve.createElement("i",{className:"icon-xinjianduihua font14"}))),ve.createElement("div",{style:{height:10,width:1,background:"#D8D8D8"}})),ve.createElement(te.Z,{title:"\u6536\u8D77\u7A97\u53E3"},ve.createElement("div",{className:ce.headBtn,onClick:ds},ve.createElement("i",{className:"icon-suoxiaochuangkou font14"})))),ve.createElement("div",{className:re()(ce.wrap,Pr&&"body-overflow-hidden")},ve.createElement("div",{ref:qr,className:ce.chatContainer},!Wn&&(ai==null?void 0:ai(Xi)),Yt&&ve.createElement("div",{className:`${ce.li} mb20`,style:xt({width:Ho},Pn)},ve.createElement("div",{className:ce.avatarIcon},ve.createElement("img",{className:ce.img,src:It})),ve.createElement("div",{className:ce.content},ve.createElement("div",{className:ce.borderBox},jr,rr==null?void 0:rr(Xi)))),Wn&&(kr==null?void 0:kr.length)<=0&&ve.createElement("div",{style:{textAlign:"center"}},jr,ve.createElement("div",{style:{height:20,width:1}}),Wn&&(ai==null?void 0:ai(Xi))),ve.createElement("div",{ref:yi},ve.createElement(ee.Z,{spinning:Zr,className:"mt20"},kr==null?void 0:kr.map((Lt,fr)=>ve.createElement(ve.Fragment,{key:Lt.key+fr},Lt.show&&ve.createElement(ve.Fragment,null,Lt.sender==="user"&&Zs(Lt,fr),Lt.sender==="AI"&&ps(Lt,fr),Xr&&!["AI","user"].includes(Lt.sender)&&Xr(Lt,fr,{width:Ho})))))),!Bs&&ve.createElement("div",{className:ce.backBottom,onClick:()=>{qr.current.scrollTop=qr.current.scrollHeight}},ve.createElement("i",{className:"iconfont icon-huidaodibu"})),ve.createElement("div",{ref:uo,className:"pl20"}),(Wi==null?void 0:Wi.length)>0&&ve.createElement("div",{style:{display:(Wi==null?void 0:Wi.length)===0&&"none",marginTop:0,maxHeight:300,overflow:"auto",paddingBottom:20,paddingLeft:70}},Wi==null?void 0:Wi.map((Lt,fr)=>ve.createElement("div",{onClick:()=>{sr(!0),ki([]);const gr=Jt.filter(Dr=>Dr.status==="done"),yr=dr.filter(Dr=>Dr.status==="done");nn([...kr,...di(Lt,gr,yr)]),Zn(Lt)},className:ce.bottomlist,style:{marginTop:fr===0?0:10,fontSize:12,height:36,lineHeight:"36px"}},Lt)))),Wn&&(kr==null?void 0:kr.length)<=0&&ve.createElement("div",{style:{display:((Bi=Object.keys(((Cn=Sn==null?void 0:Sn.bot_info)==null?void 0:Cn.onboarding_info)||{}))==null?void 0:Bi.length)===0&&"none",marginTop:20,maxHeight:300,overflow:"auto",paddingLeft:20}},ve.createElement("div",{style:{color:"#333",fontSize:16,whiteSpace:"pre-wrap"}},(Ni=(Ji=Sn==null?void 0:Sn.bot_info)==null?void 0:Ji.onboarding_info)==null?void 0:Ni.prologue),(Wr=(Ar=(Ti=Sn==null?void 0:Sn.bot_info)==null?void 0:Ti.onboarding_info)==null?void 0:Ar.suggested_questions)==null?void 0:Wr.map((Lt,fr)=>ve.createElement("div",{onClick:()=>{sr(!0);const gr=Jt.filter(Dr=>Dr.status==="done"),yr=dr.filter(Dr=>Dr.status==="done");nn([...kr,...di(Lt,gr,yr)]),Zn(Lt)},className:ce.bottomlist},Lt))),Wn&&(kr==null?void 0:kr.length)>0&&ve.createElement("div",{style:{display:"flex",gap:20,marginLeft:20,marginBottom:10}},so&&ve.createElement(ne.ZP,{style:{height:34,borderRadius:20,width:102},ghost:!0,type:"primary"},so),ve.createElement(b.Z,{zIndex:1e3,placement:"topLeft",content:ve.createElement("div",{style:{width:530}},Ei==null?void 0:Ei(Xi)),title:"\u667A\u80FD\u5DE5\u5177"}," ",ve.createElement(ne.ZP,{style:{height:34,borderRadius:20,width:102},icon:ve.createElement("i",{className:"iconfont icon-qita"}),type:"primary",ghost:!0},"\u667A\u80FD\u5DE5\u5177"))),!Ct&&ve.createElement("div",{className:ce.footer},ve.createElement("div",{className:ce.main},!!Zi.length&&ve.createElement("div",{className:ce.files},Zi==null?void 0:Zi.map((Lt,fr)=>ve.createElement("div",{key:fr,className:ce.file},ve.createElement(ee.Z,{size:"small",spinning:(Lt==null?void 0:Lt.status)==="uploading"},ve.createElement(Te.Z,{filename:Lt==null?void 0:Lt.name,className:"block",width:24})),ve.createElement("aside",null,ve.createElement(te.Z,{title:Lt==null?void 0:Lt.name},ve.createElement("div",{className:ce.fileName},Lt==null?void 0:Lt.name)),ve.createElement("div",{className:"c-grey-999 font12"},(0,ye.RD)(Lt==null?void 0:Lt.size))),ve.createElement("i",{onClick:()=>{hr(gr=>gr.filter(yr=>yr.uid!==Lt.uid)),Mr(gr=>gr.filter(yr=>yr.uid!==Lt.uid))},className:`aitubiao icon-tupianguanbi ${ce.fileDel}`})))),ve.createElement("div",{className:ce.inputWrap},ve.createElement(oe.default.TextArea,{placeholder:jt||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u95EE\u9898\u5427\uFF0CShift+Enter\u6362\u884C\uFF5E",value:En,bordered:!1,onChange:ho,onPressEnter:hs,onCompositionStart:()=>{cs.current=!0},onCompositionEnd:()=>{cs.current=!1}}),ve.createElement("div",{className:ce.action},ve.createElement("div",{className:ce.btnWrap},Si&&ve.createElement(te.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},ve.createElement("div",{onClick:()=>Is(!as),className:re()(ce.btn,as&&ce.btnActive)},ve.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),sn==="deepseek-r1"&&vi&&ve.createElement(te.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},ve.createElement("div",{onClick:()=>Io(!zi),className:re()(ce.btn,zi&&ce.btnActive)},ve.createElement("i",{className:"iconfont icon-shendusikao mr10 font14"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),en&&sn==="qwen-plus-latest"&&ve.createElement("div",{onClick:()=>_o(!lo),className:re()(ce.btn,lo&&ce.btnActive)},ve.createElement("i",{className:"aitubiao icon-tuxiangshengcheng1 mr10 font14"}),"\u56FE\u50CF\u751F\u6210")),!_t&&ve.createElement(ve.Fragment,null,ve.createElement(he.default,xt({ref:Fo},Gs),ve.createElement(te.Z,{title:dr.length>=fo?"\u4E0A\u4F20\u7684\u6570\u91CF\u5DF2\u5230\u8FBE\u9650\u5236":"\u6DFB\u52A0\u56FE\u7247"},ve.createElement("div",{onClick:()=>!(dr.length>=fo)&&ms("image"),className:dr.length>=fo?ce.uploadDisabledBtn:ce.uploadBtn},ve.createElement("i",{className:"aitubiao icon-tupianshangchuan font14"})))),ve.createElement(he.default,xt({ref:No},fi),ve.createElement(te.Z,{title:Jt.length>=Ao?"\u4E0A\u4F20\u7684\u6570\u91CF\u5DF2\u5230\u8FBE\u9650\u5236":ve.createElement("div",null,ve.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),ve.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},ve.createElement("div",{onClick:()=>!(Jt.length>=Ao)&&ms("file"),className:Jt.length>=Ao?ce.uploadDisabledBtn:ce.uploadBtn},ve.createElement("i",{className:"aitubiao icon-fujian3 font14"}))))),ve.createElement("div",{className:"mr13"}),gi?ve.createElement(te.Z,{title:"\u505C\u6B62\u751F\u6210"},ve.createElement("div",{className:`iconfont icon-tingzhihuida ${ce.cancelBtn}`,onClick:ro})):ve.createElement(ne.ZP,{className:(En==null?void 0:En.trim())===""?ce.sendBtnDisabled:ce.sendBtn,icon:ve.createElement("i",{className:"iconfont icon-fasong2 font14 c-white"}),disabled:Vo,onClick:Wo}))))))))))},or={bigTipsBox:"bigTipsBox___XRGyw",bigTips:"bigTips___uPRW3",item:"item___KMGDu",editBtn:"editBtn___JiZpD",active:"active___EX5N5",PrevNext:"PrevNext____kcgs",img:"img___X2ms3",imgHover:"imgHover___wIHti",LeftButton:"LeftButton___P5Wge",RightButton:"RightButton___NAbBu"},cr=Ce(65541),ir=Ce(84482),_r=Ce(53842),Fr=Ce(47510),Hr=Ce(82718),Vr=Ce(86784),on=Ce(65582),yn=Object.defineProperty,Rr=Object.defineProperties,Fn=Object.getOwnPropertyDescriptors,ni=Object.getOwnPropertySymbols,Hn=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,qt=(Dt,jt,_t)=>jt in Dt?yn(Dt,jt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Dt[jt]=_t,er=(Dt,jt)=>{for(var _t in jt||(jt={}))Hn.call(jt,_t)&&qt(Dt,_t,jt[_t]);if(ni)for(var _t of ni(jt))Ln.call(jt,_t)&&qt(Dt,_t,jt[_t]);return Dt},Wt=(Dt,jt)=>Rr(Dt,Fn(jt)),Vt=(Dt,jt,_t)=>new Promise((Ct,It)=>{var Gt=Ft=>{try{Et(_t.next(Ft))}catch(Mt){It(Mt)}},kt=Ft=>{try{Et(_t.throw(Ft))}catch(Mt){It(Mt)}},Et=Ft=>Ft.done?Ct(Ft.value):Promise.resolve(Ft.value).then(Gt,kt);Et((_t=_t.apply(Dt,jt)).next())}),mr=({description:Dt,code:jt,showData:_t={},sendParams:Ct={},allShow:It=!1,draggableExtraNode:Gt,singleControl:kt=!1})=>{var Et,Ft;const Mt=(0,on.useDispatch)(),[zt,Yt]=(0,ve.useState)({}),[br,Tr]=(0,ve.useState)([]),[Sr,Ht]=(0,ve.useState)(null),[nr,Or]=(0,ve.useState)(!1),[Lr,Br]=(0,ve.useState)(!0),[wr,jr]=(0,ve.useState)(0),rr=6,Xt=(0,ve.useRef)(null),[zr,Nr]=(0,ve.useState)([]),[Qr,pn]=(0,ve.useState)(""),[en,tn]=(0,ve.useState)(!0),[zn,Jr]=(0,ve.useState)(!0),[Xr,On]=(0,ve.useState)(!0),[Qn,ii]=(0,ve.useState)(!1),[Jn,Pi]=(0,ve.useState)(null),[Si,vi]=(0,ve.useState)(!1),[un]=(0,on.useSearchParams)(),[ai,Un]=(0,ve.useState)(null),[Pn,li]=(0,ve.useState)(),[Ri,Ii]=(0,ve.useState)([]),Ci=Ar=>{if(!Xt.current)return;const Wr=Xt.current,Pr=Wr.children;if(Pr.length===0)return;const ur=Pr[0].getBoundingClientRect().width+22,Jt=Wr.scrollLeft;Ar==="left"?Wr.scrollTo({left:Math.max(0,Jt-ur),behavior:"smooth"}):Wr.scrollTo({left:Jt+ur,behavior:"smooth"}),setTimeout(()=>{qn()},50)},qn=()=>{if(!Xt.current)return;const Ar=Xt.current,Wr=Ar.scrollWidth-Ar.clientWidth;if(console.log(Ar.scrollWidth),console.log(Ar.clientWidth),console.log(Ar.scrollLeft),Wr<=0){Or(!1),Br(!1);return}Or(Ar.scrollLeft>1),Br(Ar.scrollLeft<Wr-1)};(0,ve.useEffect)(()=>{const Ar=Xt.current;if(Ar){const Wr=()=>{requestAnimationFrame(qn)};Ar.addEventListener("scroll",Wr),qn();const Pr=new ResizeObserver(()=>{qn()});return Pr.observe(Ar),()=>{Ar.removeEventListener("scroll",Wr),Pr.disconnect()}}},[Xt.current]);const Wn=[{img:Ce(58427),name:"\u667A\u80FD\u5BA1\u9898",des:"\u5FEB\u901F\u667A\u80FD\u62C6\u89E3\u4EFB\u52A1\uFF0C\u63D0\u4F9B\u89E3\u9898\u601D\u8DEF",description:"",query:Dt,show:_t==null?void 0:_t.ai_exam_question,type:1},{img:Ce(68427),name:"\u8BED\u6CD5\u68C0\u67E5",des:"\u68C0\u6D4B\u4EE3\u7801\u4E2D\u7684\u8BED\u6CD5\u9519\u8BEF\uFF0C\u63D0\u4F9B\u4FEE\u590D\u5EFA\u8BAE",description:"",query:jt,show:_t==null?void 0:_t.ai_syntax_check,type:5},{img:Ce(2195),name:"\u4EE3\u7801\u8BCA\u65AD",des:"\u7CFB\u7EDF\u667A\u80FD\u4EE3\u7801\u5206\u6790\uFF0C\u63D0\u4F9B\u4FEE\u6B63\u5EFA\u8BAE",description:Dt,query:jt,show:_t==null?void 0:_t.ai_code_diagnosis,width:21,type:2},{img:Ce(62849),name:"AI\u8F85\u5BFC",des:"\u4E3A\u5B66\u751F\u63D0\u4F9B\u4E2A\u6027\u5316\u667A\u80FD\u5B66\u4E60\u8F85\u5BFC",description:Dt,query:jt,show:_t==null?void 0:_t.ai_guidance,type:3},{img:Ce(9515),name:"\u4EE3\u7801\u8BC4\u4EF7",des:"\u4ECE\u591A\u4E2A\u7EF4\u5EA6\u5BF9\u4EE3\u7801\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u4E86\u89E3\u4EE3\u7801\u7F3A\u9677",description:Dt,query:jt,show:_t==null?void 0:_t.ai_code_evaluation,type:9},{img:Ce(43214),name:"\u4EE3\u7801\u4F18\u5316",des:"\u5BF9\u4EE3\u7801\u8FDB\u884C\u667A\u80FD\u4F18\u5316\uFF0C\u5E2E\u52A9\u63D0\u5347\u4EE3\u7801\u8D28\u91CF",description:Dt,query:jt,show:_t==null?void 0:_t.ai_code_optimization,type:7},{img:Ce(54269),name:"\u4EE3\u7801\u6CE8\u91CA",des:"\u81EA\u52A8\u5BF9\u5DF2\u6709\u4EE3\u7801\u6DFB\u52A0\u6CE8\u91CA",description:Dt,query:jt,show:_t==null?void 0:_t.ai_code_comment,type:8},kt&&{img:Ce(36645),name:"\u6284\u88AD\u68C0\u6D4B",des:"\u667A\u80FD\u8054\u7F51\u641C\u7D22\uFF0C\u67E5\u627E\u7591\u4F3C\u6284\u88AD\u7684\u94FE\u63A5",description:Dt,query:jt,show:_t==null?void 0:_t.ai_code_comment,type:13,width:25,custom_agent_name:"code_plagiarism"}].filter(Ar=>!!Ar);(0,ve.useEffect)(()=>{(Ct==null?void 0:Ct.source)=="shixun"&&(Ei(),so())},[]);const Ei=()=>Vt(void 0,null,function*(){var Ar,Wr,Pr,In;const sn=yield(0,ue.ZP)("/api/ai/intelligent_applications.json",{method:"get",params:{item_type:"Shixun",item_id:Ct==null?void 0:Ct.shixun_id}});if((sn==null?void 0:sn.status)===0&&(Nr(((Ar=sn==null?void 0:sn.data)==null?void 0:Ar.list)||[]),pn(((Wr=sn==null?void 0:sn.data)==null?void 0:Wr.local_ai_model_url)||""),qn()),un.get("subject_id")){const ur=yield(0,ue.ZP)("/api/ai/agents.json",{method:"get",params:{page:1,per_page:1e3,application_type:"subject_shixun",deployable_id:un.get("subject_id"),deployable_type:"Subject",item_type:"Subject",item_id:un.get("subject_id")}});(ur==null?void 0:ur.status)===0&&(Nr([...(Pr=sn==null?void 0:sn.data)==null?void 0:Pr.list,...(In=ur==null?void 0:ur.data)==null?void 0:In.agents]),qn())}}),so=()=>Vt(void 0,null,function*(){const Ar=yield(0,ue.ZP)("/api/ai/intelligent_applications/teacher_permission.json",{method:"get",params:{item_type:"Shixun",item_id:Ct==null?void 0:Ct.shixun_id}});(Ar==null?void 0:Ar.status)==0&&vi(Ar==null?void 0:Ar.permission)}),Sn=Ar=>{Ht(Ar),Pi(Ar),tn(!Ar),Jr(!Ar),On(!Ar),ii(!!Ar)};function Rn(Ar){return Vt(this,null,function*(){let Wr=yield(0,ue.ZP)(`/api/ai/agents/${Ar}/get_bot_info.json`,{method:"post"});(Wr==null?void 0:Wr.status)===0&&Ii(Wr==null?void 0:Wr.data)})}const Ai=Ar=>Vt(void 0,null,function*(){if(!un.get("subject_id"))return;const Wr=yield(0,ue.ZP)("/api/ai/agents/click.json",{method:"post",body:{deployable_type:"Subject",deployable_id:un.get("subject_id")||"",id:Ar}})}),Cn=Ar=>{const{setChatData:Wr,setLoading:Pr,getData:In,clearStatus:sn,typing:ur,setImageGenerator:Jt,renderChatItems:hr,setSceneAwareness:dr,setIdentifier:Mr}=Ar;let Ur=Wn;return It||(Ur=Wn.filter(sr=>sr.show)),ve.createElement("div",{style:{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:20,marginRight:20,paddingLeft:20}},ve.createElement("div",{className:or.bigTipsBox,style:{width:"100%",marginRight:10}},ve.createElement("div",{ref:Xt,className:or.bigTips,style:{display:"flex",width:"100%",position:"relative",flexWrap:"wrap",gap:20,overflow:"auto"}},Ur.map((sr,Zr)=>ve.createElement(te.Z,{key:Zr,title:sr.des},ve.createElement("div",{onClick:()=>Vt(void 0,null,function*(){var Gr;if([5,2,9,7,8,13].includes(sr.type)&&!sr.query){a.ZP.warning("\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u7F16\u5199\u4EE3\u7801");return}if(Sn(null),ur){a.ZP.warning("\u8BF7\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210");return}dr(!1),Jt(!1),Pr(!0),sn(),Yt(sr);const an=hr(sr.query);an[0].show=!1,an[1].imageGenerator=!1,Wr(an);const Gn=yield Ti.onAdd(),kr=(Gr=Gn==null?void 0:Gn.data)==null?void 0:Gr.identifier;Mr(kr),In("",Wt(er({type:sr.type,description:sr.description,application_id:null,query:sr.query,file_ids:[],history:[],is_chat:sr.type===13,image_generator:!1,scene_awareness:!1,identifier:kr,custom_agent_name:sr.custom_agent_name},Ct),{prompt:_t==null?void 0:_t.ai_code_evaluation_promote}))}),className:or.item,style:{flex:"0 0 auto"}},ve.createElement("img",{src:sr.img,width:sr.width,alt:sr.name}),ve.createElement("span",null,sr.name)))),zr.map(sr=>{var Zr;return ve.createElement(te.Z,{key:sr.id,title:sr!=null&&sr.agent_type?sr==null?void 0:sr.description:`${sr.name}\uFF0C\u9009\u4E2D\u4E4B\u540E\u4E0B\u65B9\u667A\u80FD\u95EE\u7B54\u5C06\u4F7F\u7528\u5BF9\u5E94\u7684\u80FD\u529B`},ve.createElement("div",{className:`${or.item} ${Sr===sr.id?or.active:""}`,key:sr.id,style:{flex:"0 0 auto"},onClick:()=>{Sr===sr.id?(Un(null),Sn(null),li(null),Ii({})):(li(sr.name),sr!=null&&sr.agent_type?(Rn(sr.id),Un(sr.id),Ht(sr.id),ii(!!sr.id),Ai(sr.id)):(Un(null),Sn(sr.id)))}},(sr==null?void 0:sr.can_edit)&&!(sr!=null&&sr.agent_type)&&ve.createElement("i",{className:`iconfont icon-bianjidaibeijing ${or.editBtn}`,onClick:Gr=>{Gr.stopPropagation(),Mt({type:"shixunsDetail/setActionTabs",payload:{key:"\u7F16\u8F91\u667A\u80FD\u5E94\u7528",params:sr}})}}),ve.createElement("img",{src:sr!=null&&sr.agent_type?_e.Z.API_SERVER+((Zr=sr==null?void 0:sr.icon)==null?void 0:Zr.url):sr.attachment_id?`${_e.Z.API_SERVER}/api/attachments/${sr.attachment_id}`:Vr,width:24,height:24,alt:sr.name}),ve.createElement("span",null,sr.name)))}),Si&&ve.createElement(cr.Z,{data:zr,getIAData:()=>Ei(),url:Qr,className:or.inlineAgent,queryInfo:{item_type:"Shixun",item_id:Ct==null?void 0:Ct.shixun_id},showParams:!0}))),ve.createElement("div",{className:or.PrevNext},nr&&ve.createElement("div",{className:or.LeftButton,onClick:sr=>{sr.stopPropagation(),Ci("left")}},ve.createElement("img",{src:ir.Z,alt:"Previous",className:or.img}),ve.createElement("img",{src:Fr.Z,alt:"Previous",className:or.imgHover})),Lr&&ve.createElement("div",{className:or.RightButton,onClick:sr=>{sr.stopPropagation(),Ci("right")}},ve.createElement("img",{src:_r.Z,alt:"Next",className:or.img}),ve.createElement("img",{src:Hr.Z,alt:"Next",className:or.imgHover}))))},Bi=Ar=>Vt(void 0,[Ar],function*({type:Wr,value:Pr,index:In,identifier:sn,objectIndex:ur}){const Jt={index:ur,identifier:sn};if(Wr==="like"&&(yield(0,ue.ZP)("/api/course_qna_records/like.json",{method:"post",body:Jt})).status!==0||Wr==="dislike"&&(yield(0,ue.ZP)("/api/course_qna_records/dislike.json",{method:"post",body:Jt})).status!==0)return Promise.reject()}),Ji=Ar=>{let Wr=[];return Ar==null||Ar.forEach(Pr=>{var In;const sn=Pr.id,ur=Pr.think?{reasoning:Pr.think,thinkingEnabled:!0}:{},Jt=[{text:Pr.question,key:sn,sender:"user",fileList:[],show:!0},Wt(er({key:sn,loading:!1,sender:"AI",show:!0,source:Pr.answer_source,text:Pr.answer,like:Pr.like,dislike:Pr.dislike,time:Pr.think_time,id:Pr.id,imageGenerator:((In=Pr==null?void 0:Pr.answer)==null?void 0:In.slice(0,4))==="<img"},ur),{application_id:Pr.application_id})];Wr=[...Wr,...Jt]}),Wr},Ni=(Ct==null?void 0:Ct.source)==="hack"?"Hack":"Shixun",Ti={onAdd:()=>(0,ue.ZP)("/api/course_qna_sessions/create_session.json",{method:"get"}),onGetList:()=>(0,ue.ZP)("/api/course_qna_sessions.json",{method:"get",params:{questionable_type:Ni,by_self:!0}}),onListClick:Ar=>(0,ue.ZP)(`/api/course_qna_sessions/${Ar}.json`,{method:"get"}),onListDelete:Ar=>(0,ue.ZP)(`/api/course_qna_sessions/${Ar}.json`,{method:"delete"}),onListDealData:Ji};return ve.createElement(Qt,{title:"\u5B9E\u9A8C\u52A9\u6559",hideInputBox:It?!1:!(_t!=null&&_t.ai_q_and_a),topFunctionNode:Cn,showSwitchingModel:!0,showImageGenerator:Xr,showSceneAwareness:en,showThiking:zn,hideUpload:Qn,showPreference:!0,showLookHistory:!0,showAddSession:!0,setSelectItem:Yt,fetchListObject:Ti,customPreference:Bi,BottomNode:Cn,BOttomNodeName:Pn,showDefaultTips:!1,ysclist:Ri,isPath:!0,fetchData:Wt(er(Wt(er({},Ct),{questionable_type:Ni,is_chat:!0,type:zt.type}),zt.type===13?{custom_agent_name:"code_plagiarism"}:{}),{application_id:Jn,agent_id:ai,subject_id:un.get("subject_id")||((Ft=(Et=un.get("backUrl"))==null?void 0:Et.split("/"))==null?void 0:Ft[2])||"",course_id:un.get("coursesId")||"",homework_common_id:un.get("homework_common_id")||""}),headNode:ve.createElement("div",{className:"font14",style:{color:"#434D6C",lineHeight:1.8}},ve.createElement("div",null,"\u55E8\uFF0C\u6211\u662F\u60A8\u7684\u5B9E\u9A8C\u52A9\u6559\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B"),ve.createElement("div",null,"\u60A8\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u6211\u63D0\u4F9B\u7684\u505A\u9898\u5DE5\u5177\u6216\u8005\u4E0E\u6211\u8FDB\u884C\u5BF9\u8BDD\u95EE\u7B54\uFF0C\u671F\u5F85\u4E0E\u60A8\u643A\u624B\u5171\u8FDB\uFF0C\u9AD8\u6548\u3001\u4F18\u8D28\u5730\u5B8C\u6210\u6BCF\u4E00\u9879\u4EFB\u52A1!")),topPercentage:(Ct==null?void 0:Ct.source)==="hack"?.52:void 0,fetchUrl:"/api/stream/intelligent_imports/chat_messages.json",draggableExtraNode:Gt})}},28044:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return Se}});var ve=Ce(59301),Ue={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},a=Ce(44104),he=Object.defineProperty,de=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ne=(we,xe,ge)=>xe in we?he(we,xe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):we[xe]=ge,ee=(we,xe)=>{for(var ge in xe||(xe={}))te.call(xe,ge)&&ne(we,ge,xe[ge]);if(de)for(var ge of de(xe))oe.call(xe,ge)&&ne(we,ge,xe[ge]);return we};const se=we=>React.createElement("svg",ee({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},we),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",x=Object.defineProperty,b=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ae=(we,xe,ge)=>xe in we?x(we,xe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):we[xe]=ge,le=(we,xe)=>{for(var ge in xe||(xe={}))E.call(xe,ge)&&ae(we,ge,xe[ge]);if(b)for(var ge of b(xe))re.call(xe,ge)&&ae(we,ge,xe[ge]);return we};const fe=we=>React.createElement("svg",le({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},we),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var ce="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42NzQgNDUuMzcxYy03LjQwNC00MS44MjYtMzIuMDYtN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LjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",ue=Ce(59301),Se=({value:we,onChange:xe})=>{const[ge,_e]=(0,ve.useState)(!1),be=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-plus-latest",img:z},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:ce}],Ae=be.find(Te=>Te.key===we);return ue.createElement("div",{className:Ue.select},ue.createElement(a.Z,{size:10},ue.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),ue.createElement("div",{className:Ue.box,onMouseLeave:()=>_e(!1)},ue.createElement("div",{className:Ue.text,onClick:()=>_e(!0)},ue.createElement("img",{src:Ae.img,width:20}),ue.createElement("span",null,Ae.name),ue.createElement("b",{className:"iconfont icon-zhankai6"})),ge&&ue.createElement("div",{className:Ue.itemWrap},ue.createElement("aside",null,be.map(Te=>ue.createElement("div",{key:Te.key,className:`${Ue.item} ${Te.key===we?Ue.active:""}`,onClick:Le=>{Le.stopPropagation(),xe(Te.key),_e(!1)}},ue.createElement("img",{src:Te.img,width:20}),ue.createElement("span",null,Te.name))))))))}},10298:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return oe}});var ve=Ce(59301),Ue={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},a=Ce(29787),he=Ce(59301),de=(ne,ee,se)=>new Promise((z,x)=>{var b=ae=>{try{re(se.next(ae))}catch(le){x(le)}},E=ae=>{try{re(se.throw(ae))}catch(le){x(le)}},re=ae=>ae.done?z(ae.value):Promise.resolve(ae.value).then(b,E);re((se=se.apply(ne,ee)).next())}),oe=({value:ne="",streamingStatus:ee,onFinish:se,cancelIndex:z,time:x,loading:b,loadAll:E})=>{const[re,ae]=(0,ve.useState)(""),[le,fe]=(0,ve.useState)(!0),ce=(0,ve.useRef)(ne),ue=(0,ve.useRef)(ee),ye=(0,ve.useRef)(0),Se=(0,ve.useRef)(null),[we,xe]=(0,ve.useState)(!1),ge=70;(0,ve.useEffect)(()=>{ue.current=ee},[ee]),(0,ve.useEffect)(()=>{ce.current=ne},[ne]),(0,ve.useEffect)(()=>{if(!ee){ae(ce.current);return}return xe(!0),Se.current=setInterval(_e,ge),()=>{clearInterval(Se.current)}},[]),(0,ve.useEffect)(()=>{we&&(ae(ce.current),clearInterval(Se.current),xe(!1),se())},[z]);const _e=()=>de(void 0,null,function*(){const be=ce.current[ye.current];be!==void 0?(ae(Ae=>Ae+be),ye.current++,clearInterval(Se.current),Se.current=setInterval(_e,280/(ce.current.length-ye.current))):ue.current===!1&&(ae(ce.current),clearInterval(Se.current),xe(!1),se())});return he.createElement("div",{className:`${Ue.reasoning} fadeIn animated`},he.createElement("div",{className:Ue.btn,onClick:()=>fe(!le)},he.createElement("i",{className:"iconfont icon-shendusikao"}),x?he.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",x," \u79D2\uFF09"):he.createElement("span",null,"\u601D\u8003\u4E2D..."),le?he.createElement("b",{className:"iconfont icon-shouqi6"}):he.createElement("b",{className:"iconfont icon-zhankai6"})),b&&he.createElement(a.Z,{spinning:!0,className:"mt20"}),le&&!b&&he.createElement("div",{className:Ue.content},re,we?he.createElement("span",{className:"aiBlink"},"__"):""))}},35195:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return Te},U:function(){return _e}});var ve=Ce(59301),Ue=Ce(11938),a=Ce(62957),he=Ce(54172),de=Ce(84056),te=Ce(87513),oe=Ce(56656),ne=Ce.n(oe),ee={exitFullScreenModalWrapper:"exitFullScreenModalWrapper___aNB9Q",exitFullScreenModal:"exitFullScreenModal___HIMyY",warningIcon:"warningIcon___xEURa",warningText:"warningText___W6NPJ",countdownWrapper:"countdownWrapper___n8g1M",forcedModalWrapper:"forcedModalWrapper___JPMQ2",forcedModalContent:"forcedModalContent___uY5FV",forcedText:"forcedText___C3CrF",screenNumText:"screenNumText___oljHN"},se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAACwCAYAAAD61gcAAAAAAXNSR0IArs4c6QAAIABJREFUeF7tnQd4XHeZ7n9/zUgzkkZdsiX3XmM7xWlONYE0AsuyEMizwAKbDcuFAMvCXvbuEpwsZeksBNilLZBLKIGQUC+EVEKSTYN0O8W9W26SrK4593nP+X/jvyd2LCeOZMbR88gjz5w59T3v933vV47jpZ+XzsAIngE3gtsqiU3tiaJxFYNMzufZk6ngEZyLSuLARuggXgLcME90FN2aHST34fTQjDeQqplOfqibsp4/QOqjztXcMczVHPWLvQS4g0IgclH0eDm7HvsBmca/pBvI5/OUVZRRXQ9l1bupqHq9c+NvOuiqXlqAlwA3DBBEe655J71lX2F3T0Q64yjLQFkVuHREqttRXfkYVa2nO3fcrmGs7qhe5CXAHeTyR7eSpmHJvQxWH0dqLJSPgXQjpFuIgTe4ISLT42ia8XKXe+vNRzWahnHwLwHuYID7ERWkWUk540k7yNZDZi6kp0OqHIa2RFT1OSa+/H2u7kP/MYxzflQv8hLgDga4X5Ghi6epYAJpIAtk5kB6JpRlIWqPqBp0THrlP7v6D/37UY2mYRz8S4A7KOBmZNjzdAK4lACXhuwCKJ8KzgOuetAx5cJ/drkPvAS4g5zPlwB3MMA9NSPDQ08/TbkxXAYyx0L55MSHi7ZF5Jxj8nn/4qrf9/Fh3ORH9SIvAe5ggLv17Czttz9FJvIMl4XssZCelAAu3x5Rg2Py+f/qqt/7saMaTcM4+JcAdzDA/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Gpzby/NrFk89H0N9C9S6shR23b9dUsq+oSKaJcyg7Wl/tXjVLachi+/gIhz/gBjfH0lKftjF+DBZypz5n7yNYnrZGlVAOWpXpfqt+5XVHVlOOXzYLaes6cp7lsT0KLM6h/2lnqtw8RX/QYumE+Y7XXy6xth/8if6ImB6BgJdpDQ2ujdGnOonKuwunsf2//79VZiDt+futsxb/2re3v1fPQ1TTTant/5lqvbvcZ3dWg/99cOe54/O2Ptf31b2/83OetvD93rpmxapp/vuPXJp9c98j23mXcU3cgy23lQ6qdgowgNPwCCYtZKRJmPlKmFd/M4C19WyTQWCXw/2FPRE8ZCmprAAAAAElFTkSuQmCC",x=Ce(65862),b=Ce(65582),E=Ce(65808),re=Ce(59301),ae=Object.defineProperty,le=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,Se=(Le,ke,Pe)=>ke in Le?ae(Le,ke,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Le[ke]=Pe,we=(Le,ke)=>{for(var Pe in ke||(ke={}))ue.call(ke,Pe)&&Se(Le,Pe,ke[Pe]);if(ce)for(var Pe of ce(ke))ye.call(ke,Pe)&&Se(Le,Pe,ke[Pe]);return Le},xe=(Le,ke)=>le(Le,fe(ke)),ge=(Le,ke,Pe)=>new Promise((Oe,ze)=>{var Ge=We=>{try{Me(Pe.next(We))}catch(it){ze(it)}},tt=We=>{try{Me(Pe.throw(We))}catch(it){ze(it)}},Me=We=>We.done?Oe(We.value):Promise.resolve(We.value).then(Ge,tt);Me((Pe=Pe.apply(Le,ke)).next())});const _e=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],{Countdown:be}=Ue.default,Ae=({exercise:Le,socket:ke,dispatch:Pe,onStartScreenshot:Oe,onCloseScreenshot:ze,handleToDetail:Ge})=>{const[tt,Me]=a.default.useModal(),We=(0,ve.useRef)(),[it,at]=(0,ve.useState)(!0),$e=(0,ve.useRef)(!1),Je=(0,b.useParams)();(0,ve.useEffect)(()=>{var Ze,et,Ie;if(document.addEventListener((0,de.gH)(),Ve,!1),window.addEventListener("blur",yt,!1),(Ze=Le.exerciseUserInfo)!=null&&Ze.screen_open&&(0,de.vp)()&&at(!1),(et=Le.exerciseUserInfo)!=null&&et.screen_open&&!(0,de.vp)()){(0,x.RG)(" ",!0);const je=document.domain==="kepukehuan.educoder.net"?30:localStorage.getItem("Refresh")==="1"?Le.exerciseUserInfo.screen_sec+3:Le.exerciseUserInfo.screen_sec+10+1;We.current=a.default.info({icon:null,centered:!0,width:444,title:(0,E._V)(E.CP.recordScreen1),keyboard:!1,content:re.createElement("div",null,(0,E._V)(E.CP.recordScreen2),re.createElement("span",{style:{color:"#FF9849"}},Le.exerciseUserInfo.screen_num-Le.exerciseUserInfo.used_screen_num),(0,E._V)(E.CP.recordScreen3)),okText:re.createElement("span",null,(0,E._V)(E.CP.recordScreen4),"\uFF08",re.createElement("span",{style:{display:"inline-block"}},re.createElement(be,{onFinish:()=>ge(void 0,null,function*(){var De;const Xe=yield dt();(De=We.current)==null||De.destroy(),Xe.used_screen_num&&Ne(Xe.used_screen_num+1)}),valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+je*1e3})),"S\uFF09"),onOk:()=>{var De;(0,x.RG)(" ",!0),(De=We.current)==null||De.destroy(),at(!1),(0,de.Dj)(document.body),document.getElementById("root").addEventListener("click",Qe,!1)}})}return(Ie=Le.exerciseUserInfo)!=null&&Ie.screen_open&&!(0,de.vp)()||document.getElementById("root").addEventListener("click",Qe,!1),()=>{document.getElementById("root").removeEventListener("click",Qe,!1),document.removeEventListener((0,de.gH)(),Ve,!1),window.removeEventListener("blur",yt,!1)}},[]),(0,ve.useEffect)(()=>{setTimeout(()=>{Le.actionTabs.removeEventListenerExitScreen&&(document.getElementById("root").removeEventListener("click",Qe,!1),document.removeEventListener((0,de.gH)(),Ve,!1))},500),st()},[Le.actionTabs]),(0,ve.useEffect)(()=>{setTimeout(()=>{Le.exerciseUserInfo.used_screen_num>Le.exerciseUserInfo.screen_num&&rt()},500)},[Le.exerciseUserInfo]);const Ye=()=>ge(void 0,null,function*(){const Ze=yield dt();setTimeout(()=>{var et,Ie;(et=We.current)==null||et.destroy(),We.current=a.default.info({okText:re.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:re.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",re.createElement("span",{className:"c-red"},Ze.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",re.createElement("span",{className:"c-red"},(Ie=Le.exerciseUserInfo)==null?void 0:Ie.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:()=>ge(void 0,null,function*(){(0,de.Dj)(document.body)})})},1e3)}),Qe=Ze=>{!(0,de.vp)()&&Ze.target.nodeName!=="A"&&Ze.target.nodeName!=="BUTTON"&&Ze.target.innerHTML!=="\u786E \u5B9A"&&(0,de.Dj)(document.body)},st=()=>ge(void 0,null,function*(){const Ze=yield Pe({type:"exercise/getExerciseUserInfo",payload:we({},Je)});return Ze==null?void 0:Ze.data}),ot=Ze=>ge(void 0,null,function*(){var et;if((et=Le.exerciseUserInfo)!=null&&et.screen_at){const je=yield(0,te.ck)(xe(we({},Je),{reset:!0}));if((je==null?void 0:je.status)===-6)return}const Ie=yield(0,te.oy)({id:Je.categoryId});if(Ie!=null&&Ie.is_commit){a.default.destroyAll(),yield mt(),gt(!0);return}else Ne(Ze+1)}),mt=()=>ge(void 0,null,function*(){var Ze;const et=ne()(),Ie=Le.exerciseUserInfo.screen_sec;if(Be.current.length>0){const je=et.format("YYYY-MM-DD HH:mm:ss");let De=Math.floor(et.diff(ne()(Be.current[0].start))/1e3);const Xe=Be.current.length;De/Ie>>0>Xe&&(De=(Xe+1)*Ie-1),yield(0,te.P8)(Je.categoryId,{exercise_user_id:(Ze=Le.exerciseUserInfo)==null?void 0:Ze.exercise_user_id,time:je,time_long:De,count:Xe})}Be.current=[]}),ft=(0,ve.useRef)(0),qe=(0,ve.useRef)(0),Be=(0,ve.useRef)([]),lt=(0,ve.useRef)(!1),Ne=Ze=>ge(void 0,null,function*(){var et;$e.current||(Oe(),a.default.destroyAll(),ft.current=ne()().valueOf(),lt.current=!0,We.current=a.default.info({icon:null,maskClosable:!1,width:1080,keyboard:!1,centered:!0,className:ee.exitFullScreenModalWrapper,okText:re.createElement("span",null,(0,E._V)(E.CP.recordScreen8)),content:re.createElement("div",{className:ee.exitFullScreenModal},re.createElement("img",{src:se,alt:"",className:ee.warningIcon}),re.createElement("div",{className:ee.warningText,style:{marginBottom:50,fontWeight:500}},(0,E._V)(E.CP.recordScreen9)),re.createElement("div",{style:{marginBottom:40}},(0,E._V)(E.CP.recordScreen10)),re.createElement("div",{style:{marginBottom:40}},(0,E._V)(E.CP.recordScreen11),re.createElement("span",{className:ee.warningText},((et=Le.exerciseUserInfo)==null?void 0:et.screen_num)+1),(0,E._V)(E.CP.recordScreen12),re.createElement("span",{className:ee.warningText,style:{fontWeight:600}},(0,E._V)(E.CP.recordScreen13)),",",(0,E._V)(E.CP.recordScreen14),re.createElement("span",{className:ee.warningText},Ze-1),(0,E._V)(E.CP.recordScreen15)),re.createElement("div",null,re.createElement("span",null,re.createElement(be,{className:ee.countdownWrapper,onFinish:()=>{qe.current=ne()().valueOf(),Be.current.push({start:ft.current,end:qe.current}),ot(Ze)},valueStyle:{fontSize:30,color:"#165DFF"},format:"ss",value:Date.now()+(Le.exerciseUserInfo.screen_sec+1)*1e3}),(0,E._V)(E.CP.recordScreen25)),(0,E._V)(E.CP.recordScreen16))),onOk:()=>{(0,x.RG)(" ",!0),mt(),(0,de.Dj)(document.body),ze(),We.current.destroy(),lt.current=!1}}))}),rt=()=>ge(void 0,null,function*(){a.default.destroyAll(),(yield(0,te.VL)({categoryId:Je.categoryId,commit_method:1}))&&gt()}),gt=(Ze=!1)=>ge(void 0,null,function*(){var et,Ie;if(document.removeEventListener((0,de.gH)(),Ve,!1),(0,de.BU)(),a.default.destroyAll(),$e.current=!0,Ze){const je=yield(0,te.Yu)(Je.categoryId,{exercise_user_id:(et=Le.exerciseUserInfo)==null?void 0:et.exercise_user_id});tt.confirm({icon:null,closable:!1,maskClosable:!1,okText:"\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5",cancelText:"\u8FD4\u56DE",width:616,className:ee.forcedModalWrapper,centered:!0,content:re.createElement("div",{className:ee.forcedModalContent},re.createElement("img",{src:z,alt:""}),re.createElement("div",{className:ee.forcedText},(0,E._V)(E.CP.recordScreen17)),re.createElement("div",{className:ee.screenNumText},(0,E._V)(E.CP.recordScreen18),(Ie=Le.exerciseUserInfo)==null?void 0:Ie.screen_num,(0,E._V)(E.CP.recordScreen19)),re.createElement(he.default,{dataSource:je==null?void 0:je.data,pagination:!1,rowKey:"time",bordered:!0,columns:[{title:(0,E._V)(E.CP.recordScreen20),align:"center",dataIndex:"time"},{title:(0,E._V)(E.CP.recordScreen21),align:"center",dataIndex:"time_long"},{title:(0,E._V)(E.CP.recordScreen22),align:"center",dataIndex:"count"}]})),onCancel:()=>{ze(),Ge()},onOk:()=>{b.history.push(`/classrooms/${Je.coursesId}/exercisenotice/${Je.categoryId}/users/${Je.login}?isShowApply=true`)}})}else tt.info({content:re.createElement("div",{className:"tc font16"},(0,E._V)(E.CP.recordScreen23),re.createElement("br",null),(0,E._V)(E.CP.recordScreen24)),onOk:()=>{Ge()}})}),yt=Ze=>{(0,de.vp)()&&document.getElementById("iframeShixuns").style.display=="none"&&!lt.current&&(0,de.BU)()},dt=()=>ge(void 0,null,function*(){var Ze;if((Ze=Le.exerciseUserInfo)!=null&&Ze.screen_at){const je=yield(0,te.ck)(xe(we({},Je),{reset:!0}));if((je==null?void 0:je.status)===-6)return}const et=yield(0,te.oy)({id:Je.categoryId});if(et!=null&&et.is_commit){gt();return}return yield st()}),Ve=()=>ge(void 0,null,function*(){var Ze;if((0,x.RG)(" ",!0),(0,de.vp)()){if((Ze=Le.exerciseUserInfo)!=null&&Ze.screen_at){var et=yield(0,te.ck)(xe(we({},Je),{reset:!0}));if((et==null?void 0:et.status)===-6)return}}else if(!lt.current){var et=yield(0,te.ck)(we({},Je));if((et==null?void 0:et.status)===-6)return;const je=yield st();Ne(je.used_screen_num+1),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*")}}),He=()=>ge(void 0,null,function*(){(0,te.ck)(we({},Je));const Ze=yield st();Ne(Ze.used_screen_num+1),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*")});return re.createElement("div",null,Me)};var Te=(0,b.connect)(({exercise:Le,globalSetting:ke})=>({globalSetting:ke,exercise:Le}))(Ae)},42217:function(bt,pt,Ce){"use strict";Ce.d(pt,{X:function(){return he},y:function(){return a}});var ve=Ce(59301),Ue=Ce(6767);const a=de=>{(0,ve.useEffect)(()=>{if(de){const te=ne=>{ne.key==="F12"&&(ne.preventDefault(),console.log("F12\u88AB\u7981\u7528"))},oe=ne=>{ne.preventDefault()};return document.addEventListener("keydown",te),document.addEventListener("contextmenu",oe),()=>{document.removeEventListener("keydown",te),document.removeEventListener("contextmenu",oe)}}},[de])},he=()=>{const[de,te]=(0,ve.useState)(!1),oe=ne=>{const{keyCode:ee,ctrlKey:se,metaKey:z,type:x}=ne;(x==="paste"||(ee===67||ee===86)&&(z||se))&&(Ue.ZP.warning("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u7B54\u9898\u65F6\u4E0D\u5141\u8BB8\u8FDB\u884C\u590D\u5236\u7C98\u8D34"),ne.preventDefault(),ne.stopPropagation())};return(0,ve.useEffect)(()=>(de&&(window.addEventListener("keydown",oe,!0),window.addEventListener("paste",oe,!0)),()=>{window.removeEventListener("keydown",oe,!0),window.removeEventListener("paste",oe,!0)}),[de]),{setOpenDisableCopyAndPaste:te,disableCopyAndPaste:de}}},53464:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return et}});var ve=Ce(59301),Ue={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},a=Ce(92310),he=Ce.n(a),de=Ce(29787);var te=function(Ie,je){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,Xe){De.__proto__=Xe}||function(De,Xe){for(var ct in Xe)Object.prototype.hasOwnProperty.call(Xe,ct)&&(De[ct]=Xe[ct])})(Ie,je)};function oe(Ie,je){function De(){this.constructor=Ie}te(Ie,je),Ie.prototype=je===null?Object.create(je):(De.prototype=je.prototype,new De)}function ne(Ie,je,De,Xe){return new(De||(De=Promise))(function(ct,Fe){function vt(Tt){try{Ot(Xe.next(Tt))}catch(xt){Fe(xt)}}function wt(Tt){try{Ot(Xe.throw(Tt))}catch(xt){Fe(xt)}}function Ot(Tt){var xt;Tt.done?ct(Tt.value):(xt=Tt.value,xt instanceof De?xt:new De(function(Nt){Nt(xt)})).then(vt,wt)}Ot((Xe=Xe.apply(Ie,je||[])).next())})}function ee(Ie,je){var De,Xe,ct,Fe,vt={label:0,sent:function(){if(1&ct[0])throw ct[1];return ct[1]},trys:[],ops:[]};return Fe={next:wt(0),throw:wt(1),return:wt(2)},typeof Symbol=="function"&&(Fe[Symbol.iterator]=function(){return this}),Fe;function wt(Ot){return function(Tt){return function(xt){if(De)throw new TypeError("Generator is already executing.");for(;vt;)try{if(De=1,Xe&&(ct=2&xt[0]?Xe.return:xt[0]?Xe.throw||((ct=Xe.return)&&ct.call(Xe),0):Xe.next)&&!(ct=ct.call(Xe,xt[1])).done)return ct;switch(Xe=0,ct&&(xt=[2&xt[0],ct.value]),xt[0]){case 0:case 1:ct=xt;break;case 4:return vt.label++,{value:xt[1],done:!1};case 5:vt.label++,Xe=xt[1],xt=[0];continue;case 7:xt=vt.ops.pop(),vt.trys.pop();continue;default:if(ct=vt.trys,!((ct=ct.length>0&&ct[ct.length-1])||xt[0]!==6&&xt[0]!==2)){vt=0;continue}if(xt[0]===3&&(!ct||xt[1]>ct[0]&&xt[1]<ct[3])){vt.label=xt[1];break}if(xt[0]===6&&vt.label<ct[1]){vt.label=ct[1],ct=xt;break}if(ct&&vt.label<ct[2]){vt.label=ct[2],vt.ops.push(xt);break}ct[2]&&vt.ops.pop(),vt.trys.pop();continue}xt=je.call(Ie,vt)}catch(Nt){xt=[6,Nt],Xe=0}finally{De=ct=0}if(5&xt[0])throw xt[1];return{value:xt[0]?xt[1]:void 0,done:!0}}([Ot,Tt])}}}function se(){for(var Ie=0,je=0,De=arguments.length;je<De;je++)Ie+=arguments[je].length;var Xe=Array(Ie),ct=0;for(je=0;je<De;je++)for(var Fe=arguments[je],vt=0,wt=Fe.length;vt<wt;vt++,ct++)Xe[ct]=Fe[vt];return Xe}var z=function(){function Ie(){}return Ie.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ie.setAttributes=function(je,De){for(var Xe=0,ct=De;Xe<ct.length;Xe++){var Fe=ct[Xe],vt=Fe[0],wt=Fe[1];je.setAttribute(vt,wt)}},Ie.createRect=function(je,De,Xe){var ct=document.createElementNS("http://www.w3.org/2000/svg","rect");return ct.setAttribute("width",je.toString()),ct.setAttribute("height",De.toString()),Xe&&Ie.setAttributes(ct,Xe),ct},Ie.createLine=function(je,De,Xe,ct,Fe){var vt=document.createElementNS("http://www.w3.org/2000/svg","line");return vt.setAttribute("x1",je.toString()),vt.setAttribute("y1",De.toString()),vt.setAttribute("x2",Xe.toString()),vt.setAttribute("y2",ct.toString()),Fe&&Ie.setAttributes(vt,Fe),vt},Ie.createPolygon=function(je,De){var Xe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Xe.setAttribute("points",je),De&&Ie.setAttributes(Xe,De),Xe},Ie.createCircle=function(je,De){var Xe=document.createElementNS("http://www.w3.org/2000/svg","circle");return Xe.setAttribute("cx",(je/2).toString()),Xe.setAttribute("cy",(je/2).toString()),Xe.setAttribute("r",je.toString()),De&&Ie.setAttributes(Xe,De),Xe},Ie.createEllipse=function(je,De,Xe){var ct=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ct.setAttribute("cx",(je/2).toString()),ct.setAttribute("cy",(De/2).toString()),ct.setAttribute("rx",(je/2).toString()),ct.setAttribute("ry",(De/2).toString()),Xe&&Ie.setAttributes(ct,Xe),ct},Ie.createGroup=function(je){var De=document.createElementNS("http://www.w3.org/2000/svg","g");return je&&Ie.setAttributes(De,je),De},Ie.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ie.createMarker=function(je,De,Xe,ct,Fe,vt,wt){var Ot=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ie.setAttributes(Ot,[["id",je],["orient",De],["markerWidth",Xe.toString()],["markerHeight",ct.toString()],["refX",Fe.toString()],["refY",vt.toString()]]),Ot.appendChild(wt),Ot},Ie.createText=function(je){var De=document.createElementNS("http://www.w3.org/2000/svg","text");return De.setAttribute("x","0"),De.setAttribute("y","0"),je&&Ie.setAttributes(De,je),De},Ie.createTSpan=function(je,De){var Xe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Xe.textContent=je,De&&Ie.setAttributes(Xe,De),Xe},Ie.createImage=function(je){var De=document.createElementNS("http://www.w3.org/2000/svg","image");return je&&Ie.setAttributes(De,je),De},Ie.createPoint=function(je,De){var Xe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Xe.x=je,Xe.y=De,Xe},Ie.createPath=function(je,De){var Xe=document.createElementNS("http://www.w3.org/2000/svg","path");return Xe.setAttribute("d",je),De&&Ie.setAttributes(Xe,De),Xe},Ie}(),x=function(){function Ie(){}return Ie.addKey=function(je){Ie.key=je},Object.defineProperty(Ie,"isLicensed",{get:function(){return!!Ie.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ie.key)},enumerable:!1,configurable:!0}),Ie}(),b=function(){function Ie(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ie.prototype.rasterize=function(je,De,Xe){var ct=this;return new Promise(function(Fe){var vt=Xe!==void 0?Xe:document.createElement("canvas");je===null&&(ct.markersOnly=!0,ct.naturalSize=!1);var wt=document.createElementNS("http://www.w3.org/2000/svg","svg");wt.setAttribute("xmlns","http://www.w3.org/2000/svg"),wt.setAttribute("width",De.width.baseVal.valueAsString),wt.setAttribute("height",De.height.baseVal.valueAsString),wt.setAttribute("viewBox","0 0 "+De.viewBox.baseVal.width.toString()+" "+De.viewBox.baseVal.height.toString()),wt.innerHTML=De.innerHTML,ct.naturalSize===!0?(wt.width.baseVal.value=je.naturalWidth,wt.height.baseVal.value=je.naturalHeight):ct.width!==void 0&&ct.height!==void 0&&(wt.width.baseVal.value=ct.width,wt.height.baseVal.value=ct.height),vt.width=wt.width.baseVal.value,vt.height=wt.height.baseVal.value;var Ot=wt.outerHTML,Tt=vt.getContext("2d");ct.markersOnly!==!0&&Tt.drawImage(je,0,0,vt.width,vt.height);var xt=window.URL,Nt=new Image(vt.width,vt.height);Nt.setAttribute("crossOrigin","anonymous");var Rt=new Blob([Ot],{type:"image/svg+xml"}),Ut=xt.createObjectURL(Rt);Nt.onload=function(){Tt.drawImage(Nt,0,0),xt.revokeObjectURL(Ut);var Qt=vt.toDataURL(ct.imageType,ct.imageQuality);Fe(Qt)},Nt.src=Ut})},Ie}(),E=function(){},re=function(){function Ie(je){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+je+"_"}return Object.defineProperty(Ie.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.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(Ie.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ie.prototype.addClass=function(je){return this.styleSheet===void 0&&this.addStyleSheet(),je.name=""+this.classNamePrefix+je.localName,this.classes.push(je),this.styleSheet.sheet.insertRule("."+je.name+" {"+je.style+"}",this.styleSheet.sheet.cssRules.length),je},Ie.prototype.addRule=function(je){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(je),this.styleSheet.sheet.insertRule(je.selector+" {"+je.style+"}",this.styleSheet.sheet.cssRules.length)},Ie.prototype.addStyleSheet=function(){var je;this.styleSheet=document.createElement("style"),((je=this.styleSheetRoot)!==null&&je!==void 0?je:document.head).appendChild(this.styleSheet),this.addRule(new ae("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ae("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new ae("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new le("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new le("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Ie.prototype.removeStyleSheet=function(){var je;this.styleSheet&&(((je=this.styleSheetRoot)!==null&&je!==void 0?je:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ie}(),ae=function(Ie,je){this.selector=Ie,this.style=je},le=function(Ie,je){this.localName=Ie,this.style=je},fe=function(){function Ie(je,De,Xe,ct,Fe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=je,this.displayMode=De,this.markerItems=Xe,this.uiStyleSettings=ct,this.styles=Fe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ie.prototype.show=function(je){var De=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=je,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Xe=document.createElement("div");Xe.className=this.toolbarBlockStyleClass.name,Xe.style.whiteSpace="nowrap",this.uiContainer.appendChild(Xe),this.addActionButton(Xe,'<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(Xe,'<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(Xe,'<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(Xe,'<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(Xe,'<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(Xe,'<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(Xe,'<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(Xe,'<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(Fe){var vt=document.createElement("div");vt.className=""+De.toolbarButtonStyleClass.name,vt.setAttribute("data-type-name",Fe.typeName),vt.innerHTML=Fe.icon,vt.addEventListener("click",function(){De.markerToolbarButtonClicked(vt,Fe)}),De.buttons.push(vt),De.markerButtons.push(vt)}),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 ct=document.createElement("div");ct.className=this.toolbarBlockStyleClass.name,ct.style.whiteSpace="nowrap",ct.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ct),this.addActionButton(ct,'<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(ct,'<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()},Ie.prototype.addButtonClickListener=function(je){this.buttonClickListeners.push(je)},Ie.prototype.removeButtonClickListener=function(je){this.buttonClickListeners.indexOf(je)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(je),1)},Ie.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ie.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var je=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var De=0;De<this.markerButtons.length;De++)De<je||De===je&&this.markerButtons.length-1===je?this.markerButtonBlock.appendChild(this.markerButtons[De]):(De===je&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[De]))}},Ie.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")},Ie.prototype.resetButtonStyles=function(){var je=this;this.buttons.forEach(function(De){De.className=De.className.replace(je.uiStyleSettings.toolbarButtonStyleColorsClassName?je.uiStyleSettings.toolbarButtonStyleColorsClassName:je.toolbarButtonStyleColorsClass.name,"").trim(),De.className=De.className.replace(je.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?je.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:je.toolbarActiveButtonStyleColorsClass.name,"").trim(),De.className+=" "+(je.uiStyleSettings.toolbarButtonStyleColorsClassName?je.uiStyleSettings.toolbarButtonStyleColorsClassName:je.toolbarButtonStyleColorsClass.name)})},Ie.prototype.addActionButton=function(je,De,Xe){var ct=this,Fe=document.createElement("div");switch(Fe.className=""+this.toolbarButtonStyleClass.name,Fe.innerHTML=De,Fe.setAttribute("data-action",Xe),Fe.addEventListener("click",function(){ct.actionToolbarButtonClicked(Fe,Xe)}),Xe){case"select":Fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Fe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Fe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Fe.style.fill=this.uiStyleSettings.closeButtonColor}je.appendChild(Fe),this.buttons.push(Fe)},Ie.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new le("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 le("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new le("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new le("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 le("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var je=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new le("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*je)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*je)+`px;
padding: `+je+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new le("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new le("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ae("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new ae("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Ie.prototype.markerToolbarButtonClicked=function(je,De){this.setActiveButton(je),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Xe){return Xe("marker",De)}),this.markerButtonOverflowBlock.style.display="none"},Ie.prototype.actionToolbarButtonClicked=function(je,De){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Xe){return Xe("action",De)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ie.prototype.setActiveButton=function(je){this.resetButtonStyles(),je.className=je.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),je.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ie.prototype.setActiveMarkerButton=function(je){var De=this.markerButtons.find(function(Xe){return Xe.getAttribute("data-type-name")===je});De&&this.setActiveButton(De)},Ie.prototype.setCurrentMarker=function(je){var De=this;this.currentMarker=je,this.buttons.filter(function(Xe){return/delete|notes/.test(Xe.getAttribute("data-action"))}).forEach(function(Xe){De.currentMarker===void 0?(Xe.style.fillOpacity="0.4",Xe.style.pointerEvents="none"):(Xe.style.fillOpacity="1",Xe.style.pointerEvents="all")})},Ie}(),ce=function(){function Ie(je,De,Xe,ct){this.panels=[],this.panelButtons=[],this.markerjsContainer=je,this.displayMode=De,this.uiStyleSettings=Xe,this.styles=ct,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ie.prototype.addStyles=function(){var je;this.toolboxStyleClass=this.styles.addClass(new le("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 le("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var De=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new le("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new le("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new le("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 le("toolbox-panel-row_colors",`
background-color: `+((je=this.uiStyleSettings.toolboxBackgroundColor)!==null&&je!==void 0?je:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new le("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*De)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*De)+`px;
padding: `+De+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new le("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new le("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ae("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ae("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Ie.prototype.show=function(je){var De;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=je,this.uiContainer.className=this.toolboxStyleClass.name+" "+((De=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&De!==void 0?De:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ie.prototype.setPanelButtons=function(je){var De,Xe,ct=this;this.panels=je,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((De=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&De!==void 0?De:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Xe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Xe!==void 0?Xe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Fe){var vt;Fe.uiStyleSettings=ct.uiStyleSettings;var wt=document.createElement("div");wt.className=ct.toolboxButtonStyleClass.name+" "+((vt=ct.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&vt!==void 0?vt:ct.toolboxButtonStyleColorsClass.name),wt.innerHTML=Fe.icon,wt.title=Fe.title,wt.addEventListener("click",function(){ct.panelButtonClick(Fe)}),ct.panelButtons.push(wt),ct.buttonRow.appendChild(wt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ie.prototype.panelButtonClick=function(je){var De=this,Xe=-1;if(je!==this.activePanel){Xe=this.panels.indexOf(je),this.panelRow.innerHTML="";var ct=je.getUi();ct.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ct),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=je}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){De.displayMode==="inline"?De.panelRow.style.display="none":De.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Fe,vt){var wt,Ot;Fe.className=De.toolboxButtonStyleClass.name+" "+(vt===Xe?""+((wt=De.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&wt!==void 0?wt:De.toolboxActiveButtonStyleColorsClass.name):""+((Ot=De.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ot!==void 0?Ot:De.toolboxButtonStyleColorsClass.name))})},Ie}(),ue=function(Ie,je){this.title=Ie,this.icon=je},ye=function(Ie){function je(De,Xe,ct,Fe){var vt=Ie.call(this,De,Fe||'<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 vt.colors=[],vt.addTransparent=!1,vt.colorBoxes=[],vt.colors=Xe,vt.currentColor=ct,vt.setCurrentColor=vt.setCurrentColor.bind(vt),vt.getColorBox=vt.getColorBox.bind(vt),vt}return oe(je,Ie),je.prototype.getUi=function(){var De=this,Xe=document.createElement("div");return Xe.style.overflow="hidden",Xe.style.whiteSpace="nowrap",this.colors.forEach(function(ct){var Fe=De.getColorBox(ct);Xe.appendChild(Fe),De.colorBoxes.push(Fe)}),Xe},je.prototype.getColorBox=function(De){var Xe=this,ct=this.uiStyleSettings.toolbarHeight/4,Fe=this.uiStyleSettings.toolbarHeight-ct,vt=document.createElement("div");vt.style.display="inline-block",vt.style.boxSizing="content-box",vt.style.width=Fe-2+"px",vt.style.height=Fe-2+"px",vt.style.padding="1px",vt.style.marginRight="2px",vt.style.marginBottom="2px",vt.style.borderWidth="2px",vt.style.borderStyle="solid",vt.style.borderRadius=(Fe+2)/2+"px",vt.style.borderColor=De===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",vt.addEventListener("click",function(){Xe.setCurrentColor(De,vt)});var wt=document.createElement("div");return wt.style.display="inline-block",wt.style.width=Fe-2+"px",wt.style.height=Fe-2+"px",wt.style.backgroundColor=De,wt.style.borderRadius=Fe/2+"px",De==="transparent"&&(wt.style.fill=this.uiStyleSettings.toolboxAccentColor,wt.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>`),vt.appendChild(wt),vt},je.prototype.setCurrentColor=function(De,Xe){var ct=this;this.currentColor=De,this.colorBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Xe?ct.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(De)},je}(ue),Se=function(){function Ie(je,De,Xe){this._state="new",this._isSelected=!1,this._container=je,this._overlayContainer=De,this.globalSettings=Xe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ie.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ie.prototype.ownsTarget=function(je){return!1},Object.defineProperty(Ie.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ie.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ie.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ie.prototype.pointerDown=function(je,De){},Ie.prototype.dblClick=function(je,De){},Ie.prototype.manipulate=function(je){},Ie.prototype.pointerUp=function(je){this.stateChanged()},Ie.prototype.dispose=function(){},Ie.prototype.addMarkerVisualToContainer=function(je){this.container.childNodes.length>0?this.container.insertBefore(je,this.container.childNodes[0]):this.container.appendChild(je)},Ie.prototype.getState=function(){return{typeName:Ie.typeName,state:this.state,notes:this.notes}},Ie.prototype.restoreState=function(je){this._state=je.state,this.notes=je.notes},Ie.prototype.scale=function(je,De){},Ie.prototype.colorChanged=function(je){this.onColorChanged&&this.onColorChanged(je),this.stateChanged()},Ie.prototype.fillColorChanged=function(je){this.onFillColorChanged&&this.onFillColorChanged(je),this.stateChanged()},Ie.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var je=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),je.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(je)&&this.onStateChanged(this)}},Ie.typeName="MarkerBase",Ie}(),we=function(){function Ie(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ie.prototype.findGripByVisual=function(je){return this.topLeft.ownsTarget(je)?this.topLeft:this.topCenter.ownsTarget(je)?this.topCenter:this.topRight.ownsTarget(je)?this.topRight:this.centerLeft.ownsTarget(je)?this.centerLeft:this.centerRight.ownsTarget(je)?this.centerRight:this.bottomLeft.ownsTarget(je)?this.bottomLeft:this.bottomCenter.ownsTarget(je)?this.bottomCenter:this.bottomRight.ownsTarget(je)?this.bottomRight:void 0},Ie}(),xe=function(){function Ie(){this.GRIP_SIZE=10,this.visual=z.createGroup(),this.visual.appendChild(z.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(z.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ie.prototype.ownsTarget=function(je){return je===this.visual||je===this.visual.childNodes[0]||je===this.visual.childNodes[1]},Ie}(),ge=function(){function Ie(){}return Ie.toITransformMatrix=function(je){return{a:je.a,b:je.b,c:je.c,d:je.d,e:je.e,f:je.f}},Ie.toSVGMatrix=function(je,De){return je.a=De.a,je.b=De.b,je.c=De.c,je.d=De.d,je.e=De.e,je.f=De.f,je},Ie}(),_e=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.left=0,Fe.top=0,Fe.width=0,Fe.height=0,Fe.defaultSize={x:50,y:20},Fe.offsetX=0,Fe.offsetY=0,Fe.rotationAngle=0,Fe.CB_DISTANCE=10,Fe._suppressMarkerCreateEvent=!1,Fe.container.transform.baseVal.appendItem(z.createTransform()),Fe.setupControlBox(),Fe}return oe(je,Ie),Object.defineProperty(je.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"visual",{get:function(){return this._visual},set:function(De){this._visual=De;var Xe=z.createTransform();this._visual.transform.baseVal.appendItem(Xe)},enumerable:!1,configurable:!0}),je.prototype.ownsTarget=function(De){return!!Ie.prototype.ownsTarget.call(this,De)||!!(this.controlGrips.findGripByVisual(De)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(De))},je.prototype.pointerDown=function(De,Xe){Ie.prototype.pointerDown.call(this,De,Xe),this.state==="new"&&(this.left=De.x,this.top=De.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ct=this.unrotatePoint(De);if(this.manipulationStartX=ct.x,this.manipulationStartY=ct.y,this.offsetX=ct.x-this.left,this.offsetY=ct.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Xe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Xe)){this.activeGrip=this.rotatorGrip;var Fe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Fe.x-this.width/2,this.top=Fe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var vt=this.container.transform.baseVal.getItem(0);vt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(vt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},je.prototype.pointerUp=function(De){var Xe=this.state;Ie.prototype.pointerUp.call(this,De),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(De),this._state="select",Xe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},je.prototype.moveVisual=function(De){this.visual.style.transform="translate("+De.x+"px, "+De.y+"px)"},je.prototype.manipulate=function(De){var Xe=this.unrotatePoint(De);this.state==="creating"?this.resize(De):this.state==="move"?(this.left=this.manipulationStartLeft+(Xe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Xe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Xe):this.state==="rotate"&&this.rotate(De)},je.prototype.resize=function(De){var Xe=this.manipulationStartLeft,ct=this.manipulationStartWidth,Fe=this.manipulationStartTop,vt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Xe=this.manipulationStartLeft+De.x-this.manipulationStartX,ct=this.manipulationStartWidth+this.manipulationStartLeft-Xe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ct=this.manipulationStartWidth+De.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Fe=this.manipulationStartTop+De.y-this.manipulationStartY,vt=this.manipulationStartHeight+this.manipulationStartTop-Fe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:vt=this.manipulationStartHeight+De.y-this.manipulationStartY}ct>=0?(this.left=Xe,this.width=ct):(this.left=Xe+ct,this.width=-ct),vt>=0?(this.top=Fe,this.height=vt):(this.top=Fe+vt,this.height=-vt),this.setSize()},je.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},je.prototype.rotate=function(De){if(Math.abs(De.x-this.centerX)>.1){var Xe=Math.sign(De.x-this.centerX);this.rotationAngle=180*Math.atan((De.y-this.centerY)/(De.x-this.centerX))/Math.PI+90*Xe,this.applyRotation()}},je.prototype.applyRotation=function(){var De=this.container.transform.baseVal.getItem(0);De.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(De,0)},je.prototype.rotatePoint=function(De){if(this.rotationAngle===0)return De;var Xe=this.container.getCTM(),ct=z.createPoint(De.x,De.y);return{x:(ct=ct.matrixTransform(Xe)).x,y:ct.y}},je.prototype.unrotatePoint=function(De){if(this.rotationAngle===0)return De;var Xe=this.container.getCTM();Xe=Xe.inverse();var ct=z.createPoint(De.x,De.y);return{x:(ct=ct.matrixTransform(Xe)).x,y:ct.y}},je.prototype.select=function(){Ie.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},je.prototype.deselect=function(){Ie.prototype.deselect.call(this),this.controlBox.style.display="none"},je.prototype.setupControlBox=function(){this.controlBox=z.createGroup();var De=z.createTransform();De.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(De),this.container.appendChild(this.controlBox),this.controlRect=z.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=z.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 we,this.addControlGrips(),this.controlBox.style.display="none"},je.prototype.adjustControlBox=function(){var De=this.controlBox.transform.baseVal.getItem(0);De.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(De,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()},je.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()},je.prototype.createGrip=function(){var De=new xe;return De.visual.transform.baseVal.appendItem(z.createTransform()),this.controlBox.appendChild(De.visual),De},je.prototype.positionGrips=function(){var De=this.controlGrips.topLeft.GRIP_SIZE,Xe=-De/2,ct=Xe,Fe=(this.width+this.CB_DISTANCE)/2-De/2,vt=(this.height+this.CB_DISTANCE)/2-De/2,wt=this.height+this.CB_DISTANCE-De/2,Ot=this.width+this.CB_DISTANCE-De/2;this.positionGrip(this.controlGrips.topLeft.visual,Xe,ct),this.positionGrip(this.controlGrips.topCenter.visual,Fe,ct),this.positionGrip(this.controlGrips.topRight.visual,Ot,ct),this.positionGrip(this.controlGrips.centerLeft.visual,Xe,vt),this.positionGrip(this.controlGrips.centerRight.visual,Ot,vt),this.positionGrip(this.controlGrips.bottomLeft.visual,Xe,wt),this.positionGrip(this.controlGrips.bottomCenter.visual,Fe,wt),this.positionGrip(this.controlGrips.bottomRight.visual,Ot,wt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Fe,ct-3*this.CB_DISTANCE)},je.prototype.positionGrip=function(De,Xe,ct){var Fe=De.transform.baseVal.getItem(0);Fe.setTranslate(Xe,ct),De.transform.baseVal.replaceItem(Fe,0)},je.prototype.hideControlBox=function(){this.controlBox.style.display="none"},je.prototype.showControlBox=function(){this.controlBox.style.display=""},je.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ge.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ge.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ie.prototype.getState.call(this))},je.prototype.restoreState=function(De){Ie.prototype.restoreState.call(this,De);var Xe=De;this.left=Xe.left,this.top=Xe.top,this.width=Xe.width,this.height=Xe.height,this.rotationAngle=Xe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ge.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Xe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ge.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Xe.containerTransformMatrix))},je.prototype.scale=function(De,Xe){Ie.prototype.scale.call(this,De,Xe);var ct=this.rotatePoint({x:this.left,y:this.top}),Fe=this.unrotatePoint({x:ct.x*De,y:ct.y*Xe});this.left=Fe.x,this.top=Fe.y,this.width=this.width*De,this.height=this.height*Xe,this.adjustControlBox()},je}(Se),be=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.fillColor="transparent",Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.opacity=1,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setFillColor=Fe.setFillColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.createVisual=Fe.createVisual.bind(Fe),Fe}return oe(je,Ie),je.prototype.ownsTarget=function(De){return!(!Ie.prototype.ownsTarget.call(this,De)&&De!==this.visual)},je.prototype.createVisual=function(){this.visual=z.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)},je.prototype.pointerDown=function(De,Xe){Ie.prototype.pointerDown.call(this,De,Xe),this.state==="new"&&(this.createVisual(),this.moveVisual(De),this._state="creating")},je.prototype.manipulate=function(De){Ie.prototype.manipulate.call(this,De)},je.prototype.resize=function(De){Ie.prototype.resize.call(this,De),this.setSize()},je.prototype.setSize=function(){Ie.prototype.setSize.call(this),z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},je.prototype.pointerUp=function(De){Ie.prototype.pointerUp.call(this,De),this.setSize()},je.prototype.setStrokeColor=function(De){this.strokeColor=De,this.visual&&z.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(De),this.stateChanged()},je.prototype.setFillColor=function(De){this.fillColor=De,this.visual&&z.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},je.prototype.setStrokeWidth=function(De){this.strokeWidth=De,this.visual&&z.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},je.prototype.setStrokeDasharray=function(De){this.strokeDasharray=De,this.visual&&z.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},je.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ie.prototype.getState.call(this))},je.prototype.restoreState=function(De){var Xe=De;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.opacity=Xe.opacity,this.createVisual(),Ie.prototype.restoreState.call(this,De),this.setSize()},je.prototype.scale=function(De,Xe){Ie.prototype.scale.call(this,De,Xe),this.setSize()},je.title="Rectangle marker",je}(_e),Ae=function(Ie){function je(De,Xe,ct,Fe){var vt=Ie.call(this,De,Fe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return vt.widths=[],vt.widthBoxes=[],vt.widths=Xe,vt.currentWidth=ct,vt.setCurrentWidth=vt.setCurrentWidth.bind(vt),vt}return oe(je,Ie),je.prototype.getUi=function(){var De=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.widths.forEach(function(ct){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.flexGrow="2",Fe.style.alignItems="center",Fe.style.justifyContent="space-between",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.borderColor=ct===De.currentWidth?De.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){De.setCurrentWidth(ct,Fe)}),Xe.appendChild(Fe);var vt=document.createElement("div");vt.innerText=ct.toString(),vt.style.marginRight="5px",Fe.appendChild(vt);var wt=document.createElement("div");wt.style.minHeight="20px",wt.style.flexGrow="2",wt.style.display="flex",wt.style.alignItems="center";var Ot=document.createElement("hr");Ot.style.minWidth="20px",Ot.style.border="0px",Ot.style.borderTop=ct+"px solid "+De.uiStyleSettings.toolboxColor,Ot.style.flexGrow="2",wt.appendChild(Ot),Fe.appendChild(wt),De.widthBoxes.push(Fe)}),Xe},je.prototype.setCurrentWidth=function(De,Xe){var ct=this;this.currentWidth=De,this.widthBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Xe?ct.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},je}(ue),Te=function(Ie){function je(De,Xe,ct,Fe){var vt=Ie.call(this,De,Fe||'<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 vt.styles=[],vt.styleBoxes=[],vt.styles=Xe,vt.currentStyle=ct,vt.setCurrentStyle=vt.setCurrentStyle.bind(vt),vt}return oe(je,Ie),je.prototype.getUi=function(){var De=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.styles.forEach(function(ct){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.alignItems="center",Fe.style.justifyContent="space-between",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.overflow="hidden",Fe.style.maxWidth=100/De.styles.length-5+"%",Fe.style.borderColor=ct===De.currentStyle?De.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){De.setCurrentStyle(ct,Fe)}),Xe.appendChild(Fe);var vt=document.createElement("div");vt.style.minHeight="20px",vt.style.flexGrow="2",vt.style.overflow="hidden";var wt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+De.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ct!==""?'stroke-dasharray="'+ct+'"':"")+` />
</svg>`;vt.innerHTML=wt,Fe.appendChild(vt),De.styleBoxes.push(Fe)}),Xe},je.prototype.setCurrentStyle=function(De,Xe){var ct=this;this.currentStyle=De,this.styleBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Xe?ct.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},je}(ue),Le=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.strokeColor=ct.defaultColor,Fe.strokeWidth=ct.defaultStrokeWidth,Fe.strokeDasharray=ct.defaultStrokeDasharray,Fe.strokePanel=new ye("Line color",ct.defaultColorSet,ct.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.strokeWidthPanel=new Ae("Line width",ct.defaultStrokeWidths,ct.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Te("Line style",ct.defaultStrokeDasharrays,ct.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe}return oe(je,Ie),Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Ie.prototype.getState.call(this);return De.typeName=je.typeName,De},je.typeName="FrameMarker",je.title="Frame marker",je.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',je}(be),ke=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"},Pe=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.x1=0,Fe.y1=0,Fe.x2=0,Fe.y2=0,Fe.defaultLength=50,Fe.manipulationStartX=0,Fe.manipulationStartY=0,Fe.manipulationStartX1=0,Fe.manipulationStartY1=0,Fe.manipulationStartX2=0,Fe.manipulationStartY2=0,Fe.setupControlBox(),Fe}return oe(je,Ie),je.prototype.ownsTarget=function(De){return!!Ie.prototype.ownsTarget.call(this,De)||!(!this.grip1.ownsTarget(De)&&!this.grip2.ownsTarget(De))},je.prototype.pointerDown=function(De,Xe){Ie.prototype.pointerDown.call(this,De,Xe),this.manipulationStartX=De.x,this.manipulationStartY=De.y,this.state==="new"&&(this.x1=De.x,this.y1=De.y,this.x2=De.x,this.y2=De.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(Xe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Xe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},je.prototype.pointerUp=function(De){var Xe=this.state;Ie.prototype.pointerUp.call(this,De),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(De),this._state="select",Xe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},je.prototype.adjustVisual=function(){},je.prototype.manipulate=function(De){this.state==="creating"?this.resize(De):this.state==="move"?(this.x1=this.manipulationStartX1+De.x-this.manipulationStartX,this.y1=this.manipulationStartY1+De.y-this.manipulationStartY,this.x2=this.manipulationStartX2+De.x-this.manipulationStartX,this.y2=this.manipulationStartY2+De.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(De)},je.prototype.resize=function(De){switch(this.activeGrip){case this.grip1:this.x1=De.x,this.y1=De.y;break;case this.grip2:case void 0:this.x2=De.x,this.y2=De.y}this.adjustVisual(),this.adjustControlBox()},je.prototype.select=function(){Ie.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},je.prototype.deselect=function(){Ie.prototype.deselect.call(this),this.controlBox.style.display="none"},je.prototype.setupControlBox=function(){this.controlBox=z.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},je.prototype.adjustControlBox=function(){this.positionGrips()},je.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},je.prototype.createGrip=function(){var De=new xe;return De.visual.transform.baseVal.appendItem(z.createTransform()),this.controlBox.appendChild(De.visual),De},je.prototype.positionGrips=function(){var De=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-De/2,this.y1-De/2),this.positionGrip(this.grip2.visual,this.x2-De/2,this.y2-De/2)},je.prototype.positionGrip=function(De,Xe,ct){var Fe=De.transform.baseVal.getItem(0);Fe.setTranslate(Xe,ct),De.transform.baseVal.replaceItem(Fe,0)},je.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ie.prototype.getState.call(this))},je.prototype.restoreState=function(De){Ie.prototype.restoreState.call(this,De);var Xe=De;this.x1=Xe.x1,this.y1=Xe.y1,this.x2=Xe.x2,this.y2=Xe.y2},je.prototype.scale=function(De,Xe){Ie.prototype.scale.call(this,De,Xe),this.x1=this.x1*De,this.y1=this.y1*Xe,this.x2=this.x2*De,this.y2=this.y2*Xe,this.adjustVisual(),this.adjustControlBox()},je}(Se),Oe=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.strokeColor=ct.defaultColor,Fe.strokeWidth=ct.defaultStrokeWidth,Fe.strokeDasharray=ct.defaultStrokeDasharray,Fe.strokePanel=new ye("Line color",ct.defaultColorSet,ct.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.strokeWidthPanel=new Ae("Line width",ct.defaultStrokeWidths,ct.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Te("Line style",ct.defaultStrokeDasharrays,ct.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe}return oe(je,Ie),je.prototype.ownsTarget=function(De){return!(!Ie.prototype.ownsTarget.call(this,De)&&De!==this.visual&&De!==this.selectorLine&&De!==this.visibleLine)},je.prototype.createVisual=function(){this.visual=z.createGroup(),this.selectorLine=z.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=z.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)},je.prototype.pointerDown=function(De,Xe){Ie.prototype.pointerDown.call(this,De,Xe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},je.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()),z.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),z.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),z.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},je.prototype.setStrokeColor=function(De){this.strokeColor=De,this.adjustVisual(),this.colorChanged(De)},je.prototype.setStrokeWidth=function(De){this.strokeWidth=De,this.adjustVisual()},je.prototype.setStrokeDasharray=function(De){this.strokeDasharray=De,this.adjustVisual(),this.stateChanged()},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ie.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){Ie.prototype.restoreState.call(this,De);var Xe=De;this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.createVisual(),this.adjustVisual()},je.typeName="LineMarker",je.title="Line marker",je.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',je}(Pe),ze=function(Ie){function je(De,Xe,ct,Fe){var vt=Ie.call(this,De,Fe||'<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 vt.fonts=[],vt.fontBoxes=[],vt.fonts=Xe,vt.currentFont=ct,vt.setCurrentFont=vt.setCurrentFont.bind(vt),vt}return oe(je,Ie),je.prototype.getUi=function(){var De=this,Xe=document.createElement("div");return Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.fonts.forEach(function(ct){var Fe=document.createElement("div");Fe.style.display="inline-block",Fe.style.alignItems="center",Fe.style.justifyContent="space-between",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.overflow="hidden",Fe.style.maxWidth=100/De.fonts.length-5+"%",Fe.style.borderColor=ct===De.currentFont?De.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){De.setCurrentFont(ct,Fe)}),Xe.appendChild(Fe);var vt=document.createElement("div");vt.style.display="flex",vt.style.minHeight="20px",vt.style.flexGrow="2",vt.style.fontFamily=ct,vt.style.overflow="hidden";var wt=document.createElement("div");wt.style.whiteSpace="nowrap",wt.style.overflow="hidden",wt.style.textOverflow="ellipsis",wt.innerHTML="The quick brown fox jumps over the lazy dog",vt.appendChild(wt),Fe.appendChild(vt),De.fontBoxes.push(Fe)}),Xe},je.prototype.setCurrentFont=function(De,Xe){var ct=this;this.currentFont=De,this.fontBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Xe?ct.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},je}(ue),Ge=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.color="transparent",Fe.padding=5,Fe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Fe.text=Fe.DEFAULT_TEXT,Fe.isMoved=!1,Fe.color=ct.defaultColor,Fe.fontFamily=ct.defaultFontFamily,Fe.defaultSize={x:100,y:30},Fe.setColor=Fe.setColor.bind(Fe),Fe.setFont=Fe.setFont.bind(Fe),Fe.renderText=Fe.renderText.bind(Fe),Fe.sizeText=Fe.sizeText.bind(Fe),Fe.textEditDivClicked=Fe.textEditDivClicked.bind(Fe),Fe.showTextEditor=Fe.showTextEditor.bind(Fe),Fe.setSize=Fe.setSize.bind(Fe),Fe.positionTextEditor=Fe.positionTextEditor.bind(Fe),Fe.colorPanel=new ye("Color",ct.defaultColorSet,ct.defaultColor),Fe.colorPanel.onColorChanged=Fe.setColor,Fe.fontFamilyPanel=new ze("Font",ct.defaultFontFamilies,ct.defaultFontFamily),Fe.fontFamilyPanel.onFontChanged=Fe.setFont,Fe}return oe(je,Ie),je.prototype.ownsTarget=function(De){if(Ie.prototype.ownsTarget.call(this,De)||De===this.visual||De===this.textElement||De===this.bgRectangle)return!0;var Xe=!1;return this.textElement.childNodes.forEach(function(ct){ct===De&&(Xe=!0)}),Xe},je.prototype.createVisual=function(){this.visual=z.createGroup(),this.bgRectangle=z.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=z.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(z.createTransform()),this.textElement.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},je.prototype.pointerDown=function(De,Xe){Ie.prototype.pointerDown.call(this,De,Xe),this.isMoved=!1,this.pointerDownPoint=De,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(De),this._state="creating")},je.prototype.renderText=function(){var De=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(Xe){De.textElement.appendChild(z.createTSpan(Xe.trim()===""?" ":Xe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},je.prototype.getTextScale=function(){var De=this.textElement.getBBox(),Xe=1;if(De.width>0&&De.height>0){var ct=(1*this.width-this.width*this.padding*2/100)/De.width,Fe=(1*this.height-this.height*this.padding*2/100)/De.height;Xe=Math.min(ct,Fe)}return Xe},je.prototype.getTextPosition=function(De){var Xe=this.textElement.getBBox(),ct=0,Fe=0;return Xe.width>0&&Xe.height>0&&(ct=(this.width-Xe.width*De)/2,Fe=this.height/2-Xe.height*De/2),{x:ct,y:Fe}},je.prototype.sizeText=function(){var De=this.textElement.getBBox(),Xe=this.getTextScale(),ct=this.getTextPosition(Xe);ct.y-=De.y*Xe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ct.x+"px, "+ct.y+"px) scale("+Xe+", "+Xe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ct.x,ct.y),this.textElement.transform.baseVal.getItem(1).setScale(Xe,Xe))},je.prototype.manipulate=function(De){Ie.prototype.manipulate.call(this,De),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(De.x-this.pointerDownPoint.x)>5||Math.abs(De.y-this.pointerDownPoint.y)>5)},je.prototype.resize=function(De){Ie.prototype.resize.call(this,De),this.isMoved=!0,this.setSize(),this.sizeText()},je.prototype.setSize=function(){Ie.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),z.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},je.prototype.pointerUp=function(De){var Xe=this.state;Xe==="creating"&&(this._suppressMarkerCreateEvent=!0),Ie.prototype.pointerUp.call(this,De),this.setSize(),(Xe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},je.prototype.showTextEditor=function(){var De=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(Xe){Xe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Xe=Number.parseFloat(De.textEditor.style.fontSize);De.textEditor.clientWidth>=Number.parseInt(De.textEditor.style.maxWidth)&&Xe>.9;)Xe-=.1,De.textEditor.style.fontSize=Math.max(Xe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Xe){Xe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Xe){if(Xe.clipboardData){var ct=Xe.clipboardData.getData("text"),Fe=window.getSelection();if(!Fe.rangeCount)return!1;Fe.deleteFromDocument(),Fe.getRangeAt(0).insertNode(document.createTextNode(ct)),Xe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){De.textEditDivClicked(De.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},je.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var De=this.getTextScale(),Xe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ct=this.textElement.getBBox(),Fe={x:ct.width*De,y:ct.height*De};Xe.x-=Fe.x/2,Xe.y-=Fe.y/2,this.textEditor.style.top=Xe.y+"px",this.textEditor.style.left=Xe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Xe.x+"px",this.textEditor.style.fontSize=Math.max(16*De,12)+"px",this.textElement.style.display="none"}},je.prototype.textEditDivClicked=function(De){this.text=De.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},je.prototype.select=function(){Ie.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},je.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ie.prototype.deselect.call(this)},je.prototype.dblClick=function(De,Xe){Ie.prototype.dblClick.call(this,De,Xe),this.showTextEditor()},je.prototype.setColor=function(De){this.textElement&&z.setAttributes(this.textElement,[["fill",De]]),this.color=De,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(De)},je.prototype.setFont=function(De){this.textElement&&z.setAttributes(this.textElement,[["font-family",De]]),this.fontFamily=De,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},je.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},je.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ie.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){var Xe=De;this.color=Xe.color,this.fontFamily=Xe.fontFamily,this.padding=Xe.padding,this.text=Xe.text,this.createVisual(),Ie.prototype.restoreState.call(this,De),this.setSize()},je.prototype.scale=function(De,Xe){Ie.prototype.scale.call(this,De,Xe),this.setSize(),this.sizeText(),this.positionTextEditor()},je.typeName="TextMarker",je.title="Text marker",je.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>',je}(_e),tt=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.color="transparent",Fe.lineWidth=3,Fe.drawing=!1,Fe.pixelRatio=1,Fe.color=ct.defaultColor,Fe.lineWidth=ct.defaultStrokeWidth,Fe.pixelRatio=ct.freehandPixelRatio,Fe.setColor=Fe.setColor.bind(Fe),Fe.addCanvas=Fe.addCanvas.bind(Fe),Fe.finishCreation=Fe.finishCreation.bind(Fe),Fe.setLineWidth=Fe.setLineWidth.bind(Fe),Fe.colorPanel=new ye("Color",ct.defaultColorSet,ct.defaultColor),Fe.colorPanel.onColorChanged=Fe.setColor,Fe.lineWidthPanel=new Ae("Line width",ct.defaultStrokeWidths,ct.defaultStrokeWidth),Fe.lineWidthPanel.onWidthChanged=Fe.setLineWidth,Fe}return oe(je,Ie),je.prototype.ownsTarget=function(De){return!(!Ie.prototype.ownsTarget.call(this,De)&&De!==this.visual&&De!==this.drawingImage)},je.prototype.createVisual=function(){this.visual=z.createGroup(),this.drawingImage=z.createImage(),this.visual.appendChild(this.drawingImage);var De=z.createTransform();this.visual.transform.baseVal.appendItem(De),this.addMarkerVisualToContainer(this.visual)},je.prototype.pointerDown=function(De,Xe){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(De.x,De.y),this.drawing=!0):Ie.prototype.pointerDown.call(this,De,Xe)},je.prototype.manipulate=function(De){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(De.x,De.y),this.canvasContext.stroke()):Ie.prototype.manipulate.call(this,De)},je.prototype.resize=function(De){Ie.prototype.resize.call(this,De),z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),z.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},je.prototype.pointerUp=function(De){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ie.prototype.pointerUp.call(this,De)},je.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)},je.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ie.prototype.select.call(this)},je.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ie.prototype.deselect.call(this)},je.prototype.finishCreation=function(){for(var De=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Xe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ct=Xe[0],Fe=Xe[1],vt=Xe[2],wt=Xe[3],Ot=!1,Tt=0;Tt<this.canvasElement.height;Tt++)for(var xt=0;xt<this.canvasElement.width;xt++)De.data[Tt*this.canvasElement.width*4+4*xt+3]>0&&(Ot=!0,Tt<Fe&&(Fe=Tt),xt<ct&&(ct=xt),Tt>wt&&(wt=Tt),xt>vt&&(vt=xt));if(Ot){this.left=ct/this.pixelRatio,this.top=Fe/this.pixelRatio,this.width=(vt-ct)/this.pixelRatio,this.height=(wt-Fe)/this.pixelRatio;var Nt=document.createElement("canvas");Nt.width=vt-ct,Nt.height=wt-Fe,Nt.getContext("2d").putImageData(this.canvasContext.getImageData(ct,Fe,vt-ct,wt-Fe),0,0),this.drawingImgUrl=Nt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},je.prototype.setDrawingImage=function(){z.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),z.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},je.prototype.setColor=function(De){this.color=De,this.colorChanged(De)},je.prototype.setLineWidth=function(De){this.lineWidth=De},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Object.assign({drawingImgUrl:this.drawingImgUrl},Ie.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){this.createVisual(),Ie.prototype.restoreState.call(this,De),this.drawingImgUrl=De.drawingImgUrl,this.setDrawingImage()},je.prototype.scale=function(De,Xe){Ie.prototype.scale.call(this,De,Xe),this.setDrawingImage()},je.typeName="FreehandMarker",je.title="Freehand marker",je.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>',je}(_e),Me=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,ct||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Fe.typeBoxes=[],Fe.currentType=Xe,Fe.setCurrentType=Fe.setCurrentType.bind(Fe),Fe}return oe(je,Ie),je.prototype.getUi=function(){var De=this,Xe=document.createElement("div");Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2";for(var ct=function(wt){var Ot="both";switch(wt){case 0:Ot="both";break;case 1:Ot="start";break;case 2:Ot="end";break;case 3:Ot="none"}var Tt=document.createElement("div");if(Tt.style.display="flex",Tt.style.flexGrow="2",Tt.style.alignItems="center",Tt.style.justifyContent="space-between",Tt.style.padding="5px",Tt.style.borderWidth="2px",Tt.style.borderStyle="solid",Tt.style.borderColor=Ot===Fe.currentType?Fe.uiStyleSettings.toolboxAccentColor:"transparent",Tt.addEventListener("click",function(){De.setCurrentType(Ot,Tt)}),Xe.appendChild(Tt),Ot==="both"||Ot==="start"){var xt=document.createElement("div");xt.style.display="flex",xt.style.alignItems="center",xt.style.minHeight="20px",xt.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="`+(Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,xt.style.marginLeft="5px",Tt.appendChild(xt)}var Nt=document.createElement("div");Nt.style.display="flex",Nt.style.alignItems="center",Nt.style.minHeight="20px",Nt.style.flexGrow="2";var Rt=document.createElement("hr");if(Rt.style.minWidth="20px",Rt.style.border="0px",Rt.style.borderTop="3px solid "+(Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxColor:"#eeeeee"),Rt.style.flexGrow="2",Nt.appendChild(Rt),Tt.appendChild(Nt),Ot==="both"||Ot==="end"){var Ut=document.createElement("div");Ut.style.display="flex",Ut.style.alignItems="center",Ut.style.minHeight="20px",Ut.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="`+(Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ut.style.marginRight="5px",Tt.appendChild(Ut)}Fe.typeBoxes.push(Tt)},Fe=this,vt=0;vt<4;vt++)ct(vt);return Xe},je.prototype.setCurrentType=function(De,Xe){var ct=this;this.currentType=De,this.typeBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Xe?ct.uiStyleSettings!==void 0?ct.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},je}(ue),We=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.arrowType="end",Fe.arrowBaseHeight=10,Fe.arrowBaseWidth=10,Fe.getArrowPoints=Fe.getArrowPoints.bind(Fe),Fe.setArrowType=Fe.setArrowType.bind(Fe),Fe.arrowTypePanel=new Me("Arrow type","end"),Fe.arrowTypePanel.onArrowTypeChanged=Fe.setArrowType,Fe}return oe(je,Ie),je.prototype.ownsTarget=function(De){return!(!Ie.prototype.ownsTarget.call(this,De)&&De!==this.arrow1&&De!==this.arrow2)},je.prototype.getArrowPoints=function(De,Xe){var ct=this.arrowBaseWidth+2*this.strokeWidth,Fe=this.arrowBaseHeight+2*this.strokeWidth;return De-ct/2+","+(Xe+Fe/2)+" "+De+","+(Xe-Fe/2)+" "+(De+ct/2)+","+(Xe+Fe/2)},je.prototype.createTips=function(){this.arrow1=z.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=z.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.arrow2)},je.prototype.pointerDown=function(De,Xe){Ie.prototype.pointerDown.call(this,De,Xe),this.state==="creating"&&this.createTips()},je.prototype.adjustVisual=function(){if(Ie.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",z.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),z.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var De=0;Math.abs(this.x1-this.x2)>.1&&(De=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Xe=this.arrow1.transform.baseVal.getItem(0);Xe.setRotate(De,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Xe,0);var ct=this.arrow2.transform.baseVal.getItem(0);ct.setRotate(De+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ct,0)}},je.prototype.setArrowType=function(De){this.arrowType=De,this.adjustVisual(),this.stateChanged()},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Object.assign({arrowType:this.arrowType},Ie.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){Ie.prototype.restoreState.call(this,De);var Xe=De;this.arrowType=Xe.arrowType,this.createTips(),this.adjustVisual()},je.typeName="ArrowMarker",je.title="Arrow marker",je.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',je}(Oe),it=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.fillColor=ct.defaultFillColor,Fe.strokeWidth=0,Fe.fillPanel=new ye("Color",ct.defaultColorSet,ct.defaultFillColor),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe}return oe(je,Ie),Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Ie.prototype.getState.call(this);return De.typeName=je.typeName,De},je.typeName="CoverMarker",je.title="Cover marker",je.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',je}(be),at=function(Ie){function je(De,Xe,ct,Fe){var vt=Ie.call(this,De,Fe||'<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 vt.opacities=[],vt.opacityBoxes=[],vt.opacities=Xe,vt.currentOpacity=ct,vt.setCurrentOpacity=vt.setCurrentOpacity.bind(vt),vt}return oe(je,Ie),je.prototype.getUi=function(){var De=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",Xe.style.justifyContent="space-between",this.opacities.forEach(function(ct){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.alignItems="center",Fe.style.justifyContent="center",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.borderColor=ct===De.currentOpacity?De.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){De.setCurrentOpacity(ct,Fe)}),Xe.appendChild(Fe);var vt=document.createElement("div");vt.innerText=100*ct+"%",Fe.appendChild(vt),De.opacityBoxes.push(Fe)}),Xe},je.prototype.setCurrentOpacity=function(De,Xe){var ct=this;this.currentOpacity=De,this.opacityBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Xe?ct.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},je}(ue),$e=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.setOpacity=Fe.setOpacity.bind(Fe),Fe.fillColor=ct.defaultHighlightColor,Fe.strokeWidth=0,Fe.opacity=ct.defaultHighlightOpacity,Fe.fillPanel=new ye("Color",ct.defaultColorSet,Fe.fillColor),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe.opacityPanel=new at("Opacity",ct.defaultOpacitySteps,Fe.opacity),Fe.opacityPanel.onOpacityChanged=Fe.setOpacity,Fe}return oe(je,Ie),je.prototype.setOpacity=function(De){this.opacity=De,this.visual&&z.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Ie.prototype.getState.call(this);return De.typeName=je.typeName,De},je.typeName="HighlightMarker",je.title="Highlight marker",je.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>',je}(it),Je='<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>',Ye='<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(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.bgColor="transparent",Fe.tipPosition={x:0,y:0},Fe.tipBase1Position={x:0,y:0},Fe.tipBase2Position={x:0,y:0},Fe.tipMoving=!1,Fe.color=ct.defaultStrokeColor,Fe.bgColor=ct.defaultFillColor,Fe.fontFamily=ct.defaultFontFamily,Fe.defaultSize={x:100,y:30},Fe.setBgColor=Fe.setBgColor.bind(Fe),Fe.getTipPoints=Fe.getTipPoints.bind(Fe),Fe.positionTip=Fe.positionTip.bind(Fe),Fe.setTipPoints=Fe.setTipPoints.bind(Fe),Fe.colorPanel=new ye("Text color",ct.defaultColorSet,Fe.color,Je),Fe.colorPanel.onColorChanged=Fe.setColor,Fe.bgColorPanel=new ye("Fill color",ct.defaultColorSet,Fe.bgColor,Ye),Fe.bgColorPanel.onColorChanged=Fe.setBgColor,Fe.fontFamilyPanel=new ze("Font",ct.defaultFontFamilies,ct.defaultFontFamily),Fe.fontFamilyPanel.onFontChanged=Fe.setFont,Fe.tipGrip=new xe,Fe.tipGrip.visual.transform.baseVal.appendItem(z.createTransform()),Fe.controlBox.appendChild(Fe.tipGrip.visual),Fe}return oe(je,Ie),je.prototype.ownsTarget=function(De){return Ie.prototype.ownsTarget.call(this,De)||this.tipGrip.ownsTarget(De)||this.tip===De},je.prototype.createTip=function(){z.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=z.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},je.prototype.pointerDown=function(De,Xe){this.state==="new"&&Ie.prototype.pointerDown.call(this,De,Xe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Xe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ie.prototype.pointerDown.call(this,De,Xe)},je.prototype.pointerUp=function(De){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ie.prototype.pointerUp.call(this,De);else{var Xe=this.state==="creating";Ie.prototype.pointerUp.call(this,De),this.setTipPoints(Xe),this.positionTip()}},je.prototype.manipulate=function(De){if(this.tipMoving){var Xe=this.unrotatePoint(De);this.tipPosition={x:Xe.x-this.manipulationStartLeft,y:Xe.y-this.manipulationStartTop},this.positionTip()}else Ie.prototype.manipulate.call(this,De)},je.prototype.setBgColor=function(De){this.bgRectangle&&this.tip&&(z.setAttributes(this.bgRectangle,[["fill",De]]),z.setAttributes(this.tip,[["fill",De]])),this.bgColor=De,this.fillColorChanged(De)},je.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},je.prototype.setTipPoints=function(De){De===void 0&&(De=!1);var Xe=Math.min(this.height/2,15),ct=this.height/5;De&&(this.tipPosition={x:Xe+ct/2,y:this.height+20});var Fe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Fe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ct=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:Xe,y:0},this.tipBase2Position={x:Xe+ct,y:0}):(this.tipBase1Position={x:0,y:Xe},this.tipBase2Position={x:0,y:Xe+ct}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Fe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ct=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Xe-ct,y:0},this.tipBase2Position={x:this.width-Xe,y:0}):(this.tipBase1Position={x:this.width,y:Xe},this.tipBase2Position={x:this.width,y:Xe+ct}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Fe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ct=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Xe-ct,y:this.height},this.tipBase2Position={x:this.width-Xe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Xe-ct},this.tipBase2Position={x:this.width,y:this.height-Xe}):Fe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ct=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:Xe,y:this.height},this.tipBase2Position={x:Xe+ct,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Xe},this.tipBase2Position={x:0,y:this.height-Xe-ct})},je.prototype.resize=function(De){Ie.prototype.resize.call(this,De),this.positionTip()},je.prototype.positionTip=function(){z.setAttributes(this.tip,[["points",this.getTipPoints()]]);var De=this.tipGrip.visual.transform.baseVal.getItem(0);De.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(De,0)},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),je.prototype.select=function(){this.positionTip(),Ie.prototype.select.call(this)},je.prototype.getState=function(){var De=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ie.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){var Xe=De;this.bgColor=Xe.bgColor,this.tipPosition=Xe.tipPosition,Ie.prototype.restoreState.call(this,De),this.createTip(),this.setTipPoints()},je.prototype.scale=function(De,Xe){Ie.prototype.scale.call(this,De,Xe),this.tipPosition={x:this.tipPosition.x*De,y:this.tipPosition.y*Xe},this.positionTip()},je.typeName="CalloutMarker",je.title="Callout marker",je.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>',je}(Ge),st=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.fillColor="transparent",Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.opacity=1,Fe.strokeColor=ct.defaultColor,Fe.strokeWidth=ct.defaultStrokeWidth,Fe.strokeDasharray=ct.defaultStrokeDasharray,Fe.fillColor=ct.defaultFillColor,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setFillColor=Fe.setFillColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.setOpacity=Fe.setOpacity.bind(Fe),Fe.createVisual=Fe.createVisual.bind(Fe),Fe.strokePanel=new ye("Line color",se(ct.defaultColorSet,["transparent"]),ct.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.fillPanel=new ye("Fill color",se(ct.defaultColorSet,["transparent"]),Fe.fillColor,Ye),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe.strokeWidthPanel=new Ae("Line width",ct.defaultStrokeWidths,ct.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Te("Line style",ct.defaultStrokeDasharrays,ct.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe.opacityPanel=new at("Opacity",ct.defaultOpacitySteps,Fe.opacity),Fe.opacityPanel.onOpacityChanged=Fe.setOpacity,Fe}return oe(je,Ie),je.prototype.ownsTarget=function(De){return!(!Ie.prototype.ownsTarget.call(this,De)&&De!==this.visual)},je.prototype.createVisual=function(){this.visual=z.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)},je.prototype.pointerDown=function(De,Xe){Ie.prototype.pointerDown.call(this,De,Xe),this.state==="new"&&(this.createVisual(),this.moveVisual(De),this._state="creating")},je.prototype.manipulate=function(De){Ie.prototype.manipulate.call(this,De)},je.prototype.resize=function(De){Ie.prototype.resize.call(this,De),this.setSize()},je.prototype.setSize=function(){Ie.prototype.setSize.call(this),z.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},je.prototype.pointerUp=function(De){Ie.prototype.pointerUp.call(this,De),this.setSize()},je.prototype.setStrokeColor=function(De){this.strokeColor=De,this.visual&&z.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(De),this.stateChanged()},je.prototype.setFillColor=function(De){this.fillColor=De,this.visual&&z.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(De),this.stateChanged()},je.prototype.setStrokeWidth=function(De){this.strokeWidth=De,this.visual&&z.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},je.prototype.setStrokeDasharray=function(De){this.strokeDasharray=De,this.visual&&z.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},je.prototype.setOpacity=function(De){this.opacity=De,this.visual&&z.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ie.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){var Xe=De;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.opacity=Xe.opacity,this.createVisual(),Ie.prototype.restoreState.call(this,De),this.setSize()},je.prototype.scale=function(De,Xe){Ie.prototype.scale.call(this,De,Xe),this.setSize()},je.typeName="EllipseMarker",je.title="Ellipse marker",je.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>',je}(_e),ot=function(Ie){function je(De,Xe,ct){return Ie.call(this,De,Xe,ct)||this}return oe(je,Ie),Object.defineProperty(je.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),je.prototype.ownsTarget=function(De){return!(!Ie.prototype.ownsTarget.call(this,De)&&De!==this.tip1&&De!==this.tip2)},je.prototype.createTips=function(){this.tip1=z.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(z.createTransform()),this.visual.appendChild(this.tip1),this.tip2=z.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(z.createTransform()),this.visual.appendChild(this.tip2)},je.prototype.pointerDown=function(De,Xe){Ie.prototype.pointerDown.call(this,De,Xe),this.state==="creating"&&this.createTips()},je.prototype.adjustVisual=function(){if(Ie.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(z.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()]]),z.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 De=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Xe=this.tip1.transform.baseVal.getItem(0);Xe.setRotate(De,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Xe,0);var ct=this.tip2.transform.baseVal.getItem(0);ct.setRotate(De+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ct,0)}},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Ie.prototype.getState.call(this);return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){Ie.prototype.restoreState.call(this,De),this.createTips(),this.adjustVisual()},je.typeName="MeasurementMarker",je.title="Measurement marker",je.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>',je}(Oe),mt=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.strokePanel.colors=ct.defaultColorSet,Fe.fillColor="transparent",Fe}return oe(je,Ie),Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Ie.prototype.getState.call(this);return De.typeName=je.typeName,De},je.typeName="EllipseFrameMarker",je.title="Ellipse frame marker",je.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>',je}(st),ft=function(){function Ie(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ie.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ie.prototype.addUndoStep=function(je){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(je)||(this.undoStack.push(je),JSON.stringify(this.lastRedoStep)!==JSON.stringify(je)&&this.redoStack.splice(0,this.redoStack.length))},Ie.prototype.replaceLastUndoStep=function(je){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=je)},Ie.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ie.prototype.undo=function(){if(this.undoStack.length>1){var je=this.undoStack.pop();return je!==void 0&&this.redoStack.push(je),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ie.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ie}(),qe=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.curveX=0,Fe.curveY=0,Fe.manipulationStartCurveX=0,Fe.manipulationStartCurveY=0,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.positionGrips=Fe.positionGrips.bind(Fe),Fe.addControlGrips=Fe.addControlGrips.bind(Fe),Fe.adjustVisual=Fe.adjustVisual.bind(Fe),Fe.setupControlBox=Fe.setupControlBox.bind(Fe),Fe.resize=Fe.resize.bind(Fe),Fe.strokeColor=ct.defaultColor,Fe.strokeWidth=ct.defaultStrokeWidth,Fe.strokeDasharray=ct.defaultStrokeDasharray,Fe.strokePanel=new ye("Line color",ct.defaultColorSet,ct.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.strokeWidthPanel=new Ae("Line width",ct.defaultStrokeWidths,ct.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Te("Line style",ct.defaultStrokeDasharrays,ct.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe}return oe(je,Ie),je.prototype.ownsTarget=function(De){return!(!Ie.prototype.ownsTarget.call(this,De)&&De!==this.visual&&De!==this.selectorCurve&&De!==this.visibleCurve&&!this.curveGrip.ownsTarget(De))},je.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},je.prototype.createVisual=function(){this.visual=z.createGroup(),this.selectorCurve=z.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=z.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)},je.prototype.pointerDown=function(De,Xe){Ie.prototype.pointerDown.call(this,De,Xe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=De.x,this.curveY=De.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Xe)&&(this.activeGrip=this.curveGrip,this._state="resize")},je.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),z.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),z.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),z.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},je.prototype.setupControlBox=function(){Ie.prototype.setupControlBox.call(this),this.curveControlLine1=z.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=z.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)},je.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ie.prototype.addControlGrips.call(this)},je.prototype.positionGrips=function(){Ie.prototype.positionGrips.call(this);var De=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-De/2,this.curveY-De/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()))},je.prototype.manipulate=function(De){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+De.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+De.y-this.manipulationStartY),Ie.prototype.manipulate.call(this,De)},je.prototype.resize=function(De){this.activeGrip===this.curveGrip&&(this.curveX=De.x,this.curveY=De.y),Ie.prototype.resize.call(this,De),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},je.prototype.setStrokeColor=function(De){this.strokeColor=De,this.adjustVisual(),this.colorChanged(De)},je.prototype.setStrokeWidth=function(De){this.strokeWidth=De,this.adjustVisual()},je.prototype.setStrokeDasharray=function(De){this.strokeDasharray=De,this.adjustVisual()},je.prototype.scale=function(De,Xe){this.curveX=this.curveX*De,this.curveY=this.curveY*Xe,Ie.prototype.scale.call(this,De,Xe)},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ie.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){Ie.prototype.restoreState.call(this,De);var Xe=De;this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.curveX=Xe.curveX,this.curveY=Xe.curveY,this.createVisual(),this.adjustVisual()},je.typeName="CurveMarker",je.title="Curve marker",je.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>',je}(Pe),Be=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,Xe,ct)||this;return Fe.fillColor="transparent",Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.textColor="transparent",Fe.fontSize="1rem",Fe.isMoved=!1,Fe.captionText="Caption",Fe.PADDING=5,Fe.captionBoxWidth=0,Fe.captionBoxHeight=0,Fe.strokeColor=ct.defaultColor,Fe.strokeWidth=ct.defaultStrokeWidth,Fe.strokeDasharray=ct.defaultStrokeDasharray,Fe.fillColor=ct.defaultFillColor,Fe.textColor=ct.defaultStrokeColor,Fe.fontFamily=ct.defaultFontFamily,Fe.fontSize=ct.defaultCaptionFontSize,Fe.captionText=ct.defaultCaptionText,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setFillColor=Fe.setFillColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.createVisual=Fe.createVisual.bind(Fe),Fe.sizeCaption=Fe.sizeCaption.bind(Fe),Fe.setCaptionText=Fe.setCaptionText.bind(Fe),Fe.showTextEditor=Fe.showTextEditor.bind(Fe),Fe.positionTextEditor=Fe.positionTextEditor.bind(Fe),Fe.finishTextEditing=Fe.finishTextEditing.bind(Fe),Fe.setFont=Fe.setFont.bind(Fe),Fe.setTextColor=Fe.setTextColor.bind(Fe),Fe.strokePanel=new ye("Line color",se(ct.defaultColorSet,["transparent"]),Fe.strokeColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.fillPanel=new ye("Fill color",se(ct.defaultColorSet,["transparent"]),Fe.fillColor,Ye),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe.strokeWidthPanel=new Ae("Line width",ct.defaultStrokeWidths,ct.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Te("Line style",ct.defaultStrokeDasharrays,ct.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe.fontFamilyPanel=new ze("Font",ct.defaultFontFamilies,ct.defaultFontFamily),Fe.fontFamilyPanel.onFontChanged=Fe.setFont,Fe.textColorPanel=new ye("Text color",ct.defaultColorSet,Fe.textColor,Je),Fe.textColorPanel.onColorChanged=Fe.setTextColor,Fe}return oe(je,Ie),je.prototype.ownsTarget=function(De){return!(!Ie.prototype.ownsTarget.call(this,De)&&De!==this.visual&&De!==this.frame&&De!==this.captionBg&&De!==this.captionElement)},je.prototype.createVisual=function(){this.visual=z.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=z.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=z.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=z.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()},je.prototype.setCaptionText=function(De){this.captionText=De,this.captionElement.textContent=this.captionText,this.sizeCaption()},je.prototype.pointerDown=function(De,Xe){Ie.prototype.pointerDown.call(this,De,Xe),this.isMoved=!1,this.pointerDownPoint=De,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(De),this._state="creating")},je.prototype.manipulate=function(De){Ie.prototype.manipulate.call(this,De),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(De.x-this.pointerDownPoint.x)>5||Math.abs(De.y-this.pointerDownPoint.y)>5)},je.prototype.resize=function(De){Ie.prototype.resize.call(this,De),this.setSize()},je.prototype.sizeCaption=function(){var De=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=De.width+2*this.PADDING,this.captionBoxHeight=De.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),z.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')"]]),z.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')"]])},je.prototype.showTextEditor=function(){var De=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(Xe){Xe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Xe){Xe.key==="Enter"&&De.finishTextEditing(De.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Xe){Xe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){De.finishTextEditing(De.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){De.finishTextEditing(De.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},je.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"))},je.prototype.finishTextEditing=function(De){this.setCaptionText(De.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},je.prototype.setFont=function(De){this.captionElement&&z.setAttributes(this.captionElement,[["font-family",De]]),this.fontFamily=De,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},je.prototype.setTextColor=function(De){this.captionElement&&z.setAttributes(this.captionElement,[["fill",De]]),this.textColor=De,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},je.prototype.setSize=function(){Ie.prototype.setSize.call(this),z.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},je.prototype.pointerUp=function(De){Ie.prototype.pointerUp.call(this,De),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},je.prototype.dblClick=function(De,Xe){Ie.prototype.dblClick.call(this,De,Xe),this.showTextEditor()},je.prototype.setStrokeColor=function(De){this.strokeColor=De,this.frame&&z.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(De),this.stateChanged()},je.prototype.setFillColor=function(De){this.fillColor=De,this.captionBg&&z.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(De),this.stateChanged()},je.prototype.setStrokeWidth=function(De){this.strokeWidth=De,this.frame&&z.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},je.prototype.setStrokeDasharray=function(De){this.strokeDasharray=De,this.frame&&z.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=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},Ie.prototype.getState.call(this));return De.typeName=this.typeName,De},je.prototype.restoreState=function(De){var Xe=De;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.textColor=Xe.textColor,this.fontFamily=Xe.fontFamily,this.captionText=Xe.captionText,this.fontSize=Xe.fontSize,this.createVisual(),Ie.prototype.restoreState.call(this,De),this.setSize()},je.prototype.scale=function(De,Xe){Ie.prototype.scale.call(this,De,Xe),this.setSize()},je.typeName="CaptionFrameMarker",je.title="Caption frame marker",je.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>',je}(_e),lt=function(){function Ie(je,De){De===void 0&&(De=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=je,this.cancelable=De}return Object.defineProperty(Ie.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ie.prototype.preventDefault=function(){this._defaultPrevented=!0},Ie}(),Ne=function(Ie){function je(De,Xe,ct){var Fe=Ie.call(this,De,!1)||this;return Fe.dataUrl=Xe,Fe.state=ct,Fe}return oe(je,Ie),je}(lt),rt=function(Ie){function je(De,Xe,ct){ct===void 0&&(ct=!1);var Fe=Ie.call(this,De,ct)||this;return Fe.marker=Xe,Fe}return oe(je,Ie),je}(lt),gt=function(){function Ie(){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 Ie.prototype.addEventListener=function(je,De){this[je].push(De)},Ie.prototype.removeEventListener=function(je,De){var Xe=this[je].indexOf(De);Xe>-1&&this[je].splice(Xe,1)},Ie}(),yt=function(){function Ie(je){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ke,this._isOpen=!1,this.undoRedoManager=new ft,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new gt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ie.instanceCounter++,this.styles=new re(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=je,this.targetRoot=document.body,this.width=je.clientWidth,this.height=je.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(Ie.prototype,"ALL_MARKER_TYPES",{get:function(){return[Le,tt,We,Ge,mt,st,$e,Qe,ot,it,Oe,qe,Be]},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Le,tt,We,Ge,st,$e,Qe]},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Le,tt,We,Ge,$e]},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(je){var De=this;this._availableMarkerTypes.splice(0),je.forEach(function(Xe){if(typeof Xe=="string"){var ct=De.ALL_MARKER_TYPES.find(function(Fe){return Fe.typeName===Xe});ct!==void 0&&De._availableMarkerTypes.push(ct)}else De._availableMarkerTypes.push(Xe)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(je){this._zoomLevel=je,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(Ie.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ie.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),x.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ie.prototype.show=function(){var je=this;this.styles.styleSheetRoot===void 0&&E.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=E.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(De){return De(new lt(je))})},Ie.prototype.render=function(){return ne(this,void 0,void 0,function(){var je;return ee(this,function(De){switch(De.label){case 0:return this.setCurrentMarker(),(je=new b).naturalSize=this.renderAtNaturalSize,je.imageType=this.renderImageType,je.imageQuality=this.renderImageQuality,je.markersOnly=this.renderMarkersOnly,je.width=this.renderWidth,je.height=this.renderHeight,[4,je.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return De.sent(),[4,je.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,De.sent()]}})})},Ie.prototype.close=function(je){var De=this;if(je===void 0&&(je=!1),this.isOpen){var Xe=!1;je||this.eventListeners.beforeclose.forEach(function(ct){var Fe=new lt(De,!0);ct(Fe),Fe.defaultPrevented&&(Xe=!0)}),Xe||(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(ct){return ct(new lt(De))}),this.detachEvents(),this._isOpen=!1)}},Ie.prototype.addMarkersToToolbar=function(){for(var je,De=[],Xe=0;Xe<arguments.length;Xe++)De[Xe]=arguments[Xe];(je=this._availableMarkerTypes).push.apply(je,De)},Ie.prototype.addRenderEventListener=function(je){this.addEventListener("render",function(De){je(De.dataUrl,De.state)})},Ie.prototype.removeRenderEventListener=function(je){},Ie.prototype.addCloseEventListener=function(je){this.addEventListener("close",function(){je()})},Ie.prototype.removeCloseEventListener=function(je){},Ie.prototype.setupResizeObserver=function(){var je=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){je.resize(je.target.clientWidth,je.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return je.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ie.prototype.onPopupTargetResize=function(){var je=1*this.target.clientWidth/this.target.clientHeight,De=this.editorCanvas.clientWidth/je>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*je:this.editorCanvas.clientWidth,Xe=De<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/je;this.resize(De,Xe)},Ie.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ie.prototype.resize=function(je,De){this._isResizing=!0;var Xe=je/this.imageWidth,ct=De/this.imageHeight;this.imageWidth=Math.round(je),this.imageHeight=Math.round(De),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(Xe,ct),this._isResizing=!1},Ie.prototype.scaleMarkers=function(je,De){var Xe,ct=this;this._currentMarker&&this._currentMarker instanceof Ge?this._currentMarker.scale(je,De):(Xe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Fe){Fe!==ct._currentMarker&&Fe.scale(je,De)}),Xe!==void 0&&this.setCurrentMarker(Xe)},Ie.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"},Ie.prototype.setTopLeft=function(){var je=this.editingTarget.getBoundingClientRect(),De=this.editorCanvas.getBoundingClientRect();this.left=je.left-De.left,this.top=je.top-De.top},Ie.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)},Ie.prototype.addDefs=function(){for(var je,De=[],Xe=0;Xe<arguments.length;Xe++)De[Xe]=arguments[Xe];this.defs=z.createDefs(),this.addDefsToImage(),(je=this.defs).append.apply(je,De)},Ie.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ie.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)},Ie.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ie.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ie.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)},Ie.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ie.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)},Ie.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 je=document.createElement("a");je.href="https://markerjs.com/",je.target="_blank",je.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>',je.title="Powered by marker.js",je.style.display="grid",je.style.alignItems="center",je.style.justifyItems="center",je.style.padding="3px",je.style.width="20px",je.style.height="20px",this.logoUI.appendChild(je),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ie.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")},Ie.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"},Ie.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ie.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 je=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=je+"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 fe(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 ce(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ie.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ie.prototype.removeMarker=function(je){this.markerImage.removeChild(je.container),this.markers.indexOf(je)>-1&&this.markers.splice(this.markers.indexOf(je),1),je.dispose()},Ie.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())},Ie.prototype.toolbarButtonClicked=function(je,De){if(je==="marker"&&De!==void 0)this.createNewMarker(De);else if(je==="action")switch(De){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()}},Ie.prototype.deleteSelectedMarker=function(){var je=this;if(this._currentMarker!==void 0){var De=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ct){var Fe=new rt(je,je._currentMarker,!0);ct(Fe),Fe.defaultPrevented&&(De=!0)}),!De){var Xe=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(ct){return ct(new rt(je,Xe))})}}},Ie.prototype.clear=function(){var je=this,De=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(vt){var wt=new rt(je,void 0,!0);vt(wt),wt.defaultPrevented&&(De=!0)}),!De)){this.setCurrentMarker();for(var Xe=function(vt){var wt=ct.markers[vt];ct.setCurrentMarker(ct.markers[vt]),ct._currentMarker.dispose(),ct.markerImage.removeChild(ct._currentMarker.container),ct.markers.splice(ct.markers.indexOf(ct._currentMarker),1),ct.eventListeners.markerdelete.forEach(function(Ot){return Ot(new rt(je,wt))})},ct=this,Fe=this.markers.length-1;Fe>=0;Fe--)Xe(Fe);this.addUndoStep()}},Object.defineProperty(Ie.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ie.prototype.showNotesEditor=function(){var je;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=(je=this._currentMarker.notes)!==null&&je!==void 0?je:"",this.overlayContainer.appendChild(this.notesArea))},Ie.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)},Ie.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ie.prototype.addUndoStep=function(){var je=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var De=this.getState(),Xe=this.undoRedoManager.getLastUndoStep();if(!Xe||Xe.width===De.width&&Xe.height===De.height){var ct=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(De),ct<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Fe){return Fe(new lt(je))})}else this.undoRedoManager.replaceLastUndoStep(De),this.eventListeners.statechange.forEach(function(Fe){return Fe(new lt(je))})}},Ie.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ie.prototype.undoStep=function(){var je=this,De=this.undoRedoManager.undo();De!==void 0&&(this.restoreState(De),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Xe){return Xe(new lt(je))}))},Ie.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ie.prototype.redoStep=function(){var je=this,De=this.undoRedoManager.redo();De!==void 0&&(this.restoreState(De),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Xe){return Xe(new lt(je))}))},Ie.prototype.stepZoom=function(){var je=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=je<this.zoomSteps.length-1?this.zoomSteps[je+1]:this.zoomSteps[0]},Ie.prototype.panTo=function(je){this.contentDiv.scrollBy({left:this.prevPanPoint.x-je.x,top:this.prevPanPoint.y-je.y}),this.prevPanPoint=je},Ie.prototype.startRenderAndClose=function(){return ne(this,void 0,void 0,function(){var je,De,Xe=this;return ee(this,function(ct){switch(ct.label){case 0:return[4,this.render()];case 1:return je=ct.sent(),De=this.getState(),this.eventListeners.render.forEach(function(Fe){return Fe(new Ne(Xe,je,De))}),this.close(!0),[2]}})})},Ie.prototype.getState=function(je){je===!0&&this.setCurrentMarker();var De={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Xe){return De.markers.push(Xe.getState())}),De},Ie.prototype.restoreState=function(je){var De=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);je.markers.forEach(function(Xe){var ct=De._availableMarkerTypes.find(function(vt){return vt.typeName===Xe.typeName});if(ct!==void 0){var Fe=De.addNewMarker(ct);Fe.restoreState(Xe),De.markers.push(Fe)}}),je.width&&je.height&&(je.width!==this.imageWidth||je.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/je.width,this.imageHeight/je.height),this.eventListeners.restorestate.forEach(function(Xe){return Xe(new lt(De))})},Ie.prototype.addNewMarker=function(je){var De=z.createGroup();return this.markerImage.appendChild(De),new je(De,this.overlayContainer,this.settings)},Ie.prototype.createNewMarker=function(je){var De,Xe=this;(De=typeof je=="string"?this._availableMarkerTypes.find(function(ct){return ct.typeName===je}):je)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(De),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(De.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ct){return ct(new rt(Xe,Xe._currentMarker))}))},Ie.prototype.markerCreated=function(je){var De=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(je),this.setCurrentMarker(je),je instanceof tt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(tt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Xe){return Xe(new rt(De,De._currentMarker))})},Ie.prototype.colorChanged=function(je){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=je,this.settings.defaultStrokeColor=je)},Ie.prototype.fillColorChanged=function(je){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=je)},Ie.prototype.markerStateChanged=function(je){var De=this;this.eventListeners.markerchange.forEach(function(Xe){return Xe(new rt(De,je))})},Ie.prototype.setCurrentMarker=function(je){var De=this;this._currentMarker!==je&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Xe){return Xe(new rt(De,De._currentMarker))})),this._currentMarker=je,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(Xe){return Xe(new rt(De,De._currentMarker))}))},Ie.prototype.onPointerDown=function(je){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||je.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var De=this.markers.find(function(Xe){return Xe.ownsTarget(je.target)});De!==void 0?(this.setCurrentMarker(De),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(je.clientX,je.clientY),je.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:je.clientX,y:je.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(je.clientX,je.clientY))},Ie.prototype.onDblClick=function(je){if(this._isFocused||this.focus(),this.mode==="select"){var De=this.markers.find(function(Xe){return Xe.ownsTarget(je.target)});De!==void 0&&De!==this._currentMarker&&this.setCurrentMarker(De),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(je.clientX,je.clientY),je.target):this.setCurrentMarker()}},Ie.prototype.onPointerMove=function(je){this.touchPoints!==1&&je.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||je.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(je.clientX,je.clientY)):this.zoomLevel>1&&this.panTo({x:je.clientX,y:je.clientY}))},Ie.prototype.onPointerUp=function(je){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(je.clientX,je.clientY)),this.isDragging=!1,this.addUndoStep()},Ie.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ie.prototype.onKeyUp=function(je){this._currentMarker===void 0||this.notesArea!==void 0||je.key!=="Delete"&&je.key!=="Backspace"||this.deleteSelectedMarker()},Ie.prototype.clientToLocalCoordinates=function(je,De){var Xe=this.markerImage.getBoundingClientRect();return{x:(je-Xe.left)/this.zoomLevel,y:(De-Xe.top)/this.zoomLevel}},Ie.prototype.onWindowResize=function(){this.positionUI()},Ie.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var je=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=je+"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()},Ie.prototype.addLicenseKey=function(je){x.addKey(je)},Ie.prototype.addEventListener=function(je,De){this.eventListeners.addEventListener(je,De)},Ie.prototype.removeEventListener=function(je,De){this.eventListeners.removeEventListener(je,De)},Ie.prototype.renderState=function(je){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(je),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ie.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ie.prototype.focus=function(){var je=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(De){return De(new lt(je))}))},Ie.prototype.blur=function(){var je=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(De){return De(new lt(je))}))},Ie.instanceCounter=0,Ie}(),dt=Ce(38147),Ve=Ce(65862),He=(Ie,je,De)=>new Promise((Xe,ct)=>{var Fe=Ot=>{try{wt(De.next(Ot))}catch(Tt){ct(Tt)}},vt=Ot=>{try{wt(De.throw(Ot))}catch(Tt){ct(Tt)}},wt=Ot=>Ot.done?Xe(Ot.value):Promise.resolve(Ot.value).then(Fe,vt);wt((De=De.apply(Ie,je)).next())}),et=({data:Ie,className:je,fullWidth:De,style:Xe={},onClose:ct,onOk:Fe,showFullTools:vt,noAssociationId:wt})=>{const Ot=(0,ve.useRef)(null),Tt=(0,ve.useRef)(null),xt=(0,ve.useRef)(null),Nt=(0,ve.useRef)(null),[Rt,Ut]=(0,ve.useState)(!1),[Qt,or]=(0,ve.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ve.useEffect)(()=>(xt.current||(xt.current=document.createElement("style"),document.head.appendChild(xt.current)),Ie!=null&&Ie.visible?(document.body.setAttribute("data-custom","y-hidden"),xt.current.innerHTML=" html { overflow-y: hidden; }",Ie!=null&&Ie.src&&cr()):(document.body.removeAttribute("data-custom"),xt.current&&(document.head.removeChild(xt.current),xt.current=null)),()=>{document.body.removeAttribute("data-custom"),xt.current&&(document.head.removeChild(xt.current),xt.current=null)}),[Ie==null?void 0:Ie.visible]);const cr=()=>He(void 0,null,function*(){Ut(!0),or("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Hr=yield(0,Ve.ZJ)(Ie==null?void 0:Ie.src);Ot.current.src="",Ot.current.src=Hr,Ot.current.onload=function(){Fr()},Ut(!1),or("")}),ir=Hr=>He(void 0,null,function*(){Ut(!0),or("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Vr=yield(0,dt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ie.title,file:Hr.dataUrl}});Vr!=null&&Vr.id&&!wt?(yield(0,dt.ZP)(`/api/attachments/${Ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:Vr==null?void 0:Vr.id,settings:JSON.stringify(Hr.state)}})).status===0&&Fe():Vr!=null&&Vr.id&&Fe(Vr),Ut(!1),or("")}),_r=()=>{const Hr=document.querySelector('a[href="https://markerjs.com/"]');Hr&&Hr.parentNode&&(Hr.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(on=>{const yn=document.querySelector(on.name);yn&&yn.setAttribute("title",on.title)})},Fr=()=>{Tt.current=new yt(Ot.current),Tt.current.targetRoot=Nt.current,Tt.current.addEventListener("render",ir),Tt.current.addEventListener("beforeclose",ct),vt&&(Tt.current.availableMarkerTypes=Tt.current.ALL_MARKER_TYPES,Tt.current.uiStyleSettings.redoButtonVisible=!0,Tt.current.uiStyleSettings.notesButtonVisible=!0,Tt.current.uiStyleSettings.zoomButtonVisible=!0,Tt.current.uiStyleSettings.zoomOutButtonVisible=!0,Tt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Tt.current.uiStyleSettings,Tt.current.show(),Ie!=null&&Ie.snapshotData&&Tt.current.restoreState(Ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),_r()},300)};return ve.createElement(ve.Fragment,null,(Ie==null?void 0:Ie.visible)&&ve.createElement(de.Z,{spinning:Rt,tip:Qt,style:{position:"absolute",width:"100vw"}},ve.createElement("div",{ref:Nt,className:he()(Ue.imageDimensions,je,De?Ue.fullWidth:""),style:Xe},ve.createElement("img",{className:Ue.img,ref:Ot}))))}},99298:function(bt,pt,Ce){"use strict";var ve=Ce(59301),Ue=Ce(77019),a=Ce(5269),he=Ce(20554),de=Ce(7939),te=Ce(95097),oe=Ce(96408),ne=Ce(48136),ee=Ce(59301);const se=(0,ve.forwardRef)(({callback:z,showSaveButton:x,value:b=""},E)=>{const re=(0,ve.useRef)(),ae=[{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 "}]}]}],le=[{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}`}]}]}],fe=ye=>{re.current.setValue(re.current.getValue()+" "+ye.value+" ")},ce=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ee.createElement(Ue.Z,{className:oe.Z.lists,gutter:[10,10]},ae.map((ye,Se)=>ee.createElement(a.Z,{flex:"110px",className:oe.Z.item},ee.createElement("div",null,ee.createElement(te.Z,{value:`$$${ye.value}$$`}),ye.name),ee.createElement("div",{className:oe.Z.children},ye.children.map((we,xe)=>ee.createElement("div",{key:xe},ee.createElement("h1",null,we.name),ee.createElement(Ue.Z,{gutter:[10,10]},we.data.map((ge,_e)=>ee.createElement(a.Z,{key:_e,onClick:()=>fe(ge),className:oe.Z.diamond},ee.createElement(te.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ee.createElement(Ue.Z,{className:oe.Z.lists,gutter:[10,10]},le.map((ye,Se)=>ee.createElement(a.Z,{flex:"110px",className:oe.Z.item},ee.createElement("div",null,ee.createElement(te.Z,{value:"`$$"+ye.value+"$$`"}),ye.name),ee.createElement("div",{className:oe.Z.children},ye.children.map((we,xe)=>ee.createElement("div",{key:xe},we.name&&ee.createElement("h1",null,we.name),ee.createElement(Ue.Z,{gutter:[10,10]},we.data.map((ge,_e)=>ee.createElement(a.Z,{key:_e,onClick:()=>fe(ge),className:oe.Z.diamond},ee.createElement(te.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],ue=()=>{var ye=document.createElement("div");ye.innerHTML=re.current.getValue();var Se=ye.innerText;return z&&z(Se),Se};return(0,ve.useImperativeHandle)(E,()=>({getData:ue})),ee.createElement("div",{className:oe.Z.mathWrap},ee.createElement(he.default,{defaultActiveKey:"1",items:ce}),ee.createElement("math-field",{locale:"zh_cn",className:oe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:re,style:{width:800,marginTop:30,fontSize:18}},b||""),x&&ee.createElement("div",{className:oe.Z.button},ee.createElement(de.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});pt.Z=se},2524:function(bt,pt,Ce){"use strict";var ve=Ce(59301),Ue=Ce(93314),a=Ce(7939),he=Object.defineProperty,de=Object.defineProperties,te=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,se=(E,re,ae)=>re in E?he(E,re,{enumerable:!0,configurable:!0,writable:!0,value:ae}):E[re]=ae,z=(E,re)=>{for(var ae in re||(re={}))ne.call(re,ae)&&se(E,ae,re[ae]);if(oe)for(var ae of oe(re))ee.call(re,ae)&&se(E,ae,re[ae]);return E},x=(E,re)=>de(E,te(re));const b=({img:E,buttonProps:re={},styles:ae={},customText:le,ButtonText:fe,ButtonClick:ce,Buttonclass:ue,ButtonTwo:ye,imgStyles:Se,loading:we=!1,className:xe=""})=>ve.createElement("section",{className:`tc animated fadeIn ${xe}`,style:z({color:"#999",margin:"100px auto",visibility:we?"hidden":"visible"},ae)},ve.createElement("img",{src:E||Ue,style:x(z({},Se),{pointerEvents:"none",userSelect:"none"})}),ve.createElement("p",{className:"mt20 font14"},le||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),fe&&ve.createElement(a.ZP,z({className:ue,onClick:ce},re),fe),ye&&ye);pt.Z=b},52918:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return ue}});var ve=Ce(59301),Ue={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},a=Ce(7939),he=Ce(70557),de=Ce(50258),te=Ce(25399),oe=Ce(65862),ne=Ce(87513),ee=Ce(2524),se=Ce(74128),z=Ce(7310),x=Ce(59301),b=Object.defineProperty,E=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,le=(ye,Se,we)=>Se in ye?b(ye,Se,{enumerable:!0,configurable:!0,writable:!0,value:we}):ye[Se]=we,fe=(ye,Se)=>{for(var we in Se||(Se={}))re.call(Se,we)&&le(ye,we,Se[we]);if(E)for(var we of E(Se))ae.call(Se,we)&&le(ye,we,Se[we]);return ye},ce=(ye,Se,we)=>new Promise((xe,ge)=>{var _e=Te=>{try{Ae(we.next(Te))}catch(Le){ge(Le)}},be=Te=>{try{Ae(we.throw(Te))}catch(Le){ge(Le)}},Ae=Te=>Te.done?xe(Te.value):Promise.resolve(Te.value).then(_e,be);Ae((we=we.apply(ye,Se)).next())}),ue=({editOffice:ye="view",data:Se,issaver:we,onSaver:xe,theme:ge,type:_e,filename:be,monacoEditor:Ae,className:Te,style:Le,close:ke,onClose:Pe,hasMask:Oe,disabledDownload:ze,onImgDimensions:Ge,showNodata:tt,recordInfo:Me})=>{const[We,it]=(0,ve.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[at,$e]=(0,ve.useState)(""),[Je,Ye]=(0,ve.useState)(),Qe=window.ENV==="build"?"/react/build":"",st=location.host.startsWith("localhost")?se.Z.PROXY_SERVER:se.Z.API_SERVER,mt=10*(1024*1024),ft=(0,ve.useRef)();Se!=null&&Se.startsWith("/api")&&_e!=="txt"&&(Se=se.Z.API_SERVER+Se);const qe=gt=>gt.substring(gt.lastIndexOf("/")+1).split(".").pop();be&&Ae&&(Ae.filename=be),(0,ve.useEffect)(()=>{var gt,yt;const dt=(yt=(gt=document.cookie)==null?void 0:gt.replace(/\s/g,""))==null?void 0:yt.split(";");dt==null||dt.map(Ve=>{let He=Ve.split("=");He[0]==="_educoder_session"&&$e(He[1])})},[]),(0,ve.useEffect)(()=>{_e==="office"&&(Se.indexOf("bigfilescdn.")>-1||Se.indexOf("bigfiles1")>-1?Ye({url:Se,fileType:qe(Se),model:Se.indexOf("model=edit")?"edit":"view"}):lt())},[_e,Se]);function Be(gt){return ce(this,null,function*(){gt.data.type==="pdfdata"&&(xe(gt.data.data),window.removeEventListener("message",Be,!1)),console.log("mess---:",gt.data)})}const lt=()=>ce(void 0,null,function*(){console.log("data:",Se);let gt=Se;Se.startsWith("http")||(gt=location.origin+gt);let yt=new URL(gt).pathname.split("/").pop();const dt=yield(0,ne.gJ)({attachment_id:yt});dt.url=st+dt.url,Ye(dt)}),Ne=()=>{if(Se.startsWith("http")||Se.startsWith("blob:")){rt();return}(0,oe.Sv)(be||"educoder",Se,be)},rt=()=>{Me&&(0,z.fc)({id:Me==null?void 0:Me.id,watch_type:1,course_id:Me==null?void 0:Me.course_id}),(0,oe.Nd)(be||"educoder",decodeURIComponent(Se))};return x.createElement("div",{style:fe({},Le||{}),className:`${Oe&&Ue.bgBlack} ${_e?Ue.wrp:"hide"}`},ke&&x.createElement("div",{className:Ue.close,ref:ft},!!Ge&&x.createElement(te.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ft.current},x.createElement("span",{onClick:()=>{Pe(),Ge()}},x.createElement("i",{className:"icon-yulanpizhu"}))),!ze&&x.createElement(te.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ft.current},x.createElement("span",{onClick:rt},x.createElement("i",{className:"icon-quxiaozhiding"}))),we&&x.createElement(te.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ft.current},x.createElement("span",{className:"",onClick:()=>{const gt=document.getElementById("pdfiframe");window.addEventListener("message",Be,!1),setTimeout(()=>{gt.contentWindow.postMessage("getData","*")},300)}},x.createElement("i",{className:"icon-baocun"}))),x.createElement(te.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ft.current},x.createElement("span",{className:"",onClick:()=>{Pe()}},x.createElement("i",{className:"icon-guanbi1"})))),x.createElement("div",{className:`${Ue[Te]} ${Te} ${Ue.monaco} ${_e==="txt"?"show":"hide"}`},_e==="txt"&&x.createElement(x.Fragment,null,x.createElement(de.ZP,fe({},Ae)))),_e==="audio"&&x.createElement("audio",{src:`${(Se==null?void 0:Se.indexOf("http://"))>-1||(Se==null?void 0:Se.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Se}`,autoPlay:!0}),_e==="video"&&x.createElement(x.Fragment,null,(Se==null?void 0:Se.indexOf("http"))>-1?x.createElement("video",{controls:!0,src:`${Se}`,autoPlay:!0}):x.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Se}`,autoPlay:!0})),_e==="office"&&Je&&x.createElement("iframe",{src:`${Qe}/office.html?key=${Je.key}&url=${btoa(Je.url)}&callbackUrl=${st+(Je.callbackUrl||"")}&fileType=${Je.fileType}&title=${Je.title||""}&model=${ye}&officeServer=${se.Z.ONLYOFFICE}&disabledDownload=${!!ze}`}),_e==="html"&&x.createElement("iframe",{src:Se+"&disposition=inline"}),_e==="pdf"&&x.createElement("iframe",{id:"pdfiframe",src:`${Qe}/js/pdf/index.html?filename=${be||"educoder.pdf"}&url=${encodeURIComponent(Se)}&disabledDownload=${!!ze}&model=${ye}`}),_e==="image"&&x.createElement("img",{src:`${(Se==null?void 0:Se.indexOf("http://"))>-1||(Se==null?void 0:Se.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Se}`}),(_e==="other"||_e==="download")&&x.createElement(x.Fragment,null,tt?x.createElement(ee.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:x.createElement(a.ZP,{icon:x.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ne,disabled:ze},"\u4E0B\u8F7D")}):x.createElement(a.ZP,{type:"primary",size:"middle",onClick:Ne,disabled:ze},x.createElement(he.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),_e==="flowChart"&&x.createElement("div",{className:"embed"},x.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Se||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},95097:function(bt,pt,Ce){"use strict";Ce.d(pt,{z:function(){return Ae},Z:function(){return Te}});var ve=Ce(59301),Ue=Ce(48850),a=Ce(49142),he=Ce(64018),de=Ce(80360),te=Ce(74128),oe=Ce(65862),ne=Ce(15342),ee=Ce(44104),se=Ce(7939),z=Ce(1012),x=Ce(52918),b=Ce(59301),re=({html:Le})=>{const ke=(0,ve.useRef)(null),Pe=(0,ve.useRef)(null),Oe=`.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,ve.useEffect)(()=>{const ze=ke.current.attachShadow({mode:"open"});Pe.current=document.createElement("div"),Pe.current.className="markdown-body",Pe.current.innerHTML=Le,ze.appendChild(Pe.current);const Ge=document.createElement("style");return Ge.textContent=Oe,ze.appendChild(Ge),()=>{ze.innerHTML=""}},[]),(0,ve.useEffect)(()=>{Pe.current&&(Pe.current.innerHTML=Le)},[Le]),b.createElement("div",{ref:ke})};function ae(Le){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 Le.replace(Pe,"").trim()}var le={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},fe=Object.defineProperty,ce=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,Se=(Le,ke,Pe)=>ke in Le?fe(Le,ke,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Le[ke]=Pe,we=(Le,ke)=>{for(var Pe in ke||(ke={}))ue.call(ke,Pe)&&Se(Le,Pe,ke[Pe]);if(ce)for(var Pe of ce(ke))ye.call(ke,Pe)&&Se(Le,Pe,ke[Pe]);return Le};const xe="@\u2581\u2581@",ge="@\u2581@",_e=/<pre[^>]*>/g;function be(Le){let ke=document.createElement("div");return ke.innerHTML=Le,ke.childNodes.length===0?"":ke.childNodes[0].nodeValue}const Ae=(Le,ke)=>{Le=Le||"";const Pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Oe=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ge=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ke?Le.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Pe,(tt,Me,We,it,at,$e,Je)=>{const Ye=Me||it||$e,Qe=We||at||Je||"?";return te.Z.API_SERVER+"/api/attachments/"+Ye+Qe+"&t="+(0,oe.Jn)(Ye,Date.now())+(tt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Le=Le.replace(Ge,(tt,Me,We,it,at,$e,Je)=>{const Ye=Me||it||$e,Qe=We||at||Je||"?";return te.Z.API_SERVER+"/attachments/download/"+Ye+Qe+"&t="+(0,oe.Jn)(Ye,Date.now())+(tt.indexOf(")")>-1?")":"&")}).replace(Pe,(tt,Me,We,it,at,$e,Je)=>{const Ye=Me||it||$e,Qe=We||at||Je||"?";return te.Z.API_SERVER+"/api/attachments/"+Ye+Qe+"&t="+(0,oe.Jn)(Ye,Date.now())+(tt.indexOf(")")>-1?")":"&")}).replace(Oe,(tt,Me,We,it,at)=>{const $e=Me||it,Je=We||at||"";return'"'+te.Z.API_SERVER+"/api/attachments/"+$e+Je+$e+Je+"&t="+(0,oe.Jn)($e,Date.now())}).replace(ze,(tt,Me,We,it,at)=>{const $e=Me||it,Je=We||at||"";return"("+te.Z.API_SERVER+"/files/uploads/"+$e+Je+$e+Je+"&t="+(0,oe.Jn)($e,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,`
`),Le)};var Te=({value:Le="",edit:ke=!1,className:Pe,showTextOnly:Oe,showLines:ze,style:Ge={},stylesPrev:tt={},highlightKeywords:Me,showProgramFill:We,isProgramFill:it,disabledFill:at=!1,programFillValue:$e,openEditor:Je=()=>{},onFillChange:Ye=ot=>{},onFillBlur:Qe=()=>{},onFillFocus:st=()=>{}})=>{let ot=ae(String(Le||""));const mt=(0,ve.useRef)(),ft=(0,ve.useRef)(),[qe,Be]=(0,ve.useState)(""),[lt,Ne]=(0,ve.useState)("office"),[rt,gt]=(0,ve.useState)([]),yt=(0,ve.useRef)("a"+(0,z.Z)()),dt={},Ve=xt=>/<style[\s\S]*?>/i.test(xt||""),He=(xt,Nt,Rt)=>{const Ut=document.createElement(xt===ge?"input":"textarea");Ut.style.width="100%",Ut.style.height=xt===ge?"40px":"151px",Ut.rows=5,Ut.spellcheck=!1,Ut.name="edu-program-fill",Ut.placeholder="\u8BF7\u8F93\u5165",Ut.dataset.id=Nt;const Qt=Object.keys(dt).length;return dt[Qt]=Ut,`<span class="edu-program-fill-wrap ${xt===ge?"":"show"}" style="width:${xt===ge?"600px":"100%"}" title=${Rt||""}><span>${Ut.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ze(xt){return xt=xt.replace(/!\[.*?\]\(.*?\)/g,""),xt=xt.replace(/\[.*?\]\(.*?\)/g,""),xt=xt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),xt=xt.replace(/<embed.*?>/g,""),xt=xt.replace(/<img.*?>/g,""),xt=xt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),xt=xt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),xt=xt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),xt=xt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),xt}const et=xt=>!Oe&&Ve(ot)?xt:xt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Nt,Rt){let Ut=Rt.replace(/(\n|\r)/g,"").split("}"),Qt=[];return Ut.map(or=>{or!=""&&Qt.push(`.${yt.current} ${or}`)}),`<style>${Qt.join("}")}</style>`}),Ie=(0,ve.useMemo)(()=>{try{const Ut=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Qt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,or=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,cr=/\(\/attachments\/download\//g;ot=ot.replace(cr,"("+te.Z.API_SERVER+"/attachments/download/").replace(Ut,"("+te.Z.API_SERVER+"/api/attachments/").replace(Qt,'"'+te.Z.API_SERVER+"/api/attachments/").replace(or,'"'+te.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,`
`),mt.current.style.display="none"}catch(Ut){}if(We){let Ut=-1;return ot=ot.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Qt,or,cr){var ir;return++Ut,He(Qt,Ut,(ir=$e==null?void 0:$e[Ut])==null?void 0:ir.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${et(ot||"")}</pre>`}let xt=et(ot);xt=(0,a.ZP)(xt);const Nt=(0,a.ez)();ot.match(/\[TOC\]/)&&(xt=xt.replace("<p>[TOC]</p>",(0,a.Qv)()),(0,a.Iy)()),xt=xt.replace(/(__special_katext_id_\d+__)/g,(Ut,Qt)=>{const{type:or,expression:cr}=Nt[Qt];return(0,ne.renderToString)(be(cr)||"",{displayMode:or==="block",throwOnError:!1,output:"html"})}),xt=xt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,a.AL)();const Rt=document.createElement("div");if(Rt.innerHTML=xt,Oe)return Rt.innerText;if(Me){const Ut=Me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ct(Rt,Ut),Rt.innerHTML}return setTimeout(()=>wt(),500),Rt.innerHTML},[ot,Me]);(0,ve.useEffect)(()=>{Fe.current&&Fe.current.querySelectorAll(["input","textarea"]).forEach(Nt=>{Nt.oninput=je,Nt.onblur=De,Nt.onfocus=Xe})},[rt]),(0,ve.useEffect)(()=>{var xt,Nt,Rt,Ut,Qt;if($e!=null&&$e.length)try{const or=Fe.current.querySelectorAll(".edu-program-fill-score"),cr=Fe.current.querySelectorAll('[name="edu-program-fill"]');for(const[ir,_r]of cr.entries())_r.value=((xt=$e==null?void 0:$e[ir])==null?void 0:xt.value)||"",((Nt=$e==null?void 0:$e[ir])==null?void 0:Nt.type)==="warning"?_r.className="program-fill-warning":((Rt=$e==null?void 0:$e[ir])==null?void 0:Rt.type)==="success"?_r.className="program-fill-success":_r.className="";for(const[ir,_r]of or.entries())_r.innerHTML=(Ut=$e==null?void 0:$e[ir])!=null&&Ut.score?`${(Qt=$e==null?void 0:$e[ir])==null?void 0:Qt.score}\u5206`:"";gt($e)}catch(or){console.log(or,"error")}},[$e]);const je=xt=>{rt[xt.target.dataset.id]=rt[xt.target.dataset.id]||{},rt[xt.target.dataset.id].value=xt.target.value,gt([...rt]),Ye(rt,xt.target.dataset.id)},De=xt=>{rt[xt.target.dataset.id]=rt[xt.target.dataset.id]||{},rt[xt.target.dataset.id].value=xt.target.value,gt([...rt]),Qe(rt,xt.target.dataset.id)},Xe=xt=>{rt[xt.target.dataset.id]=rt[xt.target.dataset.id]||{},rt[xt.target.dataset.id].value=xt.target.value,gt([...rt]),st(rt,xt.target.dataset.id)};function ct(xt,Nt){return xt.childNodes.forEach(Rt=>{var Ut;if(Rt.childNodes.length>0)ct(Rt,Nt);else if(Rt.nodeName!=="IMG")if(Rt.innerHTML)Rt.innerHTML=(Ut=Rt.innerHTML)==null?void 0:Ut.replace(new RegExp(Nt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Qt=document.createElement("span");Qt.innerHTML=Rt.textContent.replace(new RegExp(Nt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Rt.replaceWith(Qt)}})}const Fe=(0,ve.useRef)();a.jb.WebkitLineClamp=ze,ze&&(Ge=we(we({},Ge),a.jb));function vt(xt){let Nt=xt.target;if(Nt.tagName.toUpperCase()==="A"){let Rt=Nt.getAttribute("href");if(Rt.indexOf("office")>-1)xt.preventDefault(),Be(Rt),Ne("office");else if(Rt.indexOf("application/pdf")>-1)xt.preventDefault(),Be(Rt),Ne("pdf");else if(Rt.indexOf("text/html")>-1)xt.preventDefault(),Be(Rt),Ne("html");else if(Rt.startsWith("#")){xt.preventDefault();let Ut=document.getElementById(Rt.replace("#",""));Ut&&Ut.scrollIntoView(!0)}}}const wt=()=>{var xt;const Nt=(xt=Fe.current)==null?void 0:xt.querySelectorAll("video");Nt==null||Nt.forEach(Rt=>{if(Rt.oncontextmenu=()=>!1,Rt.src.indexOf(".m3u8")>-1&&!Rt.canPlayType("application/vnd.apple.mpegurl")){if(de.ZP.isSupported()){var Ut=new de.ZP;Ut.loadSource(Rt.src),Ut.attachMedia(Rt)}}})};(0,ve.useEffect)(()=>{if(Fe.current&&Ie&&Ie.match(_e)&&window.PR.prettyPrint(),Fe.current)return Fe.current.addEventListener("click",vt),()=>{var xt;(xt=Fe.current)==null||xt.removeEventListener("click",vt),(0,a.AL)(),(0,a.Iy)()}},[Ie,Fe.current,vt]);const Ot=xt=>{xt.target.nodeName==="IMG"&&xt.target.className.indexOf("draw-flowchart")>-1?(mt.current.style.zIndex=1,mt.current.style.display="flex",mt.current.style.width=xt.target.clientWidth+"px",mt.current.style.height=xt.target.clientHeight+"px",mt.current.style.top=xt.target.offsetTop+"px",mt.current.style.left=xt.target.offsetLeft+"px",xt.target.id&&(ft.current=xt.target.id)):mt.current.style.display="none"},Tt=()=>{mt.current.style.display="none"};return(0,ve.useEffect)(()=>{var xt;const Nt=Rt=>{Rt.preventDefault(),Rt.clipboardData.setData("text",window.getSelection().toString())};return(xt=Fe.current)==null||xt.addEventListener("copy",Nt),()=>{var Rt;(Rt=Fe.current)==null||Rt.removeEventListener("copy",Nt)}},[Fe.current]),ve.createElement("div",{style:{position:"relative"},onMouseLeave:Tt},Oe&&ve.createElement("div",{ref:Fe,className:`${le.mdBody} `},Ie),!Oe&&!Ve(Ie)&&ve.createElement("div",{ref:Fe,style:we({},Ge),onMouseOver:Ot,className:`${Pe||""} ${at?"disabled-fill":""} markdown-body ${le.mdBody} ${yt.current}`,dangerouslySetInnerHTML:{__html:Ie}}),!Oe&&Ve(Ie)&&ve.createElement(re,{html:Ie}),ve.createElement("div",{ref:mt,className:`${le.button} ${ke?"":le.previewFlowChart}`},ve.createElement(ee.Z,null,ve.createElement(se.ZP,{onClick:()=>{ke?Je(ft.current):(Be(ft.current),Ne("flowChart"))}},ke?"\u7F16\u8F91":"\u9884\u89C8"))),ve.createElement(x.Z,{close:!0,data:qe,type:qe!=null&&qe.length?lt:"",style:we({},tt),onClose:()=>Be("")}))}},42678:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return he}});var ve=Ce(65582),Ue={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},a=Ce(59301),he=({message:de,className:te,children:oe,style:ne={}})=>a.createElement("div",{className:`custom-spinner ${Ue.idsRingWrapper} ${te}`},a.createElement("div",{className:Ue.ldsRing},a.createElement("div",null),a.createElement("div",null),a.createElement("div",null),a.createElement("div",null)),de?a.createElement("p",{style:ne},de):null,oe,a.createElement(ve.Outlet,null))},51908:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return te}});var ve=Ce(59301),Ue={flex_box_center:"flex_box_center___Gc4dd",flex_space_between:"flex_space_between___K2f1v",flex_box_vertical_center:"flex_box_vertical_center___pupRp",flex_box_center_end:"flex_box_center_end___UDLRC",flex_box_column:"flex_box_column___a5uDo",result:"result___gu5zt",title:"title___xrnx2",left:"left___IAxp9",leftNode:"leftNode___HL8fG",right:"right___ZXYmw",rightNode:"rightNode___jYL5_"},a=Ce(92310),he=Ce.n(a),te=({className:oe,style:ne={},leftNode:ee,leftTitle:se="\u81EA\u6D4B\u8F93\u5165",rightNode:z,rightTitle:x="\u8FD0\u884C\u7ED3\u679C"})=>ve.createElement("div",{className:he()(Ue.result,oe),style:ne},ve.createElement("div",{className:Ue.left},ve.createElement("div",{className:Ue.title},ve.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),ve.createElement("span",null,se)),ve.createElement("div",{className:Ue.leftNode},ee)),ve.createElement("div",{className:Ue.right},ve.createElement("div",{className:Ue.title},ve.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),ve.createElement("span",null,x)),ve.createElement("div",{className:Ue.rightNode},z)))},51425:function(bt,pt,Ce){"use strict";var ve=Ce(59301),Ue=Ce(59301);const a=({text:he,speed:de=100})=>{const[te,oe]=(0,ve.useState)(""),ne=(0,ve.useRef)(0);return(0,ve.useEffect)(()=>{oe(""),ne.current=0;const ee=setInterval(()=>{ne.current<he.length?(oe(se=>se+he.charAt(ne.current)),ne.current+=1):clearInterval(ee)},de);return()=>{clearInterval(ee)}},[he]),Ue.createElement("div",{className:"c-black"},te)};pt.Z=a},83845:function(bt,pt,Ce){"use strict";Ce.d(pt,{cT:function(){return _e},pe:function(){return we}});var ve=Ce(59301),Ue=Ce(14566),a=Ce(6767),he=Ce(38147),de=Ce(28209),te=Ce.n(de),oe=Ce(1012),ne=Ce(65582),ee=Ce(47257),se=Ce.n(ee),z=Object.defineProperty,x=Object.defineProperties,b=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,le=(Ae,Te,Le)=>Te in Ae?z(Ae,Te,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Ae[Te]=Le,fe=(Ae,Te)=>{for(var Le in Te||(Te={}))re.call(Te,Le)&&le(Ae,Le,Te[Le]);if(E)for(var Le of E(Te))ae.call(Te,Le)&&le(Ae,Le,Te[Le]);return Ae},ce=(Ae,Te)=>x(Ae,b(Te)),ue=(Ae,Te)=>{var Le={};for(var ke in Ae)re.call(Ae,ke)&&Te.indexOf(ke)<0&&(Le[ke]=Ae[ke]);if(Ae!=null&&E)for(var ke of E(Ae))Te.indexOf(ke)<0&&ae.call(Ae,ke)&&(Le[ke]=Ae[ke]);return Le},ye=(Ae,Te,Le)=>new Promise((ke,Pe)=>{var Oe=tt=>{try{Ge(Le.next(tt))}catch(Me){Pe(Me)}},ze=tt=>{try{Ge(Le.throw(tt))}catch(Me){Pe(Me)}},Ge=tt=>tt.done?ke(tt.value):Promise.resolve(tt.value).then(Oe,ze);Ge((Le=Le.apply(Ae,Te)).next())});const{Dragger:Se}=Ue.default,we=Ae=>{const Te="bf3c199c2470cb477d907b1e0917c17b",Le="5183666c72eec9e4";var ke=te().enc.Utf8.parse(Te);let Pe=te().enc.Utf8.parse(Le);var Oe=te().AES.decrypt(Ae,ke,{iv:Pe,mode:te().mode.CBC});return Oe.toString(te().enc.Utf8)};let xe;const ge=Ae=>ye(void 0,[Ae],function*({identifier:Te,oldFilename:Le,newFilename:ke}){var Pe,Oe,ze,Ge,tt,Me;const We=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});We.data=JSON.parse(we(We.data));const it=new OSS({endpoint:(Pe=We==null?void 0:We.data)==null?void 0:Pe.end_point,region:(Oe=We==null?void 0:We.data)==null?void 0:Oe.region,accessKeyId:(ze=We==null?void 0:We.data)==null?void 0:ze.access_key_id,accessKeySecret:(Ge=We==null?void 0:We.data)==null?void 0:Ge.access_key_secret,bucket:(tt=We==null?void 0:We.data)==null?void 0:tt.bucket,stsToken:(Me=We==null?void 0:We.data)==null?void 0:Me.security_token});return new Promise((at,$e)=>{console.log(11111,`${Te}/${Le}`,`${Te}/${ke}`,We.data),it.copy(`/${Te}/${Le}`,`/${Te}/${ke}`).then(Je=>{console.log("\u62F7\u8D1D\u6210\u529F",Je)}).catch(Je=>{console.log(Je)})})}),_e=(Ae,Te,Le)=>ye(void 0,null,function*(){var ke,Pe,Oe,ze,Ge,tt;Te.file_name=Ae.name;const Me=yield(0,he.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",we(Me.data)),Me.data=JSON.parse(we(Me.data));const We=Ae.name.split(".");We.pop();const it=Te.realFileName?We.join(""):(0,oe.Z)(),at=new(se())({endpoint:(ke=Me==null?void 0:Me.data)==null?void 0:ke.end_point,region:(Pe=Me==null?void 0:Me.data)==null?void 0:Pe.region,accessKeyId:(Oe=Me==null?void 0:Me.data)==null?void 0:Oe.access_key_id,accessKeySecret:(ze=Me==null?void 0:Me.data)==null?void 0:ze.access_key_secret,bucket:(Ge=Me==null?void 0:Me.data)==null?void 0:Ge.bucket,stsToken:(tt=Me==null?void 0:Me.data)==null?void 0:tt.security_token});return new Promise(($e,Je)=>{var Ye;at.multipartUpload(`${it}`,new Blob([Ae],{type:Ae.type}),ce(fe({timeout:200*1e3,partSize:102400},Le),{callback:{url:(Ye=Me==null?void 0:Me.data)==null?void 0:Ye.callback_url,host:Me==null?void 0:Me.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,he.rz)(Te)}})).then(function(Qe){var st;Ae.response=(st=Qe.data)==null?void 0:st.data,$e(Qe==null?void 0:Qe.data)}).catch(function(Qe){Je(Qe),console.log("err:",Qe)})})}),be=Ae=>{var Te=Ae,{user:Le,cancelUpload:ke}=Te,Pe=ue(Te,["user","cancelUpload"]);const[Oe,ze]=(0,ve.useState)([]);let[Ge,tt]=(0,ve.useState)();const Me={onRemove:it=>{ze([...Oe.filter(at=>at.name!==it.name)]),Pe.onChange(Oe.filter(at=>at.name!==it.name))},disabled:Pe.disabled,multiple:!0,fileList:Oe==null?void 0:Oe.map(it=>it.file),customRequest:()=>{},beforeUpload:it=>ye(void 0,null,function*(){let at=Pe.maxSize||1073741824;if(Oe.filter($e=>$e.name===it.name).length){a.ZP.info(`${it.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(it==null?void 0:it.size)>at?(a.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${at/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Oe.push({name:it.name,file:it}),ze([...Oe]),Pe.onChange(Oe),!1)})},We=(it,at)=>ye(void 0,null,function*(){var $e,Je,Ye,Qe,st,ot;at.file_name=it.name;const mt=it.name,ft=yield(0,he.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(ft.data=JSON.parse(we(ft.data)),(ft==null?void 0:ft.status)!==0){Oe[Oe.findIndex(lt=>lt.name===mt)].status="error",Oe[Oe.findIndex(lt=>lt.name===mt)].file.status="error",Pe.onChange(Oe),a.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Ge=new(se())({endpoint:($e=ft==null?void 0:ft.data)==null?void 0:$e.end_point,region:(Je=ft==null?void 0:ft.data)==null?void 0:Je.region,accessKeyId:(Ye=ft==null?void 0:ft.data)==null?void 0:Ye.access_key_id,accessKeySecret:(Qe=ft==null?void 0:ft.data)==null?void 0:Qe.access_key_secret,bucket:(st=ft==null?void 0:ft.data)==null?void 0:st.bucket,stsToken:(ot=ft==null?void 0:ft.data)==null?void 0:ot.security_token}),console.log(it,"file"),tt(Ge);const qe=it.name.split(".");qe.pop();const Be=mt.indexOf(".")>-1?at.realFileName?qe.join("."):(0,oe.Z)():mt;return new Promise((lt,Ne)=>{var rt;try{Ge.multipartUpload(`${Pe.identifier}/${Be}${mt.indexOf(".")>-1?"."+mt.split(".").pop():""}`,new Blob([it.file],{type:it.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(gt,yt,dt)=>{try{console.log("\u8FDB\u5EA6",gt,yt,dt);const Ve=Oe.findIndex(He=>He.name===mt);Oe[Ve].file.percent=gt*100,Oe[Ve].tempCheckpoint=yt,ze([...Oe])}catch(Ve){}},checkpoint:Oe[Oe.findIndex(gt=>gt.name===mt)].tempCheckpoint,callback:{customValue:{id:mt+""},url:(rt=ft==null?void 0:ft.data)==null?void 0:rt.callback_url,host:ft==null?void 0:ft.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,he.rz)(at)}}).then(function(gt){var yt,dt,Ve;const He=Oe.findIndex(et=>et.name===mt);let Ze="done";if(((yt=gt.data)==null?void 0:yt.status)===0){it.response=(dt=gt.data)==null?void 0:dt.data;const et=Oe.findIndex(Ie=>Ie.name===mt);Oe[et].status="done",Oe[et].file.status="done"}else a.ZP.warning((Ve=gt.data)==null?void 0:Ve.message),Ze="error";Oe[He].status=Ze,Oe[He].file.status=Ze,Pe.onChange(Oe),lt(gt==null?void 0:gt.data)}).catch(function(gt){Oe[Oe.findIndex(yt=>yt.name===mt)].status="error",Oe[Oe.findIndex(yt=>yt.name===mt)].file.status="error",a.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ze([...Oe]),Pe.onChange(Oe),Ne(gt),console.log("err:",gt)})}catch(gt){}})});return(0,ve.useEffect)(()=>{Oe.every(it=>it==="done"||it==="error")&&Pe.onComplete(Oe)},[Oe]),(0,ve.useEffect)(()=>{ke&&(Ge==null||Ge.cancel())},[ke]),(0,ve.useEffect)(()=>{Pe.uploading&&Oe.map(it=>ye(void 0,null,function*(){var at;if((!it.status||it.status==="error")&&!ke){it.status="uploading",it.file.status="uploading";const $e=yield We(it,{login:(at=Le==null?void 0:Le.userInfo)==null?void 0:at.login,container_type:Pe.container_type,container_id:Pe.container_id,description:Pe.description,realFileName:Pe.realFileName})}}))},[Pe.uploading]),ve.createElement(Se,ce(fe({},Me),{height:Pe.height,className:Pe.className}),ve.createElement("p",{className:"ant-upload-hint"},Pe.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};pt.ZP=(0,ne.connect)(({loading:Ae,globalSetting:Te,user:Le})=>({globalSetting:Te,loading:Ae.models.competitions,user:Le}))(be)},30214:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return he}});var ve=Ce(59301),Ue=Ce(77254),a=Ce(90083),he=()=>{const[de,te]=(0,ve.useState)(""),[oe,ne]=(0,ve.useState)(0);let[ee,se]=(0,ve.useState)(),[z,x]=(0,ve.useState)();const[b,E]=(0,ve.useState)(!1),re=(0,ve.useRef)("");(0,ve.useEffect)(()=>Ue.Z.subscribe("preview-image",_e=>{te(_e),console.log(we.current)}),[]),(0,ve.useEffect)(()=>(document.addEventListener("keydown",ae),()=>{document.removeEventListener("keydown",ae)}),[]),(0,ve.useEffect)(()=>{re.current=de},[de]);function ae(ge){console.log("e====",ge),ge.keyCode==27&&re.current&&le()}function le(){document.body.style.overflow="auto",se(void 0),x(void 0),ne(0),te("")}function fe(){ne(oe+90)}function ce(){ee=we.current.width*1.1,z=we.current.height*1.1,x(z),se(ee)}function ue(){ee=we.current.width/1.1,z=we.current.height/1.1,x(z),se(ee)}const ye=(0,ve.useRef)(),Se=(0,ve.useRef)(),we=(0,ve.useRef)(),xe=ge=>{(ge.nativeEvent.target===ye.current||ge.nativeEvent.target===Se.current)&&le()};return ve.createElement(ve.Fragment,null,de?ve.createElement("div",null,ve.createElement("div",{className:"preview-wrp-group",ref:Se},ve.createElement(a.Z,{className:"image-preview",src:de,style:{display:"none"},preview:{visible:!0,src:de,onVisibleChange:ge=>{te("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},60537:function(bt,pt,Ce){"use strict";Ce.d(pt,{h:function(){return ye},Z:function(){return ue}});var ve=Ce(59301),Ue=Ce(82326),a=Ce(28284),he=Ce(7939),de=Ce(89780),te=Ce.n(de),oe=Ce(45559),ne=Object.defineProperty,ee=Object.defineProperties,se=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,E=(Se,we,xe)=>we in Se?ne(Se,we,{enumerable:!0,configurable:!0,writable:!0,value:xe}):Se[we]=xe,re=(Se,we)=>{for(var xe in we||(we={}))x.call(we,xe)&&E(Se,xe,we[xe]);if(z)for(var xe of z(we))b.call(we,xe)&&E(Se,xe,we[xe]);return Se},ae=(Se,we)=>ee(Se,se(we));const le=Ue.default.Option,fe={labelCol:{span:4},wrapperCol:{span:20}},ce={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"]};var ue=({callback:Se,onCancel:we})=>{const[xe,ge]=(0,ve.useState)("python");function _e(Ae){ge(ce[Ae][1])}function be(Ae){Se(Ae)}return ve.createElement(a.default,ae(re({},fe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:be,style:{width:500}}),ve.createElement(a.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ve.createElement(Ue.default,{getPopupContainer:Ae=>Ae.parentNode,onChange:_e},Object.keys(ce).map(Ae=>ve.createElement(le,{key:Ae,value:Ae},ce[Ae][0])))),ve.createElement(a.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ve.createElement(ye,{mode:xe})),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(he.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))};function ye({value:Se,onChange:we,mode:xe,options:ge={}}){const _e=(0,ve.useRef)(),[be,Ae]=(0,ve.useState)();return(0,ve.useEffect)(()=>{if(be){let Te=function(Le){const ke=Le.getValue();we&&we(ke)};return be.on("change",Te),()=>{be.off("change",Te)}}},[be,we]),(0,ve.useEffect)(()=>{be&&be.setOption("mode",xe)},[be,xe]),(0,ve.useEffect)(()=>{be&&(Se!==be.getValue()||Se==="")&&setTimeout(()=>{be.setValue(Se||"")},300)},[be,Se]),(0,ve.useEffect)(()=>{if(_e.current&&!be){const Te=te().fromTextArea(_e.current,re({mode:xe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Ae(Te)}},[_e.current,be]),ve.createElement("div",{className:"my-codemirror-container"},ve.createElement("textarea",{ref:_e}))}},25374:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return er}});var ve=Ce(59301),Ue=Ce(65582),a=Ce(89780),he=Ce.n(a),de=Ce(76374),te=Ce(45559),oe=Ce(6313),ne=Ce(25717),ee=Ce(99498),se=Ce(25419),z=Ce(67549),x=Ce(95097),b=({value:Wt="",className:Vt,showTextOnly:tr,showLines:mr,style:Dt={}})=>{const jt=(0,ve.useMemo)(()=>"",[Wt]);return ve.createElement(ve.Fragment,null,ve.createElement("div",{dangerouslySetInnerHTML:{__html:jt}}))},E=Object.defineProperty,re=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,ue=(Wt,Vt,tr)=>Vt in Wt?E(Wt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Wt[Vt]=tr,ye=(Wt,Vt)=>{for(var tr in Vt||(Vt={}))fe.call(Vt,tr)&&ue(Wt,tr,Vt[tr]);if(le)for(var tr of le(Vt))ce.call(Vt,tr)&&ue(Wt,tr,Vt[tr]);return Wt},Se=(Wt,Vt)=>re(Wt,ae(Vt));let we=[{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 xe({onActionCallback:Wt,title:Vt,icon:tr,actionName:mr,className:Dt="",children:jt}){function _t(){Wt(mr)}return ve.createElement("a",{title:Vt,className:Dt,onClick:_t},ve.createElement("i",{className:`${tr}`}),jt)}var ge=({watch:Wt,showNullButton:Vt,showNullProgramButton:tr,onActionCallback:mr,fullScreen:Dt,insertTemp:jt,hidetoolBar:_t,extraUse:Ct})=>{const It=[...we,{title:`${Wt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Wt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ve.createElement("ul",{className:"markdown-toolbar-container"},!_t&&It.map((Gt,kt)=>ve.createElement("li",{key:kt},Gt.actionName?ve.createElement(xe,Se(ye({},Gt),{onActionCallback:mr})):ve.createElement("span",{className:"v-line"}))),Vt?ve.createElement("li",null,ve.createElement(xe,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:mr},ve.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,tr?ve.createElement(ve.Fragment,null,ve.createElement("li",null,ve.createElement(xe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:mr},ve.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),ve.createElement("li",null,ve.createElement(xe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:mr},ve.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,jt&&ve.createElement("li",null,ve.createElement(xe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${jt}`,onActionCallback:mr},ve.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ct&&ve.createElement("li",null,Ct),ve.createElement("li",{className:"btn-full-screen"},ve.createElement(xe,{icon:`${Dt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Dt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:mr})))},_e=Ce(57261),be=Ce(28284),Ae=Ce(37568),Te=Ce(7939),Le=Object.defineProperty,ke=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,tt=(Wt,Vt,tr)=>Vt in Wt?Le(Wt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Wt[Vt]=tr,Me=(Wt,Vt)=>{for(var tr in Vt||(Vt={}))ze.call(Vt,tr)&&tt(Wt,tr,Vt[tr]);if(Oe)for(var tr of Oe(Vt))Ge.call(Vt,tr)&&tt(Wt,tr,Vt[tr]);return Wt},We=(Wt,Vt)=>ke(Wt,Pe(Vt));const it={labelCol:{span:4},wrapperCol:{span:20}};var at=({callback:Wt,onCancel:Vt})=>{function tr(mr){Wt(mr)}return ve.createElement(be.default,We(Me({},it),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:tr,style:{width:500}}),ve.createElement(be.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ve.createElement(Ae.default,null)),ve.createElement(be.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ve.createElement(Ae.default,null)),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(Te.ZP,{type:"ghost",onClick:Vt},"\u53D6\u6D88")))},$e=Ce(60537),Je=Ce(45053),Ye=Ce(62957),Qe=Ce(77019),st=Ce(53464),ot=Ce(59301),mt=({callback:Wt,onCancel:Vt})=>{const tr=document.createElement("canvas"),mr=tr.getContext("2d");tr.width=1e3,tr.height=800,mr.fillStyle="#ffffff",mr.fillRect(0,0,tr.width,tr.height);const Dt=tr.toDataURL("image/png");return ot.createElement(Ye.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ot.createElement(Qe.Z,{style:{height:"100vh"}},ot.createElement(st.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Dt,visible:!0,title:String(Date.now())},onOk:jt=>{Wt({src:jt.url})},onClose:Vt})))},ft=Ce(30641),qe=Ce(5269),Be=Ce(6767),lt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},Ne=Ce(59301),gt=(0,ve.forwardRef)(({onCancel:Wt,editImgId:Vt,callback:tr},mr)=>{let Dt=(0,ve.useRef)(),jt=(0,ve.useRef)(),_t=(0,ve.useRef)(),Ct=(0,ve.useRef)(!1);const It=(0,ve.useRef)(!1);console.log("ref:",mr);const[Gt,kt]=(0,ve.useState)(0),[Et,Ft]=(0,ve.useState)("100vh");return(0,ve.useEffect)(()=>{kt(1)},[]),(0,ve.useImperativeHandle)(mr,()=>({setHeight:Ft})),Ne.createElement("div",{ref:It,className:"body-overflow-initial"},Ne.createElement(ft.Z,{width:"100vw",height:Et,footer:null,closable:!0,placement:"bottom",open:!!Gt,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${lt.drawerWrap}`,onClose:()=>{window.saveDrawData(Mt=>{tr({src:`/api/attachments/${Mt}`,id:Mt})})},title:Ne.createElement(Qe.Z,{align:"middle"},Ne.createElement(qe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ne.createElement(qe.Z,{onClick:()=>{Ft(Et==="60px"?"100vh":"60px")}},Ne.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),Ne.createElement(qe.Z,{onClick:()=>{window.saveDrawData(Mt=>{if(Mt===null){Be.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Be.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),tr({src:`/api/attachments/${Mt}`,id:Mt,disabledClose:!0})})}},Ne.createElement(Te.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},Ne.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Vt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:jt})))}),yt=Ce(74128),dt=Ce(47889),Ve=Ce(71051);const He=dt.ZP.Group,Ze={margin:"0 8px"};var et=({callback:Wt,onCancel:Vt})=>{function tr(mr){Wt(mr)}return ve.createElement(be.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:tr},ve.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ve.createElement("span",{style:Ze},"\u5355\u5143\u683C\u6570\uFF1A"),ve.createElement("span",{style:Ze},"\u884C\u6570"),ve.createElement(be.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ve.createElement(Ve.Z,null)),ve.createElement("span",{style:Ze},"\u5217\u6570"),ve.createElement(be.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ve.createElement(Ve.Z,null))),ve.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ve.createElement("span",{style:Ze},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ve.createElement(be.default.Item,{name:"align"},ve.createElement(He,null,ve.createElement(dt.ZP,{value:"default"},ve.createElement("i",{className:"fa fa-align-justify"})),ve.createElement(dt.ZP,{value:"left"},ve.createElement("i",{className:"fa fa-align-left"})),ve.createElement(dt.ZP,{value:"center"},ve.createElement("i",{className:"fa fa-align-center"})),ve.createElement(dt.ZP,{value:"right"},ve.createElement("i",{className:"fa fa-align-right"}))))),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(Te.ZP,{type:"ghost",onClick:Vt},"\u53D6\u6D88")))},Ie=Ce(71411),je=Ce(93510),De=Ce.n(je),ct=(0,ve.forwardRef)(({use3d:Wt,width:Vt,height:tr,callback:mr,showSaveButton:Dt},jt)=>{const _t=(0,ve.useRef)(),Ct=(0,ve.useRef)(),[It,Gt]=(0,ve.useState)(!1),kt=(0,ve.useRef)({id:_t,appName:"graphing",width:Vt||1e3,height:tr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ve.useEffect)(()=>{Ct.current=new(De())(kt.current,!0),window.onload=function(){Ct.current.inject("applet_container")}},[]);const Et=()=>{var Ft=window.ggbApplet.getPNGBase64(1,!0,72);return mr&&mr(Ft),Ft};return(0,ve.useEffect)(()=>{kt.current.appName=It?"3D":"graphing",Ct.current.inject("applet_container")},[It]),(0,ve.useEffect)(()=>{Gt(Wt)},[Wt]),(0,ve.useImperativeHandle)(jt,()=>({getImgData:Et})),ve.createElement(ve.Fragment,null,ve.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:_t}),ve.createElement(Qe.Z,{align:"middle"},ve.createElement(qe.Z,{flex:1},ve.createElement(Ie.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:It,onChange:Ft=>Gt(Ft)})),ve.createElement(qe.Z,null,ve.createElement(Te.ZP,{size:"large",onClick:Et,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Fe=Ce(99298);const vt="link",wt="upload-image",Ot="add-flowchart",Tt="draw-image",xt="add-flowchart",Nt="code-block",Rt="add-table",Ut="------------",Qt={default:Ut,left:`:${Ut}`,center:`:${Ut}:`,right:`${Ut}:`};var or=Ce(31103),cr=Ce(65862);function ir(){}let _r=0;const Fr=1e4,Hr="\u2581",Vr="@\u2581\u2581@",on="@\u2581@",yn=`
**\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`,Rr=["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 Fn(Wt){return/^\d+$/.test(Wt)?`${Wt}px`:Wt}const Hn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ln={[Hn+"-B"]:"bold",[Hn+"-I"]:"italic"},qt={[vt]:"\u6DFB\u52A0\u94FE\u63A5",[Nt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[wt]:"\u6DFB\u52A0\u56FE\u7247",[Tt]:"\u6DFB\u52A0\u753B\u56FE",[Ot]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Rt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var er=({defaultValue:Wt="",onChange:Vt,width:tr="100%",height:mr=400,miniToolbar:Dt=!1,isFocus:jt=!1,watch:_t,insertTemp:Ct,mode:It="markdown",id:Gt="markdown-editor-id",showResizeBar:kt=!1,noStorage:Et=!1,showNullButton:Ft=!1,showNullProgramButton:Mt=!1,hidetoolBar:zt=!1,fullScreen:Yt=!1,onBlur:br,onCMBeforeChange:Tr,onFullScreen:Sr,className:Ht="",disablePaste:nr=!1,disabled:Or=!1,disabledFill:Lr=!1,placeholder:Br="",values:wr="",extraUse:jr,onAddBlank:rr})=>{const[Xt,zr]=(0,ve.useState)(null),[Nr,Qr]=(0,ve.useState)(Wt),[pn,en]=(0,ve.useState)(_t),[tn,zn]=(0,ve.useState)(Yt),[Jr,Xr]=(0,ve.useState)(""),[On,Qn]=(0,ve.useState)(0),[ii,Jn]=(0,ve.useState)(mr),[Pi,Si]=(0,ve.useState)(!1),[vi,un]=(0,ve.useState)(0),[ai,Un]=(0,ve.useState)(0),Pn=(0,ve.useRef)(),li=(0,ve.useRef)(),Ri=(0,ve.useRef)(),Ii=(0,ve.useRef)(),Ci=(0,ve.useRef)(),qn=(0,ve.useRef)(),Wn=(0,Ue.useDispatch)();(0,ve.useEffect)(()=>{const ur=window.scrollY||window.pageYOffset;Qr(wr),Xt==null||Xt.setValue(wr),window.scrollTo(0,ur)},[wr]),(0,ve.useEffect)(()=>{Sr==null||Sr(tn)},[tn]),(0,ve.useEffect)(()=>{if(Pn.current){let ur=function(hr,dr){var Mr;if(nr){dr.preventDefault();return}const Ur=dr.clipboardData;if(Ur){const sr=Ur.types.toString(),Zr=Ur.items;if(sr==="Files"||Ur.types.indexOf("Files")>-1){if(dr.preventDefault(),It=="stex")return;try{let Gr=Zr[1];((Mr=Zr[0])==null?void 0:Mr.kind)==="file"&&(Gr=Zr[0]);const an=Gr.getAsFile(),Gn=an.name.split(".").pop();(0,Je.I)(an,kr=>{var nn,En,qi;kr.id?((nn=an==null?void 0:an.type)==null?void 0:nn.indexOf("image"))>-1?Jt.replaceSelection(`<img width="100%" src="/api/attachments/${kr.id}?type=${kr.content_type})" alt="" />`):((En=an==null?void 0:an.type)==null?void 0:En.indexOf("video"))>-1?Jt.replaceSelection(`<video width="100%" controls src="/api/attachments/${kr.id}"></video>`):((qi=an==null?void 0:an.type)==null?void 0:qi.indexOf("pdf"))>-1?Jt.replaceSelection(`<a href="/api/attachments/${kr.id}?type=${an.type}&disposition=inline" target="_blank">${an.name}</a>`):Rr.includes(Gn)?Jt.replaceSelection(`<a href="/api/attachments/${kr.id}?type=office&disposition=inline" target="_blank">${an.name}</a>`):Jt.replaceSelection(`[${an.name}](/api/attachments/${kr.id}?type=${kr.content_type})`):(kr==null?void 0:kr.status)===401&&(document.location.href="/user/login")})}catch(Gr){Be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Jt=he().fromTextArea(Pn.current,{mode:It,lineNumbers:!Dt,lineWrapping:!0,value:Wt,autoCloseTags:!0,autoCloseBrackets:!0});return Jt.on("keyup",function(hr,dr){dr.keyCode===8&&(hr.getValue()==""?Jt.setOption("placeholder",Br):Jt.setOption("placeholder",null))}),Jt.on("keydown",function(hr,dr){if(dr.keyCode===8){var Mr=so(hr);Mr&&dr.preventDefault()}}),jt&&Jt.focus(),Jt.on("paste",ur),Or&&Jt.on("beforeChange",function(hr,dr){(dr.origin==="paste"||dr.origin==="+input")&&dr.cancel()}),zr(Jt),()=>{Jt.off("paste",ur)}}},[]);const Ei=(0,ve.useCallback)(()=>{if(li.current)try{}catch(ur){console.log(ur,"---- to set md editor body height")}},[ii,li,tn]);(0,ve.useEffect)(()=>{function ur(){let Jt=new de.Z(hr=>{for(let dr of hr)(dr.target.offsetHeight>0||dr.target.offsetWidth>0)&&(Ei(),Xt.setSize("100%","100%"),Xt.refresh())});return Jt.observe(Pn.current.parentElement),Jt}if(Xt){const Jt=ur();return()=>{var hr,dr;(hr=Pn.current)!=null&&hr.parentElement&&Jt.unobserve((dr=Pn.current)==null?void 0:dr.parentElement)}}},[Xt,Ei]),(0,ve.useEffect)(()=>{if(Xt){let ur=[];for(const[Jt,hr]of Object.entries(Ln)){let dr={[Jt]:()=>{Sn(hr)}};ur.push(dr),Xt.addKeyMap(dr)}return()=>{for(let Jt of ur)Xt.removeKeyMap(Jt)}}},[Xt]),(0,ve.useEffect)(()=>{Yt!==tn&&zn(Yt)},[Yt]),(0,or.Z)(()=>{if(!Et&&On>0){let ur=new Date().getTime(),Jt=window.sessionStorage.getItem(Gt);ur>=On+Fr&&(!Jt||Jt!==Nr)&&(window.sessionStorage.setItem(Gt,Nr),Si(!0))}},Fr),(0,ve.useEffect)(()=>{en(_t)},[Xt,_t]),(0,ve.useEffect)(()=>{Xt&&jt&&Xt.focus()},[Xt,jt]),(0,ve.useEffect)(()=>{if(pn&&Xt){let ur=function(hr){let dr=hr.target;if(Ii.current){let Mr=dr.scrollTop/dr.scrollHeight;Ii.current.scrollTop=Ii.current.scrollHeight*Mr}};const Jt=Xt.getScrollerElement();return Jt.addEventListener("scroll",ur),()=>{Jt.removeEventListener("scroll",ur)}}},[Xt,pn]),(0,ve.useEffect)(()=>{if(Xt&&Tr){let ur=function(Jt,hr){Tr(Jt,hr)};return Xt.on("beforeChange",ur),()=>{Xt.off("beforeChange",ur)}}},[Xt,Tr]),(0,ve.useEffect)(()=>{if(Xt&&br){let ur=function(){br(Xt.getValue())};return Xt.on("blur",ur),()=>{Xt.off("blur",ur)}}},[Xt,br]);function so(ur,Jt){var hr=ur.getDoc(),dr=hr.getCursor(),Mr=hr.getLine(dr.line),Ur=Mr.charAt(dr.ch-1),sr=Mr.lastIndexOf("@\u2581@",dr.ch),Zr=Mr.lastIndexOf("@\u2581\u2581@",dr.ch),Gr=sr>Zr?sr:Zr,an=sr>Zr?3:4;if(Vr.indexOf(Ur)===-1)return null;if(console.log("change1:",Jt,ur,Mr,dr,Gr,sr,Zr,Ur),Gr>=0&&dr.ch-Gr<5){var Gn=Gr+an;return hr.replaceRange("",{line:dr.line,ch:Gr},{line:dr.line,ch:Gn}),{line:dr.line,ch:Gn}}return null}(0,ve.useEffect)(()=>{if(Xt){let ur=function(Jt,hr){const dr=Jt.getValue();Qr(dr),Qn(new Date().getTime()),Jt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Vt&&(Mt?Vt(dr,Ar(dr)):Vt(dr))};return Xt.on("change",ur),()=>{Xt.off("change",ur)}}},[Xt,Vt]),(0,ve.useEffect)(()=>{if(Xt)if(Wt==null)Xt.setValue(""),Qr("");else{const ur=window.scrollY||window.pageYOffset;Wt!==Xt.getValue()&&(Xt.setValue(Wt),Qr(Wt),Xt.setCursor(Or?1:Xt.lineCount(),0),window.scrollTo(0,ur))}},[Xt,Wt]);const Sn=(0,ve.useCallback)(ur=>{const Jt=Xt.getCursor(),hr=Xt.getSelection();let dr=hr.split(`
`);switch(ur){case"bold":return Xt.replaceSelection("**"+hr+"**"),hr===""&&Xt.setCursor(Jt.line,Jt.ch+2),Xt.focus();case"italic":return Xt.replaceSelection("*"+hr+"*"),hr===""&&Xt.setCursor(Jt.line,Jt.ch+1),Xt.focus();case"code":return Xt.replaceSelection("`"+hr+"`"),hr===""&&Xt.setCursor(Jt.line,Jt.ch+1),Xt.focus();case"inline-latex":return(0,cr.Ye)(Wn)?void 0:(Xr("inline-latex"),Xt.focus());case"latex":return Xt.replaceSelection("```latex\n"+hr+"\n```"),Xt.setCursor(Jt.line+1,hr.length+1),Xt.focus();case"line-break":return Xt.replaceSelection(`<br/>
`),Xt.focus();case"list-ul":return hr===""?Xt.replaceSelection("- "+hr):Xt.replaceSelection(dr.map(Mr=>Mr===""?"":`- ${Mr}`).join(`
`)),Xt.focus();case"list-ol":return hr===""?Xt.replaceSelection("1. "+hr):Xt.replaceSelection(dr.map((Mr,Ur)=>Mr===""?"":`${Ur+1}. ${Mr}`).join(`
`)),Xt.focus();case"add-null-ch":rr==null||rr();return;case"add-signal":return hr===""&&Xt.setCursor(Jt.line,Jt.ch),Xt.replaceSelection(on),Xt.focus();case"add-multiple":return hr===""&&Xt.setCursor(Jt.line,Jt.ch),Xt.replaceSelection(Vr),Xt.focus();case"inster-template-1":return hr===""&&Xt.setCursor(Jt.line,Jt.ch),Xt.replaceSelection(yn),Xt.focus();case"eraser":return Xt.setValue(""),Xt.focus();case"trigger-watch":return en(!pn),Xt.focus();case"trigger-full-screen":return zn(!tn),Xt.focus();case vt:Xr(vt);return;case Nt:Xr(Nt);return;case wt:Xr(wt);return;case Tt:Xr(Tt);return;case"maths-latex":if((0,cr.Ye)(Wn))return;Xr("maths-latex");return;case Ot:Ci.current="",sessionStorage.removeItem("file_id"),Xr(Ot);return;case Rt:Xr(Rt);return;default:throw new Error}},[Xt,pn,tn]),Rn=(0,ve.useCallback)((ur,Jt)=>{var hr,dr,Mr,Ur,sr,Zr;ur!=null&&ur.disabledClose||Xr("");const{src:Gr,alt:an,id:Gn}=ur||{};switch(Jr){case vt:const{title:is,link:os}=ur;return Xt.replaceSelection(`[${is}](${os})`),Xt.focus();case Nt:const{language:Po,content:Ro}=ur;return Xt.replaceSelection(["```"+Po,Ro,"```"].join(`
`)),Xt.focus();case"maths-latex":for(var kr=atob(ur),nn=new Uint8Array(kr.length),En=0;En<kr.length;En++)nn[En]=kr.charCodeAt(En);var qi=new Blob([nn],{type:"image/png"});(0,Je.I)(qi,qr=>{qr.id?Xt.replaceSelection(`![,](/api/attachments/${qr.id}?type=${qr.content_type})`):(qr==null?void 0:qr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,cr.Ye)(Wn))return;Xt.replaceSelection("`$$"+ur+"$$`");break;case xt:if(!Gn)return;Xt.getValue().indexOf(Gr)===-1?Xt.replaceSelection(`<center><img id="${Gn}" width="80%" src="${Gr}" class="draw-flowchart" alt="${an||""}" /></center>`):document.getElementById(Gn).src=yt.Z.API_SERVER+Gr+"?t="+Date.now();break;case wt:case Tt:const cn=Jt,xo=(Mr=(dr=(hr=cn==null?void 0:cn.name)==null?void 0:hr.split("."))==null?void 0:dr.pop)==null?void 0:Mr.call(dr);return((Ur=cn==null?void 0:cn.type)==null?void 0:Ur.indexOf("image"))>-1||!(cn!=null&&cn.type)?cn!=null&&cn.align||cn!=null&&cn.width?Xt.replaceSelection(`<p style="text-align:${cn.align||"initial"}"><img width="${cn.width?cn.width+"%":"initial"}" src="${Gr}" alt="${an||""}" /></p>`):Xt.replaceSelection(`<img width="100%" src="${Gr}" alt="${an||""}" />`):((sr=cn==null?void 0:cn.type)==null?void 0:sr.indexOf("video"))>-1?Xt.replaceSelection(`<video width="100%" controls src="${Gr}"></video>`):((Zr=cn==null?void 0:cn.type)==null?void 0:Zr.indexOf("pdf"))>-1?Xt.replaceSelection(`<a href="${Gr}?type=${cn.type}&disposition=inline" target="_blank">${cn.name}</a>`):Rr.includes(xo)?Xt.replaceSelection(`<a href="${Gr}?type=office&disposition=inline" target="_blank">${cn.name}</a>`):Xt.replaceSelection(`[${cn.name}](${Gr})`),Xt.focus();case Rt:const{row:Fi,col:ui,align:ao}=ur;let Hi=`
`;for(let qr=0;qr<Fi;qr++){let ci=[],Yr=[];for(let gi=0;gi<ui;gi++)qr===1&&Yr.push(Qt[ao]),ci.push(" ");qr===1&&(Hi+=`| ${Yr.join(" | ")} |
`),Hi+=`| ${ci.join(ui===1?"":" | ")} |
`}return Xt.replaceSelection(Hi+`
`),Xt.focus();default:throw new Error}},[Xt,Jr]),Ai=(0,ve.useMemo)(()=>{switch(Jr){case vt:return ve.createElement(at,{callback:Rn,onCancel:Cn});case Nt:return ve.createElement($e.Z,{callback:Rn,onCancel:Cn});case wt:return ve.createElement(Je.Z,{callback:Rn,onCancel:Cn});case Ot:return ve.createElement(gt,{editImgId:Ci.current,callback:Rn,onCancel:Cn});case Rt:return ve.createElement(et,{callback:Rn,onCancel:Cn});case"maths-latex":return ve.createElement(ct,{showSaveButton:!0,callback:Rn});case"inline-latex":return ve.createElement(Fe.Z,{showSaveButton:!0,callback:Rn});default:return null}},[Jr]);function Cn(){Xr("")}(0,ve.useEffect)(()=>{if(Ri.current){let ur=function(sr){Mr=!0,Ur=sr.pageY},Jt=function(){Mr=!1},hr=function(sr){if(Mr){let Zr=sr.pageY-Ur;Zr<0&&(Zr=0),Zr>300&&(Zr=300);let Gr=mr+Zr+"px";Jn(Gr)}},dr=Ri.current,Mr=!1,Ur=0;return dr.addEventListener("mousedown",ur),document.addEventListener("mousemove",hr),document.addEventListener("mouseup",Jt),()=>{dr.removeEventListener("mousedown",ur),document.removeEventListener("mousemove",hr),document.removeEventListener("mouseup",Jt)}}},[Xt,Ri]),(0,ve.useEffect)(()=>{Jn(mr)},[mr]);const Bi=Fn(tr),Ji=Fn(ii),Ni={width:Bi,height:Ji},Ti=(0,ve.useMemo)(()=>{if(On){let ur=new Date(On),Jt=ur.getHours(),hr=ur.getMinutes(),dr=ur.getSeconds();return Jt=Jt<10?"0"+Jt:Jt,hr=hr<10?"0"+hr:hr,dr=dr<10?"0"+dr:dr,`${Jt}:${hr}:${dr}`}return 0},[On]),Ar=ur=>{const Jt=[];if(Mt){let hr=-1;ur=ur.replace(/(@▁▁@|@▁@)/g,function(dr,Mr,Ur){Jt.push({multiLine:dr!==on})})}return Jt};function Wr(){window.sessionStorage.removeItem(Gt),Si(!1),Qn(0)}function Pr(){Si(!1),Qn(0),Xt.setValue(window.sessionStorage.getItem(Gt))}(0,ve.useEffect)(()=>{qt[Jr]&&Jr!==Tt&&Jr!==Ot&&setTimeout(()=>{const ur=document.getElementsByClassName("markdown-popup-form")[0],Jt=window.innerWidth/2-ur.offsetWidth/2,hr=window.innerHeight/2-ur.offsetHeight/2;un(Jt),Un(hr)},0)},[Jr]);const In=ur=>{ur.preventDefault();const Jt=ur.clientX-vi,hr=ur.clientY-ai;document.body.onmousemove=dr=>{let Mr=dr.clientX-Jt,Ur=dr.clientY-hr;const sr=document.getElementsByClassName("markdown-popup-form")[0],Zr=window.innerWidth-sr.offsetWidth,Gr=window.innerHeight-sr.offsetHeight;Mr=Math.max(0,Math.min(Mr,Zr)),Ur=Math.max(0,Math.min(Ur,Gr)),sn(dr.clientX,dr.clientY,Jt,hr)&&(un(Mr),Un(Ur))},document.body.onmouseup=function(){document.body.onmousemove=null}},sn=(ur,Jt,hr,dr)=>{const Mr=document.body.clientHeight,Ur=document.body.clientWidth;return ur<20&&hr>ur||ur>Ur-20&&hr<ur||Jt<20&&dr>Jt||Jt>Mr-20&&dr<Jt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ve.createElement(ve.Fragment,null,ve.createElement("div",{className:"markdown-editor-wrapper",ref:li},ve.createElement("div",{className:`markdown-editor-container ${Ht} ${pn?"on-preview":""} ${Dt?"mini":""} ${tn?"full-screen":""}`,style:Ni},ve.createElement(ge,{insertTemp:Ct,watch:pn,fullScreen:tn,showNullButton:Ft,showNullProgramButton:Mt,onActionCallback:Sn,hidetoolBar:zt,extraUse:jr}),ve.createElement("div",{className:"markdown-editor-body"},ve.createElement("div",{className:"codemirror-container"},ve.createElement("textarea",{ref:Pn,placeholder:Br})),pn?ve.createElement("div",{ref:Ii,className:"preview-container"},It==="stex"&&ve.createElement(b,{value:Nr}),It!=="stex"&&ve.createElement(x.Z,{edit:!0,disabledFill:Lr,showProgramFill:Mt,value:Nr,openEditor:ur=>{var Jt;Ci.current=ur,(Jt=qn.current)==null||Jt.setHeight("100vh"),setTimeout(()=>{Xr("add-flowchart")},150)}})):null))),kt?ve.createElement("a",{ref:Ri,className:"editor-resize"}):null,Jr===Tt&&ve.createElement(mt,{callback:Rn,onCancel:Cn}),Jr===Ot&&ve.createElement(gt,{ref:qn,editImgId:Ci.current,callback:Rn,onCancel:Cn}),ve.createElement(_e.Z,null,qt[Jr]&&Jr!==Tt&&Jr!==Ot?ve.createElement(Ye.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:vi,top:ai},title:ve.createElement("div",{style:{cursor:"move"},onMouseDown:In},qt[Jr]),open:!0,onCancel:Cn,footer:null,destroyOnClose:!0,width:Jr===Ot?"1200px":null,height:Jr===Ot?"80vh":null,className:"markdown-popup-form"},Ai):null))}},45053:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return we},I:function(){return ge}});var ve=Ce(28284),Ue=Ce(6767),a=Ce(37568),he=Ce(44104),de=Ce(71051),te=Ce(47889),oe=Ce(7939),ne=Ce(28735),ee=Ce(59301),se=Ce(59301),z=Object.defineProperty,x=Object.defineProperties,b=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,le=(_e,be,Ae)=>be in _e?z(_e,be,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):_e[be]=Ae,fe=(_e,be)=>{for(var Ae in be||(be={}))re.call(be,Ae)&&le(_e,Ae,be[Ae]);if(E)for(var Ae of E(be))ae.call(be,Ae)&&le(_e,Ae,be[Ae]);return _e},ce=(_e,be)=>x(_e,b(be));const{useForm:ue}=ve.default,ye={width:280,marginRight:10},Se={labelCol:{span:5},wrapperCol:{span:19}};var we=({callback:_e,onCancel:be})=>{const[Ae]=ue();let Te=(0,ee.useRef)();function Le(Oe){Te.current.width=Ae.getFieldValue("width"),Te.current.align=Ae.getFieldValue("align"),_e(Oe,Te.current)}function ke(Oe,ze){if(Oe.status===-1){Ue.ZP.error(Oe.message);return}Ae.setFieldsValue({src:`/api/attachments/${Oe.id}`,type:ze.type})}function Pe(Oe){let ze=Oe.target.files[0];Te.current=ze,ge(ze,ke)}return se.createElement(ve.default,ce(fe({form:Ae},Se),{className:"upload-image-panel",onFinish:Le,style:{width:470,overflow:"hidden"}}),se.createElement(ve.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},se.createElement("div",{className:"flex-container"},se.createElement(ve.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},se.createElement(a.default,{style:ye})),se.createElement(xe,{onFileChange:Pe}))),se.createElement(ve.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},se.createElement(a.default,{style:{width:264}})),se.createElement(ve.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},se.createElement(he.Z,null,se.createElement(ve.default.Item,{name:"width",style:{margin:0}},se.createElement(de.Z,{style:{width:264}})),se.createElement("span",{className:"ml8"},"%"))),se.createElement(ve.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},se.createElement(te.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"}]})),se.createElement("aside",null,se.createElement(ve.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},se.createElement(oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),se.createElement(oe.ZP,{type:"default",onClick:be},"\u53D6\u6D88"))))};function xe({onFileChange:_e}){return se.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",se.createElement("input",{type:"file",onChange:_e}))}function ge(_e,be){if(!_e)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ae=new FormData;Ae.append("editormd-image-file",_e),Ae.append("file_param_name","editormd-image-file"),Ae.append("byxhr","true");var Te=new window.XMLHttpRequest;Te.withCredentials=!0,Te.addEventListener("load",function(Le){be(JSON.parse(Le.target.responseText),_e)},!1),Te.addEventListener("error",function(Le){console.error(Le)},!1),Te.open("POST",`${ne.KI}/api/attachments.json`),Te.send(Ae)}},57261:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return a}});var ve=Ce(59301),Ue=Ce(4676);class a extends ve.Component{constructor(de){super(de);const te=window.document;this.node=te.createElement("div"),te.body.appendChild(this.node)}render(){const{children:de}=this.props;return(0,Ue.createPortal)(de,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50258:function(bt,pt,Ce){"use strict";Ce.d(pt,{SV:function(){return mt},ZP:function(){return ot}});var ve=Ce(59301),Ue=Ce(76374);const a={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"]},he={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"]},de={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(`
`)}]},te={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(`
`)}]},oe={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 ne=Ce(53184),ee=Ce.n(ne),se=(ft,qe,Be)=>new Promise((lt,Ne)=>{var rt=dt=>{try{yt(Be.next(dt))}catch(Ve){Ne(Ve)}},gt=dt=>{try{yt(Be.throw(dt))}catch(Ve){Ne(Ve)}},yt=dt=>dt.done?lt(dt.value):Promise.resolve(dt.value).then(rt,gt);yt((Be=Be.apply(ft,qe)).next())});const z={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"]}},x=(ft,qe,Be,lt)=>{const Ne=qe.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Be.lineNumber,endColumn:Be.column});return Array.from(new Set(Ne.match(/\b\w{2,}\b/g)||[])).map(gt=>({label:gt,kind:ft.languages.CompletionItemKind.Text,insertText:gt,range:lt}))},b=(ft,qe,Be,lt)=>{ft.languages.registerCompletionItemProvider(qe,{provideCompletionItems(Ne,rt){const gt=Ne.getWordUntilPosition(rt),yt={startLineNumber:rt.lineNumber,endLineNumber:rt.lineNumber,startColumn:gt.startColumn,endColumn:gt.endColumn},dt=Ne.getLineContent(rt.lineNumber).substring(gt.startColumn-2,gt.endColumn);return{suggestions:[...x(ft,Ne,rt,yt),...Be.map(He=>({label:He,kind:ft.languages.CompletionItemKind.Keyword,documentation:He,insertText:He,insertTextRules:ft.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:yt})),...lt.map(He=>({label:He.label,kind:ft.languages.CompletionItemKind.Snippet,documentation:He.content,insertText:dt.startsWith("#")?He.content.replace(/#/,""):He.content,insertTextRules:ft.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:yt}))]}}})};var E=ft=>{z.languages.forEach(qe=>{ft.languages.registerDocumentFormattingEditProvider(qe,{provideDocumentFormattingEdits(Be){return se(this,null,function*(){const lt=ee()(Be.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:Be.getFullModelRange(),text:lt}]})}})}),b(ft,"java",he.keywords,he.quickKey),b(ft,"cpp",de.keywords,de.quickKey),b(ft,"c",a.keywords,[]),b(ft,"python",te.keywords,te.quickKey),b(ft,"scala",oe.keywords,oe.quickKey)};const re="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ae=Object.defineProperty,le=(ft,qe,Be)=>qe in ft?ae(ft,qe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ft[qe]=Be,fe=(ft,qe,Be)=>le(ft,typeof qe!="symbol"?qe+"":qe,Be);const ce=class ql{constructor(qe,Be,lt){this.placeholder=qe,this.editor=Be,this.monaco=lt,Be.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return ql.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)}};fe(ce,"ID","editor.widget.placeholderHint");var ye=ce,Se=Ce(96236),we=Ce(6767),xe=Ce(25399),ge=Ce(89392),_e=Ce(77254),be=Ce(56102),Ae=Object.defineProperty,Te=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,ze=(ft,qe,Be)=>qe in ft?Ae(ft,qe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ft[qe]=Be,Ge=(ft,qe)=>{for(var Be in qe||(qe={}))Pe.call(qe,Be)&&ze(ft,Be,qe[Be]);if(ke)for(var Be of ke(qe))Oe.call(qe,Be)&&ze(ft,Be,qe[Be]);return ft},tt=(ft,qe)=>Te(ft,Le(qe)),Me=(ft,qe)=>{var Be={};for(var lt in ft)Pe.call(ft,lt)&&qe.indexOf(lt)<0&&(Be[lt]=ft[lt]);if(ft!=null&&ke)for(var lt of ke(ft))qe.indexOf(lt)<0&&Oe.call(ft,lt)&&(Be[lt]=ft[lt]);return Be},We=(ft,qe,Be)=>new Promise((lt,Ne)=>{var rt=dt=>{try{yt(Be.next(dt))}catch(Ve){Ne(Ve)}},gt=dt=>{try{yt(Be.throw(dt))}catch(Ve){Ne(Ve)}},yt=dt=>dt.done?lt(dt.value):Promise.resolve(dt.value).then(rt,gt);yt((Be=Be.apply(ft,qe)).next())});function it(ft){return/^\d+$/.test(ft)?`${ft}px`:ft}function at(){}let $e=!1;const Je={"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 Ye(ft=[]){let qe=ft;if(Array.isArray(ft)){for(let Be=0;Be<ft.length;Be++){let lt=Je[ft[Be]];if(lt)return lt}return qe[0]}return Je[qe]||qe}let Qe=null;const st=()=>We(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ft){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ft)}});var ot=ft=>{var qe=ft,{width:Be="100%",height:lt="100%",value:Ne,language:rt="javascript",style:gt={},options:yt={},overrideServices:dt={},theme:Ve="vs-dark",onEditBlur:He,isCopy:Ze=!1,onSave:et,autoHeight:Ie=!1,forbidCopy:je=!1,onChange:De=at,editorDidMount:Xe=at,onFocus:ct=at,onBreakPoint:Fe=at,breakPointValue:vt=[],filename:wt="educoder.txt",errorLine:Ot,errorContent:Tt="",highlightLine:xt,openBreakPoint:Nt=!1,placeholder:Rt="",showMiniMap:Ut=!0}=qe,Qt=Me(qe,["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 or=(0,ve.useRef)(),cr=(0,ve.useRef)({}),ir=(0,ve.useRef)(),_r=(0,ve.useRef)(),Fr=(0,ve.useRef)([]),Hr=(0,ve.useRef)(!1),Vr=(0,ve.useRef)(),on=(0,ve.useRef)(),yn=(0,ve.useRef)(!1),[Rr,Fn]=(0,ve.useState)(!1);function ni(){let kt;return or.current&&(kt=new Ue.Z(Et=>{for(let Ft of Et)(Ft.target.offsetHeight>0||Ft.target.offsetWidth>0)&&cr.current.instance.layout()}),kt.observe(or.current)),kt}function Hn(){we.ZP.warning({content:decodeURIComponent(re),key:"monaco-editor-tip"})}const Ln=()=>{let kt=cr.current.instance;if(Ne!=null&&kt&&Rr){const Et=kt.getModel();Et&&Ne!==Et.getValue()&&($e=!0,Et.setValue(Ne),kt.layout(),$e=!1)}};(0,ve.useEffect)(()=>{const kt=_e.Z.subscribe("formatDocument",Et=>{var Ft;let Mt=cr.current.instance;(Ft=Mt==null?void 0:Mt.getAction)==null||Ft.call(Mt,"editor.action.formatDocument").run()});return window.updateMonacoValue=Et=>{De(Et)},kt},[]),(0,ve.useEffect)(()=>{var kt;let Et=cr.current.instance;_r.current&&clearTimeout(_r.current),_r.current=setTimeout(()=>{Ln()},500),Ne&&(Ne!=null&&Ne.length)&&((kt=Et==null?void 0:Et.updateOptions)==null||kt.call(Et,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ne,Rr,cr.current]),(0,ve.useEffect)(()=>{if(Ot&&cr.current&&cr.current.instance){let Et=cr.current.instance;Et.changeViewZones(function(Ft){var Mt=document.createElement("div");Mt.style.padding="10px 20px",Mt.style.width="calc(100% - 20px)",Mt.className="my-error-line-wrp",Mt.innerHTML=Tt,Ft.addZone({afterLineNumber:Ot||11,heightInLines:3,domNode:Mt})});var kt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Et.addOverlayWidget(kt),Et.revealPositionInCenter({lineNumber:20,column:1})}},[Ot,cr.current,Rr]);const qt=(kt="",Et)=>{if(!kt||kt.trim()==="")return!0;const Mt=cr.current.instance.getModel().getLineTokens(Et);let zt=!1;for(let Yt=0;Yt<2;Yt++)Mt.getStandardTokenType(Yt)===1&&(zt=!0);return zt};(0,ve.useEffect)(()=>{var kt;const Et=(kt=cr.current)==null?void 0:kt.instance;if(Et&&Rr&&je){const Ft=Et.onDidBlurEditorWidget(()=>{yn.current=!1}),Mt=Et.onDidFocusEditorText(()=>{yn.current=!0});return()=>{Ft.dispose(),Mt.dispose()}}},[cr.current,Rr,je]),(0,ve.useEffect)(()=>{var kt;if((kt=cr.current)!=null&&kt.instance&&Rr&&Nt){let Et=cr.current.instance,Ft=Et.getModel();if(!Ft)return;(()=>{var wr;let jr=[],rr=[];const Xt=Ft.getAllDecorations();for(let Nr of Xt)Nr.options.className==="highlighted-line"&&(jr.push((wr=Nr==null?void 0:Nr.range)==null?void 0:wr.startLineNumber),rr.push(Nr==null?void 0:Nr.id));if(xt===jr[0])return;Ft.deltaDecorations(rr,[]);const zr=Ft.getLineCount();xt&&xt<=zr&&(Et.deltaDecorations([],[{range:new Qe.Range(xt,1,xt,Ft.getLineMaxColumn(xt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Et.revealLineInCenter(xt))})();const zt=(wr=!1)=>{var jr;let rr=[],Xt=[];const zr=Ft.getAllDecorations();for(let Nr of zr)Nr.options.linesDecorationsClassName==="breakpoints-select"&&(rr.push((jr=Nr==null?void 0:Nr.range)==null?void 0:jr.startLineNumber),Xt.push(Nr==null?void 0:Nr.id));if(wr)return{lines:rr,ids:Xt};Fe(rr)},Yt=wr=>We(void 0,null,function*(){let jr={range:new Qe.Range(wr,1,wr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ft.deltaDecorations([],[jr]),zt()}),br=wr=>We(void 0,null,function*(){let jr=[];const rr=Et.getLineDecorations(wr);for(let Xt of rr)Xt.options.linesDecorationsClassName==="breakpoints-select"&&jr.push(Xt.id);yield Ft.deltaDecorations(jr,[]),zt()}),Tr=wr=>{let jr=Et.getLineDecorations(wr);for(let rr of jr)if(rr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ge.isEqual)(vt,zt(!0).lines)){Ft.deltaDecorations(zt(!0).ids,[]);const wr=vt.map(jr=>({range:new Qe.Range(jr,1,jr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ft.deltaDecorations([],wr)}const Sr=Et.onDidChangeModelContent(wr=>{let jr=Et.getPosition();if(jr){let rr=jr.lineNumber;clearTimeout(on.current),on.current=setTimeout(()=>{qt(Ft.getLineContent(rr),rr)?br(rr):Tr(rr)?(br(rr),Yt(rr)):zt()},100)}}),Ht=Et.onMouseDown(wr=>{var jr,rr,Xt;if(wr.target.detail&&((Xt=(rr=(jr=wr.target)==null?void 0:jr.element)==null?void 0:rr.className)!=null&&Xt.includes("line-numbers"))){let zr=wr.target.position.lineNumber;if(qt(Ft.getLineContent(zr),zr))return;Tr(zr)?br(zr):Yt(zr)}}),nr=wr=>{let jr={range:new Qe.Range(wr,1,wr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Fr.current=Et.deltaDecorations(Fr.current,[jr])},Or=()=>{Fr.current=Et.deltaDecorations(Fr.current,[])},Lr=Et.onMouseMove(wr=>{var jr,rr,Xt;if(Or(),wr.target.detail&&((Xt=(rr=(jr=wr.target)==null?void 0:jr.element)==null?void 0:rr.className)!=null&&Xt.includes("line-numbers"))){let zr=wr.target.position.lineNumber;if(qt(Ft.getLineContent(zr),zr))return;nr(zr)}}),Br=Et.onMouseLeave(()=>{Or()});return()=>{Sr.dispose(),Ht.dispose(),Lr.dispose(),Br.dispose()}}},[cr.current,Rr,vt,xt,Nt,rt]),(0,ve.useEffect)(()=>{var kt;(kt=cr.current)!=null&&kt.instance&&Nt&&cr.current.instance.setPosition({lineNumber:0,column:0})},[xt]);function er(){let kt=cr.current.instance;if(kt){const Et=kt.getSelection(),Ft=cr.current.pastePos||{},Mt=new Qe.Range(Ft.startLineNumber||Et.endLineNumber,Ft.startColumn||Et.endColumn,Ft.endLineNumber||Et.endLineNumber,Ft.endColumn||Et.endColumn);setTimeout(()=>{kt.executeEdits("",[{range:Mt,text:""}])},300)}}function Wt(kt){(window.navigator.platform.match("Mac")?kt.metaKey:kt.ctrlKey)&&kt.keyCode==83&&(kt.preventDefault(),et())}const Vt=()=>{if(Ie&&cr.current.instance){const kt=cr.current.instance.getContentHeight();It(kt<lt?lt:kt)}else It(lt)};function tr(kt){var Et=document.createEvent("MouseEvents");Et.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),kt.dispatchEvent(Et)}const mr=kt=>{if(!yn.current)return;const{keyCode:Et,ctrlKey:Ft,metaKey:Mt,target:zt,type:Yt}=kt;return(Yt==="paste"||(Et===67||Et===86)&&(Mt||Ft))&&zt.nodeName==="TEXTAREA"&&(Hn(),kt.preventDefault()),!1};function Dt(kt,Et){var Ft=window.URL||window.webkitURL||window,Mt=new Blob([Et]),zt=document.createElementNS("http://www.w3.org/1999/xhtml","a");zt.href=Ft.createObjectURL(Mt),zt.download=kt,tr(zt)}(0,ve.useEffect)(()=>{Vt()},[Vt]),(0,ve.useEffect)(()=>{or.current&&!Rr&&Promise.all([Ce.e(8909),Ce.e(2460)]).then(Ce.bind(Ce,71448)).then(kt=>{try{Qe=kt,cr.current.instance=Qe.editor.create(or.current,{value:Ne,language:Ye(rt),theme:Ve,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ut||!1}},dt);const Et=cr.current.instance;let zt=[...Se.BH._menuItems].find(Sr=>Sr[0]._debugName=="EditorContext")[1],Yt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],br=(Sr,Ht)=>{var nr,Or;let Lr=Sr._first;do Ht.includes((Or=(nr=Lr.element)==null?void 0:nr.command)==null?void 0:Or.id)&&Sr._remove(Lr);while(Lr=Lr.next)};if(Xe(Et,Qe),setTimeout(()=>{Vt(),cr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Dt(wt||"educoder.txt",Et.getValue())}})},500),cr.current.subscription=Et.onDidChangeModelContent(Sr=>{Hr.current?clearTimeout(Vr.current):(Vt(),De(Et.getValue(),Sr)),Vr.current=setTimeout(()=>{Hr.current=!1},500)}),window.Monaco||E(Qe,Ye(rt)),je&&(br(zt,Yt),or.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",mr),window.removeEventListener("paste",mr),window.addEventListener("keydown",mr),window.addEventListener("paste",mr)),window.Monaco=Qe,He&&Et.onDidBlurEditorWidget(()=>{He(Et.getValue())}),ct&&Et.onDidFocusEditorText(()=>{je&&st(),ct(Et.getValue())}),je){st();try{Et.onDidPaste(Sr=>{const Ht=Et.getSelection(),nr=cr.current.pastePos||{},Or=new Qe.Range(nr.startLineNumber||Ht.endLineNumber,nr.startColumn||Ht.endColumn,nr.endLineNumber||Ht.endLineNumber,nr.endColumn||Ht.endColumn);Et.executeEdits("",[{range:Sr.range,text:""}])})}catch(Sr){}}let Tr=ni();return Rt&&typeof Rt=="string"&&new ye(Rt,Et,Qe),Fn(!0),()=>{const Sr=cr.current.instance;Sr.dispose();const Ht=Sr.getModel();Ht&&Ht.dispose(),cr.current.subscription&&cr.current.subscription.dispose(),Tr.unobserve(or.current)}}catch(Et){}})},[]),(0,ve.useEffect)(()=>{if(cr.current.instance&&Rr)return document.addEventListener("keydown",Wt,!1),()=>{document.removeEventListener("keydown",Wt)}},[et,Rr]),(0,ve.useEffect)(()=>{let kt=cr.current.instance;if(kt&&Rr){let Et=Ye(rt);Qe.editor.setModelLanguage(kt.getModel(),Et)}},[rt,Rr]),(0,ve.useEffect)(()=>{cr.current.instance&&Rr&&Qe.editor.setTheme(Ve)},[Ve,Rr]),(0,ve.useEffect)(()=>{let kt=cr.current.instance;ir.current=yt,kt&&Rr&&(kt.updateOptions(Ge({},yt)),setTimeout(()=>{kt.getModel().updateOptions(Ge({},yt))},200))},[JSON.stringify(yt),Rr]),(0,ve.useEffect)(()=>{let kt=cr.current.instance;kt&&Rr&&kt.layout()},[Be,lt,Rr]);const[jt,_t]=(0,ve.useState)(it(Be)),[Ct,It]=(0,ve.useState)(it(lt)),Gt=tt(Ge({},gt),{width:jt,height:Ct,position:"relative"});return ve.createElement("div",{className:"my-monaco-editor",ref:or,style:Gt,onFocus:()=>{je&&st()}},Ze&&ve.createElement(be.CopyToClipboard,{text:Ne,onCopy:()=>we.ZP.success("\u590D\u5236\u6210\u529F")},ve.createElement(xe.Z,{title:"\u590D\u5236\u4EE3\u7801"},ve.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ve.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function mt({width:ft="100%",height:qe="100%",original:Be,modified:lt,language:Ne,options:rt={}}){const gt=(0,ve.useRef)(),[yt,dt]=(0,ve.useState)(null);function Ve(Ie){let je;return gt.current&&(je=new Ue.Z(De=>{for(let Xe of De)(Xe.target.offsetHeight>0||Xe.target.offsetWidth>0)&&Ie.layout()}),je.observe(gt.current)),je}(0,ve.useEffect)(()=>(gt.current&&Promise.all([Ce.e(8909),Ce.e(9404)]).then(Ce.bind(Ce,2550)).then(Ie=>{Qe=Ie;const je=Qe.editor.createDiffEditor(gt.current,tt(Ge({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},rt),{wordWrap:!0}));dt(je);let De=Ve(je);return()=>{je.dispose();const Xe=je.getModel();Xe&&Xe.dispose(),De.unobserve(gt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ve.useEffect)(()=>{yt&&yt.setModel({original:Qe.editor.createModel(Be,Ne),modified:Qe.editor.createModel(lt,Ne)})},[Be,lt,Ne,yt]);const He=it(ft),Ze=it(qe),et={width:He,height:Ze};return ve.createElement("div",{className:"my-diff-editor",ref:gt,style:et})}},77825:function(bt,pt,Ce){"use strict";var ve=Ce(829),Ue=Ce(82326),a=Ce(71411),he=Ce(59301);const de=Ue.default.Option;pt.Z=({isTheoretical:te,onFontSizeChange:oe,cmFontSize:ne,cmCodeMode:ee,autoFormat:se,onCodeModeChange:z,onTabToSpace:x,onAutoFormat:b,formatDocument:E,className:re="",tabToSpace:ae,children:le,code_editor:fe,challenge:ce,shixun_environment_id:ue,shixun_environments:ye})=>{var Se;const we={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},xe=(Se=ye==null?void 0:ye.find(ge=>ge.shixun_environment_id===ue))==null?void 0:Se.program_language;return console.log("----",xe,ye,ue,fe),he.createElement("div",{className:`tpi-code-setting ${re}`},he.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),he.createElement("section",null,he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),he.createElement(Ue.default,{bordered:!1,size:"small",value:ee,onChange:z},he.createElement(de,{value:"vs"},"\u767D\u8272\u80CC\u666F"),he.createElement(de,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!te&&he.createElement(he.Fragment,null,he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),he.createElement(Ue.default,{bordered:!1,size:"small",value:ne,onChange:oe},he.createElement(de,{value:12},"12px"),he.createElement(de,{value:14},"14px"),he.createElement(de,{value:16},"16px"),he.createElement(de,{value:18},"18px"),he.createElement(de,{value:20},"20px"),he.createElement(de,{value:22},"22px"))),he.createElement("div",{className:"file-item"},he.createElement("b",null,"Tab\u8F6C\u6362"),he.createElement(a.Z,{checked:ae,onChange:x})),he.createElement("div",{className:"file-item",onClick:E},he.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!te&&he.createElement(he.Fragment,null,he.createElement("h3",null,"\u5FEB\u6377\u952E"),he.createElement("section",null,he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),he.createElement("span",null,"Ctrl + S")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),he.createElement("span",null,"F1 / Alt + F1")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),he.createElement("span",null,"Ctrl + ]/[")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),he.createElement("span",null,"Ctrl + Shift + \\")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),he.createElement("span",null,"Home")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),he.createElement("span",null,"End"))),le),!te&&he.createElement(he.Fragment,null,he.createElement("h3",null,"\u5B9E\u8BAD\u57FA\u672C\u4FE1\u606F"),he.createElement("section",null,xe&&he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),he.createElement("span",null,xe)),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),he.createElement("span",null,we[ce==null?void 0:ce.difficulty])),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),he.createElement("span",null,fe==null?void 0:fe.name)),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),he.createElement("span",null,fe!=null&&fe.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},61584:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return z}});var ve={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},Ue=Ce(29787),a=Ce(25399),he=Ce(60242),de=Ce(92310),te=Ce.n(de),oe=Ce(65862),ne=Ce(2524),ee=Ce(59301),z=({className:x,dataSource:b=[],col:E=4,right:re,bottom:ae=23,precision:le=0,wrapWidth:fe=1200,trackEventItems:ce,loading:ue,onRemove:ye=()=>{},isCurrent:Se=!0,showProgress:we=!1,showAlias:xe=!1,category:ge,hiddenClick:_e})=>{const be=Math.floor((fe-(E-1)*re)/E),Ae=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return ee.createElement(Ue.Z,{spinning:ue},ee.createElement("div",{className:te()(ve.list,x)},!!(b!=null&&b.length)&&(b==null?void 0:b.map((Te,Le)=>{var ke,Pe,Oe,ze,Ge,tt,Me,We,it,at,$e,Je,Ye;const{name:Qe,id:st,identifier:ot,featured:mt,school_name:ft,image_url:qe,excellent:Be,is_plan:lt}=Te;return ee.createElement("div",{key:st,className:Se&&we?ve.wrapisCurrent:ve.wrap,style:{width:be,marginRight:(1+Le)%E===0?0:re+le,marginBottom:ae}},ee.createElement("a",{className:ve.li,onClick:Ne=>{Ne.preventDefault(),Ne.stopPropagation(),ce&&(0,oe.L9)([ce]),(0,oe.xg)(`/paths/${ot}`)}},ee.createElement("div",{className:ve.img},ee.createElement("img",{className:ve.cover,src:`${qe}`}),(ke=Te==null?void 0:Te.subject_tags)==null?void 0:ke.map((Ne,rt)=>{var gt,yt;if(rt===0){const Ve=(gt=Ae.find(He=>He.name==Ne))==null?void 0:gt.swimg;return ee.createElement("img",{className:ve.sign,src:Ve,style:{left:"-4px"}})}const dt=(yt=Ae.find(Ve=>Ve.name==Ne))==null?void 0:yt.ptimg;return ee.createElement("img",{className:ve.sign,src:dt,style:{left:`${48+52*(rt-1)+2*rt}px`}})}),ee.createElement("div",{className:ve.tagsDom},ee.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Te==null?void 0:Te.excellent)&&ee.createElement("div",{className:ve.bq},"\u5F00\u653E\u8BFE\u7A0B"),((Pe=Te==null?void 0:Te.custom_tags)==null?void 0:Pe.length)>0&&ee.createElement(a.Z,{title:(Ge=(ze=Te==null?void 0:Te.custom_tags)==null?void 0:ze[((Oe=Te==null?void 0:Te.custom_tags)==null?void 0:Oe.length)-1])==null?void 0:Ge.tag_name},ee.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},ee.createElement("span",{className:"multi-llipsis1e text-10px"},(We=(Me=Te==null?void 0:Te.custom_tags)==null?void 0:Me[((tt=Te==null?void 0:Te.custom_tags)==null?void 0:tt.length)-1])==null?void 0:We.tag_name))))),ge=="hide"&&(Te==null?void 0:Te.studying)&&Se&&ee.createElement("div",{className:`${ve.movebq} user-path-items`,onClick:Ne=>{Ne.stopPropagation(),ye(Te)}},ee.createElement("i",{className:"iconfont icon-yichu1 font12"}),ee.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(ge)&&Se&&ee.createElement("div",{className:`${ve.hiddenbq} user-path-items`,onClick:Ne=>{Ne.stopPropagation(),_e(Te)}},ee.createElement("i",{className:`iconfont ${ge=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),ee.createElement("span",null,ge=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),ee.createElement("div",{className:ve.name},ee.createElement(a.Z,{title:xe&&(Te!=null&&Te.excellent_alias_name)?ee.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Qe}`,ee.createElement("br",null),ee.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Te==null?void 0:Te.excellent_alias_name}`)):Qe},ee.createElement("span",{className:ve.e},xe&&(Te==null?void 0:Te.excellent_alias_name)||Qe))),Se&&we&&((it=Te==null?void 0:Te.progress)==null?void 0:it.all_score)!=0&&ee.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ee.createElement(he.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((at=Te==null?void 0:Te.progress)==null?void 0:at.my_score)/(($e=Te==null?void 0:Te.progress)==null?void 0:$e.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Je=Te==null?void 0:Te.progress)==null?void 0:Je.my_score,"/",(Ye=Te==null?void 0:Te.progress)==null?void 0:Ye.all_score),(!Se||!we)&&ee.createElement(a.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ft}`},ee.createElement("div",{className:ve.unit},ee.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ft)),(!Se||!we)&&ee.createElement("div",{className:ve.tags},ee.createElement("div",null,ee.createElement(a.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ee.createElement("span",null,Te.stages_count))),ee.createElement(a.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ee.createElement("span",null,Te.members_count)))))))})),!b.length&&ee.createElement(ne.Z,null)))}},82636:function(bt,pt,Ce){"use strict";Ce.d(pt,{jL:function(){return de},w9:function(){return it},QD:function(){return Ot},cQ:function(){return ze.Z},op:function(){return De},O5:function(){return Ln},_b:function(){return Qt},t7:function(){return fe},Gi:function(){return st},YG:function(){return Ye},qp:function(){return z},vr:function(){return Nt},qE:function(){return Fe},Je:function(){return ye},wb:function(){return Oe},cq:function(){return lt},tp:function(){return E}});var ve=Ce(59301),Ue={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXl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erk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",de=({dataSource:qt=[],img:er,imgWidth:Wt=346,title:Vt,sunTitle:tr,bannerExtraContent:mr})=>ve.createElement("div",{className:Ue.banner},ve.createElement("div",{className:Ue.content},ve.createElement("aside",null,ve.createElement("p",null,ve.createElement("b",null,Vt),ve.createElement("span",null,tr)),qt.length>0&&ve.createElement("div",{className:Ue.btns},qt.map((Dt,jt)=>ve.createElement("div",{key:jt,onClick:Dt.click},Dt.name,Dt.sign?ve.createElement("img",{src:a,width:39}):null))),mr),er&&ve.createElement("img",{style:{marginTop:33,marginRight:38},src:er,width:Wt}))),te={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},oe=Ce(92310),ne=Ce.n(oe),ee=Ce(89392),z=({dataSource:qt=[],value:er,onChange:Wt,onTitleChange:Vt,className:tr,title:mr,titleWidth:Dt=41,style:jt={},fontColor:_t="#6A7283",showCount:Ct})=>{const[It,Gt]=(0,ve.useState)(1),[kt,Et]=(0,ve.useState)(!1),Ft=(0,ve.useRef)(null),Mt=(0,ve.useRef)(null);return(0,ve.useEffect)(()=>{var zt;qt.length!==0&&(((zt=Ft==null?void 0:Ft.current)==null?void 0:zt.clientHeight)>97?Gt(1):Gt(0)),qt.length===0&&Gt(0),Et(!1)},[qt]),ve.createElement("div",{className:ne()(te.row,tr,"fadeIn","animated"),style:jt},ve.createElement("div",{onClick:(0,ee.throttle)(()=>Vt==null?void 0:Vt(),2e3),style:{width:Dt,marginTop:kt?12:4},className:`${te.title} ${Vt?"current":""}`},mr),ve.createElement("div",{className:kt?`${te.tagsWrap} ${te.tagsBorderWrap}`:te.tagsWrap},ve.createElement("div",{className:te.bar,ref:Mt,style:It>0?{height:It===1?97:"auto",overflow:It===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ve.createElement("div",{className:te.tag,ref:Ft},qt==null?void 0:qt.map(zt=>ve.createElement("span",{onClick:()=>Wt(zt.id),key:zt.id,style:{color:_t},className:er===zt.id?te.active:""},ve.createElement("span",{title:zt.name,className:te.name},zt.name),!!Ct&&ve.createElement("span",{className:te.num},zt.count))))),!!It&&ve.createElement(ve.Fragment,null,It===1?ve.createElement("div",{onClick:()=>{var zt;Gt(2),((zt=Ft==null?void 0:Ft.current)==null?void 0:zt.clientHeight)>245?Et(!0):Et(!1)},className:te.action},"\u5C55\u5F00",ve.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ve.createElement("div",{onClick:()=>{Mt.current.scrollTop=0,Gt(1),Et(!1)},className:te.action},"\u6536\u8D77",ve.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},x={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},E=({dataSource:qt=[],value:er,onChange:Wt,className:Vt,style:tr={}})=>ve.createElement("div",{style:tr,className:ne()(x.tabs,Vt)},qt.map(mr=>ve.createElement("span",{onClick:()=>Wt(mr.id),className:er===mr.id?x.active:"",key:mr.id},mr.name))),re={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ae=Ce(37568),fe=({dataSource:qt=[],value:er="",onChange:Wt,onInputChange:Vt=()=>{},className:tr,style:mr={},placeholder:Dt,allowClear:jt=!1})=>{var _t;const[Ct,It]=(0,ve.useState)(""),[Gt,kt]=(0,ve.useState)("");(0,ve.useEffect)(()=>{var Mt;let zt=er;(Mt=JSON.stringify(er))!=null&&Mt.includes("{")&&(It(er.id),zt=er.value||"");try{kt(decodeURIComponent(zt||""))}catch(Yt){kt(decodeURIComponent(zt||""))}},[er]);const Et=()=>{Wt(encodeURIComponent(Gt),Ct||null)},Ft=Mt=>{Mt!==Ct&&(It(Mt),Wt(encodeURIComponent(Gt),Mt))};return ve.createElement("div",{className:ne()(re.input,tr),style:mr},!!qt.length&&ve.createElement("div",{className:re.dropdown},ve.createElement("div",{className:re.text},(_t=qt.find(Mt=>Mt.id===Ct))==null?void 0:_t.name,ve.createElement("i",{className:"iconfont icon-zhankai4"}),ve.createElement("b",{className:re.b1}),ve.createElement("b",{className:re.b2})),ve.createElement("div",{className:re.menu},qt.map((Mt,zt)=>ve.createElement("div",{key:zt,onClick:()=>Ft(Mt.id)},Mt.name)))),ve.createElement(ae.default,{onPressEnter:Et,value:Gt,onChange:Mt=>{kt(Mt.target.value),Vt(encodeURIComponent(Mt.target.value),Ct||null)},placeholder:Dt,variant:"borderless",allowClear:jt,onClear:()=>Wt("",Ct||null)}),ve.createElement("i",{onClick:Et,className:"iconfont icon-sousuo9 font14 current"}))},ce={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},ye=({value:qt,onChange:er,className:Wt,total:Vt,pageSize:tr,style:mr={}})=>{const Dt=qt<2,jt=qt>=Math.ceil(Vt/tr);return Vt<=tr?ve.createElement(ve.Fragment,null):ve.createElement("div",{className:ne()(ce.quickPager,Wt),style:mr},ve.createElement("div",{onClick:()=>{Dt||er(qt-1,"prev")},className:Dt?ce.disabled:""},"\u4E0A\u4E00\u9875"),ve.createElement("div",{onClick:()=>{jt||er(qt+1,"next")},className:jt?ce.disabled:""},"\u4E0B\u4E00\u9875"))},Se={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},we=Ce(29787),xe=Ce(25399),ge=Ce(58018),_e=Ce(74128),be=Ce(65862),Ae=Ce(96908),Te=Ce(57177),Le=Ce(81378),ke=Ce(2524),Oe=({className:qt,dataSource:er=[],col:Wt=4,right:Vt,bottom:tr=23,precision:mr=0,wrapWidth:Dt=1200,trackEventItems:jt,loading:_t})=>{const Ct=Math.floor((Dt-(Wt-1)*Vt)/Wt);return ve.createElement(we.Z,{spinning:_t},ve.createElement("div",{className:ne()(Se.list,qt)},!!er.length&&er.map((It,Gt)=>{const{name:kt,id:Et,identifier:Ft,power:Mt,cover_image_id:zt,pic:Yt}=It;return ve.createElement("div",{className:Se.wrap,key:Et,style:{width:Ct,marginRight:(1+Gt)%Wt===0?0:Vt+mr,marginBottom:tr}},ve.createElement("a",{target:"_blank",href:`/shixuns/${Ft}/challenges`,className:Se.li,onClick:br=>{br.preventDefault(),jt&&(0,be.L9)([jt]),Mt&&(0,be.xg)(`/shixuns/${Ft}/challenges`)}},ve.createElement("div",{className:Se.img},ve.createElement("img",{className:Se.cover,src:`${Yt}`}),It.is_jupyter&&ve.createElement("img",{className:Se.sign,src:Ae}),It.is_jupyter_lab&&ve.createElement("img",{className:Se.sign,src:Te}),It.is_unity_3d&&ve.createElement("img",{className:Se.sign,src:Le})),ve.createElement("div",{className:Se.name},ve.createElement(xe.Z,{title:kt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ve.createElement("span",{className:Se.e},kt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ve.createElement("div",{className:Se.tags},ve.createElement(xe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ve.createElement("span",null,It.challenges_count))),!!It.myshixuns_count&&ve.createElement(xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ve.createElement("span",null,It.myshixuns_count))),ve.createElement(xe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ve.createElement("span",null,ve.createElement("span",null,It.level))),ve.createElement("div",{className:Se.rate},ve.createElement(ge.Z,{allowHalf:!0,disabled:!0,defaultValue:It.score_info}),ve.createElement("span",null,"\xA0",It.score_info?`${It.score_info}\u5206`:"5\u5206")))),!Mt&&ve.createElement("div",{className:Se.lockWrap},ve.createElement("img",{src:`${_e.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ve.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!er.length&&ve.createElement(ke.Z,null)))},ze=Ce(61584),Ge={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvF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ce(59301),it=({className:qt,dataSource:er=[],col:Wt=4,right:Vt,bottom:tr=23,precision:mr=0,wrapWidth:Dt=1200,trackEventItems:jt,loading:_t,category:Ct,hiddenClick:It,handleVery:Gt=()=>!0,isCurrent:kt})=>{const Et=Math.floor((Dt-(Wt-1)*Vt)/Wt);return Me.createElement(we.Z,{spinning:_t},Me.createElement("div",{className:ne()(Ge.list,qt)},!!er.length&&er.map((Ft,Mt)=>{const{subject_identifier:zt,id:Yt,identifier:br,power:Tr}=Ft,Sr=Ft.is_public!=0&&Ft.is_public;return Me.createElement("div",{className:Ge.wrap,key:Yt,style:{width:Et,marginRight:(1+Mt)%Wt===0?0:Vt+mr,marginBottom:tr}},Me.createElement("a",{className:Ge.li,onClick:Ht=>{Ht.preventDefault(),Gt(Ft==null?void 0:Ft.first_category_url)&&(jt&&(0,be.L9)([jt]),(0,be.xg)(Ft.first_category_url))}},Me.createElement("div",{className:Ge.top},Me.createElement(xe.Z,{title:Ft.name},Me.createElement("div",{className:Ge.name},Ft.name)),Me.createElement("img",{className:Ge.img,src:_e.Z.IMG_SERVER+"/images/"+Ft.avatar_url}),Me.createElement("div",{className:Ge.text,title:Ft.creator},Ft.creator),zt&&Me.createElement("div",{className:Ge.btns},Me.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Me.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Sr&&Me.createElement("div",{className:Ge.sign},"\u516C\u5F00"),kt&&Me.createElement("div",{className:Ge.hidden,onClick:Ht=>{Ht.stopPropagation(),It(Ft)}},Me.createElement("i",{className:`iconfont ${Ct=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ct=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Me.createElement("div",{className:Ge.bottom},Ft.visits>0&&Me.createElement(xe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Me.createElement("span",null,Me.createElement("i",{className:"iconfont icon-liulanyan"}),Me.createElement("span",null,Ft.visits))),Ft.course_members_count>0&&Me.createElement(xe.Z,{title:"\u6210\u5458",placement:"bottom"},Me.createElement("span",null,Me.createElement("i",{className:"iconfont icon-chengyuan"}),Ft.course_members_count)),Ft.tasks_count>0&&Me.createElement(xe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Me.createElement("span",null,Me.createElement("i",{className:"iconfont icon-zuoye"}),Ft.tasks_count)),Ft.is_end?Me.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Me.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ft.is_accessible&&Me.createElement("div",{className:Ge.lockWrap},Me.createElement("img",{src:`${_e.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Me.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!er.length&&Me.createElement(ke.Z,null)))},at={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},$e=Ce(65582),Ye=({dataSource:qt=[],value:er,onChange:Wt,className:Vt,style:tr={},tabBarExtraContent:mr})=>ve.createElement("div",{className:ne()(at.tabs,Vt),style:tr},ve.createElement("div",{className:at.tabsWrap},qt.map((Dt,jt)=>!(Dt!=null&&Dt.hide)&&ve.createElement("aside",{className:at.tab,onClick:()=>{Wt(Dt.id),Dt.link&&$e.history.push(Dt.link)},key:jt},ve.createElement("div",{className:er===Dt.id?at.active:""},Dt.name),(Dt==null?void 0:Dt.resetCount)==null&&(Dt==null?void 0:Dt.total)!==void 0&&ve.createElement("span",null,"\uFF08",Dt==null?void 0:Dt.total,"\uFF09"),(Dt==null?void 0:Dt.resetCount)!==void 0&&(Dt==null?void 0:Dt.total)!==void 0&&ve.createElement(xe.Z,{title:(Dt==null?void 0:Dt.tip)!=null?Dt==null?void 0:Dt.tip:""},ve.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ve.createElement("span",{style:{color:"#000"}},Dt==null?void 0:Dt.resetCount),"/",ve.createElement("span",null,Dt==null?void 0:Dt.total),"\uFF09"))))),ve.createElement("div",{className:at.tabBar},mr)),st=({className:qt,style:er={},children:Wt})=>ve.createElement("div",{className:ne()(qt),style:er},Wt),ot={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},mt=Ce(75727),ft=Ce(93041);const qe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var lt=({sortValue:qt,dropValue:er,className:Wt,onSort:Vt,onDrop:tr,dataSource:mr=qe})=>{var Dt;return ve.createElement("div",{className:ne()(ot.orderWrap,Wt)},ve.createElement(mt.Z,{dropdownRender:()=>ve.createElement(ft.default,null,mr.map((jt,_t)=>ve.createElement(ft.default.Item,{key:_t,onClick:()=>tr(jt.id)},jt.name)))},ve.createElement("span",{className:ot.orderTextWrap},(Dt=mr.find(jt=>er===jt.id))==null?void 0:Dt.name)),ve.createElement("span",{className:ot.orderIconWrap},ve.createElement("span",{className:ot.orderAsc},ve.createElement("i",{className:qt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ot.cursorPointer} ${ot.active}`:`iconfont icon-sanjiaoxing-up font12 ${ot.cursorPointer}`,onClick:()=>Vt(qt==="asc"?"desc":"asc")})),ve.createElement("span",{className:ot.orderDesc},ve.createElement("i",{className:qt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ot.cursorPointer} ${ot.active}`:`iconfont icon-sanjiaoxing-down font12 ${ot.cursorPointer}`,onClick:()=>Vt(qt==="asc"?"desc":"asc")}))))},Ne={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},rt=Ce(7939),gt=Object.defineProperty,yt=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,He=(qt,er,Wt)=>er in qt?gt(qt,er,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):qt[er]=Wt,Ze=(qt,er)=>{for(var Wt in er||(er={}))dt.call(er,Wt)&&He(qt,Wt,er[Wt]);if(yt)for(var Wt of yt(er))Ve.call(er,Wt)&&He(qt,Wt,er[Wt]);return qt},et=(qt,er)=>{var Wt={};for(var Vt in qt)dt.call(qt,Vt)&&er.indexOf(Vt)<0&&(Wt[Vt]=qt[Vt]);if(qt!=null&&yt)for(var Vt of yt(qt))er.indexOf(Vt)<0&&Ve.call(qt,Vt)&&(Wt[Vt]=qt[Vt]);return Wt},Ie=(qt,er,Wt)=>new Promise((Vt,tr)=>{var mr=_t=>{try{jt(Wt.next(_t))}catch(Ct){tr(Ct)}},Dt=_t=>{try{jt(Wt.throw(_t))}catch(Ct){tr(Ct)}},jt=_t=>_t.done?Vt(_t.value):Promise.resolve(_t.value).then(mr,Dt);jt((Wt=Wt.apply(qt,er)).next())}),De=qt=>{var er=qt,{className:Wt,style:Vt,children:tr,loading:mr=!1,openLoading:Dt,onClick:jt=()=>{},size:_t="middle",shape:Ct="round"}=er,It=et(er,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Gt,kt]=(0,ve.useState)(!1);return ve.createElement(rt.ZP,Ze({onClick:(0,ee.throttle)(Et=>Ie(void 0,null,function*(){Dt&&kt(!0);try{yield jt(Et)}catch(Ft){console.log("error",Ft)}Dt&&kt(!1)}),2e3,{leading:!0,trailing:!1}),className:ne()(Ne.btn,Ne[`${_t}-${Ct}`],Wt),style:Vt,size:_t,shape:Ct,loading:Gt||mr},It),tr)},Xe={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Fe=({className:qt,style:er,children:Wt=null,onClick:Vt,title:tr})=>ve.createElement("div",{className:ne()(Xe.head,qt),style:er},ve.createElement("span",{className:"primary-hover",onClick:Vt},ve.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ve.createElement("b",{title:tr},tr),ve.createElement("div",{className:Xe.node},Wt)),vt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Ot=({confirmShow:qt=!0,confirmTitle:er,confirmClick:Wt,cancelShow:Vt=!0,cancelTitle:tr,cancelClick:mr,className:Dt,style:jt,confirmLoading:_t=!1})=>ve.createElement("div",{className:ne()(vt.btns,Dt),style:jt},qt&&ve.createElement(rt.ZP,{loading:_t,onClick:Wt,type:"primary",className:vt.confirm},er),Vt&&ve.createElement(rt.ZP,{onClick:mr,className:vt.cancel},tr)),Tt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Nt=({className:qt,style:er={},LeftContent:Wt,children:Vt,RightContent:tr})=>ve.createElement("div",{className:ne()(Tt.fixedBottom,qt),style:er},ve.createElement("div",{className:Tt.wrap},ve.createElement("div",{className:Tt.left},Wt),ve.createElement("div",{className:Tt.center},Vt),ve.createElement("div",{className:Tt.right},tr))),Rt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Qt=({className:qt,style:er={},dataSource:Wt=[]})=>ve.createElement("div",{className:ne()(Rt.crumbs,qt),style:er},Wt.map((Vt,tr)=>tr<Wt.length-1?ve.createElement(ve.Fragment,{key:tr},Vt.path||Vt.onClick?ve.createElement("span",{className:Rt.hover,onClick:Vt!=null&&Vt.onClick?Vt.onClick:()=>$e.history.push(Vt.path)},Vt.name):ve.createElement("span",null,Vt.name),ve.createElement("span",null,"\xA0",">","\xA0")):ve.createElement("span",{key:tr,style:{color:"#5F6368"}},Vt.name))),or=Ce(11938),cr=Object.defineProperty,ir=Object.defineProperties,_r=Object.getOwnPropertyDescriptors,Fr=Object.getOwnPropertySymbols,Hr=Object.prototype.hasOwnProperty,Vr=Object.prototype.propertyIsEnumerable,on=(qt,er,Wt)=>er in qt?cr(qt,er,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):qt[er]=Wt,yn=(qt,er)=>{for(var Wt in er||(er={}))Hr.call(er,Wt)&&on(qt,Wt,er[Wt]);if(Fr)for(var Wt of Fr(er))Vr.call(er,Wt)&&on(qt,Wt,er[Wt]);return qt},Rr=(qt,er)=>ir(qt,_r(er)),Fn=(qt,er)=>{var Wt={};for(var Vt in qt)Hr.call(qt,Vt)&&er.indexOf(Vt)<0&&(Wt[Vt]=qt[Vt]);if(qt!=null&&Fr)for(var Vt of Fr(qt))er.indexOf(Vt)<0&&Vr.call(qt,Vt)&&(Wt[Vt]=qt[Vt]);return Wt};const{Countdown:ni}=or.default;var Ln=qt=>{var er=qt,{onChange:Wt}=er,Vt=Fn(er,["onChange"]);const[tr,mr]=(0,ve.useState)(null);(0,ve.useEffect)(()=>{typeof tr=="number"&&tr>=0&&Wt(tr)},[tr]);const Dt=jt=>{const _t=Math.floor(jt/1e3);mr(_t)};return ve.createElement(ni,Rr(yn({},Vt),{onChange:Dt}))}},31103:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return Ue}});var ve=Ce(59301);function Ue(a,he){const de=(0,ve.useRef)();(0,ve.useEffect)(()=>{de.current=a}),(0,ve.useEffect)(()=>{function te(){de.current()}if(he!==null){let oe=setInterval(te,he);return()=>clearInterval(oe)}},[he])}},21390:function(bt,pt,Ce){"use strict";var ve=Ce(59301),Ue=Ce(11938),a=Ce(71051),he=Ce(28284),de=Ce(62957),te=Ce(29787),oe=Ce(54172),ne=Ce(37568),ee=Ce(77019),se=Ce(5269),z=Ce(7939),x=Ce(87513),b=Ce(56656),E=Ce.n(b),re=Ce(65582),ae=Ce(65862),le=Ce(27158),fe=Ce(41867),ce=Ce(61527),ue=Ce(59301),ye=(ge,_e,be)=>new Promise((Ae,Te)=>{var Le=Oe=>{try{Pe(be.next(Oe))}catch(ze){Te(ze)}},ke=Oe=>{try{Pe(be.throw(Oe))}catch(ze){Te(ze)}},Pe=Oe=>Oe.done?Ae(Oe.value):Promise.resolve(Oe.value).then(Le,ke);Pe((be=be.apply(ge,_e)).next())});const{Countdown:Se}=Ue.default,we=({value:ge,onChange:_e,MaxMinutes:be})=>ue.createElement(ue.Fragment,null,ue.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",ue.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u3002",ue.createElement("br",null)),ue.createElement(a.Z,{value:ge,onChange:_e,min:0,precision:0,max:be,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${be}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),xe=({exercise:ge,successCb:_e,dispatch:be})=>{var Ae,Te,Le,ke;const Pe=(0,re.useParams)(),[Oe]=he.default.useForm(),ze=he.default.useWatch("time",Oe),[Ge,tt]=(0,ve.useState)(!1),Me=(0,ve.useRef)(),{actionTabs:We}=ge,[it,at]=(0,ve.useState)(),[,$e,Je,Ye]=(0,ce.U)(x.n7,{id:Pe.categoryId}),[,Qe,st]=(0,ce.U)(x.Cd,{});(0,ve.useEffect)(()=>{ge.actionTabs.key==="student-unlock"&&(tt(!1),Oe.resetFields())},[ge.actionTabs.key]);const ot=()=>new Promise(yt=>ye(void 0,null,function*(){var dt,Ve;return Me.current=yield(0,le.y)({ip_limit:(dt=We==null?void 0:We.exerciseParams)==null?void 0:dt.ip_limit,ip_bind:(Ve=We==null?void 0:We.exerciseParams)==null?void 0:Ve.ip_bind_type}),yt()})),mt=()=>ye(void 0,null,function*(){var yt,dt,Ve,He,Ze;yield Oe.validateFields();const et=Oe.getFieldsValue();if(tt(!0),(((yt=We==null?void 0:We.exerciseParams)==null?void 0:yt.ip_limit)!=="no"||(dt=We==null?void 0:We.exerciseParams)!=null&&dt.ip_bind_type)&&(yield ot()),(yield(0,x.ZD)((Ve=We==null?void 0:We.exerciseParams)==null?void 0:Ve.id,{exercise_user_id:(He=We==null?void 0:We.exerciseParams)==null?void 0:He.exercise_user_id,unlock_key:et.unlock_key,time:et.time,ip:Me.current})).status===0){if(_e){be({type:"exercise/setActionTabs",payload:{}}),_e();return}const je=We==null?void 0:We.exerciseParams;(0,ae.nr)({inner_ip:je.inner_ip,public_ip:je.public_ip,open_camera:je.open_camera,ip_limit:je.ip_limit,ip_bind:je.ip_bind,ip_bind_type:je.ip_bind_type,exercise_tips:je.exercise_tips,exerciseId:je.id,screen_open:je.screen_open,screen_num:je.screen_num,screen_sec:je.screen_sec,coursesId:Pe.coursesId,login:(Ze=(0,fe.eY)())==null?void 0:Ze.login,history,identity_verify:je.identity_verify,open_phone_video_recording:je.open_phone_video_recording,current_status:je.current_status}),be({type:"exercise/setActionTabs",payload:{}})}tt(!1)}),ft=[{title:"IP\u5730\u5740",dataIndex:"ip",key:"ip",render:yt=>ue.createElement("span",{className:yt.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},yt)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:yt=>ue.createElement("span",{className:yt.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},yt)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],qe=((Ae=We==null?void 0:We.exerciseParams)==null?void 0:Ae.errorMessage)&&typeof((Te=We==null?void 0:We.exerciseParams)==null?void 0:Te.errorMessage)=="object";(0,ve.useEffect)(()=>{ge.actionTabs.key==="student-unlock"&&ye(void 0,null,function*(){const yt=yield st(Pe);yield Je({}),yt.status||at(yt)})},[ge.actionTabs.key]);const{time:Be,end_time:lt}=(it==null?void 0:it.exercise)||{},Ne=Ye!=null&&Ye.user_end_time?E()(Ye==null?void 0:Ye.user_end_time).add(1,"minutes"):E()(),rt=E()(Ye==null?void 0:Ye.user_total_end_time)>Ne?Math.round(E().duration(E()(Ye==null?void 0:Ye.user_total_end_time).diff(Ne.startOf("minute"))).asMinutes()):0,gt=((Ye==null?void 0:Ye.student_left_minutes)||0)+(ze||0);return ue.createElement(ue.Fragment,null,ue.createElement(de.default,{width:514,centered:!0,closable:!!((Le=We==null?void 0:We.exerciseParams)!=null&&Le.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"\u63D0\u793A",open:ge.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{be({type:"exercise/setActionTabs",payload:{}})}},ue.createElement(te.Z,{spinning:$e||Qe},qe&&ue.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!qe&&ue.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),qe&&ue.createElement(oe.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((ke=We==null?void 0:We.exerciseParams)==null?void 0:ke.errorMessage)||{}],columns:ft}),ue.createElement("div",{className:""},ue.createElement(he.default,{form:Oe,layout:"vertical",autoComplete:"off"},ue.createElement(he.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},ue.createElement(ne.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),Be!==-1?ue.createElement(ue.Fragment,null,ue.createElement(he.default.Item,{name:"time",label:ue.createElement("span",null,"\u5EF6\u957F\u65F6\u95F4\uFF08",ue.createElement("span",{style:{color:"#9096A3"}},"\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4",E()(Ye==null?void 0:Ye.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},ue.createElement(we,{MaxMinutes:rt})),ue.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",ue.createElement("span",{className:"ml5"},$e||Qe?"--":gt),"\u5206\u949F",gt!==0&&(Ye==null?void 0:Ye.user_end_time)&&ue.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",ue.createElement("span",{className:"ml5"},E()(Ye==null?void 0:Ye.user_end_time).add(ze||0,"m").format("YYYY-MM-DD HH:mm:ss"))))):ue.createElement("span",{style:{color:"#F6A53B"}}," \u5F53\u524D\u8003\u8BD5\u672A\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F\uFF0C\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u4E3A ",E()(lt).format("YYYY-MM-DD HH:mm")))),ue.createElement(ee.Z,{justify:"space-between",align:"middle"},ue.createElement(se.Z,null),ue.createElement(se.Z,null,ue.createElement(z.ZP,{loading:Ge,onClick:mt},"\u8FDB\u5165\u8003\u8BD5"))))))};pt.Z=(0,re.connect)(({exercise:ge})=>({exercise:ge}))(xe)},83554:function(bt,pt,Ce){"use strict";Ce.d(pt,{Z:function(){return b}});var ve=Ce(59301),Ue=Ce(6767),a=Ce(25399),he=Ce(29787),de=Ce(77019),te=Ce(5269),oe=Ce(13747),ne=Ce(7939),ee=Ce(25374),se=Ce(38147),z=Ce(95097),x=(re,ae,le)=>new Promise((fe,ce)=>{var ue=we=>{try{Se(le.next(we))}catch(xe){ce(xe)}},ye=we=>{try{Se(le.throw(we))}catch(xe){ce(xe)}},Se=we=>we.done?fe(we.value):Promise.resolve(we.value).then(ue,ye);Se((le=le.apply(re,ae)).next())}),b=({id:re,activeDiscussIndex:ae,onReplyDiscuss:le,adminOrOperator:fe})=>{const[ce,ue]=(0,ve.useState)(""),[ye,Se]=(0,ve.useState)(!1);function we(ge){ue(ge)}function xe(){if(!ce){Ue.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}le(re,ce),ue("")}return(0,ve.useEffect)(()=>{ae!=re&&Se(!1)},[ae]),ve.createElement("div",{key:re,className:"discuss-item-editor",style:{display:ae===re?"block":"none",width:"100%"}},ve.createElement(ee.Z,{miniToolbar:!0,startInit:ae===re,defaultValue:ce,id:re,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:we,extraUse:fe&&ve.createElement(a.Z,{color:"#fff",open:ye,destroyTooltipOnHide:!0,title:E({id:re,isOpen:ye,activeDiscussIndex:ae,onChange:we,setIsOpen:Se}),overlayStyle:{maxWidth:600}},ve.createElement("a",{title:ye?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>Se(!ye)},ve.createElement("i",{className:"iconfont icon-dianzan11"})))}),ve.createElement("a",{onClick:xe,className:"btn-send"},"\u53D1\u9001"))};const E=re=>{const[ae,le]=(0,ve.useState)(!1),[fe,ce]=(0,ve.useState)([]),[ue,ye]=(0,ve.useState)(1);(0,ve.useEffect)(()=>{re!=null&&re.isOpen?Se():(ye(1),ce([]))},[re==null?void 0:re.isOpen]);const Se=()=>x(void 0,null,function*(){le(!0);const we=yield(0,se.ZP)(`/api/discusses/${re==null?void 0:re.id}/recommend_answer.json`,{method:"get"});(we==null?void 0:we.status)==0&&ce(we==null?void 0:we.answer),le(!1)});return ve.createElement(he.Z,{spinning:ae},ve.createElement("div",{style:{color:"#000"}},ve.createElement(z.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(fe==null?void 0:fe[ue-1])||""}),ve.createElement(de.Z,{justify:"end",align:"middle"},ve.createElement(te.Z,null,ve.createElement(oe.Z,{simple:!0,current:ue,pageSize:1,total:(fe==null?void 0:fe.length)||0,onChange:we=>{ye(we)}})),ve.createElement(te.Z,null,ve.createElement(ne.ZP,{onClick:()=>x(void 0,null,function*(){re==null||re.onChange(fe==null?void 0:fe[ue-1]),re==null||re.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},65808:function(bt,pt,Ce){"use strict";Ce.d(pt,{CP:function(){return a},_V:function(){return te}});var ve=Ce(28209),Ue=Ce.n(ve);const a={secret:ve.enc.Utf8.parse("0a18e199b87f1a8d"),iv:ve.enc.Utf8.parse("6e7b11a2d8475a3c"),recordScreen1:"8Cl7udD6KTt8HPYOZOopZQ==",recordScreen2:"2OizCBkuJOsBhw8rNenXhYCv3XTIsgM5YB4rOmXz7tSksBaXYYyAirzxs7TSR1vRsyWPVAt4owje5yiTfFsxAA==",recordScreen3:"neJjLaAaeW/dFCOx/cRGopZHNvjZTB0x8p9/TcYCsAGn0mWINwybT7VQlqzmJ55DjVgOrmi/iclg/G6uBGjm/Q==",recordScreen4:"SGYXWA9MzSO+02aOU0lf0g==",recordScreen5:"oCICX8dGCYMnb+4d1CTCTQ==",recordScreen6:"5MlFeP+Uwb/T5ADmGmB6NpaUgOJy3MlJ4WpA38wds8U=",recordScreen7:"TEQF1ezPIxvVVMQNJ08HIiHpj1mXdcVt5qmr6+ALw8Y=",recordScreen8:"9a9QOkgLXlgDq14d3ZEWzA==",recordScreen9:"O0prHhH+rDoUVnpw8acqwRQvRL7fh32v1bLyv4qv71U=",recordScreen10:"nfkbhFR34HkBQLpjlbNkk3FgEdBomIsnFLVgHA1RZVBeN/H3vWJpt0re6w4cjtaKmIkNgpJhxaFgyEkcJ7Z99GCAgC0CgxaaXNQNiDmz2MygiesZVZ9laQvHFQhZehEEaFKUozvNVQMkRw0MV0eoPg==",recordScreen11:"jarJWElZmu7HFZnjOTPwNx44FImKQVf8Bx2Jrm74G44=",recordScreen12:"e7Q/zr1KcI3oVpnQ3JeDgA==",recordScreen13:"pm38jjAC3l2p/JR8E3kDWg==",recordScreen14:"/mTQurqh9htD7+PNrTooMJgdPOE914grpIKomFnikk8=",recordScreen15:"bEPsKA+wwGyQEDShAMuQmQ==",recordScreen16:"uitMDSXWhi/tOOfbtHNmyNh8e9PCLJ0naA02kzBCOD/mdg+1g9ScswIEDpdHuE1l",recordScreen17:"4+bY5u3lx+VxRA/PjP/r3Tl9C0SmKM8CRtCpmkAJq+M=",recordScreen18:"L3Tz5XdvbIAqzHw/XxJnmrx8R+v3cPrYaho0/yDug6M=",recordScreen19:"bo+SiWR7f4uhJXP1wk3oQxBEFmQdbpZPV1in12O3jaj14CuNU2kP2g2MKMTFmRqE12Di4jS3RKzRI14yWpi6Zw==",recordScreen20:"9zp6SENXwO+8GNr4+g+xIzt6s/Gf38ukabRJjhQhQoY=",recordScreen21:"9zp6SENXwO+8GNr4+g+xIy36f4lSwnfFtW0weuO6Gj8=",recordScreen22:"JrbzlyV7pBS7Yw/W1geouw==",recordScreen23:"HBRPVLqnAH9kbzQ7clr8JsTgjT3nCOaP6D+q1lrMX0T6z7vU1Nh5XljgB+Qw/Hs8",recordScreen24:"bq3vruZCtCaGLs7egAWDrgXjmyW8iQX5L+nEwqCeguM=",recordScreen25:"CjveXk9FHEWiBbhwyVRzPQ==",recordScreen26:"FxZnr4aTDDJTcRMUEb3SfA==",answer1:"YXOzThjf+mcj1OALSFqA8A==",answer2:"iyOS4uLz85NAsAWdMjWs6A==",answer3:"cnZErv6FfE02OBkLzlWAeDAW3+ysEYfgoPhcC707e9kJN3PHMP7E05NC7nRf5ESWhemykQ0Y+JYQAd1PGsIJVIZFsA7OlceUwyOfid7oTeg=",answer4:"xXjNeCMbPG5xznAfVbSmjvHn/2xVBArzvsRXJZVk7yY=",answer5:"8Cl7udD6KTt8HPYOZOopZQ==",answer6:"r4qWdIzOZoUDAHIC6Rkiz3KJVZoKCNj9MmeR76VANv90Zyj57hrKtRcOipt3SZUPfZlt17GKyBf504lj5ROxVg==",answer7:"t1d0b8j3bdsJoH9adhzqOQ==",answer8:"0TBptfONacS/9JDvt/q9BO9S0+Jv0m1glMCiAQweO4E=",answer9:"2DA7p8Fws9TWo+O5djurjrORgQjZjMrKtuIbjfCoAI8ZpLy4+sq9PFZuua40lLxjTVb7vhKqm6exT5/R19YdjnUTh6Kyt+6Px8xr6JnEHVw=",answer10:"xcjM1HNI8s6ckETto63Gq83vw68ATty2i534hkfjKAa+izWStVVH5fvCEpQxd8rYYki3IW9Qy0NU8cLJsHQXWOsYtYD70yB44qG5j3fnlDahQUcsDWEBXzx2NlAp6x5R",answer11:"0/t7yKZD1CFg6kerAPJksqJATDsJMtkB06datFVfwac=",answer12:"SJ4yd9DEs9YHnGhybPplEg=="},he={exam:a};function de(oe="",ne="exam"){const{secret:ee,iv:se}=he[ne];return AES.encrypt(oe,ee,{iv:se,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}).toString()}function te(oe="",ne="exam"){const{secret:ee,iv:se}=he[ne];return ve.AES.decrypt(oe,ee,{iv:se,mode:Ue().mode.CBC,padding:Ue().pad.Pkcs7}).toString(ve.enc.Utf8)}},84056:function(bt,pt,Ce){"use strict";Ce.d(pt,{BU:function(){return Ue},Dj:function(){return ve},gH:function(){return a},vp:function(){return he}});function ve(de){try{de.mozRequestFullScreen?de.mozRequestFullScreen():de.webkitRequestFullScreen&&de.webkitRequestFullScreen()}catch(te){console.log(te,":e")}}function Ue(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const a=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function he(){var de=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,te=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",de),window.isFullScreen?window.isFullScreen:de!=null}},61527:function(bt,pt,Ce){"use strict";Ce.d(pt,{U:function(){return ee}});var ve=Ce(59301),Ue=Object.defineProperty,a=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,te=(se,z,x)=>z in se?Ue(se,z,{enumerable:!0,configurable:!0,writable:!0,value:x}):se[z]=x,oe=(se,z)=>{for(var x in z||(z={}))he.call(z,x)&&te(se,x,z[x]);if(a)for(var x of a(z))de.call(z,x)&&te(se,x,z[x]);return se},ne=(se,z,x)=>new Promise((b,E)=>{var re=fe=>{try{le(x.next(fe))}catch(ce){E(ce)}},ae=fe=>{try{le(x.throw(fe))}catch(ce){E(ce)}},le=fe=>fe.done?b(fe.value):Promise.resolve(fe.value).then(re,ae);le((x=x.apply(se,z)).next())});function ee(se,z){const[x,b]=(0,ve.useState)(z),[E,re]=(0,ve.useState)(!1),[ae,le]=(0,ve.useState)();return[x,E,(ce,ue=!1)=>ne(this,null,function*(){const ye=ue?z:oe(oe({},x),ce);re(!0),b(ye);const Se=yield se(ye);return re(!1),le(Se),Se}),ae,le]}},72530:function(bt,pt,Ce){"use strict";Ce.d(pt,{_:function(){return a}});var ve=Ce(59301),Ue=Ce(62957);const a=he=>{var de,te;const oe=(0,ve.useRef)([]),ne=()=>{for(const ee of oe.current)clearTimeout(ee);oe.current=[]};return(0,ve.useEffect)(()=>{var ee,se,z,x,b,E;if(ne(),(ee=he==null?void 0:he.exercise)!=null&&ee.left_time&&((z=(se=he==null?void 0:he.exercise)==null?void 0:se.exercise_events)==null?void 0:z.length)>0){for(const re of(x=he==null?void 0:he.exercise)==null?void 0:x.exercise_events)if(((b=he==null?void 0:he.exercise)==null?void 0:b.left_time)>(re==null?void 0:re.reminder_time)*60){let ae=(((E=he==null?void 0:he.exercise)==null?void 0:E.left_time)-(re==null?void 0:re.reminder_time)*60)*1e3;ae=ae>2147483647?2147483647:ae;const le=setTimeout(()=>{Ue.default.info({content:`${re==null?void 0:re.reminder_content}`,icon:null,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u4E86"})},ae);oe.current.push(le)}}},[(de=he==null?void 0:he.exercise)==null?void 0:de.left_time,(te=he==null?void 0:he.exercise)==null?void 0:te.exercise_events]),ne}},49142:function(bt,pt,Ce){"use strict";Ce.d(pt,{AL:function(){return ye},Iy:function(){return z},Qv:function(){return E},ez:function(){return ue},jb:function(){return x}});var ve=Ce(32834),Ue=Ce.n(ve),a=Ce(11690),he=Ce.n(a);let de=1;function te(_e,be){const Ae=_e.match(/^(\s+)(?:```)/);if(Ae===null)return be;const Te=Ae[1];return be.split(`
`).map(Le=>{const ke=Le.match(/^\s+/);if(ke===null)return Le;const[Pe]=ke;return Pe.length>=Te.length?Le.slice(Te.length):Le}).join(`
`)}let oe=[],ne=["<ul>"];const ee=new(Ue()).Renderer,se=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function z(){oe.length=0,ne=["<ul>"]}const x={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function b(_e,be,Ae,Te){if(be>=_e.length||_e[be].level<=Ae)return be;var Le=_e[be];Te.push("<li><a href='#"+de+Le.anchor+"'>"+Le.text+"</a>"),be++;var ke=[];return be=b(_e,be,Le.level,ke),ke.length>0&&(Te.push("<ul>"),ke.forEach(function(Pe){Te.push(Pe)}),Te.push("</ul>")),Te.push("</li>"),be=b(_e,be,Ae,Te),be}function E(){return b(oe,0,0,ne),ne.push("</ul>"),ne.join("")}const re={heading(_e){const be=se.exec(_e);if(de+=1,be)return{type:"heading",raw:be[0],depth:be[1].length,text:be[2]}},fences(_e){const be=this.rules.block.fences.exec(_e);if(be){const Ae=be[0];let Te=te(Ae,be[3]||"");const Le=be[2]?be[2].trim():be[2];if(["latex","katex","math"].indexOf(Le)>=0){const ke=fe(),Pe=Te;Te=ke,ce[ke]={type:"block",expression:Pe}}return{type:"code",raw:Ae,lang:Le,text:Te}}}},ae=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let le=0;const fe=()=>`__special_katext_id_${le++}__`;let ce={};function ue(){return ce}function ye(){le=0,ce={}}function Se(_e){return _e=_e.replace(ae,(be,Ae)=>{const Te=fe();return ce[Te]={type:"inline",expression:Ae},Te}),_e}const we=ee.listitem;ee.listitem=function(_e){return we(Se(_e))};const xe=ee.paragraph;ee.paragraph=function(_e){return xe(Se(_e))};const ge=ee.tablecell;ee.tablecell=function(_e,be){return ge(Se(_e),be)},ee.code=function(_e,be,Ae){const Te=(be||"").match(/\S*/)[0];return Te?["latex","katex","math"].indexOf(Te)>=0?`<p class='editormd-tex'>${_e}</p>`:`<pre class="prettyprint linenums"><code class="language-${be}">${Ae?_e:(0,a.escape)(_e,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Ae?_e:(0,a.escape)(_e,!0))+"</code></pre>"},ee.heading=function(_e,be,Ae){let Te=this.options.headerPrefix+Ae.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return oe.push({anchor:Te,level:be,text:_e}),"<h"+be+' id="'+de+Te+'">'+_e+"</h"+be+">"},Ue().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ue().use({tokenizer:re,renderer:ee}),pt.ZP=Ue()},42926:function(bt,pt,Ce){"use strict";Ce.d(pt,{G:function(){return de},t:function(){return he}});var ve=Ce(7062),Ue=Ce.n(ve);const a=null;function he(te,oe){let ne=Ue().get("__ec");ne||(ne={}),ne[te]=oe,Ue().set("__ec",ne)}function de(te,oe){let ne=Ue().get("__ec");return ne?ne[te]===void 0?oe:ne[te]:oe}},47257:function(bt){(function(pt){(function(Ce){if(1)bt.exports=Ce();else var ve})(function(){var Ce,ve,Ue;return function(){function a(he,de,te){function oe(se,z){if(!de[se]){if(!he[se]){var x=void 0;if(!z&&x)return require(se,!0);if(ne)return ne(se,!0);var b=new Error("Cannot find module '"+se+"'");throw b.code="MODULE_NOT_FOUND",b}var E=de[se]={exports:{}};he[se][0].call(E.exports,function(re){var ae=he[se][1][re];return oe(ae||re)},E,E.exports,a,he,de,te)}return de[se].exports}for(var ne=void 0,ee=0;ee<te.length;ee++)oe(te[ee]);return oe}return a}()({1:[function(a,he,de){"use strict";var te=a("./browser/client");te.Buffer=a("buffer").Buffer,te.urllib=a("../shims/xhr"),te.version=a("./browser/version").version,he.exports=te},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator")),ne=te(a("@babel/runtime/helpers/asyncToGenerator"));a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.slice.js");var ee=a("assert"),se=a("../common/utils/checkBucketName"),z=se.checkBucketName,x=de;function b(re){return Array.isArray?Array.isArray(re):Object.prototype.toString.call(re)==="[object Array]"}function E(re){return re?b(re)?re:[re]:[]}x.useBucket=function(ae){return z(ae),this.options.bucket=ae,this},x.setBucket=function(ae){return z(ae),this.options.bucket=ae,this},x.getBucket=function(){return this.options.bucket},x.deleteBucket=function(){var re=(0,ne.default)(oe.default.mark(function le(fe,ce){var ue,ye;return oe.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ue=this._bucketRequestParams("DELETE",fe,"",ce),we.next=3,this.request(ue);case 3:if(ye=we.sent,!(ye.status===200||ye.status===204)){we.next=6;break}return we.abrupt("return",{res:ye.res});case 6:return we.next=8,this.requestError(ye);case 8:throw we.sent;case 9:case"end":return we.stop()}},le,this)}));function ae(le,fe){return re.apply(this,arguments)}return ae}(),x.putBucketACL=function(){var re=(0,ne.default)(oe.default.mark(function le(fe,ce,ue){var ye,Se;return oe.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ye=this._bucketRequestParams("PUT",fe,"acl",ue),ye.headers={"x-oss-acl":ce},ye.successStatuses=[200],xe.next=5,this.request(ye);case 5:return Se=xe.sent,xe.abrupt("return",{bucket:Se.headers.location&&Se.headers.location.substring(1)||null,res:Se.res});case 7:case"end":return xe.stop()}},le,this)}));function ae(le,fe,ce){return re.apply(this,arguments)}return ae}(),x.getBucketACL=function(){var re=(0,ne.default)(oe.default.mark(function le(fe,ce){var ue,ye;return oe.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ue=this._bucketRequestParams("GET",fe,"acl",ce),ue.successStatuses=[200],ue.xmlResponse=!0,we.next=5,this.request(ue);case 5:return ye=we.sent,we.abrupt("return",{acl:ye.data.AccessControlList.Grant,owner:{id:ye.data.Owner.ID,displayName:ye.data.Owner.DisplayName},res:ye.res});case 7:case"end":return we.stop()}},le,this)}));function ae(le,fe){return re.apply(this,arguments)}return ae}(),x.putBucketLogging=function(){var re=(0,ne.default)(oe.default.mark(function le(fe,ce,ue){var ye,Se,we;return oe.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ye=this._bucketRequestParams("PUT",fe,"logging",ue),Se=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(fe,`</TargetBucket>
`),ce&&(Se+="<TargetPrefix>".concat(ce,`</TargetPrefix>
`)),Se+=`</LoggingEnabled>
</BucketLoggingStatus>`,ye.content=Se,ye.mime="xml",ye.successStatuses=[200],ge.next=9,this.request(ye);case 9:return we=ge.sent,ge.abrupt("return",{res:we.res});case 11:case"end":return ge.stop()}},le,this)}));function ae(le,fe,ce){return re.apply(this,arguments)}return ae}(),x.getBucketLogging=function(){var re=(0,ne.default)(oe.default.mark(function le(fe,ce){var ue,ye,Se;return oe.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ue=this._bucketRequestParams("GET",fe,"logging",ce),ue.successStatuses=[200],ue.xmlResponse=!0,xe.next=5,this.request(ue);case 5:return ye=xe.sent,Se=ye.data.LoggingEnabled,xe.abrupt("return",{enable:!!Se,prefix:Se&&Se.TargetPrefix||null,res:ye.res});case 8:case"end":return xe.stop()}},le,this)}));function ae(le,fe){return re.apply(this,arguments)}return ae}(),x.deleteBucketLogging=function(){var re=(0,ne.default)(oe.default.mark(function le(fe,ce){var ue,ye;return oe.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ue=this._bucketRequestParams("DELETE",fe,"logging",ce),ue.successStatuses=[204,200],we.next=4,this.request(ue);case 4:return ye=we.sent,we.abrupt("return",{res:ye.res});case 6:case"end":return we.stop()}},le,this)}));function ae(le,fe){return re.apply(this,arguments)}return ae}(),x.putBucketCORS=function(){var re=(0,ne.default)(oe.default.mark(function le(fe,ce,ue){var ye,Se,we,xe,ge,_e,be,Ae,Te,Le;return oe.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:for(ce=ce||[],ee(ce.length,"rules is required"),ce.forEach(function(Oe){ee(Oe.allowedOrigin,"allowedOrigin is required"),ee(Oe.allowedMethod,"allowedMethod is required")}),ye=this._bucketRequestParams("PUT",fe,"cors",ue),Se=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,we=function(ze){Se+="<AllowedOrigin>".concat(ze,"</AllowedOrigin>")},xe=function(ze){Se+="<AllowedMethod>".concat(ze,"</AllowedMethod>")},ge=function(ze){Se+="<AllowedHeader>".concat(ze,"</AllowedHeader>")},_e=function(ze){Se+="<ExposeHeader>".concat(ze,"</ExposeHeader>")},be=0,Ae=ce.length;be<Ae;be++)Te=ce[be],Se+="<CORSRule>",E(Te.allowedOrigin).forEach(we),E(Te.allowedMethod).forEach(xe),E(Te.allowedHeader).forEach(ge),E(Te.exposeHeader).forEach(_e),Te.maxAgeSeconds&&(Se+="<MaxAgeSeconds>".concat(Te.maxAgeSeconds,"</MaxAgeSeconds>")),Se+="</CORSRule>";return Se+="</CORSConfiguration>",ye.content=Se,ye.mime="xml",ye.successStatuses=[200],Pe.next=16,this.request(ye);case 16:return Le=Pe.sent,Pe.abrupt("return",{res:Le.res});case 18:case"end":return Pe.stop()}},le,this)}));function ae(le,fe,ce){return re.apply(this,arguments)}return ae}(),x.getBucketCORS=function(){var re=(0,ne.default)(oe.default.mark(function le(fe,ce){var ue,ye,Se,we;return oe.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ue=this._bucketRequestParams("GET",fe,"cors",ce),ue.successStatuses=[200],ue.xmlResponse=!0,ge.next=5,this.request(ue);case 5:return ye=ge.sent,Se=[],ye.data&&ye.data.CORSRule&&(we=ye.data.CORSRule,b(we)||(we=[we]),we.forEach(function(_e){var be={};Object.keys(_e).forEach(function(Ae){be[Ae.slice(0,1).toLowerCase()+Ae.slice(1,Ae.length)]=_e[Ae]}),Se.push(be)})),ge.abrupt("return",{rules:Se,res:ye.res});case 9:case"end":return ge.stop()}},le,this)}));function ae(le,fe){return re.apply(this,arguments)}return ae}(),x.deleteBucketCORS=function(){var re=(0,ne.default)(oe.default.mark(function le(fe,ce){var ue,ye;return oe.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ue=this._bucketRequestParams("DELETE",fe,"cors",ce),ue.successStatuses=[204],we.next=4,this.request(ue);case 4:return ye=we.sent,we.abrupt("return",{res:ye.res});case 6:case"end":return we.stop()}},le,this)}));function ae(le,fe){return re.apply(this,arguments)}return ae}(),x.putBucketReferer=function(){var re=(0,ne.default)(oe.default.mark(function le(fe,ce,ue,ye){var Se,we,xe,ge;return oe.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(Se=this._bucketRequestParams("PUT",fe,"referer",ye),we=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,we+=" <AllowEmptyReferer>".concat(ce?"true":"false",`</AllowEmptyReferer>
`),ue&&ue.length>0){for(we+=` <RefererList>
`,xe=0;xe<ue.length;xe++)we+=" <Referer>".concat(ue[xe],`</Referer>
`);we+=` </RefererList>
`}else we+=` <RefererList />
`;return we+="</RefererConfiguration>",Se.content=we,Se.mime="xml",Se.successStatuses=[200],be.next=10,this.request(Se);case 10:return ge=be.sent,be.abrupt("return",{res:ge.res});case 12:case"end":return be.stop()}},le,this)}));function ae(le,fe,ce,ue){return re.apply(this,arguments)}return ae}(),x.getBucketReferer=function(){var re=(0,ne.default)(oe.default.mark(function le(fe,ce){var ue,ye,Se;return oe.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ue=this._bucketRequestParams("GET",fe,"referer",ce),ue.successStatuses=[200],ue.xmlResponse=!0,xe.next=5,this.request(ue);case 5:return ye=xe.sent,Se=ye.data.RefererList.Referer||null,Se&&(b(Se)||(Se=[Se])),xe.abrupt("return",{allowEmpty:ye.data.AllowEmptyReferer==="true",referers:Se,res:ye.res});case 9:case"end":return xe.stop()}},le,this)}));function ae(le,fe){return re.apply(this,arguments)}return ae}(),x.deleteBucketReferer=function(){var re=(0,ne.default)(oe.default.mark(function le(fe,ce){return oe.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.next=2,this.putBucketReferer(fe,!0,null,ce);case 2:return ye.abrupt("return",ye.sent);case 3:case"end":return ye.stop()}},le,this)}));function ae(le,fe){return re.apply(this,arguments)}return ae}(),x._bucketRequestParams=function(ae,le,fe,ce){return{method:ae,bucket:le,subres:fe,timeout:ce&&ce.timeout,ctx:ce&&ce.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(a,he,de){(function(te,oe){(function(){"use strict";var ne=a("@babel/runtime/helpers/interopRequireDefault"),ee=ne(a("@babel/runtime/regenerator")),se=ne(a("@babel/runtime/helpers/asyncToGenerator"));a("core-js/modules/es.function.name.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.symbol.js"),a("core-js/modules/es.symbol.description.js"),a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.regexp.to-string.js");var z=a("debug")("ali-oss"),x=a("xml2js"),b=a("agentkeepalive"),E=a("merge-descriptors"),re=a("platform"),ae=a("utility"),le=a("urllib"),fe=a("./version"),ce=a("bowser"),ue=a("../common/signUtils"),ye=a("../common/client/initOptions"),Se=a("../common/utils/createRequest"),we=Se.createRequest,xe=a("../common/utils/encoder"),ge=xe.encoder,_e=a("../common/client/getReqUrl"),be=_e.getReqUrl,Ae=a("../common/utils/setSTSToken"),Te=Ae.setSTSToken,Le=a("../common/utils/retry"),ke=Le.retry,Pe=a("../common/utils/isFunction"),Oe=Pe.isFunction,ze=new b;function Ge(){var $e=re.name,Je=re.version;$e&&$e.toLowerCase&&$e.toLowerCase()==="ie"&&Je.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function tt(){return location&&location.protocol==="https:"}function Me($e,Je){if(Ge(),!(this instanceof Me))return new Me($e,Je);$e&&$e.inited?this.options=$e:this.options=Me.initOptions($e),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=le,this.agent=this.options.agent||ze),this.ctx=Je,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}he.exports=Me,Me.initOptions=function(Je){Je.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var Ye=Object.assign({secure:tt(),useFetch:!1},Je);return ye(Ye)};var We=Me.prototype;We.debug=z,E(We,a("./object")),E(We,a("./bucket")),E(We,a("../common/bucket/getBucketWebsite")),E(We,a("../common/bucket/putBucketWebsite")),E(We,a("../common/bucket/deleteBucketWebsite")),E(We,a("../common/bucket/getBucketLifecycle")),E(We,a("../common/bucket/putBucketLifecycle")),E(We,a("../common/bucket/deleteBucketLifecycle")),E(We,a("../common/bucket/putBucketVersioning")),E(We,a("../common/bucket/getBucketVersioning")),E(We,a("../common/bucket/getBucketInventory")),E(We,a("../common/bucket/deleteBucketInventory")),E(We,a("../common/bucket/listBucketInventory")),E(We,a("../common/bucket/putBucketInventory")),E(We,a("../common/bucket/abortBucketWorm")),E(We,a("../common/bucket/completeBucketWorm")),E(We,a("../common/bucket/extendBucketWorm")),E(We,a("../common/bucket/getBucketWorm")),E(We,a("../common/bucket/initiateBucketWorm")),E(We,a("./managed-upload")),E(We,a("../common/multipart-copy")),E(We,a("../common/multipart")),E(We,a("../common/parallel")),We.signature=function(Je){return this.debug("authorization stringToSign: %s",Je,"info"),ue.computeSignature(this.options.accessKeySecret,Je,this.options.headerEncoding)},We._getReqUrl=be,We.authorization=function(Je,Ye,Qe,st){var ot=ue.buildCanonicalString(Je.toUpperCase(),Ye,{headers:st,parameters:Qe});return ue.authorization(this.options.accessKeyId,this.options.accessKeySecret,ot,this.options.headerEncoding)},We.request=function(){var $e=(0,se.default)(ee.default.mark(function Je(Ye){var Qe=this;return ee.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(!this.options.retryMax){ot.next=6;break}return ot.next=3,ke(it.bind(this),this.options.retryMax,{errorHandler:function(ft){var qe=function(lt){if(Ye.stream)return!1;var Ne=[-1,-2].includes(lt.status),rt=Qe.options.requestErrorRetryHandle||function(){return!0};return Ne&&rt(lt)};return!!qe(ft)}})(Ye);case 3:return ot.abrupt("return",ot.sent);case 6:return ot.abrupt("return",it.call(this,Ye));case 7:case"end":return ot.stop()}},Je,this)}));return function(Je){return $e.apply(this,arguments)}}();function it($e){return at.apply(this,arguments)}function at(){return at=(0,se.default)(ee.default.mark(function $e(Je){var Ye,Qe,st,ot,mt,ft;return ee.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(!(this.options.stsToken&&Oe(this.options.refreshSTSToken))){Be.next=3;break}return Be.next=3,Te.call(this);case 3:return Ye=we.call(this,Je),this.options.useFetch||(Ye.params.mode="disable-fetch"),ot=!!Je.stream,Be.prev=6,Be.next=9,this.urllib.request(Ye.url,Ye.params);case 9:Qe=Be.sent,this.debug("response %s %s, got %s, headers: %j",Je.method,Ye.url,Qe.status,Qe.headers,"info"),Be.next=16;break;case 13:Be.prev=13,Be.t0=Be.catch(6),st=Be.t0;case 16:if(!(Qe&&Je.successStatuses&&Je.successStatuses.indexOf(Qe.status)===-1)){Be.next=28;break}return Be.next=19,this.requestError(Qe);case 19:if(mt=Be.sent,!(mt.code==="RequestTimeTooSkewed"&&!ot)){Be.next=25;break}return this.options.amendTimeSkewed=+new Date(mt.serverTime)-new Date,Be.next=24,this.request(Je);case 24:return Be.abrupt("return",Be.sent);case 25:mt.params=Je,Be.next=32;break;case 28:if(!st){Be.next=32;break}return Be.next=31,this.requestError(st);case 31:mt=Be.sent;case 32:if(!mt){Be.next=34;break}throw mt;case 34:if(!Je.xmlResponse){Be.next=39;break}return Be.next=37,this.parseXML(Qe.data);case 37:ft=Be.sent,Qe.data=ft;case 39:return Be.abrupt("return",Qe);case 40:case"end":return Be.stop()}},$e,this,[[6,13]])})),at.apply(this,arguments)}We._getResource=function(Je){var Ye="/";return Je.bucket&&(Ye+="".concat(Je.bucket,"/")),Je.object&&(Ye+=ge(Je.object,this.options.headerEncoding)),Ye},We._escape=function(Je){return ae.encodeURIComponent(Je).replace(/%2F/g,"/")},We._getUserAgent=function(){var Je=oe&&oe.browser?"js":"nodejs",Ye="aliyun-sdk-".concat(Je,"/").concat(fe.version),Qe=re.description;return!Qe&&oe&&(Qe="Node.js ".concat(oe.version.slice(1)," on ").concat(oe.platform," ").concat(oe.arch)),this._checkUserAgent("".concat(Ye," ").concat(Qe))},We._checkUserAgent=function(Je){var Ye=Je.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return Ye},We.checkBrowserAndVersion=function(Je,Ye){return ce.name===Je&&ce.version.split(".")[0]===Ye},We.parseXML=function(Je){return new Promise(function(Ye,Qe){te.isBuffer(Je)&&(Je=Je.toString()),x.parseString(Je,{explicitRoot:!1,explicitArray:!1},function(st,ot){st?Qe(st):Ye(ot)})})},We.requestError=function(){var $e=(0,se.default)(ee.default.mark(function Ye(Qe){var st,ot,mt,ft;return ee.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(st=null,!(!Qe.data||!Qe.data.length)){Be.next=5;break}Qe.status===-1||Qe.status===-2?(st=new Error(Qe.message),st.name=Qe.name,st.status=Qe.status,st.code=Qe.name):(Qe.status===404?(st=new Error("Object not exists"),st.name="NoSuchKeyError",st.status=404,st.code="NoSuchKey"):Qe.status===412?(st=new Error("Pre condition failed"),st.name="PreconditionFailedError",st.status=412,st.code="PreconditionFailed"):(st=new Error("Unknow error, status: ".concat(Qe.status)),st.name="UnknownError",st.status=Qe.status),st.requestId=Qe.headers["x-oss-request-id"],st.host=""),Be.next=32;break;case 5:return ot=String(Qe.data),this.debug("request response error data: %s",ot,"error"),Be.prev=7,Be.next=10,this.parseXML(ot);case 10:if(Be.t0=Be.sent,Be.t0){Be.next=13;break}Be.t0={};case 13:mt=Be.t0,Be.next=23;break;case 16:return Be.prev=16,Be.t1=Be.catch(7),this.debug(ot,"error"),Be.t1.message+=`
raw xml: `.concat(ot),Be.t1.status=Qe.status,Be.t1.requestId=Qe.headers["x-oss-request-id"],Be.abrupt("return",Be.t1);case 23:ft=mt.Message||"unknow request error, status: ".concat(Qe.status),mt.Condition&&(ft+=" (condition: ".concat(mt.Condition,")")),st=new Error(ft),st.name=mt.Code?"".concat(mt.Code,"Error"):"UnknownError",st.status=Qe.status,st.code=mt.Code,st.requestId=mt.RequestId,st.hostId=mt.HostId,st.serverTime=mt.ServerTime;case 32:return this.debug("generate error %j",st,"error"),Be.abrupt("return",st);case 34:case"end":return Be.stop()}},Ye,this,[[7,16]])}));function Je(Ye){return $e.apply(this,arguments)}return Je}()}).call(this)}).call(this,{isBuffer:a("../../node_modules/is-buffer/index.js")},a("_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(a,he,de){(function(te){(function(){"use strict";var oe=a("@babel/runtime/helpers/interopRequireDefault"),ne=oe(a("@babel/runtime/regenerator"));a("core-js/modules/es.function.name.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array.from.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.array.filter.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.array.iterator.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.typed-array.uint8-array.js"),a("core-js/modules/es.typed-array.copy-within.js"),a("core-js/modules/es.typed-array.every.js"),a("core-js/modules/es.typed-array.fill.js"),a("core-js/modules/es.typed-array.filter.js"),a("core-js/modules/es.typed-array.find.js"),a("core-js/modules/es.typed-array.find-index.js"),a("core-js/modules/es.typed-array.for-each.js"),a("core-js/modules/es.typed-array.includes.js"),a("core-js/modules/es.typed-array.index-of.js"),a("core-js/modules/es.typed-array.iterator.js"),a("core-js/modules/es.typed-array.join.js"),a("core-js/modules/es.typed-array.last-index-of.js"),a("core-js/modules/es.typed-array.map.js"),a("core-js/modules/es.typed-array.reduce.js"),a("core-js/modules/es.typed-array.reduce-right.js"),a("core-js/modules/es.typed-array.reverse.js"),a("core-js/modules/es.typed-array.set.js"),a("core-js/modules/es.typed-array.slice.js"),a("core-js/modules/es.typed-array.some.js"),a("core-js/modules/es.typed-array.sort.js"),a("core-js/modules/es.typed-array.subarray.js"),a("core-js/modules/es.typed-array.to-locale-string.js"),a("core-js/modules/es.typed-array.to-string.js");var ee=oe(a("@babel/runtime/helpers/asyncToGenerator")),se=a("util"),z=a("path"),x=a("mime"),b=a("copy-to"),E=a("../common/utils/isBlob"),re=E.isBlob,ae=a("../common/utils/isFile"),le=ae.isFile,fe=a("../common/utils/isBuffer"),ce=fe.isBuffer,ue=de;ue.multipartUpload=function(){var ge=(0,ee.default)(ne.default.mark(function be(Ae,Te){var Le,ke,Pe,Oe,ze,Ge,tt,Me,We,it=arguments;return ne.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(Le=it.length>2&&it[2]!==void 0?it[2]:{},this.resetCancelFlag(),Le.disabledMD5=Le.disabledMD5===void 0?!0:!!Le.disabledMD5,!(Le.checkpoint&&Le.checkpoint.uploadId)){$e.next=8;break}return Te&&le(Te)&&(Le.checkpoint.file=Te),$e.next=7,this._resumeMultipart(Le.checkpoint,Le);case 7:return $e.abrupt("return",$e.sent);case 8:return ke=102400,Le.mime||(le(Te)?Le.mime=x.getType(z.extname(Te.name)):re(Te)?Le.mime=Te.type:ce(Te)?Le.mime="":Le.mime=x.getType(z.extname(Te))),Le.headers=Le.headers||{},this._convertMetaToHeaders(Le.meta,Le.headers),$e.next=14,this._getFileSize(Te);case 14:if(Pe=$e.sent,!(Pe<ke)){$e.next=26;break}return Le.contentLength=Pe,$e.next=19,this.put(Ae,Te,Le);case 19:if(Oe=$e.sent,!(Le&&Le.progress)){$e.next=23;break}return $e.next=23,Le.progress(1);case 23:return ze={res:Oe.res,bucket:this.options.bucket,name:Ae,etag:Oe.res.headers.etag},(Le.headers&&Le.headers["x-oss-callback"]||Le.callback)&&(ze.data=Oe.data),$e.abrupt("return",ze);case 26:if(!(Le.partSize&&parseInt(Le.partSize,10)!==Le.partSize)){$e.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Le.partSize&&Le.partSize<ke)){$e.next=30;break}throw new Error("partSize must not be smaller than ".concat(ke));case 30:return $e.next=32,this.initMultipartUpload(Ae,Le);case 32:if(Ge=$e.sent,tt=Ge.uploadId,Me=this._getPartSize(Pe,Le.partSize),We={file:Te,name:Ae,fileSize:Pe,partSize:Me,uploadId:tt,doneParts:[]},!(Le&&Le.progress)){$e.next=39;break}return $e.next=39,Le.progress(0,We,Ge.res);case 39:return $e.next=41,this._resumeMultipart(We,Le);case 41:return $e.abrupt("return",$e.sent);case 42:case"end":return $e.stop()}},be,this)}));function _e(be,Ae){return ge.apply(this,arguments)}return _e}(),ue._resumeMultipart=function(){var ge=(0,ee.default)(ne.default.mark(function be(Ae,Te){var Le,ke,Pe,Oe,ze,Ge,tt,Me,We,it,at,$e,Je,Ye,Qe,st,ot,mt,ft;return ne.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(Le=this,!this.isCancel()){Be.next=3;break}throw this._makeCancelEvent();case 3:return ke=Ae.file,Pe=Ae.fileSize,Oe=Ae.partSize,ze=Ae.uploadId,Ge=Ae.doneParts,tt=Ae.name,Me=[],Ge.length>0&&b(Ge).to(Me),We=this._divideParts(Pe,Oe),it=We.length,at=!1,$e=function(Ne,rt){return new Promise(function(){var gt=(0,ee.default)(ne.default.mark(function yt(dt,Ve){var He,Ze,et,Ie,je;return ne.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(Xe.prev=0,Ne.isCancel()){Xe.next=29;break}return He=We[rt-1],Xe.next=5,Ne._createBuffer(ke,He.start,He.end);case 5:return Ze=Xe.sent,et={content:Ze,size:He.end-He.start},Xe.prev=7,Xe.next=10,Ne._uploadPart(tt,ze,rt,et,Te);case 10:Ie=Xe.sent,Xe.next=18;break;case 13:if(Xe.prev=13,Xe.t0=Xe.catch(7),Xe.t0.status!==404){Xe.next=17;break}throw Ne._makeAbortEvent();case 17:throw Xe.t0;case 18:if(!(!Ne.isCancel()&&!at)){Xe.next=26;break}if(Ae.doneParts.push({number:rt,etag:Ie.res.headers.etag}),!Te.progress){Xe.next=23;break}return Xe.next=23,Te.progress(Ge.length/(it+1),Ae,Ie.res);case 23:dt({number:rt,etag:Ie.res.headers.etag}),Xe.next=27;break;case 26:dt();case 27:Xe.next=30;break;case 29:dt();case 30:Xe.next=41;break;case 32:Xe.prev=32,Xe.t1=Xe.catch(0),je=new Error,je.name=Xe.t1.name,je.message=Xe.t1.message,je.stack=Xe.t1.stack,je.partNum=rt,b(Xe.t1).to(je),Ve(je);case 41:case"end":return Xe.stop()}},yt,null,[[0,32],[7,13]])}));return function(yt,dt){return gt.apply(this,arguments)}}())},Je=Array.from(new Array(it),function(lt,Ne){return Ne+1}),Ye=Me.map(function(lt){return lt.number}),Qe=Je.filter(function(lt){return Ye.indexOf(lt)<0}),st=5,ot=Te.parallel||st,Be.next=17,this._parallel(Qe,ot,function(lt){return new Promise(function(Ne,rt){$e(Le,lt).then(function(gt){gt&&Me.push(gt),Ne()}).catch(function(gt){rt(gt)})})});case 17:if(mt=Be.sent,at=!0,ft=mt.find(function(lt){return lt.name==="abort"}),!ft){Be.next=22;break}throw ft;case 22:if(!this.isCancel()){Be.next=25;break}throw $e=null,this._makeCancelEvent();case 25:if(!(mt&&mt.length>0)){Be.next=28;break}throw mt[0].message="Failed to upload some parts with error: ".concat(mt[0].toString()," part_num: ").concat(mt[0].partNum),mt[0];case 28:return Be.next=30,this.completeMultipartUpload(tt,ze,Me,Te);case 30:return Be.abrupt("return",Be.sent);case 31:case"end":return Be.stop()}},be,this)}));function _e(be,Ae){return ge.apply(this,arguments)}return _e}(),ue._getFileSize=function(){var ge=(0,ee.default)(ne.default.mark(function be(Ae){return ne.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(!ce(Ae)){Le.next=4;break}return Le.abrupt("return",Ae.length);case 4:if(!(re(Ae)||le(Ae))){Le.next=6;break}return Le.abrupt("return",Ae.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Le.stop()}},be)}));function _e(be){return ge.apply(this,arguments)}return _e}();var ye=a("stream"),Se=ye.Readable;function we(ge,_e){if(!(this instanceof we))return new we(ge,_e);Se.call(this,_e),this.file=ge,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}se.inherits(we,Se),we.prototype.readFileAndPush=function(_e){if(this.fileBuffer)for(var be=!0;be&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Ae=this.start,Te=Ae+_e;Te=Te>this.fileBuffer.length?this.fileBuffer.length:Te,this.start=Te,be=this.push(this.fileBuffer.slice(Ae,Te))}},we.prototype._read=function(_e){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;_e=_e||be;var Ae=this;this.reader.onload=function(Le){Ae.fileBuffer=te.from(new Uint8Array(Le.target.result)),Ae.file=null,Ae.readFileAndPush(_e)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(_e)};function xe(ge){return ge.arrayBuffer?ge.arrayBuffer():new Promise(function(_e,be){var Ae=new FileReader;Ae.onload=function(Te){_e(Te.target.result)},Ae.onerror=function(Te){be(Te)},Ae.readAsArrayBuffer(ge)})}ue._createBuffer=function(){var ge=(0,ee.default)(ne.default.mark(function be(Ae,Te,Le){var ke,Pe;return ne.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(!(re(Ae)||le(Ae))){ze.next=8;break}return ke=Ae.slice(Te,Le),ze.next=4,xe(ke);case 4:return Pe=ze.sent,ze.abrupt("return",te.from(Pe));case 8:if(!ce(Ae)){ze.next=12;break}return ze.abrupt("return",Ae.subarray(Te,Le));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return ze.stop()}},be)}));function _e(be,Ae,Te){return ge.apply(this,arguments)}return _e}(),ue._getPartSize=function(_e,be){var Ae=1e4,Te=1*1024*1024;be||(be=Te);var Le=Math.ceil(_e/Ae);return be<Le&&(be=Le,console.warn("partSize has been set to ".concat(be,", because the partSize you provided causes partNumber to be greater than 10,000"))),be},ue._divideParts=function(_e,be){for(var Ae=Math.ceil(_e/be),Te=[],Le=0;Le<Ae;Le++){var ke=be*Le,Pe=Math.min(ke+be,_e);Te.push({start:ke,end:Pe})}return Te}}).call(this)}).call(this,a("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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault");a("core-js/modules/es.function.name.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.number.constructor.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.promise.js");var oe=te(a("@babel/runtime/regenerator")),ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("fs"),se=a("copy-to"),z=a("path"),x=a("mime"),b=a("../common/callback"),E=a("merge-descriptors"),re=a("../common/utils/isBlob"),ae=re.isBlob,le=a("../common/utils/isFile"),fe=le.isFile,ce=a("../common/utils/isBuffer"),ue=ce.isBuffer,ye=a("../common/utils/obj2xml"),Se=ye.obj2xml,we=de;we.append=function(){var xe=(0,ne.default)(oe.default.mark(function _e(be,Ae,Te){var Le;return oe.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Te=Te||{},Te.position===void 0&&(Te.position="0"),Te.subres={append:"",position:Te.position},Te.method="POST",Pe.next=6,this.put(be,Ae,Te);case 6:return Le=Pe.sent,Le.nextAppendPosition=Le.res.headers["x-oss-next-append-position"],Pe.abrupt("return",Le);case 9:case"end":return Pe.stop()}},_e,this)}));function ge(_e,be,Ae){return xe.apply(this,arguments)}return ge}(),we.put=function(){var xe=(0,ne.default)(oe.default.mark(function _e(be,Ae,Te){var Le,ke,Pe,Oe,ze;return oe.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(Te=Te||{},Te.disabledMD5=Te.disabledMD5===void 0?!0:!!Te.disabledMD5,Te.headers=Te.headers||{},be=this._objectName(be),!ue(Ae)){tt.next=8;break}Le=Ae,tt.next=19;break;case 8:if(!(ae(Ae)||fe(Ae))){tt.next=18;break}return Te.mime||(fe(Ae)?Te.mime=x.getType(z.extname(Ae.name)):Te.mime=Ae.type),tt.next=12,this._createBuffer(Ae,0,Ae.size);case 12:return Le=tt.sent,tt.next=15,this._getFileSize(Ae);case 15:Te.contentLength=tt.sent,tt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Te.meta,Te.headers),ke=Te.method||"PUT",Pe=this._objectRequestParams(ke,be,Te),b.encodeCallback(Pe,Te),Pe.mime=Te.mime,Pe.disabledMD5=Te.disabledMD5,Pe.content=Le,Pe.successStatuses=[200],tt.next=29,this.request(Pe);case 29:return Oe=tt.sent,ze={name:be,url:this._objectUrl(be),res:Oe.res},Pe.headers&&Pe.headers["x-oss-callback"]&&(ze.data=JSON.parse(Oe.data.toString())),tt.abrupt("return",ze);case 33:case"end":return tt.stop()}},_e,this)}));function ge(_e,be,Ae){return xe.apply(this,arguments)}return ge}(),we.putStream=function(){var xe=(0,ne.default)(oe.default.mark(function _e(be,Ae,Te){var Le,ke,Pe,Oe;return oe.default.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Te=Te||{},Te.headers=Te.headers||{},be=this._objectName(be),Te.contentLength?Te.headers["Content-Length"]=Te.contentLength:Te.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Te.meta,Te.headers),Le=Te.method||"PUT",ke=this._objectRequestParams(Le,be,Te),b.encodeCallback(ke,Te),ke.mime=Te.mime,ke.stream=Ae,ke.successStatuses=[200],Ge.next=13,this.request(ke);case 13:return Pe=Ge.sent,Oe={name:be,url:this._objectUrl(be),res:Pe.res},ke.headers&&ke.headers["x-oss-callback"]&&(Oe.data=JSON.parse(Pe.data.toString())),Ge.abrupt("return",Oe);case 17:case"end":return Ge.stop()}},_e,this)}));function ge(_e,be,Ae){return xe.apply(this,arguments)}return ge}(),E(we,a("../common/object/copyObject")),E(we,a("../common/object/getObjectTagging")),E(we,a("../common/object/putObjectTagging")),E(we,a("../common/object/deleteObjectTagging")),E(we,a("../common/image")),E(we,a("../common/object/getBucketVersions")),E(we,a("../common/object/getACL")),E(we,a("../common/object/putACL")),E(we,a("../common/object/head")),E(we,a("../common/object/delete")),E(we,a("../common/object/get")),E(we,a("../common/object/putSymlink")),E(we,a("../common/object/getSymlink")),E(we,a("../common/object/deleteMulti")),E(we,a("../common/object/getObjectMeta")),E(we,a("../common/object/getObjectUrl")),E(we,a("../common/object/generateObjectUrl")),E(we,a("../common/object/signatureUrl")),E(we,a("../common/object/asyncSignatureUrl")),we.putMeta=function(){var xe=(0,ne.default)(oe.default.mark(function _e(be,Ae,Te){var Le;return oe.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Pe.next=2,this.copy(be,be,{meta:Ae||{},timeout:Te&&Te.timeout,ctx:Te&&Te.ctx});case 2:return Le=Pe.sent,Pe.abrupt("return",Le);case 4:case"end":return Pe.stop()}},_e,this)}));function ge(_e,be,Ae){return xe.apply(this,arguments)}return ge}(),we.list=function(){var xe=(0,ne.default)(oe.default.mark(function _e(be,Ae){var Te,Le,ke,Pe,Oe;return oe.default.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Te=this._objectRequestParams("GET","",Ae),Te.query=be,Te.xmlResponse=!0,Te.successStatuses=[200],Ge.next=6,this.request(Te);case 6:return Le=Ge.sent,ke=Le.data.Contents||[],Pe=this,ke&&(Array.isArray(ke)||(ke=[ke]),ke=ke.map(function(tt){return{name:tt.Key,url:Pe._objectUrl(tt.Key),lastModified:tt.LastModified,etag:tt.ETag,type:tt.Type,size:Number(tt.Size),storageClass:tt.StorageClass,owner:{id:tt.Owner.ID,displayName:tt.Owner.DisplayName}}})),Oe=Le.data.CommonPrefixes||null,Oe&&(Array.isArray(Oe)||(Oe=[Oe]),Oe=Oe.map(function(tt){return tt.Prefix})),Ge.abrupt("return",{res:Le.res,objects:ke,prefixes:Oe,nextMarker:Le.data.NextMarker||null,isTruncated:Le.data.IsTruncated==="true"});case 13:case"end":return Ge.stop()}},_e,this)}));function ge(_e,be){return xe.apply(this,arguments)}return ge}(),we.listV2=function(){var xe=(0,ne.default)(oe.default.mark(function _e(be){var Ae,Te,Le,ke,Pe,Oe,ze,Ge=arguments;return oe.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Ae=Ge.length>1&&Ge[1]!==void 0?Ge[1]:{},Te=be["continuation-token"]||be.continuationToken,Te&&(Ae.subres=Object.assign({"continuation-token":Te},Ae.subres)),Le=this._objectRequestParams("GET","",Ae),Le.query=Object.assign({"list-type":2},be),delete Le.query["continuation-token"],delete Le.query.continuationToken,Le.xmlResponse=!0,Le.successStatuses=[200],Me.next=11,this.request(Le);case 11:return ke=Me.sent,Pe=ke.data.Contents||[],Oe=this,Pe&&(Array.isArray(Pe)||(Pe=[Pe]),Pe=Pe.map(function(We){var it=null;return We.Owner&&(it={id:We.Owner.ID,displayName:We.Owner.DisplayName}),{name:We.Key,url:Oe._objectUrl(We.Key),lastModified:We.LastModified,etag:We.ETag,type:We.Type,size:Number(We.Size),storageClass:We.StorageClass,owner:it}})),ze=ke.data.CommonPrefixes||null,ze&&(Array.isArray(ze)||(ze=[ze]),ze=ze.map(function(We){return We.Prefix})),Me.abrupt("return",{res:ke.res,objects:Pe,prefixes:ze,isTruncated:ke.data.IsTruncated==="true",keyCount:+ke.data.KeyCount,continuationToken:ke.data.ContinuationToken||null,nextContinuationToken:ke.data.NextContinuationToken||null});case 18:case"end":return Me.stop()}},_e,this)}));function ge(_e){return xe.apply(this,arguments)}return ge}(),we.restore=function(){var xe=(0,ne.default)(oe.default.mark(function _e(be){var Ae,Te,Le,ke,Pe=arguments;return oe.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return Ae=Pe.length>1&&Pe[1]!==void 0?Pe[1]:{type:"Archive"},Ae=Ae||{},Ae.subres=Object.assign({restore:""},Ae.subres),Ae.versionId&&(Ae.subres.versionId=Ae.versionId),Te=this._objectRequestParams("POST",be,Ae),Ae.type==="ColdArchive"&&(Le={RestoreRequest:{Days:Ae.Days?Ae.Days:2,JobParameters:{Tier:Ae.JobParameters?Ae.JobParameters:"Standard"}}},Te.content=Se(Le,{headers:!0}),Te.mime="xml"),Te.successStatuses=[202],ze.next=9,this.request(Te);case 9:return ke=ze.sent,ze.abrupt("return",{res:ke.res});case 11:case"end":return ze.stop()}},_e,this)}));function ge(_e){return xe.apply(this,arguments)}return ge}(),we._objectUrl=function(ge){return this._getReqUrl({bucket:this.options.bucket,object:ge})},we._objectRequestParams=function(ge,_e,be){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");be=be||{},_e=this._objectName(_e);var Ae={object:_e,bucket:this.options.bucket,method:ge,subres:be&&be.subres,timeout:be&&be.timeout,ctx:be&&be.ctx};return be.headers&&(Ae.headers={},se(be.headers).to(Ae.headers)),Ae},we._objectName=function(ge){return ge.replace(/^\/+/,"")},we._convertMetaToHeaders=function(ge,_e){ge&&Object.keys(ge).forEach(function(be){_e["x-oss-meta-".concat(be)]=ge[be]})},we._deleteFileSafe=function(ge){var _e=this;return new Promise(function(be){ee.exists(ge,function(Ae){Ae?ee.unlink(ge,function(Te){Te&&_e.debug("unlink %j error: %s",ge,Te,"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(a,he,de){"use strict";de.version="6.18.1"},{}],7:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator")),ne=te(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.abortBucketWorm=void 0;var ee=a("../utils/checkBucketName");function se(x,b){return z.apply(this,arguments)}function z(){return z=(0,ne.default)(oe.default.mark(function x(b,E){var re,ae;return oe.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return ee.checkBucketName(b),re=this._bucketRequestParams("DELETE",b,"worm",E),fe.next=4,this.request(re);case 4:return ae=fe.sent,fe.abrupt("return",{res:ae.res,status:ae.status});case 6:case"end":return fe.stop()}},x,this)})),z.apply(this,arguments)}de.abortBucketWorm=se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator")),ne=te(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.completeBucketWorm=void 0;var ee=a("../utils/checkBucketName");function se(x,b,E){return z.apply(this,arguments)}function z(){return z=(0,ne.default)(oe.default.mark(function x(b,E,re){var ae,le;return oe.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ee.checkBucketName(b),ae=this._bucketRequestParams("POST",b,{wormId:E},re),ce.next=4,this.request(ae);case 4:return le=ce.sent,ce.abrupt("return",{res:le.res,status:le.status});case 6:case"end":return ce.stop()}},x,this)})),z.apply(this,arguments)}de.completeBucketWorm=se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.deleteBucketInventory=void 0;var ee=a("../utils/checkBucketName");function se(x,b){return z.apply(this,arguments)}function z(){return z=(0,ne.default)(oe.default.mark(function x(b,E){var re,ae,le,fe,ce=arguments;return oe.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return re=ce.length>2&&ce[2]!==void 0?ce[2]:{},ae=Object.assign({inventory:"",inventoryId:E},re.subres),ee.checkBucketName(b),le=this._bucketRequestParams("DELETE",b,ae,re),le.successStatuses=[204],ye.next=7,this.request(le);case 7:return fe=ye.sent,ye.abrupt("return",{status:fe.status,res:fe.res});case 9:case"end":return ye.stop()}},x,this)})),z.apply(this,arguments)}de.deleteBucketInventory=se},{"../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator")),ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/checkBucketName"),se=ee.checkBucketName,z=de;z.deleteBucketLifecycle=function(){var x=(0,ne.default)(oe.default.mark(function E(re,ae){var le,fe;return oe.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return se(re),le=this._bucketRequestParams("DELETE",re,"lifecycle",ae),le.successStatuses=[204],ue.next=5,this.request(le);case 5:return fe=ue.sent,ue.abrupt("return",{res:fe.res});case 7:case"end":return ue.stop()}},E,this)}));function b(E,re){return x.apply(this,arguments)}return b}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator")),ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/checkBucketName"),se=ee.checkBucketName,z=de;z.deleteBucketWebsite=function(){var x=(0,ne.default)(oe.default.mark(function E(re,ae){var le,fe;return oe.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return se(re),le=this._bucketRequestParams("DELETE",re,"website",ae),le.successStatuses=[204],ue.next=5,this.request(le);case 5:return fe=ue.sent,ue.abrupt("return",{res:fe.res});case 7:case"end":return ue.stop()}},E,this)}));function b(E,re){return x.apply(this,arguments)}return b}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator")),ne=te(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.extendBucketWorm=void 0;var ee=a("../utils/checkBucketName"),se=a("../utils/obj2xml");function z(b,E,re,ae){return x.apply(this,arguments)}function x(){return x=(0,ne.default)(oe.default.mark(function b(E,re,ae,le){var fe,ce,ue;return oe.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return ee.checkBucketName(E),fe=this._bucketRequestParams("POST",E,{wormExtend:"",wormId:re},le),ce={ExtendWormConfiguration:{RetentionPeriodInDays:ae}},fe.mime="xml",fe.content=se.obj2xml(ce,{headers:!0}),fe.successStatuses=[200],Se.next=8,this.request(fe);case 8:return ue=Se.sent,Se.abrupt("return",{res:ue.res,status:ue.status});case 10:case"end":return Se.stop()}},b,this)})),x.apply(this,arguments)}de.extendBucketWorm=z},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.getBucketInventory=void 0;var ee=a("../utils/checkBucketName"),se=a("../utils/formatInventoryConfig");function z(b,E){return x.apply(this,arguments)}function x(){return x=(0,ne.default)(oe.default.mark(function b(E,re){var ae,le,fe,ce,ue=arguments;return oe.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return ae=ue.length>2&&ue[2]!==void 0?ue[2]:{},le=Object.assign({inventory:"",inventoryId:re},ae.subres),ee.checkBucketName(E),fe=this._bucketRequestParams("GET",E,le,ae),fe.successStatuses=[200],fe.xmlResponse=!0,Se.next=8,this.request(fe);case 8:return ce=Se.sent,Se.abrupt("return",{status:ce.status,res:ce.res,inventory:se.formatInventoryConfig(ce.data)});case 10:case"end":return Se.stop()}},b,this)})),x.apply(this,arguments)}de.getBucketInventory=z},{"../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.map.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/checkBucketName"),se=ee.checkBucketName,z=a("../utils/isArray"),x=z.isArray,b=a("../utils/formatObjKey"),E=b.formatObjKey,re=de;re.getBucketLifecycle=function(){var ae=(0,ne.default)(oe.default.mark(function fe(ce,ue){var ye,Se,we;return oe.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return se(ce),ye=this._bucketRequestParams("GET",ce,"lifecycle",ue),ye.successStatuses=[200],ye.xmlResponse=!0,ge.next=6,this.request(ye);case 6:return Se=ge.sent,we=Se.data.Rule||null,we&&(x(we)||(we=[we]),we=we.map(function(_e){return _e.ID&&(_e.id=_e.ID,delete _e.ID),_e.Tag&&!x(_e.Tag)&&(_e.Tag=[_e.Tag]),E(_e,"firstLowerCase")})),ge.abrupt("return",{rules:we,res:Se.res});case 10:case"end":return ge.stop()}},fe,this)}));function le(fe,ce){return ae.apply(this,arguments)}return le}()},{"../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator")),ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/checkBucketName"),se=ee.checkBucketName,z=de;z.getBucketVersioning=function(){var x=(0,ne.default)(oe.default.mark(function E(re,ae){var le,fe,ce;return oe.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return se(re),le=this._bucketRequestParams("GET",re,"versioning",ae),le.xmlResponse=!0,le.successStatuses=[200],ye.next=6,this.request(le);case 6:return fe=ye.sent,ce=fe.data.Status,ye.abrupt("return",{status:fe.status,versionStatus:ce,res:fe.res});case 9:case"end":return ye.stop()}},E,this)}));function b(E,re){return x.apply(this,arguments)}return b}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator")),ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/checkBucketName"),se=ee.checkBucketName,z=a("../utils/isObject"),x=z.isObject,b=de;b.getBucketWebsite=function(){var E=(0,ne.default)(oe.default.mark(function ae(le,fe){var ce,ue,ye;return oe.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return se(le),ce=this._bucketRequestParams("GET",le,"website",fe),ce.successStatuses=[200],ce.xmlResponse=!0,we.next=6,this.request(ce);case 6:return ue=we.sent,ye=[],ue.data.RoutingRules&&ue.data.RoutingRules.RoutingRule&&(x(ue.data.RoutingRules.RoutingRule)?ye=[ue.data.RoutingRules.RoutingRule]:ye=ue.data.RoutingRules.RoutingRule),we.abrupt("return",{index:ue.data.IndexDocument&&ue.data.IndexDocument.Suffix||"",supportSubDir:ue.data.IndexDocument&&ue.data.IndexDocument.SupportSubDir||"false",type:ue.data.IndexDocument&&ue.data.IndexDocument.Type,routingRules:ye,error:ue.data.ErrorDocument&&ue.data.ErrorDocument.Key||null,res:ue.res});case 10:case"end":return we.stop()}},ae,this)}));function re(ae,le){return E.apply(this,arguments)}return re}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.getBucketWorm=void 0;var ee=a("../utils/checkBucketName"),se=a("../utils/dataFix");function z(b,E){return x.apply(this,arguments)}function x(){return x=(0,ne.default)(oe.default.mark(function b(E,re){var ae,le;return oe.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ee.checkBucketName(E),ae=this._bucketRequestParams("GET",E,"worm",re),ae.successStatuses=[200],ae.xmlResponse=!0,ce.next=6,this.request(ae);case 6:return le=ce.sent,se.dataFix(le.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),ce.abrupt("return",Object.assign(Object.assign({},le.data),{res:le.res,status:le.status}));case 9:case"end":return ce.stop()}},b,this)})),x.apply(this,arguments)}de.getBucketWorm=z},{"../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator")),ne=te(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.initiateBucketWorm=void 0;var ee=a("../utils/obj2xml"),se=a("../utils/checkBucketName");function z(b,E,re){return x.apply(this,arguments)}function x(){return x=(0,ne.default)(oe.default.mark(function b(E,re,ae){var le,fe,ce;return oe.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return se.checkBucketName(E),le=this._bucketRequestParams("POST",E,"worm",ae),fe={InitiateWormConfiguration:{RetentionPeriodInDays:re}},le.mime="xml",le.content=ee.obj2xml(fe,{headers:!0}),le.successStatuses=[200],ye.next=8,this.request(le);case 8:return ce=ye.sent,ye.abrupt("return",{res:ce.res,wormId:ce.res.headers["x-oss-worm-id"],status:ce.status});case 10:case"end":return ye.stop()}},b,this)})),x.apply(this,arguments)}de.initiateBucketWorm=z},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.listBucketInventory=void 0;var ee=a("../utils/checkBucketName"),se=a("../utils/formatInventoryConfig");function z(b){return x.apply(this,arguments)}function x(){return x=(0,ne.default)(oe.default.mark(function b(E){var re,ae,le,fe,ce,ue,ye,Se,we=arguments;return oe.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return re=we.length>1&&we[1]!==void 0?we[1]:{},ae=re.continuationToken,le=Object.assign({inventory:""},ae&&{"continuation-token":ae},re.subres),ee.checkBucketName(E),fe=this._bucketRequestParams("GET",E,le,re),fe.successStatuses=[200],fe.xmlResponse=!0,ge.next=9,this.request(fe);case 9:return ce=ge.sent,ue=ce.data,ye=ce.res,Se=ce.status,ge.abrupt("return",{isTruncated:ue.IsTruncated==="true",nextContinuationToken:ue.NextContinuationToken,inventoryList:se.formatInventoryConfig(ue.InventoryConfiguration,!0),status:Se,res:ye});case 12:case"end":return ge.stop()}},b,this)})),x.apply(this,arguments)}de.listBucketInventory=z},{"../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.concat.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.putBucketInventory=void 0;var ee=a("../utils/checkBucketName"),se=a("../utils/obj2xml");function z(b,E){return x.apply(this,arguments)}function x(){return x=(0,ne.default)(oe.default.mark(function b(E,re){var ae,le,fe,ce,ue,ye,Se,we,xe,ge,_e,be=arguments;return oe.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ae=be.length>2&&be[2]!==void 0?be[2]:{},le=Object.assign({inventory:"",inventoryId:re.id},ae.subres),ee.checkBucketName(E),fe=re.OSSBucketDestination,ce=re.optionalFields,ue=re.includedObjectVersions,ye="acs:oss:::",Se="acs:ram::".concat(fe.accountId,":role/"),we={InventoryConfiguration:{Id:re.id,IsEnabled:re.isEnabled,Filter:{Prefix:re.prefix||""},Destination:{OSSBucketDestination:{Format:fe.format,AccountId:fe.accountId,RoleArn:"".concat(Se).concat(fe.rolename),Bucket:"".concat(ye).concat(fe.bucket),Prefix:fe.prefix||"",Encryption:fe.encryption||""}},Schedule:{Frequency:re.frequency},IncludedObjectVersions:ue,OptionalFields:{Field:(ce==null?void 0:ce.field)||[]}}},xe=se.obj2xml(we,{headers:!0,firstUpperCase:!0}),ge=this._bucketRequestParams("PUT",E,le,ae),ge.successStatuses=[200],ge.mime="xml",ge.content=xe,Te.next=14,this.request(ge);case 14:return _e=Te.sent,Te.abrupt("return",{status:_e.status,res:_e.res});case 16:case"end":return Te.stop()}},b,this)})),x.apply(this,arguments)}de.putBucketInventory=z},{"../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.array.includes.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/checkBucketName"),se=ee.checkBucketName,z=a("../utils/isArray"),x=z.isArray,b=a("../utils/deepCopy"),E=b.deepCopy,re=a("../utils/isObject"),ae=re.isObject,le=a("../utils/obj2xml"),fe=le.obj2xml,ce=a("../utils/checkObjectTag"),ue=ce.checkObjectTag,ye=a("../utils/getStrBytesCount"),Se=ye.getStrBytesCount,we=de;we.putBucketLifecycle=function(){var Ae=(0,ne.default)(oe.default.mark(function Le(ke,Pe,Oe){var ze,Ge,tt,Me,We;return oe.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(se(ke),x(Pe)){at.next=3;break}throw new Error("rules must be Array");case 3:return ze=this._bucketRequestParams("PUT",ke,"lifecycle",Oe),Ge=[],tt={LifecycleConfiguration:{Rule:Ge}},Pe.forEach(function($e){xe($e),be($e),$e.id&&($e.ID=$e.id,delete $e.id),Ge.push($e)}),Me=fe(tt,{headers:!0,firstUpperCase:!0}),ze.content=Me,ze.mime="xml",ze.successStatuses=[200],at.next=13,this.request(ze);case 13:return We=at.sent,at.abrupt("return",{res:We.res});case 15:case"end":return at.stop()}},Le,this)}));function Te(Le,ke,Pe){return Ae.apply(this,arguments)}return Te}();function xe(Ae){Ae.days&&(Ae.expiration={days:Ae.days}),Ae.date&&(Ae.expiration={createdBeforeDate:Ae.date})}function ge(Ae,Te){var Le=Ae.days,ke=Ae.createdBeforeDate;if(!Le&&!ke)throw new Error("".concat(Te," must includes days or createdBeforeDate"));if(Le&&!/^[1-9][0-9]*$/.test(Le))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 _e(Ae){if(!x(Ae)&&!ae(Ae))throw new Error("tag must be Object or Array");Ae=ae(Ae)?[Ae]:Ae;var Te={},Le=E(Ae);Le.forEach(function(ke){Te[ke.key]=ke.value}),ue(Te)}function be(Ae){if(Ae.id&&Se(Ae.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Ae.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Ae.status))throw new Error("Status must be Enabled or Disabled");if(Ae.transition){if(!["IA","Archive"].includes(Ae.transition.storageClass))throw new Error("StorageClass must be IA or Archive");ge(Ae.transition,"Transition")}if(Ae.expiration){if(!Ae.expiration.expiredObjectDeleteMarker)ge(Ae.expiration,"Expiration");else if(Ae.expiration.days||Ae.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Ae.abortMultipartUpload&&ge(Ae.abortMultipartUpload,"AbortMultipartUpload"),!Ae.expiration&&!Ae.abortMultipartUpload&&!Ae.transition&&!Ae.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Ae.tag){if(Ae.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");_e(Ae.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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.includes.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/checkBucketName"),se=ee.checkBucketName,z=a("../utils/obj2xml"),x=z.obj2xml,b=de;b.putBucketVersioning=function(){var E=(0,ne.default)(oe.default.mark(function ae(le,fe){var ce,ue,ye,Se,we=arguments;return oe.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(ce=we.length>2&&we[2]!==void 0?we[2]:{},se(le),["Enabled","Suspended"].includes(fe)){ge.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ue=this._bucketRequestParams("PUT",le,"versioning",ce),ye={VersioningConfiguration:{Status:fe}},ue.mime="xml",ue.content=x(ye,{headers:!0}),ge.next=10,this.request(ue);case 10:return Se=ge.sent,ge.abrupt("return",{res:Se.res,status:Se.status});case 12:case"end":return ge.stop()}},ae,this)}));function re(ae,le){return E.apply(this,arguments)}return re}()},{"../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator")),ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/checkBucketName"),se=ee.checkBucketName,z=a("../utils/obj2xml"),x=z.obj2xml,b=a("../utils/isArray"),E=b.isArray,re=de;re.putBucketWebsite=function(){var ae=(0,ne.default)(oe.default.mark(function fe(ce){var ue,ye,Se,we,xe,ge,_e,be=arguments;return oe.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(ue=be.length>1&&be[1]!==void 0?be[1]:{},ye=be.length>2?be[2]:void 0,se(ce),Se=this._bucketRequestParams("PUT",ce,"website",ye),we={Suffix:ue.index||"index.html"},xe={IndexDocument:we},ge={WebsiteConfiguration:xe},ue.supportSubDir&&(we.SupportSubDir=ue.supportSubDir),ue.type&&(we.Type=ue.type),ue.error&&(xe.ErrorDocument={Key:ue.error}),ue.routingRules===void 0){Te.next=14;break}if(E(ue.routingRules)){Te.next=13;break}throw new Error("RoutingRules must be Array");case 13:xe.RoutingRules={RoutingRule:ue.routingRules};case 14:return ge=x(ge),Se.content=ge,Se.mime="xml",Se.successStatuses=[200],Te.next=20,this.request(Se);case 20:return _e=Te.sent,Te.abrupt("return",{res:_e.res});case 22:case"end":return Te.stop()}},fe,this)}));function le(fe){return ae.apply(this,arguments)}return le}()},{"../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(a,he,de){(function(te){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),de.encodeCallback=function(ne,ee){if(ne.headers=ne.headers||{},!Object.prototype.hasOwnProperty.call(ne.headers,"x-oss-callback")&&ee.callback){var se={callbackUrl:encodeURI(ee.callback.url),callbackBody:ee.callback.body};ee.callback.host&&(se.callbackHost=ee.callback.host),ee.callback.contentType&&(se.callbackBodyType=ee.callback.contentType);var z=te.from(JSON.stringify(se)).toString("base64");if(ne.headers["x-oss-callback"]=z,ee.callback.customValue){var x={};Object.keys(ee.callback.customValue).forEach(function(b){x["x:".concat(b)]=ee.callback.customValue[b].toString()}),ne.headers["x-oss-callback-var"]=te.from(JSON.stringify(x)).toString("base64")}}}}).call(this)}).call(this,a("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(a,he,de){"use strict";a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js");var te=function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(de,"__esModule",{value:!0}),de.getReqUrl=void 0;var oe=te(a("copy-to")),ne=te(a("url")),ee=te(a("merge-descriptors")),se=te(a("is-type-of")),z=a("../utils/isIP"),x=a("../utils/checkConfigValid");function b(E){var re={},ae=this.options.cname;x.checkConfigValid(this.options.endpoint,"endpoint"),oe.default(this.options.endpoint,!1).to(re),E.bucket&&!ae&&!z.isIP(re.hostname)&&!this.options.sldEnable&&(re.host="".concat(E.bucket,".").concat(re.host));var le="/";E.bucket&&this.options.sldEnable&&(le+="".concat(E.bucket,"/")),E.object&&(le+=this._escape(E.object).replace(/\+/g,"%2B")),re.pathname=le;var fe={};if(E.query&&ee.default(fe,E.query),E.subres){var ce={};se.default.string(E.subres)?ce[E.subres]="":se.default.array(E.subres)?E.subres.forEach(function(ue){ce[ue]=""}):ce=E.subres,ee.default(fe,ce)}return re.query=fe,ne.default.format(re)}de.getReqUrl=b},{"../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(a,he,de){"use strict";a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.string.trim.js");var te=a("humanize-ms"),oe=a("url"),ne=a("../utils/checkBucketName"),ee=ne.checkBucketName,se=a("../utils/setRegion"),z=se.setRegion,x=a("../utils/checkConfigValid"),b=x.checkConfigValid;function E(re,ae){b(re,"endpoint");var le=oe.parse(re);if(le.protocol||(le=oe.parse("http".concat(ae?"s":"","://").concat(re))),le.protocol!=="http:"&&le.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return le}he.exports=function(re){if(!re||!re.accessKeyId||!re.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");re.stsToken&&!re.refreshSTSToken&&!re.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),re.bucket&&ee(re.bucket);var ae=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},re);if(ae.accessKeyId=ae.accessKeyId.trim(),ae.accessKeySecret=ae.accessKeySecret.trim(),ae.timeout&&(ae.timeout=te(ae.timeout)),ae.endpoint)ae.endpoint=E(ae.endpoint,ae.secure);else if(ae.region)ae.endpoint=z(ae.region,ae.internal,ae.secure);else throw new Error("require options.endpoint or options.region");return ae.inited=!0,ae}},{"../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(a,he,de){"use strict";var te=a("merge-descriptors"),oe=de;te(oe,a("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.concat.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/checkBucketName"),se=ee.checkBucketName,z=a("querystring"),x=a("js-base64"),b=x.Base64.encode,E=de;E.processObjectSave=function(){var ae=(0,ne.default)(oe.default.mark(function fe(ce,ue,ye,Se){var we,xe,ge,_e;return oe.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return re(ce,"sourceObject"),re(ue,"targetObject"),re(ye,"process"),ue=this._objectName(ue),Se&&se(Se),we=this._objectRequestParams("POST",ce,{subres:"x-oss-process"}),xe=Se?",b_".concat(b(Se)):"",ue=b(ue),ge={"x-oss-process":"".concat(ye,"|sys/saveas,o_").concat(ue).concat(xe)},we.content=z.stringify(ge),Ae.next=12,this.request(we);case 12:return _e=Ae.sent,Ae.abrupt("return",{res:_e.res,status:_e.res.status});case 14:case"end":return Ae.stop()}},fe,this)}));function le(fe,ce,ue,ye){return ae.apply(this,arguments)}return le}();function re(ae,le){if(!ae)throw new Error("".concat(le," is required"));if(typeof ae!="string")throw new Error("".concat(le," 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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array.from.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.array.filter.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.regexp.to-string.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("debug")("ali-oss:multipart-copy"),se=a("copy-to"),z=de;z.uploadPartCopy=function(){var x=(0,ne.default)(oe.default.mark(function E(re,ae,le,fe,ce){var ue,ye,Se,we,xe,ge=arguments;return oe.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ue=ge.length>5&&ge[5]!==void 0?ge[5]:{},ue.headers=ue.headers||{},ye=ue.versionId||ue.subres&&ue.subres.versionId||null,ye?Se="/".concat(ce.sourceBucketName,"/").concat(encodeURIComponent(ce.sourceKey),"?versionId=").concat(ye):Se="/".concat(ce.sourceBucketName,"/").concat(encodeURIComponent(ce.sourceKey)),ue.headers["x-oss-copy-source"]=Se,fe&&(ue.headers["x-oss-copy-source-range"]="bytes=".concat(fe)),ue.subres={partNumber:le,uploadId:ae},we=this._objectRequestParams("PUT",re,ue),we.mime=ue.mime,we.successStatuses=[200],be.next=12,this.request(we);case 12:return xe=be.sent,be.abrupt("return",{name:re,etag:xe.res.headers.etag,res:xe.res});case 14:case"end":return be.stop()}},E,this)}));function b(E,re,ae,le,fe){return x.apply(this,arguments)}return b}(),z.multipartUploadCopy=function(){var x=(0,ne.default)(oe.default.mark(function E(re,ae){var le,fe,ce,ue,ye,Se,we,xe,ge,_e,be,Ae,Te=arguments;return oe.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return le=Te.length>2&&Te[2]!==void 0?Te[2]:{},this.resetCancelFlag(),fe=le.versionId,ce=fe===void 0?null:fe,ue={versionId:ce},ke.next=6,this._getObjectMeta(ae.sourceBucketName,ae.sourceKey,ue);case 6:if(ye=ke.sent,Se=ye.res.headers["content-length"],ae.startOffset=ae.startOffset||0,ae.endOffset=ae.endOffset||Se,!(le.checkpoint&&le.checkpoint.uploadId)){ke.next=14;break}return ke.next=13,this._resumeMultipartCopy(le.checkpoint,ae,le);case 13:return ke.abrupt("return",ke.sent);case 14:if(we=102400,xe=ae.endOffset-ae.startOffset,!(xe<we)){ke.next=18;break}throw new Error("copySize must not be smaller than ".concat(we));case 18:if(!(le.partSize&&le.partSize<we)){ke.next=20;break}throw new Error("partSize must not be smaller than ".concat(we));case 20:return ke.next=22,this.initMultipartUpload(re,le);case 22:if(ge=ke.sent,_e=ge.uploadId,be=this._getPartSize(xe,le.partSize),Ae={name:re,copySize:xe,partSize:be,uploadId:_e,doneParts:[]},!(le&&le.progress)){ke.next=29;break}return ke.next=29,le.progress(0,Ae,ge.res);case 29:return ke.next=31,this._resumeMultipartCopy(Ae,ae,le);case 31:return ke.abrupt("return",ke.sent);case 32:case"end":return ke.stop()}},E,this)}));function b(E,re){return x.apply(this,arguments)}return b}(),z._resumeMultipartCopy=function(){var x=(0,ne.default)(oe.default.mark(function E(re,ae,le){var fe,ce,ue,ye,Se,we,xe,ge,_e,be,Ae,Te,Le,ke,Pe,Oe,ze,Ge,tt,Me,We;return oe.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(!this.isCancel()){at.next=2;break}throw this._makeCancelEvent();case 2:if(fe=le.versionId,ce=fe===void 0?null:fe,ue={versionId:ce},ye=re.copySize,Se=re.partSize,we=re.uploadId,xe=re.doneParts,ge=re.name,_e=this._divideMultipartCopyParts(ye,Se,ae.startOffset),be=_e.length,Ae={headers:{}},le.copyheaders&&se(le.copyheaders).to(Ae.headers),ce&&se(ue).to(Ae),Te=function(Je,Ye,Qe){return new Promise(function(){var st=(0,ne.default)(oe.default.mark(function ot(mt,ft){var qe,Be,lt;return oe.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(rt.prev=0,Je.isCancel()){rt.next=22;break}return qe=_e[Ye-1],Be="".concat(qe.start,"-").concat(qe.end-1),rt.prev=4,rt.next=7,Je.uploadPartCopy(ge,we,Ye,Be,Qe,Ae);case 7:lt=rt.sent,rt.next=15;break;case 10:if(rt.prev=10,rt.t0=rt.catch(4),rt.t0.status!==404){rt.next=14;break}throw Je._makeAbortEvent();case 14:throw rt.t0;case 15:if(Je.isCancel()){rt.next=22;break}if(ee("content-range ".concat(lt.res.headers["content-range"])),xe.push({number:Ye,etag:lt.res.headers.etag}),re.doneParts=xe,!(le&&le.progress)){rt.next=22;break}return rt.next=22,le.progress(xe.length/be,re,lt.res);case 22:mt(),rt.next=29;break;case 25:rt.prev=25,rt.t1=rt.catch(0),rt.t1.partNum=Ye,ft(rt.t1);case 29:case"end":return rt.stop()}},ot,null,[[0,25],[4,10]])}));return function(ot,mt){return st.apply(this,arguments)}}())},Le=Array.from(new Array(be),function($e,Je){return Je+1}),ke=xe.map(function($e){return $e.number}),Pe=Le.filter(function($e){return ke.indexOf($e)<0}),Oe=5,ze=le.parallel||Oe,!(this.checkBrowserAndVersion("Internet Explorer","10")||ze===1)){at.next=28;break}Ge=0;case 18:if(!(Ge<Pe.length)){at.next=26;break}if(!this.isCancel()){at.next=21;break}throw this._makeCancelEvent();case 21:return at.next=23,Te(this,Pe[Ge],ae);case 23:Ge++,at.next=18;break;case 26:at.next=40;break;case 28:return at.next=30,this._parallelNode(Pe,ze,Te,ae);case 30:if(tt=at.sent,Me=tt.find(function($e){return $e.name==="abort"}),!Me){at.next=34;break}throw Me;case 34:if(!this.isCancel()){at.next=36;break}throw this._makeCancelEvent();case 36:if(!(tt&&tt.length>0)){at.next=40;break}throw We=tt[0],We.message="Failed to copy some parts with error: ".concat(We.toString()," part_num: ").concat(We.partNum),We;case 40:return at.next=42,this.completeMultipartUpload(ge,we,xe,le);case 42:return at.abrupt("return",at.sent);case 43:case"end":return at.stop()}},E,this)}));function b(E,re,ae){return x.apply(this,arguments)}return b}(),z._divideMultipartCopyParts=function(b,E,re){for(var ae=Math.ceil(b/E),le=[],fe=0;fe<ae;fe++){var ce=E*fe+re,ue=Math.min(ce+E,b+re);le.push({start:ce,end:ue})}return le},z._getObjectMeta=function(){var x=(0,ne.default)(oe.default.mark(function E(re,ae,le){var fe,ce;return oe.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return fe=this.getBucket(),this.setBucket(re),ye.next=4,this.head(ae,le);case 4:return ce=ye.sent,this.setBucket(fe),ye.abrupt("return",ce);case 7:case"end":return ye.stop()}},E,this)}));function b(E,re,ae){return x.apply(this,arguments)}return b}()},{"@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(a,he,de){(function(te){(function(){"use strict";var oe=a("@babel/runtime/helpers/interopRequireDefault"),ne=oe(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.map.js"),a("core-js/modules/es.array.filter.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.array.sort.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.to-string.js");var ee=oe(a("@babel/runtime/helpers/asyncToGenerator")),se=a("copy-to"),z=a("./callback"),x=a("./utils/deepCopy"),b=x.deepCopyWith,E=a("./utils/isBuffer"),re=E.isBuffer,ae=a("./utils/omit"),le=ae.omit,fe=de;fe.listUploads=function(){var ce=(0,ee.default)(ne.default.mark(function ye(Se,we){var xe,ge,_e,be;return ne.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return we=we||{},xe={},se(we).to(xe),xe.subres="uploads",ge=this._objectRequestParams("GET","",xe),ge.query=Se,ge.xmlResponse=!0,ge.successStatuses=[200],Te.next=10,this.request(ge);case 10:return _e=Te.sent,be=_e.data.Upload||[],Array.isArray(be)||(be=[be]),be=be.map(function(Le){return{name:Le.Key,uploadId:Le.UploadId,initiated:Le.Initiated}}),Te.abrupt("return",{res:_e.res,uploads:be,bucket:_e.data.Bucket,nextKeyMarker:_e.data.NextKeyMarker,nextUploadIdMarker:_e.data.NextUploadIdMarker,isTruncated:_e.data.IsTruncated==="true"});case 15:case"end":return Te.stop()}},ye,this)}));function ue(ye,Se){return ce.apply(this,arguments)}return ue}(),fe.listParts=function(){var ce=(0,ee.default)(ne.default.mark(function ye(Se,we,xe,ge){var _e,be,Ae;return ne.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return ge=ge||{},_e={},se(ge).to(_e),_e.subres={uploadId:we},be=this._objectRequestParams("GET",Se,_e),be.query=xe,be.xmlResponse=!0,be.successStatuses=[200],Le.next=10,this.request(be);case 10:return Ae=Le.sent,Le.abrupt("return",{res:Ae.res,uploadId:Ae.data.UploadId,bucket:Ae.data.Bucket,name:Ae.data.Key,partNumberMarker:Ae.data.PartNumberMarker,nextPartNumberMarker:Ae.data.NextPartNumberMarker,maxParts:Ae.data.MaxParts,isTruncated:Ae.data.IsTruncated,parts:Ae.data.Part||[]});case 12:case"end":return Le.stop()}},ye,this)}));function ue(ye,Se,we,xe){return ce.apply(this,arguments)}return ue}(),fe.abortMultipartUpload=function(){var ce=(0,ee.default)(ne.default.mark(function ye(Se,we,xe){var ge,_e,be;return ne.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return this._stop(),xe=xe||{},ge={},se(xe).to(ge),ge.subres={uploadId:we},_e=this._objectRequestParams("DELETE",Se,ge),_e.successStatuses=[204],Te.next=9,this.request(_e);case 9:return be=Te.sent,Te.abrupt("return",{res:be.res});case 11:case"end":return Te.stop()}},ye,this)}));function ue(ye,Se,we){return ce.apply(this,arguments)}return ue}(),fe.initMultipartUpload=function(){var ce=(0,ee.default)(ne.default.mark(function ye(Se,we){var xe,ge,_e;return ne.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return we=we||{},xe={},se(we).to(xe),xe.headers=xe.headers||{},this._convertMetaToHeaders(we.meta,xe.headers),xe.subres="uploads",ge=this._objectRequestParams("POST",Se,xe),ge.mime=we.mime,ge.xmlResponse=!0,ge.successStatuses=[200],Ae.next=12,this.request(ge);case 12:return _e=Ae.sent,Ae.abrupt("return",{res:_e.res,bucket:_e.data.Bucket,name:_e.data.Key,uploadId:_e.data.UploadId});case 14:case"end":return Ae.stop()}},ye,this)}));function ue(ye,Se){return ce.apply(this,arguments)}return ue}(),fe.uploadPart=function(){var ce=(0,ee.default)(ne.default.mark(function ye(Se,we,xe,ge,_e,be,Ae){var Te,Le;return ne.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(Te={size:be-_e},Le=te&&te.browser,!Le){Pe.next=8;break}return Pe.next=5,this._createBuffer(ge,_e,be);case 5:Te.content=Pe.sent,Pe.next=11;break;case 8:return Pe.next=10,this._createStream(ge,_e,be);case 10:Te.stream=Pe.sent;case 11:return Pe.next=13,this._uploadPart(Se,we,xe,Te,Ae);case 13:return Pe.abrupt("return",Pe.sent);case 14:case"end":return Pe.stop()}},ye,this)}));function ue(ye,Se,we,xe,ge,_e,be){return ce.apply(this,arguments)}return ue}(),fe.completeMultipartUpload=function(){var ce=(0,ee.default)(ne.default.mark(function ye(Se,we,xe,ge){var _e,be,Ae,Te,Le,ke,Pe,Oe;return ne.default.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:for(_e=xe.concat().sort(function(tt,Me){return tt.number-Me.number}).filter(function(tt,Me,We){return!Me||tt.number!==We[Me-1].number}),be=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Ae=0;Ae<_e.length;Ae++)Te=_e[Ae],be+=`<Part>
`,be+="<PartNumber>".concat(Te.number,`</PartNumber>
`),be+="<ETag>".concat(Te.etag,`</ETag>
`),be+=`</Part>
`;return be+="</CompleteMultipartUpload>",ge=ge||{},Le={},Le=b(ge,function(tt){if(re(tt))return null}),Le.subres={uploadId:we},Le.headers=le(Le.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),ke=this._objectRequestParams("POST",Se,Le),z.encodeCallback(ke,Le),ke.mime="xml",ke.content=be,ke.headers&&ke.headers["x-oss-callback"]||(ke.xmlResponse=!0),ke.successStatuses=[200],Ge.next=17,this.request(ke);case 17:if(Pe=Ge.sent,!ge.progress){Ge.next=21;break}return Ge.next=21,ge.progress(1,null,Pe.res);case 21:return Oe={res:Pe.res,bucket:ke.bucket,name:Se,etag:Pe.res.headers.etag},ke.headers&&ke.headers["x-oss-callback"]&&(Oe.data=JSON.parse(Pe.data.toString())),Ge.abrupt("return",Oe);case 24:case"end":return Ge.stop()}},ye,this)}));function ue(ye,Se,we,xe){return ce.apply(this,arguments)}return ue}(),fe._uploadPart=function(){var ce=(0,ee.default)(ne.default.mark(function ye(Se,we,xe,ge,_e){var be,Ae,Te,Le;return ne.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return _e=_e||{},be={},se(_e).to(be),be.headers=be.headers||{},be.headers["Content-Length"]=ge.size,be.headers=le(be.headers,["x-oss-server-side-encryption"]),be.subres={partNumber:xe,uploadId:we},Ae=this._objectRequestParams("PUT",Se,be),Ae.mime=be.mime,Te=te&&te.browser,Te?Ae.content=ge.content:Ae.stream=ge.stream,Ae.successStatuses=[200],Ae.disabledMD5=_e.disabledMD5,Pe.next=15,this.request(Ae);case 15:if(Le=Pe.sent,Le.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 ge.stream&&(ge.stream=null,Ae.stream=null),Pe.abrupt("return",{name:Se,etag:Le.res.headers.etag,res:Le.res});case 20:case"end":return Pe.stop()}},ye,this)}));function ue(ye,Se,we,xe,ge){return ce.apply(this,arguments)}return ue}()}).call(this)}).call(this,a("_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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator")),ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("url"),se=a("utility"),z=a("copy-to"),x=a("../../common/signUtils"),b=a("../utils/isIP"),E=b.isIP,re=a("../utils/setSTSToken"),ae=re.setSTSToken,le=a("../utils/isFunction"),fe=le.isFunction,ce=de;ce.asyncSignatureUrl=function(){var ue=(0,ne.default)(oe.default.mark(function Se(we,xe){var ge,_e,be,Ae,Te;return oe.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(!E(this.options.endpoint.hostname)){ke.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(xe=xe||{},we=this._objectName(we),xe.method=xe.method||"GET",ge=se.timestamp()+(xe.expires||1800),_e={bucket:this.options.bucket,object:we},be=this._getResource(_e),!(this.options.stsToken&&fe(this.options.refreshSTSToken))){ke.next=11;break}return ke.next=11,ae.call(this);case 11:return this.options.stsToken&&(xe["security-token"]=this.options.stsToken),Ae=x._signatureForURL(this.options.accessKeySecret,xe,be,ge),Te=ee.parse(this._getReqUrl(_e)),Te.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ge,Signature:Ae.Signature},z(Ae.subResource).to(Te.query),ke.abrupt("return",Te.format());case 17:case"end":return ke.stop()}},Se,this)}));function ye(Se,we){return ue.apply(this,arguments)}return ye}()},{"../../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js");var ne=te(a("@babel/runtime/helpers/typeof")),ee=te(a("@babel/runtime/helpers/asyncToGenerator")),se=a("../utils/checkBucketName"),z=se.checkBucketName,x=de,b=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];x.copy=function(){var E=(0,ee.default)(oe.default.mark(function ae(le,fe,ce,ue){var ye,Se,we;return oe.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return(0,ne.default)(ce)==="object"&&(ue=ce),ue=ue||{},ue.headers=ue.headers||{},Object.keys(ue.headers).forEach(function(_e){ue.headers["x-oss-copy-source-".concat(_e.toLowerCase())]=ue.headers[_e]}),(ue.meta||Object.keys(ue.headers).find(function(_e){return b.includes(_e.toLowerCase())}))&&(ue.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ue.meta,ue.headers),fe=this._getSourceName(fe,ce),ue.versionId&&(fe="".concat(fe,"?versionId=").concat(ue.versionId)),ue.headers["x-oss-copy-source"]=fe,ye=this._objectRequestParams("PUT",le,ue),ye.xmlResponse=!0,ye.successStatuses=[200,304],ge.next=14,this.request(ye);case 14:return Se=ge.sent,we=Se.data,we&&(we={etag:we.ETag,lastModified:we.LastModified}),ge.abrupt("return",{data:we,res:Se.res});case 18:case"end":return ge.stop()}},ae,this)}));function re(ae,le,fe,ce){return E.apply(this,arguments)}return re}(),x._getSourceName=function(re,ae){return typeof ae=="string"?re=this._objectName(re):re[0]!=="/"?ae=this.options.bucket:(ae=re.replace(/\/(.+?)(\/.*)/,"$1"),re=re.replace(/(\/.+?\/)(.*)/,"$2")),z(ae),re=encodeURIComponent(re),re="/".concat(ae,"/").concat(re),re}},{"../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=de;ee.delete=function(){var se=(0,ne.default)(oe.default.mark(function x(b){var E,re,ae,le=arguments;return oe.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return E=le.length>1&&le[1]!==void 0?le[1]:{},E.subres=Object.assign({},E.subres),E.versionId&&(E.subres.versionId=E.versionId),re=this._objectRequestParams("DELETE",b,E),re.successStatuses=[204],ce.next=7,this.request(re);case 7:return ae=ce.sent,ce.abrupt("return",{res:ae.res});case 9:case"end":return ce.stop()}},x,this)}));function z(x){return se.apply(this,arguments)}return z}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("utility"),se=a("../utils/obj2xml"),z=se.obj2xml,x=de;x.deleteMulti=function(){var b=(0,ne.default)(oe.default.mark(function re(ae){var le,fe,ce,ue,ye,Se,we,xe,ge,_e,be,Ae,Te,Le=arguments;return oe.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(le=Le.length>1&&Le[1]!==void 0?Le[1]:{},fe=[],!(!ae||!ae.length)){Pe.next=4;break}throw new Error("names is required");case 4:for(ce=0;ce<ae.length;ce++)ue={},typeof ae[ce]=="string"?ue.Key=ee.escape(this._objectName(ae[ce])):(ye=ae[ce],Se=ye.key,we=ye.versionId,ue.Key=ee.escape(this._objectName(Se)),ue.VersionId=we),fe.push(ue);return xe={Delete:{Quiet:!!le.quiet,Object:fe}},ge=z(xe,{headers:!0}),le.subres=Object.assign({delete:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),_e=this._objectRequestParams("POST","",le),_e.mime="xml",_e.content=ge,_e.xmlResponse=!0,_e.successStatuses=[200],Pe.next=16,this.request(_e);case 16:return be=Pe.sent,Ae=be.data,Te=Ae&&Ae.Deleted||null,Te&&(Array.isArray(Te)||(Te=[Te])),Pe.abrupt("return",{res:be.res,deleted:Te||[]});case 21:case"end":return Pe.stop()}},re,this)}));function E(re){return b.apply(this,arguments)}return E}()},{"../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=de;ee.deleteObjectTagging=function(){var se=(0,ne.default)(oe.default.mark(function x(b){var E,re,ae,le=arguments;return oe.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return E=le.length>1&&le[1]!==void 0?le[1]:{},E.subres=Object.assign({tagging:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),b=this._objectName(b),re=this._objectRequestParams("DELETE",b,E),re.successStatuses=[204],ce.next=8,this.request(re);case 8:return ae=ce.sent,ce.abrupt("return",{status:ae.status,res:ae.res});case 10:case"end":return ce.stop()}},x,this)}));function z(x){return se.apply(this,arguments)}return z}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(a,he,de){"use strict";a("core-js/modules/es.array.concat.js");var te=a("url"),oe=a("../utils/isIP"),ne=oe.isIP,ee=de;ee.generateObjectUrl=function(z,x){if(ne(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(x)x[x.length-1]!=="/"&&(x+="/");else{x=this.options.endpoint.format();var b=te.parse(x),E=this.options.bucket;b.hostname="".concat(E,".").concat(b.hostname),b.host="".concat(E,".").concat(b.host),x=b.format()}return x+this._escape(this._objectName(z))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(a,he,de){(function(te){(function(){"use strict";var oe=a("@babel/runtime/helpers/interopRequireDefault"),ne=oe(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ee=oe(a("@babel/runtime/helpers/asyncToGenerator")),se=a("fs"),z=a("is-type-of"),x=de;x.get=function(){var b=(0,ee.default)(ne.default.mark(function re(ae,le){var fe,ce,ue,ye,Se,we,xe,ge,_e=arguments;return ne.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return fe=_e.length>2&&_e[2]!==void 0?_e[2]:{},ce=null,ue=!1,z.writableStream(le)?ce=le:z.string(le)?(ce=se.createWriteStream(le),ue=!0):fe=le,fe=fe||{},ye=te&&te.browser,Se=fe.responseCacheControl===null?"":"no-cache",we=ye&&Se?{"response-cache-control":Se}:{},fe.subres=Object.assign(we,fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),fe.process&&(fe.subres["x-oss-process"]=fe.process),Ae.prev=11,ge=this._objectRequestParams("GET",ae,fe),ge.writeStream=ce,ge.successStatuses=[200,206,304],Ae.next=17,this.request(ge);case 17:xe=Ae.sent,ue&&ce.destroy(),Ae.next=28;break;case 21:if(Ae.prev=21,Ae.t0=Ae.catch(11),!ue){Ae.next=27;break}return ce.destroy(),Ae.next=27,this._deleteFileSafe(le);case 27:throw Ae.t0;case 28:return Ae.abrupt("return",{res:xe.res,content:xe.data});case 29:case"end":return Ae.stop()}},re,this,[[11,21]])}));function E(re,ae){return b.apply(this,arguments)}return E}()}).call(this)}).call(this,a("_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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=de;ee.getACL=function(){var se=(0,ne.default)(oe.default.mark(function x(b){var E,re,ae,le=arguments;return oe.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return E=le.length>1&&le[1]!==void 0?le[1]:{},E.subres=Object.assign({acl:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),b=this._objectName(b),re=this._objectRequestParams("GET",b,E),re.successStatuses=[200],re.xmlResponse=!0,ce.next=9,this.request(re);case 9:return ae=ce.sent,ce.abrupt("return",{acl:ae.data.AccessControlList.Grant,owner:{id:ae.data.Owner.ID,displayName:ae.data.Owner.DisplayName},res:ae.res});case 11:case"end":return ce.stop()}},x,this)}));function z(x){return se.apply(this,arguments)}return z}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.number.constructor.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=de,se=a("../utils/isObject"),z=se.isObject,x=a("../utils/isArray"),b=x.isArray;ee.getBucketVersions=E,ee.listObjectVersions=E;function E(){return re.apply(this,arguments)}function re(){return re=(0,ne.default)(oe.default.mark(function fe(){var ce,ue,ye,Se,we,xe,ge,_e,be=arguments;return oe.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(ce=be.length>0&&be[0]!==void 0?be[0]:{},ue=be.length>1&&be[1]!==void 0?be[1]:{},!(ce.versionIdMarker&&ce.keyMarker===void 0)){Te.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ue.subres=Object.assign({versions:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),ye=this._objectRequestParams("GET","",ue),ye.xmlResponse=!0,ye.successStatuses=[200],ye.query=le(ce),Te.next=12,this.request(ye);case 12:return Se=Te.sent,we=Se.data.Version||[],xe=Se.data.DeleteMarker||[],ge=this,we&&(Array.isArray(we)||(we=[we]),we=we.map(function(Le){return{name:Le.Key,url:ge._objectUrl(Le.Key),lastModified:Le.LastModified,isLatest:Le.IsLatest==="true",versionId:Le.VersionId,etag:Le.ETag,type:Le.Type,size:Number(Le.Size),storageClass:Le.StorageClass,owner:{id:Le.Owner.ID,displayName:Le.Owner.DisplayName}}})),xe&&(b(xe)||(xe=[xe]),xe=xe.map(function(Le){return{name:Le.Key,lastModified:Le.LastModified,versionId:Le.VersionId,owner:{id:Le.Owner.ID,displayName:Le.Owner.DisplayName}}})),_e=Se.data.CommonPrefixes||null,_e&&(b(_e)||(_e=[_e]),_e=_e.map(function(Le){return Le.Prefix})),Te.abrupt("return",{res:Se.res,objects:we,deleteMarker:xe,prefixes:_e,nextMarker:Se.data.NextKeyMarker||null,NextVersionIdMarker:Se.data.NextVersionIdMarker||null,nextKeyMarker:Se.data.NextKeyMarker||null,nextVersionIdMarker:Se.data.NextVersionIdMarker||null,isTruncated:Se.data.IsTruncated==="true"});case 21:case"end":return Te.stop()}},fe,this)})),re.apply(this,arguments)}function ae(fe){return fe.replace(/([A-Z])/g,"-$1").toLowerCase()}function le(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ce={};return z(fe)&&Object.keys(fe).forEach(function(ue){ce[ae(ue)]=fe[ue]}),ce}},{"../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=de;ee.getObjectMeta=function(){var se=(0,ne.default)(oe.default.mark(function x(b,E){var re,ae;return oe.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return E=E||{},b=this._objectName(b),E.subres=Object.assign({objectMeta:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),re=this._objectRequestParams("HEAD",b,E),re.successStatuses=[200],fe.next=8,this.request(re);case 8:return ae=fe.sent,fe.abrupt("return",{status:ae.status,res:ae.res});case 10:case"end":return fe.stop()}},x,this)}));function z(x,b){return se.apply(this,arguments)}return z}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=de,se=a("../utils/isObject"),z=se.isObject;ee.getObjectTagging=function(){var x=(0,ne.default)(oe.default.mark(function E(re){var ae,le,fe,ce,ue,ye,Se=arguments;return oe.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ae=Se.length>1&&Se[1]!==void 0?Se[1]:{},ae.subres=Object.assign({tagging:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),re=this._objectName(re),le=this._objectRequestParams("GET",re,ae),le.successStatuses=[200],xe.next=8,this.request(le);case 8:return fe=xe.sent,xe.next=11,this.parseXML(fe.data);case 11:return ce=xe.sent,ue=ce.TagSet.Tag,ue=ue&&z(ue)?[ue]:ue||[],ye={},ue.forEach(function(ge){ye[ge.Key]=ge.Value}),xe.abrupt("return",{status:fe.status,res:fe.res,tag:ye});case 17:case"end":return xe.stop()}},E,this)}));function b(E){return x.apply(this,arguments)}return b}()},{"../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(a,he,de){"use strict";var te=a("../utils/isIP"),oe=te.isIP,ne=de;ne.getObjectUrl=function(se,z){if(oe(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return z?z[z.length-1]!=="/"&&(z+="/"):z=this.options.endpoint.format(),z+this._escape(this._objectName(se))}},{"../utils/isIP":69}],43:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=de;ee.getSymlink=function(){var se=(0,ne.default)(oe.default.mark(function x(b){var E,re,ae,le,fe=arguments;return oe.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return E=fe.length>1&&fe[1]!==void 0?fe[1]:{},E.subres=Object.assign({symlink:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),b=this._objectName(b),re=this._objectRequestParams("GET",b,E),re.successStatuses=[200],ue.next=8,this.request(re);case 8:return ae=ue.sent,le=ae.res.headers["x-oss-symlink-target"],ue.abrupt("return",{targetName:decodeURIComponent(le),res:ae.res});case 11:case"end":return ue.stop()}},x,this)}));function z(x){return se.apply(this,arguments)}return z}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/checkEnv"),se=ee.checkEnv,z=de;z.head=function(){var x=(0,ne.default)(oe.default.mark(function E(re){var ae,le,fe,ce,ue=arguments;return oe.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return ae=ue.length>1&&ue[1]!==void 0?ue[1]:{},se("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),ae.subres=Object.assign({},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),le=this._objectRequestParams("HEAD",re,ae),le.successStatuses=[200,304],Se.next=8,this.request(le);case 8:return fe=Se.sent,ce={meta:null,res:fe.res,status:fe.status},fe.status===200&&Object.keys(fe.headers).forEach(function(we){we.indexOf("x-oss-meta-")===0&&(ce.meta||(ce.meta={}),ce.meta[we.substring(11)]=fe.headers[we])}),Se.abrupt("return",ce);case 12:case"end":return Se.stop()}},E,this)}));function b(E){return x.apply(this,arguments)}return b}()},{"../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=de;ee.putACL=function(){var se=(0,ne.default)(oe.default.mark(function x(b,E,re){var ae,le;return oe.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return re=re||{},re.subres=Object.assign({acl:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),re.headers=re.headers||{},re.headers["x-oss-object-acl"]=E,b=this._objectName(b),ae=this._objectRequestParams("PUT",b,re),ae.successStatuses=[200],ce.next=10,this.request(ae);case 10:return le=ce.sent,ce.abrupt("return",{res:le.res});case 12:case"end":return ce.stop()}},x,this)}));function z(x,b,E){return se.apply(this,arguments)}return z}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.object.keys.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/obj2xml"),se=ee.obj2xml,z=a("../utils/checkObjectTag"),x=z.checkObjectTag,b=de;b.putObjectTagging=function(){var E=(0,ne.default)(oe.default.mark(function ae(le,fe){var ce,ue,ye,Se,we=arguments;return oe.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ce=we.length>2&&we[2]!==void 0?we[2]:{},x(fe),ce.subres=Object.assign({tagging:""},ce.subres),ce.versionId&&(ce.subres.versionId=ce.versionId),le=this._objectName(le),ue=this._objectRequestParams("PUT",le,ce),ue.successStatuses=[200],fe=Object.keys(fe).map(function(_e){return{Key:_e,Value:fe[_e]}}),ye={Tagging:{TagSet:{Tag:fe}}},ue.mime="xml",ue.content=se(ye),ge.next=13,this.request(ue);case 13:return Se=ge.sent,ge.abrupt("return",{res:Se.res,status:Se.status});case 15:case"end":return ge.stop()}},ae,this)}));function re(ae,le){return E.apply(this,arguments)}return re}()},{"../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=de;ee.putSymlink=function(){var se=(0,ne.default)(oe.default.mark(function x(b,E,re){var ae,le;return oe.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return re=re||{},re.headers=re.headers||{},E=this._escape(this._objectName(E)),this._convertMetaToHeaders(re.meta,re.headers),re.headers["x-oss-symlink-target"]=E,re.subres=Object.assign({symlink:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),re.storageClass&&(re.headers["x-oss-storage-class"]=re.storageClass),b=this._objectName(b),ae=this._objectRequestParams("PUT",b,re),ae.successStatuses=[200],ce.next=13,this.request(ae);case 13:return le=ce.sent,ce.abrupt("return",{res:le.res});case 15:case"end":return ce.stop()}},x,this)}));function z(x,b,E){return se.apply(this,arguments)}return z}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(a,he,de){"use strict";var te=a("url"),oe=a("utility"),ne=a("copy-to"),ee=a("../../common/signUtils"),se=a("../utils/isIP"),z=se.isIP,x=de;x.signatureUrl=function(E,re){if(z(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");re=re||{},E=this._objectName(E),re.method=re.method||"GET";var ae=oe.timestamp()+(re.expires||1800),le={bucket:this.options.bucket,object:E},fe=this._getResource(le);this.options.stsToken&&(re["security-token"]=this.options.stsToken);var ce=ee._signatureForURL(this.options.accessKeySecret,re,fe,ae),ue=te.parse(this._getReqUrl(le));return ue.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ae,Signature:ce.Signature},ne(ce.subResource).to(ue.query),ue.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.iterator.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/web.dom-collections.iterator.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.function.name.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("./utils/isArray"),se=ee.isArray,z=de;z._parallelNode=function(){var x=(0,ne.default)(oe.default.mark(function E(re,ae,le,fe){var ce,ue,ye,Se,we,xe,ge,_e;return oe.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:ce=this,ue=[],ye=[],Se=re.length/ae,we=re.length%ae,xe=we===0?Se:(re.length-we)/ae+1,ge=1,_e=0;case 8:if(!(_e<re.length)){Ae.next=26;break}if(!ce.isCancel()){Ae.next=11;break}return Ae.abrupt("break",26);case 11:if(fe?ye.push(le(ce,re[_e],fe)):ye.push(le(ce,re[_e])),!(ye.length===ae||ge===xe&&_e===re.length-1)){Ae.next=23;break}return Ae.prev=13,ge+=1,Ae.next=17,Promise.all(ye);case 17:Ae.next=22;break;case 19:Ae.prev=19,Ae.t0=Ae.catch(13),ue.push(Ae.t0);case 22:ye=[];case 23:_e++,Ae.next=8;break;case 26:return Ae.abrupt("return",ue);case 27:case"end":return Ae.stop()}},E,this,[[13,19]])}));function b(E,re,ae,le){return x.apply(this,arguments)}return b}(),z._parallel=function(b,E,re){var ae=this;return new Promise(function(le){var fe=[];if(E<=0||!b){le(fe);return}function ce(Ae){return function(){if(Ae===null)throw new Error("Callback was already called.");var Te=Ae;Ae=null;for(var Le=arguments.length,ke=new Array(Le),Pe=0;Pe<Le;Pe++)ke[Pe]=arguments[Pe];Te.apply(this,ke)}}function ue(Ae){var Te=-1,Le=Ae.length;return function(){return++Te<Le&&!ae.isCancel()?{value:Ae[Te],key:Te}:null}}var ye=ue(b),Se=!1,we=0,xe=!1;function ge(Ae){we-=1,Ae?(Se=!0,fe.push(Ae),le(fe)):Se&&we<=0?(Se=!0,le(fe)):xe||(ae.isCancel()?le(fe):be())}function _e(Ae,Te){re(Ae).then(function(Le){Te(null,Le)}).catch(function(Le){Te(Le)})}function be(){for(xe=!0;we<E&&!Se&&!ae.isCancel();){var Ae=ye();if(Ae===null||fe.length>0){Se=!0,we<=0&&le(fe);return}we+=1,_e(Ae.value,ce(ge))}xe=!1}be()})},z.cancel=function(b){this.options.cancelFlag=!0,se(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(E){if(E.destroyed===!1){var re={name:"cancel",message:"cancel"};E.destroy(re)}}),this.multipartUploadStreams=[],b&&this.abortMultipartUpload(b.name,b.uploadId,b.options)},z.isCancel=function(){return this.options.cancelFlag},z.resetCancelFlag=function(){this.options.cancelFlag=!1},z._stop=function(){this.options.cancelFlag=!0},z._makeCancelEvent=function(){var b={status:0,name:"cancel"};return b},z._makeAbortEvent=function(){var b={status:0,name:"abort",message:"upload task has been abort"};return b}},{"./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(a,he,de){(function(te){(function(){"use strict";a("core-js/modules/es.string.trim.js"),a("core-js/modules/es.array.sort.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.to-string.js");var oe=a("./../../shims/crypto/crypto.js"),ne=a("is-type-of"),ee=a("./utils/lowercaseKeyHeader"),se=ee.lowercaseKeyHeader;de.buildCanonicalizedResource=function(x,b){var E="".concat(x),re="?";if(ne.string(b)&&b.trim()!=="")E+=re+b;else if(ne.array(b))b.sort(),E+=re+b.join("&");else if(b){var ae=function(ce,ue){return ce[0]>ue[0]?1:ce[0]<ue[0]?-1:0},le=function(ce){E+=re+ce,(b[ce]||b[ce]===0)&&(E+="=".concat(b[ce])),re="&"};Object.keys(b).sort(ae).forEach(le)}return E},de.buildCanonicalString=function(x,b,E,re){E=E||{};var ae=se(E.headers),le="x-oss-",fe=[],ce={},ue=[x.toUpperCase(),ae["content-md5"]||"",ae["content-type"],re||ae["x-oss-date"]];return Object.keys(ae).forEach(function(ye){var Se=ye.toLowerCase();Se.indexOf(le)===0&&(ce[Se]=String(ae[ye]).trim())}),Object.keys(ce).sort().forEach(function(ye){fe.push("".concat(ye,":").concat(ce[ye]))}),ue=ue.concat(fe),ue.push(this.buildCanonicalizedResource(b,E.parameters)),ue.join(`
`)},de.computeSignature=function(x,b){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",re=oe.createHmac("sha1",x);return re.update(te.from(b,E)).digest("base64")},de.authorization=function(x,b,E,re){return"OSS ".concat(x,":").concat(this.computeSignature(b,E,re))},de._signatureForURL=function(x){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=arguments.length>2?arguments[2]:void 0,re=arguments.length>3?arguments[3]:void 0,ae=arguments.length>4?arguments[4]:void 0,le={},fe=b.subResource,ce=fe===void 0?{}:fe;if(b.process){var ue="x-oss-process";ce[ue]=b.process}if(b.trafficLimit){var ye="x-oss-traffic-limit";ce[ye]=b.trafficLimit}if(b.response&&Object.keys(b.response).forEach(function(ge){var _e="response-".concat(ge.toLowerCase());ce[_e]=b.response[ge]}),Object.keys(b).forEach(function(ge){var _e=ge.toLowerCase(),be=b[ge];_e.indexOf("x-oss-")===0?le[_e]=be:(_e.indexOf("content-md5")===0||_e.indexOf("content-type")===0)&&(le[ge]=be)}),Object.prototype.hasOwnProperty.call(b,"security-token")&&(ce["security-token"]=b["security-token"]),Object.prototype.hasOwnProperty.call(b,"callback")){var Se={callbackUrl:encodeURI(b.callback.url),callbackBody:b.callback.body};if(b.callback.host&&(Se.callbackHost=b.callback.host),b.callback.contentType&&(Se.callbackBodyType=b.callback.contentType),ce.callback=te.from(JSON.stringify(Se)).toString("base64"),b.callback.customValue){var we={};Object.keys(b.callback.customValue).forEach(function(ge){we["x:".concat(ge)]=b.callback.customValue[ge]}),ce["callback-var"]=te.from(JSON.stringify(we)).toString("base64")}}var xe=this.buildCanonicalString(b.method,E,{headers:le,parameters:ce},re.toString());return{Signature:this.computeSignature(x,xe,ae),subResource:ce}}}).call(this)}).call(this,a("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(a,he,de){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.checkBucketName=void 0,de.checkBucketName=function(te){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ne=oe?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!ne.test(te))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(a,he,de){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.checkConfigValid=void 0;var te={endpoint:oe,region:/^[a-zA-Z0-9\-_]+$/};function oe(ne){return typeof ne=="string"?/^[a-zA-Z0-9._:/-]+$/.test(ne):ne.host?/^[a-zA-Z0-9._:/-]+$/.test(ne.host):!1}de.checkConfigValid=function(ne,ee){if(te[ee]){var se=!0;if(te[ee]instanceof Function?se=te[ee](ne):se=te[ee].test(ne),!se)throw new Error("The ".concat(ee," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(a,he,de){(function(te){(function(){"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.checkEnv=void 0;function oe(ne){te.browser&&console.warn(ne)}de.checkEnv=oe}).call(this)}).call(this,a("_process"))},{_process:467}],54:[function(a,he,de){"use strict";a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.object.entries.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.checkObjectTag=void 0;var te=a("./checkValid"),oe=te.checkValid,ne=a("./isObject"),ee=ne.isObject,se=[{validator:function(E){if(typeof E!="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 (/)"}],z={key:[].concat(se,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(se,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function x(b){if(!ee(b))throw new Error("tag must be Object");var E=Object.entries(b);if(E.length>10)throw new Error("maximum of 10 tags for a object");var re=["key","value"];E.forEach(function(ae){ae.forEach(function(le,fe){oe(le,z[re[fe]])})})}de.checkObjectTag=x},{"./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(a,he,de){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.checkValid=void 0;function te(oe,ne){ne.forEach(function(ee){if(ee.validator)ee.validator(oe);else if(ee.pattern&&!ee.pattern.test(oe))throw new Error(ee.msg)})}de.checkValid=te},{"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(a,he,de){(function(te){(function(){"use strict";a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.includes.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.concat.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.createRequest=void 0;var oe=a("./../../../shims/crypto/crypto.js"),ne=a("debug")("ali-oss"),ee=a("mime"),se=a("dateformat"),z=a("copy-to"),x=a("path"),b=a("./encoder"),E=b.encoder,re=a("./isIP"),ae=re.isIP,le=a("./setRegion"),fe=le.setRegion,ce=a("../client/getReqUrl"),ue=ce.getReqUrl,ye=a("./isDingTalk"),Se=ye.isDingTalk;function we(_e,be){return _e[be]||_e[be.toLowerCase()]}function xe(_e,be){delete _e[be],delete _e[be.toLowerCase()]}function ge(_e){var be=new Date;this.options.amendTimeSkewed&&(be=+new Date+this.options.amendTimeSkewed);var Ae={"x-oss-date":se(be,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Ae["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Ae["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Ae,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Ae["x-oss-security-token"]=this.options.stsToken),z(_e.headers).to(Ae),we(Ae,"Content-Type")||(_e.mime&&_e.mime.indexOf("/")>0?Ae["Content-Type"]=_e.mime:Se()?Ae["Content-Type"]="application/octet-stream":Ae["Content-Type"]=ee.getType(_e.mime||x.extname(_e.object||""))),we(Ae,"Content-Type")||xe(Ae,"Content-Type"),_e.content&&(_e.disabledMD5||(!_e.headers||!_e.headers["Content-MD5"]?Ae["Content-MD5"]=oe.createHash("md5").update(te.from(_e.content,"utf8")).digest("base64"):Ae["Content-MD5"]=_e.headers["Content-MD5"]),Ae["Content-Length"]||(Ae["Content-Length"]=_e.content.length));var Te=Object.prototype.hasOwnProperty;for(var Le in Ae)Ae[Le]&&Te.call(Ae,Le)&&(Ae[Le]=E(String(Ae[Le]),this.options.headerEncoding));var ke=this._getResource(_e);if(Ae.authorization=this.authorization(_e.method,ke,_e.subres,Ae,this.options.headerEncoding),ae(this.options.endpoint.hostname)){var Pe=this.options,Oe=Pe.region,ze=Pe.internal,Ge=Pe.secure,tt=fe(Oe,ze,Ge);Ae.host="".concat(_e.bucket,".").concat(tt.host)}var Me=ue.bind(this)(_e);ne("request %s %s, with headers %j, !!stream: %s",_e.method,Me,Ae,!!_e.stream);var We=_e.timeout||this.options.timeout,it={method:_e.method,content:_e.content,stream:_e.stream,headers:Ae,timeout:We,writeStream:_e.writeStream,customResponse:_e.customResponse,ctx:_e.ctx||this.ctx};return this.agent&&(it.agent=this.agent),this.httpsAgent&&(it.httpsAgent=this.httpsAgent),it.enableProxy=!!this.options.enableProxy,it.proxy=this.options.proxy?this.options.proxy:null,{url:Me,params:it}}de.createRequest=ge}).call(this)}).call(this,a("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(a,he,de){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.entries.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.object.keys.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.dataFix=void 0;var te=a("./isObject"),oe=["true","TRUE","1",1],ne=["false","FALSE","0",0];function ee(x,b,E){if(te.isObject(x)){var re=b.remove,ae=re===void 0?[]:re,le=b.rename,fe=le===void 0?{}:le,ce=b.camel,ue=ce===void 0?[]:ce,ye=b.bool,Se=ye===void 0?[]:ye,we=b.lowerFirst,xe=we===void 0?!1:we;return ae.forEach(function(ge){return delete x[ge]}),Object.entries(fe).forEach(function(ge){x[ge[0]]&&(x[ge[1]]||(x[ge[1]]=x[ge[0]],delete x[ge[0]]))}),ue.forEach(function(ge){if(x[ge]){var _e=ge.replace(/^(.)/,function(be){return be.toLowerCase()}).replace(/-(\w)/g,function(be,Ae){return Ae.toUpperCase()});x[_e]||(x[_e]=x[ge])}}),Se.forEach(function(ge){x[ge]=se(x[ge])}),typeof E=="function"&&E(x),z(x,xe),ee}}de.dataFix=ee;function se(x){return x?oe.includes(x)?!0:ne.includes(x)?!1:x:!1}function z(x,b){b&&Object.keys(x).forEach(function(E){var re=E.replace(/^\w/,function(ae){return ae.toLowerCase()});typeof x[re]=="undefined"&&(x[re]=x[E],delete x[E])})}},{"./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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault");a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js");var oe=te(a("@babel/runtime/helpers/typeof"));Object.defineProperty(de,"__esModule",{value:!0}),de.deepCopyWith=de.deepCopy=void 0;var ne=a("./isBuffer");de.deepCopy=function(ee){if(ee===null||(0,oe.default)(ee)!=="object")return ee;if(ne.isBuffer(ee))return ee.slice();var se=Array.isArray(ee)?[]:{};return Object.keys(ee).forEach(function(z){se[z]=de.deepCopy(ee[z])}),se},de.deepCopyWith=function(ee,se){function z(x,b,E){var re=se(x,b,E);if(re!==void 0)return re;if(x===null||(0,oe.default)(x)!=="object")return x;if(ne.isBuffer(x))return x.slice();var ae=Array.isArray(x)?[]:{};return Object.keys(x).forEach(function(le){ae[le]=z(x[le],le,x)}),ae}return se?z(ee,"",null):de.deepCopy(ee)}},{"./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(a,he,de){(function(te){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.encoder=void 0;function oe(ne){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return ee==="utf-8"?ne:te.from(ne).toString("latin1")}de.encoder=oe}).call(this)}).call(this,a("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(a,he,de){"use strict";a("core-js/modules/es.array.map.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.formatInventoryConfig=void 0;var te=a("../utils/dataFix"),oe=a("../utils/isObject"),ne=a("../utils/isArray"),ee=a("../utils/formatObjKey");function se(x){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return b&&oe.isObject(x)&&(x=[x]),ne.isArray(x)?x=x.map(z):x=z(x),x}de.formatInventoryConfig=se;function z(x){return te.dataFix(x,{bool:["IsEnabled"]},function(b){var E,re;b.prefix=b.Filter.Prefix,delete b.Filter,b.OSSBucketDestination=b.Destination.OSSBucketDestination,b.OSSBucketDestination.rolename=b.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete b.OSSBucketDestination.RoleArn,b.OSSBucketDestination.bucket=b.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete b.OSSBucketDestination.Bucket,delete b.Destination,b.frequency=b.Schedule.Frequency,delete b.Schedule.Frequency,!((E=b==null?void 0:b.OptionalFields)===null||E===void 0)&&E.Field&&!ne.isArray((re=b.OptionalFields)===null||re===void 0?void 0:re.Field)&&(b.OptionalFields.Field=[b.OptionalFields.Field])}),x=ee.formatObjKey(x,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),x}},{"../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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault");a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.includes.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js");var oe=te(a("@babel/runtime/helpers/typeof"));Object.defineProperty(de,"__esModule",{value:!0}),de.formatObjKey=void 0;function ne(se,z,x){if(se===null||(0,oe.default)(se)!=="object")return se;var b;if(Array.isArray(se)){b=[];for(var E=0;E<se.length;E++)b.push(ne(se[E],z,x))}else b={},Object.keys(se).forEach(function(re){b[ee(re,z,x)]=ne(se[re],z,x)});return b}de.formatObjKey=ne;function ee(se,z,x){return x&&x.exclude&&x.exclude.includes(se)||(z==="firstUpperCase"?se=se.replace(/^./,function(b){return b.toUpperCase()}):z==="firstLowerCase"&&(se=se.replace(/^./,function(b){return b.toLowerCase()}))),se}},{"@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(a,he,de){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.getStrBytesCount=void 0;function te(oe){for(var ne=0,ee=0;ee<oe.length;ee++){var se=oe.charAt(ee);/^[\u00-\uff]$/.test(se)?ne+=1:ne+=2}return ne}de.getStrBytesCount=te},{"core-js/modules/es.regexp.exec.js":300}],63:[function(a,he,de){"use strict";a("core-js/modules/es.object.to-string.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.isArray=void 0,de.isArray=function(te){return Object.prototype.toString.call(te)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(a,he,de){"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.isBlob=void 0;function te(oe){return typeof Blob!="undefined"&&oe instanceof Blob}de.isBlob=te},{}],65:[function(a,he,de){(function(te){(function(){"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.isBuffer=void 0;function oe(ne){return te.isBuffer(ne)}de.isBuffer=oe}).call(this)}).call(this,{isBuffer:a("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(a,he,de){(function(te){(function(){"use strict";a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.includes.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.isDingTalk=void 0;function oe(){return!!(te.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}de.isDingTalk=oe}).call(this)}).call(this,a("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(a,he,de){"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.isFile=void 0,de.isFile=function(te){return typeof File!="undefined"&&te instanceof File}},{}],68:[function(a,he,de){"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.isFunction=void 0,de.isFunction=function(te){return typeof te=="function"}},{}],69:[function(a,he,de){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.isIP=void 0,de.isIP=function(te){var oe=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,ne=/^\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 oe.test(te)||ne.test(te)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(a,he,de){"use strict";a("core-js/modules/es.object.to-string.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.isObject=void 0,de.isObject=function(te){return Object.prototype.toString.call(te)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(a,he,de){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.lowercaseKeyHeader=void 0;var te=a("./isObject");function oe(ne){var ee={};return te.isObject(ne)&&Object.keys(ne).forEach(function(se){ee[se.toLowerCase()]=ne[se]}),ee}de.lowercaseKeyHeader=oe},{"./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(a,he,de){"use strict";a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.obj2xml=void 0;var te=a("./formatObjKey");function oe(ee){return Object.prototype.toString.call(ee).replace(/(.*? |])/g,"").toLowerCase()}function ne(ee,se){var z="";return se&&se.headers&&(z=`<?xml version="1.0" encoding="UTF-8"?>
`),se&&se.firstUpperCase&&(ee=te.formatObjKey(ee,"firstUpperCase")),oe(ee)==="object"?Object.keys(ee).forEach(function(x){oe(ee[x])!=="undefined"&&oe(ee[x])!=="null"&&(oe(ee[x])==="string"||oe(ee[x])==="number"?z+="<".concat(x,">").concat(ee[x],"</").concat(x,">"):oe(ee[x])==="object"?z+="<".concat(x,">").concat(ne(ee[x]),"</").concat(x,">"):oe(ee[x])==="array"?z+=ee[x].map(function(b){return"<".concat(x,">").concat(ne(b),"</").concat(x,">")}).join(""):z+="<".concat(x,">").concat(ee[x].toString(),"</").concat(x,">"))}):z+=ee.toString(),z}de.obj2xml=ne},{"./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(a,he,de){"use strict";a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.array.from.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.symbol.js"),a("core-js/modules/es.symbol.description.js"),a("core-js/modules/es.symbol.iterator.js"),a("core-js/modules/es.array.iterator.js"),a("core-js/modules/web.dom-collections.iterator.js"),a("core-js/modules/es.object.assign.js");function te(se,z){var x=typeof Symbol!="undefined"&&se[Symbol.iterator]||se["@@iterator"];if(!x){if(Array.isArray(se)||(x=oe(se))||z&&se&&typeof se.length=="number"){x&&(se=x);var b=0,E=function(){};return{s:E,n:function(){return b>=se.length?{done:!0}:{done:!1,value:se[b++]}},e:function(ce){throw ce},f:E}}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 re=!0,ae=!1,le;return{s:function(){x=x.call(se)},n:function(){var ce=x.next();return re=ce.done,ce},e:function(ce){ae=!0,le=ce},f:function(){try{!re&&x.return!=null&&x.return()}finally{if(ae)throw le}}}}function oe(se,z){if(se){if(typeof se=="string")return ne(se,z);var x=Object.prototype.toString.call(se).slice(8,-1);if(x==="Object"&&se.constructor&&(x=se.constructor.name),x==="Map"||x==="Set")return Array.from(se);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return ne(se,z)}}function ne(se,z){(z==null||z>se.length)&&(z=se.length);for(var x=0,b=new Array(z);x<z;x++)b[x]=se[x];return b}Object.defineProperty(de,"__esModule",{value:!0}),de.omit=void 0;function ee(se,z){var x=Object.assign({},se),b=te(z),E;try{for(b.s();!(E=b.n()).done;){var re=E.value;delete x[re]}}catch(ae){b.e(ae)}finally{b.f()}return x}de.omit=ee},{"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(a,he,de){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.retry=void 0;function te(oe,ne){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},se=0,z=ee.retryDelay,x=z===void 0?500:z,b=ee.errorHandler,E=b===void 0?function(){return!0}:b,re=function ae(){for(var le=arguments.length,fe=new Array(le),ce=0;ce<le;ce++)fe[ce]=arguments[ce];return new Promise(function(ue,ye){oe.apply(void 0,fe).then(function(Se){se=0,ue(Se)}).catch(function(Se){se<ne&&E(Se)?(se++,setTimeout(function(){ue(ae.apply(void 0,fe))},x)):(se=0,ye(Se))})})};return re}de.retry=te},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(a,he,de){"use strict";var te=function(se){return se&&se.__esModule?se:{default:se}};Object.defineProperty(de,"__esModule",{value:!0}),de.setRegion=void 0;var oe=te(a("url")),ne=a("./checkConfigValid");function ee(se){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ne.checkConfigValid(se,"region");var b=x?"https://":"http://",E=z?"-internal.aliyuncs.com":".aliyuncs.com",re="vpc100-oss-cn-";return se.substr(0,re.length)===re&&(E=".aliyuncs.com"),oe.default.parse(b+se+E)}de.setRegion=ee},{"./checkConfigValid":52,url:472}],76:[function(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.object.assign.js");var ne=te(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.checkCredentials=de.setSTSToken=void 0;var ee=a("./formatObjKey");function se(){return z.apply(this,arguments)}function z(){return z=(0,ne.default)(oe.default.mark(function b(){var E,re;return oe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(this.options||(this.options={}),E=new Date,!this.stsTokenFreshTime){le.next=14;break}if(!(+E-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){le.next=12;break}return this.stsTokenFreshTime=E,le.next=7,this.options.refreshSTSToken();case 7:re=le.sent,re=ee.formatObjKey(re,"firstLowerCase"),re.securityToken&&(re.stsToken=re.securityToken),x(re),Object.assign(this.options,re);case 12:le.next=15;break;case 14:this.stsTokenFreshTime=E;case 15:return le.abrupt("return",null);case 16:case"end":return le.stop()}},b,this)})),z.apply(this,arguments)}de.setSTSToken=se;function x(b){var E=["accessKeySecret","accessKeyId","stsToken"],re=Object.keys(b);E.forEach(function(ae){if(!re.find(function(le){return le===ae}))throw Error("refreshSTSToken must return contains ".concat(ae))})}de.checkCredentials=x},{"./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(a,he,de){function te(ne,ee,se,z,x,b,E){try{var re=ne[b](E),ae=re.value}catch(le){se(le);return}re.done?ee(ae):Promise.resolve(ae).then(z,x)}function oe(ne){return function(){var ee=this,se=arguments;return new Promise(function(z,x){var b=ne.apply(ee,se);function E(ae){te(b,z,x,E,re,"next",ae)}function re(ae){te(b,z,x,E,re,"throw",ae)}E(void 0)})}}he.exports=oe,he.exports.__esModule=!0,he.exports.default=he.exports},{}],78:[function(a,he,de){function te(oe){return oe&&oe.__esModule?oe:{default:oe}}he.exports=te,he.exports.__esModule=!0,he.exports.default=he.exports},{}],79:[function(a,he,de){function te(oe){"@babel/helpers - typeof";return he.exports=te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ne){return typeof ne}:function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},he.exports.__esModule=!0,he.exports.default=he.exports,te(oe)}he.exports=te,he.exports.__esModule=!0,he.exports.default=he.exports},{}],80:[function(a,he,de){he.exports=a("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(a,he,de){he.exports=te,he.exports.HttpsAgent=te;function te(){}},{}],82:[function(a,he,de){(function(te){(function(){"use strict";var oe=a("object-assign");function ne(Oe,ze){if(Oe===ze)return 0;for(var Ge=Oe.length,tt=ze.length,Me=0,We=Math.min(Ge,tt);Me<We;++Me)if(Oe[Me]!==ze[Me]){Ge=Oe[Me],tt=ze[Me];break}return Ge<tt?-1:tt<Ge?1:0}function ee(Oe){return te.Buffer&&typeof te.Buffer.isBuffer=="function"?te.Buffer.isBuffer(Oe):!!(Oe!=null&&Oe._isBuffer)}var se=a("util/"),z=Object.prototype.hasOwnProperty,x=Array.prototype.slice,b=function(){return function(){}.name==="foo"}();function E(Oe){return Object.prototype.toString.call(Oe)}function re(Oe){return ee(Oe)||typeof te.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Oe):Oe?!!(Oe instanceof DataView||Oe.buffer&&Oe.buffer instanceof ArrayBuffer):!1}var ae=he.exports=we,le=/\s*function\s+([^\(\s]*)\s*/;function fe(Oe){if(se.isFunction(Oe)){if(b)return Oe.name;var ze=Oe.toString(),Ge=ze.match(le);return Ge&&Ge[1]}}ae.AssertionError=function(ze){this.name="AssertionError",this.actual=ze.actual,this.expected=ze.expected,this.operator=ze.operator,ze.message?(this.message=ze.message,this.generatedMessage=!1):(this.message=ye(this),this.generatedMessage=!0);var Ge=ze.stackStartFunction||Se;if(Error.captureStackTrace)Error.captureStackTrace(this,Ge);else{var tt=new Error;if(tt.stack){var Me=tt.stack,We=fe(Ge),it=Me.indexOf(`
`+We);if(it>=0){var at=Me.indexOf(`
`,it+1);Me=Me.substring(at+1)}this.stack=Me}}},se.inherits(ae.AssertionError,Error);function ce(Oe,ze){return typeof Oe=="string"?Oe.length<ze?Oe:Oe.slice(0,ze):Oe}function ue(Oe){if(b||!se.isFunction(Oe))return se.inspect(Oe);var ze=fe(Oe),Ge=ze?": "+ze:"";return"[Function"+Ge+"]"}function ye(Oe){return ce(ue(Oe.actual),128)+" "+Oe.operator+" "+ce(ue(Oe.expected),128)}function Se(Oe,ze,Ge,tt,Me){throw new ae.AssertionError({message:Ge,actual:Oe,expected:ze,operator:tt,stackStartFunction:Me})}ae.fail=Se;function we(Oe,ze){Oe||Se(Oe,!0,ze,"==",ae.ok)}ae.ok=we,ae.equal=function(ze,Ge,tt){ze!=Ge&&Se(ze,Ge,tt,"==",ae.equal)},ae.notEqual=function(ze,Ge,tt){ze==Ge&&Se(ze,Ge,tt,"!=",ae.notEqual)},ae.deepEqual=function(ze,Ge,tt){xe(ze,Ge,!1)||Se(ze,Ge,tt,"deepEqual",ae.deepEqual)},ae.deepStrictEqual=function(ze,Ge,tt){xe(ze,Ge,!0)||Se(ze,Ge,tt,"deepStrictEqual",ae.deepStrictEqual)};function xe(Oe,ze,Ge,tt){if(Oe===ze)return!0;if(ee(Oe)&&ee(ze))return ne(Oe,ze)===0;if(se.isDate(Oe)&&se.isDate(ze))return Oe.getTime()===ze.getTime();if(se.isRegExp(Oe)&&se.isRegExp(ze))return Oe.source===ze.source&&Oe.global===ze.global&&Oe.multiline===ze.multiline&&Oe.lastIndex===ze.lastIndex&&Oe.ignoreCase===ze.ignoreCase;if((Oe===null||typeof Oe!="object")&&(ze===null||typeof ze!="object"))return Ge?Oe===ze:Oe==ze;if(re(Oe)&&re(ze)&&E(Oe)===E(ze)&&!(Oe instanceof Float32Array||Oe instanceof Float64Array))return ne(new Uint8Array(Oe.buffer),new Uint8Array(ze.buffer))===0;if(ee(Oe)!==ee(ze))return!1;tt=tt||{actual:[],expected:[]};var Me=tt.actual.indexOf(Oe);return Me!==-1&&Me===tt.expected.indexOf(ze)?!0:(tt.actual.push(Oe),tt.expected.push(ze),_e(Oe,ze,Ge,tt))}function ge(Oe){return Object.prototype.toString.call(Oe)=="[object Arguments]"}function _e(Oe,ze,Ge,tt){if(Oe==null||ze===null||ze===void 0)return!1;if(se.isPrimitive(Oe)||se.isPrimitive(ze))return Oe===ze;if(Ge&&Object.getPrototypeOf(Oe)!==Object.getPrototypeOf(ze))return!1;var Me=ge(Oe),We=ge(ze);if(Me&&!We||!Me&&We)return!1;if(Me)return Oe=x.call(Oe),ze=x.call(ze),xe(Oe,ze,Ge);var it=Pe(Oe),at=Pe(ze),$e,Je;if(it.length!==at.length)return!1;for(it.sort(),at.sort(),Je=it.length-1;Je>=0;Je--)if(it[Je]!==at[Je])return!1;for(Je=it.length-1;Je>=0;Je--)if($e=it[Je],!xe(Oe[$e],ze[$e],Ge,tt))return!1;return!0}ae.notDeepEqual=function(ze,Ge,tt){xe(ze,Ge,!1)&&Se(ze,Ge,tt,"notDeepEqual",ae.notDeepEqual)},ae.notDeepStrictEqual=be;function be(Oe,ze,Ge){xe(Oe,ze,!0)&&Se(Oe,ze,Ge,"notDeepStrictEqual",be)}ae.strictEqual=function(ze,Ge,tt){ze!==Ge&&Se(ze,Ge,tt,"===",ae.strictEqual)},ae.notStrictEqual=function(ze,Ge,tt){ze===Ge&&Se(ze,Ge,tt,"!==",ae.notStrictEqual)};function Ae(Oe,ze){if(!Oe||!ze)return!1;if(Object.prototype.toString.call(ze)=="[object RegExp]")return ze.test(Oe);try{if(Oe instanceof ze)return!0}catch(Ge){}return Error.isPrototypeOf(ze)?!1:ze.call({},Oe)===!0}function Te(Oe){var ze;try{Oe()}catch(Ge){ze=Ge}return ze}function Le(Oe,ze,Ge,tt){var Me;if(typeof ze!="function")throw new TypeError('"block" argument must be a function');typeof Ge=="string"&&(tt=Ge,Ge=null),Me=Te(ze),tt=(Ge&&Ge.name?" ("+Ge.name+").":".")+(tt?" "+tt:"."),Oe&&!Me&&Se(Me,Ge,"Missing expected exception"+tt);var We=typeof tt=="string",it=!Oe&&se.isError(Me),at=!Oe&&Me&&!Ge;if((it&&We&&Ae(Me,Ge)||at)&&Se(Me,Ge,"Got unwanted exception"+tt),Oe&&Me&&Ge&&!Ae(Me,Ge)||!Oe&&Me)throw Me}ae.throws=function(Oe,ze,Ge){Le(!0,Oe,ze,Ge)},ae.doesNotThrow=function(Oe,ze,Ge){Le(!1,Oe,ze,Ge)},ae.ifError=function(Oe){if(Oe)throw Oe};function ke(Oe,ze){Oe||Se(Oe,!0,ze,"==",ke)}ae.strict=oe(ke,ae,{equal:ae.strictEqual,deepEqual:ae.deepStrictEqual,notEqual:ae.notStrictEqual,notDeepEqual:ae.notDeepStrictEqual}),ae.strict.strict=ae.strict;var Pe=Object.keys||function(Oe){var ze=[];for(var Ge in Oe)z.call(Oe,Ge)&&ze.push(Ge);return ze}}).call(this)}).call(this,typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(a,he,de){typeof Object.create=="function"?he.exports=function(oe,ne){oe.super_=ne,oe.prototype=Object.create(ne.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}})}:he.exports=function(oe,ne){oe.super_=ne;var ee=function(){};ee.prototype=ne.prototype,oe.prototype=new ee,oe.prototype.constructor=oe}},{}],84:[function(a,he,de){he.exports=function(oe){return oe&&typeof oe=="object"&&typeof oe.copy=="function"&&typeof oe.fill=="function"&&typeof oe.readUInt8=="function"}},{}],85:[function(a,he,de){(function(te,oe){(function(){var ne=/%[sdj%]/g;de.format=function(at){if(!_e(at)){for(var $e=[],Je=0;Je<arguments.length;Je++)$e.push(z(arguments[Je]));return $e.join(" ")}for(var Je=1,Ye=arguments,Qe=Ye.length,st=String(at).replace(ne,function(mt){if(mt==="%%")return"%";if(Je>=Qe)return mt;switch(mt){case"%s":return String(Ye[Je++]);case"%d":return Number(Ye[Je++]);case"%j":try{return JSON.stringify(Ye[Je++])}catch(ft){return"[Circular]"}default:return mt}}),ot=Ye[Je];Je<Qe;ot=Ye[++Je])we(ot)||!Le(ot)?st+=" "+ot:st+=" "+z(ot);return st},de.deprecate=function(at,$e){if(Ae(oe.process))return function(){return de.deprecate(at,$e).apply(this,arguments)};if(te.noDeprecation===!0)return at;var Je=!1;function Ye(){if(!Je){if(te.throwDeprecation)throw new Error($e);te.traceDeprecation?console.trace($e):console.error($e),Je=!0}return at.apply(this,arguments)}return Ye};var ee={},se;de.debuglog=function(at){if(Ae(se)&&(se=te.env.NODE_DEBUG||""),at=at.toUpperCase(),!ee[at])if(new RegExp("\\b"+at+"\\b","i").test(se)){var $e=te.pid;ee[at]=function(){var Je=de.format.apply(de,arguments);console.error("%s %d: %s",at,$e,Je)}}else ee[at]=function(){};return ee[at]};function z(at,$e){var Je={seen:[],stylize:b};return arguments.length>=3&&(Je.depth=arguments[2]),arguments.length>=4&&(Je.colors=arguments[3]),Se($e)?Je.showHidden=$e:$e&&de._extend(Je,$e),Ae(Je.showHidden)&&(Je.showHidden=!1),Ae(Je.depth)&&(Je.depth=2),Ae(Je.colors)&&(Je.colors=!1),Ae(Je.customInspect)&&(Je.customInspect=!0),Je.colors&&(Je.stylize=x),re(Je,at,Je.depth)}de.inspect=z,z.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]},z.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function x(at,$e){var Je=z.styles[$e];return Je?"\x1B["+z.colors[Je][0]+"m"+at+"\x1B["+z.colors[Je][1]+"m":at}function b(at,$e){return at}function E(at){var $e={};return at.forEach(function(Je,Ye){$e[Je]=!0}),$e}function re(at,$e,Je){if(at.customInspect&&$e&&Oe($e.inspect)&&$e.inspect!==de.inspect&&!($e.constructor&&$e.constructor.prototype===$e)){var Ye=$e.inspect(Je,at);return _e(Ye)||(Ye=re(at,Ye,Je)),Ye}var Qe=ae(at,$e);if(Qe)return Qe;var st=Object.keys($e),ot=E(st);if(at.showHidden&&(st=Object.getOwnPropertyNames($e)),Pe($e)&&(st.indexOf("message")>=0||st.indexOf("description")>=0))return le($e);if(st.length===0){if(Oe($e)){var mt=$e.name?": "+$e.name:"";return at.stylize("[Function"+mt+"]","special")}if(Te($e))return at.stylize(RegExp.prototype.toString.call($e),"regexp");if(ke($e))return at.stylize(Date.prototype.toString.call($e),"date");if(Pe($e))return le($e)}var ft="",qe=!1,Be=["{","}"];if(ye($e)&&(qe=!0,Be=["[","]"]),Oe($e)){var lt=$e.name?": "+$e.name:"";ft=" [Function"+lt+"]"}if(Te($e)&&(ft=" "+RegExp.prototype.toString.call($e)),ke($e)&&(ft=" "+Date.prototype.toUTCString.call($e)),Pe($e)&&(ft=" "+le($e)),st.length===0&&(!qe||$e.length==0))return Be[0]+ft+Be[1];if(Je<0)return Te($e)?at.stylize(RegExp.prototype.toString.call($e),"regexp"):at.stylize("[Object]","special");at.seen.push($e);var Ne;return qe?Ne=fe(at,$e,Je,ot,st):Ne=st.map(function(rt){return ce(at,$e,Je,ot,rt,qe)}),at.seen.pop(),ue(Ne,ft,Be)}function ae(at,$e){if(Ae($e))return at.stylize("undefined","undefined");if(_e($e)){var Je="'"+JSON.stringify($e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return at.stylize(Je,"string")}if(ge($e))return at.stylize(""+$e,"number");if(Se($e))return at.stylize(""+$e,"boolean");if(we($e))return at.stylize("null","null")}function le(at){return"["+Error.prototype.toString.call(at)+"]"}function fe(at,$e,Je,Ye,Qe){for(var st=[],ot=0,mt=$e.length;ot<mt;++ot)it($e,String(ot))?st.push(ce(at,$e,Je,Ye,String(ot),!0)):st.push("");return Qe.forEach(function(ft){ft.match(/^\d+$/)||st.push(ce(at,$e,Je,Ye,ft,!0))}),st}function ce(at,$e,Je,Ye,Qe,st){var ot,mt,ft;if(ft=Object.getOwnPropertyDescriptor($e,Qe)||{value:$e[Qe]},ft.get?ft.set?mt=at.stylize("[Getter/Setter]","special"):mt=at.stylize("[Getter]","special"):ft.set&&(mt=at.stylize("[Setter]","special")),it(Ye,Qe)||(ot="["+Qe+"]"),mt||(at.seen.indexOf(ft.value)<0?(we(Je)?mt=re(at,ft.value,null):mt=re(at,ft.value,Je-1),mt.indexOf(`
`)>-1&&(st?mt=mt.split(`
`).map(function(qe){return" "+qe}).join(`
`).substr(2):mt=`
`+mt.split(`
`).map(function(qe){return" "+qe}).join(`
`))):mt=at.stylize("[Circular]","special")),Ae(ot)){if(st&&Qe.match(/^\d+$/))return mt;ot=JSON.stringify(""+Qe),ot.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ot=ot.substr(1,ot.length-2),ot=at.stylize(ot,"name")):(ot=ot.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ot=at.stylize(ot,"string"))}return ot+": "+mt}function ue(at,$e,Je){var Ye=0,Qe=at.reduce(function(st,ot){return Ye++,ot.indexOf(`
`)>=0&&Ye++,st+ot.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Qe>60?Je[0]+($e===""?"":$e+`
`)+" "+at.join(`,
`)+" "+Je[1]:Je[0]+$e+" "+at.join(", ")+" "+Je[1]}function ye(at){return Array.isArray(at)}de.isArray=ye;function Se(at){return typeof at=="boolean"}de.isBoolean=Se;function we(at){return at===null}de.isNull=we;function xe(at){return at==null}de.isNullOrUndefined=xe;function ge(at){return typeof at=="number"}de.isNumber=ge;function _e(at){return typeof at=="string"}de.isString=_e;function be(at){return typeof at=="symbol"}de.isSymbol=be;function Ae(at){return at===void 0}de.isUndefined=Ae;function Te(at){return Le(at)&&Ge(at)==="[object RegExp]"}de.isRegExp=Te;function Le(at){return typeof at=="object"&&at!==null}de.isObject=Le;function ke(at){return Le(at)&&Ge(at)==="[object Date]"}de.isDate=ke;function Pe(at){return Le(at)&&(Ge(at)==="[object Error]"||at instanceof Error)}de.isError=Pe;function Oe(at){return typeof at=="function"}de.isFunction=Oe;function ze(at){return at===null||typeof at=="boolean"||typeof at=="number"||typeof at=="string"||typeof at=="symbol"||typeof at=="undefined"}de.isPrimitive=ze,de.isBuffer=a("./support/isBuffer");function Ge(at){return Object.prototype.toString.call(at)}function tt(at){return at<10?"0"+at.toString(10):at.toString(10)}var Me=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function We(){var at=new Date,$e=[tt(at.getHours()),tt(at.getMinutes()),tt(at.getSeconds())].join(":");return[at.getDate(),Me[at.getMonth()],$e].join(" ")}de.log=function(){console.log("%s - %s",We(),de.format.apply(de,arguments))},de.inherits=a("inherits"),de._extend=function(at,$e){if(!$e||!Le($e))return at;for(var Je=Object.keys($e),Ye=Je.length;Ye--;)at[Je[Ye]]=$e[Je[Ye]];return at};function it(at,$e){return Object.prototype.hasOwnProperty.call(at,$e)}}).call(this)}).call(this,a("_process"),typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(a,he,de){(function(te){(function(){"use strict";var oe=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ne=typeof globalThis=="undefined"?te:globalThis;he.exports=function(){for(var se=[],z=0;z<oe.length;z++)typeof ne[oe[z]]=="function"&&(se[se.length]=oe[z]);return se}}).call(this)}).call(this,typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(a,he,de){"use strict";de.byteLength=b,de.toByteArray=re,de.fromByteArray=fe;for(var te=[],oe=[],ne=typeof Uint8Array!="undefined"?Uint8Array:Array,ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",se=0,z=ee.length;se<z;++se)te[se]=ee[se],oe[ee.charCodeAt(se)]=se;oe[45]=62,oe[95]=63;function x(ce){var ue=ce.length;if(ue%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ye=ce.indexOf("=");ye===-1&&(ye=ue);var Se=ye===ue?0:4-ye%4;return[ye,Se]}function b(ce){var ue=x(ce),ye=ue[0],Se=ue[1];return(ye+Se)*3/4-Se}function E(ce,ue,ye){return(ue+ye)*3/4-ye}function re(ce){var ue,ye=x(ce),Se=ye[0],we=ye[1],xe=new ne(E(ce,Se,we)),ge=0,_e=we>0?Se-4:Se,be;for(be=0;be<_e;be+=4)ue=oe[ce.charCodeAt(be)]<<18|oe[ce.charCodeAt(be+1)]<<12|oe[ce.charCodeAt(be+2)]<<6|oe[ce.charCodeAt(be+3)],xe[ge++]=ue>>16&255,xe[ge++]=ue>>8&255,xe[ge++]=ue&255;return we===2&&(ue=oe[ce.charCodeAt(be)]<<2|oe[ce.charCodeAt(be+1)]>>4,xe[ge++]=ue&255),we===1&&(ue=oe[ce.charCodeAt(be)]<<10|oe[ce.charCodeAt(be+1)]<<4|oe[ce.charCodeAt(be+2)]>>2,xe[ge++]=ue>>8&255,xe[ge++]=ue&255),xe}function ae(ce){return te[ce>>18&63]+te[ce>>12&63]+te[ce>>6&63]+te[ce&63]}function le(ce,ue,ye){for(var Se,we=[],xe=ue;xe<ye;xe+=3)Se=(ce[xe]<<16&16711680)+(ce[xe+1]<<8&65280)+(ce[xe+2]&255),we.push(ae(Se));return we.join("")}function fe(ce){for(var ue,ye=ce.length,Se=ye%3,we=[],xe=16383,ge=0,_e=ye-Se;ge<_e;ge+=xe)we.push(le(ce,ge,ge+xe>_e?_e:ge+xe));return Se===1?(ue=ce[ye-1],we.push(te[ue>>2]+te[ue<<4&63]+"==")):Se===2&&(ue=(ce[ye-2]<<8)+ce[ye-1],we.push(te[ue>>10]+te[ue>>4&63]+te[ue<<2&63]+"=")),we.join("")}},{}],88:[function(a,he,de){(function(te,oe,ne){typeof he!="undefined"&&he.exports?he.exports=ne():typeof Ce=="function"&&Ce.amd?Ce(oe,ne):te[oe]=ne()})(this,"bowser",function(){var te=!0;function oe(E){function re($e){var Je=E.match($e);return Je&&Je.length>1&&Je[1]||""}function ae($e){var Je=E.match($e);return Je&&Je.length>1&&Je[2]||""}var le=re(/(ipod|iphone|ipad)/i).toLowerCase(),fe=/like android/i.test(E),ce=!fe&&/android/i.test(E),ue=/nexus\s*[0-6]\s*/i.test(E),ye=!ue&&/nexus\s*[0-9]+/i.test(E),Se=/CrOS/.test(E),we=/silk/i.test(E),xe=/sailfish/i.test(E),ge=/tizen/i.test(E),_e=/(web|hpw)(o|0)s/i.test(E),be=/windows phone/i.test(E),Ae=/SamsungBrowser/i.test(E),Te=!be&&/windows/i.test(E),Le=!le&&!we&&/macintosh/i.test(E),ke=!ce&&!xe&&!ge&&!_e&&/linux/i.test(E),Pe=ae(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Oe=re(/version\/(\d+(\.\d+)?)/i),ze=/tablet/i.test(E)&&!/tablet pc/i.test(E),Ge=!ze&&/[^-]mobi/i.test(E),tt=/xbox/i.test(E),Me;/opera/i.test(E)?Me={name:"Opera",opera:te,version:Oe||re(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(E)?Me={name:"Opera",opera:te,version:re(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Oe}:/SamsungBrowser/i.test(E)?Me={name:"Samsung Internet for Android",samsungBrowser:te,version:Oe||re(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(E)?Me={name:"NAVER Whale browser",whale:te,version:re(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(E)?Me={name:"MZ Browser",mzbrowser:te,version:re(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(E)?Me={name:"Opera Coast",coast:te,version:Oe||re(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(E)?Me={name:"Focus",focus:te,version:re(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(E)?Me={name:"Yandex Browser",yandexbrowser:te,version:Oe||re(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(E)?Me={name:"UC Browser",ucbrowser:te,version:re(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(E)?Me={name:"Maxthon",maxthon:te,version:re(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(E)?Me={name:"Epiphany",epiphany:te,version:re(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(E)?Me={name:"Puffin",puffin:te,version:re(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(E)?Me={name:"Sleipnir",sleipnir:te,version:re(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(E)?Me={name:"K-Meleon",kMeleon:te,version:re(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:be?(Me={name:"Windows Phone",osname:"Windows Phone",windowsphone:te},Pe?(Me.msedge=te,Me.version=Pe):(Me.msie=te,Me.version=re(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(E)?Me={name:"Internet Explorer",msie:te,version:re(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Se?Me={name:"Chrome",osname:"Chrome OS",chromeos:te,chromeBook:te,chrome:te,version:re(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(E)?Me={name:"Microsoft Edge",msedge:te,version:Pe}:/vivaldi/i.test(E)?Me={name:"Vivaldi",vivaldi:te,version:re(/vivaldi\/(\d+(\.\d+)?)/i)||Oe}:xe?Me={name:"Sailfish",osname:"Sailfish OS",sailfish:te,version:re(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(E)?Me={name:"SeaMonkey",seamonkey:te,version:re(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(E)?(Me={name:"Firefox",firefox:te,version:re(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(E)&&(Me.firefoxos=te,Me.osname="Firefox OS")):we?Me={name:"Amazon Silk",silk:te,version:re(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(E)?Me={name:"PhantomJS",phantom:te,version:re(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(E)?Me={name:"SlimerJS",slimer:te,version:re(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(E)||/rim\stablet/i.test(E)?Me={name:"BlackBerry",osname:"BlackBerry OS",blackberry:te,version:Oe||re(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:_e?(Me={name:"WebOS",osname:"WebOS",webos:te,version:Oe||re(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(E)&&(Me.touchpad=te)):/bada/i.test(E)?Me={name:"Bada",osname:"Bada",bada:te,version:re(/dolfin\/(\d+(\.\d+)?)/i)}:ge?Me={name:"Tizen",osname:"Tizen",tizen:te,version:re(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Oe}:/qupzilla/i.test(E)?Me={name:"QupZilla",qupzilla:te,version:re(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Oe}:/chromium/i.test(E)?Me={name:"Chromium",chromium:te,version:re(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Oe}:/chrome|crios|crmo/i.test(E)?Me={name:"Chrome",chrome:te,version:re(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ce?Me={name:"Android",version:Oe}:/safari|applewebkit/i.test(E)?(Me={name:"Safari",safari:te},Oe&&(Me.version=Oe)):le?(Me={name:le=="iphone"?"iPhone":le=="ipad"?"iPad":"iPod"},Oe&&(Me.version=Oe)):/googlebot/i.test(E)?Me={name:"Googlebot",googlebot:te,version:re(/googlebot\/(\d+(\.\d+))/i)||Oe}:Me={name:re(/^(.*)\/(.*) /),version:ae(/^(.*)\/(.*) /)},!Me.msedge&&/(apple)?webkit/i.test(E)?(/(apple)?webkit\/537\.36/i.test(E)?(Me.name=Me.name||"Blink",Me.blink=te):(Me.name=Me.name||"Webkit",Me.webkit=te),!Me.version&&Oe&&(Me.version=Oe)):!Me.opera&&/gecko\//i.test(E)&&(Me.name=Me.name||"Gecko",Me.gecko=te,Me.version=Me.version||re(/gecko\/(\d+(\.\d+)?)/i)),!Me.windowsphone&&(ce||Me.silk)?(Me.android=te,Me.osname="Android"):!Me.windowsphone&&le?(Me[le]=te,Me.ios=te,Me.osname="iOS"):Le?(Me.mac=te,Me.osname="macOS"):tt?(Me.xbox=te,Me.osname="Xbox"):Te?(Me.windows=te,Me.osname="Windows"):ke&&(Me.linux=te,Me.osname="Linux");function We($e){switch($e){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 it="";Me.windows?it=We(re(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Me.windowsphone?it=re(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Me.mac?(it=re(/Mac OS X (\d+([_\.\s]\d+)*)/i),it=it.replace(/[_\s]/g,".")):le?(it=re(/os (\d+([_\s]\d+)*) like mac os x/i),it=it.replace(/[_\s]/g,".")):ce?it=re(/android[ \/-](\d+(\.\d+)*)/i):Me.webos?it=re(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Me.blackberry?it=re(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Me.bada?it=re(/bada\/(\d+(\.\d+)*)/i):Me.tizen&&(it=re(/tizen[\/\s](\d+(\.\d+)*)/i)),it&&(Me.osversion=it);var at=!Me.windows&&it.split(".")[0];return ze||ye||le=="ipad"||ce&&(at==3||at>=4&&!Ge)||Me.silk?Me.tablet=te:(Ge||le=="iphone"||le=="ipod"||ce||ue||Me.blackberry||Me.webos||Me.bada)&&(Me.mobile=te),Me.msedge||Me.msie&&Me.version>=10||Me.yandexbrowser&&Me.version>=15||Me.vivaldi&&Me.version>=1||Me.chrome&&Me.version>=20||Me.samsungBrowser&&Me.version>=4||Me.whale&&z([Me.version,"1.0"])===1||Me.mzbrowser&&z([Me.version,"6.0"])===1||Me.focus&&z([Me.version,"1.0"])===1||Me.firefox&&Me.version>=20||Me.safari&&Me.version>=6||Me.opera&&Me.version>=10||Me.ios&&Me.osversion&&Me.osversion.split(".")[0]>=6||Me.blackberry&&Me.version>=10.1||Me.chromium&&Me.version>=20?Me.a=te:Me.msie&&Me.version<10||Me.chrome&&Me.version<20||Me.firefox&&Me.version<20||Me.safari&&Me.version<6||Me.opera&&Me.version<10||Me.ios&&Me.osversion&&Me.osversion.split(".")[0]<6||Me.chromium&&Me.version<20?Me.c=te:Me.x=te,Me}var ne=oe(typeof navigator!="undefined"&&navigator.userAgent||"");ne.test=function(E){for(var re=0;re<E.length;++re){var ae=E[re];if(typeof ae=="string"&&ae in ne)return!0}return!1};function ee(E){return E.split(".").length}function se(E,re){var ae=[],le;if(Array.prototype.map)return Array.prototype.map.call(E,re);for(le=0;le<E.length;le++)ae.push(re(E[le]));return ae}function z(E){for(var re=Math.max(ee(E[0]),ee(E[1])),ae=se(E,function(le){var fe=re-ee(le);return le=le+new Array(fe+1).join(".0"),se(le.split("."),function(ce){return new Array(20-ce.length).join("0")+ce}).reverse()});--re>=0;){if(ae[0][re]>ae[1][re])return 1;if(ae[0][re]===ae[1][re]){if(re===0)return 0}else return-1}}function x(E,re,ae){var le=ne;typeof re=="string"&&(ae=re,re=void 0),re===void 0&&(re=!1),ae&&(le=oe(ae));var fe=""+le.version;for(var ce in E)if(E.hasOwnProperty(ce)&&le[ce]){if(typeof E[ce]!="string")throw new Error("Browser version in the minVersion map should be a string: "+ce+": "+String(E));return z([fe,E[ce]])<0}return re}function b(E,re,ae){return!x(E,re,ae)}return ne.isUnsupportedBrowser=x,ne.compareVersions=z,ne.check=b,ne._detect=oe,ne.detect=oe,ne})},{}],89:[function(a,he,de){},{}],90:[function(a,he,de){(function(te){(function(){"use strict";var oe=a("base64-js"),ne=a("ieee754");de.Buffer=x,de.SlowBuffer=Se,de.INSPECT_MAX_BYTES=50;var ee=2147483647;de.kMaxLength=ee,x.TYPED_ARRAY_SUPPORT=se(),!x.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 se(){try{var Ve=new Uint8Array(1);return Ve.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ve.foo()===42}catch(He){return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function z(Ve){if(Ve>ee)throw new RangeError('The value "'+Ve+'" is invalid for option "size"');var He=new Uint8Array(Ve);return He.__proto__=x.prototype,He}function x(Ve,He,Ze){if(typeof Ve=="number"){if(typeof He=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ae(Ve)}return b(Ve,He,Ze)}typeof Symbol!="undefined"&&Symbol.species!=null&&x[Symbol.species]===x&&Object.defineProperty(x,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),x.poolSize=8192;function b(Ve,He,Ze){if(typeof Ve=="string")return le(Ve,He);if(ArrayBuffer.isView(Ve))return fe(Ve);if(Ve==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ve);if(yt(Ve,ArrayBuffer)||Ve&&yt(Ve.buffer,ArrayBuffer))return ce(Ve,He,Ze);if(typeof Ve=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var et=Ve.valueOf&&Ve.valueOf();if(et!=null&&et!==Ve)return x.from(et,He,Ze);var Ie=ue(Ve);if(Ie)return Ie;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ve[Symbol.toPrimitive]=="function")return x.from(Ve[Symbol.toPrimitive]("string"),He,Ze);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ve)}x.from=function(Ve,He,Ze){return b(Ve,He,Ze)},x.prototype.__proto__=Uint8Array.prototype,x.__proto__=Uint8Array;function E(Ve){if(typeof Ve!="number")throw new TypeError('"size" argument must be of type number');if(Ve<0)throw new RangeError('The value "'+Ve+'" is invalid for option "size"')}function re(Ve,He,Ze){return E(Ve),Ve<=0?z(Ve):He!==void 0?typeof Ze=="string"?z(Ve).fill(He,Ze):z(Ve).fill(He):z(Ve)}x.alloc=function(Ve,He,Ze){return re(Ve,He,Ze)};function ae(Ve){return E(Ve),z(Ve<0?0:ye(Ve)|0)}x.allocUnsafe=function(Ve){return ae(Ve)},x.allocUnsafeSlow=function(Ve){return ae(Ve)};function le(Ve,He){if((typeof He!="string"||He==="")&&(He="utf8"),!x.isEncoding(He))throw new TypeError("Unknown encoding: "+He);var Ze=we(Ve,He)|0,et=z(Ze),Ie=et.write(Ve,He);return Ie!==Ze&&(et=et.slice(0,Ie)),et}function fe(Ve){for(var He=Ve.length<0?0:ye(Ve.length)|0,Ze=z(He),et=0;et<He;et+=1)Ze[et]=Ve[et]&255;return Ze}function ce(Ve,He,Ze){if(He<0||Ve.byteLength<He)throw new RangeError('"offset" is outside of buffer bounds');if(Ve.byteLength<He+(Ze||0))throw new RangeError('"length" is outside of buffer bounds');var et;return He===void 0&&Ze===void 0?et=new Uint8Array(Ve):Ze===void 0?et=new Uint8Array(Ve,He):et=new Uint8Array(Ve,He,Ze),et.__proto__=x.prototype,et}function ue(Ve){if(x.isBuffer(Ve)){var He=ye(Ve.length)|0,Ze=z(He);return Ze.length===0||Ve.copy(Ze,0,0,He),Ze}if(Ve.length!==void 0)return typeof Ve.length!="number"||dt(Ve.length)?z(0):fe(Ve);if(Ve.type==="Buffer"&&Array.isArray(Ve.data))return fe(Ve.data)}function ye(Ve){if(Ve>=ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ee.toString(16)+" bytes");return Ve|0}function Se(Ve){return+Ve!=Ve&&(Ve=0),x.alloc(+Ve)}x.isBuffer=function(He){return He!=null&&He._isBuffer===!0&&He!==x.prototype},x.compare=function(He,Ze){if(yt(He,Uint8Array)&&(He=x.from(He,He.offset,He.byteLength)),yt(Ze,Uint8Array)&&(Ze=x.from(Ze,Ze.offset,Ze.byteLength)),!x.isBuffer(He)||!x.isBuffer(Ze))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(He===Ze)return 0;for(var et=He.length,Ie=Ze.length,je=0,De=Math.min(et,Ie);je<De;++je)if(He[je]!==Ze[je]){et=He[je],Ie=Ze[je];break}return et<Ie?-1:Ie<et?1:0},x.isEncoding=function(He){switch(String(He).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}},x.concat=function(He,Ze){if(!Array.isArray(He))throw new TypeError('"list" argument must be an Array of Buffers');if(He.length===0)return x.alloc(0);var et;if(Ze===void 0)for(Ze=0,et=0;et<He.length;++et)Ze+=He[et].length;var Ie=x.allocUnsafe(Ze),je=0;for(et=0;et<He.length;++et){var De=He[et];if(yt(De,Uint8Array)&&(De=x.from(De)),!x.isBuffer(De))throw new TypeError('"list" argument must be an Array of Buffers');De.copy(Ie,je),je+=De.length}return Ie};function we(Ve,He){if(x.isBuffer(Ve))return Ve.length;if(ArrayBuffer.isView(Ve)||yt(Ve,ArrayBuffer))return Ve.byteLength;if(typeof Ve!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ve);var Ze=Ve.length,et=arguments.length>2&&arguments[2]===!0;if(!et&&Ze===0)return 0;for(var Ie=!1;;)switch(He){case"ascii":case"latin1":case"binary":return Ze;case"utf8":case"utf-8":return Be(Ve).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze*2;case"hex":return Ze>>>1;case"base64":return rt(Ve).length;default:if(Ie)return et?-1:Be(Ve).length;He=(""+He).toLowerCase(),Ie=!0}}x.byteLength=we;function xe(Ve,He,Ze){var et=!1;if((He===void 0||He<0)&&(He=0),He>this.length||((Ze===void 0||Ze>this.length)&&(Ze=this.length),Ze<=0)||(Ze>>>=0,He>>>=0,Ze<=He))return"";for(Ve||(Ve="utf8");;)switch(Ve){case"hex":return at(this,He,Ze);case"utf8":case"utf-8":return Ge(this,He,Ze);case"ascii":return We(this,He,Ze);case"latin1":case"binary":return it(this,He,Ze);case"base64":return ze(this,He,Ze);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $e(this,He,Ze);default:if(et)throw new TypeError("Unknown encoding: "+Ve);Ve=(Ve+"").toLowerCase(),et=!0}}x.prototype._isBuffer=!0;function ge(Ve,He,Ze){var et=Ve[He];Ve[He]=Ve[Ze],Ve[Ze]=et}x.prototype.swap16=function(){var He=this.length;if(He%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ze=0;Ze<He;Ze+=2)ge(this,Ze,Ze+1);return this},x.prototype.swap32=function(){var He=this.length;if(He%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ze=0;Ze<He;Ze+=4)ge(this,Ze,Ze+3),ge(this,Ze+1,Ze+2);return this},x.prototype.swap64=function(){var He=this.length;if(He%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ze=0;Ze<He;Ze+=8)ge(this,Ze,Ze+7),ge(this,Ze+1,Ze+6),ge(this,Ze+2,Ze+5),ge(this,Ze+3,Ze+4);return this},x.prototype.toString=function(){var He=this.length;return He===0?"":arguments.length===0?Ge(this,0,He):xe.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(He){if(!x.isBuffer(He))throw new TypeError("Argument must be a Buffer");return this===He?!0:x.compare(this,He)===0},x.prototype.inspect=function(){var He="",Ze=de.INSPECT_MAX_BYTES;return He=this.toString("hex",0,Ze).replace(/(.{2})/g,"$1 ").trim(),this.length>Ze&&(He+=" ... "),"<Buffer "+He+">"},x.prototype.compare=function(He,Ze,et,Ie,je){if(yt(He,Uint8Array)&&(He=x.from(He,He.offset,He.byteLength)),!x.isBuffer(He))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof He);if(Ze===void 0&&(Ze=0),et===void 0&&(et=He?He.length:0),Ie===void 0&&(Ie=0),je===void 0&&(je=this.length),Ze<0||et>He.length||Ie<0||je>this.length)throw new RangeError("out of range index");if(Ie>=je&&Ze>=et)return 0;if(Ie>=je)return-1;if(Ze>=et)return 1;if(Ze>>>=0,et>>>=0,Ie>>>=0,je>>>=0,this===He)return 0;for(var De=je-Ie,Xe=et-Ze,ct=Math.min(De,Xe),Fe=this.slice(Ie,je),vt=He.slice(Ze,et),wt=0;wt<ct;++wt)if(Fe[wt]!==vt[wt]){De=Fe[wt],Xe=vt[wt];break}return De<Xe?-1:Xe<De?1:0};function _e(Ve,He,Ze,et,Ie){if(Ve.length===0)return-1;if(typeof Ze=="string"?(et=Ze,Ze=0):Ze>2147483647?Ze=2147483647:Ze<-2147483648&&(Ze=-2147483648),Ze=+Ze,dt(Ze)&&(Ze=Ie?0:Ve.length-1),Ze<0&&(Ze=Ve.length+Ze),Ze>=Ve.length){if(Ie)return-1;Ze=Ve.length-1}else if(Ze<0)if(Ie)Ze=0;else return-1;if(typeof He=="string"&&(He=x.from(He,et)),x.isBuffer(He))return He.length===0?-1:be(Ve,He,Ze,et,Ie);if(typeof He=="number")return He=He&255,typeof Uint8Array.prototype.indexOf=="function"?Ie?Uint8Array.prototype.indexOf.call(Ve,He,Ze):Uint8Array.prototype.lastIndexOf.call(Ve,He,Ze):be(Ve,[He],Ze,et,Ie);throw new TypeError("val must be string, number or Buffer")}function be(Ve,He,Ze,et,Ie){var je=1,De=Ve.length,Xe=He.length;if(et!==void 0&&(et=String(et).toLowerCase(),et==="ucs2"||et==="ucs-2"||et==="utf16le"||et==="utf-16le")){if(Ve.length<2||He.length<2)return-1;je=2,De/=2,Xe/=2,Ze/=2}function ct(Tt,xt){return je===1?Tt[xt]:Tt.readUInt16BE(xt*je)}var Fe;if(Ie){var vt=-1;for(Fe=Ze;Fe<De;Fe++)if(ct(Ve,Fe)===ct(He,vt===-1?0:Fe-vt)){if(vt===-1&&(vt=Fe),Fe-vt+1===Xe)return vt*je}else vt!==-1&&(Fe-=Fe-vt),vt=-1}else for(Ze+Xe>De&&(Ze=De-Xe),Fe=Ze;Fe>=0;Fe--){for(var wt=!0,Ot=0;Ot<Xe;Ot++)if(ct(Ve,Fe+Ot)!==ct(He,Ot)){wt=!1;break}if(wt)return Fe}return-1}x.prototype.includes=function(He,Ze,et){return this.indexOf(He,Ze,et)!==-1},x.prototype.indexOf=function(He,Ze,et){return _e(this,He,Ze,et,!0)},x.prototype.lastIndexOf=function(He,Ze,et){return _e(this,He,Ze,et,!1)};function Ae(Ve,He,Ze,et){Ze=Number(Ze)||0;var Ie=Ve.length-Ze;et?(et=Number(et),et>Ie&&(et=Ie)):et=Ie;var je=He.length;et>je/2&&(et=je/2);for(var De=0;De<et;++De){var Xe=parseInt(He.substr(De*2,2),16);if(dt(Xe))return De;Ve[Ze+De]=Xe}return De}function Te(Ve,He,Ze,et){return gt(Be(He,Ve.length-Ze),Ve,Ze,et)}function Le(Ve,He,Ze,et){return gt(lt(He),Ve,Ze,et)}function ke(Ve,He,Ze,et){return Le(Ve,He,Ze,et)}function Pe(Ve,He,Ze,et){return gt(rt(He),Ve,Ze,et)}function Oe(Ve,He,Ze,et){return gt(Ne(He,Ve.length-Ze),Ve,Ze,et)}x.prototype.write=function(He,Ze,et,Ie){if(Ze===void 0)Ie="utf8",et=this.length,Ze=0;else if(et===void 0&&typeof Ze=="string")Ie=Ze,et=this.length,Ze=0;else if(isFinite(Ze))Ze=Ze>>>0,isFinite(et)?(et=et>>>0,Ie===void 0&&(Ie="utf8")):(Ie=et,et=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var je=this.length-Ze;if((et===void 0||et>je)&&(et=je),He.length>0&&(et<0||Ze<0)||Ze>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ie||(Ie="utf8");for(var De=!1;;)switch(Ie){case"hex":return Ae(this,He,Ze,et);case"utf8":case"utf-8":return Te(this,He,Ze,et);case"ascii":return Le(this,He,Ze,et);case"latin1":case"binary":return ke(this,He,Ze,et);case"base64":return Pe(this,He,Ze,et);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oe(this,He,Ze,et);default:if(De)throw new TypeError("Unknown encoding: "+Ie);Ie=(""+Ie).toLowerCase(),De=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ze(Ve,He,Ze){return He===0&&Ze===Ve.length?oe.fromByteArray(Ve):oe.fromByteArray(Ve.slice(He,Ze))}function Ge(Ve,He,Ze){Ze=Math.min(Ve.length,Ze);for(var et=[],Ie=He;Ie<Ze;){var je=Ve[Ie],De=null,Xe=je>239?4:je>223?3:je>191?2:1;if(Ie+Xe<=Ze){var ct,Fe,vt,wt;switch(Xe){case 1:je<128&&(De=je);break;case 2:ct=Ve[Ie+1],(ct&192)===128&&(wt=(je&31)<<6|ct&63,wt>127&&(De=wt));break;case 3:ct=Ve[Ie+1],Fe=Ve[Ie+2],(ct&192)===128&&(Fe&192)===128&&(wt=(je&15)<<12|(ct&63)<<6|Fe&63,wt>2047&&(wt<55296||wt>57343)&&(De=wt));break;case 4:ct=Ve[Ie+1],Fe=Ve[Ie+2],vt=Ve[Ie+3],(ct&192)===128&&(Fe&192)===128&&(vt&192)===128&&(wt=(je&15)<<18|(ct&63)<<12|(Fe&63)<<6|vt&63,wt>65535&&wt<1114112&&(De=wt))}}De===null?(De=65533,Xe=1):De>65535&&(De-=65536,et.push(De>>>10&1023|55296),De=56320|De&1023),et.push(De),Ie+=Xe}return Me(et)}var tt=4096;function Me(Ve){var He=Ve.length;if(He<=tt)return String.fromCharCode.apply(String,Ve);for(var Ze="",et=0;et<He;)Ze+=String.fromCharCode.apply(String,Ve.slice(et,et+=tt));return Ze}function We(Ve,He,Ze){var et="";Ze=Math.min(Ve.length,Ze);for(var Ie=He;Ie<Ze;++Ie)et+=String.fromCharCode(Ve[Ie]&127);return et}function it(Ve,He,Ze){var et="";Ze=Math.min(Ve.length,Ze);for(var Ie=He;Ie<Ze;++Ie)et+=String.fromCharCode(Ve[Ie]);return et}function at(Ve,He,Ze){var et=Ve.length;(!He||He<0)&&(He=0),(!Ze||Ze<0||Ze>et)&&(Ze=et);for(var Ie="",je=He;je<Ze;++je)Ie+=qe(Ve[je]);return Ie}function $e(Ve,He,Ze){for(var et=Ve.slice(He,Ze),Ie="",je=0;je<et.length;je+=2)Ie+=String.fromCharCode(et[je]+et[je+1]*256);return Ie}x.prototype.slice=function(He,Ze){var et=this.length;He=~~He,Ze=Ze===void 0?et:~~Ze,He<0?(He+=et,He<0&&(He=0)):He>et&&(He=et),Ze<0?(Ze+=et,Ze<0&&(Ze=0)):Ze>et&&(Ze=et),Ze<He&&(Ze=He);var Ie=this.subarray(He,Ze);return Ie.__proto__=x.prototype,Ie};function Je(Ve,He,Ze){if(Ve%1!==0||Ve<0)throw new RangeError("offset is not uint");if(Ve+He>Ze)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUIntLE=function(He,Ze,et){He=He>>>0,Ze=Ze>>>0,et||Je(He,Ze,this.length);for(var Ie=this[He],je=1,De=0;++De<Ze&&(je*=256);)Ie+=this[He+De]*je;return Ie},x.prototype.readUIntBE=function(He,Ze,et){He=He>>>0,Ze=Ze>>>0,et||Je(He,Ze,this.length);for(var Ie=this[He+--Ze],je=1;Ze>0&&(je*=256);)Ie+=this[He+--Ze]*je;return Ie},x.prototype.readUInt8=function(He,Ze){return He=He>>>0,Ze||Je(He,1,this.length),this[He]},x.prototype.readUInt16LE=function(He,Ze){return He=He>>>0,Ze||Je(He,2,this.length),this[He]|this[He+1]<<8},x.prototype.readUInt16BE=function(He,Ze){return He=He>>>0,Ze||Je(He,2,this.length),this[He]<<8|this[He+1]},x.prototype.readUInt32LE=function(He,Ze){return He=He>>>0,Ze||Je(He,4,this.length),(this[He]|this[He+1]<<8|this[He+2]<<16)+this[He+3]*16777216},x.prototype.readUInt32BE=function(He,Ze){return He=He>>>0,Ze||Je(He,4,this.length),this[He]*16777216+(this[He+1]<<16|this[He+2]<<8|this[He+3])},x.prototype.readIntLE=function(He,Ze,et){He=He>>>0,Ze=Ze>>>0,et||Je(He,Ze,this.length);for(var Ie=this[He],je=1,De=0;++De<Ze&&(je*=256);)Ie+=this[He+De]*je;return je*=128,Ie>=je&&(Ie-=Math.pow(2,8*Ze)),Ie},x.prototype.readIntBE=function(He,Ze,et){He=He>>>0,Ze=Ze>>>0,et||Je(He,Ze,this.length);for(var Ie=Ze,je=1,De=this[He+--Ie];Ie>0&&(je*=256);)De+=this[He+--Ie]*je;return je*=128,De>=je&&(De-=Math.pow(2,8*Ze)),De},x.prototype.readInt8=function(He,Ze){return He=He>>>0,Ze||Je(He,1,this.length),this[He]&128?(255-this[He]+1)*-1:this[He]},x.prototype.readInt16LE=function(He,Ze){He=He>>>0,Ze||Je(He,2,this.length);var et=this[He]|this[He+1]<<8;return et&32768?et|4294901760:et},x.prototype.readInt16BE=function(He,Ze){He=He>>>0,Ze||Je(He,2,this.length);var et=this[He+1]|this[He]<<8;return et&32768?et|4294901760:et},x.prototype.readInt32LE=function(He,Ze){return He=He>>>0,Ze||Je(He,4,this.length),this[He]|this[He+1]<<8|this[He+2]<<16|this[He+3]<<24},x.prototype.readInt32BE=function(He,Ze){return He=He>>>0,Ze||Je(He,4,this.length),this[He]<<24|this[He+1]<<16|this[He+2]<<8|this[He+3]},x.prototype.readFloatLE=function(He,Ze){return He=He>>>0,Ze||Je(He,4,this.length),ne.read(this,He,!0,23,4)},x.prototype.readFloatBE=function(He,Ze){return He=He>>>0,Ze||Je(He,4,this.length),ne.read(this,He,!1,23,4)},x.prototype.readDoubleLE=function(He,Ze){return He=He>>>0,Ze||Je(He,8,this.length),ne.read(this,He,!0,52,8)},x.prototype.readDoubleBE=function(He,Ze){return He=He>>>0,Ze||Je(He,8,this.length),ne.read(this,He,!1,52,8)};function Ye(Ve,He,Ze,et,Ie,je){if(!x.isBuffer(Ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(He>Ie||He<je)throw new RangeError('"value" argument is out of bounds');if(Ze+et>Ve.length)throw new RangeError("Index out of range")}x.prototype.writeUIntLE=function(He,Ze,et,Ie){if(He=+He,Ze=Ze>>>0,et=et>>>0,!Ie){var je=Math.pow(2,8*et)-1;Ye(this,He,Ze,et,je,0)}var De=1,Xe=0;for(this[Ze]=He&255;++Xe<et&&(De*=256);)this[Ze+Xe]=He/De&255;return Ze+et},x.prototype.writeUIntBE=function(He,Ze,et,Ie){if(He=+He,Ze=Ze>>>0,et=et>>>0,!Ie){var je=Math.pow(2,8*et)-1;Ye(this,He,Ze,et,je,0)}var De=et-1,Xe=1;for(this[Ze+De]=He&255;--De>=0&&(Xe*=256);)this[Ze+De]=He/Xe&255;return Ze+et},x.prototype.writeUInt8=function(He,Ze,et){return He=+He,Ze=Ze>>>0,et||Ye(this,He,Ze,1,255,0),this[Ze]=He&255,Ze+1},x.prototype.writeUInt16LE=function(He,Ze,et){return He=+He,Ze=Ze>>>0,et||Ye(this,He,Ze,2,65535,0),this[Ze]=He&255,this[Ze+1]=He>>>8,Ze+2},x.prototype.writeUInt16BE=function(He,Ze,et){return He=+He,Ze=Ze>>>0,et||Ye(this,He,Ze,2,65535,0),this[Ze]=He>>>8,this[Ze+1]=He&255,Ze+2},x.prototype.writeUInt32LE=function(He,Ze,et){return He=+He,Ze=Ze>>>0,et||Ye(this,He,Ze,4,4294967295,0),this[Ze+3]=He>>>24,this[Ze+2]=He>>>16,this[Ze+1]=He>>>8,this[Ze]=He&255,Ze+4},x.prototype.writeUInt32BE=function(He,Ze,et){return He=+He,Ze=Ze>>>0,et||Ye(this,He,Ze,4,4294967295,0),this[Ze]=He>>>24,this[Ze+1]=He>>>16,this[Ze+2]=He>>>8,this[Ze+3]=He&255,Ze+4},x.prototype.writeIntLE=function(He,Ze,et,Ie){if(He=+He,Ze=Ze>>>0,!Ie){var je=Math.pow(2,8*et-1);Ye(this,He,Ze,et,je-1,-je)}var De=0,Xe=1,ct=0;for(this[Ze]=He&255;++De<et&&(Xe*=256);)He<0&&ct===0&&this[Ze+De-1]!==0&&(ct=1),this[Ze+De]=(He/Xe>>0)-ct&255;return Ze+et},x.prototype.writeIntBE=function(He,Ze,et,Ie){if(He=+He,Ze=Ze>>>0,!Ie){var je=Math.pow(2,8*et-1);Ye(this,He,Ze,et,je-1,-je)}var De=et-1,Xe=1,ct=0;for(this[Ze+De]=He&255;--De>=0&&(Xe*=256);)He<0&&ct===0&&this[Ze+De+1]!==0&&(ct=1),this[Ze+De]=(He/Xe>>0)-ct&255;return Ze+et},x.prototype.writeInt8=function(He,Ze,et){return He=+He,Ze=Ze>>>0,et||Ye(this,He,Ze,1,127,-128),He<0&&(He=255+He+1),this[Ze]=He&255,Ze+1},x.prototype.writeInt16LE=function(He,Ze,et){return He=+He,Ze=Ze>>>0,et||Ye(this,He,Ze,2,32767,-32768),this[Ze]=He&255,this[Ze+1]=He>>>8,Ze+2},x.prototype.writeInt16BE=function(He,Ze,et){return He=+He,Ze=Ze>>>0,et||Ye(this,He,Ze,2,32767,-32768),this[Ze]=He>>>8,this[Ze+1]=He&255,Ze+2},x.prototype.writeInt32LE=function(He,Ze,et){return He=+He,Ze=Ze>>>0,et||Ye(this,He,Ze,4,2147483647,-2147483648),this[Ze]=He&255,this[Ze+1]=He>>>8,this[Ze+2]=He>>>16,this[Ze+3]=He>>>24,Ze+4},x.prototype.writeInt32BE=function(He,Ze,et){return He=+He,Ze=Ze>>>0,et||Ye(this,He,Ze,4,2147483647,-2147483648),He<0&&(He=4294967295+He+1),this[Ze]=He>>>24,this[Ze+1]=He>>>16,this[Ze+2]=He>>>8,this[Ze+3]=He&255,Ze+4};function Qe(Ve,He,Ze,et,Ie,je){if(Ze+et>Ve.length)throw new RangeError("Index out of range");if(Ze<0)throw new RangeError("Index out of range")}function st(Ve,He,Ze,et,Ie){return He=+He,Ze=Ze>>>0,Ie||Qe(Ve,He,Ze,4,34028234663852886e22,-34028234663852886e22),ne.write(Ve,He,Ze,et,23,4),Ze+4}x.prototype.writeFloatLE=function(He,Ze,et){return st(this,He,Ze,!0,et)},x.prototype.writeFloatBE=function(He,Ze,et){return st(this,He,Ze,!1,et)};function ot(Ve,He,Ze,et,Ie){return He=+He,Ze=Ze>>>0,Ie||Qe(Ve,He,Ze,8,17976931348623157e292,-17976931348623157e292),ne.write(Ve,He,Ze,et,52,8),Ze+8}x.prototype.writeDoubleLE=function(He,Ze,et){return ot(this,He,Ze,!0,et)},x.prototype.writeDoubleBE=function(He,Ze,et){return ot(this,He,Ze,!1,et)},x.prototype.copy=function(He,Ze,et,Ie){if(!x.isBuffer(He))throw new TypeError("argument should be a Buffer");if(et||(et=0),!Ie&&Ie!==0&&(Ie=this.length),Ze>=He.length&&(Ze=He.length),Ze||(Ze=0),Ie>0&&Ie<et&&(Ie=et),Ie===et||He.length===0||this.length===0)return 0;if(Ze<0)throw new RangeError("targetStart out of bounds");if(et<0||et>=this.length)throw new RangeError("Index out of range");if(Ie<0)throw new RangeError("sourceEnd out of bounds");Ie>this.length&&(Ie=this.length),He.length-Ze<Ie-et&&(Ie=He.length-Ze+et);var je=Ie-et;if(this===He&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ze,et,Ie);else if(this===He&&et<Ze&&Ze<Ie)for(var De=je-1;De>=0;--De)He[De+Ze]=this[De+et];else Uint8Array.prototype.set.call(He,this.subarray(et,Ie),Ze);return je},x.prototype.fill=function(He,Ze,et,Ie){if(typeof He=="string"){if(typeof Ze=="string"?(Ie=Ze,Ze=0,et=this.length):typeof et=="string"&&(Ie=et,et=this.length),Ie!==void 0&&typeof Ie!="string")throw new TypeError("encoding must be a string");if(typeof Ie=="string"&&!x.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie);if(He.length===1){var je=He.charCodeAt(0);(Ie==="utf8"&&je<128||Ie==="latin1")&&(He=je)}}else typeof He=="number"&&(He=He&255);if(Ze<0||this.length<Ze||this.length<et)throw new RangeError("Out of range index");if(et<=Ze)return this;Ze=Ze>>>0,et=et===void 0?this.length:et>>>0,He||(He=0);var De;if(typeof He=="number")for(De=Ze;De<et;++De)this[De]=He;else{var Xe=x.isBuffer(He)?He:x.from(He,Ie),ct=Xe.length;if(ct===0)throw new TypeError('The value "'+He+'" is invalid for argument "value"');for(De=0;De<et-Ze;++De)this[De+Ze]=Xe[De%ct]}return this};var mt=/[^+/0-9A-Za-z-_]/g;function ft(Ve){if(Ve=Ve.split("=")[0],Ve=Ve.trim().replace(mt,""),Ve.length<2)return"";for(;Ve.length%4!==0;)Ve=Ve+"=";return Ve}function qe(Ve){return Ve<16?"0"+Ve.toString(16):Ve.toString(16)}function Be(Ve,He){He=He||1/0;for(var Ze,et=Ve.length,Ie=null,je=[],De=0;De<et;++De){if(Ze=Ve.charCodeAt(De),Ze>55295&&Ze<57344){if(!Ie){if(Ze>56319){(He-=3)>-1&&je.push(239,191,189);continue}else if(De+1===et){(He-=3)>-1&&je.push(239,191,189);continue}Ie=Ze;continue}if(Ze<56320){(He-=3)>-1&&je.push(239,191,189),Ie=Ze;continue}Ze=(Ie-55296<<10|Ze-56320)+65536}else Ie&&(He-=3)>-1&&je.push(239,191,189);if(Ie=null,Ze<128){if((He-=1)<0)break;je.push(Ze)}else if(Ze<2048){if((He-=2)<0)break;je.push(Ze>>6|192,Ze&63|128)}else if(Ze<65536){if((He-=3)<0)break;je.push(Ze>>12|224,Ze>>6&63|128,Ze&63|128)}else if(Ze<1114112){if((He-=4)<0)break;je.push(Ze>>18|240,Ze>>12&63|128,Ze>>6&63|128,Ze&63|128)}else throw new Error("Invalid code point")}return je}function lt(Ve){for(var He=[],Ze=0;Ze<Ve.length;++Ze)He.push(Ve.charCodeAt(Ze)&255);return He}function Ne(Ve,He){for(var Ze,et,Ie,je=[],De=0;De<Ve.length&&!((He-=2)<0);++De)Ze=Ve.charCodeAt(De),et=Ze>>8,Ie=Ze%256,je.push(Ie),je.push(et);return je}function rt(Ve){return oe.toByteArray(ft(Ve))}function gt(Ve,He,Ze,et){for(var Ie=0;Ie<et&&!(Ie+Ze>=He.length||Ie>=Ve.length);++Ie)He[Ie+Ze]=Ve[Ie];return Ie}function yt(Ve,He){return Ve instanceof He||Ve!=null&&Ve.constructor!=null&&Ve.constructor.name!=null&&Ve.constructor.name===He.name}function dt(Ve){return Ve!==Ve}}).call(this)}).call(this,a("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(a,he,de){he.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(a,he,de){"use strict";var te=a("get-intrinsic"),oe=a("./"),ne=oe(te("String.prototype.indexOf"));he.exports=function(se,z){var x=te(se,!!z);return typeof x=="function"&&ne(se,".prototype.")>-1?oe(x):x}},{"./":93,"get-intrinsic":348}],93:[function(a,he,de){"use strict";var te=a("function-bind"),oe=a("get-intrinsic"),ne=oe("%Function.prototype.apply%"),ee=oe("%Function.prototype.call%"),se=oe("%Reflect.apply%",!0)||te.call(ee,ne),z=oe("%Object.getOwnPropertyDescriptor%",!0),x=oe("%Object.defineProperty%",!0),b=oe("%Math.max%");if(x)try{x({},"a",{value:1})}catch(re){x=null}he.exports=function(ae){var le=se(te,ee,arguments);if(z&&x){var fe=z(le,"length");fe.configurable&&x(le,"length",{value:1+b(0,ae.length-(arguments.length-1))})}return le};var E=function(){return se(te,ne,arguments)};x?x(he.exports,"apply",{value:E}):he.exports.apply=E},{"function-bind":347,"get-intrinsic":348}],94:[function(a,he,de){"use strict";var te=Array.prototype.slice;he.exports=oe;function oe(ee,se){if(!(this instanceof oe))return new oe(ee,se);this.src=ee,this._withAccess=se}oe.prototype.withAccess=function(ee){return this._withAccess=ee!==!1,this},oe.prototype.pick=function(ee){return Array.isArray(ee)||(ee=te.call(arguments)),ee.length&&(this.keys=ee),this},oe.prototype.to=function(ee){if(ee=ee||{},!this.src)return ee;var se=this.keys||Object.keys(this.src);if(!this._withAccess){for(var z=0;z<se.length;z++)x=se[z],ee[x]===void 0&&(ee[x]=this.src[x]);return ee}for(var z=0;z<se.length;z++){var x=se[z];if(ne(ee,x)){var b=this.src.__lookupGetter__(x),E=this.src.__lookupSetter__(x);b&&ee.__defineGetter__(x,b),E&&ee.__defineSetter__(x,E),!b&&!E&&(ee[x]=this.src[x])}}return ee},oe.prototype.toCover=function(ee){for(var se=this.keys||Object.keys(this.src),z=0;z<se.length;z++){var x=se[z];delete ee[x];var b=this.src.__lookupGetter__(x),E=this.src.__lookupSetter__(x);b&&ee.__defineGetter__(x,b),E&&ee.__defineSetter__(x,E),!b&&!E&&(ee[x]=this.src[x])}},oe.prototype.override=oe.prototype.toCover,oe.prototype.and=function(ee){var se={};return this.to(se),this.src=ee,this.to(se),this.src=se,this};function ne(ee,se){return ee[se]===void 0&&ee.__lookupGetter__(se)===void 0&&ee.__lookupSetter__(se)===void 0}},{}],95:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/is-callable"),ne=a("../internals/try-to-string"),ee=te.TypeError;he.exports=function(se){if(oe(se))return se;throw ee(ne(se)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/is-constructor"),ne=a("../internals/try-to-string"),ee=te.TypeError;he.exports=function(se){if(oe(se))return se;throw ee(ne(se)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/is-callable"),ne=te.String,ee=te.TypeError;he.exports=function(se){if(typeof se=="object"||oe(se))return se;throw ee("Can't set "+ne(se)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(a,he,de){var te=a("../internals/well-known-symbol"),oe=a("../internals/object-create"),ne=a("../internals/object-define-property"),ee=te("unscopables"),se=Array.prototype;se[ee]==null&&ne.f(se,ee,{configurable:!0,value:oe(null)}),he.exports=function(z){se[ee][z]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(a,he,de){"use strict";var te=a("../internals/string-multibyte").charAt;he.exports=function(oe,ne,ee){return ne+(ee?te(oe,ne).length:1)}},{"../internals/string-multibyte":239}],100:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/object-is-prototype-of"),ne=te.TypeError;he.exports=function(ee,se){if(oe(se,ee))return ee;throw ne("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/is-object"),ne=te.String,ee=te.TypeError;he.exports=function(se){if(oe(se))return se;throw ee(ne(se)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(a,he,de){he.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-native"),oe=a("../internals/descriptors"),ne=a("../internals/global"),ee=a("../internals/is-callable"),se=a("../internals/is-object"),z=a("../internals/has-own-property"),x=a("../internals/classof"),b=a("../internals/try-to-string"),E=a("../internals/create-non-enumerable-property"),re=a("../internals/redefine"),ae=a("../internals/object-define-property").f,le=a("../internals/object-is-prototype-of"),fe=a("../internals/object-get-prototype-of"),ce=a("../internals/object-set-prototype-of"),ue=a("../internals/well-known-symbol"),ye=a("../internals/uid"),Se=ne.Int8Array,we=Se&&Se.prototype,xe=ne.Uint8ClampedArray,ge=xe&&xe.prototype,_e=Se&&fe(Se),be=we&&fe(we),Ae=Object.prototype,Te=ne.TypeError,Le=ue("toStringTag"),ke=ye("TYPED_ARRAY_TAG"),Pe=ye("TYPED_ARRAY_CONSTRUCTOR"),Oe=te&&!!ce&&x(ne.opera)!=="Opera",ze=!1,Ge,tt,Me,We={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},it={BigInt64Array:8,BigUint64Array:8},at=function(mt){if(!se(mt))return!1;var ft=x(mt);return ft==="DataView"||z(We,ft)||z(it,ft)},$e=function(ot){if(!se(ot))return!1;var mt=x(ot);return z(We,mt)||z(it,mt)},Je=function(ot){if($e(ot))return ot;throw Te("Target is not a typed array")},Ye=function(ot){if(ee(ot)&&(!ce||le(_e,ot)))return ot;throw Te(b(ot)+" is not a typed array constructor")},Qe=function(ot,mt,ft,qe){if(oe){if(ft)for(var Be in We){var lt=ne[Be];if(lt&&z(lt.prototype,ot))try{delete lt.prototype[ot]}catch(Ne){try{lt.prototype[ot]=mt}catch(rt){}}}(!be[ot]||ft)&&re(be,ot,ft?mt:Oe&&we[ot]||mt,qe)}},st=function(ot,mt,ft){var qe,Be;if(oe){if(ce){if(ft){for(qe in We)if(Be=ne[qe],Be&&z(Be,ot))try{delete Be[ot]}catch(lt){}}if(!_e[ot]||ft)try{return re(_e,ot,ft?mt:Oe&&_e[ot]||mt)}catch(lt){}else return}for(qe in We)Be=ne[qe],Be&&(!Be[ot]||ft)&&re(Be,ot,mt)}};for(Ge in We)tt=ne[Ge],Me=tt&&tt.prototype,Me?E(Me,Pe,tt):Oe=!1;for(Ge in it)tt=ne[Ge],Me=tt&&tt.prototype,Me&&E(Me,Pe,tt);if((!Oe||!ee(_e)||_e===Function.prototype)&&(_e=function(){throw Te("Incorrect invocation")},Oe))for(Ge in We)ne[Ge]&&ce(ne[Ge],_e);if((!Oe||!be||be===Ae)&&(be=_e.prototype,Oe))for(Ge in We)ne[Ge]&&ce(ne[Ge].prototype,be);if(Oe&&fe(ge)!==be&&ce(ge,be),oe&&!z(be,Le)){ze=!0,ae(be,Le,{get:function(){return se(this)?this[ke]:void 0}});for(Ge in We)ne[Ge]&&E(ne[Ge],ke,Ge)}he.exports={NATIVE_ARRAY_BUFFER_VIEWS:Oe,TYPED_ARRAY_CONSTRUCTOR:Pe,TYPED_ARRAY_TAG:ze&&ke,aTypedArray:Je,aTypedArrayConstructor:Ye,exportTypedArrayMethod:Qe,exportTypedArrayStaticMethod:st,isView:at,isTypedArray:$e,TypedArray:_e,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(a,he,de){"use strict";var te=a("../internals/global"),oe=a("../internals/function-uncurry-this"),ne=a("../internals/descriptors"),ee=a("../internals/array-buffer-native"),se=a("../internals/function-name"),z=a("../internals/create-non-enumerable-property"),x=a("../internals/redefine-all"),b=a("../internals/fails"),E=a("../internals/an-instance"),re=a("../internals/to-integer-or-infinity"),ae=a("../internals/to-length"),le=a("../internals/to-index"),fe=a("../internals/ieee754"),ce=a("../internals/object-get-prototype-of"),ue=a("../internals/object-set-prototype-of"),ye=a("../internals/object-get-own-property-names").f,Se=a("../internals/object-define-property").f,we=a("../internals/array-fill"),xe=a("../internals/array-slice-simple"),ge=a("../internals/set-to-string-tag"),_e=a("../internals/internal-state"),be=se.PROPER,Ae=se.CONFIGURABLE,Te=_e.get,Le=_e.set,ke="ArrayBuffer",Pe="DataView",Oe="prototype",ze="Wrong length",Ge="Wrong index",tt=te[ke],Me=tt,We=Me&&Me[Oe],it=te[Pe],at=it&&it[Oe],$e=Object.prototype,Je=te.Array,Ye=te.RangeError,Qe=oe(we),st=oe([].reverse),ot=fe.pack,mt=fe.unpack,ft=function(De){return[De&255]},qe=function(De){return[De&255,De>>8&255]},Be=function(De){return[De&255,De>>8&255,De>>16&255,De>>24&255]},lt=function(De){return De[3]<<24|De[2]<<16|De[1]<<8|De[0]},Ne=function(De){return ot(De,23,4)},rt=function(De){return ot(De,52,8)},gt=function(De,Xe){Se(De[Oe],Xe,{get:function(){return Te(this)[Xe]}})},yt=function(De,Xe,ct,Fe){var vt=le(ct),wt=Te(De);if(vt+Xe>wt.byteLength)throw Ye(Ge);var Ot=Te(wt.buffer).bytes,Tt=vt+wt.byteOffset,xt=xe(Ot,Tt,Tt+Xe);return Fe?xt:st(xt)},dt=function(De,Xe,ct,Fe,vt,wt){var Ot=le(ct),Tt=Te(De);if(Ot+Xe>Tt.byteLength)throw Ye(Ge);for(var xt=Te(Tt.buffer).bytes,Nt=Ot+Tt.byteOffset,Rt=Fe(+vt),Ut=0;Ut<Xe;Ut++)xt[Nt+Ut]=Rt[wt?Ut:Xe-Ut-1]};if(!ee)Me=function(Xe){E(this,We);var ct=le(Xe);Le(this,{bytes:Qe(Je(ct),0),byteLength:ct}),ne||(this.byteLength=ct)},We=Me[Oe],it=function(Xe,ct,Fe){E(this,at),E(Xe,We);var vt=Te(Xe).byteLength,wt=re(ct);if(wt<0||wt>vt)throw Ye("Wrong offset");if(Fe=Fe===void 0?vt-wt:ae(Fe),wt+Fe>vt)throw Ye(ze);Le(this,{buffer:Xe,byteLength:Fe,byteOffset:wt}),ne||(this.buffer=Xe,this.byteLength=Fe,this.byteOffset=wt)},at=it[Oe],ne&&(gt(Me,"byteLength"),gt(it,"buffer"),gt(it,"byteLength"),gt(it,"byteOffset")),x(at,{getInt8:function(Xe){return yt(this,1,Xe)[0]<<24>>24},getUint8:function(Xe){return yt(this,1,Xe)[0]},getInt16:function(Xe){var ct=yt(this,2,Xe,arguments.length>1?arguments[1]:void 0);return(ct[1]<<8|ct[0])<<16>>16},getUint16:function(Xe){var ct=yt(this,2,Xe,arguments.length>1?arguments[1]:void 0);return ct[1]<<8|ct[0]},getInt32:function(Xe){return lt(yt(this,4,Xe,arguments.length>1?arguments[1]:void 0))},getUint32:function(Xe){return lt(yt(this,4,Xe,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Xe){return mt(yt(this,4,Xe,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Xe){return mt(yt(this,8,Xe,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Xe,ct){dt(this,1,Xe,ft,ct)},setUint8:function(Xe,ct){dt(this,1,Xe,ft,ct)},setInt16:function(Xe,ct){dt(this,2,Xe,qe,ct,arguments.length>2?arguments[2]:void 0)},setUint16:function(Xe,ct){dt(this,2,Xe,qe,ct,arguments.length>2?arguments[2]:void 0)},setInt32:function(Xe,ct){dt(this,4,Xe,Be,ct,arguments.length>2?arguments[2]:void 0)},setUint32:function(Xe,ct){dt(this,4,Xe,Be,ct,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Xe,ct){dt(this,4,Xe,Ne,ct,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Xe,ct){dt(this,8,Xe,rt,ct,arguments.length>2?arguments[2]:void 0)}});else{var Ve=be&&tt.name!==ke;if(!b(function(){tt(1)})||!b(function(){new tt(-1)})||b(function(){return new tt,new tt(1.5),new tt(NaN),Ve&&!Ae})){Me=function(Xe){return E(this,We),new tt(le(Xe))},Me[Oe]=We;for(var He=ye(tt),Ze=0,et;He.length>Ze;)(et=He[Ze++])in Me||z(Me,et,tt[et]);We.constructor=Me}else Ve&&Ae&&z(tt,"name",ke);ue&&ce(at)!==$e&&ue(at,$e);var Ie=new it(new Me(2)),je=oe(at.setInt8);Ie.setInt8(0,2147483648),Ie.setInt8(1,2147483649),(Ie.getInt8(0)||!Ie.getInt8(1))&&x(at,{setInt8:function(Xe,ct){je(this,Xe,ct<<24>>24)},setUint8:function(Xe,ct){je(this,Xe,ct<<24>>24)}},{unsafe:!0})}ge(Me,ke),ge(it,Pe),he.exports={ArrayBuffer:Me,DataView:it}},{"../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(a,he,de){"use strict";var te=a("../internals/to-object"),oe=a("../internals/to-absolute-index"),ne=a("../internals/length-of-array-like"),ee=Math.min;he.exports=[].copyWithin||function(z,x){var b=te(this),E=ne(b),re=oe(z,E),ae=oe(x,E),le=arguments.length>2?arguments[2]:void 0,fe=ee((le===void 0?E:oe(le,E))-ae,E-re),ce=1;for(ae<re&&re<ae+fe&&(ce=-1,ae+=fe-1,re+=fe-1);fe-- >0;)ae in b?b[re]=b[ae]:delete b[re],re+=ce,ae+=ce;return b}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(a,he,de){"use strict";var te=a("../internals/to-object"),oe=a("../internals/to-absolute-index"),ne=a("../internals/length-of-array-like");he.exports=function(se){for(var z=te(this),x=ne(z),b=arguments.length,E=oe(b>1?arguments[1]:void 0,x),re=b>2?arguments[2]:void 0,ae=re===void 0?x:oe(re,x);ae>E;)z[E++]=se;return z}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(a,he,de){"use strict";var te=a("../internals/array-iteration").forEach,oe=a("../internals/array-method-is-strict"),ne=oe("forEach");he.exports=ne?[].forEach:function(se){return te(this,se,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(a,he,de){var te=a("../internals/length-of-array-like");he.exports=function(oe,ne){for(var ee=0,se=te(ne),z=new oe(se);se>ee;)z[ee]=ne[ee++];return z}},{"../internals/length-of-array-like":188}],109:[function(a,he,de){"use strict";var te=a("../internals/global"),oe=a("../internals/function-bind-context"),ne=a("../internals/function-call"),ee=a("../internals/to-object"),se=a("../internals/call-with-safe-iteration-closing"),z=a("../internals/is-array-iterator-method"),x=a("../internals/is-constructor"),b=a("../internals/length-of-array-like"),E=a("../internals/create-property"),re=a("../internals/get-iterator"),ae=a("../internals/get-iterator-method"),le=te.Array;he.exports=function(ce){var ue=ee(ce),ye=x(this),Se=arguments.length,we=Se>1?arguments[1]:void 0,xe=we!==void 0;xe&&(we=oe(we,Se>2?arguments[2]:void 0));var ge=ae(ue),_e=0,be,Ae,Te,Le,ke,Pe;if(ge&&!(this==le&&z(ge)))for(Le=re(ue,ge),ke=Le.next,Ae=ye?new this:[];!(Te=ne(ke,Le)).done;_e++)Pe=xe?se(Le,we,[Te.value,_e],!0):Te.value,E(Ae,_e,Pe);else for(be=b(ue),Ae=ye?new this(be):le(be);be>_e;_e++)Pe=xe?we(ue[_e],_e):ue[_e],E(Ae,_e,Pe);return Ae.length=_e,Ae}},{"../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(a,he,de){var te=a("../internals/to-indexed-object"),oe=a("../internals/to-absolute-index"),ne=a("../internals/length-of-array-like"),ee=function(se){return function(z,x,b){var E=te(z),re=ne(E),ae=oe(b,re),le;if(se&&x!=x){for(;re>ae;)if(le=E[ae++],le!=le)return!0}else for(;re>ae;ae++)if((se||ae in E)&&E[ae]===x)return se||ae||0;return!se&&-1}};he.exports={includes:ee(!0),indexOf:ee(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(a,he,de){var te=a("../internals/function-bind-context"),oe=a("../internals/function-uncurry-this"),ne=a("../internals/indexed-object"),ee=a("../internals/to-object"),se=a("../internals/length-of-array-like"),z=a("../internals/array-species-create"),x=oe([].push),b=function(E){var re=E==1,ae=E==2,le=E==3,fe=E==4,ce=E==6,ue=E==7,ye=E==5||ce;return function(Se,we,xe,ge){for(var _e=ee(Se),be=ne(_e),Ae=te(we,xe),Te=se(be),Le=0,ke=ge||z,Pe=re?ke(Se,Te):ae||ue?ke(Se,0):void 0,Oe,ze;Te>Le;Le++)if((ye||Le in be)&&(Oe=be[Le],ze=Ae(Oe,Le,_e),E))if(re)Pe[Le]=ze;else if(ze)switch(E){case 3:return!0;case 5:return Oe;case 6:return Le;case 2:x(Pe,Oe)}else switch(E){case 4:return!1;case 7:x(Pe,Oe)}return ce?-1:le||fe?fe:Pe}};he.exports={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6),filterReject:b(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(a,he,de){"use strict";var te=a("../internals/function-apply"),oe=a("../internals/to-indexed-object"),ne=a("../internals/to-integer-or-infinity"),ee=a("../internals/length-of-array-like"),se=a("../internals/array-method-is-strict"),z=Math.min,x=[].lastIndexOf,b=!!x&&1/[1].lastIndexOf(1,-0)<0,E=se("lastIndexOf"),re=b||!E;he.exports=re?function(le){if(b)return te(x,this,arguments)||0;var fe=oe(this),ce=ee(fe),ue=ce-1;for(arguments.length>1&&(ue=z(ue,ne(arguments[1]))),ue<0&&(ue=ce+ue);ue>=0;ue--)if(ue in fe&&fe[ue]===le)return ue||0;return-1}:x},{"../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(a,he,de){var te=a("../internals/fails"),oe=a("../internals/well-known-symbol"),ne=a("../internals/engine-v8-version"),ee=oe("species");he.exports=function(se){return ne>=51||!te(function(){var z=[],x=z.constructor={};return x[ee]=function(){return{foo:1}},z[se](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(a,he,de){"use strict";var te=a("../internals/fails");he.exports=function(oe,ne){var ee=[][oe];return!!ee&&te(function(){ee.call(null,ne||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/a-callable"),ne=a("../internals/to-object"),ee=a("../internals/indexed-object"),se=a("../internals/length-of-array-like"),z=te.TypeError,x=function(b){return function(E,re,ae,le){oe(re);var fe=ne(E),ce=ee(fe),ue=se(fe),ye=b?ue-1:0,Se=b?-1:1;if(ae<2)for(;;){if(ye in ce){le=ce[ye],ye+=Se;break}if(ye+=Se,b?ye<0:ue<=ye)throw z("Reduce of empty array with no initial value")}for(;b?ye>=0:ue>ye;ye+=Se)ye in ce&&(le=re(le,ce[ye],ye,fe));return le}};he.exports={left:x(!1),right:x(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/to-absolute-index"),ne=a("../internals/length-of-array-like"),ee=a("../internals/create-property"),se=te.Array,z=Math.max;he.exports=function(x,b,E){for(var re=ne(x),ae=oe(b,re),le=oe(E===void 0?re:E,re),fe=se(z(le-ae,0)),ce=0;ae<le;ae++,ce++)ee(fe,ce,x[ae]);return fe.length=ce,fe}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(a,he,de){var te=a("../internals/function-uncurry-this");he.exports=te([].slice)},{"../internals/function-uncurry-this":157}],118:[function(a,he,de){var te=a("../internals/array-slice-simple"),oe=Math.floor,ne=function(z,x){var b=z.length,E=oe(b/2);return b<8?ee(z,x):se(z,ne(te(z,0,E),x),ne(te(z,E),x),x)},ee=function(z,x){for(var b=z.length,E=1,re,ae;E<b;){for(ae=E,re=z[E];ae&&x(z[ae-1],re)>0;)z[ae]=z[--ae];ae!==E++&&(z[ae]=re)}return z},se=function(z,x,b,E){for(var re=x.length,ae=b.length,le=0,fe=0;le<re||fe<ae;)z[le+fe]=le<re&&fe<ae?E(x[le],b[fe])<=0?x[le++]:b[fe++]:le<re?x[le++]:b[fe++];return z};he.exports=ne},{"../internals/array-slice-simple":116}],119:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/is-array"),ne=a("../internals/is-constructor"),ee=a("../internals/is-object"),se=a("../internals/well-known-symbol"),z=se("species"),x=te.Array;he.exports=function(b){var E;return oe(b)&&(E=b.constructor,ne(E)&&(E===x||oe(E.prototype))?E=void 0:ee(E)&&(E=E[z],E===null&&(E=void 0))),E===void 0?x:E}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(a,he,de){var te=a("../internals/array-species-constructor");he.exports=function(oe,ne){return new(te(oe))(ne===0?0:ne)}},{"../internals/array-species-constructor":119}],121:[function(a,he,de){var te=a("../internals/an-object"),oe=a("../internals/iterator-close");he.exports=function(ne,ee,se,z){try{return z?ee(te(se)[0],se[1]):ee(se)}catch(x){oe(ne,"throw",x)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(a,he,de){var te=a("../internals/well-known-symbol"),oe=te("iterator"),ne=!1;try{var ee=0,se={next:function(){return{done:!!ee++}},return:function(){ne=!0}};se[oe]=function(){return this},Array.from(se,function(){throw 2})}catch(z){}he.exports=function(z,x){if(!x&&!ne)return!1;var b=!1;try{var E={};E[oe]=function(){return{next:function(){return{done:b=!0}}}},z(E)}catch(re){}return b}},{"../internals/well-known-symbol":268}],123:[function(a,he,de){var te=a("../internals/function-uncurry-this"),oe=te({}.toString),ne=te("".slice);he.exports=function(ee){return ne(oe(ee),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/to-string-tag-support"),ne=a("../internals/is-callable"),ee=a("../internals/classof-raw"),se=a("../internals/well-known-symbol"),z=se("toStringTag"),x=te.Object,b=ee(function(){return arguments}())=="Arguments",E=function(re,ae){try{return re[ae]}catch(le){}};he.exports=oe?ee:function(re){var ae,le,fe;return re===void 0?"Undefined":re===null?"Null":typeof(le=E(ae=x(re),z))=="string"?le:b?ee(ae):(fe=ee(ae))=="Object"&&ne(ae.callee)?"Arguments":fe}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(a,he,de){var te=a("../internals/has-own-property"),oe=a("../internals/own-keys"),ne=a("../internals/object-get-own-property-descriptor"),ee=a("../internals/object-define-property");he.exports=function(se,z,x){for(var b=oe(z),E=ee.f,re=ne.f,ae=0;ae<b.length;ae++){var le=b[ae];!te(se,le)&&!(x&&te(x,le))&&E(se,le,re(z,le))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(a,he,de){var te=a("../internals/well-known-symbol"),oe=te("match");he.exports=function(ne){var ee=/./;try{"/./"[ne](ee)}catch(se){try{return ee[oe]=!1,"/./"[ne](ee)}catch(z){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(a,he,de){var te=a("../internals/fails");he.exports=!te(function(){function oe(){}return oe.prototype.constructor=null,Object.getPrototypeOf(new oe)!==oe.prototype})},{"../internals/fails":150}],128:[function(a,he,de){"use strict";var te=a("../internals/iterators-core").IteratorPrototype,oe=a("../internals/object-create"),ne=a("../internals/create-property-descriptor"),ee=a("../internals/set-to-string-tag"),se=a("../internals/iterators"),z=function(){return this};he.exports=function(x,b,E,re){var ae=b+" Iterator";return x.prototype=oe(te,{next:ne(+!re,E)}),ee(x,ae,!1,!0),se[ae]=z,x}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(a,he,de){var te=a("../internals/descriptors"),oe=a("../internals/object-define-property"),ne=a("../internals/create-property-descriptor");he.exports=te?function(ee,se,z){return oe.f(ee,se,ne(1,z))}:function(ee,se,z){return ee[se]=z,ee}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(a,he,de){he.exports=function(te,oe){return{enumerable:!(te&1),configurable:!(te&2),writable:!(te&4),value:oe}}},{}],131:[function(a,he,de){"use strict";var te=a("../internals/to-property-key"),oe=a("../internals/object-define-property"),ne=a("../internals/create-property-descriptor");he.exports=function(ee,se,z){var x=te(se);x in ee?oe.f(ee,x,ne(0,z)):ee[x]=z}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/function-call"),ne=a("../internals/is-pure"),ee=a("../internals/function-name"),se=a("../internals/is-callable"),z=a("../internals/create-iterator-constructor"),x=a("../internals/object-get-prototype-of"),b=a("../internals/object-set-prototype-of"),E=a("../internals/set-to-string-tag"),re=a("../internals/create-non-enumerable-property"),ae=a("../internals/redefine"),le=a("../internals/well-known-symbol"),fe=a("../internals/iterators"),ce=a("../internals/iterators-core"),ue=ee.PROPER,ye=ee.CONFIGURABLE,Se=ce.IteratorPrototype,we=ce.BUGGY_SAFARI_ITERATORS,xe=le("iterator"),ge="keys",_e="values",be="entries",Ae=function(){return this};he.exports=function(Te,Le,ke,Pe,Oe,ze,Ge){z(ke,Le,Pe);var tt=function(ot){if(ot===Oe&&$e)return $e;if(!we&&ot in it)return it[ot];switch(ot){case ge:return function(){return new ke(this,ot)};case _e:return function(){return new ke(this,ot)};case be:return function(){return new ke(this,ot)}}return function(){return new ke(this)}},Me=Le+" Iterator",We=!1,it=Te.prototype,at=it[xe]||it["@@iterator"]||Oe&&it[Oe],$e=!we&&at||tt(Oe),Je=Le=="Array"&&it.entries||at,Ye,Qe,st;if(Je&&(Ye=x(Je.call(new Te)),Ye!==Object.prototype&&Ye.next&&(!ne&&x(Ye)!==Se&&(b?b(Ye,Se):se(Ye[xe])||ae(Ye,xe,Ae)),E(Ye,Me,!0,!0),ne&&(fe[Me]=Ae))),ue&&Oe==_e&&at&&at.name!==_e&&(!ne&&ye?re(it,"name",_e):(We=!0,$e=function(){return oe(at,this)})),Oe)if(Qe={values:tt(_e),keys:ze?$e:tt(ge),entries:tt(be)},Ge)for(st in Qe)(we||We||!(st in it))&&ae(it,st,Qe[st]);else te({target:Le,proto:!0,forced:we||We},Qe);return(!ne||Ge)&&it[xe]!==$e&&ae(it,xe,$e,{name:Oe}),fe[Le]=$e,Qe}},{"../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(a,he,de){var te=a("../internals/path"),oe=a("../internals/has-own-property"),ne=a("../internals/well-known-symbol-wrapped"),ee=a("../internals/object-define-property").f;he.exports=function(se){var z=te.Symbol||(te.Symbol={});oe(z,se)||ee(z,se,{value:ne.f(se)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(a,he,de){var te=a("../internals/fails");he.exports=!te(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/is-object"),ne=te.document,ee=oe(ne)&&oe(ne.createElement);he.exports=function(se){return ee?ne.createElement(se):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(a,he,de){he.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(a,he,de){var te=a("../internals/document-create-element"),oe=te("span").classList,ne=oe&&oe.constructor&&oe.constructor.prototype;he.exports=ne===Object.prototype?void 0:ne},{"../internals/document-create-element":135}],138:[function(a,he,de){var te=a("../internals/engine-user-agent"),oe=te.match(/firefox\/(\d+)/i);he.exports=!!oe&&+oe[1]},{"../internals/engine-user-agent":145}],139:[function(a,he,de){he.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(a,he,de){var te=a("../internals/engine-user-agent");he.exports=/MSIE|Trident/.test(te)},{"../internals/engine-user-agent":145}],141:[function(a,he,de){var te=a("../internals/engine-user-agent"),oe=a("../internals/global");he.exports=/ipad|iphone|ipod/i.test(te)&&oe.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(a,he,de){var te=a("../internals/engine-user-agent");he.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(te)},{"../internals/engine-user-agent":145}],143:[function(a,he,de){var te=a("../internals/classof-raw"),oe=a("../internals/global");he.exports=te(oe.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(a,he,de){var te=a("../internals/engine-user-agent");he.exports=/web0s(?!.*chrome)/i.test(te)},{"../internals/engine-user-agent":145}],145:[function(a,he,de){var te=a("../internals/get-built-in");he.exports=te("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/engine-user-agent"),ne=te.process,ee=te.Deno,se=ne&&ne.versions||ee&&ee.version,z=se&&se.v8,x,b;z&&(x=z.split("."),b=x[0]>0&&x[0]<4?1:+(x[0]+x[1])),!b&&oe&&(x=oe.match(/Edge\/(\d+)/),(!x||x[1]>=74)&&(x=oe.match(/Chrome\/(\d+)/),x&&(b=+x[1]))),he.exports=b},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(a,he,de){var te=a("../internals/engine-user-agent"),oe=te.match(/AppleWebKit\/(\d+)\./);he.exports=!!oe&&+oe[1]},{"../internals/engine-user-agent":145}],148:[function(a,he,de){he.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/object-get-own-property-descriptor").f,ne=a("../internals/create-non-enumerable-property"),ee=a("../internals/redefine"),se=a("../internals/set-global"),z=a("../internals/copy-constructor-properties"),x=a("../internals/is-forced");he.exports=function(b,E){var re=b.target,ae=b.global,le=b.stat,fe,ce,ue,ye,Se,we;if(ae?ce=te:le?ce=te[re]||se(re,{}):ce=(te[re]||{}).prototype,ce)for(ue in E){if(Se=E[ue],b.noTargetGet?(we=oe(ce,ue),ye=we&&we.value):ye=ce[ue],fe=x(ae?ue:re+(le?".":"#")+ue,b.forced),!fe&&ye!==void 0){if(typeof Se==typeof ye)continue;z(Se,ye)}(b.sham||ye&&ye.sham)&&ne(Se,"sham",!0),ee(ce,ue,Se,b)}}},{"../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(a,he,de){he.exports=function(te){try{return!!te()}catch(oe){return!0}}},{}],151:[function(a,he,de){"use strict";a("../modules/es.regexp.exec");var te=a("../internals/function-uncurry-this"),oe=a("../internals/redefine"),ne=a("../internals/regexp-exec"),ee=a("../internals/fails"),se=a("../internals/well-known-symbol"),z=a("../internals/create-non-enumerable-property"),x=se("species"),b=RegExp.prototype;he.exports=function(E,re,ae,le){var fe=se(E),ce=!ee(function(){var we={};return we[fe]=function(){return 7},""[E](we)!=7}),ue=ce&&!ee(function(){var we=!1,xe=/a/;return E==="split"&&(xe={},xe.constructor={},xe.constructor[x]=function(){return xe},xe.flags="",xe[fe]=/./[fe]),xe.exec=function(){return we=!0,null},xe[fe](""),!we});if(!ce||!ue||ae){var ye=te(/./[fe]),Se=re(fe,""[E],function(we,xe,ge,_e,be){var Ae=te(we),Te=xe.exec;return Te===ne||Te===b.exec?ce&&!be?{done:!0,value:ye(xe,ge,_e)}:{done:!0,value:Ae(ge,xe,_e)}:{done:!1}});oe(String.prototype,E,Se[0]),oe(b,fe,Se[1])}le&&z(b[fe],"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(a,he,de){var te=a("../internals/function-bind-native"),oe=Function.prototype,ne=oe.apply,ee=oe.call;he.exports=typeof Reflect=="object"&&Reflect.apply||(te?ee.bind(ne):function(){return ee.apply(ne,arguments)})},{"../internals/function-bind-native":154}],153:[function(a,he,de){var te=a("../internals/function-uncurry-this"),oe=a("../internals/a-callable"),ne=a("../internals/function-bind-native"),ee=te(te.bind);he.exports=function(se,z){return oe(se),z===void 0?se:ne?ee(se,z):function(){return se.apply(z,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(a,he,de){var te=a("../internals/fails");he.exports=!te(function(){var oe=function(){}.bind();return typeof oe!="function"||oe.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(a,he,de){var te=a("../internals/function-bind-native"),oe=Function.prototype.call;he.exports=te?oe.bind(oe):function(){return oe.apply(oe,arguments)}},{"../internals/function-bind-native":154}],156:[function(a,he,de){var te=a("../internals/descriptors"),oe=a("../internals/has-own-property"),ne=Function.prototype,ee=te&&Object.getOwnPropertyDescriptor,se=oe(ne,"name"),z=se&&function(){}.name==="something",x=se&&(!te||te&&ee(ne,"name").configurable);he.exports={EXISTS:se,PROPER:z,CONFIGURABLE:x}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(a,he,de){var te=a("../internals/function-bind-native"),oe=Function.prototype,ne=oe.bind,ee=oe.call,se=te&&ne.bind(ee,ee);he.exports=te?function(z){return z&&se(z)}:function(z){return z&&function(){return ee.apply(z,arguments)}}},{"../internals/function-bind-native":154}],158:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/is-callable"),ne=function(ee){return oe(ee)?ee:void 0};he.exports=function(ee,se){return arguments.length<2?ne(te[ee]):te[ee]&&te[ee][se]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(a,he,de){var te=a("../internals/classof"),oe=a("../internals/get-method"),ne=a("../internals/iterators"),ee=a("../internals/well-known-symbol"),se=ee("iterator");he.exports=function(z){if(z!=null)return oe(z,se)||oe(z,"@@iterator")||ne[te(z)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/function-call"),ne=a("../internals/a-callable"),ee=a("../internals/an-object"),se=a("../internals/try-to-string"),z=a("../internals/get-iterator-method"),x=te.TypeError;he.exports=function(b,E){var re=arguments.length<2?z(b):E;if(ne(re))return ee(oe(re,b));throw x(se(b)+" 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(a,he,de){var te=a("../internals/a-callable");he.exports=function(oe,ne){var ee=oe[ne];return ee==null?void 0:te(ee)}},{"../internals/a-callable":95}],162:[function(a,he,de){var te=a("../internals/function-uncurry-this"),oe=a("../internals/to-object"),ne=Math.floor,ee=te("".charAt),se=te("".replace),z=te("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,b=/\$([$&'`]|\d{1,2})/g;he.exports=function(E,re,ae,le,fe,ce){var ue=ae+E.length,ye=le.length,Se=b;return fe!==void 0&&(fe=oe(fe),Se=x),se(ce,Se,function(we,xe){var ge;switch(ee(xe,0)){case"$":return"$";case"&":return E;case"`":return z(re,0,ae);case"'":return z(re,ue);case"<":ge=fe[z(xe,1,-1)];break;default:var _e=+xe;if(_e===0)return we;if(_e>ye){var be=ne(_e/10);return be===0?we:be<=ye?le[be-1]===void 0?ee(xe,1):le[be-1]+ee(xe,1):we}ge=le[_e-1]}return ge===void 0?"":ge})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(a,he,de){(function(te){(function(){var oe=function(ne){return ne&&ne.Math==Math&&ne};he.exports=oe(typeof globalThis=="object"&&globalThis)||oe(typeof window=="object"&&window)||oe(typeof self=="object"&&self)||oe(typeof te=="object"&&te)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(a,he,de){var te=a("../internals/function-uncurry-this"),oe=a("../internals/to-object"),ne=te({}.hasOwnProperty);he.exports=Object.hasOwn||function(se,z){return ne(oe(se),z)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(a,he,de){he.exports={}},{}],166:[function(a,he,de){var te=a("../internals/global");he.exports=function(oe,ne){var ee=te.console;ee&&ee.error&&(arguments.length==1?ee.error(oe):ee.error(oe,ne))}},{"../internals/global":163}],167:[function(a,he,de){var te=a("../internals/get-built-in");he.exports=te("document","documentElement")},{"../internals/get-built-in":158}],168:[function(a,he,de){var te=a("../internals/descriptors"),oe=a("../internals/fails"),ne=a("../internals/document-create-element");he.exports=!te&&!oe(function(){return Object.defineProperty(ne("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(a,he,de){var te=a("../internals/global"),oe=te.Array,ne=Math.abs,ee=Math.pow,se=Math.floor,z=Math.log,x=Math.LN2,b=function(re,ae,le){var fe=oe(le),ce=le*8-ae-1,ue=(1<<ce)-1,ye=ue>>1,Se=ae===23?ee(2,-24)-ee(2,-77):0,we=re<0||re===0&&1/re<0?1:0,xe=0,ge,_e,be;for(re=ne(re),re!=re||re===1/0?(_e=re!=re?1:0,ge=ue):(ge=se(z(re)/x),be=ee(2,-ge),re*be<1&&(ge--,be*=2),ge+ye>=1?re+=Se/be:re+=Se*ee(2,1-ye),re*be>=2&&(ge++,be/=2),ge+ye>=ue?(_e=0,ge=ue):ge+ye>=1?(_e=(re*be-1)*ee(2,ae),ge=ge+ye):(_e=re*ee(2,ye-1)*ee(2,ae),ge=0));ae>=8;)fe[xe++]=_e&255,_e/=256,ae-=8;for(ge=ge<<ae|_e,ce+=ae;ce>0;)fe[xe++]=ge&255,ge/=256,ce-=8;return fe[--xe]|=we*128,fe},E=function(re,ae){var le=re.length,fe=le*8-ae-1,ce=(1<<fe)-1,ue=ce>>1,ye=fe-7,Se=le-1,we=re[Se--],xe=we&127,ge;for(we>>=7;ye>0;)xe=xe*256+re[Se--],ye-=8;for(ge=xe&(1<<-ye)-1,xe>>=-ye,ye+=ae;ye>0;)ge=ge*256+re[Se--],ye-=8;if(xe===0)xe=1-ue;else{if(xe===ce)return ge?NaN:we?-1/0:1/0;ge=ge+ee(2,ae),xe=xe-ue}return(we?-1:1)*ge*ee(2,xe-ae)};he.exports={pack:b,unpack:E}},{"../internals/global":163}],170:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/function-uncurry-this"),ne=a("../internals/fails"),ee=a("../internals/classof-raw"),se=te.Object,z=oe("".split);he.exports=ne(function(){return!se("z").propertyIsEnumerable(0)})?function(x){return ee(x)=="String"?z(x,""):se(x)}:se},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(a,he,de){var te=a("../internals/is-callable"),oe=a("../internals/is-object"),ne=a("../internals/object-set-prototype-of");he.exports=function(ee,se,z){var x,b;return ne&&te(x=se.constructor)&&x!==z&&oe(b=x.prototype)&&b!==z.prototype&&ne(ee,b),ee}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(a,he,de){var te=a("../internals/function-uncurry-this"),oe=a("../internals/is-callable"),ne=a("../internals/shared-store"),ee=te(Function.toString);oe(ne.inspectSource)||(ne.inspectSource=function(se){return ee(se)}),he.exports=ne.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(a,he,de){var te=a("../internals/native-weak-map"),oe=a("../internals/global"),ne=a("../internals/function-uncurry-this"),ee=a("../internals/is-object"),se=a("../internals/create-non-enumerable-property"),z=a("../internals/has-own-property"),x=a("../internals/shared-store"),b=a("../internals/shared-key"),E=a("../internals/hidden-keys"),re="Object already initialized",ae=oe.TypeError,le=oe.WeakMap,fe,ce,ue,ye=function(Ae){return ue(Ae)?ce(Ae):fe(Ae,{})},Se=function(Ae){return function(Te){var Le;if(!ee(Te)||(Le=ce(Te)).type!==Ae)throw ae("Incompatible receiver, "+Ae+" required");return Le}};if(te||x.state){var we=x.state||(x.state=new le),xe=ne(we.get),ge=ne(we.has),_e=ne(we.set);fe=function(Ae,Te){if(ge(we,Ae))throw new ae(re);return Te.facade=Ae,_e(we,Ae,Te),Te},ce=function(Ae){return xe(we,Ae)||{}},ue=function(Ae){return ge(we,Ae)}}else{var be=b("state");E[be]=!0,fe=function(Ae,Te){if(z(Ae,be))throw new ae(re);return Te.facade=Ae,se(Ae,be,Te),Te},ce=function(Ae){return z(Ae,be)?Ae[be]:{}},ue=function(Ae){return z(Ae,be)}}he.exports={set:fe,get:ce,has:ue,enforce:ye,getterFor:Se}},{"../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(a,he,de){var te=a("../internals/well-known-symbol"),oe=a("../internals/iterators"),ne=te("iterator"),ee=Array.prototype;he.exports=function(se){return se!==void 0&&(oe.Array===se||ee[ne]===se)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(a,he,de){var te=a("../internals/classof-raw");he.exports=Array.isArray||function(ne){return te(ne)=="Array"}},{"../internals/classof-raw":123}],176:[function(a,he,de){he.exports=function(te){return typeof te=="function"}},{}],177:[function(a,he,de){var te=a("../internals/function-uncurry-this"),oe=a("../internals/fails"),ne=a("../internals/is-callable"),ee=a("../internals/classof"),se=a("../internals/get-built-in"),z=a("../internals/inspect-source"),x=function(){},b=[],E=se("Reflect","construct"),re=/^\s*(?:class|function)\b/,ae=te(re.exec),le=!re.exec(x),fe=function(ye){if(!ne(ye))return!1;try{return E(x,b,ye),!0}catch(Se){return!1}},ce=function(ye){if(!ne(ye))return!1;switch(ee(ye)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return le||!!ae(re,z(ye))}catch(Se){return!0}};ce.sham=!0,he.exports=!E||oe(function(){var ue;return fe(fe.call)||!fe(Object)||!fe(function(){ue=!0})||ue})?ce:fe},{"../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(a,he,de){var te=a("../internals/fails"),oe=a("../internals/is-callable"),ne=/#|\.prototype\./,ee=function(E,re){var ae=z[se(E)];return ae==b?!0:ae==x?!1:oe(re)?te(re):!!re},se=ee.normalize=function(E){return String(E).replace(ne,".").toLowerCase()},z=ee.data={},x=ee.NATIVE="N",b=ee.POLYFILL="P";he.exports=ee},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(a,he,de){var te=a("../internals/is-object"),oe=Math.floor;he.exports=Number.isInteger||function(ee){return!te(ee)&&isFinite(ee)&&oe(ee)===ee}},{"../internals/is-object":180}],180:[function(a,he,de){var te=a("../internals/is-callable");he.exports=function(oe){return typeof oe=="object"?oe!==null:te(oe)}},{"../internals/is-callable":176}],181:[function(a,he,de){he.exports=!1},{}],182:[function(a,he,de){var te=a("../internals/is-object"),oe=a("../internals/classof-raw"),ne=a("../internals/well-known-symbol"),ee=ne("match");he.exports=function(se){var z;return te(se)&&((z=se[ee])!==void 0?!!z:oe(se)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/get-built-in"),ne=a("../internals/is-callable"),ee=a("../internals/object-is-prototype-of"),se=a("../internals/use-symbol-as-uid"),z=te.Object;he.exports=se?function(x){return typeof x=="symbol"}:function(x){var b=oe("Symbol");return ne(b)&&ee(b.prototype,z(x))}},{"../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(a,he,de){var te=a("../internals/global"),oe=a("../internals/function-bind-context"),ne=a("../internals/function-call"),ee=a("../internals/an-object"),se=a("../internals/try-to-string"),z=a("../internals/is-array-iterator-method"),x=a("../internals/length-of-array-like"),b=a("../internals/object-is-prototype-of"),E=a("../internals/get-iterator"),re=a("../internals/get-iterator-method"),ae=a("../internals/iterator-close"),le=te.TypeError,fe=function(ue,ye){this.stopped=ue,this.result=ye},ce=fe.prototype;he.exports=function(ue,ye,Se){var we=Se&&Se.that,xe=!!(Se&&Se.AS_ENTRIES),ge=!!(Se&&Se.IS_ITERATOR),_e=!!(Se&&Se.INTERRUPTED),be=oe(ye,we),Ae,Te,Le,ke,Pe,Oe,ze,Ge=function(Me){return Ae&&ae(Ae,"normal",Me),new fe(!0,Me)},tt=function(Me){return xe?(ee(Me),_e?be(Me[0],Me[1],Ge):be(Me[0],Me[1])):_e?be(Me,Ge):be(Me)};if(ge)Ae=ue;else{if(Te=re(ue),!Te)throw le(se(ue)+" is not iterable");if(z(Te)){for(Le=0,ke=x(ue);ke>Le;Le++)if(Pe=tt(ue[Le]),Pe&&b(ce,Pe))return Pe;return new fe(!1)}Ae=E(ue,Te)}for(Oe=Ae.next;!(ze=ne(Oe,Ae)).done;){try{Pe=tt(ze.value)}catch(Me){ae(Ae,"throw",Me)}if(typeof Pe=="object"&&Pe&&b(ce,Pe))return Pe}return new fe(!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(a,he,de){var te=a("../internals/function-call"),oe=a("../internals/an-object"),ne=a("../internals/get-method");he.exports=function(ee,se,z){var x,b;oe(ee);try{if(x=ne(ee,"return"),!x){if(se==="throw")throw z;return z}x=te(x,ee)}catch(E){b=!0,x=E}if(se==="throw")throw z;if(b)throw x;return oe(x),z}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(a,he,de){"use strict";var te=a("../internals/fails"),oe=a("../internals/is-callable"),ne=a("../internals/object-create"),ee=a("../internals/object-get-prototype-of"),se=a("../internals/redefine"),z=a("../internals/well-known-symbol"),x=a("../internals/is-pure"),b=z("iterator"),E=!1,re,ae,le;[].keys&&(le=[].keys(),"next"in le?(ae=ee(ee(le)),ae!==Object.prototype&&(re=ae)):E=!0);var fe=re==null||te(function(){var ce={};return re[b].call(ce)!==ce});fe?re={}:x&&(re=ne(re)),oe(re[b])||se(re,b,function(){return this}),he.exports={IteratorPrototype:re,BUGGY_SAFARI_ITERATORS:E}},{"../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(a,he,de){arguments[4][165][0].apply(de,arguments)},{dup:165}],188:[function(a,he,de){var te=a("../internals/to-length");he.exports=function(oe){return te(oe.length)}},{"../internals/to-length":249}],189:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/function-bind-context"),ne=a("../internals/object-get-own-property-descriptor").f,ee=a("../internals/task").set,se=a("../internals/engine-is-ios"),z=a("../internals/engine-is-ios-pebble"),x=a("../internals/engine-is-webos-webkit"),b=a("../internals/engine-is-node"),E=te.MutationObserver||te.WebKitMutationObserver,re=te.document,ae=te.process,le=te.Promise,fe=ne(te,"queueMicrotask"),ce=fe&&fe.value,ue,ye,Se,we,xe,ge,_e,be;ce||(ue=function(){var Ae,Te;for(b&&(Ae=ae.domain)&&Ae.exit();ye;){Te=ye.fn,ye=ye.next;try{Te()}catch(Le){throw ye?we():Se=void 0,Le}}Se=void 0,Ae&&Ae.enter()},!se&&!b&&!x&&E&&re?(xe=!0,ge=re.createTextNode(""),new E(ue).observe(ge,{characterData:!0}),we=function(){ge.data=xe=!xe}):!z&&le&&le.resolve?(_e=le.resolve(void 0),_e.constructor=le,be=oe(_e.then,_e),we=function(){be(ue)}):b?we=function(){ae.nextTick(ue)}:(ee=oe(ee,te),we=function(){ee(ue)})),he.exports=ce||function(Ae){var Te={fn:Ae,next:void 0};Se&&(Se.next=Te),ye||(ye=Te,we()),Se=Te}},{"../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(a,he,de){var te=a("../internals/native-symbol");he.exports=te&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(a,he,de){var te=a("../internals/engine-v8-version"),oe=a("../internals/fails");he.exports=!!Object.getOwnPropertySymbols&&!oe(function(){var ne=Symbol();return!String(ne)||!(Object(ne)instanceof Symbol)||!Symbol.sham&&te&&te<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/is-callable"),ne=a("../internals/inspect-source"),ee=te.WeakMap;he.exports=oe(ee)&&/native code/.test(ne(ee))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(a,he,de){"use strict";var te=a("../internals/a-callable"),oe=function(ne){var ee,se;this.promise=new ne(function(z,x){if(ee!==void 0||se!==void 0)throw TypeError("Bad Promise constructor");ee=z,se=x}),this.resolve=te(ee),this.reject=te(se)};he.exports.f=function(ne){return new oe(ne)}},{"../internals/a-callable":95}],194:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/is-regexp"),ne=te.TypeError;he.exports=function(ee){if(oe(ee))throw ne("The method doesn't accept regular expressions");return ee}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(a,he,de){"use strict";var te=a("../internals/descriptors"),oe=a("../internals/function-uncurry-this"),ne=a("../internals/function-call"),ee=a("../internals/fails"),se=a("../internals/object-keys"),z=a("../internals/object-get-own-property-symbols"),x=a("../internals/object-property-is-enumerable"),b=a("../internals/to-object"),E=a("../internals/indexed-object"),re=Object.assign,ae=Object.defineProperty,le=oe([].concat);he.exports=!re||ee(function(){if(te&&re({b:1},re(ae({},"a",{enumerable:!0,get:function(){ae(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var fe={},ce={},ue=Symbol(),ye="abcdefghijklmnopqrst";return fe[ue]=7,ye.split("").forEach(function(Se){ce[Se]=Se}),re({},fe)[ue]!=7||se(re({},ce)).join("")!=ye})?function(ce,ue){for(var ye=b(ce),Se=arguments.length,we=1,xe=z.f,ge=x.f;Se>we;)for(var _e=E(arguments[we++]),be=xe?le(se(_e),xe(_e)):se(_e),Ae=be.length,Te=0,Le;Ae>Te;)Le=be[Te++],(!te||ne(ge,_e,Le))&&(ye[Le]=_e[Le]);return ye}:re},{"../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(a,he,de){var te=a("../internals/an-object"),oe=a("../internals/object-define-properties"),ne=a("../internals/enum-bug-keys"),ee=a("../internals/hidden-keys"),se=a("../internals/html"),z=a("../internals/document-create-element"),x=a("../internals/shared-key"),b=">",E="<",re="prototype",ae="script",le=x("IE_PROTO"),fe=function(){},ce=function(xe){return E+ae+b+xe+E+"/"+ae+b},ue=function(xe){xe.write(ce("")),xe.close();var ge=xe.parentWindow.Object;return xe=null,ge},ye=function(){var xe=z("iframe"),ge="java"+ae+":",_e;return xe.style.display="none",se.appendChild(xe),xe.src=String(ge),_e=xe.contentWindow.document,_e.open(),_e.write(ce("document.F=Object")),_e.close(),_e.F},Se,we=function(){try{Se=new ActiveXObject("htmlfile")}catch(ge){}we=typeof document!="undefined"?document.domain&&Se?ue(Se):ye():ue(Se);for(var xe=ne.length;xe--;)delete we[re][ne[xe]];return we()};ee[le]=!0,he.exports=Object.create||function(ge,_e){var be;return ge!==null?(fe[re]=te(ge),be=new fe,fe[re]=null,be[le]=ge):be=we(),_e===void 0?be:oe.f(be,_e)}},{"../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(a,he,de){var te=a("../internals/descriptors"),oe=a("../internals/v8-prototype-define-bug"),ne=a("../internals/object-define-property"),ee=a("../internals/an-object"),se=a("../internals/to-indexed-object"),z=a("../internals/object-keys");de.f=te&&!oe?Object.defineProperties:function(b,E){ee(b);for(var re=se(E),ae=z(E),le=ae.length,fe=0,ce;le>fe;)ne.f(b,ce=ae[fe++],re[ce]);return b}},{"../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(a,he,de){var te=a("../internals/global"),oe=a("../internals/descriptors"),ne=a("../internals/ie8-dom-define"),ee=a("../internals/v8-prototype-define-bug"),se=a("../internals/an-object"),z=a("../internals/to-property-key"),x=te.TypeError,b=Object.defineProperty,E=Object.getOwnPropertyDescriptor,re="enumerable",ae="configurable",le="writable";de.f=oe?ee?function(ce,ue,ye){if(se(ce),ue=z(ue),se(ye),typeof ce=="function"&&ue==="prototype"&&"value"in ye&&le in ye&&!ye[le]){var Se=E(ce,ue);Se&&Se[le]&&(ce[ue]=ye.value,ye={configurable:ae in ye?ye[ae]:Se[ae],enumerable:re in ye?ye[re]:Se[re],writable:!1})}return b(ce,ue,ye)}:b:function(ce,ue,ye){if(se(ce),ue=z(ue),se(ye),ne)try{return b(ce,ue,ye)}catch(Se){}if("get"in ye||"set"in ye)throw x("Accessors not supported");return"value"in ye&&(ce[ue]=ye.value),ce}},{"../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(a,he,de){var te=a("../internals/descriptors"),oe=a("../internals/function-call"),ne=a("../internals/object-property-is-enumerable"),ee=a("../internals/create-property-descriptor"),se=a("../internals/to-indexed-object"),z=a("../internals/to-property-key"),x=a("../internals/has-own-property"),b=a("../internals/ie8-dom-define"),E=Object.getOwnPropertyDescriptor;de.f=te?E:function(ae,le){if(ae=se(ae),le=z(le),b)try{return E(ae,le)}catch(fe){}if(x(ae,le))return ee(!oe(ne.f,ae,le),ae[le])}},{"../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(a,he,de){var te=a("../internals/classof-raw"),oe=a("../internals/to-indexed-object"),ne=a("../internals/object-get-own-property-names").f,ee=a("../internals/array-slice-simple"),se=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],z=function(x){try{return ne(x)}catch(b){return ee(se)}};he.exports.f=function(b){return se&&te(b)=="Window"?z(b):ne(oe(b))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(a,he,de){var te=a("../internals/object-keys-internal"),oe=a("../internals/enum-bug-keys"),ne=oe.concat("length","prototype");de.f=Object.getOwnPropertyNames||function(se){return te(se,ne)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(a,he,de){de.f=Object.getOwnPropertySymbols},{}],203:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/has-own-property"),ne=a("../internals/is-callable"),ee=a("../internals/to-object"),se=a("../internals/shared-key"),z=a("../internals/correct-prototype-getter"),x=se("IE_PROTO"),b=te.Object,E=b.prototype;he.exports=z?b.getPrototypeOf:function(re){var ae=ee(re);if(oe(ae,x))return ae[x];var le=ae.constructor;return ne(le)&&ae instanceof le?le.prototype:ae instanceof b?E: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(a,he,de){var te=a("../internals/function-uncurry-this");he.exports=te({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(a,he,de){var te=a("../internals/function-uncurry-this"),oe=a("../internals/has-own-property"),ne=a("../internals/to-indexed-object"),ee=a("../internals/array-includes").indexOf,se=a("../internals/hidden-keys"),z=te([].push);he.exports=function(x,b){var E=ne(x),re=0,ae=[],le;for(le in E)!oe(se,le)&&oe(E,le)&&z(ae,le);for(;b.length>re;)oe(E,le=b[re++])&&(~ee(ae,le)||z(ae,le));return ae}},{"../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(a,he,de){var te=a("../internals/object-keys-internal"),oe=a("../internals/enum-bug-keys");he.exports=Object.keys||function(ee){return te(ee,oe)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(a,he,de){"use strict";var te={}.propertyIsEnumerable,oe=Object.getOwnPropertyDescriptor,ne=oe&&!te.call({1:2},1);de.f=ne?function(se){var z=oe(this,se);return!!z&&z.enumerable}:te},{}],208:[function(a,he,de){var te=a("../internals/function-uncurry-this"),oe=a("../internals/an-object"),ne=a("../internals/a-possible-prototype");he.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ee=!1,se={},z;try{z=te(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),z(se,[]),ee=se instanceof Array}catch(x){}return function(b,E){return oe(b),ne(E),ee?z(b,E):b.__proto__=E,b}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(a,he,de){var te=a("../internals/descriptors"),oe=a("../internals/function-uncurry-this"),ne=a("../internals/object-keys"),ee=a("../internals/to-indexed-object"),se=a("../internals/object-property-is-enumerable").f,z=oe(se),x=oe([].push),b=function(E){return function(re){for(var ae=ee(re),le=ne(ae),fe=le.length,ce=0,ue=[],ye;fe>ce;)ye=le[ce++],(!te||z(ae,ye))&&x(ue,E?[ye,ae[ye]]:ae[ye]);return ue}};he.exports={entries:b(!0),values:b(!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(a,he,de){"use strict";var te=a("../internals/to-string-tag-support"),oe=a("../internals/classof");he.exports=te?{}.toString:function(){return"[object "+oe(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/function-call"),ne=a("../internals/is-callable"),ee=a("../internals/is-object"),se=te.TypeError;he.exports=function(z,x){var b,E;if(x==="string"&&ne(b=z.toString)&&!ee(E=oe(b,z))||ne(b=z.valueOf)&&!ee(E=oe(b,z))||x!=="string"&&ne(b=z.toString)&&!ee(E=oe(b,z)))return E;throw se("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(a,he,de){var te=a("../internals/get-built-in"),oe=a("../internals/function-uncurry-this"),ne=a("../internals/object-get-own-property-names"),ee=a("../internals/object-get-own-property-symbols"),se=a("../internals/an-object"),z=oe([].concat);he.exports=te("Reflect","ownKeys")||function(b){var E=ne.f(se(b)),re=ee.f;return re?z(E,re(b)):E}},{"../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(a,he,de){var te=a("../internals/global");he.exports=te},{"../internals/global":163}],214:[function(a,he,de){he.exports=function(te){try{return{error:!1,value:te()}}catch(oe){return{error:!0,value:oe}}}},{}],215:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/promise-native-constructor"),ne=a("../internals/is-callable"),ee=a("../internals/is-forced"),se=a("../internals/inspect-source"),z=a("../internals/well-known-symbol"),x=a("../internals/engine-is-browser"),b=a("../internals/is-pure"),E=a("../internals/engine-v8-version"),re=oe&&oe.prototype,ae=z("species"),le=!1,fe=ne(te.PromiseRejectionEvent),ce=ee("Promise",function(){var ue=se(oe),ye=ue!==String(oe);if(!ye&&E===66||b&&!(re.catch&&re.finally))return!0;if(E>=51&&/native code/.test(ue))return!1;var Se=new oe(function(ge){ge(1)}),we=function(ge){ge(function(){},function(){})},xe=Se.constructor={};return xe[ae]=we,le=Se.then(function(){})instanceof we,le?!ye&&x&&!fe:!0});he.exports={CONSTRUCTOR:ce,REJECTION_EVENT:fe,SUBCLASSING:le}},{"../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(a,he,de){var te=a("../internals/global");he.exports=te.Promise},{"../internals/global":163}],217:[function(a,he,de){var te=a("../internals/an-object"),oe=a("../internals/is-object"),ne=a("../internals/new-promise-capability");he.exports=function(ee,se){if(te(ee),oe(se)&&se.constructor===ee)return se;var z=ne.f(ee),x=z.resolve;return x(se),z.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(a,he,de){var te=a("../internals/promise-native-constructor"),oe=a("../internals/check-correctness-of-iteration"),ne=a("../internals/promise-constructor-detection").CONSTRUCTOR;he.exports=ne||!oe(function(ee){te.all(ee).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(a,he,de){var te=a("../internals/object-define-property").f;he.exports=function(oe,ne,ee){ee in oe||te(oe,ee,{configurable:!0,get:function(){return ne[ee]},set:function(se){ne[ee]=se}})}},{"../internals/object-define-property":198}],220:[function(a,he,de){var te=function(){this.head=null,this.tail=null};te.prototype={add:function(oe){var ne={item:oe,next:null};this.head?this.tail.next=ne:this.head=ne,this.tail=ne},get:function(){var oe=this.head;if(oe)return this.head=oe.next,this.tail===oe&&(this.tail=null),oe.item}},he.exports=te},{}],221:[function(a,he,de){var te=a("../internals/redefine");he.exports=function(oe,ne,ee){for(var se in ne)te(oe,se,ne[se],ee);return oe}},{"../internals/redefine":222}],222:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/is-callable"),ne=a("../internals/has-own-property"),ee=a("../internals/create-non-enumerable-property"),se=a("../internals/set-global"),z=a("../internals/inspect-source"),x=a("../internals/internal-state"),b=a("../internals/function-name").CONFIGURABLE,E=x.get,re=x.enforce,ae=String(String).split("String");(he.exports=function(le,fe,ce,ue){var ye=ue?!!ue.unsafe:!1,Se=ue?!!ue.enumerable:!1,we=ue?!!ue.noTargetGet:!1,xe=ue&&ue.name!==void 0?ue.name:fe,ge;if(oe(ce)&&(String(xe).slice(0,7)==="Symbol("&&(xe="["+String(xe).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ne(ce,"name")||b&&ce.name!==xe)&&ee(ce,"name",xe),ge=re(ce),ge.source||(ge.source=ae.join(typeof xe=="string"?xe:""))),le===te){Se?le[fe]=ce:se(fe,ce);return}else ye?!we&&le[fe]&&(Se=!0):delete le[fe];Se?le[fe]=ce:ee(le,fe,ce)})(Function.prototype,"toString",function(){return oe(this)&&E(this).source||z(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(a,he,de){var te=a("../internals/global"),oe=a("../internals/function-call"),ne=a("../internals/an-object"),ee=a("../internals/is-callable"),se=a("../internals/classof-raw"),z=a("../internals/regexp-exec"),x=te.TypeError;he.exports=function(b,E){var re=b.exec;if(ee(re)){var ae=oe(re,b,E);return ae!==null&&ne(ae),ae}if(se(b)==="RegExp")return oe(z,b,E);throw x("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(a,he,de){"use strict";var te=a("../internals/function-call"),oe=a("../internals/function-uncurry-this"),ne=a("../internals/to-string"),ee=a("../internals/regexp-flags"),se=a("../internals/regexp-sticky-helpers"),z=a("../internals/shared"),x=a("../internals/object-create"),b=a("../internals/internal-state").get,E=a("../internals/regexp-unsupported-dot-all"),re=a("../internals/regexp-unsupported-ncg"),ae=z("native-string-replace",String.prototype.replace),le=RegExp.prototype.exec,fe=le,ce=oe("".charAt),ue=oe("".indexOf),ye=oe("".replace),Se=oe("".slice),we=function(){var be=/a/,Ae=/b*/g;return te(le,be,"a"),te(le,Ae,"a"),be.lastIndex!==0||Ae.lastIndex!==0}(),xe=se.BROKEN_CARET,ge=/()??/.exec("")[1]!==void 0,_e=we||ge||xe||E||re;_e&&(fe=function(Ae){var Te=this,Le=b(Te),ke=ne(Ae),Pe=Le.raw,Oe,ze,Ge,tt,Me,We,it;if(Pe)return Pe.lastIndex=Te.lastIndex,Oe=te(fe,Pe,ke),Te.lastIndex=Pe.lastIndex,Oe;var at=Le.groups,$e=xe&&Te.sticky,Je=te(ee,Te),Ye=Te.source,Qe=0,st=ke;if($e&&(Je=ye(Je,"y",""),ue(Je,"g")===-1&&(Je+="g"),st=Se(ke,Te.lastIndex),Te.lastIndex>0&&(!Te.multiline||Te.multiline&&ce(ke,Te.lastIndex-1)!==`
`)&&(Ye="(?: "+Ye+")",st=" "+st,Qe++),ze=new RegExp("^(?:"+Ye+")",Je)),ge&&(ze=new RegExp("^"+Ye+"$(?!\\s)",Je)),we&&(Ge=Te.lastIndex),tt=te(le,$e?ze:Te,st),$e?tt?(tt.input=Se(tt.input,Qe),tt[0]=Se(tt[0],Qe),tt.index=Te.lastIndex,Te.lastIndex+=tt[0].length):Te.lastIndex=0:we&&tt&&(Te.lastIndex=Te.global?tt.index+tt[0].length:Ge),ge&&tt&&tt.length>1&&te(ae,tt[0],ze,function(){for(Me=1;Me<arguments.length-2;Me++)arguments[Me]===void 0&&(tt[Me]=void 0)}),tt&&at)for(tt.groups=We=x(null),Me=0;Me<at.length;Me++)it=at[Me],We[it[0]]=tt[it[1]];return tt}),he.exports=fe},{"../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(a,he,de){"use strict";var te=a("../internals/an-object");he.exports=function(){var oe=te(this),ne="";return oe.hasIndices&&(ne+="d"),oe.global&&(ne+="g"),oe.ignoreCase&&(ne+="i"),oe.multiline&&(ne+="m"),oe.dotAll&&(ne+="s"),oe.unicode&&(ne+="u"),oe.sticky&&(ne+="y"),ne}},{"../internals/an-object":101}],226:[function(a,he,de){var te=a("../internals/function-call"),oe=a("../internals/has-own-property"),ne=a("../internals/object-is-prototype-of"),ee=a("../internals/regexp-flags"),se=RegExp.prototype;he.exports=function(z){var x=z.flags;return x===void 0&&!("flags"in se)&&!oe(z,"flags")&&ne(se,z)?te(ee,z):x}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(a,he,de){var te=a("../internals/fails"),oe=a("../internals/global"),ne=oe.RegExp,ee=te(function(){var x=ne("a","y");return x.lastIndex=2,x.exec("abcd")!=null}),se=ee||te(function(){return!ne("a","y").sticky}),z=ee||te(function(){var x=ne("^r","gy");return x.lastIndex=2,x.exec("str")!=null});he.exports={BROKEN_CARET:z,MISSED_STICKY:se,UNSUPPORTED_Y:ee}},{"../internals/fails":150,"../internals/global":163}],228:[function(a,he,de){var te=a("../internals/fails"),oe=a("../internals/global"),ne=oe.RegExp;he.exports=te(function(){var ee=ne(".","s");return!(ee.dotAll&&ee.exec(`
`)&&ee.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(a,he,de){var te=a("../internals/fails"),oe=a("../internals/global"),ne=oe.RegExp;he.exports=te(function(){var ee=ne("(?<a>b)","g");return ee.exec("b").groups.a!=="b"||"b".replace(ee,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(a,he,de){var te=a("../internals/global"),oe=te.TypeError;he.exports=function(ne){if(ne==null)throw oe("Can't call method on "+ne);return ne}},{"../internals/global":163}],231:[function(a,he,de){he.exports=Object.is||function(oe,ne){return oe===ne?oe!==0||1/oe===1/ne:oe!=oe&&ne!=ne}},{}],232:[function(a,he,de){var te=a("../internals/global"),oe=Object.defineProperty;he.exports=function(ne,ee){try{oe(te,ne,{value:ee,configurable:!0,writable:!0})}catch(se){te[ne]=ee}return ee}},{"../internals/global":163}],233:[function(a,he,de){"use strict";var te=a("../internals/get-built-in"),oe=a("../internals/object-define-property"),ne=a("../internals/well-known-symbol"),ee=a("../internals/descriptors"),se=ne("species");he.exports=function(z){var x=te(z),b=oe.f;ee&&x&&!x[se]&&b(x,se,{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(a,he,de){var te=a("../internals/object-define-property").f,oe=a("../internals/has-own-property"),ne=a("../internals/well-known-symbol"),ee=ne("toStringTag");he.exports=function(se,z,x){se&&!x&&(se=se.prototype),se&&!oe(se,ee)&&te(se,ee,{configurable:!0,value:z})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(a,he,de){var te=a("../internals/shared"),oe=a("../internals/uid"),ne=te("keys");he.exports=function(ee){return ne[ee]||(ne[ee]=oe(ee))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/set-global"),ne="__core-js_shared__",ee=te[ne]||oe(ne,{});he.exports=ee},{"../internals/global":163,"../internals/set-global":232}],237:[function(a,he,de){var te=a("../internals/is-pure"),oe=a("../internals/shared-store");(he.exports=function(ne,ee){return oe[ne]||(oe[ne]=ee!==void 0?ee:{})})("versions",[]).push({version:"3.22.1",mode:te?"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(a,he,de){var te=a("../internals/an-object"),oe=a("../internals/a-constructor"),ne=a("../internals/well-known-symbol"),ee=ne("species");he.exports=function(se,z){var x=te(se).constructor,b;return x===void 0||(b=te(x)[ee])==null?z:oe(b)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(a,he,de){var te=a("../internals/function-uncurry-this"),oe=a("../internals/to-integer-or-infinity"),ne=a("../internals/to-string"),ee=a("../internals/require-object-coercible"),se=te("".charAt),z=te("".charCodeAt),x=te("".slice),b=function(E){return function(re,ae){var le=ne(ee(re)),fe=oe(ae),ce=le.length,ue,ye;return fe<0||fe>=ce?E?"":void 0:(ue=z(le,fe),ue<55296||ue>56319||fe+1===ce||(ye=z(le,fe+1))<56320||ye>57343?E?se(le,fe):ue:E?x(le,fe,fe+2):(ue-55296<<10)+(ye-56320)+65536)}};he.exports={codeAt:b(!1),charAt:b(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(a,he,de){var te=a("../internals/function-name").PROPER,oe=a("../internals/fails"),ne=a("../internals/whitespaces"),ee="\u200B\x85\u180E";he.exports=function(se){return oe(function(){return!!ne[se]()||ee[se]()!==ee||te&&ne[se].name!==se})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(a,he,de){var te=a("../internals/function-uncurry-this"),oe=a("../internals/require-object-coercible"),ne=a("../internals/to-string"),ee=a("../internals/whitespaces"),se=te("".replace),z="["+ee+"]",x=RegExp("^"+z+z+"*"),b=RegExp(z+z+"*$"),E=function(re){return function(ae){var le=ne(oe(ae));return re&1&&(le=se(le,x,"")),re&2&&(le=se(le,b,"")),le}};he.exports={start:E(1),end:E(2),trim:E(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(a,he,de){var te=a("../internals/function-call"),oe=a("../internals/get-built-in"),ne=a("../internals/well-known-symbol"),ee=a("../internals/redefine");he.exports=function(){var se=oe("Symbol"),z=se&&se.prototype,x=z&&z.valueOf,b=ne("toPrimitive");z&&!z[b]&&ee(z,b,function(E){return te(x,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/function-apply"),ne=a("../internals/function-bind-context"),ee=a("../internals/is-callable"),se=a("../internals/has-own-property"),z=a("../internals/fails"),x=a("../internals/html"),b=a("../internals/array-slice"),E=a("../internals/document-create-element"),re=a("../internals/validate-arguments-length"),ae=a("../internals/engine-is-ios"),le=a("../internals/engine-is-node"),fe=te.setImmediate,ce=te.clearImmediate,ue=te.process,ye=te.Dispatch,Se=te.Function,we=te.MessageChannel,xe=te.String,ge=0,_e={},be="onreadystatechange",Ae,Te,Le,ke;try{Ae=te.location}catch(tt){}var Pe=function(tt){if(se(_e,tt)){var Me=_e[tt];delete _e[tt],Me()}},Oe=function(tt){return function(){Pe(tt)}},ze=function(tt){Pe(tt.data)},Ge=function(tt){te.postMessage(xe(tt),Ae.protocol+"//"+Ae.host)};(!fe||!ce)&&(fe=function(Me){re(arguments.length,1);var We=ee(Me)?Me:Se(Me),it=b(arguments,1);return _e[++ge]=function(){oe(We,void 0,it)},Te(ge),ge},ce=function(Me){delete _e[Me]},le?Te=function(tt){ue.nextTick(Oe(tt))}:ye&&ye.now?Te=function(tt){ye.now(Oe(tt))}:we&&!ae?(Le=new we,ke=Le.port2,Le.port1.onmessage=ze,Te=ne(ke.postMessage,ke)):te.addEventListener&&ee(te.postMessage)&&!te.importScripts&&Ae&&Ae.protocol!=="file:"&&!z(Ge)?(Te=Ge,te.addEventListener("message",ze,!1)):be in E("script")?Te=function(tt){x.appendChild(E("script"))[be]=function(){x.removeChild(this),Pe(tt)}}:Te=function(tt){setTimeout(Oe(tt),0)}),he.exports={set:fe,clear:ce}},{"../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(a,he,de){var te=a("../internals/function-uncurry-this");he.exports=te(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(a,he,de){var te=a("../internals/to-integer-or-infinity"),oe=Math.max,ne=Math.min;he.exports=function(ee,se){var z=te(ee);return z<0?oe(z+se,0):ne(z,se)}},{"../internals/to-integer-or-infinity":248}],246:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/to-integer-or-infinity"),ne=a("../internals/to-length"),ee=te.RangeError;he.exports=function(se){if(se===void 0)return 0;var z=oe(se),x=ne(z);if(z!==x)throw ee("Wrong length or index");return x}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(a,he,de){var te=a("../internals/indexed-object"),oe=a("../internals/require-object-coercible");he.exports=function(ne){return te(oe(ne))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(a,he,de){var te=Math.ceil,oe=Math.floor;he.exports=function(ne){var ee=+ne;return ee!==ee||ee===0?0:(ee>0?oe:te)(ee)}},{}],249:[function(a,he,de){var te=a("../internals/to-integer-or-infinity"),oe=Math.min;he.exports=function(ne){return ne>0?oe(te(ne),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/require-object-coercible"),ne=te.Object;he.exports=function(ee){return ne(oe(ee))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/to-positive-integer"),ne=te.RangeError;he.exports=function(ee,se){var z=oe(ee);if(z%se)throw ne("Wrong offset");return z}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/to-integer-or-infinity"),ne=te.RangeError;he.exports=function(ee){var se=oe(ee);if(se<0)throw ne("The argument can't be less than 0");return se}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/function-call"),ne=a("../internals/is-object"),ee=a("../internals/is-symbol"),se=a("../internals/get-method"),z=a("../internals/ordinary-to-primitive"),x=a("../internals/well-known-symbol"),b=te.TypeError,E=x("toPrimitive");he.exports=function(re,ae){if(!ne(re)||ee(re))return re;var le=se(re,E),fe;if(le){if(ae===void 0&&(ae="default"),fe=oe(le,re,ae),!ne(fe)||ee(fe))return fe;throw b("Can't convert object to primitive value")}return ae===void 0&&(ae="number"),z(re,ae)}},{"../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(a,he,de){var te=a("../internals/to-primitive"),oe=a("../internals/is-symbol");he.exports=function(ne){var ee=te(ne,"string");return oe(ee)?ee:ee+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(a,he,de){var te=a("../internals/well-known-symbol"),oe=te("toStringTag"),ne={};ne[oe]="z",he.exports=String(ne)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/classof"),ne=te.String;he.exports=function(ee){if(oe(ee)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ne(ee)}},{"../internals/classof":124,"../internals/global":163}],257:[function(a,he,de){var te=a("../internals/global"),oe=te.String;he.exports=function(ne){try{return oe(ne)}catch(ee){return"Object"}}},{"../internals/global":163}],258:[function(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/global"),ne=a("../internals/function-call"),ee=a("../internals/descriptors"),se=a("../internals/typed-array-constructors-require-wrappers"),z=a("../internals/array-buffer-view-core"),x=a("../internals/array-buffer"),b=a("../internals/an-instance"),E=a("../internals/create-property-descriptor"),re=a("../internals/create-non-enumerable-property"),ae=a("../internals/is-integral-number"),le=a("../internals/to-length"),fe=a("../internals/to-index"),ce=a("../internals/to-offset"),ue=a("../internals/to-property-key"),ye=a("../internals/has-own-property"),Se=a("../internals/classof"),we=a("../internals/is-object"),xe=a("../internals/is-symbol"),ge=a("../internals/object-create"),_e=a("../internals/object-is-prototype-of"),be=a("../internals/object-set-prototype-of"),Ae=a("../internals/object-get-own-property-names").f,Te=a("../internals/typed-array-from"),Le=a("../internals/array-iteration").forEach,ke=a("../internals/set-species"),Pe=a("../internals/object-define-property"),Oe=a("../internals/object-get-own-property-descriptor"),ze=a("../internals/internal-state"),Ge=a("../internals/inherit-if-required"),tt=ze.get,Me=ze.set,We=Pe.f,it=Oe.f,at=Math.round,$e=oe.RangeError,Je=x.ArrayBuffer,Ye=Je.prototype,Qe=x.DataView,st=z.NATIVE_ARRAY_BUFFER_VIEWS,ot=z.TYPED_ARRAY_CONSTRUCTOR,mt=z.TYPED_ARRAY_TAG,ft=z.TypedArray,qe=z.TypedArrayPrototype,Be=z.aTypedArrayConstructor,lt=z.isTypedArray,Ne="BYTES_PER_ELEMENT",rt="Wrong length",gt=function(et,Ie){Be(et);for(var je=0,De=Ie.length,Xe=new et(De);De>je;)Xe[je]=Ie[je++];return Xe},yt=function(et,Ie){We(et,Ie,{get:function(){return tt(this)[Ie]}})},dt=function(et){var Ie;return _e(Ye,et)||(Ie=Se(et))=="ArrayBuffer"||Ie=="SharedArrayBuffer"},Ve=function(et,Ie){return lt(et)&&!xe(Ie)&&Ie in et&&ae(+Ie)&&Ie>=0},He=function(Ie,je){return je=ue(je),Ve(Ie,je)?E(2,Ie[je]):it(Ie,je)},Ze=function(Ie,je,De){return je=ue(je),Ve(Ie,je)&&we(De)&&ye(De,"value")&&!ye(De,"get")&&!ye(De,"set")&&!De.configurable&&(!ye(De,"writable")||De.writable)&&(!ye(De,"enumerable")||De.enumerable)?(Ie[je]=De.value,Ie):We(Ie,je,De)};ee?(st||(Oe.f=He,Pe.f=Ze,yt(qe,"buffer"),yt(qe,"byteOffset"),yt(qe,"byteLength"),yt(qe,"length")),te({target:"Object",stat:!0,forced:!st},{getOwnPropertyDescriptor:He,defineProperty:Ze}),he.exports=function(et,Ie,je){var De=et.match(/\d+$/)[0]/8,Xe=et+(je?"Clamped":"")+"Array",ct="get"+et,Fe="set"+et,vt=oe[Xe],wt=vt,Ot=wt&&wt.prototype,Tt={},xt=function(Ut,Qt){var or=tt(Ut);return or.view[ct](Qt*De+or.byteOffset,!0)},Nt=function(Ut,Qt,or){var cr=tt(Ut);je&&(or=(or=at(or))<0?0:or>255?255:or&255),cr.view[Fe](Qt*De+cr.byteOffset,or,!0)},Rt=function(Ut,Qt){We(Ut,Qt,{get:function(){return xt(this,Qt)},set:function(or){return Nt(this,Qt,or)},enumerable:!0})};st?se&&(wt=Ie(function(Ut,Qt,or,cr){return b(Ut,Ot),Ge(function(){return we(Qt)?dt(Qt)?cr!==void 0?new vt(Qt,ce(or,De),cr):or!==void 0?new vt(Qt,ce(or,De)):new vt(Qt):lt(Qt)?gt(wt,Qt):ne(Te,wt,Qt):new vt(fe(Qt))}(),Ut,wt)}),be&&be(wt,ft),Le(Ae(vt),function(Ut){Ut in wt||re(wt,Ut,vt[Ut])}),wt.prototype=Ot):(wt=Ie(function(Ut,Qt,or,cr){b(Ut,Ot);var ir=0,_r=0,Fr,Hr,Vr;if(!we(Qt))Vr=fe(Qt),Hr=Vr*De,Fr=new Je(Hr);else if(dt(Qt)){Fr=Qt,_r=ce(or,De);var on=Qt.byteLength;if(cr===void 0){if(on%De||(Hr=on-_r,Hr<0))throw $e(rt)}else if(Hr=le(cr)*De,Hr+_r>on)throw $e(rt);Vr=Hr/De}else return lt(Qt)?gt(wt,Qt):ne(Te,wt,Qt);for(Me(Ut,{buffer:Fr,byteOffset:_r,byteLength:Hr,length:Vr,view:new Qe(Fr)});ir<Vr;)Rt(Ut,ir++)}),be&&be(wt,ft),Ot=wt.prototype=ge(qe)),Ot.constructor!==wt&&re(Ot,"constructor",wt),re(Ot,ot,wt),mt&&re(Ot,mt,Xe),Tt[Xe]=wt,te({global:!0,forced:wt!=vt,sham:!st},Tt),Ne in wt||re(wt,Ne,De),Ne in Ot||re(Ot,Ne,De),ke(Xe)}):he.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(a,he,de){var te=a("../internals/global"),oe=a("../internals/fails"),ne=a("../internals/check-correctness-of-iteration"),ee=a("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,se=te.ArrayBuffer,z=te.Int8Array;he.exports=!ee||!oe(function(){z(1)})||!oe(function(){new z(-1)})||!ne(function(x){new z,new z(null),new z(1.5),new z(x)},!0)||oe(function(){return new z(new se(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(a,he,de){var te=a("../internals/array-from-constructor-and-list"),oe=a("../internals/typed-array-species-constructor");he.exports=function(ne,ee){return te(oe(ne),ee)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(a,he,de){var te=a("../internals/function-bind-context"),oe=a("../internals/function-call"),ne=a("../internals/a-constructor"),ee=a("../internals/to-object"),se=a("../internals/length-of-array-like"),z=a("../internals/get-iterator"),x=a("../internals/get-iterator-method"),b=a("../internals/is-array-iterator-method"),E=a("../internals/array-buffer-view-core").aTypedArrayConstructor;he.exports=function(ae){var le=ne(this),fe=ee(ae),ce=arguments.length,ue=ce>1?arguments[1]:void 0,ye=ue!==void 0,Se=x(fe),we,xe,ge,_e,be,Ae;if(Se&&!b(Se))for(be=z(fe,Se),Ae=be.next,fe=[];!(_e=oe(Ae,be)).done;)fe.push(_e.value);for(ye&&ce>2&&(ue=te(ue,arguments[2])),xe=se(fe),ge=new(E(le))(xe),we=0;xe>we;we++)ge[we]=ye?ue(fe[we],we):fe[we];return ge}},{"../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(a,he,de){var te=a("../internals/array-buffer-view-core"),oe=a("../internals/species-constructor"),ne=te.TYPED_ARRAY_CONSTRUCTOR,ee=te.aTypedArrayConstructor;he.exports=function(se){return ee(oe(se,se[ne]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(a,he,de){var te=a("../internals/function-uncurry-this"),oe=0,ne=Math.random(),ee=te(1 .toString);he.exports=function(se){return"Symbol("+(se===void 0?"":se)+")_"+ee(++oe+ne,36)}},{"../internals/function-uncurry-this":157}],264:[function(a,he,de){var te=a("../internals/native-symbol");he.exports=te&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(a,he,de){var te=a("../internals/descriptors"),oe=a("../internals/fails");he.exports=te&&oe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(a,he,de){var te=a("../internals/global"),oe=te.TypeError;he.exports=function(ne,ee){if(ne<ee)throw oe("Not enough arguments");return ne}},{"../internals/global":163}],267:[function(a,he,de){var te=a("../internals/well-known-symbol");de.f=te},{"../internals/well-known-symbol":268}],268:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/shared"),ne=a("../internals/has-own-property"),ee=a("../internals/uid"),se=a("../internals/native-symbol"),z=a("../internals/use-symbol-as-uid"),x=oe("wks"),b=te.Symbol,E=b&&b.for,re=z?b:b&&b.withoutSetter||ee;he.exports=function(ae){if(!ne(x,ae)||!(se||typeof x[ae]=="string")){var le="Symbol."+ae;se&&ne(b,ae)?x[ae]=b[ae]:z&&E?x[ae]=E(le):x[ae]=re(le)}return x[ae]}},{"../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(a,he,de){he.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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/global"),ne=a("../internals/array-buffer"),ee=a("../internals/set-species"),se="ArrayBuffer",z=ne[se],x=oe[se];te({global:!0,forced:x!==z},{ArrayBuffer:z}),ee(se)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/function-uncurry-this"),ne=a("../internals/fails"),ee=a("../internals/array-buffer"),se=a("../internals/an-object"),z=a("../internals/to-absolute-index"),x=a("../internals/to-length"),b=a("../internals/species-constructor"),E=ee.ArrayBuffer,re=ee.DataView,ae=re.prototype,le=oe(E.prototype.slice),fe=oe(ae.getUint8),ce=oe(ae.setUint8),ue=ne(function(){return!new E(2).slice(1,void 0).byteLength});te({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ue},{slice:function(Se,we){if(le&&we===void 0)return le(se(this),Se);for(var xe=se(this).byteLength,ge=z(Se,xe),_e=z(we===void 0?xe:we,xe),be=new(b(this,E))(x(_e-ge)),Ae=new re(this),Te=new re(be),Le=0;ge<_e;)ce(Te,Le++,fe(Ae,ge++));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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/global"),ne=a("../internals/fails"),ee=a("../internals/is-array"),se=a("../internals/is-object"),z=a("../internals/to-object"),x=a("../internals/length-of-array-like"),b=a("../internals/create-property"),E=a("../internals/array-species-create"),re=a("../internals/array-method-has-species-support"),ae=a("../internals/well-known-symbol"),le=a("../internals/engine-v8-version"),fe=ae("isConcatSpreadable"),ce=9007199254740991,ue="Maximum allowed index exceeded",ye=oe.TypeError,Se=le>=51||!ne(function(){var _e=[];return _e[fe]=!1,_e.concat()[0]!==_e}),we=re("concat"),xe=function(_e){if(!se(_e))return!1;var be=_e[fe];return be!==void 0?!!be:ee(_e)},ge=!Se||!we;te({target:"Array",proto:!0,forced:ge},{concat:function(be){var Ae=z(this),Te=E(Ae,0),Le=0,ke,Pe,Oe,ze,Ge;for(ke=-1,Oe=arguments.length;ke<Oe;ke++)if(Ge=ke===-1?Ae:arguments[ke],xe(Ge)){if(ze=x(Ge),Le+ze>ce)throw ye(ue);for(Pe=0;Pe<ze;Pe++,Le++)Pe in Ge&&b(Te,Le,Ge[Pe])}else{if(Le>=ce)throw ye(ue);b(Te,Le++,Ge)}return Te.length=Le,Te}})},{"../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(a,he,de){var te=a("../internals/export"),oe=a("../internals/array-fill"),ne=a("../internals/add-to-unscopables");te({target:"Array",proto:!0},{fill:oe}),ne("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/array-iteration").filter,ne=a("../internals/array-method-has-species-support"),ee=ne("filter");te({target:"Array",proto:!0,forced:!ee},{filter:function(z){return oe(this,z,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/array-iteration").find,ne=a("../internals/add-to-unscopables"),ee="find",se=!0;ee in[]&&Array(1)[ee](function(){se=!1}),te({target:"Array",proto:!0,forced:se},{find:function(x){return oe(this,x,arguments.length>1?arguments[1]:void 0)}}),ne(ee)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(a,he,de){var te=a("../internals/export"),oe=a("../internals/array-from"),ne=a("../internals/check-correctness-of-iteration"),ee=!ne(function(se){Array.from(se)});te({target:"Array",stat:!0,forced:ee},{from:oe})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/array-includes").includes,ne=a("../internals/add-to-unscopables");te({target:"Array",proto:!0},{includes:function(se){return oe(this,se,arguments.length>1?arguments[1]:void 0)}}),ne("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(a,he,de){"use strict";var te=a("../internals/to-indexed-object"),oe=a("../internals/add-to-unscopables"),ne=a("../internals/iterators"),ee=a("../internals/internal-state"),se=a("../internals/object-define-property").f,z=a("../internals/define-iterator"),x=a("../internals/is-pure"),b=a("../internals/descriptors"),E="Array Iterator",re=ee.set,ae=ee.getterFor(E);he.exports=z(Array,"Array",function(fe,ce){re(this,{type:E,target:te(fe),index:0,kind:ce})},function(){var fe=ae(this),ce=fe.target,ue=fe.kind,ye=fe.index++;return!ce||ye>=ce.length?(fe.target=void 0,{value:void 0,done:!0}):ue=="keys"?{value:ye,done:!1}:ue=="values"?{value:ce[ye],done:!1}:{value:[ye,ce[ye]],done:!1}},"values");var le=ne.Arguments=ne.Array;if(oe("keys"),oe("values"),oe("entries"),!x&&b&&le.name!=="values")try{se(le,"name",{value:"values"})}catch(fe){}},{"../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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/function-uncurry-this"),ne=a("../internals/indexed-object"),ee=a("../internals/to-indexed-object"),se=a("../internals/array-method-is-strict"),z=oe([].join),x=ne!=Object,b=se("join",",");te({target:"Array",proto:!0,forced:x||!b},{join:function(re){return z(ee(this),re===void 0?",":re)}})},{"../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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/array-iteration").map,ne=a("../internals/array-method-has-species-support"),ee=ne("map");te({target:"Array",proto:!0,forced:!ee},{map:function(z){return oe(this,z,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/global"),ne=a("../internals/is-array"),ee=a("../internals/is-constructor"),se=a("../internals/is-object"),z=a("../internals/to-absolute-index"),x=a("../internals/length-of-array-like"),b=a("../internals/to-indexed-object"),E=a("../internals/create-property"),re=a("../internals/well-known-symbol"),ae=a("../internals/array-method-has-species-support"),le=a("../internals/array-slice"),fe=ae("slice"),ce=re("species"),ue=oe.Array,ye=Math.max;te({target:"Array",proto:!0,forced:!fe},{slice:function(we,xe){var ge=b(this),_e=x(ge),be=z(we,_e),Ae=z(xe===void 0?_e:xe,_e),Te,Le,ke;if(ne(ge)&&(Te=ge.constructor,ee(Te)&&(Te===ue||ne(Te.prototype))?Te=void 0:se(Te)&&(Te=Te[ce],Te===null&&(Te=void 0)),Te===ue||Te===void 0))return le(ge,be,Ae);for(Le=new(Te===void 0?ue:Te)(ye(Ae-be,0)),ke=0;be<Ae;be++,ke++)be in ge&&E(Le,ke,ge[be]);return Le.length=ke,Le}})},{"../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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/function-uncurry-this"),ne=a("../internals/a-callable"),ee=a("../internals/to-object"),se=a("../internals/length-of-array-like"),z=a("../internals/to-string"),x=a("../internals/fails"),b=a("../internals/array-sort"),E=a("../internals/array-method-is-strict"),re=a("../internals/engine-ff-version"),ae=a("../internals/engine-is-ie-or-edge"),le=a("../internals/engine-v8-version"),fe=a("../internals/engine-webkit-version"),ce=[],ue=oe(ce.sort),ye=oe(ce.push),Se=x(function(){ce.sort(void 0)}),we=x(function(){ce.sort(null)}),xe=E("sort"),ge=!x(function(){if(le)return le<70;if(!(re&&re>3)){if(ae)return!0;if(fe)return fe<603;var Ae="",Te,Le,ke,Pe;for(Te=65;Te<76;Te++){switch(Le=String.fromCharCode(Te),Te){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++)ce.push({k:Le+Pe,v:ke})}for(ce.sort(function(Oe,ze){return ze.v-Oe.v}),Pe=0;Pe<ce.length;Pe++)Le=ce[Pe].k.charAt(0),Ae.charAt(Ae.length-1)!==Le&&(Ae+=Le);return Ae!=="DGBEFHACIJK"}}),_e=Se||!we||!xe||!ge,be=function(Ae){return function(Te,Le){return Le===void 0?-1:Te===void 0?1:Ae!==void 0?+Ae(Te,Le)||0:z(Te)>z(Le)?1:-1}};te({target:"Array",proto:!0,forced:_e},{sort:function(Te){Te!==void 0&&ne(Te);var Le=ee(this);if(ge)return Te===void 0?ue(Le):ue(Le,Te);var ke=[],Pe=se(Le),Oe,ze;for(ze=0;ze<Pe;ze++)ze in Le&&ye(ke,Le[ze]);for(b(ke,be(Te)),Oe=ke.length,ze=0;ze<Oe;)Le[ze]=ke[ze++];for(;ze<Pe;)delete Le[ze++];return Le}})},{"../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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/global"),ne=a("../internals/to-absolute-index"),ee=a("../internals/to-integer-or-infinity"),se=a("../internals/length-of-array-like"),z=a("../internals/to-object"),x=a("../internals/array-species-create"),b=a("../internals/create-property"),E=a("../internals/array-method-has-species-support"),re=E("splice"),ae=oe.TypeError,le=Math.max,fe=Math.min,ce=9007199254740991,ue="Maximum allowed length exceeded";te({target:"Array",proto:!0,forced:!re},{splice:function(Se,we){var xe=z(this),ge=se(xe),_e=ne(Se,ge),be=arguments.length,Ae,Te,Le,ke,Pe,Oe;if(be===0?Ae=Te=0:be===1?(Ae=0,Te=ge-_e):(Ae=be-2,Te=fe(le(ee(we),0),ge-_e)),ge+Ae-Te>ce)throw ae(ue);for(Le=x(xe,Te),ke=0;ke<Te;ke++)Pe=_e+ke,Pe in xe&&b(Le,ke,xe[Pe]);if(Le.length=Te,Ae<Te){for(ke=_e;ke<ge-Te;ke++)Pe=ke+Te,Oe=ke+Ae,Pe in xe?xe[Oe]=xe[Pe]:delete xe[Oe];for(ke=ge;ke>ge-Te+Ae;ke--)delete xe[ke-1]}else if(Ae>Te)for(ke=ge-Te;ke>_e;ke--)Pe=ke+Te-1,Oe=ke+Ae-1,Pe in xe?xe[Oe]=xe[Pe]:delete xe[Oe];for(ke=0;ke<Ae;ke++)xe[ke+_e]=arguments[ke+2];return xe.length=ge-Te+Ae,Le}})},{"../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(a,he,de){var te=a("../internals/descriptors"),oe=a("../internals/function-name").EXISTS,ne=a("../internals/function-uncurry-this"),ee=a("../internals/object-define-property").f,se=Function.prototype,z=ne(se.toString),x=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,b=ne(x.exec),E="name";te&&!oe&&ee(se,E,{configurable:!0,get:function(){try{return b(x,z(this))[1]}catch(re){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(a,he,de){var te=a("../internals/export"),oe=a("../internals/get-built-in"),ne=a("../internals/function-apply"),ee=a("../internals/function-call"),se=a("../internals/function-uncurry-this"),z=a("../internals/fails"),x=a("../internals/is-array"),b=a("../internals/is-callable"),E=a("../internals/is-object"),re=a("../internals/is-symbol"),ae=a("../internals/array-slice"),le=a("../internals/native-symbol"),fe=oe("JSON","stringify"),ce=se(/./.exec),ue=se("".charAt),ye=se("".charCodeAt),Se=se("".replace),we=se(1 .toString),xe=/[\uD800-\uDFFF]/g,ge=/^[\uD800-\uDBFF]$/,_e=/^[\uDC00-\uDFFF]$/,be=!le||z(function(){var ke=oe("Symbol")();return fe([ke])!="[null]"||fe({a:ke})!="{}"||fe(Object(ke))!="{}"}),Ae=z(function(){return fe("\uDF06\uD834")!=='"\\udf06\\ud834"'||fe("\uDEAD")!=='"\\udead"'}),Te=function(ke,Pe){var Oe=ae(arguments),ze=Pe;if(!(!E(Pe)&&ke===void 0||re(ke)))return x(Pe)||(Pe=function(Ge,tt){if(b(ze)&&(tt=ee(ze,this,Ge,tt)),!re(tt))return tt}),Oe[1]=Pe,ne(fe,null,Oe)},Le=function(ke,Pe,Oe){var ze=ue(Oe,Pe-1),Ge=ue(Oe,Pe+1);return ce(ge,ke)&&!ce(_e,Ge)||ce(_e,ke)&&!ce(ge,ze)?"\\u"+we(ye(ke,0),16):ke};fe&&te({target:"JSON",stat:!0,forced:be||Ae},{stringify:function(Pe,Oe,ze){var Ge=ae(arguments),tt=ne(be?Te:fe,null,Ge);return Ae&&typeof tt=="string"?Se(tt,xe,Le):tt}})},{"../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(a,he,de){"use strict";var te=a("../internals/descriptors"),oe=a("../internals/global"),ne=a("../internals/function-uncurry-this"),ee=a("../internals/is-forced"),se=a("../internals/redefine"),z=a("../internals/has-own-property"),x=a("../internals/inherit-if-required"),b=a("../internals/object-is-prototype-of"),E=a("../internals/is-symbol"),re=a("../internals/to-primitive"),ae=a("../internals/fails"),le=a("../internals/object-get-own-property-names").f,fe=a("../internals/object-get-own-property-descriptor").f,ce=a("../internals/object-define-property").f,ue=a("../internals/this-number-value"),ye=a("../internals/string-trim").trim,Se="Number",we=oe[Se],xe=we.prototype,ge=oe.TypeError,_e=ne("".slice),be=ne("".charCodeAt),Ae=function(ze){var Ge=re(ze,"number");return typeof Ge=="bigint"?Ge:Te(Ge)},Te=function(ze){var Ge=re(ze,"number"),tt,Me,We,it,at,$e,Je,Ye;if(E(Ge))throw ge("Cannot convert a Symbol value to a number");if(typeof Ge=="string"&&Ge.length>2){if(Ge=ye(Ge),tt=be(Ge,0),tt===43||tt===45){if(Me=be(Ge,2),Me===88||Me===120)return NaN}else if(tt===48){switch(be(Ge,1)){case 66:case 98:We=2,it=49;break;case 79:case 111:We=8,it=55;break;default:return+Ge}for(at=_e(Ge,2),$e=at.length,Je=0;Je<$e;Je++)if(Ye=be(at,Je),Ye<48||Ye>it)return NaN;return parseInt(at,We)}}return+Ge};if(ee(Se,!we(" 0o1")||!we("0b1")||we("+0x1"))){for(var Le=function(Ge){var tt=arguments.length<1?0:we(Ae(Ge)),Me=this;return b(xe,Me)&&ae(function(){ue(Me)})?x(Object(tt),Me,Le):tt},ke=te?le(we):"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,Oe;ke.length>Pe;Pe++)z(we,Oe=ke[Pe])&&!z(Le,Oe)&&ce(Le,Oe,fe(we,Oe));Le.prototype=xe,xe.constructor=Le,se(oe,Se,Le)}},{"../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(a,he,de){var te=a("../internals/export"),oe=a("../internals/object-assign");te({target:"Object",stat:!0,forced:Object.assign!==oe},{assign:oe})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(a,he,de){var te=a("../internals/export"),oe=a("../internals/object-to-array").entries;te({target:"Object",stat:!0},{entries:function(ee){return oe(ee)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(a,he,de){var te=a("../internals/export"),oe=a("../internals/native-symbol"),ne=a("../internals/fails"),ee=a("../internals/object-get-own-property-symbols"),se=a("../internals/to-object"),z=!oe||ne(function(){ee.f(1)});te({target:"Object",stat:!0,forced:z},{getOwnPropertySymbols:function(b){var E=ee.f;return E?E(se(b)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(a,he,de){var te=a("../internals/export"),oe=a("../internals/to-object"),ne=a("../internals/object-keys"),ee=a("../internals/fails"),se=ee(function(){ne(1)});te({target:"Object",stat:!0,forced:se},{keys:function(x){return ne(oe(x))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(a,he,de){var te=a("../internals/to-string-tag-support"),oe=a("../internals/redefine"),ne=a("../internals/object-to-string");te||oe(Object.prototype,"toString",ne,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/function-call"),ne=a("../internals/a-callable"),ee=a("../internals/new-promise-capability"),se=a("../internals/perform"),z=a("../internals/iterate"),x=a("../internals/promise-statics-incorrect-iteration");te({target:"Promise",stat:!0,forced:x},{all:function(E){var re=this,ae=ee.f(re),le=ae.resolve,fe=ae.reject,ce=se(function(){var ue=ne(re.resolve),ye=[],Se=0,we=1;z(E,function(xe){var ge=Se++,_e=!1;we++,oe(ue,re,xe).then(function(be){_e||(_e=!0,ye[ge]=be,--we||le(ye))},fe)}),--we||le(ye)});return ce.error&&fe(ce.value),ae.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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/is-pure"),ne=a("../internals/promise-constructor-detection").CONSTRUCTOR,ee=a("../internals/promise-native-constructor"),se=a("../internals/get-built-in"),z=a("../internals/is-callable"),x=a("../internals/redefine"),b=ee&&ee.prototype;if(te({target:"Promise",proto:!0,forced:ne,real:!0},{catch:function(re){return this.then(void 0,re)}}),!oe&&z(ee)){var E=se("Promise").prototype.catch;b.catch!==E&&x(b,"catch",E,{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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/is-pure"),ne=a("../internals/engine-is-node"),ee=a("../internals/global"),se=a("../internals/function-call"),z=a("../internals/redefine"),x=a("../internals/redefine-all"),b=a("../internals/object-set-prototype-of"),E=a("../internals/set-to-string-tag"),re=a("../internals/set-species"),ae=a("../internals/a-callable"),le=a("../internals/is-callable"),fe=a("../internals/is-object"),ce=a("../internals/an-instance"),ue=a("../internals/species-constructor"),ye=a("../internals/task").set,Se=a("../internals/microtask"),we=a("../internals/host-report-errors"),xe=a("../internals/perform"),ge=a("../internals/queue"),_e=a("../internals/internal-state"),be=a("../internals/promise-native-constructor"),Ae=a("../internals/promise-constructor-detection"),Te=a("../internals/new-promise-capability"),Le="Promise",ke=Ae.CONSTRUCTOR,Pe=Ae.REJECTION_EVENT,Oe=Ae.SUBCLASSING,ze=_e.getterFor(Le),Ge=_e.set,tt=be&&be.prototype,Me=be,We=tt,it=ee.TypeError,at=ee.document,$e=ee.process,Je=Te.f,Ye=Je,Qe=!!(at&&at.createEvent&&ee.dispatchEvent),st="unhandledrejection",ot="rejectionhandled",mt=0,ft=1,qe=2,Be=1,lt=2,Ne,rt,gt,yt,dt=function(Fe){var vt;return fe(Fe)&&le(vt=Fe.then)?vt:!1},Ve=function(Fe,vt){var wt=vt.value,Ot=vt.state==ft,Tt=Ot?Fe.ok:Fe.fail,xt=Fe.resolve,Nt=Fe.reject,Rt=Fe.domain,Ut,Qt,or;try{Tt?(Ot||(vt.rejection===lt&&je(vt),vt.rejection=Be),Tt===!0?Ut=wt:(Rt&&Rt.enter(),Ut=Tt(wt),Rt&&(Rt.exit(),or=!0)),Ut===Fe.promise?Nt(it("Promise-chain cycle")):(Qt=dt(Ut))?se(Qt,Ut,xt,Nt):xt(Ut)):Nt(wt)}catch(cr){Rt&&!or&&Rt.exit(),Nt(cr)}},He=function(Fe,vt){Fe.notified||(Fe.notified=!0,Se(function(){for(var wt=Fe.reactions,Ot;Ot=wt.get();)Ve(Ot,Fe);Fe.notified=!1,vt&&!Fe.rejection&&et(Fe)}))},Ze=function(Fe,vt,wt){var Ot,Tt;Qe?(Ot=at.createEvent("Event"),Ot.promise=vt,Ot.reason=wt,Ot.initEvent(Fe,!1,!0),ee.dispatchEvent(Ot)):Ot={promise:vt,reason:wt},!Pe&&(Tt=ee["on"+Fe])?Tt(Ot):Fe===st&&we("Unhandled promise rejection",wt)},et=function(Fe){se(ye,ee,function(){var vt=Fe.facade,wt=Fe.value,Ot=Ie(Fe),Tt;if(Ot&&(Tt=xe(function(){ne?$e.emit("unhandledRejection",wt,vt):Ze(st,vt,wt)}),Fe.rejection=ne||Ie(Fe)?lt:Be,Tt.error))throw Tt.value})},Ie=function(Fe){return Fe.rejection!==Be&&!Fe.parent},je=function(Fe){se(ye,ee,function(){var vt=Fe.facade;ne?$e.emit("rejectionHandled",vt):Ze(ot,vt,Fe.value)})},De=function(Fe,vt,wt){return function(Ot){Fe(vt,Ot,wt)}},Xe=function(Fe,vt,wt){Fe.done||(Fe.done=!0,wt&&(Fe=wt),Fe.value=vt,Fe.state=qe,He(Fe,!0))},ct=function(Fe,vt,wt){if(!Fe.done){Fe.done=!0,wt&&(Fe=wt);try{if(Fe.facade===vt)throw it("Promise can't be resolved itself");var Ot=dt(vt);Ot?Se(function(){var Tt={done:!1};try{se(Ot,vt,De(ct,Tt,Fe),De(Xe,Tt,Fe))}catch(xt){Xe(Tt,xt,Fe)}}):(Fe.value=vt,Fe.state=ft,He(Fe,!1))}catch(Tt){Xe({done:!1},Tt,Fe)}}};if(ke&&(Me=function(vt){ce(this,We),ae(vt),se(Ne,this);var wt=ze(this);try{vt(De(ct,wt),De(Xe,wt))}catch(Ot){Xe(wt,Ot)}},We=Me.prototype,Ne=function(vt){Ge(this,{type:Le,done:!1,notified:!1,parent:!1,reactions:new ge,rejection:!1,state:mt,value:void 0})},Ne.prototype=x(We,{then:function(vt,wt){var Ot=ze(this),Tt=Je(ue(this,Me));return Ot.parent=!0,Tt.ok=le(vt)?vt:!0,Tt.fail=le(wt)&&wt,Tt.domain=ne?$e.domain:void 0,Ot.state==mt?Ot.reactions.add(Tt):Se(function(){Ve(Tt,Ot)}),Tt.promise}}),rt=function(){var Fe=new Ne,vt=ze(Fe);this.promise=Fe,this.resolve=De(ct,vt),this.reject=De(Xe,vt)},Te.f=Je=function(Fe){return Fe===Me||Fe===gt?new rt(Fe):Ye(Fe)},!oe&&le(be)&&tt!==Object.prototype)){yt=tt.then,Oe||z(tt,"then",function(vt,wt){var Ot=this;return new Me(function(Tt,xt){se(yt,Ot,Tt,xt)}).then(vt,wt)},{unsafe:!0});try{delete tt.constructor}catch(Fe){}b&&b(tt,We)}te({global:!0,wrap:!0,forced:ke},{Promise:Me}),E(Me,Le,!1,!0),re(Le)},{"../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(a,he,de){a("../modules/es.promise.constructor"),a("../modules/es.promise.all"),a("../modules/es.promise.catch"),a("../modules/es.promise.race"),a("../modules/es.promise.reject"),a("../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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/function-call"),ne=a("../internals/a-callable"),ee=a("../internals/new-promise-capability"),se=a("../internals/perform"),z=a("../internals/iterate"),x=a("../internals/promise-statics-incorrect-iteration");te({target:"Promise",stat:!0,forced:x},{race:function(E){var re=this,ae=ee.f(re),le=ae.reject,fe=se(function(){var ce=ne(re.resolve);z(E,function(ue){oe(ce,re,ue).then(ae.resolve,le)})});return fe.error&&le(fe.value),ae.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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/function-call"),ne=a("../internals/new-promise-capability"),ee=a("../internals/promise-constructor-detection").CONSTRUCTOR;te({target:"Promise",stat:!0,forced:ee},{reject:function(z){var x=ne.f(this);return oe(x.reject,void 0,z),x.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/get-built-in"),ne=a("../internals/is-pure"),ee=a("../internals/promise-native-constructor"),se=a("../internals/promise-constructor-detection").CONSTRUCTOR,z=a("../internals/promise-resolve"),x=oe("Promise"),b=ne&&!se;te({target:"Promise",stat:!0,forced:ne||se},{resolve:function(re){return z(b&&this===x?ee:this,re)}})},{"../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(a,he,de){var te=a("../internals/descriptors"),oe=a("../internals/global"),ne=a("../internals/function-uncurry-this"),ee=a("../internals/is-forced"),se=a("../internals/inherit-if-required"),z=a("../internals/create-non-enumerable-property"),x=a("../internals/object-get-own-property-names").f,b=a("../internals/object-is-prototype-of"),E=a("../internals/is-regexp"),re=a("../internals/to-string"),ae=a("../internals/regexp-get-flags"),le=a("../internals/regexp-sticky-helpers"),fe=a("../internals/proxy-accessor"),ce=a("../internals/redefine"),ue=a("../internals/fails"),ye=a("../internals/has-own-property"),Se=a("../internals/internal-state").enforce,we=a("../internals/set-species"),xe=a("../internals/well-known-symbol"),ge=a("../internals/regexp-unsupported-dot-all"),_e=a("../internals/regexp-unsupported-ncg"),be=xe("match"),Ae=oe.RegExp,Te=Ae.prototype,Le=oe.SyntaxError,ke=ne(Te.exec),Pe=ne("".charAt),Oe=ne("".replace),ze=ne("".indexOf),Ge=ne("".slice),tt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Me=/a/g,We=/a/g,it=new Ae(Me)!==Me,at=le.MISSED_STICKY,$e=le.UNSUPPORTED_Y,Je=te&&(!it||at||ge||_e||ue(function(){return We[be]=!1,Ae(Me)!=Me||Ae(We)==We||Ae(Me,"i")!="/a/i"})),Ye=function(ft){for(var qe=ft.length,Be=0,lt="",Ne=!1,rt;Be<=qe;Be++){if(rt=Pe(ft,Be),rt==="\\"){lt+=rt+Pe(ft,++Be);continue}!Ne&&rt==="."?lt+="[\\s\\S]":(rt==="["?Ne=!0:rt==="]"&&(Ne=!1),lt+=rt)}return lt},Qe=function(ft){for(var qe=ft.length,Be=0,lt="",Ne=[],rt={},gt=!1,yt=!1,dt=0,Ve="",He;Be<=qe;Be++){if(He=Pe(ft,Be),He==="\\")He=He+Pe(ft,++Be);else if(He==="]")gt=!1;else if(!gt)switch(!0){case He==="[":gt=!0;break;case He==="(":ke(tt,Ge(ft,Be+1))&&(Be+=2,yt=!0),lt+=He,dt++;continue;case(He===">"&&yt):if(Ve===""||ye(rt,Ve))throw new Le("Invalid capture group name");rt[Ve]=!0,Ne[Ne.length]=[Ve,dt],yt=!1,Ve="";continue}yt?Ve+=He:lt+=He}return[lt,Ne]};if(ee("RegExp",Je)){for(var st=function(qe,Be){var lt=b(Te,this),Ne=E(qe),rt=Be===void 0,gt=[],yt=qe,dt,Ve,He,Ze,et,Ie;if(!lt&&Ne&&rt&&qe.constructor===st)return qe;if((Ne||b(Te,qe))&&(qe=qe.source,rt&&(Be=ae(yt))),qe=qe===void 0?"":re(qe),Be=Be===void 0?"":re(Be),yt=qe,ge&&"dotAll"in Me&&(Ve=!!Be&&ze(Be,"s")>-1,Ve&&(Be=Oe(Be,/s/g,""))),dt=Be,at&&"sticky"in Me&&(He=!!Be&&ze(Be,"y")>-1,He&&$e&&(Be=Oe(Be,/y/g,""))),_e&&(Ze=Qe(qe),qe=Ze[0],gt=Ze[1]),et=se(Ae(qe,Be),lt?this:Te,st),(Ve||He||gt.length)&&(Ie=Se(et),Ve&&(Ie.dotAll=!0,Ie.raw=st(Ye(qe),dt)),He&&(Ie.sticky=!0),gt.length&&(Ie.groups=gt)),qe!==yt)try{z(et,"source",yt===""?"(?:)":yt)}catch(je){}return et},ot=x(Ae),mt=0;ot.length>mt;)fe(st,Ae,ot[mt++]);Te.constructor=st,st.prototype=Te,ce(oe,"RegExp",st)}we("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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/regexp-exec");te({target:"RegExp",proto:!0,forced:/./.exec!==oe},{exec:oe})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(a,he,de){"use strict";var te=a("../internals/function-name").PROPER,oe=a("../internals/redefine"),ne=a("../internals/an-object"),ee=a("../internals/to-string"),se=a("../internals/fails"),z=a("../internals/regexp-get-flags"),x="toString",b=RegExp.prototype,E=b[x],re=se(function(){return E.call({source:"a",flags:"b"})!="/a/b"}),ae=te&&E.name!=x;(re||ae)&&oe(RegExp.prototype,x,function(){var fe=ne(this),ce=ee(fe.source),ue=ee(z(fe));return"/"+ce+"/"+ue},{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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/function-uncurry-this"),ne=a("../internals/not-a-regexp"),ee=a("../internals/require-object-coercible"),se=a("../internals/to-string"),z=a("../internals/correct-is-regexp-logic"),x=oe("".indexOf);te({target:"String",proto:!0,forced:!z("includes")},{includes:function(E){return!!~x(se(ee(this)),se(ne(E)),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(a,he,de){"use strict";var te=a("../internals/string-multibyte").charAt,oe=a("../internals/to-string"),ne=a("../internals/internal-state"),ee=a("../internals/define-iterator"),se="String Iterator",z=ne.set,x=ne.getterFor(se);ee(String,"String",function(b){z(this,{type:se,string:oe(b),index:0})},function(){var E=x(this),re=E.string,ae=E.index,le;return ae>=re.length?{value:void 0,done:!0}:(le=te(re,ae),E.index+=le.length,{value:le,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(a,he,de){"use strict";var te=a("../internals/function-call"),oe=a("../internals/fix-regexp-well-known-symbol-logic"),ne=a("../internals/an-object"),ee=a("../internals/to-length"),se=a("../internals/to-string"),z=a("../internals/require-object-coercible"),x=a("../internals/get-method"),b=a("../internals/advance-string-index"),E=a("../internals/regexp-exec-abstract");oe("match",function(re,ae,le){return[function(ce){var ue=z(this),ye=ce==null?void 0:x(ce,re);return ye?te(ye,ce,ue):new RegExp(ce)[re](se(ue))},function(fe){var ce=ne(this),ue=se(fe),ye=le(ae,ce,ue);if(ye.done)return ye.value;if(!ce.global)return E(ce,ue);var Se=ce.unicode;ce.lastIndex=0;for(var we=[],xe=0,ge;(ge=E(ce,ue))!==null;){var _e=se(ge[0]);we[xe]=_e,_e===""&&(ce.lastIndex=b(ue,ee(ce.lastIndex),Se)),xe++}return xe===0?null:we}]})},{"../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(a,he,de){"use strict";var te=a("../internals/function-apply"),oe=a("../internals/function-call"),ne=a("../internals/function-uncurry-this"),ee=a("../internals/fix-regexp-well-known-symbol-logic"),se=a("../internals/fails"),z=a("../internals/an-object"),x=a("../internals/is-callable"),b=a("../internals/to-integer-or-infinity"),E=a("../internals/to-length"),re=a("../internals/to-string"),ae=a("../internals/require-object-coercible"),le=a("../internals/advance-string-index"),fe=a("../internals/get-method"),ce=a("../internals/get-substitution"),ue=a("../internals/regexp-exec-abstract"),ye=a("../internals/well-known-symbol"),Se=ye("replace"),we=Math.max,xe=Math.min,ge=ne([].concat),_e=ne([].push),be=ne("".indexOf),Ae=ne("".slice),Te=function(Oe){return Oe===void 0?Oe:String(Oe)},Le=function(){return"a".replace(/./,"$0")==="$0"}(),ke=function(){return/./[Se]?/./[Se]("a","$0")==="":!1}(),Pe=!se(function(){var Oe=/./;return Oe.exec=function(){var ze=[];return ze.groups={a:"7"},ze},"".replace(Oe,"$<a>")!=="7"});ee("replace",function(Oe,ze,Ge){var tt=ke?"$":"$0";return[function(We,it){var at=ae(this),$e=We==null?void 0:fe(We,Se);return $e?oe($e,We,at,it):oe(ze,re(at),We,it)},function(Me,We){var it=z(this),at=re(Me);if(typeof We=="string"&&be(We,tt)===-1&&be(We,"$<")===-1){var $e=Ge(ze,it,at,We);if($e.done)return $e.value}var Je=x(We);Je||(We=re(We));var Ye=it.global;if(Ye){var Qe=it.unicode;it.lastIndex=0}for(var st=[];;){var ot=ue(it,at);if(ot===null||(_e(st,ot),!Ye))break;var mt=re(ot[0]);mt===""&&(it.lastIndex=le(at,E(it.lastIndex),Qe))}for(var ft="",qe=0,Be=0;Be<st.length;Be++){ot=st[Be];for(var lt=re(ot[0]),Ne=we(xe(b(ot.index),at.length),0),rt=[],gt=1;gt<ot.length;gt++)_e(rt,Te(ot[gt]));var yt=ot.groups;if(Je){var dt=ge([lt],rt,Ne,at);yt!==void 0&&_e(dt,yt);var Ve=re(te(We,void 0,dt))}else Ve=ce(lt,at,Ne,rt,yt,We);Ne>=qe&&(ft+=Ae(at,qe,Ne)+Ve,qe=Ne+lt.length)}return ft+Ae(at,qe)}]},!Pe||!Le||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(a,he,de){"use strict";var te=a("../internals/function-call"),oe=a("../internals/fix-regexp-well-known-symbol-logic"),ne=a("../internals/an-object"),ee=a("../internals/require-object-coercible"),se=a("../internals/same-value"),z=a("../internals/to-string"),x=a("../internals/get-method"),b=a("../internals/regexp-exec-abstract");oe("search",function(E,re,ae){return[function(fe){var ce=ee(this),ue=fe==null?void 0:x(fe,E);return ue?te(ue,fe,ce):new RegExp(fe)[E](z(ce))},function(le){var fe=ne(this),ce=z(le),ue=ae(re,fe,ce);if(ue.done)return ue.value;var ye=fe.lastIndex;se(ye,0)||(fe.lastIndex=0);var Se=b(fe,ce);return se(fe.lastIndex,ye)||(fe.lastIndex=ye),Se===null?-1:Se.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(a,he,de){"use strict";var te=a("../internals/function-apply"),oe=a("../internals/function-call"),ne=a("../internals/function-uncurry-this"),ee=a("../internals/fix-regexp-well-known-symbol-logic"),se=a("../internals/is-regexp"),z=a("../internals/an-object"),x=a("../internals/require-object-coercible"),b=a("../internals/species-constructor"),E=a("../internals/advance-string-index"),re=a("../internals/to-length"),ae=a("../internals/to-string"),le=a("../internals/get-method"),fe=a("../internals/array-slice-simple"),ce=a("../internals/regexp-exec-abstract"),ue=a("../internals/regexp-exec"),ye=a("../internals/regexp-sticky-helpers"),Se=a("../internals/fails"),we=ye.UNSUPPORTED_Y,xe=4294967295,ge=Math.min,_e=[].push,be=ne(/./.exec),Ae=ne(_e),Te=ne("".slice),Le=!Se(function(){var ke=/(?:)/,Pe=ke.exec;ke.exec=function(){return Pe.apply(this,arguments)};var Oe="ab".split(ke);return Oe.length!==2||Oe[0]!=="a"||Oe[1]!=="b"});ee("split",function(ke,Pe,Oe){var ze;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?ze=function(Ge,tt){var Me=ae(x(this)),We=tt===void 0?xe:tt>>>0;if(We===0)return[];if(Ge===void 0)return[Me];if(!se(Ge))return oe(Pe,Me,Ge,We);for(var it=[],at=(Ge.ignoreCase?"i":"")+(Ge.multiline?"m":"")+(Ge.unicode?"u":"")+(Ge.sticky?"y":""),$e=0,Je=new RegExp(Ge.source,at+"g"),Ye,Qe,st;(Ye=oe(ue,Je,Me))&&(Qe=Je.lastIndex,!(Qe>$e&&(Ae(it,Te(Me,$e,Ye.index)),Ye.length>1&&Ye.index<Me.length&&te(_e,it,fe(Ye,1)),st=Ye[0].length,$e=Qe,it.length>=We)));)Je.lastIndex===Ye.index&&Je.lastIndex++;return $e===Me.length?(st||!be(Je,""))&&Ae(it,""):Ae(it,Te(Me,$e)),it.length>We?fe(it,0,We):it}:"0".split(void 0,0).length?ze=function(Ge,tt){return Ge===void 0&&tt===0?[]:oe(Pe,this,Ge,tt)}:ze=Pe,[function(tt,Me){var We=x(this),it=tt==null?void 0:le(tt,ke);return it?oe(it,tt,We,Me):oe(ze,ae(We),tt,Me)},function(Ge,tt){var Me=z(this),We=ae(Ge),it=Oe(ze,Me,We,tt,ze!==Pe);if(it.done)return it.value;var at=b(Me,RegExp),$e=Me.unicode,Je=(Me.ignoreCase?"i":"")+(Me.multiline?"m":"")+(Me.unicode?"u":"")+(we?"g":"y"),Ye=new at(we?"^(?:"+Me.source+")":Me,Je),Qe=tt===void 0?xe:tt>>>0;if(Qe===0)return[];if(We.length===0)return ce(Ye,We)===null?[We]:[];for(var st=0,ot=0,mt=[];ot<We.length;){Ye.lastIndex=we?0:ot;var ft=ce(Ye,we?Te(We,ot):We),qe;if(ft===null||(qe=ge(re(Ye.lastIndex+(we?ot:0)),We.length))===st)ot=E(We,ot,$e);else{if(Ae(mt,Te(We,st,ot)),mt.length===Qe)return mt;for(var Be=1;Be<=ft.length-1;Be++)if(Ae(mt,ft[Be]),mt.length===Qe)return mt;ot=st=qe}}return Ae(mt,Te(We,st)),mt}]},!Le,we)},{"../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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/string-trim").trim,ne=a("../internals/string-trim-forced");te({target:"String",proto:!0,forced:ne("trim")},{trim:function(){return oe(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/global"),ne=a("../internals/function-call"),ee=a("../internals/function-uncurry-this"),se=a("../internals/is-pure"),z=a("../internals/descriptors"),x=a("../internals/native-symbol"),b=a("../internals/fails"),E=a("../internals/has-own-property"),re=a("../internals/object-is-prototype-of"),ae=a("../internals/an-object"),le=a("../internals/to-indexed-object"),fe=a("../internals/to-property-key"),ce=a("../internals/to-string"),ue=a("../internals/create-property-descriptor"),ye=a("../internals/object-create"),Se=a("../internals/object-keys"),we=a("../internals/object-get-own-property-names"),xe=a("../internals/object-get-own-property-names-external"),ge=a("../internals/object-get-own-property-symbols"),_e=a("../internals/object-get-own-property-descriptor"),be=a("../internals/object-define-property"),Ae=a("../internals/object-define-properties"),Te=a("../internals/object-property-is-enumerable"),Le=a("../internals/redefine"),ke=a("../internals/shared"),Pe=a("../internals/shared-key"),Oe=a("../internals/hidden-keys"),ze=a("../internals/uid"),Ge=a("../internals/well-known-symbol"),tt=a("../internals/well-known-symbol-wrapped"),Me=a("../internals/define-well-known-symbol"),We=a("../internals/symbol-define-to-primitive"),it=a("../internals/set-to-string-tag"),at=a("../internals/internal-state"),$e=a("../internals/array-iteration").forEach,Je=Pe("hidden"),Ye="Symbol",Qe="prototype",st=at.set,ot=at.getterFor(Ye),mt=Object[Qe],ft=oe.Symbol,qe=ft&&ft[Qe],Be=oe.TypeError,lt=oe.QObject,Ne=_e.f,rt=be.f,gt=xe.f,yt=Te.f,dt=ee([].push),Ve=ke("symbols"),He=ke("op-symbols"),Ze=ke("wks"),et=!lt||!lt[Qe]||!lt[Qe].findChild,Ie=z&&b(function(){return ye(rt({},"a",{get:function(){return rt(this,"a",{value:7}).a}})).a!=7})?function(Tt,xt,Nt){var Rt=Ne(mt,xt);Rt&&delete mt[xt],rt(Tt,xt,Nt),Rt&&Tt!==mt&&rt(mt,xt,Rt)}:rt,je=function(Tt,xt){var Nt=Ve[Tt]=ye(qe);return st(Nt,{type:Ye,tag:Tt,description:xt}),z||(Nt.description=xt),Nt},De=function(xt,Nt,Rt){xt===mt&&De(He,Nt,Rt),ae(xt);var Ut=fe(Nt);return ae(Rt),E(Ve,Ut)?(Rt.enumerable?(E(xt,Je)&&xt[Je][Ut]&&(xt[Je][Ut]=!1),Rt=ye(Rt,{enumerable:ue(0,!1)})):(E(xt,Je)||rt(xt,Je,ue(1,{})),xt[Je][Ut]=!0),Ie(xt,Ut,Rt)):rt(xt,Ut,Rt)},Xe=function(xt,Nt){ae(xt);var Rt=le(Nt),Ut=Se(Rt).concat(Ot(Rt));return $e(Ut,function(Qt){(!z||ne(Fe,Rt,Qt))&&De(xt,Qt,Rt[Qt])}),xt},ct=function(xt,Nt){return Nt===void 0?ye(xt):Xe(ye(xt),Nt)},Fe=function(xt){var Nt=fe(xt),Rt=ne(yt,this,Nt);return this===mt&&E(Ve,Nt)&&!E(He,Nt)?!1:Rt||!E(this,Nt)||!E(Ve,Nt)||E(this,Je)&&this[Je][Nt]?Rt:!0},vt=function(xt,Nt){var Rt=le(xt),Ut=fe(Nt);if(!(Rt===mt&&E(Ve,Ut)&&!E(He,Ut))){var Qt=Ne(Rt,Ut);return Qt&&E(Ve,Ut)&&!(E(Rt,Je)&&Rt[Je][Ut])&&(Qt.enumerable=!0),Qt}},wt=function(xt){var Nt=gt(le(xt)),Rt=[];return $e(Nt,function(Ut){!E(Ve,Ut)&&!E(Oe,Ut)&&dt(Rt,Ut)}),Rt},Ot=function(Tt){var xt=Tt===mt,Nt=gt(xt?He:le(Tt)),Rt=[];return $e(Nt,function(Ut){E(Ve,Ut)&&(!xt||E(mt,Ut))&&dt(Rt,Ve[Ut])}),Rt};x||(ft=function(){if(re(qe,this))throw Be("Symbol is not a constructor");var xt=!arguments.length||arguments[0]===void 0?void 0:ce(arguments[0]),Nt=ze(xt),Rt=function(Ut){this===mt&&ne(Rt,He,Ut),E(this,Je)&&E(this[Je],Nt)&&(this[Je][Nt]=!1),Ie(this,Nt,ue(1,Ut))};return z&&et&&Ie(mt,Nt,{configurable:!0,set:Rt}),je(Nt,xt)},qe=ft[Qe],Le(qe,"toString",function(){return ot(this).tag}),Le(ft,"withoutSetter",function(Tt){return je(ze(Tt),Tt)}),Te.f=Fe,be.f=De,Ae.f=Xe,_e.f=vt,we.f=xe.f=wt,ge.f=Ot,tt.f=function(Tt){return je(Ge(Tt),Tt)},z&&(rt(qe,"description",{configurable:!0,get:function(){return ot(this).description}}),se||Le(mt,"propertyIsEnumerable",Fe,{unsafe:!0}))),te({global:!0,wrap:!0,forced:!x,sham:!x},{Symbol:ft}),$e(Se(Ze),function(Tt){Me(Tt)}),te({target:Ye,stat:!0,forced:!x},{useSetter:function(){et=!0},useSimple:function(){et=!1}}),te({target:"Object",stat:!0,forced:!x,sham:!z},{create:ct,defineProperty:De,defineProperties:Xe,getOwnPropertyDescriptor:vt}),te({target:"Object",stat:!0,forced:!x},{getOwnPropertyNames:wt}),We(),it(ft,Ye),Oe[Je]=!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(a,he,de){"use strict";var te=a("../internals/export"),oe=a("../internals/descriptors"),ne=a("../internals/global"),ee=a("../internals/function-uncurry-this"),se=a("../internals/has-own-property"),z=a("../internals/is-callable"),x=a("../internals/object-is-prototype-of"),b=a("../internals/to-string"),E=a("../internals/object-define-property").f,re=a("../internals/copy-constructor-properties"),ae=ne.Symbol,le=ae&&ae.prototype;if(oe&&z(ae)&&(!("description"in le)||ae().description!==void 0)){var fe={},ce=function(){var be=arguments.length<1||arguments[0]===void 0?void 0:b(arguments[0]),Ae=x(le,this)?new ae(be):be===void 0?ae():ae(be);return be===""&&(fe[Ae]=!0),Ae};re(ce,ae),ce.prototype=le,le.constructor=ce;var ue=String(ae("test"))=="Symbol(test)",ye=ee(le.toString),Se=ee(le.valueOf),we=/^Symbol\((.*)\)[^)]+$/,xe=ee("".replace),ge=ee("".slice);E(le,"description",{configurable:!0,get:function(){var be=Se(this),Ae=ye(be);if(se(fe,be))return"";var Te=ue?ge(Ae,7,-1):xe(Ae,we,"$1");return Te===""?void 0:Te}}),te({global:!0,forced:!0},{Symbol:ce})}},{"../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(a,he,de){var te=a("../internals/export"),oe=a("../internals/get-built-in"),ne=a("../internals/has-own-property"),ee=a("../internals/to-string"),se=a("../internals/shared"),z=a("../internals/native-symbol-registry"),x=se("string-to-symbol-registry"),b=se("symbol-to-string-registry");te({target:"Symbol",stat:!0,forced:!z},{for:function(E){var re=ee(E);if(ne(x,re))return x[re];var ae=oe("Symbol")(re);return x[re]=ae,b[ae]=re,ae}})},{"../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(a,he,de){var te=a("../internals/define-well-known-symbol");te("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(a,he,de){a("../modules/es.symbol.constructor"),a("../modules/es.symbol.for"),a("../modules/es.symbol.key-for"),a("../modules/es.json.stringify"),a("../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(a,he,de){var te=a("../internals/export"),oe=a("../internals/has-own-property"),ne=a("../internals/is-symbol"),ee=a("../internals/try-to-string"),se=a("../internals/shared"),z=a("../internals/native-symbol-registry"),x=se("symbol-to-string-registry");te({target:"Symbol",stat:!0,forced:!z},{keyFor:function(E){if(!ne(E))throw TypeError(ee(E)+" is not a symbol");if(oe(x,E))return x[E]}})},{"../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(a,he,de){"use strict";var te=a("../internals/function-uncurry-this"),oe=a("../internals/array-buffer-view-core"),ne=a("../internals/array-copy-within"),ee=te(ne),se=oe.aTypedArray,z=oe.exportTypedArrayMethod;z("copyWithin",function(b,E){return ee(se(this),b,E,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(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/array-iteration").every,ne=te.aTypedArray,ee=te.exportTypedArrayMethod;ee("every",function(z){return oe(ne(this),z,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/function-call"),ne=a("../internals/array-fill"),ee=te.aTypedArray,se=te.exportTypedArrayMethod;se("fill",function(x){var b=arguments.length;return oe(ne,ee(this),x,b>1?arguments[1]:void 0,b>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/array-iteration").filter,ne=a("../internals/typed-array-from-species-and-list"),ee=te.aTypedArray,se=te.exportTypedArrayMethod;se("filter",function(x){var b=oe(ee(this),x,arguments.length>1?arguments[1]:void 0);return ne(this,b)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/array-iteration").findIndex,ne=te.aTypedArray,ee=te.exportTypedArrayMethod;ee("findIndex",function(z){return oe(ne(this),z,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/array-iteration").find,ne=te.aTypedArray,ee=te.exportTypedArrayMethod;ee("find",function(z){return oe(ne(this),z,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/array-iteration").forEach,ne=te.aTypedArray,ee=te.exportTypedArrayMethod;ee("forEach",function(z){oe(ne(this),z,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/array-includes").includes,ne=te.aTypedArray,ee=te.exportTypedArrayMethod;ee("includes",function(z){return oe(ne(this),z,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/array-includes").indexOf,ne=te.aTypedArray,ee=te.exportTypedArrayMethod;ee("indexOf",function(z){return oe(ne(this),z,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(a,he,de){"use strict";var te=a("../internals/global"),oe=a("../internals/fails"),ne=a("../internals/function-uncurry-this"),ee=a("../internals/array-buffer-view-core"),se=a("../modules/es.array.iterator"),z=a("../internals/well-known-symbol"),x=z("iterator"),b=te.Uint8Array,E=ne(se.values),re=ne(se.keys),ae=ne(se.entries),le=ee.aTypedArray,fe=ee.exportTypedArrayMethod,ce=b&&b.prototype,ue=!oe(function(){ce[x].call([1])}),ye=!!ce&&ce.values&&ce[x]===ce.values&&ce.values.name==="values",Se=function(){return E(le(this))};fe("entries",function(){return ae(le(this))},ue),fe("keys",function(){return re(le(this))},ue),fe("values",Se,ue||!ye,{name:"values"}),fe(x,Se,ue||!ye,{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(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/function-uncurry-this"),ne=te.aTypedArray,ee=te.exportTypedArrayMethod,se=oe([].join);ee("join",function(x){return se(ne(this),x)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/function-apply"),ne=a("../internals/array-last-index-of"),ee=te.aTypedArray,se=te.exportTypedArrayMethod;se("lastIndexOf",function(x){var b=arguments.length;return oe(ne,ee(this),b>1?[x,arguments[1]]:[x])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/array-iteration").map,ne=a("../internals/typed-array-species-constructor"),ee=te.aTypedArray,se=te.exportTypedArrayMethod;se("map",function(x){return oe(ee(this),x,arguments.length>1?arguments[1]:void 0,function(b,E){return new(ne(b))(E)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/array-reduce").right,ne=te.aTypedArray,ee=te.exportTypedArrayMethod;ee("reduceRight",function(z){var x=arguments.length;return oe(ne(this),z,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/array-reduce").left,ne=te.aTypedArray,ee=te.exportTypedArrayMethod;ee("reduce",function(z){var x=arguments.length;return oe(ne(this),z,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=te.aTypedArray,ne=te.exportTypedArrayMethod,ee=Math.floor;ne("reverse",function(){for(var z=this,x=oe(z).length,b=ee(x/2),E=0,re;E<b;)re=z[E],z[E++]=z[--x],z[x]=re;return z})},{"../internals/array-buffer-view-core":103}],331:[function(a,he,de){"use strict";var te=a("../internals/global"),oe=a("../internals/function-call"),ne=a("../internals/array-buffer-view-core"),ee=a("../internals/length-of-array-like"),se=a("../internals/to-offset"),z=a("../internals/to-object"),x=a("../internals/fails"),b=te.RangeError,E=te.Int8Array,re=E&&E.prototype,ae=re&&re.set,le=ne.aTypedArray,fe=ne.exportTypedArrayMethod,ce=!x(function(){var ye=new Uint8ClampedArray(2);return oe(ae,ye,{length:1,0:3},1),ye[1]!==3}),ue=ce&&ne.NATIVE_ARRAY_BUFFER_VIEWS&&x(function(){var ye=new E(2);return ye.set(1),ye.set("2",1),ye[0]!==0||ye[1]!==2});fe("set",function(Se){le(this);var we=se(arguments.length>1?arguments[1]:void 0,1),xe=z(Se);if(ce)return oe(ae,this,xe,we);var ge=this.length,_e=ee(xe),be=0;if(_e+we>ge)throw b("Wrong length");for(;be<_e;)this[we+be]=xe[be++]},!ce||ue)},{"../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(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/typed-array-species-constructor"),ne=a("../internals/fails"),ee=a("../internals/array-slice"),se=te.aTypedArray,z=te.exportTypedArrayMethod,x=ne(function(){new Int8Array(1).slice()});z("slice",function(E,re){for(var ae=ee(se(this),E,re),le=oe(this),fe=0,ce=ae.length,ue=new le(ce);ce>fe;)ue[fe]=ae[fe++];return ue},x)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/array-iteration").some,ne=te.aTypedArray,ee=te.exportTypedArrayMethod;ee("some",function(z){return oe(ne(this),z,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(a,he,de){"use strict";var te=a("../internals/global"),oe=a("../internals/function-uncurry-this"),ne=a("../internals/fails"),ee=a("../internals/a-callable"),se=a("../internals/array-sort"),z=a("../internals/array-buffer-view-core"),x=a("../internals/engine-ff-version"),b=a("../internals/engine-is-ie-or-edge"),E=a("../internals/engine-v8-version"),re=a("../internals/engine-webkit-version"),ae=z.aTypedArray,le=z.exportTypedArrayMethod,fe=te.Uint16Array,ce=fe&&oe(fe.prototype.sort),ue=!!ce&&!(ne(function(){ce(new fe(2),null)})&&ne(function(){ce(new fe(2),{})})),ye=!!ce&&!ne(function(){if(E)return E<74;if(x)return x<67;if(b)return!0;if(re)return re<602;var we=new fe(516),xe=Array(516),ge,_e;for(ge=0;ge<516;ge++)_e=ge%4,we[ge]=515-ge,xe[ge]=ge-2*_e+3;for(ce(we,function(be,Ae){return(be/4|0)-(Ae/4|0)}),ge=0;ge<516;ge++)if(we[ge]!==xe[ge])return!0}),Se=function(we){return function(xe,ge){return we!==void 0?+we(xe,ge)||0:ge!==ge?-1:xe!==xe?1:xe===0&&ge===0?1/xe>0&&1/ge<0?1:-1:xe>ge}};le("sort",function(xe){return xe!==void 0&&ee(xe),ye?ce(this,xe):se(ae(this),Se(xe))},!ye||ue)},{"../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(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core"),oe=a("../internals/to-length"),ne=a("../internals/to-absolute-index"),ee=a("../internals/typed-array-species-constructor"),se=te.aTypedArray,z=te.exportTypedArrayMethod;z("subarray",function(b,E){var re=se(this),ae=re.length,le=ne(b,ae),fe=ee(re);return new fe(re.buffer,re.byteOffset+le*re.BYTES_PER_ELEMENT,oe((E===void 0?ae:ne(E,ae))-le))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(a,he,de){"use strict";var te=a("../internals/global"),oe=a("../internals/function-apply"),ne=a("../internals/array-buffer-view-core"),ee=a("../internals/fails"),se=a("../internals/array-slice"),z=te.Int8Array,x=ne.aTypedArray,b=ne.exportTypedArrayMethod,E=[].toLocaleString,re=!!z&&ee(function(){E.call(new z(1))}),ae=ee(function(){return[1,2].toLocaleString()!=new z([1,2]).toLocaleString()})||!ee(function(){z.prototype.toLocaleString.call([1,2])});b("toLocaleString",function(){return oe(E,re?se(x(this)):x(this),se(arguments))},ae)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(a,he,de){"use strict";var te=a("../internals/array-buffer-view-core").exportTypedArrayMethod,oe=a("../internals/fails"),ne=a("../internals/global"),ee=a("../internals/function-uncurry-this"),se=ne.Uint8Array,z=se&&se.prototype||{},x=[].toString,b=ee([].join);oe(function(){x.call({})})&&(x=function(){return b(this)});var E=z.toString!=x;te("toString",x,E)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(a,he,de){var te=a("../internals/typed-array-constructor");te("Uint8",function(oe){return function(ee,se,z){return oe(this,ee,se,z)}})},{"../internals/typed-array-constructor":258}],339:[function(a,he,de){var te=a("../internals/global"),oe=a("../internals/dom-iterables"),ne=a("../internals/dom-token-list-prototype"),ee=a("../internals/array-for-each"),se=a("../internals/create-non-enumerable-property"),z=function(b){if(b&&b.forEach!==ee)try{se(b,"forEach",ee)}catch(E){b.forEach=ee}};for(var x in oe)oe[x]&&z(te[x]&&te[x].prototype);z(ne)},{"../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(a,he,de){var te=a("../internals/global"),oe=a("../internals/dom-iterables"),ne=a("../internals/dom-token-list-prototype"),ee=a("../modules/es.array.iterator"),se=a("../internals/create-non-enumerable-property"),z=a("../internals/well-known-symbol"),x=z("iterator"),b=z("toStringTag"),E=ee.values,re=function(le,fe){if(le){if(le[x]!==E)try{se(le,x,E)}catch(ue){le[x]=E}if(le[b]||se(le,b,fe),oe[fe]){for(var ce in ee)if(le[ce]!==ee[ce])try{se(le,ce,ee[ce])}catch(ue){le[ce]=ee[ce]}}}};for(var ae in oe)re(te[ae]&&te[ae].prototype,ae);re(ne,"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(a,he,de){function te(ye){return Array.isArray?Array.isArray(ye):ue(ye)==="[object Array]"}de.isArray=te;function oe(ye){return typeof ye=="boolean"}de.isBoolean=oe;function ne(ye){return ye===null}de.isNull=ne;function ee(ye){return ye==null}de.isNullOrUndefined=ee;function se(ye){return typeof ye=="number"}de.isNumber=se;function z(ye){return typeof ye=="string"}de.isString=z;function x(ye){return typeof ye=="symbol"}de.isSymbol=x;function b(ye){return ye===void 0}de.isUndefined=b;function E(ye){return ue(ye)==="[object RegExp]"}de.isRegExp=E;function re(ye){return typeof ye=="object"&&ye!==null}de.isObject=re;function ae(ye){return ue(ye)==="[object Date]"}de.isDate=ae;function le(ye){return ue(ye)==="[object Error]"||ye instanceof Error}de.isError=le;function fe(ye){return typeof ye=="function"}de.isFunction=fe;function ce(ye){return ye===null||typeof ye=="boolean"||typeof ye=="number"||typeof ye=="string"||typeof ye=="symbol"||typeof ye=="undefined"}de.isPrimitive=ce,de.isBuffer=a("buffer").Buffer.isBuffer;function ue(ye){return Object.prototype.toString.call(ye)}},{buffer:90}],342:[function(a,he,de){(function(te){"use strict";var oe=function(){var x=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,E=/[^-+\dA-Z]/g;return function(re,ae,le,fe){if(arguments.length===1&&z(re)==="string"&&!/\d/.test(re)&&(ae=re,re=void 0),re=re||new Date,re instanceof Date||(re=new Date(re)),isNaN(re))throw TypeError("Invalid date");ae=String(oe.masks[ae]||ae||oe.masks.default);var ce=ae.slice(0,4);(ce==="UTC:"||ce==="GMT:")&&(ae=ae.slice(4),le=!0,ce==="GMT:"&&(fe=!0));var ue=le?"getUTC":"get",ye=re[ue+"Date"](),Se=re[ue+"Day"](),we=re[ue+"Month"](),xe=re[ue+"FullYear"](),ge=re[ue+"Hours"](),_e=re[ue+"Minutes"](),be=re[ue+"Seconds"](),Ae=re[ue+"Milliseconds"](),Te=le?0:re.getTimezoneOffset(),Le=ee(re),ke=se(re),Pe={d:ye,dd:ne(ye),ddd:oe.i18n.dayNames[Se],dddd:oe.i18n.dayNames[Se+7],m:we+1,mm:ne(we+1),mmm:oe.i18n.monthNames[we],mmmm:oe.i18n.monthNames[we+12],yy:String(xe).slice(2),yyyy:xe,h:ge%12||12,hh:ne(ge%12||12),H:ge,HH:ne(ge),M:_e,MM:ne(_e),s:be,ss:ne(be),l:ne(Ae,3),L:ne(Math.round(Ae/10)),t:ge<12?"a":"p",tt:ge<12?"am":"pm",T:ge<12?"A":"P",TT:ge<12?"AM":"PM",Z:fe?"GMT":le?"UTC":(String(re).match(b)||[""]).pop().replace(E,""),o:(Te>0?"-":"+")+ne(Math.floor(Math.abs(Te)/60)*100+Math.abs(Te)%60,4),S:["th","st","nd","rd"][ye%10>3?0:(ye%100-ye%10!=10)*ye%10],W:Le,N:ke};return ae.replace(x,function(Oe){return Oe in Pe?Pe[Oe]:Oe.slice(1,Oe.length-1)})}}();oe.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"},oe.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 ne(x,b){for(x=String(x),b=b||2;x.length<b;)x="0"+x;return x}function ee(x){var b=new Date(x.getFullYear(),x.getMonth(),x.getDate());b.setDate(b.getDate()-(b.getDay()+6)%7+3);var E=new Date(b.getFullYear(),0,4);E.setDate(E.getDate()-(E.getDay()+6)%7+3);var re=b.getTimezoneOffset()-E.getTimezoneOffset();b.setHours(b.getHours()-re);var ae=(b-E)/(864e5*7);return 1+Math.floor(ae)}function se(x){var b=x.getDay();return b===0&&(b=7),b}function z(x){return x===null?"null":x===void 0?"undefined":typeof x!="object"?typeof x:Array.isArray(x)?"array":{}.toString.call(x).slice(8,-1).toLowerCase()}typeof Ce=="function"&&Ce.amd?Ce(function(){return oe}):typeof de=="object"?he.exports=oe:te.dateFormat=oe})(this)},{}],343:[function(a,he,de){"use strict";var te=/["'&<>]/;he.exports=oe;function oe(ne){var ee=""+ne,se=te.exec(ee);if(!se)return ee;var z,x="",b=0,E=0;for(b=se.index;b<ee.length;b++){switch(ee.charCodeAt(b)){case 34:z="&quot;";break;case 38:z="&amp;";break;case 39:z="&#39;";break;case 60:z="&lt;";break;case 62:z="&gt;";break;default:continue}E!==b&&(x+=ee.substring(E,b)),E=b+1,x+=z}return E!==b?x+ee.substring(E,b):x}},{}],344:[function(a,he,de){"use strict";var te=typeof Reflect=="object"?Reflect:null,oe=te&&typeof te.apply=="function"?te.apply:function(be,Ae,Te){return Function.prototype.apply.call(be,Ae,Te)},ne;te&&typeof te.ownKeys=="function"?ne=te.ownKeys:Object.getOwnPropertySymbols?ne=function(be){return Object.getOwnPropertyNames(be).concat(Object.getOwnPropertySymbols(be))}:ne=function(be){return Object.getOwnPropertyNames(be)};function ee(_e){console&&console.warn&&console.warn(_e)}var se=Number.isNaN||function(be){return be!==be};function z(){z.init.call(this)}he.exports=z,he.exports.once=we,z.EventEmitter=z,z.prototype._events=void 0,z.prototype._eventsCount=0,z.prototype._maxListeners=void 0;var x=10;function b(_e){if(typeof _e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _e)}Object.defineProperty(z,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(_e){if(typeof _e!="number"||_e<0||se(_e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+_e+".");x=_e}}),z.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},z.prototype.setMaxListeners=function(be){if(typeof be!="number"||be<0||se(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 E(_e){return _e._maxListeners===void 0?z.defaultMaxListeners:_e._maxListeners}z.prototype.getMaxListeners=function(){return E(this)},z.prototype.emit=function(be){for(var Ae=[],Te=1;Te<arguments.length;Te++)Ae.push(arguments[Te]);var Le=be==="error",ke=this._events;if(ke!==void 0)Le=Le&&ke.error===void 0;else if(!Le)return!1;if(Le){var Pe;if(Ae.length>0&&(Pe=Ae[0]),Pe instanceof Error)throw Pe;var Oe=new Error("Unhandled error."+(Pe?" ("+Pe.message+")":""));throw Oe.context=Pe,Oe}var ze=ke[be];if(ze===void 0)return!1;if(typeof ze=="function")oe(ze,this,Ae);else for(var Ge=ze.length,tt=ue(ze,Ge),Te=0;Te<Ge;++Te)oe(tt[Te],this,Ae);return!0};function re(_e,be,Ae,Te){var Le,ke,Pe;if(b(Ae),ke=_e._events,ke===void 0?(ke=_e._events=Object.create(null),_e._eventsCount=0):(ke.newListener!==void 0&&(_e.emit("newListener",be,Ae.listener?Ae.listener:Ae),ke=_e._events),Pe=ke[be]),Pe===void 0)Pe=ke[be]=Ae,++_e._eventsCount;else if(typeof Pe=="function"?Pe=ke[be]=Te?[Ae,Pe]:[Pe,Ae]:Te?Pe.unshift(Ae):Pe.push(Ae),Le=E(_e),Le>0&&Pe.length>Le&&!Pe.warned){Pe.warned=!0;var Oe=new Error("Possible EventEmitter memory leak detected. "+Pe.length+" "+String(be)+" listeners added. Use emitter.setMaxListeners() to increase limit");Oe.name="MaxListenersExceededWarning",Oe.emitter=_e,Oe.type=be,Oe.count=Pe.length,ee(Oe)}return _e}z.prototype.addListener=function(be,Ae){return re(this,be,Ae,!1)},z.prototype.on=z.prototype.addListener,z.prototype.prependListener=function(be,Ae){return re(this,be,Ae,!0)};function ae(){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 le(_e,be,Ae){var Te={fired:!1,wrapFn:void 0,target:_e,type:be,listener:Ae},Le=ae.bind(Te);return Le.listener=Ae,Te.wrapFn=Le,Le}z.prototype.once=function(be,Ae){return b(Ae),this.on(be,le(this,be,Ae)),this},z.prototype.prependOnceListener=function(be,Ae){return b(Ae),this.prependListener(be,le(this,be,Ae)),this},z.prototype.removeListener=function(be,Ae){var Te,Le,ke,Pe,Oe;if(b(Ae),Le=this._events,Le===void 0)return this;if(Te=Le[be],Te===void 0)return this;if(Te===Ae||Te.listener===Ae)--this._eventsCount===0?this._events=Object.create(null):(delete Le[be],Le.removeListener&&this.emit("removeListener",be,Te.listener||Ae));else if(typeof Te!="function"){for(ke=-1,Pe=Te.length-1;Pe>=0;Pe--)if(Te[Pe]===Ae||Te[Pe].listener===Ae){Oe=Te[Pe].listener,ke=Pe;break}if(ke<0)return this;ke===0?Te.shift():ye(Te,ke),Te.length===1&&(Le[be]=Te[0]),Le.removeListener!==void 0&&this.emit("removeListener",be,Oe||Ae)}return this},z.prototype.off=z.prototype.removeListener,z.prototype.removeAllListeners=function(be){var Ae,Te,Le;if(Te=this._events,Te===void 0)return this;if(Te.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Te[be]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Te[be]),this;if(arguments.length===0){var ke=Object.keys(Te),Pe;for(Le=0;Le<ke.length;++Le)Pe=ke[Le],Pe!=="removeListener"&&this.removeAllListeners(Pe);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Ae=Te[be],typeof Ae=="function")this.removeListener(be,Ae);else if(Ae!==void 0)for(Le=Ae.length-1;Le>=0;Le--)this.removeListener(be,Ae[Le]);return this};function fe(_e,be,Ae){var Te=_e._events;if(Te===void 0)return[];var Le=Te[be];return Le===void 0?[]:typeof Le=="function"?Ae?[Le.listener||Le]:[Le]:Ae?Se(Le):ue(Le,Le.length)}z.prototype.listeners=function(be){return fe(this,be,!0)},z.prototype.rawListeners=function(be){return fe(this,be,!1)},z.listenerCount=function(_e,be){return typeof _e.listenerCount=="function"?_e.listenerCount(be):ce.call(_e,be)},z.prototype.listenerCount=ce;function ce(_e){var be=this._events;if(be!==void 0){var Ae=be[_e];if(typeof Ae=="function")return 1;if(Ae!==void 0)return Ae.length}return 0}z.prototype.eventNames=function(){return this._eventsCount>0?ne(this._events):[]};function ue(_e,be){for(var Ae=new Array(be),Te=0;Te<be;++Te)Ae[Te]=_e[Te];return Ae}function ye(_e,be){for(;be+1<_e.length;be++)_e[be]=_e[be+1];_e.pop()}function Se(_e){for(var be=new Array(_e.length),Ae=0;Ae<be.length;++Ae)be[Ae]=_e[Ae].listener||_e[Ae];return be}function we(_e,be){return new Promise(function(Ae,Te){function Le(Pe){_e.removeListener(be,ke),Te(Pe)}function ke(){typeof _e.removeListener=="function"&&_e.removeListener("error",Le),Ae([].slice.call(arguments))}ge(_e,be,ke,{once:!0}),be!=="error"&&xe(_e,Le,{once:!0})})}function xe(_e,be,Ae){typeof _e.on=="function"&&ge(_e,"error",be,Ae)}function ge(_e,be,Ae,Te){if(typeof _e.on=="function")Te.once?_e.once(be,Ae):_e.on(be,Ae);else if(typeof _e.addEventListener=="function")_e.addEventListener(be,function Le(ke){Te.once&&_e.removeEventListener(be,Le),Ae(ke)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof _e)}},{}],345:[function(a,he,de){"use strict";var te=a("is-callable"),oe=Object.prototype.toString,ne=Object.prototype.hasOwnProperty,ee=function(E,re,ae){for(var le=0,fe=E.length;le<fe;le++)ne.call(E,le)&&(ae==null?re(E[le],le,E):re.call(ae,E[le],le,E))},se=function(E,re,ae){for(var le=0,fe=E.length;le<fe;le++)ae==null?re(E.charAt(le),le,E):re.call(ae,E.charAt(le),le,E)},z=function(E,re,ae){for(var le in E)ne.call(E,le)&&(ae==null?re(E[le],le,E):re.call(ae,E[le],le,E))},x=function(E,re,ae){if(!te(re))throw new TypeError("iterator must be a function");var le;arguments.length>=3&&(le=ae),oe.call(E)==="[object Array]"?ee(E,re,le):typeof E=="string"?se(E,re,le):z(E,re,le)};he.exports=x},{"is-callable":367}],346:[function(a,he,de){"use strict";var te="Function.prototype.bind called on incompatible ",oe=Array.prototype.slice,ne=Object.prototype.toString,ee="[object Function]";he.exports=function(z){var x=this;if(typeof x!="function"||ne.call(x)!==ee)throw new TypeError(te+x);for(var b=oe.call(arguments,1),E,re=function(){if(this instanceof E){var ue=x.apply(this,b.concat(oe.call(arguments)));return Object(ue)===ue?ue:this}else return x.apply(z,b.concat(oe.call(arguments)))},ae=Math.max(0,x.length-b.length),le=[],fe=0;fe<ae;fe++)le.push("$"+fe);if(E=Function("binder","return function ("+le.join(",")+"){ return binder.apply(this,arguments); }")(re),x.prototype){var ce=function(){};ce.prototype=x.prototype,E.prototype=new ce,ce.prototype=null}return E}},{}],347:[function(a,he,de){"use strict";var te=a("./implementation");he.exports=Function.prototype.bind||te},{"./implementation":346}],348:[function(a,he,de){"use strict";var te,oe=SyntaxError,ne=Function,ee=TypeError,se=function(ze){try{return ne('"use strict"; return ('+ze+").constructor;")()}catch(Ge){}},z=Object.getOwnPropertyDescriptor;if(z)try{z({},"")}catch(ze){z=null}var x=function(){throw new ee},b=z?function(){try{return arguments.callee,x}catch(ze){try{return z(arguments,"callee").get}catch(Ge){return x}}}():x,E=a("has-symbols")(),re=a("has-proto")(),ae=Object.getPrototypeOf||(re?function(ze){return ze.__proto__}:null),le={},fe=typeof Uint8Array=="undefined"||!ae?te:ae(Uint8Array),ce={"%AggregateError%":typeof AggregateError=="undefined"?te:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?te:ArrayBuffer,"%ArrayIteratorPrototype%":E&&ae?ae([][Symbol.iterator]()):te,"%AsyncFromSyncIteratorPrototype%":te,"%AsyncFunction%":le,"%AsyncGenerator%":le,"%AsyncGeneratorFunction%":le,"%AsyncIteratorPrototype%":le,"%Atomics%":typeof Atomics=="undefined"?te:Atomics,"%BigInt%":typeof BigInt=="undefined"?te:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?te:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?te:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?te:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?te:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?te:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?te:FinalizationRegistry,"%Function%":ne,"%GeneratorFunction%":le,"%Int8Array%":typeof Int8Array=="undefined"?te:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?te:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?te:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&ae?ae(ae([][Symbol.iterator]())):te,"%JSON%":typeof JSON=="object"?JSON:te,"%Map%":typeof Map=="undefined"?te:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!E||!ae?te:ae(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?te:Promise,"%Proxy%":typeof Proxy=="undefined"?te:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?te:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?te:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!E||!ae?te:ae(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?te:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&ae?ae(""[Symbol.iterator]()):te,"%Symbol%":E?Symbol:te,"%SyntaxError%":oe,"%ThrowTypeError%":b,"%TypedArray%":fe,"%TypeError%":ee,"%Uint8Array%":typeof Uint8Array=="undefined"?te:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?te:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?te:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?te:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?te:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?te:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?te:WeakSet};if(ae)try{null.error}catch(ze){var ue=ae(ae(ze));ce["%Error.prototype%"]=ue}var ye=function ze(Ge){var tt;if(Ge==="%AsyncFunction%")tt=se("async function () {}");else if(Ge==="%GeneratorFunction%")tt=se("function* () {}");else if(Ge==="%AsyncGeneratorFunction%")tt=se("async function* () {}");else if(Ge==="%AsyncGenerator%"){var Me=ze("%AsyncGeneratorFunction%");Me&&(tt=Me.prototype)}else if(Ge==="%AsyncIteratorPrototype%"){var We=ze("%AsyncGenerator%");We&&ae&&(tt=ae(We.prototype))}return ce[Ge]=tt,tt},Se={"%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"]},we=a("function-bind"),xe=a("has"),ge=we.call(Function.call,Array.prototype.concat),_e=we.call(Function.apply,Array.prototype.splice),be=we.call(Function.call,String.prototype.replace),Ae=we.call(Function.call,String.prototype.slice),Te=we.call(Function.call,RegExp.prototype.exec),Le=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ke=/\\(\\)?/g,Pe=function(Ge){var tt=Ae(Ge,0,1),Me=Ae(Ge,-1);if(tt==="%"&&Me!=="%")throw new oe("invalid intrinsic syntax, expected closing `%`");if(Me==="%"&&tt!=="%")throw new oe("invalid intrinsic syntax, expected opening `%`");var We=[];return be(Ge,Le,function(it,at,$e,Je){We[We.length]=$e?be(Je,ke,"$1"):at||it}),We},Oe=function(Ge,tt){var Me=Ge,We;if(xe(Se,Me)&&(We=Se[Me],Me="%"+We[0]+"%"),xe(ce,Me)){var it=ce[Me];if(it===le&&(it=ye(Me)),typeof it=="undefined"&&!tt)throw new ee("intrinsic "+Ge+" exists, but is not available. Please file an issue!");return{alias:We,name:Me,value:it}}throw new oe("intrinsic "+Ge+" does not exist!")};he.exports=function(Ge,tt){if(typeof Ge!="string"||Ge.length===0)throw new ee("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof tt!="boolean")throw new ee('"allowMissing" argument must be a boolean');if(Te(/^%?[^%]*%?$/,Ge)===null)throw new oe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Me=Pe(Ge),We=Me.length>0?Me[0]:"",it=Oe("%"+We+"%",tt),at=it.name,$e=it.value,Je=!1,Ye=it.alias;Ye&&(We=Ye[0],_e(Me,ge([0,1],Ye)));for(var Qe=1,st=!0;Qe<Me.length;Qe+=1){var ot=Me[Qe],mt=Ae(ot,0,1),ft=Ae(ot,-1);if((mt==='"'||mt==="'"||mt==="`"||ft==='"'||ft==="'"||ft==="`")&&mt!==ft)throw new oe("property names with quotes must have matching quotes");if((ot==="constructor"||!st)&&(Je=!0),We+="."+ot,at="%"+We+"%",xe(ce,at))$e=ce[at];else if($e!=null){if(!(ot in $e)){if(!tt)throw new ee("base intrinsic for "+Ge+" exists, but the property is not available.");return}if(z&&Qe+1>=Me.length){var qe=z($e,ot);st=!!qe,st&&"get"in qe&&!("originalValue"in qe.get)?$e=qe.get:$e=$e[ot]}else st=xe($e,ot),$e=$e[ot];st&&!Je&&(ce[at]=$e)}}return $e}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(a,he,de){"use strict";var te=a("get-intrinsic"),oe=te("%Object.getOwnPropertyDescriptor%",!0);if(oe)try{oe([],"length")}catch(ne){oe=null}he.exports=oe},{"get-intrinsic":348}],350:[function(a,he,de){"use strict";var te={foo:{}},oe=Object;he.exports=function(){return{__proto__:te}.foo===te.foo&&!({__proto__:null}instanceof oe)}},{}],351:[function(a,he,de){"use strict";var te=typeof Symbol!="undefined"&&Symbol,oe=a("./shams");he.exports=function(){return typeof te!="function"||typeof Symbol!="function"||typeof te("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:oe()}},{"./shams":352}],352:[function(a,he,de){"use strict";he.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var oe={},ne=Symbol("test"),ee=Object(ne);if(typeof ne=="string"||Object.prototype.toString.call(ne)!=="[object Symbol]"||Object.prototype.toString.call(ee)!=="[object Symbol]")return!1;var se=42;oe[ne]=se;for(ne in oe)return!1;if(typeof Object.keys=="function"&&Object.keys(oe).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(oe).length!==0)return!1;var z=Object.getOwnPropertySymbols(oe);if(z.length!==1||z[0]!==ne||!Object.prototype.propertyIsEnumerable.call(oe,ne))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var x=Object.getOwnPropertyDescriptor(oe,ne);if(x.value!==se||x.enumerable!==!0)return!1}return!0}},{}],353:[function(a,he,de){"use strict";var te=a("has-symbols/shams");he.exports=function(){return te()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(a,he,de){"use strict";var te=a("function-bind");he.exports=te.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(a,he,de){var te=a("http"),oe=a("url"),ne=he.exports;for(var ee in te)te.hasOwnProperty(ee)&&(ne[ee]=te[ee]);ne.request=function(z,x){return z=se(z),te.request.call(this,z,x)},ne.get=function(z,x){return z=se(z),te.get.call(this,z,x)};function se(z){if(typeof z=="string"&&(z=oe.parse(z)),z.protocol||(z.protocol="https:"),z.protocol!=="https:")throw new Error('Protocol "'+z.protocol+'" not supported. Expected "https:"');return z}},{http:468,url:472}],356:[function(a,he,de){"use strict";var te=a("util"),oe=a("ms");he.exports=function(ne){if(typeof ne=="number")return ne;var ee=oe(ne);if(ee===void 0){var se=new Error(te.format("humanize-ms(%j) result undefined",ne));console.warn(se.stack)}return ee}},{ms:376,util:419}],357:[function(a,he,de){de.read=function(te,oe,ne,ee,se){var z,x,b=se*8-ee-1,E=(1<<b)-1,re=E>>1,ae=-7,le=ne?se-1:0,fe=ne?-1:1,ce=te[oe+le];for(le+=fe,z=ce&(1<<-ae)-1,ce>>=-ae,ae+=b;ae>0;z=z*256+te[oe+le],le+=fe,ae-=8);for(x=z&(1<<-ae)-1,z>>=-ae,ae+=ee;ae>0;x=x*256+te[oe+le],le+=fe,ae-=8);if(z===0)z=1-re;else{if(z===E)return x?NaN:(ce?-1:1)*(1/0);x=x+Math.pow(2,ee),z=z-re}return(ce?-1:1)*x*Math.pow(2,z-ee)},de.write=function(te,oe,ne,ee,se,z){var x,b,E,re=z*8-se-1,ae=(1<<re)-1,le=ae>>1,fe=se===23?Math.pow(2,-24)-Math.pow(2,-77):0,ce=ee?0:z-1,ue=ee?1:-1,ye=oe<0||oe===0&&1/oe<0?1:0;for(oe=Math.abs(oe),isNaN(oe)||oe===1/0?(b=isNaN(oe)?1:0,x=ae):(x=Math.floor(Math.log(oe)/Math.LN2),oe*(E=Math.pow(2,-x))<1&&(x--,E*=2),x+le>=1?oe+=fe/E:oe+=fe*Math.pow(2,1-le),oe*E>=2&&(x++,E/=2),x+le>=ae?(b=0,x=ae):x+le>=1?(b=(oe*E-1)*Math.pow(2,se),x=x+le):(b=oe*Math.pow(2,le-1)*Math.pow(2,se),x=0));se>=8;te[ne+ce]=b&255,ce+=ue,b/=256,se-=8);for(x=x<<se|b,re+=se;re>0;te[ne+ce]=x&255,ce+=ue,x/=256,re-=8);te[ne+ce-ue]|=ye*128}},{}],358:[function(a,he,de){"use strict";var te=[a("./nextTick"),a("./queueMicrotask"),a("./mutation.js"),a("./messageChannel"),a("./stateChange"),a("./timeout")],oe,ne,ee=-1,se=[],z=!1;function x(){!oe||!ne||(oe=!1,ne.length?se=ne.concat(se):ee=-1,se.length&&b())}function b(){if(!oe){z=!1,oe=!0;for(var ce=se.length,ue=setTimeout(x);ce;){for(ne=se,se=[];ne&&++ee<ce;)ne[ee].run();ee=-1,ce=se.length}ne=null,ee=-1,oe=!1,clearTimeout(ue)}}for(var E,re=-1,ae=te.length;++re<ae;)if(te[re]&&te[re].test&&te[re].test()){E=te[re].install(b);break}function le(ce,ue){this.fun=ce,this.array=ue}le.prototype.run=function(){var ce=this.fun,ue=this.array;switch(ue.length){case 0:return ce();case 1:return ce(ue[0]);case 2:return ce(ue[0],ue[1]);case 3:return ce(ue[0],ue[1],ue[2]);default:return ce.apply(null,ue)}},he.exports=fe;function fe(ce){var ue=new Array(arguments.length-1);if(arguments.length>1)for(var ye=1;ye<arguments.length;ye++)ue[ye-1]=arguments[ye];se.push(new le(ce,ue)),!z&&!oe&&(z=!0,E())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(a,he,de){(function(te){(function(){"use strict";de.test=function(){return te.setImmediate?!1:typeof te.MessageChannel!="undefined"},de.install=function(oe){var ne=new te.MessageChannel;return ne.port1.onmessage=oe,function(){ne.port2.postMessage(0)}}}).call(this)}).call(this,typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(a,he,de){(function(te){(function(){"use strict";var oe=te.MutationObserver||te.WebKitMutationObserver;de.test=function(){return oe},de.install=function(ne){var ee=0,se=new oe(ne),z=te.document.createTextNode("");return se.observe(z,{characterData:!0}),function(){z.data=ee=++ee%2}}}).call(this)}).call(this,typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(a,he,de){(function(te){(function(){"use strict";de.test=function(){return typeof te.queueMicrotask=="function"},de.install=function(oe){return function(){te.queueMicrotask(oe)}}}).call(this)}).call(this,typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(a,he,de){(function(te){(function(){"use strict";de.test=function(){return"document"in te&&"onreadystatechange"in te.document.createElement("script")},de.install=function(oe){return function(){var ne=te.document.createElement("script");return ne.onreadystatechange=function(){oe(),ne.onreadystatechange=null,ne.parentNode.removeChild(ne),ne=null},te.document.documentElement.appendChild(ne),oe}}}).call(this)}).call(this,typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(a,he,de){"use strict";de.test=function(){return!0},de.install=function(te){return function(){setTimeout(te,0)}}},{}],364:[function(a,he,de){typeof Object.create=="function"?he.exports=function(oe,ne){ne&&(oe.super_=ne,oe.prototype=Object.create(ne.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}}))}:he.exports=function(oe,ne){if(ne){oe.super_=ne;var ee=function(){};ee.prototype=ne.prototype,oe.prototype=new ee,oe.prototype.constructor=oe}}},{}],365:[function(a,he,de){"use strict";var te=a("has-tostringtag/shams")(),oe=a("call-bind/callBound"),ne=oe("Object.prototype.toString"),ee=function(b){return te&&b&&typeof b=="object"&&Symbol.toStringTag in b?!1:ne(b)==="[object Arguments]"},se=function(b){return ee(b)?!0:b!==null&&typeof b=="object"&&typeof b.length=="number"&&b.length>=0&&ne(b)!=="[object Array]"&&ne(b.callee)==="[object Function]"},z=function(){return ee(arguments)}();ee.isLegacyArguments=se,he.exports=z?ee:se},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(a,he,de){he.exports=function(ne){return ne!=null&&(te(ne)||oe(ne)||!!ne._isBuffer)};function te(ne){return!!ne.constructor&&typeof ne.constructor.isBuffer=="function"&&ne.constructor.isBuffer(ne)}function oe(ne){return typeof ne.readFloatLE=="function"&&typeof ne.slice=="function"&&te(ne.slice(0,0))}},{}],367:[function(a,he,de){"use strict";var te=Function.prototype.toString,oe=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ne,ee;if(typeof oe=="function"&&typeof Object.defineProperty=="function")try{ne=Object.defineProperty({},"length",{get:function(){throw ee}}),ee={},oe(function(){throw 42},null,ne)}catch(xe){xe!==ee&&(oe=null)}else oe=null;var se=/^\s*class\b/,z=function(ge){try{var _e=te.call(ge);return se.test(_e)}catch(be){return!1}},x=function(ge){try{return z(ge)?!1:(te.call(ge),!0)}catch(_e){return!1}},b=Object.prototype.toString,E="[object Object]",re="[object Function]",ae="[object GeneratorFunction]",le="[object HTMLAllCollection]",fe="[object HTML document.all class]",ce="[object HTMLCollection]",ue=typeof Symbol=="function"&&!!Symbol.toStringTag,ye=!(0 in[,]),Se=function(){return!1};if(typeof document=="object"){var we=document.all;b.call(we)===b.call(document.all)&&(Se=function(ge){if((ye||!ge)&&(typeof ge=="undefined"||typeof ge=="object"))try{var _e=b.call(ge);return(_e===le||_e===fe||_e===ce||_e===E)&&ge("")==null}catch(be){}return!1})}he.exports=oe?function(ge){if(Se(ge))return!0;if(!ge||typeof ge!="function"&&typeof ge!="object")return!1;try{oe(ge,null,ne)}catch(_e){if(_e!==ee)return!1}return!z(ge)&&x(ge)}:function(ge){if(Se(ge))return!0;if(!ge||typeof ge!="function"&&typeof ge!="object")return!1;if(ue)return x(ge);if(z(ge))return!1;var _e=b.call(ge);return _e!==re&&_e!==ae&&!/^\[object HTML/.test(_e)?!1:x(ge)}},{}],368:[function(a,he,de){"use strict";var te=Object.prototype.toString,oe=Function.prototype.toString,ne=/^\s*(?:function)?\*/,ee=a("has-tostringtag/shams")(),se=Object.getPrototypeOf,z=function(){if(!ee)return!1;try{return Function("return function*() {}")()}catch(b){}},x;he.exports=function(E){if(typeof E!="function")return!1;if(ne.test(oe.call(E)))return!0;if(!ee){var re=te.call(E);return re==="[object GeneratorFunction]"}if(!se)return!1;if(typeof x=="undefined"){var ae=z();x=ae?se(ae):!1}return se(E)===x}},{"has-tostringtag/shams":353}],369:[function(a,he,de){"use strict";var te=a("which-typed-array");he.exports=function(ne){return!!te(ne)}},{"which-typed-array":420}],370:[function(a,he,de){var te={}.toString;he.exports=Array.isArray||function(oe){return te.call(oe)=="[object Array]"}},{}],371:[function(a,he,de){(function(te){(function(){(function(oe,ne){typeof de=="object"&&typeof he!="undefined"?he.exports=ne(oe):typeof Ce=="function"&&Ce.amd?Ce(ne):ne(oe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof te!="undefined"?te:this,function(oe){"use strict";oe=oe||{};var ne=oe.Base64,ee="2.6.4",se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=function(Ge){for(var tt={},Me=0,We=Ge.length;Me<We;Me++)tt[Ge.charAt(Me)]=Me;return tt}(se),x=String.fromCharCode,b=function(Ge){if(Ge.length<2){var tt=Ge.charCodeAt(0);return tt<128?Ge:tt<2048?x(192|tt>>>6)+x(128|tt&63):x(224|tt>>>12&15)+x(128|tt>>>6&63)+x(128|tt&63)}else{var tt=65536+(Ge.charCodeAt(0)-55296)*1024+(Ge.charCodeAt(1)-56320);return x(240|tt>>>18&7)+x(128|tt>>>12&63)+x(128|tt>>>6&63)+x(128|tt&63)}},E=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,re=function(Ge){return Ge.replace(E,b)},ae=function(Ge){var tt=[0,2,1][Ge.length%3],Me=Ge.charCodeAt(0)<<16|(Ge.length>1?Ge.charCodeAt(1):0)<<8|(Ge.length>2?Ge.charCodeAt(2):0),We=[se.charAt(Me>>>18),se.charAt(Me>>>12&63),tt>=2?"=":se.charAt(Me>>>6&63),tt>=1?"=":se.charAt(Me&63)];return We.join("")},le=oe.btoa&&typeof oe.btoa=="function"?function(Ge){return oe.btoa(Ge)}:function(Ge){if(Ge.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ge.replace(/[\s\S]{1,3}/g,ae)},fe=function(Ge){return le(re(String(Ge)))},ce=function(Ge){return Ge.replace(/[+\/]/g,function(tt){return tt=="+"?"-":"_"}).replace(/=/g,"")},ue=function(Ge,tt){return tt?ce(fe(Ge)):fe(Ge)},ye=function(Ge){return ue(Ge,!0)},Se;oe.Uint8Array&&(Se=function(Ge,tt){for(var Me="",We=0,it=Ge.length;We<it;We+=3){var at=Ge[We],$e=Ge[We+1],Je=Ge[We+2],Ye=at<<16|$e<<8|Je;Me+=se.charAt(Ye>>>18)+se.charAt(Ye>>>12&63)+(typeof $e!="undefined"?se.charAt(Ye>>>6&63):"=")+(typeof Je!="undefined"?se.charAt(Ye&63):"=")}return tt?ce(Me):Me});var we=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,xe=function(Ge){switch(Ge.length){case 4:var tt=(7&Ge.charCodeAt(0))<<18|(63&Ge.charCodeAt(1))<<12|(63&Ge.charCodeAt(2))<<6|63&Ge.charCodeAt(3),Me=tt-65536;return x((Me>>>10)+55296)+x((Me&1023)+56320);case 3:return x((15&Ge.charCodeAt(0))<<12|(63&Ge.charCodeAt(1))<<6|63&Ge.charCodeAt(2));default:return x((31&Ge.charCodeAt(0))<<6|63&Ge.charCodeAt(1))}},ge=function(Ge){return Ge.replace(we,xe)},_e=function(Ge){var tt=Ge.length,Me=tt%4,We=(tt>0?z[Ge.charAt(0)]<<18:0)|(tt>1?z[Ge.charAt(1)]<<12:0)|(tt>2?z[Ge.charAt(2)]<<6:0)|(tt>3?z[Ge.charAt(3)]:0),it=[x(We>>>16),x(We>>>8&255),x(We&255)];return it.length-=[0,0,2,1][Me],it.join("")},be=oe.atob&&typeof oe.atob=="function"?function(Ge){return oe.atob(Ge)}:function(Ge){return Ge.replace(/\S{1,4}/g,_e)},Ae=function(Ge){return be(String(Ge).replace(/[^A-Za-z0-9\+\/]/g,""))},Te=function(Ge){return ge(be(Ge))},Le=function(Ge){return String(Ge).replace(/[-_]/g,function(tt){return tt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ke=function(Ge){return Te(Le(Ge))},Pe;oe.Uint8Array&&(Pe=function(Ge){return Uint8Array.from(Ae(Le(Ge)),function(tt){return tt.charCodeAt(0)})});var Oe=function(){var Ge=oe.Base64;return oe.Base64=ne,Ge};if(oe.Base64={VERSION:ee,atob:Ae,btoa:le,fromBase64:ke,toBase64:ue,utob:re,encode:ue,encodeURI:ye,btou:ge,decode:ke,noConflict:Oe,fromUint8Array:Se,toUint8Array:Pe},typeof Object.defineProperty=="function"){var ze=function(Ge){return{value:Ge,enumerable:!1,writable:!0,configurable:!0}};oe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ze(function(){return ke(this)})),Object.defineProperty(String.prototype,"toBase64",ze(function(Ge){return ue(this,Ge)})),Object.defineProperty(String.prototype,"toBase64URI",ze(function(){return ue(this,!0)}))}}return oe.Meteor&&(Base64=oe.Base64),typeof he!="undefined"&&he.exports?he.exports.Base64=oe.Base64:typeof Ce=="function"&&Ce.amd&&Ce([],function(){return oe.Base64}),{Base64:oe.Base64}})}).call(this)}).call(this,typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(a,he,de){"use strict";he.exports=oe;var te=Object.prototype.hasOwnProperty;function oe(ne,ee,se){if(!ne)throw new TypeError("argument dest is required");if(!ee)throw new TypeError("argument src is required");return se===void 0&&(se=!0),Object.getOwnPropertyNames(ee).forEach(function(x){if(!(!se&&te.call(ne,x))){var b=Object.getOwnPropertyDescriptor(ee,x);Object.defineProperty(ne,x,b)}}),ne}},{}],373:[function(a,he,de){"use strict";a("core-js/modules/es.array.map.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.regexp.constructor.js"),a("core-js/modules/es.regexp.to-string.js");function te(){this._types=Object.create(null),this._extensions=Object.create(null);for(var oe=0;oe<arguments.length;oe++)this.define(arguments[oe]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}te.prototype.define=function(oe,ne){for(var ee in oe){var se=oe[ee].map(function(E){return E.toLowerCase()});ee=ee.toLowerCase();for(var z=0;z<se.length;z++){var x=se[z];if(x[0]!=="*"){if(!ne&&x in this._types)throw new Error('Attempt to change mapping for "'+x+'" extension from "'+this._types[x]+'" to "'+ee+'". Pass `force=true` to allow this, otherwise remove "'+x+'" from the list of extensions for "'+ee+'".');this._types[x]=ee}}if(ne||!this._extensions[ee]){var b=se[0];this._extensions[ee]=b[0]!=="*"?b:b.substr(1)}}},te.prototype.getType=function(oe){oe=String(oe);var ne=oe.replace(/^.*[/\\]/,"").toLowerCase(),ee=ne.replace(/^.*\./,"").toLowerCase(),se=ne.length<oe.length,z=ee.length<ne.length-1;return(z||!se)&&this._types[ee]||null},te.prototype.getExtension=function(oe){return oe=/^\s*([^;\s]*)/.test(oe)&&RegExp.$1,oe&&this._extensions[oe.toLowerCase()]||null},he.exports=te},{"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(a,he,de){"use strict";var te=a("./Mime");he.exports=new te(a("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(a,he,de){"use strict";he.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(a,he,de){var te=1e3,oe=te*60,ne=oe*60,ee=ne*24,se=ee*7,z=ee*365.25;he.exports=function(ae,le){le=le||{};var fe=typeof ae;if(fe==="string"&&ae.length>0)return x(ae);if(fe==="number"&&isFinite(ae))return le.long?E(ae):b(ae);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ae))};function x(ae){if(ae=String(ae),!(ae.length>100)){var le=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ae);if(le){var fe=parseFloat(le[1]),ce=(le[2]||"ms").toLowerCase();switch(ce){case"years":case"year":case"yrs":case"yr":case"y":return fe*z;case"weeks":case"week":case"w":return fe*se;case"days":case"day":case"d":return fe*ee;case"hours":case"hour":case"hrs":case"hr":case"h":return fe*ne;case"minutes":case"minute":case"mins":case"min":case"m":return fe*oe;case"seconds":case"second":case"secs":case"sec":case"s":return fe*te;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return fe;default:return}}}}function b(ae){var le=Math.abs(ae);return le>=ee?Math.round(ae/ee)+"d":le>=ne?Math.round(ae/ne)+"h":le>=oe?Math.round(ae/oe)+"m":le>=te?Math.round(ae/te)+"s":ae+"ms"}function E(ae){var le=Math.abs(ae);return le>=ee?re(ae,le,ee,"day"):le>=ne?re(ae,le,ne,"hour"):le>=oe?re(ae,le,oe,"minute"):le>=te?re(ae,le,te,"second"):ae+" ms"}function re(ae,le,fe,ce){var ue=le>=fe*1.5;return Math.round(ae/fe)+" "+ce+(ue?"s":"")}},{}],377:[function(a,he,de){"use strict";var te=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;function ee(z){if(z==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(z)}function se(){try{if(!Object.assign)return!1;var z=new String("abc");if(z[5]="de",Object.getOwnPropertyNames(z)[0]==="5")return!1;for(var x={},b=0;b<10;b++)x["_"+String.fromCharCode(b)]=b;var E=Object.getOwnPropertyNames(x).map(function(ae){return x[ae]});if(E.join("")!=="0123456789")return!1;var re={};return"abcdefghijklmnopqrst".split("").forEach(function(ae){re[ae]=ae}),Object.keys(Object.assign({},re)).join("")==="abcdefghijklmnopqrst"}catch(ae){return!1}}he.exports=se()?Object.assign:function(z,x){for(var b,E=ee(z),re,ae=1;ae<arguments.length;ae++){b=Object(arguments[ae]);for(var le in b)oe.call(b,le)&&(E[le]=b[le]);if(te){re=te(b);for(var fe=0;fe<re.length;fe++)ne.call(b,re[fe])&&(E[re[fe]]=b[re[fe]])}}return E}},{}],378:[function(a,he,de){(function(te){(function(){"use strict";function oe(z){if(typeof z!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(z))}function ne(z,x){for(var b="",E=0,re=-1,ae=0,le,fe=0;fe<=z.length;++fe){if(fe<z.length)le=z.charCodeAt(fe);else{if(le===47)break;le=47}if(le===47){if(!(re===fe-1||ae===1))if(re!==fe-1&&ae===2){if(b.length<2||E!==2||b.charCodeAt(b.length-1)!==46||b.charCodeAt(b.length-2)!==46){if(b.length>2){var ce=b.lastIndexOf("/");if(ce!==b.length-1){ce===-1?(b="",E=0):(b=b.slice(0,ce),E=b.length-1-b.lastIndexOf("/")),re=fe,ae=0;continue}}else if(b.length===2||b.length===1){b="",E=0,re=fe,ae=0;continue}}x&&(b.length>0?b+="/..":b="..",E=2)}else b.length>0?b+="/"+z.slice(re+1,fe):b=z.slice(re+1,fe),E=fe-re-1;re=fe,ae=0}else le===46&&ae!==-1?++ae:ae=-1}return b}function ee(z,x){var b=x.dir||x.root,E=x.base||(x.name||"")+(x.ext||"");return b?b===x.root?b+E:b+z+E:E}var se={resolve:function(){for(var x="",b=!1,E,re=arguments.length-1;re>=-1&&!b;re--){var ae;re>=0?ae=arguments[re]:(E===void 0&&(E=te.cwd()),ae=E),oe(ae),ae.length!==0&&(x=ae+"/"+x,b=ae.charCodeAt(0)===47)}return x=ne(x,!b),b?x.length>0?"/"+x:"/":x.length>0?x:"."},normalize:function(x){if(oe(x),x.length===0)return".";var b=x.charCodeAt(0)===47,E=x.charCodeAt(x.length-1)===47;return x=ne(x,!b),x.length===0&&!b&&(x="."),x.length>0&&E&&(x+="/"),b?"/"+x:x},isAbsolute:function(x){return oe(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,b=0;b<arguments.length;++b){var E=arguments[b];oe(E),E.length>0&&(x===void 0?x=E:x+="/"+E)}return x===void 0?".":se.normalize(x)},relative:function(x,b){if(oe(x),oe(b),x===b||(x=se.resolve(x),b=se.resolve(b),x===b))return"";for(var E=1;E<x.length&&x.charCodeAt(E)===47;++E);for(var re=x.length,ae=re-E,le=1;le<b.length&&b.charCodeAt(le)===47;++le);for(var fe=b.length,ce=fe-le,ue=ae<ce?ae:ce,ye=-1,Se=0;Se<=ue;++Se){if(Se===ue){if(ce>ue){if(b.charCodeAt(le+Se)===47)return b.slice(le+Se+1);if(Se===0)return b.slice(le+Se)}else ae>ue&&(x.charCodeAt(E+Se)===47?ye=Se:Se===0&&(ye=0));break}var we=x.charCodeAt(E+Se),xe=b.charCodeAt(le+Se);if(we!==xe)break;we===47&&(ye=Se)}var ge="";for(Se=E+ye+1;Se<=re;++Se)(Se===re||x.charCodeAt(Se)===47)&&(ge.length===0?ge+="..":ge+="/..");return ge.length>0?ge+b.slice(le+ye):(le+=ye,b.charCodeAt(le)===47&&++le,b.slice(le))},_makeLong:function(x){return x},dirname:function(x){if(oe(x),x.length===0)return".";for(var b=x.charCodeAt(0),E=b===47,re=-1,ae=!0,le=x.length-1;le>=1;--le)if(b=x.charCodeAt(le),b===47){if(!ae){re=le;break}}else ae=!1;return re===-1?E?"/":".":E&&re===1?"//":x.slice(0,re)},basename:function(x,b){if(b!==void 0&&typeof b!="string")throw new TypeError('"ext" argument must be a string');oe(x);var E=0,re=-1,ae=!0,le;if(b!==void 0&&b.length>0&&b.length<=x.length){if(b.length===x.length&&b===x)return"";var fe=b.length-1,ce=-1;for(le=x.length-1;le>=0;--le){var ue=x.charCodeAt(le);if(ue===47){if(!ae){E=le+1;break}}else ce===-1&&(ae=!1,ce=le+1),fe>=0&&(ue===b.charCodeAt(fe)?--fe===-1&&(re=le):(fe=-1,re=ce))}return E===re?re=ce:re===-1&&(re=x.length),x.slice(E,re)}else{for(le=x.length-1;le>=0;--le)if(x.charCodeAt(le)===47){if(!ae){E=le+1;break}}else re===-1&&(ae=!1,re=le+1);return re===-1?"":x.slice(E,re)}},extname:function(x){oe(x);for(var b=-1,E=0,re=-1,ae=!0,le=0,fe=x.length-1;fe>=0;--fe){var ce=x.charCodeAt(fe);if(ce===47){if(!ae){E=fe+1;break}continue}re===-1&&(ae=!1,re=fe+1),ce===46?b===-1?b=fe:le!==1&&(le=1):b!==-1&&(le=-1)}return b===-1||re===-1||le===0||le===1&&b===re-1&&b===E+1?"":x.slice(b,re)},format:function(x){if(x===null||typeof x!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof x);return ee("/",x)},parse:function(x){oe(x);var b={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return b;var E=x.charCodeAt(0),re=E===47,ae;re?(b.root="/",ae=1):ae=0;for(var le=-1,fe=0,ce=-1,ue=!0,ye=x.length-1,Se=0;ye>=ae;--ye){if(E=x.charCodeAt(ye),E===47){if(!ue){fe=ye+1;break}continue}ce===-1&&(ue=!1,ce=ye+1),E===46?le===-1?le=ye:Se!==1&&(Se=1):le!==-1&&(Se=-1)}return le===-1||ce===-1||Se===0||Se===1&&le===ce-1&&le===fe+1?ce!==-1&&(fe===0&&re?b.base=b.name=x.slice(1,ce):b.base=b.name=x.slice(fe,ce)):(fe===0&&re?(b.name=x.slice(1,le),b.base=x.slice(1,ce)):(b.name=x.slice(fe,le),b.base=x.slice(fe,ce)),b.ext=x.slice(le,ce)),fe>0?b.dir=x.slice(0,fe-1):re&&(b.dir="/"),b},sep:"/",delimiter:":",win32:null,posix:null};se.posix=se,he.exports=se}).call(this)}).call(this,a("_process"))},{_process:467}],379:[function(a,he,de){(function(te){(function(){(function(){"use strict";var oe={function:!0,object:!0},ne=oe[typeof window]&&window||this,ee=ne,se=oe[typeof de]&&de,z=oe[typeof he]&&he&&!he.nodeType&&he,x=se&&z&&typeof te=="object"&&te;x&&(x.global===x||x.window===x||x.self===x)&&(ne=x);var b=Math.pow(2,53)-1,E=/\bOpera/,re=this,ae=Object.prototype,le=ae.hasOwnProperty,fe=ae.toString;function ce(ke){return ke=String(ke),ke.charAt(0).toUpperCase()+ke.slice(1)}function ue(ke,Pe,Oe){var ze={"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&&Oe&&/^Win/i.test(ke)&&!/^Windows Phone /i.test(ke)&&(ze=ze[/[\d.]+$/.exec(ke)])&&(ke="Windows "+ze),ke=String(ke),Pe&&Oe&&(ke=ke.replace(RegExp(Pe,"i"),Oe)),ke=Se(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 ye(ke,Pe){var Oe=-1,ze=ke?ke.length:0;if(typeof ze=="number"&&ze>-1&&ze<=b)for(;++Oe<ze;)Pe(ke[Oe],Oe,ke);else we(ke,Pe)}function Se(ke){return ke=Ae(ke),/^(?:webOS|i(?:OS|P))/.test(ke)?ke:ce(ke)}function we(ke,Pe){for(var Oe in ke)le.call(ke,Oe)&&Pe(ke[Oe],Oe,ke)}function xe(ke){return ke==null?ce(ke):fe.call(ke).slice(8,-1)}function ge(ke,Pe){var Oe=ke!=null?typeof ke[Pe]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Oe)&&(Oe=="object"?!!ke[Pe]:!0)}function _e(ke){return String(ke).replace(/([ -])(?!$)/g,"$1?")}function be(ke,Pe){var Oe=null;return ye(ke,function(ze,Ge){Oe=Pe(Oe,ze,Ge,ke)}),Oe}function Ae(ke){return String(ke).replace(/^ +| +$/g,"")}function Te(ke){var Pe=ne,Oe=ke&&typeof ke=="object"&&xe(ke)!="String";Oe&&(Pe=ke,ke=null);var ze=Pe.navigator||{},Ge=ze.userAgent||"";ke||(ke=Ge);var tt=Oe||re==ee,Me=Oe?!!ze.likeChrome:/\bChrome\b/.test(ke)&&!/internal|\n/i.test(fe.toString()),We="Object",it=Oe?We:"ScriptBridgingProxyObject",at=Oe?We:"Environment",$e=Oe&&Pe.java?"JavaPackage":xe(Pe.java),Je=Oe?We:"RuntimeObject",Ye=/\bJava/.test($e)&&Pe.java,Qe=Ye&&xe(Pe.environment)==at,st=Ye?"a":"\u03B1",ot=Ye?"b":"\u03B2",mt=Pe.document||{},ft=Pe.operamini||Pe.opera,qe=E.test(qe=Oe&&ft?ft["[[Class]]"]:xe(ft))?qe:ft=null,Be,lt=ke,Ne=[],rt=null,gt=ke==Ge,yt=gt&&ft&&typeof ft.version=="function"&&ft.version(),dt,Ve=je([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),He=Xe(["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"]),Ze=Fe([{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=De({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}}),Ie=ct(["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 je(Tt){return be(Tt,function(xt,Nt){return xt||RegExp("\\b"+(Nt.pattern||_e(Nt))+"\\b","i").exec(ke)&&(Nt.label||Nt)})}function De(Tt){return be(Tt,function(xt,Nt,Rt){return xt||(Nt[Ze]||Nt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ze)]||RegExp("\\b"+_e(Rt)+"(?:\\b|\\w*\\d)","i").exec(ke))&&Rt})}function Xe(Tt){return be(Tt,function(xt,Nt){return xt||RegExp("\\b"+(Nt.pattern||_e(Nt))+"\\b","i").exec(ke)&&(Nt.label||Nt)})}function ct(Tt){return be(Tt,function(xt,Nt){var Rt=Nt.pattern||_e(Nt);return!xt&&(xt=RegExp("\\b"+Rt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(ke))&&(xt=ue(xt,Rt,Nt.label||Nt)),xt})}function Fe(Tt){return be(Tt,function(xt,Nt){var Rt=Nt.pattern||_e(Nt);return!xt&&(xt=RegExp("\\b"+Rt+" *\\d+[.\\w_]*","i").exec(ke)||RegExp("\\b"+Rt+" *\\w+-[\\w]*","i").exec(ke)||RegExp("\\b"+Rt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(ke))&&((xt=String(Nt.label&&!RegExp(Rt,"i").test(Nt.label)?Nt.label:xt).split("/"))[1]&&!/[\d.]+/.test(xt[0])&&(xt[0]+=" "+xt[1]),Nt=Nt.label||Nt,xt=Se(xt[0].replace(RegExp(Rt,"i"),Nt).replace(RegExp("; *(?:"+Nt+"[_-])?","i")," ").replace(RegExp("("+Nt+")[-_.]?(\\w)","i"),"$1 $2"))),xt})}function vt(Tt){return be(Tt,function(xt,Nt){return xt||(RegExp(Nt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(ke)||0)[1]||null})}function wt(){return this.description||""}if(Ve&&(Ve=[Ve]),/\bAndroid\b/.test(Ie)&&!Ze&&(Be=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(ke))&&(Ze=Ae(Be[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),et&&!Ze?Ze=Fe([et]):et&&Ze&&(Ze=Ze.replace(RegExp("^("+_e(et)+")[-_.\\s]","i"),et+" ").replace(RegExp("^("+_e(et)+")[-_.]?(\\w)","i"),et+" $2")),(Be=/\bGoogle TV\b/.exec(Ze))&&(Ze=Be[0]),/\bSimulator\b/i.test(ke)&&(Ze=(Ze?Ze+" ":"")+"Simulator"),He=="Opera Mini"&&/\bOPiOS\b/.test(ke)&&Ne.push("running in Turbo/Uncompressed mode"),He=="IE"&&/\blike iPhone OS\b/.test(ke)?(Be=Te(ke.replace(/like iPhone OS/,"")),et=Be.manufacturer,Ze=Be.product):/^iP/.test(Ze)?(He||(He="Safari"),Ie="iOS"+((Be=/ OS ([\d_]+)/i.exec(ke))?" "+Be[1].replace(/_/g,"."):"")):He=="Konqueror"&&/^Linux\b/i.test(Ie)?Ie="Kubuntu":et&&et!="Google"&&(/Chrome/.test(He)&&!/\bMobile Safari\b/i.test(ke)||/\bVita\b/.test(Ze))||/\bAndroid\b/.test(Ie)&&/^Chrome/.test(He)&&/\bVersion\//i.test(ke)?(He="Android Browser",Ie=/\bAndroid\b/.test(Ie)?Ie:"Android"):He=="Silk"?(/\bMobi/i.test(ke)||(Ie="Android",Ne.unshift("desktop mode")),/Accelerated *= *true/i.test(ke)&&Ne.unshift("accelerated")):He=="UC Browser"&&/\bUCWEB\b/.test(ke)?Ne.push("speed mode"):He=="PaleMoon"&&(Be=/\bFirefox\/([\d.]+)\b/.exec(ke))?Ne.push("identifying as Firefox "+Be[1]):He=="Firefox"&&(Be=/\b(Mobile|Tablet|TV)\b/i.exec(ke))?(Ie||(Ie="Firefox OS"),Ze||(Ze=Be[1])):!He||(Be=!/\bMinefield\b/i.test(ke)&&/\b(?:Firefox|Safari)\b/.exec(He))?(He&&!Ze&&/[\/,]|^[^(]+?\)/.test(ke.slice(ke.indexOf(Be+"/")+8))&&(He=null),(Be=Ze||et||Ie)&&(Ze||et||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Ie))&&(He=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Ie)?Ie:Be)+" Browser")):He=="Electron"&&(Be=(/\bChrome\/([\d.]+)\b/.exec(ke)||0)[1])&&Ne.push("Chromium "+Be),yt||(yt=vt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",_e(He),"(?:Firefox|Minefield|NetFront)"])),(Be=Ve=="iCab"&&parseFloat(yt)>3&&"WebKit"||/\bOpera\b/.test(He)&&(/\bOPR\b/.test(ke)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(ke)&&!/^(?:Trident|EdgeHTML)$/.test(Ve)&&"WebKit"||!Ve&&/\bMSIE\b/i.test(ke)&&(Ie=="Mac OS"?"Tasman":"Trident")||Ve=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(He)&&"NetFront")&&(Ve=[Be]),He=="IE"&&(Be=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(ke)||0)[1])?(He+=" Mobile",Ie="Windows Phone "+(/\+$/.test(Be)?Be:Be+".x"),Ne.unshift("desktop mode")):/\bWPDesktop\b/i.test(ke)?(He="IE Mobile",Ie="Windows Phone 8.x",Ne.unshift("desktop mode"),yt||(yt=(/\brv:([\d.]+)/.exec(ke)||0)[1])):He!="IE"&&Ve=="Trident"&&(Be=/\brv:([\d.]+)/.exec(ke))&&(He&&Ne.push("identifying as "+He+(yt?" "+yt:"")),He="IE",yt=Be[1]),gt){if(ge(Pe,"global"))if(Ye&&(Be=Ye.lang.System,lt=Be.getProperty("os.arch"),Ie=Ie||Be.getProperty("os.name")+" "+Be.getProperty("os.version")),Qe){try{yt=Pe.require("ringo/engine").version.join("."),He="RingoJS"}catch(Tt){(Be=Pe.system)&&Be.global.system==Pe.system&&(He="Narwhal",Ie||(Ie=Be[0].os||null))}He||(He="Rhino")}else typeof Pe.process=="object"&&!Pe.process.browser&&(Be=Pe.process)&&(typeof Be.versions=="object"&&(typeof Be.versions.electron=="string"?(Ne.push("Node "+Be.versions.node),He="Electron",yt=Be.versions.electron):typeof Be.versions.nw=="string"&&(Ne.push("Chromium "+yt,"Node "+Be.versions.node),He="NW.js",yt=Be.versions.nw)),He||(He="Node.js",lt=Be.arch,Ie=Be.platform,yt=/[\d.]+/.exec(Be.version),yt=yt?yt[0]:null));else xe(Be=Pe.runtime)==it?(He="Adobe AIR",Ie=Be.flash.system.Capabilities.os):xe(Be=Pe.phantom)==Je?(He="PhantomJS",yt=(Be=Be.version||null)&&Be.major+"."+Be.minor+"."+Be.patch):typeof mt.documentMode=="number"&&(Be=/\bTrident\/(\d+)/i.exec(ke))?(yt=[yt,mt.documentMode],(Be=+Be[1]+4)!=yt[1]&&(Ne.push("IE "+yt[1]+" mode"),Ve&&(Ve[1]=""),yt[1]=Be),yt=He=="IE"?String(yt[1].toFixed(1)):yt[0]):typeof mt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(He)&&(Ne.push("masking as "+He+" "+yt),He="IE",yt="11.0",Ve=["Trident"],Ie="Windows");Ie=Ie&&Se(Ie)}if(yt&&(Be=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(yt)||/(?:alpha|beta)(?: ?\d)?/i.exec(ke+";"+(gt&&ze.appMinorVersion))||/\bMinefield\b/i.test(ke)&&"a")&&(rt=/b/i.test(Be)?"beta":"alpha",yt=yt.replace(RegExp(Be+"\\+?$"),"")+(rt=="beta"?ot:st)+(/\d+\+?/.exec(Be)||"")),He=="Fennec"||He=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Ie))He="Firefox Mobile";else if(He=="Maxthon"&&yt)yt=yt.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ze))Ze=="Xbox 360"&&(Ie=null),Ze=="Xbox 360"&&/\bIEMobile\b/.test(ke)&&Ne.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(He)||He&&!Ze&&!/Browser|Mobi/.test(He))&&(Ie=="Windows CE"||/Mobi/i.test(ke)))He+=" Mobile";else if(He=="IE"&&gt)try{Pe.external===null&&Ne.unshift("platform preview")}catch(Tt){Ne.unshift("embedded")}else(/\bBlackBerry\b/.test(Ze)||/\bBB10\b/.test(ke))&&(Be=(RegExp(Ze.replace(/ +/g," *")+"/([.\\d]+)","i").exec(ke)||0)[1]||yt)?(Be=[Be,/BB10/.test(ke)],Ie=(Be[1]?(Ze=null,et="BlackBerry"):"Device Software")+" "+Be[0],yt=null):this!=we&&Ze!="Wii"&&(gt&&ft||/Opera/.test(He)&&/\b(?:MSIE|Firefox)\b/i.test(ke)||He=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Ie)||He=="IE"&&(Ie&&!/^Win/.test(Ie)&&yt>5.5||/\bWindows XP\b/.test(Ie)&&yt>8||yt==8&&!/\bTrident\b/.test(ke)))&&!E.test(Be=Te.call(we,ke.replace(E,"")+";"))&&Be.name&&(Be="ing as "+Be.name+((Be=Be.version)?" "+Be:""),E.test(He)?(/\bIE\b/.test(Be)&&Ie=="Mac OS"&&(Ie=null),Be="identify"+Be):(Be="mask"+Be,qe?He=Se(qe.replace(/([a-z])([A-Z])/g,"$1 $2")):He="Opera",/\bIE\b/.test(Be)&&(Ie=null),gt||(yt=null)),Ve=["Presto"],Ne.push(Be));(Be=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(ke)||0)[1])&&(Be=[parseFloat(Be.replace(/\.(\d)$/,".0$1")),Be],He=="Safari"&&Be[1].slice(-1)=="+"?(He="WebKit Nightly",rt="alpha",yt=Be[1].slice(0,-1)):(yt==Be[1]||yt==(Be[2]=(/\bSafari\/([\d.]+\+?)/i.exec(ke)||0)[1]))&&(yt=null),Be[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(ke)||0)[1],Be[0]==537.36&&Be[2]==537.36&&parseFloat(Be[1])>=28&&Ve=="WebKit"&&(Ve=["Blink"]),!gt||!Me&&!Be[1]?(Ve&&(Ve[1]="like Safari"),Be=(Be=Be[0],Be<400?1:Be<500?2:Be<526?3:Be<533?4:Be<534?"4+":Be<535?5:Be<537?6:Be<538?7:Be<601?8:Be<602?9:Be<604?10:Be<606?11:Be<608?12:"12")):(Ve&&(Ve[1]="like Chrome"),Be=Be[1]||(Be=Be[0],Be<530?1:Be<532?2:Be<532.05?3:Be<533?4:Be<534.03?5:Be<534.07?6:Be<534.1?7:Be<534.13?8:Be<534.16?9:Be<534.24?10:Be<534.3?11:Be<535.01?12:Be<535.02?"13+":Be<535.07?15:Be<535.11?16:Be<535.19?17:Be<536.05?18:Be<536.1?19:Be<537.01?20:Be<537.11?"21+":Be<537.13?23:Be<537.18?24:Be<537.24?25:Be<537.36?26:Ve!="Blink"?"27":"28")),Ve&&(Ve[1]+=" "+(Be+=typeof Be=="number"?".x":/[.+]/.test(Be)?"":"+")),He=="Safari"&&(!yt||parseInt(yt)>45)?yt=Be:He=="Chrome"&&/\bHeadlessChrome/i.test(ke)&&Ne.unshift("headless")),He=="Opera"&&(Be=/\bzbov|zvav$/.exec(Ie))?(He+=" ",Ne.unshift("desktop mode"),Be=="zvav"?(He+="Mini",yt=null):He+="Mobile",Ie=Ie.replace(RegExp(" *"+Be+"$"),"")):He=="Safari"&&/\bChrome\b/.exec(Ve&&Ve[1])?(Ne.unshift("desktop mode"),He="Chrome Mobile",yt=null,/\bOS X\b/.test(Ie)?(et="Apple",Ie="iOS 4.3+"):Ie=null):/\bSRWare Iron\b/.test(He)&&!yt&&(yt=vt("Chrome")),yt&&yt.indexOf(Be=/[\d.]+$/.exec(Ie))==0&&ke.indexOf("/"+Be+"-")>-1&&(Ie=Ae(Ie.replace(Be,""))),Ie&&Ie.indexOf(He)!=-1&&!RegExp(He+" OS").test(Ie)&&(Ie=Ie.replace(RegExp(" *"+_e(He)+" *"),"")),Ve&&!/\b(?:Avant|Nook)\b/.test(He)&&(/Browser|Lunascape|Maxthon/.test(He)||He!="Safari"&&/^iOS/.test(Ie)&&/\bSafari\b/.test(Ve[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(He)&&Ve[1])&&(Be=Ve[Ve.length-1])&&Ne.push(Be),Ne.length&&(Ne=["("+Ne.join("; ")+")"]),et&&Ze&&Ze.indexOf(et)<0&&Ne.push("on "+et),Ze&&Ne.push((/^on /.test(Ne[Ne.length-1])?"":"on ")+Ze),Ie&&(Be=/ ([\d.+]+)$/.exec(Ie),dt=Be&&Ie.charAt(Ie.length-Be[0].length-1)=="/",Ie={architecture:32,family:Be&&!dt?Ie.replace(Be[0],""):Ie,version:Be?Be[1]:null,toString:function(){var Tt=this.version;return this.family+(Tt&&!dt?" "+Tt:"")+(this.architecture==64?" 64-bit":"")}}),(Be=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(lt))&&!/\bi686\b/i.test(lt)?(Ie&&(Ie.architecture=64,Ie.family=Ie.family.replace(RegExp(" *"+Be),"")),He&&(/\bWOW64\b/i.test(ke)||gt&&/\w(?:86|32)$/.test(ze.cpuClass||ze.platform)&&!/\bWin64; x64\b/i.test(ke))&&Ne.unshift("32-bit")):Ie&&/^OS X/.test(Ie.family)&&He=="Chrome"&&parseFloat(yt)>=39&&(Ie.architecture=64),ke||(ke=null);var Ot={};return Ot.description=ke,Ot.layout=Ve&&Ve[0],Ot.manufacturer=et,Ot.name=He,Ot.prerelease=rt,Ot.product=Ze,Ot.ua=ke,Ot.version=He&&yt,Ot.os=Ie||{architecture:null,family:null,version:null,toString:function(){return"null"}},Ot.parse=Te,Ot.toString=wt,Ot.version&&Ne.unshift(yt),Ot.name&&Ne.unshift(He),Ie&&He&&!(Ie==String(Ie).split(" ")[0]&&(Ie==He.split(" ")[0]||Ze))&&Ne.push(Ze?"("+Ie+")":"on "+Ie),Ne.length&&(Ot.description=Ne.join(" ")),Ot}var Le=Te();typeof Ce=="function"&&typeof Ce.amd=="object"&&Ce.amd?(ne.platform=Le,Ce(function(){return Le})):se&&z?we(Le,function(ke,Pe){se[Pe]=ke}):ne.platform=Le}).call(this)}).call(this)}).call(this,typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(a,he,de){(function(te){(function(){"use strict";typeof te=="undefined"||!te.version||te.version.indexOf("v0.")===0||te.version.indexOf("v1.")===0&&te.version.indexOf("v1.8.")!==0?he.exports={nextTick:oe}:he.exports=te;function oe(ne,ee,se,z){if(typeof ne!="function")throw new TypeError('"callback" argument must be a function');var x=arguments.length,b,E;switch(x){case 0:case 1:return te.nextTick(ne);case 2:return te.nextTick(function(){ne.call(null,ee)});case 3:return te.nextTick(function(){ne.call(null,ee,se)});case 4:return te.nextTick(function(){ne.call(null,ee,se,z)});default:for(b=new Array(x-1),E=0;E<b.length;)b[E++]=arguments[E];return te.nextTick(function(){ne.apply(null,b)})}}}).call(this)}).call(this,a("_process"))},{_process:467}],381:[function(a,he,de){var te=he.exports={},oe,ne;function ee(){throw new Error("setTimeout has not been defined")}function se(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?oe=setTimeout:oe=ee}catch(ye){oe=ee}try{typeof clearTimeout=="function"?ne=clearTimeout:ne=se}catch(ye){ne=se}})();function z(ye){if(oe===setTimeout)return setTimeout(ye,0);if((oe===ee||!oe)&&setTimeout)return oe=setTimeout,setTimeout(ye,0);try{return oe(ye,0)}catch(Se){try{return oe.call(null,ye,0)}catch(we){return oe.call(this,ye,0)}}}function x(ye){if(ne===clearTimeout)return clearTimeout(ye);if((ne===se||!ne)&&clearTimeout)return ne=clearTimeout,clearTimeout(ye);try{return ne(ye)}catch(Se){try{return ne.call(null,ye)}catch(we){return ne.call(this,ye)}}}var b=[],E=!1,re,ae=-1;function le(){!E||!re||(E=!1,re.length?b=re.concat(b):ae=-1,b.length&&fe())}function fe(){if(!E){var ye=z(le);E=!0;for(var Se=b.length;Se;){for(re=b,b=[];++ae<Se;)re&&re[ae].run();ae=-1,Se=b.length}re=null,E=!1,x(ye)}}te.nextTick=function(ye){var Se=new Array(arguments.length-1);if(arguments.length>1)for(var we=1;we<arguments.length;we++)Se[we-1]=arguments[we];b.push(new ce(ye,Se)),b.length===1&&!E&&z(fe)};function ce(ye,Se){this.fun=ye,this.array=Se}ce.prototype.run=function(){this.fun.apply(null,this.array)},te.title="browser",te.browser=!0,te.env={},te.argv=[],te.version="",te.versions={};function ue(){}te.on=ue,te.addListener=ue,te.once=ue,te.off=ue,te.removeListener=ue,te.removeAllListeners=ue,te.emit=ue,te.prependListener=ue,te.prependOnceListener=ue,te.listeners=function(ye){return[]},te.binding=function(ye){throw new Error("process.binding is not supported")},te.cwd=function(){return"/"},te.chdir=function(ye){throw new Error("process.chdir is not supported")},te.umask=function(){return 0}},{}],382:[function(a,he,de){(function(te){(function(){(function(oe){var ne=typeof de=="object"&&de&&!de.nodeType&&de,ee=typeof he=="object"&&he&&!he.nodeType&&he,se=typeof te=="object"&&te;(se.global===se||se.window===se||se.self===se)&&(oe=se);var z,x=2147483647,b=36,E=1,re=26,ae=38,le=700,fe=72,ce=128,ue="-",ye=/^xn--/,Se=/[^\x20-\x7E]/,we=/[\x2E\u3002\uFF0E\uFF61]/g,xe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ge=b-E,_e=Math.floor,be=String.fromCharCode,Ae;function Te($e){throw new RangeError(xe[$e])}function Le($e,Je){for(var Ye=$e.length,Qe=[];Ye--;)Qe[Ye]=Je($e[Ye]);return Qe}function ke($e,Je){var Ye=$e.split("@"),Qe="";Ye.length>1&&(Qe=Ye[0]+"@",$e=Ye[1]),$e=$e.replace(we,".");var st=$e.split("."),ot=Le(st,Je).join(".");return Qe+ot}function Pe($e){for(var Je=[],Ye=0,Qe=$e.length,st,ot;Ye<Qe;)st=$e.charCodeAt(Ye++),st>=55296&&st<=56319&&Ye<Qe?(ot=$e.charCodeAt(Ye++),(ot&64512)==56320?Je.push(((st&1023)<<10)+(ot&1023)+65536):(Je.push(st),Ye--)):Je.push(st);return Je}function Oe($e){return Le($e,function(Je){var Ye="";return Je>65535&&(Je-=65536,Ye+=be(Je>>>10&1023|55296),Je=56320|Je&1023),Ye+=be(Je),Ye}).join("")}function ze($e){return $e-48<10?$e-22:$e-65<26?$e-65:$e-97<26?$e-97:b}function Ge($e,Je){return $e+22+75*($e<26)-((Je!=0)<<5)}function tt($e,Je,Ye){var Qe=0;for($e=Ye?_e($e/le):$e>>1,$e+=_e($e/Je);$e>ge*re>>1;Qe+=b)$e=_e($e/ge);return _e(Qe+(ge+1)*$e/($e+ae))}function Me($e){var Je=[],Ye=$e.length,Qe,st=0,ot=ce,mt=fe,ft,qe,Be,lt,Ne,rt,gt,yt,dt;for(ft=$e.lastIndexOf(ue),ft<0&&(ft=0),qe=0;qe<ft;++qe)$e.charCodeAt(qe)>=128&&Te("not-basic"),Je.push($e.charCodeAt(qe));for(Be=ft>0?ft+1:0;Be<Ye;){for(lt=st,Ne=1,rt=b;Be>=Ye&&Te("invalid-input"),gt=ze($e.charCodeAt(Be++)),(gt>=b||gt>_e((x-st)/Ne))&&Te("overflow"),st+=gt*Ne,yt=rt<=mt?E:rt>=mt+re?re:rt-mt,!(gt<yt);rt+=b)dt=b-yt,Ne>_e(x/dt)&&Te("overflow"),Ne*=dt;Qe=Je.length+1,mt=tt(st-lt,Qe,lt==0),_e(st/Qe)>x-ot&&Te("overflow"),ot+=_e(st/Qe),st%=Qe,Je.splice(st++,0,ot)}return Oe(Je)}function We($e){var Je,Ye,Qe,st,ot,mt,ft,qe,Be,lt,Ne,rt=[],gt,yt,dt,Ve;for($e=Pe($e),gt=$e.length,Je=ce,Ye=0,ot=fe,mt=0;mt<gt;++mt)Ne=$e[mt],Ne<128&&rt.push(be(Ne));for(Qe=st=rt.length,st&&rt.push(ue);Qe<gt;){for(ft=x,mt=0;mt<gt;++mt)Ne=$e[mt],Ne>=Je&&Ne<ft&&(ft=Ne);for(yt=Qe+1,ft-Je>_e((x-Ye)/yt)&&Te("overflow"),Ye+=(ft-Je)*yt,Je=ft,mt=0;mt<gt;++mt)if(Ne=$e[mt],Ne<Je&&++Ye>x&&Te("overflow"),Ne==Je){for(qe=Ye,Be=b;lt=Be<=ot?E:Be>=ot+re?re:Be-ot,!(qe<lt);Be+=b)Ve=qe-lt,dt=b-lt,rt.push(be(Ge(lt+Ve%dt,0))),qe=_e(Ve/dt);rt.push(be(Ge(qe,0))),ot=tt(Ye,yt,Qe==st),Ye=0,++Qe}++Ye,++Je}return rt.join("")}function it($e){return ke($e,function(Je){return ye.test(Je)?Me(Je.slice(4).toLowerCase()):Je})}function at($e){return ke($e,function(Je){return Se.test(Je)?"xn--"+We(Je):Je})}if(z={version:"1.4.1",ucs2:{decode:Pe,encode:Oe},decode:Me,encode:We,toASCII:at,toUnicode:it},typeof Ce=="function"&&typeof Ce.amd=="object"&&Ce.amd)Ce("punycode",function(){return z});else if(ne&&ee)if(he.exports==ne)ee.exports=z;else for(Ae in z)z.hasOwnProperty(Ae)&&(ne[Ae]=z[Ae]);else oe.punycode=z})(this)}).call(this)}).call(this,typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(a,he,de){"use strict";function te(ne,ee){return Object.prototype.hasOwnProperty.call(ne,ee)}he.exports=function(ne,ee,se,z){ee=ee||"&",se=se||"=";var x={};if(typeof ne!="string"||ne.length===0)return x;var b=/\+/g;ne=ne.split(ee);var E=1e3;z&&typeof z.maxKeys=="number"&&(E=z.maxKeys);var re=ne.length;E>0&&re>E&&(re=E);for(var ae=0;ae<re;++ae){var le=ne[ae].replace(b,"%20"),fe=le.indexOf(se),ce,ue,ye,Se;fe>=0?(ce=le.substr(0,fe),ue=le.substr(fe+1)):(ce=le,ue=""),ye=decodeURIComponent(ce),Se=decodeURIComponent(ue),te(x,ye)?oe(x[ye])?x[ye].push(Se):x[ye]=[x[ye],Se]:x[ye]=Se}return x};var oe=Array.isArray||function(ne){return Object.prototype.toString.call(ne)==="[object Array]"}},{}],384:[function(a,he,de){"use strict";var te=function(se){switch(typeof se){case"string":return se;case"boolean":return se?"true":"false";case"number":return isFinite(se)?se:"";default:return""}};he.exports=function(se,z,x,b){return z=z||"&",x=x||"=",se===null&&(se=void 0),typeof se=="object"?ne(ee(se),function(E){var re=encodeURIComponent(te(E))+x;return oe(se[E])?ne(se[E],function(ae){return re+encodeURIComponent(te(ae))}).join(z):re+encodeURIComponent(te(se[E]))}).join(z):b?encodeURIComponent(te(b))+x+encodeURIComponent(te(se)):""};var oe=Array.isArray||function(se){return Object.prototype.toString.call(se)==="[object Array]"};function ne(se,z){if(se.map)return se.map(z);for(var x=[],b=0;b<se.length;b++)x.push(z(se[b],b));return x}var ee=Object.keys||function(se){var z=[];for(var x in se)Object.prototype.hasOwnProperty.call(se,x)&&z.push(x);return z}},{}],385:[function(a,he,de){"use strict";de.decode=de.parse=a("./decode"),de.encode=de.stringify=a("./encode")},{"./decode":383,"./encode":384}],386:[function(a,he,de){"use strict";var te=a("process-nextick-args"),oe=Object.keys||function(le){var fe=[];for(var ce in le)fe.push(ce);return fe};he.exports=E;var ne=Object.create(a("core-util-is"));ne.inherits=a("inherits");var ee=a("./_stream_readable"),se=a("./_stream_writable");ne.inherits(E,ee);for(var z=oe(se.prototype),x=0;x<z.length;x++){var b=z[x];E.prototype[b]||(E.prototype[b]=se.prototype[b])}function E(le){if(!(this instanceof E))return new E(le);ee.call(this,le),se.call(this,le),le&&le.readable===!1&&(this.readable=!1),le&&le.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,le&&le.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",re)}Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function re(){this.allowHalfOpen||this._writableState.ended||te.nextTick(ae,this)}function ae(le){le.end()}Object.defineProperty(E.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(le){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=le,this._writableState.destroyed=le)}}),E.prototype._destroy=function(le,fe){this.push(null),this.end(),te.nextTick(fe,le)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(a,he,de){"use strict";he.exports=ne;var te=a("./_stream_transform"),oe=Object.create(a("core-util-is"));oe.inherits=a("inherits"),oe.inherits(ne,te);function ne(ee){if(!(this instanceof ne))return new ne(ee);te.call(this,ee)}ne.prototype._transform=function(ee,se,z){z(null,ee)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(a,he,de){(function(te,oe){(function(){"use strict";var ne=a("process-nextick-args");he.exports=be;var ee=a("isarray"),se;be.ReadableState=_e;var z=a("events").EventEmitter,x=function(Ne,rt){return Ne.listeners(rt).length},b=a("./internal/streams/stream"),E=a("safe-buffer").Buffer,re=oe.Uint8Array||function(){};function ae(Ne){return E.from(Ne)}function le(Ne){return E.isBuffer(Ne)||Ne instanceof re}var fe=Object.create(a("core-util-is"));fe.inherits=a("inherits");var ce=a("util"),ue=void 0;ce&&ce.debuglog?ue=ce.debuglog("stream"):ue=function(){};var ye=a("./internal/streams/BufferList"),Se=a("./internal/streams/destroy"),we;fe.inherits(be,b);var xe=["error","close","destroy","pause","resume"];function ge(Ne,rt,gt){if(typeof Ne.prependListener=="function")return Ne.prependListener(rt,gt);!Ne._events||!Ne._events[rt]?Ne.on(rt,gt):ee(Ne._events[rt])?Ne._events[rt].unshift(gt):Ne._events[rt]=[gt,Ne._events[rt]]}function _e(Ne,rt){se=se||a("./_stream_duplex"),Ne=Ne||{};var gt=rt instanceof se;this.objectMode=!!Ne.objectMode,gt&&(this.objectMode=this.objectMode||!!Ne.readableObjectMode);var yt=Ne.highWaterMark,dt=Ne.readableHighWaterMark,Ve=this.objectMode?16:16*1024;yt||yt===0?this.highWaterMark=yt:gt&&(dt||dt===0)?this.highWaterMark=dt:this.highWaterMark=Ve,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new ye,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=Ne.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Ne.encoding&&(we||(we=a("string_decoder/").StringDecoder),this.decoder=new we(Ne.encoding),this.encoding=Ne.encoding)}function be(Ne){if(se=se||a("./_stream_duplex"),!(this instanceof be))return new be(Ne);this._readableState=new _e(Ne,this),this.readable=!0,Ne&&(typeof Ne.read=="function"&&(this._read=Ne.read),typeof Ne.destroy=="function"&&(this._destroy=Ne.destroy)),b.call(this)}Object.defineProperty(be.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ne){this._readableState&&(this._readableState.destroyed=Ne)}}),be.prototype.destroy=Se.destroy,be.prototype._undestroy=Se.undestroy,be.prototype._destroy=function(Ne,rt){this.push(null),rt(Ne)},be.prototype.push=function(Ne,rt){var gt=this._readableState,yt;return gt.objectMode?yt=!0:typeof Ne=="string"&&(rt=rt||gt.defaultEncoding,rt!==gt.encoding&&(Ne=E.from(Ne,rt),rt=""),yt=!0),Ae(this,Ne,rt,!1,yt)},be.prototype.unshift=function(Ne){return Ae(this,Ne,null,!0,!1)};function Ae(Ne,rt,gt,yt,dt){var Ve=Ne._readableState;if(rt===null)Ve.reading=!1,Ge(Ne,Ve);else{var He;dt||(He=Le(Ve,rt)),He?Ne.emit("error",He):Ve.objectMode||rt&&rt.length>0?(typeof rt!="string"&&!Ve.objectMode&&Object.getPrototypeOf(rt)!==E.prototype&&(rt=ae(rt)),yt?Ve.endEmitted?Ne.emit("error",new Error("stream.unshift() after end event")):Te(Ne,Ve,rt,!0):Ve.ended?Ne.emit("error",new Error("stream.push() after EOF")):(Ve.reading=!1,Ve.decoder&&!gt?(rt=Ve.decoder.write(rt),Ve.objectMode||rt.length!==0?Te(Ne,Ve,rt,!1):We(Ne,Ve)):Te(Ne,Ve,rt,!1))):yt||(Ve.reading=!1)}return ke(Ve)}function Te(Ne,rt,gt,yt){rt.flowing&&rt.length===0&&!rt.sync?(Ne.emit("data",gt),Ne.read(0)):(rt.length+=rt.objectMode?1:gt.length,yt?rt.buffer.unshift(gt):rt.buffer.push(gt),rt.needReadable&&tt(Ne)),We(Ne,rt)}function Le(Ne,rt){var gt;return!le(rt)&&typeof rt!="string"&&rt!==void 0&&!Ne.objectMode&&(gt=new TypeError("Invalid non-string/buffer chunk")),gt}function ke(Ne){return!Ne.ended&&(Ne.needReadable||Ne.length<Ne.highWaterMark||Ne.length===0)}be.prototype.isPaused=function(){return this._readableState.flowing===!1},be.prototype.setEncoding=function(Ne){return we||(we=a("string_decoder/").StringDecoder),this._readableState.decoder=new we(Ne),this._readableState.encoding=Ne,this};var Pe=8388608;function Oe(Ne){return Ne>=Pe?Ne=Pe:(Ne--,Ne|=Ne>>>1,Ne|=Ne>>>2,Ne|=Ne>>>4,Ne|=Ne>>>8,Ne|=Ne>>>16,Ne++),Ne}function ze(Ne,rt){return Ne<=0||rt.length===0&&rt.ended?0:rt.objectMode?1:Ne!==Ne?rt.flowing&&rt.length?rt.buffer.head.data.length:rt.length:(Ne>rt.highWaterMark&&(rt.highWaterMark=Oe(Ne)),Ne<=rt.length?Ne:rt.ended?rt.length:(rt.needReadable=!0,0))}be.prototype.read=function(Ne){ue("read",Ne),Ne=parseInt(Ne,10);var rt=this._readableState,gt=Ne;if(Ne!==0&&(rt.emittedReadable=!1),Ne===0&&rt.needReadable&&(rt.length>=rt.highWaterMark||rt.ended))return ue("read: emitReadable",rt.length,rt.ended),rt.length===0&&rt.ended?qe(this):tt(this),null;if(Ne=ze(Ne,rt),Ne===0&&rt.ended)return rt.length===0&&qe(this),null;var yt=rt.needReadable;ue("need readable",yt),(rt.length===0||rt.length-Ne<rt.highWaterMark)&&(yt=!0,ue("length less than watermark",yt)),rt.ended||rt.reading?(yt=!1,ue("reading or ended",yt)):yt&&(ue("do read"),rt.reading=!0,rt.sync=!0,rt.length===0&&(rt.needReadable=!0),this._read(rt.highWaterMark),rt.sync=!1,rt.reading||(Ne=ze(gt,rt)));var dt;return Ne>0?dt=st(Ne,rt):dt=null,dt===null?(rt.needReadable=!0,Ne=0):rt.length-=Ne,rt.length===0&&(rt.ended||(rt.needReadable=!0),gt!==Ne&&rt.ended&&qe(this)),dt!==null&&this.emit("data",dt),dt};function Ge(Ne,rt){if(!rt.ended){if(rt.decoder){var gt=rt.decoder.end();gt&&gt.length&&(rt.buffer.push(gt),rt.length+=rt.objectMode?1:gt.length)}rt.ended=!0,tt(Ne)}}function tt(Ne){var rt=Ne._readableState;rt.needReadable=!1,rt.emittedReadable||(ue("emitReadable",rt.flowing),rt.emittedReadable=!0,rt.sync?ne.nextTick(Me,Ne):Me(Ne))}function Me(Ne){ue("emit readable"),Ne.emit("readable"),Qe(Ne)}function We(Ne,rt){rt.readingMore||(rt.readingMore=!0,ne.nextTick(it,Ne,rt))}function it(Ne,rt){for(var gt=rt.length;!rt.reading&&!rt.flowing&&!rt.ended&&rt.length<rt.highWaterMark&&(ue("maybeReadMore read 0"),Ne.read(0),gt!==rt.length);)gt=rt.length;rt.readingMore=!1}be.prototype._read=function(Ne){this.emit("error",new Error("_read() is not implemented"))},be.prototype.pipe=function(Ne,rt){var gt=this,yt=this._readableState;switch(yt.pipesCount){case 0:yt.pipes=Ne;break;case 1:yt.pipes=[yt.pipes,Ne];break;default:yt.pipes.push(Ne);break}yt.pipesCount+=1,ue("pipe count=%d opts=%j",yt.pipesCount,rt);var dt=(!rt||rt.end!==!1)&&Ne!==te.stdout&&Ne!==te.stderr,Ve=dt?Ze:wt;yt.endEmitted?ne.nextTick(Ve):gt.once("end",Ve),Ne.on("unpipe",He);function He(Ot,Tt){ue("onunpipe"),Ot===gt&&Tt&&Tt.hasUnpiped===!1&&(Tt.hasUnpiped=!0,je())}function Ze(){ue("onend"),Ne.end()}var et=at(gt);Ne.on("drain",et);var Ie=!1;function je(){ue("cleanup"),Ne.removeListener("close",Fe),Ne.removeListener("finish",vt),Ne.removeListener("drain",et),Ne.removeListener("error",ct),Ne.removeListener("unpipe",He),gt.removeListener("end",Ze),gt.removeListener("end",wt),gt.removeListener("data",Xe),Ie=!0,yt.awaitDrain&&(!Ne._writableState||Ne._writableState.needDrain)&&et()}var De=!1;gt.on("data",Xe);function Xe(Ot){ue("ondata"),De=!1;var Tt=Ne.write(Ot);Tt===!1&&!De&&((yt.pipesCount===1&&yt.pipes===Ne||yt.pipesCount>1&&lt(yt.pipes,Ne)!==-1)&&!Ie&&(ue("false write response, pause",gt._readableState.awaitDrain),gt._readableState.awaitDrain++,De=!0),gt.pause())}function ct(Ot){ue("onerror",Ot),wt(),Ne.removeListener("error",ct),x(Ne,"error")===0&&Ne.emit("error",Ot)}ge(Ne,"error",ct);function Fe(){Ne.removeListener("finish",vt),wt()}Ne.once("close",Fe);function vt(){ue("onfinish"),Ne.removeListener("close",Fe),wt()}Ne.once("finish",vt);function wt(){ue("unpipe"),gt.unpipe(Ne)}return Ne.emit("pipe",gt),yt.flowing||(ue("pipe resume"),gt.resume()),Ne};function at(Ne){return function(){var rt=Ne._readableState;ue("pipeOnDrain",rt.awaitDrain),rt.awaitDrain&&rt.awaitDrain--,rt.awaitDrain===0&&x(Ne,"data")&&(rt.flowing=!0,Qe(Ne))}}be.prototype.unpipe=function(Ne){var rt=this._readableState,gt={hasUnpiped:!1};if(rt.pipesCount===0)return this;if(rt.pipesCount===1)return Ne&&Ne!==rt.pipes?this:(Ne||(Ne=rt.pipes),rt.pipes=null,rt.pipesCount=0,rt.flowing=!1,Ne&&Ne.emit("unpipe",this,gt),this);if(!Ne){var yt=rt.pipes,dt=rt.pipesCount;rt.pipes=null,rt.pipesCount=0,rt.flowing=!1;for(var Ve=0;Ve<dt;Ve++)yt[Ve].emit("unpipe",this,gt);return this}var He=lt(rt.pipes,Ne);return He===-1?this:(rt.pipes.splice(He,1),rt.pipesCount-=1,rt.pipesCount===1&&(rt.pipes=rt.pipes[0]),Ne.emit("unpipe",this,gt),this)},be.prototype.on=function(Ne,rt){var gt=b.prototype.on.call(this,Ne,rt);if(Ne==="data")this._readableState.flowing!==!1&&this.resume();else if(Ne==="readable"){var yt=this._readableState;!yt.endEmitted&&!yt.readableListening&&(yt.readableListening=yt.needReadable=!0,yt.emittedReadable=!1,yt.reading?yt.length&&tt(this):ne.nextTick($e,this))}return gt},be.prototype.addListener=be.prototype.on;function $e(Ne){ue("readable nexttick read 0"),Ne.read(0)}be.prototype.resume=function(){var Ne=this._readableState;return Ne.flowing||(ue("resume"),Ne.flowing=!0,Je(this,Ne)),this};function Je(Ne,rt){rt.resumeScheduled||(rt.resumeScheduled=!0,ne.nextTick(Ye,Ne,rt))}function Ye(Ne,rt){rt.reading||(ue("resume read 0"),Ne.read(0)),rt.resumeScheduled=!1,rt.awaitDrain=0,Ne.emit("resume"),Qe(Ne),rt.flowing&&!rt.reading&&Ne.read(0)}be.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Qe(Ne){var rt=Ne._readableState;for(ue("flow",rt.flowing);rt.flowing&&Ne.read()!==null;);}be.prototype.wrap=function(Ne){var rt=this,gt=this._readableState,yt=!1;Ne.on("end",function(){if(ue("wrapped end"),gt.decoder&&!gt.ended){var He=gt.decoder.end();He&&He.length&&rt.push(He)}rt.push(null)}),Ne.on("data",function(He){if(ue("wrapped data"),gt.decoder&&(He=gt.decoder.write(He)),!(gt.objectMode&&He==null)&&!(!gt.objectMode&&(!He||!He.length))){var Ze=rt.push(He);Ze||(yt=!0,Ne.pause())}});for(var dt in Ne)this[dt]===void 0&&typeof Ne[dt]=="function"&&(this[dt]=function(He){return function(){return Ne[He].apply(Ne,arguments)}}(dt));for(var Ve=0;Ve<xe.length;Ve++)Ne.on(xe[Ve],this.emit.bind(this,xe[Ve]));return this._read=function(He){ue("wrapped _read",He),yt&&(yt=!1,Ne.resume())},this},Object.defineProperty(be.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),be._fromList=st;function st(Ne,rt){if(rt.length===0)return null;var gt;return rt.objectMode?gt=rt.buffer.shift():!Ne||Ne>=rt.length?(rt.decoder?gt=rt.buffer.join(""):rt.buffer.length===1?gt=rt.buffer.head.data:gt=rt.buffer.concat(rt.length),rt.buffer.clear()):gt=ot(Ne,rt.buffer,rt.decoder),gt}function ot(Ne,rt,gt){var yt;return Ne<rt.head.data.length?(yt=rt.head.data.slice(0,Ne),rt.head.data=rt.head.data.slice(Ne)):Ne===rt.head.data.length?yt=rt.shift():yt=gt?mt(Ne,rt):ft(Ne,rt),yt}function mt(Ne,rt){var gt=rt.head,yt=1,dt=gt.data;for(Ne-=dt.length;gt=gt.next;){var Ve=gt.data,He=Ne>Ve.length?Ve.length:Ne;if(He===Ve.length?dt+=Ve:dt+=Ve.slice(0,Ne),Ne-=He,Ne===0){He===Ve.length?(++yt,gt.next?rt.head=gt.next:rt.head=rt.tail=null):(rt.head=gt,gt.data=Ve.slice(He));break}++yt}return rt.length-=yt,dt}function ft(Ne,rt){var gt=E.allocUnsafe(Ne),yt=rt.head,dt=1;for(yt.data.copy(gt),Ne-=yt.data.length;yt=yt.next;){var Ve=yt.data,He=Ne>Ve.length?Ve.length:Ne;if(Ve.copy(gt,gt.length-Ne,0,He),Ne-=He,Ne===0){He===Ve.length?(++dt,yt.next?rt.head=yt.next:rt.head=rt.tail=null):(rt.head=yt,yt.data=Ve.slice(He));break}++dt}return rt.length-=dt,gt}function qe(Ne){var rt=Ne._readableState;if(rt.length>0)throw new Error('"endReadable()" called on non-empty stream');rt.endEmitted||(rt.ended=!0,ne.nextTick(Be,rt,Ne))}function Be(Ne,rt){!Ne.endEmitted&&Ne.length===0&&(Ne.endEmitted=!0,rt.readable=!1,rt.emit("end"))}function lt(Ne,rt){for(var gt=0,yt=Ne.length;gt<yt;gt++)if(Ne[gt]===rt)return gt;return-1}}).call(this)}).call(this,a("_process"),typeof pt!="undefined"?pt: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(a,he,de){"use strict";he.exports=ee;var te=a("./_stream_duplex"),oe=Object.create(a("core-util-is"));oe.inherits=a("inherits"),oe.inherits(ee,te);function ne(x,b){var E=this._transformState;E.transforming=!1;var re=E.writecb;if(!re)return this.emit("error",new Error("write callback called multiple times"));E.writechunk=null,E.writecb=null,b!=null&&this.push(b),re(x);var ae=this._readableState;ae.reading=!1,(ae.needReadable||ae.length<ae.highWaterMark)&&this._read(ae.highWaterMark)}function ee(x){if(!(this instanceof ee))return new ee(x);te.call(this,x),this._transformState={afterTransform:ne.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,x&&(typeof x.transform=="function"&&(this._transform=x.transform),typeof x.flush=="function"&&(this._flush=x.flush)),this.on("prefinish",se)}function se(){var x=this;typeof this._flush=="function"?this._flush(function(b,E){z(x,b,E)}):z(this,null,null)}ee.prototype.push=function(x,b){return this._transformState.needTransform=!1,te.prototype.push.call(this,x,b)},ee.prototype._transform=function(x,b,E){throw new Error("_transform() is not implemented")},ee.prototype._write=function(x,b,E){var re=this._transformState;if(re.writecb=E,re.writechunk=x,re.writeencoding=b,!re.transforming){var ae=this._readableState;(re.needTransform||ae.needReadable||ae.length<ae.highWaterMark)&&this._read(ae.highWaterMark)}},ee.prototype._read=function(x){var b=this._transformState;b.writechunk!==null&&b.writecb&&!b.transforming?(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform)):b.needTransform=!0},ee.prototype._destroy=function(x,b){var E=this;te.prototype._destroy.call(this,x,function(re){b(re),E.emit("close")})};function z(x,b,E){if(b)return x.emit("error",b);if(E!=null&&x.push(E),x._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(x._transformState.transforming)throw new Error("Calling transform done when still transforming");return x.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(a,he,de){(function(te,oe,ne){(function(){"use strict";var ee=a("process-nextick-args");he.exports=ge;function se(Ye,Qe,st){this.chunk=Ye,this.encoding=Qe,this.callback=st,this.next=null}function z(Ye){var Qe=this;this.next=null,this.entry=null,this.finish=function(){Je(Qe,Ye)}}var x=!te.browser&&["v0.10","v0.9."].indexOf(te.version.slice(0,5))>-1?ne:ee.nextTick,b;ge.WritableState=we;var E=Object.create(a("core-util-is"));E.inherits=a("inherits");var re={deprecate:a("util-deprecate")},ae=a("./internal/streams/stream"),le=a("safe-buffer").Buffer,fe=oe.Uint8Array||function(){};function ce(Ye){return le.from(Ye)}function ue(Ye){return le.isBuffer(Ye)||Ye instanceof fe}var ye=a("./internal/streams/destroy");E.inherits(ge,ae);function Se(){}function we(Ye,Qe){b=b||a("./_stream_duplex"),Ye=Ye||{};var st=Qe instanceof b;this.objectMode=!!Ye.objectMode,st&&(this.objectMode=this.objectMode||!!Ye.writableObjectMode);var ot=Ye.highWaterMark,mt=Ye.writableHighWaterMark,ft=this.objectMode?16:16*1024;ot||ot===0?this.highWaterMark=ot:st&&(mt||mt===0)?this.highWaterMark=mt:this.highWaterMark=ft,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 qe=Ye.decodeStrings===!1;this.decodeStrings=!qe,this.defaultEncoding=Ye.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Be){Oe(Qe,Be)},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 z(this)}we.prototype.getBuffer=function(){for(var Qe=this.bufferedRequest,st=[];Qe;)st.push(Qe),Qe=Qe.next;return st},function(){try{Object.defineProperty(we.prototype,"buffer",{get:re.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ye){}}();var xe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(xe=Function.prototype[Symbol.hasInstance],Object.defineProperty(ge,Symbol.hasInstance,{value:function(Ye){return xe.call(this,Ye)?!0:this!==ge?!1:Ye&&Ye._writableState instanceof we}})):xe=function(Ye){return Ye instanceof this};function ge(Ye){if(b=b||a("./_stream_duplex"),!xe.call(ge,this)&&!(this instanceof b))return new ge(Ye);this._writableState=new we(Ye,this),this.writable=!0,Ye&&(typeof Ye.write=="function"&&(this._write=Ye.write),typeof Ye.writev=="function"&&(this._writev=Ye.writev),typeof Ye.destroy=="function"&&(this._destroy=Ye.destroy),typeof Ye.final=="function"&&(this._final=Ye.final)),ae.call(this)}ge.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function _e(Ye,Qe){var st=new Error("write after end");Ye.emit("error",st),ee.nextTick(Qe,st)}function be(Ye,Qe,st,ot){var mt=!0,ft=!1;return st===null?ft=new TypeError("May not write null values to stream"):typeof st!="string"&&st!==void 0&&!Qe.objectMode&&(ft=new TypeError("Invalid non-string/buffer chunk")),ft&&(Ye.emit("error",ft),ee.nextTick(ot,ft),mt=!1),mt}ge.prototype.write=function(Ye,Qe,st){var ot=this._writableState,mt=!1,ft=!ot.objectMode&&ue(Ye);return ft&&!le.isBuffer(Ye)&&(Ye=ce(Ye)),typeof Qe=="function"&&(st=Qe,Qe=null),ft?Qe="buffer":Qe||(Qe=ot.defaultEncoding),typeof st!="function"&&(st=Se),ot.ended?_e(this,st):(ft||be(this,ot,Ye,st))&&(ot.pendingcb++,mt=Te(this,ot,ft,Ye,Qe,st)),mt},ge.prototype.cork=function(){var Ye=this._writableState;Ye.corked++},ge.prototype.uncork=function(){var Ye=this._writableState;Ye.corked&&(Ye.corked--,!Ye.writing&&!Ye.corked&&!Ye.finished&&!Ye.bufferProcessing&&Ye.bufferedRequest&&tt(this,Ye))},ge.prototype.setDefaultEncoding=function(Qe){if(typeof Qe=="string"&&(Qe=Qe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Qe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Qe);return this._writableState.defaultEncoding=Qe,this};function Ae(Ye,Qe,st){return!Ye.objectMode&&Ye.decodeStrings!==!1&&typeof Qe=="string"&&(Qe=le.from(Qe,st)),Qe}Object.defineProperty(ge.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Te(Ye,Qe,st,ot,mt,ft){if(!st){var qe=Ae(Qe,ot,mt);ot!==qe&&(st=!0,mt="buffer",ot=qe)}var Be=Qe.objectMode?1:ot.length;Qe.length+=Be;var lt=Qe.length<Qe.highWaterMark;if(lt||(Qe.needDrain=!0),Qe.writing||Qe.corked){var Ne=Qe.lastBufferedRequest;Qe.lastBufferedRequest={chunk:ot,encoding:mt,isBuf:st,callback:ft,next:null},Ne?Ne.next=Qe.lastBufferedRequest:Qe.bufferedRequest=Qe.lastBufferedRequest,Qe.bufferedRequestCount+=1}else Le(Ye,Qe,!1,Be,ot,mt,ft);return lt}function Le(Ye,Qe,st,ot,mt,ft,qe){Qe.writelen=ot,Qe.writecb=qe,Qe.writing=!0,Qe.sync=!0,st?Ye._writev(mt,Qe.onwrite):Ye._write(mt,ft,Qe.onwrite),Qe.sync=!1}function ke(Ye,Qe,st,ot,mt){--Qe.pendingcb,st?(ee.nextTick(mt,ot),ee.nextTick(at,Ye,Qe),Ye._writableState.errorEmitted=!0,Ye.emit("error",ot)):(mt(ot),Ye._writableState.errorEmitted=!0,Ye.emit("error",ot),at(Ye,Qe))}function Pe(Ye){Ye.writing=!1,Ye.writecb=null,Ye.length-=Ye.writelen,Ye.writelen=0}function Oe(Ye,Qe){var st=Ye._writableState,ot=st.sync,mt=st.writecb;if(Pe(st),Qe)ke(Ye,st,ot,Qe,mt);else{var ft=Me(st);!ft&&!st.corked&&!st.bufferProcessing&&st.bufferedRequest&&tt(Ye,st),ot?x(ze,Ye,st,ft,mt):ze(Ye,st,ft,mt)}}function ze(Ye,Qe,st,ot){st||Ge(Ye,Qe),Qe.pendingcb--,ot(),at(Ye,Qe)}function Ge(Ye,Qe){Qe.length===0&&Qe.needDrain&&(Qe.needDrain=!1,Ye.emit("drain"))}function tt(Ye,Qe){Qe.bufferProcessing=!0;var st=Qe.bufferedRequest;if(Ye._writev&&st&&st.next){var ot=Qe.bufferedRequestCount,mt=new Array(ot),ft=Qe.corkedRequestsFree;ft.entry=st;for(var qe=0,Be=!0;st;)mt[qe]=st,st.isBuf||(Be=!1),st=st.next,qe+=1;mt.allBuffers=Be,Le(Ye,Qe,!0,Qe.length,mt,"",ft.finish),Qe.pendingcb++,Qe.lastBufferedRequest=null,ft.next?(Qe.corkedRequestsFree=ft.next,ft.next=null):Qe.corkedRequestsFree=new z(Qe),Qe.bufferedRequestCount=0}else{for(;st;){var lt=st.chunk,Ne=st.encoding,rt=st.callback,gt=Qe.objectMode?1:lt.length;if(Le(Ye,Qe,!1,gt,lt,Ne,rt),st=st.next,Qe.bufferedRequestCount--,Qe.writing)break}st===null&&(Qe.lastBufferedRequest=null)}Qe.bufferedRequest=st,Qe.bufferProcessing=!1}ge.prototype._write=function(Ye,Qe,st){st(new Error("_write() is not implemented"))},ge.prototype._writev=null,ge.prototype.end=function(Ye,Qe,st){var ot=this._writableState;typeof Ye=="function"?(st=Ye,Ye=null,Qe=null):typeof Qe=="function"&&(st=Qe,Qe=null),Ye!=null&&this.write(Ye,Qe),ot.corked&&(ot.corked=1,this.uncork()),!ot.ending&&!ot.finished&&$e(this,ot,st)};function Me(Ye){return Ye.ending&&Ye.length===0&&Ye.bufferedRequest===null&&!Ye.finished&&!Ye.writing}function We(Ye,Qe){Ye._final(function(st){Qe.pendingcb--,st&&Ye.emit("error",st),Qe.prefinished=!0,Ye.emit("prefinish"),at(Ye,Qe)})}function it(Ye,Qe){!Qe.prefinished&&!Qe.finalCalled&&(typeof Ye._final=="function"?(Qe.pendingcb++,Qe.finalCalled=!0,ee.nextTick(We,Ye,Qe)):(Qe.prefinished=!0,Ye.emit("prefinish")))}function at(Ye,Qe){var st=Me(Qe);return st&&(it(Ye,Qe),Qe.pendingcb===0&&(Qe.finished=!0,Ye.emit("finish"))),st}function $e(Ye,Qe,st){Qe.ending=!0,at(Ye,Qe),st&&(Qe.finished?ee.nextTick(st):Ye.once("finish",st)),Qe.ended=!0,Ye.writable=!1}function Je(Ye,Qe,st){var ot=Ye.entry;for(Ye.entry=null;ot;){var mt=ot.callback;Qe.pendingcb--,mt(st),ot=ot.next}Qe.corkedRequestsFree?Qe.corkedRequestsFree.next=Ye:Qe.corkedRequestsFree=Ye}Object.defineProperty(ge.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ye){this._writableState&&(this._writableState.destroyed=Ye)}}),ge.prototype.destroy=ye.destroy,ge.prototype._undestroy=ye.undestroy,ge.prototype._destroy=function(Ye,Qe){this.end(),Qe(Ye)}}).call(this)}).call(this,a("_process"),typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},a("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(a,he,de){"use strict";function te(se,z){if(!(se instanceof z))throw new TypeError("Cannot call a class as a function")}var oe=a("safe-buffer").Buffer,ne=a("util");function ee(se,z,x){se.copy(z,x)}he.exports=function(){function se(){te(this,se),this.head=null,this.tail=null,this.length=0}return se.prototype.push=function(x){var b={data:x,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length},se.prototype.unshift=function(x){var b={data:x,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length},se.prototype.shift=function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}},se.prototype.clear=function(){this.head=this.tail=null,this.length=0},se.prototype.join=function(x){if(this.length===0)return"";for(var b=this.head,E=""+b.data;b=b.next;)E+=x+b.data;return E},se.prototype.concat=function(x){if(this.length===0)return oe.alloc(0);if(this.length===1)return this.head.data;for(var b=oe.allocUnsafe(x>>>0),E=this.head,re=0;E;)ee(E.data,b,re),re+=E.data.length,E=E.next;return b},se}(),ne&&ne.inspect&&ne.inspect.custom&&(he.exports.prototype[ne.inspect.custom]=function(){var se=ne.inspect({length:this.length});return this.constructor.name+" "+se})},{"safe-buffer":396,util:89}],392:[function(a,he,de){"use strict";var te=a("process-nextick-args");function oe(se,z){var x=this,b=this._readableState&&this._readableState.destroyed,E=this._writableState&&this._writableState.destroyed;return b||E?(z?z(se):se&&(!this._writableState||!this._writableState.errorEmitted)&&te.nextTick(ee,this,se),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(se||null,function(re){!z&&re?(te.nextTick(ee,x,re),x._writableState&&(x._writableState.errorEmitted=!0)):z&&z(re)}),this)}function ne(){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 ee(se,z){se.emit("error",z)}he.exports={destroy:oe,undestroy:ne}},{"process-nextick-args":380}],393:[function(a,he,de){he.exports=a("events").EventEmitter},{events:344}],394:[function(a,he,de){de=he.exports=a("./lib/_stream_readable.js"),de.Stream=de,de.Readable=de,de.Writable=a("./lib/_stream_writable.js"),de.Duplex=a("./lib/_stream_duplex.js"),de.Transform=a("./lib/_stream_transform.js"),de.PassThrough=a("./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(a,he,de){var te=function(oe){"use strict";var ne=Object.prototype,ee=ne.hasOwnProperty,se,z=typeof Symbol=="function"?Symbol:{},x=z.iterator||"@@iterator",b=z.asyncIterator||"@@asyncIterator",E=z.toStringTag||"@@toStringTag";function re(it,at,$e){return Object.defineProperty(it,at,{value:$e,enumerable:!0,configurable:!0,writable:!0}),it[at]}try{re({},"")}catch(it){re=function(at,$e,Je){return at[$e]=Je}}function ae(it,at,$e,Je){var Ye=at&&at.prototype instanceof we?at:we,Qe=Object.create(Ye.prototype),st=new tt(Je||[]);return Qe._invoke=Pe(it,$e,st),Qe}oe.wrap=ae;function le(it,at,$e){try{return{type:"normal",arg:it.call(at,$e)}}catch(Je){return{type:"throw",arg:Je}}}var fe="suspendedStart",ce="suspendedYield",ue="executing",ye="completed",Se={};function we(){}function xe(){}function ge(){}var _e={};re(_e,x,function(){return this});var be=Object.getPrototypeOf,Ae=be&&be(be(Me([])));Ae&&Ae!==ne&&ee.call(Ae,x)&&(_e=Ae);var Te=ge.prototype=we.prototype=Object.create(_e);xe.prototype=ge,re(Te,"constructor",ge),re(ge,"constructor",xe),xe.displayName=re(ge,E,"GeneratorFunction");function Le(it){["next","throw","return"].forEach(function(at){re(it,at,function($e){return this._invoke(at,$e)})})}oe.isGeneratorFunction=function(it){var at=typeof it=="function"&&it.constructor;return at?at===xe||(at.displayName||at.name)==="GeneratorFunction":!1},oe.mark=function(it){return Object.setPrototypeOf?Object.setPrototypeOf(it,ge):(it.__proto__=ge,re(it,E,"GeneratorFunction")),it.prototype=Object.create(Te),it},oe.awrap=function(it){return{__await:it}};function ke(it,at){function $e(Qe,st,ot,mt){var ft=le(it[Qe],it,st);if(ft.type==="throw")mt(ft.arg);else{var qe=ft.arg,Be=qe.value;return Be&&typeof Be=="object"&&ee.call(Be,"__await")?at.resolve(Be.__await).then(function(lt){$e("next",lt,ot,mt)},function(lt){$e("throw",lt,ot,mt)}):at.resolve(Be).then(function(lt){qe.value=lt,ot(qe)},function(lt){return $e("throw",lt,ot,mt)})}}var Je;function Ye(Qe,st){function ot(){return new at(function(mt,ft){$e(Qe,st,mt,ft)})}return Je=Je?Je.then(ot,ot):ot()}this._invoke=Ye}Le(ke.prototype),re(ke.prototype,b,function(){return this}),oe.AsyncIterator=ke,oe.async=function(it,at,$e,Je,Ye){Ye===void 0&&(Ye=Promise);var Qe=new ke(ae(it,at,$e,Je),Ye);return oe.isGeneratorFunction(at)?Qe:Qe.next().then(function(st){return st.done?st.value:Qe.next()})};function Pe(it,at,$e){var Je=fe;return function(Qe,st){if(Je===ue)throw new Error("Generator is already running");if(Je===ye){if(Qe==="throw")throw st;return We()}for($e.method=Qe,$e.arg=st;;){var ot=$e.delegate;if(ot){var mt=Oe(ot,$e);if(mt){if(mt===Se)continue;return mt}}if($e.method==="next")$e.sent=$e._sent=$e.arg;else if($e.method==="throw"){if(Je===fe)throw Je=ye,$e.arg;$e.dispatchException($e.arg)}else $e.method==="return"&&$e.abrupt("return",$e.arg);Je=ue;var ft=le(it,at,$e);if(ft.type==="normal"){if(Je=$e.done?ye:ce,ft.arg===Se)continue;return{value:ft.arg,done:$e.done}}else ft.type==="throw"&&(Je=ye,$e.method="throw",$e.arg=ft.arg)}}}function Oe(it,at){var $e=it.iterator[at.method];if($e===se){if(at.delegate=null,at.method==="throw"){if(it.iterator.return&&(at.method="return",at.arg=se,Oe(it,at),at.method==="throw"))return Se;at.method="throw",at.arg=new TypeError("The iterator does not provide a 'throw' method")}return Se}var Je=le($e,it.iterator,at.arg);if(Je.type==="throw")return at.method="throw",at.arg=Je.arg,at.delegate=null,Se;var Ye=Je.arg;if(!Ye)return at.method="throw",at.arg=new TypeError("iterator result is not an object"),at.delegate=null,Se;if(Ye.done)at[it.resultName]=Ye.value,at.next=it.nextLoc,at.method!=="return"&&(at.method="next",at.arg=se);else return Ye;return at.delegate=null,Se}Le(Te),re(Te,E,"Generator"),re(Te,x,function(){return this}),re(Te,"toString",function(){return"[object Generator]"});function ze(it){var at={tryLoc:it[0]};1 in it&&(at.catchLoc=it[1]),2 in it&&(at.finallyLoc=it[2],at.afterLoc=it[3]),this.tryEntries.push(at)}function Ge(it){var at=it.completion||{};at.type="normal",delete at.arg,it.completion=at}function tt(it){this.tryEntries=[{tryLoc:"root"}],it.forEach(ze,this),this.reset(!0)}oe.keys=function(it){var at=[];for(var $e in it)at.push($e);return at.reverse(),function Je(){for(;at.length;){var Ye=at.pop();if(Ye in it)return Je.value=Ye,Je.done=!1,Je}return Je.done=!0,Je}};function Me(it){if(it){var at=it[x];if(at)return at.call(it);if(typeof it.next=="function")return it;if(!isNaN(it.length)){var $e=-1,Je=function Ye(){for(;++$e<it.length;)if(ee.call(it,$e))return Ye.value=it[$e],Ye.done=!1,Ye;return Ye.value=se,Ye.done=!0,Ye};return Je.next=Je}}return{next:We}}oe.values=Me;function We(){return{value:se,done:!0}}return tt.prototype={constructor:tt,reset:function(it){if(this.prev=0,this.next=0,this.sent=this._sent=se,this.done=!1,this.delegate=null,this.method="next",this.arg=se,this.tryEntries.forEach(Ge),!it)for(var at in this)at.charAt(0)==="t"&&ee.call(this,at)&&!isNaN(+at.slice(1))&&(this[at]=se)},stop:function(){this.done=!0;var it=this.tryEntries[0],at=it.completion;if(at.type==="throw")throw at.arg;return this.rval},dispatchException:function(it){if(this.done)throw it;var at=this;function $e(mt,ft){return Qe.type="throw",Qe.arg=it,at.next=mt,ft&&(at.method="next",at.arg=se),!!ft}for(var Je=this.tryEntries.length-1;Je>=0;--Je){var Ye=this.tryEntries[Je],Qe=Ye.completion;if(Ye.tryLoc==="root")return $e("end");if(Ye.tryLoc<=this.prev){var st=ee.call(Ye,"catchLoc"),ot=ee.call(Ye,"finallyLoc");if(st&&ot){if(this.prev<Ye.catchLoc)return $e(Ye.catchLoc,!0);if(this.prev<Ye.finallyLoc)return $e(Ye.finallyLoc)}else if(st){if(this.prev<Ye.catchLoc)return $e(Ye.catchLoc,!0)}else if(ot){if(this.prev<Ye.finallyLoc)return $e(Ye.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(it,at){for(var $e=this.tryEntries.length-1;$e>=0;--$e){var Je=this.tryEntries[$e];if(Je.tryLoc<=this.prev&&ee.call(Je,"finallyLoc")&&this.prev<Je.finallyLoc){var Ye=Je;break}}Ye&&(it==="break"||it==="continue")&&Ye.tryLoc<=at&&at<=Ye.finallyLoc&&(Ye=null);var Qe=Ye?Ye.completion:{};return Qe.type=it,Qe.arg=at,Ye?(this.method="next",this.next=Ye.finallyLoc,Se):this.complete(Qe)},complete:function(it,at){if(it.type==="throw")throw it.arg;return it.type==="break"||it.type==="continue"?this.next=it.arg:it.type==="return"?(this.rval=this.arg=it.arg,this.method="return",this.next="end"):it.type==="normal"&&at&&(this.next=at),Se},finish:function(it){for(var at=this.tryEntries.length-1;at>=0;--at){var $e=this.tryEntries[at];if($e.finallyLoc===it)return this.complete($e.completion,$e.afterLoc),Ge($e),Se}},catch:function(it){for(var at=this.tryEntries.length-1;at>=0;--at){var $e=this.tryEntries[at];if($e.tryLoc===it){var Je=$e.completion;if(Je.type==="throw"){var Ye=Je.arg;Ge($e)}return Ye}}throw new Error("illegal catch attempt")},delegateYield:function(it,at,$e){return this.delegate={iterator:Me(it),resultName:at,nextLoc:$e},this.method==="next"&&(this.arg=se),Se}},oe}(typeof he=="object"?he.exports:{});try{regeneratorRuntime=te}catch(oe){typeof globalThis=="object"?globalThis.regeneratorRuntime=te:Function("r","regeneratorRuntime = r")(te)}},{}],396:[function(a,he,de){var te=a("buffer"),oe=te.Buffer;function ne(se,z){for(var x in se)z[x]=se[x]}oe.from&&oe.alloc&&oe.allocUnsafe&&oe.allocUnsafeSlow?he.exports=te:(ne(te,de),de.Buffer=ee);function ee(se,z,x){return oe(se,z,x)}ne(oe,ee),ee.from=function(se,z,x){if(typeof se=="number")throw new TypeError("Argument must not be a number");return oe(se,z,x)},ee.alloc=function(se,z,x){if(typeof se!="number")throw new TypeError("Argument must be a number");var b=oe(se);return z!==void 0?typeof x=="string"?b.fill(z,x):b.fill(z):b.fill(0),b},ee.allocUnsafe=function(se){if(typeof se!="number")throw new TypeError("Argument must be a number");return oe(se)},ee.allocUnsafeSlow=function(se){if(typeof se!="number")throw new TypeError("Argument must be a number");return te.SlowBuffer(se)}},{buffer:90}],397:[function(a,he,de){(function(te){(function(){(function(oe){oe.parser=function(qe,Be){return new ee(qe,Be)},oe.SAXParser=ee,oe.SAXStream=ae,oe.createStream=re,oe.MAX_BUFFER_LENGTH=64*1024;var ne=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];oe.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function ee(qe,Be){if(!(this instanceof ee))return new ee(qe,Be);var lt=this;z(lt),lt.q=lt.c="",lt.bufferCheckPosition=oe.MAX_BUFFER_LENGTH,lt.opt=Be||{},lt.opt.lowercase=lt.opt.lowercase||lt.opt.lowercasetags,lt.looseCase=lt.opt.lowercase?"toLowerCase":"toUpperCase",lt.tags=[],lt.closed=lt.closedRoot=lt.sawRoot=!1,lt.tag=lt.error=null,lt.strict=!!qe,lt.noscript=!!(qe||lt.opt.noscript),lt.state=ke.BEGIN,lt.strictEntities=lt.opt.strictEntities,lt.ENTITIES=lt.strictEntities?Object.create(oe.XML_ENTITIES):Object.create(oe.ENTITIES),lt.attribList=[],lt.opt.xmlns&&(lt.ns=Object.create(ye)),lt.trackPosition=lt.opt.position!==!1,lt.trackPosition&&(lt.position=lt.line=lt.column=0),Oe(lt,"onready")}Object.create||(Object.create=function(qe){function Be(){}Be.prototype=qe;var lt=new Be;return lt}),Object.keys||(Object.keys=function(qe){var Be=[];for(var lt in qe)qe.hasOwnProperty(lt)&&Be.push(lt);return Be});function se(qe){for(var Be=Math.max(oe.MAX_BUFFER_LENGTH,10),lt=0,Ne=0,rt=ne.length;Ne<rt;Ne++){var gt=qe[ne[Ne]].length;if(gt>Be)switch(ne[Ne]){case"textNode":Ge(qe);break;case"cdata":ze(qe,"oncdata",qe.cdata),qe.cdata="";break;case"script":ze(qe,"onscript",qe.script),qe.script="";break;default:Me(qe,"Max buffer length exceeded: "+ne[Ne])}lt=Math.max(lt,gt)}var yt=oe.MAX_BUFFER_LENGTH-lt;qe.bufferCheckPosition=yt+qe.position}function z(qe){for(var Be=0,lt=ne.length;Be<lt;Be++)qe[ne[Be]]=""}function x(qe){Ge(qe),qe.cdata!==""&&(ze(qe,"oncdata",qe.cdata),qe.cdata=""),qe.script!==""&&(ze(qe,"onscript",qe.script),qe.script="")}ee.prototype={end:function(){We(this)},write:ft,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){x(this)}};var b;try{b=a("stream").Stream}catch(qe){b=function(){}}var E=oe.EVENTS.filter(function(qe){return qe!=="error"&&qe!=="end"});function re(qe,Be){return new ae(qe,Be)}function ae(qe,Be){if(!(this instanceof ae))return new ae(qe,Be);b.apply(this),this._parser=new ee(qe,Be),this.writable=!0,this.readable=!0;var lt=this;this._parser.onend=function(){lt.emit("end")},this._parser.onerror=function(Ne){lt.emit("error",Ne),lt._parser.error=null},this._decoder=null,E.forEach(function(Ne){Object.defineProperty(lt,"on"+Ne,{get:function(){return lt._parser["on"+Ne]},set:function(rt){if(!rt)return lt.removeAllListeners(Ne),lt._parser["on"+Ne]=rt,rt;lt.on(Ne,rt)},enumerable:!0,configurable:!1})})}ae.prototype=Object.create(b.prototype,{constructor:{value:ae}}),ae.prototype.write=function(qe){if(typeof te=="function"&&typeof te.isBuffer=="function"&&te.isBuffer(qe)){if(!this._decoder){var Be=a("string_decoder").StringDecoder;this._decoder=new Be("utf8")}qe=this._decoder.write(qe)}return this._parser.write(qe.toString()),this.emit("data",qe),!0},ae.prototype.end=function(qe){return qe&&qe.length&&this.write(qe),this._parser.end(),!0},ae.prototype.on=function(qe,Be){var lt=this;return!lt._parser["on"+qe]&&E.indexOf(qe)!==-1&&(lt._parser["on"+qe]=function(){var Ne=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Ne.splice(0,0,qe),lt.emit.apply(lt,Ne)}),b.prototype.on.call(lt,qe,Be)};var le="[CDATA[",fe="DOCTYPE",ce="http://www.w3.org/XML/1998/namespace",ue="http://www.w3.org/2000/xmlns/",ye={xml:ce,xmlns:ue},Se=/[:_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]/,we=/[:_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-]/,xe=/[#:_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]/,ge=/[#:_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 _e(qe){return qe===" "||qe===`
`||qe==="\r"||qe===" "}function be(qe){return qe==='"'||qe==="'"}function Ae(qe){return qe===">"||_e(qe)}function Te(qe,Be){return qe.test(Be)}function Le(qe,Be){return!Te(qe,Be)}var ke=0;oe.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++},oe.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},oe.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(oe.ENTITIES).forEach(function(qe){var Be=oe.ENTITIES[qe],lt=typeof Be=="number"?String.fromCharCode(Be):Be;oe.ENTITIES[qe]=lt});for(var Pe in oe.STATE)oe.STATE[oe.STATE[Pe]]=Pe;ke=oe.STATE;function Oe(qe,Be,lt){qe[Be]&&qe[Be](lt)}function ze(qe,Be,lt){qe.textNode&&Ge(qe),Oe(qe,Be,lt)}function Ge(qe){qe.textNode=tt(qe.opt,qe.textNode),qe.textNode&&Oe(qe,"ontext",qe.textNode),qe.textNode=""}function tt(qe,Be){return qe.trim&&(Be=Be.trim()),qe.normalize&&(Be=Be.replace(/\s+/g," ")),Be}function Me(qe,Be){return Ge(qe),qe.trackPosition&&(Be+=`
Line: `+qe.line+`
Column: `+qe.column+`
Char: `+qe.c),Be=new Error(Be),qe.error=Be,Oe(qe,"onerror",Be),qe}function We(qe){return qe.sawRoot&&!qe.closedRoot&&it(qe,"Unclosed root tag"),qe.state!==ke.BEGIN&&qe.state!==ke.BEGIN_WHITESPACE&&qe.state!==ke.TEXT&&Me(qe,"Unexpected end"),Ge(qe),qe.c="",qe.closed=!0,Oe(qe,"onend"),ee.call(qe,qe.strict,qe.opt),qe}function it(qe,Be){if(typeof qe!="object"||!(qe instanceof ee))throw new Error("bad call to strictFail");qe.strict&&Me(qe,Be)}function at(qe){qe.strict||(qe.tagName=qe.tagName[qe.looseCase]());var Be=qe.tags[qe.tags.length-1]||qe,lt=qe.tag={name:qe.tagName,attributes:{}};qe.opt.xmlns&&(lt.ns=Be.ns),qe.attribList.length=0,ze(qe,"onopentagstart",lt)}function $e(qe,Be){var lt=qe.indexOf(":"),Ne=lt<0?["",qe]:qe.split(":"),rt=Ne[0],gt=Ne[1];return Be&&qe==="xmlns"&&(rt="xmlns",gt=""),{prefix:rt,local:gt}}function Je(qe){if(qe.strict||(qe.attribName=qe.attribName[qe.looseCase]()),qe.attribList.indexOf(qe.attribName)!==-1||qe.tag.attributes.hasOwnProperty(qe.attribName)){qe.attribName=qe.attribValue="";return}if(qe.opt.xmlns){var Be=$e(qe.attribName,!0),lt=Be.prefix,Ne=Be.local;if(lt==="xmlns")if(Ne==="xml"&&qe.attribValue!==ce)it(qe,"xml: prefix must be bound to "+ce+`
Actual: `+qe.attribValue);else if(Ne==="xmlns"&&qe.attribValue!==ue)it(qe,"xmlns: prefix must be bound to "+ue+`
Actual: `+qe.attribValue);else{var rt=qe.tag,gt=qe.tags[qe.tags.length-1]||qe;rt.ns===gt.ns&&(rt.ns=Object.create(gt.ns)),rt.ns[Ne]=qe.attribValue}qe.attribList.push([qe.attribName,qe.attribValue])}else qe.tag.attributes[qe.attribName]=qe.attribValue,ze(qe,"onattribute",{name:qe.attribName,value:qe.attribValue});qe.attribName=qe.attribValue=""}function Ye(qe,Be){if(qe.opt.xmlns){var lt=qe.tag,Ne=$e(qe.tagName);lt.prefix=Ne.prefix,lt.local=Ne.local,lt.uri=lt.ns[Ne.prefix]||"",lt.prefix&&!lt.uri&&(it(qe,"Unbound namespace prefix: "+JSON.stringify(qe.tagName)),lt.uri=Ne.prefix);var rt=qe.tags[qe.tags.length-1]||qe;lt.ns&&rt.ns!==lt.ns&&Object.keys(lt.ns).forEach(function(Xe){ze(qe,"onopennamespace",{prefix:Xe,uri:lt.ns[Xe]})});for(var gt=0,yt=qe.attribList.length;gt<yt;gt++){var dt=qe.attribList[gt],Ve=dt[0],He=dt[1],Ze=$e(Ve,!0),et=Ze.prefix,Ie=Ze.local,je=et===""?"":lt.ns[et]||"",De={name:Ve,value:He,prefix:et,local:Ie,uri:je};et&&et!=="xmlns"&&!je&&(it(qe,"Unbound namespace prefix: "+JSON.stringify(et)),De.uri=et),qe.tag.attributes[Ve]=De,ze(qe,"onattribute",De)}qe.attribList.length=0}qe.tag.isSelfClosing=!!Be,qe.sawRoot=!0,qe.tags.push(qe.tag),ze(qe,"onopentag",qe.tag),Be||(!qe.noscript&&qe.tagName.toLowerCase()==="script"?qe.state=ke.SCRIPT:qe.state=ke.TEXT,qe.tag=null,qe.tagName=""),qe.attribName=qe.attribValue="",qe.attribList.length=0}function Qe(qe){if(!qe.tagName){it(qe,"Weird empty close tag."),qe.textNode+="</>",qe.state=ke.TEXT;return}if(qe.script){if(qe.tagName!=="script"){qe.script+="</"+qe.tagName+">",qe.tagName="",qe.state=ke.SCRIPT;return}ze(qe,"onscript",qe.script),qe.script=""}var Be=qe.tags.length,lt=qe.tagName;qe.strict||(lt=lt[qe.looseCase]());for(var Ne=lt;Be--;){var rt=qe.tags[Be];if(rt.name!==Ne)it(qe,"Unexpected close tag");else break}if(Be<0){it(qe,"Unmatched closing tag: "+qe.tagName),qe.textNode+="</"+qe.tagName+">",qe.state=ke.TEXT;return}qe.tagName=lt;for(var gt=qe.tags.length;gt-- >Be;){var yt=qe.tag=qe.tags.pop();qe.tagName=qe.tag.name,ze(qe,"onclosetag",qe.tagName);var dt={};for(var Ve in yt.ns)dt[Ve]=yt.ns[Ve];var He=qe.tags[qe.tags.length-1]||qe;qe.opt.xmlns&&yt.ns!==He.ns&&Object.keys(yt.ns).forEach(function(Ze){var et=yt.ns[Ze];ze(qe,"onclosenamespace",{prefix:Ze,uri:et})})}Be===0&&(qe.closedRoot=!0),qe.tagName=qe.attribValue=qe.attribName="",qe.attribList.length=0,qe.state=ke.TEXT}function st(qe){var Be=qe.entity,lt=Be.toLowerCase(),Ne,rt="";return qe.ENTITIES[Be]?qe.ENTITIES[Be]:qe.ENTITIES[lt]?qe.ENTITIES[lt]:(Be=lt,Be.charAt(0)==="#"&&(Be.charAt(1)==="x"?(Be=Be.slice(2),Ne=parseInt(Be,16),rt=Ne.toString(16)):(Be=Be.slice(1),Ne=parseInt(Be,10),rt=Ne.toString(10))),Be=Be.replace(/^0+/,""),isNaN(Ne)||rt.toLowerCase()!==Be?(it(qe,"Invalid character entity"),"&"+qe.entity+";"):String.fromCodePoint(Ne))}function ot(qe,Be){Be==="<"?(qe.state=ke.OPEN_WAKA,qe.startTagPosition=qe.position):_e(Be)||(it(qe,"Non-whitespace before first tag."),qe.textNode=Be,qe.state=ke.TEXT)}function mt(qe,Be){var lt="";return Be<qe.length&&(lt=qe.charAt(Be)),lt}function ft(qe){var Be=this;if(this.error)throw this.error;if(Be.closed)return Me(Be,"Cannot write after close. Assign an onready handler.");if(qe===null)return We(Be);typeof qe=="object"&&(qe=qe.toString());for(var lt=0,Ne="";Ne=mt(qe,lt++),Be.c=Ne,!!Ne;)switch(Be.trackPosition&&(Be.position++,Ne===`
`?(Be.line++,Be.column=0):Be.column++),Be.state){case ke.BEGIN:if(Be.state=ke.BEGIN_WHITESPACE,Ne==="\uFEFF")continue;ot(Be,Ne);continue;case ke.BEGIN_WHITESPACE:ot(Be,Ne);continue;case ke.TEXT:if(Be.sawRoot&&!Be.closedRoot){for(var rt=lt-1;Ne&&Ne!=="<"&&Ne!=="&";)Ne=mt(qe,lt++),Ne&&Be.trackPosition&&(Be.position++,Ne===`
`?(Be.line++,Be.column=0):Be.column++);Be.textNode+=qe.substring(rt,lt-1)}Ne==="<"&&!(Be.sawRoot&&Be.closedRoot&&!Be.strict)?(Be.state=ke.OPEN_WAKA,Be.startTagPosition=Be.position):(!_e(Ne)&&(!Be.sawRoot||Be.closedRoot)&&it(Be,"Text data outside of root node."),Ne==="&"?Be.state=ke.TEXT_ENTITY:Be.textNode+=Ne);continue;case ke.SCRIPT:Ne==="<"?Be.state=ke.SCRIPT_ENDING:Be.script+=Ne;continue;case ke.SCRIPT_ENDING:Ne==="/"?Be.state=ke.CLOSE_TAG:(Be.script+="<"+Ne,Be.state=ke.SCRIPT);continue;case ke.OPEN_WAKA:if(Ne==="!")Be.state=ke.SGML_DECL,Be.sgmlDecl="";else if(!_e(Ne))if(Te(Se,Ne))Be.state=ke.OPEN_TAG,Be.tagName=Ne;else if(Ne==="/")Be.state=ke.CLOSE_TAG,Be.tagName="";else if(Ne==="?")Be.state=ke.PROC_INST,Be.procInstName=Be.procInstBody="";else{if(it(Be,"Unencoded <"),Be.startTagPosition+1<Be.position){var gt=Be.position-Be.startTagPosition;Ne=new Array(gt).join(" ")+Ne}Be.textNode+="<"+Ne,Be.state=ke.TEXT}continue;case ke.SGML_DECL:(Be.sgmlDecl+Ne).toUpperCase()===le?(ze(Be,"onopencdata"),Be.state=ke.CDATA,Be.sgmlDecl="",Be.cdata=""):Be.sgmlDecl+Ne==="--"?(Be.state=ke.COMMENT,Be.comment="",Be.sgmlDecl=""):(Be.sgmlDecl+Ne).toUpperCase()===fe?(Be.state=ke.DOCTYPE,(Be.doctype||Be.sawRoot)&&it(Be,"Inappropriately located doctype declaration"),Be.doctype="",Be.sgmlDecl=""):Ne===">"?(ze(Be,"onsgmldeclaration",Be.sgmlDecl),Be.sgmlDecl="",Be.state=ke.TEXT):(be(Ne)&&(Be.state=ke.SGML_DECL_QUOTED),Be.sgmlDecl+=Ne);continue;case ke.SGML_DECL_QUOTED:Ne===Be.q&&(Be.state=ke.SGML_DECL,Be.q=""),Be.sgmlDecl+=Ne;continue;case ke.DOCTYPE:Ne===">"?(Be.state=ke.TEXT,ze(Be,"ondoctype",Be.doctype),Be.doctype=!0):(Be.doctype+=Ne,Ne==="["?Be.state=ke.DOCTYPE_DTD:be(Ne)&&(Be.state=ke.DOCTYPE_QUOTED,Be.q=Ne));continue;case ke.DOCTYPE_QUOTED:Be.doctype+=Ne,Ne===Be.q&&(Be.q="",Be.state=ke.DOCTYPE);continue;case ke.DOCTYPE_DTD:Be.doctype+=Ne,Ne==="]"?Be.state=ke.DOCTYPE:be(Ne)&&(Be.state=ke.DOCTYPE_DTD_QUOTED,Be.q=Ne);continue;case ke.DOCTYPE_DTD_QUOTED:Be.doctype+=Ne,Ne===Be.q&&(Be.state=ke.DOCTYPE_DTD,Be.q="");continue;case ke.COMMENT:Ne==="-"?Be.state=ke.COMMENT_ENDING:Be.comment+=Ne;continue;case ke.COMMENT_ENDING:Ne==="-"?(Be.state=ke.COMMENT_ENDED,Be.comment=tt(Be.opt,Be.comment),Be.comment&&ze(Be,"oncomment",Be.comment),Be.comment=""):(Be.comment+="-"+Ne,Be.state=ke.COMMENT);continue;case ke.COMMENT_ENDED:Ne!==">"?(it(Be,"Malformed comment"),Be.comment+="--"+Ne,Be.state=ke.COMMENT):Be.state=ke.TEXT;continue;case ke.CDATA:Ne==="]"?Be.state=ke.CDATA_ENDING:Be.cdata+=Ne;continue;case ke.CDATA_ENDING:Ne==="]"?Be.state=ke.CDATA_ENDING_2:(Be.cdata+="]"+Ne,Be.state=ke.CDATA);continue;case ke.CDATA_ENDING_2:Ne===">"?(Be.cdata&&ze(Be,"oncdata",Be.cdata),ze(Be,"onclosecdata"),Be.cdata="",Be.state=ke.TEXT):Ne==="]"?Be.cdata+="]":(Be.cdata+="]]"+Ne,Be.state=ke.CDATA);continue;case ke.PROC_INST:Ne==="?"?Be.state=ke.PROC_INST_ENDING:_e(Ne)?Be.state=ke.PROC_INST_BODY:Be.procInstName+=Ne;continue;case ke.PROC_INST_BODY:if(!Be.procInstBody&&_e(Ne))continue;Ne==="?"?Be.state=ke.PROC_INST_ENDING:Be.procInstBody+=Ne;continue;case ke.PROC_INST_ENDING:Ne===">"?(ze(Be,"onprocessinginstruction",{name:Be.procInstName,body:Be.procInstBody}),Be.procInstName=Be.procInstBody="",Be.state=ke.TEXT):(Be.procInstBody+="?"+Ne,Be.state=ke.PROC_INST_BODY);continue;case ke.OPEN_TAG:Te(we,Ne)?Be.tagName+=Ne:(at(Be),Ne===">"?Ye(Be):Ne==="/"?Be.state=ke.OPEN_TAG_SLASH:(_e(Ne)||it(Be,"Invalid character in tag name"),Be.state=ke.ATTRIB));continue;case ke.OPEN_TAG_SLASH:Ne===">"?(Ye(Be,!0),Qe(Be)):(it(Be,"Forward-slash in opening tag not followed by >"),Be.state=ke.ATTRIB);continue;case ke.ATTRIB:if(_e(Ne))continue;Ne===">"?Ye(Be):Ne==="/"?Be.state=ke.OPEN_TAG_SLASH:Te(Se,Ne)?(Be.attribName=Ne,Be.attribValue="",Be.state=ke.ATTRIB_NAME):it(Be,"Invalid attribute name");continue;case ke.ATTRIB_NAME:Ne==="="?Be.state=ke.ATTRIB_VALUE:Ne===">"?(it(Be,"Attribute without value"),Be.attribValue=Be.attribName,Je(Be),Ye(Be)):_e(Ne)?Be.state=ke.ATTRIB_NAME_SAW_WHITE:Te(we,Ne)?Be.attribName+=Ne:it(Be,"Invalid attribute name");continue;case ke.ATTRIB_NAME_SAW_WHITE:if(Ne==="=")Be.state=ke.ATTRIB_VALUE;else{if(_e(Ne))continue;it(Be,"Attribute without value"),Be.tag.attributes[Be.attribName]="",Be.attribValue="",ze(Be,"onattribute",{name:Be.attribName,value:""}),Be.attribName="",Ne===">"?Ye(Be):Te(Se,Ne)?(Be.attribName=Ne,Be.state=ke.ATTRIB_NAME):(it(Be,"Invalid attribute name"),Be.state=ke.ATTRIB)}continue;case ke.ATTRIB_VALUE:if(_e(Ne))continue;be(Ne)?(Be.q=Ne,Be.state=ke.ATTRIB_VALUE_QUOTED):(it(Be,"Unquoted attribute value"),Be.state=ke.ATTRIB_VALUE_UNQUOTED,Be.attribValue=Ne);continue;case ke.ATTRIB_VALUE_QUOTED:if(Ne!==Be.q){Ne==="&"?Be.state=ke.ATTRIB_VALUE_ENTITY_Q:Be.attribValue+=Ne;continue}Je(Be),Be.q="",Be.state=ke.ATTRIB_VALUE_CLOSED;continue;case ke.ATTRIB_VALUE_CLOSED:_e(Ne)?Be.state=ke.ATTRIB:Ne===">"?Ye(Be):Ne==="/"?Be.state=ke.OPEN_TAG_SLASH:Te(Se,Ne)?(it(Be,"No whitespace between attributes"),Be.attribName=Ne,Be.attribValue="",Be.state=ke.ATTRIB_NAME):it(Be,"Invalid attribute name");continue;case ke.ATTRIB_VALUE_UNQUOTED:if(!Ae(Ne)){Ne==="&"?Be.state=ke.ATTRIB_VALUE_ENTITY_U:Be.attribValue+=Ne;continue}Je(Be),Ne===">"?Ye(Be):Be.state=ke.ATTRIB;continue;case ke.CLOSE_TAG:if(Be.tagName)Ne===">"?Qe(Be):Te(we,Ne)?Be.tagName+=Ne:Be.script?(Be.script+="</"+Be.tagName,Be.tagName="",Be.state=ke.SCRIPT):(_e(Ne)||it(Be,"Invalid tagname in closing tag"),Be.state=ke.CLOSE_TAG_SAW_WHITE);else{if(_e(Ne))continue;Le(Se,Ne)?Be.script?(Be.script+="</"+Ne,Be.state=ke.SCRIPT):it(Be,"Invalid tagname in closing tag."):Be.tagName=Ne}continue;case ke.CLOSE_TAG_SAW_WHITE:if(_e(Ne))continue;Ne===">"?Qe(Be):it(Be,"Invalid characters in closing tag");continue;case ke.TEXT_ENTITY:case ke.ATTRIB_VALUE_ENTITY_Q:case ke.ATTRIB_VALUE_ENTITY_U:var yt,dt;switch(Be.state){case ke.TEXT_ENTITY:yt=ke.TEXT,dt="textNode";break;case ke.ATTRIB_VALUE_ENTITY_Q:yt=ke.ATTRIB_VALUE_QUOTED,dt="attribValue";break;case ke.ATTRIB_VALUE_ENTITY_U:yt=ke.ATTRIB_VALUE_UNQUOTED,dt="attribValue";break}Ne===";"?(Be[dt]+=st(Be),Be.entity="",Be.state=yt):Te(Be.entity.length?ge:xe,Ne)?Be.entity+=Ne:(it(Be,"Invalid character in entity name"),Be[dt]+="&"+Be.entity+Ne,Be.entity="",Be.state=yt);continue;default:throw new Error(Be,"Unknown state: "+Be.state)}return Be.position>=Be.bufferCheckPosition&&se(Be),Be}String.fromCodePoint||function(){var qe=String.fromCharCode,Be=Math.floor,lt=function(){var Ne=16384,rt=[],gt,yt,dt=-1,Ve=arguments.length;if(!Ve)return"";for(var He="";++dt<Ve;){var Ze=Number(arguments[dt]);if(!isFinite(Ze)||Ze<0||Ze>1114111||Be(Ze)!==Ze)throw RangeError("Invalid code point: "+Ze);Ze<=65535?rt.push(Ze):(Ze-=65536,gt=(Ze>>10)+55296,yt=Ze%1024+56320,rt.push(gt,yt)),(dt+1===Ve||rt.length>Ne)&&(He+=qe.apply(null,rt),rt.length=0)}return He};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:lt,configurable:!0,writable:!0}):String.fromCodePoint=lt}()})(typeof de=="undefined"?this.sax={}:de)}).call(this)}).call(this,a("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(a,he,de){he.exports=ne;var te=a("events").EventEmitter,oe=a("inherits");oe(ne,te),ne.Readable=a("readable-stream/lib/_stream_readable.js"),ne.Writable=a("readable-stream/lib/_stream_writable.js"),ne.Duplex=a("readable-stream/lib/_stream_duplex.js"),ne.Transform=a("readable-stream/lib/_stream_transform.js"),ne.PassThrough=a("readable-stream/lib/_stream_passthrough.js"),ne.finished=a("readable-stream/lib/internal/streams/end-of-stream.js"),ne.pipeline=a("readable-stream/lib/internal/streams/pipeline.js"),ne.Stream=ne;function ne(){te.call(this)}ne.prototype.pipe=function(ee,se){var z=this;function x(ce){ee.writable&&ee.write(ce)===!1&&z.pause&&z.pause()}z.on("data",x);function b(){z.readable&&z.resume&&z.resume()}ee.on("drain",b),!ee._isStdio&&(!se||se.end!==!1)&&(z.on("end",re),z.on("close",ae));var E=!1;function re(){E||(E=!0,ee.end())}function ae(){E||(E=!0,typeof ee.destroy=="function"&&ee.destroy())}function le(ce){if(fe(),te.listenerCount(this,"error")===0)throw ce}z.on("error",le),ee.on("error",le);function fe(){z.removeListener("data",x),ee.removeListener("drain",b),z.removeListener("end",re),z.removeListener("close",ae),z.removeListener("error",le),ee.removeListener("error",le),z.removeListener("end",fe),z.removeListener("close",fe),ee.removeListener("close",fe)}return z.on("end",fe),z.on("close",fe),ee.on("close",fe),ee.emit("pipe",z),ee}},{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(a,he,de){"use strict";function te(b,E){b.prototype=Object.create(E.prototype),b.prototype.constructor=b,b.__proto__=E}var oe={};function ne(b,E,re){re||(re=Error);function ae(fe,ce,ue){return typeof E=="string"?E:E(fe,ce,ue)}var le=function(fe){te(ce,fe);function ce(ue,ye,Se){return fe.call(this,ae(ue,ye,Se))||this}return ce}(re);le.prototype.name=re.name,le.prototype.code=b,oe[b]=le}function ee(b,E){if(Array.isArray(b)){var re=b.length;return b=b.map(function(ae){return String(ae)}),re>2?"one of ".concat(E," ").concat(b.slice(0,re-1).join(", "),", or ")+b[re-1]:re===2?"one of ".concat(E," ").concat(b[0]," or ").concat(b[1]):"of ".concat(E," ").concat(b[0])}else return"of ".concat(E," ").concat(String(b))}function se(b,E,re){return b.substr(!re||re<0?0:+re,E.length)===E}function z(b,E,re){return(re===void 0||re>b.length)&&(re=b.length),b.substring(re-E.length,re)===E}function x(b,E,re){return typeof re!="number"&&(re=0),re+E.length>b.length?!1:b.indexOf(E,re)!==-1}ne("ERR_INVALID_OPT_VALUE",function(b,E){return'The value "'+E+'" is invalid for option "'+b+'"'},TypeError),ne("ERR_INVALID_ARG_TYPE",function(b,E,re){var ae;typeof E=="string"&&se(E,"not ")?(ae="must not be",E=E.replace(/^not /,"")):ae="must be";var le;if(z(b," argument"))le="The ".concat(b," ").concat(ae," ").concat(ee(E,"type"));else{var fe=x(b,".")?"property":"argument";le='The "'.concat(b,'" ').concat(fe," ").concat(ae," ").concat(ee(E,"type"))}return le+=". Received type ".concat(typeof re),le},TypeError),ne("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ne("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),ne("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ne("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),ne("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ne("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ne("ERR_STREAM_WRITE_AFTER_END","write after end"),ne("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ne("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),ne("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),he.exports.codes=oe},{}],400:[function(a,he,de){(function(te){(function(){"use strict";var oe=Object.keys||function(ae){var le=[];for(var fe in ae)le.push(fe);return le};he.exports=b;var ne=a("./_stream_readable"),ee=a("./_stream_writable");a("inherits")(b,ne);for(var se=oe(ee.prototype),z=0;z<se.length;z++){var x=se[z];b.prototype[x]||(b.prototype[x]=ee.prototype[x])}function b(ae){if(!(this instanceof b))return new b(ae);ne.call(this,ae),ee.call(this,ae),this.allowHalfOpen=!0,ae&&(ae.readable===!1&&(this.readable=!1),ae.writable===!1&&(this.writable=!1),ae.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",E)))}Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(b.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(b.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function E(){this._writableState.ended||te.nextTick(re,this)}function re(ae){ae.end()}Object.defineProperty(b.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(le){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=le,this._writableState.destroyed=le)}})}).call(this)}).call(this,a("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(a,he,de){"use strict";he.exports=oe;var te=a("./_stream_transform");a("inherits")(oe,te);function oe(ne){if(!(this instanceof oe))return new oe(ne);te.call(this,ne)}oe.prototype._transform=function(ne,ee,se){se(null,ne)}},{"./_stream_transform":403,inherits:364}],402:[function(a,he,de){(function(te,oe){(function(){"use strict";he.exports=ze;var ne;ze.ReadableState=Oe;var ee=a("events").EventEmitter,se=function(Ve,He){return Ve.listeners(He).length},z=a("./internal/streams/stream"),x=a("buffer").Buffer,b=(typeof oe!="undefined"?oe:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function E(dt){return x.from(dt)}function re(dt){return x.isBuffer(dt)||dt instanceof b}var ae=a("util"),le;ae&&ae.debuglog?le=ae.debuglog("stream"):le=function(){};var fe=a("./internal/streams/buffer_list"),ce=a("./internal/streams/destroy"),ue=a("./internal/streams/state"),ye=ue.getHighWaterMark,Se=a("../errors").codes,we=Se.ERR_INVALID_ARG_TYPE,xe=Se.ERR_STREAM_PUSH_AFTER_EOF,ge=Se.ERR_METHOD_NOT_IMPLEMENTED,_e=Se.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,be,Ae,Te;a("inherits")(ze,z);var Le=ce.errorOrDestroy,ke=["error","close","destroy","pause","resume"];function Pe(dt,Ve,He){if(typeof dt.prependListener=="function")return dt.prependListener(Ve,He);!dt._events||!dt._events[Ve]?dt.on(Ve,He):Array.isArray(dt._events[Ve])?dt._events[Ve].unshift(He):dt._events[Ve]=[He,dt._events[Ve]]}function Oe(dt,Ve,He){ne=ne||a("./_stream_duplex"),dt=dt||{},typeof He!="boolean"&&(He=Ve instanceof ne),this.objectMode=!!dt.objectMode,He&&(this.objectMode=this.objectMode||!!dt.readableObjectMode),this.highWaterMark=ye(this,dt,"readableHighWaterMark",He),this.buffer=new fe,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=dt.emitClose!==!1,this.autoDestroy=!!dt.autoDestroy,this.destroyed=!1,this.defaultEncoding=dt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,dt.encoding&&(be||(be=a("string_decoder/").StringDecoder),this.decoder=new be(dt.encoding),this.encoding=dt.encoding)}function ze(dt){if(ne=ne||a("./_stream_duplex"),!(this instanceof ze))return new ze(dt);var Ve=this instanceof ne;this._readableState=new Oe(dt,this,Ve),this.readable=!0,dt&&(typeof dt.read=="function"&&(this._read=dt.read),typeof dt.destroy=="function"&&(this._destroy=dt.destroy)),z.call(this)}Object.defineProperty(ze.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ve){this._readableState&&(this._readableState.destroyed=Ve)}}),ze.prototype.destroy=ce.destroy,ze.prototype._undestroy=ce.undestroy,ze.prototype._destroy=function(dt,Ve){Ve(dt)},ze.prototype.push=function(dt,Ve){var He=this._readableState,Ze;return He.objectMode?Ze=!0:typeof dt=="string"&&(Ve=Ve||He.defaultEncoding,Ve!==He.encoding&&(dt=x.from(dt,Ve),Ve=""),Ze=!0),Ge(this,dt,Ve,!1,Ze)},ze.prototype.unshift=function(dt){return Ge(this,dt,null,!0,!1)};function Ge(dt,Ve,He,Ze,et){le("readableAddChunk",Ve);var Ie=dt._readableState;if(Ve===null)Ie.reading=!1,$e(dt,Ie);else{var je;if(et||(je=Me(Ie,Ve)),je)Le(dt,je);else if(Ie.objectMode||Ve&&Ve.length>0)if(typeof Ve!="string"&&!Ie.objectMode&&Object.getPrototypeOf(Ve)!==x.prototype&&(Ve=E(Ve)),Ze)Ie.endEmitted?Le(dt,new _e):tt(dt,Ie,Ve,!0);else if(Ie.ended)Le(dt,new xe);else{if(Ie.destroyed)return!1;Ie.reading=!1,Ie.decoder&&!He?(Ve=Ie.decoder.write(Ve),Ie.objectMode||Ve.length!==0?tt(dt,Ie,Ve,!1):Qe(dt,Ie)):tt(dt,Ie,Ve,!1)}else Ze||(Ie.reading=!1,Qe(dt,Ie))}return!Ie.ended&&(Ie.length<Ie.highWaterMark||Ie.length===0)}function tt(dt,Ve,He,Ze){Ve.flowing&&Ve.length===0&&!Ve.sync?(Ve.awaitDrain=0,dt.emit("data",He)):(Ve.length+=Ve.objectMode?1:He.length,Ze?Ve.buffer.unshift(He):Ve.buffer.push(He),Ve.needReadable&&Je(dt)),Qe(dt,Ve)}function Me(dt,Ve){var He;return!re(Ve)&&typeof Ve!="string"&&Ve!==void 0&&!dt.objectMode&&(He=new we("chunk",["string","Buffer","Uint8Array"],Ve)),He}ze.prototype.isPaused=function(){return this._readableState.flowing===!1},ze.prototype.setEncoding=function(dt){be||(be=a("string_decoder/").StringDecoder);var Ve=new be(dt);this._readableState.decoder=Ve,this._readableState.encoding=this._readableState.decoder.encoding;for(var He=this._readableState.buffer.head,Ze="";He!==null;)Ze+=Ve.write(He.data),He=He.next;return this._readableState.buffer.clear(),Ze!==""&&this._readableState.buffer.push(Ze),this._readableState.length=Ze.length,this};var We=1073741824;function it(dt){return dt>=We?dt=We:(dt--,dt|=dt>>>1,dt|=dt>>>2,dt|=dt>>>4,dt|=dt>>>8,dt|=dt>>>16,dt++),dt}function at(dt,Ve){return dt<=0||Ve.length===0&&Ve.ended?0:Ve.objectMode?1:dt!==dt?Ve.flowing&&Ve.length?Ve.buffer.head.data.length:Ve.length:(dt>Ve.highWaterMark&&(Ve.highWaterMark=it(dt)),dt<=Ve.length?dt:Ve.ended?Ve.length:(Ve.needReadable=!0,0))}ze.prototype.read=function(dt){le("read",dt),dt=parseInt(dt,10);var Ve=this._readableState,He=dt;if(dt!==0&&(Ve.emittedReadable=!1),dt===0&&Ve.needReadable&&((Ve.highWaterMark!==0?Ve.length>=Ve.highWaterMark:Ve.length>0)||Ve.ended))return le("read: emitReadable",Ve.length,Ve.ended),Ve.length===0&&Ve.ended?rt(this):Je(this),null;if(dt=at(dt,Ve),dt===0&&Ve.ended)return Ve.length===0&&rt(this),null;var Ze=Ve.needReadable;le("need readable",Ze),(Ve.length===0||Ve.length-dt<Ve.highWaterMark)&&(Ze=!0,le("length less than watermark",Ze)),Ve.ended||Ve.reading?(Ze=!1,le("reading or ended",Ze)):Ze&&(le("do read"),Ve.reading=!0,Ve.sync=!0,Ve.length===0&&(Ve.needReadable=!0),this._read(Ve.highWaterMark),Ve.sync=!1,Ve.reading||(dt=at(He,Ve)));var et;return dt>0?et=Ne(dt,Ve):et=null,et===null?(Ve.needReadable=Ve.length<=Ve.highWaterMark,dt=0):(Ve.length-=dt,Ve.awaitDrain=0),Ve.length===0&&(Ve.ended||(Ve.needReadable=!0),He!==dt&&Ve.ended&&rt(this)),et!==null&&this.emit("data",et),et};function $e(dt,Ve){if(le("onEofChunk"),!Ve.ended){if(Ve.decoder){var He=Ve.decoder.end();He&&He.length&&(Ve.buffer.push(He),Ve.length+=Ve.objectMode?1:He.length)}Ve.ended=!0,Ve.sync?Je(dt):(Ve.needReadable=!1,Ve.emittedReadable||(Ve.emittedReadable=!0,Ye(dt)))}}function Je(dt){var Ve=dt._readableState;le("emitReadable",Ve.needReadable,Ve.emittedReadable),Ve.needReadable=!1,Ve.emittedReadable||(le("emitReadable",Ve.flowing),Ve.emittedReadable=!0,te.nextTick(Ye,dt))}function Ye(dt){var Ve=dt._readableState;le("emitReadable_",Ve.destroyed,Ve.length,Ve.ended),!Ve.destroyed&&(Ve.length||Ve.ended)&&(dt.emit("readable"),Ve.emittedReadable=!1),Ve.needReadable=!Ve.flowing&&!Ve.ended&&Ve.length<=Ve.highWaterMark,lt(dt)}function Qe(dt,Ve){Ve.readingMore||(Ve.readingMore=!0,te.nextTick(st,dt,Ve))}function st(dt,Ve){for(;!Ve.reading&&!Ve.ended&&(Ve.length<Ve.highWaterMark||Ve.flowing&&Ve.length===0);){var He=Ve.length;if(le("maybeReadMore read 0"),dt.read(0),He===Ve.length)break}Ve.readingMore=!1}ze.prototype._read=function(dt){Le(this,new ge("_read()"))},ze.prototype.pipe=function(dt,Ve){var He=this,Ze=this._readableState;switch(Ze.pipesCount){case 0:Ze.pipes=dt;break;case 1:Ze.pipes=[Ze.pipes,dt];break;default:Ze.pipes.push(dt);break}Ze.pipesCount+=1,le("pipe count=%d opts=%j",Ze.pipesCount,Ve);var et=(!Ve||Ve.end!==!1)&&dt!==te.stdout&&dt!==te.stderr,Ie=et?De:xt;Ze.endEmitted?te.nextTick(Ie):He.once("end",Ie),dt.on("unpipe",je);function je(Nt,Rt){le("onunpipe"),Nt===He&&Rt&&Rt.hasUnpiped===!1&&(Rt.hasUnpiped=!0,Fe())}function De(){le("onend"),dt.end()}var Xe=ot(He);dt.on("drain",Xe);var ct=!1;function Fe(){le("cleanup"),dt.removeListener("close",Ot),dt.removeListener("finish",Tt),dt.removeListener("drain",Xe),dt.removeListener("error",wt),dt.removeListener("unpipe",je),He.removeListener("end",De),He.removeListener("end",xt),He.removeListener("data",vt),ct=!0,Ze.awaitDrain&&(!dt._writableState||dt._writableState.needDrain)&&Xe()}He.on("data",vt);function vt(Nt){le("ondata");var Rt=dt.write(Nt);le("dest.write",Rt),Rt===!1&&((Ze.pipesCount===1&&Ze.pipes===dt||Ze.pipesCount>1&&yt(Ze.pipes,dt)!==-1)&&!ct&&(le("false write response, pause",Ze.awaitDrain),Ze.awaitDrain++),He.pause())}function wt(Nt){le("onerror",Nt),xt(),dt.removeListener("error",wt),se(dt,"error")===0&&Le(dt,Nt)}Pe(dt,"error",wt);function Ot(){dt.removeListener("finish",Tt),xt()}dt.once("close",Ot);function Tt(){le("onfinish"),dt.removeListener("close",Ot),xt()}dt.once("finish",Tt);function xt(){le("unpipe"),He.unpipe(dt)}return dt.emit("pipe",He),Ze.flowing||(le("pipe resume"),He.resume()),dt};function ot(dt){return function(){var He=dt._readableState;le("pipeOnDrain",He.awaitDrain),He.awaitDrain&&He.awaitDrain--,He.awaitDrain===0&&se(dt,"data")&&(He.flowing=!0,lt(dt))}}ze.prototype.unpipe=function(dt){var Ve=this._readableState,He={hasUnpiped:!1};if(Ve.pipesCount===0)return this;if(Ve.pipesCount===1)return dt&&dt!==Ve.pipes?this:(dt||(dt=Ve.pipes),Ve.pipes=null,Ve.pipesCount=0,Ve.flowing=!1,dt&&dt.emit("unpipe",this,He),this);if(!dt){var Ze=Ve.pipes,et=Ve.pipesCount;Ve.pipes=null,Ve.pipesCount=0,Ve.flowing=!1;for(var Ie=0;Ie<et;Ie++)Ze[Ie].emit("unpipe",this,{hasUnpiped:!1});return this}var je=yt(Ve.pipes,dt);return je===-1?this:(Ve.pipes.splice(je,1),Ve.pipesCount-=1,Ve.pipesCount===1&&(Ve.pipes=Ve.pipes[0]),dt.emit("unpipe",this,He),this)},ze.prototype.on=function(dt,Ve){var He=z.prototype.on.call(this,dt,Ve),Ze=this._readableState;return dt==="data"?(Ze.readableListening=this.listenerCount("readable")>0,Ze.flowing!==!1&&this.resume()):dt==="readable"&&!Ze.endEmitted&&!Ze.readableListening&&(Ze.readableListening=Ze.needReadable=!0,Ze.flowing=!1,Ze.emittedReadable=!1,le("on readable",Ze.length,Ze.reading),Ze.length?Je(this):Ze.reading||te.nextTick(ft,this)),He},ze.prototype.addListener=ze.prototype.on,ze.prototype.removeListener=function(dt,Ve){var He=z.prototype.removeListener.call(this,dt,Ve);return dt==="readable"&&te.nextTick(mt,this),He},ze.prototype.removeAllListeners=function(dt){var Ve=z.prototype.removeAllListeners.apply(this,arguments);return(dt==="readable"||dt===void 0)&&te.nextTick(mt,this),Ve};function mt(dt){var Ve=dt._readableState;Ve.readableListening=dt.listenerCount("readable")>0,Ve.resumeScheduled&&!Ve.paused?Ve.flowing=!0:dt.listenerCount("data")>0&&dt.resume()}function ft(dt){le("readable nexttick read 0"),dt.read(0)}ze.prototype.resume=function(){var dt=this._readableState;return dt.flowing||(le("resume"),dt.flowing=!dt.readableListening,qe(this,dt)),dt.paused=!1,this};function qe(dt,Ve){Ve.resumeScheduled||(Ve.resumeScheduled=!0,te.nextTick(Be,dt,Ve))}function Be(dt,Ve){le("resume",Ve.reading),Ve.reading||dt.read(0),Ve.resumeScheduled=!1,dt.emit("resume"),lt(dt),Ve.flowing&&!Ve.reading&&dt.read(0)}ze.prototype.pause=function(){return le("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(le("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function lt(dt){var Ve=dt._readableState;for(le("flow",Ve.flowing);Ve.flowing&&dt.read()!==null;);}ze.prototype.wrap=function(dt){var Ve=this,He=this._readableState,Ze=!1;dt.on("end",function(){if(le("wrapped end"),He.decoder&&!He.ended){var je=He.decoder.end();je&&je.length&&Ve.push(je)}Ve.push(null)}),dt.on("data",function(je){if(le("wrapped data"),He.decoder&&(je=He.decoder.write(je)),!(He.objectMode&&je==null)&&!(!He.objectMode&&(!je||!je.length))){var De=Ve.push(je);De||(Ze=!0,dt.pause())}});for(var et in dt)this[et]===void 0&&typeof dt[et]=="function"&&(this[et]=function(De){return function(){return dt[De].apply(dt,arguments)}}(et));for(var Ie=0;Ie<ke.length;Ie++)dt.on(ke[Ie],this.emit.bind(this,ke[Ie]));return this._read=function(je){le("wrapped _read",je),Ze&&(Ze=!1,dt.resume())},this},typeof Symbol=="function"&&(ze.prototype[Symbol.asyncIterator]=function(){return Ae===void 0&&(Ae=a("./internal/streams/async_iterator")),Ae(this)}),Object.defineProperty(ze.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(ze.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(ze.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ve){this._readableState&&(this._readableState.flowing=Ve)}}),ze._fromList=Ne,Object.defineProperty(ze.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ne(dt,Ve){if(Ve.length===0)return null;var He;return Ve.objectMode?He=Ve.buffer.shift():!dt||dt>=Ve.length?(Ve.decoder?He=Ve.buffer.join(""):Ve.buffer.length===1?He=Ve.buffer.first():He=Ve.buffer.concat(Ve.length),Ve.buffer.clear()):He=Ve.buffer.consume(dt,Ve.decoder),He}function rt(dt){var Ve=dt._readableState;le("endReadable",Ve.endEmitted),Ve.endEmitted||(Ve.ended=!0,te.nextTick(gt,Ve,dt))}function gt(dt,Ve){if(le("endReadableNT",dt.endEmitted,dt.length),!dt.endEmitted&&dt.length===0&&(dt.endEmitted=!0,Ve.readable=!1,Ve.emit("end"),dt.autoDestroy)){var He=Ve._writableState;(!He||He.autoDestroy&&He.finished)&&Ve.destroy()}}typeof Symbol=="function"&&(ze.from=function(dt,Ve){return Te===void 0&&(Te=a("./internal/streams/from")),Te(ze,dt,Ve)});function yt(dt,Ve){for(var He=0,Ze=dt.length;He<Ze;He++)if(dt[He]===Ve)return He;return-1}}).call(this)}).call(this,a("_process"),typeof pt!="undefined"?pt: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(a,he,de){"use strict";he.exports=b;var te=a("../errors").codes,oe=te.ERR_METHOD_NOT_IMPLEMENTED,ne=te.ERR_MULTIPLE_CALLBACK,ee=te.ERR_TRANSFORM_ALREADY_TRANSFORMING,se=te.ERR_TRANSFORM_WITH_LENGTH_0,z=a("./_stream_duplex");a("inherits")(b,z);function x(ae,le){var fe=this._transformState;fe.transforming=!1;var ce=fe.writecb;if(ce===null)return this.emit("error",new ne);fe.writechunk=null,fe.writecb=null,le!=null&&this.push(le),ce(ae);var ue=this._readableState;ue.reading=!1,(ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}function b(ae){if(!(this instanceof b))return new b(ae);z.call(this,ae),this._transformState={afterTransform:x.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ae&&(typeof ae.transform=="function"&&(this._transform=ae.transform),typeof ae.flush=="function"&&(this._flush=ae.flush)),this.on("prefinish",E)}function E(){var ae=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(le,fe){re(ae,le,fe)}):re(this,null,null)}b.prototype.push=function(ae,le){return this._transformState.needTransform=!1,z.prototype.push.call(this,ae,le)},b.prototype._transform=function(ae,le,fe){fe(new oe("_transform()"))},b.prototype._write=function(ae,le,fe){var ce=this._transformState;if(ce.writecb=fe,ce.writechunk=ae,ce.writeencoding=le,!ce.transforming){var ue=this._readableState;(ce.needTransform||ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}},b.prototype._read=function(ae){var le=this._transformState;le.writechunk!==null&&!le.transforming?(le.transforming=!0,this._transform(le.writechunk,le.writeencoding,le.afterTransform)):le.needTransform=!0},b.prototype._destroy=function(ae,le){z.prototype._destroy.call(this,ae,function(fe){le(fe)})};function re(ae,le,fe){if(le)return ae.emit("error",le);if(fe!=null&&ae.push(fe),ae._writableState.length)throw new se;if(ae._transformState.transforming)throw new ee;return ae.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(a,he,de){(function(te,oe){(function(){"use strict";he.exports=Oe;function ne(lt,Ne,rt){this.chunk=lt,this.encoding=Ne,this.callback=rt,this.next=null}function ee(lt){var Ne=this;this.next=null,this.entry=null,this.finish=function(){Be(Ne,lt)}}var se;Oe.WritableState=ke;var z={deprecate:a("util-deprecate")},x=a("./internal/streams/stream"),b=a("buffer").Buffer,E=(typeof oe!="undefined"?oe:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function re(lt){return b.from(lt)}function ae(lt){return b.isBuffer(lt)||lt instanceof E}var le=a("./internal/streams/destroy"),fe=a("./internal/streams/state"),ce=fe.getHighWaterMark,ue=a("../errors").codes,ye=ue.ERR_INVALID_ARG_TYPE,Se=ue.ERR_METHOD_NOT_IMPLEMENTED,we=ue.ERR_MULTIPLE_CALLBACK,xe=ue.ERR_STREAM_CANNOT_PIPE,ge=ue.ERR_STREAM_DESTROYED,_e=ue.ERR_STREAM_NULL_VALUES,be=ue.ERR_STREAM_WRITE_AFTER_END,Ae=ue.ERR_UNKNOWN_ENCODING,Te=le.errorOrDestroy;a("inherits")(Oe,x);function Le(){}function ke(lt,Ne,rt){se=se||a("./_stream_duplex"),lt=lt||{},typeof rt!="boolean"&&(rt=Ne instanceof se),this.objectMode=!!lt.objectMode,rt&&(this.objectMode=this.objectMode||!!lt.writableObjectMode),this.highWaterMark=ce(this,lt,"writableHighWaterMark",rt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var gt=lt.decodeStrings===!1;this.decodeStrings=!gt,this.defaultEncoding=lt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(yt){$e(Ne,yt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=lt.emitClose!==!1,this.autoDestroy=!!lt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ee(this)}ke.prototype.getBuffer=function(){for(var Ne=this.bufferedRequest,rt=[];Ne;)rt.push(Ne),Ne=Ne.next;return rt},function(){try{Object.defineProperty(ke.prototype,"buffer",{get:z.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(lt){}}();var Pe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Pe=Function.prototype[Symbol.hasInstance],Object.defineProperty(Oe,Symbol.hasInstance,{value:function(Ne){return Pe.call(this,Ne)?!0:this!==Oe?!1:Ne&&Ne._writableState instanceof ke}})):Pe=function(Ne){return Ne instanceof this};function Oe(lt){se=se||a("./_stream_duplex");var Ne=this instanceof se;if(!Ne&&!Pe.call(Oe,this))return new Oe(lt);this._writableState=new ke(lt,this,Ne),this.writable=!0,lt&&(typeof lt.write=="function"&&(this._write=lt.write),typeof lt.writev=="function"&&(this._writev=lt.writev),typeof lt.destroy=="function"&&(this._destroy=lt.destroy),typeof lt.final=="function"&&(this._final=lt.final)),x.call(this)}Oe.prototype.pipe=function(){Te(this,new xe)};function ze(lt,Ne){var rt=new be;Te(lt,rt),te.nextTick(Ne,rt)}function Ge(lt,Ne,rt,gt){var yt;return rt===null?yt=new _e:typeof rt!="string"&&!Ne.objectMode&&(yt=new ye("chunk",["string","Buffer"],rt)),yt?(Te(lt,yt),te.nextTick(gt,yt),!1):!0}Oe.prototype.write=function(lt,Ne,rt){var gt=this._writableState,yt=!1,dt=!gt.objectMode&&ae(lt);return dt&&!b.isBuffer(lt)&&(lt=re(lt)),typeof Ne=="function"&&(rt=Ne,Ne=null),dt?Ne="buffer":Ne||(Ne=gt.defaultEncoding),typeof rt!="function"&&(rt=Le),gt.ending?ze(this,rt):(dt||Ge(this,gt,lt,rt))&&(gt.pendingcb++,yt=Me(this,gt,dt,lt,Ne,rt)),yt},Oe.prototype.cork=function(){this._writableState.corked++},Oe.prototype.uncork=function(){var lt=this._writableState;lt.corked&&(lt.corked--,!lt.writing&&!lt.corked&&!lt.bufferProcessing&&lt.bufferedRequest&&Qe(this,lt))},Oe.prototype.setDefaultEncoding=function(Ne){if(typeof Ne=="string"&&(Ne=Ne.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ne+"").toLowerCase())>-1))throw new Ae(Ne);return this._writableState.defaultEncoding=Ne,this},Object.defineProperty(Oe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function tt(lt,Ne,rt){return!lt.objectMode&&lt.decodeStrings!==!1&&typeof Ne=="string"&&(Ne=b.from(Ne,rt)),Ne}Object.defineProperty(Oe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Me(lt,Ne,rt,gt,yt,dt){if(!rt){var Ve=tt(Ne,gt,yt);gt!==Ve&&(rt=!0,yt="buffer",gt=Ve)}var He=Ne.objectMode?1:gt.length;Ne.length+=He;var Ze=Ne.length<Ne.highWaterMark;if(Ze||(Ne.needDrain=!0),Ne.writing||Ne.corked){var et=Ne.lastBufferedRequest;Ne.lastBufferedRequest={chunk:gt,encoding:yt,isBuf:rt,callback:dt,next:null},et?et.next=Ne.lastBufferedRequest:Ne.bufferedRequest=Ne.lastBufferedRequest,Ne.bufferedRequestCount+=1}else We(lt,Ne,!1,He,gt,yt,dt);return Ze}function We(lt,Ne,rt,gt,yt,dt,Ve){Ne.writelen=gt,Ne.writecb=Ve,Ne.writing=!0,Ne.sync=!0,Ne.destroyed?Ne.onwrite(new ge("write")):rt?lt._writev(yt,Ne.onwrite):lt._write(yt,dt,Ne.onwrite),Ne.sync=!1}function it(lt,Ne,rt,gt,yt){--Ne.pendingcb,rt?(te.nextTick(yt,gt),te.nextTick(ft,lt,Ne),lt._writableState.errorEmitted=!0,Te(lt,gt)):(yt(gt),lt._writableState.errorEmitted=!0,Te(lt,gt),ft(lt,Ne))}function at(lt){lt.writing=!1,lt.writecb=null,lt.length-=lt.writelen,lt.writelen=0}function $e(lt,Ne){var rt=lt._writableState,gt=rt.sync,yt=rt.writecb;if(typeof yt!="function")throw new we;if(at(rt),Ne)it(lt,rt,gt,Ne,yt);else{var dt=st(rt)||lt.destroyed;!dt&&!rt.corked&&!rt.bufferProcessing&&rt.bufferedRequest&&Qe(lt,rt),gt?te.nextTick(Je,lt,rt,dt,yt):Je(lt,rt,dt,yt)}}function Je(lt,Ne,rt,gt){rt||Ye(lt,Ne),Ne.pendingcb--,gt(),ft(lt,Ne)}function Ye(lt,Ne){Ne.length===0&&Ne.needDrain&&(Ne.needDrain=!1,lt.emit("drain"))}function Qe(lt,Ne){Ne.bufferProcessing=!0;var rt=Ne.bufferedRequest;if(lt._writev&&rt&&rt.next){var gt=Ne.bufferedRequestCount,yt=new Array(gt),dt=Ne.corkedRequestsFree;dt.entry=rt;for(var Ve=0,He=!0;rt;)yt[Ve]=rt,rt.isBuf||(He=!1),rt=rt.next,Ve+=1;yt.allBuffers=He,We(lt,Ne,!0,Ne.length,yt,"",dt.finish),Ne.pendingcb++,Ne.lastBufferedRequest=null,dt.next?(Ne.corkedRequestsFree=dt.next,dt.next=null):Ne.corkedRequestsFree=new ee(Ne),Ne.bufferedRequestCount=0}else{for(;rt;){var Ze=rt.chunk,et=rt.encoding,Ie=rt.callback,je=Ne.objectMode?1:Ze.length;if(We(lt,Ne,!1,je,Ze,et,Ie),rt=rt.next,Ne.bufferedRequestCount--,Ne.writing)break}rt===null&&(Ne.lastBufferedRequest=null)}Ne.bufferedRequest=rt,Ne.bufferProcessing=!1}Oe.prototype._write=function(lt,Ne,rt){rt(new Se("_write()"))},Oe.prototype._writev=null,Oe.prototype.end=function(lt,Ne,rt){var gt=this._writableState;return typeof lt=="function"?(rt=lt,lt=null,Ne=null):typeof Ne=="function"&&(rt=Ne,Ne=null),lt!=null&&this.write(lt,Ne),gt.corked&&(gt.corked=1,this.uncork()),gt.ending||qe(this,gt,rt),this},Object.defineProperty(Oe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function st(lt){return lt.ending&&lt.length===0&&lt.bufferedRequest===null&&!lt.finished&&!lt.writing}function ot(lt,Ne){lt._final(function(rt){Ne.pendingcb--,rt&&Te(lt,rt),Ne.prefinished=!0,lt.emit("prefinish"),ft(lt,Ne)})}function mt(lt,Ne){!Ne.prefinished&&!Ne.finalCalled&&(typeof lt._final=="function"&&!Ne.destroyed?(Ne.pendingcb++,Ne.finalCalled=!0,te.nextTick(ot,lt,Ne)):(Ne.prefinished=!0,lt.emit("prefinish")))}function ft(lt,Ne){var rt=st(Ne);if(rt&&(mt(lt,Ne),Ne.pendingcb===0&&(Ne.finished=!0,lt.emit("finish"),Ne.autoDestroy))){var gt=lt._readableState;(!gt||gt.autoDestroy&&gt.endEmitted)&&lt.destroy()}return rt}function qe(lt,Ne,rt){Ne.ending=!0,ft(lt,Ne),rt&&(Ne.finished?te.nextTick(rt):lt.once("finish",rt)),Ne.ended=!0,lt.writable=!1}function Be(lt,Ne,rt){var gt=lt.entry;for(lt.entry=null;gt;){var yt=gt.callback;Ne.pendingcb--,yt(rt),gt=gt.next}Ne.corkedRequestsFree.next=lt}Object.defineProperty(Oe.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ne){this._writableState&&(this._writableState.destroyed=Ne)}}),Oe.prototype.destroy=le.destroy,Oe.prototype._undestroy=le.undestroy,Oe.prototype._destroy=function(lt,Ne){Ne(lt)}}).call(this)}).call(this,a("_process"),typeof pt!="undefined"?pt: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(a,he,de){(function(te){(function(){"use strict";var oe;function ne(_e,be,Ae){return be=ee(be),be in _e?Object.defineProperty(_e,be,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):_e[be]=Ae,_e}function ee(_e){var be=se(_e,"string");return typeof be=="symbol"?be:String(be)}function se(_e,be){if(typeof _e!="object"||_e===null)return _e;var Ae=_e[Symbol.toPrimitive];if(Ae!==void 0){var Te=Ae.call(_e,be||"default");if(typeof Te!="object")return Te;throw new TypeError("@@toPrimitive must return a primitive value.")}return(be==="string"?String:Number)(_e)}var z=a("./end-of-stream"),x=Symbol("lastResolve"),b=Symbol("lastReject"),E=Symbol("error"),re=Symbol("ended"),ae=Symbol("lastPromise"),le=Symbol("handlePromise"),fe=Symbol("stream");function ce(_e,be){return{value:_e,done:be}}function ue(_e){var be=_e[x];if(be!==null){var Ae=_e[fe].read();Ae!==null&&(_e[ae]=null,_e[x]=null,_e[b]=null,be(ce(Ae,!1)))}}function ye(_e){te.nextTick(ue,_e)}function Se(_e,be){return function(Ae,Te){_e.then(function(){if(be[re]){Ae(ce(void 0,!0));return}be[le](Ae,Te)},Te)}}var we=Object.getPrototypeOf(function(){}),xe=Object.setPrototypeOf((oe={get stream(){return this[fe]},next:function(){var be=this,Ae=this[E];if(Ae!==null)return Promise.reject(Ae);if(this[re])return Promise.resolve(ce(void 0,!0));if(this[fe].destroyed)return new Promise(function(Pe,Oe){te.nextTick(function(){be[E]?Oe(be[E]):Pe(ce(void 0,!0))})});var Te=this[ae],Le;if(Te)Le=new Promise(Se(Te,this));else{var ke=this[fe].read();if(ke!==null)return Promise.resolve(ce(ke,!1));Le=new Promise(this[le])}return this[ae]=Le,Le}},ne(oe,Symbol.asyncIterator,function(){return this}),ne(oe,"return",function(){var be=this;return new Promise(function(Ae,Te){be[fe].destroy(null,function(Le){if(Le){Te(Le);return}Ae(ce(void 0,!0))})})}),oe),we),ge=function(be){var Ae,Te=Object.create(xe,(Ae={},ne(Ae,fe,{value:be,writable:!0}),ne(Ae,x,{value:null,writable:!0}),ne(Ae,b,{value:null,writable:!0}),ne(Ae,E,{value:null,writable:!0}),ne(Ae,re,{value:be._readableState.endEmitted,writable:!0}),ne(Ae,le,{value:function(ke,Pe){var Oe=Te[fe].read();Oe?(Te[ae]=null,Te[x]=null,Te[b]=null,ke(ce(Oe,!1))):(Te[x]=ke,Te[b]=Pe)},writable:!0}),Ae));return Te[ae]=null,z(be,function(Le){if(Le&&Le.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ke=Te[b];ke!==null&&(Te[ae]=null,Te[x]=null,Te[b]=null,ke(Le)),Te[E]=Le;return}var Pe=Te[x];Pe!==null&&(Te[ae]=null,Te[x]=null,Te[b]=null,Pe(ce(void 0,!0))),Te[re]=!0}),be.on("readable",ye.bind(null,Te)),Te};he.exports=ge}).call(this)}).call(this,a("_process"))},{"./end-of-stream":408,_process:467}],406:[function(a,he,de){"use strict";function te(ue,ye){var Se=Object.keys(ue);if(Object.getOwnPropertySymbols){var we=Object.getOwnPropertySymbols(ue);ye&&(we=we.filter(function(xe){return Object.getOwnPropertyDescriptor(ue,xe).enumerable})),Se.push.apply(Se,we)}return Se}function oe(ue){for(var ye=1;ye<arguments.length;ye++){var Se=arguments[ye]!=null?arguments[ye]:{};ye%2?te(Object(Se),!0).forEach(function(we){ne(ue,we,Se[we])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(Se)):te(Object(Se)).forEach(function(we){Object.defineProperty(ue,we,Object.getOwnPropertyDescriptor(Se,we))})}return ue}function ne(ue,ye,Se){return ye=x(ye),ye in ue?Object.defineProperty(ue,ye,{value:Se,enumerable:!0,configurable:!0,writable:!0}):ue[ye]=Se,ue}function ee(ue,ye){if(!(ue instanceof ye))throw new TypeError("Cannot call a class as a function")}function se(ue,ye){for(var Se=0;Se<ye.length;Se++){var we=ye[Se];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ue,x(we.key),we)}}function z(ue,ye,Se){return ye&&se(ue.prototype,ye),Se&&se(ue,Se),Object.defineProperty(ue,"prototype",{writable:!1}),ue}function x(ue){var ye=b(ue,"string");return typeof ye=="symbol"?ye:String(ye)}function b(ue,ye){if(typeof ue!="object"||ue===null)return ue;var Se=ue[Symbol.toPrimitive];if(Se!==void 0){var we=Se.call(ue,ye||"default");if(typeof we!="object")return we;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ye==="string"?String:Number)(ue)}var E=a("buffer"),re=E.Buffer,ae=a("util"),le=ae.inspect,fe=le&&le.custom||"inspect";function ce(ue,ye,Se){re.prototype.copy.call(ue,ye,Se)}he.exports=function(){function ue(){ee(this,ue),this.head=null,this.tail=null,this.length=0}return z(ue,[{key:"push",value:function(Se){var we={data:Se,next:null};this.length>0?this.tail.next=we:this.head=we,this.tail=we,++this.length}},{key:"unshift",value:function(Se){var we={data:Se,next:this.head};this.length===0&&(this.tail=we),this.head=we,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Se=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Se}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Se){if(this.length===0)return"";for(var we=this.head,xe=""+we.data;we=we.next;)xe+=Se+we.data;return xe}},{key:"concat",value:function(Se){if(this.length===0)return re.alloc(0);for(var we=re.allocUnsafe(Se>>>0),xe=this.head,ge=0;xe;)ce(xe.data,we,ge),ge+=xe.data.length,xe=xe.next;return we}},{key:"consume",value:function(Se,we){var xe;return Se<this.head.data.length?(xe=this.head.data.slice(0,Se),this.head.data=this.head.data.slice(Se)):Se===this.head.data.length?xe=this.shift():xe=we?this._getString(Se):this._getBuffer(Se),xe}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Se){var we=this.head,xe=1,ge=we.data;for(Se-=ge.length;we=we.next;){var _e=we.data,be=Se>_e.length?_e.length:Se;if(be===_e.length?ge+=_e:ge+=_e.slice(0,Se),Se-=be,Se===0){be===_e.length?(++xe,we.next?this.head=we.next:this.head=this.tail=null):(this.head=we,we.data=_e.slice(be));break}++xe}return this.length-=xe,ge}},{key:"_getBuffer",value:function(Se){var we=re.allocUnsafe(Se),xe=this.head,ge=1;for(xe.data.copy(we),Se-=xe.data.length;xe=xe.next;){var _e=xe.data,be=Se>_e.length?_e.length:Se;if(_e.copy(we,we.length-Se,0,be),Se-=be,Se===0){be===_e.length?(++ge,xe.next?this.head=xe.next:this.head=this.tail=null):(this.head=xe,xe.data=_e.slice(be));break}++ge}return this.length-=ge,we}},{key:fe,value:function(Se,we){return le(this,oe(oe({},we),{},{depth:0,customInspect:!1}))}}]),ue}()},{buffer:90,util:89}],407:[function(a,he,de){(function(te){(function(){"use strict";function oe(b,E){var re=this,ae=this._readableState&&this._readableState.destroyed,le=this._writableState&&this._writableState.destroyed;return ae||le?(E?E(b):b&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,te.nextTick(z,this,b)):te.nextTick(z,this,b)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(b||null,function(fe){!E&&fe?re._writableState?re._writableState.errorEmitted?te.nextTick(ee,re):(re._writableState.errorEmitted=!0,te.nextTick(ne,re,fe)):te.nextTick(ne,re,fe):E?(te.nextTick(ee,re),E(fe)):te.nextTick(ee,re)}),this)}function ne(b,E){z(b,E),ee(b)}function ee(b){b._writableState&&!b._writableState.emitClose||b._readableState&&!b._readableState.emitClose||b.emit("close")}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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function z(b,E){b.emit("error",E)}function x(b,E){var re=b._readableState,ae=b._writableState;re&&re.autoDestroy||ae&&ae.autoDestroy?b.destroy(E):b.emit("error",E)}he.exports={destroy:oe,undestroy:se,errorOrDestroy:x}}).call(this)}).call(this,a("_process"))},{_process:467}],408:[function(a,he,de){"use strict";var te=a("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function oe(z){var x=!1;return function(){if(!x){x=!0;for(var b=arguments.length,E=new Array(b),re=0;re<b;re++)E[re]=arguments[re];z.apply(this,E)}}}function ne(){}function ee(z){return z.setHeader&&typeof z.abort=="function"}function se(z,x,b){if(typeof x=="function")return se(z,null,x);x||(x={}),b=oe(b||ne);var E=x.readable||x.readable!==!1&&z.readable,re=x.writable||x.writable!==!1&&z.writable,ae=function(){z.writable||fe()},le=z._writableState&&z._writableState.finished,fe=function(){re=!1,le=!0,E||b.call(z)},ce=z._readableState&&z._readableState.endEmitted,ue=function(){E=!1,ce=!0,re||b.call(z)},ye=function(ge){b.call(z,ge)},Se=function(){var ge;if(E&&!ce)return(!z._readableState||!z._readableState.ended)&&(ge=new te),b.call(z,ge);if(re&&!le)return(!z._writableState||!z._writableState.ended)&&(ge=new te),b.call(z,ge)},we=function(){z.req.on("finish",fe)};return ee(z)?(z.on("complete",fe),z.on("abort",Se),z.req?we():z.on("request",we)):re&&!z._writableState&&(z.on("end",ae),z.on("close",ae)),z.on("end",ue),z.on("finish",fe),x.error!==!1&&z.on("error",ye),z.on("close",Se),function(){z.removeListener("complete",fe),z.removeListener("abort",Se),z.removeListener("request",we),z.req&&z.req.removeListener("finish",fe),z.removeListener("end",ae),z.removeListener("close",ae),z.removeListener("finish",fe),z.removeListener("end",ue),z.removeListener("error",ye),z.removeListener("close",Se)}}he.exports=se},{"../../../errors":399}],409:[function(a,he,de){he.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(a,he,de){"use strict";var te;function oe(fe){var ce=!1;return function(){ce||(ce=!0,fe.apply(void 0,arguments))}}var ne=a("../../../errors").codes,ee=ne.ERR_MISSING_ARGS,se=ne.ERR_STREAM_DESTROYED;function z(fe){if(fe)throw fe}function x(fe){return fe.setHeader&&typeof fe.abort=="function"}function b(fe,ce,ue,ye){ye=oe(ye);var Se=!1;fe.on("close",function(){Se=!0}),te===void 0&&(te=a("./end-of-stream")),te(fe,{readable:ce,writable:ue},function(xe){if(xe)return ye(xe);Se=!0,ye()});var we=!1;return function(xe){if(!Se&&!we){if(we=!0,x(fe))return fe.abort();if(typeof fe.destroy=="function")return fe.destroy();ye(xe||new se("pipe"))}}}function E(fe){fe()}function re(fe,ce){return fe.pipe(ce)}function ae(fe){return!fe.length||typeof fe[fe.length-1]!="function"?z:fe.pop()}function le(){for(var fe=arguments.length,ce=new Array(fe),ue=0;ue<fe;ue++)ce[ue]=arguments[ue];var ye=ae(ce);if(Array.isArray(ce[0])&&(ce=ce[0]),ce.length<2)throw new ee("streams");var Se,we=ce.map(function(xe,ge){var _e=ge<ce.length-1,be=ge>0;return b(xe,_e,be,function(Ae){Se||(Se=Ae),Ae&&we.forEach(E),!_e&&(we.forEach(E),ye(Se))})});return ce.reduce(re)}he.exports=le},{"../../../errors":399,"./end-of-stream":408}],411:[function(a,he,de){"use strict";var te=a("../../../errors").codes.ERR_INVALID_OPT_VALUE;function oe(ee,se,z){return ee.highWaterMark!=null?ee.highWaterMark:se?ee[z]:null}function ne(ee,se,z,x){var b=oe(se,x,z);if(b!=null){if(!(isFinite(b)&&Math.floor(b)===b)||b<0){var E=x?z:"highWaterMark";throw new te(E,b)}return Math.floor(b)}return ee.objectMode?16:16*1024}he.exports={getHighWaterMark:ne}},{"../../../errors":399}],412:[function(a,he,de){arguments[4][393][0].apply(de,arguments)},{dup:393,events:344}],413:[function(a,he,de){"use strict";var te=a("safe-buffer").Buffer,oe=te.isEncoding||function(we){switch(we=""+we,we&&we.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 ne(we){if(!we)return"utf8";for(var xe;;)switch(we){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 we;default:if(xe)return;we=(""+we).toLowerCase(),xe=!0}}function ee(we){var xe=ne(we);if(typeof xe!="string"&&(te.isEncoding===oe||!oe(we)))throw new Error("Unknown encoding: "+we);return xe||we}de.StringDecoder=se;function se(we){this.encoding=ee(we);var xe;switch(this.encoding){case"utf16le":this.text=le,this.end=fe,xe=4;break;case"utf8":this.fillLast=E,xe=4;break;case"base64":this.text=ce,this.end=ue,xe=3;break;default:this.write=ye,this.end=Se;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=te.allocUnsafe(xe)}se.prototype.write=function(we){if(we.length===0)return"";var xe,ge;if(this.lastNeed){if(xe=this.fillLast(we),xe===void 0)return"";ge=this.lastNeed,this.lastNeed=0}else ge=0;return ge<we.length?xe?xe+this.text(we,ge):this.text(we,ge):xe||""},se.prototype.end=ae,se.prototype.text=re,se.prototype.fillLast=function(we){if(this.lastNeed<=we.length)return we.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);we.copy(this.lastChar,this.lastTotal-this.lastNeed,0,we.length),this.lastNeed-=we.length};function z(we){return we<=127?0:we>>5===6?2:we>>4===14?3:we>>3===30?4:we>>6===2?-1:-2}function x(we,xe,ge){var _e=xe.length-1;if(_e<ge)return 0;var be=z(xe[_e]);return be>=0?(be>0&&(we.lastNeed=be-1),be):--_e<ge||be===-2?0:(be=z(xe[_e]),be>=0?(be>0&&(we.lastNeed=be-2),be):--_e<ge||be===-2?0:(be=z(xe[_e]),be>=0?(be>0&&(be===2?be=0:we.lastNeed=be-3),be):0))}function b(we,xe,ge){if((xe[0]&192)!==128)return we.lastNeed=0,"\uFFFD";if(we.lastNeed>1&&xe.length>1){if((xe[1]&192)!==128)return we.lastNeed=1,"\uFFFD";if(we.lastNeed>2&&xe.length>2&&(xe[2]&192)!==128)return we.lastNeed=2,"\uFFFD"}}function E(we){var xe=this.lastTotal-this.lastNeed,ge=b(this,we,xe);if(ge!==void 0)return ge;if(this.lastNeed<=we.length)return we.copy(this.lastChar,xe,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);we.copy(this.lastChar,xe,0,we.length),this.lastNeed-=we.length}function re(we,xe){var ge=x(this,we,xe);if(!this.lastNeed)return we.toString("utf8",xe);this.lastTotal=ge;var _e=we.length-(ge-this.lastNeed);return we.copy(this.lastChar,0,_e),we.toString("utf8",xe,_e)}function ae(we){var xe=we&&we.length?this.write(we):"";return this.lastNeed?xe+"\uFFFD":xe}function le(we,xe){if((we.length-xe)%2===0){var ge=we.toString("utf16le",xe);if(ge){var _e=ge.charCodeAt(ge.length-1);if(_e>=55296&&_e<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=we[we.length-2],this.lastChar[1]=we[we.length-1],ge.slice(0,-1)}return ge}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=we[we.length-1],we.toString("utf16le",xe,we.length-1)}function fe(we){var xe=we&&we.length?this.write(we):"";if(this.lastNeed){var ge=this.lastTotal-this.lastNeed;return xe+this.lastChar.toString("utf16le",0,ge)}return xe}function ce(we,xe){var ge=(we.length-xe)%3;return ge===0?we.toString("base64",xe):(this.lastNeed=3-ge,this.lastTotal=3,ge===1?this.lastChar[0]=we[we.length-1]:(this.lastChar[0]=we[we.length-2],this.lastChar[1]=we[we.length-1]),we.toString("base64",xe,we.length-ge))}function ue(we){var xe=we&&we.length?this.write(we):"";return this.lastNeed?xe+this.lastChar.toString("base64",0,3-this.lastNeed):xe}function ye(we){return we.toString(this.encoding)}function Se(we){return we&&we.length?this.write(we):""}},{"safe-buffer":396}],414:[function(a,he,de){(function(te,oe){(function(){var ne=a("process/browser.js").nextTick,ee=Function.prototype.apply,se=Array.prototype.slice,z={},x=0;de.setTimeout=function(){return new b(ee.call(setTimeout,window,arguments),clearTimeout)},de.setInterval=function(){return new b(ee.call(setInterval,window,arguments),clearInterval)},de.clearTimeout=de.clearInterval=function(E){E.close()};function b(E,re){this._id=E,this._clearFn=re}b.prototype.unref=b.prototype.ref=function(){},b.prototype.close=function(){this._clearFn.call(window,this._id)},de.enroll=function(E,re){clearTimeout(E._idleTimeoutId),E._idleTimeout=re},de.unenroll=function(E){clearTimeout(E._idleTimeoutId),E._idleTimeout=-1},de._unrefActive=de.active=function(E){clearTimeout(E._idleTimeoutId);var re=E._idleTimeout;re>=0&&(E._idleTimeoutId=setTimeout(function(){E._onTimeout&&E._onTimeout()},re))},de.setImmediate=typeof te=="function"?te:function(E){var re=x++,ae=arguments.length<2?!1:se.call(arguments,1);return z[re]=!0,ne(function(){z[re]&&(ae?E.apply(null,ae):E.call(null),de.clearImmediate(re))}),re},de.clearImmediate=typeof oe=="function"?oe:function(E){delete z[E]}}).call(this)}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(a,he,de){var te=a("buffer").Buffer;he.exports=function(oe){if(oe instanceof Uint8Array){if(oe.byteOffset===0&&oe.byteLength===oe.buffer.byteLength)return oe.buffer;if(typeof oe.buffer.slice=="function")return oe.buffer.slice(oe.byteOffset,oe.byteOffset+oe.byteLength)}if(te.isBuffer(oe)){for(var ne=new Uint8Array(oe.length),ee=oe.length,se=0;se<ee;se++)ne[se]=oe[se];return ne.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(a,he,de){(function(te){(function(){he.exports=oe;function oe(ee,se){if(ne("noDeprecation"))return ee;var z=!1;function x(){if(!z){if(ne("throwDeprecation"))throw new Error(se);ne("traceDeprecation")?console.trace(se):console.warn(se),z=!0}return ee.apply(this,arguments)}return x}function ne(ee){try{if(!te.localStorage)return!1}catch(z){return!1}var se=te.localStorage[ee];return se==null?!1:String(se).toLowerCase()==="true"}}).call(this)}).call(this,typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(a,he,de){arguments[4][84][0].apply(de,arguments)},{dup:84}],418:[function(a,he,de){"use strict";var te=a("is-arguments"),oe=a("is-generator-function"),ne=a("which-typed-array"),ee=a("is-typed-array");function se(et){return et.call.bind(et)}var z=typeof BigInt!="undefined",x=typeof Symbol!="undefined",b=se(Object.prototype.toString),E=se(Number.prototype.valueOf),re=se(String.prototype.valueOf),ae=se(Boolean.prototype.valueOf);if(z)var le=se(BigInt.prototype.valueOf);if(x)var fe=se(Symbol.prototype.valueOf);function ce(et,Ie){if(typeof et!="object")return!1;try{return Ie(et),!0}catch(je){return!1}}de.isArgumentsObject=te,de.isGeneratorFunction=oe,de.isTypedArray=ee;function ue(et){return typeof Promise!="undefined"&&et instanceof Promise||et!==null&&typeof et=="object"&&typeof et.then=="function"&&typeof et.catch=="function"}de.isPromise=ue;function ye(et){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(et):ee(et)||Qe(et)}de.isArrayBufferView=ye;function Se(et){return ne(et)==="Uint8Array"}de.isUint8Array=Se;function we(et){return ne(et)==="Uint8ClampedArray"}de.isUint8ClampedArray=we;function xe(et){return ne(et)==="Uint16Array"}de.isUint16Array=xe;function ge(et){return ne(et)==="Uint32Array"}de.isUint32Array=ge;function _e(et){return ne(et)==="Int8Array"}de.isInt8Array=_e;function be(et){return ne(et)==="Int16Array"}de.isInt16Array=be;function Ae(et){return ne(et)==="Int32Array"}de.isInt32Array=Ae;function Te(et){return ne(et)==="Float32Array"}de.isFloat32Array=Te;function Le(et){return ne(et)==="Float64Array"}de.isFloat64Array=Le;function ke(et){return ne(et)==="BigInt64Array"}de.isBigInt64Array=ke;function Pe(et){return ne(et)==="BigUint64Array"}de.isBigUint64Array=Pe;function Oe(et){return b(et)==="[object Map]"}Oe.working=typeof Map!="undefined"&&Oe(new Map);function ze(et){return typeof Map=="undefined"?!1:Oe.working?Oe(et):et instanceof Map}de.isMap=ze;function Ge(et){return b(et)==="[object Set]"}Ge.working=typeof Set!="undefined"&&Ge(new Set);function tt(et){return typeof Set=="undefined"?!1:Ge.working?Ge(et):et instanceof Set}de.isSet=tt;function Me(et){return b(et)==="[object WeakMap]"}Me.working=typeof WeakMap!="undefined"&&Me(new WeakMap);function We(et){return typeof WeakMap=="undefined"?!1:Me.working?Me(et):et instanceof WeakMap}de.isWeakMap=We;function it(et){return b(et)==="[object WeakSet]"}it.working=typeof WeakSet!="undefined"&&it(new WeakSet);function at(et){return it(et)}de.isWeakSet=at;function $e(et){return b(et)==="[object ArrayBuffer]"}$e.working=typeof ArrayBuffer!="undefined"&&$e(new ArrayBuffer);function Je(et){return typeof ArrayBuffer=="undefined"?!1:$e.working?$e(et):et instanceof ArrayBuffer}de.isArrayBuffer=Je;function Ye(et){return b(et)==="[object DataView]"}Ye.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Ye(new DataView(new ArrayBuffer(1),0,1));function Qe(et){return typeof DataView=="undefined"?!1:Ye.working?Ye(et):et instanceof DataView}de.isDataView=Qe;var st=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function ot(et){return b(et)==="[object SharedArrayBuffer]"}function mt(et){return typeof st=="undefined"?!1:(typeof ot.working=="undefined"&&(ot.working=ot(new st)),ot.working?ot(et):et instanceof st)}de.isSharedArrayBuffer=mt;function ft(et){return b(et)==="[object AsyncFunction]"}de.isAsyncFunction=ft;function qe(et){return b(et)==="[object Map Iterator]"}de.isMapIterator=qe;function Be(et){return b(et)==="[object Set Iterator]"}de.isSetIterator=Be;function lt(et){return b(et)==="[object Generator]"}de.isGeneratorObject=lt;function Ne(et){return b(et)==="[object WebAssembly.Module]"}de.isWebAssemblyCompiledModule=Ne;function rt(et){return ce(et,E)}de.isNumberObject=rt;function gt(et){return ce(et,re)}de.isStringObject=gt;function yt(et){return ce(et,ae)}de.isBooleanObject=yt;function dt(et){return z&&ce(et,le)}de.isBigIntObject=dt;function Ve(et){return x&&ce(et,fe)}de.isSymbolObject=Ve;function He(et){return rt(et)||gt(et)||yt(et)||dt(et)||Ve(et)}de.isBoxedPrimitive=He;function Ze(et){return typeof Uint8Array!="undefined"&&(Je(et)||mt(et))}de.isAnyArrayBuffer=Ze,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(et){Object.defineProperty(de,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(a,he,de){(function(te){(function(){var oe=Object.getOwnPropertyDescriptors||function(st){for(var ot=Object.keys(st),mt={},ft=0;ft<ot.length;ft++)mt[ot[ft]]=Object.getOwnPropertyDescriptor(st,ot[ft]);return mt},ne=/%[sdj%]/g;de.format=function(Qe){if(!be(Qe)){for(var st=[],ot=0;ot<arguments.length;ot++)st.push(x(arguments[ot]));return st.join(" ")}for(var ot=1,mt=arguments,ft=mt.length,qe=String(Qe).replace(ne,function(lt){if(lt==="%%")return"%";if(ot>=ft)return lt;switch(lt){case"%s":return String(mt[ot++]);case"%d":return Number(mt[ot++]);case"%j":try{return JSON.stringify(mt[ot++])}catch(Ne){return"[Circular]"}default:return lt}}),Be=mt[ot];ot<ft;Be=mt[++ot])xe(Be)||!ke(Be)?qe+=" "+Be:qe+=" "+x(Be);return qe},de.deprecate=function(Qe,st){if(typeof te!="undefined"&&te.noDeprecation===!0)return Qe;if(typeof te=="undefined")return function(){return de.deprecate(Qe,st).apply(this,arguments)};var ot=!1;function mt(){if(!ot){if(te.throwDeprecation)throw new Error(st);te.traceDeprecation?console.trace(st):console.error(st),ot=!0}return Qe.apply(this,arguments)}return mt};var ee={},se=/^$/;if(te.env.NODE_DEBUG){var z=te.env.NODE_DEBUG;z=z.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),se=new RegExp("^"+z+"$","i")}de.debuglog=function(Qe){if(Qe=Qe.toUpperCase(),!ee[Qe])if(se.test(Qe)){var st=te.pid;ee[Qe]=function(){var ot=de.format.apply(de,arguments);console.error("%s %d: %s",Qe,st,ot)}}else ee[Qe]=function(){};return ee[Qe]};function x(Qe,st){var ot={seen:[],stylize:E};return arguments.length>=3&&(ot.depth=arguments[2]),arguments.length>=4&&(ot.colors=arguments[3]),we(st)?ot.showHidden=st:st&&de._extend(ot,st),Te(ot.showHidden)&&(ot.showHidden=!1),Te(ot.depth)&&(ot.depth=2),Te(ot.colors)&&(ot.colors=!1),Te(ot.customInspect)&&(ot.customInspect=!0),ot.colors&&(ot.stylize=b),ae(ot,Qe,ot.depth)}de.inspect=x,x.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]},x.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function b(Qe,st){var ot=x.styles[st];return ot?"\x1B["+x.colors[ot][0]+"m"+Qe+"\x1B["+x.colors[ot][1]+"m":Qe}function E(Qe,st){return Qe}function re(Qe){var st={};return Qe.forEach(function(ot,mt){st[ot]=!0}),st}function ae(Qe,st,ot){if(Qe.customInspect&&st&&ze(st.inspect)&&st.inspect!==de.inspect&&!(st.constructor&&st.constructor.prototype===st)){var mt=st.inspect(ot,Qe);return be(mt)||(mt=ae(Qe,mt,ot)),mt}var ft=le(Qe,st);if(ft)return ft;var qe=Object.keys(st),Be=re(qe);if(Qe.showHidden&&(qe=Object.getOwnPropertyNames(st)),Oe(st)&&(qe.indexOf("message")>=0||qe.indexOf("description")>=0))return fe(st);if(qe.length===0){if(ze(st)){var lt=st.name?": "+st.name:"";return Qe.stylize("[Function"+lt+"]","special")}if(Le(st))return Qe.stylize(RegExp.prototype.toString.call(st),"regexp");if(Pe(st))return Qe.stylize(Date.prototype.toString.call(st),"date");if(Oe(st))return fe(st)}var Ne="",rt=!1,gt=["{","}"];if(Se(st)&&(rt=!0,gt=["[","]"]),ze(st)){var yt=st.name?": "+st.name:"";Ne=" [Function"+yt+"]"}if(Le(st)&&(Ne=" "+RegExp.prototype.toString.call(st)),Pe(st)&&(Ne=" "+Date.prototype.toUTCString.call(st)),Oe(st)&&(Ne=" "+fe(st)),qe.length===0&&(!rt||st.length==0))return gt[0]+Ne+gt[1];if(ot<0)return Le(st)?Qe.stylize(RegExp.prototype.toString.call(st),"regexp"):Qe.stylize("[Object]","special");Qe.seen.push(st);var dt;return rt?dt=ce(Qe,st,ot,Be,qe):dt=qe.map(function(Ve){return ue(Qe,st,ot,Be,Ve,rt)}),Qe.seen.pop(),ye(dt,Ne,gt)}function le(Qe,st){if(Te(st))return Qe.stylize("undefined","undefined");if(be(st)){var ot="'"+JSON.stringify(st).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Qe.stylize(ot,"string")}if(_e(st))return Qe.stylize(""+st,"number");if(we(st))return Qe.stylize(""+st,"boolean");if(xe(st))return Qe.stylize("null","null")}function fe(Qe){return"["+Error.prototype.toString.call(Qe)+"]"}function ce(Qe,st,ot,mt,ft){for(var qe=[],Be=0,lt=st.length;Be<lt;++Be)at(st,String(Be))?qe.push(ue(Qe,st,ot,mt,String(Be),!0)):qe.push("");return ft.forEach(function(Ne){Ne.match(/^\d+$/)||qe.push(ue(Qe,st,ot,mt,Ne,!0))}),qe}function ue(Qe,st,ot,mt,ft,qe){var Be,lt,Ne;if(Ne=Object.getOwnPropertyDescriptor(st,ft)||{value:st[ft]},Ne.get?Ne.set?lt=Qe.stylize("[Getter/Setter]","special"):lt=Qe.stylize("[Getter]","special"):Ne.set&&(lt=Qe.stylize("[Setter]","special")),at(mt,ft)||(Be="["+ft+"]"),lt||(Qe.seen.indexOf(Ne.value)<0?(xe(ot)?lt=ae(Qe,Ne.value,null):lt=ae(Qe,Ne.value,ot-1),lt.indexOf(`
`)>-1&&(qe?lt=lt.split(`
`).map(function(rt){return" "+rt}).join(`
`).slice(2):lt=`
`+lt.split(`
`).map(function(rt){return" "+rt}).join(`
`))):lt=Qe.stylize("[Circular]","special")),Te(Be)){if(qe&&ft.match(/^\d+$/))return lt;Be=JSON.stringify(""+ft),Be.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Be=Be.slice(1,-1),Be=Qe.stylize(Be,"name")):(Be=Be.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Be=Qe.stylize(Be,"string"))}return Be+": "+lt}function ye(Qe,st,ot){var mt=0,ft=Qe.reduce(function(qe,Be){return mt++,Be.indexOf(`
`)>=0&&mt++,qe+Be.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ft>60?ot[0]+(st===""?"":st+`
`)+" "+Qe.join(`,
`)+" "+ot[1]:ot[0]+st+" "+Qe.join(", ")+" "+ot[1]}de.types=a("./support/types");function Se(Qe){return Array.isArray(Qe)}de.isArray=Se;function we(Qe){return typeof Qe=="boolean"}de.isBoolean=we;function xe(Qe){return Qe===null}de.isNull=xe;function ge(Qe){return Qe==null}de.isNullOrUndefined=ge;function _e(Qe){return typeof Qe=="number"}de.isNumber=_e;function be(Qe){return typeof Qe=="string"}de.isString=be;function Ae(Qe){return typeof Qe=="symbol"}de.isSymbol=Ae;function Te(Qe){return Qe===void 0}de.isUndefined=Te;function Le(Qe){return ke(Qe)&&tt(Qe)==="[object RegExp]"}de.isRegExp=Le,de.types.isRegExp=Le;function ke(Qe){return typeof Qe=="object"&&Qe!==null}de.isObject=ke;function Pe(Qe){return ke(Qe)&&tt(Qe)==="[object Date]"}de.isDate=Pe,de.types.isDate=Pe;function Oe(Qe){return ke(Qe)&&(tt(Qe)==="[object Error]"||Qe instanceof Error)}de.isError=Oe,de.types.isNativeError=Oe;function ze(Qe){return typeof Qe=="function"}de.isFunction=ze;function Ge(Qe){return Qe===null||typeof Qe=="boolean"||typeof Qe=="number"||typeof Qe=="string"||typeof Qe=="symbol"||typeof Qe=="undefined"}de.isPrimitive=Ge,de.isBuffer=a("./support/isBuffer");function tt(Qe){return Object.prototype.toString.call(Qe)}function Me(Qe){return Qe<10?"0"+Qe.toString(10):Qe.toString(10)}var We=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function it(){var Qe=new Date,st=[Me(Qe.getHours()),Me(Qe.getMinutes()),Me(Qe.getSeconds())].join(":");return[Qe.getDate(),We[Qe.getMonth()],st].join(" ")}de.log=function(){console.log("%s - %s",it(),de.format.apply(de,arguments))},de.inherits=a("inherits"),de._extend=function(Qe,st){if(!st||!ke(st))return Qe;for(var ot=Object.keys(st),mt=ot.length;mt--;)Qe[ot[mt]]=st[ot[mt]];return Qe};function at(Qe,st){return Object.prototype.hasOwnProperty.call(Qe,st)}var $e=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;de.promisify=function(st){if(typeof st!="function")throw new TypeError('The "original" argument must be of type Function');if($e&&st[$e]){var ot=st[$e];if(typeof ot!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ot,$e,{value:ot,enumerable:!1,writable:!1,configurable:!0}),ot}function ot(){for(var mt,ft,qe=new Promise(function(Ne,rt){mt=Ne,ft=rt}),Be=[],lt=0;lt<arguments.length;lt++)Be.push(arguments[lt]);Be.push(function(Ne,rt){Ne?ft(Ne):mt(rt)});try{st.apply(this,Be)}catch(Ne){ft(Ne)}return qe}return Object.setPrototypeOf(ot,Object.getPrototypeOf(st)),$e&&Object.defineProperty(ot,$e,{value:ot,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ot,oe(st))},de.promisify.custom=$e;function Je(Qe,st){if(!Qe){var ot=new Error("Promise was rejected with a falsy value");ot.reason=Qe,Qe=ot}return st(Qe)}function Ye(Qe){if(typeof Qe!="function")throw new TypeError('The "original" argument must be of type Function');function st(){for(var ot=[],mt=0;mt<arguments.length;mt++)ot.push(arguments[mt]);var ft=ot.pop();if(typeof ft!="function")throw new TypeError("The last argument must be of type Function");var qe=this,Be=function(){return ft.apply(qe,arguments)};Qe.apply(this,ot).then(function(lt){te.nextTick(Be.bind(null,null,lt))},function(lt){te.nextTick(Je.bind(null,lt,Be))})}return Object.setPrototypeOf(st,Object.getPrototypeOf(Qe)),Object.defineProperties(st,oe(Qe)),st}de.callbackify=Ye}).call(this)}).call(this,a("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(a,he,de){(function(te){(function(){"use strict";var oe=a("for-each"),ne=a("available-typed-arrays"),ee=a("call-bind"),se=a("call-bind/callBound"),z=a("gopd"),x=se("Object.prototype.toString"),b=a("has-tostringtag/shams")(),E=typeof globalThis=="undefined"?te:globalThis,re=ne(),ae=se("String.prototype.slice"),le=Object.getPrototypeOf,fe=se("Array.prototype.indexOf",!0)||function(we,xe){for(var ge=0;ge<we.length;ge+=1)if(we[ge]===xe)return ge;return-1},ce={__proto__:null};b&&z&&le?oe(re,function(Se){var we=new E[Se];if(Symbol.toStringTag in we){var xe=le(we),ge=z(xe,Symbol.toStringTag);if(!ge){var _e=le(xe);ge=z(_e,Symbol.toStringTag)}ce["$"+Se]=ee(ge.get)}}):oe(re,function(Se){var we=new E[Se];ce["$"+Se]=ee(we.slice)});var ue=function(we){var xe=!1;return oe(ce,function(ge,_e){if(!xe)try{"$"+ge(we)===_e&&(xe=ae(_e,1))}catch(be){}}),xe},ye=function(we){var xe=!1;return oe(ce,function(ge,_e){if(!xe)try{ge(we),xe=ae(_e,1)}catch(be){}}),xe};he.exports=function(we){if(!we||typeof we!="object")return!1;if(!b){var xe=ae(x(we),8,-1);return fe(re,xe)>-1?xe:xe!=="Object"?!1:ye(we)}return z?ue(we):null}}).call(this)}).call(this,typeof pt!="undefined"?pt: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(a,he,de){(function(){"use strict";de.stripBOM=function(te){return te[0]==="\uFEFF"?te.substring(1):te}}).call(this)},{}],422:[function(a,he,de){(function(){"use strict";var te,oe,ne,ee,se,z={}.hasOwnProperty;te=a("xmlbuilder"),oe=a("./defaults").defaults,ee=function(x){return typeof x=="string"&&(x.indexOf("&")>=0||x.indexOf(">")>=0||x.indexOf("<")>=0)},se=function(x){return"<![CDATA["+ne(x)+"]]>"},ne=function(x){return x.replace("]]>","]]]]><![CDATA[>")},de.Builder=function(){function x(b){var E,re,ae;this.options={},re=oe["0.2"];for(E in re)z.call(re,E)&&(ae=re[E],this.options[E]=ae);for(E in b)z.call(b,E)&&(ae=b[E],this.options[E]=ae)}return x.prototype.buildObject=function(b){var E,re,ae,le,fe;return E=this.options.attrkey,re=this.options.charkey,Object.keys(b).length===1&&this.options.rootName===oe["0.2"].rootName?(fe=Object.keys(b)[0],b=b[fe]):fe=this.options.rootName,ae=function(ce){return function(ue,ye){var Se,we,xe,ge,_e,be;if(typeof ye!="object")ce.options.cdata&&ee(ye)?ue.raw(se(ye)):ue.txt(ye);else if(Array.isArray(ye)){for(ge in ye)if(z.call(ye,ge)){we=ye[ge];for(_e in we)xe=we[_e],ue=ae(ue.ele(_e),xe).up()}}else for(_e in ye)if(z.call(ye,_e))if(we=ye[_e],_e===E){if(typeof we=="object")for(Se in we)be=we[Se],ue=ue.att(Se,be)}else if(_e===re)ce.options.cdata&&ee(we)?ue=ue.raw(se(we)):ue=ue.txt(we);else if(Array.isArray(we))for(ge in we)z.call(we,ge)&&(xe=we[ge],typeof xe=="string"?ce.options.cdata&&ee(xe)?ue=ue.ele(_e).raw(se(xe)).up():ue=ue.ele(_e,xe).up():ue=ae(ue.ele(_e),xe).up());else typeof we=="object"?ue=ae(ue.ele(_e),we).up():typeof we=="string"&&ce.options.cdata&&ee(we)?ue=ue.ele(_e).raw(se(we)).up():(we==null&&(we=""),ue=ue.ele(_e,we.toString()).up());return ue}}(this),le=te.create(fe,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ae(le,b).end(this.options.renderOpts)},x}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(a,he,de){(function(){de.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(a,he,de){(function(){"use strict";var te,oe,ne,ee,se,z,x,b,E,re=function(fe,ce){return function(){return fe.apply(ce,arguments)}},ae=function(fe,ce){for(var ue in ce)le.call(ce,ue)&&(fe[ue]=ce[ue]);function ye(){this.constructor=fe}return ye.prototype=ce.prototype,fe.prototype=new ye,fe.__super__=ce.prototype,fe},le={}.hasOwnProperty;b=a("sax"),ee=a("events"),te=a("./bom"),x=a("./processors"),E=a("timers").setImmediate,oe=a("./defaults").defaults,se=function(fe){return typeof fe=="object"&&fe!=null&&Object.keys(fe).length===0},z=function(fe,ce,ue){var ye,Se,we;for(ye=0,Se=fe.length;ye<Se;ye++)we=fe[ye],ce=we(ce,ue);return ce},ne=function(fe,ce,ue){var ye;return ye=Object.create(null),ye.value=ue,ye.writable=!0,ye.enumerable=!0,ye.configurable=!0,Object.defineProperty(fe,ce,ye)},de.Parser=function(fe){ae(ce,fe);function ce(ue){this.parseStringPromise=re(this.parseStringPromise,this),this.parseString=re(this.parseString,this),this.reset=re(this.reset,this),this.assignOrPush=re(this.assignOrPush,this),this.processAsync=re(this.processAsync,this);var ye,Se,we;if(!(this instanceof de.Parser))return new de.Parser(ue);this.options={},Se=oe["0.2"];for(ye in Se)le.call(Se,ye)&&(we=Se[ye],this.options[ye]=we);for(ye in ue)le.call(ue,ye)&&(we=ue[ye],this.options[ye]=we);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(x.normalize)),this.reset()}return ce.prototype.processAsync=function(){var ue,ye;try{return this.remaining.length<=this.options.chunkSize?(ue=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(ue),this.saxParser.close()):(ue=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(ue),E(this.processAsync))}catch(Se){if(ye=Se,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(ye)}},ce.prototype.assignOrPush=function(ue,ye,Se){return ye in ue?(ue[ye]instanceof Array||ne(ue,ye,[ue[ye]]),ue[ye].push(Se)):this.options.explicitArray?ne(ue,ye,[Se]):ne(ue,ye,Se)},ce.prototype.reset=function(){var ue,ye,Se,we;return this.removeAllListeners(),this.saxParser=b.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(xe){return function(ge){if(xe.saxParser.resume(),!xe.saxParser.errThrown)return xe.saxParser.errThrown=!0,xe.emit("error",ge)}}(this),this.saxParser.onend=function(xe){return function(){if(!xe.saxParser.ended)return xe.saxParser.ended=!0,xe.emit("end",xe.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,we=[],ue=this.options.attrkey,ye=this.options.charkey,this.saxParser.onopentag=function(xe){return function(ge){var _e,be,Ae,Te,Le;if(Ae={},Ae[ye]="",!xe.options.ignoreAttrs){Le=ge.attributes;for(_e in Le)le.call(Le,_e)&&(!(ue in Ae)&&!xe.options.mergeAttrs&&(Ae[ue]={}),be=xe.options.attrValueProcessors?z(xe.options.attrValueProcessors,ge.attributes[_e],_e):ge.attributes[_e],Te=xe.options.attrNameProcessors?z(xe.options.attrNameProcessors,_e):_e,xe.options.mergeAttrs?xe.assignOrPush(Ae,Te,be):ne(Ae[ue],Te,be))}return Ae["#name"]=xe.options.tagNameProcessors?z(xe.options.tagNameProcessors,ge.name):ge.name,xe.options.xmlns&&(Ae[xe.options.xmlnskey]={uri:ge.uri,local:ge.local}),we.push(Ae)}}(this),this.saxParser.onclosetag=function(xe){return function(){var ge,_e,be,Ae,Te,Le,ke,Pe,Oe,ze;if(Le=we.pop(),Te=Le["#name"],(!xe.options.explicitChildren||!xe.options.preserveChildrenOrder)&&delete Le["#name"],Le.cdata===!0&&(ge=Le.cdata,delete Le.cdata),Oe=we[we.length-1],Le[ye].match(/^\s*$/)&&!ge?(_e=Le[ye],delete Le[ye]):(xe.options.trim&&(Le[ye]=Le[ye].trim()),xe.options.normalize&&(Le[ye]=Le[ye].replace(/\s{2,}/g," ").trim()),Le[ye]=xe.options.valueProcessors?z(xe.options.valueProcessors,Le[ye],Te):Le[ye],Object.keys(Le).length===1&&ye in Le&&!xe.EXPLICIT_CHARKEY&&(Le=Le[ye])),se(Le)&&(typeof xe.options.emptyTag=="function"?Le=xe.options.emptyTag():Le=xe.options.emptyTag!==""?xe.options.emptyTag:_e),xe.options.validator!=null&&(ze="/"+function(){var Ge,tt,Me;for(Me=[],Ge=0,tt=we.length;Ge<tt;Ge++)Ae=we[Ge],Me.push(Ae["#name"]);return Me}().concat(Te).join("/"),function(){var Ge;try{return Le=xe.options.validator(ze,Oe&&Oe[Te],Le)}catch(tt){return Ge=tt,xe.emit("error",Ge)}}()),xe.options.explicitChildren&&!xe.options.mergeAttrs&&typeof Le=="object"){if(!xe.options.preserveChildrenOrder)Ae={},xe.options.attrkey in Le&&(Ae[xe.options.attrkey]=Le[xe.options.attrkey],delete Le[xe.options.attrkey]),!xe.options.charsAsChildren&&xe.options.charkey in Le&&(Ae[xe.options.charkey]=Le[xe.options.charkey],delete Le[xe.options.charkey]),Object.getOwnPropertyNames(Le).length>0&&(Ae[xe.options.childkey]=Le),Le=Ae;else if(Oe){Oe[xe.options.childkey]=Oe[xe.options.childkey]||[],ke={};for(be in Le)le.call(Le,be)&&ne(ke,be,Le[be]);Oe[xe.options.childkey].push(ke),delete Le["#name"],Object.keys(Le).length===1&&ye in Le&&!xe.EXPLICIT_CHARKEY&&(Le=Le[ye])}}return we.length>0?xe.assignOrPush(Oe,Te,Le):(xe.options.explicitRoot&&(Pe=Le,Le={},ne(Le,Te,Pe)),xe.resultObject=Le,xe.saxParser.ended=!0,xe.emit("end",xe.resultObject))}}(this),Se=function(xe){return function(ge){var _e,be;if(be=we[we.length-1],be)return be[ye]+=ge,xe.options.explicitChildren&&xe.options.preserveChildrenOrder&&xe.options.charsAsChildren&&(xe.options.includeWhiteChars||ge.replace(/\\n/g,"").trim()!=="")&&(be[xe.options.childkey]=be[xe.options.childkey]||[],_e={"#name":"__text__"},_e[ye]=ge,xe.options.normalize&&(_e[ye]=_e[ye].replace(/\s{2,}/g," ").trim()),be[xe.options.childkey].push(_e)),be}}(this),this.saxParser.ontext=Se,this.saxParser.oncdata=function(xe){return function(ge){var _e;if(_e=Se(ge),_e)return _e.cdata=!0}}(this)},ce.prototype.parseString=function(ue,ye){var Se;ye!=null&&typeof ye=="function"&&(this.on("end",function(we){return this.reset(),ye(null,we)}),this.on("error",function(we){return this.reset(),ye(we)}));try{return ue=ue.toString(),ue.trim()===""?(this.emit("end",null),!0):(ue=te.stripBOM(ue),this.options.async?(this.remaining=ue,E(this.processAsync),this.saxParser):this.saxParser.write(ue).close())}catch(we){if(Se=we,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Se}else return this.emit("error",Se),this.saxParser.errThrown=!0}},ce.prototype.parseStringPromise=function(ue){return new Promise(function(ye){return function(Se,we){return ye.parseString(ue,function(xe,ge){return xe?we(xe):Se(ge)})}}(this))},ce}(ee),de.parseString=function(fe,ce,ue){var ye,Se,we;return ue!=null?(typeof ue=="function"&&(ye=ue),typeof ce=="object"&&(Se=ce)):(typeof ce=="function"&&(ye=ce),Se={}),we=new de.Parser(Se),we.parseString(fe,ye)},de.parseStringPromise=function(fe,ce){var ue,ye;return typeof ce=="object"&&(ue=ce),ye=new de.Parser(ue),ye.parseStringPromise(fe)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(a,he,de){(function(){"use strict";var te;te=new RegExp(/(?!xmlns)^.*:/),de.normalize=function(oe){return oe.toLowerCase()},de.firstCharLowerCase=function(oe){return oe.charAt(0).toLowerCase()+oe.slice(1)},de.stripPrefix=function(oe){return oe.replace(te,"")},de.parseNumbers=function(oe){return isNaN(oe)||(oe=oe%1===0?parseInt(oe,10):parseFloat(oe)),oe},de.parseBooleans=function(oe){return/^(?:true|false)$/i.test(oe)&&(oe=oe.toLowerCase()==="true"),oe}}).call(this)},{}],426:[function(a,he,de){(function(){"use strict";var te,oe,ne,ee,se=function(x,b){for(var E in b)z.call(b,E)&&(x[E]=b[E]);function re(){this.constructor=x}return re.prototype=b.prototype,x.prototype=new re,x.__super__=b.prototype,x},z={}.hasOwnProperty;oe=a("./defaults"),te=a("./builder"),ne=a("./parser"),ee=a("./processors"),de.defaults=oe.defaults,de.processors=ee,de.ValidationError=function(x){se(b,x);function b(E){this.message=E}return b}(Error),de.Builder=te.Builder,de.Parser=ne.Parser,de.parseString=ne.parseString,de.parseStringPromise=ne.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(a,he,de){(function(){he.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(a,he,de){(function(){he.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(a,he,de){(function(){var te,oe,ne,ee,se,z,x,b=[].slice,E={}.hasOwnProperty;te=function(){var re,ae,le,fe,ce,ue;if(ue=arguments[0],ce=2<=arguments.length?b.call(arguments,1):[],se(Object.assign))Object.assign.apply(null,arguments);else for(re=0,le=ce.length;re<le;re++)if(fe=ce[re],fe!=null)for(ae in fe)E.call(fe,ae)&&(ue[ae]=fe[ae]);return ue},se=function(re){return!!re&&Object.prototype.toString.call(re)==="[object Function]"},z=function(re){var ae;return!!re&&((ae=typeof re)=="function"||ae==="object")},ne=function(re){return se(Array.isArray)?Array.isArray(re):Object.prototype.toString.call(re)==="[object Array]"},ee=function(re){var ae;if(ne(re))return!re.length;for(ae in re)if(E.call(re,ae))return!1;return!0},x=function(re){var ae,le;return z(re)&&(le=Object.getPrototypeOf(re))&&(ae=le.constructor)&&typeof ae=="function"&&ae instanceof ae&&Function.prototype.toString.call(ae)===Function.prototype.toString.call(Object)},oe=function(re){return se(re.valueOf)?re.valueOf():re},he.exports.assign=te,he.exports.isFunction=se,he.exports.isObject=z,he.exports.isArray=ne,he.exports.isEmpty=ee,he.exports.isPlainObject=x,he.exports.getValue=oe}).call(this)},{}],430:[function(a,he,de){(function(){he.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(a,he,de){(function(){var te,oe,ne;te=a("./NodeType"),ne=a("./XMLNode"),he.exports=oe=function(){function ee(se,z,x){if(this.parent=se,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),z==null)throw new Error("Missing attribute name. "+this.debugInfo(z));this.name=this.stringify.name(z),this.value=this.stringify.attValue(x),this.type=te.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(ee.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(ee.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(ee.prototype,"textContent",{get:function(){return this.value},set:function(se){return this.value=se||""}}),Object.defineProperty(ee.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(ee.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(ee.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(ee.prototype,"specified",{get:function(){return!0}}),ee.prototype.clone=function(){return Object.create(this)},ee.prototype.toString=function(se){return this.options.writer.attribute(this,this.options.writer.filterOptions(se))},ee.prototype.debugInfo=function(se){return se=se||this.name,se==null?"parent: <"+this.parent.name+">":"attribute: {"+se+"}, parent: <"+this.parent.name+">"},ee.prototype.isEqualNode=function(se){return!(se.namespaceURI!==this.namespaceURI||se.prefix!==this.prefix||se.localName!==this.localName||se.value!==this.value)},ee}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(a,he,de){(function(){var te,oe,ne,ee=function(z,x){for(var b in x)se.call(x,b)&&(z[b]=x[b]);function E(){this.constructor=z}return E.prototype=x.prototype,z.prototype=new E,z.__super__=x.prototype,z},se={}.hasOwnProperty;te=a("./NodeType"),ne=a("./XMLCharacterData"),he.exports=oe=function(z){ee(x,z);function x(b,E){if(x.__super__.constructor.call(this,b),E==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=te.CData,this.value=this.stringify.cdata(E)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(b){return this.options.writer.cdata(this,this.options.writer.filterOptions(b))},x}(ne)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(a,he,de){(function(){var te,oe,ne=function(se,z){for(var x in z)ee.call(z,x)&&(se[x]=z[x]);function b(){this.constructor=se}return b.prototype=z.prototype,se.prototype=new b,se.__super__=z.prototype,se},ee={}.hasOwnProperty;oe=a("./XMLNode"),he.exports=te=function(se){ne(z,se);function z(x){z.__super__.constructor.call(this,x),this.value=""}return Object.defineProperty(z.prototype,"data",{get:function(){return this.value},set:function(x){return this.value=x||""}}),Object.defineProperty(z.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(z.prototype,"textContent",{get:function(){return this.value},set:function(x){return this.value=x||""}}),z.prototype.clone=function(){return Object.create(this)},z.prototype.substringData=function(x,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},z.prototype.appendData=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},z.prototype.insertData=function(x,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},z.prototype.deleteData=function(x,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},z.prototype.replaceData=function(x,b,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},z.prototype.isEqualNode=function(x){return!(!z.__super__.isEqualNode.apply(this,arguments).isEqualNode(x)||x.data!==this.data)},z}(oe)}).call(this)},{"./XMLNode":450}],434:[function(a,he,de){(function(){var te,oe,ne,ee=function(z,x){for(var b in x)se.call(x,b)&&(z[b]=x[b]);function E(){this.constructor=z}return E.prototype=x.prototype,z.prototype=new E,z.__super__=x.prototype,z},se={}.hasOwnProperty;te=a("./NodeType"),oe=a("./XMLCharacterData"),he.exports=ne=function(z){ee(x,z);function x(b,E){if(x.__super__.constructor.call(this,b),E==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=te.Comment,this.value=this.stringify.comment(E)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(b){return this.options.writer.comment(this,this.options.writer.filterOptions(b))},x}(oe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(a,he,de){(function(){var te,oe,ne;oe=a("./XMLDOMErrorHandler"),ne=a("./XMLDOMStringList"),he.exports=te=function(){function ee(){var se;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new oe,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=se=Object.create(this.defaultParams)}return Object.defineProperty(ee.prototype,"parameterNames",{get:function(){return new ne(Object.keys(this.defaultParams))}}),ee.prototype.getParameter=function(se){return this.params.hasOwnProperty(se)?this.params[se]:null},ee.prototype.canSetParameter=function(se,z){return!0},ee.prototype.setParameter=function(se,z){return z!=null?this.params[se]=z:delete this.params[se]},ee}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(a,he,de){(function(){var te;he.exports=te=function(){function oe(){}return oe.prototype.handleError=function(ne){throw new Error(ne)},oe}()}).call(this)},{}],437:[function(a,he,de){(function(){var te;he.exports=te=function(){function oe(){}return oe.prototype.hasFeature=function(ne,ee){return!0},oe.prototype.createDocumentType=function(ne,ee,se){throw new Error("This DOM method is not implemented.")},oe.prototype.createDocument=function(ne,ee,se){throw new Error("This DOM method is not implemented.")},oe.prototype.createHTMLDocument=function(ne){throw new Error("This DOM method is not implemented.")},oe.prototype.getFeature=function(ne,ee){throw new Error("This DOM method is not implemented.")},oe}()}).call(this)},{}],438:[function(a,he,de){(function(){var te;he.exports=te=function(){function oe(ne){this.arr=ne||[]}return Object.defineProperty(oe.prototype,"length",{get:function(){return this.arr.length}}),oe.prototype.item=function(ne){return this.arr[ne]||null},oe.prototype.contains=function(ne){return this.arr.indexOf(ne)!==-1},oe}()}).call(this)},{}],439:[function(a,he,de){(function(){var te,oe,ne,ee=function(z,x){for(var b in x)se.call(x,b)&&(z[b]=x[b]);function E(){this.constructor=z}return E.prototype=x.prototype,z.prototype=new E,z.__super__=x.prototype,z},se={}.hasOwnProperty;ne=a("./XMLNode"),te=a("./NodeType"),he.exports=oe=function(z){ee(x,z);function x(b,E,re,ae,le,fe){if(x.__super__.constructor.call(this,b),E==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(re==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(E));if(!ae)throw new Error("Missing DTD attribute type. "+this.debugInfo(E));if(!le)throw new Error("Missing DTD attribute default. "+this.debugInfo(E));if(le.indexOf("#")!==0&&(le="#"+le),!le.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(E));if(fe&&!le.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(E));this.elementName=this.stringify.name(E),this.type=te.AttributeDeclaration,this.attributeName=this.stringify.name(re),this.attributeType=this.stringify.dtdAttType(ae),fe&&(this.defaultValue=this.stringify.dtdAttDefault(fe)),this.defaultValueType=le}return x.prototype.toString=function(b){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(b))},x}(ne)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(a,he,de){(function(){var te,oe,ne,ee=function(z,x){for(var b in x)se.call(x,b)&&(z[b]=x[b]);function E(){this.constructor=z}return E.prototype=x.prototype,z.prototype=new E,z.__super__=x.prototype,z},se={}.hasOwnProperty;ne=a("./XMLNode"),te=a("./NodeType"),he.exports=oe=function(z){ee(x,z);function x(b,E,re){if(x.__super__.constructor.call(this,b),E==null)throw new Error("Missing DTD element name. "+this.debugInfo());re||(re="(#PCDATA)"),Array.isArray(re)&&(re="("+re.join(",")+")"),this.name=this.stringify.name(E),this.type=te.ElementDeclaration,this.value=this.stringify.dtdElementValue(re)}return x.prototype.toString=function(b){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(b))},x}(ne)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(a,he,de){(function(){var te,oe,ne,ee,se=function(x,b){for(var E in b)z.call(b,E)&&(x[E]=b[E]);function re(){this.constructor=x}return re.prototype=b.prototype,x.prototype=new re,x.__super__=b.prototype,x},z={}.hasOwnProperty;ee=a("./Utility").isObject,ne=a("./XMLNode"),te=a("./NodeType"),he.exports=oe=function(x){se(b,x);function b(E,re,ae,le){if(b.__super__.constructor.call(this,E),ae==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ae));if(le==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ae));if(this.pe=!!re,this.name=this.stringify.name(ae),this.type=te.EntityDeclaration,!ee(le))this.value=this.stringify.dtdEntityValue(le),this.internal=!0;else{if(!le.pubID&&!le.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ae));if(le.pubID&&!le.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ae));if(this.internal=!1,le.pubID!=null&&(this.pubID=this.stringify.dtdPubID(le.pubID)),le.sysID!=null&&(this.sysID=this.stringify.dtdSysID(le.sysID)),le.nData!=null&&(this.nData=this.stringify.dtdNData(le.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ae))}}return Object.defineProperty(b.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(b.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(b.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(b.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(b.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(b.prototype,"xmlVersion",{get:function(){return null}}),b.prototype.toString=function(E){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(E))},b}(ne)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(a,he,de){(function(){var te,oe,ne,ee=function(z,x){for(var b in x)se.call(x,b)&&(z[b]=x[b]);function E(){this.constructor=z}return E.prototype=x.prototype,z.prototype=new E,z.__super__=x.prototype,z},se={}.hasOwnProperty;ne=a("./XMLNode"),te=a("./NodeType"),he.exports=oe=function(z){ee(x,z);function x(b,E,re){if(x.__super__.constructor.call(this,b),E==null)throw new Error("Missing DTD notation name. "+this.debugInfo(E));if(!re.pubID&&!re.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(E));this.name=this.stringify.name(E),this.type=te.NotationDeclaration,re.pubID!=null&&(this.pubID=this.stringify.dtdPubID(re.pubID)),re.sysID!=null&&(this.sysID=this.stringify.dtdSysID(re.sysID))}return Object.defineProperty(x.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(x.prototype,"systemId",{get:function(){return this.sysID}}),x.prototype.toString=function(b){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(b))},x}(ne)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(a,he,de){(function(){var te,oe,ne,ee,se=function(x,b){for(var E in b)z.call(b,E)&&(x[E]=b[E]);function re(){this.constructor=x}return re.prototype=b.prototype,x.prototype=new re,x.__super__=b.prototype,x},z={}.hasOwnProperty;ee=a("./Utility").isObject,ne=a("./XMLNode"),te=a("./NodeType"),he.exports=oe=function(x){se(b,x);function b(E,re,ae,le){var fe;b.__super__.constructor.call(this,E),ee(re)&&(fe=re,re=fe.version,ae=fe.encoding,le=fe.standalone),re||(re="1.0"),this.type=te.Declaration,this.version=this.stringify.xmlVersion(re),ae!=null&&(this.encoding=this.stringify.xmlEncoding(ae)),le!=null&&(this.standalone=this.stringify.xmlStandalone(le))}return b.prototype.toString=function(E){return this.options.writer.declaration(this,this.options.writer.filterOptions(E))},b}(ne)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(a,he,de){(function(){var te,oe,ne,ee,se,z,x,b,E,re=function(le,fe){for(var ce in fe)ae.call(fe,ce)&&(le[ce]=fe[ce]);function ue(){this.constructor=le}return ue.prototype=fe.prototype,le.prototype=new ue,le.__super__=fe.prototype,le},ae={}.hasOwnProperty;E=a("./Utility").isObject,b=a("./XMLNode"),te=a("./NodeType"),oe=a("./XMLDTDAttList"),ee=a("./XMLDTDEntity"),ne=a("./XMLDTDElement"),se=a("./XMLDTDNotation"),x=a("./XMLNamedNodeMap"),he.exports=z=function(le){re(fe,le);function fe(ce,ue,ye){var Se,we,xe,ge,_e,be;if(fe.__super__.constructor.call(this,ce),this.type=te.DocType,ce.children){for(ge=ce.children,we=0,xe=ge.length;we<xe;we++)if(Se=ge[we],Se.type===te.Element){this.name=Se.name;break}}this.documentObject=ce,E(ue)&&(_e=ue,ue=_e.pubID,ye=_e.sysID),ye==null&&(be=[ue,ye],ye=be[0],ue=be[1]),ue!=null&&(this.pubID=this.stringify.dtdPubID(ue)),ye!=null&&(this.sysID=this.stringify.dtdSysID(ye))}return Object.defineProperty(fe.prototype,"entities",{get:function(){var ce,ue,ye,Se,we;for(Se={},we=this.children,ue=0,ye=we.length;ue<ye;ue++)ce=we[ue],ce.type===te.EntityDeclaration&&!ce.pe&&(Se[ce.name]=ce);return new x(Se)}}),Object.defineProperty(fe.prototype,"notations",{get:function(){var ce,ue,ye,Se,we;for(Se={},we=this.children,ue=0,ye=we.length;ue<ye;ue++)ce=we[ue],ce.type===te.NotationDeclaration&&(Se[ce.name]=ce);return new x(Se)}}),Object.defineProperty(fe.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(fe.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(fe.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),fe.prototype.element=function(ce,ue){var ye;return ye=new ne(this,ce,ue),this.children.push(ye),this},fe.prototype.attList=function(ce,ue,ye,Se,we){var xe;return xe=new oe(this,ce,ue,ye,Se,we),this.children.push(xe),this},fe.prototype.entity=function(ce,ue){var ye;return ye=new ee(this,!1,ce,ue),this.children.push(ye),this},fe.prototype.pEntity=function(ce,ue){var ye;return ye=new ee(this,!0,ce,ue),this.children.push(ye),this},fe.prototype.notation=function(ce,ue){var ye;return ye=new se(this,ce,ue),this.children.push(ye),this},fe.prototype.toString=function(ce){return this.options.writer.docType(this,this.options.writer.filterOptions(ce))},fe.prototype.ele=function(ce,ue){return this.element(ce,ue)},fe.prototype.att=function(ce,ue,ye,Se,we){return this.attList(ce,ue,ye,Se,we)},fe.prototype.ent=function(ce,ue){return this.entity(ce,ue)},fe.prototype.pent=function(ce,ue){return this.pEntity(ce,ue)},fe.prototype.not=function(ce,ue){return this.notation(ce,ue)},fe.prototype.up=function(){return this.root()||this.documentObject},fe.prototype.isEqualNode=function(ce){return!(!fe.__super__.isEqualNode.apply(this,arguments).isEqualNode(ce)||ce.name!==this.name||ce.publicId!==this.publicId||ce.systemId!==this.systemId)},fe}(b)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(a,he,de){(function(){var te,oe,ne,ee,se,z,x,b,E=function(ae,le){for(var fe in le)re.call(le,fe)&&(ae[fe]=le[fe]);function ce(){this.constructor=ae}return ce.prototype=le.prototype,ae.prototype=new ce,ae.__super__=le.prototype,ae},re={}.hasOwnProperty;b=a("./Utility").isPlainObject,ne=a("./XMLDOMImplementation"),oe=a("./XMLDOMConfiguration"),se=a("./XMLNode"),te=a("./NodeType"),x=a("./XMLStringifier"),z=a("./XMLStringWriter"),he.exports=ee=function(ae){E(le,ae);function le(fe){le.__super__.constructor.call(this,null),this.name="#document",this.type=te.Document,this.documentURI=null,this.domConfig=new oe,fe||(fe={}),fe.writer||(fe.writer=new z),this.options=fe,this.stringify=new x(fe)}return Object.defineProperty(le.prototype,"implementation",{value:new ne}),Object.defineProperty(le.prototype,"doctype",{get:function(){var fe,ce,ue,ye;for(ye=this.children,ce=0,ue=ye.length;ce<ue;ce++)if(fe=ye[ce],fe.type===te.DocType)return fe;return null}}),Object.defineProperty(le.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(le.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(le.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(le.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===te.Declaration?this.children[0].encoding:null}}),Object.defineProperty(le.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===te.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(le.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===te.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(le.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(le.prototype,"origin",{get:function(){return null}}),Object.defineProperty(le.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(le.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(le.prototype,"contentType",{get:function(){return null}}),le.prototype.end=function(fe){var ce;return ce={},fe?b(fe)&&(ce=fe,fe=this.options.writer):fe=this.options.writer,fe.document(this,fe.filterOptions(ce))},le.prototype.toString=function(fe){return this.options.writer.document(this,this.options.writer.filterOptions(fe))},le.prototype.createElement=function(fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createTextNode=function(fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createComment=function(fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createCDATASection=function(fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createProcessingInstruction=function(fe,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createAttribute=function(fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createEntityReference=function(fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.getElementsByTagName=function(fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.importNode=function(fe,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createElementNS=function(fe,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createAttributeNS=function(fe,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.getElementsByTagNameNS=function(fe,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.getElementById=function(fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.adoptNode=function(fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.renameNode=function(fe,ce,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.getElementsByClassName=function(fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createEvent=function(fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createNodeIterator=function(fe,ce,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createTreeWalker=function(fe,ce,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},le}(se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(a,he,de){(function(){var te,oe,ne,ee,se,z,x,b,E,re,ae,le,fe,ce,ue,ye,Se,we,xe,ge,_e,be,Ae,Te,Le={}.hasOwnProperty;Te=a("./Utility"),be=Te.isObject,_e=Te.isFunction,Ae=Te.isPlainObject,ge=Te.getValue,te=a("./NodeType"),le=a("./XMLDocument"),ce=a("./XMLElement"),ee=a("./XMLCData"),se=a("./XMLComment"),ye=a("./XMLRaw"),xe=a("./XMLText"),ue=a("./XMLProcessingInstruction"),re=a("./XMLDeclaration"),ae=a("./XMLDocType"),z=a("./XMLDTDAttList"),b=a("./XMLDTDEntity"),x=a("./XMLDTDElement"),E=a("./XMLDTDNotation"),ne=a("./XMLAttribute"),we=a("./XMLStringifier"),Se=a("./XMLStringWriter"),oe=a("./WriterState"),he.exports=fe=function(){function ke(Pe,Oe,ze){var Ge;this.name="?xml",this.type=te.Document,Pe||(Pe={}),Ge={},Pe.writer?Ae(Pe.writer)&&(Ge=Pe.writer,Pe.writer=new Se):Pe.writer=new Se,this.options=Pe,this.writer=Pe.writer,this.writerOptions=this.writer.filterOptions(Ge),this.stringify=new we(Pe),this.onDataCallback=Oe||function(){},this.onEndCallback=ze||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 Oe,ze,Ge,tt,Me,We,it,at;switch(Pe.type){case te.CData:this.cdata(Pe.value);break;case te.Comment:this.comment(Pe.value);break;case te.Element:Ge={},it=Pe.attribs;for(ze in it)Le.call(it,ze)&&(Oe=it[ze],Ge[ze]=Oe.value);this.node(Pe.name,Ge);break;case te.Dummy:this.dummy();break;case te.Raw:this.raw(Pe.value);break;case te.Text:this.text(Pe.value);break;case te.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(at=Pe.children,Me=0,We=at.length;Me<We;Me++)tt=at[Me],this.createChildNode(tt),tt.type===te.Element&&this.up();return this},ke.prototype.dummy=function(){return this},ke.prototype.node=function(Pe,Oe,ze){var Ge;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=ge(Pe),Oe==null&&(Oe={}),Oe=ge(Oe),be(Oe)||(Ge=[Oe,ze],ze=Ge[0],Oe=Ge[1]),this.currentNode=new ce(this,Pe,Oe),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,ze!=null&&this.text(ze),this},ke.prototype.element=function(Pe,Oe,ze){var Ge,tt,Me,We,it,at;if(this.currentNode&&this.currentNode.type===te.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Pe)||be(Pe)||_e(Pe))for(We=this.options.noValidation,this.options.noValidation=!0,at=new le(this.options).element("TEMP_ROOT"),at.element(Pe),this.options.noValidation=We,it=at.children,tt=0,Me=it.length;tt<Me;tt++)Ge=it[tt],this.createChildNode(Ge),Ge.type===te.Element&&this.up();else this.node(Pe,Oe,ze);return this},ke.prototype.attribute=function(Pe,Oe){var ze,Ge;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=ge(Pe)),be(Pe))for(ze in Pe)Le.call(Pe,ze)&&(Ge=Pe[ze],this.attribute(ze,Ge));else _e(Oe)&&(Oe=Oe.apply()),this.options.keepNullAttributes&&Oe==null?this.currentNode.attribs[Pe]=new ne(this,Pe,""):Oe!=null&&(this.currentNode.attribs[Pe]=new ne(this,Pe,Oe));return this},ke.prototype.text=function(Pe){var Oe;return this.openCurrent(),Oe=new xe(this,Pe),this.onData(this.writer.text(Oe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.cdata=function(Pe){var Oe;return this.openCurrent(),Oe=new ee(this,Pe),this.onData(this.writer.cdata(Oe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.comment=function(Pe){var Oe;return this.openCurrent(),Oe=new se(this,Pe),this.onData(this.writer.comment(Oe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.raw=function(Pe){var Oe;return this.openCurrent(),Oe=new ye(this,Pe),this.onData(this.writer.raw(Oe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.instruction=function(Pe,Oe){var ze,Ge,tt,Me,We;if(this.openCurrent(),Pe!=null&&(Pe=ge(Pe)),Oe!=null&&(Oe=ge(Oe)),Array.isArray(Pe))for(ze=0,Me=Pe.length;ze<Me;ze++)Ge=Pe[ze],this.instruction(Ge);else if(be(Pe))for(Ge in Pe)Le.call(Pe,Ge)&&(tt=Pe[Ge],this.instruction(Ge,tt));else _e(Oe)&&(Oe=Oe.apply()),We=new ue(this,Pe,Oe),this.onData(this.writer.processingInstruction(We,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},ke.prototype.declaration=function(Pe,Oe,ze){var Ge;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return Ge=new re(this,Pe,Oe,ze),this.onData(this.writer.declaration(Ge,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.doctype=function(Pe,Oe,ze){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 ae(this,Oe,ze),this.currentNode.rootNodeName=Pe,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},ke.prototype.dtdElement=function(Pe,Oe){var ze;return this.openCurrent(),ze=new x(this,Pe,Oe),this.onData(this.writer.dtdElement(ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.attList=function(Pe,Oe,ze,Ge,tt){var Me;return this.openCurrent(),Me=new z(this,Pe,Oe,ze,Ge,tt),this.onData(this.writer.dtdAttList(Me,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.entity=function(Pe,Oe){var ze;return this.openCurrent(),ze=new b(this,!1,Pe,Oe),this.onData(this.writer.dtdEntity(ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.pEntity=function(Pe,Oe){var ze;return this.openCurrent(),ze=new b(this,!0,Pe,Oe),this.onData(this.writer.dtdEntity(ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.notation=function(Pe,Oe){var ze;return this.openCurrent(),ze=new E(this,Pe,Oe),this.onData(this.writer.dtdNotation(ze,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 Oe,ze,Ge,tt;if(!Pe.isOpen){if(!this.root&&this.currentLevel===0&&Pe.type===te.Element&&(this.root=Pe),ze="",Pe.type===te.Element){this.writerOptions.state=oe.OpenTag,ze=this.writer.indent(Pe,this.writerOptions,this.currentLevel)+"<"+Pe.name,tt=Pe.attribs;for(Ge in tt)Le.call(tt,Ge)&&(Oe=tt[Ge],ze+=this.writer.attribute(Oe,this.writerOptions,this.currentLevel));ze+=(Pe.children?">":"/>")+this.writer.endline(Pe,this.writerOptions,this.currentLevel),this.writerOptions.state=oe.InsideTag}else this.writerOptions.state=oe.OpenTag,ze=this.writer.indent(Pe,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Pe.rootNodeName,Pe.pubID&&Pe.sysID?ze+=' PUBLIC "'+Pe.pubID+'" "'+Pe.sysID+'"':Pe.sysID&&(ze+=' SYSTEM "'+Pe.sysID+'"'),Pe.children?(ze+=" [",this.writerOptions.state=oe.InsideTag):(this.writerOptions.state=oe.CloseTag,ze+=">"),ze+=this.writer.endline(Pe,this.writerOptions,this.currentLevel);return this.onData(ze,this.currentLevel),Pe.isOpen=!0}},ke.prototype.closeNode=function(Pe){var Oe;if(!Pe.isClosed)return Oe="",this.writerOptions.state=oe.CloseTag,Pe.type===te.Element?Oe=this.writer.indent(Pe,this.writerOptions,this.currentLevel)+"</"+Pe.name+">"+this.writer.endline(Pe,this.writerOptions,this.currentLevel):Oe=this.writer.indent(Pe,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Pe,this.writerOptions,this.currentLevel),this.writerOptions.state=oe.None,this.onData(Oe,this.currentLevel),Pe.isClosed=!0},ke.prototype.onData=function(Pe,Oe){return this.documentStarted=!0,this.onDataCallback(Pe,Oe+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,Oe,ze){return this.node(Pe,Oe,ze)},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,Oe){return this.instruction(Pe,Oe)},ke.prototype.dec=function(Pe,Oe,ze){return this.declaration(Pe,Oe,ze)},ke.prototype.dtd=function(Pe,Oe,ze){return this.doctype(Pe,Oe,ze)},ke.prototype.e=function(Pe,Oe,ze){return this.element(Pe,Oe,ze)},ke.prototype.n=function(Pe,Oe,ze){return this.node(Pe,Oe,ze)},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,Oe){return this.instruction(Pe,Oe)},ke.prototype.att=function(){return this.currentNode&&this.currentNode.type===te.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ke.prototype.a=function(){return this.currentNode&&this.currentNode.type===te.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ke.prototype.ent=function(Pe,Oe){return this.entity(Pe,Oe)},ke.prototype.pent=function(Pe,Oe){return this.pEntity(Pe,Oe)},ke.prototype.not=function(Pe,Oe){return this.notation(Pe,Oe)},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(a,he,de){(function(){var te,oe,ne,ee=function(z,x){for(var b in x)se.call(x,b)&&(z[b]=x[b]);function E(){this.constructor=z}return E.prototype=x.prototype,z.prototype=new E,z.__super__=x.prototype,z},se={}.hasOwnProperty;ne=a("./XMLNode"),te=a("./NodeType"),he.exports=oe=function(z){ee(x,z);function x(b){x.__super__.constructor.call(this,b),this.type=te.Dummy}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(b){return""},x}(ne)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(a,he,de){(function(){var te,oe,ne,ee,se,z,x,b,E,re=function(le,fe){for(var ce in fe)ae.call(fe,ce)&&(le[ce]=fe[ce]);function ue(){this.constructor=le}return ue.prototype=fe.prototype,le.prototype=new ue,le.__super__=fe.prototype,le},ae={}.hasOwnProperty;E=a("./Utility"),b=E.isObject,x=E.isFunction,z=E.getValue,se=a("./XMLNode"),te=a("./NodeType"),oe=a("./XMLAttribute"),ee=a("./XMLNamedNodeMap"),he.exports=ne=function(le){re(fe,le);function fe(ce,ue,ye){var Se,we,xe,ge;if(fe.__super__.constructor.call(this,ce),ue==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ue),this.type=te.Element,this.attribs={},this.schemaTypeInfo=null,ye!=null&&this.attribute(ye),ce.type===te.Document&&(this.isRoot=!0,this.documentObject=ce,ce.rootObject=this,ce.children)){for(ge=ce.children,we=0,xe=ge.length;we<xe;we++)if(Se=ge[we],Se.type===te.DocType){Se.name=this.name;break}}}return Object.defineProperty(fe.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(fe.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(fe.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(fe.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(fe.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(fe.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(fe.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(fe.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new ee(this.attribs)),this.attributeMap}}),fe.prototype.clone=function(){var ce,ue,ye,Se;ye=Object.create(this),ye.isRoot&&(ye.documentObject=null),ye.attribs={},Se=this.attribs;for(ue in Se)ae.call(Se,ue)&&(ce=Se[ue],ye.attribs[ue]=ce.clone());return ye.children=[],this.children.forEach(function(we){var xe;return xe=we.clone(),xe.parent=ye,ye.children.push(xe)}),ye},fe.prototype.attribute=function(ce,ue){var ye,Se;if(ce!=null&&(ce=z(ce)),b(ce))for(ye in ce)ae.call(ce,ye)&&(Se=ce[ye],this.attribute(ye,Se));else x(ue)&&(ue=ue.apply()),this.options.keepNullAttributes&&ue==null?this.attribs[ce]=new oe(this,ce,""):ue!=null&&(this.attribs[ce]=new oe(this,ce,ue));return this},fe.prototype.removeAttribute=function(ce){var ue,ye,Se;if(ce==null)throw new Error("Missing attribute name. "+this.debugInfo());if(ce=z(ce),Array.isArray(ce))for(ye=0,Se=ce.length;ye<Se;ye++)ue=ce[ye],delete this.attribs[ue];else delete this.attribs[ce];return this},fe.prototype.toString=function(ce){return this.options.writer.element(this,this.options.writer.filterOptions(ce))},fe.prototype.att=function(ce,ue){return this.attribute(ce,ue)},fe.prototype.a=function(ce,ue){return this.attribute(ce,ue)},fe.prototype.getAttribute=function(ce){return this.attribs.hasOwnProperty(ce)?this.attribs[ce].value:null},fe.prototype.setAttribute=function(ce,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getAttributeNode=function(ce){return this.attribs.hasOwnProperty(ce)?this.attribs[ce]:null},fe.prototype.setAttributeNode=function(ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.removeAttributeNode=function(ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getElementsByTagName=function(ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getAttributeNS=function(ce,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.setAttributeNS=function(ce,ue,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.removeAttributeNS=function(ce,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getAttributeNodeNS=function(ce,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.setAttributeNodeNS=function(ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getElementsByTagNameNS=function(ce,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.hasAttribute=function(ce){return this.attribs.hasOwnProperty(ce)},fe.prototype.hasAttributeNS=function(ce,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.setIdAttribute=function(ce,ue){return this.attribs.hasOwnProperty(ce)?this.attribs[ce].isId:ue},fe.prototype.setIdAttributeNS=function(ce,ue,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.setIdAttributeNode=function(ce,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getElementsByTagName=function(ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getElementsByTagNameNS=function(ce,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getElementsByClassName=function(ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.isEqualNode=function(ce){var ue,ye,Se;if(!fe.__super__.isEqualNode.apply(this,arguments).isEqualNode(ce)||ce.namespaceURI!==this.namespaceURI||ce.prefix!==this.prefix||ce.localName!==this.localName||ce.attribs.length!==this.attribs.length)return!1;for(ue=ye=0,Se=this.attribs.length-1;0<=Se?ye<=Se:ye>=Se;ue=0<=Se?++ye:--ye)if(!this.attribs[ue].isEqualNode(ce.attribs[ue]))return!1;return!0},fe}(se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(a,he,de){(function(){var te;he.exports=te=function(){function oe(ne){this.nodes=ne}return Object.defineProperty(oe.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),oe.prototype.clone=function(){return this.nodes=null},oe.prototype.getNamedItem=function(ne){return this.nodes[ne]},oe.prototype.setNamedItem=function(ne){var ee;return ee=this.nodes[ne.nodeName],this.nodes[ne.nodeName]=ne,ee||null},oe.prototype.removeNamedItem=function(ne){var ee;return ee=this.nodes[ne],delete this.nodes[ne],ee||null},oe.prototype.item=function(ne){return this.nodes[Object.keys(this.nodes)[ne]]||null},oe.prototype.getNamedItemNS=function(ne,ee){throw new Error("This DOM method is not implemented.")},oe.prototype.setNamedItemNS=function(ne){throw new Error("This DOM method is not implemented.")},oe.prototype.removeNamedItemNS=function(ne,ee){throw new Error("This DOM method is not implemented.")},oe}()}).call(this)},{}],450:[function(a,he,de){(function(){var te,oe,ne,ee,se,z,x,b,E,re,ae,le,fe,ce,ue,ye,Se,we,xe,ge={}.hasOwnProperty;xe=a("./Utility"),we=xe.isObject,Se=xe.isFunction,ye=xe.isEmpty,ue=xe.getValue,b=null,ne=null,ee=null,se=null,z=null,fe=null,ce=null,le=null,x=null,oe=null,ae=null,E=null,te=null,he.exports=re=function(){function _e(be){this.parent=be,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,b||(b=a("./XMLElement"),ne=a("./XMLCData"),ee=a("./XMLComment"),se=a("./XMLDeclaration"),z=a("./XMLDocType"),fe=a("./XMLRaw"),ce=a("./XMLText"),le=a("./XMLProcessingInstruction"),x=a("./XMLDummy"),oe=a("./NodeType"),ae=a("./XMLNodeList"),E=a("./XMLNamedNodeMap"),te=a("./DocumentPosition"))}return Object.defineProperty(_e.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(_e.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(_e.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(_e.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(_e.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ae(this.children)),this.childNodeList}}),Object.defineProperty(_e.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(_e.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(_e.prototype,"previousSibling",{get:function(){var be;return be=this.parent.children.indexOf(this),this.parent.children[be-1]||null}}),Object.defineProperty(_e.prototype,"nextSibling",{get:function(){var be;return be=this.parent.children.indexOf(this),this.parent.children[be+1]||null}}),Object.defineProperty(_e.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(_e.prototype,"textContent",{get:function(){var be,Ae,Te,Le,ke;if(this.nodeType===oe.Element||this.nodeType===oe.DocumentFragment){for(ke="",Le=this.children,Ae=0,Te=Le.length;Ae<Te;Ae++)be=Le[Ae],be.textContent&&(ke+=be.textContent);return ke}else return null},set:function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),_e.prototype.setParent=function(be){var Ae,Te,Le,ke,Pe;for(this.parent=be,be&&(this.options=be.options,this.stringify=be.stringify),ke=this.children,Pe=[],Te=0,Le=ke.length;Te<Le;Te++)Ae=ke[Te],Pe.push(Ae.setParent(this));return Pe},_e.prototype.element=function(be,Ae,Te){var Le,ke,Pe,Oe,ze,Ge,tt,Me,We,it,at;if(Ge=null,Ae===null&&Te==null&&(We=[{},null],Ae=We[0],Te=We[1]),Ae==null&&(Ae={}),Ae=ue(Ae),we(Ae)||(it=[Ae,Te],Te=it[0],Ae=it[1]),be!=null&&(be=ue(be)),Array.isArray(be))for(Pe=0,tt=be.length;Pe<tt;Pe++)ke=be[Pe],Ge=this.element(ke);else if(Se(be))Ge=this.element(be.apply());else if(we(be)){for(ze in be)if(ge.call(be,ze))if(at=be[ze],Se(at)&&(at=at.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ze.indexOf(this.stringify.convertAttKey)===0)Ge=this.attribute(ze.substr(this.stringify.convertAttKey.length),at);else if(!this.options.separateArrayItems&&Array.isArray(at)&&ye(at))Ge=this.dummy();else if(we(at)&&ye(at))Ge=this.element(ze);else if(!this.options.keepNullNodes&&at==null)Ge=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(at))for(Oe=0,Me=at.length;Oe<Me;Oe++)ke=at[Oe],Le={},Le[ze]=ke,Ge=this.element(Le);else we(at)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ze.indexOf(this.stringify.convertTextKey)===0?Ge=this.element(at):(Ge=this.element(ze),Ge.element(at)):Ge=this.element(ze,at)}else!this.options.keepNullNodes&&Te===null?Ge=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&be.indexOf(this.stringify.convertTextKey)===0?Ge=this.text(Te):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&be.indexOf(this.stringify.convertCDataKey)===0?Ge=this.cdata(Te):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&be.indexOf(this.stringify.convertCommentKey)===0?Ge=this.comment(Te):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&be.indexOf(this.stringify.convertRawKey)===0?Ge=this.raw(Te):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&be.indexOf(this.stringify.convertPIKey)===0?Ge=this.instruction(be.substr(this.stringify.convertPIKey.length),Te):Ge=this.node(be,Ae,Te);if(Ge==null)throw new Error("Could not create any elements with: "+be+". "+this.debugInfo());return Ge},_e.prototype.insertBefore=function(be,Ae,Te){var Le,ke,Pe,Oe,ze;if(be!=null&&be.type)return Pe=be,Oe=Ae,Pe.setParent(this),Oe?(ke=children.indexOf(Oe),ze=children.splice(ke),children.push(Pe),Array.prototype.push.apply(children,ze)):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),ze=this.parent.children.splice(ke),Le=this.parent.element(be,Ae,Te),Array.prototype.push.apply(this.parent.children,ze),Le},_e.prototype.insertAfter=function(be,Ae,Te){var Le,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),Le=this.parent.element(be,Ae,Te),Array.prototype.push.apply(this.parent.children,Pe),Le},_e.prototype.remove=function(){var be,Ae;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(Ae=[])),this.parent},_e.prototype.node=function(be,Ae,Te){var Le,ke;return be!=null&&(be=ue(be)),Ae||(Ae={}),Ae=ue(Ae),we(Ae)||(ke=[Ae,Te],Te=ke[0],Ae=ke[1]),Le=new b(this,be,Ae),Te!=null&&Le.text(Te),this.children.push(Le),Le},_e.prototype.text=function(be){var Ae;return we(be)&&this.element(be),Ae=new ce(this,be),this.children.push(Ae),this},_e.prototype.cdata=function(be){var Ae;return Ae=new ne(this,be),this.children.push(Ae),this},_e.prototype.comment=function(be){var Ae;return Ae=new ee(this,be),this.children.push(Ae),this},_e.prototype.commentBefore=function(be){var Ae,Te,Le;return Te=this.parent.children.indexOf(this),Le=this.parent.children.splice(Te),Ae=this.parent.comment(be),Array.prototype.push.apply(this.parent.children,Le),this},_e.prototype.commentAfter=function(be){var Ae,Te,Le;return Te=this.parent.children.indexOf(this),Le=this.parent.children.splice(Te+1),Ae=this.parent.comment(be),Array.prototype.push.apply(this.parent.children,Le),this},_e.prototype.raw=function(be){var Ae;return Ae=new fe(this,be),this.children.push(Ae),this},_e.prototype.dummy=function(){var be;return be=new x(this),be},_e.prototype.instruction=function(be,Ae){var Te,Le,ke,Pe,Oe;if(be!=null&&(be=ue(be)),Ae!=null&&(Ae=ue(Ae)),Array.isArray(be))for(Pe=0,Oe=be.length;Pe<Oe;Pe++)Te=be[Pe],this.instruction(Te);else if(we(be))for(Te in be)ge.call(be,Te)&&(Le=be[Te],this.instruction(Te,Le));else Se(Ae)&&(Ae=Ae.apply()),ke=new le(this,be,Ae),this.children.push(ke);return this},_e.prototype.instructionBefore=function(be,Ae){var Te,Le,ke;return Le=this.parent.children.indexOf(this),ke=this.parent.children.splice(Le),Te=this.parent.instruction(be,Ae),Array.prototype.push.apply(this.parent.children,ke),this},_e.prototype.instructionAfter=function(be,Ae){var Te,Le,ke;return Le=this.parent.children.indexOf(this),ke=this.parent.children.splice(Le+1),Te=this.parent.instruction(be,Ae),Array.prototype.push.apply(this.parent.children,ke),this},_e.prototype.declaration=function(be,Ae,Te){var Le,ke;return Le=this.document(),ke=new se(Le,be,Ae,Te),Le.children.length===0?Le.children.unshift(ke):Le.children[0].type===oe.Declaration?Le.children[0]=ke:Le.children.unshift(ke),Le.root()||Le},_e.prototype.dtd=function(be,Ae){var Te,Le,ke,Pe,Oe,ze,Ge,tt,Me,We;for(Le=this.document(),ke=new z(Le,be,Ae),Me=Le.children,Pe=Oe=0,Ge=Me.length;Oe<Ge;Pe=++Oe)if(Te=Me[Pe],Te.type===oe.DocType)return Le.children[Pe]=ke,ke;for(We=Le.children,Pe=ze=0,tt=We.length;ze<tt;Pe=++ze)if(Te=We[Pe],Te.isRoot)return Le.children.splice(Pe,0,ke),ke;return Le.children.push(ke),ke},_e.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},_e.prototype.root=function(){var be;for(be=this;be;){if(be.type===oe.Document)return be.rootObject;if(be.isRoot)return be;be=be.parent}},_e.prototype.document=function(){var be;for(be=this;be;){if(be.type===oe.Document)return be;be=be.parent}},_e.prototype.end=function(be){return this.document().end(be)},_e.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]},_e.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]},_e.prototype.importDocument=function(be){var Ae;return Ae=be.root().clone(),Ae.parent=this,Ae.isRoot=!1,this.children.push(Ae),this},_e.prototype.debugInfo=function(be){var Ae,Te;return be=be||this.name,be==null&&!((Ae=this.parent)!=null&&Ae.name)?"":be==null?"parent: <"+this.parent.name+">":(Te=this.parent)!=null&&Te.name?"node: <"+be+">, parent: <"+this.parent.name+">":"node: <"+be+">"},_e.prototype.ele=function(be,Ae,Te){return this.element(be,Ae,Te)},_e.prototype.nod=function(be,Ae,Te){return this.node(be,Ae,Te)},_e.prototype.txt=function(be){return this.text(be)},_e.prototype.dat=function(be){return this.cdata(be)},_e.prototype.com=function(be){return this.comment(be)},_e.prototype.ins=function(be,Ae){return this.instruction(be,Ae)},_e.prototype.doc=function(){return this.document()},_e.prototype.dec=function(be,Ae,Te){return this.declaration(be,Ae,Te)},_e.prototype.e=function(be,Ae,Te){return this.element(be,Ae,Te)},_e.prototype.n=function(be,Ae,Te){return this.node(be,Ae,Te)},_e.prototype.t=function(be){return this.text(be)},_e.prototype.d=function(be){return this.cdata(be)},_e.prototype.c=function(be){return this.comment(be)},_e.prototype.r=function(be){return this.raw(be)},_e.prototype.i=function(be,Ae){return this.instruction(be,Ae)},_e.prototype.u=function(){return this.up()},_e.prototype.importXMLBuilder=function(be){return this.importDocument(be)},_e.prototype.replaceChild=function(be,Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},_e.prototype.removeChild=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},_e.prototype.appendChild=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},_e.prototype.hasChildNodes=function(){return this.children.length!==0},_e.prototype.cloneNode=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},_e.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},_e.prototype.isSupported=function(be,Ae){return!0},_e.prototype.hasAttributes=function(){return this.attribs.length!==0},_e.prototype.compareDocumentPosition=function(be){var Ae,Te;return Ae=this,Ae===be?0:this.document()!==be.document()?(Te=te.Disconnected|te.ImplementationSpecific,Math.random()<.5?Te|=te.Preceding:Te|=te.Following,Te):Ae.isAncestor(be)?te.Contains|te.Preceding:Ae.isDescendant(be)?te.Contains|te.Following:Ae.isPreceding(be)?te.Preceding:te.Following},_e.prototype.isSameNode=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},_e.prototype.lookupPrefix=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},_e.prototype.isDefaultNamespace=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},_e.prototype.lookupNamespaceURI=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},_e.prototype.isEqualNode=function(be){var Ae,Te,Le;if(be.nodeType!==this.nodeType||be.children.length!==this.children.length)return!1;for(Ae=Te=0,Le=this.children.length-1;0<=Le?Te<=Le:Te>=Le;Ae=0<=Le?++Te:--Te)if(!this.children[Ae].isEqualNode(be.children[Ae]))return!1;return!0},_e.prototype.getFeature=function(be,Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},_e.prototype.setUserData=function(be,Ae,Te){throw new Error("This DOM method is not implemented."+this.debugInfo())},_e.prototype.getUserData=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},_e.prototype.contains=function(be){return be?be===this||this.isDescendant(be):!1},_e.prototype.isDescendant=function(be){var Ae,Te,Le,ke,Pe;for(Pe=this.children,Le=0,ke=Pe.length;Le<ke;Le++)if(Ae=Pe[Le],be===Ae||(Te=Ae.isDescendant(be),Te))return!0;return!1},_e.prototype.isAncestor=function(be){return be.isDescendant(this)},_e.prototype.isPreceding=function(be){var Ae,Te;return Ae=this.treePosition(be),Te=this.treePosition(this),Ae===-1||Te===-1?!1:Ae<Te},_e.prototype.isFollowing=function(be){var Ae,Te;return Ae=this.treePosition(be),Te=this.treePosition(this),Ae===-1||Te===-1?!1:Ae>Te},_e.prototype.treePosition=function(be){var Ae,Te;return Te=0,Ae=!1,this.foreachTreeNode(this.document(),function(Le){if(Te++,!Ae&&Le===be)return Ae=!0}),Ae?Te:-1},_e.prototype.foreachTreeNode=function(be,Ae){var Te,Le,ke,Pe,Oe;for(be||(be=this.document()),Pe=be.children,Le=0,ke=Pe.length;Le<ke;Le++){if(Te=Pe[Le],Oe=Ae(Te))return Oe;if(Oe=this.foreachTreeNode(Te,Ae),Oe)return Oe}},_e}()}).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(a,he,de){(function(){var te;he.exports=te=function(){function oe(ne){this.nodes=ne}return Object.defineProperty(oe.prototype,"length",{get:function(){return this.nodes.length||0}}),oe.prototype.clone=function(){return this.nodes=null},oe.prototype.item=function(ne){return this.nodes[ne]||null},oe}()}).call(this)},{}],452:[function(a,he,de){(function(){var te,oe,ne,ee=function(z,x){for(var b in x)se.call(x,b)&&(z[b]=x[b]);function E(){this.constructor=z}return E.prototype=x.prototype,z.prototype=new E,z.__super__=x.prototype,z},se={}.hasOwnProperty;te=a("./NodeType"),oe=a("./XMLCharacterData"),he.exports=ne=function(z){ee(x,z);function x(b,E,re){if(x.__super__.constructor.call(this,b),E==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=te.ProcessingInstruction,this.target=this.stringify.insTarget(E),this.name=this.target,re&&(this.value=this.stringify.insValue(re))}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(b){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(b))},x.prototype.isEqualNode=function(b){return!(!x.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)||b.target!==this.target)},x}(oe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(a,he,de){(function(){var te,oe,ne,ee=function(z,x){for(var b in x)se.call(x,b)&&(z[b]=x[b]);function E(){this.constructor=z}return E.prototype=x.prototype,z.prototype=new E,z.__super__=x.prototype,z},se={}.hasOwnProperty;te=a("./NodeType"),oe=a("./XMLNode"),he.exports=ne=function(z){ee(x,z);function x(b,E){if(x.__super__.constructor.call(this,b),E==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=te.Raw,this.value=this.stringify.raw(E)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(b){return this.options.writer.raw(this,this.options.writer.filterOptions(b))},x}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(a,he,de){(function(){var te,oe,ne,ee,se=function(x,b){for(var E in b)z.call(b,E)&&(x[E]=b[E]);function re(){this.constructor=x}return re.prototype=b.prototype,x.prototype=new re,x.__super__=b.prototype,x},z={}.hasOwnProperty;te=a("./NodeType"),ee=a("./XMLWriterBase"),oe=a("./WriterState"),he.exports=ne=function(x){se(b,x);function b(E,re){this.stream=E,b.__super__.constructor.call(this,re)}return b.prototype.endline=function(E,re,ae){return E.isLastRootNode&&re.state===oe.CloseTag?"":b.__super__.endline.call(this,E,re,ae)},b.prototype.document=function(E,re){var ae,le,fe,ce,ue,ye,Se,we,xe;for(Se=E.children,le=fe=0,ue=Se.length;fe<ue;le=++fe)ae=Se[le],ae.isLastRootNode=le===E.children.length-1;for(re=this.filterOptions(re),we=E.children,xe=[],ce=0,ye=we.length;ce<ye;ce++)ae=we[ce],xe.push(this.writeChildNode(ae,re,0));return xe},b.prototype.attribute=function(E,re,ae){return this.stream.write(b.__super__.attribute.call(this,E,re,ae))},b.prototype.cdata=function(E,re,ae){return this.stream.write(b.__super__.cdata.call(this,E,re,ae))},b.prototype.comment=function(E,re,ae){return this.stream.write(b.__super__.comment.call(this,E,re,ae))},b.prototype.declaration=function(E,re,ae){return this.stream.write(b.__super__.declaration.call(this,E,re,ae))},b.prototype.docType=function(E,re,ae){var le,fe,ce,ue;if(ae||(ae=0),this.openNode(E,re,ae),re.state=oe.OpenTag,this.stream.write(this.indent(E,re,ae)),this.stream.write("<!DOCTYPE "+E.root().name),E.pubID&&E.sysID?this.stream.write(' PUBLIC "'+E.pubID+'" "'+E.sysID+'"'):E.sysID&&this.stream.write(' SYSTEM "'+E.sysID+'"'),E.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(E,re,ae)),re.state=oe.InsideTag,ue=E.children,fe=0,ce=ue.length;fe<ce;fe++)le=ue[fe],this.writeChildNode(le,re,ae+1);re.state=oe.CloseTag,this.stream.write("]")}return re.state=oe.CloseTag,this.stream.write(re.spaceBeforeSlash+">"),this.stream.write(this.endline(E,re,ae)),re.state=oe.None,this.closeNode(E,re,ae)},b.prototype.element=function(E,re,ae){var le,fe,ce,ue,ye,Se,we,xe,ge,_e;ae||(ae=0),this.openNode(E,re,ae),re.state=oe.OpenTag,this.stream.write(this.indent(E,re,ae)+"<"+E.name),ge=E.attribs;for(we in ge)z.call(ge,we)&&(le=ge[we],this.attribute(le,re,ae));if(ce=E.children.length,ue=ce===0?null:E.children[0],ce===0||E.children.every(function(be){return(be.type===te.Text||be.type===te.Raw)&&be.value===""}))re.allowEmpty?(this.stream.write(">"),re.state=oe.CloseTag,this.stream.write("</"+E.name+">")):(re.state=oe.CloseTag,this.stream.write(re.spaceBeforeSlash+"/>"));else if(re.pretty&&ce===1&&(ue.type===te.Text||ue.type===te.Raw)&&ue.value!=null)this.stream.write(">"),re.state=oe.InsideTag,re.suppressPrettyCount++,xe=!0,this.writeChildNode(ue,re,ae+1),re.suppressPrettyCount--,xe=!1,re.state=oe.CloseTag,this.stream.write("</"+E.name+">");else{for(this.stream.write(">"+this.endline(E,re,ae)),re.state=oe.InsideTag,_e=E.children,ye=0,Se=_e.length;ye<Se;ye++)fe=_e[ye],this.writeChildNode(fe,re,ae+1);re.state=oe.CloseTag,this.stream.write(this.indent(E,re,ae)+"</"+E.name+">")}return this.stream.write(this.endline(E,re,ae)),re.state=oe.None,this.closeNode(E,re,ae)},b.prototype.processingInstruction=function(E,re,ae){return this.stream.write(b.__super__.processingInstruction.call(this,E,re,ae))},b.prototype.raw=function(E,re,ae){return this.stream.write(b.__super__.raw.call(this,E,re,ae))},b.prototype.text=function(E,re,ae){return this.stream.write(b.__super__.text.call(this,E,re,ae))},b.prototype.dtdAttList=function(E,re,ae){return this.stream.write(b.__super__.dtdAttList.call(this,E,re,ae))},b.prototype.dtdElement=function(E,re,ae){return this.stream.write(b.__super__.dtdElement.call(this,E,re,ae))},b.prototype.dtdEntity=function(E,re,ae){return this.stream.write(b.__super__.dtdEntity.call(this,E,re,ae))},b.prototype.dtdNotation=function(E,re,ae){return this.stream.write(b.__super__.dtdNotation.call(this,E,re,ae))},b}(ee)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(a,he,de){(function(){var te,oe,ne=function(se,z){for(var x in z)ee.call(z,x)&&(se[x]=z[x]);function b(){this.constructor=se}return b.prototype=z.prototype,se.prototype=new b,se.__super__=z.prototype,se},ee={}.hasOwnProperty;oe=a("./XMLWriterBase"),he.exports=te=function(se){ne(z,se);function z(x){z.__super__.constructor.call(this,x)}return z.prototype.document=function(x,b){var E,re,ae,le,fe;for(b=this.filterOptions(b),le="",fe=x.children,re=0,ae=fe.length;re<ae;re++)E=fe[re],le+=this.writeChildNode(E,b,0);return b.pretty&&le.slice(-b.newline.length)===b.newline&&(le=le.slice(0,-b.newline.length)),le},z}(oe)}).call(this)},{"./XMLWriterBase":458}],456:[function(a,he,de){(function(){var te,oe=function(ee,se){return function(){return ee.apply(se,arguments)}},ne={}.hasOwnProperty;he.exports=te=function(){function ee(se){this.assertLegalName=oe(this.assertLegalName,this),this.assertLegalChar=oe(this.assertLegalChar,this);var z,x,b;se||(se={}),this.options=se,this.options.version||(this.options.version="1.0"),x=se.stringify||{};for(z in x)ne.call(x,z)&&(b=x[z],this[z]=b)}return ee.prototype.name=function(se){return this.options.noValidation?se:this.assertLegalName(""+se||"")},ee.prototype.text=function(se){return this.options.noValidation?se:this.assertLegalChar(this.textEscape(""+se||""))},ee.prototype.cdata=function(se){return this.options.noValidation?se:(se=""+se||"",se=se.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(se))},ee.prototype.comment=function(se){if(this.options.noValidation)return se;if(se=""+se||"",se.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+se);return this.assertLegalChar(se)},ee.prototype.raw=function(se){return this.options.noValidation?se:""+se||""},ee.prototype.attValue=function(se){return this.options.noValidation?se:this.assertLegalChar(this.attEscape(se=""+se||""))},ee.prototype.insTarget=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},ee.prototype.insValue=function(se){if(this.options.noValidation)return se;if(se=""+se||"",se.match(/\?>/))throw new Error("Invalid processing instruction value: "+se);return this.assertLegalChar(se)},ee.prototype.xmlVersion=function(se){if(this.options.noValidation)return se;if(se=""+se||"",!se.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+se);return se},ee.prototype.xmlEncoding=function(se){if(this.options.noValidation)return se;if(se=""+se||"",!se.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+se);return this.assertLegalChar(se)},ee.prototype.xmlStandalone=function(se){return this.options.noValidation?se:se?"yes":"no"},ee.prototype.dtdPubID=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},ee.prototype.dtdSysID=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},ee.prototype.dtdElementValue=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},ee.prototype.dtdAttType=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},ee.prototype.dtdAttDefault=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},ee.prototype.dtdEntityValue=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},ee.prototype.dtdNData=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},ee.prototype.convertAttKey="@",ee.prototype.convertPIKey="?",ee.prototype.convertTextKey="#text",ee.prototype.convertCDataKey="#cdata",ee.prototype.convertCommentKey="#comment",ee.prototype.convertRawKey="#raw",ee.prototype.assertLegalChar=function(se){var z,x;if(this.options.noValidation)return se;if(z="",this.options.version==="1.0"){if(z=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=se.match(z))throw new Error("Invalid character in string: "+se+" at index "+x.index)}else if(this.options.version==="1.1"&&(z=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=se.match(z)))throw new Error("Invalid character in string: "+se+" at index "+x.index);return se},ee.prototype.assertLegalName=function(se){var z;if(this.options.noValidation)return se;if(this.assertLegalChar(se),z=/^([: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])*$/,!se.match(z))throw new Error("Invalid character in name");return se},ee.prototype.textEscape=function(se){var z;return this.options.noValidation?se:(z=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,se.replace(z,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},ee.prototype.attEscape=function(se){var z;return this.options.noValidation?se:(z=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,se.replace(z,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},ee}()}).call(this)},{}],457:[function(a,he,de){(function(){var te,oe,ne,ee=function(z,x){for(var b in x)se.call(x,b)&&(z[b]=x[b]);function E(){this.constructor=z}return E.prototype=x.prototype,z.prototype=new E,z.__super__=x.prototype,z},se={}.hasOwnProperty;te=a("./NodeType"),oe=a("./XMLCharacterData"),he.exports=ne=function(z){ee(x,z);function x(b,E){if(x.__super__.constructor.call(this,b),E==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=te.Text,this.value=this.stringify.text(E)}return Object.defineProperty(x.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(x.prototype,"wholeText",{get:function(){var b,E,re;for(re="",E=this.previousSibling;E;)re=E.data+re,E=E.previousSibling;for(re+=this.data,b=this.nextSibling;b;)re=re+b.data,b=b.nextSibling;return re}}),x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(b){return this.options.writer.text(this,this.options.writer.filterOptions(b))},x.prototype.splitText=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.replaceWholeText=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},x}(oe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(a,he,de){(function(){var te,oe,ne,ee,se,z,x,b,E,re,ae,le,fe,ce,ue,ye,Se,we={}.hasOwnProperty;Se=a("./Utility").assign,te=a("./NodeType"),E=a("./XMLDeclaration"),re=a("./XMLDocType"),ne=a("./XMLCData"),ee=a("./XMLComment"),le=a("./XMLElement"),ce=a("./XMLRaw"),ue=a("./XMLText"),fe=a("./XMLProcessingInstruction"),ae=a("./XMLDummy"),se=a("./XMLDTDAttList"),z=a("./XMLDTDElement"),x=a("./XMLDTDEntity"),b=a("./XMLDTDNotation"),oe=a("./WriterState"),he.exports=ye=function(){function xe(ge){var _e,be,Ae;ge||(ge={}),this.options=ge,be=ge.writer||{};for(_e in be)we.call(be,_e)&&(Ae=be[_e],this["_"+_e]=this[_e],this[_e]=Ae)}return xe.prototype.filterOptions=function(ge){var _e,be,Ae,Te,Le,ke,Pe,Oe;return ge||(ge={}),ge=Se({},this.options,ge),_e={writer:this},_e.pretty=ge.pretty||!1,_e.allowEmpty=ge.allowEmpty||!1,_e.indent=(be=ge.indent)!=null?be:" ",_e.newline=(Ae=ge.newline)!=null?Ae:`
`,_e.offset=(Te=ge.offset)!=null?Te:0,_e.dontPrettyTextNodes=(Le=(ke=ge.dontPrettyTextNodes)!=null?ke:ge.dontprettytextnodes)!=null?Le:0,_e.spaceBeforeSlash=(Pe=(Oe=ge.spaceBeforeSlash)!=null?Oe:ge.spacebeforeslash)!=null?Pe:"",_e.spaceBeforeSlash===!0&&(_e.spaceBeforeSlash=" "),_e.suppressPrettyCount=0,_e.user={},_e.state=oe.None,_e},xe.prototype.indent=function(ge,_e,be){var Ae;return!_e.pretty||_e.suppressPrettyCount?"":_e.pretty&&(Ae=(be||0)+_e.offset+1,Ae>0)?new Array(Ae).join(_e.indent):""},xe.prototype.endline=function(ge,_e,be){return!_e.pretty||_e.suppressPrettyCount?"":_e.newline},xe.prototype.attribute=function(ge,_e,be){var Ae;return this.openAttribute(ge,_e,be),Ae=" "+ge.name+'="'+ge.value+'"',this.closeAttribute(ge,_e,be),Ae},xe.prototype.cdata=function(ge,_e,be){var Ae;return this.openNode(ge,_e,be),_e.state=oe.OpenTag,Ae=this.indent(ge,_e,be)+"<![CDATA[",_e.state=oe.InsideTag,Ae+=ge.value,_e.state=oe.CloseTag,Ae+="]]>"+this.endline(ge,_e,be),_e.state=oe.None,this.closeNode(ge,_e,be),Ae},xe.prototype.comment=function(ge,_e,be){var Ae;return this.openNode(ge,_e,be),_e.state=oe.OpenTag,Ae=this.indent(ge,_e,be)+"<!-- ",_e.state=oe.InsideTag,Ae+=ge.value,_e.state=oe.CloseTag,Ae+=" -->"+this.endline(ge,_e,be),_e.state=oe.None,this.closeNode(ge,_e,be),Ae},xe.prototype.declaration=function(ge,_e,be){var Ae;return this.openNode(ge,_e,be),_e.state=oe.OpenTag,Ae=this.indent(ge,_e,be)+"<?xml",_e.state=oe.InsideTag,Ae+=' version="'+ge.version+'"',ge.encoding!=null&&(Ae+=' encoding="'+ge.encoding+'"'),ge.standalone!=null&&(Ae+=' standalone="'+ge.standalone+'"'),_e.state=oe.CloseTag,Ae+=_e.spaceBeforeSlash+"?>",Ae+=this.endline(ge,_e,be),_e.state=oe.None,this.closeNode(ge,_e,be),Ae},xe.prototype.docType=function(ge,_e,be){var Ae,Te,Le,ke,Pe;if(be||(be=0),this.openNode(ge,_e,be),_e.state=oe.OpenTag,ke=this.indent(ge,_e,be),ke+="<!DOCTYPE "+ge.root().name,ge.pubID&&ge.sysID?ke+=' PUBLIC "'+ge.pubID+'" "'+ge.sysID+'"':ge.sysID&&(ke+=' SYSTEM "'+ge.sysID+'"'),ge.children.length>0){for(ke+=" [",ke+=this.endline(ge,_e,be),_e.state=oe.InsideTag,Pe=ge.children,Te=0,Le=Pe.length;Te<Le;Te++)Ae=Pe[Te],ke+=this.writeChildNode(Ae,_e,be+1);_e.state=oe.CloseTag,ke+="]"}return _e.state=oe.CloseTag,ke+=_e.spaceBeforeSlash+">",ke+=this.endline(ge,_e,be),_e.state=oe.None,this.closeNode(ge,_e,be),ke},xe.prototype.element=function(ge,_e,be){var Ae,Te,Le,ke,Pe,Oe,ze,Ge,tt,Me,We,it,at,$e;be||(be=0),Me=!1,We="",this.openNode(ge,_e,be),_e.state=oe.OpenTag,We+=this.indent(ge,_e,be)+"<"+ge.name,it=ge.attribs;for(tt in it)we.call(it,tt)&&(Ae=it[tt],We+=this.attribute(Ae,_e,be));if(Le=ge.children.length,ke=Le===0?null:ge.children[0],Le===0||ge.children.every(function(Je){return(Je.type===te.Text||Je.type===te.Raw)&&Je.value===""}))_e.allowEmpty?(We+=">",_e.state=oe.CloseTag,We+="</"+ge.name+">"+this.endline(ge,_e,be)):(_e.state=oe.CloseTag,We+=_e.spaceBeforeSlash+"/>"+this.endline(ge,_e,be));else if(_e.pretty&&Le===1&&(ke.type===te.Text||ke.type===te.Raw)&&ke.value!=null)We+=">",_e.state=oe.InsideTag,_e.suppressPrettyCount++,Me=!0,We+=this.writeChildNode(ke,_e,be+1),_e.suppressPrettyCount--,Me=!1,_e.state=oe.CloseTag,We+="</"+ge.name+">"+this.endline(ge,_e,be);else{if(_e.dontPrettyTextNodes){for(at=ge.children,Pe=0,ze=at.length;Pe<ze;Pe++)if(Te=at[Pe],(Te.type===te.Text||Te.type===te.Raw)&&Te.value!=null){_e.suppressPrettyCount++,Me=!0;break}}for(We+=">"+this.endline(ge,_e,be),_e.state=oe.InsideTag,$e=ge.children,Oe=0,Ge=$e.length;Oe<Ge;Oe++)Te=$e[Oe],We+=this.writeChildNode(Te,_e,be+1);_e.state=oe.CloseTag,We+=this.indent(ge,_e,be)+"</"+ge.name+">",Me&&_e.suppressPrettyCount--,We+=this.endline(ge,_e,be),_e.state=oe.None}return this.closeNode(ge,_e,be),We},xe.prototype.writeChildNode=function(ge,_e,be){switch(ge.type){case te.CData:return this.cdata(ge,_e,be);case te.Comment:return this.comment(ge,_e,be);case te.Element:return this.element(ge,_e,be);case te.Raw:return this.raw(ge,_e,be);case te.Text:return this.text(ge,_e,be);case te.ProcessingInstruction:return this.processingInstruction(ge,_e,be);case te.Dummy:return"";case te.Declaration:return this.declaration(ge,_e,be);case te.DocType:return this.docType(ge,_e,be);case te.AttributeDeclaration:return this.dtdAttList(ge,_e,be);case te.ElementDeclaration:return this.dtdElement(ge,_e,be);case te.EntityDeclaration:return this.dtdEntity(ge,_e,be);case te.NotationDeclaration:return this.dtdNotation(ge,_e,be);default:throw new Error("Unknown XML node type: "+ge.constructor.name)}},xe.prototype.processingInstruction=function(ge,_e,be){var Ae;return this.openNode(ge,_e,be),_e.state=oe.OpenTag,Ae=this.indent(ge,_e,be)+"<?",_e.state=oe.InsideTag,Ae+=ge.target,ge.value&&(Ae+=" "+ge.value),_e.state=oe.CloseTag,Ae+=_e.spaceBeforeSlash+"?>",Ae+=this.endline(ge,_e,be),_e.state=oe.None,this.closeNode(ge,_e,be),Ae},xe.prototype.raw=function(ge,_e,be){var Ae;return this.openNode(ge,_e,be),_e.state=oe.OpenTag,Ae=this.indent(ge,_e,be),_e.state=oe.InsideTag,Ae+=ge.value,_e.state=oe.CloseTag,Ae+=this.endline(ge,_e,be),_e.state=oe.None,this.closeNode(ge,_e,be),Ae},xe.prototype.text=function(ge,_e,be){var Ae;return this.openNode(ge,_e,be),_e.state=oe.OpenTag,Ae=this.indent(ge,_e,be),_e.state=oe.InsideTag,Ae+=ge.value,_e.state=oe.CloseTag,Ae+=this.endline(ge,_e,be),_e.state=oe.None,this.closeNode(ge,_e,be),Ae},xe.prototype.dtdAttList=function(ge,_e,be){var Ae;return this.openNode(ge,_e,be),_e.state=oe.OpenTag,Ae=this.indent(ge,_e,be)+"<!ATTLIST",_e.state=oe.InsideTag,Ae+=" "+ge.elementName+" "+ge.attributeName+" "+ge.attributeType,ge.defaultValueType!=="#DEFAULT"&&(Ae+=" "+ge.defaultValueType),ge.defaultValue&&(Ae+=' "'+ge.defaultValue+'"'),_e.state=oe.CloseTag,Ae+=_e.spaceBeforeSlash+">"+this.endline(ge,_e,be),_e.state=oe.None,this.closeNode(ge,_e,be),Ae},xe.prototype.dtdElement=function(ge,_e,be){var Ae;return this.openNode(ge,_e,be),_e.state=oe.OpenTag,Ae=this.indent(ge,_e,be)+"<!ELEMENT",_e.state=oe.InsideTag,Ae+=" "+ge.name+" "+ge.value,_e.state=oe.CloseTag,Ae+=_e.spaceBeforeSlash+">"+this.endline(ge,_e,be),_e.state=oe.None,this.closeNode(ge,_e,be),Ae},xe.prototype.dtdEntity=function(ge,_e,be){var Ae;return this.openNode(ge,_e,be),_e.state=oe.OpenTag,Ae=this.indent(ge,_e,be)+"<!ENTITY",_e.state=oe.InsideTag,ge.pe&&(Ae+=" %"),Ae+=" "+ge.name,ge.value?Ae+=' "'+ge.value+'"':(ge.pubID&&ge.sysID?Ae+=' PUBLIC "'+ge.pubID+'" "'+ge.sysID+'"':ge.sysID&&(Ae+=' SYSTEM "'+ge.sysID+'"'),ge.nData&&(Ae+=" NDATA "+ge.nData)),_e.state=oe.CloseTag,Ae+=_e.spaceBeforeSlash+">"+this.endline(ge,_e,be),_e.state=oe.None,this.closeNode(ge,_e,be),Ae},xe.prototype.dtdNotation=function(ge,_e,be){var Ae;return this.openNode(ge,_e,be),_e.state=oe.OpenTag,Ae=this.indent(ge,_e,be)+"<!NOTATION",_e.state=oe.InsideTag,Ae+=" "+ge.name,ge.pubID&&ge.sysID?Ae+=' PUBLIC "'+ge.pubID+'" "'+ge.sysID+'"':ge.pubID?Ae+=' PUBLIC "'+ge.pubID+'"':ge.sysID&&(Ae+=' SYSTEM "'+ge.sysID+'"'),_e.state=oe.CloseTag,Ae+=_e.spaceBeforeSlash+">"+this.endline(ge,_e,be),_e.state=oe.None,this.closeNode(ge,_e,be),Ae},xe.prototype.openNode=function(ge,_e,be){},xe.prototype.closeNode=function(ge,_e,be){},xe.prototype.openAttribute=function(ge,_e,be){},xe.prototype.closeAttribute=function(ge,_e,be){},xe}()}).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(a,he,de){(function(){var te,oe,ne,ee,se,z,x,b,E,re;re=a("./Utility"),b=re.assign,E=re.isFunction,ne=a("./XMLDOMImplementation"),ee=a("./XMLDocument"),se=a("./XMLDocumentCB"),x=a("./XMLStringWriter"),z=a("./XMLStreamWriter"),te=a("./NodeType"),oe=a("./WriterState"),he.exports.create=function(ae,le,fe,ce){var ue,ye;if(ae==null)throw new Error("Root element needs a name.");return ce=b({},le,fe,ce),ue=new ee(ce),ye=ue.element(ae),ce.headless||(ue.declaration(ce),(ce.pubID!=null||ce.sysID!=null)&&ue.dtd(ce)),ye},he.exports.begin=function(ae,le,fe){var ce;return E(ae)&&(ce=[ae,le],le=ce[0],fe=ce[1],ae={}),le?new se(ae,le,fe):new ee(ae)},he.exports.stringWriter=function(ae){return new x(ae)},he.exports.streamWriter=function(ae,le){return new z(ae,le)},he.exports.implementation=new ne,he.exports.nodeType=te,he.exports.writerState=oe}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(a,he,de){he.exports=oe;var te=Object.prototype.hasOwnProperty;function oe(){for(var ne={},ee=0;ee<arguments.length;ee++){var se=arguments[ee];for(var z in se)te.call(se,z)&&(ne[z]=se[z])}return ne}},{}],461:[function(a,he,de){"use strict";a("core-js/modules/es.array.fill.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.array.slice.js");var te=a("buffer").Buffer,oe=a("./sha"),ne=a("./md5"),ee={sha1:oe,md5:ne},se=64,z=te.alloc(se);z.fill(0);function x(re,ae,le){te.isBuffer(ae)||(ae=te.from(ae)),te.isBuffer(le)||(le=te.from(le)),ae.length>se?ae=re(ae):ae.length<se&&(ae=te.concat([ae,z],se));for(var fe=te.alloc(se),ce=te.alloc(se),ue=0;ue<se;ue++)fe[ue]=ae[ue]^54,ce[ue]=ae[ue]^92;var ye=re(te.concat([fe,le]));return re(te.concat([ce,ye]))}function b(re,ae){re=re||"sha1";var le=ee[re],fe=[],ce=0;return le||E("algorithm:",re,"is not yet supported"),{update:function(ye){return te.isBuffer(ye)||(ye=te.from(ye)),fe.push(ye),ce+=ye.length,this},digest:function(ye){var Se=te.concat(fe),we=ae?x(le,ae,Se):le(Se);return fe=null,ye?we.toString(ye):we}}}function E(){var re=[].slice.call(arguments).join(" ");throw new Error([re,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}de.createHash=function(re){return b(re)},de.createHmac=function(re,ae){return b(re,ae)},de.createCredentials=function(){E("sorry,createCredentials is not implemented yet")},de.createCipher=function(){E("sorry,createCipher is not implemented yet")},de.createCipheriv=function(){E("sorry,createCipheriv is not implemented yet")},de.createDecipher=function(){E("sorry,createDecipher is not implemented yet")},de.createDecipheriv=function(){E("sorry,createDecipheriv is not implemented yet")},de.createSign=function(){E("sorry,createSign is not implemented yet")},de.createVerify=function(){E("sorry,createVerify is not implemented yet")},de.createDiffieHellman=function(){E("sorry,createDiffieHellman is not implemented yet")},de.pbkdf2=function(){E("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(a,he,de){"use strict";a("core-js/modules/es.array.fill.js"),a("core-js/modules/es.array.concat.js");var te=a("buffer").Buffer,oe=4,ne=te.alloc(oe);ne.fill(0);var ee=8;function se(b,E){if(b.length%oe!==0){var re=b.length+(oe-b.length%oe);b=te.concat([b,ne],re)}for(var ae=[],le=E?b.readInt32BE:b.readInt32LE,fe=0;fe<b.length;fe+=oe)ae.push(le.call(b,fe));return ae}function z(b,E,re){for(var ae=te.alloc(E),le=re?ae.writeInt32BE:ae.writeInt32LE,fe=0;fe<b.length;fe++)le.call(ae,b[fe],fe*4,!0);return ae}function x(b,E,re,ae){te.isBuffer(b)||(b=te.from(b));var le=E(se(b,ae),b.length*ee);return z(le,re,ae)}he.exports={hash:x}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(a,he,de){"use strict";var te=a("./helpers");function oe(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function ne(ae,le){ae[le>>5]|=128<<le%32,ae[(le+64>>>9<<4)+14]=le;for(var fe=1732584193,ce=-271733879,ue=-1732584194,ye=271733878,Se=0;Se<ae.length;Se+=16){var we=fe,xe=ce,ge=ue,_e=ye;fe=se(fe,ce,ue,ye,ae[Se+0],7,-680876936),ye=se(ye,fe,ce,ue,ae[Se+1],12,-389564586),ue=se(ue,ye,fe,ce,ae[Se+2],17,606105819),ce=se(ce,ue,ye,fe,ae[Se+3],22,-1044525330),fe=se(fe,ce,ue,ye,ae[Se+4],7,-176418897),ye=se(ye,fe,ce,ue,ae[Se+5],12,1200080426),ue=se(ue,ye,fe,ce,ae[Se+6],17,-1473231341),ce=se(ce,ue,ye,fe,ae[Se+7],22,-45705983),fe=se(fe,ce,ue,ye,ae[Se+8],7,1770035416),ye=se(ye,fe,ce,ue,ae[Se+9],12,-1958414417),ue=se(ue,ye,fe,ce,ae[Se+10],17,-42063),ce=se(ce,ue,ye,fe,ae[Se+11],22,-1990404162),fe=se(fe,ce,ue,ye,ae[Se+12],7,1804603682),ye=se(ye,fe,ce,ue,ae[Se+13],12,-40341101),ue=se(ue,ye,fe,ce,ae[Se+14],17,-1502002290),ce=se(ce,ue,ye,fe,ae[Se+15],22,1236535329),fe=z(fe,ce,ue,ye,ae[Se+1],5,-165796510),ye=z(ye,fe,ce,ue,ae[Se+6],9,-1069501632),ue=z(ue,ye,fe,ce,ae[Se+11],14,643717713),ce=z(ce,ue,ye,fe,ae[Se+0],20,-373897302),fe=z(fe,ce,ue,ye,ae[Se+5],5,-701558691),ye=z(ye,fe,ce,ue,ae[Se+10],9,38016083),ue=z(ue,ye,fe,ce,ae[Se+15],14,-660478335),ce=z(ce,ue,ye,fe,ae[Se+4],20,-405537848),fe=z(fe,ce,ue,ye,ae[Se+9],5,568446438),ye=z(ye,fe,ce,ue,ae[Se+14],9,-1019803690),ue=z(ue,ye,fe,ce,ae[Se+3],14,-187363961),ce=z(ce,ue,ye,fe,ae[Se+8],20,1163531501),fe=z(fe,ce,ue,ye,ae[Se+13],5,-1444681467),ye=z(ye,fe,ce,ue,ae[Se+2],9,-51403784),ue=z(ue,ye,fe,ce,ae[Se+7],14,1735328473),ce=z(ce,ue,ye,fe,ae[Se+12],20,-1926607734),fe=x(fe,ce,ue,ye,ae[Se+5],4,-378558),ye=x(ye,fe,ce,ue,ae[Se+8],11,-2022574463),ue=x(ue,ye,fe,ce,ae[Se+11],16,1839030562),ce=x(ce,ue,ye,fe,ae[Se+14],23,-35309556),fe=x(fe,ce,ue,ye,ae[Se+1],4,-1530992060),ye=x(ye,fe,ce,ue,ae[Se+4],11,1272893353),ue=x(ue,ye,fe,ce,ae[Se+7],16,-155497632),ce=x(ce,ue,ye,fe,ae[Se+10],23,-1094730640),fe=x(fe,ce,ue,ye,ae[Se+13],4,681279174),ye=x(ye,fe,ce,ue,ae[Se+0],11,-358537222),ue=x(ue,ye,fe,ce,ae[Se+3],16,-722521979),ce=x(ce,ue,ye,fe,ae[Se+6],23,76029189),fe=x(fe,ce,ue,ye,ae[Se+9],4,-640364487),ye=x(ye,fe,ce,ue,ae[Se+12],11,-421815835),ue=x(ue,ye,fe,ce,ae[Se+15],16,530742520),ce=x(ce,ue,ye,fe,ae[Se+2],23,-995338651),fe=b(fe,ce,ue,ye,ae[Se+0],6,-198630844),ye=b(ye,fe,ce,ue,ae[Se+7],10,1126891415),ue=b(ue,ye,fe,ce,ae[Se+14],15,-1416354905),ce=b(ce,ue,ye,fe,ae[Se+5],21,-57434055),fe=b(fe,ce,ue,ye,ae[Se+12],6,1700485571),ye=b(ye,fe,ce,ue,ae[Se+3],10,-1894986606),ue=b(ue,ye,fe,ce,ae[Se+10],15,-1051523),ce=b(ce,ue,ye,fe,ae[Se+1],21,-2054922799),fe=b(fe,ce,ue,ye,ae[Se+8],6,1873313359),ye=b(ye,fe,ce,ue,ae[Se+15],10,-30611744),ue=b(ue,ye,fe,ce,ae[Se+6],15,-1560198380),ce=b(ce,ue,ye,fe,ae[Se+13],21,1309151649),fe=b(fe,ce,ue,ye,ae[Se+4],6,-145523070),ye=b(ye,fe,ce,ue,ae[Se+11],10,-1120210379),ue=b(ue,ye,fe,ce,ae[Se+2],15,718787259),ce=b(ce,ue,ye,fe,ae[Se+9],21,-343485551),fe=E(fe,we),ce=E(ce,xe),ue=E(ue,ge),ye=E(ye,_e)}return Array(fe,ce,ue,ye)}function ee(ae,le,fe,ce,ue,ye){return E(re(E(E(le,ae),E(ce,ye)),ue),fe)}function se(ae,le,fe,ce,ue,ye,Se){return ee(le&fe|~le&ce,ae,le,ue,ye,Se)}function z(ae,le,fe,ce,ue,ye,Se){return ee(le&ce|fe&~ce,ae,le,ue,ye,Se)}function x(ae,le,fe,ce,ue,ye,Se){return ee(le^fe^ce,ae,le,ue,ye,Se)}function b(ae,le,fe,ce,ue,ye,Se){return ee(fe^(le|~ce),ae,le,ue,ye,Se)}function E(ae,le){var fe=(ae&65535)+(le&65535),ce=(ae>>16)+(le>>16)+(fe>>16);return ce<<16|fe&65535}function re(ae,le){return ae<<le|ae>>>32-le}he.exports=function(le){return te.hash(le,ne,16)}},{"./helpers":462}],464:[function(a,he,de){"use strict";var te=a("./helpers");function oe(x,b){x[b>>5]|=128<<24-b%32,x[(b+64>>9<<4)+15]=b;for(var E=Array(80),re=1732584193,ae=-271733879,le=-1732584194,fe=271733878,ce=-1009589776,ue=0;ue<x.length;ue+=16){for(var ye=re,Se=ae,we=le,xe=fe,ge=ce,_e=0;_e<80;_e++){_e<16?E[_e]=x[ue+_e]:E[_e]=z(E[_e-3]^E[_e-8]^E[_e-14]^E[_e-16],1);var be=se(se(z(re,5),ne(_e,ae,le,fe)),se(se(ce,E[_e]),ee(_e)));ce=fe,fe=le,le=z(ae,30),ae=re,re=be}re=se(re,ye),ae=se(ae,Se),le=se(le,we),fe=se(fe,xe),ce=se(ce,ge)}return Array(re,ae,le,fe,ce)}function ne(x,b,E,re){return x<20?b&E|~b&re:x<40?b^E^re:x<60?b&E|b&re|E&re:b^E^re}function ee(x){return x<20?1518500249:x<40?1859775393:x<60?-1894007588:-899497514}function se(x,b){var E=(x&65535)+(b&65535),re=(x>>16)+(b>>16)+(E>>16);return re<<16|E&65535}function z(x,b){return x<<b|x>>>32-b}he.exports=function(b){return te.hash(b,oe,20,!0)}},{"./helpers":462}],465:[function(a,he,de){"use strict";he.exports=function(){return function(){}}},{}],466:[function(a,he,de){(function(te){(function(){"use strict";var oe=a("@babel/runtime/helpers/interopRequireDefault"),ne=oe(a("@babel/runtime/helpers/typeof")),ee=a("stream"),se=ee.Stream,z=a("../lib/common/utils/isArray"),x=z.isArray;he.exports.string=function(re){return typeof re=="string"},he.exports.array=x,he.exports.buffer=te.isBuffer;function b(E){return E instanceof se}he.exports.writableStream=function(re){return b(re)&&typeof re._write=="function"&&(0,ne.default)(re._writableState)==="object"}}).call(this)}).call(this,{isBuffer:a("../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(a,he,de){"use strict";var te=a("immediate"),oe=he.exports={};oe.nextTick=te,oe.title="browser",oe.browser=!0,oe.env={},oe.argv=[],oe.version="",oe.versions={};function ne(){}oe.on=ne,oe.addListener=ne,oe.once=ne,oe.off=ne,oe.removeListener=ne,oe.removeAllListeners=ne,oe.emit=ne,oe.prependListener=ne,oe.prependOnceListener=ne,oe.listeners=function(ee){return[]},oe.binding=function(ee){throw new Error("process.binding is not supported")},oe.cwd=function(){return"/"},oe.chdir=function(ee){throw new Error("process.chdir is not supported")},oe.umask=function(){return 0}},{immediate:358}],468:[function(a,he,de){(function(te){(function(){"use strict";a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.search.js");var oe=a("./lib/request"),ne=a("./lib/response"),ee=a("xtend"),se=a("builtin-status-codes"),z=a("url"),x=de;x.request=function(b,E){typeof b=="string"?b=z.parse(b):b=ee(b);var re=te.location.protocol.search(/^https?:$/)===-1?"http:":"",ae=b.protocol||re,le=b.hostname||b.host,fe=b.port,ce=b.path||"/";le&&le.indexOf(":")!==-1&&(le="["+le+"]"),b.url=(le?ae+"//"+le:"")+(fe?":"+fe:"")+ce,b.method=(b.method||"GET").toUpperCase(),b.headers=b.headers||{};var ue=new oe(b);return E&&ue.on("response",E),ue},x.get=function(E,re){var ae=x.request(E,re);return ae.end(),ae},x.ClientRequest=oe,x.IncomingMessage=ne.IncomingMessage,x.Agent=function(){},x.Agent.defaultMaxSockets=4,x.globalAgent=new x.Agent,x.STATUS_CODES=se,x.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 pt!="undefined"?pt: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(a,he,de){(function(te){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array-buffer.constructor.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.array.slice.js"),de.fetch=x(te.fetch)&&x(te.ReadableStream),de.writableStream=x(te.WritableStream),de.abortController=x(te.AbortController),de.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),de.blobConstructor=!0}catch(b){}var oe;function ne(){if(oe!==void 0)return oe;if(te.XMLHttpRequest){oe=new te.XMLHttpRequest;try{oe.open("GET",te.XDomainRequest?"/":"https://example.com")}catch(b){oe=null}}else oe=null;return oe}function ee(b){var E=ne();if(!E)return!1;try{return E.responseType=b,E.responseType===b}catch(re){}return!1}var se=typeof te.ArrayBuffer!="undefined",z=se&&x(te.ArrayBuffer.prototype.slice);de.arraybuffer=de.fetch||se&&ee("arraybuffer"),de.msstream=!de.fetch&&z&&ee("ms-stream"),de.mozchunkedarraybuffer=!de.fetch&&se&&ee("moz-chunked-arraybuffer"),de.overrideMimeType=de.fetch||(ne()?x(ne().overrideMimeType):!1),de.vbArray=x(te.VBArray);function x(b){return typeof b=="function"}oe=null}).call(this)}).call(this,typeof pt!="undefined"?pt: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(a,he,de){(function(te,oe,ne){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js");var ee=a("./capability"),se=a("inherits"),z=a("./response"),x=a("readable-stream"),b=a("to-arraybuffer"),E=z.IncomingMessage,re=z.readyStates;function ae(ue,ye){return ee.fetch&&ye?"fetch":ee.mozchunkedarraybuffer?"moz-chunked-arraybuffer":ee.msstream?"ms-stream":ee.arraybuffer&&ue?"arraybuffer":ee.vbArray&&ue?"text:vbarray":"text"}var le=he.exports=function(ue){var ye=this;x.Writable.call(ye),ye._opts=ue,ye._body=[],ye._headers={},ue.auth&&ye.setHeader("Authorization","Basic "+new ne(ue.auth).toString("base64")),Object.keys(ue.headers).forEach(function(xe){ye.setHeader(xe,ue.headers[xe])});var Se,we=!0;if(ue.mode==="disable-fetch"||"requestTimeout"in ue&&!ee.abortController)we=!1,Se=!0;else if(ue.mode==="prefer-streaming")Se=!1;else if(ue.mode==="allow-wrong-content-type")Se=!ee.overrideMimeType;else if(!ue.mode||ue.mode==="default"||ue.mode==="prefer-fast")Se=!0;else throw new Error("Invalid value for opts.mode");ye._mode=ae(Se,we),ye._fetchTimer=null,ye.on("finish",function(){ye._onFinish()})};se(le,x.Writable),le.prototype.setHeader=function(ue,ye){var Se=this,we=ue.toLowerCase();ce.indexOf(we)===-1&&(Se._headers[we]={name:ue,value:ye})},le.prototype.getHeader=function(ue){var ye=this._headers[ue.toLowerCase()];return ye?ye.value:null},le.prototype.removeHeader=function(ue){var ye=this;delete ye._headers[ue.toLowerCase()]},le.prototype._onFinish=function(){var ue=this;if(!ue._destroyed){var ye=ue._opts,Se=ue._headers,we=null;ye.method!=="GET"&&ye.method!=="HEAD"&&(ee.arraybuffer?we=b(ne.concat(ue._body)):ee.blobConstructor?we=new oe.Blob(ue._body.map(function(Te){return b(Te)}),{type:(Se["content-type"]||{}).value||""}):we=ne.concat(ue._body).toString());var xe=[];if(Object.keys(Se).forEach(function(Te){var Le=Se[Te].name,ke=Se[Te].value;Array.isArray(ke)?ke.forEach(function(Pe){xe.push([Le,Pe])}):xe.push([Le,ke])}),ue._mode==="fetch"){var ge=null,_e=null;if(ee.abortController){var be=new AbortController;ge=be.signal,ue._fetchAbortController=be,"requestTimeout"in ye&&ye.requestTimeout!==0&&(ue._fetchTimer=oe.setTimeout(function(){ue.emit("requestTimeout"),ue._fetchAbortController&&ue._fetchAbortController.abort()},ye.requestTimeout))}oe.fetch(ue._opts.url,{method:ue._opts.method,headers:xe,body:we||void 0,mode:"cors",credentials:ye.withCredentials?"include":"same-origin",signal:ge}).then(function(Te){ue._fetchResponse=Te,ue._connect()},function(Te){oe.clearTimeout(ue._fetchTimer),ue._destroyed||ue.emit("error",Te)})}else{var Ae=ue._xhr=new oe.XMLHttpRequest;try{Ae.open(ue._opts.method,ue._opts.url,!0)}catch(Te){te.nextTick(function(){ue.emit("error",Te)});return}"responseType"in Ae&&(Ae.responseType=ue._mode.split(":")[0]),"withCredentials"in Ae&&(Ae.withCredentials=!!ye.withCredentials),ue._mode==="text"&&"overrideMimeType"in Ae&&Ae.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in ye&&(Ae.timeout=ye.requestTimeout,Ae.ontimeout=function(){ue.emit("requestTimeout")}),xe.forEach(function(Te){Ae.setRequestHeader(Te[0],Te[1])}),ue._response=null,Ae.onreadystatechange=function(){switch(Ae.readyState){case re.LOADING:case re.DONE:ue._onXHRProgress();break}},ue._mode==="moz-chunked-arraybuffer"&&(Ae.onprogress=function(){ue._onXHRProgress()}),Ae.onerror=function(){ue._destroyed||ue.emit("error",new Error("XHR error"))};try{Ae.send(we)}catch(Te){te.nextTick(function(){ue.emit("error",Te)});return}}}};function fe(ue){try{var ye=ue.status;return ye!==null&&ye!==0}catch(Se){return!1}}le.prototype._onXHRProgress=function(){var ue=this;!fe(ue._xhr)||ue._destroyed||(ue._response||ue._connect(),ue._response._onXHRProgress())},le.prototype._connect=function(){var ue=this;ue._destroyed||(ue._response=new E(ue._xhr,ue._fetchResponse,ue._mode,ue._fetchTimer),ue._response.on("error",function(ye){ue.emit("error",ye)}),ue.emit("response",ue._response))},le.prototype._write=function(ue,ye,Se){var we=this;we._body.push(ue),Se()},le.prototype.abort=le.prototype.destroy=function(){var ue=this;ue._destroyed=!0,oe.clearTimeout(ue._fetchTimer),ue._response&&(ue._response._destroyed=!0),ue._xhr?ue._xhr.abort():ue._fetchAbortController&&ue._fetchAbortController.abort()},le.prototype.end=function(ue,ye,Se){var we=this;typeof ue=="function"&&(Se=ue,ue=void 0),x.Writable.prototype.end.call(we,ue,ye,Se)},le.prototype.flushHeaders=function(){},le.prototype.setTimeout=function(){},le.prototype.setNoDelay=function(){},le.prototype.setSocketKeepAlive=function(){};var ce=["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,a("_process"),typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},a("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(a,he,de){(function(te,oe,ne){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.string.match.js"),a("core-js/modules/es.array.iterator.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.typed-array.uint8-array.js"),a("core-js/modules/es.typed-array.copy-within.js"),a("core-js/modules/es.typed-array.every.js"),a("core-js/modules/es.typed-array.fill.js"),a("core-js/modules/es.typed-array.filter.js"),a("core-js/modules/es.typed-array.find.js"),a("core-js/modules/es.typed-array.find-index.js"),a("core-js/modules/es.typed-array.for-each.js"),a("core-js/modules/es.typed-array.includes.js"),a("core-js/modules/es.typed-array.index-of.js"),a("core-js/modules/es.typed-array.iterator.js"),a("core-js/modules/es.typed-array.join.js"),a("core-js/modules/es.typed-array.last-index-of.js"),a("core-js/modules/es.typed-array.map.js"),a("core-js/modules/es.typed-array.reduce.js"),a("core-js/modules/es.typed-array.reduce-right.js"),a("core-js/modules/es.typed-array.reverse.js"),a("core-js/modules/es.typed-array.set.js"),a("core-js/modules/es.typed-array.slice.js"),a("core-js/modules/es.typed-array.some.js"),a("core-js/modules/es.typed-array.sort.js"),a("core-js/modules/es.typed-array.subarray.js"),a("core-js/modules/es.typed-array.to-locale-string.js"),a("core-js/modules/es.typed-array.to-string.js"),a("core-js/modules/es.array.slice.js");var ee=a("./capability"),se=a("inherits"),z=a("readable-stream"),x=de.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},b=de.IncomingMessage=function(E,re,ae,le){var fe=this;if(z.Readable.call(fe),fe._mode=ae,fe.headers={},fe.rawHeaders=[],fe.trailers={},fe.rawTrailers=[],fe.on("end",function(){te.nextTick(function(){fe.emit("close")})}),ae==="fetch"){var ce=function ge(){ye.read().then(function(_e){if(!fe._destroyed){if(_e.done){oe.clearTimeout(le),fe.push(null);return}fe.push(new ne(_e.value)),ge()}}).catch(function(_e){oe.clearTimeout(le),fe._destroyed||fe.emit("error",_e)})};if(fe._fetchResponse=re,fe.url=re.url,fe.statusCode=re.status,fe.statusMessage=re.statusText,re.headers.forEach(function(ge,_e){fe.headers[_e.toLowerCase()]=ge,fe.rawHeaders.push(_e,ge)}),ee.writableStream){var ue=new WritableStream({write:function(_e){return new Promise(function(be,Ae){fe._destroyed?Ae():fe.push(new ne(_e))?be():fe._resumeFetch=be})},close:function(){oe.clearTimeout(le),fe._destroyed||fe.push(null)},abort:function(_e){fe._destroyed||fe.emit("error",_e)}});try{re.body.pipeTo(ue).catch(function(ge){oe.clearTimeout(le),fe._destroyed||fe.emit("error",ge)});return}catch(ge){}}var ye=re.body.getReader();ce()}else{fe._xhr=E,fe._pos=0,fe.url=E.responseURL,fe.statusCode=E.status,fe.statusMessage=E.statusText;var Se=E.getAllResponseHeaders().split(/\r?\n/);if(Se.forEach(function(ge){var _e=ge.match(/^([^:]+):\s*(.*)/);if(_e){var be=_e[1].toLowerCase();be==="set-cookie"?(fe.headers[be]===void 0&&(fe.headers[be]=[]),fe.headers[be].push(_e[2])):fe.headers[be]!==void 0?fe.headers[be]+=", "+_e[2]:fe.headers[be]=_e[2],fe.rawHeaders.push(_e[1],_e[2])}}),fe._charset="x-user-defined",!ee.overrideMimeType){var we=fe.rawHeaders["mime-type"];if(we){var xe=we.match(/;\s*charset=([^;])(;|$)/);xe&&(fe._charset=xe[1].toLowerCase())}fe._charset||(fe._charset="utf-8")}}};se(b,z.Readable),b.prototype._read=function(){var E=this,re=E._resumeFetch;re&&(E._resumeFetch=null,re())},b.prototype._onXHRProgress=function(){var E=this,re=E._xhr,ae=null;switch(E._mode){case"text:vbarray":if(re.readyState!==x.DONE)break;try{ae=new oe.VBArray(re.responseBody).toArray()}catch(ye){}if(ae!==null){E.push(new ne(ae));break}case"text":try{ae=re.responseText}catch(ye){E._mode="text:vbarray";break}if(ae.length>E._pos){var le=ae.substr(E._pos);if(E._charset==="x-user-defined"){for(var fe=new ne(le.length),ce=0;ce<le.length;ce++)fe[ce]=le.charCodeAt(ce)&255;E.push(fe)}else E.push(le,E._charset);E._pos=ae.length}break;case"arraybuffer":if(re.readyState!==x.DONE||!re.response)break;ae=re.response,E.push(new ne(new Uint8Array(ae)));break;case"moz-chunked-arraybuffer":if(ae=re.response,re.readyState!==x.LOADING||!ae)break;E.push(new ne(new Uint8Array(ae)));break;case"ms-stream":if(ae=re.response,re.readyState!==x.LOADING)break;var ue=new oe.MSStreamReader;ue.onprogress=function(){ue.result.byteLength>E._pos&&(E.push(new ne(new Uint8Array(ue.result.slice(E._pos)))),E._pos=ue.result.byteLength)},ue.onload=function(){E.push(null)},ue.readAsArrayBuffer(ae);break}E._xhr.readyState===x.DONE&&E._mode!=="ms-stream"&&E.push(null)}}).call(this)}).call(this,a("_process"),typeof pt!="undefined"?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},a("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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/helpers/typeof"));a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.search.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.string.trim.js"),a("core-js/modules/es.string.match.js"),a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.splice.js");var ne=a("punycode"),ee=a("./util");de.parse=_e,de.resolve=Ae,de.resolveObject=Te,de.format=be,de.Url=se;function se(){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 z=/^([a-z0-9.+-]+:)/i,x=/:[0-9]*$/,b=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,E=["<",">",'"',"`"," ","\r",`
`," "],re=["{","}","|","\\","^","`"].concat(E),ae=["'"].concat(re),le=["%","/","?",";","#"].concat(ae),fe=["/","?","#"],ce=255,ue=/^[+a-z0-9A-Z_-]{0,63}$/,ye=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Se={javascript:!0,"javascript:":!0},we={javascript:!0,"javascript:":!0},xe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ge=a("querystring");function _e(Le,ke,Pe){if(Le&&ee.isObject(Le)&&Le instanceof se)return Le;var Oe=new se;return Oe.parse(Le,ke,Pe),Oe}se.prototype.parse=function(Le,ke,Pe){if(!ee.isString(Le))throw new TypeError("Parameter 'url' must be a string, not "+(0,oe.default)(Le));var Oe=Le.indexOf("?"),ze=Oe!==-1&&Oe<Le.indexOf("#")?"?":"#",Ge=Le.split(ze),tt=/\\/g;Ge[0]=Ge[0].replace(tt,"/"),Le=Ge.join(ze);var Me=Le;if(Me=Me.trim(),!Pe&&Le.split("#").length===1){var We=b.exec(Me);if(We)return this.path=Me,this.href=Me,this.pathname=We[1],We[2]?(this.search=We[2],ke?this.query=ge.parse(this.search.substr(1)):this.query=this.search.substr(1)):ke&&(this.search="",this.query={}),this}var it=z.exec(Me);if(it){it=it[0];var at=it.toLowerCase();this.protocol=at,Me=Me.substr(it.length)}if(Pe||it||Me.match(/^\/\/[^@\/]+@[^@\/]+/)){var $e=Me.substr(0,2)==="//";$e&&!(it&&we[it])&&(Me=Me.substr(2),this.slashes=!0)}if(!we[it]&&($e||it&&!xe[it])){for(var Je=-1,Ye=0;Ye<fe.length;Ye++){var Qe=Me.indexOf(fe[Ye]);Qe!==-1&&(Je===-1||Qe<Je)&&(Je=Qe)}var st,ot;Je===-1?ot=Me.lastIndexOf("@"):ot=Me.lastIndexOf("@",Je),ot!==-1&&(st=Me.slice(0,ot),Me=Me.slice(ot+1),this.auth=decodeURIComponent(st)),Je=-1;for(var Ye=0;Ye<le.length;Ye++){var Qe=Me.indexOf(le[Ye]);Qe!==-1&&(Je===-1||Qe<Je)&&(Je=Qe)}Je===-1&&(Je=Me.length),this.host=Me.slice(0,Je),Me=Me.slice(Je),this.parseHost(),this.hostname=this.hostname||"";var mt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!mt)for(var ft=this.hostname.split("."),Ye=0,qe=ft.length;Ye<qe;Ye++){var Be=ft[Ye];if(Be&&!Be.match(ue)){for(var lt="",Ne=0,rt=Be.length;Ne<rt;Ne++)Be.charCodeAt(Ne)>127?lt+="x":lt+=Be[Ne];if(!lt.match(ue)){var gt=ft.slice(0,Ye),yt=ft.slice(Ye+1),dt=Be.match(ye);dt&&(gt.push(dt[1]),yt.unshift(dt[2])),yt.length&&(Me="/"+yt.join(".")+Me),this.hostname=gt.join(".");break}}}this.hostname.length>ce?this.hostname="":this.hostname=this.hostname.toLowerCase(),mt||(this.hostname=ne.toASCII(this.hostname));var Ve=this.port?":"+this.port:"",He=this.hostname||"";this.host=He+Ve,this.href+=this.host,mt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Me[0]!=="/"&&(Me="/"+Me))}if(!Se[at])for(var Ye=0,qe=ae.length;Ye<qe;Ye++){var Ze=ae[Ye];if(Me.indexOf(Ze)!==-1){var et=encodeURIComponent(Ze);et===Ze&&(et=escape(Ze)),Me=Me.split(Ze).join(et)}}var Ie=Me.indexOf("#");Ie!==-1&&(this.hash=Me.substr(Ie),Me=Me.slice(0,Ie));var je=Me.indexOf("?");if(je!==-1?(this.search=Me.substr(je),this.query=Me.substr(je+1),ke&&(this.query=ge.parse(this.query)),Me=Me.slice(0,je)):ke&&(this.search="",this.query={}),Me&&(this.pathname=Me),xe[at]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ve=this.pathname||"",De=this.search||"";this.path=Ve+De}return this.href=this.format(),this};function be(Le){return ee.isString(Le)&&(Le=_e(Le)),Le instanceof se?Le.format():se.prototype.format.call(Le)}se.prototype.format=function(){var Le=this.auth||"";Le&&(Le=encodeURIComponent(Le),Le=Le.replace(/%3A/i,":"),Le+="@");var ke=this.protocol||"",Pe=this.pathname||"",Oe=this.hash||"",ze=!1,Ge="";this.host?ze=Le+this.host:this.hostname&&(ze=Le+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ze+=":"+this.port)),this.query&&ee.isObject(this.query)&&Object.keys(this.query).length&&(Ge=ge.stringify(this.query));var tt=this.search||Ge&&"?"+Ge||"";return ke&&ke.substr(-1)!==":"&&(ke+=":"),this.slashes||(!ke||xe[ke])&&ze!==!1?(ze="//"+(ze||""),Pe&&Pe.charAt(0)!=="/"&&(Pe="/"+Pe)):ze||(ze=""),Oe&&Oe.charAt(0)!=="#"&&(Oe="#"+Oe),tt&&tt.charAt(0)!=="?"&&(tt="?"+tt),Pe=Pe.replace(/[?#]/g,function(Me){return encodeURIComponent(Me)}),tt=tt.replace("#","%23"),ke+ze+Pe+tt+Oe};function Ae(Le,ke){return _e(Le,!1,!0).resolve(ke)}se.prototype.resolve=function(Le){return this.resolveObject(_e(Le,!1,!0)).format()};function Te(Le,ke){return Le?_e(Le,!1,!0).resolveObject(ke):ke}se.prototype.resolveObject=function(Le){if(ee.isString(Le)){var ke=new se;ke.parse(Le,!1,!0),Le=ke}for(var Pe=new se,Oe=Object.keys(this),ze=0;ze<Oe.length;ze++){var Ge=Oe[ze];Pe[Ge]=this[Ge]}if(Pe.hash=Le.hash,Le.href==="")return Pe.href=Pe.format(),Pe;if(Le.slashes&&!Le.protocol){for(var tt=Object.keys(Le),Me=0;Me<tt.length;Me++){var We=tt[Me];We!=="protocol"&&(Pe[We]=Le[We])}return xe[Pe.protocol]&&Pe.hostname&&!Pe.pathname&&(Pe.path=Pe.pathname="/"),Pe.href=Pe.format(),Pe}if(Le.protocol&&Le.protocol!==Pe.protocol){if(!xe[Le.protocol]){for(var it=Object.keys(Le),at=0;at<it.length;at++){var $e=it[at];Pe[$e]=Le[$e]}return Pe.href=Pe.format(),Pe}if(Pe.protocol=Le.protocol,!Le.host&&!we[Le.protocol]){for(var qe=(Le.pathname||"").split("/");qe.length&&!(Le.host=qe.shift()););Le.host||(Le.host=""),Le.hostname||(Le.hostname=""),qe[0]!==""&&qe.unshift(""),qe.length<2&&qe.unshift(""),Pe.pathname=qe.join("/")}else Pe.pathname=Le.pathname;if(Pe.search=Le.search,Pe.query=Le.query,Pe.host=Le.host||"",Pe.auth=Le.auth,Pe.hostname=Le.hostname||Le.host,Pe.port=Le.port,Pe.pathname||Pe.search){var Je=Pe.pathname||"",Ye=Pe.search||"";Pe.path=Je+Ye}return Pe.slashes=Pe.slashes||Le.slashes,Pe.href=Pe.format(),Pe}var Qe=Pe.pathname&&Pe.pathname.charAt(0)==="/",st=Le.host||Le.pathname&&Le.pathname.charAt(0)==="/",ot=st||Qe||Pe.host&&Le.pathname,mt=ot,ft=Pe.pathname&&Pe.pathname.split("/")||[],qe=Le.pathname&&Le.pathname.split("/")||[],Be=Pe.protocol&&!xe[Pe.protocol];if(Be&&(Pe.hostname="",Pe.port=null,Pe.host&&(ft[0]===""?ft[0]=Pe.host:ft.unshift(Pe.host)),Pe.host="",Le.protocol&&(Le.hostname=null,Le.port=null,Le.host&&(qe[0]===""?qe[0]=Le.host:qe.unshift(Le.host)),Le.host=null),ot=ot&&(qe[0]===""||ft[0]==="")),st)Pe.host=Le.host||Le.host===""?Le.host:Pe.host,Pe.hostname=Le.hostname||Le.hostname===""?Le.hostname:Pe.hostname,Pe.search=Le.search,Pe.query=Le.query,ft=qe;else if(qe.length)ft||(ft=[]),ft.pop(),ft=ft.concat(qe),Pe.search=Le.search,Pe.query=Le.query;else if(!ee.isNullOrUndefined(Le.search)){if(Be){Pe.hostname=Pe.host=ft.shift();var lt=Pe.host&&Pe.host.indexOf("@")>0?Pe.host.split("@"):!1;lt&&(Pe.auth=lt.shift(),Pe.host=Pe.hostname=lt.shift())}return Pe.search=Le.search,Pe.query=Le.query,(!ee.isNull(Pe.pathname)||!ee.isNull(Pe.search))&&(Pe.path=(Pe.pathname?Pe.pathname:"")+(Pe.search?Pe.search:"")),Pe.href=Pe.format(),Pe}if(!ft.length)return Pe.pathname=null,Pe.search?Pe.path="/"+Pe.search:Pe.path=null,Pe.href=Pe.format(),Pe;for(var Ne=ft.slice(-1)[0],rt=(Pe.host||Le.host||ft.length>1)&&(Ne==="."||Ne==="..")||Ne==="",gt=0,yt=ft.length;yt>=0;yt--)Ne=ft[yt],Ne==="."?ft.splice(yt,1):Ne===".."?(ft.splice(yt,1),gt++):gt&&(ft.splice(yt,1),gt--);if(!ot&&!mt)for(;gt--;gt)ft.unshift("..");ot&&ft[0]!==""&&(!ft[0]||ft[0].charAt(0)!=="/")&&ft.unshift(""),rt&&ft.join("/").substr(-1)!=="/"&&ft.push("");var dt=ft[0]===""||ft[0]&&ft[0].charAt(0)==="/";if(Be){Pe.hostname=Pe.host=dt?"":ft.length?ft.shift():"";var lt=Pe.host&&Pe.host.indexOf("@")>0?Pe.host.split("@"):!1;lt&&(Pe.auth=lt.shift(),Pe.host=Pe.hostname=lt.shift())}return ot=ot||Pe.host&&ft.length,ot&&!dt&&ft.unshift(""),ft.length?Pe.pathname=ft.join("/"):(Pe.pathname=null,Pe.path=null),(!ee.isNull(Pe.pathname)||!ee.isNull(Pe.search))&&(Pe.path=(Pe.pathname?Pe.pathname:"")+(Pe.search?Pe.search:"")),Pe.auth=Le.auth||Pe.auth,Pe.slashes=Pe.slashes||Le.slashes,Pe.href=Pe.format(),Pe},se.prototype.parseHost=function(){var Le=this.host,ke=x.exec(Le);ke&&(ke=ke[0],ke!==":"&&(this.port=ke.substr(1)),Le=Le.substr(0,Le.length-ke.length)),Le&&(this.hostname=Le)}},{"./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(a,he,de){"use strict";var te=a("@babel/runtime/helpers/interopRequireDefault"),oe=te(a("@babel/runtime/helpers/typeof"));he.exports={isString:function(ee){return typeof ee=="string"},isObject:function(ee){return(0,oe.default)(ee)==="object"&&ee!==null},isNull:function(ee){return ee===null},isNullOrUndefined:function(ee){return ee==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(a,he,de){"use strict";a("core-js/modules/es.number.constructor.js"),de.encodeURIComponent=function(te){try{return encodeURIComponent(te)}catch(oe){return te}},de.escape=a("escape-html"),de.timestamp=function(oe){if(oe){var ne=oe;return typeof ne=="string"&&(ne=Number(ne)),String(oe).length===10&&(ne*=1e3),new Date(ne)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(a,he,de){(function(te,oe){(function(){"use strict";var ne=a("@babel/runtime/helpers/interopRequireDefault"),ee=ne(a("@babel/runtime/helpers/typeof"));a("core-js/modules/es.string.trim.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.array.concat.js");var se=a("util"),z=a("url"),x=a("http"),b=a("https"),E=a("debug")("urllib"),re=a("humanize-ms"),ae=0,le=Math.pow(2,31)-10,fe=/^https?:\/\//i;function ce(we,xe){return we===void 0?xe:we}function ue(we){return we?we.split(";")[0].trim().toLowerCase():""}function ye(we,xe){return function(ge,_e,be){if(ge)return xe(ge);we({data:_e,status:be.statusCode,headers:be.headers,res:be})}}de.TIMEOUTS=[re("300s"),re("300s")];var Se=["json","text"];de.request=function(xe,ge,_e){return arguments.length===2&&typeof ge=="function"&&(_e=ge,ge=null),typeof _e=="function"?de.requestWithCallback(xe,ge,_e):new Promise(function(be,Ae){de.requestWithCallback(xe,ge,ye(be,Ae))})},de.requestWithCallback=function(xe,ge,_e){if(!xe||typeof xe!="string"&&(0,ee.default)(xe)!=="object"){var be=se.format("expect request url to be a string or a http request options, but got %j",xe);throw new Error(be)}arguments.length===2&&typeof ge=="function"&&(_e=ge,ge=null),ge=ge||{},ae>=le&&(ae=0);var Ae=++ae;ge.requestUrls=ge.requestUrls||[];var Te={requestId:Ae,url:xe,args:ge,ctx:ge.ctx};ge.emitter&&ge.emitter.emit("request",Te),ge.timeout=ge.timeout||de.TIMEOUTS,ge.maxRedirects=ge.maxRedirects||10,ge.streaming=ge.streaming||ge.customResponse;var Le=Date.now(),ke;typeof xe=="string"?(fe.test(xe)||(xe="https://"+xe),ke=z.parse(xe)):ke=xe;var Pe=(ge.type||ge.method||ke.method||"GET").toUpperCase(),Oe=ke.port||80,ze=x,Ge=ce(ge.agent,de.agent),tt=ge.fixJSONCtlChars;ke.protocol==="https:"&&(ze=b,Ge=ce(ge.httpsAgent,de.httpsAgent),ke.port||(Oe=443));var Me={host:ke.hostname||ke.host||"localhost",path:ke.path||"/",method:Pe,port:Oe,agent:Ge,headers:ge.headers||{},lookup:ge.lookup};Array.isArray(ge.timeout)?Me.requestTimeout=ge.timeout[ge.timeout.length-1]:typeof ge.timeout!="undefined"&&(Me.requestTimeout=ge.timeout);var We=ge.auth||ke.auth;We&&(Me.auth=We);var it=ge.content||ge.data,at=Pe==="GET"||Pe==="HEAD"||ge.dataAsQueryString;if(!ge.content&&it&&!(typeof it=="string"||oe.isBuffer(it)))if(at)it=ge.nestedQuerystring?qs.stringify(it):querystring.stringify(it);else{var $e=Me.headers["Content-Type"]||Me.headers["content-type"];$e||(ge.contentType==="json"?$e="application/json":$e="application/x-www-form-urlencoded",Me.headers["Content-Type"]=$e),ue($e)==="application/json"?it=JSON.stringify(it):it=ge.nestedQuerystring?qs.stringify(it):querystring.stringify(it)}at&&it&&(Me.path+=(ke.query?"&":"?")+it,it=null);var Je=0;if(it){var Ye=it.length;oe.isBuffer(it)||(Ye=oe.byteLength(it)),Je=Me.headers["Content-Length"]=Ye}ge.dataType==="json"&&(Me.headers.Accept="application/json"),typeof ge.beforeRequest=="function"&&ge.beforeRequest(Me);var Qe=null,st=null,ot=null,mt=!1,ft=!1,qe=0,Be=-1,lt=!1,Ne="",rt="",gt=null;ge.timing&&(gt={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function yt(){Qe&&(clearTimeout(Qe),Qe=null)}function dt(){st&&(clearTimeout(st),st=null)}function Ve(wt,Ot,Tt){if(dt(),!_e){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Ae,te.pid,Me.method,xe),wt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Ae,te.pid,wt.name,wt.message,wt.stack);return}var xt=_e;_e=null;var Nt={};Tt&&(Be=Tt.statusCode,Nt=Tt.headers);var Rt=Date.now()-Le;gt&&(gt.contentDownload=Rt),E("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Rt,qe,Be,Me.method,Me.host,Me.path,ft,gt);var Ut={status:Be,statusCode:Be,headers:Nt,size:qe,aborted:lt,rt:Rt,keepAliveSocket:ft,data:Ot,requestUrls:ge.requestUrls,timing:gt,remoteAddress:Ne,remotePort:rt};if(wt){var Qt="";Ge&&typeof Ge.getCurrentStatus=="function"&&(Qt=", agent status: "+JSON.stringify(Ge.getCurrentStatus())),wt.message+=", "+Me.method+" "+xe+" "+Be+" (connected: "+mt+", keepalive socket: "+ft+Qt+`)
headers: `+JSON.stringify(Nt),wt.data=Ot,wt.path=Me.path,wt.status=Be,wt.headers=Nt,wt.res=Ut}xt(wt,Ot,ge.streaming?Tt:Ut),ge.emitter&&(Te.url=xe,Te.socket=Fe&&Fe.connection,Te.options=Me,Te.size=Je,ge.emitter.emit("response",{requestId:Ae,error:wt,ctx:ge.ctx,req:Te,res:Ut}))}function He(wt){var Ot=null;if(ge.followRedirect&&statuses.redirect[wt.statusCode]){ge._followRedirectCount=(ge._followRedirectCount||0)+1;var Tt=wt.headers.location;if(!Tt)Ot=new Error("Got statusCode "+wt.statusCode+" but cannot resolve next location from headers"),Ot.name="FollowRedirectError";else if(ge._followRedirectCount>ge.maxRedirects)Ot=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+xe),Ot.name="MaxRedirectError";else{var xt=ge.formatRedirectUrl?ge.formatRedirectUrl(xe,Tt):z.resolve(xe,Tt);E("Request#%d %s: `redirected` from %s to %s",Ae,Me.path,xe,xt),dt(),ge.headers&&ge.headers.Host&&fe.test(Tt)&&(ge.headers.Host=null);var Nt=_e;return _e=null,de.requestWithCallback(xt,ge,Nt),{redirect:!0,error:null}}}return{redirect:!1,error:Ot}}ge.gzip&&!Me.headers["Accept-Encoding"]&&!Me.headers["accept-encoding"]&&(Me.headers["Accept-Encoding"]="gzip");function Ze(wt,Ot,Tt){var xt=wt.headers["content-encoding"];return Tt(null,Ot,xt)}var et=ge.writeStream;E("Request#%d %s %s with headers %j, options.path: %s",Ae,Pe,xe,Me.headers,Me.path),ge.requestUrls.push(xe);function Ie(wt){if(gt&&(gt.waiting=Date.now()-Le),E("Request#%d %s `req response` event emit: status %d, headers: %j",Ae,xe,wt.statusCode,wt.headers),ge.streaming){var Ot=He(wt);if(Ot.redirect){wt.resume();return}return Ot.error?(wt.resume(),Ve(Ot.error,null,wt)):Ve(null,null,wt)}if(wt.on("close",function(){E("Request#%d %s: `res close` event emit, total size %d",Ae,xe,qe)}),wt.on("error",function(){E("Request#%d %s: `res error` event emit, total size %d",Ae,xe,qe)}),wt.on("aborted",function(){lt=!0,E("Request#%d %s: `res aborted` event emit, total size %d",Ae,xe,qe)}),et){var Tt=He(wt);if(Tt.redirect){wt.resume();return}return Tt.error?(wt.resume(),et.end(),Ve(Tt.error,null,wt)):(ge.consumeWriteStream===!1?wt.on("end",Ve.bind(null,null,null,wt)):et.on("close",function(){E("Request#%d %s: writeStream close event emitted",Ae,xe),Ve(ot||null,null,wt)}),wt.pipe(et))}var xt=[];wt.on("data",function(Nt){E("Request#%d %s: `res data` event emit, size %d",Ae,xe,Nt.length),qe+=Nt.length,xt.push(Nt)}),wt.on("end",function(){var Nt=oe.concat(xt,qe);if(E("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Ae,xe,qe,wt._dumped),ot)return Ve(ot,Nt,wt);var Rt=He(wt);if(Rt.error)return Ve(Rt.error,Nt,wt);Rt.redirect||Ze(wt,Nt,function(Ut,Qt,or){if(Ut)return Ve(Ut,Nt,wt);if(!or&&Se.indexOf(ge.dataType)>=0){try{Qt=decodeBodyByCharset(Qt,wt)}catch(ir){return E("decodeBodyByCharset error: %s",ir),Ve(null,Qt,wt)}if(ge.dataType==="json")if(qe===0)Qt=null;else{var cr=parseJSON(Qt,tt);cr.error?Ut=cr.error:Qt=cr.data}}lt&&E("Request#%d %s: Remote socket was terminated before `response.end()` was called",Ae,xe),Ve(Ut,Qt,wt)})})}var je,De;Array.isArray(ge.timeout)?(je=re(ge.timeout[0]),De=re(ge.timeout[1])):je=De=re(ge.timeout),E("ConnectTimeout: %d, ResponseTimeout: %d",je,De);function Xe(){E("Connect timer ticking, timeout: %d",je),Qe=setTimeout(function(){Qe=null,Be===-1&&(Be=-2);var wt="Connect timeout for "+je+"ms",Ot="ConnectionTimeoutError";Fe.socket||(Ot="SocketAssignTimeoutError",wt+=", working sockets is full"),ot=new Error(wt),ot.name=Ot,ot.requestId=Ae,E("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Ae,xe,ot.name,wt,mt),vt()},je)}function ct(){E("Response timer ticking, timeout: %d",De),st=setTimeout(function(){st=null;var wt="Response timeout for "+De+"ms",Ot="ResponseTimeoutError";ot=new Error(wt),ot.name=Ot,ot.requestId=Ae,E("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Ae,xe,ot.name,wt,mt),vt()},De)}var Fe;Me.mode=ge.mode?ge.mode:"";try{Fe=ze.request(Me,Ie)}catch(wt){return Ve(wt)}typeof window=="undefined"?Xe():Fe.on("requestTimeout",function(){Be===-1&&(Be=-2);var wt="Connect timeout for "+je+"ms",Ot="ConnectionTimeoutError";ot=new Error(wt),ot.name=Ot,ot.requestId=Ae,vt()});function vt(){E("Request#%d %s abort, connected: %s",Ae,xe,mt),Fe.socket||(ot.noSocket=!0,Ve(ot)),Fe.abort()}return gt&&Fe.on("finish",function(){gt.requestSent=Date.now()-Le}),Fe.once("socket",function(wt){gt&&(gt.queuing=Date.now()-Le);var Ot=wt.readyState;if(Ot==="opening"){wt.once("lookup",function(Tt,xt,Nt){E("Request#%d %s lookup: %s, %s, %s",Ae,xe,Tt,xt,Nt),gt&&(gt.dnslookup=Date.now()-Le),xt&&(Ne=xt)}),wt.once("connect",function(){gt&&(gt.connected=Date.now()-Le),yt(),ct(),E("Request#%d %s new socket connected",Ae,xe),mt=!0,Ne||(Ne=wt.remoteAddress),rt=wt.remotePort});return}E("Request#%d %s reuse socket connected, readyState: %s",Ae,xe,Ot),mt=!0,ft=!0,Ne||(Ne=wt.remoteAddress),rt=wt.remotePort,yt(),ct()}),Fe.on("error",function(wt){(wt.name==="Error"||wt.name==="TypeError")&&(wt.name=mt?"ResponseError":"RequestError"),wt.message+=' (req "error")',E("Request#%d %s `req error` event emit, %s: %s",Ae,xe,wt.name,wt.message),Ve(ot||wt)}),et&&et.once("error",function(wt){wt.message+=' (writeStream "error")',ot=wt,E("Request#%d %s `writeStream error` event emit, %s: %s",Ae,xe,wt.name,wt.message),vt()}),ge.stream?(ge.stream.pipe(Fe),ge.stream.once("error",function(wt){wt.message+=' (stream "error")',ot=wt,E("Request#%d %s `readStream error` event emit, %s: %s",Ae,xe,wt.name,wt.message),vt()})):Fe.end(it),Fe.requestId=Ae,Fe}}).call(this)}).call(this,a("_process"),a("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)},57780:function(bt,pt,Ce){"use strict";Ce.r(pt),Ce.d(pt,{clsx:function(){return Ue}});function ve(a){var he,de,te="";if(typeof a=="string"||typeof a=="number")te+=a;else if(typeof a=="object")if(Array.isArray(a))for(he=0;he<a.length;he++)a[he]&&(de=ve(a[he]))&&(te&&(te+=" "),te+=de);else for(he in a)a[he]&&(te&&(te+=" "),te+=he);return te}function Ue(){for(var a,he,de=0,te="";de<arguments.length;)(a=arguments[de++])&&(he=ve(a))&&(te&&(te+=" "),te+=he);return te}pt.default=Ue},99498:function(bt,pt,Ce){(function(ve){ve(Ce(89780))})(function(ve){ve.defineOption("placeholder","",function(ne,ee,se){var z=se&&se!=ve.Init;if(ee&&!z)ne.on("blur",de),ne.on("change",te),ne.on("swapDoc",te),ve.on(ne.getInputField(),"compositionupdate",ne.state.placeholderCompose=function(){he(ne)}),te(ne);else if(!ee&&z){ne.off("blur",de),ne.off("change",te),ne.off("swapDoc",te),ve.off(ne.getInputField(),"compositionupdate",ne.state.placeholderCompose),Ue(ne);var x=ne.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}ee&&!ne.hasFocus()&&de(ne)});function Ue(ne){ne.state.placeholder&&(ne.state.placeholder.parentNode.removeChild(ne.state.placeholder),ne.state.placeholder=null)}function a(ne){Ue(ne);var ee=ne.state.placeholder=document.createElement("pre");ee.style.cssText="height: 0; overflow: visible",ee.style.direction=ne.getOption("direction"),ee.className="CodeMirror-placeholder CodeMirror-line-like";var se=ne.getOption("placeholder");typeof se=="string"&&(se=document.createTextNode(se)),ee.appendChild(se),ne.display.lineSpace.insertBefore(ee,ne.display.lineSpace.firstChild)}function he(ne){setTimeout(function(){var ee=!1,se=ne.getInputField();se.nodeName=="TEXTAREA"?ee=!se.value:ne.lineCount()==1&&(ee=!/[^\u200b]/.test(se.querySelector(".CodeMirror-line").textContent)),ee?a(ne):Ue(ne)},20)}function de(ne){oe(ne)&&a(ne)}function te(ne){var ee=ne.getWrapperElement(),se=oe(ne);ee.className=ee.className.replace(" CodeMirror-empty","")+(se?" CodeMirror-empty":""),se?a(ne):Ue(ne)}function oe(ne){return ne.lineCount()===1&&ne.getLine(0)===""}})},25717:function(bt,pt,Ce){(function(ve){ve(Ce(89780))})(function(ve){var Ue={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},a=ve.Pos;ve.defineOption("autoCloseBrackets",!1,function(re,ae,le){le&&le!=ve.Init&&(re.removeKeyMap(de),re.state.closeBrackets=null),ae&&(te(he(ae,"pairs")),re.state.closeBrackets=ae,re.addKeyMap(de))});function he(re,ae){return ae=="pairs"&&typeof re=="string"?re:typeof re=="object"&&re[ae]!=null?re[ae]:Ue[ae]}var de={Backspace:ee,Enter:se};function te(re){for(var ae=0;ae<re.length;ae++){var le=re.charAt(ae),fe="'"+le+"'";de[fe]||(de[fe]=oe(le))}}te(Ue.pairs+"`");function oe(re){return function(ae){return x(ae,re)}}function ne(re){var ae=re.state.closeBrackets;if(!ae||ae.override)return ae;var le=re.getModeAt(re.getCursor());return le.closeBrackets||ae}function ee(re){var ae=ne(re);if(!ae||re.getOption("disableInput"))return ve.Pass;for(var le=he(ae,"pairs"),fe=re.listSelections(),ce=0;ce<fe.length;ce++){if(!fe[ce].empty())return ve.Pass;var ue=b(re,fe[ce].head);if(!ue||le.indexOf(ue)%2!=0)return ve.Pass}for(var ce=fe.length-1;ce>=0;ce--){var ye=fe[ce].head;re.replaceRange("",a(ye.line,ye.ch-1),a(ye.line,ye.ch+1),"+delete")}}function se(re){var ae=ne(re),le=ae&&he(ae,"explode");if(!le||re.getOption("disableInput"))return ve.Pass;for(var fe=re.listSelections(),ce=0;ce<fe.length;ce++){if(!fe[ce].empty())return ve.Pass;var ue=b(re,fe[ce].head);if(!ue||le.indexOf(ue)%2!=0)return ve.Pass}re.operation(function(){var ye=re.lineSeparator()||`
`;re.replaceSelection(ye+ye,null),re.execCommand("goCharLeft"),fe=re.listSelections();for(var Se=0;Se<fe.length;Se++){var we=fe[Se].head.line;re.indentLine(we,null,!0),re.indentLine(we+1,null,!0)}})}function z(re){var ae=ve.cmpPos(re.anchor,re.head)>0;return{anchor:new a(re.anchor.line,re.anchor.ch+(ae?-1:1)),head:new a(re.head.line,re.head.ch+(ae?1:-1))}}function x(re,ae){var le=ne(re);if(!le||re.getOption("disableInput"))return ve.Pass;var fe=he(le,"pairs"),ce=fe.indexOf(ae);if(ce==-1)return ve.Pass;for(var ue=he(le,"closeBefore"),ye=he(le,"triples"),Se=fe.charAt(ce+1)==ae,we=re.listSelections(),xe=ce%2==0,ge,_e=0;_e<we.length;_e++){var be=we[_e],Ae=be.head,Te,Le=re.getRange(Ae,a(Ae.line,Ae.ch+1));if(xe&&!be.empty())Te="surround";else if((Se||!xe)&&Le==ae)Se&&E(re,Ae)?Te="both":ye.indexOf(ae)>=0&&re.getRange(Ae,a(Ae.line,Ae.ch+3))==ae+ae+ae?Te="skipThree":Te="skip";else if(Se&&Ae.ch>1&&ye.indexOf(ae)>=0&&re.getRange(a(Ae.line,Ae.ch-2),Ae)==ae+ae){if(Ae.ch>2&&/\bstring/.test(re.getTokenTypeAt(a(Ae.line,Ae.ch-2))))return ve.Pass;Te="addFour"}else if(Se){var ke=Ae.ch==0?" ":re.getRange(a(Ae.line,Ae.ch-1),Ae);if(!ve.isWordChar(Le)&&ke!=ae&&!ve.isWordChar(ke))Te="both";else return ve.Pass}else if(xe&&(Le.length===0||/\s/.test(Le)||ue.indexOf(Le)>-1))Te="both";else return ve.Pass;if(!ge)ge=Te;else if(ge!=Te)return ve.Pass}var Pe=ce%2?fe.charAt(ce-1):ae,Oe=ce%2?ae:fe.charAt(ce+1);re.operation(function(){if(ge=="skip")re.execCommand("goCharRight");else if(ge=="skipThree")for(var ze=0;ze<3;ze++)re.execCommand("goCharRight");else if(ge=="surround"){for(var Ge=re.getSelections(),ze=0;ze<Ge.length;ze++)Ge[ze]=Pe+Ge[ze]+Oe;re.replaceSelections(Ge,"around"),Ge=re.listSelections().slice();for(var ze=0;ze<Ge.length;ze++)Ge[ze]=z(Ge[ze]);re.setSelections(Ge)}else ge=="both"?(re.replaceSelection(Pe+Oe,null),re.triggerElectric(Pe+Oe),re.execCommand("goCharLeft")):ge=="addFour"&&(re.replaceSelection(Pe+Pe+Pe+Pe,"before"),re.execCommand("goCharRight"))})}function b(re,ae){var le=re.getRange(a(ae.line,ae.ch-1),a(ae.line,ae.ch+1));return le.length==2?le:null}function E(re,ae){var le=re.getTokenAt(a(ae.line,ae.ch+1));return/\bstring/.test(le.type)&&le.start==ae.ch&&(ae.ch==0||!/\bstring/.test(re.getTokenTypeAt(ae)))}})},6313:function(bt,pt,Ce){(function(ve){ve(Ce(89780),Ce(32855))})(function(ve){ve.defineOption("autoCloseTags",!1,function(ee,se,z){if(z!=ve.Init&&z&&ee.removeKeyMap("autoCloseTags"),!!se){var x={name:"autoCloseTags"};(typeof se!="object"||se.whenClosing!==!1)&&(x["'/'"]=function(b){return te(b)}),(typeof se!="object"||se.whenOpening!==!1)&&(x["'>'"]=function(b){return he(b)}),ee.addKeyMap(x)}});var Ue=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],a=["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 he(ee){if(ee.getOption("disableInput"))return ve.Pass;for(var se=ee.listSelections(),z=[],x=ee.getOption("autoCloseTags"),b=0;b<se.length;b++){if(!se[b].empty())return ve.Pass;var E=se[b].head,re=ee.getTokenAt(E),ae=ve.innerMode(ee.getMode(),re.state),le=ae.state,fe=ae.mode.xmlCurrentTag&&ae.mode.xmlCurrentTag(le),ce=fe&&fe.name;if(!ce)return ve.Pass;var ue=ae.mode.configuration=="html",ye=typeof x=="object"&&x.dontCloseTags||ue&&Ue,Se=typeof x=="object"&&x.indentTags||ue&&a;re.end>E.ch&&(ce=ce.slice(0,ce.length-re.end+E.ch));var we=ce.toLowerCase();if(!ce||re.type=="string"&&(re.end!=E.ch||!/[\"\']/.test(re.string.charAt(re.string.length-1))||re.string.length==1)||re.type=="tag"&&fe.close||re.string.indexOf("/")==E.ch-re.start-1||ye&&oe(ye,we)>-1||ne(ee,ae.mode.xmlCurrentContext&&ae.mode.xmlCurrentContext(le)||[],ce,E,!0))return ve.Pass;var xe=typeof x=="object"&&x.emptyTags;if(xe&&oe(xe,ce)>-1){z[b]={text:"/>",newPos:ve.Pos(E.line,E.ch+2)};continue}var ge=Se&&oe(Se,we)>-1;z[b]={indent:ge,text:">"+(ge?`
`:"")+"</"+ce+">",newPos:ge?ve.Pos(E.line+1,0):ve.Pos(E.line,E.ch+1)}}for(var _e=typeof x=="object"&&x.dontIndentOnAutoClose,b=se.length-1;b>=0;b--){var be=z[b];ee.replaceRange(be.text,se[b].head,se[b].anchor,"+insert");var Ae=ee.listSelections().slice(0);Ae[b]={head:be.newPos,anchor:be.newPos},ee.setSelections(Ae),!_e&&be.indent&&(ee.indentLine(be.newPos.line,null,!0),ee.indentLine(be.newPos.line+1,null,!0))}}function de(ee,se){for(var z=ee.listSelections(),x=[],b=se?"/":"</",E=ee.getOption("autoCloseTags"),re=typeof E=="object"&&E.dontIndentOnSlash,ae=0;ae<z.length;ae++){if(!z[ae].empty())return ve.Pass;var le=z[ae].head,fe=ee.getTokenAt(le),ce=ve.innerMode(ee.getMode(),fe.state),ue=ce.state;if(se&&(fe.type=="string"||fe.string.charAt(0)!="<"||fe.start!=le.ch-1))return ve.Pass;var ye,Se=ce.mode.name!="xml"&&ee.getMode().name=="htmlmixed";if(Se&&ce.mode.name=="javascript")ye=b+"script";else if(Se&&ce.mode.name=="css")ye=b+"style";else{var we=ce.mode.xmlCurrentContext&&ce.mode.xmlCurrentContext(ue);if(!we||we.length&&ne(ee,we,we[we.length-1],le))return ve.Pass;ye=b+we[we.length-1]}ee.getLine(le.line).charAt(fe.end)!=">"&&(ye+=">"),x[ae]=ye}if(ee.replaceSelections(x),z=ee.listSelections(),!re)for(var ae=0;ae<z.length;ae++)(ae==z.length-1||z[ae].head.line<z[ae+1].head.line)&&ee.indentLine(z[ae].head.line)}function te(ee){return ee.getOption("disableInput")?ve.Pass:de(ee,!0)}ve.commands.closeTag=function(ee){return de(ee)};function oe(ee,se){if(ee.indexOf)return ee.indexOf(se);for(var z=0,x=ee.length;z<x;++z)if(ee[z]==se)return z;return-1}function ne(ee,se,z,x,b){if(!ve.scanForClosingTag)return!1;var E=Math.min(ee.lastLine()+1,x.line+500),re=ve.scanForClosingTag(ee,x,null,E);if(!re||re.tag!=z)return!1;for(var ae=b?1:0,le=se.length-1;le>=0&&se[le]==z;le--)++ae;x=re.to;for(var le=1;le<ae;le++){var fe=ve.scanForClosingTag(ee,x,null,E);if(!fe||fe.tag!=z)return!1;x=fe.to}return!0}})},32855:function(bt,pt,Ce){(function(ve){ve(Ce(89780))})(function(ve){"use strict";var Ue=ve.Pos;function a(le,fe){return le.line-fe.line||le.ch-fe.ch}var he="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",de=he+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",te=new RegExp("<(/?)(["+he+"]["+de+"]*)","g");function oe(le,fe,ce,ue){this.line=fe,this.ch=ce,this.cm=le,this.text=le.getLine(fe),this.min=ue?Math.max(ue.from,le.firstLine()):le.firstLine(),this.max=ue?Math.min(ue.to-1,le.lastLine()):le.lastLine()}function ne(le,fe){var ce=le.cm.getTokenTypeAt(Ue(le.line,fe));return ce&&/\btag\b/.test(ce)}function ee(le){if(!(le.line>=le.max))return le.ch=0,le.text=le.cm.getLine(++le.line),!0}function se(le){if(!(le.line<=le.min))return le.text=le.cm.getLine(--le.line),le.ch=le.text.length,!0}function z(le){for(;;){var fe=le.text.indexOf(">",le.ch);if(fe==-1){if(ee(le))continue;return}if(!ne(le,fe+1)){le.ch=fe+1;continue}var ce=le.text.lastIndexOf("/",fe),ue=ce>-1&&!/\S/.test(le.text.slice(ce+1,fe));return le.ch=fe+1,ue?"selfClose":"regular"}}function x(le){for(;;){var fe=le.ch?le.text.lastIndexOf("<",le.ch-1):-1;if(fe==-1){if(se(le))continue;return}if(!ne(le,fe+1)){le.ch=fe;continue}te.lastIndex=fe,le.ch=fe;var ce=te.exec(le.text);if(ce&&ce.index==fe)return ce}}function b(le){for(;;){te.lastIndex=le.ch;var fe=te.exec(le.text);if(!fe){if(ee(le))continue;return}if(!ne(le,fe.index+1)){le.ch=fe.index+1;continue}return le.ch=fe.index+fe[0].length,fe}}function E(le){for(;;){var fe=le.ch?le.text.lastIndexOf(">",le.ch-1):-1;if(fe==-1){if(se(le))continue;return}if(!ne(le,fe+1)){le.ch=fe;continue}var ce=le.text.lastIndexOf("/",fe),ue=ce>-1&&!/\S/.test(le.text.slice(ce+1,fe));return le.ch=fe+1,ue?"selfClose":"regular"}}function re(le,fe){for(var ce=[];;){var ue=b(le),ye,Se=le.line,we=le.ch-(ue?ue[0].length:0);if(!ue||!(ye=z(le)))return;if(ye!="selfClose")if(ue[1]){for(var xe=ce.length-1;xe>=0;--xe)if(ce[xe]==ue[2]){ce.length=xe;break}if(xe<0&&(!fe||fe==ue[2]))return{tag:ue[2],from:Ue(Se,we),to:Ue(le.line,le.ch)}}else ce.push(ue[2])}}function ae(le,fe){for(var ce=[];;){var ue=E(le);if(!ue)return;if(ue=="selfClose"){x(le);continue}var ye=le.line,Se=le.ch,we=x(le);if(!we)return;if(we[1])ce.push(we[2]);else{for(var xe=ce.length-1;xe>=0;--xe)if(ce[xe]==we[2]){ce.length=xe;break}if(xe<0&&(!fe||fe==we[2]))return{tag:we[2],from:Ue(le.line,le.ch),to:Ue(ye,Se)}}}}ve.registerHelper("fold","xml",function(le,fe){for(var ce=new oe(le,fe.line,0);;){var ue=b(ce);if(!ue||ce.line!=fe.line)return;var ye=z(ce);if(!ye)return;if(!ue[1]&&ye!="selfClose"){var Se=Ue(ce.line,ce.ch),we=re(ce,ue[2]);return we&&a(we.from,Se)>0?{from:Se,to:we.from}:null}}}),ve.findMatchingTag=function(le,fe,ce){var ue=new oe(le,fe.line,fe.ch,ce);if(!(ue.text.indexOf(">")==-1&&ue.text.indexOf("<")==-1)){var ye=z(ue),Se=ye&&Ue(ue.line,ue.ch),we=ye&&x(ue);if(!(!ye||!we||a(ue,fe)>0)){var xe={from:Ue(ue.line,ue.ch),to:Se,tag:we[2]};return ye=="selfClose"?{open:xe,close:null,at:"open"}:we[1]?{open:ae(ue,we[2]),close:xe,at:"close"}:(ue=new oe(le,Se.line,Se.ch,ce),{open:xe,close:re(ue,we[2]),at:"open"})}}},ve.findEnclosingTag=function(le,fe,ce,ue){for(var ye=new oe(le,fe.line,fe.ch,ce);;){var Se=ae(ye,ue);if(!Se)break;var we=new oe(le,fe.line,fe.ch,ce),xe=re(we,Se.tag);if(xe)return{open:Se,close:xe}}},ve.scanForClosingTag=function(le,fe,ce,ue){var ye=new oe(le,fe.line,fe.ch,ue?{from:0,to:ue}:null);return re(ye,ce)}})},89780:function(bt){(function(pt,Ce){bt.exports=Ce()})(this,function(){"use strict";var pt=navigator.userAgent,Ce=navigator.platform,ve=/gecko\/\d/i.test(pt),Ue=/MSIE \d/.test(pt),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(pt),he=/Edge\/(\d+)/.exec(pt),de=Ue||a||he,te=de&&(Ue?document.documentMode||6:+(he||a)[1]),oe=!he&&/WebKit\//.test(pt),ne=oe&&/Qt\/\d+\.\d+/.test(pt),ee=!he&&/Chrome\//.test(pt),se=/Opera\//.test(pt),z=/Apple Computer/.test(navigator.vendor),x=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(pt),b=/PhantomJS/.test(pt),E=!he&&/AppleWebKit/.test(pt)&&/Mobile\/\w+/.test(pt),re=/Android/.test(pt),ae=E||re||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(pt),le=E||/Mac/.test(Ce),fe=/\bCrOS\b/.test(pt),ce=/win/i.test(Ce),ue=se&&pt.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(se=!1,oe=!0);var ye=le&&(ne||se&&(ue==null||ue<12.11)),Se=ve||de&&te>=9;function we(y){return new RegExp("(^|\\s)"+y+"(?:$|\\s)\\s*")}var xe=function(y,ie){var me=y.className,pe=we(ie).exec(me);if(pe){var Ee=me.slice(pe.index+pe[0].length);y.className=me.slice(0,pe.index)+(Ee?pe[1]+Ee:"")}};function ge(y){for(var ie=y.childNodes.length;ie>0;--ie)y.removeChild(y.firstChild);return y}function _e(y,ie){return ge(y).appendChild(ie)}function be(y,ie,me,pe){var Ee=document.createElement(y);if(me&&(Ee.className=me),pe&&(Ee.style.cssText=pe),typeof ie=="string")Ee.appendChild(document.createTextNode(ie));else if(ie)for(var Re=0;Re<ie.length;++Re)Ee.appendChild(ie[Re]);return Ee}function Ae(y,ie,me,pe){var Ee=be(y,ie,me,pe);return Ee.setAttribute("role","presentation"),Ee}var Te;document.createRange?Te=function(y,ie,me,pe){var Ee=document.createRange();return Ee.setEnd(pe||y,me),Ee.setStart(y,ie),Ee}:Te=function(y,ie,me){var pe=document.body.createTextRange();try{pe.moveToElementText(y.parentNode)}catch(Ee){return pe}return pe.collapse(!0),pe.moveEnd("character",me),pe.moveStart("character",ie),pe};function Le(y,ie){if(ie.nodeType==3&&(ie=ie.parentNode),y.contains)return y.contains(ie);do if(ie.nodeType==11&&(ie=ie.host),ie==y)return!0;while(ie=ie.parentNode)}function ke(){var y;try{y=document.activeElement}catch(ie){y=document.body||null}for(;y&&y.shadowRoot&&y.shadowRoot.activeElement;)y=y.shadowRoot.activeElement;return y}function Pe(y,ie){var me=y.className;we(ie).test(me)||(y.className+=(me?" ":"")+ie)}function Oe(y,ie){for(var me=y.split(" "),pe=0;pe<me.length;pe++)me[pe]&&!we(me[pe]).test(ie)&&(ie+=" "+me[pe]);return ie}var ze=function(y){y.select()};E?ze=function(y){y.selectionStart=0,y.selectionEnd=y.value.length}:de&&(ze=function(y){try{y.select()}catch(ie){}});function Ge(y){var ie=Array.prototype.slice.call(arguments,1);return function(){return y.apply(null,ie)}}function tt(y,ie,me){ie||(ie={});for(var pe in y)y.hasOwnProperty(pe)&&(me!==!1||!ie.hasOwnProperty(pe))&&(ie[pe]=y[pe]);return ie}function Me(y,ie,me,pe,Ee){ie==null&&(ie=y.search(/[^\s\u00a0]/),ie==-1&&(ie=y.length));for(var Re=pe||0,Ke=Ee||0;;){var nt=y.indexOf(" ",Re);if(nt<0||nt>=ie)return Ke+(ie-Re);Ke+=nt-Re,Ke+=me-Ke%me,Re=nt+1}}var We=function(){this.id=null,this.f=null,this.time=0,this.handler=Ge(this.onTimeout,this)};We.prototype.onTimeout=function(y){y.id=0,y.time<=+new Date?y.f():setTimeout(y.handler,y.time-+new Date)},We.prototype.set=function(y,ie){this.f=ie;var me=+new Date+y;(!this.id||me<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,y),this.time=me)};function it(y,ie){for(var me=0;me<y.length;++me)if(y[me]==ie)return me;return-1}var at=50,$e={toString:function(){return"CodeMirror.Pass"}},Je={scroll:!1},Ye={origin:"*mouse"},Qe={origin:"+move"};function st(y,ie,me){for(var pe=0,Ee=0;;){var Re=y.indexOf(" ",pe);Re==-1&&(Re=y.length);var Ke=Re-pe;if(Re==y.length||Ee+Ke>=ie)return pe+Math.min(Ke,ie-Ee);if(Ee+=Re-pe,Ee+=me-Ee%me,pe=Re+1,Ee>=ie)return pe}}var ot=[""];function mt(y){for(;ot.length<=y;)ot.push(ft(ot)+" ");return ot[y]}function ft(y){return y[y.length-1]}function qe(y,ie){for(var me=[],pe=0;pe<y.length;pe++)me[pe]=ie(y[pe],pe);return me}function Be(y,ie,me){for(var pe=0,Ee=me(ie);pe<y.length&&me(y[pe])<=Ee;)pe++;y.splice(pe,0,ie)}function lt(){}function Ne(y,ie){var me;return Object.create?me=Object.create(y):(lt.prototype=y,me=new lt),ie&&tt(ie,me),me}var rt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function gt(y){return/\w/.test(y)||y>"\x80"&&(y.toUpperCase()!=y.toLowerCase()||rt.test(y))}function yt(y,ie){return ie?ie.source.indexOf("\\w")>-1&&gt(y)?!0:ie.test(y):gt(y)}function dt(y){for(var ie in y)if(y.hasOwnProperty(ie)&&y[ie])return!1;return!0}var Ve=/[\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 He(y){return y.charCodeAt(0)>=768&&Ve.test(y)}function Ze(y,ie,me){for(;(me<0?ie>0:ie<y.length)&&He(y.charAt(ie));)ie+=me;return ie}function et(y,ie,me){for(var pe=ie>me?-1:1;;){if(ie==me)return ie;var Ee=(ie+me)/2,Re=pe<0?Math.ceil(Ee):Math.floor(Ee);if(Re==ie)return y(Re)?ie:me;y(Re)?me=Re:ie=Re+pe}}function Ie(y,ie,me,pe){if(!y)return pe(ie,me,"ltr",0);for(var Ee=!1,Re=0;Re<y.length;++Re){var Ke=y[Re];(Ke.from<me&&Ke.to>ie||ie==me&&Ke.to==ie)&&(pe(Math.max(Ke.from,ie),Math.min(Ke.to,me),Ke.level==1?"rtl":"ltr",Re),Ee=!0)}Ee||pe(ie,me,"ltr")}var je=null;function De(y,ie,me){var pe;je=null;for(var Ee=0;Ee<y.length;++Ee){var Re=y[Ee];if(Re.from<ie&&Re.to>ie)return Ee;Re.to==ie&&(Re.from!=Re.to&&me=="before"?pe=Ee:je=Ee),Re.from==ie&&(Re.from!=Re.to&&me!="before"?pe=Ee:je=Ee)}return pe!=null?pe:je}var Xe=function(){var y="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ie="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function me(ht){return ht<=247?y.charAt(ht):1424<=ht&&ht<=1524?"R":1536<=ht&&ht<=1785?ie.charAt(ht-1536):1774<=ht&&ht<=2220?"r":8192<=ht&&ht<=8203?"w":ht==8204?"b":"L"}var pe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Ee=/[stwN]/,Re=/[LRr]/,Ke=/[Lb1n]/,nt=/[1n]/;function ut(ht,St,At){this.level=ht,this.from=St,this.to=At}return function(ht,St){var At=St=="ltr"?"L":"R";if(ht.length==0||St=="ltr"&&!pe.test(ht))return!1;for(var Bt=ht.length,Pt=[],Zt=0;Zt<Bt;++Zt)Pt.push(me(ht.charCodeAt(Zt)));for(var Kt=0,$t=At;Kt<Bt;++Kt){var ar=Pt[Kt];ar=="m"?Pt[Kt]=$t:$t=ar}for(var pr=0,lr=At;pr<Bt;++pr){var vr=Pt[pr];vr=="1"&&lr=="r"?Pt[pr]="n":Re.test(vr)&&(lr=vr,vr=="r"&&(Pt[pr]="R"))}for(var Er=1,xr=Pt[0];Er<Bt-1;++Er){var Ir=Pt[Er];Ir=="+"&&xr=="1"&&Pt[Er+1]=="1"?Pt[Er]="1":Ir==","&&xr==Pt[Er+1]&&(xr=="1"||xr=="n")&&(Pt[Er]=xr),xr=Ir}for(var rn=0;rn<Bt;++rn){var Dn=Pt[rn];if(Dn==",")Pt[rn]="N";else if(Dn=="%"){var hn=void 0;for(hn=rn+1;hn<Bt&&Pt[hn]=="%";++hn);for(var si=rn&&Pt[rn-1]=="!"||hn<Bt&&Pt[hn]=="1"?"1":"N",ei=rn;ei<hn;++ei)Pt[ei]=si;rn=hn-1}}for(var bn=0,ti=At;bn<Bt;++bn){var jn=Pt[bn];ti=="L"&&jn=="1"?Pt[bn]="L":Re.test(jn)&&(ti=jn)}for(var _n=0;_n<Bt;++_n)if(Ee.test(Pt[_n])){var wn=void 0;for(wn=_n+1;wn<Bt&&Ee.test(Pt[wn]);++wn);for(var mn=(_n?Pt[_n-1]:At)=="L",ri=(wn<Bt?Pt[wn]:At)=="L",rs=mn==ri?mn?"L":"R":At,wo=_n;wo<wn;++wo)Pt[wo]=rs;_n=wn-1}for(var Nn=[],Qi,Mn=0;Mn<Bt;)if(Ke.test(Pt[Mn])){var Ra=Mn;for(++Mn;Mn<Bt&&Ke.test(Pt[Mn]);++Mn);Nn.push(new ut(0,Ra,Mn))}else{var io=Mn,jo=Nn.length,Lo=St=="rtl"?1:0;for(++Mn;Mn<Bt&&Pt[Mn]!="L";++Mn);for(var Kn=io;Kn<Mn;)if(nt.test(Pt[Kn])){io<Kn&&(Nn.splice(jo,0,new ut(1,io,Kn)),jo+=Lo);var ns=Kn;for(++Kn;Kn<Mn&&nt.test(Pt[Kn]);++Kn);Nn.splice(jo,0,new ut(2,ns,Kn)),jo+=Lo,io=Kn}else++Kn;io<Mn&&Nn.splice(jo,0,new ut(1,io,Mn))}return St=="ltr"&&(Nn[0].level==1&&(Qi=ht.match(/^\s+/))&&(Nn[0].from=Qi[0].length,Nn.unshift(new ut(0,0,Qi[0].length))),ft(Nn).level==1&&(Qi=ht.match(/\s+$/))&&(ft(Nn).to-=Qi[0].length,Nn.push(new ut(0,Bt-Qi[0].length,Bt)))),St=="rtl"?Nn.reverse():Nn}}();function ct(y,ie){var me=y.order;return me==null&&(me=y.order=Xe(y.text,ie)),me}var Fe=[],vt=function(y,ie,me){if(y.addEventListener)y.addEventListener(ie,me,!1);else if(y.attachEvent)y.attachEvent("on"+ie,me);else{var pe=y._handlers||(y._handlers={});pe[ie]=(pe[ie]||Fe).concat(me)}};function wt(y,ie){return y._handlers&&y._handlers[ie]||Fe}function Ot(y,ie,me){if(y.removeEventListener)y.removeEventListener(ie,me,!1);else if(y.detachEvent)y.detachEvent("on"+ie,me);else{var pe=y._handlers,Ee=pe&&pe[ie];if(Ee){var Re=it(Ee,me);Re>-1&&(pe[ie]=Ee.slice(0,Re).concat(Ee.slice(Re+1)))}}}function Tt(y,ie){var me=wt(y,ie);if(me.length)for(var pe=Array.prototype.slice.call(arguments,2),Ee=0;Ee<me.length;++Ee)me[Ee].apply(null,pe)}function xt(y,ie,me){return typeof ie=="string"&&(ie={type:ie,preventDefault:function(){this.defaultPrevented=!0}}),Tt(y,me||ie.type,y,ie),cr(ie)||ie.codemirrorIgnore}function Nt(y){var ie=y._handlers&&y._handlers.cursorActivity;if(ie)for(var me=y.curOp.cursorActivityHandlers||(y.curOp.cursorActivityHandlers=[]),pe=0;pe<ie.length;++pe)it(me,ie[pe])==-1&&me.push(ie[pe])}function Rt(y,ie){return wt(y,ie).length>0}function Ut(y){y.prototype.on=function(ie,me){vt(this,ie,me)},y.prototype.off=function(ie,me){Ot(this,ie,me)}}function Qt(y){y.preventDefault?y.preventDefault():y.returnValue=!1}function or(y){y.stopPropagation?y.stopPropagation():y.cancelBubble=!0}function cr(y){return y.defaultPrevented!=null?y.defaultPrevented:y.returnValue==!1}function ir(y){Qt(y),or(y)}function _r(y){return y.target||y.srcElement}function Fr(y){var ie=y.which;return ie==null&&(y.button&1?ie=1:y.button&2?ie=3:y.button&4&&(ie=2)),le&&y.ctrlKey&&ie==1&&(ie=3),ie}var Hr=function(){if(de&&te<9)return!1;var y=be("div");return"draggable"in y||"dragDrop"in y}(),Vr;function on(y){if(Vr==null){var ie=be("span","\u200B");_e(y,be("span",[ie,document.createTextNode("x")])),y.firstChild.offsetHeight!=0&&(Vr=ie.offsetWidth<=1&&ie.offsetHeight>2&&!(de&&te<8))}var me=Vr?be("span","\u200B"):be("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return me.setAttribute("cm-text",""),me}var yn;function Rr(y){if(yn!=null)return yn;var ie=_e(y,document.createTextNode("A\u062EA")),me=Te(ie,0,1).getBoundingClientRect(),pe=Te(ie,1,2).getBoundingClientRect();return ge(y),!me||me.left==me.right?!1:yn=pe.right-me.right<3}var Fn=`
b`.split(/\n/).length!=3?function(y){for(var ie=0,me=[],pe=y.length;ie<=pe;){var Ee=y.indexOf(`
`,ie);Ee==-1&&(Ee=y.length);var Re=y.slice(ie,y.charAt(Ee-1)=="\r"?Ee-1:Ee),Ke=Re.indexOf("\r");Ke!=-1?(me.push(Re.slice(0,Ke)),ie+=Ke+1):(me.push(Re),ie=Ee+1)}return me}:function(y){return y.split(/\r\n?|\n/)},ni=window.getSelection?function(y){try{return y.selectionStart!=y.selectionEnd}catch(ie){return!1}}:function(y){var ie;try{ie=y.ownerDocument.selection.createRange()}catch(me){}return!ie||ie.parentElement()!=y?!1:ie.compareEndPoints("StartToEnd",ie)!=0},Hn=function(){var y=be("div");return"oncopy"in y?!0:(y.setAttribute("oncopy","return;"),typeof y.oncopy=="function")}(),Ln=null;function qt(y){if(Ln!=null)return Ln;var ie=_e(y,be("span","x")),me=ie.getBoundingClientRect(),pe=Te(ie,0,1).getBoundingClientRect();return Ln=Math.abs(me.left-pe.left)>1}var er={},Wt={};function Vt(y,ie){arguments.length>2&&(ie.dependencies=Array.prototype.slice.call(arguments,2)),er[y]=ie}function tr(y,ie){Wt[y]=ie}function mr(y){if(typeof y=="string"&&Wt.hasOwnProperty(y))y=Wt[y];else if(y&&typeof y.name=="string"&&Wt.hasOwnProperty(y.name)){var ie=Wt[y.name];typeof ie=="string"&&(ie={name:ie}),y=Ne(ie,y),y.name=ie.name}else{if(typeof y=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(y))return mr("application/xml");if(typeof y=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(y))return mr("application/json")}return typeof y=="string"?{name:y}:y||{name:"null"}}function Dt(y,ie){ie=mr(ie);var me=er[ie.name];if(!me)return Dt(y,"text/plain");var pe=me(y,ie);if(jt.hasOwnProperty(ie.name)){var Ee=jt[ie.name];for(var Re in Ee)Ee.hasOwnProperty(Re)&&(pe.hasOwnProperty(Re)&&(pe["_"+Re]=pe[Re]),pe[Re]=Ee[Re])}if(pe.name=ie.name,ie.helperType&&(pe.helperType=ie.helperType),ie.modeProps)for(var Ke in ie.modeProps)pe[Ke]=ie.modeProps[Ke];return pe}var jt={};function _t(y,ie){var me=jt.hasOwnProperty(y)?jt[y]:jt[y]={};tt(ie,me)}function Ct(y,ie){if(ie===!0)return ie;if(y.copyState)return y.copyState(ie);var me={};for(var pe in ie){var Ee=ie[pe];Ee instanceof Array&&(Ee=Ee.concat([])),me[pe]=Ee}return me}function It(y,ie){for(var me;y.innerMode&&(me=y.innerMode(ie),!(!me||me.mode==y));)ie=me.state,y=me.mode;return me||{mode:y,state:ie}}function Gt(y,ie,me){return y.startState?y.startState(ie,me):!0}var kt=function(y,ie,me){this.pos=this.start=0,this.string=y,this.tabSize=ie||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=me};kt.prototype.eol=function(){return this.pos>=this.string.length},kt.prototype.sol=function(){return this.pos==this.lineStart},kt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},kt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},kt.prototype.eat=function(y){var ie=this.string.charAt(this.pos),me;if(typeof y=="string"?me=ie==y:me=ie&&(y.test?y.test(ie):y(ie)),me)return++this.pos,ie},kt.prototype.eatWhile=function(y){for(var ie=this.pos;this.eat(y););return this.pos>ie},kt.prototype.eatSpace=function(){for(var y=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>y},kt.prototype.skipToEnd=function(){this.pos=this.string.length},kt.prototype.skipTo=function(y){var ie=this.string.indexOf(y,this.pos);if(ie>-1)return this.pos=ie,!0},kt.prototype.backUp=function(y){this.pos-=y},kt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Me(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Me(this.string,this.lineStart,this.tabSize):0)},kt.prototype.indentation=function(){return Me(this.string,null,this.tabSize)-(this.lineStart?Me(this.string,this.lineStart,this.tabSize):0)},kt.prototype.match=function(y,ie,me){if(typeof y=="string"){var pe=function(Ke){return me?Ke.toLowerCase():Ke},Ee=this.string.substr(this.pos,y.length);if(pe(Ee)==pe(y))return ie!==!1&&(this.pos+=y.length),!0}else{var Re=this.string.slice(this.pos).match(y);return Re&&Re.index>0?null:(Re&&ie!==!1&&(this.pos+=Re[0].length),Re)}},kt.prototype.current=function(){return this.string.slice(this.start,this.pos)},kt.prototype.hideFirstChars=function(y,ie){this.lineStart+=y;try{return ie()}finally{this.lineStart-=y}},kt.prototype.lookAhead=function(y){var ie=this.lineOracle;return ie&&ie.lookAhead(y)},kt.prototype.baseToken=function(){var y=this.lineOracle;return y&&y.baseToken(this.pos)};function Et(y,ie){if(ie-=y.first,ie<0||ie>=y.size)throw new Error("There is no line "+(ie+y.first)+" in the document.");for(var me=y;!me.lines;)for(var pe=0;;++pe){var Ee=me.children[pe],Re=Ee.chunkSize();if(ie<Re){me=Ee;break}ie-=Re}return me.lines[ie]}function Ft(y,ie,me){var pe=[],Ee=ie.line;return y.iter(ie.line,me.line+1,function(Re){var Ke=Re.text;Ee==me.line&&(Ke=Ke.slice(0,me.ch)),Ee==ie.line&&(Ke=Ke.slice(ie.ch)),pe.push(Ke),++Ee}),pe}function Mt(y,ie,me){var pe=[];return y.iter(ie,me,function(Ee){pe.push(Ee.text)}),pe}function zt(y,ie){var me=ie-y.height;if(me)for(var pe=y;pe;pe=pe.parent)pe.height+=me}function Yt(y){if(y.parent==null)return null;for(var ie=y.parent,me=it(ie.lines,y),pe=ie.parent;pe;ie=pe,pe=pe.parent)for(var Ee=0;pe.children[Ee]!=ie;++Ee)me+=pe.children[Ee].chunkSize();return me+ie.first}function br(y,ie){var me=y.first;e:do{for(var pe=0;pe<y.children.length;++pe){var Ee=y.children[pe],Re=Ee.height;if(ie<Re){y=Ee;continue e}ie-=Re,me+=Ee.chunkSize()}return me}while(!y.lines);for(var Ke=0;Ke<y.lines.length;++Ke){var nt=y.lines[Ke],ut=nt.height;if(ie<ut)break;ie-=ut}return me+Ke}function Tr(y,ie){return ie>=y.first&&ie<y.first+y.size}function Sr(y,ie){return String(y.lineNumberFormatter(ie+y.firstLineNumber))}function Ht(y,ie,me){if(me===void 0&&(me=null),!(this instanceof Ht))return new Ht(y,ie,me);this.line=y,this.ch=ie,this.sticky=me}function nr(y,ie){return y.line-ie.line||y.ch-ie.ch}function Or(y,ie){return y.sticky==ie.sticky&&nr(y,ie)==0}function Lr(y){return Ht(y.line,y.ch)}function Br(y,ie){return nr(y,ie)<0?ie:y}function wr(y,ie){return nr(y,ie)<0?y:ie}function jr(y,ie){return Math.max(y.first,Math.min(ie,y.first+y.size-1))}function rr(y,ie){if(ie.line<y.first)return Ht(y.first,0);var me=y.first+y.size-1;return ie.line>me?Ht(me,Et(y,me).text.length):Xt(ie,Et(y,ie.line).text.length)}function Xt(y,ie){var me=y.ch;return me==null||me>ie?Ht(y.line,ie):me<0?Ht(y.line,0):y}function zr(y,ie){for(var me=[],pe=0;pe<ie.length;pe++)me[pe]=rr(y,ie[pe]);return me}var Nr=function(y,ie){this.state=y,this.lookAhead=ie},Qr=function(y,ie,me,pe){this.state=ie,this.doc=y,this.line=me,this.maxLookAhead=pe||0,this.baseTokens=null,this.baseTokenPos=1};Qr.prototype.lookAhead=function(y){var ie=this.doc.getLine(this.line+y);return ie!=null&&y>this.maxLookAhead&&(this.maxLookAhead=y),ie},Qr.prototype.baseToken=function(y){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=y;)this.baseTokenPos+=2;var ie=this.baseTokens[this.baseTokenPos+1];return{type:ie&&ie.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-y}},Qr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Qr.fromSaved=function(y,ie,me){return ie instanceof Nr?new Qr(y,Ct(y.mode,ie.state),me,ie.lookAhead):new Qr(y,Ct(y.mode,ie),me)},Qr.prototype.save=function(y){var ie=y!==!1?Ct(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Nr(ie,this.maxLookAhead):ie};function pn(y,ie,me,pe){var Ee=[y.state.modeGen],Re={};Jn(y,ie.text,y.doc.mode,me,function(ht,St){return Ee.push(ht,St)},Re,pe);for(var Ke=me.state,nt=function(ht){me.baseTokens=Ee;var St=y.state.overlays[ht],At=1,Bt=0;me.state=!0,Jn(y,ie.text,St.mode,me,function(Pt,Zt){for(var Kt=At;Bt<Pt;){var $t=Ee[At];$t>Pt&&Ee.splice(At,1,Pt,Ee[At+1],$t),At+=2,Bt=Math.min(Pt,$t)}if(Zt)if(St.opaque)Ee.splice(Kt,At-Kt,Pt,"overlay "+Zt),At=Kt+2;else for(;Kt<At;Kt+=2){var ar=Ee[Kt+1];Ee[Kt+1]=(ar?ar+" ":"")+"overlay "+Zt}},Re),me.state=Ke,me.baseTokens=null,me.baseTokenPos=1},ut=0;ut<y.state.overlays.length;++ut)nt(ut);return{styles:Ee,classes:Re.bgClass||Re.textClass?Re:null}}function en(y,ie,me){if(!ie.styles||ie.styles[0]!=y.state.modeGen){var pe=tn(y,Yt(ie)),Ee=ie.text.length>y.options.maxHighlightLength&&Ct(y.doc.mode,pe.state),Re=pn(y,ie,pe);Ee&&(pe.state=Ee),ie.stateAfter=pe.save(!Ee),ie.styles=Re.styles,Re.classes?ie.styleClasses=Re.classes:ie.styleClasses&&(ie.styleClasses=null),me===y.doc.highlightFrontier&&(y.doc.modeFrontier=Math.max(y.doc.modeFrontier,++y.doc.highlightFrontier))}return ie.styles}function tn(y,ie,me){var pe=y.doc,Ee=y.display;if(!pe.mode.startState)return new Qr(pe,!0,ie);var Re=Pi(y,ie,me),Ke=Re>pe.first&&Et(pe,Re-1).stateAfter,nt=Ke?Qr.fromSaved(pe,Ke,Re):new Qr(pe,Gt(pe.mode),Re);return pe.iter(Re,ie,function(ut){zn(y,ut.text,nt);var ht=nt.line;ut.stateAfter=ht==ie-1||ht%5==0||ht>=Ee.viewFrom&&ht<Ee.viewTo?nt.save():null,nt.nextLine()}),me&&(pe.modeFrontier=nt.line),nt}function zn(y,ie,me,pe){var Ee=y.doc.mode,Re=new kt(ie,y.options.tabSize,me);for(Re.start=Re.pos=pe||0,ie==""&&Jr(Ee,me.state);!Re.eol();)Xr(Ee,Re,me.state),Re.start=Re.pos}function Jr(y,ie){if(y.blankLine)return y.blankLine(ie);if(y.innerMode){var me=It(y,ie);if(me.mode.blankLine)return me.mode.blankLine(me.state)}}function Xr(y,ie,me,pe){for(var Ee=0;Ee<10;Ee++){pe&&(pe[0]=It(y,me).mode);var Re=y.token(ie,me);if(ie.pos>ie.start)return Re}throw new Error("Mode "+y.name+" failed to advance stream.")}var On=function(y,ie,me){this.start=y.start,this.end=y.pos,this.string=y.current(),this.type=ie||null,this.state=me};function Qn(y,ie,me,pe){var Ee=y.doc,Re=Ee.mode,Ke;ie=rr(Ee,ie);var nt=Et(Ee,ie.line),ut=tn(y,ie.line,me),ht=new kt(nt.text,y.options.tabSize,ut),St;for(pe&&(St=[]);(pe||ht.pos<ie.ch)&&!ht.eol();)ht.start=ht.pos,Ke=Xr(Re,ht,ut.state),pe&&St.push(new On(ht,Ke,Ct(Ee.mode,ut.state)));return pe?St:new On(ht,Ke,ut.state)}function ii(y,ie){if(y)for(;;){var me=y.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!me)break;y=y.slice(0,me.index)+y.slice(me.index+me[0].length);var pe=me[1]?"bgClass":"textClass";ie[pe]==null?ie[pe]=me[2]:new RegExp("(?:^|\\s)"+me[2]+"(?:$|\\s)").test(ie[pe])||(ie[pe]+=" "+me[2])}return y}function Jn(y,ie,me,pe,Ee,Re,Ke){var nt=me.flattenSpans;nt==null&&(nt=y.options.flattenSpans);var ut=0,ht=null,St=new kt(ie,y.options.tabSize,pe),At,Bt=y.options.addModeClass&&[null];for(ie==""&&ii(Jr(me,pe.state),Re);!St.eol();){if(St.pos>y.options.maxHighlightLength?(nt=!1,Ke&&zn(y,ie,pe,St.pos),St.pos=ie.length,At=null):At=ii(Xr(me,St,pe.state,Bt),Re),Bt){var Pt=Bt[0].name;Pt&&(At="m-"+(At?Pt+" "+At:Pt))}if(!nt||ht!=At){for(;ut<St.start;)ut=Math.min(St.start,ut+5e3),Ee(ut,ht);ht=At}St.start=St.pos}for(;ut<St.pos;){var Zt=Math.min(St.pos,ut+5e3);Ee(Zt,ht),ut=Zt}}function Pi(y,ie,me){for(var pe,Ee,Re=y.doc,Ke=me?-1:ie-(y.doc.mode.innerMode?1e3:100),nt=ie;nt>Ke;--nt){if(nt<=Re.first)return Re.first;var ut=Et(Re,nt-1),ht=ut.stateAfter;if(ht&&(!me||nt+(ht instanceof Nr?ht.lookAhead:0)<=Re.modeFrontier))return nt;var St=Me(ut.text,null,y.options.tabSize);(Ee==null||pe>St)&&(Ee=nt-1,pe=St)}return Ee}function Si(y,ie){if(y.modeFrontier=Math.min(y.modeFrontier,ie),!(y.highlightFrontier<ie-10)){for(var me=y.first,pe=ie-1;pe>me;pe--){var Ee=Et(y,pe).stateAfter;if(Ee&&(!(Ee instanceof Nr)||pe+Ee.lookAhead<ie)){me=pe+1;break}}y.highlightFrontier=Math.min(y.highlightFrontier,me)}}var vi=!1,un=!1;function ai(){vi=!0}function Un(){un=!0}function Pn(y,ie,me){this.marker=y,this.from=ie,this.to=me}function li(y,ie){if(y)for(var me=0;me<y.length;++me){var pe=y[me];if(pe.marker==ie)return pe}}function Ri(y,ie){for(var me,pe=0;pe<y.length;++pe)y[pe]!=ie&&(me||(me=[])).push(y[pe]);return me}function Ii(y,ie){y.markedSpans=y.markedSpans?y.markedSpans.concat([ie]):[ie],ie.marker.attachLine(y)}function Ci(y,ie,me){var pe;if(y)for(var Ee=0;Ee<y.length;++Ee){var Re=y[Ee],Ke=Re.marker,nt=Re.from==null||(Ke.inclusiveLeft?Re.from<=ie:Re.from<ie);if(nt||Re.from==ie&&Ke.type=="bookmark"&&(!me||!Re.marker.insertLeft)){var ut=Re.to==null||(Ke.inclusiveRight?Re.to>=ie:Re.to>ie);(pe||(pe=[])).push(new Pn(Ke,Re.from,ut?null:Re.to))}}return pe}function qn(y,ie,me){var pe;if(y)for(var Ee=0;Ee<y.length;++Ee){var Re=y[Ee],Ke=Re.marker,nt=Re.to==null||(Ke.inclusiveRight?Re.to>=ie:Re.to>ie);if(nt||Re.from==ie&&Ke.type=="bookmark"&&(!me||Re.marker.insertLeft)){var ut=Re.from==null||(Ke.inclusiveLeft?Re.from<=ie:Re.from<ie);(pe||(pe=[])).push(new Pn(Ke,ut?null:Re.from-ie,Re.to==null?null:Re.to-ie))}}return pe}function Wn(y,ie){if(ie.full)return null;var me=Tr(y,ie.from.line)&&Et(y,ie.from.line).markedSpans,pe=Tr(y,ie.to.line)&&Et(y,ie.to.line).markedSpans;if(!me&&!pe)return null;var Ee=ie.from.ch,Re=ie.to.ch,Ke=nr(ie.from,ie.to)==0,nt=Ci(me,Ee,Ke),ut=qn(pe,Re,Ke),ht=ie.text.length==1,St=ft(ie.text).length+(ht?Ee:0);if(nt)for(var At=0;At<nt.length;++At){var Bt=nt[At];if(Bt.to==null){var Pt=li(ut,Bt.marker);Pt?ht&&(Bt.to=Pt.to==null?null:Pt.to+St):Bt.to=Ee}}if(ut)for(var Zt=0;Zt<ut.length;++Zt){var Kt=ut[Zt];if(Kt.to!=null&&(Kt.to+=St),Kt.from==null){var $t=li(nt,Kt.marker);$t||(Kt.from=St,ht&&(nt||(nt=[])).push(Kt))}else Kt.from+=St,ht&&(nt||(nt=[])).push(Kt)}nt&&(nt=Ei(nt)),ut&&ut!=nt&&(ut=Ei(ut));var ar=[nt];if(!ht){var pr=ie.text.length-2,lr;if(pr>0&&nt)for(var vr=0;vr<nt.length;++vr)nt[vr].to==null&&(lr||(lr=[])).push(new Pn(nt[vr].marker,null,null));for(var Er=0;Er<pr;++Er)ar.push(lr);ar.push(ut)}return ar}function Ei(y){for(var ie=0;ie<y.length;++ie){var me=y[ie];me.from!=null&&me.from==me.to&&me.marker.clearWhenEmpty!==!1&&y.splice(ie--,1)}return y.length?y:null}function so(y,ie,me){var pe=null;if(y.iter(ie.line,me.line+1,function(Pt){if(Pt.markedSpans)for(var Zt=0;Zt<Pt.markedSpans.length;++Zt){var Kt=Pt.markedSpans[Zt].marker;Kt.readOnly&&(!pe||it(pe,Kt)==-1)&&(pe||(pe=[])).push(Kt)}}),!pe)return null;for(var Ee=[{from:ie,to:me}],Re=0;Re<pe.length;++Re)for(var Ke=pe[Re],nt=Ke.find(0),ut=0;ut<Ee.length;++ut){var ht=Ee[ut];if(!(nr(ht.to,nt.from)<0||nr(ht.from,nt.to)>0)){var St=[ut,1],At=nr(ht.from,nt.from),Bt=nr(ht.to,nt.to);(At<0||!Ke.inclusiveLeft&&!At)&&St.push({from:ht.from,to:nt.from}),(Bt>0||!Ke.inclusiveRight&&!Bt)&&St.push({from:nt.to,to:ht.to}),Ee.splice.apply(Ee,St),ut+=St.length-3}}return Ee}function Sn(y){var ie=y.markedSpans;if(ie){for(var me=0;me<ie.length;++me)ie[me].marker.detachLine(y);y.markedSpans=null}}function Rn(y,ie){if(ie){for(var me=0;me<ie.length;++me)ie[me].marker.attachLine(y);y.markedSpans=ie}}function Ai(y){return y.inclusiveLeft?-1:0}function Cn(y){return y.inclusiveRight?1:0}function Bi(y,ie){var me=y.lines.length-ie.lines.length;if(me!=0)return me;var pe=y.find(),Ee=ie.find(),Re=nr(pe.from,Ee.from)||Ai(y)-Ai(ie);if(Re)return-Re;var Ke=nr(pe.to,Ee.to)||Cn(y)-Cn(ie);return Ke||ie.id-y.id}function Ji(y,ie){var me=un&&y.markedSpans,pe;if(me)for(var Ee=void 0,Re=0;Re<me.length;++Re)Ee=me[Re],Ee.marker.collapsed&&(ie?Ee.from:Ee.to)==null&&(!pe||Bi(pe,Ee.marker)<0)&&(pe=Ee.marker);return pe}function Ni(y){return Ji(y,!0)}function Ti(y){return Ji(y,!1)}function Ar(y,ie){var me=un&&y.markedSpans,pe;if(me)for(var Ee=0;Ee<me.length;++Ee){var Re=me[Ee];Re.marker.collapsed&&(Re.from==null||Re.from<ie)&&(Re.to==null||Re.to>ie)&&(!pe||Bi(pe,Re.marker)<0)&&(pe=Re.marker)}return pe}function Wr(y,ie,me,pe,Ee){var Re=Et(y,ie),Ke=un&&Re.markedSpans;if(Ke)for(var nt=0;nt<Ke.length;++nt){var ut=Ke[nt];if(ut.marker.collapsed){var ht=ut.marker.find(0),St=nr(ht.from,me)||Ai(ut.marker)-Ai(Ee),At=nr(ht.to,pe)||Cn(ut.marker)-Cn(Ee);if(!(St>=0&&At<=0||St<=0&&At>=0)&&(St<=0&&(ut.marker.inclusiveRight&&Ee.inclusiveLeft?nr(ht.to,me)>=0:nr(ht.to,me)>0)||St>=0&&(ut.marker.inclusiveRight&&Ee.inclusiveLeft?nr(ht.from,pe)<=0:nr(ht.from,pe)<0)))return!0}}}function Pr(y){for(var ie;ie=Ni(y);)y=ie.find(-1,!0).line;return y}function In(y){for(var ie;ie=Ti(y);)y=ie.find(1,!0).line;return y}function sn(y){for(var ie,me;ie=Ti(y);)y=ie.find(1,!0).line,(me||(me=[])).push(y);return me}function ur(y,ie){var me=Et(y,ie),pe=Pr(me);return me==pe?ie:Yt(pe)}function Jt(y,ie){if(ie>y.lastLine())return ie;var me=Et(y,ie),pe;if(!hr(y,me))return ie;for(;pe=Ti(me);)me=pe.find(1,!0).line;return Yt(me)+1}function hr(y,ie){var me=un&&ie.markedSpans;if(me){for(var pe=void 0,Ee=0;Ee<me.length;++Ee)if(pe=me[Ee],!!pe.marker.collapsed){if(pe.from==null)return!0;if(!pe.marker.widgetNode&&pe.from==0&&pe.marker.inclusiveLeft&&dr(y,ie,pe))return!0}}}function dr(y,ie,me){if(me.to==null){var pe=me.marker.find(1,!0);return dr(y,pe.line,li(pe.line.markedSpans,me.marker))}if(me.marker.inclusiveRight&&me.to==ie.text.length)return!0;for(var Ee=void 0,Re=0;Re<ie.markedSpans.length;++Re)if(Ee=ie.markedSpans[Re],Ee.marker.collapsed&&!Ee.marker.widgetNode&&Ee.from==me.to&&(Ee.to==null||Ee.to!=me.from)&&(Ee.marker.inclusiveLeft||me.marker.inclusiveRight)&&dr(y,ie,Ee))return!0}function Mr(y){y=Pr(y);for(var ie=0,me=y.parent,pe=0;pe<me.lines.length;++pe){var Ee=me.lines[pe];if(Ee==y)break;ie+=Ee.height}for(var Re=me.parent;Re;me=Re,Re=me.parent)for(var Ke=0;Ke<Re.children.length;++Ke){var nt=Re.children[Ke];if(nt==me)break;ie+=nt.height}return ie}function Ur(y){if(y.height==0)return 0;for(var ie=y.text.length,me,pe=y;me=Ni(pe);){var Ee=me.find(0,!0);pe=Ee.from.line,ie+=Ee.from.ch-Ee.to.ch}for(pe=y;me=Ti(pe);){var Re=me.find(0,!0);ie-=pe.text.length-Re.from.ch,pe=Re.to.line,ie+=pe.text.length-Re.to.ch}return ie}function sr(y){var ie=y.display,me=y.doc;ie.maxLine=Et(me,me.first),ie.maxLineLength=Ur(ie.maxLine),ie.maxLineChanged=!0,me.iter(function(pe){var Ee=Ur(pe);Ee>ie.maxLineLength&&(ie.maxLineLength=Ee,ie.maxLine=pe)})}var Zr=function(y,ie,me){this.text=y,Rn(this,ie),this.height=me?me(this):1};Zr.prototype.lineNo=function(){return Yt(this)},Ut(Zr);function Gr(y,ie,me,pe){y.text=ie,y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null),y.order!=null&&(y.order=null),Sn(y),Rn(y,me);var Ee=pe?pe(y):1;Ee!=y.height&&zt(y,Ee)}function an(y){y.parent=null,Sn(y)}var Gn={},kr={};function nn(y,ie){if(!y||/^\s*$/.test(y))return null;var me=ie.addModeClass?kr:Gn;return me[y]||(me[y]=y.replace(/\S+/g,"cm-$&"))}function En(y,ie){var me=Ae("span",null,null,oe?"padding-right: .1px":null),pe={pre:Ae("pre",[me],"CodeMirror-line"),content:me,col:0,pos:0,cm:y,trailingSpace:!1,splitSpaces:y.getOption("lineWrapping")};ie.measure={};for(var Ee=0;Ee<=(ie.rest?ie.rest.length:0);Ee++){var Re=Ee?ie.rest[Ee-1]:ie.line,Ke=void 0;pe.pos=0,pe.addToken=is,Rr(y.display.measure)&&(Ke=ct(Re,y.doc.direction))&&(pe.addToken=Po(pe.addToken,Ke)),pe.map=[];var nt=ie!=y.display.externalMeasured&&Yt(Re);cn(Re,pe,en(y,Re,nt)),Re.styleClasses&&(Re.styleClasses.bgClass&&(pe.bgClass=Oe(Re.styleClasses.bgClass,pe.bgClass||"")),Re.styleClasses.textClass&&(pe.textClass=Oe(Re.styleClasses.textClass,pe.textClass||""))),pe.map.length==0&&pe.map.push(0,0,pe.content.appendChild(on(y.display.measure))),Ee==0?(ie.measure.map=pe.map,ie.measure.cache={}):((ie.measure.maps||(ie.measure.maps=[])).push(pe.map),(ie.measure.caches||(ie.measure.caches=[])).push({}))}if(oe){var ut=pe.content.lastChild;(/\bcm-tab\b/.test(ut.className)||ut.querySelector&&ut.querySelector(".cm-tab"))&&(pe.content.className="cm-tab-wrap-hack")}return Tt(y,"renderLine",y,ie.line,pe.pre),pe.pre.className&&(pe.textClass=Oe(pe.pre.className,pe.textClass||"")),pe}function qi(y){var ie=be("span","\u2022","cm-invalidchar");return ie.title="\\u"+y.charCodeAt(0).toString(16),ie.setAttribute("aria-label",ie.title),ie}function is(y,ie,me,pe,Ee,Re,Ke){if(ie){var nt=y.splitSpaces?os(ie,y.trailingSpace):ie,ut=y.cm.state.specialChars,ht=!1,St;if(!ut.test(ie))y.col+=ie.length,St=document.createTextNode(nt),y.map.push(y.pos,y.pos+ie.length,St),de&&te<9&&(ht=!0),y.pos+=ie.length;else{St=document.createDocumentFragment();for(var At=0;;){ut.lastIndex=At;var Bt=ut.exec(ie),Pt=Bt?Bt.index-At:ie.length-At;if(Pt){var Zt=document.createTextNode(nt.slice(At,At+Pt));de&&te<9?St.appendChild(be("span",[Zt])):St.appendChild(Zt),y.map.push(y.pos,y.pos+Pt,Zt),y.col+=Pt,y.pos+=Pt}if(!Bt)break;At+=Pt+1;var Kt=void 0;if(Bt[0]==" "){var $t=y.cm.options.tabSize,ar=$t-y.col%$t;Kt=St.appendChild(be("span",mt(ar),"cm-tab")),Kt.setAttribute("role","presentation"),Kt.setAttribute("cm-text"," "),y.col+=ar}else Bt[0]=="\r"||Bt[0]==`
`?(Kt=St.appendChild(be("span",Bt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Kt.setAttribute("cm-text",Bt[0]),y.col+=1):(Kt=y.cm.options.specialCharPlaceholder(Bt[0]),Kt.setAttribute("cm-text",Bt[0]),de&&te<9?St.appendChild(be("span",[Kt])):St.appendChild(Kt),y.col+=1);y.map.push(y.pos,y.pos+1,Kt),y.pos++}}if(y.trailingSpace=nt.charCodeAt(ie.length-1)==32,me||pe||Ee||ht||Re||Ke){var pr=me||"";pe&&(pr+=pe),Ee&&(pr+=Ee);var lr=be("span",[St],pr,Re);if(Ke)for(var vr in Ke)Ke.hasOwnProperty(vr)&&vr!="style"&&vr!="class"&&lr.setAttribute(vr,Ke[vr]);return y.content.appendChild(lr)}y.content.appendChild(St)}}function os(y,ie){if(y.length>1&&!/ /.test(y))return y;for(var me=ie,pe="",Ee=0;Ee<y.length;Ee++){var Re=y.charAt(Ee);Re==" "&&me&&(Ee==y.length-1||y.charCodeAt(Ee+1)==32)&&(Re="\xA0"),pe+=Re,me=Re==" "}return pe}function Po(y,ie){return function(me,pe,Ee,Re,Ke,nt,ut){Ee=Ee?Ee+" cm-force-border":"cm-force-border";for(var ht=me.pos,St=ht+pe.length;;){for(var At=void 0,Bt=0;Bt<ie.length&&(At=ie[Bt],!(At.to>ht&&At.from<=ht));Bt++);if(At.to>=St)return y(me,pe,Ee,Re,Ke,nt,ut);y(me,pe.slice(0,At.to-ht),Ee,Re,null,nt,ut),Re=null,pe=pe.slice(At.to-ht),ht=At.to}}}function Ro(y,ie,me,pe){var Ee=!pe&&me.widgetNode;Ee&&y.map.push(y.pos,y.pos+ie,Ee),!pe&&y.cm.display.input.needsContentAttribute&&(Ee||(Ee=y.content.appendChild(document.createElement("span"))),Ee.setAttribute("cm-marker",me.id)),Ee&&(y.cm.display.input.setUneditable(Ee),y.content.appendChild(Ee)),y.pos+=ie,y.trailingSpace=!1}function cn(y,ie,me){var pe=y.markedSpans,Ee=y.text,Re=0;if(!pe){for(var Ke=1;Ke<me.length;Ke+=2)ie.addToken(ie,Ee.slice(Re,Re=me[Ke]),nn(me[Ke+1],ie.cm.options));return}for(var nt=Ee.length,ut=0,ht=1,St="",At,Bt,Pt=0,Zt,Kt,$t,ar,pr;;){if(Pt==ut){Zt=Kt=$t=Bt="",pr=null,ar=null,Pt=1/0;for(var lr=[],vr=void 0,Er=0;Er<pe.length;++Er){var xr=pe[Er],Ir=xr.marker;if(Ir.type=="bookmark"&&xr.from==ut&&Ir.widgetNode)lr.push(Ir);else if(xr.from<=ut&&(xr.to==null||xr.to>ut||Ir.collapsed&&xr.to==ut&&xr.from==ut)){if(xr.to!=null&&xr.to!=ut&&Pt>xr.to&&(Pt=xr.to,Kt=""),Ir.className&&(Zt+=" "+Ir.className),Ir.css&&(Bt=(Bt?Bt+";":"")+Ir.css),Ir.startStyle&&xr.from==ut&&($t+=" "+Ir.startStyle),Ir.endStyle&&xr.to==Pt&&(vr||(vr=[])).push(Ir.endStyle,xr.to),Ir.title&&((pr||(pr={})).title=Ir.title),Ir.attributes)for(var rn in Ir.attributes)(pr||(pr={}))[rn]=Ir.attributes[rn];Ir.collapsed&&(!ar||Bi(ar.marker,Ir)<0)&&(ar=xr)}else xr.from>ut&&Pt>xr.from&&(Pt=xr.from)}if(vr)for(var Dn=0;Dn<vr.length;Dn+=2)vr[Dn+1]==Pt&&(Kt+=" "+vr[Dn]);if(!ar||ar.from==ut)for(var hn=0;hn<lr.length;++hn)Ro(ie,0,lr[hn]);if(ar&&(ar.from||0)==ut){if(Ro(ie,(ar.to==null?nt+1:ar.to)-ut,ar.marker,ar.from==null),ar.to==null)return;ar.to==ut&&(ar=!1)}}if(ut>=nt)break;for(var si=Math.min(nt,Pt);;){if(St){var ei=ut+St.length;if(!ar){var bn=ei>si?St.slice(0,si-ut):St;ie.addToken(ie,bn,At?At+Zt:Zt,$t,ut+bn.length==Pt?Kt:"",Bt,pr)}if(ei>=si){St=St.slice(si-ut),ut=si;break}ut=ei,$t=""}St=Ee.slice(Re,Re=me[ht++]),At=nn(me[ht++],ie.cm.options)}}}function xo(y,ie,me){this.line=ie,this.rest=sn(ie),this.size=this.rest?Yt(ft(this.rest))-me+1:1,this.node=this.text=null,this.hidden=hr(y,ie)}function Fi(y,ie,me){for(var pe=[],Ee,Re=ie;Re<me;Re=Ee){var Ke=new xo(y.doc,Et(y.doc,Re),Re);Ee=Re+Ke.size,pe.push(Ke)}return pe}var ui=null;function ao(y){ui?ui.ops.push(y):y.ownsGroup=ui={ops:[y],delayedCallbacks:[]}}function Hi(y){var ie=y.delayedCallbacks,me=0;do{for(;me<ie.length;me++)ie[me].call(null);for(var pe=0;pe<y.ops.length;pe++){var Ee=y.ops[pe];if(Ee.cursorActivityHandlers)for(;Ee.cursorActivityCalled<Ee.cursorActivityHandlers.length;)Ee.cursorActivityHandlers[Ee.cursorActivityCalled++].call(null,Ee.cm)}}while(me<ie.length)}function qr(y,ie){var me=y.ownsGroup;if(me)try{Hi(me)}finally{ui=null,ie(me)}}var ci=null;function Yr(y,ie){var me=wt(y,ie);if(me.length){var pe=Array.prototype.slice.call(arguments,2),Ee;ui?Ee=ui.delayedCallbacks:ci?Ee=ci:(Ee=ci=[],setTimeout(gi,0));for(var Re=function(nt){Ee.push(function(){return me[nt].apply(null,pe)})},Ke=0;Ke<me.length;++Ke)Re(Ke)}}function gi(){var y=ci;ci=null;for(var ie=0;ie<y.length;++ie)y[ie]()}function $i(y,ie,me,pe){for(var Ee=0;Ee<ie.changes.length;Ee++){var Re=ie.changes[Ee];Re=="text"?fa(y,ie):Re=="gutter"?_o(y,ie,me,pe):Re=="class"?lo(y,ie):Re=="widget"&&as(y,ie,pe)}ie.changes=null}function zi(y){return y.node==y.text&&(y.node=be("div",null,null,"position: relative"),y.text.parentNode&&y.text.parentNode.replaceChild(y.node,y.text),y.node.appendChild(y.text),de&&te<8&&(y.node.style.zIndex=2)),y.node}function Io(y,ie){var me=ie.bgClass?ie.bgClass+" "+(ie.line.bgClass||""):ie.line.bgClass;if(me&&(me+=" CodeMirror-linebackground"),ie.background)me?ie.background.className=me:(ie.background.parentNode.removeChild(ie.background),ie.background=null);else if(me){var pe=zi(ie);ie.background=pe.insertBefore(be("div",null,me),pe.firstChild),y.display.input.setUneditable(ie.background)}}function ss(y,ie){var me=y.display.externalMeasured;return me&&me.line==ie.line?(y.display.externalMeasured=null,ie.measure=me.measure,me.built):En(y,ie)}function fa(y,ie){var me=ie.text.className,pe=ss(y,ie);ie.text==ie.node&&(ie.node=pe.pre),ie.text.parentNode.replaceChild(pe.pre,ie.text),ie.text=pe.pre,pe.bgClass!=ie.bgClass||pe.textClass!=ie.textClass?(ie.bgClass=pe.bgClass,ie.textClass=pe.textClass,lo(y,ie)):me&&(ie.text.className=me)}function lo(y,ie){Io(y,ie),ie.line.wrapClass?zi(ie).className=ie.line.wrapClass:ie.node!=ie.text&&(ie.node.className="");var me=ie.textClass?ie.textClass+" "+(ie.line.textClass||""):ie.line.textClass;ie.text.className=me||""}function _o(y,ie,me,pe){if(ie.gutter&&(ie.node.removeChild(ie.gutter),ie.gutter=null),ie.gutterBackground&&(ie.node.removeChild(ie.gutterBackground),ie.gutterBackground=null),ie.line.gutterClass){var Ee=zi(ie);ie.gutterBackground=be("div",null,"CodeMirror-gutter-background "+ie.line.gutterClass,"left: "+(y.options.fixedGutter?pe.fixedPos:-pe.gutterTotalWidth)+"px; width: "+pe.gutterTotalWidth+"px"),y.display.input.setUneditable(ie.gutterBackground),Ee.insertBefore(ie.gutterBackground,ie.text)}var Re=ie.line.gutterMarkers;if(y.options.lineNumbers||Re){var Ke=zi(ie),nt=ie.gutter=be("div",null,"CodeMirror-gutter-wrapper","left: "+(y.options.fixedGutter?pe.fixedPos:-pe.gutterTotalWidth)+"px");if(y.display.input.setUneditable(nt),Ke.insertBefore(nt,ie.text),ie.line.gutterClass&&(nt.className+=" "+ie.line.gutterClass),y.options.lineNumbers&&(!Re||!Re["CodeMirror-linenumbers"])&&(ie.lineNumber=nt.appendChild(be("div",Sr(y.options,me),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+pe.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+y.display.lineNumInnerWidth+"px"))),Re)for(var ut=0;ut<y.display.gutterSpecs.length;++ut){var ht=y.display.gutterSpecs[ut].className,St=Re.hasOwnProperty(ht)&&Re[ht];St&&nt.appendChild(be("div",[St],"CodeMirror-gutter-elt","left: "+pe.gutterLeft[ht]+"px; width: "+pe.gutterWidth[ht]+"px"))}}}function as(y,ie,me){ie.alignable&&(ie.alignable=null);for(var pe=we("CodeMirror-linewidget"),Ee=ie.node.firstChild,Re=void 0;Ee;Ee=Re)Re=Ee.nextSibling,pe.test(Ee.className)&&ie.node.removeChild(Ee);ls(y,ie,me)}function Is(y,ie,me,pe){var Ee=ss(y,ie);return ie.text=ie.node=Ee.pre,Ee.bgClass&&(ie.bgClass=Ee.bgClass),Ee.textClass&&(ie.textClass=Ee.textClass),lo(y,ie),_o(y,ie,me,pe),ls(y,ie,pe),ie.node}function ls(y,ie,me){if(Bo(y,ie.line,ie,me,!0),ie.rest)for(var pe=0;pe<ie.rest.length;pe++)Bo(y,ie.rest[pe],ie,me,!1)}function Bo(y,ie,me,pe,Ee){if(ie.widgets)for(var Re=zi(me),Ke=0,nt=ie.widgets;Ke<nt.length;++Ke){var ut=nt[Ke],ht=be("div",[ut.node],"CodeMirror-linewidget"+(ut.className?" "+ut.className:""));ut.handleMouseEvents||ht.setAttribute("cm-ignore-events","true"),uo(ut,ht,me,pe),y.display.input.setUneditable(ht),Ee&&ut.above?Re.insertBefore(ht,me.gutter||me.text):Re.appendChild(ht),Yr(ut,"redraw")}}function uo(y,ie,me,pe){if(y.noHScroll){(me.alignable||(me.alignable=[])).push(ie);var Ee=pe.wrapperWidth;ie.style.left=pe.fixedPos+"px",y.coverGutter||(Ee-=pe.gutterTotalWidth,ie.style.paddingLeft=pe.gutterTotalWidth+"px"),ie.style.width=Ee+"px"}y.coverGutter&&(ie.style.zIndex=5,ie.style.position="relative",y.noHScroll||(ie.style.marginLeft=-pe.gutterTotalWidth+"px"))}function Ui(y){if(y.height!=null)return y.height;var ie=y.doc.cm;if(!ie)return 0;if(!Le(document.body,y.node)){var me="position: relative;";y.coverGutter&&(me+="margin-left: -"+ie.display.gutters.offsetWidth+"px;"),y.noHScroll&&(me+="width: "+ie.display.wrapper.clientWidth+"px;"),_e(ie.display.measure,be("div",[y.node],null,me))}return y.height=y.node.parentNode.offsetHeight}function yi(y,ie){for(var me=_r(ie);me!=y.wrapper;me=me.parentNode)if(!me||me.nodeType==1&&me.getAttribute("cm-ignore-events")=="true"||me.parentNode==y.sizer&&me!=y.mover)return!0}function bi(y){return y.lineSpace.offsetTop}function So(y){return y.mover.offsetHeight-y.lineSpace.offsetHeight}function Bs(y){if(y.cachedPaddingH)return y.cachedPaddingH;var ie=_e(y.measure,be("pre","x","CodeMirror-line-like")),me=window.getComputedStyle?window.getComputedStyle(ie):ie.currentStyle,pe={left:parseInt(me.paddingLeft),right:parseInt(me.paddingRight)};return!isNaN(pe.left)&&!isNaN(pe.right)&&(y.cachedPaddingH=pe),pe}function wi(y){return at-y.display.nativeBarWidth}function eo(y){return y.display.scroller.clientWidth-wi(y)-y.display.barWidth}function us(y){return y.display.scroller.clientHeight-wi(y)-y.display.barHeight}function Na(y,ie,me){var pe=y.options.lineWrapping,Ee=pe&&eo(y);if(!ie.measure.heights||pe&&ie.measure.width!=Ee){var Re=ie.measure.heights=[];if(pe){ie.measure.width=Ee;for(var Ke=ie.text.firstChild.getClientRects(),nt=0;nt<Ke.length-1;nt++){var ut=Ke[nt],ht=Ke[nt+1];Math.abs(ut.bottom-ht.bottom)>2&&Re.push((ut.bottom+ht.top)/2-me.top)}}Re.push(me.bottom-me.top)}}function da(y,ie,me){if(y.line==ie)return{map:y.measure.map,cache:y.measure.cache};for(var pe=0;pe<y.rest.length;pe++)if(y.rest[pe]==ie)return{map:y.measure.maps[pe],cache:y.measure.caches[pe]};for(var Ee=0;Ee<y.rest.length;Ee++)if(Yt(y.rest[Ee])>me)return{map:y.measure.maps[Ee],cache:y.measure.caches[Ee],before:!0}}function Fa(y,ie){ie=Pr(ie);var me=Yt(ie),pe=y.display.externalMeasured=new xo(y.doc,ie,me);pe.lineN=me;var Ee=pe.built=En(y,pe);return pe.text=Ee.pre,_e(y.display.lineMeasure,Ee.pre),pe}function Ns(y,ie,me,pe){return Vn(y,co(y,ie),me,pe)}function Co(y,ie){if(ie>=y.display.viewFrom&&ie<y.display.viewTo)return y.display.view[ro(y,ie)];var me=y.display.externalMeasured;if(me&&ie>=me.lineN&&ie<me.lineN+me.size)return me}function co(y,ie){var me=Yt(ie),pe=Co(y,me);pe&&!pe.text?pe=null:pe&&pe.changes&&($i(y,pe,me,Wo(y)),y.curOp.forceUpdate=!0),pe||(pe=Fa(y,ie));var Ee=da(pe,ie,me);return{line:ie,view:pe,rect:null,map:Ee.map,cache:Ee.cache,before:Ee.before,hasHeights:!1}}function Vn(y,ie,me,pe,Ee){ie.before&&(me=-1);var Re=me+(pe||""),Ke;return ie.cache.hasOwnProperty(Re)?Ke=ie.cache[Re]:(ie.rect||(ie.rect=ie.view.text.getBoundingClientRect()),ie.hasHeights||(Na(y,ie.view,ie.rect),ie.hasHeights=!0),Ke=Ho(y,ie,me,pe),Ke.bogus||(ie.cache[Re]=Ke)),{left:Ke.left,right:Ke.right,top:Ee?Ke.rtop:Ke.top,bottom:Ee?Ke.rbottom:Ke.bottom}}var No={left:0,right:0,top:0,bottom:0};function Fo(y,ie,me){for(var pe,Ee,Re,Ke,nt,ut,ht=0;ht<y.length;ht+=3)if(nt=y[ht],ut=y[ht+1],ie<nt?(Ee=0,Re=1,Ke="left"):ie<ut?(Ee=ie-nt,Re=Ee+1):(ht==y.length-3||ie==ut&&y[ht+3]>ie)&&(Re=ut-nt,Ee=Re-1,ie>=ut&&(Ke="right")),Ee!=null){if(pe=y[ht+2],nt==ut&&me==(pe.insertLeft?"left":"right")&&(Ke=me),me=="left"&&Ee==0)for(;ht&&y[ht-2]==y[ht-3]&&y[ht-1].insertLeft;)pe=y[(ht-=3)+2],Ke="left";if(me=="right"&&Ee==ut-nt)for(;ht<y.length-3&&y[ht+3]==y[ht+4]&&!y[ht+5].insertLeft;)pe=y[(ht+=3)+2],Ke="right";break}return{node:pe,start:Ee,end:Re,collapse:Ke,coverStart:nt,coverEnd:ut}}function cs(y,ie){var me=No;if(ie=="left")for(var pe=0;pe<y.length&&(me=y[pe]).left==me.right;pe++);else for(var Ee=y.length-1;Ee>=0&&(me=y[Ee]).left==me.right;Ee--);return me}function Ho(y,ie,me,pe){var Ee=Fo(ie.map,me,pe),Re=Ee.node,Ke=Ee.start,nt=Ee.end,ut=Ee.collapse,ht;if(Re.nodeType==3){for(var St=0;St<4;St++){for(;Ke&&He(ie.line.text.charAt(Ee.coverStart+Ke));)--Ke;for(;Ee.coverStart+nt<Ee.coverEnd&&He(ie.line.text.charAt(Ee.coverStart+nt));)++nt;if(de&&te<9&&Ke==0&&nt==Ee.coverEnd-Ee.coverStart?ht=Re.parentNode.getBoundingClientRect():ht=cs(Te(Re,Ke,nt).getClientRects(),pe),ht.left||ht.right||Ke==0)break;nt=Ke,Ke=Ke-1,ut="right"}de&&te<11&&(ht=Fs(y.display.measure,ht))}else{Ke>0&&(ut=pe="right");var At;y.options.lineWrapping&&(At=Re.getClientRects()).length>1?ht=At[pe=="right"?At.length-1:0]:ht=Re.getBoundingClientRect()}if(de&&te<9&&!Ke&&(!ht||!ht.left&&!ht.right)){var Bt=Re.parentNode.getClientRects()[0];Bt?ht={left:Bt.left,right:Bt.left+to(y.display),top:Bt.top,bottom:Bt.bottom}:ht=No}for(var Pt=ht.top-ie.rect.top,Zt=ht.bottom-ie.rect.top,Kt=(Pt+Zt)/2,$t=ie.view.measure.heights,ar=0;ar<$t.length-1&&!(Kt<$t[ar]);ar++);var pr=ar?$t[ar-1]:0,lr=$t[ar],vr={left:(ut=="right"?ht.right:ht.left)-ie.rect.left,right:(ut=="left"?ht.left:ht.right)-ie.rect.left,top:pr,bottom:lr};return!ht.left&&!ht.right&&(vr.bogus=!0),y.options.singleCursorHeightPerLine||(vr.rtop=Pt,vr.rbottom=Zt),vr}function Fs(y,ie){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!qt(y))return ie;var me=screen.logicalXDPI/screen.deviceXDPI,pe=screen.logicalYDPI/screen.deviceYDPI;return{left:ie.left*me,right:ie.right*me,top:ie.top*pe,bottom:ie.bottom*pe}}function Hs(y){if(y.measure&&(y.measure.cache={},y.measure.heights=null,y.rest))for(var ie=0;ie<y.rest.length;ie++)y.measure.caches[ie]={}}function zs(y){y.display.externalMeasure=null,ge(y.display.lineMeasure);for(var ie=0;ie<y.display.view.length;ie++)Hs(y.display.view[ie])}function Eo(y){zs(y),y.display.cachedCharWidth=y.display.cachedTextHeight=y.display.cachedPaddingH=null,y.options.lineWrapping||(y.display.maxLineChanged=!0),y.display.lineNumChars=null}function Us(){return ee&&re?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ws(){return ee&&re?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Wi(y){var ie=0;if(y.widgets)for(var me=0;me<y.widgets.length;++me)y.widgets[me].above&&(ie+=Ui(y.widgets[me]));return ie}function ki(y,ie,me,pe,Ee){if(!Ee){var Re=Wi(ie);me.top+=Re,me.bottom+=Re}if(pe=="line")return me;pe||(pe="local");var Ke=Mr(ie);if(pe=="local"?Ke+=bi(y.display):Ke-=y.display.viewOffset,pe=="page"||pe=="window"){var nt=y.display.lineSpace.getBoundingClientRect();Ke+=nt.top+(pe=="window"?0:Ws());var ut=nt.left+(pe=="window"?0:Us());me.left+=ut,me.right+=ut}return me.top+=Ke,me.bottom+=Ke,me}function Ao(y,ie,me){if(me=="div")return ie;var pe=ie.left,Ee=ie.top;if(me=="page")pe-=Us(),Ee-=Ws();else if(me=="local"||!me){var Re=y.display.sizer.getBoundingClientRect();pe+=Re.left,Ee+=Re.top}var Ke=y.display.lineSpace.getBoundingClientRect();return{left:pe-Ke.left,top:Ee-Ke.top}}function fo(y,ie,me,pe,Ee){return pe||(pe=Et(y.doc,ie.line)),ki(y,pe,Ns(y,pe,ie.ch,Ee),me)}function fi(y,ie,me,pe,Ee,Re){pe=pe||Et(y.doc,ie.line),Ee||(Ee=co(y,pe));function Ke(Zt,Kt){var $t=Vn(y,Ee,Zt,Kt?"right":"left",Re);return Kt?$t.left=$t.right:$t.right=$t.left,ki(y,pe,$t,me)}var nt=ct(pe,y.doc.direction),ut=ie.ch,ht=ie.sticky;if(ut>=pe.text.length?(ut=pe.text.length,ht="before"):ut<=0&&(ut=0,ht="after"),!nt)return Ke(ht=="before"?ut-1:ut,ht=="before");function St(Zt,Kt,$t){var ar=nt[Kt],pr=ar.level==1;return Ke($t?Zt-1:Zt,pr!=$t)}var At=De(nt,ut,ht),Bt=je,Pt=St(ut,At,ht=="before");return Bt!=null&&(Pt.other=St(ut,Bt,ht!="before")),Pt}function Gs(y,ie){var me=0;ie=rr(y.doc,ie),y.options.lineWrapping||(me=to(y.display)*ie.ch);var pe=Et(y.doc,ie.line),Ee=Mr(pe)+bi(y.display);return{left:me,right:me,top:Ee,bottom:Ee+pe.height}}function di(y,ie,me,pe,Ee){var Re=Ht(y,ie,me);return Re.xRel=Ee,pe&&(Re.outside=pe),Re}function Gi(y,ie,me){var pe=y.doc;if(me+=y.display.viewOffset,me<0)return di(pe.first,0,null,-1,-1);var Ee=br(pe,me),Re=pe.first+pe.size-1;if(Ee>Re)return di(pe.first+pe.size-1,Et(pe,Re).text.length,null,1,1);ie<0&&(ie=0);for(var Ke=Et(pe,Ee);;){var nt=zo(y,Ke,Ee,ie,me),ut=Ar(Ke,nt.ch+(nt.xRel>0||nt.outside>0?1:0));if(!ut)return nt;var ht=ut.find(1);if(ht.line==Ee)return ht;Ke=Et(pe,Ee=ht.line)}}function fs(y,ie,me,pe){pe-=Wi(ie);var Ee=ie.text.length,Re=et(function(Ke){return Vn(y,me,Ke-1).bottom<=pe},Ee,0);return Ee=et(function(Ke){return Vn(y,me,Ke).top>pe},Re,Ee),{begin:Re,end:Ee}}function ds(y,ie,me,pe){me||(me=co(y,ie));var Ee=ki(y,ie,Vn(y,me,pe),"line").top;return fs(y,ie,me,Ee)}function Vs(y,ie,me,pe){return y.bottom<=me?!1:y.top>me?!0:(pe?y.left:y.right)>ie}function zo(y,ie,me,pe,Ee){Ee-=Mr(ie);var Re=co(y,ie),Ke=Wi(ie),nt=0,ut=ie.text.length,ht=!0,St=ct(ie,y.doc.direction);if(St){var At=(y.options.lineWrapping?Uo:ha)(y,ie,me,Re,St,pe,Ee);ht=At.level!=1,nt=ht?At.from:At.to-1,ut=ht?At.to:At.from-1}var Bt=null,Pt=null,Zt=et(function(Er){var xr=Vn(y,Re,Er);return xr.top+=Ke,xr.bottom+=Ke,Vs(xr,pe,Ee,!1)?(xr.top<=Ee&&xr.left<=pe&&(Bt=Er,Pt=xr),!0):!1},nt,ut),Kt,$t,ar=!1;if(Pt){var pr=pe-Pt.left<Pt.right-pe,lr=pr==ht;Zt=Bt+(lr?0:1),$t=lr?"after":"before",Kt=pr?Pt.left:Pt.right}else{!ht&&(Zt==ut||Zt==nt)&&Zt++,$t=Zt==0?"after":Zt==ie.text.length?"before":Vn(y,Re,Zt-(ht?1:0)).bottom+Ke<=Ee==ht?"after":"before";var vr=fi(y,Ht(me,Zt,$t),"line",ie,Re);Kt=vr.left,ar=Ee<vr.top?-1:Ee>=vr.bottom?1:0}return Zt=Ze(ie.text,Zt,1),di(me,Zt,$t,ar,pe-Kt)}function ha(y,ie,me,pe,Ee,Re,Ke){var nt=et(function(At){var Bt=Ee[At],Pt=Bt.level!=1;return Vs(fi(y,Ht(me,Pt?Bt.to:Bt.from,Pt?"before":"after"),"line",ie,pe),Re,Ke,!0)},0,Ee.length-1),ut=Ee[nt];if(nt>0){var ht=ut.level!=1,St=fi(y,Ht(me,ht?ut.from:ut.to,ht?"after":"before"),"line",ie,pe);Vs(St,Re,Ke,!0)&&St.top>Ke&&(ut=Ee[nt-1])}return ut}function Uo(y,ie,me,pe,Ee,Re,Ke){var nt=fs(y,ie,pe,Ke),ut=nt.begin,ht=nt.end;/\s/.test(ie.text.charAt(ht-1))&&ht--;for(var St=null,At=null,Bt=0;Bt<Ee.length;Bt++){var Pt=Ee[Bt];if(!(Pt.from>=ht||Pt.to<=ut)){var Zt=Pt.level!=1,Kt=Vn(y,pe,Zt?Math.min(ht,Pt.to)-1:Math.max(ut,Pt.from)).right,$t=Kt<Re?Re-Kt+1e9:Kt-Re;(!St||At>$t)&&(St=Pt,At=$t)}}return St||(St=Ee[Ee.length-1]),St.from<ut&&(St={from:ut,to:St.to,level:St.level}),St.to>ht&&(St={from:St.from,to:ht,level:St.level}),St}var Zn;function ho(y){if(y.cachedTextHeight!=null)return y.cachedTextHeight;if(Zn==null){Zn=be("pre",null,"CodeMirror-line-like");for(var ie=0;ie<49;++ie)Zn.appendChild(document.createTextNode("x")),Zn.appendChild(be("br"));Zn.appendChild(document.createTextNode("x"))}_e(y.measure,Zn);var me=Zn.offsetHeight/50;return me>3&&(y.cachedTextHeight=me),ge(y.measure),me||1}function to(y){if(y.cachedCharWidth!=null)return y.cachedCharWidth;var ie=be("span","xxxxxxxxxx"),me=be("pre",[ie],"CodeMirror-line-like");_e(y.measure,me);var pe=ie.getBoundingClientRect(),Ee=(pe.right-pe.left)/10;return Ee>2&&(y.cachedCharWidth=Ee),Ee||10}function Wo(y){for(var ie=y.display,me={},pe={},Ee=ie.gutters.clientLeft,Re=ie.gutters.firstChild,Ke=0;Re;Re=Re.nextSibling,++Ke){var nt=y.display.gutterSpecs[Ke].className;me[nt]=Re.offsetLeft+Re.clientLeft+Ee,pe[nt]=Re.clientWidth}return{fixedPos:hs(ie),gutterTotalWidth:ie.gutters.offsetWidth,gutterLeft:me,gutterWidth:pe,wrapperWidth:ie.wrapper.clientWidth}}function hs(y){return y.scroller.getBoundingClientRect().left-y.sizer.getBoundingClientRect().left}function Zs(y){var ie=ho(y.display),me=y.options.lineWrapping,pe=me&&Math.max(5,y.display.scroller.clientWidth/to(y.display)-3);return function(Ee){if(hr(y.doc,Ee))return 0;var Re=0;if(Ee.widgets)for(var Ke=0;Ke<Ee.widgets.length;Ke++)Ee.widgets[Ke].height&&(Re+=Ee.widgets[Ke].height);return me?Re+(Math.ceil(Ee.text.length/pe)||1)*ie:Re+ie}}function ps(y){var ie=y.doc,me=Zs(y);ie.iter(function(pe){var Ee=me(pe);Ee!=pe.height&&zt(pe,Ee)})}function Vi(y,ie,me,pe){var Ee=y.display;if(!me&&_r(ie).getAttribute("cm-not-content")=="true")return null;var Re,Ke,nt=Ee.lineSpace.getBoundingClientRect();try{Re=ie.clientX-nt.left,Ke=ie.clientY-nt.top}catch(At){return null}var ut=Gi(y,Re,Ke),ht;if(pe&&ut.xRel>0&&(ht=Et(y.doc,ut.line).text).length==ut.ch){var St=Me(ht,ht.length,y.options.tabSize)-ht.length;ut=Ht(ut.line,Math.max(0,Math.round((Re-Bs(y.display).left)/to(y.display))-St))}return ut}function ro(y,ie){if(ie>=y.display.viewTo||(ie-=y.display.viewFrom,ie<0))return null;for(var me=y.display.view,pe=0;pe<me.length;pe++)if(ie-=me[pe].size,ie<0)return pe}function xn(y,ie,me,pe){ie==null&&(ie=y.doc.first),me==null&&(me=y.doc.first+y.doc.size),pe||(pe=0);var Ee=y.display;if(pe&&me<Ee.viewTo&&(Ee.updateLineNumbers==null||Ee.updateLineNumbers>ie)&&(Ee.updateLineNumbers=ie),y.curOp.viewChanged=!0,ie>=Ee.viewTo)un&&ur(y.doc,ie)<Ee.viewTo&&xi(y);else if(me<=Ee.viewFrom)un&&Jt(y.doc,me+pe)>Ee.viewFrom?xi(y):(Ee.viewFrom+=pe,Ee.viewTo+=pe);else if(ie<=Ee.viewFrom&&me>=Ee.viewTo)xi(y);else if(ie<=Ee.viewFrom){var Re=Go(y,me,me+pe,1);Re?(Ee.view=Ee.view.slice(Re.index),Ee.viewFrom=Re.lineN,Ee.viewTo+=pe):xi(y)}else if(me>=Ee.viewTo){var Ke=Go(y,ie,ie,-1);Ke?(Ee.view=Ee.view.slice(0,Ke.index),Ee.viewTo=Ke.lineN):xi(y)}else{var nt=Go(y,ie,ie,-1),ut=Go(y,me,me+pe,1);nt&&ut?(Ee.view=Ee.view.slice(0,nt.index).concat(Fi(y,nt.lineN,ut.lineN)).concat(Ee.view.slice(ut.index)),Ee.viewTo+=pe):xi(y)}var ht=Ee.externalMeasured;ht&&(me<ht.lineN?ht.lineN+=pe:ie<ht.lineN+ht.size&&(Ee.externalMeasured=null))}function Di(y,ie,me){y.curOp.viewChanged=!0;var pe=y.display,Ee=y.display.externalMeasured;if(Ee&&ie>=Ee.lineN&&ie<Ee.lineN+Ee.size&&(pe.externalMeasured=null),!(ie<pe.viewFrom||ie>=pe.viewTo)){var Re=pe.view[ro(y,ie)];if(Re.node!=null){var Ke=Re.changes||(Re.changes=[]);it(Ke,me)==-1&&Ke.push(me)}}}function xi(y){y.display.viewFrom=y.display.viewTo=y.doc.first,y.display.view=[],y.display.viewOffset=0}function Go(y,ie,me,pe){var Ee=ro(y,ie),Re,Ke=y.display.view;if(!un||me==y.doc.first+y.doc.size)return{index:Ee,lineN:me};for(var nt=y.display.viewFrom,ut=0;ut<Ee;ut++)nt+=Ke[ut].size;if(nt!=ie){if(pe>0){if(Ee==Ke.length-1)return null;Re=nt+Ke[Ee].size-ie,Ee++}else Re=nt-ie;ie+=Re,me+=Re}for(;ur(y.doc,me)!=me;){if(Ee==(pe<0?0:Ke.length-1))return null;me+=pe*Ke[Ee-(pe<0?1:0)].size,Ee+=pe}return{index:Ee,lineN:me}}function pa(y,ie,me){var pe=y.display,Ee=pe.view;Ee.length==0||ie>=pe.viewTo||me<=pe.viewFrom?(pe.view=Fi(y,ie,me),pe.viewFrom=ie):(pe.viewFrom>ie?pe.view=Fi(y,ie,pe.viewFrom).concat(pe.view):pe.viewFrom<ie&&(pe.view=pe.view.slice(ro(y,ie))),pe.viewFrom=ie,pe.viewTo<me?pe.view=pe.view.concat(Fi(y,pe.viewTo,me)):pe.viewTo>me&&(pe.view=pe.view.slice(0,ro(y,me)))),pe.viewTo=me}function ms(y){for(var ie=y.display.view,me=0,pe=0;pe<ie.length;pe++){var Ee=ie[pe];!Ee.hidden&&(!Ee.node||Ee.changes)&&++me}return me}function Zi(y){y.display.input.showSelection(y.display.input.prepareSelection())}function Vo(y,ie){ie===void 0&&(ie=!0);for(var me=y.doc,pe={},Ee=pe.cursors=document.createDocumentFragment(),Re=pe.selection=document.createDocumentFragment(),Ke=0;Ke<me.sel.ranges.length;Ke++)if(!(!ie&&Ke==me.sel.primIndex)){var nt=me.sel.ranges[Ke];if(!(nt.from().line>=y.display.viewTo||nt.to().line<y.display.viewFrom)){var ut=nt.empty();(ut||y.options.showCursorWhenSelecting)&&Xs(y,nt.head,Ee),ut||Lt(y,nt,Re)}}return pe}function Xs(y,ie,me){var pe=fi(y,ie,"div",null,null,!y.options.singleCursorHeightPerLine),Ee=me.appendChild(be("div","\xA0","CodeMirror-cursor"));if(Ee.style.left=pe.left+"px",Ee.style.top=pe.top+"px",Ee.style.height=Math.max(0,pe.bottom-pe.top)*y.options.cursorHeight+"px",pe.other){var Re=me.appendChild(be("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Re.style.display="",Re.style.left=pe.other.left+"px",Re.style.top=pe.other.top+"px",Re.style.height=(pe.other.bottom-pe.other.top)*.85+"px"}}function Xi(y,ie){return y.top-ie.top||y.left-ie.left}function Lt(y,ie,me){var pe=y.display,Ee=y.doc,Re=document.createDocumentFragment(),Ke=Bs(y.display),nt=Ke.left,ut=Math.max(pe.sizerWidth,eo(y)-pe.sizer.offsetLeft)-Ke.right,ht=Ee.direction=="ltr";function St(lr,vr,Er,xr){vr<0&&(vr=0),vr=Math.round(vr),xr=Math.round(xr),Re.appendChild(be("div",null,"CodeMirror-selected","position: absolute; left: "+lr+`px;
top: `+vr+"px; width: "+(Er==null?ut-lr:Er)+`px;
height: `+(xr-vr)+"px"))}function At(lr,vr,Er){var xr=Et(Ee,lr),Ir=xr.text.length,rn,Dn;function hn(bn,ti){return fo(y,Ht(lr,bn),"div",xr,ti)}function si(bn,ti,jn){var _n=ds(y,xr,null,bn),wn=ti=="ltr"==(jn=="after")?"left":"right",mn=jn=="after"?_n.begin:_n.end-(/\s/.test(xr.text.charAt(_n.end-1))?2:1);return hn(mn,wn)[wn]}var ei=ct(xr,Ee.direction);return Ie(ei,vr||0,Er==null?Ir:Er,function(bn,ti,jn,_n){var wn=jn=="ltr",mn=hn(bn,wn?"left":"right"),ri=hn(ti-1,wn?"right":"left"),rs=vr==null&&bn==0,wo=Er==null&&ti==Ir,Nn=_n==0,Qi=!ei||_n==ei.length-1;if(ri.top-mn.top<=3){var Mn=(ht?rs:wo)&&Nn,Ra=(ht?wo:rs)&&Qi,io=Mn?nt:(wn?mn:ri).left,jo=Ra?ut:(wn?ri:mn).right;St(io,mn.top,jo-io,mn.bottom)}else{var Lo,Kn,ns,Ia;wn?(Lo=ht&&rs&&Nn?nt:mn.left,Kn=ht?ut:si(bn,jn,"before"),ns=ht?nt:si(ti,jn,"after"),Ia=ht&&wo&&Qi?ut:ri.right):(Lo=ht?si(bn,jn,"before"):nt,Kn=!ht&&rs&&Nn?ut:mn.right,ns=!ht&&wo&&Qi?nt:ri.left,Ia=ht?si(ti,jn,"after"):ut),St(Lo,mn.top,Kn-Lo,mn.bottom),mn.bottom<ri.top&&St(nt,mn.bottom,null,ri.top),St(ns,ri.top,Ia-ns,ri.bottom)}(!rn||Xi(mn,rn)<0)&&(rn=mn),Xi(ri,rn)<0&&(rn=ri),(!Dn||Xi(mn,Dn)<0)&&(Dn=mn),Xi(ri,Dn)<0&&(Dn=ri)}),{start:rn,end:Dn}}var Bt=ie.from(),Pt=ie.to();if(Bt.line==Pt.line)At(Bt.line,Bt.ch,Pt.ch);else{var Zt=Et(Ee,Bt.line),Kt=Et(Ee,Pt.line),$t=Pr(Zt)==Pr(Kt),ar=At(Bt.line,Bt.ch,$t?Zt.text.length+1:null).end,pr=At(Pt.line,$t?0:null,Pt.ch).start;$t&&(ar.top<pr.top-2?(St(ar.right,ar.top,null,ar.bottom),St(nt,pr.top,pr.left,pr.bottom)):St(ar.right,ar.top,pr.left-ar.right,ar.bottom)),ar.bottom<pr.top&&St(nt,ar.bottom,null,pr.top)}me.appendChild(Re)}function fr(y){if(y.state.focused){var ie=y.display;clearInterval(ie.blinker);var me=!0;ie.cursorDiv.style.visibility="",y.options.cursorBlinkRate>0?ie.blinker=setInterval(function(){y.hasFocus()||Cr(y),ie.cursorDiv.style.visibility=(me=!me)?"":"hidden"},y.options.cursorBlinkRate):y.options.cursorBlinkRate<0&&(ie.cursorDiv.style.visibility="hidden")}}function gr(y){y.state.focused||(y.display.input.focus(),Dr(y))}function yr(y){y.state.delayingBlurEvent=!0,setTimeout(function(){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1,Cr(y))},100)}function Dr(y,ie){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1),y.options.readOnly!="nocursor"&&(y.state.focused||(Tt(y,"focus",y,ie),y.state.focused=!0,Pe(y.display.wrapper,"CodeMirror-focused"),!y.curOp&&y.display.selForContextMenu!=y.doc.sel&&(y.display.input.reset(),oe&&setTimeout(function(){return y.display.input.reset(!0)},20)),y.display.input.receivedFocus()),fr(y))}function Cr(y,ie){y.state.delayingBlurEvent||(y.state.focused&&(Tt(y,"blur",y,ie),y.state.focused=!1,xe(y.display.wrapper,"CodeMirror-focused")),clearInterval(y.display.blinker),setTimeout(function(){y.state.focused||(y.display.shift=!1)},150))}function fn(y){for(var ie=y.display,me=ie.lineDiv.offsetTop,pe=0;pe<ie.view.length;pe++){var Ee=ie.view[pe],Re=y.options.lineWrapping,Ke=void 0,nt=0;if(!Ee.hidden){if(de&&te<8){var ut=Ee.node.offsetTop+Ee.node.offsetHeight;Ke=ut-me,me=ut}else{var ht=Ee.node.getBoundingClientRect();Ke=ht.bottom-ht.top,!Re&&Ee.text.firstChild&&(nt=Ee.text.firstChild.getBoundingClientRect().right-ht.left-1)}var St=Ee.line.height-Ke;if((St>.005||St<-.005)&&(zt(Ee.line,Ke),ln(Ee.line),Ee.rest))for(var At=0;At<Ee.rest.length;At++)ln(Ee.rest[At]);if(nt>y.display.sizerWidth){var Bt=Math.ceil(nt/to(y.display));Bt>y.display.maxLineLength&&(y.display.maxLineLength=Bt,y.display.maxLine=Ee.line,y.display.maxLineChanged=!0)}}}}function ln(y){if(y.widgets)for(var ie=0;ie<y.widgets.length;++ie){var me=y.widgets[ie],pe=me.node.parentNode;pe&&(me.height=pe.offsetHeight)}}function An(y,ie,me){var pe=me&&me.top!=null?Math.max(0,me.top):y.scroller.scrollTop;pe=Math.floor(pe-bi(y));var Ee=me&&me.bottom!=null?me.bottom:pe+y.wrapper.clientHeight,Re=br(ie,pe),Ke=br(ie,Ee);if(me&&me.ensure){var nt=me.ensure.from.line,ut=me.ensure.to.line;nt<Re?(Re=nt,Ke=br(ie,Mr(Et(ie,nt))+y.wrapper.clientHeight)):Math.min(ut,ie.lastLine())>=Ke&&(Re=br(ie,Mr(Et(ie,ut))-y.wrapper.clientHeight),Ke=ut)}return{from:Re,to:Math.max(Ke,Re+1)}}function vn(y,ie){if(!xt(y,"scrollCursorIntoView")){var me=y.display,pe=me.sizer.getBoundingClientRect(),Ee=null;if(ie.top+pe.top<0?Ee=!0:ie.bottom+pe.top>(window.innerHeight||document.documentElement.clientHeight)&&(Ee=!1),Ee!=null&&!b){var Re=be("div","\u200B",null,`position: absolute;
top: `+(ie.top-me.viewOffset-bi(y.display))+`px;
height: `+(ie.bottom-ie.top+wi(y)+me.barHeight)+`px;
left: `+ie.left+"px; width: "+Math.max(2,ie.right-ie.left)+"px;");y.display.lineSpace.appendChild(Re),Re.scrollIntoView(Ee),y.display.lineSpace.removeChild(Re)}}}function Xn(y,ie,me,pe){pe==null&&(pe=0);var Ee;!y.options.lineWrapping&&ie==me&&(ie=ie.ch?Ht(ie.line,ie.sticky=="before"?ie.ch-1:ie.ch,"after"):ie,me=ie.sticky=="before"?Ht(ie.line,ie.ch+1,"before"):ie);for(var Re=0;Re<5;Re++){var Ke=!1,nt=fi(y,ie),ut=!me||me==ie?nt:fi(y,me);Ee={left:Math.min(nt.left,ut.left),top:Math.min(nt.top,ut.top)-pe,right:Math.max(nt.left,ut.left),bottom:Math.max(nt.bottom,ut.bottom)+pe};var ht=To(y,Ee),St=y.doc.scrollTop,At=y.doc.scrollLeft;if(ht.scrollTop!=null&&(Mi(y,ht.scrollTop),Math.abs(y.doc.scrollTop-St)>1&&(Ke=!0)),ht.scrollLeft!=null&&(Oi(y,ht.scrollLeft),Math.abs(y.doc.scrollLeft-At)>1&&(Ke=!0)),!Ke)break}return Ee}function vs(y,ie){var me=To(y,ie);me.scrollTop!=null&&Mi(y,me.scrollTop),me.scrollLeft!=null&&Oi(y,me.scrollLeft)}function To(y,ie){var me=y.display,pe=ho(y.display);ie.top<0&&(ie.top=0);var Ee=y.curOp&&y.curOp.scrollTop!=null?y.curOp.scrollTop:me.scroller.scrollTop,Re=us(y),Ke={};ie.bottom-ie.top>Re&&(ie.bottom=ie.top+Re);var nt=y.doc.height+So(me),ut=ie.top<pe,ht=ie.bottom>nt-pe;if(ie.top<Ee)Ke.scrollTop=ut?0:ie.top;else if(ie.bottom>Ee+Re){var St=Math.min(ie.top,(ht?nt:ie.bottom)-Re);St!=Ee&&(Ke.scrollTop=St)}var At=y.options.fixedGutter?0:me.gutters.offsetWidth,Bt=y.curOp&&y.curOp.scrollLeft!=null?y.curOp.scrollLeft:me.scroller.scrollLeft-At,Pt=eo(y)-me.gutters.offsetWidth,Zt=ie.right-ie.left>Pt;return Zt&&(ie.right=ie.left+Pt),ie.left<10?Ke.scrollLeft=0:ie.left<Bt?Ke.scrollLeft=Math.max(0,ie.left+At-(Zt?0:10)):ie.right>Pt+Bt-3&&(Ke.scrollLeft=ie.right+(Zt?0:10)-Pt),Ke}function Yi(y,ie){ie!=null&&(po(y),y.curOp.scrollTop=(y.curOp.scrollTop==null?y.doc.scrollTop:y.curOp.scrollTop)+ie)}function hi(y){po(y);var ie=y.getCursor();y.curOp.scrollToPos={from:ie,to:ie,margin:y.options.cursorScrollMargin}}function _i(y,ie,me){(ie!=null||me!=null)&&po(y),ie!=null&&(y.curOp.scrollLeft=ie),me!=null&&(y.curOp.scrollTop=me)}function ko(y,ie){po(y),y.curOp.scrollToPos=ie}function po(y){var ie=y.curOp.scrollToPos;if(ie){y.curOp.scrollToPos=null;var me=Gs(y,ie.from),pe=Gs(y,ie.to);gs(y,me,pe,ie.margin)}}function gs(y,ie,me,pe){var Ee=To(y,{left:Math.min(ie.left,me.left),top:Math.min(ie.top,me.top)-pe,right:Math.max(ie.right,me.right),bottom:Math.max(ie.bottom,me.bottom)+pe});_i(y,Ee.scrollLeft,Ee.scrollTop)}function Mi(y,ie){Math.abs(y.doc.scrollTop-ie)<2||(ve||va(y,{top:ie}),Ki(y,ie,!0),ve&&va(y),ws(y,100))}function Ki(y,ie,me){ie=Math.max(0,Math.min(y.display.scroller.scrollHeight-y.display.scroller.clientHeight,ie)),!(y.display.scroller.scrollTop==ie&&!me)&&(y.doc.scrollTop=ie,y.display.scrollbars.setScrollTop(ie),y.display.scroller.scrollTop!=ie&&(y.display.scroller.scrollTop=ie))}function Oi(y,ie,me,pe){ie=Math.max(0,Math.min(ie,y.display.scroller.scrollWidth-y.display.scroller.clientWidth)),!((me?ie==y.doc.scrollLeft:Math.abs(y.doc.scrollLeft-ie)<2)&&!pe)&&(y.doc.scrollLeft=ie,Ga(y),y.display.scroller.scrollLeft!=ie&&(y.display.scroller.scrollLeft=ie),y.display.scrollbars.setScrollLeft(ie))}function ys(y){var ie=y.display,me=ie.gutters.offsetWidth,pe=Math.round(y.doc.height+So(y.display));return{clientHeight:ie.scroller.clientHeight,viewHeight:ie.wrapper.clientHeight,scrollWidth:ie.scroller.scrollWidth,clientWidth:ie.scroller.clientWidth,viewWidth:ie.wrapper.clientWidth,barLeft:y.options.fixedGutter?me:0,docHeight:pe,scrollHeight:pe+wi(y)+ie.barHeight,nativeBarWidth:ie.nativeBarWidth,gutterWidth:me}}var Do=function(y,ie,me){this.cm=me;var pe=this.vert=be("div",[be("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Ee=this.horiz=be("div",[be("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");pe.tabIndex=Ee.tabIndex=-1,y(pe),y(Ee),vt(pe,"scroll",function(){pe.clientHeight&&ie(pe.scrollTop,"vertical")}),vt(Ee,"scroll",function(){Ee.clientWidth&&ie(Ee.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,de&&te<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Do.prototype.update=function(y){var ie=y.scrollWidth>y.clientWidth+1,me=y.scrollHeight>y.clientHeight+1,pe=y.nativeBarWidth;if(me){this.vert.style.display="block",this.vert.style.bottom=ie?pe+"px":"0";var Ee=y.viewHeight-(ie?pe:0);this.vert.firstChild.style.height=Math.max(0,y.scrollHeight-y.clientHeight+Ee)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ie){this.horiz.style.display="block",this.horiz.style.right=me?pe+"px":"0",this.horiz.style.left=y.barLeft+"px";var Re=y.viewWidth-y.barLeft-(me?pe:0);this.horiz.firstChild.style.width=Math.max(0,y.scrollWidth-y.clientWidth+Re)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&y.clientHeight>0&&(pe==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:me?pe:0,bottom:ie?pe:0}},Do.prototype.setScrollLeft=function(y){this.horiz.scrollLeft!=y&&(this.horiz.scrollLeft=y),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Do.prototype.setScrollTop=function(y){this.vert.scrollTop!=y&&(this.vert.scrollTop=y),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Do.prototype.zeroWidthHack=function(){var y=le&&!x?"12px":"18px";this.horiz.style.height=this.vert.style.width=y,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new We,this.disableVert=new We},Do.prototype.enableZeroWidthBar=function(y,ie,me){y.style.pointerEvents="auto";function pe(){var Ee=y.getBoundingClientRect(),Re=me=="vert"?document.elementFromPoint(Ee.right-1,(Ee.top+Ee.bottom)/2):document.elementFromPoint((Ee.right+Ee.left)/2,Ee.bottom-1);Re!=y?y.style.pointerEvents="none":ie.set(1e3,pe)}ie.set(1e3,pe)},Do.prototype.clear=function(){var y=this.horiz.parentNode;y.removeChild(this.horiz),y.removeChild(this.vert)};var bs=function(){};bs.prototype.update=function(){return{bottom:0,right:0}},bs.prototype.setScrollLeft=function(){},bs.prototype.setScrollTop=function(){},bs.prototype.clear=function(){};function Zo(y,ie){ie||(ie=ys(y));var me=y.display.barWidth,pe=y.display.barHeight;Ha(y,ie);for(var Ee=0;Ee<4&&me!=y.display.barWidth||pe!=y.display.barHeight;Ee++)me!=y.display.barWidth&&y.options.lineWrapping&&fn(y),Ha(y,ys(y)),me=y.display.barWidth,pe=y.display.barHeight}function Ha(y,ie){var me=y.display,pe=me.scrollbars.update(ie);me.sizer.style.paddingRight=(me.barWidth=pe.right)+"px",me.sizer.style.paddingBottom=(me.barHeight=pe.bottom)+"px",me.heightForcer.style.borderBottom=pe.bottom+"px solid transparent",pe.right&&pe.bottom?(me.scrollbarFiller.style.display="block",me.scrollbarFiller.style.height=pe.bottom+"px",me.scrollbarFiller.style.width=pe.right+"px"):me.scrollbarFiller.style.display="",pe.bottom&&y.options.coverGutterNextToScrollbar&&y.options.fixedGutter?(me.gutterFiller.style.display="block",me.gutterFiller.style.height=pe.bottom+"px",me.gutterFiller.style.width=ie.gutterWidth+"px"):me.gutterFiller.style.display=""}var za={native:Do,null:bs};function Ua(y){y.display.scrollbars&&(y.display.scrollbars.clear(),y.display.scrollbars.addClass&&xe(y.display.wrapper,y.display.scrollbars.addClass)),y.display.scrollbars=new za[y.options.scrollbarStyle](function(ie){y.display.wrapper.insertBefore(ie,y.display.scrollbarFiller),vt(ie,"mousedown",function(){y.state.focused&&setTimeout(function(){return y.display.input.focus()},0)}),ie.setAttribute("cm-not-content","true")},function(ie,me){me=="horizontal"?Oi(y,ie):Mi(y,ie)},y),y.display.scrollbars.addClass&&Pe(y.display.wrapper,y.display.scrollbars.addClass)}var $l=0;function Mo(y){y.curOp={cm:y,viewChanged:!1,startHeight:y.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:++$l},ao(y.curOp)}function Oo(y){var ie=y.curOp;ie&&qr(ie,function(me){for(var pe=0;pe<me.ops.length;pe++)me.ops[pe].cm.curOp=null;eu(me)})}function eu(y){for(var ie=y.ops,me=0;me<ie.length;me++)tu(ie[me]);for(var pe=0;pe<ie.length;pe++)ru(ie[pe]);for(var Ee=0;Ee<ie.length;Ee++)nu(ie[Ee]);for(var Re=0;Re<ie.length;Re++)iu(ie[Re]);for(var Ke=0;Ke<ie.length;Ke++)ou(ie[Ke])}function tu(y){var ie=y.cm,me=ie.display;au(ie),y.updateMaxLine&&sr(ie),y.mustUpdate=y.viewChanged||y.forceUpdate||y.scrollTop!=null||y.scrollToPos&&(y.scrollToPos.from.line<me.viewFrom||y.scrollToPos.to.line>=me.viewTo)||me.maxLineChanged&&ie.options.lineWrapping,y.update=y.mustUpdate&&new Ys(ie,y.mustUpdate&&{top:y.scrollTop,ensure:y.scrollToPos},y.forceUpdate)}function ru(y){y.updatedDisplay=y.mustUpdate&&ma(y.cm,y.update)}function nu(y){var ie=y.cm,me=ie.display;y.updatedDisplay&&fn(ie),y.barMeasure=ys(ie),me.maxLineChanged&&!ie.options.lineWrapping&&(y.adjustWidthTo=Ns(ie,me.maxLine,me.maxLine.text.length).left+3,ie.display.sizerWidth=y.adjustWidthTo,y.barMeasure.scrollWidth=Math.max(me.scroller.clientWidth,me.sizer.offsetLeft+y.adjustWidthTo+wi(ie)+ie.display.barWidth),y.maxScrollLeft=Math.max(0,me.sizer.offsetLeft+y.adjustWidthTo-eo(ie))),(y.updatedDisplay||y.selectionChanged)&&(y.preparedSelection=me.input.prepareSelection())}function iu(y){var ie=y.cm;y.adjustWidthTo!=null&&(ie.display.sizer.style.minWidth=y.adjustWidthTo+"px",y.maxScrollLeft<ie.doc.scrollLeft&&Oi(ie,Math.min(ie.display.scroller.scrollLeft,y.maxScrollLeft),!0),ie.display.maxLineChanged=!1);var me=y.focus&&y.focus==ke();y.preparedSelection&&ie.display.input.showSelection(y.preparedSelection,me),(y.updatedDisplay||y.startHeight!=ie.doc.height)&&Zo(ie,y.barMeasure),y.updatedDisplay&&ya(ie,y.barMeasure),y.selectionChanged&&fr(ie),ie.state.focused&&y.updateInput&&ie.display.input.reset(y.typing),me&&gr(y.cm)}function ou(y){var ie=y.cm,me=ie.display,pe=ie.doc;if(y.updatedDisplay&&Wa(ie,y.update),me.wheelStartX!=null&&(y.scrollTop!=null||y.scrollLeft!=null||y.scrollToPos)&&(me.wheelStartX=me.wheelStartY=null),y.scrollTop!=null&&Ki(ie,y.scrollTop,y.forceScroll),y.scrollLeft!=null&&Oi(ie,y.scrollLeft,!0,!0),y.scrollToPos){var Ee=Xn(ie,rr(pe,y.scrollToPos.from),rr(pe,y.scrollToPos.to),y.scrollToPos.margin);vn(ie,Ee)}var Re=y.maybeHiddenMarkers,Ke=y.maybeUnhiddenMarkers;if(Re)for(var nt=0;nt<Re.length;++nt)Re[nt].lines.length||Tt(Re[nt],"hide");if(Ke)for(var ut=0;ut<Ke.length;++ut)Ke[ut].lines.length&&Tt(Ke[ut],"unhide");me.wrapper.offsetHeight&&(pe.scrollTop=ie.display.scroller.scrollTop),y.changeObjs&&Tt(ie,"changes",ie,y.changeObjs),y.update&&y.update.finish()}function oi(y,ie){if(y.curOp)return ie();Mo(y);try{return ie()}finally{Oo(y)}}function Tn(y,ie){return function(){if(y.curOp)return ie.apply(y,arguments);Mo(y);try{return ie.apply(y,arguments)}finally{Oo(y)}}}function Yn(y){return function(){if(this.curOp)return y.apply(this,arguments);Mo(this);try{return y.apply(this,arguments)}finally{Oo(this)}}}function kn(y){return function(){var ie=this.cm;if(!ie||ie.curOp)return y.apply(this,arguments);Mo(ie);try{return y.apply(this,arguments)}finally{Oo(ie)}}}function ws(y,ie){y.doc.highlightFrontier<y.display.viewTo&&y.state.highlight.set(ie,Ge(su,y))}function su(y){var ie=y.doc;if(!(ie.highlightFrontier>=y.display.viewTo)){var me=+new Date+y.options.workTime,pe=tn(y,ie.highlightFrontier),Ee=[];ie.iter(pe.line,Math.min(ie.first+ie.size,y.display.viewTo+500),function(Re){if(pe.line>=y.display.viewFrom){var Ke=Re.styles,nt=Re.text.length>y.options.maxHighlightLength?Ct(ie.mode,pe.state):null,ut=pn(y,Re,pe,!0);nt&&(pe.state=nt),Re.styles=ut.styles;var ht=Re.styleClasses,St=ut.classes;St?Re.styleClasses=St:ht&&(Re.styleClasses=null);for(var At=!Ke||Ke.length!=Re.styles.length||ht!=St&&(!ht||!St||ht.bgClass!=St.bgClass||ht.textClass!=St.textClass),Bt=0;!At&&Bt<Ke.length;++Bt)At=Ke[Bt]!=Re.styles[Bt];At&&Ee.push(pe.line),Re.stateAfter=pe.save(),pe.nextLine()}else Re.text.length<=y.options.maxHighlightLength&&zn(y,Re.text,pe),Re.stateAfter=pe.line%5==0?pe.save():null,pe.nextLine();if(+new Date>me)return ws(y,y.options.workDelay),!0}),ie.highlightFrontier=pe.line,ie.modeFrontier=Math.max(ie.modeFrontier,pe.line),Ee.length&&oi(y,function(){for(var Re=0;Re<Ee.length;Re++)Di(y,Ee[Re],"text")})}}var Ys=function(y,ie,me){var pe=y.display;this.viewport=ie,this.visible=An(pe,y.doc,ie),this.editorIsHidden=!pe.wrapper.offsetWidth,this.wrapperHeight=pe.wrapper.clientHeight,this.wrapperWidth=pe.wrapper.clientWidth,this.oldDisplayWidth=eo(y),this.force=me,this.dims=Wo(y),this.events=[]};Ys.prototype.signal=function(y,ie){Rt(y,ie)&&this.events.push(arguments)},Ys.prototype.finish=function(){for(var y=0;y<this.events.length;y++)Tt.apply(null,this.events[y])};function au(y){var ie=y.display;!ie.scrollbarsClipped&&ie.scroller.offsetWidth&&(ie.nativeBarWidth=ie.scroller.offsetWidth-ie.scroller.clientWidth,ie.heightForcer.style.height=wi(y)+"px",ie.sizer.style.marginBottom=-ie.nativeBarWidth+"px",ie.sizer.style.borderRightWidth=wi(y)+"px",ie.scrollbarsClipped=!0)}function lu(y){if(y.hasFocus())return null;var ie=ke();if(!ie||!Le(y.display.lineDiv,ie))return null;var me={activeElt:ie};if(window.getSelection){var pe=window.getSelection();pe.anchorNode&&pe.extend&&Le(y.display.lineDiv,pe.anchorNode)&&(me.anchorNode=pe.anchorNode,me.anchorOffset=pe.anchorOffset,me.focusNode=pe.focusNode,me.focusOffset=pe.focusOffset)}return me}function uu(y){if(!(!y||!y.activeElt||y.activeElt==ke())&&(y.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(y.activeElt.nodeName)&&y.anchorNode&&Le(document.body,y.anchorNode)&&Le(document.body,y.focusNode))){var ie=window.getSelection(),me=document.createRange();me.setEnd(y.anchorNode,y.anchorOffset),me.collapse(!1),ie.removeAllRanges(),ie.addRange(me),ie.extend(y.focusNode,y.focusOffset)}}function ma(y,ie){var me=y.display,pe=y.doc;if(ie.editorIsHidden)return xi(y),!1;if(!ie.force&&ie.visible.from>=me.viewFrom&&ie.visible.to<=me.viewTo&&(me.updateLineNumbers==null||me.updateLineNumbers>=me.viewTo)&&me.renderedView==me.view&&ms(y)==0)return!1;Va(y)&&(xi(y),ie.dims=Wo(y));var Ee=pe.first+pe.size,Re=Math.max(ie.visible.from-y.options.viewportMargin,pe.first),Ke=Math.min(Ee,ie.visible.to+y.options.viewportMargin);me.viewFrom<Re&&Re-me.viewFrom<20&&(Re=Math.max(pe.first,me.viewFrom)),me.viewTo>Ke&&me.viewTo-Ke<20&&(Ke=Math.min(Ee,me.viewTo)),un&&(Re=ur(y.doc,Re),Ke=Jt(y.doc,Ke));var nt=Re!=me.viewFrom||Ke!=me.viewTo||me.lastWrapHeight!=ie.wrapperHeight||me.lastWrapWidth!=ie.wrapperWidth;pa(y,Re,Ke),me.viewOffset=Mr(Et(y.doc,me.viewFrom)),y.display.mover.style.top=me.viewOffset+"px";var ut=ms(y);if(!nt&&ut==0&&!ie.force&&me.renderedView==me.view&&(me.updateLineNumbers==null||me.updateLineNumbers>=me.viewTo))return!1;var ht=lu(y);return ut>4&&(me.lineDiv.style.display="none"),cu(y,me.updateLineNumbers,ie.dims),ut>4&&(me.lineDiv.style.display=""),me.renderedView=me.view,uu(ht),ge(me.cursorDiv),ge(me.selectionDiv),me.gutters.style.height=me.sizer.style.minHeight=0,nt&&(me.lastWrapHeight=ie.wrapperHeight,me.lastWrapWidth=ie.wrapperWidth,ws(y,400)),me.updateLineNumbers=null,!0}function Wa(y,ie){for(var me=ie.viewport,pe=!0;;pe=!1){if(!pe||!y.options.lineWrapping||ie.oldDisplayWidth==eo(y)){if(me&&me.top!=null&&(me={top:Math.min(y.doc.height+So(y.display)-us(y),me.top)}),ie.visible=An(y.display,y.doc,me),ie.visible.from>=y.display.viewFrom&&ie.visible.to<=y.display.viewTo)break}else pe&&(ie.visible=An(y.display,y.doc,me));if(!ma(y,ie))break;fn(y);var Ee=ys(y);Zi(y),Zo(y,Ee),ya(y,Ee),ie.force=!1}ie.signal(y,"update",y),(y.display.viewFrom!=y.display.reportedViewFrom||y.display.viewTo!=y.display.reportedViewTo)&&(ie.signal(y,"viewportChange",y,y.display.viewFrom,y.display.viewTo),y.display.reportedViewFrom=y.display.viewFrom,y.display.reportedViewTo=y.display.viewTo)}function va(y,ie){var me=new Ys(y,ie);if(ma(y,me)){fn(y),Wa(y,me);var pe=ys(y);Zi(y),Zo(y,pe),ya(y,pe),me.finish()}}function cu(y,ie,me){var pe=y.display,Ee=y.options.lineNumbers,Re=pe.lineDiv,Ke=Re.firstChild;function nt(Zt){var Kt=Zt.nextSibling;return oe&&le&&y.display.currentWheelTarget==Zt?Zt.style.display="none":Zt.parentNode.removeChild(Zt),Kt}for(var ut=pe.view,ht=pe.viewFrom,St=0;St<ut.length;St++){var At=ut[St];if(!At.hidden)if(!At.node||At.node.parentNode!=Re){var Bt=Is(y,At,ht,me);Re.insertBefore(Bt,Ke)}else{for(;Ke!=At.node;)Ke=nt(Ke);var Pt=Ee&&ie!=null&&ie<=ht&&At.lineNumber;At.changes&&(it(At.changes,"gutter")>-1&&(Pt=!1),$i(y,At,ht,me)),Pt&&(ge(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(Sr(y.options,ht)))),Ke=At.node.nextSibling}ht+=At.size}for(;Ke;)Ke=nt(Ke)}function ga(y){var ie=y.gutters.offsetWidth;y.sizer.style.marginLeft=ie+"px"}function ya(y,ie){y.display.sizer.style.minHeight=ie.docHeight+"px",y.display.heightForcer.style.top=ie.docHeight+"px",y.display.gutters.style.height=ie.docHeight+y.display.barHeight+wi(y)+"px"}function Ga(y){var ie=y.display,me=ie.view;if(!(!ie.alignWidgets&&(!ie.gutters.firstChild||!y.options.fixedGutter))){for(var pe=hs(ie)-ie.scroller.scrollLeft+y.doc.scrollLeft,Ee=ie.gutters.offsetWidth,Re=pe+"px",Ke=0;Ke<me.length;Ke++)if(!me[Ke].hidden){y.options.fixedGutter&&(me[Ke].gutter&&(me[Ke].gutter.style.left=Re),me[Ke].gutterBackground&&(me[Ke].gutterBackground.style.left=Re));var nt=me[Ke].alignable;if(nt)for(var ut=0;ut<nt.length;ut++)nt[ut].style.left=Re}y.options.fixedGutter&&(ie.gutters.style.left=pe+Ee+"px")}}function Va(y){if(!y.options.lineNumbers)return!1;var ie=y.doc,me=Sr(y.options,ie.first+ie.size-1),pe=y.display;if(me.length!=pe.lineNumChars){var Ee=pe.measure.appendChild(be("div",[be("div",me)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Re=Ee.firstChild.offsetWidth,Ke=Ee.offsetWidth-Re;return pe.lineGutter.style.width="",pe.lineNumInnerWidth=Math.max(Re,pe.lineGutter.offsetWidth-Ke)+1,pe.lineNumWidth=pe.lineNumInnerWidth+Ke,pe.lineNumChars=pe.lineNumInnerWidth?me.length:-1,pe.lineGutter.style.width=pe.lineNumWidth+"px",ga(y.display),!0}return!1}function ba(y,ie){for(var me=[],pe=!1,Ee=0;Ee<y.length;Ee++){var Re=y[Ee],Ke=null;if(typeof Re!="string"&&(Ke=Re.style,Re=Re.className),Re=="CodeMirror-linenumbers")if(ie)pe=!0;else continue;me.push({className:Re,style:Ke})}return ie&&!pe&&me.push({className:"CodeMirror-linenumbers",style:null}),me}function Za(y){var ie=y.gutters,me=y.gutterSpecs;ge(ie),y.lineGutter=null;for(var pe=0;pe<me.length;++pe){var Ee=me[pe],Re=Ee.className,Ke=Ee.style,nt=ie.appendChild(be("div",null,"CodeMirror-gutter "+Re));Ke&&(nt.style.cssText=Ke),Re=="CodeMirror-linenumbers"&&(y.lineGutter=nt,nt.style.width=(y.lineNumWidth||1)+"px")}ie.style.display=me.length?"":"none",ga(y)}function xs(y){Za(y.display),xn(y),Ga(y)}function fu(y,ie,me,pe){var Ee=this;this.input=me,Ee.scrollbarFiller=be("div",null,"CodeMirror-scrollbar-filler"),Ee.scrollbarFiller.setAttribute("cm-not-content","true"),Ee.gutterFiller=be("div",null,"CodeMirror-gutter-filler"),Ee.gutterFiller.setAttribute("cm-not-content","true"),Ee.lineDiv=Ae("div",null,"CodeMirror-code"),Ee.selectionDiv=be("div",null,null,"position: relative; z-index: 1"),Ee.cursorDiv=be("div",null,"CodeMirror-cursors"),Ee.measure=be("div",null,"CodeMirror-measure"),Ee.lineMeasure=be("div",null,"CodeMirror-measure"),Ee.lineSpace=Ae("div",[Ee.measure,Ee.lineMeasure,Ee.selectionDiv,Ee.cursorDiv,Ee.lineDiv],null,"position: relative; outline: none");var Re=Ae("div",[Ee.lineSpace],"CodeMirror-lines");Ee.mover=be("div",[Re],null,"position: relative"),Ee.sizer=be("div",[Ee.mover],"CodeMirror-sizer"),Ee.sizerWidth=null,Ee.heightForcer=be("div",null,null,"position: absolute; height: "+at+"px; width: 1px;"),Ee.gutters=be("div",null,"CodeMirror-gutters"),Ee.lineGutter=null,Ee.scroller=be("div",[Ee.sizer,Ee.heightForcer,Ee.gutters],"CodeMirror-scroll"),Ee.scroller.setAttribute("tabIndex","-1"),Ee.wrapper=be("div",[Ee.scrollbarFiller,Ee.gutterFiller,Ee.scroller],"CodeMirror"),de&&te<8&&(Ee.gutters.style.zIndex=-1,Ee.scroller.style.paddingRight=0),!oe&&!(ve&&ae)&&(Ee.scroller.draggable=!0),y&&(y.appendChild?y.appendChild(Ee.wrapper):y(Ee.wrapper)),Ee.viewFrom=Ee.viewTo=ie.first,Ee.reportedViewFrom=Ee.reportedViewTo=ie.first,Ee.view=[],Ee.renderedView=null,Ee.externalMeasured=null,Ee.viewOffset=0,Ee.lastWrapHeight=Ee.lastWrapWidth=0,Ee.updateLineNumbers=null,Ee.nativeBarWidth=Ee.barHeight=Ee.barWidth=0,Ee.scrollbarsClipped=!1,Ee.lineNumWidth=Ee.lineNumInnerWidth=Ee.lineNumChars=null,Ee.alignWidgets=!1,Ee.cachedCharWidth=Ee.cachedTextHeight=Ee.cachedPaddingH=null,Ee.maxLine=null,Ee.maxLineLength=0,Ee.maxLineChanged=!1,Ee.wheelDX=Ee.wheelDY=Ee.wheelStartX=Ee.wheelStartY=null,Ee.shift=!1,Ee.selForContextMenu=null,Ee.activeTouch=null,Ee.gutterSpecs=ba(pe.gutters,pe.lineNumbers),Za(Ee),me.init(Ee)}var Ks=0,pi=null;de?pi=-.53:ve?pi=15:ee?pi=-.7:z&&(pi=-1/3);function Xa(y){var ie=y.wheelDeltaX,me=y.wheelDeltaY;return ie==null&&y.detail&&y.axis==y.HORIZONTAL_AXIS&&(ie=y.detail),me==null&&y.detail&&y.axis==y.VERTICAL_AXIS?me=y.detail:me==null&&(me=y.wheelDelta),{x:ie,y:me}}function du(y){var ie=Xa(y);return ie.x*=pi,ie.y*=pi,ie}function Ya(y,ie){var me=Xa(ie),pe=me.x,Ee=me.y,Re=y.display,Ke=Re.scroller,nt=Ke.scrollWidth>Ke.clientWidth,ut=Ke.scrollHeight>Ke.clientHeight;if(pe&&nt||Ee&&ut){if(Ee&&le&&oe){e:for(var ht=ie.target,St=Re.view;ht!=Ke;ht=ht.parentNode)for(var At=0;At<St.length;At++)if(St[At].node==ht){y.display.currentWheelTarget=ht;break e}}if(pe&&!ve&&!se&&pi!=null){Ee&&ut&&Mi(y,Math.max(0,Ke.scrollTop+Ee*pi)),Oi(y,Math.max(0,Ke.scrollLeft+pe*pi)),(!Ee||Ee&&ut)&&Qt(ie),Re.wheelStartX=null;return}if(Ee&&pi!=null){var Bt=Ee*pi,Pt=y.doc.scrollTop,Zt=Pt+Re.wrapper.clientHeight;Bt<0?Pt=Math.max(0,Pt+Bt-50):Zt=Math.min(y.doc.height,Zt+Bt+50),va(y,{top:Pt,bottom:Zt})}Ks<20&&(Re.wheelStartX==null?(Re.wheelStartX=Ke.scrollLeft,Re.wheelStartY=Ke.scrollTop,Re.wheelDX=pe,Re.wheelDY=Ee,setTimeout(function(){if(Re.wheelStartX!=null){var Kt=Ke.scrollLeft-Re.wheelStartX,$t=Ke.scrollTop-Re.wheelStartY,ar=$t&&Re.wheelDY&&$t/Re.wheelDY||Kt&&Re.wheelDX&&Kt/Re.wheelDX;Re.wheelStartX=Re.wheelStartY=null,ar&&(pi=(pi*Ks+ar)/(Ks+1),++Ks)}},200)):(Re.wheelDX+=pe,Re.wheelDY+=Ee))}}var mi=function(y,ie){this.ranges=y,this.primIndex=ie};mi.prototype.primary=function(){return this.ranges[this.primIndex]},mi.prototype.equals=function(y){if(y==this)return!0;if(y.primIndex!=this.primIndex||y.ranges.length!=this.ranges.length)return!1;for(var ie=0;ie<this.ranges.length;ie++){var me=this.ranges[ie],pe=y.ranges[ie];if(!Or(me.anchor,pe.anchor)||!Or(me.head,pe.head))return!1}return!0},mi.prototype.deepCopy=function(){for(var y=[],ie=0;ie<this.ranges.length;ie++)y[ie]=new Kr(Lr(this.ranges[ie].anchor),Lr(this.ranges[ie].head));return new mi(y,this.primIndex)},mi.prototype.somethingSelected=function(){for(var y=0;y<this.ranges.length;y++)if(!this.ranges[y].empty())return!0;return!1},mi.prototype.contains=function(y,ie){ie||(ie=y);for(var me=0;me<this.ranges.length;me++){var pe=this.ranges[me];if(nr(ie,pe.from())>=0&&nr(y,pe.to())<=0)return me}return-1};var Kr=function(y,ie){this.anchor=y,this.head=ie};Kr.prototype.from=function(){return wr(this.anchor,this.head)},Kr.prototype.to=function(){return Br(this.anchor,this.head)},Kr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ji(y,ie,me){var pe=y&&y.options.selectionsMayTouch,Ee=ie[me];ie.sort(function(Bt,Pt){return nr(Bt.from(),Pt.from())}),me=it(ie,Ee);for(var Re=1;Re<ie.length;Re++){var Ke=ie[Re],nt=ie[Re-1],ut=nr(nt.to(),Ke.from());if(pe&&!Ke.empty()?ut>0:ut>=0){var ht=wr(nt.from(),Ke.from()),St=Br(nt.to(),Ke.to()),At=nt.empty()?Ke.from()==Ke.head:nt.from()==nt.head;Re<=me&&--me,ie.splice(--Re,2,new Kr(At?St:ht,At?ht:St))}}return new mi(ie,me)}function mo(y,ie){return new mi([new Kr(y,ie||y)],0)}function vo(y){return y.text?Ht(y.from.line+y.text.length-1,ft(y.text).length+(y.text.length==1?y.from.ch:0)):y.to}function Ka(y,ie){if(nr(y,ie.from)<0)return y;if(nr(y,ie.to)<=0)return vo(ie);var me=y.line+ie.text.length-(ie.to.line-ie.from.line)-1,pe=y.ch;return y.line==ie.to.line&&(pe+=vo(ie).ch-ie.to.ch),Ht(me,pe)}function wa(y,ie){for(var me=[],pe=0;pe<y.sel.ranges.length;pe++){var Ee=y.sel.ranges[pe];me.push(new Kr(Ka(Ee.anchor,ie),Ka(Ee.head,ie)))}return ji(y.cm,me,y.sel.primIndex)}function Qa(y,ie,me){return y.line==ie.line?Ht(me.line,y.ch-ie.ch+me.ch):Ht(me.line+(y.line-ie.line),y.ch)}function hu(y,ie,me){for(var pe=[],Ee=Ht(y.first,0),Re=Ee,Ke=0;Ke<ie.length;Ke++){var nt=ie[Ke],ut=Qa(nt.from,Ee,Re),ht=Qa(vo(nt),Ee,Re);if(Ee=nt.to,Re=ht,me=="around"){var St=y.sel.ranges[Ke],At=nr(St.head,St.anchor)<0;pe[Ke]=new Kr(At?ht:ut,At?ut:ht)}else pe[Ke]=new Kr(ut,ut)}return new mi(pe,y.sel.primIndex)}function xa(y){y.doc.mode=Dt(y.options,y.doc.modeOption),_s(y)}function _s(y){y.doc.iter(function(ie){ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null)}),y.doc.modeFrontier=y.doc.highlightFrontier=y.doc.first,ws(y,100),y.state.modeGen++,y.curOp&&xn(y)}function Ja(y,ie){return ie.from.ch==0&&ie.to.ch==0&&ft(ie.text)==""&&(!y.cm||y.cm.options.wholeLineUpdateBefore)}function _a(y,ie,me,pe){function Ee(pr){return me?me[pr]:null}function Re(pr,lr,vr){Gr(pr,lr,vr,pe),Yr(pr,"change",pr,ie)}function Ke(pr,lr){for(var vr=[],Er=pr;Er<lr;++Er)vr.push(new Zr(ht[Er],Ee(Er),pe));return vr}var nt=ie.from,ut=ie.to,ht=ie.text,St=Et(y,nt.line),At=Et(y,ut.line),Bt=ft(ht),Pt=Ee(ht.length-1),Zt=ut.line-nt.line;if(ie.full)y.insert(0,Ke(0,ht.length)),y.remove(ht.length,y.size-ht.length);else if(Ja(y,ie)){var Kt=Ke(0,ht.length-1);Re(At,At.text,Pt),Zt&&y.remove(nt.line,Zt),Kt.length&&y.insert(nt.line,Kt)}else if(St==At)if(ht.length==1)Re(St,St.text.slice(0,nt.ch)+Bt+St.text.slice(ut.ch),Pt);else{var $t=Ke(1,ht.length-1);$t.push(new Zr(Bt+St.text.slice(ut.ch),Pt,pe)),Re(St,St.text.slice(0,nt.ch)+ht[0],Ee(0)),y.insert(nt.line+1,$t)}else if(ht.length==1)Re(St,St.text.slice(0,nt.ch)+ht[0]+At.text.slice(ut.ch),Ee(0)),y.remove(nt.line+1,Zt);else{Re(St,St.text.slice(0,nt.ch)+ht[0],Ee(0)),Re(At,Bt+At.text.slice(ut.ch),Pt);var ar=Ke(1,ht.length-1);Zt>1&&y.remove(nt.line+1,Zt-1),y.insert(nt.line+1,ar)}Yr(y,"change",y,ie)}function go(y,ie,me){function pe(Ee,Re,Ke){if(Ee.linked)for(var nt=0;nt<Ee.linked.length;++nt){var ut=Ee.linked[nt];if(ut.doc!=Re){var ht=Ke&&ut.sharedHist;me&&!ht||(ie(ut.doc,ht),pe(ut.doc,Ee,ht))}}}pe(y,null,!0)}function qa(y,ie){if(ie.cm)throw new Error("This document is already in use.");y.doc=ie,ie.cm=y,ps(y),xa(y),$a(y),y.options.lineWrapping||sr(y),y.options.mode=ie.modeOption,xn(y)}function $a(y){(y.doc.direction=="rtl"?Pe:xe)(y.display.lineDiv,"CodeMirror-rtl")}function pu(y){oi(y,function(){$a(y),xn(y)})}function Qs(y){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=y||1}function Sa(y,ie){var me={from:Lr(ie.from),to:vo(ie),text:Ft(y,ie.from,ie.to)};return rl(y,me,ie.from.line,ie.to.line+1),go(y,function(pe){return rl(pe,me,ie.from.line,ie.to.line+1)},!0),me}function el(y){for(;y.length;){var ie=ft(y);if(ie.ranges)y.pop();else break}}function mu(y,ie){if(ie)return el(y.done),ft(y.done);if(y.done.length&&!ft(y.done).ranges)return ft(y.done);if(y.done.length>1&&!y.done[y.done.length-2].ranges)return y.done.pop(),ft(y.done)}function tl(y,ie,me,pe){var Ee=y.history;Ee.undone.length=0;var Re=+new Date,Ke,nt;if((Ee.lastOp==pe||Ee.lastOrigin==ie.origin&&ie.origin&&(ie.origin.charAt(0)=="+"&&Ee.lastModTime>Re-(y.cm?y.cm.options.historyEventDelay:500)||ie.origin.charAt(0)=="*"))&&(Ke=mu(Ee,Ee.lastOp==pe)))nt=ft(Ke.changes),nr(ie.from,ie.to)==0&&nr(ie.from,nt.to)==0?nt.to=vo(ie):Ke.changes.push(Sa(y,ie));else{var ut=ft(Ee.done);for((!ut||!ut.ranges)&&Js(y.sel,Ee.done),Ke={changes:[Sa(y,ie)],generation:Ee.generation},Ee.done.push(Ke);Ee.done.length>Ee.undoDepth;)Ee.done.shift(),Ee.done[0].ranges||Ee.done.shift()}Ee.done.push(me),Ee.generation=++Ee.maxGeneration,Ee.lastModTime=Ee.lastSelTime=Re,Ee.lastOp=Ee.lastSelOp=pe,Ee.lastOrigin=Ee.lastSelOrigin=ie.origin,nt||Tt(y,"historyAdded")}function vu(y,ie,me,pe){var Ee=ie.charAt(0);return Ee=="*"||Ee=="+"&&me.ranges.length==pe.ranges.length&&me.somethingSelected()==pe.somethingSelected()&&new Date-y.history.lastSelTime<=(y.cm?y.cm.options.historyEventDelay:500)}function gu(y,ie,me,pe){var Ee=y.history,Re=pe&&pe.origin;me==Ee.lastSelOp||Re&&Ee.lastSelOrigin==Re&&(Ee.lastModTime==Ee.lastSelTime&&Ee.lastOrigin==Re||vu(y,Re,ft(Ee.done),ie))?Ee.done[Ee.done.length-1]=ie:Js(ie,Ee.done),Ee.lastSelTime=+new Date,Ee.lastSelOrigin=Re,Ee.lastSelOp=me,pe&&pe.clearRedo!==!1&&el(Ee.undone)}function Js(y,ie){var me=ft(ie);me&&me.ranges&&me.equals(y)||ie.push(y)}function rl(y,ie,me,pe){var Ee=ie["spans_"+y.id],Re=0;y.iter(Math.max(y.first,me),Math.min(y.first+y.size,pe),function(Ke){Ke.markedSpans&&((Ee||(Ee=ie["spans_"+y.id]={}))[Re]=Ke.markedSpans),++Re})}function yu(y){if(!y)return null;for(var ie,me=0;me<y.length;++me)y[me].marker.explicitlyCleared?ie||(ie=y.slice(0,me)):ie&&ie.push(y[me]);return ie?ie.length?ie:null:y}function bu(y,ie){var me=ie["spans_"+y.id];if(!me)return null;for(var pe=[],Ee=0;Ee<ie.text.length;++Ee)pe.push(yu(me[Ee]));return pe}function nl(y,ie){var me=bu(y,ie),pe=Wn(y,ie);if(!me)return pe;if(!pe)return me;for(var Ee=0;Ee<me.length;++Ee){var Re=me[Ee],Ke=pe[Ee];if(Re&&Ke)e:for(var nt=0;nt<Ke.length;++nt){for(var ut=Ke[nt],ht=0;ht<Re.length;++ht)if(Re[ht].marker==ut.marker)continue e;Re.push(ut)}else Ke&&(me[Ee]=Ke)}return me}function Xo(y,ie,me){for(var pe=[],Ee=0;Ee<y.length;++Ee){var Re=y[Ee];if(Re.ranges){pe.push(me?mi.prototype.deepCopy.call(Re):Re);continue}var Ke=Re.changes,nt=[];pe.push({changes:nt});for(var ut=0;ut<Ke.length;++ut){var ht=Ke[ut],St=void 0;if(nt.push({from:ht.from,to:ht.to,text:ht.text}),ie)for(var At in ht)(St=At.match(/^spans_(\d+)$/))&&it(ie,Number(St[1]))>-1&&(ft(nt)[At]=ht[At],delete ht[At])}}return pe}function Ca(y,ie,me,pe){if(pe){var Ee=y.anchor;if(me){var Re=nr(ie,Ee)<0;Re!=nr(me,Ee)<0?(Ee=ie,ie=me):Re!=nr(ie,me)<0&&(ie=me)}return new Kr(Ee,ie)}else return new Kr(me||ie,ie)}function $s(y,ie,me,pe,Ee){Ee==null&&(Ee=y.cm&&(y.cm.display.shift||y.extend)),Bn(y,new mi([Ca(y.sel.primary(),ie,me,Ee)],0),pe)}function il(y,ie,me){for(var pe=[],Ee=y.cm&&(y.cm.display.shift||y.extend),Re=0;Re<y.sel.ranges.length;Re++)pe[Re]=Ca(y.sel.ranges[Re],ie[Re],null,Ee);var Ke=ji(y.cm,pe,y.sel.primIndex);Bn(y,Ke,me)}function Ea(y,ie,me,pe){var Ee=y.sel.ranges.slice(0);Ee[ie]=me,Bn(y,ji(y.cm,Ee,y.sel.primIndex),pe)}function ol(y,ie,me,pe){Bn(y,mo(ie,me),pe)}function wu(y,ie,me){var pe={ranges:ie.ranges,update:function(Ee){this.ranges=[];for(var Re=0;Re<Ee.length;Re++)this.ranges[Re]=new Kr(rr(y,Ee[Re].anchor),rr(y,Ee[Re].head))},origin:me&&me.origin};return Tt(y,"beforeSelectionChange",y,pe),y.cm&&Tt(y.cm,"beforeSelectionChange",y.cm,pe),pe.ranges!=ie.ranges?ji(y.cm,pe.ranges,pe.ranges.length-1):ie}function sl(y,ie,me){var pe=y.history.done,Ee=ft(pe);Ee&&Ee.ranges?(pe[pe.length-1]=ie,ea(y,ie,me)):Bn(y,ie,me)}function Bn(y,ie,me){ea(y,ie,me),gu(y,y.sel,y.cm?y.cm.curOp.id:NaN,me)}function ea(y,ie,me){(Rt(y,"beforeSelectionChange")||y.cm&&Rt(y.cm,"beforeSelectionChange"))&&(ie=wu(y,ie,me));var pe=me&&me.bias||(nr(ie.primary().head,y.sel.primary().head)<0?-1:1);al(y,ul(y,ie,pe,!0)),!(me&&me.scroll===!1)&&y.cm&&hi(y.cm)}function al(y,ie){ie.equals(y.sel)||(y.sel=ie,y.cm&&(y.cm.curOp.updateInput=1,y.cm.curOp.selectionChanged=!0,Nt(y.cm)),Yr(y,"cursorActivity",y))}function ll(y){al(y,ul(y,y.sel,null,!1))}function ul(y,ie,me,pe){for(var Ee,Re=0;Re<ie.ranges.length;Re++){var Ke=ie.ranges[Re],nt=ie.ranges.length==y.sel.ranges.length&&y.sel.ranges[Re],ut=ta(y,Ke.anchor,nt&&nt.anchor,me,pe),ht=ta(y,Ke.head,nt&&nt.head,me,pe);(Ee||ut!=Ke.anchor||ht!=Ke.head)&&(Ee||(Ee=ie.ranges.slice(0,Re)),Ee[Re]=new Kr(ut,ht))}return Ee?ji(y.cm,Ee,ie.primIndex):ie}function Yo(y,ie,me,pe,Ee){var Re=Et(y,ie.line);if(Re.markedSpans)for(var Ke=0;Ke<Re.markedSpans.length;++Ke){var nt=Re.markedSpans[Ke],ut=nt.marker,ht="selectLeft"in ut?!ut.selectLeft:ut.inclusiveLeft,St="selectRight"in ut?!ut.selectRight:ut.inclusiveRight;if((nt.from==null||(ht?nt.from<=ie.ch:nt.from<ie.ch))&&(nt.to==null||(St?nt.to>=ie.ch:nt.to>ie.ch))){if(Ee&&(Tt(ut,"beforeCursorEnter"),ut.explicitlyCleared))if(Re.markedSpans){--Ke;continue}else break;if(!ut.atomic)continue;if(me){var At=ut.find(pe<0?1:-1),Bt=void 0;if((pe<0?St:ht)&&(At=cl(y,At,-pe,At&&At.line==ie.line?Re:null)),At&&At.line==ie.line&&(Bt=nr(At,me))&&(pe<0?Bt<0:Bt>0))return Yo(y,At,ie,pe,Ee)}var Pt=ut.find(pe<0?-1:1);return(pe<0?ht:St)&&(Pt=cl(y,Pt,pe,Pt.line==ie.line?Re:null)),Pt?Yo(y,Pt,ie,pe,Ee):null}}return ie}function ta(y,ie,me,pe,Ee){var Re=pe||1,Ke=Yo(y,ie,me,Re,Ee)||!Ee&&Yo(y,ie,me,Re,!0)||Yo(y,ie,me,-Re,Ee)||!Ee&&Yo(y,ie,me,-Re,!0);return Ke||(y.cantEdit=!0,Ht(y.first,0))}function cl(y,ie,me,pe){return me<0&&ie.ch==0?ie.line>y.first?rr(y,Ht(ie.line-1)):null:me>0&&ie.ch==(pe||Et(y,ie.line)).text.length?ie.line<y.first+y.size-1?Ht(ie.line+1,0):null:new Ht(ie.line,ie.ch+me)}function fl(y){y.setSelection(Ht(y.firstLine(),0),Ht(y.lastLine()),Je)}function dl(y,ie,me){var pe={canceled:!1,from:ie.from,to:ie.to,text:ie.text,origin:ie.origin,cancel:function(){return pe.canceled=!0}};return me&&(pe.update=function(Ee,Re,Ke,nt){Ee&&(pe.from=rr(y,Ee)),Re&&(pe.to=rr(y,Re)),Ke&&(pe.text=Ke),nt!==void 0&&(pe.origin=nt)}),Tt(y,"beforeChange",y,pe),y.cm&&Tt(y.cm,"beforeChange",y.cm,pe),pe.canceled?(y.cm&&(y.cm.curOp.updateInput=2),null):{from:pe.from,to:pe.to,text:pe.text,origin:pe.origin}}function Ko(y,ie,me){if(y.cm){if(!y.cm.curOp)return Tn(y.cm,Ko)(y,ie,me);if(y.cm.state.suppressEdits)return}if(!((Rt(y,"beforeChange")||y.cm&&Rt(y.cm,"beforeChange"))&&(ie=dl(y,ie,!0),!ie))){var pe=vi&&!me&&so(y,ie.from,ie.to);if(pe)for(var Ee=pe.length-1;Ee>=0;--Ee)hl(y,{from:pe[Ee].from,to:pe[Ee].to,text:Ee?[""]:ie.text,origin:ie.origin});else hl(y,ie)}}function hl(y,ie){if(!(ie.text.length==1&&ie.text[0]==""&&nr(ie.from,ie.to)==0)){var me=wa(y,ie);tl(y,ie,me,y.cm?y.cm.curOp.id:NaN),Ss(y,ie,me,Wn(y,ie));var pe=[];go(y,function(Ee,Re){!Re&&it(pe,Ee.history)==-1&&(gl(Ee.history,ie),pe.push(Ee.history)),Ss(Ee,ie,null,Wn(Ee,ie))})}}function ra(y,ie,me){var pe=y.cm&&y.cm.state.suppressEdits;if(!(pe&&!me)){for(var Ee=y.history,Re,Ke=y.sel,nt=ie=="undo"?Ee.done:Ee.undone,ut=ie=="undo"?Ee.undone:Ee.done,ht=0;ht<nt.length&&(Re=nt[ht],!(me?Re.ranges&&!Re.equals(y.sel):!Re.ranges));ht++);if(ht!=nt.length){for(Ee.lastOrigin=Ee.lastSelOrigin=null;;)if(Re=nt.pop(),Re.ranges){if(Js(Re,ut),me&&!Re.equals(y.sel)){Bn(y,Re,{clearRedo:!1});return}Ke=Re}else if(pe){nt.push(Re);return}else break;var St=[];Js(Ke,ut),ut.push({changes:St,generation:Ee.generation}),Ee.generation=Re.generation||++Ee.maxGeneration;for(var At=Rt(y,"beforeChange")||y.cm&&Rt(y.cm,"beforeChange"),Bt=function(Kt){var $t=Re.changes[Kt];if($t.origin=ie,At&&!dl(y,$t,!1))return nt.length=0,{};St.push(Sa(y,$t));var ar=Kt?wa(y,$t):ft(nt);Ss(y,$t,ar,nl(y,$t)),!Kt&&y.cm&&y.cm.scrollIntoView({from:$t.from,to:vo($t)});var pr=[];go(y,function(lr,vr){!vr&&it(pr,lr.history)==-1&&(gl(lr.history,$t),pr.push(lr.history)),Ss(lr,$t,null,nl(lr,$t))})},Pt=Re.changes.length-1;Pt>=0;--Pt){var Zt=Bt(Pt);if(Zt)return Zt.v}}}}function pl(y,ie){if(ie!=0&&(y.first+=ie,y.sel=new mi(qe(y.sel.ranges,function(Ee){return new Kr(Ht(Ee.anchor.line+ie,Ee.anchor.ch),Ht(Ee.head.line+ie,Ee.head.ch))}),y.sel.primIndex),y.cm)){xn(y.cm,y.first,y.first-ie,ie);for(var me=y.cm.display,pe=me.viewFrom;pe<me.viewTo;pe++)Di(y.cm,pe,"gutter")}}function Ss(y,ie,me,pe){if(y.cm&&!y.cm.curOp)return Tn(y.cm,Ss)(y,ie,me,pe);if(ie.to.line<y.first){pl(y,ie.text.length-1-(ie.to.line-ie.from.line));return}if(!(ie.from.line>y.lastLine())){if(ie.from.line<y.first){var Ee=ie.text.length-1-(y.first-ie.from.line);pl(y,Ee),ie={from:Ht(y.first,0),to:Ht(ie.to.line+Ee,ie.to.ch),text:[ft(ie.text)],origin:ie.origin}}var Re=y.lastLine();ie.to.line>Re&&(ie={from:ie.from,to:Ht(Re,Et(y,Re).text.length),text:[ie.text[0]],origin:ie.origin}),ie.removed=Ft(y,ie.from,ie.to),me||(me=wa(y,ie)),y.cm?xu(y.cm,ie,pe):_a(y,ie,pe),ea(y,me,Je),y.cantEdit&&ta(y,Ht(y.firstLine(),0))&&(y.cantEdit=!1)}}function xu(y,ie,me){var pe=y.doc,Ee=y.display,Re=ie.from,Ke=ie.to,nt=!1,ut=Re.line;y.options.lineWrapping||(ut=Yt(Pr(Et(pe,Re.line))),pe.iter(ut,Ke.line+1,function(Pt){if(Pt==Ee.maxLine)return nt=!0,!0})),pe.sel.contains(ie.from,ie.to)>-1&&Nt(y),_a(pe,ie,me,Zs(y)),y.options.lineWrapping||(pe.iter(ut,Re.line+ie.text.length,function(Pt){var Zt=Ur(Pt);Zt>Ee.maxLineLength&&(Ee.maxLine=Pt,Ee.maxLineLength=Zt,Ee.maxLineChanged=!0,nt=!1)}),nt&&(y.curOp.updateMaxLine=!0)),Si(pe,Re.line),ws(y,400);var ht=ie.text.length-(Ke.line-Re.line)-1;ie.full?xn(y):Re.line==Ke.line&&ie.text.length==1&&!Ja(y.doc,ie)?Di(y,Re.line,"text"):xn(y,Re.line,Ke.line+1,ht);var St=Rt(y,"changes"),At=Rt(y,"change");if(At||St){var Bt={from:Re,to:Ke,text:ie.text,removed:ie.removed,origin:ie.origin};At&&Yr(y,"change",y,Bt),St&&(y.curOp.changeObjs||(y.curOp.changeObjs=[])).push(Bt)}y.display.selForContextMenu=null}function Qo(y,ie,me,pe,Ee){var Re;pe||(pe=me),nr(pe,me)<0&&(Re=[pe,me],me=Re[0],pe=Re[1]),typeof ie=="string"&&(ie=y.splitLines(ie)),Ko(y,{from:me,to:pe,text:ie,origin:Ee})}function ml(y,ie,me,pe){me<y.line?y.line+=pe:ie<y.line&&(y.line=ie,y.ch=0)}function vl(y,ie,me,pe){for(var Ee=0;Ee<y.length;++Ee){var Re=y[Ee],Ke=!0;if(Re.ranges){Re.copied||(Re=y[Ee]=Re.deepCopy(),Re.copied=!0);for(var nt=0;nt<Re.ranges.length;nt++)ml(Re.ranges[nt].anchor,ie,me,pe),ml(Re.ranges[nt].head,ie,me,pe);continue}for(var ut=0;ut<Re.changes.length;++ut){var ht=Re.changes[ut];if(me<ht.from.line)ht.from=Ht(ht.from.line+pe,ht.from.ch),ht.to=Ht(ht.to.line+pe,ht.to.ch);else if(ie<=ht.to.line){Ke=!1;break}}Ke||(y.splice(0,Ee+1),Ee=0)}}function gl(y,ie){var me=ie.from.line,pe=ie.to.line,Ee=ie.text.length-(pe-me)-1;vl(y.done,me,pe,Ee),vl(y.undone,me,pe,Ee)}function Cs(y,ie,me,pe){var Ee=ie,Re=ie;return typeof ie=="number"?Re=Et(y,jr(y,ie)):Ee=Yt(ie),Ee==null?null:(pe(Re,Ee)&&y.cm&&Di(y.cm,Ee,me),Re)}function Es(y){this.lines=y,this.parent=null;for(var ie=0,me=0;me<y.length;++me)y[me].parent=this,ie+=y[me].height;this.height=ie}Es.prototype={chunkSize:function(){return this.lines.length},removeInner:function(y,ie){for(var me=y,pe=y+ie;me<pe;++me){var Ee=this.lines[me];this.height-=Ee.height,an(Ee),Yr(Ee,"delete")}this.lines.splice(y,ie)},collapse:function(y){y.push.apply(y,this.lines)},insertInner:function(y,ie,me){this.height+=me,this.lines=this.lines.slice(0,y).concat(ie).concat(this.lines.slice(y));for(var pe=0;pe<ie.length;++pe)ie[pe].parent=this},iterN:function(y,ie,me){for(var pe=y+ie;y<pe;++y)if(me(this.lines[y]))return!0}};function As(y){this.children=y;for(var ie=0,me=0,pe=0;pe<y.length;++pe){var Ee=y[pe];ie+=Ee.chunkSize(),me+=Ee.height,Ee.parent=this}this.size=ie,this.height=me,this.parent=null}As.prototype={chunkSize:function(){return this.size},removeInner:function(y,ie){this.size-=ie;for(var me=0;me<this.children.length;++me){var pe=this.children[me],Ee=pe.chunkSize();if(y<Ee){var Re=Math.min(ie,Ee-y),Ke=pe.height;if(pe.removeInner(y,Re),this.height-=Ke-pe.height,Ee==Re&&(this.children.splice(me--,1),pe.parent=null),(ie-=Re)==0)break;y=0}else y-=Ee}if(this.size-ie<25&&(this.children.length>1||!(this.children[0]instanceof Es))){var nt=[];this.collapse(nt),this.children=[new Es(nt)],this.children[0].parent=this}},collapse:function(y){for(var ie=0;ie<this.children.length;++ie)this.children[ie].collapse(y)},insertInner:function(y,ie,me){this.size+=ie.length,this.height+=me;for(var pe=0;pe<this.children.length;++pe){var Ee=this.children[pe],Re=Ee.chunkSize();if(y<=Re){if(Ee.insertInner(y,ie,me),Ee.lines&&Ee.lines.length>50){for(var Ke=Ee.lines.length%25+25,nt=Ke;nt<Ee.lines.length;){var ut=new Es(Ee.lines.slice(nt,nt+=25));Ee.height-=ut.height,this.children.splice(++pe,0,ut),ut.parent=this}Ee.lines=Ee.lines.slice(0,Ke),this.maybeSpill()}break}y-=Re}},maybeSpill:function(){if(!(this.children.length<=10)){var y=this;do{var ie=y.children.splice(y.children.length-5,5),me=new As(ie);if(y.parent){y.size-=me.size,y.height-=me.height;var Ee=it(y.parent.children,y);y.parent.children.splice(Ee+1,0,me)}else{var pe=new As(y.children);pe.parent=y,y.children=[pe,me],y=pe}me.parent=y.parent}while(y.children.length>10);y.parent.maybeSpill()}},iterN:function(y,ie,me){for(var pe=0;pe<this.children.length;++pe){var Ee=this.children[pe],Re=Ee.chunkSize();if(y<Re){var Ke=Math.min(ie,Re-y);if(Ee.iterN(y,Ke,me))return!0;if((ie-=Ke)==0)break;y=0}else y-=Re}}};var Ts=function(y,ie,me){if(me)for(var pe in me)me.hasOwnProperty(pe)&&(this[pe]=me[pe]);this.doc=y,this.node=ie};Ts.prototype.clear=function(){var y=this.doc.cm,ie=this.line.widgets,me=this.line,pe=Yt(me);if(!(pe==null||!ie)){for(var Ee=0;Ee<ie.length;++Ee)ie[Ee]==this&&ie.splice(Ee--,1);ie.length||(me.widgets=null);var Re=Ui(this);zt(me,Math.max(0,me.height-Re)),y&&(oi(y,function(){yl(y,me,-Re),Di(y,pe,"widget")}),Yr(y,"lineWidgetCleared",y,this,pe))}},Ts.prototype.changed=function(){var y=this,ie=this.height,me=this.doc.cm,pe=this.line;this.height=null;var Ee=Ui(this)-ie;Ee&&(hr(this.doc,pe)||zt(pe,pe.height+Ee),me&&oi(me,function(){me.curOp.forceUpdate=!0,yl(me,pe,Ee),Yr(me,"lineWidgetChanged",me,y,Yt(pe))}))},Ut(Ts);function yl(y,ie,me){Mr(ie)<(y.curOp&&y.curOp.scrollTop||y.doc.scrollTop)&&Yi(y,me)}function _u(y,ie,me,pe){var Ee=new Ts(y,me,pe),Re=y.cm;return Re&&Ee.noHScroll&&(Re.display.alignWidgets=!0),Cs(y,ie,"widget",function(Ke){var nt=Ke.widgets||(Ke.widgets=[]);if(Ee.insertAt==null?nt.push(Ee):nt.splice(Math.min(nt.length-1,Math.max(0,Ee.insertAt)),0,Ee),Ee.line=Ke,Re&&!hr(y,Ke)){var ut=Mr(Ke)<y.scrollTop;zt(Ke,Ke.height+Ui(Ee)),ut&&Yi(Re,Ee.height),Re.curOp.forceUpdate=!0}return!0}),Re&&Yr(Re,"lineWidgetAdded",Re,Ee,typeof ie=="number"?ie:Yt(ie)),Ee}var bl=0,yo=function(y,ie){this.lines=[],this.type=ie,this.doc=y,this.id=++bl};yo.prototype.clear=function(){if(!this.explicitlyCleared){var y=this.doc.cm,ie=y&&!y.curOp;if(ie&&Mo(y),Rt(this,"clear")){var me=this.find();me&&Yr(this,"clear",me.from,me.to)}for(var pe=null,Ee=null,Re=0;Re<this.lines.length;++Re){var Ke=this.lines[Re],nt=li(Ke.markedSpans,this);y&&!this.collapsed?Di(y,Yt(Ke),"text"):y&&(nt.to!=null&&(Ee=Yt(Ke)),nt.from!=null&&(pe=Yt(Ke))),Ke.markedSpans=Ri(Ke.markedSpans,nt),nt.from==null&&this.collapsed&&!hr(this.doc,Ke)&&y&&zt(Ke,ho(y.display))}if(y&&this.collapsed&&!y.options.lineWrapping)for(var ut=0;ut<this.lines.length;++ut){var ht=Pr(this.lines[ut]),St=Ur(ht);St>y.display.maxLineLength&&(y.display.maxLine=ht,y.display.maxLineLength=St,y.display.maxLineChanged=!0)}pe!=null&&y&&this.collapsed&&xn(y,pe,Ee+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,y&&ll(y.doc)),y&&Yr(y,"markerCleared",y,this,pe,Ee),ie&&Oo(y),this.parent&&this.parent.clear()}},yo.prototype.find=function(y,ie){y==null&&this.type=="bookmark"&&(y=1);for(var me,pe,Ee=0;Ee<this.lines.length;++Ee){var Re=this.lines[Ee],Ke=li(Re.markedSpans,this);if(Ke.from!=null&&(me=Ht(ie?Re:Yt(Re),Ke.from),y==-1))return me;if(Ke.to!=null&&(pe=Ht(ie?Re:Yt(Re),Ke.to),y==1))return pe}return me&&{from:me,to:pe}},yo.prototype.changed=function(){var y=this,ie=this.find(-1,!0),me=this,pe=this.doc.cm;!ie||!pe||oi(pe,function(){var Ee=ie.line,Re=Yt(ie.line),Ke=Co(pe,Re);if(Ke&&(Hs(Ke),pe.curOp.selectionChanged=pe.curOp.forceUpdate=!0),pe.curOp.updateMaxLine=!0,!hr(me.doc,Ee)&&me.height!=null){var nt=me.height;me.height=null;var ut=Ui(me)-nt;ut&&zt(Ee,Ee.height+ut)}Yr(pe,"markerChanged",pe,y)})},yo.prototype.attachLine=function(y){if(!this.lines.length&&this.doc.cm){var ie=this.doc.cm.curOp;(!ie.maybeHiddenMarkers||it(ie.maybeHiddenMarkers,this)==-1)&&(ie.maybeUnhiddenMarkers||(ie.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(y)},yo.prototype.detachLine=function(y){if(this.lines.splice(it(this.lines,y),1),!this.lines.length&&this.doc.cm){var ie=this.doc.cm.curOp;(ie.maybeHiddenMarkers||(ie.maybeHiddenMarkers=[])).push(this)}},Ut(yo);function Jo(y,ie,me,pe,Ee){if(pe&&pe.shared)return Su(y,ie,me,pe,Ee);if(y.cm&&!y.cm.curOp)return Tn(y.cm,Jo)(y,ie,me,pe,Ee);var Re=new yo(y,Ee),Ke=nr(ie,me);if(pe&&tt(pe,Re,!1),Ke>0||Ke==0&&Re.clearWhenEmpty!==!1)return Re;if(Re.replacedWith&&(Re.collapsed=!0,Re.widgetNode=Ae("span",[Re.replacedWith],"CodeMirror-widget"),pe.handleMouseEvents||Re.widgetNode.setAttribute("cm-ignore-events","true"),pe.insertLeft&&(Re.widgetNode.insertLeft=!0)),Re.collapsed){if(Wr(y,ie.line,ie,me,Re)||ie.line!=me.line&&Wr(y,me.line,ie,me,Re))throw new Error("Inserting collapsed marker partially overlapping an existing one");Un()}Re.addToHistory&&tl(y,{from:ie,to:me,origin:"markText"},y.sel,NaN);var nt=ie.line,ut=y.cm,ht;if(y.iter(nt,me.line+1,function(At){ut&&Re.collapsed&&!ut.options.lineWrapping&&Pr(At)==ut.display.maxLine&&(ht=!0),Re.collapsed&&nt!=ie.line&&zt(At,0),Ii(At,new Pn(Re,nt==ie.line?ie.ch:null,nt==me.line?me.ch:null)),++nt}),Re.collapsed&&y.iter(ie.line,me.line+1,function(At){hr(y,At)&&zt(At,0)}),Re.clearOnEnter&&vt(Re,"beforeCursorEnter",function(){return Re.clear()}),Re.readOnly&&(ai(),(y.history.done.length||y.history.undone.length)&&y.clearHistory()),Re.collapsed&&(Re.id=++bl,Re.atomic=!0),ut){if(ht&&(ut.curOp.updateMaxLine=!0),Re.collapsed)xn(ut,ie.line,me.line+1);else if(Re.className||Re.startStyle||Re.endStyle||Re.css||Re.attributes||Re.title)for(var St=ie.line;St<=me.line;St++)Di(ut,St,"text");Re.atomic&&ll(ut.doc),Yr(ut,"markerAdded",ut,Re)}return Re}var ks=function(y,ie){this.markers=y,this.primary=ie;for(var me=0;me<y.length;++me)y[me].parent=this};ks.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var y=0;y<this.markers.length;++y)this.markers[y].clear();Yr(this,"clear")}},ks.prototype.find=function(y,ie){return this.primary.find(y,ie)},Ut(ks);function Su(y,ie,me,pe,Ee){pe=tt(pe),pe.shared=!1;var Re=[Jo(y,ie,me,pe,Ee)],Ke=Re[0],nt=pe.widgetNode;return go(y,function(ut){nt&&(pe.widgetNode=nt.cloneNode(!0)),Re.push(Jo(ut,rr(ut,ie),rr(ut,me),pe,Ee));for(var ht=0;ht<ut.linked.length;++ht)if(ut.linked[ht].isParent)return;Ke=ft(Re)}),new ks(Re,Ke)}function wl(y){return y.findMarks(Ht(y.first,0),y.clipPos(Ht(y.lastLine())),function(ie){return ie.parent})}function Cu(y,ie){for(var me=0;me<ie.length;me++){var pe=ie[me],Ee=pe.find(),Re=y.clipPos(Ee.from),Ke=y.clipPos(Ee.to);if(nr(Re,Ke)){var nt=Jo(y,Re,Ke,pe.primary,pe.primary.type);pe.markers.push(nt),nt.parent=pe}}}function Eu(y){for(var ie=function(pe){var Ee=y[pe],Re=[Ee.primary.doc];go(Ee.primary.doc,function(ut){return Re.push(ut)});for(var Ke=0;Ke<Ee.markers.length;Ke++){var nt=Ee.markers[Ke];it(Re,nt.doc)==-1&&(nt.parent=null,Ee.markers.splice(Ke--,1))}},me=0;me<y.length;me++)ie(me)}var Au=0,$n=function(y,ie,me,pe,Ee){if(!(this instanceof $n))return new $n(y,ie,me,pe,Ee);me==null&&(me=0),As.call(this,[new Es([new Zr("",null)])]),this.first=me,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=me;var Re=Ht(me,0);this.sel=mo(Re),this.history=new Qs(null),this.id=++Au,this.modeOption=ie,this.lineSep=pe,this.direction=Ee=="rtl"?"rtl":"ltr",this.extend=!1,typeof y=="string"&&(y=this.splitLines(y)),_a(this,{from:Re,to:Re,text:y}),Bn(this,mo(Re),Je)};$n.prototype=Ne(As.prototype,{constructor:$n,iter:function(y,ie,me){me?this.iterN(y-this.first,ie-y,me):this.iterN(this.first,this.first+this.size,y)},insert:function(y,ie){for(var me=0,pe=0;pe<ie.length;++pe)me+=ie[pe].height;this.insertInner(y-this.first,ie,me)},remove:function(y,ie){this.removeInner(y-this.first,ie)},getValue:function(y){var ie=Mt(this,this.first,this.first+this.size);return y===!1?ie:ie.join(y||this.lineSeparator())},setValue:kn(function(y){var ie=Ht(this.first,0),me=this.first+this.size-1;Ko(this,{from:ie,to:Ht(me,Et(this,me).text.length),text:this.splitLines(y),origin:"setValue",full:!0},!0),this.cm&&_i(this.cm,0,0),Bn(this,mo(ie),Je)}),replaceRange:function(y,ie,me,pe){ie=rr(this,ie),me=me?rr(this,me):ie,Qo(this,y,ie,me,pe)},getRange:function(y,ie,me){var pe=Ft(this,rr(this,y),rr(this,ie));return me===!1?pe:pe.join(me||this.lineSeparator())},getLine:function(y){var ie=this.getLineHandle(y);return ie&&ie.text},getLineHandle:function(y){if(Tr(this,y))return Et(this,y)},getLineNumber:function(y){return Yt(y)},getLineHandleVisualStart:function(y){return typeof y=="number"&&(y=Et(this,y)),Pr(y)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(y){return rr(this,y)},getCursor:function(y){var ie=this.sel.primary(),me;return y==null||y=="head"?me=ie.head:y=="anchor"?me=ie.anchor:y=="end"||y=="to"||y===!1?me=ie.to():me=ie.from(),me},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:kn(function(y,ie,me){ol(this,rr(this,typeof y=="number"?Ht(y,ie||0):y),null,me)}),setSelection:kn(function(y,ie,me){ol(this,rr(this,y),rr(this,ie||y),me)}),extendSelection:kn(function(y,ie,me){$s(this,rr(this,y),ie&&rr(this,ie),me)}),extendSelections:kn(function(y,ie){il(this,zr(this,y),ie)}),extendSelectionsBy:kn(function(y,ie){var me=qe(this.sel.ranges,y);il(this,zr(this,me),ie)}),setSelections:kn(function(y,ie,me){if(y.length){for(var pe=[],Ee=0;Ee<y.length;Ee++)pe[Ee]=new Kr(rr(this,y[Ee].anchor),rr(this,y[Ee].head));ie==null&&(ie=Math.min(y.length-1,this.sel.primIndex)),Bn(this,ji(this.cm,pe,ie),me)}}),addSelection:kn(function(y,ie,me){var pe=this.sel.ranges.slice(0);pe.push(new Kr(rr(this,y),rr(this,ie||y))),Bn(this,ji(this.cm,pe,pe.length-1),me)}),getSelection:function(y){for(var ie=this.sel.ranges,me,pe=0;pe<ie.length;pe++){var Ee=Ft(this,ie[pe].from(),ie[pe].to());me=me?me.concat(Ee):Ee}return y===!1?me:me.join(y||this.lineSeparator())},getSelections:function(y){for(var ie=[],me=this.sel.ranges,pe=0;pe<me.length;pe++){var Ee=Ft(this,me[pe].from(),me[pe].to());y!==!1&&(Ee=Ee.join(y||this.lineSeparator())),ie[pe]=Ee}return ie},replaceSelection:function(y,ie,me){for(var pe=[],Ee=0;Ee<this.sel.ranges.length;Ee++)pe[Ee]=y;this.replaceSelections(pe,ie,me||"+input")},replaceSelections:kn(function(y,ie,me){for(var pe=[],Ee=this.sel,Re=0;Re<Ee.ranges.length;Re++){var Ke=Ee.ranges[Re];pe[Re]={from:Ke.from(),to:Ke.to(),text:this.splitLines(y[Re]),origin:me}}for(var nt=ie&&ie!="end"&&hu(this,pe,ie),ut=pe.length-1;ut>=0;ut--)Ko(this,pe[ut]);nt?sl(this,nt):this.cm&&hi(this.cm)}),undo:kn(function(){ra(this,"undo")}),redo:kn(function(){ra(this,"redo")}),undoSelection:kn(function(){ra(this,"undo",!0)}),redoSelection:kn(function(){ra(this,"redo",!0)}),setExtending:function(y){this.extend=y},getExtending:function(){return this.extend},historySize:function(){for(var y=this.history,ie=0,me=0,pe=0;pe<y.done.length;pe++)y.done[pe].ranges||++ie;for(var Ee=0;Ee<y.undone.length;Ee++)y.undone[Ee].ranges||++me;return{undo:ie,redo:me}},clearHistory:function(){var y=this;this.history=new Qs(this.history.maxGeneration),go(this,function(ie){return ie.history=y.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(y){return y&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(y){return this.history.generation==(y||this.cleanGeneration)},getHistory:function(){return{done:Xo(this.history.done),undone:Xo(this.history.undone)}},setHistory:function(y){var ie=this.history=new Qs(this.history.maxGeneration);ie.done=Xo(y.done.slice(0),null,!0),ie.undone=Xo(y.undone.slice(0),null,!0)},setGutterMarker:kn(function(y,ie,me){return Cs(this,y,"gutter",function(pe){var Ee=pe.gutterMarkers||(pe.gutterMarkers={});return Ee[ie]=me,!me&&dt(Ee)&&(pe.gutterMarkers=null),!0})}),clearGutter:kn(function(y){var ie=this;this.iter(function(me){me.gutterMarkers&&me.gutterMarkers[y]&&Cs(ie,me,"gutter",function(){return me.gutterMarkers[y]=null,dt(me.gutterMarkers)&&(me.gutterMarkers=null),!0})})}),lineInfo:function(y){var ie;if(typeof y=="number"){if(!Tr(this,y)||(ie=y,y=Et(this,y),!y))return null}else if(ie=Yt(y),ie==null)return null;return{line:ie,handle:y,text:y.text,gutterMarkers:y.gutterMarkers,textClass:y.textClass,bgClass:y.bgClass,wrapClass:y.wrapClass,widgets:y.widgets}},addLineClass:kn(function(y,ie,me){return Cs(this,y,ie=="gutter"?"gutter":"class",function(pe){var Ee=ie=="text"?"textClass":ie=="background"?"bgClass":ie=="gutter"?"gutterClass":"wrapClass";if(!pe[Ee])pe[Ee]=me;else{if(we(me).test(pe[Ee]))return!1;pe[Ee]+=" "+me}return!0})}),removeLineClass:kn(function(y,ie,me){return Cs(this,y,ie=="gutter"?"gutter":"class",function(pe){var Ee=ie=="text"?"textClass":ie=="background"?"bgClass":ie=="gutter"?"gutterClass":"wrapClass",Re=pe[Ee];if(Re)if(me==null)pe[Ee]=null;else{var Ke=Re.match(we(me));if(!Ke)return!1;var nt=Ke.index+Ke[0].length;pe[Ee]=Re.slice(0,Ke.index)+(!Ke.index||nt==Re.length?"":" ")+Re.slice(nt)||null}else return!1;return!0})}),addLineWidget:kn(function(y,ie,me){return _u(this,y,ie,me)}),removeLineWidget:function(y){y.clear()},markText:function(y,ie,me){return Jo(this,rr(this,y),rr(this,ie),me,me&&me.type||"range")},setBookmark:function(y,ie){var me={replacedWith:ie&&(ie.nodeType==null?ie.widget:ie),insertLeft:ie&&ie.insertLeft,clearWhenEmpty:!1,shared:ie&&ie.shared,handleMouseEvents:ie&&ie.handleMouseEvents};return y=rr(this,y),Jo(this,y,y,me,"bookmark")},findMarksAt:function(y){y=rr(this,y);var ie=[],me=Et(this,y.line).markedSpans;if(me)for(var pe=0;pe<me.length;++pe){var Ee=me[pe];(Ee.from==null||Ee.from<=y.ch)&&(Ee.to==null||Ee.to>=y.ch)&&ie.push(Ee.marker.parent||Ee.marker)}return ie},findMarks:function(y,ie,me){y=rr(this,y),ie=rr(this,ie);var pe=[],Ee=y.line;return this.iter(y.line,ie.line+1,function(Re){var Ke=Re.markedSpans;if(Ke)for(var nt=0;nt<Ke.length;nt++){var ut=Ke[nt];!(ut.to!=null&&Ee==y.line&&y.ch>=ut.to||ut.from==null&&Ee!=y.line||ut.from!=null&&Ee==ie.line&&ut.from>=ie.ch)&&(!me||me(ut.marker))&&pe.push(ut.marker.parent||ut.marker)}++Ee}),pe},getAllMarks:function(){var y=[];return this.iter(function(ie){var me=ie.markedSpans;if(me)for(var pe=0;pe<me.length;++pe)me[pe].from!=null&&y.push(me[pe].marker)}),y},posFromIndex:function(y){var ie,me=this.first,pe=this.lineSeparator().length;return this.iter(function(Ee){var Re=Ee.text.length+pe;if(Re>y)return ie=y,!0;y-=Re,++me}),rr(this,Ht(me,ie))},indexFromPos:function(y){y=rr(this,y);var ie=y.ch;if(y.line<this.first||y.ch<0)return 0;var me=this.lineSeparator().length;return this.iter(this.first,y.line,function(pe){ie+=pe.text.length+me}),ie},copy:function(y){var ie=new $n(Mt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ie.scrollTop=this.scrollTop,ie.scrollLeft=this.scrollLeft,ie.sel=this.sel,ie.extend=!1,y&&(ie.history.undoDepth=this.history.undoDepth,ie.setHistory(this.getHistory())),ie},linkedDoc:function(y){y||(y={});var ie=this.first,me=this.first+this.size;y.from!=null&&y.from>ie&&(ie=y.from),y.to!=null&&y.to<me&&(me=y.to);var pe=new $n(Mt(this,ie,me),y.mode||this.modeOption,ie,this.lineSep,this.direction);return y.sharedHist&&(pe.history=this.history),(this.linked||(this.linked=[])).push({doc:pe,sharedHist:y.sharedHist}),pe.linked=[{doc:this,isParent:!0,sharedHist:y.sharedHist}],Cu(pe,wl(this)),pe},unlinkDoc:function(y){if(y instanceof dn&&(y=y.doc),this.linked)for(var ie=0;ie<this.linked.length;++ie){var me=this.linked[ie];if(me.doc==y){this.linked.splice(ie,1),y.unlinkDoc(this),Eu(wl(this));break}}if(y.history==this.history){var pe=[y.id];go(y,function(Ee){return pe.push(Ee.id)},!0),y.history=new Qs(null),y.history.done=Xo(this.history.done,pe),y.history.undone=Xo(this.history.undone,pe)}},iterLinkedDocs:function(y){go(this,y)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(y){return this.lineSep?y.split(this.lineSep):Fn(y)},lineSeparator:function(){return this.lineSep||`
`},setDirection:kn(function(y){y!="rtl"&&(y="ltr"),y!=this.direction&&(this.direction=y,this.iter(function(ie){return ie.order=null}),this.cm&&pu(this.cm))})}),$n.prototype.eachLine=$n.prototype.iter;var xl=0;function Tu(y){var ie=this;if(_l(ie),!(xt(ie,y)||yi(ie.display,y))){Qt(y),de&&(xl=+new Date);var me=Vi(ie,y,!0),pe=y.dataTransfer.files;if(!(!me||ie.isReadOnly()))if(pe&&pe.length&&window.FileReader&&window.File)for(var Ee=pe.length,Re=Array(Ee),Ke=0,nt=function(){++Ke==Ee&&Tn(ie,function(){me=rr(ie.doc,me);var Pt={from:me,to:me,text:ie.doc.splitLines(Re.filter(function(Zt){return Zt!=null}).join(ie.doc.lineSeparator())),origin:"paste"};Ko(ie.doc,Pt),sl(ie.doc,mo(rr(ie.doc,me),rr(ie.doc,vo(Pt))))})()},ut=function(Pt,Zt){if(ie.options.allowDropFileTypes&&it(ie.options.allowDropFileTypes,Pt.type)==-1){nt();return}var Kt=new FileReader;Kt.onerror=function(){return nt()},Kt.onload=function(){var $t=Kt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test($t)){nt();return}Re[Zt]=$t,nt()},Kt.readAsText(Pt)},ht=0;ht<pe.length;ht++)ut(pe[ht],ht);else{if(ie.state.draggingText&&ie.doc.sel.contains(me)>-1){ie.state.draggingText(y),setTimeout(function(){return ie.display.input.focus()},20);return}try{var St=y.dataTransfer.getData("Text");if(St){var At;if(ie.state.draggingText&&!ie.state.draggingText.copy&&(At=ie.listSelections()),ea(ie.doc,mo(me,me)),At)for(var Bt=0;Bt<At.length;++Bt)Qo(ie.doc,"",At[Bt].anchor,At[Bt].head,"drag");ie.replaceSelection(St,"around","paste"),ie.display.input.focus()}}catch(Pt){}}}}function ku(y,ie){if(de&&(!y.state.draggingText||+new Date-xl<100)){ir(ie);return}if(!(xt(y,ie)||yi(y.display,ie))&&(ie.dataTransfer.setData("Text",y.getSelection()),ie.dataTransfer.effectAllowed="copyMove",ie.dataTransfer.setDragImage&&!z)){var me=be("img",null,null,"position: fixed; left: 0; top: 0;");me.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",se&&(me.width=me.height=1,y.display.wrapper.appendChild(me),me._top=me.offsetTop),ie.dataTransfer.setDragImage(me,0,0),se&&me.parentNode.removeChild(me)}}function Du(y,ie){var me=Vi(y,ie);if(me){var pe=document.createDocumentFragment();Xs(y,me,pe),y.display.dragCursor||(y.display.dragCursor=be("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),y.display.lineSpace.insertBefore(y.display.dragCursor,y.display.cursorDiv)),_e(y.display.dragCursor,pe)}}function _l(y){y.display.dragCursor&&(y.display.lineSpace.removeChild(y.display.dragCursor),y.display.dragCursor=null)}function Sl(y){if(document.getElementsByClassName){for(var ie=document.getElementsByClassName("CodeMirror"),me=[],pe=0;pe<ie.length;pe++){var Ee=ie[pe].CodeMirror;Ee&&me.push(Ee)}me.length&&me[0].operation(function(){for(var Re=0;Re<me.length;Re++)y(me[Re])})}}var Cl=!1;function Mu(){Cl||(Ou(),Cl=!0)}function Ou(){var y;vt(window,"resize",function(){y==null&&(y=setTimeout(function(){y=null,Sl(ju)},100))}),vt(window,"blur",function(){return Sl(Cr)})}function ju(y){var ie=y.display;ie.cachedCharWidth=ie.cachedTextHeight=ie.cachedPaddingH=null,ie.scrollbarsClipped=!1,y.setSize()}for(var bo={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"},Ds=0;Ds<10;Ds++)bo[Ds+48]=bo[Ds+96]=String(Ds);for(var na=65;na<=90;na++)bo[na]=String.fromCharCode(na);for(var Ms=1;Ms<=12;Ms++)bo[Ms+111]=bo[Ms+63235]="F"+Ms;var no={};no.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"},no.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"},no.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"},no.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"]},no.default=le?no.macDefault:no.pcDefault;function Lu(y){var ie=y.split(/-(?!$)/);y=ie[ie.length-1];for(var me,pe,Ee,Re,Ke=0;Ke<ie.length-1;Ke++){var nt=ie[Ke];if(/^(cmd|meta|m)$/i.test(nt))Re=!0;else if(/^a(lt)?$/i.test(nt))me=!0;else if(/^(c|ctrl|control)$/i.test(nt))pe=!0;else if(/^s(hift)?$/i.test(nt))Ee=!0;else throw new Error("Unrecognized modifier name: "+nt)}return me&&(y="Alt-"+y),pe&&(y="Ctrl-"+y),Re&&(y="Cmd-"+y),Ee&&(y="Shift-"+y),y}function Pu(y){var ie={};for(var me in y)if(y.hasOwnProperty(me)){var pe=y[me];if(/^(name|fallthrough|(de|at)tach)$/.test(me))continue;if(pe=="..."){delete y[me];continue}for(var Ee=qe(me.split(" "),Lu),Re=0;Re<Ee.length;Re++){var Ke=void 0,nt=void 0;Re==Ee.length-1?(nt=Ee.join(" "),Ke=pe):(nt=Ee.slice(0,Re+1).join(" "),Ke="...");var ut=ie[nt];if(!ut)ie[nt]=Ke;else if(ut!=Ke)throw new Error("Inconsistent bindings for "+nt)}delete y[me]}for(var ht in ie)y[ht]=ie[ht];return y}function qo(y,ie,me,pe){ie=ia(ie);var Ee=ie.call?ie.call(y,pe):ie[y];if(Ee===!1)return"nothing";if(Ee==="...")return"multi";if(Ee!=null&&me(Ee))return"handled";if(ie.fallthrough){if(Object.prototype.toString.call(ie.fallthrough)!="[object Array]")return qo(y,ie.fallthrough,me,pe);for(var Re=0;Re<ie.fallthrough.length;Re++){var Ke=qo(y,ie.fallthrough[Re],me,pe);if(Ke)return Ke}}}function El(y){var ie=typeof y=="string"?y:bo[y.keyCode];return ie=="Ctrl"||ie=="Alt"||ie=="Shift"||ie=="Mod"}function Al(y,ie,me){var pe=y;return ie.altKey&&pe!="Alt"&&(y="Alt-"+y),(ye?ie.metaKey:ie.ctrlKey)&&pe!="Ctrl"&&(y="Ctrl-"+y),(ye?ie.ctrlKey:ie.metaKey)&&pe!="Mod"&&(y="Cmd-"+y),!me&&ie.shiftKey&&pe!="Shift"&&(y="Shift-"+y),y}function Tl(y,ie){if(se&&y.keyCode==34&&y.char)return!1;var me=bo[y.keyCode];return me==null||y.altGraphKey?!1:(y.keyCode==3&&y.code&&(me=y.code),Al(me,y,ie))}function ia(y){return typeof y=="string"?no[y]:y}function $o(y,ie){for(var me=y.doc.sel.ranges,pe=[],Ee=0;Ee<me.length;Ee++){for(var Re=ie(me[Ee]);pe.length&&nr(Re.from,ft(pe).to)<=0;){var Ke=pe.pop();if(nr(Ke.from,Re.from)<0){Re.from=Ke.from;break}}pe.push(Re)}oi(y,function(){for(var nt=pe.length-1;nt>=0;nt--)Qo(y.doc,"",pe[nt].from,pe[nt].to,"+delete");hi(y)})}function Aa(y,ie,me){var pe=Ze(y.text,ie+me,me);return pe<0||pe>y.text.length?null:pe}function Ta(y,ie,me){var pe=Aa(y,ie.ch,me);return pe==null?null:new Ht(ie.line,pe,me<0?"after":"before")}function ka(y,ie,me,pe,Ee){if(y){ie.doc.direction=="rtl"&&(Ee=-Ee);var Re=ct(me,ie.doc.direction);if(Re){var Ke=Ee<0?ft(Re):Re[0],nt=Ee<0==(Ke.level==1),ut=nt?"after":"before",ht;if(Ke.level>0||ie.doc.direction=="rtl"){var St=co(ie,me);ht=Ee<0?me.text.length-1:0;var At=Vn(ie,St,ht).top;ht=et(function(Bt){return Vn(ie,St,Bt).top==At},Ee<0==(Ke.level==1)?Ke.from:Ke.to-1,ht),ut=="before"&&(ht=Aa(me,ht,1))}else ht=Ee<0?Ke.to:Ke.from;return new Ht(pe,ht,ut)}}return new Ht(pe,Ee<0?me.text.length:0,Ee<0?"before":"after")}function Ru(y,ie,me,pe){var Ee=ct(ie,y.doc.direction);if(!Ee)return Ta(ie,me,pe);me.ch>=ie.text.length?(me.ch=ie.text.length,me.sticky="before"):me.ch<=0&&(me.ch=0,me.sticky="after");var Re=De(Ee,me.ch,me.sticky),Ke=Ee[Re];if(y.doc.direction=="ltr"&&Ke.level%2==0&&(pe>0?Ke.to>me.ch:Ke.from<me.ch))return Ta(ie,me,pe);var nt=function(ar,pr){return Aa(ie,ar instanceof Ht?ar.ch:ar,pr)},ut,ht=function(ar){return y.options.lineWrapping?(ut=ut||co(y,ie),ds(y,ie,ut,ar)):{begin:0,end:ie.text.length}},St=ht(me.sticky=="before"?nt(me,-1):me.ch);if(y.doc.direction=="rtl"||Ke.level==1){var At=Ke.level==1==pe<0,Bt=nt(me,At?1:-1);if(Bt!=null&&(At?Bt<=Ke.to&&Bt<=St.end:Bt>=Ke.from&&Bt>=St.begin)){var Pt=At?"before":"after";return new Ht(me.line,Bt,Pt)}}var Zt=function(ar,pr,lr){for(var vr=function(rn,Dn){return Dn?new Ht(me.line,nt(rn,1),"before"):new Ht(me.line,rn,"after")};ar>=0&&ar<Ee.length;ar+=pr){var Er=Ee[ar],xr=pr>0==(Er.level!=1),Ir=xr?lr.begin:nt(lr.end,-1);if(Er.from<=Ir&&Ir<Er.to||(Ir=xr?Er.from:nt(Er.to,-1),lr.begin<=Ir&&Ir<lr.end))return vr(Ir,xr)}},Kt=Zt(Re+pe,pe,St);if(Kt)return Kt;var $t=pe>0?St.end:nt(St.begin,-1);return $t!=null&&!(pe>0&&$t==ie.text.length)&&(Kt=Zt(pe>0?0:Ee.length-1,pe,ht($t)),Kt)?Kt:null}var Os={selectAll:fl,singleSelection:function(y){return y.setSelection(y.getCursor("anchor"),y.getCursor("head"),Je)},killLine:function(y){return $o(y,function(ie){if(ie.empty()){var me=Et(y.doc,ie.head.line).text.length;return ie.head.ch==me&&ie.head.line<y.lastLine()?{from:ie.head,to:Ht(ie.head.line+1,0)}:{from:ie.head,to:Ht(ie.head.line,me)}}else return{from:ie.from(),to:ie.to()}})},deleteLine:function(y){return $o(y,function(ie){return{from:Ht(ie.from().line,0),to:rr(y.doc,Ht(ie.to().line+1,0))}})},delLineLeft:function(y){return $o(y,function(ie){return{from:Ht(ie.from().line,0),to:ie.from()}})},delWrappedLineLeft:function(y){return $o(y,function(ie){var me=y.charCoords(ie.head,"div").top+5,pe=y.coordsChar({left:0,top:me},"div");return{from:pe,to:ie.from()}})},delWrappedLineRight:function(y){return $o(y,function(ie){var me=y.charCoords(ie.head,"div").top+5,pe=y.coordsChar({left:y.display.lineDiv.offsetWidth+100,top:me},"div");return{from:ie.from(),to:pe}})},undo:function(y){return y.undo()},redo:function(y){return y.redo()},undoSelection:function(y){return y.undoSelection()},redoSelection:function(y){return y.redoSelection()},goDocStart:function(y){return y.extendSelection(Ht(y.firstLine(),0))},goDocEnd:function(y){return y.extendSelection(Ht(y.lastLine()))},goLineStart:function(y){return y.extendSelectionsBy(function(ie){return kl(y,ie.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(y){return y.extendSelectionsBy(function(ie){return Dl(y,ie.head)},{origin:"+move",bias:1})},goLineEnd:function(y){return y.extendSelectionsBy(function(ie){return Iu(y,ie.head.line)},{origin:"+move",bias:-1})},goLineRight:function(y){return y.extendSelectionsBy(function(ie){var me=y.cursorCoords(ie.head,"div").top+5;return y.coordsChar({left:y.display.lineDiv.offsetWidth+100,top:me},"div")},Qe)},goLineLeft:function(y){return y.extendSelectionsBy(function(ie){var me=y.cursorCoords(ie.head,"div").top+5;return y.coordsChar({left:0,top:me},"div")},Qe)},goLineLeftSmart:function(y){return y.extendSelectionsBy(function(ie){var me=y.cursorCoords(ie.head,"div").top+5,pe=y.coordsChar({left:0,top:me},"div");return pe.ch<y.getLine(pe.line).search(/\S/)?Dl(y,ie.head):pe},Qe)},goLineUp:function(y){return y.moveV(-1,"line")},goLineDown:function(y){return y.moveV(1,"line")},goPageUp:function(y){return y.moveV(-1,"page")},goPageDown:function(y){return y.moveV(1,"page")},goCharLeft:function(y){return y.moveH(-1,"char")},goCharRight:function(y){return y.moveH(1,"char")},goColumnLeft:function(y){return y.moveH(-1,"column")},goColumnRight:function(y){return y.moveH(1,"column")},goWordLeft:function(y){return y.moveH(-1,"word")},goGroupRight:function(y){return y.moveH(1,"group")},goGroupLeft:function(y){return y.moveH(-1,"group")},goWordRight:function(y){return y.moveH(1,"word")},delCharBefore:function(y){return y.deleteH(-1,"codepoint")},delCharAfter:function(y){return y.deleteH(1,"char")},delWordBefore:function(y){return y.deleteH(-1,"word")},delWordAfter:function(y){return y.deleteH(1,"word")},delGroupBefore:function(y){return y.deleteH(-1,"group")},delGroupAfter:function(y){return y.deleteH(1,"group")},indentAuto:function(y){return y.indentSelection("smart")},indentMore:function(y){return y.indentSelection("add")},indentLess:function(y){return y.indentSelection("subtract")},insertTab:function(y){return y.replaceSelection(" ")},insertSoftTab:function(y){for(var ie=[],me=y.listSelections(),pe=y.options.tabSize,Ee=0;Ee<me.length;Ee++){var Re=me[Ee].from(),Ke=Me(y.getLine(Re.line),Re.ch,pe);ie.push(mt(pe-Ke%pe))}y.replaceSelections(ie)},defaultTab:function(y){y.somethingSelected()?y.indentSelection("add"):y.execCommand("insertTab")},transposeChars:function(y){return oi(y,function(){for(var ie=y.listSelections(),me=[],pe=0;pe<ie.length;pe++)if(ie[pe].empty()){var Ee=ie[pe].head,Re=Et(y.doc,Ee.line).text;if(Re){if(Ee.ch==Re.length&&(Ee=new Ht(Ee.line,Ee.ch-1)),Ee.ch>0)Ee=new Ht(Ee.line,Ee.ch+1),y.replaceRange(Re.charAt(Ee.ch-1)+Re.charAt(Ee.ch-2),Ht(Ee.line,Ee.ch-2),Ee,"+transpose");else if(Ee.line>y.doc.first){var Ke=Et(y.doc,Ee.line-1).text;Ke&&(Ee=new Ht(Ee.line,1),y.replaceRange(Re.charAt(0)+y.doc.lineSeparator()+Ke.charAt(Ke.length-1),Ht(Ee.line-1,Ke.length-1),Ee,"+transpose"))}}me.push(new Kr(Ee,Ee))}y.setSelections(me)})},newlineAndIndent:function(y){return oi(y,function(){for(var ie=y.listSelections(),me=ie.length-1;me>=0;me--)y.replaceRange(y.doc.lineSeparator(),ie[me].anchor,ie[me].head,"+input");ie=y.listSelections();for(var pe=0;pe<ie.length;pe++)y.indentLine(ie[pe].from().line,null,!0);hi(y)})},openLine:function(y){return y.replaceSelection(`
`,"start")},toggleOverwrite:function(y){return y.toggleOverwrite()}};function kl(y,ie){var me=Et(y.doc,ie),pe=Pr(me);return pe!=me&&(ie=Yt(pe)),ka(!0,y,pe,ie,1)}function Iu(y,ie){var me=Et(y.doc,ie),pe=In(me);return pe!=me&&(ie=Yt(pe)),ka(!0,y,me,ie,-1)}function Dl(y,ie){var me=kl(y,ie.line),pe=Et(y.doc,me.line),Ee=ct(pe,y.doc.direction);if(!Ee||Ee[0].level==0){var Re=Math.max(me.ch,pe.text.search(/\S/)),Ke=ie.line==me.line&&ie.ch<=Re&&ie.ch;return Ht(me.line,Ke?0:Re,me.sticky)}return me}function oa(y,ie,me){if(typeof ie=="string"&&(ie=Os[ie],!ie))return!1;y.display.input.ensurePolled();var pe=y.display.shift,Ee=!1;try{y.isReadOnly()&&(y.state.suppressEdits=!0),me&&(y.display.shift=!1),Ee=ie(y)!=$e}finally{y.display.shift=pe,y.state.suppressEdits=!1}return Ee}function Bu(y,ie,me){for(var pe=0;pe<y.state.keyMaps.length;pe++){var Ee=qo(ie,y.state.keyMaps[pe],me,y);if(Ee)return Ee}return y.options.extraKeys&&qo(ie,y.options.extraKeys,me,y)||qo(ie,y.options.keyMap,me,y)}var Nu=new We;function js(y,ie,me,pe){var Ee=y.state.keySeq;if(Ee){if(El(ie))return"handled";if(/\'$/.test(ie)?y.state.keySeq=null:Nu.set(50,function(){y.state.keySeq==Ee&&(y.state.keySeq=null,y.display.input.reset())}),Ml(y,Ee+" "+ie,me,pe))return!0}return Ml(y,ie,me,pe)}function Ml(y,ie,me,pe){var Ee=Bu(y,ie,pe);return Ee=="multi"&&(y.state.keySeq=ie),Ee=="handled"&&Yr(y,"keyHandled",y,ie,me),(Ee=="handled"||Ee=="multi")&&(Qt(me),fr(y)),!!Ee}function Ol(y,ie){var me=Tl(ie,!0);return me?ie.shiftKey&&!y.state.keySeq?js(y,"Shift-"+me,ie,function(pe){return oa(y,pe,!0)})||js(y,me,ie,function(pe){if(typeof pe=="string"?/^go[A-Z]/.test(pe):pe.motion)return oa(y,pe)}):js(y,me,ie,function(pe){return oa(y,pe)}):!1}function Fu(y,ie,me){return js(y,"'"+me+"'",ie,function(pe){return oa(y,pe,!0)})}var Da=null;function jl(y){var ie=this;if(!(y.target&&y.target!=ie.display.input.getField())&&(ie.curOp.focus=ke(),!xt(ie,y))){de&&te<11&&y.keyCode==27&&(y.returnValue=!1);var me=y.keyCode;ie.display.shift=me==16||y.shiftKey;var pe=Ol(ie,y);se&&(Da=pe?me:null,!pe&&me==88&&!Hn&&(le?y.metaKey:y.ctrlKey)&&ie.replaceSelection("",null,"cut")),ve&&!le&&!pe&&me==46&&y.shiftKey&&!y.ctrlKey&&document.execCommand&&document.execCommand("cut"),me==18&&!/\bCodeMirror-crosshair\b/.test(ie.display.lineDiv.className)&&Hu(ie)}}function Hu(y){var ie=y.display.lineDiv;Pe(ie,"CodeMirror-crosshair");function me(pe){(pe.keyCode==18||!pe.altKey)&&(xe(ie,"CodeMirror-crosshair"),Ot(document,"keyup",me),Ot(document,"mouseover",me))}vt(document,"keyup",me),vt(document,"mouseover",me)}function Ll(y){y.keyCode==16&&(this.doc.sel.shift=!1),xt(this,y)}function Pl(y){var ie=this;if(!(y.target&&y.target!=ie.display.input.getField())&&!(yi(ie.display,y)||xt(ie,y)||y.ctrlKey&&!y.altKey||le&&y.metaKey)){var me=y.keyCode,pe=y.charCode;if(se&&me==Da){Da=null,Qt(y);return}if(!(se&&(!y.which||y.which<10)&&Ol(ie,y))){var Ee=String.fromCharCode(pe==null?me:pe);Ee!="\b"&&(Fu(ie,y,Ee)||ie.display.input.onKeyPress(y))}}}var zu=400,Ma=function(y,ie,me){this.time=y,this.pos=ie,this.button=me};Ma.prototype.compare=function(y,ie,me){return this.time+zu>y&&nr(ie,this.pos)==0&&me==this.button};var Ls,Ps;function Uu(y,ie){var me=+new Date;return Ps&&Ps.compare(me,y,ie)?(Ls=Ps=null,"triple"):Ls&&Ls.compare(me,y,ie)?(Ps=new Ma(me,y,ie),Ls=null,"double"):(Ls=new Ma(me,y,ie),Ps=null,"single")}function Rl(y){var ie=this,me=ie.display;if(!(xt(ie,y)||me.activeTouch&&me.input.supportsTouch())){if(me.input.ensurePolled(),me.shift=y.shiftKey,yi(me,y)){oe||(me.scroller.draggable=!1,setTimeout(function(){return me.scroller.draggable=!0},100));return}if(!Oa(ie,y)){var pe=Vi(ie,y),Ee=Fr(y),Re=pe?Uu(pe,Ee):"single";window.focus(),Ee==1&&ie.state.selectingText&&ie.state.selectingText(y),!(pe&&Wu(ie,Ee,pe,Re,y))&&(Ee==1?pe?Vu(ie,pe,Re,y):_r(y)==me.scroller&&Qt(y):Ee==2?(pe&&$s(ie.doc,pe),setTimeout(function(){return me.input.focus()},20)):Ee==3&&(Se?ie.display.input.onContextMenu(y):yr(ie)))}}}function Wu(y,ie,me,pe,Ee){var Re="Click";return pe=="double"?Re="Double"+Re:pe=="triple"&&(Re="Triple"+Re),Re=(ie==1?"Left":ie==2?"Middle":"Right")+Re,js(y,Al(Re,Ee),Ee,function(Ke){if(typeof Ke=="string"&&(Ke=Os[Ke]),!Ke)return!1;var nt=!1;try{y.isReadOnly()&&(y.state.suppressEdits=!0),nt=Ke(y,me)!=$e}finally{y.state.suppressEdits=!1}return nt})}function Gu(y,ie,me){var pe=y.getOption("configureMouse"),Ee=pe?pe(y,ie,me):{};if(Ee.unit==null){var Re=fe?me.shiftKey&&me.metaKey:me.altKey;Ee.unit=Re?"rectangle":ie=="single"?"char":ie=="double"?"word":"line"}return(Ee.extend==null||y.doc.extend)&&(Ee.extend=y.doc.extend||me.shiftKey),Ee.addNew==null&&(Ee.addNew=le?me.metaKey:me.ctrlKey),Ee.moveOnDrag==null&&(Ee.moveOnDrag=!(le?me.altKey:me.ctrlKey)),Ee}function Vu(y,ie,me,pe){de?setTimeout(Ge(gr,y),0):y.curOp.focus=ke();var Ee=Gu(y,me,pe),Re=y.doc.sel,Ke;y.options.dragDrop&&Hr&&!y.isReadOnly()&&me=="single"&&(Ke=Re.contains(ie))>-1&&(nr((Ke=Re.ranges[Ke]).from(),ie)<0||ie.xRel>0)&&(nr(Ke.to(),ie)>0||ie.xRel<0)?Zu(y,pe,ie,Ee):Xu(y,pe,ie,Ee)}function Zu(y,ie,me,pe){var Ee=y.display,Re=!1,Ke=Tn(y,function(ht){oe&&(Ee.scroller.draggable=!1),y.state.draggingText=!1,Ot(Ee.wrapper.ownerDocument,"mouseup",Ke),Ot(Ee.wrapper.ownerDocument,"mousemove",nt),Ot(Ee.scroller,"dragstart",ut),Ot(Ee.scroller,"drop",Ke),Re||(Qt(ht),pe.addNew||$s(y.doc,me,null,null,pe.extend),oe&&!z||de&&te==9?setTimeout(function(){Ee.wrapper.ownerDocument.body.focus({preventScroll:!0}),Ee.input.focus()},20):Ee.input.focus())}),nt=function(ht){Re=Re||Math.abs(ie.clientX-ht.clientX)+Math.abs(ie.clientY-ht.clientY)>=10},ut=function(){return Re=!0};oe&&(Ee.scroller.draggable=!0),y.state.draggingText=Ke,Ke.copy=!pe.moveOnDrag,Ee.scroller.dragDrop&&Ee.scroller.dragDrop(),vt(Ee.wrapper.ownerDocument,"mouseup",Ke),vt(Ee.wrapper.ownerDocument,"mousemove",nt),vt(Ee.scroller,"dragstart",ut),vt(Ee.scroller,"drop",Ke),yr(y),setTimeout(function(){return Ee.input.focus()},20)}function Il(y,ie,me){if(me=="char")return new Kr(ie,ie);if(me=="word")return y.findWordAt(ie);if(me=="line")return new Kr(Ht(ie.line,0),rr(y.doc,Ht(ie.line+1,0)));var pe=me(y,ie);return new Kr(pe.from,pe.to)}function Xu(y,ie,me,pe){var Ee=y.display,Re=y.doc;Qt(ie);var Ke,nt,ut=Re.sel,ht=ut.ranges;if(pe.addNew&&!pe.extend?(nt=Re.sel.contains(me),nt>-1?Ke=ht[nt]:Ke=new Kr(me,me)):(Ke=Re.sel.primary(),nt=Re.sel.primIndex),pe.unit=="rectangle")pe.addNew||(Ke=new Kr(me,me)),me=Vi(y,ie,!0,!0),nt=-1;else{var St=Il(y,me,pe.unit);pe.extend?Ke=Ca(Ke,St.anchor,St.head,pe.extend):Ke=St}pe.addNew?nt==-1?(nt=ht.length,Bn(Re,ji(y,ht.concat([Ke]),nt),{scroll:!1,origin:"*mouse"})):ht.length>1&&ht[nt].empty()&&pe.unit=="char"&&!pe.extend?(Bn(Re,ji(y,ht.slice(0,nt).concat(ht.slice(nt+1)),0),{scroll:!1,origin:"*mouse"}),ut=Re.sel):Ea(Re,nt,Ke,Ye):(nt=0,Bn(Re,new mi([Ke],0),Ye),ut=Re.sel);var At=me;function Bt(lr){if(nr(At,lr)!=0)if(At=lr,pe.unit=="rectangle"){for(var vr=[],Er=y.options.tabSize,xr=Me(Et(Re,me.line).text,me.ch,Er),Ir=Me(Et(Re,lr.line).text,lr.ch,Er),rn=Math.min(xr,Ir),Dn=Math.max(xr,Ir),hn=Math.min(me.line,lr.line),si=Math.min(y.lastLine(),Math.max(me.line,lr.line));hn<=si;hn++){var ei=Et(Re,hn).text,bn=st(ei,rn,Er);rn==Dn?vr.push(new Kr(Ht(hn,bn),Ht(hn,bn))):ei.length>bn&&vr.push(new Kr(Ht(hn,bn),Ht(hn,st(ei,Dn,Er))))}vr.length||vr.push(new Kr(me,me)),Bn(Re,ji(y,ut.ranges.slice(0,nt).concat(vr),nt),{origin:"*mouse",scroll:!1}),y.scrollIntoView(lr)}else{var ti=Ke,jn=Il(y,lr,pe.unit),_n=ti.anchor,wn;nr(jn.anchor,_n)>0?(wn=jn.head,_n=wr(ti.from(),jn.anchor)):(wn=jn.anchor,_n=Br(ti.to(),jn.head));var mn=ut.ranges.slice(0);mn[nt]=Yu(y,new Kr(rr(Re,_n),wn)),Bn(Re,ji(y,mn,nt),Ye)}}var Pt=Ee.wrapper.getBoundingClientRect(),Zt=0;function Kt(lr){var vr=++Zt,Er=Vi(y,lr,!0,pe.unit=="rectangle");if(Er)if(nr(Er,At)!=0){y.curOp.focus=ke(),Bt(Er);var xr=An(Ee,Re);(Er.line>=xr.to||Er.line<xr.from)&&setTimeout(Tn(y,function(){Zt==vr&&Kt(lr)}),150)}else{var Ir=lr.clientY<Pt.top?-20:lr.clientY>Pt.bottom?20:0;Ir&&setTimeout(Tn(y,function(){Zt==vr&&(Ee.scroller.scrollTop+=Ir,Kt(lr))}),50)}}function $t(lr){y.state.selectingText=!1,Zt=1/0,lr&&(Qt(lr),Ee.input.focus()),Ot(Ee.wrapper.ownerDocument,"mousemove",ar),Ot(Ee.wrapper.ownerDocument,"mouseup",pr),Re.history.lastSelOrigin=null}var ar=Tn(y,function(lr){lr.buttons===0||!Fr(lr)?$t(lr):Kt(lr)}),pr=Tn(y,$t);y.state.selectingText=pr,vt(Ee.wrapper.ownerDocument,"mousemove",ar),vt(Ee.wrapper.ownerDocument,"mouseup",pr)}function Yu(y,ie){var me=ie.anchor,pe=ie.head,Ee=Et(y.doc,me.line);if(nr(me,pe)==0&&me.sticky==pe.sticky)return ie;var Re=ct(Ee);if(!Re)return ie;var Ke=De(Re,me.ch,me.sticky),nt=Re[Ke];if(nt.from!=me.ch&&nt.to!=me.ch)return ie;var ut=Ke+(nt.from==me.ch==(nt.level!=1)?0:1);if(ut==0||ut==Re.length)return ie;var ht;if(pe.line!=me.line)ht=(pe.line-me.line)*(y.doc.direction=="ltr"?1:-1)>0;else{var St=De(Re,pe.ch,pe.sticky),At=St-Ke||(pe.ch-me.ch)*(nt.level==1?-1:1);St==ut-1||St==ut?ht=At<0:ht=At>0}var Bt=Re[ut+(ht?-1:0)],Pt=ht==(Bt.level==1),Zt=Pt?Bt.from:Bt.to,Kt=Pt?"after":"before";return me.ch==Zt&&me.sticky==Kt?ie:new Kr(new Ht(me.line,Zt,Kt),pe)}function Bl(y,ie,me,pe){var Ee,Re;if(ie.touches)Ee=ie.touches[0].clientX,Re=ie.touches[0].clientY;else try{Ee=ie.clientX,Re=ie.clientY}catch(Bt){return!1}if(Ee>=Math.floor(y.display.gutters.getBoundingClientRect().right))return!1;pe&&Qt(ie);var Ke=y.display,nt=Ke.lineDiv.getBoundingClientRect();if(Re>nt.bottom||!Rt(y,me))return cr(ie);Re-=nt.top-Ke.viewOffset;for(var ut=0;ut<y.display.gutterSpecs.length;++ut){var ht=Ke.gutters.childNodes[ut];if(ht&&ht.getBoundingClientRect().right>=Ee){var St=br(y.doc,Re),At=y.display.gutterSpecs[ut];return Tt(y,me,y,St,At.className,ie),cr(ie)}}}function Oa(y,ie){return Bl(y,ie,"gutterClick",!0)}function Nl(y,ie){yi(y.display,ie)||Ku(y,ie)||xt(y,ie,"contextmenu")||Se||y.display.input.onContextMenu(ie)}function Ku(y,ie){return Rt(y,"gutterContextMenu")?Bl(y,ie,"gutterContextMenu",!1):!1}function Fl(y){y.display.wrapper.className=y.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+y.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Eo(y)}var es={toString:function(){return"CodeMirror.Init"}},Hl={},sa={};function Qu(y){var ie=y.optionHandlers;function me(pe,Ee,Re,Ke){y.defaults[pe]=Ee,Re&&(ie[pe]=Ke?function(nt,ut,ht){ht!=es&&Re(nt,ut,ht)}:Re)}y.defineOption=me,y.Init=es,me("value","",function(pe,Ee){return pe.setValue(Ee)},!0),me("mode",null,function(pe,Ee){pe.doc.modeOption=Ee,xa(pe)},!0),me("indentUnit",2,xa,!0),me("indentWithTabs",!1),me("smartIndent",!0),me("tabSize",4,function(pe){_s(pe),Eo(pe),xn(pe)},!0),me("lineSeparator",null,function(pe,Ee){if(pe.doc.lineSep=Ee,!!Ee){var Re=[],Ke=pe.doc.first;pe.doc.iter(function(ut){for(var ht=0;;){var St=ut.text.indexOf(Ee,ht);if(St==-1)break;ht=St+Ee.length,Re.push(Ht(Ke,St))}Ke++});for(var nt=Re.length-1;nt>=0;nt--)Qo(pe.doc,Ee,Re[nt],Ht(Re[nt].line,Re[nt].ch+Ee.length))}}),me("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(pe,Ee,Re){pe.state.specialChars=new RegExp(Ee.source+(Ee.test(" ")?"":"| "),"g"),Re!=es&&pe.refresh()}),me("specialCharPlaceholder",qi,function(pe){return pe.refresh()},!0),me("electricChars",!0),me("inputStyle",ae?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),me("spellcheck",!1,function(pe,Ee){return pe.getInputField().spellcheck=Ee},!0),me("autocorrect",!1,function(pe,Ee){return pe.getInputField().autocorrect=Ee},!0),me("autocapitalize",!1,function(pe,Ee){return pe.getInputField().autocapitalize=Ee},!0),me("rtlMoveVisually",!ce),me("wholeLineUpdateBefore",!0),me("theme","default",function(pe){Fl(pe),xs(pe)},!0),me("keyMap","default",function(pe,Ee,Re){var Ke=ia(Ee),nt=Re!=es&&ia(Re);nt&&nt.detach&&nt.detach(pe,Ke),Ke.attach&&Ke.attach(pe,nt||null)}),me("extraKeys",null),me("configureMouse",null),me("lineWrapping",!1,qu,!0),me("gutters",[],function(pe,Ee){pe.display.gutterSpecs=ba(Ee,pe.options.lineNumbers),xs(pe)},!0),me("fixedGutter",!0,function(pe,Ee){pe.display.gutters.style.left=Ee?hs(pe.display)+"px":"0",pe.refresh()},!0),me("coverGutterNextToScrollbar",!1,function(pe){return Zo(pe)},!0),me("scrollbarStyle","native",function(pe){Ua(pe),Zo(pe),pe.display.scrollbars.setScrollTop(pe.doc.scrollTop),pe.display.scrollbars.setScrollLeft(pe.doc.scrollLeft)},!0),me("lineNumbers",!1,function(pe,Ee){pe.display.gutterSpecs=ba(pe.options.gutters,Ee),xs(pe)},!0),me("firstLineNumber",1,xs,!0),me("lineNumberFormatter",function(pe){return pe},xs,!0),me("showCursorWhenSelecting",!1,Zi,!0),me("resetSelectionOnContextMenu",!0),me("lineWiseCopyCut",!0),me("pasteLinesPerSelection",!0),me("selectionsMayTouch",!1),me("readOnly",!1,function(pe,Ee){Ee=="nocursor"&&(Cr(pe),pe.display.input.blur()),pe.display.input.readOnlyChanged(Ee)}),me("screenReaderLabel",null,function(pe,Ee){Ee=Ee===""?null:Ee,pe.display.input.screenReaderLabelChanged(Ee)}),me("disableInput",!1,function(pe,Ee){Ee||pe.display.input.reset()},!0),me("dragDrop",!0,Ju),me("allowDropFileTypes",null),me("cursorBlinkRate",530),me("cursorScrollMargin",0),me("cursorHeight",1,Zi,!0),me("singleCursorHeightPerLine",!0,Zi,!0),me("workTime",100),me("workDelay",100),me("flattenSpans",!0,_s,!0),me("addModeClass",!1,_s,!0),me("pollInterval",100),me("undoDepth",200,function(pe,Ee){return pe.doc.history.undoDepth=Ee}),me("historyEventDelay",1250),me("viewportMargin",10,function(pe){return pe.refresh()},!0),me("maxHighlightLength",1e4,_s,!0),me("moveInputWithCursor",!0,function(pe,Ee){Ee||pe.display.input.resetPosition()}),me("tabindex",null,function(pe,Ee){return pe.display.input.getField().tabIndex=Ee||""}),me("autofocus",null),me("direction","ltr",function(pe,Ee){return pe.doc.setDirection(Ee)},!0),me("phrases",null)}function Ju(y,ie,me){var pe=me&&me!=es;if(!ie!=!pe){var Ee=y.display.dragFunctions,Re=ie?vt:Ot;Re(y.display.scroller,"dragstart",Ee.start),Re(y.display.scroller,"dragenter",Ee.enter),Re(y.display.scroller,"dragover",Ee.over),Re(y.display.scroller,"dragleave",Ee.leave),Re(y.display.scroller,"drop",Ee.drop)}}function qu(y){y.options.lineWrapping?(Pe(y.display.wrapper,"CodeMirror-wrap"),y.display.sizer.style.minWidth="",y.display.sizerWidth=null):(xe(y.display.wrapper,"CodeMirror-wrap"),sr(y)),ps(y),xn(y),Eo(y),setTimeout(function(){return Zo(y)},100)}function dn(y,ie){var me=this;if(!(this instanceof dn))return new dn(y,ie);this.options=ie=ie?tt(ie):{},tt(Hl,ie,!1);var pe=ie.value;typeof pe=="string"?pe=new $n(pe,ie.mode,null,ie.lineSeparator,ie.direction):ie.mode&&(pe.modeOption=ie.mode),this.doc=pe;var Ee=new dn.inputStyles[ie.inputStyle](this),Re=this.display=new fu(y,pe,Ee,ie);Re.wrapper.CodeMirror=this,Fl(this),ie.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ua(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 We,keySeq:null,specialChars:null},ie.autofocus&&!ae&&Re.input.focus(),de&&te<11&&setTimeout(function(){return me.display.input.reset(!0)},20),$u(this),Mu(),Mo(this),this.curOp.forceUpdate=!0,qa(this,pe),ie.autofocus&&!ae||this.hasFocus()?setTimeout(function(){me.hasFocus()&&!me.state.focused&&Dr(me)},20):Cr(this);for(var Ke in sa)sa.hasOwnProperty(Ke)&&sa[Ke](this,ie[Ke],es);Va(this),ie.finishInit&&ie.finishInit(this);for(var nt=0;nt<ja.length;++nt)ja[nt](this);Oo(this),oe&&ie.lineWrapping&&getComputedStyle(Re.lineDiv).textRendering=="optimizelegibility"&&(Re.lineDiv.style.textRendering="auto")}dn.defaults=Hl,dn.optionHandlers=sa;function $u(y){var ie=y.display;vt(ie.scroller,"mousedown",Tn(y,Rl)),de&&te<11?vt(ie.scroller,"dblclick",Tn(y,function(ut){if(!xt(y,ut)){var ht=Vi(y,ut);if(!(!ht||Oa(y,ut)||yi(y.display,ut))){Qt(ut);var St=y.findWordAt(ht);$s(y.doc,St.anchor,St.head)}}})):vt(ie.scroller,"dblclick",function(ut){return xt(y,ut)||Qt(ut)}),vt(ie.scroller,"contextmenu",function(ut){return Nl(y,ut)}),vt(ie.input.getField(),"contextmenu",function(ut){ie.scroller.contains(ut.target)||Nl(y,ut)});var me,pe={end:0};function Ee(){ie.activeTouch&&(me=setTimeout(function(){return ie.activeTouch=null},1e3),pe=ie.activeTouch,pe.end=+new Date)}function Re(ut){if(ut.touches.length!=1)return!1;var ht=ut.touches[0];return ht.radiusX<=1&&ht.radiusY<=1}function Ke(ut,ht){if(ht.left==null)return!0;var St=ht.left-ut.left,At=ht.top-ut.top;return St*St+At*At>20*20}vt(ie.scroller,"touchstart",function(ut){if(!xt(y,ut)&&!Re(ut)&&!Oa(y,ut)){ie.input.ensurePolled(),clearTimeout(me);var ht=+new Date;ie.activeTouch={start:ht,moved:!1,prev:ht-pe.end<=300?pe:null},ut.touches.length==1&&(ie.activeTouch.left=ut.touches[0].pageX,ie.activeTouch.top=ut.touches[0].pageY)}}),vt(ie.scroller,"touchmove",function(){ie.activeTouch&&(ie.activeTouch.moved=!0)}),vt(ie.scroller,"touchend",function(ut){var ht=ie.activeTouch;if(ht&&!yi(ie,ut)&&ht.left!=null&&!ht.moved&&new Date-ht.start<300){var St=y.coordsChar(ie.activeTouch,"page"),At;!ht.prev||Ke(ht,ht.prev)?At=new Kr(St,St):!ht.prev.prev||Ke(ht,ht.prev.prev)?At=y.findWordAt(St):At=new Kr(Ht(St.line,0),rr(y.doc,Ht(St.line+1,0))),y.setSelection(At.anchor,At.head),y.focus(),Qt(ut)}Ee()}),vt(ie.scroller,"touchcancel",Ee),vt(ie.scroller,"scroll",function(){ie.scroller.clientHeight&&(Mi(y,ie.scroller.scrollTop),Oi(y,ie.scroller.scrollLeft,!0),Tt(y,"scroll",y))}),vt(ie.scroller,"mousewheel",function(ut){return Ya(y,ut)}),vt(ie.scroller,"DOMMouseScroll",function(ut){return Ya(y,ut)}),vt(ie.wrapper,"scroll",function(){return ie.wrapper.scrollTop=ie.wrapper.scrollLeft=0}),ie.dragFunctions={enter:function(ut){xt(y,ut)||ir(ut)},over:function(ut){xt(y,ut)||(Du(y,ut),ir(ut))},start:function(ut){return ku(y,ut)},drop:Tn(y,Tu),leave:function(ut){xt(y,ut)||_l(y)}};var nt=ie.input.getField();vt(nt,"keyup",function(ut){return Ll.call(y,ut)}),vt(nt,"keydown",Tn(y,jl)),vt(nt,"keypress",Tn(y,Pl)),vt(nt,"focus",function(ut){return Dr(y,ut)}),vt(nt,"blur",function(ut){return Cr(y,ut)})}var ja=[];dn.defineInitHook=function(y){return ja.push(y)};function Rs(y,ie,me,pe){var Ee=y.doc,Re;me==null&&(me="add"),me=="smart"&&(Ee.mode.indent?Re=tn(y,ie).state:me="prev");var Ke=y.options.tabSize,nt=Et(Ee,ie),ut=Me(nt.text,null,Ke);nt.stateAfter&&(nt.stateAfter=null);var ht=nt.text.match(/^\s*/)[0],St;if(!pe&&!/\S/.test(nt.text))St=0,me="not";else if(me=="smart"&&(St=Ee.mode.indent(Re,nt.text.slice(ht.length),nt.text),St==$e||St>150)){if(!pe)return;me="prev"}me=="prev"?ie>Ee.first?St=Me(Et(Ee,ie-1).text,null,Ke):St=0:me=="add"?St=ut+y.options.indentUnit:me=="subtract"?St=ut-y.options.indentUnit:typeof me=="number"&&(St=ut+me),St=Math.max(0,St);var At="",Bt=0;if(y.options.indentWithTabs)for(var Pt=Math.floor(St/Ke);Pt;--Pt)Bt+=Ke,At+=" ";if(Bt<St&&(At+=mt(St-Bt)),At!=ht)return Qo(Ee,At,Ht(ie,0),Ht(ie,ht.length),"+input"),nt.stateAfter=null,!0;for(var Zt=0;Zt<Ee.sel.ranges.length;Zt++){var Kt=Ee.sel.ranges[Zt];if(Kt.head.line==ie&&Kt.head.ch<ht.length){var $t=Ht(ie,ht.length);Ea(Ee,Zt,new Kr($t,$t));break}}}var Li=null;function aa(y){Li=y}function La(y,ie,me,pe,Ee){var Re=y.doc;y.display.shift=!1,pe||(pe=Re.sel);var Ke=+new Date-200,nt=Ee=="paste"||y.state.pasteIncoming>Ke,ut=Fn(ie),ht=null;if(nt&&pe.ranges.length>1)if(Li&&Li.text.join(`
`)==ie){if(pe.ranges.length%Li.text.length==0){ht=[];for(var St=0;St<Li.text.length;St++)ht.push(Re.splitLines(Li.text[St]))}}else ut.length==pe.ranges.length&&y.options.pasteLinesPerSelection&&(ht=qe(ut,function(ar){return[ar]}));for(var At=y.curOp.updateInput,Bt=pe.ranges.length-1;Bt>=0;Bt--){var Pt=pe.ranges[Bt],Zt=Pt.from(),Kt=Pt.to();Pt.empty()&&(me&&me>0?Zt=Ht(Zt.line,Zt.ch-me):y.state.overwrite&&!nt?Kt=Ht(Kt.line,Math.min(Et(Re,Kt.line).text.length,Kt.ch+ft(ut).length)):nt&&Li&&Li.lineWise&&Li.text.join(`
`)==ut.join(`
`)&&(Zt=Kt=Ht(Zt.line,0)));var $t={from:Zt,to:Kt,text:ht?ht[Bt%ht.length]:ut,origin:Ee||(nt?"paste":y.state.cutIncoming>Ke?"cut":"+input")};Ko(y.doc,$t),Yr(y,"inputRead",y,$t)}ie&&!nt&&Ul(y,ie),hi(y),y.curOp.updateInput<2&&(y.curOp.updateInput=At),y.curOp.typing=!0,y.state.pasteIncoming=y.state.cutIncoming=-1}function zl(y,ie){var me=y.clipboardData&&y.clipboardData.getData("Text");if(me)return y.preventDefault(),!ie.isReadOnly()&&!ie.options.disableInput&&oi(ie,function(){return La(ie,me,0,null,"paste")}),!0}function Ul(y,ie){if(!(!y.options.electricChars||!y.options.smartIndent))for(var me=y.doc.sel,pe=me.ranges.length-1;pe>=0;pe--){var Ee=me.ranges[pe];if(!(Ee.head.ch>100||pe&&me.ranges[pe-1].head.line==Ee.head.line)){var Re=y.getModeAt(Ee.head),Ke=!1;if(Re.electricChars){for(var nt=0;nt<Re.electricChars.length;nt++)if(ie.indexOf(Re.electricChars.charAt(nt))>-1){Ke=Rs(y,Ee.head.line,"smart");break}}else Re.electricInput&&Re.electricInput.test(Et(y.doc,Ee.head.line).text.slice(0,Ee.head.ch))&&(Ke=Rs(y,Ee.head.line,"smart"));Ke&&Yr(y,"electricInput",y,Ee.head.line)}}}function Wl(y){for(var ie=[],me=[],pe=0;pe<y.doc.sel.ranges.length;pe++){var Ee=y.doc.sel.ranges[pe].head.line,Re={anchor:Ht(Ee,0),head:Ht(Ee+1,0)};me.push(Re),ie.push(y.getRange(Re.anchor,Re.head))}return{text:ie,ranges:me}}function Gl(y,ie,me,pe){y.setAttribute("autocorrect",me?"":"off"),y.setAttribute("autocapitalize",pe?"":"off"),y.setAttribute("spellcheck",!!ie)}function Vl(){var y=be("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ie=be("div",[y],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return oe?y.style.width="1000px":y.setAttribute("wrap","off"),E&&(y.style.border="1px solid black"),Gl(y),ie}function ec(y){var ie=y.optionHandlers,me=y.helpers={};y.prototype={constructor:y,focus:function(){window.focus(),this.display.input.focus()},setOption:function(pe,Ee){var Re=this.options,Ke=Re[pe];Re[pe]==Ee&&pe!="mode"||(Re[pe]=Ee,ie.hasOwnProperty(pe)&&Tn(this,ie[pe])(this,Ee,Ke),Tt(this,"optionChange",this,pe))},getOption:function(pe){return this.options[pe]},getDoc:function(){return this.doc},addKeyMap:function(pe,Ee){this.state.keyMaps[Ee?"push":"unshift"](ia(pe))},removeKeyMap:function(pe){for(var Ee=this.state.keyMaps,Re=0;Re<Ee.length;++Re)if(Ee[Re]==pe||Ee[Re].name==pe)return Ee.splice(Re,1),!0},addOverlay:Yn(function(pe,Ee){var Re=pe.token?pe:y.getMode(this.options,pe);if(Re.startState)throw new Error("Overlays may not be stateful.");Be(this.state.overlays,{mode:Re,modeSpec:pe,opaque:Ee&&Ee.opaque,priority:Ee&&Ee.priority||0},function(Ke){return Ke.priority}),this.state.modeGen++,xn(this)}),removeOverlay:Yn(function(pe){for(var Ee=this.state.overlays,Re=0;Re<Ee.length;++Re){var Ke=Ee[Re].modeSpec;if(Ke==pe||typeof pe=="string"&&Ke.name==pe){Ee.splice(Re,1),this.state.modeGen++,xn(this);return}}}),indentLine:Yn(function(pe,Ee,Re){typeof Ee!="string"&&typeof Ee!="number"&&(Ee==null?Ee=this.options.smartIndent?"smart":"prev":Ee=Ee?"add":"subtract"),Tr(this.doc,pe)&&Rs(this,pe,Ee,Re)}),indentSelection:Yn(function(pe){for(var Ee=this.doc.sel.ranges,Re=-1,Ke=0;Ke<Ee.length;Ke++){var nt=Ee[Ke];if(nt.empty())nt.head.line>Re&&(Rs(this,nt.head.line,pe,!0),Re=nt.head.line,Ke==this.doc.sel.primIndex&&hi(this));else{var ut=nt.from(),ht=nt.to(),St=Math.max(Re,ut.line);Re=Math.min(this.lastLine(),ht.line-(ht.ch?0:1))+1;for(var At=St;At<Re;++At)Rs(this,At,pe);var Bt=this.doc.sel.ranges;ut.ch==0&&Ee.length==Bt.length&&Bt[Ke].from().ch>0&&Ea(this.doc,Ke,new Kr(ut,Bt[Ke].to()),Je)}}}),getTokenAt:function(pe,Ee){return Qn(this,pe,Ee)},getLineTokens:function(pe,Ee){return Qn(this,Ht(pe),Ee,!0)},getTokenTypeAt:function(pe){pe=rr(this.doc,pe);var Ee=en(this,Et(this.doc,pe.line)),Re=0,Ke=(Ee.length-1)/2,nt=pe.ch,ut;if(nt==0)ut=Ee[2];else for(;;){var ht=Re+Ke>>1;if((ht?Ee[ht*2-1]:0)>=nt)Ke=ht;else if(Ee[ht*2+1]<nt)Re=ht+1;else{ut=Ee[ht*2+2];break}}var St=ut?ut.indexOf("overlay "):-1;return St<0?ut:St==0?null:ut.slice(0,St-1)},getModeAt:function(pe){var Ee=this.doc.mode;return Ee.innerMode?y.innerMode(Ee,this.getTokenAt(pe).state).mode:Ee},getHelper:function(pe,Ee){return this.getHelpers(pe,Ee)[0]},getHelpers:function(pe,Ee){var Re=[];if(!me.hasOwnProperty(Ee))return Re;var Ke=me[Ee],nt=this.getModeAt(pe);if(typeof nt[Ee]=="string")Ke[nt[Ee]]&&Re.push(Ke[nt[Ee]]);else if(nt[Ee])for(var ut=0;ut<nt[Ee].length;ut++){var ht=Ke[nt[Ee][ut]];ht&&Re.push(ht)}else nt.helperType&&Ke[nt.helperType]?Re.push(Ke[nt.helperType]):Ke[nt.name]&&Re.push(Ke[nt.name]);for(var St=0;St<Ke._global.length;St++){var At=Ke._global[St];At.pred(nt,this)&&it(Re,At.val)==-1&&Re.push(At.val)}return Re},getStateAfter:function(pe,Ee){var Re=this.doc;return pe=jr(Re,pe==null?Re.first+Re.size-1:pe),tn(this,pe+1,Ee).state},cursorCoords:function(pe,Ee){var Re,Ke=this.doc.sel.primary();return pe==null?Re=Ke.head:typeof pe=="object"?Re=rr(this.doc,pe):Re=pe?Ke.from():Ke.to(),fi(this,Re,Ee||"page")},charCoords:function(pe,Ee){return fo(this,rr(this.doc,pe),Ee||"page")},coordsChar:function(pe,Ee){return pe=Ao(this,pe,Ee||"page"),Gi(this,pe.left,pe.top)},lineAtHeight:function(pe,Ee){return pe=Ao(this,{top:pe,left:0},Ee||"page").top,br(this.doc,pe+this.display.viewOffset)},heightAtLine:function(pe,Ee,Re){var Ke=!1,nt;if(typeof pe=="number"){var ut=this.doc.first+this.doc.size-1;pe<this.doc.first?pe=this.doc.first:pe>ut&&(pe=ut,Ke=!0),nt=Et(this.doc,pe)}else nt=pe;return ki(this,nt,{top:0,left:0},Ee||"page",Re||Ke).top+(Ke?this.doc.height-Mr(nt):0)},defaultTextHeight:function(){return ho(this.display)},defaultCharWidth:function(){return to(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(pe,Ee,Re,Ke,nt){var ut=this.display;pe=fi(this,rr(this.doc,pe));var ht=pe.bottom,St=pe.left;if(Ee.style.position="absolute",Ee.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Ee),ut.sizer.appendChild(Ee),Ke=="over")ht=pe.top;else if(Ke=="above"||Ke=="near"){var At=Math.max(ut.wrapper.clientHeight,this.doc.height),Bt=Math.max(ut.sizer.clientWidth,ut.lineSpace.clientWidth);(Ke=="above"||pe.bottom+Ee.offsetHeight>At)&&pe.top>Ee.offsetHeight?ht=pe.top-Ee.offsetHeight:pe.bottom+Ee.offsetHeight<=At&&(ht=pe.bottom),St+Ee.offsetWidth>Bt&&(St=Bt-Ee.offsetWidth)}Ee.style.top=ht+"px",Ee.style.left=Ee.style.right="",nt=="right"?(St=ut.sizer.clientWidth-Ee.offsetWidth,Ee.style.right="0px"):(nt=="left"?St=0:nt=="middle"&&(St=(ut.sizer.clientWidth-Ee.offsetWidth)/2),Ee.style.left=St+"px"),Re&&vs(this,{left:St,top:ht,right:St+Ee.offsetWidth,bottom:ht+Ee.offsetHeight})},triggerOnKeyDown:Yn(jl),triggerOnKeyPress:Yn(Pl),triggerOnKeyUp:Ll,triggerOnMouseDown:Yn(Rl),execCommand:function(pe){if(Os.hasOwnProperty(pe))return Os[pe].call(null,this)},triggerElectric:Yn(function(pe){Ul(this,pe)}),findPosH:function(pe,Ee,Re,Ke){var nt=1;Ee<0&&(nt=-1,Ee=-Ee);for(var ut=rr(this.doc,pe),ht=0;ht<Ee&&(ut=Pa(this.doc,ut,nt,Re,Ke),!ut.hitSide);++ht);return ut},moveH:Yn(function(pe,Ee){var Re=this;this.extendSelectionsBy(function(Ke){return Re.display.shift||Re.doc.extend||Ke.empty()?Pa(Re.doc,Ke.head,pe,Ee,Re.options.rtlMoveVisually):pe<0?Ke.from():Ke.to()},Qe)}),deleteH:Yn(function(pe,Ee){var Re=this.doc.sel,Ke=this.doc;Re.somethingSelected()?Ke.replaceSelection("",null,"+delete"):$o(this,function(nt){var ut=Pa(Ke,nt.head,pe,Ee,!1);return pe<0?{from:ut,to:nt.head}:{from:nt.head,to:ut}})}),findPosV:function(pe,Ee,Re,Ke){var nt=1,ut=Ke;Ee<0&&(nt=-1,Ee=-Ee);for(var ht=rr(this.doc,pe),St=0;St<Ee;++St){var At=fi(this,ht,"div");if(ut==null?ut=At.left:At.left=ut,ht=Zl(this,At,nt,Re),ht.hitSide)break}return ht},moveV:Yn(function(pe,Ee){var Re=this,Ke=this.doc,nt=[],ut=!this.display.shift&&!Ke.extend&&Ke.sel.somethingSelected();if(Ke.extendSelectionsBy(function(St){if(ut)return pe<0?St.from():St.to();var At=fi(Re,St.head,"div");St.goalColumn!=null&&(At.left=St.goalColumn),nt.push(At.left);var Bt=Zl(Re,At,pe,Ee);return Ee=="page"&&St==Ke.sel.primary()&&Yi(Re,fo(Re,Bt,"div").top-At.top),Bt},Qe),nt.length)for(var ht=0;ht<Ke.sel.ranges.length;ht++)Ke.sel.ranges[ht].goalColumn=nt[ht]}),findWordAt:function(pe){var Ee=this.doc,Re=Et(Ee,pe.line).text,Ke=pe.ch,nt=pe.ch;if(Re){var ut=this.getHelper(pe,"wordChars");(pe.sticky=="before"||nt==Re.length)&&Ke?--Ke:++nt;for(var ht=Re.charAt(Ke),St=yt(ht,ut)?function(At){return yt(At,ut)}:/\s/.test(ht)?function(At){return/\s/.test(At)}:function(At){return!/\s/.test(At)&&!yt(At)};Ke>0&&St(Re.charAt(Ke-1));)--Ke;for(;nt<Re.length&&St(Re.charAt(nt));)++nt}return new Kr(Ht(pe.line,Ke),Ht(pe.line,nt))},toggleOverwrite:function(pe){pe!=null&&pe==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Pe(this.display.cursorDiv,"CodeMirror-overwrite"):xe(this.display.cursorDiv,"CodeMirror-overwrite"),Tt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ke()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Yn(function(pe,Ee){_i(this,pe,Ee)}),getScrollInfo:function(){var pe=this.display.scroller;return{left:pe.scrollLeft,top:pe.scrollTop,height:pe.scrollHeight-wi(this)-this.display.barHeight,width:pe.scrollWidth-wi(this)-this.display.barWidth,clientHeight:us(this),clientWidth:eo(this)}},scrollIntoView:Yn(function(pe,Ee){pe==null?(pe={from:this.doc.sel.primary().head,to:null},Ee==null&&(Ee=this.options.cursorScrollMargin)):typeof pe=="number"?pe={from:Ht(pe,0),to:null}:pe.from==null&&(pe={from:pe,to:null}),pe.to||(pe.to=pe.from),pe.margin=Ee||0,pe.from.line!=null?ko(this,pe):gs(this,pe.from,pe.to,pe.margin)}),setSize:Yn(function(pe,Ee){var Re=this,Ke=function(ut){return typeof ut=="number"||/^\d+$/.test(String(ut))?ut+"px":ut};pe!=null&&(this.display.wrapper.style.width=Ke(pe)),Ee!=null&&(this.display.wrapper.style.height=Ke(Ee)),this.options.lineWrapping&&zs(this);var nt=this.display.viewFrom;this.doc.iter(nt,this.display.viewTo,function(ut){if(ut.widgets){for(var ht=0;ht<ut.widgets.length;ht++)if(ut.widgets[ht].noHScroll){Di(Re,nt,"widget");break}}++nt}),this.curOp.forceUpdate=!0,Tt(this,"refresh",this)}),operation:function(pe){return oi(this,pe)},startOperation:function(){return Mo(this)},endOperation:function(){return Oo(this)},refresh:Yn(function(){var pe=this.display.cachedTextHeight;xn(this),this.curOp.forceUpdate=!0,Eo(this),_i(this,this.doc.scrollLeft,this.doc.scrollTop),ga(this.display),(pe==null||Math.abs(pe-ho(this.display))>.5||this.options.lineWrapping)&&ps(this),Tt(this,"refresh",this)}),swapDoc:Yn(function(pe){var Ee=this.doc;return Ee.cm=null,this.state.selectingText&&this.state.selectingText(),qa(this,pe),Eo(this),this.display.input.reset(),_i(this,pe.scrollLeft,pe.scrollTop),this.curOp.forceScroll=!0,Yr(this,"swapDoc",this,Ee),Ee}),phrase:function(pe){var Ee=this.options.phrases;return Ee&&Object.prototype.hasOwnProperty.call(Ee,pe)?Ee[pe]:pe},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}},Ut(y),y.registerHelper=function(pe,Ee,Re){me.hasOwnProperty(pe)||(me[pe]=y[pe]={_global:[]}),me[pe][Ee]=Re},y.registerGlobalHelper=function(pe,Ee,Re,Ke){y.registerHelper(pe,Ee,Ke),me[pe]._global.push({pred:Re,val:Ke})}}function Pa(y,ie,me,pe,Ee){var Re=ie,Ke=me,nt=Et(y,ie.line),ut=Ee&&y.direction=="rtl"?-me:me;function ht(){var pr=ie.line+ut;return pr<y.first||pr>=y.first+y.size?!1:(ie=new Ht(pr,ie.ch,ie.sticky),nt=Et(y,pr))}function St(pr){var lr;if(pe=="codepoint"){var vr=nt.text.charCodeAt(ie.ch+(pe>0?0:-1));isNaN(vr)?lr=null:lr=new Ht(ie.line,Math.max(0,Math.min(nt.text.length,ie.ch+me*(vr>=55296&&vr<56320?2:1))),-me)}else Ee?lr=Ru(y.cm,nt,ie,me):lr=Ta(nt,ie,me);if(lr==null)if(!pr&&ht())ie=ka(Ee,y.cm,nt,ie.line,ut);else return!1;else ie=lr;return!0}if(pe=="char"||pe=="codepoint")St();else if(pe=="column")St(!0);else if(pe=="word"||pe=="group")for(var At=null,Bt=pe=="group",Pt=y.cm&&y.cm.getHelper(ie,"wordChars"),Zt=!0;!(me<0&&!St(!Zt));Zt=!1){var Kt=nt.text.charAt(ie.ch)||`
`,$t=yt(Kt,Pt)?"w":Bt&&Kt==`
`?"n":!Bt||/\s/.test(Kt)?null:"p";if(Bt&&!Zt&&!$t&&($t="s"),At&&At!=$t){me<0&&(me=1,St(),ie.sticky="after");break}if($t&&(At=$t),me>0&&!St(!Zt))break}var ar=ta(y,ie,Re,Ke,!0);return Or(Re,ar)&&(ar.hitSide=!0),ar}function Zl(y,ie,me,pe){var Ee=y.doc,Re=ie.left,Ke;if(pe=="page"){var nt=Math.min(y.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ut=Math.max(nt-.5*ho(y.display),3);Ke=(me>0?ie.bottom:ie.top)+me*ut}else pe=="line"&&(Ke=me>0?ie.bottom+3:ie.top-3);for(var ht;ht=Gi(y,Re,Ke),!!ht.outside;){if(me<0?Ke<=0:Ke>=Ee.height){ht.hitSide=!0;break}Ke+=me*5}return ht}var $r=function(y){this.cm=y,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new We,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};$r.prototype.init=function(y){var ie=this,me=this,pe=me.cm,Ee=me.div=y.lineDiv;Gl(Ee,pe.options.spellcheck,pe.options.autocorrect,pe.options.autocapitalize);function Re(nt){for(var ut=nt.target;ut;ut=ut.parentNode){if(ut==Ee)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ut.className))break}return!1}vt(Ee,"paste",function(nt){!Re(nt)||xt(pe,nt)||zl(nt,pe)||te<=11&&setTimeout(Tn(pe,function(){return ie.updateFromDOM()}),20)}),vt(Ee,"compositionstart",function(nt){ie.composing={data:nt.data,done:!1}}),vt(Ee,"compositionupdate",function(nt){ie.composing||(ie.composing={data:nt.data,done:!1})}),vt(Ee,"compositionend",function(nt){ie.composing&&(nt.data!=ie.composing.data&&ie.readFromDOMSoon(),ie.composing.done=!0)}),vt(Ee,"touchstart",function(){return me.forceCompositionEnd()}),vt(Ee,"input",function(){ie.composing||ie.readFromDOMSoon()});function Ke(nt){if(!(!Re(nt)||xt(pe,nt))){if(pe.somethingSelected())aa({lineWise:!1,text:pe.getSelections()}),nt.type=="cut"&&pe.replaceSelection("",null,"cut");else if(pe.options.lineWiseCopyCut){var ut=Wl(pe);aa({lineWise:!0,text:ut.text}),nt.type=="cut"&&pe.operation(function(){pe.setSelections(ut.ranges,0,Je),pe.replaceSelection("",null,"cut")})}else return;if(nt.clipboardData){nt.clipboardData.clearData();var ht=Li.text.join(`
`);if(nt.clipboardData.setData("Text",ht),nt.clipboardData.getData("Text")==ht){nt.preventDefault();return}}var St=Vl(),At=St.firstChild;pe.display.lineSpace.insertBefore(St,pe.display.lineSpace.firstChild),At.value=Li.text.join(`
`);var Bt=document.activeElement;ze(At),setTimeout(function(){pe.display.lineSpace.removeChild(St),Bt.focus(),Bt==Ee&&me.showPrimarySelection()},50)}}vt(Ee,"copy",Ke),vt(Ee,"cut",Ke)},$r.prototype.screenReaderLabelChanged=function(y){y?this.div.setAttribute("aria-label",y):this.div.removeAttribute("aria-label")},$r.prototype.prepareSelection=function(){var y=Vo(this.cm,!1);return y.focus=document.activeElement==this.div,y},$r.prototype.showSelection=function(y,ie){!y||!this.cm.display.view.length||((y.focus||ie)&&this.showPrimarySelection(),this.showMultipleSelections(y))},$r.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},$r.prototype.showPrimarySelection=function(){var y=this.getSelection(),ie=this.cm,me=ie.doc.sel.primary(),pe=me.from(),Ee=me.to();if(ie.display.viewTo==ie.display.viewFrom||pe.line>=ie.display.viewTo||Ee.line<ie.display.viewFrom){y.removeAllRanges();return}var Re=la(ie,y.anchorNode,y.anchorOffset),Ke=la(ie,y.focusNode,y.focusOffset);if(!(Re&&!Re.bad&&Ke&&!Ke.bad&&nr(wr(Re,Ke),pe)==0&&nr(Br(Re,Ke),Ee)==0)){var nt=ie.display.view,ut=pe.line>=ie.display.viewFrom&&Xl(ie,pe)||{node:nt[0].measure.map[2],offset:0},ht=Ee.line<ie.display.viewTo&&Xl(ie,Ee);if(!ht){var St=nt[nt.length-1].measure,At=St.maps?St.maps[St.maps.length-1]:St.map;ht={node:At[At.length-1],offset:At[At.length-2]-At[At.length-3]}}if(!ut||!ht){y.removeAllRanges();return}var Bt=y.rangeCount&&y.getRangeAt(0),Pt;try{Pt=Te(ut.node,ut.offset,ht.offset,ht.node)}catch(Zt){}Pt&&(!ve&&ie.state.focused?(y.collapse(ut.node,ut.offset),Pt.collapsed||(y.removeAllRanges(),y.addRange(Pt))):(y.removeAllRanges(),y.addRange(Pt)),Bt&&y.anchorNode==null?y.addRange(Bt):ve&&this.startGracePeriod()),this.rememberSelection()}},$r.prototype.startGracePeriod=function(){var y=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){y.gracePeriod=!1,y.selectionChanged()&&y.cm.operation(function(){return y.cm.curOp.selectionChanged=!0})},20)},$r.prototype.showMultipleSelections=function(y){_e(this.cm.display.cursorDiv,y.cursors),_e(this.cm.display.selectionDiv,y.selection)},$r.prototype.rememberSelection=function(){var y=this.getSelection();this.lastAnchorNode=y.anchorNode,this.lastAnchorOffset=y.anchorOffset,this.lastFocusNode=y.focusNode,this.lastFocusOffset=y.focusOffset},$r.prototype.selectionInEditor=function(){var y=this.getSelection();if(!y.rangeCount)return!1;var ie=y.getRangeAt(0).commonAncestorContainer;return Le(this.div,ie)},$r.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},$r.prototype.blur=function(){this.div.blur()},$r.prototype.getField=function(){return this.div},$r.prototype.supportsTouch=function(){return!0},$r.prototype.receivedFocus=function(){var y=this;this.selectionInEditor()?this.pollSelection():oi(this.cm,function(){return y.cm.curOp.selectionChanged=!0});function ie(){y.cm.state.focused&&(y.pollSelection(),y.polling.set(y.cm.options.pollInterval,ie))}this.polling.set(this.cm.options.pollInterval,ie)},$r.prototype.selectionChanged=function(){var y=this.getSelection();return y.anchorNode!=this.lastAnchorNode||y.anchorOffset!=this.lastAnchorOffset||y.focusNode!=this.lastFocusNode||y.focusOffset!=this.lastFocusOffset},$r.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var y=this.getSelection(),ie=this.cm;if(re&&ee&&this.cm.display.gutterSpecs.length&&tc(y.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var me=la(ie,y.anchorNode,y.anchorOffset),pe=la(ie,y.focusNode,y.focusOffset);me&&pe&&oi(ie,function(){Bn(ie.doc,mo(me,pe),Je),(me.bad||pe.bad)&&(ie.curOp.selectionChanged=!0)})}}},$r.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var y=this.cm,ie=y.display,me=y.doc.sel.primary(),pe=me.from(),Ee=me.to();if(pe.ch==0&&pe.line>y.firstLine()&&(pe=Ht(pe.line-1,Et(y.doc,pe.line-1).length)),Ee.ch==Et(y.doc,Ee.line).text.length&&Ee.line<y.lastLine()&&(Ee=Ht(Ee.line+1,0)),pe.line<ie.viewFrom||Ee.line>ie.viewTo-1)return!1;var Re,Ke,nt;pe.line==ie.viewFrom||(Re=ro(y,pe.line))==0?(Ke=Yt(ie.view[0].line),nt=ie.view[0].node):(Ke=Yt(ie.view[Re].line),nt=ie.view[Re-1].node.nextSibling);var ut=ro(y,Ee.line),ht,St;if(ut==ie.view.length-1?(ht=ie.viewTo-1,St=ie.lineDiv.lastChild):(ht=Yt(ie.view[ut+1].line)-1,St=ie.view[ut+1].node.previousSibling),!nt)return!1;for(var At=y.doc.splitLines(rc(y,nt,St,Ke,ht)),Bt=Ft(y.doc,Ht(Ke,0),Ht(ht,Et(y.doc,ht).text.length));At.length>1&&Bt.length>1;)if(ft(At)==ft(Bt))At.pop(),Bt.pop(),ht--;else if(At[0]==Bt[0])At.shift(),Bt.shift(),Ke++;else break;for(var Pt=0,Zt=0,Kt=At[0],$t=Bt[0],ar=Math.min(Kt.length,$t.length);Pt<ar&&Kt.charCodeAt(Pt)==$t.charCodeAt(Pt);)++Pt;for(var pr=ft(At),lr=ft(Bt),vr=Math.min(pr.length-(At.length==1?Pt:0),lr.length-(Bt.length==1?Pt:0));Zt<vr&&pr.charCodeAt(pr.length-Zt-1)==lr.charCodeAt(lr.length-Zt-1);)++Zt;if(At.length==1&&Bt.length==1&&Ke==pe.line)for(;Pt&&Pt>pe.ch&&pr.charCodeAt(pr.length-Zt-1)==lr.charCodeAt(lr.length-Zt-1);)Pt--,Zt++;At[At.length-1]=pr.slice(0,pr.length-Zt).replace(/^\u200b+/,""),At[0]=At[0].slice(Pt).replace(/\u200b+$/,"");var Er=Ht(Ke,Pt),xr=Ht(ht,Bt.length?ft(Bt).length-Zt:0);if(At.length>1||At[0]||nr(Er,xr))return Qo(y.doc,At,Er,xr,"+input"),!0},$r.prototype.ensurePolled=function(){this.forceCompositionEnd()},$r.prototype.reset=function(){this.forceCompositionEnd()},$r.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$r.prototype.readFromDOMSoon=function(){var y=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(y.readDOMTimeout=null,y.composing)if(y.composing.done)y.composing=null;else return;y.updateFromDOM()},80))},$r.prototype.updateFromDOM=function(){var y=this;(this.cm.isReadOnly()||!this.pollContent())&&oi(this.cm,function(){return xn(y.cm)})},$r.prototype.setUneditable=function(y){y.contentEditable="false"},$r.prototype.onKeyPress=function(y){y.charCode==0||this.composing||(y.preventDefault(),this.cm.isReadOnly()||Tn(this.cm,La)(this.cm,String.fromCharCode(y.charCode==null?y.keyCode:y.charCode),0))},$r.prototype.readOnlyChanged=function(y){this.div.contentEditable=String(y!="nocursor")},$r.prototype.onContextMenu=function(){},$r.prototype.resetPosition=function(){},$r.prototype.needsContentAttribute=!0;function Xl(y,ie){var me=Co(y,ie.line);if(!me||me.hidden)return null;var pe=Et(y.doc,ie.line),Ee=da(me,pe,ie.line),Re=ct(pe,y.doc.direction),Ke="left";if(Re){var nt=De(Re,ie.ch);Ke=nt%2?"right":"left"}var ut=Fo(Ee.map,ie.ch,Ke);return ut.offset=ut.collapse=="right"?ut.end:ut.start,ut}function tc(y){for(var ie=y;ie;ie=ie.parentNode)if(/CodeMirror-gutter-wrapper/.test(ie.className))return!0;return!1}function ts(y,ie){return ie&&(y.bad=!0),y}function rc(y,ie,me,pe,Ee){var Re="",Ke=!1,nt=y.doc.lineSeparator(),ut=!1;function ht(Pt){return function(Zt){return Zt.id==Pt}}function St(){Ke&&(Re+=nt,ut&&(Re+=nt),Ke=ut=!1)}function At(Pt){Pt&&(St(),Re+=Pt)}function Bt(Pt){if(Pt.nodeType==1){var Zt=Pt.getAttribute("cm-text");if(Zt){At(Zt);return}var Kt=Pt.getAttribute("cm-marker"),$t;if(Kt){var ar=y.findMarks(Ht(pe,0),Ht(Ee+1,0),ht(+Kt));ar.length&&($t=ar[0].find(0))&&At(Ft(y.doc,$t.from,$t.to).join(nt));return}if(Pt.getAttribute("contenteditable")=="false")return;var pr=/^(pre|div|p|li|table|br)$/i.test(Pt.nodeName);if(!/^br$/i.test(Pt.nodeName)&&Pt.textContent.length==0)return;pr&&St();for(var lr=0;lr<Pt.childNodes.length;lr++)Bt(Pt.childNodes[lr]);/^(pre|p)$/i.test(Pt.nodeName)&&(ut=!0),pr&&(Ke=!0)}else Pt.nodeType==3&&At(Pt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Bt(ie),ie!=me;)ie=ie.nextSibling,ut=!1;return Re}function la(y,ie,me){var pe;if(ie==y.display.lineDiv){if(pe=y.display.lineDiv.childNodes[me],!pe)return ts(y.clipPos(Ht(y.display.viewTo-1)),!0);ie=null,me=0}else for(pe=ie;;pe=pe.parentNode){if(!pe||pe==y.display.lineDiv)return null;if(pe.parentNode&&pe.parentNode==y.display.lineDiv)break}for(var Ee=0;Ee<y.display.view.length;Ee++){var Re=y.display.view[Ee];if(Re.node==pe)return nc(Re,ie,me)}}function nc(y,ie,me){var pe=y.text.firstChild,Ee=!1;if(!ie||!Le(pe,ie))return ts(Ht(Yt(y.line),0),!0);if(ie==pe&&(Ee=!0,ie=pe.childNodes[me],me=0,!ie)){var Re=y.rest?ft(y.rest):y.line;return ts(Ht(Yt(Re),Re.text.length),Ee)}var Ke=ie.nodeType==3?ie:null,nt=ie;for(!Ke&&ie.childNodes.length==1&&ie.firstChild.nodeType==3&&(Ke=ie.firstChild,me&&(me=Ke.nodeValue.length));nt.parentNode!=pe;)nt=nt.parentNode;var ut=y.measure,ht=ut.maps;function St($t,ar,pr){for(var lr=-1;lr<(ht?ht.length:0);lr++)for(var vr=lr<0?ut.map:ht[lr],Er=0;Er<vr.length;Er+=3){var xr=vr[Er+2];if(xr==$t||xr==ar){var Ir=Yt(lr<0?y.line:y.rest[lr]),rn=vr[Er]+pr;return(pr<0||xr!=$t)&&(rn=vr[Er+(pr?1:0)]),Ht(Ir,rn)}}}var At=St(Ke,nt,me);if(At)return ts(At,Ee);for(var Bt=nt.nextSibling,Pt=Ke?Ke.nodeValue.length-me:0;Bt;Bt=Bt.nextSibling){if(At=St(Bt,Bt.firstChild,0),At)return ts(Ht(At.line,At.ch-Pt),Ee);Pt+=Bt.textContent.length}for(var Zt=nt.previousSibling,Kt=me;Zt;Zt=Zt.previousSibling){if(At=St(Zt,Zt.firstChild,-1),At)return ts(Ht(At.line,At.ch+Kt),Ee);Kt+=Zt.textContent.length}}var gn=function(y){this.cm=y,this.prevInput="",this.pollingFast=!1,this.polling=new We,this.hasSelection=!1,this.composing=null};gn.prototype.init=function(y){var ie=this,me=this,pe=this.cm;this.createField(y);var Ee=this.textarea;y.wrapper.insertBefore(this.wrapper,y.wrapper.firstChild),E&&(Ee.style.width="0px"),vt(Ee,"input",function(){de&&te>=9&&ie.hasSelection&&(ie.hasSelection=null),me.poll()}),vt(Ee,"paste",function(Ke){xt(pe,Ke)||zl(Ke,pe)||(pe.state.pasteIncoming=+new Date,me.fastPoll())});function Re(Ke){if(!xt(pe,Ke)){if(pe.somethingSelected())aa({lineWise:!1,text:pe.getSelections()});else if(pe.options.lineWiseCopyCut){var nt=Wl(pe);aa({lineWise:!0,text:nt.text}),Ke.type=="cut"?pe.setSelections(nt.ranges,null,Je):(me.prevInput="",Ee.value=nt.text.join(`
`),ze(Ee))}else return;Ke.type=="cut"&&(pe.state.cutIncoming=+new Date)}}vt(Ee,"cut",Re),vt(Ee,"copy",Re),vt(y.scroller,"paste",function(Ke){if(!(yi(y,Ke)||xt(pe,Ke))){if(!Ee.dispatchEvent){pe.state.pasteIncoming=+new Date,me.focus();return}var nt=new Event("paste");nt.clipboardData=Ke.clipboardData,Ee.dispatchEvent(nt)}}),vt(y.lineSpace,"selectstart",function(Ke){yi(y,Ke)||Qt(Ke)}),vt(Ee,"compositionstart",function(){var Ke=pe.getCursor("from");me.composing&&me.composing.range.clear(),me.composing={start:Ke,range:pe.markText(Ke,pe.getCursor("to"),{className:"CodeMirror-composing"})}}),vt(Ee,"compositionend",function(){me.composing&&(me.poll(),me.composing.range.clear(),me.composing=null)})},gn.prototype.createField=function(y){this.wrapper=Vl(),this.textarea=this.wrapper.firstChild},gn.prototype.screenReaderLabelChanged=function(y){y?this.textarea.setAttribute("aria-label",y):this.textarea.removeAttribute("aria-label")},gn.prototype.prepareSelection=function(){var y=this.cm,ie=y.display,me=y.doc,pe=Vo(y);if(y.options.moveInputWithCursor){var Ee=fi(y,me.sel.primary().head,"div"),Re=ie.wrapper.getBoundingClientRect(),Ke=ie.lineDiv.getBoundingClientRect();pe.teTop=Math.max(0,Math.min(ie.wrapper.clientHeight-10,Ee.top+Ke.top-Re.top)),pe.teLeft=Math.max(0,Math.min(ie.wrapper.clientWidth-10,Ee.left+Ke.left-Re.left))}return pe},gn.prototype.showSelection=function(y){var ie=this.cm,me=ie.display;_e(me.cursorDiv,y.cursors),_e(me.selectionDiv,y.selection),y.teTop!=null&&(this.wrapper.style.top=y.teTop+"px",this.wrapper.style.left=y.teLeft+"px")},gn.prototype.reset=function(y){if(!(this.contextMenuPending||this.composing)){var ie=this.cm;if(ie.somethingSelected()){this.prevInput="";var me=ie.getSelection();this.textarea.value=me,ie.state.focused&&ze(this.textarea),de&&te>=9&&(this.hasSelection=me)}else y||(this.prevInput=this.textarea.value="",de&&te>=9&&(this.hasSelection=null))}},gn.prototype.getField=function(){return this.textarea},gn.prototype.supportsTouch=function(){return!1},gn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ae||ke()!=this.textarea))try{this.textarea.focus()}catch(y){}},gn.prototype.blur=function(){this.textarea.blur()},gn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},gn.prototype.receivedFocus=function(){this.slowPoll()},gn.prototype.slowPoll=function(){var y=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){y.poll(),y.cm.state.focused&&y.slowPoll()})},gn.prototype.fastPoll=function(){var y=!1,ie=this;ie.pollingFast=!0;function me(){var pe=ie.poll();!pe&&!y?(y=!0,ie.polling.set(60,me)):(ie.pollingFast=!1,ie.slowPoll())}ie.polling.set(20,me)},gn.prototype.poll=function(){var y=this,ie=this.cm,me=this.textarea,pe=this.prevInput;if(this.contextMenuPending||!ie.state.focused||ni(me)&&!pe&&!this.composing||ie.isReadOnly()||ie.options.disableInput||ie.state.keySeq)return!1;var Ee=me.value;if(Ee==pe&&!ie.somethingSelected())return!1;if(de&&te>=9&&this.hasSelection===Ee||le&&/[\uf700-\uf7ff]/.test(Ee))return ie.display.input.reset(),!1;if(ie.doc.sel==ie.display.selForContextMenu){var Re=Ee.charCodeAt(0);if(Re==8203&&!pe&&(pe="\u200B"),Re==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ke=0,nt=Math.min(pe.length,Ee.length);Ke<nt&&pe.charCodeAt(Ke)==Ee.charCodeAt(Ke);)++Ke;return oi(ie,function(){La(ie,Ee.slice(Ke),pe.length-Ke,null,y.composing?"*compose":null),Ee.length>1e3||Ee.indexOf(`
`)>-1?me.value=y.prevInput="":y.prevInput=Ee,y.composing&&(y.composing.range.clear(),y.composing.range=ie.markText(y.composing.start,ie.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},gn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},gn.prototype.onKeyPress=function(){de&&te>=9&&(this.hasSelection=null),this.fastPoll()},gn.prototype.onContextMenu=function(y){var ie=this,me=ie.cm,pe=me.display,Ee=ie.textarea;ie.contextMenuPending&&ie.contextMenuPending();var Re=Vi(me,y),Ke=pe.scroller.scrollTop;if(!Re||se)return;var nt=me.options.resetSelectionOnContextMenu;nt&&me.doc.sel.contains(Re)==-1&&Tn(me,Bn)(me.doc,mo(Re),Je);var ut=Ee.style.cssText,ht=ie.wrapper.style.cssText,St=ie.wrapper.offsetParent.getBoundingClientRect();ie.wrapper.style.cssText="position: static",Ee.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(y.clientY-St.top-5)+"px; left: "+(y.clientX-St.left-5)+`px;
z-index: 1000; background: `+(de?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var At;oe&&(At=window.scrollY),pe.input.focus(),oe&&window.scrollTo(null,At),pe.input.reset(),me.somethingSelected()||(Ee.value=ie.prevInput=" "),ie.contextMenuPending=Pt,pe.selForContextMenu=me.doc.sel,clearTimeout(pe.detectingSelectAll);function Bt(){if(Ee.selectionStart!=null){var Kt=me.somethingSelected(),$t="\u200B"+(Kt?Ee.value:"");Ee.value="\u21DA",Ee.value=$t,ie.prevInput=Kt?"":"\u200B",Ee.selectionStart=1,Ee.selectionEnd=$t.length,pe.selForContextMenu=me.doc.sel}}function Pt(){if(ie.contextMenuPending==Pt&&(ie.contextMenuPending=!1,ie.wrapper.style.cssText=ht,Ee.style.cssText=ut,de&&te<9&&pe.scrollbars.setScrollTop(pe.scroller.scrollTop=Ke),Ee.selectionStart!=null)){(!de||de&&te<9)&&Bt();var Kt=0,$t=function(){pe.selForContextMenu==me.doc.sel&&Ee.selectionStart==0&&Ee.selectionEnd>0&&ie.prevInput=="\u200B"?Tn(me,fl)(me):Kt++<10?pe.detectingSelectAll=setTimeout($t,500):(pe.selForContextMenu=null,pe.input.reset())};pe.detectingSelectAll=setTimeout($t,200)}}if(de&&te>=9&&Bt(),Se){ir(y);var Zt=function(){Ot(window,"mouseup",Zt),setTimeout(Pt,20)};vt(window,"mouseup",Zt)}else setTimeout(Pt,50)},gn.prototype.readOnlyChanged=function(y){y||this.reset(),this.textarea.disabled=y=="nocursor",this.textarea.readOnly=!!y},gn.prototype.setUneditable=function(){},gn.prototype.needsContentAttribute=!1;function ic(y,ie){if(ie=ie?tt(ie):{},ie.value=y.value,!ie.tabindex&&y.tabIndex&&(ie.tabindex=y.tabIndex),!ie.placeholder&&y.placeholder&&(ie.placeholder=y.placeholder),ie.autofocus==null){var me=ke();ie.autofocus=me==y||y.getAttribute("autofocus")!=null&&me==document.body}function pe(){y.value=nt.getValue()}var Ee;if(y.form&&(vt(y.form,"submit",pe),!ie.leaveSubmitMethodAlone)){var Re=y.form;Ee=Re.submit;try{var Ke=Re.submit=function(){pe(),Re.submit=Ee,Re.submit(),Re.submit=Ke}}catch(ut){}}ie.finishInit=function(ut){ut.save=pe,ut.getTextArea=function(){return y},ut.toTextArea=function(){ut.toTextArea=isNaN,pe(),y.parentNode.removeChild(ut.getWrapperElement()),y.style.display="",y.form&&(Ot(y.form,"submit",pe),!ie.leaveSubmitMethodAlone&&typeof y.form.submit=="function"&&(y.form.submit=Ee))}},y.style.display="none";var nt=dn(function(ut){return y.parentNode.insertBefore(ut,y.nextSibling)},ie);return nt}function oc(y){y.off=Ot,y.on=vt,y.wheelEventPixels=du,y.Doc=$n,y.splitLines=Fn,y.countColumn=Me,y.findColumn=st,y.isWordChar=gt,y.Pass=$e,y.signal=Tt,y.Line=Zr,y.changeEnd=vo,y.scrollbarModel=za,y.Pos=Ht,y.cmpPos=nr,y.modes=er,y.mimeModes=Wt,y.resolveMode=mr,y.getMode=Dt,y.modeExtensions=jt,y.extendMode=_t,y.copyState=Ct,y.startState=Gt,y.innerMode=It,y.commands=Os,y.keyMap=no,y.keyName=Tl,y.isModifierKey=El,y.lookupKey=qo,y.normalizeKeyMap=Pu,y.StringStream=kt,y.SharedTextMarker=ks,y.TextMarker=yo,y.LineWidget=Ts,y.e_preventDefault=Qt,y.e_stopPropagation=or,y.e_stop=ir,y.addClass=Pe,y.contains=Le,y.rmClass=xe,y.keyNames=bo}Qu(dn),ec(dn);var sc="iter insert remove copy getEditor constructor".split(" ");for(var ua in $n.prototype)$n.prototype.hasOwnProperty(ua)&&it(sc,ua)<0&&(dn.prototype[ua]=function(y){return function(){return y.apply(this.doc,arguments)}}($n.prototype[ua]));return Ut($n),dn.inputStyles={textarea:gn,contenteditable:$r},dn.defineMode=function(y){!dn.defaults.mode&&y!="null"&&(dn.defaults.mode=y),Vt.apply(this,arguments)},dn.defineMIME=tr,dn.defineMode("null",function(){return{token:function(y){return y.skipToEnd()}}}),dn.defineMIME("text/plain","null"),dn.defineExtension=function(y,ie){dn.prototype[y]=ie},dn.defineDocExtension=function(y,ie){$n.prototype[y]=ie},dn.fromTextArea=ic,oc(dn),dn.version="5.58.2",dn})},25419:function(bt,pt,Ce){(function(ve){ve(Ce(89780),Ce(15525),Ce(98101))})(function(ve){"use strict";ve.defineMode("markdown",function(Ue,a){var he=ve.getMode(Ue,"text/html"),de=he.name=="null";function te(Me){if(ve.findModeByName){var We=ve.findModeByName(Me);We&&(Me=We.mime||We.mimes[0])}var it=ve.getMode(Ue,Me);return it.name=="null"?null:it}a.highlightFormatting===void 0&&(a.highlightFormatting=!1),a.maxBlockquoteDepth===void 0&&(a.maxBlockquoteDepth=0),a.taskLists===void 0&&(a.taskLists=!1),a.strikethrough===void 0&&(a.strikethrough=!1),a.emoji===void 0&&(a.emoji=!1),a.fencedCodeBlockHighlighting===void 0&&(a.fencedCodeBlockHighlighting=!0),a.fencedCodeBlockDefaultMode===void 0&&(a.fencedCodeBlockDefaultMode="text/plain"),a.xml===void 0&&(a.xml=!0),a.tokenTypeOverrides===void 0&&(a.tokenTypeOverrides={});var oe={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 ne in oe)oe.hasOwnProperty(ne)&&a.tokenTypeOverrides[ne]&&(oe[ne]=a.tokenTypeOverrides[ne]);var ee=/^([*\-_])(?:\s*\1){2,}\s*$/,se=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,z=/^\[(x| )\](?=\s)/i,x=a.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,b=/^ {0,3}(?:\={1,}|-{2,})\s*$/,E=/^[^#!\[\]*_\\<>` "'(~:]+/,re=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ae=/^\s*\[[^\]]+?\]:.*$/,le=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,fe=" ";function ce(Me,We,it){return We.f=We.inline=it,it(Me,We)}function ue(Me,We,it){return We.f=We.block=it,it(Me,We)}function ye(Me){return!Me||!/\S/.test(Me.string)}function Se(Me){if(Me.linkTitle=!1,Me.linkHref=!1,Me.linkText=!1,Me.em=!1,Me.strong=!1,Me.strikethrough=!1,Me.quote=0,Me.indentedCode=!1,Me.f==xe){var We=de;if(!We){var it=ve.innerMode(he,Me.htmlState);We=it.mode.name=="xml"&&it.state.tagStart===null&&!it.state.context&&it.state.tokenize.isInText}We&&(Me.f=Ae,Me.block=we,Me.htmlState=null)}return Me.trailingSpace=0,Me.trailingSpaceNewLine=!1,Me.prevLine=Me.thisLine,Me.thisLine={stream:null},null}function we(Me,We){var it=Me.column()===We.indentation,at=ye(We.prevLine.stream),$e=We.indentedCode,Je=We.prevLine.hr,Ye=We.list!==!1,Qe=(We.listStack[We.listStack.length-1]||0)+3;We.indentedCode=!1;var st=We.indentation;if(We.indentationDiff===null&&(We.indentationDiff=We.indentation,Ye)){for(We.list=null;st<We.listStack[We.listStack.length-1];)We.listStack.pop(),We.listStack.length?We.indentation=We.listStack[We.listStack.length-1]:We.list=!1;We.list!==!1&&(We.indentationDiff=st-We.listStack[We.listStack.length-1])}var ot=!at&&!Je&&!We.prevLine.header&&(!Ye||!$e)&&!We.prevLine.fencedCodeEnd,mt=(We.list===!1||Je||at)&&We.indentation<=Qe&&Me.match(ee),ft=null;if(We.indentationDiff>=4&&($e||We.prevLine.fencedCodeEnd||We.prevLine.header||at))return Me.skipToEnd(),We.indentedCode=!0,oe.code;if(Me.eatSpace())return null;if(it&&We.indentation<=Qe&&(ft=Me.match(x))&&ft[1].length<=6)return We.quote=0,We.header=ft[1].length,We.thisLine.header=!0,a.highlightFormatting&&(We.formatting="header"),We.f=We.inline,_e(We);if(We.indentation<=Qe&&Me.eat(">"))return We.quote=it?1:We.quote+1,a.highlightFormatting&&(We.formatting="quote"),Me.eatSpace(),_e(We);if(!mt&&!We.setext&&it&&We.indentation<=Qe&&(ft=Me.match(se))){var qe=ft[1]?"ol":"ul";return We.indentation=st+Me.current().length,We.list=!0,We.quote=0,We.listStack.push(We.indentation),We.em=!1,We.strong=!1,We.code=!1,We.strikethrough=!1,a.taskLists&&Me.match(z,!1)&&(We.taskList=!0),We.f=We.inline,a.highlightFormatting&&(We.formatting=["list","list-"+qe]),_e(We)}else{if(it&&We.indentation<=Qe&&(ft=Me.match(re,!0)))return We.quote=0,We.fencedEndRE=new RegExp(ft[1]+"+ *$"),We.localMode=a.fencedCodeBlockHighlighting&&te(ft[2]||a.fencedCodeBlockDefaultMode),We.localMode&&(We.localState=ve.startState(We.localMode)),We.f=We.block=ge,a.highlightFormatting&&(We.formatting="code-block"),We.code=-1,_e(We);if(We.setext||(!ot||!Ye)&&!We.quote&&We.list===!1&&!We.code&&!mt&&!ae.test(Me.string)&&(ft=Me.lookAhead(1))&&(ft=ft.match(b)))return We.setext?(We.header=We.setext,We.setext=0,Me.skipToEnd(),a.highlightFormatting&&(We.formatting="header")):(We.header=ft[0].charAt(0)=="="?1:2,We.setext=We.header),We.thisLine.header=!0,We.f=We.inline,_e(We);if(mt)return Me.skipToEnd(),We.hr=!0,We.thisLine.hr=!0,oe.hr;if(Me.peek()==="[")return ce(Me,We,Oe)}return ce(Me,We,We.inline)}function xe(Me,We){var it=he.token(Me,We.htmlState);if(!de){var at=ve.innerMode(he,We.htmlState);(at.mode.name=="xml"&&at.state.tagStart===null&&!at.state.context&&at.state.tokenize.isInText||We.md_inside&&Me.current().indexOf(">")>-1)&&(We.f=Ae,We.block=we,We.htmlState=null)}return it}function ge(Me,We){var it=We.listStack[We.listStack.length-1]||0,at=We.indentation<it,$e=it+3;if(We.fencedEndRE&&We.indentation<=$e&&(at||Me.match(We.fencedEndRE))){a.highlightFormatting&&(We.formatting="code-block");var Je;return at||(Je=_e(We)),We.localMode=We.localState=null,We.block=we,We.f=Ae,We.fencedEndRE=null,We.code=0,We.thisLine.fencedCodeEnd=!0,at?ue(Me,We,We.block):Je}else return We.localMode?We.localMode.token(Me,We.localState):(Me.skipToEnd(),oe.code)}function _e(Me){var We=[];if(Me.formatting){We.push(oe.formatting),typeof Me.formatting=="string"&&(Me.formatting=[Me.formatting]);for(var it=0;it<Me.formatting.length;it++)We.push(oe.formatting+"-"+Me.formatting[it]),Me.formatting[it]==="header"&&We.push(oe.formatting+"-"+Me.formatting[it]+"-"+Me.header),Me.formatting[it]==="quote"&&(!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=Me.quote?We.push(oe.formatting+"-"+Me.formatting[it]+"-"+Me.quote):We.push("error"))}if(Me.taskOpen)return We.push("meta"),We.length?We.join(" "):null;if(Me.taskClosed)return We.push("property"),We.length?We.join(" "):null;if(Me.linkHref?We.push(oe.linkHref,"url"):(Me.strong&&We.push(oe.strong),Me.em&&We.push(oe.em),Me.strikethrough&&We.push(oe.strikethrough),Me.emoji&&We.push(oe.emoji),Me.linkText&&We.push(oe.linkText),Me.code&&We.push(oe.code),Me.image&&We.push(oe.image),Me.imageAltText&&We.push(oe.imageAltText,"link"),Me.imageMarker&&We.push(oe.imageMarker)),Me.header&&We.push(oe.header,oe.header+"-"+Me.header),Me.quote&&(We.push(oe.quote),!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=Me.quote?We.push(oe.quote+"-"+Me.quote):We.push(oe.quote+"-"+a.maxBlockquoteDepth)),Me.list!==!1){var at=(Me.listStack.length-1)%3;at?at===1?We.push(oe.list2):We.push(oe.list3):We.push(oe.list1)}return Me.trailingSpaceNewLine?We.push("trailing-space-new-line"):Me.trailingSpace&&We.push("trailing-space-"+(Me.trailingSpace%2?"a":"b")),We.length?We.join(" "):null}function be(Me,We){if(Me.match(E,!0))return _e(We)}function Ae(Me,We){var it=We.text(Me,We);if(typeof it!="undefined")return it;if(We.list)return We.list=null,_e(We);if(We.taskList){var at=Me.match(z,!0)[1]===" ";return at?We.taskOpen=!0:We.taskClosed=!0,a.highlightFormatting&&(We.formatting="task"),We.taskList=!1,_e(We)}if(We.taskOpen=!1,We.taskClosed=!1,We.header&&Me.match(/^#+$/,!0))return a.highlightFormatting&&(We.formatting="header"),_e(We);var $e=Me.next();if(We.linkTitle){We.linkTitle=!1;var Je=$e;$e==="("&&(Je=")"),Je=(Je+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ye="^\\s*(?:[^"+Je+"\\\\]+|\\\\\\\\|\\\\.)"+Je;if(Me.match(new RegExp(Ye),!0))return oe.linkHref}if($e==="`"){var Qe=We.formatting;a.highlightFormatting&&(We.formatting="code"),Me.eatWhile("`");var st=Me.current().length;if(We.code==0&&(!We.quote||st==1))return We.code=st,_e(We);if(st==We.code){var ot=_e(We);return We.code=0,ot}else return We.formatting=Qe,_e(We)}else if(We.code)return _e(We);if($e==="\\"&&(Me.next(),a.highlightFormatting)){var mt=_e(We),ft=oe.formatting+"-escape";return mt?mt+" "+ft:ft}if($e==="!"&&Me.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return We.imageMarker=!0,We.image=!0,a.highlightFormatting&&(We.formatting="image"),_e(We);if($e==="["&&We.imageMarker&&Me.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return We.imageMarker=!1,We.imageAltText=!0,a.highlightFormatting&&(We.formatting="image"),_e(We);if($e==="]"&&We.imageAltText){a.highlightFormatting&&(We.formatting="image");var mt=_e(We);return We.imageAltText=!1,We.image=!1,We.inline=We.f=Le,mt}if($e==="["&&!We.image)return We.linkText&&Me.match(/^.*?\]/)||(We.linkText=!0,a.highlightFormatting&&(We.formatting="link")),_e(We);if($e==="]"&&We.linkText){a.highlightFormatting&&(We.formatting="link");var mt=_e(We);return We.linkText=!1,We.inline=We.f=Me.match(/\(.*?\)| ?\[.*?\]/,!1)?Le:Ae,mt}if($e==="<"&&Me.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){We.f=We.inline=Te,a.highlightFormatting&&(We.formatting="link");var mt=_e(We);return mt?mt+=" ":mt="",mt+oe.linkInline}if($e==="<"&&Me.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){We.f=We.inline=Te,a.highlightFormatting&&(We.formatting="link");var mt=_e(We);return mt?mt+=" ":mt="",mt+oe.linkEmail}if(a.xml&&$e==="<"&&Me.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var qe=Me.string.indexOf(">",Me.pos);if(qe!=-1){var Be=Me.string.substring(Me.start,qe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Be)&&(We.md_inside=!0)}return Me.backUp(1),We.htmlState=ve.startState(he),ue(Me,We,xe)}if(a.xml&&$e==="<"&&Me.match(/^\/\w*?>/))return We.md_inside=!1,"tag";if($e==="*"||$e==="_"){for(var lt=1,Ne=Me.pos==1?" ":Me.string.charAt(Me.pos-2);lt<3&&Me.eat($e);)lt++;var rt=Me.peek()||" ",gt=!/\s/.test(rt)&&(!le.test(rt)||/\s/.test(Ne)||le.test(Ne)),yt=!/\s/.test(Ne)&&(!le.test(Ne)||/\s/.test(rt)||le.test(rt)),dt=null,Ve=null;if(lt%2&&(!We.em&&gt&&($e==="*"||!yt||le.test(Ne))?dt=!0:We.em==$e&&yt&&($e==="*"||!gt||le.test(rt))&&(dt=!1)),lt>1&&(!We.strong&&gt&&($e==="*"||!yt||le.test(Ne))?Ve=!0:We.strong==$e&&yt&&($e==="*"||!gt||le.test(rt))&&(Ve=!1)),Ve!=null||dt!=null){a.highlightFormatting&&(We.formatting=dt==null?"strong":Ve==null?"em":"strong em"),dt===!0&&(We.em=$e),Ve===!0&&(We.strong=$e);var ot=_e(We);return dt===!1&&(We.em=!1),Ve===!1&&(We.strong=!1),ot}}else if($e===" "&&(Me.eat("*")||Me.eat("_"))){if(Me.peek()===" ")return _e(We);Me.backUp(1)}if(a.strikethrough){if($e==="~"&&Me.eatWhile($e)){if(We.strikethrough){a.highlightFormatting&&(We.formatting="strikethrough");var ot=_e(We);return We.strikethrough=!1,ot}else if(Me.match(/^[^\s]/,!1))return We.strikethrough=!0,a.highlightFormatting&&(We.formatting="strikethrough"),_e(We)}else if($e===" "&&Me.match(/^~~/,!0)){if(Me.peek()===" ")return _e(We);Me.backUp(2)}}if(a.emoji&&$e===":"&&Me.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){We.emoji=!0,a.highlightFormatting&&(We.formatting="emoji");var He=_e(We);return We.emoji=!1,He}return $e===" "&&(Me.match(/^ +$/,!1)?We.trailingSpace++:We.trailingSpace&&(We.trailingSpaceNewLine=!0)),_e(We)}function Te(Me,We){var it=Me.next();if(it===">"){We.f=We.inline=Ae,a.highlightFormatting&&(We.formatting="link");var at=_e(We);return at?at+=" ":at="",at+oe.linkInline}return Me.match(/^[^>]+/,!0),oe.linkInline}function Le(Me,We){if(Me.eatSpace())return null;var it=Me.next();return it==="("||it==="["?(We.f=We.inline=Pe(it==="("?")":"]"),a.highlightFormatting&&(We.formatting="link-string"),We.linkHref=!0,_e(We)):"error"}var ke={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Pe(Me){return function(We,it){var at=We.next();if(at===Me){it.f=it.inline=Ae,a.highlightFormatting&&(it.formatting="link-string");var $e=_e(it);return it.linkHref=!1,$e}return We.match(ke[Me]),it.linkHref=!0,_e(it)}}function Oe(Me,We){return Me.match(/^([^\]\\]|\\.)*\]:/,!1)?(We.f=ze,Me.next(),a.highlightFormatting&&(We.formatting="link"),We.linkText=!0,_e(We)):ce(Me,We,Ae)}function ze(Me,We){if(Me.match(/^\]:/,!0)){We.f=We.inline=Ge,a.highlightFormatting&&(We.formatting="link");var it=_e(We);return We.linkText=!1,it}return Me.match(/^([^\]\\]|\\.)+/,!0),oe.linkText}function Ge(Me,We){return Me.eatSpace()?null:(Me.match(/^[^\s]+/,!0),Me.peek()===void 0?We.linkTitle=!0:Me.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),We.f=We.inline=Ae,oe.linkHref+" url")}var tt={startState:function(){return{f:we,prevLine:{stream:null},thisLine:{stream:null},block:we,htmlState:null,indentation:0,inline:Ae,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(Me){return{f:Me.f,prevLine:Me.prevLine,thisLine:Me.thisLine,block:Me.block,htmlState:Me.htmlState&&ve.copyState(he,Me.htmlState),indentation:Me.indentation,localMode:Me.localMode,localState:Me.localMode?ve.copyState(Me.localMode,Me.localState):null,inline:Me.inline,text:Me.text,formatting:!1,linkText:Me.linkText,linkTitle:Me.linkTitle,linkHref:Me.linkHref,code:Me.code,em:Me.em,strong:Me.strong,strikethrough:Me.strikethrough,emoji:Me.emoji,header:Me.header,setext:Me.setext,hr:Me.hr,taskList:Me.taskList,list:Me.list,listStack:Me.listStack.slice(0),quote:Me.quote,indentedCode:Me.indentedCode,trailingSpace:Me.trailingSpace,trailingSpaceNewLine:Me.trailingSpaceNewLine,md_inside:Me.md_inside,fencedEndRE:Me.fencedEndRE}},token:function(Me,We){if(We.formatting=!1,Me!=We.thisLine.stream){if(We.header=0,We.hr=!1,Me.match(/^\s*$/,!0))return Se(We),null;if(We.prevLine=We.thisLine,We.thisLine={stream:Me},We.taskList=!1,We.trailingSpace=0,We.trailingSpaceNewLine=!1,!We.localState&&(We.f=We.block,We.f!=xe)){var it=Me.match(/^\s*/,!0)[0].replace(/\t/g,fe).length;if(We.indentation=it,We.indentationDiff=null,it>0)return null}}return We.f(Me,We)},innerMode:function(Me){return Me.block==xe?{state:Me.htmlState,mode:he}:Me.localState?{state:Me.localState,mode:Me.localMode}:{state:Me,mode:tt}},indent:function(Me,We,it){return Me.block==xe&&he.indent?he.indent(Me.htmlState,We,it):Me.localState&&Me.localMode.indent?Me.localMode.indent(Me.localState,We,it):ve.Pass},blankLine:Se,getType:_e,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return tt},"xml"),ve.defineMIME("text/markdown","markdown"),ve.defineMIME("text/x-markdown","markdown")})},98101:function(bt,pt,Ce){(function(ve){ve(Ce(89780))})(function(ve){"use strict";ve.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 Ue=0;Ue<ve.modeInfo.length;Ue++){var a=ve.modeInfo[Ue];a.mimes&&(a.mime=a.mimes[0])}ve.findModeByMIME=function(he){he=he.toLowerCase();for(var de=0;de<ve.modeInfo.length;de++){var te=ve.modeInfo[de];if(te.mime==he)return te;if(te.mimes){for(var oe=0;oe<te.mimes.length;oe++)if(te.mimes[oe]==he)return te}}if(/\+xml$/.test(he))return ve.findModeByMIME("application/xml");if(/\+json$/.test(he))return ve.findModeByMIME("application/json")},ve.findModeByExtension=function(he){he=he.toLowerCase();for(var de=0;de<ve.modeInfo.length;de++){var te=ve.modeInfo[de];if(te.ext){for(var oe=0;oe<te.ext.length;oe++)if(te.ext[oe]==he)return te}}},ve.findModeByFileName=function(he){for(var de=0;de<ve.modeInfo.length;de++){var te=ve.modeInfo[de];if(te.file&&te.file.test(he))return te}var oe=he.lastIndexOf("."),ne=oe>-1&&he.substring(oe+1,he.length);if(ne)return ve.findModeByExtension(ne)},ve.findModeByName=function(he){he=he.toLowerCase();for(var de=0;de<ve.modeInfo.length;de++){var te=ve.modeInfo[de];if(te.name.toLowerCase()==he)return te;if(te.alias){for(var oe=0;oe<te.alias.length;oe++)if(te.alias[oe].toLowerCase()==he)return te}}}})},67549:function(bt,pt,Ce){(function(ve){ve(Ce(89780))})(function(ve){"use strict";ve.defineMode("stex",function(Ue,a){"use strict";function he(E,re){E.cmdState.push(re)}function de(E){return E.cmdState.length>0?E.cmdState[E.cmdState.length-1]:null}function te(E){var re=E.cmdState.pop();re&&re.closeBracket()}function oe(E){for(var re=E.cmdState,ae=re.length-1;ae>=0;ae--){var le=re[ae];if(le.name!="DEFAULT")return le}return{styleIdentifier:function(){return null}}}function ne(E,re,ae){return function(){this.name=E,this.bracketNo=0,this.style=re,this.styles=ae,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ee={};ee.importmodule=ne("importmodule","tag",["string","builtin"]),ee.documentclass=ne("documentclass","tag",["","atom"]),ee.usepackage=ne("usepackage","tag",["atom"]),ee.begin=ne("begin","tag",["atom"]),ee.end=ne("end","tag",["atom"]),ee.label=ne("label","tag",["atom"]),ee.ref=ne("ref","tag",["atom"]),ee.eqref=ne("eqref","tag",["atom"]),ee.cite=ne("cite","tag",["atom"]),ee.bibitem=ne("bibitem","tag",["atom"]),ee.Bibitem=ne("Bibitem","tag",["atom"]),ee.RBibitem=ne("RBibitem","tag",["atom"]),ee.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function se(E,re){E.f=re}function z(E,re){var ae;if(E.match(/^\\[a-zA-Z@]+/)){var le=E.current().slice(1);return ae=ee.hasOwnProperty(le)?ee[le]:ee.DEFAULT,ae=new ae,he(re,ae),se(re,b),ae.style}if(E.match(/^\\[$&%#{}_]/)||E.match(/^\\[,;!\/\\]/))return"tag";if(E.match("\\["))return se(re,function(ce,ue){return x(ce,ue,"\\]")}),"keyword";if(E.match("\\("))return se(re,function(ce,ue){return x(ce,ue,"\\)")}),"keyword";if(E.match("$$"))return se(re,function(ce,ue){return x(ce,ue,"$$")}),"keyword";if(E.match("$"))return se(re,function(ce,ue){return x(ce,ue,"$")}),"keyword";var fe=E.next();if(fe=="%")return E.skipToEnd(),"comment";if(fe=="}"||fe=="]"){if(ae=de(re),ae)ae.closeBracket(fe),se(re,b);else return"error";return"bracket"}else return fe=="{"||fe=="["?(ae=ee.DEFAULT,ae=new ae,he(re,ae),"bracket"):/\d/.test(fe)?(E.eatWhile(/[\w.%]/),"atom"):(E.eatWhile(/[\w\-_]/),ae=oe(re),ae.name=="begin"&&(ae.argument=E.current()),ae.styleIdentifier())}function x(E,re,ae){if(E.eatSpace())return null;if(ae&&E.match(ae))return se(re,z),"keyword";if(E.match(/^\\[a-zA-Z@]+/))return"tag";if(E.match(/^[a-zA-Z]+/))return"variable-2";if(E.match(/^\\[$&%#{}_]/)||E.match(/^\\[,;!\/]/)||E.match(/^[\^_&]/))return"tag";if(E.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(E.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var le=E.next();return le=="{"||le=="}"||le=="["||le=="]"||le=="("||le==")"?"bracket":le=="%"?(E.skipToEnd(),"comment"):"error"}function b(E,re){var ae=E.peek(),le;return ae=="{"||ae=="["?(le=de(re),le.openBracket(ae),E.eat(ae),se(re,z),"bracket"):/[ \t\r]/.test(ae)?(E.eat(ae),null):(se(re,z),te(re),z(E,re))}return{startState:function(){var E=a.inMathMode?function(re,ae){return x(re,ae)}:z;return{cmdState:[],f:E}},copyState:function(E){return{cmdState:E.cmdState.slice(),f:E.f}},token:function(E,re){return re.f(E,re)},blankLine:function(E){E.f=z,E.cmdState.length=0},lineComment:"%"}}),ve.defineMIME("text/x-stex","stex"),ve.defineMIME("text/x-latex","stex")})},15525:function(bt,pt,Ce){(function(ve){ve(Ce(89780))})(function(ve){"use strict";var Ue={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},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ve.defineMode("xml",function(he,de){var te=he.indentUnit,oe={},ne=de.htmlMode?Ue:a;for(var ee in ne)oe[ee]=ne[ee];for(var ee in de)oe[ee]=de[ee];var se,z;function x(Te,Le){function ke(ze){return Le.tokenize=ze,ze(Te,Le)}var Pe=Te.next();if(Pe=="<")return Te.eat("!")?Te.eat("[")?Te.match("CDATA[")?ke(re("atom","]]>")):null:Te.match("--")?ke(re("comment","-->")):Te.match("DOCTYPE",!0,!0)?(Te.eatWhile(/[\w\._\-]/),ke(ae(1))):null:Te.eat("?")?(Te.eatWhile(/[\w\._\-]/),Le.tokenize=re("meta","?>"),"meta"):(se=Te.eat("/")?"closeTag":"openTag",Le.tokenize=b,"tag bracket");if(Pe=="&"){var Oe;return Te.eat("#")?Te.eat("x")?Oe=Te.eatWhile(/[a-fA-F\d]/)&&Te.eat(";"):Oe=Te.eatWhile(/[\d]/)&&Te.eat(";"):Oe=Te.eatWhile(/[\w\.\-:]/)&&Te.eat(";"),Oe?"atom":"error"}else return Te.eatWhile(/[^&<]/),null}x.isInText=!0;function b(Te,Le){var ke=Te.next();if(ke==">"||ke=="/"&&Te.eat(">"))return Le.tokenize=x,se=ke==">"?"endTag":"selfcloseTag","tag bracket";if(ke=="=")return se="equals",null;if(ke=="<"){Le.tokenize=x,Le.state=ue,Le.tagName=Le.tagStart=null;var Pe=Le.tokenize(Te,Le);return Pe?Pe+" tag error":"tag error"}else return/[\'\"]/.test(ke)?(Le.tokenize=E(ke),Le.stringStartCol=Te.column(),Le.tokenize(Te,Le)):(Te.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function E(Te){var Le=function(ke,Pe){for(;!ke.eol();)if(ke.next()==Te){Pe.tokenize=b;break}return"string"};return Le.isInAttribute=!0,Le}function re(Te,Le){return function(ke,Pe){for(;!ke.eol();){if(ke.match(Le)){Pe.tokenize=x;break}ke.next()}return Te}}function ae(Te){return function(Le,ke){for(var Pe;(Pe=Le.next())!=null;){if(Pe=="<")return ke.tokenize=ae(Te+1),ke.tokenize(Le,ke);if(Pe==">")if(Te==1){ke.tokenize=x;break}else return ke.tokenize=ae(Te-1),ke.tokenize(Le,ke)}return"meta"}}function le(Te,Le,ke){this.prev=Te.context,this.tagName=Le,this.indent=Te.indented,this.startOfLine=ke,(oe.doNotIndent.hasOwnProperty(Le)||Te.context&&Te.context.noIndent)&&(this.noIndent=!0)}function fe(Te){Te.context&&(Te.context=Te.context.prev)}function ce(Te,Le){for(var ke;;){if(!Te.context||(ke=Te.context.tagName,!oe.contextGrabbers.hasOwnProperty(ke)||!oe.contextGrabbers[ke].hasOwnProperty(Le)))return;fe(Te)}}function ue(Te,Le,ke){return Te=="openTag"?(ke.tagStart=Le.column(),ye):Te=="closeTag"?Se:ue}function ye(Te,Le,ke){return Te=="word"?(ke.tagName=Le.current(),z="tag",ge):oe.allowMissingTagName&&Te=="endTag"?(z="tag bracket",ge(Te,Le,ke)):(z="error",ye)}function Se(Te,Le,ke){if(Te=="word"){var Pe=Le.current();return ke.context&&ke.context.tagName!=Pe&&oe.implicitlyClosed.hasOwnProperty(ke.context.tagName)&&fe(ke),ke.context&&ke.context.tagName==Pe||oe.matchClosing===!1?(z="tag",we):(z="tag error",xe)}else return oe.allowMissingTagName&&Te=="endTag"?(z="tag bracket",we(Te,Le,ke)):(z="error",xe)}function we(Te,Le,ke){return Te!="endTag"?(z="error",we):(fe(ke),ue)}function xe(Te,Le,ke){return z="error",we(Te,Le,ke)}function ge(Te,Le,ke){if(Te=="word")return z="attribute",_e;if(Te=="endTag"||Te=="selfcloseTag"){var Pe=ke.tagName,Oe=ke.tagStart;return ke.tagName=ke.tagStart=null,Te=="selfcloseTag"||oe.autoSelfClosers.hasOwnProperty(Pe)?ce(ke,Pe):(ce(ke,Pe),ke.context=new le(ke,Pe,Oe==ke.indented)),ue}return z="error",ge}function _e(Te,Le,ke){return Te=="equals"?be:(oe.allowMissing||(z="error"),ge(Te,Le,ke))}function be(Te,Le,ke){return Te=="string"?Ae:Te=="word"&&oe.allowUnquoted?(z="string",ge):(z="error",ge(Te,Le,ke))}function Ae(Te,Le,ke){return Te=="string"?Ae:ge(Te,Le,ke)}return{startState:function(Te){var Le={tokenize:x,state:ue,indented:Te||0,tagName:null,tagStart:null,context:null};return Te!=null&&(Le.baseIndent=Te),Le},token:function(Te,Le){if(!Le.tagName&&Te.sol()&&(Le.indented=Te.indentation()),Te.eatSpace())return null;se=null;var ke=Le.tokenize(Te,Le);return(ke||se)&&ke!="comment"&&(z=null,Le.state=Le.state(se||ke,Te,Le),z&&(ke=z=="error"?ke+" error":z)),ke},indent:function(Te,Le,ke){var Pe=Te.context;if(Te.tokenize.isInAttribute)return Te.tagStart==Te.indented?Te.stringStartCol+1:Te.indented+te;if(Pe&&Pe.noIndent)return ve.Pass;if(Te.tokenize!=b&&Te.tokenize!=x)return ke?ke.match(/^(\s*)/)[0].length:0;if(Te.tagName)return oe.multilineTagIndentPastTag!==!1?Te.tagStart+Te.tagName.length+2:Te.tagStart+te*(oe.multilineTagIndentFactor||1);if(oe.alignCDATA&&/<!\[CDATA\[/.test(Le))return 0;var Oe=Le&&/^<(\/)?([\w_:\.-]*)/.exec(Le);if(Oe&&Oe[1])for(;Pe;)if(Pe.tagName==Oe[2]){Pe=Pe.prev;break}else if(oe.implicitlyClosed.hasOwnProperty(Pe.tagName))Pe=Pe.prev;else break;else if(Oe)for(;Pe;){var ze=oe.contextGrabbers[Pe.tagName];if(ze&&ze.hasOwnProperty(Oe[2]))Pe=Pe.prev;else break}for(;Pe&&Pe.prev&&!Pe.startOfLine;)Pe=Pe.prev;return Pe?Pe.indent+te:Te.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:oe.htmlMode?"html":"xml",helperType:oe.htmlMode?"html":"xml",skipAttribute:function(Te){Te.state==be&&(Te.state=ge)},xmlCurrentTag:function(Te){return Te.tagName?{name:Te.tagName,close:Te.type=="closeTag"}:null},xmlCurrentContext:function(Te){for(var Le=[],ke=Te.context;ke;ke=ke.prev)ke.tagName&&Le.push(ke.tagName);return Le.reverse()}}}),ve.defineMIME("text/xml","xml"),ve.defineMIME("application/xml","xml"),ve.mimeModes.hasOwnProperty("text/html")||ve.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(bt,pt,Ce){var ve,Ue;(function(a,he){bt.exports=he(a)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Ce.g!="undefined"?Ce.g:this,function(a){"use strict";a=a||{};var he=a.Base64,de="2.6.4",te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oe=function(ke){for(var Pe={},Oe=0,ze=ke.length;Oe<ze;Oe++)Pe[ke.charAt(Oe)]=Oe;return Pe}(te),ne=String.fromCharCode,ee=function(ke){if(ke.length<2){var Pe=ke.charCodeAt(0);return Pe<128?ke:Pe<2048?ne(192|Pe>>>6)+ne(128|Pe&63):ne(224|Pe>>>12&15)+ne(128|Pe>>>6&63)+ne(128|Pe&63)}else{var Pe=65536+(ke.charCodeAt(0)-55296)*1024+(ke.charCodeAt(1)-56320);return ne(240|Pe>>>18&7)+ne(128|Pe>>>12&63)+ne(128|Pe>>>6&63)+ne(128|Pe&63)}},se=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,z=function(ke){return ke.replace(se,ee)},x=function(ke){var Pe=[0,2,1][ke.length%3],Oe=ke.charCodeAt(0)<<16|(ke.length>1?ke.charCodeAt(1):0)<<8|(ke.length>2?ke.charCodeAt(2):0),ze=[te.charAt(Oe>>>18),te.charAt(Oe>>>12&63),Pe>=2?"=":te.charAt(Oe>>>6&63),Pe>=1?"=":te.charAt(Oe&63)];return ze.join("")},b=a.btoa&&typeof a.btoa=="function"?function(ke){return a.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,x)},E=function(ke){return b(z(String(ke)))},re=function(ke){return ke.replace(/[+\/]/g,function(Pe){return Pe=="+"?"-":"_"}).replace(/=/g,"")},ae=function(ke,Pe){return Pe?re(E(ke)):E(ke)},le=function(ke){return ae(ke,!0)},fe;a.Uint8Array&&(fe=function(ke,Pe){for(var Oe="",ze=0,Ge=ke.length;ze<Ge;ze+=3){var tt=ke[ze],Me=ke[ze+1],We=ke[ze+2],it=tt<<16|Me<<8|We;Oe+=te.charAt(it>>>18)+te.charAt(it>>>12&63)+(typeof Me!="undefined"?te.charAt(it>>>6&63):"=")+(typeof We!="undefined"?te.charAt(it&63):"=")}return Pe?re(Oe):Oe});var ce=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ue=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),Oe=Pe-65536;return ne((Oe>>>10)+55296)+ne((Oe&1023)+56320);case 3:return ne((15&ke.charCodeAt(0))<<12|(63&ke.charCodeAt(1))<<6|63&ke.charCodeAt(2));default:return ne((31&ke.charCodeAt(0))<<6|63&ke.charCodeAt(1))}},ye=function(ke){return ke.replace(ce,ue)},Se=function(ke){var Pe=ke.length,Oe=Pe%4,ze=(Pe>0?oe[ke.charAt(0)]<<18:0)|(Pe>1?oe[ke.charAt(1)]<<12:0)|(Pe>2?oe[ke.charAt(2)]<<6:0)|(Pe>3?oe[ke.charAt(3)]:0),Ge=[ne(ze>>>16),ne(ze>>>8&255),ne(ze&255)];return Ge.length-=[0,0,2,1][Oe],Ge.join("")},we=a.atob&&typeof a.atob=="function"?function(ke){return a.atob(ke)}:function(ke){return ke.replace(/\S{1,4}/g,Se)},xe=function(ke){return we(String(ke).replace(/[^A-Za-z0-9\+\/]/g,""))},ge=function(ke){return ye(we(ke))},_e=function(ke){return String(ke).replace(/[-_]/g,function(Pe){return Pe=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},be=function(ke){return ge(_e(ke))},Ae;a.Uint8Array&&(Ae=function(ke){return Uint8Array.from(xe(_e(ke)),function(Pe){return Pe.charCodeAt(0)})});var Te=function(){var ke=a.Base64;return a.Base64=he,ke};if(a.Base64={VERSION:de,atob:xe,btoa:b,fromBase64:be,toBase64:ae,utob:z,encode:ae,encodeURI:le,btou:ye,decode:be,noConflict:Te,fromUint8Array:fe,toUint8Array:Ae},typeof Object.defineProperty=="function"){var Le=function(ke){return{value:ke,enumerable:!1,writable:!0,configurable:!0}};a.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Le(function(){return be(this)})),Object.defineProperty(String.prototype,"toBase64",Le(function(ke){return ae(this,ke)})),Object.defineProperty(String.prototype,"toBase64URI",Le(function(){return ae(this,!0)}))}}return a.Meteor&&(Base64=a.Base64),bt.exports?bt.exports.Base64=a.Base64:(ve=[],Ue=function(){return a.Base64}.apply(pt,ve),Ue!==void 0&&(bt.exports=Ue)),{Base64:a.Base64}})},63158:function(bt,pt,Ce){"use strict";var ve=Ce(54476),Ue=Ce(20068),a=Ce(42978),he=Ce(75931),de=Ce(59301),te=Ce(92310),oe=Ce.n(te),ne=Ce(18929),ee=Ce(10228),se=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],z=de.forwardRef(function(x,b){var E,re=x.prefixCls,ae=re===void 0?"rc-switch":re,le=x.className,fe=x.checked,ce=x.defaultChecked,ue=x.disabled,ye=x.loadingIcon,Se=x.checkedChildren,we=x.unCheckedChildren,xe=x.onClick,ge=x.onChange,_e=x.onKeyDown,be=(0,he.Z)(x,se),Ae=(0,ne.Z)(!1,{value:fe,defaultValue:ce}),Te=(0,a.Z)(Ae,2),Le=Te[0],ke=Te[1];function Pe(tt,Me){var We=Le;return ue||(We=tt,ke(We),ge==null||ge(We,Me)),We}function Oe(tt){tt.which===ee.Z.LEFT?Pe(!1,tt):tt.which===ee.Z.RIGHT&&Pe(!0,tt),_e==null||_e(tt)}function ze(tt){var Me=Pe(!Le,tt);xe==null||xe(Me,tt)}var Ge=oe()(ae,le,(E={},(0,Ue.Z)(E,"".concat(ae,"-checked"),Le),(0,Ue.Z)(E,"".concat(ae,"-disabled"),ue),E));return de.createElement("button",(0,ve.Z)({},be,{type:"button",role:"switch","aria-checked":Le,disabled:ue,className:Ge,ref:b,onKeyDown:Oe,onClick:ze}),ye,de.createElement("span",{className:"".concat(ae,"-inner")},de.createElement("span",{className:"".concat(ae,"-inner-checked")},Se),de.createElement("span",{className:"".concat(ae,"-inner-unchecked")},we)))});z.displayName="Switch",pt.Z=z},2637:function(bt,pt,Ce){"use strict";Object.defineProperty(pt,"__esModule",{value:!0}),Object.defineProperty(pt,"DraggableCore",{enumerable:!0,get:function(){return ne.default}}),pt.default=void 0;var ve=x(Ce(59301)),Ue=se(Ce(12708)),a=se(Ce(4676)),he=se(Ce(57780)),de=Ce(13957),te=Ce(60976),oe=Ce(36641),ne=se(Ce(80486)),ee=se(Ce(94187));function se(fe){return fe&&fe.__esModule?fe:{default:fe}}function z(fe){if(typeof WeakMap!="function")return null;var ce=new WeakMap,ue=new WeakMap;return(z=function(ye){return ye?ue:ce})(fe)}function x(fe,ce){if(!ce&&fe&&fe.__esModule)return fe;if(fe===null||typeof fe!="object"&&typeof fe!="function")return{default:fe};var ue=z(ce);if(ue&&ue.has(fe))return ue.get(fe);var ye={},Se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var we in fe)if(we!=="default"&&Object.prototype.hasOwnProperty.call(fe,we)){var xe=Se?Object.getOwnPropertyDescriptor(fe,we):null;xe&&(xe.get||xe.set)?Object.defineProperty(ye,we,xe):ye[we]=fe[we]}return ye.default=fe,ue&&ue.set(fe,ye),ye}function b(){return b=Object.assign?Object.assign.bind():function(fe){for(var ce=1;ce<arguments.length;ce++){var ue=arguments[ce];for(var ye in ue)Object.prototype.hasOwnProperty.call(ue,ye)&&(fe[ye]=ue[ye])}return fe},b.apply(this,arguments)}function E(fe,ce,ue){return ce=re(ce),ce in fe?Object.defineProperty(fe,ce,{value:ue,enumerable:!0,configurable:!0,writable:!0}):fe[ce]=ue,fe}function re(fe){var ce=ae(fe,"string");return typeof ce=="symbol"?ce:String(ce)}function ae(fe,ce){if(typeof fe!="object"||fe===null)return fe;var ue=fe[Symbol.toPrimitive];if(ue!==void 0){var ye=ue.call(fe,ce||"default");if(typeof ye!="object")return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ce==="string"?String:Number)(fe)}class le extends ve.Component{static getDerivedStateFromProps(ce,ue){let{position:ye}=ce,{prevPropsPosition:Se}=ue;return ye&&(!Se||ye.x!==Se.x||ye.y!==Se.y)?((0,ee.default)("Draggable: getDerivedStateFromProps %j",{position:ye,prevPropsPosition:Se}),{x:ye.x,y:ye.y,prevPropsPosition:oo({},ye)}):null}constructor(ce){super(ce),E(this,"onDragStart",(ue,ye)=>{if((0,ee.default)("Draggable: onDragStart: %j",ye),this.props.onStart(ue,(0,te.createDraggableData)(this,ye))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),E(this,"onDrag",(ue,ye)=>{if(!this.state.dragging)return!1;(0,ee.default)("Draggable: onDrag: %j",ye);const Se=(0,te.createDraggableData)(this,ye),we={x:Se.x,y:Se.y,slackX:0,slackY:0};if(this.props.bounds){const{x:ge,y:_e}=we;we.x+=this.state.slackX,we.y+=this.state.slackY;const[be,Ae]=(0,te.getBoundPosition)(this,we.x,we.y);we.x=be,we.y=Ae,we.slackX=this.state.slackX+(ge-we.x),we.slackY=this.state.slackY+(_e-we.y),Se.x=we.x,Se.y=we.y,Se.deltaX=we.x-this.state.x,Se.deltaY=we.y-this.state.y}if(this.props.onDrag(ue,Se)===!1)return!1;this.setState(we)}),E(this,"onDragStop",(ue,ye)=>{if(!this.state.dragging||this.props.onStop(ue,(0,te.createDraggableData)(this,ye))===!1)return!1;(0,ee.default)("Draggable: onDragStop: %j",ye);const we={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:ge,y:_e}=this.props.position;we.x=ge,we.y=_e}this.setState(we)}),this.state={dragging:!1,dragged:!1,x:ce.position?ce.position.x:ce.defaultPosition.x,y:ce.position?ce.position.y:ce.defaultPosition.y,prevPropsPosition:oo({},ce.position),slackX:0,slackY:0,isElementSVG:!1},ce.position&&!(ce.onDrag||ce.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var ce,ue;return(ce=(ue=this.props)===null||ue===void 0||(ue=ue.nodeRef)===null||ue===void 0?void 0:ue.current)!==null&&ce!==void 0?ce:a.default.findDOMNode(this)}render(){const Me=this.props,{axis:ce,bounds:ue,children:ye,defaultPosition:Se,defaultClassName:we,defaultClassNameDragging:xe,defaultClassNameDragged:ge,position:_e,positionOffset:be,scale:Ae}=Me,Te=Jl(Me,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let Le={},ke=null;const Oe=!!!_e||this.state.dragging,ze=_e||Se,Ge={x:(0,te.canDragX)(this)&&Oe?this.state.x:ze.x,y:(0,te.canDragY)(this)&&Oe?this.state.y:ze.y};this.state.isElementSVG?ke=(0,de.createSVGTransform)(Ge,be):Le=(0,de.createCSSTransform)(Ge,be);const tt=(0,he.default)(ye.props.className||"",we,{[xe]:this.state.dragging,[ge]:this.state.dragged});return ve.createElement(ne.default,b({},Te,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),ve.cloneElement(ve.Children.only(ye),{className:tt,style:oo(oo({},ye.props.style),Le),transform:ke}))}}pt.default=le,E(le,"displayName","Draggable"),E(le,"propTypes",Ba(oo({},ne.default.propTypes),{axis:Ue.default.oneOf(["both","x","y","none"]),bounds:Ue.default.oneOfType([Ue.default.shape({left:Ue.default.number,right:Ue.default.number,top:Ue.default.number,bottom:Ue.default.number}),Ue.default.string,Ue.default.oneOf([!1])]),defaultClassName:Ue.default.string,defaultClassNameDragging:Ue.default.string,defaultClassNameDragged:Ue.default.string,defaultPosition:Ue.default.shape({x:Ue.default.number,y:Ue.default.number}),positionOffset:Ue.default.shape({x:Ue.default.oneOfType([Ue.default.number,Ue.default.string]),y:Ue.default.oneOfType([Ue.default.number,Ue.default.string])}),position:Ue.default.shape({x:Ue.default.number,y:Ue.default.number}),className:oe.dontSetMe,style:oe.dontSetMe,transform:oe.dontSetMe})),E(le,"defaultProps",Ba(oo({},ne.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},80486:function(bt,pt,Ce){"use strict";Object.defineProperty(pt,"__esModule",{value:!0}),pt.default=void 0;var ve=se(Ce(59301)),Ue=ne(Ce(12708)),a=ne(Ce(4676)),he=Ce(13957),de=Ce(60976),te=Ce(36641),oe=ne(Ce(94187));function ne(le){return le&&le.__esModule?le:{default:le}}function ee(le){if(typeof WeakMap!="function")return null;var fe=new WeakMap,ce=new WeakMap;return(ee=function(ue){return ue?ce:fe})(le)}function se(le,fe){if(!fe&&le&&le.__esModule)return le;if(le===null||typeof le!="object"&&typeof le!="function")return{default:le};var ce=ee(fe);if(ce&&ce.has(le))return ce.get(le);var ue={},ye=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Se in le)if(Se!=="default"&&Object.prototype.hasOwnProperty.call(le,Se)){var we=ye?Object.getOwnPropertyDescriptor(le,Se):null;we&&(we.get||we.set)?Object.defineProperty(ue,Se,we):ue[Se]=le[Se]}return ue.default=le,ce&&ce.set(le,ue),ue}function z(le,fe,ce){return fe=x(fe),fe in le?Object.defineProperty(le,fe,{value:ce,enumerable:!0,configurable:!0,writable:!0}):le[fe]=ce,le}function x(le){var fe=b(le,"string");return typeof fe=="symbol"?fe:String(fe)}function b(le,fe){if(typeof le!="object"||le===null)return le;var ce=le[Symbol.toPrimitive];if(ce!==void 0){var ue=ce.call(le,fe||"default");if(typeof ue!="object")return ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return(fe==="string"?String:Number)(le)}const E={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let re=E.mouse;class ae extends ve.Component{constructor(){super(...arguments),z(this,"dragging",!1),z(this,"lastX",NaN),z(this,"lastY",NaN),z(this,"touchIdentifier",null),z(this,"mounted",!1),z(this,"handleDragStart",fe=>{if(this.props.onMouseDown(fe),!this.props.allowAnyClick&&typeof fe.button=="number"&&fe.button!==0)return!1;const ce=this.findDOMNode();if(!ce||!ce.ownerDocument||!ce.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:ue}=ce;if(this.props.disabled||!(fe.target instanceof ue.defaultView.Node)||this.props.handle&&!(0,he.matchesSelectorAndParentsTo)(fe.target,this.props.handle,ce)||this.props.cancel&&(0,he.matchesSelectorAndParentsTo)(fe.target,this.props.cancel,ce))return;fe.type==="touchstart"&&fe.preventDefault();const ye=(0,he.getTouchIdentifier)(fe);this.touchIdentifier=ye;const Se=(0,de.getControlPosition)(fe,ye,this);if(Se==null)return;const{x:we,y:xe}=Se,ge=(0,de.createCoreData)(this,we,xe);(0,oe.default)("DraggableCore: handleDragStart: %j",ge),(0,oe.default)("calling",this.props.onStart),!(this.props.onStart(fe,ge)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,he.addUserSelectStyles)(ue),this.dragging=!0,this.lastX=we,this.lastY=xe,(0,he.addEvent)(ue,re.move,this.handleDrag),(0,he.addEvent)(ue,re.stop,this.handleDragStop))}),z(this,"handleDrag",fe=>{const ce=(0,de.getControlPosition)(fe,this.touchIdentifier,this);if(ce==null)return;let{x:ue,y:ye}=ce;if(Array.isArray(this.props.grid)){let xe=ue-this.lastX,ge=ye-this.lastY;if([xe,ge]=(0,de.snapToGrid)(this.props.grid,xe,ge),!xe&&!ge)return;ue=this.lastX+xe,ye=this.lastY+ge}const Se=(0,de.createCoreData)(this,ue,ye);if((0,oe.default)("DraggableCore: handleDrag: %j",Se),this.props.onDrag(fe,Se)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(xe){const ge=document.createEvent("MouseEvents");ge.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(ge)}return}this.lastX=ue,this.lastY=ye}),z(this,"handleDragStop",fe=>{if(!this.dragging)return;const ce=(0,de.getControlPosition)(fe,this.touchIdentifier,this);if(ce==null)return;let{x:ue,y:ye}=ce;if(Array.isArray(this.props.grid)){let ge=ue-this.lastX||0,_e=ye-this.lastY||0;[ge,_e]=(0,de.snapToGrid)(this.props.grid,ge,_e),ue=this.lastX+ge,ye=this.lastY+_e}const Se=(0,de.createCoreData)(this,ue,ye);if(this.props.onStop(fe,Se)===!1||this.mounted===!1)return!1;const xe=this.findDOMNode();xe&&this.props.enableUserSelectHack&&(0,he.removeUserSelectStyles)(xe.ownerDocument),(0,oe.default)("DraggableCore: handleDragStop: %j",Se),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,xe&&((0,oe.default)("DraggableCore: Removing handlers"),(0,he.removeEvent)(xe.ownerDocument,re.move,this.handleDrag),(0,he.removeEvent)(xe.ownerDocument,re.stop,this.handleDragStop))}),z(this,"onMouseDown",fe=>(re=E.mouse,this.handleDragStart(fe))),z(this,"onMouseUp",fe=>(re=E.mouse,this.handleDragStop(fe))),z(this,"onTouchStart",fe=>(re=E.touch,this.handleDragStart(fe))),z(this,"onTouchEnd",fe=>(re=E.touch,this.handleDragStop(fe)))}componentDidMount(){this.mounted=!0;const fe=this.findDOMNode();fe&&(0,he.addEvent)(fe,E.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const fe=this.findDOMNode();if(fe){const{ownerDocument:ce}=fe;(0,he.removeEvent)(ce,E.mouse.move,this.handleDrag),(0,he.removeEvent)(ce,E.touch.move,this.handleDrag),(0,he.removeEvent)(ce,E.mouse.stop,this.handleDragStop),(0,he.removeEvent)(ce,E.touch.stop,this.handleDragStop),(0,he.removeEvent)(fe,E.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,he.removeUserSelectStyles)(ce)}}findDOMNode(){var fe,ce;return(fe=this.props)!==null&&fe!==void 0&&fe.nodeRef?(ce=this.props)===null||ce===void 0||(ce=ce.nodeRef)===null||ce===void 0?void 0:ce.current:a.default.findDOMNode(this)}render(){return ve.cloneElement(ve.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}pt.default=ae,z(ae,"displayName","DraggableCore"),z(ae,"propTypes",{allowAnyClick:Ue.default.bool,children:Ue.default.node.isRequired,disabled:Ue.default.bool,enableUserSelectHack:Ue.default.bool,offsetParent:function(le,fe){if(le[fe]&&le[fe].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Ue.default.arrayOf(Ue.default.number),handle:Ue.default.string,cancel:Ue.default.string,nodeRef:Ue.default.object,onStart:Ue.default.func,onDrag:Ue.default.func,onStop:Ue.default.func,onMouseDown:Ue.default.func,scale:Ue.default.number,className:te.dontSetMe,style:te.dontSetMe,transform:te.dontSetMe}),z(ae,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(bt,pt,Ce){"use strict";const{default:ve,DraggableCore:Ue}=Ce(2637);bt.exports=ve,bt.exports.default=ve,bt.exports.DraggableCore=Ue},13957:function(bt,pt,Ce){"use strict";Object.defineProperty(pt,"__esModule",{value:!0}),pt.addClassName=Se,pt.addEvent=ne,pt.addUserSelectStyles=ue,pt.createCSSTransform=re,pt.createSVGTransform=ae,pt.getTouch=fe,pt.getTouchIdentifier=ce,pt.getTranslation=le,pt.innerHeight=x,pt.innerWidth=b,pt.matchesSelector=te,pt.matchesSelectorAndParentsTo=oe,pt.offsetXYFromParent=E,pt.outerHeight=se,pt.outerWidth=z,pt.removeClassName=we,pt.removeEvent=ee,pt.removeUserSelectStyles=ye;var ve=Ce(36641),Ue=he(Ce(32092));function a(xe){if(typeof WeakMap!="function")return null;var ge=new WeakMap,_e=new WeakMap;return(a=function(be){return be?_e:ge})(xe)}function he(xe,ge){if(!ge&&xe&&xe.__esModule)return xe;if(xe===null||typeof xe!="object"&&typeof xe!="function")return{default:xe};var _e=a(ge);if(_e&&_e.has(xe))return _e.get(xe);var be={},Ae=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Te in xe)if(Te!=="default"&&Object.prototype.hasOwnProperty.call(xe,Te)){var Le=Ae?Object.getOwnPropertyDescriptor(xe,Te):null;Le&&(Le.get||Le.set)?Object.defineProperty(be,Te,Le):be[Te]=xe[Te]}return be.default=xe,_e&&_e.set(xe,be),be}let de="";function te(xe,ge){return de||(de=(0,ve.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(_e){return(0,ve.isFunction)(xe[_e])})),(0,ve.isFunction)(xe[de])?xe[de](ge):!1}function oe(xe,ge,_e){let be=xe;do{if(te(be,ge))return!0;if(be===_e)return!1;be=be.parentNode}while(be);return!1}function ne(xe,ge,_e,be){if(!xe)return;const Ae=oo({capture:!0},be);xe.addEventListener?xe.addEventListener(ge,_e,Ae):xe.attachEvent?xe.attachEvent("on"+ge,_e):xe["on"+ge]=_e}function ee(xe,ge,_e,be){if(!xe)return;const Ae=oo({capture:!0},be);xe.removeEventListener?xe.removeEventListener(ge,_e,Ae):xe.detachEvent?xe.detachEvent("on"+ge,_e):xe["on"+ge]=null}function se(xe){let ge=xe.clientHeight;const _e=xe.ownerDocument.defaultView.getComputedStyle(xe);return ge+=(0,ve.int)(_e.borderTopWidth),ge+=(0,ve.int)(_e.borderBottomWidth),ge}function z(xe){let ge=xe.clientWidth;const _e=xe.ownerDocument.defaultView.getComputedStyle(xe);return ge+=(0,ve.int)(_e.borderLeftWidth),ge+=(0,ve.int)(_e.borderRightWidth),ge}function x(xe){let ge=xe.clientHeight;const _e=xe.ownerDocument.defaultView.getComputedStyle(xe);return ge-=(0,ve.int)(_e.paddingTop),ge-=(0,ve.int)(_e.paddingBottom),ge}function b(xe){let ge=xe.clientWidth;const _e=xe.ownerDocument.defaultView.getComputedStyle(xe);return ge-=(0,ve.int)(_e.paddingLeft),ge-=(0,ve.int)(_e.paddingRight),ge}function E(xe,ge,_e){const Ae=ge===ge.ownerDocument.body?{left:0,top:0}:ge.getBoundingClientRect(),Te=(xe.clientX+ge.scrollLeft-Ae.left)/_e,Le=(xe.clientY+ge.scrollTop-Ae.top)/_e;return{x:Te,y:Le}}function re(xe,ge){const _e=le(xe,ge,"px");return{[(0,Ue.browserPrefixToKey)("transform",Ue.default)]:_e}}function ae(xe,ge){return le(xe,ge,"")}function le(xe,ge,_e){let{x:be,y:Ae}=xe,Te="translate(".concat(be).concat(_e,",").concat(Ae).concat(_e,")");if(ge){const Le="".concat(typeof ge.x=="string"?ge.x:ge.x+_e),ke="".concat(typeof ge.y=="string"?ge.y:ge.y+_e);Te="translate(".concat(Le,", ").concat(ke,")")+Te}return Te}function fe(xe,ge){return xe.targetTouches&&(0,ve.findInArray)(xe.targetTouches,_e=>ge===_e.identifier)||xe.changedTouches&&(0,ve.findInArray)(xe.changedTouches,_e=>ge===_e.identifier)}function ce(xe){if(xe.targetTouches&&xe.targetTouches[0])return xe.targetTouches[0].identifier;if(xe.changedTouches&&xe.changedTouches[0])return xe.changedTouches[0].identifier}function ue(xe){if(!xe)return;let ge=xe.getElementById("react-draggable-style-el");ge||(ge=xe.createElement("style"),ge.type="text/css",ge.id="react-draggable-style-el",ge.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,ge.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,xe.getElementsByTagName("head")[0].appendChild(ge)),xe.body&&Se(xe.body,"react-draggable-transparent-selection")}function ye(xe){if(xe)try{if(xe.body&&we(xe.body,"react-draggable-transparent-selection"),xe.selection)xe.selection.empty();else{const ge=(xe.defaultView||window).getSelection();ge&&ge.type!=="Caret"&&ge.removeAllRanges()}}catch(ge){}}function Se(xe,ge){xe.classList?xe.classList.add(ge):xe.className.match(new RegExp("(?:^|\\s)".concat(ge,"(?!\\S)")))||(xe.className+=" ".concat(ge))}function we(xe,ge){xe.classList?xe.classList.remove(ge):xe.className=xe.className.replace(new RegExp("(?:^|\\s)".concat(ge,"(?!\\S)"),"g"),"")}},32092:function(bt,pt){"use strict";Object.defineProperty(pt,"__esModule",{value:!0}),pt.browserPrefixToKey=Ue,pt.browserPrefixToStyle=a,pt.default=void 0,pt.getPrefix=ve;const Ce=["Moz","Webkit","O","ms"];function ve(){var te;let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const ne=(te=window.document)===null||te===void 0||(te=te.documentElement)===null||te===void 0?void 0:te.style;if(!ne||oe in ne)return"";for(let ee=0;ee<Ce.length;ee++)if(Ue(oe,Ce[ee])in ne)return Ce[ee];return""}function Ue(te,oe){return oe?"".concat(oe).concat(he(te)):te}function a(te,oe){return oe?"-".concat(oe.toLowerCase(),"-").concat(te):te}function he(te){let oe="",ne=!0;for(let ee=0;ee<te.length;ee++)ne?(oe+=te[ee].toUpperCase(),ne=!1):te[ee]==="-"?ne=!0:oe+=te[ee];return oe}var de=pt.default=ve()},94187:function(bt,pt){"use strict";Object.defineProperty(pt,"__esModule",{value:!0}),pt.default=Ce;function Ce(){}},60976:function(bt,pt,Ce){"use strict";Object.defineProperty(pt,"__esModule",{value:!0}),pt.canDragX=de,pt.canDragY=te,pt.createCoreData=ne,pt.createDraggableData=ee,pt.getBoundPosition=a,pt.getControlPosition=oe,pt.snapToGrid=he;var ve=Ce(36641),Ue=Ce(13957);function a(x,b,E){if(!x.props.bounds)return[b,E];let{bounds:re}=x.props;re=typeof re=="string"?re:se(re);const ae=z(x);if(typeof re=="string"){const{ownerDocument:le}=ae,fe=le.defaultView;let ce;if(re==="parent"?ce=ae.parentNode:ce=le.querySelector(re),!(ce instanceof fe.HTMLElement))throw new Error('Bounds selector "'+re+'" could not find an element.');const ue=ce,ye=fe.getComputedStyle(ae),Se=fe.getComputedStyle(ue);re={left:-ae.offsetLeft+(0,ve.int)(Se.paddingLeft)+(0,ve.int)(ye.marginLeft),top:-ae.offsetTop+(0,ve.int)(Se.paddingTop)+(0,ve.int)(ye.marginTop),right:(0,Ue.innerWidth)(ue)-(0,Ue.outerWidth)(ae)-ae.offsetLeft+(0,ve.int)(Se.paddingRight)-(0,ve.int)(ye.marginRight),bottom:(0,Ue.innerHeight)(ue)-(0,Ue.outerHeight)(ae)-ae.offsetTop+(0,ve.int)(Se.paddingBottom)-(0,ve.int)(ye.marginBottom)}}return(0,ve.isNum)(re.right)&&(b=Math.min(b,re.right)),(0,ve.isNum)(re.bottom)&&(E=Math.min(E,re.bottom)),(0,ve.isNum)(re.left)&&(b=Math.max(b,re.left)),(0,ve.isNum)(re.top)&&(E=Math.max(E,re.top)),[b,E]}function he(x,b,E){const re=Math.round(b/x[0])*x[0],ae=Math.round(E/x[1])*x[1];return[re,ae]}function de(x){return x.props.axis==="both"||x.props.axis==="x"}function te(x){return x.props.axis==="both"||x.props.axis==="y"}function oe(x,b,E){const re=typeof b=="number"?(0,Ue.getTouch)(x,b):null;if(typeof b=="number"&&!re)return null;const ae=z(E),le=E.props.offsetParent||ae.offsetParent||ae.ownerDocument.body;return(0,Ue.offsetXYFromParent)(re||x,le,E.props.scale)}function ne(x,b,E){const re=!(0,ve.isNum)(x.lastX),ae=z(x);return re?{node:ae,deltaX:0,deltaY:0,lastX:b,lastY:E,x:b,y:E}:{node:ae,deltaX:b-x.lastX,deltaY:E-x.lastY,lastX:x.lastX,lastY:x.lastY,x:b,y:E}}function ee(x,b){const E=x.props.scale;return{node:b.node,x:x.state.x+b.deltaX/E,y:x.state.y+b.deltaY/E,deltaX:b.deltaX/E,deltaY:b.deltaY/E,lastX:x.state.x,lastY:x.state.y}}function se(x){return{left:x.left,top:x.top,right:x.right,bottom:x.bottom}}function z(x){const b=x.findDOMNode();if(!b)throw new Error("<DraggableCore>: Unmounted during event!");return b}},36641:function(bt,pt){"use strict";Object.defineProperty(pt,"__esModule",{value:!0}),pt.dontSetMe=he,pt.findInArray=Ce,pt.int=a,pt.isFunction=ve,pt.isNum=Ue;function Ce(de,te){for(let oe=0,ne=de.length;oe<ne;oe++)if(te.apply(te,[de[oe],oe,de]))return de[oe]}function ve(de){return typeof de=="function"||Object.prototype.toString.call(de)==="[object Function]"}function Ue(de){return typeof de=="number"&&!isNaN(de)}function a(de){return parseInt(de,10)}function he(de,te,oe){if(de[te])return new Error("Invalid prop ".concat(te," passed to ").concat(oe," - do not set this, set it on the child."))}},7062:function(bt,pt,Ce){var ve=Ce(19637),Ue=Ce(97573),a=[Ce(96627)];bt.exports=ve.createStore(Ue,a)},96627:function(bt,pt,Ce){bt.exports=ve;function ve(){return Ce(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(bt){return bt<10?"0"+bt:bt}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(bt){return rx_escapable.lastIndex=0,rx_escapable.test(bt)?'"'+bt.replace(rx_escapable,function(pt){var Ce=meta[pt];return typeof Ce=="string"?Ce:"\\u"+("0000"+pt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+bt+'"'}function str(bt,pt){var Ce,ve,Ue,a,he=gap,de,te=pt[bt];switch(te&&typeof te=="object"&&typeof te.toJSON=="function"&&(te=te.toJSON(bt)),typeof rep=="function"&&(te=rep.call(pt,bt,te)),typeof te){case"string":return quote(te);case"number":return isFinite(te)?String(te):"null";case"boolean":case"null":return String(te);case"object":if(!te)return"null";if(gap+=indent,de=[],Object.prototype.toString.apply(te)==="[object Array]"){for(a=te.length,Ce=0;Ce<a;Ce+=1)de[Ce]=str(Ce,te)||"null";return Ue=de.length===0?"[]":gap?`[
`+gap+de.join(`,
`+gap)+`
`+he+"]":"["+de.join(",")+"]",gap=he,Ue}if(rep&&typeof rep=="object")for(a=rep.length,Ce=0;Ce<a;Ce+=1)typeof rep[Ce]=="string"&&(ve=rep[Ce],Ue=str(ve,te),Ue&&de.push(quote(ve)+(gap?": ":":")+Ue));else for(ve in te)Object.prototype.hasOwnProperty.call(te,ve)&&(Ue=str(ve,te),Ue&&de.push(quote(ve)+(gap?": ":":")+Ue));return Ue=de.length===0?"{}":gap?`{
`+gap+de.join(`,
`+gap)+`
`+he+"}":"{"+de.join(",")+"}",gap=he,Ue}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(bt,pt,Ce){var ve;if(gap="",indent="",typeof Ce=="number")for(ve=0;ve<Ce;ve+=1)indent+=" ";else typeof Ce=="string"&&(indent=Ce);if(rep=pt,pt&&typeof pt!="function"&&(typeof pt!="object"||typeof pt.length!="number"))throw new Error("JSON.stringify");return str("",{"":bt})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(bt,pt){var Ce,ve,Ue=bt[pt];if(Ue&&typeof Ue=="object")for(Ce in Ue)Object.prototype.hasOwnProperty.call(Ue,Ce)&&(ve=walk(Ue,Ce),ve!==void 0?Ue[Ce]=ve:delete Ue[Ce]);return reviver.call(bt,pt,Ue)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(bt){return"\\u"+("0000"+bt.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(bt,pt,Ce){var ve=Ce(67039),Ue=ve.slice,a=ve.pluck,he=ve.each,de=ve.bind,te=ve.create,oe=ve.isList,ne=ve.isFunction,ee=ve.isObject;bt.exports={createStore:x};var se={version:"2.0.12",enabled:!1,get:function(b,E){var re=this.storage.read(this._namespacePrefix+b);return this._deserialize(re,E)},set:function(b,E){return E===void 0?this.remove(b):(this.storage.write(this._namespacePrefix+b,this._serialize(E)),E)},remove:function(b){this.storage.remove(this._namespacePrefix+b)},each:function(b){var E=this;this.storage.each(function(re,ae){b.call(E,E._deserialize(re),(ae||"").replace(E._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(b){return this._namespacePrefix=="__storejs_"+b+"_"},createStore:function(){return x.apply(this,arguments)},addPlugin:function(b){this._addPlugin(b)},namespace:function(b){return x(this.storage,this.plugins,b)}};function z(){var b=typeof console=="undefined"?null:console;if(b){var E=b.warn?b.warn:b.log;E.apply(b,arguments)}}function x(b,E,re){re||(re=""),b&&!oe(b)&&(b=[b]),E&&!oe(E)&&(E=[E]);var ae=re?"__storejs_"+re+"_":"",le=re?new RegExp("^"+ae):null,fe=/^[a-zA-Z0-9_\-]*$/;if(!fe.test(re))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var ce={_namespacePrefix:ae,_namespaceRegexp:le,_testStorage:function(ye){try{var Se="__storejs__test__";ye.write(Se,Se);var we=ye.read(Se)===Se;return ye.remove(Se),we}catch(xe){return!1}},_assignPluginFnProp:function(ye,Se){var we=this[Se];this[Se]=function(){var ge=Ue(arguments,0),_e=this;function be(){if(we)return he(arguments,function(Te,Le){ge[Le]=Te}),we.apply(_e,ge)}var Ae=[be].concat(ge);return ye.apply(_e,Ae)}},_serialize:function(ye){return JSON.stringify(ye)},_deserialize:function(ye,Se){if(!ye)return Se;var we="";try{we=JSON.parse(ye)}catch(xe){we=ye}return we!==void 0?we:Se},_addStorage:function(ye){this.enabled||this._testStorage(ye)&&(this.storage=ye,this.enabled=!0)},_addPlugin:function(ye){var Se=this;if(oe(ye)){he(ye,function(ge){Se._addPlugin(ge)});return}var we=a(this.plugins,function(ge){return ye===ge});if(!we){if(this.plugins.push(ye),!ne(ye))throw new Error("Plugins must be function values that return objects");var xe=ye.call(this);if(!ee(xe))throw new Error("Plugins must return an object of function properties");he(xe,function(ge,_e){if(!ne(ge))throw new Error("Bad plugin property: "+_e+" from plugin "+ye.name+". Plugins should only return functions.");Se._assignPluginFnProp(ge,_e)})}},addStorage:function(ye){z("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(ye)}},ue=te(ce,se,{plugins:[]});return ue.raw={},he(ue,function(ye,Se){ne(ye)&&(ue.raw[Se]=de(ue,ye))}),he(b,function(ye){ue._addStorage(ye)}),he(E,function(ye){ue._addPlugin(ye)}),ue}},67039:function(bt,pt,Ce){var ve=de(),Ue=te(),a=oe(),he=typeof window!="undefined"?window:Ce.g;bt.exports={assign:ve,create:Ue,trim:a,bind:ne,slice:ee,each:se,map:z,pluck:x,isList:b,isFunction:E,isObject:re,Global:he};function de(){return Object.assign?Object.assign:function(le,fe,ce,ue){for(var ye=1;ye<arguments.length;ye++)se(Object(arguments[ye]),function(Se,we){le[we]=Se});return le}}function te(){if(Object.create)return function(fe,ce,ue,ye){var Se=ee(arguments,1);return ve.apply(this,[Object.create(fe)].concat(Se))};{let le=function(){};var ae=le;return function(ce,ue,ye,Se){var we=ee(arguments,1);return le.prototype=ce,ve.apply(this,[new le].concat(we))}}}function oe(){return String.prototype.trim?function(le){return String.prototype.trim.call(le)}:function(le){return le.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function ne(ae,le){return function(){return le.apply(ae,Array.prototype.slice.call(arguments,0))}}function ee(ae,le){return Array.prototype.slice.call(ae,le||0)}function se(ae,le){x(ae,function(fe,ce){return le(fe,ce),!1})}function z(ae,le){var fe=b(ae)?[]:{};return x(ae,function(ce,ue){return fe[ue]=le(ce,ue),!1}),fe}function x(ae,le){if(b(ae)){for(var fe=0;fe<ae.length;fe++)if(le(ae[fe],fe))return ae[fe]}else for(var ce in ae)if(ae.hasOwnProperty(ce)&&le(ae[ce],ce))return ae[ce]}function b(ae){return ae!=null&&typeof ae!="function"&&typeof ae.length=="number"}function E(ae){return ae&&{}.toString.call(ae)==="[object Function]"}function re(ae){return ae&&{}.toString.call(ae)==="[object Object]"}},97573:function(bt,pt,Ce){bt.exports=[Ce(52496),Ce(16436),Ce(76673),Ce(35701),Ce(65578),Ce(65300)]},35701:function(bt,pt,Ce){var ve=Ce(67039),Ue=ve.Global,a=ve.trim;bt.exports={name:"cookieStorage",read:de,write:oe,each:te,remove:ne,clearAll:ee};var he=Ue.document;function de(z){if(!z||!se(z))return null;var x="(?:^|.*;\\s*)"+escape(z).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(he.cookie.replace(new RegExp(x),"$1"))}function te(z){for(var x=he.cookie.split(/; ?/g),b=x.length-1;b>=0;b--)if(a(x[b])){var E=x[b].split("="),re=unescape(E[0]),ae=unescape(E[1]);z(ae,re)}}function oe(z,x){z&&(he.cookie=escape(z)+"="+escape(x)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function ne(z){!z||!se(z)||(he.cookie=escape(z)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function ee(){te(function(z,x){ne(x)})}function se(z){return new RegExp("(?:^|;\\s*)"+escape(z).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(he.cookie)}},52496:function(bt,pt,Ce){var ve=Ce(67039),Ue=ve.Global;bt.exports={name:"localStorage",read:he,write:de,each:te,remove:oe,clearAll:ne};function a(){return Ue.localStorage}function he(ee){return a().getItem(ee)}function de(ee,se){return a().setItem(ee,se)}function te(ee){for(var se=a().length-1;se>=0;se--){var z=a().key(se);ee(he(z),z)}}function oe(ee){return a().removeItem(ee)}function ne(){return a().clear()}},65300:function(bt){bt.exports={name:"memoryStorage",read:Ce,write:ve,each:Ue,remove:a,clearAll:he};var pt={};function Ce(de){return pt[de]}function ve(de,te){pt[de]=te}function Ue(de){for(var te in pt)pt.hasOwnProperty(te)&&de(pt[te],te)}function a(de){delete pt[de]}function he(de){pt={}}},16436:function(bt,pt,Ce){var ve=Ce(67039),Ue=ve.Global;bt.exports={name:"oldFF-globalStorage",read:he,write:de,each:te,remove:oe,clearAll:ne};var a=Ue.globalStorage;function he(ee){return a[ee]}function de(ee,se){a[ee]=se}function te(ee){for(var se=a.length-1;se>=0;se--){var z=a.key(se);ee(a[z],z)}}function oe(ee){return a.removeItem(ee)}function ne(){te(function(ee,se){delete a[ee]})}},76673:function(bt,pt,Ce){var ve=Ce(67039),Ue=ve.Global;bt.exports={name:"oldIE-userDataStorage",write:oe,read:ne,each:ee,remove:se,clearAll:z};var a="storejs",he=Ue.document,de=E(),te=(Ue.navigator?Ue.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function oe(re,ae){if(!te){var le=b(re);de(function(fe){fe.setAttribute(le,ae),fe.save(a)})}}function ne(re){if(!te){var ae=b(re),le=null;return de(function(fe){le=fe.getAttribute(ae)}),le}}function ee(re){de(function(ae){for(var le=ae.XMLDocument.documentElement.attributes,fe=le.length-1;fe>=0;fe--){var ce=le[fe];re(ae.getAttribute(ce.name),ce.name)}})}function se(re){var ae=b(re);de(function(le){le.removeAttribute(ae),le.save(a)})}function z(){de(function(re){var ae=re.XMLDocument.documentElement.attributes;re.load(a);for(var le=ae.length-1;le>=0;le--)re.removeAttribute(ae[le].name);re.save(a)})}var x=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function b(re){return re.replace(/^\d/,"___$&").replace(x,"___")}function E(){if(!he||!he.documentElement||!he.documentElement.addBehavior)return null;var re="script",ae,le,fe;try{le=new ActiveXObject("htmlfile"),le.open(),le.write("<"+re+">document.w=window</"+re+'><iframe src="/favicon.ico"></iframe>'),le.close(),ae=le.w.frames[0].document,fe=ae.createElement("div")}catch(ce){fe=he.createElement("div"),ae=he.body}return function(ce){var ue=[].slice.call(arguments,0);ue.unshift(fe),ae.appendChild(fe),fe.addBehavior("#default#userData"),fe.load(a),ce.apply(this,ue),ae.removeChild(fe)}}},65578:function(bt,pt,Ce){var ve=Ce(67039),Ue=ve.Global;bt.exports={name:"sessionStorage",read:he,write:de,each:te,remove:oe,clearAll:ne};function a(){return Ue.sessionStorage}function he(ee){return a().getItem(ee)}function de(ee,se){return a().setItem(ee,se)}function te(ee){for(var se=a().length-1;se>=0;se--){var z=a().key(se);ee(he(z),z)}}function oe(ee){return a().removeItem(ee)}function ne(){return a().clear()}},34376:function(bt){(function(pt,Ce){if(1)bt.exports=Ce();else var ve,Ue})(window,function(){return function(pt){var Ce={};function ve(Ue){if(Ce[Ue])return Ce[Ue].exports;var a=Ce[Ue]={i:Ue,l:!1,exports:{}};return pt[Ue].call(a.exports,a,a.exports,ve),a.l=!0,a.exports}return ve.m=pt,ve.c=Ce,ve.d=function(Ue,a,he){ve.o(Ue,a)||Object.defineProperty(Ue,a,{enumerable:!0,get:he})},ve.r=function(Ue){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Ue,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Ue,"__esModule",{value:!0})},ve.t=function(Ue,a){if(1&a&&(Ue=ve(Ue)),8&a||4&a&&typeof Ue=="object"&&Ue&&Ue.__esModule)return Ue;var he=Object.create(null);if(ve.r(he),Object.defineProperty(he,"default",{enumerable:!0,value:Ue}),2&a&&typeof Ue!="string")for(var de in Ue)ve.d(he,de,function(te){return Ue[te]}.bind(null,de));return he},ve.n=function(Ue){var a=Ue&&Ue.__esModule?function(){return Ue.default}:function(){return Ue};return ve.d(a,"a",a),a},ve.o=function(Ue,a){return Object.prototype.hasOwnProperty.call(Ue,a)},ve.p="",ve(ve.s=34)}([function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.forwardEvent=Ce.EventEmitter=void 0;var Ue=function(){function a(){this._listeners=[],this._disposed=!1}return Object.defineProperty(a.prototype,"event",{get:function(){var he=this;return this._event||(this._event=function(de){return he._listeners.push(de),{dispose:function(){if(!he._disposed){for(var te=0;te<he._listeners.length;te++)if(he._listeners[te]===de)return void he._listeners.splice(te,1)}}}}),this._event},enumerable:!1,configurable:!0}),a.prototype.fire=function(he,de){for(var te=[],oe=0;oe<this._listeners.length;oe++)te.push(this._listeners[oe]);for(oe=0;oe<te.length;oe++)te[oe].call(void 0,he,de)},a.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},a}();Ce.EventEmitter=Ue,Ce.forwardEvent=function(a,he){return a(function(de){return he.fire(de)})}},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.IUnicodeService=Ce.IOptionsService=Ce.ILogService=Ce.IInstantiationService=Ce.IDirtyRowService=Ce.ICharsetService=Ce.ICoreService=Ce.ICoreMouseService=Ce.IBufferService=void 0;var Ue=ve(14);Ce.IBufferService=Ue.createDecorator("BufferService"),Ce.ICoreMouseService=Ue.createDecorator("CoreMouseService"),Ce.ICoreService=Ue.createDecorator("CoreService"),Ce.ICharsetService=Ue.createDecorator("CharsetService"),Ce.IDirtyRowService=Ue.createDecorator("DirtyRowService"),Ce.IInstantiationService=Ue.createDecorator("InstantiationService"),Ce.ILogService=Ue.createDecorator("LogService"),Ce.IOptionsService=Ue.createDecorator("OptionsService"),Ce.IUnicodeService=Ue.createDecorator("UnicodeService")},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.getDisposeArrayDisposable=Ce.disposeArray=Ce.Disposable=void 0;var Ue=function(){function he(){this._disposables=[],this._isDisposed=!1}return he.prototype.dispose=function(){this._isDisposed=!0;for(var de=0,te=this._disposables;de<te.length;de++)te[de].dispose();this._disposables.length=0},he.prototype.register=function(de){return this._disposables.push(de),de},he.prototype.unregister=function(de){var te=this._disposables.indexOf(de);te!==-1&&this._disposables.splice(te,1)},he}();function a(he){for(var de=0,te=he;de<te.length;de++)te[de].dispose();he.length=0}Ce.Disposable=Ue,Ce.disposeArray=a,Ce.getDisposeArrayDisposable=function(he){return{dispose:function(){return a(he)}}}},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.WHITESPACE_CELL_CODE=Ce.WHITESPACE_CELL_WIDTH=Ce.WHITESPACE_CELL_CHAR=Ce.NULL_CELL_CODE=Ce.NULL_CELL_WIDTH=Ce.NULL_CELL_CHAR=Ce.CHAR_DATA_CODE_INDEX=Ce.CHAR_DATA_WIDTH_INDEX=Ce.CHAR_DATA_CHAR_INDEX=Ce.CHAR_DATA_ATTR_INDEX=Ce.DEFAULT_ATTR=Ce.DEFAULT_COLOR=void 0,Ce.DEFAULT_COLOR=256,Ce.DEFAULT_ATTR=256|Ce.DEFAULT_COLOR<<9,Ce.CHAR_DATA_ATTR_INDEX=0,Ce.CHAR_DATA_CHAR_INDEX=1,Ce.CHAR_DATA_WIDTH_INDEX=2,Ce.CHAR_DATA_CODE_INDEX=3,Ce.NULL_CELL_CHAR="",Ce.NULL_CELL_WIDTH=1,Ce.NULL_CELL_CODE=0,Ce.WHITESPACE_CELL_CHAR=" ",Ce.WHITESPACE_CELL_WIDTH=1,Ce.WHITESPACE_CELL_CODE=32},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(ne,ee){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,z){se.__proto__=z}||function(se,z){for(var x in z)z.hasOwnProperty(x)&&(se[x]=z[x])})(ne,ee)},function(ne,ee){function se(){this.constructor=ne}Ue(ne,ee),ne.prototype=ee===null?Object.create(ee):(se.prototype=ee.prototype,new se)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.CellData=void 0;var he=ve(8),de=ve(3),te=ve(6),oe=function(ne){function ee(){var se=ne!==null&&ne.apply(this,arguments)||this;return se.content=0,se.fg=0,se.bg=0,se.extended=new te.ExtendedAttrs,se.combinedData="",se}return a(ee,ne),ee.fromCharData=function(se){var z=new ee;return z.setFromCharData(se),z},ee.prototype.isCombined=function(){return 2097152&this.content},ee.prototype.getWidth=function(){return this.content>>22},ee.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?he.stringFromCodePoint(2097151&this.content):""},ee.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},ee.prototype.setFromCharData=function(se){this.fg=se[de.CHAR_DATA_ATTR_INDEX],this.bg=0;var z=!1;if(se[de.CHAR_DATA_CHAR_INDEX].length>2)z=!0;else if(se[de.CHAR_DATA_CHAR_INDEX].length===2){var x=se[de.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=x&&x<=56319){var b=se[de.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=b&&b<=57343?this.content=1024*(x-55296)+b-56320+65536|se[de.CHAR_DATA_WIDTH_INDEX]<<22:z=!0}else z=!0}else this.content=se[de.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|se[de.CHAR_DATA_WIDTH_INDEX]<<22;z&&(this.combinedData=se[de.CHAR_DATA_CHAR_INDEX],this.content=2097152|se[de.CHAR_DATA_WIDTH_INDEX]<<22)},ee.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},ee}(te.AttributeData);Ce.CellData=oe},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.ISoundService=Ce.ISelectionService=Ce.IRenderService=Ce.IMouseService=Ce.ICoreBrowserService=Ce.ICharSizeService=void 0;var Ue=ve(14);Ce.ICharSizeService=Ue.createDecorator("CharSizeService"),Ce.ICoreBrowserService=Ue.createDecorator("CoreBrowserService"),Ce.IMouseService=Ue.createDecorator("MouseService"),Ce.IRenderService=Ue.createDecorator("RenderService"),Ce.ISelectionService=Ue.createDecorator("SelectionService"),Ce.ISoundService=Ue.createDecorator("SoundService")},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.ExtendedAttrs=Ce.AttributeData=void 0;var Ue=function(){function he(){this.fg=0,this.bg=0,this.extended=new a}return he.toColorRGB=function(de){return[de>>>16&255,de>>>8&255,255&de]},he.fromColorRGB=function(de){return(255&de[0])<<16|(255&de[1])<<8|255&de[2]},he.prototype.clone=function(){var de=new he;return de.fg=this.fg,de.bg=this.bg,de.extended=this.extended.clone(),de},he.prototype.isInverse=function(){return 67108864&this.fg},he.prototype.isBold=function(){return 134217728&this.fg},he.prototype.isUnderline=function(){return 268435456&this.fg},he.prototype.isBlink=function(){return 536870912&this.fg},he.prototype.isInvisible=function(){return 1073741824&this.fg},he.prototype.isItalic=function(){return 67108864&this.bg},he.prototype.isDim=function(){return 134217728&this.bg},he.prototype.getFgColorMode=function(){return 50331648&this.fg},he.prototype.getBgColorMode=function(){return 50331648&this.bg},he.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},he.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},he.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},he.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},he.prototype.isFgDefault=function(){return(50331648&this.fg)==0},he.prototype.isBgDefault=function(){return(50331648&this.bg)==0},he.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},he.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},he.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},he.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},he.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},he.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},he.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},he.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},he.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},he.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},he.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},he}();Ce.AttributeData=Ue;var a=function(){function he(de,te){de===void 0&&(de=0),te===void 0&&(te=-1),this.underlineStyle=de,this.underlineColor=te}return he.prototype.clone=function(){return new he(this.underlineStyle,this.underlineColor)},he.prototype.isEmpty=function(){return this.underlineStyle===0},he}();Ce.ExtendedAttrs=a},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.addDisposableDomListener=void 0,Ce.addDisposableDomListener=function(Ue,a,he,de){Ue.addEventListener(a,he,de);var te=!1;return{dispose:function(){te||(te=!0,Ue.removeEventListener(a,he,de))}}}},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.Utf8ToUtf32=Ce.StringToUtf32=Ce.utf32ToString=Ce.stringFromCodePoint=void 0,Ce.stringFromCodePoint=function(he){return he>65535?(he-=65536,String.fromCharCode(55296+(he>>10))+String.fromCharCode(he%1024+56320)):String.fromCharCode(he)},Ce.utf32ToString=function(he,de,te){de===void 0&&(de=0),te===void 0&&(te=he.length);for(var oe="",ne=de;ne<te;++ne){var ee=he[ne];ee>65535?(ee-=65536,oe+=String.fromCharCode(55296+(ee>>10))+String.fromCharCode(ee%1024+56320)):oe+=String.fromCharCode(ee)}return oe};var Ue=function(){function he(){this._interim=0}return he.prototype.clear=function(){this._interim=0},he.prototype.decode=function(de,te){var oe=de.length;if(!oe)return 0;var ne=0,ee=0;this._interim&&(56320<=(x=de.charCodeAt(ee++))&&x<=57343?te[ne++]=1024*(this._interim-55296)+x-56320+65536:(te[ne++]=this._interim,te[ne++]=x),this._interim=0);for(var se=ee;se<oe;++se){var z=de.charCodeAt(se);if(55296<=z&&z<=56319){if(++se>=oe)return this._interim=z,ne;var x;56320<=(x=de.charCodeAt(se))&&x<=57343?te[ne++]=1024*(z-55296)+x-56320+65536:(te[ne++]=z,te[ne++]=x)}else te[ne++]=z}return ne},he}();Ce.StringToUtf32=Ue;var a=function(){function he(){this.interim=new Uint8Array(3)}return he.prototype.clear=function(){this.interim.fill(0)},he.prototype.decode=function(de,te){var oe=de.length;if(!oe)return 0;var ne,ee,se,z,x=0,b=0,E=0;if(this.interim[0]){var re=!1,ae=this.interim[0];ae&=(224&ae)==192?31:(240&ae)==224?15:7;for(var le=0,fe=void 0;(fe=63&this.interim[++le])&&le<4;)ae<<=6,ae|=fe;for(var ce=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,ue=ce-le;E<ue;){if(E>=oe)return 0;if((192&(fe=de[E++]))!=128){E--,re=!0;break}this.interim[le++]=fe,ae<<=6,ae|=63&fe}re||(ce===2?ae<128?E--:te[x++]=ae:ce===3?ae<2048||ae>=55296&&ae<=57343||(te[x++]=ae):ae<65536||ae>1114111||(te[x++]=ae)),this.interim.fill(0)}for(var ye=oe-4,Se=E;Se<oe;){for(;!(!(Se<ye)||128&(ne=de[Se])||128&(ee=de[Se+1])||128&(se=de[Se+2])||128&(z=de[Se+3]));)te[x++]=ne,te[x++]=ee,te[x++]=se,te[x++]=z,Se+=4;if((ne=de[Se++])<128)te[x++]=ne;else if((224&ne)==192){if(Se>=oe)return this.interim[0]=ne,x;if((192&(ee=de[Se++]))!=128){Se--;continue}if((b=(31&ne)<<6|63&ee)<128){Se--;continue}te[x++]=b}else if((240&ne)==224){if(Se>=oe)return this.interim[0]=ne,x;if((192&(ee=de[Se++]))!=128){Se--;continue}if(Se>=oe)return this.interim[0]=ne,this.interim[1]=ee,x;if((192&(se=de[Se++]))!=128){Se--;continue}if((b=(15&ne)<<12|(63&ee)<<6|63&se)<2048||b>=55296&&b<=57343)continue;te[x++]=b}else if((248&ne)==240){if(Se>=oe)return this.interim[0]=ne,x;if((192&(ee=de[Se++]))!=128){Se--;continue}if(Se>=oe)return this.interim[0]=ne,this.interim[1]=ee,x;if((192&(se=de[Se++]))!=128){Se--;continue}if(Se>=oe)return this.interim[0]=ne,this.interim[1]=ee,this.interim[2]=se,x;if((192&(z=de[Se++]))!=128){Se--;continue}if((b=(7&ne)<<18|(63&ee)<<12|(63&se)<<6|63&z)<65536||b>1114111)continue;te[x++]=b}}return x},he}();Ce.Utf8ToUtf32=a},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.CHAR_ATLAS_CELL_SPACING=Ce.DIM_OPACITY=Ce.INVERTED_DEFAULT_COLOR=void 0,Ce.INVERTED_DEFAULT_COLOR=257,Ce.DIM_OPACITY=.5,Ce.CHAR_ATLAS_CELL_SPACING=1},function(pt,Ce,ve){"use strict";var Ue,a,he,de;function te(ne){var ee=ne.toString(16);return ee.length<2?"0"+ee:ee}function oe(ne,ee){return ne<ee?(ee+.05)/(ne+.05):(ne+.05)/(ee+.05)}Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.contrastRatio=Ce.toPaddedHex=Ce.rgba=Ce.rgb=Ce.css=Ce.color=Ce.channels=void 0,function(ne){ne.toCss=function(ee,se,z,x){return x!==void 0?"#"+te(ee)+te(se)+te(z)+te(x):"#"+te(ee)+te(se)+te(z)},ne.toRgba=function(ee,se,z,x){return x===void 0&&(x=255),(ee<<24|se<<16|z<<8|x)>>>0}}(Ue=Ce.channels||(Ce.channels={})),(a=Ce.color||(Ce.color={})).blend=function(ne,ee){var se=(255&ee.rgba)/255;if(se===1)return{css:ee.css,rgba:ee.rgba};var z=ee.rgba>>24&255,x=ee.rgba>>16&255,b=ee.rgba>>8&255,E=ne.rgba>>24&255,re=ne.rgba>>16&255,ae=ne.rgba>>8&255,le=E+Math.round((z-E)*se),fe=re+Math.round((x-re)*se),ce=ae+Math.round((b-ae)*se);return{css:Ue.toCss(le,fe,ce),rgba:Ue.toRgba(le,fe,ce)}},a.isOpaque=function(ne){return(255&ne.rgba)==255},a.ensureContrastRatio=function(ne,ee,se){var z=de.ensureContrastRatio(ne.rgba,ee.rgba,se);if(z)return de.toColor(z>>24&255,z>>16&255,z>>8&255)},a.opaque=function(ne){var ee=(255|ne.rgba)>>>0,se=de.toChannels(ee),z=se[0],x=se[1],b=se[2];return{css:Ue.toCss(z,x,b),rgba:ee}},a.opacity=function(ne,ee){var se=Math.round(255*ee),z=de.toChannels(ne.rgba),x=z[0],b=z[1],E=z[2];return{css:Ue.toCss(x,b,E,se),rgba:Ue.toRgba(x,b,E,se)}},(Ce.css||(Ce.css={})).toColor=function(ne){switch(ne.length){case 7:return{css:ne,rgba:(parseInt(ne.slice(1),16)<<8|255)>>>0};case 9:return{css:ne,rgba:parseInt(ne.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(ne){function ee(se,z,x){var b=se/255,E=z/255,re=x/255;return .2126*(b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4))+.7152*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))+.0722*(re<=.03928?re/12.92:Math.pow((re+.055)/1.055,2.4))}ne.relativeLuminance=function(se){return ee(se>>16&255,se>>8&255,255&se)},ne.relativeLuminance2=ee}(he=Ce.rgb||(Ce.rgb={})),function(ne){function ee(z,x,b){for(var E=z>>24&255,re=z>>16&255,ae=z>>8&255,le=x>>24&255,fe=x>>16&255,ce=x>>8&255,ue=oe(he.relativeLuminance2(le,ce,fe),he.relativeLuminance2(E,re,ae));ue<b&&(le>0||fe>0||ce>0);)le-=Math.max(0,Math.ceil(.1*le)),fe-=Math.max(0,Math.ceil(.1*fe)),ce-=Math.max(0,Math.ceil(.1*ce)),ue=oe(he.relativeLuminance2(le,ce,fe),he.relativeLuminance2(E,re,ae));return(le<<24|fe<<16|ce<<8|255)>>>0}function se(z,x,b){for(var E=z>>24&255,re=z>>16&255,ae=z>>8&255,le=x>>24&255,fe=x>>16&255,ce=x>>8&255,ue=oe(he.relativeLuminance2(le,ce,fe),he.relativeLuminance2(E,re,ae));ue<b&&(le<255||fe<255||ce<255);)le=Math.min(255,le+Math.ceil(.1*(255-le))),fe=Math.min(255,fe+Math.ceil(.1*(255-fe))),ce=Math.min(255,ce+Math.ceil(.1*(255-ce))),ue=oe(he.relativeLuminance2(le,ce,fe),he.relativeLuminance2(E,re,ae));return(le<<24|fe<<16|ce<<8|255)>>>0}ne.ensureContrastRatio=function(z,x,b){var E=he.relativeLuminance(z>>8),re=he.relativeLuminance(x>>8);if(oe(E,re)<b)return re<E?ee(z,x,b):se(z,x,b)},ne.reduceLuminance=ee,ne.increaseLuminance=se,ne.toChannels=function(z){return[z>>24&255,z>>16&255,z>>8&255,255&z]},ne.toColor=function(z,x,b){return{css:Ue.toCss(z,x,b),rgba:Ue.toRgba(z,x,b)}}}(de=Ce.rgba||(Ce.rgba={})),Ce.toPaddedHex=te,Ce.contrastRatio=oe},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.isLinux=Ce.isWindows=Ce.isIphone=Ce.isIpad=Ce.isMac=Ce.isSafari=Ce.isFirefox=void 0;var Ue=typeof navigator=="undefined",a=Ue?"node":navigator.userAgent,he=Ue?"node":navigator.platform;function de(te,oe){return te.indexOf(oe)>=0}Ce.isFirefox=!!~a.indexOf("Firefox"),Ce.isSafari=/^((?!chrome|android).)*safari/i.test(a),Ce.isMac=de(["Macintosh","MacIntel","MacPPC","Mac68K"],he),Ce.isIpad=he==="iPad",Ce.isIphone=he==="iPhone",Ce.isWindows=de(["Windows","Win16","Win32","WinCE"],he),Ce.isLinux=he.indexOf("Linux")>=0},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.C1=Ce.C0=void 0,function(Ue){Ue.NUL="\0",Ue.SOH="",Ue.STX="",Ue.ETX="",Ue.EOT="",Ue.ENQ="",Ue.ACK="",Ue.BEL="\x07",Ue.BS="\b",Ue.HT=" ",Ue.LF=`
`,Ue.VT="\v",Ue.FF="\f",Ue.CR="\r",Ue.SO="",Ue.SI="",Ue.DLE="",Ue.DC1="",Ue.DC2="",Ue.DC3="",Ue.DC4="",Ue.NAK="",Ue.SYN="",Ue.ETB="",Ue.CAN="",Ue.EM="",Ue.SUB="",Ue.ESC="\x1B",Ue.FS="",Ue.GS="",Ue.RS="",Ue.US="",Ue.SP=" ",Ue.DEL="\x7F"}(Ce.C0||(Ce.C0={})),function(Ue){Ue.PAD="\x80",Ue.HOP="\x81",Ue.BPH="\x82",Ue.NBH="\x83",Ue.IND="\x84",Ue.NEL="\x85",Ue.SSA="\x86",Ue.ESA="\x87",Ue.HTS="\x88",Ue.HTJ="\x89",Ue.VTS="\x8A",Ue.PLD="\x8B",Ue.PLU="\x8C",Ue.RI="\x8D",Ue.SS2="\x8E",Ue.SS3="\x8F",Ue.DCS="\x90",Ue.PU1="\x91",Ue.PU2="\x92",Ue.STS="\x93",Ue.CCH="\x94",Ue.MW="\x95",Ue.SPA="\x96",Ue.EPA="\x97",Ue.SOS="\x98",Ue.SGCI="\x99",Ue.SCI="\x9A",Ue.CSI="\x9B",Ue.ST="\x9C",Ue.OSC="\x9D",Ue.PM="\x9E",Ue.APC="\x9F"}(Ce.C1||(Ce.C1={}))},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.BaseRenderLayer=void 0;var Ue=ve(3),a=ve(9),he=ve(25),de=ve(6),te=ve(28),oe=ve(10),ne=ve(17),ee=function(){function se(z,x,b,E,re,ae,le,fe){this._container=z,this._alpha=E,this._colors=re,this._rendererId=ae,this._bufferService=le,this._optionsService=fe,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+x+"-layer"),this._canvas.style.zIndex=b.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return se.prototype.dispose=function(){var z;ne.removeElementFromParent(this._canvas),(z=this._charAtlas)===null||z===void 0||z.dispose()},se.prototype._initCanvas=function(){this._ctx=te.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},se.prototype.onOptionsChanged=function(){},se.prototype.onBlur=function(){},se.prototype.onFocus=function(){},se.prototype.onCursorMove=function(){},se.prototype.onGridChanged=function(z,x){},se.prototype.onSelectionChanged=function(z,x,b){b===void 0&&(b=!1)},se.prototype.setColors=function(z){this._refreshCharAtlas(z)},se.prototype._setTransparency=function(z){if(z!==this._alpha){var x=this._canvas;this._alpha=z,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,x),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},se.prototype._refreshCharAtlas=function(z){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=he.acquireCharAtlas(this._optionsService.options,this._rendererId,z,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},se.prototype.resize=function(z){this._scaledCellWidth=z.scaledCellWidth,this._scaledCellHeight=z.scaledCellHeight,this._scaledCharWidth=z.scaledCharWidth,this._scaledCharHeight=z.scaledCharHeight,this._scaledCharLeft=z.scaledCharLeft,this._scaledCharTop=z.scaledCharTop,this._canvas.width=z.scaledCanvasWidth,this._canvas.height=z.scaledCanvasHeight,this._canvas.style.width=z.canvasWidth+"px",this._canvas.style.height=z.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},se.prototype._fillCells=function(z,x,b,E){this._ctx.fillRect(z*this._scaledCellWidth,x*this._scaledCellHeight,b*this._scaledCellWidth,E*this._scaledCellHeight)},se.prototype._fillBottomLineAtCells=function(z,x,b){b===void 0&&(b=1),this._ctx.fillRect(z*this._scaledCellWidth,(x+1)*this._scaledCellHeight-window.devicePixelRatio-1,b*this._scaledCellWidth,window.devicePixelRatio)},se.prototype._fillLeftLineAtCell=function(z,x,b){this._ctx.fillRect(z*this._scaledCellWidth,x*this._scaledCellHeight,window.devicePixelRatio*b,this._scaledCellHeight)},se.prototype._strokeRectAtCell=function(z,x,b,E){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(z*this._scaledCellWidth+window.devicePixelRatio/2,x*this._scaledCellHeight+window.devicePixelRatio/2,b*this._scaledCellWidth-window.devicePixelRatio,E*this._scaledCellHeight-window.devicePixelRatio)},se.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},se.prototype._clearCells=function(z,x,b,E){this._alpha?this._ctx.clearRect(z*this._scaledCellWidth,x*this._scaledCellHeight,b*this._scaledCellWidth,E*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(z*this._scaledCellWidth,x*this._scaledCellHeight,b*this._scaledCellWidth,E*this._scaledCellHeight))},se.prototype._fillCharTrueColor=function(z,x,b){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(b),this._ctx.fillText(z.getChars(),x*this._scaledCellWidth+this._scaledCharLeft,b*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},se.prototype._drawChars=function(z,x,b){var E,re,ae=this._getContrastColor(z);ae||z.isFgRGB()||z.isBgRGB()?this._drawUncachedChars(z,x,b,ae):(z.isInverse()?(E=z.isBgDefault()?a.INVERTED_DEFAULT_COLOR:z.getBgColor(),re=z.isFgDefault()?a.INVERTED_DEFAULT_COLOR:z.getFgColor()):(re=z.isBgDefault()?Ue.DEFAULT_COLOR:z.getBgColor(),E=z.isFgDefault()?Ue.DEFAULT_COLOR:z.getFgColor()),E+=this._optionsService.options.drawBoldTextInBrightColors&&z.isBold()&&E<8?8:0,this._currentGlyphIdentifier.chars=z.getChars()||Ue.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=z.getCode()||Ue.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=re,this._currentGlyphIdentifier.fg=E,this._currentGlyphIdentifier.bold=!!z.isBold(),this._currentGlyphIdentifier.dim=!!z.isDim(),this._currentGlyphIdentifier.italic=!!z.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,x*this._scaledCellWidth+this._scaledCharLeft,b*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(z,x,b))},se.prototype._drawUncachedChars=function(z,x,b,E){if(this._ctx.save(),this._ctx.font=this._getFont(!!z.isBold(),!!z.isItalic()),this._ctx.textBaseline="middle",z.isInverse())if(E)this._ctx.fillStyle=E.css;else if(z.isBgDefault())this._ctx.fillStyle=oe.color.opaque(this._colors.background).css;else if(z.isBgRGB())this._ctx.fillStyle="rgb("+de.AttributeData.toColorRGB(z.getBgColor()).join(",")+")";else{var re=z.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&z.isBold()&&re<8&&(re+=8),this._ctx.fillStyle=this._colors.ansi[re].css}else if(E)this._ctx.fillStyle=E.css;else if(z.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(z.isFgRGB())this._ctx.fillStyle="rgb("+de.AttributeData.toColorRGB(z.getFgColor()).join(",")+")";else{var ae=z.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&z.isBold()&&ae<8&&(ae+=8),this._ctx.fillStyle=this._colors.ansi[ae].css}this._clipRow(b),z.isDim()&&(this._ctx.globalAlpha=a.DIM_OPACITY),this._ctx.fillText(z.getChars(),x*this._scaledCellWidth+this._scaledCharLeft,b*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},se.prototype._clipRow=function(z){this._ctx.beginPath(),this._ctx.rect(0,z*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},se.prototype._getFont=function(z,x){return(x?"italic":"")+" "+(z?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},se.prototype._getContrastColor=function(z){if(this._optionsService.options.minimumContrastRatio!==1){var x=this._colors.contrastCache.getColor(z.bg,z.fg);if(x!==void 0)return x||void 0;var b=z.getFgColor(),E=z.getFgColorMode(),re=z.getBgColor(),ae=z.getBgColorMode(),le=!!z.isInverse(),fe=!!z.isInverse();if(le){var ce=b;b=re,re=ce;var ue=E;E=ae,ae=ue}var ye=this._resolveBackgroundRgba(ae,re,le),Se=this._resolveForegroundRgba(E,b,le,fe),we=oe.rgba.ensureContrastRatio(ye,Se,this._optionsService.options.minimumContrastRatio);if(we){var xe={css:oe.channels.toCss(we>>24&255,we>>16&255,we>>8&255),rgba:we};return this._colors.contrastCache.setColor(z.bg,z.fg,xe),xe}this._colors.contrastCache.setColor(z.bg,z.fg,null)}},se.prototype._resolveBackgroundRgba=function(z,x,b){switch(z){case 16777216:case 33554432:return this._colors.ansi[x].rgba;case 50331648:return x<<8;case 0:default:return b?this._colors.foreground.rgba:this._colors.background.rgba}},se.prototype._resolveForegroundRgba=function(z,x,b,E){switch(z){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&E&&x<8&&(x+=8),this._colors.ansi[x].rgba;case 50331648:return x<<8;case 0:default:return b?this._colors.background.rgba:this._colors.foreground.rgba}},se}();Ce.BaseRenderLayer=ee},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.createDecorator=Ce.getServiceDependencies=Ce.serviceRegistry=void 0;function Ue(a,he,de){he.di$target===he?he.di$dependencies.push({id:a,index:de}):(he.di$dependencies=[{id:a,index:de}],he.di$target=he)}Ce.serviceRegistry=new Map,Ce.getServiceDependencies=function(a){return a.di$dependencies||[]},Ce.createDecorator=function(a){if(Ce.serviceRegistry.has(a))return Ce.serviceRegistry.get(a);var he=function(de,te,oe){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Ue(he,de,oe)};return he.toString=function(){return a},Ce.serviceRegistry.set(a,he),he}},function(pt,Ce,ve){"use strict";function Ue(a,he,de,te){if(de===void 0&&(de=0),te===void 0&&(te=a.length),de>=a.length)return a;de=(a.length+de)%a.length,te=te>=a.length?a.length:(a.length+te)%a.length;for(var oe=de;oe<te;++oe)a[oe]=he;return a}Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.concat=Ce.fillFallback=Ce.fill=void 0,Ce.fill=function(a,he,de,te){return a.fill?a.fill(he,de,te):Ue(a,he,de,te)},Ce.fillFallback=Ue,Ce.concat=function(a,he){var de=new a.constructor(a.length+he.length);return de.set(a),de.set(he,a.length),de}},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.BufferLine=Ce.DEFAULT_ATTR_DATA=void 0;var Ue=ve(8),a=ve(3),he=ve(4),de=ve(6);Ce.DEFAULT_ATTR_DATA=Object.freeze(new de.AttributeData);var te=function(){function oe(ne,ee,se){se===void 0&&(se=!1),this.isWrapped=se,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*ne);for(var z=ee||he.CellData.fromCharData([0,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),x=0;x<ne;++x)this.setCell(x,z);this.length=ne}return oe.prototype.get=function(ne){var ee=this._data[3*ne+0],se=2097151&ee;return[this._data[3*ne+1],2097152&ee?this._combined[ne]:se?Ue.stringFromCodePoint(se):"",ee>>22,2097152&ee?this._combined[ne].charCodeAt(this._combined[ne].length-1):se]},oe.prototype.set=function(ne,ee){this._data[3*ne+1]=ee[a.CHAR_DATA_ATTR_INDEX],ee[a.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[ne]=ee[1],this._data[3*ne+0]=2097152|ne|ee[a.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*ne+0]=ee[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|ee[a.CHAR_DATA_WIDTH_INDEX]<<22},oe.prototype.getWidth=function(ne){return this._data[3*ne+0]>>22},oe.prototype.hasWidth=function(ne){return 12582912&this._data[3*ne+0]},oe.prototype.getFg=function(ne){return this._data[3*ne+1]},oe.prototype.getBg=function(ne){return this._data[3*ne+2]},oe.prototype.hasContent=function(ne){return 4194303&this._data[3*ne+0]},oe.prototype.getCodePoint=function(ne){var ee=this._data[3*ne+0];return 2097152&ee?this._combined[ne].charCodeAt(this._combined[ne].length-1):2097151&ee},oe.prototype.isCombined=function(ne){return 2097152&this._data[3*ne+0]},oe.prototype.getString=function(ne){var ee=this._data[3*ne+0];return 2097152&ee?this._combined[ne]:2097151&ee?Ue.stringFromCodePoint(2097151&ee):""},oe.prototype.loadCell=function(ne,ee){var se=3*ne;return ee.content=this._data[se+0],ee.fg=this._data[se+1],ee.bg=this._data[se+2],2097152&ee.content&&(ee.combinedData=this._combined[ne]),268435456&ee.bg&&(ee.extended=this._extendedAttrs[ne]),ee},oe.prototype.setCell=function(ne,ee){2097152&ee.content&&(this._combined[ne]=ee.combinedData),268435456&ee.bg&&(this._extendedAttrs[ne]=ee.extended),this._data[3*ne+0]=ee.content,this._data[3*ne+1]=ee.fg,this._data[3*ne+2]=ee.bg},oe.prototype.setCellFromCodePoint=function(ne,ee,se,z,x,b){268435456&x&&(this._extendedAttrs[ne]=b),this._data[3*ne+0]=ee|se<<22,this._data[3*ne+1]=z,this._data[3*ne+2]=x},oe.prototype.addCodepointToCell=function(ne,ee){var se=this._data[3*ne+0];2097152&se?this._combined[ne]+=Ue.stringFromCodePoint(ee):(2097151&se?(this._combined[ne]=Ue.stringFromCodePoint(2097151&se)+Ue.stringFromCodePoint(ee),se&=-2097152,se|=2097152):se=ee|1<<22,this._data[3*ne+0]=se)},oe.prototype.insertCells=function(ne,ee,se,z){if((ne%=this.length)&&this.getWidth(ne-1)===2&&this.setCellFromCodePoint(ne-1,0,1,(z==null?void 0:z.fg)||0,(z==null?void 0:z.bg)||0,(z==null?void 0:z.extended)||new de.ExtendedAttrs),ee<this.length-ne){for(var x=new he.CellData,b=this.length-ne-ee-1;b>=0;--b)this.setCell(ne+ee+b,this.loadCell(ne+b,x));for(b=0;b<ee;++b)this.setCell(ne+b,se)}else for(b=ne;b<this.length;++b)this.setCell(b,se);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(z==null?void 0:z.fg)||0,(z==null?void 0:z.bg)||0,(z==null?void 0:z.extended)||new de.ExtendedAttrs)},oe.prototype.deleteCells=function(ne,ee,se,z){if(ne%=this.length,ee<this.length-ne){for(var x=new he.CellData,b=0;b<this.length-ne-ee;++b)this.setCell(ne+b,this.loadCell(ne+ee+b,x));for(b=this.length-ee;b<this.length;++b)this.setCell(b,se)}else for(b=ne;b<this.length;++b)this.setCell(b,se);ne&&this.getWidth(ne-1)===2&&this.setCellFromCodePoint(ne-1,0,1,(z==null?void 0:z.fg)||0,(z==null?void 0:z.bg)||0,(z==null?void 0:z.extended)||new de.ExtendedAttrs),this.getWidth(ne)!==0||this.hasContent(ne)||this.setCellFromCodePoint(ne,0,1,(z==null?void 0:z.fg)||0,(z==null?void 0:z.bg)||0,(z==null?void 0:z.extended)||new de.ExtendedAttrs)},oe.prototype.replaceCells=function(ne,ee,se,z){for(ne&&this.getWidth(ne-1)===2&&this.setCellFromCodePoint(ne-1,0,1,(z==null?void 0:z.fg)||0,(z==null?void 0:z.bg)||0,(z==null?void 0:z.extended)||new de.ExtendedAttrs),ee<this.length&&this.getWidth(ee-1)===2&&this.setCellFromCodePoint(ee,0,1,(z==null?void 0:z.fg)||0,(z==null?void 0:z.bg)||0,(z==null?void 0:z.extended)||new de.ExtendedAttrs);ne<ee&&ne<this.length;)this.setCell(ne++,se)},oe.prototype.resize=function(ne,ee){if(ne!==this.length){if(ne>this.length){var se=new Uint32Array(3*ne);this.length&&(3*ne<this._data.length?se.set(this._data.subarray(0,3*ne)):se.set(this._data)),this._data=se;for(var z=this.length;z<ne;++z)this.setCell(z,ee)}else if(ne){(se=new Uint32Array(3*ne)).set(this._data.subarray(0,3*ne)),this._data=se;var x=Object.keys(this._combined);for(z=0;z<x.length;z++){var b=parseInt(x[z],10);b>=ne&&delete this._combined[b]}}else this._data=new Uint32Array(0),this._combined={};this.length=ne}},oe.prototype.fill=function(ne){this._combined={},this._extendedAttrs={};for(var ee=0;ee<this.length;++ee)this.setCell(ee,ne)},oe.prototype.copyFrom=function(ne){for(var ee in this.length!==ne.length?this._data=new Uint32Array(ne._data):this._data.set(ne._data),this.length=ne.length,this._combined={},ne._combined)this._combined[ee]=ne._combined[ee];for(var ee in this._extendedAttrs={},ne._extendedAttrs)this._extendedAttrs[ee]=ne._extendedAttrs[ee];this.isWrapped=ne.isWrapped},oe.prototype.clone=function(){var ne=new oe(0);for(var ee in ne._data=new Uint32Array(this._data),ne.length=this.length,this._combined)ne._combined[ee]=this._combined[ee];for(var ee in this._extendedAttrs)ne._extendedAttrs[ee]=this._extendedAttrs[ee];return ne.isWrapped=this.isWrapped,ne},oe.prototype.getTrimmedLength=function(){for(var ne=this.length-1;ne>=0;--ne)if(4194303&this._data[3*ne+0])return ne+(this._data[3*ne+0]>>22);return 0},oe.prototype.copyCellsFrom=function(ne,ee,se,z,x){var b=ne._data;if(x)for(var E=z-1;E>=0;E--)for(var re=0;re<3;re++)this._data[3*(se+E)+re]=b[3*(ee+E)+re];else for(E=0;E<z;E++)for(re=0;re<3;re++)this._data[3*(se+E)+re]=b[3*(ee+E)+re];var ae=Object.keys(ne._combined);for(re=0;re<ae.length;re++){var le=parseInt(ae[re],10);le>=ee&&(this._combined[le-ee+se]=ne._combined[le])}},oe.prototype.translateToString=function(ne,ee,se){ne===void 0&&(ne=!1),ee===void 0&&(ee=0),se===void 0&&(se=this.length),ne&&(se=Math.min(se,this.getTrimmedLength()));for(var z="";ee<se;){var x=this._data[3*ee+0],b=2097151&x;z+=2097152&x?this._combined[ee]:b?Ue.stringFromCodePoint(b):a.WHITESPACE_CELL_CHAR,ee+=x>>22||1}return z},oe}();Ce.BufferLine=te},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.removeElementFromParent=void 0,Ce.removeElementFromParent=function(){for(var Ue,a=[],he=0;he<arguments.length;he++)a[he]=arguments[he];for(var de=0,te=a;de<te.length;de++){var oe=te[de];(Ue=oe==null?void 0:oe.parentElement)===null||Ue===void 0||Ue.removeChild(oe)}}},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.tooMuchOutput=Ce.promptLabel=void 0,Ce.promptLabel="Terminal input",Ce.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(Se,we){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,ge){xe.__proto__=ge}||function(xe,ge){for(var _e in ge)ge.hasOwnProperty(_e)&&(xe[_e]=ge[_e])})(Se,we)},function(Se,we){function xe(){this.constructor=Se}Ue(Se,we),Se.prototype=we===null?Object.create(we):(xe.prototype=we.prototype,new xe)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.InputHandler=Ce.WindowsOptionsReportType=void 0;var he,de=ve(12),te=ve(20),oe=ve(39),ne=ve(2),ee=ve(15),se=ve(8),z=ve(16),x=ve(0),b=ve(3),E=ve(4),re=ve(6),ae=ve(22),le=ve(24),fe={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function ce(Se,we){if(Se>24)return we.setWinLines||!1;switch(Se){case 1:return!!we.restoreWin;case 2:return!!we.minimizeWin;case 3:return!!we.setWinPosition;case 4:return!!we.setWinSizePixels;case 5:return!!we.raiseWin;case 6:return!!we.lowerWin;case 7:return!!we.refreshWin;case 8:return!!we.setWinSizeChars;case 9:return!!we.maximizeWin;case 10:return!!we.fullscreenWin;case 11:return!!we.getWinState;case 13:return!!we.getWinPosition;case 14:return!!we.getWinSizePixels;case 15:return!!we.getScreenSizePixels;case 16:return!!we.getCellSizePixels;case 18:return!!we.getWinSizeChars;case 19:return!!we.getScreenSizeChars;case 20:return!!we.getIconTitle;case 21:return!!we.getWinTitle;case 22:return!!we.pushTitle;case 23:return!!we.popTitle;case 24:return!!we.setWinLines}return!1}(function(Se){Se[Se.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",Se[Se.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(he=Ce.WindowsOptionsReportType||(Ce.WindowsOptionsReportType={}));var ue=function(){function Se(we,xe,ge,_e){this._bufferService=we,this._coreService=xe,this._logService=ge,this._optionsService=_e,this._data=new Uint32Array(0)}return Se.prototype.hook=function(we){this._data=new Uint32Array(0)},Se.prototype.put=function(we,xe,ge){this._data=ee.concat(this._data,we.subarray(xe,ge))},Se.prototype.unhook=function(we){if(we){var xe=se.utf32ToString(this._data);switch(this._data=new Uint32Array(0),xe){case'"q':return this._coreService.triggerDataEvent(de.C0.ESC+'P1$r0"q'+de.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(de.C0.ESC+'P1$r61;1"p'+de.C0.ESC+"\\");case"r":var ge=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(de.C0.ESC+"P1$r"+ge+de.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(de.C0.ESC+"P1$r0m"+de.C0.ESC+"\\");case" q":var _e={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return _e-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(de.C0.ESC+"P1$r"+_e+" q"+de.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",xe),this._coreService.triggerDataEvent(de.C0.ESC+"P0$r"+de.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},Se}(),ye=function(Se){function we(xe,ge,_e,be,Ae,Te,Le,ke,Pe){Pe===void 0&&(Pe=new oe.EscapeSequenceParser);var Oe=Se.call(this)||this;Oe._bufferService=xe,Oe._charsetService=ge,Oe._coreService=_e,Oe._dirtyRowService=be,Oe._logService=Ae,Oe._optionsService=Te,Oe._coreMouseService=Le,Oe._unicodeService=ke,Oe._parser=Pe,Oe._parseBuffer=new Uint32Array(4096),Oe._stringDecoder=new se.StringToUtf32,Oe._utf8Decoder=new se.Utf8ToUtf32,Oe._workCell=new E.CellData,Oe._windowTitle="",Oe._iconName="",Oe._windowTitleStack=[],Oe._iconNameStack=[],Oe._curAttrData=z.DEFAULT_ATTR_DATA.clone(),Oe._eraseAttrDataInternal=z.DEFAULT_ATTR_DATA.clone(),Oe._onRequestBell=new x.EventEmitter,Oe._onRequestRefreshRows=new x.EventEmitter,Oe._onRequestReset=new x.EventEmitter,Oe._onRequestScroll=new x.EventEmitter,Oe._onRequestSyncScrollBar=new x.EventEmitter,Oe._onRequestWindowsOptionsReport=new x.EventEmitter,Oe._onA11yChar=new x.EventEmitter,Oe._onA11yTab=new x.EventEmitter,Oe._onCursorMove=new x.EventEmitter,Oe._onLineFeed=new x.EventEmitter,Oe._onScroll=new x.EventEmitter,Oe._onTitleChange=new x.EventEmitter,Oe.register(Oe._parser),Oe._parser.setCsiHandlerFallback(function(Me,We){Oe._logService.debug("Unknown CSI code: ",{identifier:Oe._parser.identToString(Me),params:We.toArray()})}),Oe._parser.setEscHandlerFallback(function(Me){Oe._logService.debug("Unknown ESC code: ",{identifier:Oe._parser.identToString(Me)})}),Oe._parser.setExecuteHandlerFallback(function(Me){Oe._logService.debug("Unknown EXECUTE code: ",{code:Me})}),Oe._parser.setOscHandlerFallback(function(Me,We,it){Oe._logService.debug("Unknown OSC code: ",{identifier:Me,action:We,data:it})}),Oe._parser.setDcsHandlerFallback(function(Me,We,it){We==="HOOK"&&(it=it.toArray()),Oe._logService.debug("Unknown DCS code: ",{identifier:Oe._parser.identToString(Me),action:We,payload:it})}),Oe._parser.setPrintHandler(function(Me,We,it){return Oe.print(Me,We,it)}),Oe._parser.setCsiHandler({final:"@"},function(Me){return Oe.insertChars(Me)}),Oe._parser.setCsiHandler({intermediates:" ",final:"@"},function(Me){return Oe.scrollLeft(Me)}),Oe._parser.setCsiHandler({final:"A"},function(Me){return Oe.cursorUp(Me)}),Oe._parser.setCsiHandler({intermediates:" ",final:"A"},function(Me){return Oe.scrollRight(Me)}),Oe._parser.setCsiHandler({final:"B"},function(Me){return Oe.cursorDown(Me)}),Oe._parser.setCsiHandler({final:"C"},function(Me){return Oe.cursorForward(Me)}),Oe._parser.setCsiHandler({final:"D"},function(Me){return Oe.cursorBackward(Me)}),Oe._parser.setCsiHandler({final:"E"},function(Me){return Oe.cursorNextLine(Me)}),Oe._parser.setCsiHandler({final:"F"},function(Me){return Oe.cursorPrecedingLine(Me)}),Oe._parser.setCsiHandler({final:"G"},function(Me){return Oe.cursorCharAbsolute(Me)}),Oe._parser.setCsiHandler({final:"H"},function(Me){return Oe.cursorPosition(Me)}),Oe._parser.setCsiHandler({final:"I"},function(Me){return Oe.cursorForwardTab(Me)}),Oe._parser.setCsiHandler({final:"J"},function(Me){return Oe.eraseInDisplay(Me)}),Oe._parser.setCsiHandler({prefix:"?",final:"J"},function(Me){return Oe.eraseInDisplay(Me)}),Oe._parser.setCsiHandler({final:"K"},function(Me){return Oe.eraseInLine(Me)}),Oe._parser.setCsiHandler({prefix:"?",final:"K"},function(Me){return Oe.eraseInLine(Me)}),Oe._parser.setCsiHandler({final:"L"},function(Me){return Oe.insertLines(Me)}),Oe._parser.setCsiHandler({final:"M"},function(Me){return Oe.deleteLines(Me)}),Oe._parser.setCsiHandler({final:"P"},function(Me){return Oe.deleteChars(Me)}),Oe._parser.setCsiHandler({final:"S"},function(Me){return Oe.scrollUp(Me)}),Oe._parser.setCsiHandler({final:"T"},function(Me){return Oe.scrollDown(Me)}),Oe._parser.setCsiHandler({final:"X"},function(Me){return Oe.eraseChars(Me)}),Oe._parser.setCsiHandler({final:"Z"},function(Me){return Oe.cursorBackwardTab(Me)}),Oe._parser.setCsiHandler({final:"`"},function(Me){return Oe.charPosAbsolute(Me)}),Oe._parser.setCsiHandler({final:"a"},function(Me){return Oe.hPositionRelative(Me)}),Oe._parser.setCsiHandler({final:"b"},function(Me){return Oe.repeatPrecedingCharacter(Me)}),Oe._parser.setCsiHandler({final:"c"},function(Me){return Oe.sendDeviceAttributesPrimary(Me)}),Oe._parser.setCsiHandler({prefix:">",final:"c"},function(Me){return Oe.sendDeviceAttributesSecondary(Me)}),Oe._parser.setCsiHandler({final:"d"},function(Me){return Oe.linePosAbsolute(Me)}),Oe._parser.setCsiHandler({final:"e"},function(Me){return Oe.vPositionRelative(Me)}),Oe._parser.setCsiHandler({final:"f"},function(Me){return Oe.hVPosition(Me)}),Oe._parser.setCsiHandler({final:"g"},function(Me){return Oe.tabClear(Me)}),Oe._parser.setCsiHandler({final:"h"},function(Me){return Oe.setMode(Me)}),Oe._parser.setCsiHandler({prefix:"?",final:"h"},function(Me){return Oe.setModePrivate(Me)}),Oe._parser.setCsiHandler({final:"l"},function(Me){return Oe.resetMode(Me)}),Oe._parser.setCsiHandler({prefix:"?",final:"l"},function(Me){return Oe.resetModePrivate(Me)}),Oe._parser.setCsiHandler({final:"m"},function(Me){return Oe.charAttributes(Me)}),Oe._parser.setCsiHandler({final:"n"},function(Me){return Oe.deviceStatus(Me)}),Oe._parser.setCsiHandler({prefix:"?",final:"n"},function(Me){return Oe.deviceStatusPrivate(Me)}),Oe._parser.setCsiHandler({intermediates:"!",final:"p"},function(Me){return Oe.softReset(Me)}),Oe._parser.setCsiHandler({intermediates:" ",final:"q"},function(Me){return Oe.setCursorStyle(Me)}),Oe._parser.setCsiHandler({final:"r"},function(Me){return Oe.setScrollRegion(Me)}),Oe._parser.setCsiHandler({final:"s"},function(Me){return Oe.saveCursor(Me)}),Oe._parser.setCsiHandler({final:"t"},function(Me){return Oe.windowOptions(Me)}),Oe._parser.setCsiHandler({final:"u"},function(Me){return Oe.restoreCursor(Me)}),Oe._parser.setCsiHandler({intermediates:"'",final:"}"},function(Me){return Oe.insertColumns(Me)}),Oe._parser.setCsiHandler({intermediates:"'",final:"~"},function(Me){return Oe.deleteColumns(Me)}),Oe._parser.setExecuteHandler(de.C0.BEL,function(){return Oe.bell()}),Oe._parser.setExecuteHandler(de.C0.LF,function(){return Oe.lineFeed()}),Oe._parser.setExecuteHandler(de.C0.VT,function(){return Oe.lineFeed()}),Oe._parser.setExecuteHandler(de.C0.FF,function(){return Oe.lineFeed()}),Oe._parser.setExecuteHandler(de.C0.CR,function(){return Oe.carriageReturn()}),Oe._parser.setExecuteHandler(de.C0.BS,function(){return Oe.backspace()}),Oe._parser.setExecuteHandler(de.C0.HT,function(){return Oe.tab()}),Oe._parser.setExecuteHandler(de.C0.SO,function(){return Oe.shiftOut()}),Oe._parser.setExecuteHandler(de.C0.SI,function(){return Oe.shiftIn()}),Oe._parser.setExecuteHandler(de.C1.IND,function(){return Oe.index()}),Oe._parser.setExecuteHandler(de.C1.NEL,function(){return Oe.nextLine()}),Oe._parser.setExecuteHandler(de.C1.HTS,function(){return Oe.tabSet()}),Oe._parser.setOscHandler(0,new ae.OscHandler(function(Me){Oe.setTitle(Me),Oe.setIconName(Me)})),Oe._parser.setOscHandler(1,new ae.OscHandler(function(Me){return Oe.setIconName(Me)})),Oe._parser.setOscHandler(2,new ae.OscHandler(function(Me){return Oe.setTitle(Me)})),Oe._parser.setEscHandler({final:"7"},function(){return Oe.saveCursor()}),Oe._parser.setEscHandler({final:"8"},function(){return Oe.restoreCursor()}),Oe._parser.setEscHandler({final:"D"},function(){return Oe.index()}),Oe._parser.setEscHandler({final:"E"},function(){return Oe.nextLine()}),Oe._parser.setEscHandler({final:"H"},function(){return Oe.tabSet()}),Oe._parser.setEscHandler({final:"M"},function(){return Oe.reverseIndex()}),Oe._parser.setEscHandler({final:"="},function(){return Oe.keypadApplicationMode()}),Oe._parser.setEscHandler({final:">"},function(){return Oe.keypadNumericMode()}),Oe._parser.setEscHandler({final:"c"},function(){return Oe.fullReset()}),Oe._parser.setEscHandler({final:"n"},function(){return Oe.setgLevel(2)}),Oe._parser.setEscHandler({final:"o"},function(){return Oe.setgLevel(3)}),Oe._parser.setEscHandler({final:"|"},function(){return Oe.setgLevel(3)}),Oe._parser.setEscHandler({final:"}"},function(){return Oe.setgLevel(2)}),Oe._parser.setEscHandler({final:"~"},function(){return Oe.setgLevel(1)}),Oe._parser.setEscHandler({intermediates:"%",final:"@"},function(){return Oe.selectDefaultCharset()}),Oe._parser.setEscHandler({intermediates:"%",final:"G"},function(){return Oe.selectDefaultCharset()});var ze=function(Me){Ge._parser.setEscHandler({intermediates:"(",final:Me},function(){return Oe.selectCharset("("+Me)}),Ge._parser.setEscHandler({intermediates:")",final:Me},function(){return Oe.selectCharset(")"+Me)}),Ge._parser.setEscHandler({intermediates:"*",final:Me},function(){return Oe.selectCharset("*"+Me)}),Ge._parser.setEscHandler({intermediates:"+",final:Me},function(){return Oe.selectCharset("+"+Me)}),Ge._parser.setEscHandler({intermediates:"-",final:Me},function(){return Oe.selectCharset("-"+Me)}),Ge._parser.setEscHandler({intermediates:".",final:Me},function(){return Oe.selectCharset("."+Me)}),Ge._parser.setEscHandler({intermediates:"/",final:Me},function(){return Oe.selectCharset("/"+Me)})},Ge=this;for(var tt in te.CHARSETS)ze(tt);return Oe._parser.setEscHandler({intermediates:"#",final:"8"},function(){return Oe.screenAlignmentPattern()}),Oe._parser.setErrorHandler(function(Me){return Oe._logService.error("Parsing error: ",Me),Me}),Oe._parser.setDcsHandler({intermediates:"$",final:"q"},new ue(Oe._bufferService,Oe._coreService,Oe._logService,Oe._optionsService)),Oe}return a(we,Se),Object.defineProperty(we.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),we.prototype.dispose=function(){Se.prototype.dispose.call(this)},we.prototype.parse=function(xe){var ge=this._bufferService.buffer,_e=ge.x,be=ge.y;if(this._logService.debug("parsing data",xe),this._parseBuffer.length<xe.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(xe.length,131072))),this._dirtyRowService.clearRange(),xe.length>131072)for(var Ae=0;Ae<xe.length;Ae+=131072){var Te=Ae+131072<xe.length?Ae+131072:xe.length,Le=typeof xe=="string"?this._stringDecoder.decode(xe.substring(Ae,Te),this._parseBuffer):this._utf8Decoder.decode(xe.subarray(Ae,Te),this._parseBuffer);this._parser.parse(this._parseBuffer,Le)}else Le=typeof xe=="string"?this._stringDecoder.decode(xe,this._parseBuffer):this._utf8Decoder.decode(xe,this._parseBuffer),this._parser.parse(this._parseBuffer,Le);(ge=this._bufferService.buffer).x===_e&&ge.y===be||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},we.prototype.print=function(xe,ge,_e){var be,Ae,Te=this._bufferService.buffer,Le=this._charsetService.charset,ke=this._optionsService.options.screenReaderMode,Pe=this._bufferService.cols,Oe=this._coreService.decPrivateModes.wraparound,ze=this._coreService.modes.insertMode,Ge=this._curAttrData,tt=Te.lines.get(Te.ybase+Te.y);this._dirtyRowService.markDirty(Te.y),Te.x&&_e-ge>0&&tt.getWidth(Te.x-1)===2&&tt.setCellFromCodePoint(Te.x-1,0,1,Ge.fg,Ge.bg,Ge.extended);for(var Me=ge;Me<_e;++Me){if(be=xe[Me],Ae=this._unicodeService.wcwidth(be),be<127&&Le){var We=Le[String.fromCharCode(be)];We&&(be=We.charCodeAt(0))}if(ke&&this._onA11yChar.fire(se.stringFromCodePoint(be)),Ae||!Te.x){if(Te.x+Ae-1>=Pe){if(Oe){for(;Te.x<Pe;)tt.setCellFromCodePoint(Te.x++,0,1,Ge.fg,Ge.bg,Ge.extended);Te.x=0,Te.y++,Te.y===Te.scrollBottom+1?(Te.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(Te.y>=this._bufferService.rows&&(Te.y=this._bufferService.rows-1),Te.lines.get(Te.ybase+Te.y).isWrapped=!0),tt=Te.lines.get(Te.ybase+Te.y)}else if(Te.x=Pe-1,Ae===2)continue}if(ze&&(tt.insertCells(Te.x,Ae,Te.getNullCell(Ge),Ge),tt.getWidth(Pe-1)===2&&tt.setCellFromCodePoint(Pe-1,b.NULL_CELL_CODE,b.NULL_CELL_WIDTH,Ge.fg,Ge.bg,Ge.extended)),tt.setCellFromCodePoint(Te.x++,be,Ae,Ge.fg,Ge.bg,Ge.extended),Ae>0)for(;--Ae;)tt.setCellFromCodePoint(Te.x++,0,0,Ge.fg,Ge.bg,Ge.extended)}else tt.getWidth(Te.x-1)?tt.addCodepointToCell(Te.x-1,be):tt.addCodepointToCell(Te.x-2,be)}_e-ge>0&&(tt.loadCell(Te.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),Te.x<Pe&&_e-ge>0&&tt.getWidth(Te.x)===0&&!tt.hasContent(Te.x)&&tt.setCellFromCodePoint(Te.x,0,1,Ge.fg,Ge.bg,Ge.extended),this._dirtyRowService.markDirty(Te.y)},we.prototype.addCsiHandler=function(xe,ge){var _e=this;return xe.final!=="t"||xe.prefix||xe.intermediates?this._parser.addCsiHandler(xe,ge):this._parser.addCsiHandler(xe,function(be){return!ce(be.params[0],_e._optionsService.options.windowOptions)||ge(be)})},we.prototype.addDcsHandler=function(xe,ge){return this._parser.addDcsHandler(xe,new le.DcsHandler(ge))},we.prototype.addEscHandler=function(xe,ge){return this._parser.addEscHandler(xe,ge)},we.prototype.addOscHandler=function(xe,ge){return this._parser.addOscHandler(xe,new ae.OscHandler(ge))},we.prototype.bell=function(){this._onRequestBell.fire()},we.prototype.lineFeed=function(){var xe=this._bufferService.buffer;this._dirtyRowService.markDirty(xe.y),this._optionsService.options.convertEol&&(xe.x=0),xe.y++,xe.y===xe.scrollBottom+1?(xe.y--,this._onRequestScroll.fire(this._eraseAttrData())):xe.y>=this._bufferService.rows&&(xe.y=this._bufferService.rows-1),xe.x>=this._bufferService.cols&&xe.x--,this._dirtyRowService.markDirty(xe.y),this._onLineFeed.fire()},we.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},we.prototype.backspace=function(){var xe,ge=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(ge.x>0&&ge.x--);if(this._restrictCursor(this._bufferService.cols),ge.x>0)ge.x--;else if(ge.x===0&&ge.y>ge.scrollTop&&ge.y<=ge.scrollBottom&&(!((xe=ge.lines.get(ge.ybase+ge.y))===null||xe===void 0)&&xe.isWrapped)){ge.lines.get(ge.ybase+ge.y).isWrapped=!1,ge.y--,ge.x=this._bufferService.cols-1;var _e=ge.lines.get(ge.ybase+ge.y);_e.hasWidth(ge.x)&&!_e.hasContent(ge.x)&&ge.x--}this._restrictCursor()},we.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var xe=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-xe)}},we.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},we.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},we.prototype._restrictCursor=function(xe){xe===void 0&&(xe=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(xe,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},we.prototype._setCursor=function(xe,ge){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=xe,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+ge):(this._bufferService.buffer.x=xe,this._bufferService.buffer.y=ge),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},we.prototype._moveCursor=function(xe,ge){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+xe,this._bufferService.buffer.y+ge)},we.prototype.cursorUp=function(xe){var ge=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;ge>=0?this._moveCursor(0,-Math.min(ge,xe.params[0]||1)):this._moveCursor(0,-(xe.params[0]||1))},we.prototype.cursorDown=function(xe){var ge=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;ge>=0?this._moveCursor(0,Math.min(ge,xe.params[0]||1)):this._moveCursor(0,xe.params[0]||1)},we.prototype.cursorForward=function(xe){this._moveCursor(xe.params[0]||1,0)},we.prototype.cursorBackward=function(xe){this._moveCursor(-(xe.params[0]||1),0)},we.prototype.cursorNextLine=function(xe){this.cursorDown(xe),this._bufferService.buffer.x=0},we.prototype.cursorPrecedingLine=function(xe){this.cursorUp(xe),this._bufferService.buffer.x=0},we.prototype.cursorCharAbsolute=function(xe){this._setCursor((xe.params[0]||1)-1,this._bufferService.buffer.y)},we.prototype.cursorPosition=function(xe){this._setCursor(xe.length>=2?(xe.params[1]||1)-1:0,(xe.params[0]||1)-1)},we.prototype.charPosAbsolute=function(xe){this._setCursor((xe.params[0]||1)-1,this._bufferService.buffer.y)},we.prototype.hPositionRelative=function(xe){this._moveCursor(xe.params[0]||1,0)},we.prototype.linePosAbsolute=function(xe){this._setCursor(this._bufferService.buffer.x,(xe.params[0]||1)-1)},we.prototype.vPositionRelative=function(xe){this._moveCursor(0,xe.params[0]||1)},we.prototype.hVPosition=function(xe){this.cursorPosition(xe)},we.prototype.tabClear=function(xe){var ge=xe.params[0];ge===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:ge===3&&(this._bufferService.buffer.tabs={})},we.prototype.cursorForwardTab=function(xe){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var ge=xe.params[0]||1;ge--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},we.prototype.cursorBackwardTab=function(xe){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var ge=xe.params[0]||1,_e=this._bufferService.buffer;ge--;)_e.x=_e.prevStop()},we.prototype._eraseInBufferLine=function(xe,ge,_e,be){be===void 0&&(be=!1);var Ae=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+xe);Ae.replaceCells(ge,_e,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),be&&(Ae.isWrapped=!1)},we.prototype._resetBufferLine=function(xe){var ge=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+xe);ge.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),ge.isWrapped=!1},we.prototype.eraseInDisplay=function(xe){var ge;switch(this._restrictCursor(),xe.params[0]){case 0:for(ge=this._bufferService.buffer.y,this._dirtyRowService.markDirty(ge),this._eraseInBufferLine(ge++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);ge<this._bufferService.rows;ge++)this._resetBufferLine(ge);this._dirtyRowService.markDirty(ge);break;case 1:for(ge=this._bufferService.buffer.y,this._dirtyRowService.markDirty(ge),this._eraseInBufferLine(ge,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(ge+1).isWrapped=!1);ge--;)this._resetBufferLine(ge);this._dirtyRowService.markDirty(0);break;case 2:for(ge=this._bufferService.rows,this._dirtyRowService.markDirty(ge-1);ge--;)this._resetBufferLine(ge);this._dirtyRowService.markDirty(0);break;case 3:var _e=this._bufferService.buffer.lines.length-this._bufferService.rows;_e>0&&(this._bufferService.buffer.lines.trimStart(_e),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-_e,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-_e,0),this._onScroll.fire(0))}},we.prototype.eraseInLine=function(xe){switch(this._restrictCursor(),xe.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},we.prototype.insertLines=function(xe){this._restrictCursor();var ge=xe.params[0]||1,_e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){for(var be=_e.ybase+_e.y,Ae=this._bufferService.rows-1-_e.scrollBottom,Te=this._bufferService.rows-1+_e.ybase-Ae+1;ge--;)_e.lines.splice(Te-1,1),_e.lines.splice(be,0,_e.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_e.y,_e.scrollBottom),_e.x=0}},we.prototype.deleteLines=function(xe){this._restrictCursor();var ge=xe.params[0]||1,_e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){var be,Ae=_e.ybase+_e.y;for(be=this._bufferService.rows-1-_e.scrollBottom,be=this._bufferService.rows-1+_e.ybase-be;ge--;)_e.lines.splice(Ae,1),_e.lines.splice(be,0,_e.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_e.y,_e.scrollBottom),_e.x=0}},we.prototype.insertChars=function(xe){this._restrictCursor();var ge=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);ge&&(ge.insertCells(this._bufferService.buffer.x,xe.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},we.prototype.deleteChars=function(xe){this._restrictCursor();var ge=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);ge&&(ge.deleteCells(this._bufferService.buffer.x,xe.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},we.prototype.scrollUp=function(xe){for(var ge=xe.params[0]||1,_e=this._bufferService.buffer;ge--;)_e.lines.splice(_e.ybase+_e.scrollTop,1),_e.lines.splice(_e.ybase+_e.scrollBottom,0,_e.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)},we.prototype.scrollDown=function(xe){for(var ge=xe.params[0]||1,_e=this._bufferService.buffer;ge--;)_e.lines.splice(_e.ybase+_e.scrollBottom,1),_e.lines.splice(_e.ybase+_e.scrollTop,0,_e.getBlankLine(z.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)},we.prototype.scrollLeft=function(xe){var ge=this._bufferService.buffer;if(!(ge.y>ge.scrollBottom||ge.y<ge.scrollTop)){for(var _e=xe.params[0]||1,be=ge.scrollTop;be<=ge.scrollBottom;++be){var Ae=ge.lines.get(ge.ybase+be);Ae.deleteCells(0,_e,ge.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ae.isWrapped=!1}this._dirtyRowService.markRangeDirty(ge.scrollTop,ge.scrollBottom)}},we.prototype.scrollRight=function(xe){var ge=this._bufferService.buffer;if(!(ge.y>ge.scrollBottom||ge.y<ge.scrollTop)){for(var _e=xe.params[0]||1,be=ge.scrollTop;be<=ge.scrollBottom;++be){var Ae=ge.lines.get(ge.ybase+be);Ae.insertCells(0,_e,ge.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ae.isWrapped=!1}this._dirtyRowService.markRangeDirty(ge.scrollTop,ge.scrollBottom)}},we.prototype.insertColumns=function(xe){var ge=this._bufferService.buffer;if(!(ge.y>ge.scrollBottom||ge.y<ge.scrollTop)){for(var _e=xe.params[0]||1,be=ge.scrollTop;be<=ge.scrollBottom;++be){var Ae=this._bufferService.buffer.lines.get(ge.ybase+be);Ae.insertCells(ge.x,_e,ge.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ae.isWrapped=!1}this._dirtyRowService.markRangeDirty(ge.scrollTop,ge.scrollBottom)}},we.prototype.deleteColumns=function(xe){var ge=this._bufferService.buffer;if(!(ge.y>ge.scrollBottom||ge.y<ge.scrollTop)){for(var _e=xe.params[0]||1,be=ge.scrollTop;be<=ge.scrollBottom;++be){var Ae=ge.lines.get(ge.ybase+be);Ae.deleteCells(ge.x,_e,ge.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ae.isWrapped=!1}this._dirtyRowService.markRangeDirty(ge.scrollTop,ge.scrollBottom)}},we.prototype.eraseChars=function(xe){this._restrictCursor();var ge=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);ge&&(ge.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(xe.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},we.prototype.repeatPrecedingCharacter=function(xe){if(this._parser.precedingCodepoint){for(var ge=xe.params[0]||1,_e=new Uint32Array(ge),be=0;be<ge;++be)_e[be]=this._parser.precedingCodepoint;this.print(_e,0,_e.length)}},we.prototype.sendDeviceAttributesPrimary=function(xe){xe.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(de.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(de.C0.ESC+"[?6c"))},we.prototype.sendDeviceAttributesSecondary=function(xe){xe.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(de.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(de.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(xe.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(de.C0.ESC+"[>83;40003;0c"))},we.prototype._is=function(xe){return(this._optionsService.options.termName+"").indexOf(xe)===0},we.prototype.setMode=function(xe){for(var ge=0;ge<xe.length;ge++)switch(xe.params[ge]){case 4:this._coreService.modes.insertMode=!0}},we.prototype.setModePrivate=function(xe){for(var ge=0;ge<xe.length;ge++)switch(xe.params[ge]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,te.DEFAULT_CHARSET),this._charsetService.setgCharset(1,te.DEFAULT_CHARSET),this._charsetService.setgCharset(2,te.DEFAULT_CHARSET),this._charsetService.setgCharset(3,te.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},we.prototype.resetMode=function(xe){for(var ge=0;ge<xe.length;ge++)switch(xe.params[ge]){case 4:this._coreService.modes.insertMode=!1}},we.prototype.resetModePrivate=function(xe){for(var ge=0;ge<xe.length;ge++)switch(xe.params[ge]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),xe.params[ge]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},we.prototype._updateAttrColor=function(xe,ge,_e,be,Ae){return ge===2?(xe|=50331648,xe&=-16777216,xe|=re.AttributeData.fromColorRGB([_e,be,Ae])):ge===5&&(xe&=-50331904,xe|=33554432|255&_e),xe},we.prototype._extractColor=function(xe,ge,_e){var be=[0,0,-1,0,0,0],Ae=0,Te=0;do{if(be[Te+Ae]=xe.params[ge+Te],xe.hasSubParams(ge+Te)){var Le=xe.getSubParams(ge+Te),ke=0;do be[1]===5&&(Ae=1),be[Te+ke+1+Ae]=Le[ke];while(++ke<Le.length&&ke+Te+1+Ae<be.length);break}if(be[1]===5&&Te+Ae>=2||be[1]===2&&Te+Ae>=5)break;be[1]&&(Ae=1)}while(++Te+ge<xe.length&&Te+Ae<be.length);for(ke=2;ke<be.length;++ke)be[ke]===-1&&(be[ke]=0);switch(be[0]){case 38:_e.fg=this._updateAttrColor(_e.fg,be[1],be[3],be[4],be[5]);break;case 48:_e.bg=this._updateAttrColor(_e.bg,be[1],be[3],be[4],be[5]);break;case 58:_e.extended=_e.extended.clone(),_e.extended.underlineColor=this._updateAttrColor(_e.extended.underlineColor,be[1],be[3],be[4],be[5])}return Te},we.prototype._processUnderline=function(xe,ge){ge.extended=ge.extended.clone(),(!~xe||xe>5)&&(xe=1),ge.extended.underlineStyle=xe,ge.fg|=268435456,xe===0&&(ge.fg&=-268435457),ge.updateExtended()},we.prototype.charAttributes=function(xe){if(xe.length===1&&xe.params[0]===0)return this._curAttrData.fg=z.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=z.DEFAULT_ATTR_DATA.bg);for(var ge,_e=xe.length,be=this._curAttrData,Ae=0;Ae<_e;Ae++)(ge=xe.params[Ae])>=30&&ge<=37?(be.fg&=-50331904,be.fg|=16777216|ge-30):ge>=40&&ge<=47?(be.bg&=-50331904,be.bg|=16777216|ge-40):ge>=90&&ge<=97?(be.fg&=-50331904,be.fg|=16777224|ge-90):ge>=100&&ge<=107?(be.bg&=-50331904,be.bg|=16777224|ge-100):ge===0?(be.fg=z.DEFAULT_ATTR_DATA.fg,be.bg=z.DEFAULT_ATTR_DATA.bg):ge===1?be.fg|=134217728:ge===3?be.bg|=67108864:ge===4?(be.fg|=268435456,this._processUnderline(xe.hasSubParams(Ae)?xe.getSubParams(Ae)[0]:1,be)):ge===5?be.fg|=536870912:ge===7?be.fg|=67108864:ge===8?be.fg|=1073741824:ge===2?be.bg|=134217728:ge===21?this._processUnderline(2,be):ge===22?(be.fg&=-134217729,be.bg&=-134217729):ge===23?be.bg&=-67108865:ge===24?be.fg&=-268435457:ge===25?be.fg&=-536870913:ge===27?be.fg&=-67108865:ge===28?be.fg&=-1073741825:ge===39?(be.fg&=-67108864,be.fg|=16777215&z.DEFAULT_ATTR_DATA.fg):ge===49?(be.bg&=-67108864,be.bg|=16777215&z.DEFAULT_ATTR_DATA.bg):ge===38||ge===48||ge===58?Ae+=this._extractColor(xe,Ae,be):ge===59?(be.extended=be.extended.clone(),be.extended.underlineColor=-1,be.updateExtended()):ge===100?(be.fg&=-67108864,be.fg|=16777215&z.DEFAULT_ATTR_DATA.fg,be.bg&=-67108864,be.bg|=16777215&z.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",ge)},we.prototype.deviceStatus=function(xe){switch(xe.params[0]){case 5:this._coreService.triggerDataEvent(de.C0.ESC+"[0n");break;case 6:var ge=this._bufferService.buffer.y+1,_e=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(de.C0.ESC+"["+ge+";"+_e+"R")}},we.prototype.deviceStatusPrivate=function(xe){switch(xe.params[0]){case 6:var ge=this._bufferService.buffer.y+1,_e=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(de.C0.ESC+"[?"+ge+";"+_e+"R")}},we.prototype.softReset=function(xe){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=z.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},we.prototype.setCursorStyle=function(xe){var ge=xe.params[0]||1;switch(ge){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var _e=ge%2==1;this._optionsService.options.cursorBlink=_e},we.prototype.setScrollRegion=function(xe){var ge,_e=xe.params[0]||1;(xe.length<2||(ge=xe.params[1])>this._bufferService.rows||ge===0)&&(ge=this._bufferService.rows),ge>_e&&(this._bufferService.buffer.scrollTop=_e-1,this._bufferService.buffer.scrollBottom=ge-1,this._setCursor(0,0))},we.prototype.windowOptions=function(xe){if(ce(xe.params[0],this._optionsService.options.windowOptions)){var ge=xe.length>1?xe.params[1]:0;switch(xe.params[0]){case 14:ge!==2&&this._onRequestWindowsOptionsReport.fire(he.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(he.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(de.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:ge!==0&&ge!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),ge!==0&&ge!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:ge!==0&&ge!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),ge!==0&&ge!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},we.prototype.saveCursor=function(xe){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},we.prototype.restoreCursor=function(xe){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},we.prototype.setTitle=function(xe){this._windowTitle=xe,this._onTitleChange.fire(xe)},we.prototype.setIconName=function(xe){this._iconName=xe},we.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},we.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},we.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},we.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,te.DEFAULT_CHARSET)},we.prototype.selectCharset=function(xe){xe.length===2?xe[0]!=="/"&&this._charsetService.setgCharset(fe[xe[0]],te.CHARSETS[xe[1]]||te.DEFAULT_CHARSET):this.selectDefaultCharset()},we.prototype.index=function(){this._restrictCursor();var xe=this._bufferService.buffer;this._bufferService.buffer.y++,xe.y===xe.scrollBottom+1?(xe.y--,this._onRequestScroll.fire(this._eraseAttrData())):xe.y>=this._bufferService.rows&&(xe.y=this._bufferService.rows-1),this._restrictCursor()},we.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},we.prototype.reverseIndex=function(){this._restrictCursor();var xe=this._bufferService.buffer;if(xe.y===xe.scrollTop){var ge=xe.scrollBottom-xe.scrollTop;xe.lines.shiftElements(xe.ybase+xe.y,ge,1),xe.lines.set(xe.ybase+xe.y,xe.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(xe.scrollTop,xe.scrollBottom)}else xe.y--,this._restrictCursor()},we.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},we.prototype.reset=function(){this._curAttrData=z.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=z.DEFAULT_ATTR_DATA.clone()},we.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},we.prototype.setgLevel=function(xe){this._charsetService.setgLevel(xe)},we.prototype.screenAlignmentPattern=function(){var xe=new E.CellData;xe.content=1<<22|69,xe.fg=this._curAttrData.fg,xe.bg=this._curAttrData.bg;var ge=this._bufferService.buffer;this._setCursor(0,0);for(var _e=0;_e<this._bufferService.rows;++_e){var be=ge.ybase+ge.y+_e,Ae=ge.lines.get(be);Ae&&(Ae.fill(xe),Ae.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},we}(ne.Disposable);Ce.InputHandler=ye},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.DEFAULT_CHARSET=Ce.CHARSETS=void 0,Ce.CHARSETS={},Ce.DEFAULT_CHARSET=Ce.CHARSETS.B,Ce.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},Ce.CHARSETS.A={"#":"\xA3"},Ce.CHARSETS.B=void 0,Ce.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},Ce.CHARSETS.C=Ce.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},Ce.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},Ce.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},Ce.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},Ce.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},Ce.CHARSETS.E=Ce.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},Ce.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},Ce.CHARSETS.H=Ce.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},Ce.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.Params=void 0;var Ue=function(){function a(he,de){if(he===void 0&&(he=32),de===void 0&&(de=32),this.maxLength=he,this.maxSubParamsLength=de,de>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(he),this.length=0,this._subParams=new Int32Array(de),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(he),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return a.fromArray=function(he){var de=new a;if(!he.length)return de;for(var te=he[0]instanceof Array?1:0;te<he.length;++te){var oe=he[te];if(oe instanceof Array)for(var ne=0;ne<oe.length;++ne)de.addSubParam(oe[ne]);else de.addParam(oe)}return de},a.prototype.clone=function(){var he=new a(this.maxLength,this.maxSubParamsLength);return he.params.set(this.params),he.length=this.length,he._subParams.set(this._subParams),he._subParamsLength=this._subParamsLength,he._subParamsIdx.set(this._subParamsIdx),he._rejectDigits=this._rejectDigits,he._rejectSubDigits=this._rejectSubDigits,he._digitIsSub=this._digitIsSub,he},a.prototype.toArray=function(){for(var he=[],de=0;de<this.length;++de){he.push(this.params[de]);var te=this._subParamsIdx[de]>>8,oe=255&this._subParamsIdx[de];oe-te>0&&he.push(Array.prototype.slice.call(this._subParams,te,oe))}return he},a.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},a.prototype.addParam=function(he){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(he<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=he>2147483647?2147483647:he}},a.prototype.addSubParam=function(he){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(he<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=he>2147483647?2147483647:he,this._subParamsIdx[this.length-1]++}},a.prototype.hasSubParams=function(he){return(255&this._subParamsIdx[he])-(this._subParamsIdx[he]>>8)>0},a.prototype.getSubParams=function(he){var de=this._subParamsIdx[he]>>8,te=255&this._subParamsIdx[he];return te-de>0?this._subParams.subarray(de,te):null},a.prototype.getSubParamsAll=function(){for(var he={},de=0;de<this.length;++de){var te=this._subParamsIdx[de]>>8,oe=255&this._subParamsIdx[de];oe-te>0&&(he[de]=this._subParams.slice(te,oe))}return he},a.prototype.addDigit=function(he){var de;if(!(this._rejectDigits||!(de=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var te=this._digitIsSub?this._subParams:this.params,oe=te[de-1];te[de-1]=~oe?Math.min(10*oe+he,2147483647):he}},a}();Ce.Params=Ue},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.OscHandler=Ce.OscParser=void 0;var Ue=ve(23),a=ve(8),he=function(){function te(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return te.prototype.addHandler=function(oe,ne){this._handlers[oe]===void 0&&(this._handlers[oe]=[]);var ee=this._handlers[oe];return ee.push(ne),{dispose:function(){var se=ee.indexOf(ne);se!==-1&&ee.splice(se,1)}}},te.prototype.setHandler=function(oe,ne){this._handlers[oe]=[ne]},te.prototype.clearHandler=function(oe){this._handlers[oe]&&delete this._handlers[oe]},te.prototype.setHandlerFallback=function(oe){this._handlerFb=oe},te.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},te.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},te.prototype._start=function(){var oe=this._handlers[this._id];if(oe)for(var ne=oe.length-1;ne>=0;ne--)oe[ne].start();else this._handlerFb(this._id,"START")},te.prototype._put=function(oe,ne,ee){var se=this._handlers[this._id];if(se)for(var z=se.length-1;z>=0;z--)se[z].put(oe,ne,ee);else this._handlerFb(this._id,"PUT",a.utf32ToString(oe,ne,ee))},te.prototype._end=function(oe){var ne=this._handlers[this._id];if(ne){for(var ee=ne.length-1;ee>=0&&ne[ee].end(oe)===!1;ee--);for(ee--;ee>=0;ee--)ne[ee].end(!1)}else this._handlerFb(this._id,"END",oe)},te.prototype.start=function(){this.reset(),this._id=-1,this._state=1},te.prototype.put=function(oe,ne,ee){if(this._state!==3){if(this._state===1)for(;ne<ee;){var se=oe[ne++];if(se===59){this._state=2,this._start();break}if(se<48||57<se)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+se-48}this._state===2&&ee-ne>0&&this._put(oe,ne,ee)}},te.prototype.end=function(oe){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(oe)),this._id=-1,this._state=0)},te}();Ce.OscParser=he;var de=function(){function te(oe){this._handler=oe,this._data="",this._hitLimit=!1}return te.prototype.start=function(){this._data="",this._hitLimit=!1},te.prototype.put=function(oe,ne,ee){this._hitLimit||(this._data+=a.utf32ToString(oe,ne,ee),this._data.length>Ue.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},te.prototype.end=function(oe){var ne;return this._hitLimit?ne=!1:oe&&(ne=this._handler(this._data)),this._data="",this._hitLimit=!1,ne},te}();Ce.OscHandler=de},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.PAYLOAD_LIMIT=void 0,Ce.PAYLOAD_LIMIT=1e7},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.DcsHandler=Ce.DcsParser=void 0;var Ue=ve(8),a=ve(21),he=ve(23),de=[],te=function(){function ne(){this._handlers=Object.create(null),this._active=de,this._ident=0,this._handlerFb=function(){}}return ne.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},ne.prototype.addHandler=function(ee,se){this._handlers[ee]===void 0&&(this._handlers[ee]=[]);var z=this._handlers[ee];return z.push(se),{dispose:function(){var x=z.indexOf(se);x!==-1&&z.splice(x,1)}}},ne.prototype.setHandler=function(ee,se){this._handlers[ee]=[se]},ne.prototype.clearHandler=function(ee){this._handlers[ee]&&delete this._handlers[ee]},ne.prototype.setHandlerFallback=function(ee){this._handlerFb=ee},ne.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=de,this._ident=0},ne.prototype.hook=function(ee,se){if(this.reset(),this._ident=ee,this._active=this._handlers[ee]||de,this._active.length)for(var z=this._active.length-1;z>=0;z--)this._active[z].hook(se);else this._handlerFb(this._ident,"HOOK",se)},ne.prototype.put=function(ee,se,z){if(this._active.length)for(var x=this._active.length-1;x>=0;x--)this._active[x].put(ee,se,z);else this._handlerFb(this._ident,"PUT",Ue.utf32ToString(ee,se,z))},ne.prototype.unhook=function(ee){if(this._active.length){for(var se=this._active.length-1;se>=0&&this._active[se].unhook(ee)===!1;se--);for(se--;se>=0;se--)this._active[se].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",ee);this._active=de,this._ident=0},ne}();Ce.DcsParser=te;var oe=function(){function ne(ee){this._handler=ee,this._data="",this._hitLimit=!1}return ne.prototype.hook=function(ee){this._params=ee.clone(),this._data="",this._hitLimit=!1},ne.prototype.put=function(ee,se,z){this._hitLimit||(this._data+=Ue.utf32ToString(ee,se,z),this._data.length>he.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},ne.prototype.unhook=function(ee){var se;return this._hitLimit?se=!1:ee&&(se=this._handler(this._data,this._params||new a.Params)),this._params=void 0,this._data="",this._hitLimit=!1,se},ne}();Ce.DcsHandler=oe},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.removeTerminalFromCache=Ce.acquireCharAtlas=void 0;var Ue=ve(26),a=ve(43),he=[];Ce.acquireCharAtlas=function(de,te,oe,ne,ee){for(var se=Ue.generateConfig(ne,ee,de,oe),z=0;z<he.length;z++){var x=(b=he[z]).ownedBy.indexOf(te);if(x>=0){if(Ue.configEquals(b.config,se))return b.atlas;b.ownedBy.length===1?(b.atlas.dispose(),he.splice(z,1)):b.ownedBy.splice(x,1);break}}for(z=0;z<he.length;z++){var b=he[z];if(Ue.configEquals(b.config,se))return b.ownedBy.push(te),b.atlas}var E={atlas:new a.DynamicCharAtlas(document,se),config:se,ownedBy:[te]};return he.push(E),E.atlas},Ce.removeTerminalFromCache=function(de){for(var te=0;te<he.length;te++){var oe=he[te].ownedBy.indexOf(de);if(oe!==-1){he[te].ownedBy.length===1?(he[te].atlas.dispose(),he.splice(te,1)):he[te].ownedBy.splice(oe,1);break}}}},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.is256Color=Ce.configEquals=Ce.generateConfig=void 0;var Ue=ve(3);Ce.generateConfig=function(a,he,de,te){var oe={foreground:te.foreground,background:te.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:te.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:a,scaledCharHeight:he,fontFamily:de.fontFamily,fontSize:de.fontSize,fontWeight:de.fontWeight,fontWeightBold:de.fontWeightBold,allowTransparency:de.allowTransparency,colors:oe}},Ce.configEquals=function(a,he){for(var de=0;de<a.colors.ansi.length;de++)if(a.colors.ansi[de].rgba!==he.colors.ansi[de].rgba)return!1;return a.devicePixelRatio===he.devicePixelRatio&&a.fontFamily===he.fontFamily&&a.fontSize===he.fontSize&&a.fontWeight===he.fontWeight&&a.fontWeightBold===he.fontWeightBold&&a.allowTransparency===he.allowTransparency&&a.scaledCharWidth===he.scaledCharWidth&&a.scaledCharHeight===he.scaledCharHeight&&a.colors.foreground===he.colors.foreground&&a.colors.background===he.colors.background},Ce.is256Color=function(a){return a<Ue.DEFAULT_COLOR}},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.ColorManager=Ce.DEFAULT_ANSI_COLORS=void 0;var Ue=ve(10),a=ve(45),he=Ue.css.toColor("#ffffff"),de=Ue.css.toColor("#000000"),te=Ue.css.toColor("#ffffff"),oe=Ue.css.toColor("#000000"),ne={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};Ce.DEFAULT_ANSI_COLORS=function(){for(var se=[Ue.css.toColor("#2e3436"),Ue.css.toColor("#cc0000"),Ue.css.toColor("#4e9a06"),Ue.css.toColor("#c4a000"),Ue.css.toColor("#3465a4"),Ue.css.toColor("#75507b"),Ue.css.toColor("#06989a"),Ue.css.toColor("#d3d7cf"),Ue.css.toColor("#555753"),Ue.css.toColor("#ef2929"),Ue.css.toColor("#8ae234"),Ue.css.toColor("#fce94f"),Ue.css.toColor("#729fcf"),Ue.css.toColor("#ad7fa8"),Ue.css.toColor("#34e2e2"),Ue.css.toColor("#eeeeec")],z=[0,95,135,175,215,255],x=0;x<216;x++){var b=z[x/36%6|0],E=z[x/6%6|0],re=z[x%6];se.push({css:Ue.channels.toCss(b,E,re),rgba:Ue.channels.toRgba(b,E,re)})}for(x=0;x<24;x++){var ae=8+10*x;se.push({css:Ue.channels.toCss(ae,ae,ae),rgba:Ue.channels.toRgba(ae,ae,ae)})}return se}();var ee=function(){function se(z,x){this.allowTransparency=x;var b=z.createElement("canvas");b.width=1,b.height=1;var E=b.getContext("2d");if(!E)throw new Error("Could not get rendering context");this._ctx=E,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new a.ColorContrastCache,this.colors={foreground:he,background:de,cursor:te,cursorAccent:oe,selectionTransparent:ne,selectionOpaque:Ue.color.blend(de,ne),ansi:Ce.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return se.prototype.onOptionsChange=function(z){z==="minimumContrastRatio"&&this._contrastCache.clear()},se.prototype.setTheme=function(z){z===void 0&&(z={}),this.colors.foreground=this._parseColor(z.foreground,he),this.colors.background=this._parseColor(z.background,de),this.colors.cursor=this._parseColor(z.cursor,te,!0),this.colors.cursorAccent=this._parseColor(z.cursorAccent,oe,!0),this.colors.selectionTransparent=this._parseColor(z.selection,ne,!0),this.colors.selectionOpaque=Ue.color.blend(this.colors.background,this.colors.selectionTransparent),Ue.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=Ue.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(z.black,Ce.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(z.red,Ce.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(z.green,Ce.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(z.yellow,Ce.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(z.blue,Ce.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(z.magenta,Ce.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(z.cyan,Ce.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(z.white,Ce.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(z.brightBlack,Ce.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(z.brightRed,Ce.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(z.brightGreen,Ce.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(z.brightYellow,Ce.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(z.brightBlue,Ce.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(z.brightMagenta,Ce.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(z.brightCyan,Ce.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(z.brightWhite,Ce.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},se.prototype._parseColor=function(z,x,b){if(b===void 0&&(b=this.allowTransparency),z===void 0)return x;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=z,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+z+" is invalid using fallback "+x.css),x;this._ctx.fillRect(0,0,1,1);var E=this._ctx.getImageData(0,0,1,1).data;if(E[3]!==255){if(!b)return console.warn("Color: "+z+" is using transparency, but allowTransparency is false. Using fallback "+x.css+"."),x;var re=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(ye){return Number(ye)}),ae=re[0],le=re[1],fe=re[2],ce=re[3],ue=Math.round(255*ce);return{rgba:Ue.channels.toRgba(ae,le,fe,ue),css:z}}return{css:this._ctx.fillStyle,rgba:Ue.channels.toRgba(E[0],E[1],E[2],E[3])}},se}();Ce.ColorManager=ee},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.throwIfFalsy=void 0,Ce.throwIfFalsy=function(Ue){if(!Ue)throw new Error("value must not be falsy");return Ue}},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(ee,se){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,x){z.__proto__=x}||function(z,x){for(var b in x)x.hasOwnProperty(b)&&(z[b]=x[b])})(ee,se)},function(ee,se){function z(){this.constructor=ee}Ue(ee,se),ee.prototype=se===null?Object.create(se):(z.prototype=se.prototype,new z)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.CharacterJoinerRegistry=Ce.JoinedCellData=void 0;var he=ve(6),de=ve(3),te=ve(4),oe=function(ee){function se(z,x,b){var E=ee.call(this)||this;return E.content=0,E.combinedData="",E.fg=z.fg,E.bg=z.bg,E.combinedData=x,E._width=b,E}return a(se,ee),se.prototype.isCombined=function(){return 2097152},se.prototype.getWidth=function(){return this._width},se.prototype.getChars=function(){return this.combinedData},se.prototype.getCode=function(){return 2097151},se.prototype.setFromCharData=function(z){throw new Error("not implemented")},se.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},se}(he.AttributeData);Ce.JoinedCellData=oe;var ne=function(){function ee(se){this._bufferService=se,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new te.CellData}return ee.prototype.registerCharacterJoiner=function(se){var z={id:this._nextCharacterJoinerId++,handler:se};return this._characterJoiners.push(z),z.id},ee.prototype.deregisterCharacterJoiner=function(se){for(var z=0;z<this._characterJoiners.length;z++)if(this._characterJoiners[z].id===se)return this._characterJoiners.splice(z,1),!0;return!1},ee.prototype.getJoinedCharacters=function(se){if(this._characterJoiners.length===0)return[];var z=this._bufferService.buffer.lines.get(se);if(!z||z.length===0)return[];for(var x=[],b=z.translateToString(!0),E=0,re=0,ae=0,le=z.getFg(0),fe=z.getBg(0),ce=0;ce<z.getTrimmedLength();ce++)if(z.loadCell(ce,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==le||this._workCell.bg!==fe){if(ce-E>1)for(var ue=this._getJoinedRanges(b,ae,re,z,E),ye=0;ye<ue.length;ye++)x.push(ue[ye]);E=ce,ae=re,le=this._workCell.fg,fe=this._workCell.bg}re+=this._workCell.getChars().length||de.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-E>1)for(ue=this._getJoinedRanges(b,ae,re,z,E),ye=0;ye<ue.length;ye++)x.push(ue[ye]);return x},ee.prototype._getJoinedRanges=function(se,z,x,b,E){for(var re=se.substring(z,x),ae=this._characterJoiners[0].handler(re),le=1;le<this._characterJoiners.length;le++)for(var fe=this._characterJoiners[le].handler(re),ce=0;ce<fe.length;ce++)ee._mergeRanges(ae,fe[ce]);return this._stringRangesToCellRanges(ae,b,E),ae},ee.prototype._stringRangesToCellRanges=function(se,z,x){var b=0,E=!1,re=0,ae=se[b];if(ae){for(var le=x;le<this._bufferService.cols;le++){var fe=z.getWidth(le),ce=z.getString(le).length||de.WHITESPACE_CELL_CHAR.length;if(fe!==0){if(!E&&ae[0]<=re&&(ae[0]=le,E=!0),ae[1]<=re){if(ae[1]=le,!(ae=se[++b]))break;ae[0]<=re?(ae[0]=le,E=!0):E=!1}re+=ce}}ae&&(ae[1]=this._bufferService.cols)}},ee._mergeRanges=function(se,z){for(var x=!1,b=0;b<se.length;b++){var E=se[b];if(x){if(z[1]<=E[0])return se[b-1][1]=z[1],se;if(z[1]<=E[1])return se[b-1][1]=Math.max(z[1],E[1]),se.splice(b,1),se;se.splice(b,1),b--}else{if(z[1]<=E[0])return se.splice(b,0,z),se;if(z[1]<=E[1])return E[0]=Math.min(z[0],E[0]),se;z[0]<E[1]&&(E[0]=Math.min(z[0],E[0]),x=!0)}}return x?se[se.length-1][1]=z[1]:se.push(z),se},ee}();Ce.CharacterJoinerRegistry=ne},function(pt,Ce,ve){"use strict";function Ue(a,he){var de=he.getBoundingClientRect();return[a.clientX-de.left,a.clientY-de.top]}Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.getRawByteCoords=Ce.getCoords=Ce.getCoordsRelativeToElement=void 0,Ce.getCoordsRelativeToElement=Ue,Ce.getCoords=function(a,he,de,te,oe,ne,ee,se){if(oe){var z=Ue(a,he);if(z)return z[0]=Math.ceil((z[0]+(se?ne/2:0))/ne),z[1]=Math.ceil(z[1]/ee),z[0]=Math.min(Math.max(z[0],1),de+(se?1:0)),z[1]=Math.min(Math.max(z[1],1),te),z}},Ce.getRawByteCoords=function(a){if(a)return{x:a[0]+32,y:a[1]+32}}},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.RenderDebouncer=void 0;var Ue=function(){function a(he){this._renderCallback=he}return a.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},a.prototype.refresh=function(he,de,te){var oe=this;this._rowCount=te,he=he!==void 0?he:0,de=de!==void 0?de:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,he):he,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,de):de,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return oe._innerRefresh()}))},a.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var he=Math.max(this._rowStart,0),de=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(he,de)}},a}();Ce.RenderDebouncer=Ue},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(de,te){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var ee in ne)ne.hasOwnProperty(ee)&&(oe[ee]=ne[ee])})(de,te)},function(de,te){function oe(){this.constructor=de}Ue(de,te),de.prototype=te===null?Object.create(te):(oe.prototype=te.prototype,new oe)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.ScreenDprMonitor=void 0;var he=function(de){function te(){var oe=de!==null&&de.apply(this,arguments)||this;return oe._currentDevicePixelRatio=window.devicePixelRatio,oe}return a(te,de),te.prototype.setListener=function(oe){var ne=this;this._listener&&this.clearListener(),this._listener=oe,this._outerListener=function(){ne._listener&&(ne._listener(window.devicePixelRatio,ne._currentDevicePixelRatio),ne._updateDpr())},this._updateDpr()},te.prototype.dispose=function(){de.prototype.dispose.call(this),this.clearListener()},te.prototype._updateDpr=function(){var oe;this._outerListener&&((oe=this._resolutionMediaMatchList)===null||oe===void 0||oe.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},te.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},te}(ve(2).Disposable);Ce.ScreenDprMonitor=he},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.clone=void 0,Ce.clone=function Ue(a,he){if(he===void 0&&(he=5),typeof a!="object")return a;var de=Array.isArray(a)?[]:{};for(var te in a)de[te]=he<=1?a[te]:a[te]?Ue(a[te],he-1):a[te];return de}},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.Terminal=void 0;var Ue=ve(4),a=ve(35),he=ve(18),de=ve(0),te=ve(83),oe=function(){function b(E){this._core=new a.Terminal(E),this._addonManager=new te.AddonManager}return b.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(b.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new z(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"unicode",{get:function(){return this._checkProposedApi(),new x(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"buffer",{get:function(){return this._checkProposedApi(),new ee(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),b.prototype.blur=function(){this._core.blur()},b.prototype.focus=function(){this._core.focus()},b.prototype.resize=function(E,re){this._verifyIntegers(E,re),this._core.resize(E,re)},b.prototype.open=function(E){this._core.open(E)},b.prototype.attachCustomKeyEventHandler=function(E){this._core.attachCustomKeyEventHandler(E)},b.prototype.registerLinkMatcher=function(E,re,ae){return this._checkProposedApi(),this._core.registerLinkMatcher(E,re,ae)},b.prototype.deregisterLinkMatcher=function(E){this._checkProposedApi(),this._core.deregisterLinkMatcher(E)},b.prototype.registerLinkProvider=function(E){return this._checkProposedApi(),this._core.registerLinkProvider(E)},b.prototype.registerCharacterJoiner=function(E){return this._checkProposedApi(),this._core.registerCharacterJoiner(E)},b.prototype.deregisterCharacterJoiner=function(E){this._checkProposedApi(),this._core.deregisterCharacterJoiner(E)},b.prototype.registerMarker=function(E){return this._checkProposedApi(),this._verifyIntegers(E),this._core.addMarker(E)},b.prototype.addMarker=function(E){return this.registerMarker(E)},b.prototype.hasSelection=function(){return this._core.hasSelection()},b.prototype.select=function(E,re,ae){this._verifyIntegers(E,re,ae),this._core.select(E,re,ae)},b.prototype.getSelection=function(){return this._core.getSelection()},b.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},b.prototype.clearSelection=function(){this._core.clearSelection()},b.prototype.selectAll=function(){this._core.selectAll()},b.prototype.selectLines=function(E,re){this._verifyIntegers(E,re),this._core.selectLines(E,re)},b.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},b.prototype.scrollLines=function(E){this._verifyIntegers(E),this._core.scrollLines(E)},b.prototype.scrollPages=function(E){this._verifyIntegers(E),this._core.scrollPages(E)},b.prototype.scrollToTop=function(){this._core.scrollToTop()},b.prototype.scrollToBottom=function(){this._core.scrollToBottom()},b.prototype.scrollToLine=function(E){this._verifyIntegers(E),this._core.scrollToLine(E)},b.prototype.clear=function(){this._core.clear()},b.prototype.write=function(E,re){this._core.write(E,re)},b.prototype.writeUtf8=function(E,re){this._core.write(E,re)},b.prototype.writeln=function(E,re){this._core.write(E),this._core.write(`\r
`,re)},b.prototype.paste=function(E){this._core.paste(E)},b.prototype.getOption=function(E){return this._core.optionsService.getOption(E)},b.prototype.setOption=function(E,re){this._core.optionsService.setOption(E,re)},b.prototype.refresh=function(E,re){this._verifyIntegers(E,re),this._core.refresh(E,re)},b.prototype.reset=function(){this._core.reset()},b.prototype.loadAddon=function(E){return this._addonManager.loadAddon(this,E)},Object.defineProperty(b,"strings",{get:function(){return he},enumerable:!1,configurable:!0}),b.prototype._verifyIntegers=function(){for(var E=[],re=0;re<arguments.length;re++)E[re]=arguments[re];for(var ae=0,le=E;ae<le.length;ae++){var fe=le[ae];if(fe===1/0||isNaN(fe)||fe%1!=0)throw new Error("This API only accepts integers")}},b}();Ce.Terminal=oe;var ne=function(){function b(E,re){this._buffer=E,this.type=re}return b.prototype.init=function(E){return this._buffer=E,this},Object.defineProperty(b.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),b.prototype.getLine=function(E){var re=this._buffer.lines.get(E);if(re)return new se(re)},b.prototype.getNullCell=function(){return new Ue.CellData},b}(),ee=function(){function b(E){var re=this;this._buffers=E,this._onBufferChange=new de.EventEmitter,this._normal=new ne(this._buffers.normal,"normal"),this._alternate=new ne(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return re._onBufferChange.fire(re.active)})}return Object.defineProperty(b.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),b}(),se=function(){function b(E){this._line=E}return Object.defineProperty(b.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),b.prototype.getCell=function(E,re){if(!(E<0||E>=this._line.length))return re?(this._line.loadCell(E,re),re):this._line.loadCell(E,new Ue.CellData)},b.prototype.translateToString=function(E,re,ae){return this._line.translateToString(E,re,ae)},b}(),z=function(){function b(E){this._core=E}return b.prototype.registerCsiHandler=function(E,re){return this._core.addCsiHandler(E,function(ae){return re(ae.toArray())})},b.prototype.addCsiHandler=function(E,re){return this.registerCsiHandler(E,re)},b.prototype.registerDcsHandler=function(E,re){return this._core.addDcsHandler(E,function(ae,le){return re(ae,le.toArray())})},b.prototype.addDcsHandler=function(E,re){return this.registerDcsHandler(E,re)},b.prototype.registerEscHandler=function(E,re){return this._core.addEscHandler(E,re)},b.prototype.addEscHandler=function(E,re){return this.registerEscHandler(E,re)},b.prototype.registerOscHandler=function(E,re){return this._core.addOscHandler(E,re)},b.prototype.addOscHandler=function(E,re){return this.registerOscHandler(E,re)},b}(),x=function(){function b(E){this._core=E}return b.prototype.register=function(E){this._core.unicodeService.register(E)},Object.defineProperty(b.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(E){this._core.unicodeService.activeVersion=E},enumerable:!1,configurable:!0}),b}()},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(Pe,Oe){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Ge){ze.__proto__=Ge}||function(ze,Ge){for(var tt in Ge)Ge.hasOwnProperty(tt)&&(ze[tt]=Ge[tt])})(Pe,Oe)},function(Pe,Oe){function ze(){this.constructor=Pe}Ue(Pe,Oe),Pe.prototype=Oe===null?Object.create(Oe):(ze.prototype=Oe.prototype,new ze)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.Terminal=void 0;var he=ve(36),de=ve(37),te=ve(38),oe=ve(12),ne=ve(19),ee=ve(40),se=ve(50),z=ve(51),x=ve(11),b=ve(7),E=ve(18),re=ve(54),ae=ve(55),le=ve(56),fe=ve(57),ce=ve(59),ue=ve(0),ye=ve(16),Se=ve(27),we=ve(60),xe=ve(5),ge=ve(61),_e=ve(62),be=ve(63),Ae=ve(64),Te=ve(65),Le=typeof window!="undefined"?window.document:null,ke=function(Pe){function Oe(ze){ze===void 0&&(ze={});var Ge=Pe.call(this,ze)||this;return Ge.browser=x,Ge._keyDownHandled=!1,Ge._onCursorMove=new ue.EventEmitter,Ge._onKey=new ue.EventEmitter,Ge._onRender=new ue.EventEmitter,Ge._onSelectionChange=new ue.EventEmitter,Ge._onTitleChange=new ue.EventEmitter,Ge._onFocus=new ue.EventEmitter,Ge._onBlur=new ue.EventEmitter,Ge._onA11yCharEmitter=new ue.EventEmitter,Ge._onA11yTabEmitter=new ue.EventEmitter,Ge._setup(),Ge.linkifier=Ge._instantiationService.createInstance(se.Linkifier),Ge.linkifier2=Ge.register(Ge._instantiationService.createInstance(be.Linkifier2)),Ge.register(Ge._inputHandler.onRequestBell(function(){return Ge.bell()})),Ge.register(Ge._inputHandler.onRequestRefreshRows(function(tt,Me){return Ge.refresh(tt,Me)})),Ge.register(Ge._inputHandler.onRequestReset(function(){return Ge.reset()})),Ge.register(Ge._inputHandler.onRequestScroll(function(tt,Me){return Ge.scroll(tt,Me||void 0)})),Ge.register(Ge._inputHandler.onRequestWindowsOptionsReport(function(tt){return Ge._reportWindowsOptions(tt)})),Ge.register(ue.forwardEvent(Ge._inputHandler.onCursorMove,Ge._onCursorMove)),Ge.register(ue.forwardEvent(Ge._inputHandler.onTitleChange,Ge._onTitleChange)),Ge.register(ue.forwardEvent(Ge._inputHandler.onA11yChar,Ge._onA11yCharEmitter)),Ge.register(ue.forwardEvent(Ge._inputHandler.onA11yTab,Ge._onA11yTabEmitter)),Ge.register(Ge._bufferService.onResize(function(tt){return Ge._afterResize(tt.cols,tt.rows)})),Ge}return a(Oe,Pe),Object.defineProperty(Oe.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Oe.prototype.dispose=function(){var ze,Ge,tt;this._isDisposed||(Pe.prototype.dispose.call(this),(ze=this._renderService)===null||ze===void 0||ze.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(tt=(Ge=this.element)===null||Ge===void 0?void 0:Ge.parentNode)===null||tt===void 0||tt.removeChild(this.element))},Oe.prototype._setup=function(){Pe.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Oe.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Oe.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Oe.prototype._updateOptions=function(ze){var Ge,tt,Me,We;switch(Pe.prototype._updateOptions.call(this,ze),ze){case"fontFamily":case"fontSize":(Ge=this._renderService)===null||Ge===void 0||Ge.clear(),(tt=this._charSizeService)===null||tt===void 0||tt.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(Me=this.viewport)===null||Me===void 0||Me.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new le.AccessibilityManager(this,this._renderService)):((We=this._accessibilityManager)===null||We===void 0||We.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},Oe.prototype._onTextAreaFocus=function(ze){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(oe.C0.ESC+"[I"),this.updateCursorStyle(ze),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Oe.prototype.blur=function(){var ze;return(ze=this.textarea)===null||ze===void 0?void 0:ze.blur()},Oe.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(oe.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Oe.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var ze=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),Ge=this._bufferService.buffer.y*ze,tt=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=tt+"px",this.textarea.style.top=Ge+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=ze+"px",this.textarea.style.lineHeight=ze+"px",this.textarea.style.zIndex="-5"}},Oe.prototype._initGlobal=function(){var ze=this;this._bindKeys(),this.register(b.addDisposableDomListener(this.element,"copy",function(tt){ze.hasSelection()&&te.copyHandler(tt,ze._selectionService)}));var Ge=function(tt){return te.handlePasteEvent(tt,ze.textarea,ze._coreService)};this.register(b.addDisposableDomListener(this.textarea,"paste",Ge)),this.register(b.addDisposableDomListener(this.element,"paste",Ge)),x.isFirefox?this.register(b.addDisposableDomListener(this.element,"mousedown",function(tt){tt.button===2&&te.rightClickHandler(tt,ze.textarea,ze.screenElement,ze._selectionService,ze.options.rightClickSelectsWord)})):this.register(b.addDisposableDomListener(this.element,"contextmenu",function(tt){te.rightClickHandler(tt,ze.textarea,ze.screenElement,ze._selectionService,ze.options.rightClickSelectsWord)})),x.isLinux&&this.register(b.addDisposableDomListener(this.element,"auxclick",function(tt){tt.button===1&&te.moveTextAreaUnderMouseCursor(tt,ze.textarea,ze.screenElement)}))},Oe.prototype._bindKeys=function(){var ze=this;this.register(b.addDisposableDomListener(this.textarea,"keyup",function(Ge){return ze._keyUp(Ge)},!0)),this.register(b.addDisposableDomListener(this.textarea,"keydown",function(Ge){return ze._keyDown(Ge)},!0)),this.register(b.addDisposableDomListener(this.textarea,"keypress",function(Ge){return ze._keyPress(Ge)},!0)),this.register(b.addDisposableDomListener(this.textarea,"compositionstart",function(){return ze._compositionHelper.compositionstart()})),this.register(b.addDisposableDomListener(this.textarea,"compositionupdate",function(Ge){return ze._compositionHelper.compositionupdate(Ge)})),this.register(b.addDisposableDomListener(this.textarea,"compositionend",function(){return ze._compositionHelper.compositionend()})),this.register(this.onRender(function(){return ze._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(Ge){return ze._queueLinkification(Ge.start,Ge.end)}))},Oe.prototype.open=function(ze){var Ge=this;if(!ze)throw new Error("Terminal requires a parent element.");Le.body.contains(ze)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=ze.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),ze.appendChild(this.element);var tt=Le.createDocumentFragment();this._viewportElement=Le.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),tt.appendChild(this._viewportElement),this._viewportScrollArea=Le.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=Le.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=Le.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),tt.appendChild(this.screenElement),this.textarea=Le.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",E.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(b.addDisposableDomListener(this.textarea,"focus",function(it){return Ge._onTextAreaFocus(it)})),this.register(b.addDisposableDomListener(this.textarea,"blur",function(){return Ge._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Me=this._instantiationService.createInstance(Ae.CoreBrowserService,this.textarea);this._instantiationService.setService(xe.ICoreBrowserService,Me),this._charSizeService=this._instantiationService.createInstance(ge.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(xe.ICharSizeService,this._charSizeService),this._compositionView=Le.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(he.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(tt),this._theme=this.options.theme||this._theme,this._colorManager=new Se.ColorManager(Le,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(it){return Ge._colorManager.onOptionsChange(it)})),this._colorManager.setTheme(this._theme);var We=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(we.RenderService,We,this.rows,this.screenElement)),this._instantiationService.setService(xe.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(it){return Ge._onRender.fire(it)})),this.onResize(function(it){return Ge._renderService.resize(it.cols,it.rows)}),this._soundService=this._instantiationService.createInstance(re.SoundService),this._instantiationService.setService(xe.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(_e.MouseService),this._instantiationService.setService(xe.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(de.Viewport,function(it,at){return Ge.scrollLines(it,at)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return Ge.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){Ge._renderService.onCursorMove(),Ge._syncTextArea()})),this.register(this.onResize(function(){return Ge._renderService.onResize(Ge.cols,Ge.rows)})),this.register(this.onBlur(function(){return Ge._renderService.onBlur()})),this.register(this.onFocus(function(){return Ge._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return Ge.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(z.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(xe.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(it){return Ge.scrollLines(it.amount,it.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return Ge._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(it){return Ge._renderService.onSelectionChanged(it.start,it.end,it.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(it){Ge.textarea.value=it,Ge.textarea.focus(),Ge.textarea.select()})),this.register(this.onScroll(function(){Ge.viewport.syncScrollArea(),Ge._selectionService.refresh()})),this.register(b.addDisposableDomListener(this._viewportElement,"scroll",function(){return Ge._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(ae.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return Ge._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(b.addDisposableDomListener(this.element,"mousedown",function(it){return Ge._selectionService.onMouseDown(it)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new le.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Oe.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(ee.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(fe.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},Oe.prototype._setTheme=function(ze){var Ge,tt,Me;this._theme=ze,(Ge=this._colorManager)===null||Ge===void 0||Ge.setTheme(ze),(tt=this._renderService)===null||tt===void 0||tt.setColors(this._colorManager.colors),(Me=this.viewport)===null||Me===void 0||Me.onThemeChange(this._colorManager.colors)},Oe.prototype.bindMouse=function(){var ze=this,Ge=this,tt=this.element;function Me(Ye){var Qe,st,ot=Ge._mouseService.getRawByteCoords(Ye,Ge.screenElement,Ge.cols,Ge.rows);if(!ot)return!1;switch(Ye.overrideType||Ye.type){case"mousemove":st=32,Ye.buttons===void 0?(Qe=3,Ye.button!==void 0&&(Qe=Ye.button<3?Ye.button:3)):Qe=1&Ye.buttons?0:4&Ye.buttons?1:2&Ye.buttons?2:3;break;case"mouseup":st=0,Qe=Ye.button<3?Ye.button:3;break;case"mousedown":st=1,Qe=Ye.button<3?Ye.button:3;break;case"wheel":Ye.deltaY!==0&&(st=Ye.deltaY<0?0:1),Qe=4;break;default:return!1}return!(st===void 0||Qe===void 0||Qe>4)&&Ge._coreMouseService.triggerMouseEvent({col:ot.x-33,row:ot.y-33,button:Qe,action:st,ctrl:Ye.ctrlKey,alt:Ye.altKey,shift:Ye.shiftKey})}var We={mouseup:null,wheel:null,mousedrag:null,mousemove:null},it=function(Ye){return Me(Ye),Ye.buttons||(ze._document.removeEventListener("mouseup",We.mouseup),We.mousedrag&&ze._document.removeEventListener("mousemove",We.mousedrag)),ze.cancel(Ye)},at=function(Ye){return Me(Ye),Ye.preventDefault(),ze.cancel(Ye)},$e=function(Ye){Ye.buttons&&Me(Ye)},Je=function(Ye){Ye.buttons||Me(Ye)};this.register(this._coreMouseService.onProtocolChange(function(Ye){Ye?(ze.optionsService.options.logLevel==="debug"&&ze._logService.debug("Binding to mouse events:",ze._coreMouseService.explainEvents(Ye)),ze.element.classList.add("enable-mouse-events"),ze._selectionService.disable()):(ze._logService.debug("Unbinding from mouse events."),ze.element.classList.remove("enable-mouse-events"),ze._selectionService.enable()),8&Ye?We.mousemove||(tt.addEventListener("mousemove",Je),We.mousemove=Je):(tt.removeEventListener("mousemove",We.mousemove),We.mousemove=null),16&Ye?We.wheel||(tt.addEventListener("wheel",at,{passive:!1}),We.wheel=at):(tt.removeEventListener("wheel",We.wheel),We.wheel=null),2&Ye?We.mouseup||(We.mouseup=it):(ze._document.removeEventListener("mouseup",We.mouseup),We.mouseup=null),4&Ye?We.mousedrag||(We.mousedrag=$e):(ze._document.removeEventListener("mousemove",We.mousedrag),We.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(b.addDisposableDomListener(tt,"mousedown",function(Ye){if(Ye.preventDefault(),ze.focus(),ze._coreMouseService.areMouseEventsActive&&!ze._selectionService.shouldForceSelection(Ye))return Me(Ye),We.mouseup&&ze._document.addEventListener("mouseup",We.mouseup),We.mousedrag&&ze._document.addEventListener("mousemove",We.mousedrag),ze.cancel(Ye)})),this.register(b.addDisposableDomListener(tt,"wheel",function(Ye){if(!We.wheel){if(!ze.buffer.hasScrollback){var Qe=ze.viewport.getLinesScrolled(Ye);if(Qe===0)return;for(var st=oe.C0.ESC+(ze._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Ye.deltaY<0?"A":"B"),ot="",mt=0;mt<Math.abs(Qe);mt++)ot+=st;ze._coreService.triggerDataEvent(ot,!0)}}},{passive:!0})),this.register(b.addDisposableDomListener(tt,"wheel",function(Ye){if(!We.wheel)return ze.viewport.onWheel(Ye)?void 0:ze.cancel(Ye)},{passive:!1})),this.register(b.addDisposableDomListener(tt,"touchstart",function(Ye){if(!ze._coreMouseService.areMouseEventsActive)return ze.viewport.onTouchStart(Ye),ze.cancel(Ye)},{passive:!0})),this.register(b.addDisposableDomListener(tt,"touchmove",function(Ye){if(!ze._coreMouseService.areMouseEventsActive)return ze.viewport.onTouchMove(Ye)?void 0:ze.cancel(Ye)},{passive:!1}))},Oe.prototype.refresh=function(ze,Ge){var tt;(tt=this._renderService)===null||tt===void 0||tt.refreshRows(ze,Ge)},Oe.prototype._queueLinkification=function(ze,Ge){var tt;(tt=this.linkifier)===null||tt===void 0||tt.linkifyRows(ze,Ge)},Oe.prototype.updateCursorStyle=function(ze){this._selectionService&&this._selectionService.shouldColumnSelect(ze)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Oe.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Oe.prototype.scrollLines=function(ze,Ge){Pe.prototype.scrollLines.call(this,ze,Ge),this.refresh(0,this.rows-1)},Oe.prototype.paste=function(ze){te.paste(ze,this.textarea,this._coreService)},Oe.prototype.attachCustomKeyEventHandler=function(ze){this._customKeyEventHandler=ze},Oe.prototype.registerLinkMatcher=function(ze,Ge,tt){var Me=this.linkifier.registerLinkMatcher(ze,Ge,tt);return this.refresh(0,this.rows-1),Me},Oe.prototype.deregisterLinkMatcher=function(ze){this.linkifier.deregisterLinkMatcher(ze)&&this.refresh(0,this.rows-1)},Oe.prototype.registerLinkProvider=function(ze){return this.linkifier2.registerLinkProvider(ze)},Oe.prototype.registerCharacterJoiner=function(ze){var Ge=this._renderService.registerCharacterJoiner(ze);return this.refresh(0,this.rows-1),Ge},Oe.prototype.deregisterCharacterJoiner=function(ze){this._renderService.deregisterCharacterJoiner(ze)&&this.refresh(0,this.rows-1)},Object.defineProperty(Oe.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Oe.prototype.addMarker=function(ze){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+ze)},Oe.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Oe.prototype.select=function(ze,Ge,tt){this._selectionService.setSelection(ze,Ge,tt)},Oe.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Oe.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},Oe.prototype.clearSelection=function(){var ze;(ze=this._selectionService)===null||ze===void 0||ze.clearSelection()},Oe.prototype.selectAll=function(){var ze;(ze=this._selectionService)===null||ze===void 0||ze.selectAll()},Oe.prototype.selectLines=function(ze,Ge){var tt;(tt=this._selectionService)===null||tt===void 0||tt.selectLines(ze,Ge)},Oe.prototype._keyDown=function(ze){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(ze)===!1)return!1;if(!this._compositionHelper.keydown(ze))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var Ge=ce.evaluateKeyboardEvent(ze,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(ze),Ge.type===3||Ge.type===2){var tt=this.rows-1;return this.scrollLines(Ge.type===2?-tt:tt),this.cancel(ze,!0)}return Ge.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,ze)||(Ge.cancel&&this.cancel(ze,!0),!Ge.key||(Ge.key!==oe.C0.ETX&&Ge.key!==oe.C0.CR||(this.textarea.value=""),this._onKey.fire({key:Ge.key,domEvent:ze}),this._showCursor(),this._coreService.triggerDataEvent(Ge.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(ze,!0)))},Oe.prototype._isThirdLevelShift=function(ze,Ge){var tt=ze.isMac&&!this.options.macOptionIsMeta&&Ge.altKey&&!Ge.ctrlKey&&!Ge.metaKey||ze.isWindows&&Ge.altKey&&Ge.ctrlKey&&!Ge.metaKey;return Ge.type==="keypress"?tt:tt&&(!Ge.keyCode||Ge.keyCode>47)},Oe.prototype._keyUp=function(ze){this._customKeyEventHandler&&this._customKeyEventHandler(ze)===!1||(function(Ge){return Ge.keyCode===16||Ge.keyCode===17||Ge.keyCode===18}(ze)||this.focus(),this.updateCursorStyle(ze))},Oe.prototype._keyPress=function(ze){var Ge;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(ze)===!1)return!1;if(this.cancel(ze),ze.charCode)Ge=ze.charCode;else if(ze.which===null||ze.which===void 0)Ge=ze.keyCode;else{if(ze.which===0||ze.charCode===0)return!1;Ge=ze.which}return!(!Ge||(ze.altKey||ze.ctrlKey||ze.metaKey)&&!this._isThirdLevelShift(this.browser,ze))&&(Ge=String.fromCharCode(Ge),this._onKey.fire({key:Ge,domEvent:ze}),this._showCursor(),this._coreService.triggerDataEvent(Ge,!0),!0)},Oe.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},Oe.prototype.resize=function(ze,Ge){ze!==this.cols||Ge!==this.rows?Pe.prototype.resize.call(this,ze,Ge):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Oe.prototype._afterResize=function(ze,Ge){var tt,Me;(tt=this._charSizeService)===null||tt===void 0||tt.measure(),(Me=this.viewport)===null||Me===void 0||Me.syncScrollArea(!0)},Oe.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var ze=1;ze<this.rows;ze++)this.buffer.lines.push(this.buffer.getBlankLine(ye.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},Oe.prototype.reset=function(){var ze,Ge;this.options.rows=this.rows,this.options.cols=this.cols;var tt=this._customKeyEventHandler;this._setup(),Pe.prototype.reset.call(this),(ze=this._selectionService)===null||ze===void 0||ze.reset(),this._customKeyEventHandler=tt,this.refresh(0,this.rows-1),(Ge=this.viewport)===null||Ge===void 0||Ge.syncScrollArea()},Oe.prototype._reportWindowsOptions=function(ze){if(this._renderService)switch(ze){case ne.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var Ge=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),tt=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(oe.C0.ESC+"[4;"+tt+";"+Ge+"t");break;case ne.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Me=this._renderService.dimensions.scaledCellWidth.toFixed(0),We=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(oe.C0.ESC+"[6;"+We+";"+Me+"t")}},Oe.prototype.cancel=function(ze,Ge){if(this.options.cancelEvents||Ge)return ze.preventDefault(),ze.stopPropagation(),!1},Oe.prototype._visualBell=function(){return!1},Oe.prototype._soundBell=function(){return this.options.bellStyle==="sound"},Oe}(Te.CoreTerminal);Ce.Terminal=ke},function(pt,Ce,ve){"use strict";var Ue=this&&this.__decorate||function(oe,ne,ee,se){var z,x=arguments.length,b=x<3?ne:se===null?se=Object.getOwnPropertyDescriptor(ne,ee):se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(oe,ne,ee,se);else for(var E=oe.length-1;E>=0;E--)(z=oe[E])&&(b=(x<3?z(b):x>3?z(ne,ee,b):z(ne,ee))||b);return x>3&&b&&Object.defineProperty(ne,ee,b),b},a=this&&this.__param||function(oe,ne){return function(ee,se){ne(ee,se,oe)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.CompositionHelper=void 0;var he=ve(5),de=ve(1),te=function(){function oe(ne,ee,se,z,x,b){this._textarea=ne,this._compositionView=ee,this._bufferService=se,this._optionsService=z,this._charSizeService=x,this._coreService=b,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(oe.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),oe.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},oe.prototype.compositionupdate=function(ne){var ee=this;this._compositionView.textContent=ne.data,this.updateCompositionElements(),setTimeout(function(){ee._compositionPosition.end=ee._textarea.value.length},0)},oe.prototype.compositionend=function(){this._finalizeComposition(!0)},oe.prototype.keydown=function(ne){if(this._isComposing||this._isSendingComposition){if(ne.keyCode===229||ne.keyCode===16||ne.keyCode===17||ne.keyCode===18)return!1;this._finalizeComposition(!1)}return ne.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},oe.prototype._finalizeComposition=function(ne){var ee=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,ne){var se={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(ee._isSendingComposition){ee._isSendingComposition=!1;var x=void 0;x=ee._isComposing?ee._textarea.value.substring(se.start,se.end):ee._textarea.value.substring(se.start),ee._coreService.triggerDataEvent(x,!0)}},0)}else{this._isSendingComposition=!1;var z=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(z,!0)}},oe.prototype._handleAnyTextareaChanges=function(){var ne=this,ee=this._textarea.value;setTimeout(function(){if(!ne._isComposing){var se=ne._textarea.value.replace(ee,"");se.length>0&&ne._coreService.triggerDataEvent(se,!0)}},0)},oe.prototype.updateCompositionElements=function(ne){var ee=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var se=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),z=this._bufferService.buffer.y*se,x=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=x+"px",this._compositionView.style.top=z+"px",this._compositionView.style.height=se+"px",this._compositionView.style.lineHeight=se+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var b=this._compositionView.getBoundingClientRect();this._textarea.style.left=x+"px",this._textarea.style.top=z+"px",this._textarea.style.width=b.width+"px",this._textarea.style.height=b.height+"px",this._textarea.style.lineHeight=b.height+"px"}ne||setTimeout(function(){return ee.updateCompositionElements(!0)},0)}},oe=Ue([a(2,de.IBufferService),a(3,de.IOptionsService),a(4,he.ICharSizeService),a(5,de.ICoreService)],oe)}();Ce.CompositionHelper=te},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(z,x){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var re in E)E.hasOwnProperty(re)&&(b[re]=E[re])})(z,x)},function(z,x){function b(){this.constructor=z}Ue(z,x),z.prototype=x===null?Object.create(x):(b.prototype=x.prototype,new b)}),he=this&&this.__decorate||function(z,x,b,E){var re,ae=arguments.length,le=ae<3?x:E===null?E=Object.getOwnPropertyDescriptor(x,b):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(z,x,b,E);else for(var fe=z.length-1;fe>=0;fe--)(re=z[fe])&&(le=(ae<3?re(le):ae>3?re(x,b,le):re(x,b))||le);return ae>3&&le&&Object.defineProperty(x,b,le),le},de=this&&this.__param||function(z,x){return function(b,E){x(b,E,z)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.Viewport=void 0;var te=ve(2),oe=ve(7),ne=ve(5),ee=ve(1),se=function(z){function x(b,E,re,ae,le,fe,ce){var ue=z.call(this)||this;return ue._scrollLines=b,ue._viewportElement=E,ue._scrollArea=re,ue._bufferService=ae,ue._optionsService=le,ue._charSizeService=fe,ue._renderService=ce,ue.scrollBarWidth=0,ue._currentRowHeight=0,ue._lastRecordedBufferLength=0,ue._lastRecordedViewportHeight=0,ue._lastRecordedBufferHeight=0,ue._lastTouchY=0,ue._lastScrollTop=0,ue._wheelPartialScroll=0,ue._refreshAnimationFrame=null,ue._ignoreNextScrollEvent=!1,ue.scrollBarWidth=ue._viewportElement.offsetWidth-ue._scrollArea.offsetWidth||15,ue.register(oe.addDisposableDomListener(ue._viewportElement,"scroll",ue._onScroll.bind(ue))),setTimeout(function(){return ue.syncScrollArea()},0),ue}return a(x,z),x.prototype.onThemeChange=function(b){this._viewportElement.style.backgroundColor=b.background.css},x.prototype._refresh=function(b){var E=this;if(b)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return E._innerRefresh()}))},x.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var b=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==b&&(this._lastRecordedBufferHeight=b,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var E=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==E&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=E),this._refreshAnimationFrame=null},x.prototype.syncScrollArea=function(b){if(b===void 0&&(b=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(b);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var E=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===E&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(b)}else this._refresh(b)},x.prototype._onScroll=function(b){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var E=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(E,!0)}},x.prototype._bubbleScroll=function(b,E){var re=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(E<0&&this._viewportElement.scrollTop!==0||E>0&&re<this._lastRecordedBufferHeight)||(b.cancelable&&b.preventDefault(),!1)},x.prototype.onWheel=function(b){var E=this._getPixelsScrolled(b);return E!==0&&(this._viewportElement.scrollTop+=E,this._bubbleScroll(b,E))},x.prototype._getPixelsScrolled=function(b){if(b.deltaY===0)return 0;var E=this._applyScrollModifier(b.deltaY,b);return b.deltaMode===WheelEvent.DOM_DELTA_LINE?E*=this._currentRowHeight:b.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(E*=this._currentRowHeight*this._bufferService.rows),E},x.prototype.getLinesScrolled=function(b){if(b.deltaY===0)return 0;var E=this._applyScrollModifier(b.deltaY,b);return b.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(E/=this._currentRowHeight+0,this._wheelPartialScroll+=E,E=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):b.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(E*=this._bufferService.rows),E},x.prototype._applyScrollModifier=function(b,E){var re=this._optionsService.options.fastScrollModifier;return re==="alt"&&E.altKey||re==="ctrl"&&E.ctrlKey||re==="shift"&&E.shiftKey?b*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:b*this._optionsService.options.scrollSensitivity},x.prototype.onTouchStart=function(b){this._lastTouchY=b.touches[0].pageY},x.prototype.onTouchMove=function(b){var E=this._lastTouchY-b.touches[0].pageY;return this._lastTouchY=b.touches[0].pageY,E!==0&&(this._viewportElement.scrollTop+=E,this._bubbleScroll(b,E))},x=he([de(3,ee.IBufferService),de(4,ee.IOptionsService),de(5,ne.ICharSizeService),de(6,ne.IRenderService)],x)}(te.Disposable);Ce.Viewport=se},function(pt,Ce,ve){"use strict";function Ue(te){return te.replace(/\r?\n/g,"\r")}function a(te,oe){return oe?"\x1B[200~"+te+"\x1B[201~":te}function he(te,oe,ne){te=a(te=Ue(te),ne.decPrivateModes.bracketedPasteMode),ne.triggerDataEvent(te,!0),oe.value=""}function de(te,oe,ne){var ee=ne.getBoundingClientRect(),se=te.clientX-ee.left-10,z=te.clientY-ee.top-10;oe.style.width="20px",oe.style.height="20px",oe.style.left=se+"px",oe.style.top=z+"px",oe.style.zIndex="1000",oe.focus()}Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.rightClickHandler=Ce.moveTextAreaUnderMouseCursor=Ce.paste=Ce.handlePasteEvent=Ce.copyHandler=Ce.bracketTextForPaste=Ce.prepareTextForTerminal=void 0,Ce.prepareTextForTerminal=Ue,Ce.bracketTextForPaste=a,Ce.copyHandler=function(te,oe){te.clipboardData&&te.clipboardData.setData("text/plain",oe.selectionText),te.preventDefault()},Ce.handlePasteEvent=function(te,oe,ne){te.stopPropagation(),te.clipboardData&&he(te.clipboardData.getData("text/plain"),oe,ne)},Ce.paste=he,Ce.moveTextAreaUnderMouseCursor=de,Ce.rightClickHandler=function(te,oe,ne,ee,se){de(te,oe,ne),se&&!ee.isClickInSelection(te)&&ee.selectWordAtCursor(te),oe.value=ee.selectionText,oe.select()}},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(z,x){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var re in E)E.hasOwnProperty(re)&&(b[re]=E[re])})(z,x)},function(z,x){function b(){this.constructor=z}Ue(z,x),z.prototype=x===null?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.EscapeSequenceParser=Ce.VT500_TRANSITION_TABLE=Ce.TransitionTable=void 0;var he=ve(2),de=ve(15),te=ve(21),oe=ve(22),ne=ve(24),ee=function(){function z(x){this.table=new Uint8Array(x)}return z.prototype.setDefault=function(x,b){de.fill(this.table,x<<4|b)},z.prototype.add=function(x,b,E,re){this.table[b<<8|x]=E<<4|re},z.prototype.addMany=function(x,b,E,re){for(var ae=0;ae<x.length;ae++)this.table[b<<8|x[ae]]=E<<4|re},z}();Ce.TransitionTable=ee,Ce.VT500_TRANSITION_TABLE=function(){var z=new ee(4095),x=Array.apply(null,Array(256)).map(function(fe,ce){return ce}),b=function(fe,ce){return x.slice(fe,ce)},E=b(32,127),re=b(0,24);re.push(25),re.push.apply(re,b(28,32));var ae,le=b(0,14);for(ae in z.setDefault(1,0),z.addMany(E,0,2,0),le)z.addMany([24,26,153,154],ae,3,0),z.addMany(b(128,144),ae,3,0),z.addMany(b(144,152),ae,3,0),z.add(156,ae,0,0),z.add(27,ae,11,1),z.add(157,ae,4,8),z.addMany([152,158,159],ae,0,7),z.add(155,ae,11,3),z.add(144,ae,11,9);return z.addMany(re,0,3,0),z.addMany(re,1,3,1),z.add(127,1,0,1),z.addMany(re,8,0,8),z.addMany(re,3,3,3),z.add(127,3,0,3),z.addMany(re,4,3,4),z.add(127,4,0,4),z.addMany(re,6,3,6),z.addMany(re,5,3,5),z.add(127,5,0,5),z.addMany(re,2,3,2),z.add(127,2,0,2),z.add(93,1,4,8),z.addMany(E,8,5,8),z.add(127,8,5,8),z.addMany([156,27,24,26,7],8,6,0),z.addMany(b(28,32),8,0,8),z.addMany([88,94,95],1,0,7),z.addMany(E,7,0,7),z.addMany(re,7,0,7),z.add(156,7,0,0),z.add(127,7,0,7),z.add(91,1,11,3),z.addMany(b(64,127),3,7,0),z.addMany(b(48,60),3,8,4),z.addMany([60,61,62,63],3,9,4),z.addMany(b(48,60),4,8,4),z.addMany(b(64,127),4,7,0),z.addMany([60,61,62,63],4,0,6),z.addMany(b(32,64),6,0,6),z.add(127,6,0,6),z.addMany(b(64,127),6,0,0),z.addMany(b(32,48),3,9,5),z.addMany(b(32,48),5,9,5),z.addMany(b(48,64),5,0,6),z.addMany(b(64,127),5,7,0),z.addMany(b(32,48),4,9,5),z.addMany(b(32,48),1,9,2),z.addMany(b(32,48),2,9,2),z.addMany(b(48,127),2,10,0),z.addMany(b(48,80),1,10,0),z.addMany(b(81,88),1,10,0),z.addMany([89,90,92],1,10,0),z.addMany(b(96,127),1,10,0),z.add(80,1,11,9),z.addMany(re,9,0,9),z.add(127,9,0,9),z.addMany(b(28,32),9,0,9),z.addMany(b(32,48),9,9,12),z.addMany(b(48,60),9,8,10),z.addMany([60,61,62,63],9,9,10),z.addMany(re,11,0,11),z.addMany(b(32,128),11,0,11),z.addMany(b(28,32),11,0,11),z.addMany(re,10,0,10),z.add(127,10,0,10),z.addMany(b(28,32),10,0,10),z.addMany(b(48,60),10,8,10),z.addMany([60,61,62,63],10,0,11),z.addMany(b(32,48),10,9,12),z.addMany(re,12,0,12),z.add(127,12,0,12),z.addMany(b(28,32),12,0,12),z.addMany(b(32,48),12,9,12),z.addMany(b(48,64),12,0,11),z.addMany(b(64,127),12,12,13),z.addMany(b(64,127),10,12,13),z.addMany(b(64,127),9,12,13),z.addMany(re,13,13,13),z.addMany(E,13,13,13),z.add(127,13,0,13),z.addMany([27,156,24,26],13,14,0),z.add(160,0,2,0),z.add(160,8,5,8),z.add(160,6,0,6),z.add(160,11,0,11),z.add(160,13,13,13),z}();var se=function(z){function x(b){b===void 0&&(b=Ce.VT500_TRANSITION_TABLE);var E=z.call(this)||this;return E._transitions=b,E.initialState=0,E.currentState=E.initialState,E._params=new te.Params,E._params.addParam(0),E._collect=0,E.precedingCodepoint=0,E._printHandlerFb=function(re,ae,le){},E._executeHandlerFb=function(re){},E._csiHandlerFb=function(re,ae){},E._escHandlerFb=function(re){},E._errorHandlerFb=function(re){return re},E._printHandler=E._printHandlerFb,E._executeHandlers=Object.create(null),E._csiHandlers=Object.create(null),E._escHandlers=Object.create(null),E._oscParser=new oe.OscParser,E._dcsParser=new ne.DcsParser,E._errorHandler=E._errorHandlerFb,E.setEscHandler({final:"\\"},function(){}),E}return a(x,z),x.prototype._identifier=function(b,E){E===void 0&&(E=[64,126]);var re=0;if(b.prefix){if(b.prefix.length>1)throw new Error("only one byte as prefix supported");if((re=b.prefix.charCodeAt(0))&&60>re||re>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(b.intermediates){if(b.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var ae=0;ae<b.intermediates.length;++ae){var le=b.intermediates.charCodeAt(ae);if(32>le||le>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");re<<=8,re|=le}}if(b.final.length!==1)throw new Error("final must be a single byte");var fe=b.final.charCodeAt(0);if(E[0]>fe||fe>E[1])throw new Error("final must be in range "+E[0]+" .. "+E[1]);return re<<=8,re|=fe},x.prototype.identToString=function(b){for(var E=[];b;)E.push(String.fromCharCode(255&b)),b>>=8;return E.reverse().join("")},x.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},x.prototype.setPrintHandler=function(b){this._printHandler=b},x.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},x.prototype.addEscHandler=function(b,E){var re=this._identifier(b,[48,126]);this._escHandlers[re]===void 0&&(this._escHandlers[re]=[]);var ae=this._escHandlers[re];return ae.push(E),{dispose:function(){var le=ae.indexOf(E);le!==-1&&ae.splice(le,1)}}},x.prototype.setEscHandler=function(b,E){this._escHandlers[this._identifier(b,[48,126])]=[E]},x.prototype.clearEscHandler=function(b){this._escHandlers[this._identifier(b,[48,126])]&&delete this._escHandlers[this._identifier(b,[48,126])]},x.prototype.setEscHandlerFallback=function(b){this._escHandlerFb=b},x.prototype.setExecuteHandler=function(b,E){this._executeHandlers[b.charCodeAt(0)]=E},x.prototype.clearExecuteHandler=function(b){this._executeHandlers[b.charCodeAt(0)]&&delete this._executeHandlers[b.charCodeAt(0)]},x.prototype.setExecuteHandlerFallback=function(b){this._executeHandlerFb=b},x.prototype.addCsiHandler=function(b,E){var re=this._identifier(b);this._csiHandlers[re]===void 0&&(this._csiHandlers[re]=[]);var ae=this._csiHandlers[re];return ae.push(E),{dispose:function(){var le=ae.indexOf(E);le!==-1&&ae.splice(le,1)}}},x.prototype.setCsiHandler=function(b,E){this._csiHandlers[this._identifier(b)]=[E]},x.prototype.clearCsiHandler=function(b){this._csiHandlers[this._identifier(b)]&&delete this._csiHandlers[this._identifier(b)]},x.prototype.setCsiHandlerFallback=function(b){this._csiHandlerFb=b},x.prototype.addDcsHandler=function(b,E){return this._dcsParser.addHandler(this._identifier(b),E)},x.prototype.setDcsHandler=function(b,E){this._dcsParser.setHandler(this._identifier(b),E)},x.prototype.clearDcsHandler=function(b){this._dcsParser.clearHandler(this._identifier(b))},x.prototype.setDcsHandlerFallback=function(b){this._dcsParser.setHandlerFallback(b)},x.prototype.addOscHandler=function(b,E){return this._oscParser.addHandler(b,E)},x.prototype.setOscHandler=function(b,E){this._oscParser.setHandler(b,E)},x.prototype.clearOscHandler=function(b){this._oscParser.clearHandler(b)},x.prototype.setOscHandlerFallback=function(b){this._oscParser.setHandlerFallback(b)},x.prototype.setErrorHandler=function(b){this._errorHandler=b},x.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},x.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},x.prototype.parse=function(b,E){for(var re=0,ae=0,le=this.currentState,fe=this._oscParser,ce=this._dcsParser,ue=this._collect,ye=this._params,Se=this._transitions.table,we=0;we<E;++we){switch((ae=Se[le<<8|((re=b[we])<160?re:160)])>>4){case 2:for(var xe=we+1;;++xe){if(xe>=E||(re=b[xe])<32||re>126&&re<160){this._printHandler(b,we,xe),we=xe-1;break}if(++xe>=E||(re=b[xe])<32||re>126&&re<160){this._printHandler(b,we,xe),we=xe-1;break}if(++xe>=E||(re=b[xe])<32||re>126&&re<160){this._printHandler(b,we,xe),we=xe-1;break}if(++xe>=E||(re=b[xe])<32||re>126&&re<160){this._printHandler(b,we,xe),we=xe-1;break}}break;case 3:this._executeHandlers[re]?this._executeHandlers[re]():this._executeHandlerFb(re),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:we,code:re,currentState:le,collect:ue,params:ye,abort:!1}).abort)return;break;case 7:for(var ge=this._csiHandlers[ue<<8|re],_e=ge?ge.length-1:-1;_e>=0&&ge[_e](ye)===!1;_e--);_e<0&&this._csiHandlerFb(ue<<8|re,ye),this.precedingCodepoint=0;break;case 8:do switch(re){case 59:ye.addParam(0);break;case 58:ye.addSubParam(-1);break;default:ye.addDigit(re-48)}while(++we<E&&(re=b[we])>47&&re<60);we--;break;case 9:ue<<=8,ue|=re;break;case 10:for(var be=this._escHandlers[ue<<8|re],Ae=be?be.length-1:-1;Ae>=0&&be[Ae]()===!1;Ae--);Ae<0&&this._escHandlerFb(ue<<8|re),this.precedingCodepoint=0;break;case 11:ye.reset(),ye.addParam(0),ue=0;break;case 12:ce.hook(ue<<8|re,ye);break;case 13:for(var Te=we+1;;++Te)if(Te>=E||(re=b[Te])===24||re===26||re===27||re>127&&re<160){ce.put(b,we,Te),we=Te-1;break}break;case 14:ce.unhook(re!==24&&re!==26),re===27&&(ae|=1),ye.reset(),ye.addParam(0),ue=0,this.precedingCodepoint=0;break;case 4:fe.start();break;case 5:for(var Le=we+1;;Le++)if(Le>=E||(re=b[Le])<32||re>127&&re<=159){fe.put(b,we,Le),we=Le-1;break}break;case 6:fe.end(re!==24&&re!==26),re===27&&(ae|=1),ye.reset(),ye.addParam(0),ue=0,this.precedingCodepoint=0}le=15&ae}this._collect=ue,this.currentState=le},x}(he.Disposable);Ce.EscapeSequenceParser=se},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(fe,ce){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ye){ue.__proto__=ye}||function(ue,ye){for(var Se in ye)ye.hasOwnProperty(Se)&&(ue[Se]=ye[Se])})(fe,ce)},function(fe,ce){function ue(){this.constructor=fe}Ue(fe,ce),fe.prototype=ce===null?Object.create(ce):(ue.prototype=ce.prototype,new ue)}),he=this&&this.__decorate||function(fe,ce,ue,ye){var Se,we=arguments.length,xe=we<3?ce:ye===null?ye=Object.getOwnPropertyDescriptor(ce,ue):ye;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")xe=Reflect.decorate(fe,ce,ue,ye);else for(var ge=fe.length-1;ge>=0;ge--)(Se=fe[ge])&&(xe=(we<3?Se(xe):we>3?Se(ce,ue,xe):Se(ce,ue))||xe);return we>3&&xe&&Object.defineProperty(ce,ue,xe),xe},de=this&&this.__param||function(fe,ce){return function(ue,ye){ce(ue,ye,fe)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.Renderer=void 0;var te=ve(41),oe=ve(47),ne=ve(48),ee=ve(49),se=ve(29),z=ve(2),x=ve(5),b=ve(1),E=ve(25),re=ve(0),ae=1,le=function(fe){function ce(ue,ye,Se,we,xe,ge,_e,be,Ae){var Te=fe.call(this)||this;Te._colors=ue,Te._screenElement=ye,Te._bufferService=xe,Te._charSizeService=ge,Te._optionsService=_e,Te._id=ae++,Te._onRequestRedraw=new re.EventEmitter;var Le=Te._optionsService.options.allowTransparency;return Te._characterJoinerRegistry=new se.CharacterJoinerRegistry(Te._bufferService),Te._renderLayers=[new te.TextRenderLayer(Te._screenElement,0,Te._colors,Te._characterJoinerRegistry,Le,Te._id,Te._bufferService,_e),new oe.SelectionRenderLayer(Te._screenElement,1,Te._colors,Te._id,Te._bufferService,_e),new ee.LinkRenderLayer(Te._screenElement,2,Te._colors,Te._id,Se,we,Te._bufferService,_e),new ne.CursorRenderLayer(Te._screenElement,3,Te._colors,Te._id,Te._onRequestRedraw,Te._bufferService,_e,be,Ae)],Te.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Te._devicePixelRatio=window.devicePixelRatio,Te._updateDimensions(),Te.onOptionsChanged(),Te}return a(ce,fe),Object.defineProperty(ce.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),ce.prototype.dispose=function(){for(var ue=0,ye=this._renderLayers;ue<ye.length;ue++)ye[ue].dispose();fe.prototype.dispose.call(this),E.removeTerminalFromCache(this._id)},ce.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},ce.prototype.setColors=function(ue){this._colors=ue;for(var ye=0,Se=this._renderLayers;ye<Se.length;ye++){var we=Se[ye];we.setColors(this._colors),we.reset()}},ce.prototype.onResize=function(ue,ye){this._updateDimensions();for(var Se=0,we=this._renderLayers;Se<we.length;Se++)we[Se].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},ce.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},ce.prototype.onBlur=function(){this._runOperation(function(ue){return ue.onBlur()})},ce.prototype.onFocus=function(){this._runOperation(function(ue){return ue.onFocus()})},ce.prototype.onSelectionChanged=function(ue,ye,Se){Se===void 0&&(Se=!1),this._runOperation(function(we){return we.onSelectionChanged(ue,ye,Se)})},ce.prototype.onCursorMove=function(){this._runOperation(function(ue){return ue.onCursorMove()})},ce.prototype.onOptionsChanged=function(){this._runOperation(function(ue){return ue.onOptionsChanged()})},ce.prototype.clear=function(){this._runOperation(function(ue){return ue.reset()})},ce.prototype._runOperation=function(ue){for(var ye=0,Se=this._renderLayers;ye<Se.length;ye++)ue(Se[ye])},ce.prototype.renderRows=function(ue,ye){for(var Se=0,we=this._renderLayers;Se<we.length;Se++)we[Se].onGridChanged(ue,ye)},ce.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},ce.prototype.registerCharacterJoiner=function(ue){return this._characterJoinerRegistry.registerCharacterJoiner(ue)},ce.prototype.deregisterCharacterJoiner=function(ue){return this._characterJoinerRegistry.deregisterCharacterJoiner(ue)},ce=he([de(4,b.IBufferService),de(5,x.ICharSizeService),de(6,b.IOptionsService),de(7,b.ICoreService),de(8,x.ICoreBrowserService)],ce)}(z.Disposable);Ce.Renderer=le},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(z,x){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var re in E)E.hasOwnProperty(re)&&(b[re]=E[re])})(z,x)},function(z,x){function b(){this.constructor=z}Ue(z,x),z.prototype=x===null?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.TextRenderLayer=void 0;var he=ve(42),de=ve(13),te=ve(6),oe=ve(3),ne=ve(29),ee=ve(4),se=function(z){function x(b,E,re,ae,le,fe,ce,ue){var ye=z.call(this,b,"text",E,le,re,fe,ce,ue)||this;return ye._characterWidth=0,ye._characterFont="",ye._characterOverlapCache={},ye._workCell=new ee.CellData,ye._state=new he.GridCache,ye._characterJoinerRegistry=ae,ye}return a(x,z),x.prototype.resize=function(b){z.prototype.resize.call(this,b);var E=this._getFont(!1,!1);this._characterWidth===b.scaledCharWidth&&this._characterFont===E||(this._characterWidth=b.scaledCharWidth,this._characterFont=E,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},x.prototype.reset=function(){this._state.clear(),this._clearAll()},x.prototype._forEachCell=function(b,E,re,ae){for(var le=b;le<=E;le++)for(var fe=le+this._bufferService.buffer.ydisp,ce=this._bufferService.buffer.lines.get(fe),ue=re?re.getJoinedCharacters(fe):[],ye=0;ye<this._bufferService.cols;ye++){ce.loadCell(ye,this._workCell);var Se=this._workCell,we=!1,xe=ye;if(Se.getWidth()!==0){if(ue.length>0&&ye===ue[0][0]){we=!0;var ge=ue.shift();Se=new ne.JoinedCellData(this._workCell,ce.translateToString(!0,ge[0],ge[1]),ge[1]-ge[0]),xe=ge[1]-1}!we&&this._isOverlapping(Se)&&xe<ce.length-1&&ce.getCodePoint(xe+1)===oe.NULL_CELL_CODE&&(Se.content&=-12582913,Se.content|=2<<22),ae(Se,ye,le),ye=xe}}},x.prototype._drawBackground=function(b,E){var re=this,ae=this._ctx,le=this._bufferService.cols,fe=0,ce=0,ue=null;ae.save(),this._forEachCell(b,E,null,function(ye,Se,we){var xe=null;ye.isInverse()?xe=ye.isFgDefault()?re._colors.foreground.css:ye.isFgRGB()?"rgb("+te.AttributeData.toColorRGB(ye.getFgColor()).join(",")+")":re._colors.ansi[ye.getFgColor()].css:ye.isBgRGB()?xe="rgb("+te.AttributeData.toColorRGB(ye.getBgColor()).join(",")+")":ye.isBgPalette()&&(xe=re._colors.ansi[ye.getBgColor()].css),ue===null&&(fe=Se,ce=we),we!==ce?(ae.fillStyle=ue||"",re._fillCells(fe,ce,le-fe,1),fe=Se,ce=we):ue!==xe&&(ae.fillStyle=ue||"",re._fillCells(fe,ce,Se-fe,1),fe=Se,ce=we),ue=xe}),ue!==null&&(ae.fillStyle=ue,this._fillCells(fe,ce,le-fe,1)),ae.restore()},x.prototype._drawForeground=function(b,E){var re=this;this._forEachCell(b,E,this._characterJoinerRegistry,function(ae,le,fe){if(!ae.isInvisible()&&(re._drawChars(ae,le,fe),ae.isUnderline())){if(re._ctx.save(),ae.isInverse())if(ae.isBgDefault())re._ctx.fillStyle=re._colors.background.css;else if(ae.isBgRGB())re._ctx.fillStyle="rgb("+te.AttributeData.toColorRGB(ae.getBgColor()).join(",")+")";else{var ce=ae.getBgColor();re._optionsService.options.drawBoldTextInBrightColors&&ae.isBold()&&ce<8&&(ce+=8),re._ctx.fillStyle=re._colors.ansi[ce].css}else if(ae.isFgDefault())re._ctx.fillStyle=re._colors.foreground.css;else if(ae.isFgRGB())re._ctx.fillStyle="rgb("+te.AttributeData.toColorRGB(ae.getFgColor()).join(",")+")";else{var ue=ae.getFgColor();re._optionsService.options.drawBoldTextInBrightColors&&ae.isBold()&&ue<8&&(ue+=8),re._ctx.fillStyle=re._colors.ansi[ue].css}re._fillBottomLineAtCells(le,fe,ae.getWidth()),re._ctx.restore()}})},x.prototype.onGridChanged=function(b,E){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,b,this._bufferService.cols,E-b+1),this._drawBackground(b,E),this._drawForeground(b,E))},x.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},x.prototype._isOverlapping=function(b){if(b.getWidth()!==1||b.getCode()<256)return!1;var E=b.getChars();if(this._characterOverlapCache.hasOwnProperty(E))return this._characterOverlapCache[E];this._ctx.save(),this._ctx.font=this._characterFont;var re=Math.floor(this._ctx.measureText(E).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[E]=re,re},x}(de.BaseRenderLayer);Ce.TextRenderLayer=se},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.GridCache=void 0;var Ue=function(){function a(){this.cache=[]}return a.prototype.resize=function(he,de){for(var te=0;te<he;te++){this.cache.length<=te&&this.cache.push([]);for(var oe=this.cache[te].length;oe<de;oe++)this.cache[te].push(void 0);this.cache[te].length=de}this.cache.length=he},a.prototype.clear=function(){for(var he=0;he<this.cache.length;he++)for(var de=0;de<this.cache[he].length;de++)this.cache[he][de]=void 0},a}();Ce.GridCache=Ue},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(re,ae){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,fe){le.__proto__=fe}||function(le,fe){for(var ce in fe)fe.hasOwnProperty(ce)&&(le[ce]=fe[ce])})(re,ae)},function(re,ae){function le(){this.constructor=re}Ue(re,ae),re.prototype=ae===null?Object.create(ae):(le.prototype=ae.prototype,new le)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.NoneCharAtlas=Ce.DynamicCharAtlas=Ce.getGlyphCacheKey=void 0;var he=ve(9),de=ve(44),te=ve(27),oe=ve(46),ne=ve(11),ee=ve(28),se=ve(10),z={css:"rgba(0, 0, 0, 0)",rgba:0};function x(re){return re.code<<21|re.bg<<12|re.fg<<3|(re.bold?0:4)+(re.dim?0:2)+(re.italic?0:1)}Ce.getGlyphCacheKey=x;var b=function(re){function ae(le,fe){var ce=re.call(this)||this;ce._config=fe,ce._drawToCacheCount=0,ce._glyphsWaitingOnBitmap=[],ce._bitmapCommitTimeout=null,ce._bitmap=null,ce._cacheCanvas=le.createElement("canvas"),ce._cacheCanvas.width=1024,ce._cacheCanvas.height=1024,ce._cacheCtx=ee.throwIfFalsy(ce._cacheCanvas.getContext("2d",{alpha:!0}));var ue=le.createElement("canvas");ue.width=ce._config.scaledCharWidth,ue.height=ce._config.scaledCharHeight,ce._tmpCtx=ee.throwIfFalsy(ue.getContext("2d",{alpha:ce._config.allowTransparency})),ce._width=Math.floor(1024/ce._config.scaledCharWidth),ce._height=Math.floor(1024/ce._config.scaledCharHeight);var ye=ce._width*ce._height;return ce._cacheMap=new oe.LRUMap(ye),ce._cacheMap.prealloc(ye),ce}return a(ae,re),ae.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},ae.prototype.beginFrame=function(){this._drawToCacheCount=0},ae.prototype.draw=function(le,fe,ce,ue){if(fe.code===32)return!0;if(!this._canCache(fe))return!1;var ye=x(fe),Se=this._cacheMap.get(ye);if(Se!=null)return this._drawFromCache(le,Se,ce,ue),!0;if(this._drawToCacheCount<100){var we=void 0;we=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var xe=this._drawToCache(fe,we);return this._cacheMap.set(ye,xe),this._drawFromCache(le,xe,ce,ue),!0}return!1},ae.prototype._canCache=function(le){return le.code<256},ae.prototype._toCoordinateX=function(le){return le%this._width*this._config.scaledCharWidth},ae.prototype._toCoordinateY=function(le){return Math.floor(le/this._width)*this._config.scaledCharHeight},ae.prototype._drawFromCache=function(le,fe,ce,ue){if(!fe.isEmpty){var ye=this._toCoordinateX(fe.index),Se=this._toCoordinateY(fe.index);le.drawImage(fe.inBitmap?this._bitmap:this._cacheCanvas,ye,Se,this._config.scaledCharWidth,this._config.scaledCharHeight,ce,ue,this._config.scaledCharWidth,this._config.scaledCharHeight)}},ae.prototype._getColorFromAnsiIndex=function(le){return le<this._config.colors.ansi.length?this._config.colors.ansi[le]:te.DEFAULT_ANSI_COLORS[le]},ae.prototype._getBackgroundColor=function(le){return this._config.allowTransparency?z:le.bg===he.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:le.bg<256?this._getColorFromAnsiIndex(le.bg):this._config.colors.background},ae.prototype._getForegroundColor=function(le){return le.fg===he.INVERTED_DEFAULT_COLOR?se.color.opaque(this._config.colors.background):le.fg<256?this._getColorFromAnsiIndex(le.fg):this._config.colors.foreground},ae.prototype._drawToCache=function(le,fe){this._drawToCacheCount++,this._tmpCtx.save();var ce=this._getBackgroundColor(le);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=ce.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var ue=le.bold?this._config.fontWeightBold:this._config.fontWeight,ye=le.italic?"italic":"";this._tmpCtx.font=ye+" "+ue+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(le).css,le.dim&&(this._tmpCtx.globalAlpha=he.DIM_OPACITY),this._tmpCtx.fillText(le.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var Se=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),we=!1;this._config.allowTransparency||(we=function(be,Ae){for(var Te=!0,Le=Ae.rgba>>>24,ke=Ae.rgba>>>16&255,Pe=Ae.rgba>>>8&255,Oe=0;Oe<be.data.length;Oe+=4)be.data[Oe]===Le&&be.data[Oe+1]===ke&&be.data[Oe+2]===Pe?be.data[Oe+3]=0:Te=!1;return Te}(Se,ce));var xe=this._toCoordinateX(fe),ge=this._toCoordinateY(fe);this._cacheCtx.putImageData(Se,xe,ge);var _e={index:fe,isEmpty:we,inBitmap:!1};return this._addGlyphToBitmap(_e),_e},ae.prototype._addGlyphToBitmap=function(le){var fe=this;!("createImageBitmap"in window)||ne.isFirefox||ne.isSafari||(this._glyphsWaitingOnBitmap.push(le),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return fe._generateBitmap()},100)))},ae.prototype._generateBitmap=function(){var le=this,fe=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(ce){le._bitmap=ce;for(var ue=0;ue<fe.length;ue++)fe[ue].inBitmap=!0}),this._bitmapCommitTimeout=null},ae}(de.BaseCharAtlas);Ce.DynamicCharAtlas=b;var E=function(re){function ae(le,fe){return re.call(this)||this}return a(ae,re),ae.prototype.draw=function(le,fe,ce,ue){return!1},ae}(de.BaseCharAtlas);Ce.NoneCharAtlas=E},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.BaseCharAtlas=void 0;var Ue=function(){function a(){this._didWarmUp=!1}return a.prototype.dispose=function(){},a.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},a.prototype._doWarmUp=function(){},a.prototype.beginFrame=function(){},a}();Ce.BaseCharAtlas=Ue},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.ColorContrastCache=void 0;var Ue=function(){function a(){this._color={},this._rgba={}}return a.prototype.clear=function(){this._color={},this._rgba={}},a.prototype.setCss=function(he,de,te){this._rgba[he]||(this._rgba[he]={}),this._rgba[he][de]=te},a.prototype.getCss=function(he,de){return this._rgba[he]?this._rgba[he][de]:void 0},a.prototype.setColor=function(he,de,te){this._color[he]||(this._color[he]={}),this._color[he][de]=te},a.prototype.getColor=function(he,de){return this._color[he]?this._color[he][de]:void 0},a}();Ce.ColorContrastCache=Ue},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.LRUMap=void 0;var Ue=function(){function a(he){this.capacity=he,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return a.prototype._unlinkNode=function(he){var de=he.prev,te=he.next;he===this._head&&(this._head=te),he===this._tail&&(this._tail=de),de!==null&&(de.next=te),te!==null&&(te.prev=de)},a.prototype._appendNode=function(he){var de=this._tail;de!==null&&(de.next=he),he.prev=de,he.next=null,this._tail=he,this._head===null&&(this._head=he)},a.prototype.prealloc=function(he){for(var de=this._nodePool,te=0;te<he;te++)de.push({prev:null,next:null,key:null,value:null})},a.prototype.get=function(he){var de=this._map[he];return de!==void 0?(this._unlinkNode(de),this._appendNode(de),de.value):null},a.prototype.peekValue=function(he){var de=this._map[he];return de!==void 0?de.value:null},a.prototype.peek=function(){var he=this._head;return he===null?null:he.value},a.prototype.set=function(he,de){var te=this._map[he];if(te!==void 0)te=this._map[he],this._unlinkNode(te),te.value=de;else if(this.size>=this.capacity)te=this._head,this._unlinkNode(te),delete this._map[te.key],te.key=he,te.value=de,this._map[he]=te;else{var oe=this._nodePool;oe.length>0?((te=oe.pop()).key=he,te.value=de):te={prev:null,next:null,key:he,value:de},this._map[he]=te,this.size++}this._appendNode(te)},a}();Ce.LRUMap=Ue},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(de,te){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var ee in ne)ne.hasOwnProperty(ee)&&(oe[ee]=ne[ee])})(de,te)},function(de,te){function oe(){this.constructor=de}Ue(de,te),de.prototype=te===null?Object.create(te):(oe.prototype=te.prototype,new oe)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.SelectionRenderLayer=void 0;var he=function(de){function te(oe,ne,ee,se,z,x){var b=de.call(this,oe,"selection",ne,!0,ee,se,z,x)||this;return b._clearState(),b}return a(te,de),te.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},te.prototype.resize=function(oe){de.prototype.resize.call(this,oe),this._clearState()},te.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},te.prototype.onSelectionChanged=function(oe,ne,ee){if(this._didStateChange(oe,ne,ee,this._bufferService.buffer.ydisp))if(this._clearAll(),oe&&ne){var se=oe[1]-this._bufferService.buffer.ydisp,z=ne[1]-this._bufferService.buffer.ydisp,x=Math.max(se,0),b=Math.min(z,this._bufferService.rows-1);if(!(x>=this._bufferService.rows||b<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,ee){var E=oe[0],re=ne[0]-E,ae=b-x+1;this._fillCells(E,x,re,ae)}else{E=se===x?oe[0]:0;var le=x===b?ne[0]:this._bufferService.cols;this._fillCells(E,x,le-E,1);var fe=Math.max(b-x-1,0);if(this._fillCells(0,x+1,this._bufferService.cols,fe),x!==b){var ce=z===b?ne[0]:this._bufferService.cols;this._fillCells(0,b,ce,1)}}this._state.start=[oe[0],oe[1]],this._state.end=[ne[0],ne[1]],this._state.columnSelectMode=ee,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},te.prototype._didStateChange=function(oe,ne,ee,se){return!this._areCoordinatesEqual(oe,this._state.start)||!this._areCoordinatesEqual(ne,this._state.end)||ee!==this._state.columnSelectMode||se!==this._state.ydisp},te.prototype._areCoordinatesEqual=function(oe,ne){return!(!oe||!ne)&&oe[0]===ne[0]&&oe[1]===ne[1]},te}(ve(13).BaseRenderLayer);Ce.SelectionRenderLayer=he},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(ne,ee){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,z){se.__proto__=z}||function(se,z){for(var x in z)z.hasOwnProperty(x)&&(se[x]=z[x])})(ne,ee)},function(ne,ee){function se(){this.constructor=ne}Ue(ne,ee),ne.prototype=ee===null?Object.create(ee):(se.prototype=ee.prototype,new se)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.CursorRenderLayer=void 0;var he=ve(13),de=ve(4),te=function(ne){function ee(se,z,x,b,E,re,ae,le,fe){var ce=ne.call(this,se,"cursor",z,!0,x,b,re,ae)||this;return ce._onRequestRedraw=E,ce._coreService=le,ce._coreBrowserService=fe,ce._cell=new de.CellData,ce._state={x:0,y:0,isFocused:!1,style:"",width:0},ce._cursorRenderers={bar:ce._renderBarCursor.bind(ce),block:ce._renderBlockCursor.bind(ce),underline:ce._renderUnderlineCursor.bind(ce)},ce}return a(ee,ne),ee.prototype.resize=function(se){ne.prototype.resize.call(this,se),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},ee.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},ee.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ee.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ee.prototype.onOptionsChanged=function(){var se,z=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new oe(this._coreBrowserService.isFocused,function(){z._render(!0)})):((se=this._cursorBlinkStateManager)===null||se===void 0||se.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ee.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},ee.prototype.onGridChanged=function(se,z){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},ee.prototype._render=function(se){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var z=this._bufferService.buffer.ybase+this._bufferService.buffer.y,x=z-this._bufferService.buffer.ydisp;if(x<0||x>=this._bufferService.rows)this._clearCursor();else{var b=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(z).loadCell(b,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var E=this._optionsService.options.cursorStyle;return E&&E!=="block"?this._cursorRenderers[E](b,x,this._cell):this._renderBlurCursor(b,x,this._cell),this._ctx.restore(),this._state.x=b,this._state.y=x,this._state.isFocused=!1,this._state.style=E,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===b&&this._state.y===x&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](b,x,this._cell),this._ctx.restore(),this._state.x=b,this._state.y=x,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},ee.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},ee.prototype._renderBarCursor=function(se,z,x){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(se,z,this._optionsService.options.cursorWidth),this._ctx.restore()},ee.prototype._renderBlockCursor=function(se,z,x){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(se,z,x.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(x,se,z),this._ctx.restore()},ee.prototype._renderUnderlineCursor=function(se,z,x){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(se,z),this._ctx.restore()},ee.prototype._renderBlurCursor=function(se,z,x){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(se,z,x.getWidth(),1),this._ctx.restore()},ee}(he.BaseRenderLayer);Ce.CursorRenderLayer=te;var oe=function(){function ne(ee,se){this._renderCallback=se,this.isCursorVisible=!0,ee&&this._restartInterval()}return Object.defineProperty(ne.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),ne.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},ne.prototype.restartBlinkAnimation=function(){var ee=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){ee._renderCallback(),ee._animationFrame=void 0})))},ne.prototype._restartInterval=function(ee){var se=this;ee===void 0&&(ee=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(se._animationTimeRestarted){var z=600-(Date.now()-se._animationTimeRestarted);if(se._animationTimeRestarted=void 0,z>0)return void se._restartInterval(z)}se.isCursorVisible=!1,se._animationFrame=window.requestAnimationFrame(function(){se._renderCallback(),se._animationFrame=void 0}),se._blinkInterval=window.setInterval(function(){if(se._animationTimeRestarted){var x=600-(Date.now()-se._animationTimeRestarted);return se._animationTimeRestarted=void 0,void se._restartInterval(x)}se.isCursorVisible=!se.isCursorVisible,se._animationFrame=window.requestAnimationFrame(function(){se._renderCallback(),se._animationFrame=void 0})},600)},ee)},ne.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},ne.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},ne}()},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(ne,ee){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,z){se.__proto__=z}||function(se,z){for(var x in z)z.hasOwnProperty(x)&&(se[x]=z[x])})(ne,ee)},function(ne,ee){function se(){this.constructor=ne}Ue(ne,ee),ne.prototype=ee===null?Object.create(ee):(se.prototype=ee.prototype,new se)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.LinkRenderLayer=void 0;var he=ve(13),de=ve(9),te=ve(26),oe=function(ne){function ee(se,z,x,b,E,re,ae,le){var fe=ne.call(this,se,"link",z,!0,x,b,ae,le)||this;return E.onShowLinkUnderline(function(ce){return fe._onShowLinkUnderline(ce)}),E.onHideLinkUnderline(function(ce){return fe._onHideLinkUnderline(ce)}),re.onShowLinkUnderline(function(ce){return fe._onShowLinkUnderline(ce)}),re.onHideLinkUnderline(function(ce){return fe._onHideLinkUnderline(ce)}),fe}return a(ee,ne),ee.prototype.resize=function(se){ne.prototype.resize.call(this,se),this._state=void 0},ee.prototype.reset=function(){this._clearCurrentLink()},ee.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var se=this._state.y2-this._state.y1-1;se>0&&this._clearCells(0,this._state.y1+1,this._state.cols,se),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},ee.prototype._onShowLinkUnderline=function(se){if(se.fg===de.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:se.fg&&te.is256Color(se.fg)?this._ctx.fillStyle=this._colors.ansi[se.fg].css:this._ctx.fillStyle=this._colors.foreground.css,se.y1===se.y2)this._fillBottomLineAtCells(se.x1,se.y1,se.x2-se.x1);else{this._fillBottomLineAtCells(se.x1,se.y1,se.cols-se.x1);for(var z=se.y1+1;z<se.y2;z++)this._fillBottomLineAtCells(0,z,se.cols);this._fillBottomLineAtCells(0,se.y2,se.x2)}this._state=se},ee.prototype._onHideLinkUnderline=function(se){this._clearCurrentLink()},ee}(he.BaseRenderLayer);Ce.LinkRenderLayer=oe},function(pt,Ce,ve){"use strict";var Ue=this&&this.__decorate||function(ne,ee,se,z){var x,b=arguments.length,E=b<3?ee:z===null?z=Object.getOwnPropertyDescriptor(ee,se):z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ne,ee,se,z);else for(var re=ne.length-1;re>=0;re--)(x=ne[re])&&(E=(b<3?x(E):b>3?x(ee,se,E):x(ee,se))||E);return b>3&&E&&Object.defineProperty(ee,se,E),E},a=this&&this.__param||function(ne,ee){return function(se,z){ee(se,z,ne)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.MouseZone=Ce.Linkifier=void 0;var he=ve(0),de=ve(1),te=function(){function ne(ee,se,z){this._bufferService=ee,this._logService=se,this._unicodeService=z,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new he.EventEmitter,this._onHideLinkUnderline=new he.EventEmitter,this._onLinkTooltip=new he.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(ne.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),ne.prototype.attachToDom=function(ee,se){this._element=ee,this._mouseZoneManager=se},ne.prototype.linkifyRows=function(ee,se){var z=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=ee,this._rowsToLinkify.end=se):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,ee),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,se)),this._mouseZoneManager.clearAll(ee,se),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return z._linkifyRows()},ne._timeBeforeLatency))},ne.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var ee=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var se=ee.ydisp+this._rowsToLinkify.start;if(!(se>=ee.lines.length)){for(var z=ee.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,x=Math.ceil(2e3/this._bufferService.cols),b=this._bufferService.buffer.iterator(!1,se,z,x,x);b.hasNext();)for(var E=b.next(),re=0;re<this._linkMatchers.length;re++)this._doLinkifyRow(E.range.first,E.content,this._linkMatchers[re]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},ne.prototype.registerLinkMatcher=function(ee,se,z){if(z===void 0&&(z={}),!se)throw new Error("handler must be defined");var x={id:this._nextLinkMatcherId++,regex:ee,handler:se,matchIndex:z.matchIndex,validationCallback:z.validationCallback,hoverTooltipCallback:z.tooltipCallback,hoverLeaveCallback:z.leaveCallback,willLinkActivate:z.willLinkActivate,priority:z.priority||0};return this._addLinkMatcherToList(x),x.id},ne.prototype._addLinkMatcherToList=function(ee){if(this._linkMatchers.length!==0){for(var se=this._linkMatchers.length-1;se>=0;se--)if(ee.priority<=this._linkMatchers[se].priority)return void this._linkMatchers.splice(se+1,0,ee);this._linkMatchers.splice(0,0,ee)}else this._linkMatchers.push(ee)},ne.prototype.deregisterLinkMatcher=function(ee){for(var se=0;se<this._linkMatchers.length;se++)if(this._linkMatchers[se].id===ee)return this._linkMatchers.splice(se,1),!0;return!1},ne.prototype._doLinkifyRow=function(ee,se,z){for(var x,b=this,E=new RegExp(z.regex.source,(z.regex.flags||"")+"g"),re=-1,ae=function(){var fe=x[typeof z.matchIndex!="number"?0:z.matchIndex];if(!fe)return le._logService.debug("match found without corresponding matchIndex",x,z),"break";if(re=se.indexOf(fe,re+1),E.lastIndex=re+fe.length,re<0)return"break";var ce=le._bufferService.buffer.stringIndexToBufferIndex(ee,re);if(ce[0]<0)return"break";var ue=le._bufferService.buffer.lines.get(ce[0]);if(!ue)return"break";var ye=ue.getFg(ce[1]),Se=ye?ye>>9&511:void 0;z.validationCallback?z.validationCallback(fe,function(we){b._rowsTimeoutId||we&&b._addLink(ce[1],ce[0]-b._bufferService.buffer.ydisp,fe,z,Se)}):le._addLink(ce[1],ce[0]-le._bufferService.buffer.ydisp,fe,z,Se)},le=this;(x=E.exec(se))!==null&&ae()!=="break";);},ne.prototype._addLink=function(ee,se,z,x,b){var E=this;if(this._mouseZoneManager&&this._element){var re=this._unicodeService.getStringCellWidth(z),ae=ee%this._bufferService.cols,le=se+Math.floor(ee/this._bufferService.cols),fe=(ae+re)%this._bufferService.cols,ce=le+Math.floor((ae+re)/this._bufferService.cols);fe===0&&(fe=this._bufferService.cols,ce--),this._mouseZoneManager.add(new oe(ae+1,le+1,fe+1,ce+1,function(ue){if(x.handler)return x.handler(ue,z);var ye=window.open();ye?(ye.opener=null,ye.location.href=z):console.warn("Opening link blocked as opener could not be cleared")},function(){E._onShowLinkUnderline.fire(E._createLinkHoverEvent(ae,le,fe,ce,b)),E._element.classList.add("xterm-cursor-pointer")},function(ue){E._onLinkTooltip.fire(E._createLinkHoverEvent(ae,le,fe,ce,b)),x.hoverTooltipCallback&&x.hoverTooltipCallback(ue,z,{start:{x:ae,y:le},end:{x:fe,y:ce}})},function(){E._onHideLinkUnderline.fire(E._createLinkHoverEvent(ae,le,fe,ce,b)),E._element.classList.remove("xterm-cursor-pointer"),x.hoverLeaveCallback&&x.hoverLeaveCallback()},function(ue){return!x.willLinkActivate||x.willLinkActivate(ue,z)}))}},ne.prototype._createLinkHoverEvent=function(ee,se,z,x,b){return{x1:ee,y1:se,x2:z,y2:x,cols:this._bufferService.cols,fg:b}},ne._timeBeforeLatency=200,ne=Ue([a(0,de.IBufferService),a(1,de.ILogService),a(2,de.IUnicodeService)],ne)}();Ce.Linkifier=te;var oe=function(ne,ee,se,z,x,b,E,re,ae){this.x1=ne,this.y1=ee,this.x2=se,this.y2=z,this.clickCallback=x,this.hoverCallback=b,this.tooltipCallback=E,this.leaveCallback=re,this.willLinkActivate=ae};Ce.MouseZone=oe},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(fe,ce){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ye){ue.__proto__=ye}||function(ue,ye){for(var Se in ye)ye.hasOwnProperty(Se)&&(ue[Se]=ye[Se])})(fe,ce)},function(fe,ce){function ue(){this.constructor=fe}Ue(fe,ce),fe.prototype=ce===null?Object.create(ce):(ue.prototype=ce.prototype,new ue)}),he=this&&this.__decorate||function(fe,ce,ue,ye){var Se,we=arguments.length,xe=we<3?ce:ye===null?ye=Object.getOwnPropertyDescriptor(ce,ue):ye;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")xe=Reflect.decorate(fe,ce,ue,ye);else for(var ge=fe.length-1;ge>=0;ge--)(Se=fe[ge])&&(xe=(we<3?Se(xe):we>3?Se(ce,ue,xe):Se(ce,ue))||xe);return we>3&&xe&&Object.defineProperty(ce,ue,xe),xe},de=this&&this.__param||function(fe,ce){return function(ue,ye){ce(ue,ye,fe)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.SelectionService=void 0;var te=ve(11),oe=ve(52),ne=ve(4),ee=ve(0),se=ve(5),z=ve(1),x=ve(30),b=ve(53),E=ve(2),re="\xA0",ae=new RegExp(re,"g"),le=function(fe){function ce(ue,ye,Se,we,xe,ge,_e){var be=fe.call(this)||this;return be._element=ue,be._screenElement=ye,be._bufferService=Se,be._coreService=we,be._mouseService=xe,be._optionsService=ge,be._renderService=_e,be._dragScrollAmount=0,be._enabled=!0,be._workCell=new ne.CellData,be._mouseDownTimeStamp=0,be._onLinuxMouseSelection=be.register(new ee.EventEmitter),be._onRedrawRequest=be.register(new ee.EventEmitter),be._onSelectionChange=be.register(new ee.EventEmitter),be._onRequestScrollLines=be.register(new ee.EventEmitter),be._mouseMoveListener=function(Ae){return be._onMouseMove(Ae)},be._mouseUpListener=function(Ae){return be._onMouseUp(Ae)},be._coreService.onUserInput(function(){be.hasSelection&&be.clearSelection()}),be._trimListener=be._bufferService.buffer.lines.onTrim(function(Ae){return be._onTrim(Ae)}),be.register(be._bufferService.buffers.onBufferActivate(function(Ae){return be._onBufferActivate(Ae)})),be.enable(),be._model=new oe.SelectionModel(be._bufferService),be._activeSelectionMode=0,be}return a(ce,fe),Object.defineProperty(ce.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),ce.prototype.dispose=function(){this._removeMouseDownListeners()},ce.prototype.reset=function(){this.clearSelection()},ce.prototype.disable=function(){this.clearSelection(),this._enabled=!1},ce.prototype.enable=function(){this._enabled=!0},Object.defineProperty(ce.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"hasSelection",{get:function(){var ue=this._model.finalSelectionStart,ye=this._model.finalSelectionEnd;return!(!ue||!ye)&&(ue[0]!==ye[0]||ue[1]!==ye[1])},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"selectionText",{get:function(){var ue=this._model.finalSelectionStart,ye=this._model.finalSelectionEnd;if(!ue||!ye)return"";var Se=this._bufferService.buffer,we=[];if(this._activeSelectionMode===3){if(ue[0]===ye[0])return"";for(var xe=ue[1];xe<=ye[1];xe++){var ge=Se.translateBufferLineToString(xe,!0,ue[0],ye[0]);we.push(ge)}}else{var _e=ue[1]===ye[1]?ye[0]:void 0;for(we.push(Se.translateBufferLineToString(ue[1],!0,ue[0],_e)),xe=ue[1]+1;xe<=ye[1]-1;xe++){var be=Se.lines.get(xe);ge=Se.translateBufferLineToString(xe,!0),be&&be.isWrapped?we[we.length-1]+=ge:we.push(ge)}ue[1]!==ye[1]&&(be=Se.lines.get(ye[1]),ge=Se.translateBufferLineToString(ye[1],!0,0,ye[0]),be&&be.isWrapped?we[we.length-1]+=ge:we.push(ge))}return we.map(function(Ae){return Ae.replace(ae," ")}).join(te.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),ce.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},ce.prototype.refresh=function(ue){var ye=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return ye._refresh()})),te.isLinux&&ue&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},ce.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},ce.prototype.isClickInSelection=function(ue){var ye=this._getMouseBufferCoords(ue),Se=this._model.finalSelectionStart,we=this._model.finalSelectionEnd;return!!(Se&&we&&ye)&&this._areCoordsInSelection(ye,Se,we)},ce.prototype._areCoordsInSelection=function(ue,ye,Se){return ue[1]>ye[1]&&ue[1]<Se[1]||ye[1]===Se[1]&&ue[1]===ye[1]&&ue[0]>=ye[0]&&ue[0]<Se[0]||ye[1]<Se[1]&&ue[1]===Se[1]&&ue[0]<Se[0]||ye[1]<Se[1]&&ue[1]===ye[1]&&ue[0]>=ye[0]},ce.prototype.selectWordAtCursor=function(ue){var ye=this._getMouseBufferCoords(ue);ye&&(this._selectWordAt(ye,!1),this._model.selectionEnd=void 0,this.refresh(!0))},ce.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},ce.prototype.selectLines=function(ue,ye){this._model.clearSelection(),ue=Math.max(ue,0),ye=Math.min(ye,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,ue],this._model.selectionEnd=[this._bufferService.cols,ye],this.refresh(),this._onSelectionChange.fire()},ce.prototype._onTrim=function(ue){this._model.onTrim(ue)&&this.refresh()},ce.prototype._getMouseBufferCoords=function(ue){var ye=this._mouseService.getCoords(ue,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(ye)return ye[0]--,ye[1]--,ye[1]+=this._bufferService.buffer.ydisp,ye},ce.prototype._getMouseEventScrollAmount=function(ue){var ye=x.getCoordsRelativeToElement(ue,this._screenElement)[1],Se=this._renderService.dimensions.canvasHeight;return ye>=0&&ye<=Se?0:(ye>Se&&(ye-=Se),ye=Math.min(Math.max(ye,-50),50),(ye/=50)/Math.abs(ye)+Math.round(14*ye))},ce.prototype.shouldForceSelection=function(ue){return te.isMac?ue.altKey&&this._optionsService.options.macOptionClickForcesSelection:ue.shiftKey},ce.prototype.onMouseDown=function(ue){if(this._mouseDownTimeStamp=ue.timeStamp,(ue.button!==2||!this.hasSelection)&&ue.button===0){if(!this._enabled){if(!this.shouldForceSelection(ue))return;ue.stopPropagation()}ue.preventDefault(),this._dragScrollAmount=0,this._enabled&&ue.shiftKey?this._onIncrementalClick(ue):ue.detail===1?this._onSingleClick(ue):ue.detail===2?this._onDoubleClick(ue):ue.detail===3&&this._onTripleClick(ue),this._addMouseDownListeners(),this.refresh(!0)}},ce.prototype._addMouseDownListeners=function(){var ue=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return ue._dragScroll()},50)},ce.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},ce.prototype._onIncrementalClick=function(ue){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(ue))},ce.prototype._onSingleClick=function(ue){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(ue)?3:0,this._model.selectionStart=this._getMouseBufferCoords(ue),this._model.selectionStart){this._model.selectionEnd=void 0;var ye=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);ye&&ye.length!==this._model.selectionStart[0]&&ye.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},ce.prototype._onDoubleClick=function(ue){var ye=this._getMouseBufferCoords(ue);ye&&(this._activeSelectionMode=1,this._selectWordAt(ye,!0))},ce.prototype._onTripleClick=function(ue){var ye=this._getMouseBufferCoords(ue);ye&&(this._activeSelectionMode=2,this._selectLineAt(ye[1]))},ce.prototype.shouldColumnSelect=function(ue){return ue.altKey&&!(te.isMac&&this._optionsService.options.macOptionClickForcesSelection)},ce.prototype._onMouseMove=function(ue){if(ue.stopImmediatePropagation(),this._model.selectionStart){var ye=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(ue),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(ue),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var Se=this._bufferService.buffer;if(this._model.selectionEnd[1]<Se.lines.length){var we=Se.lines.get(this._model.selectionEnd[1]);we&&we.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}ye&&ye[0]===this._model.selectionEnd[0]&&ye[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},ce.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var ue=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(ue.ydisp+this._bufferService.rows,ue.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=ue.ydisp),this.refresh()}},ce.prototype._onMouseUp=function(ue){var ye=ue.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&ye<500&&ue.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var Se=this._mouseService.getCoords(ue,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(Se&&Se[0]!==void 0&&Se[1]!==void 0){var we=b.moveToCellSequence(Se[0]-1,Se[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(we,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},ce.prototype._onBufferActivate=function(ue){var ye=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=ue.activeBuffer.lines.onTrim(function(Se){return ye._onTrim(Se)})},ce.prototype._convertViewportColToCharacterIndex=function(ue,ye){for(var Se=ye[0],we=0;ye[0]>=we;we++){var xe=ue.loadCell(we,this._workCell).getChars().length;this._workCell.getWidth()===0?Se--:xe>1&&ye[0]!==we&&(Se+=xe-1)}return Se},ce.prototype.setSelection=function(ue,ye,Se){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[ue,ye],this._model.selectionStartLength=Se,this.refresh()},ce.prototype._getWordAt=function(ue,ye,Se,we){if(Se===void 0&&(Se=!0),we===void 0&&(we=!0),!(ue[0]>=this._bufferService.cols)){var xe=this._bufferService.buffer,ge=xe.lines.get(ue[1]);if(ge){var _e=xe.translateBufferLineToString(ue[1],!1),be=this._convertViewportColToCharacterIndex(ge,ue),Ae=be,Te=ue[0]-be,Le=0,ke=0,Pe=0,Oe=0;if(_e.charAt(be)===" "){for(;be>0&&_e.charAt(be-1)===" ";)be--;for(;Ae<_e.length&&_e.charAt(Ae+1)===" ";)Ae++}else{var ze=ue[0],Ge=ue[0];ge.getWidth(ze)===0&&(Le++,ze--),ge.getWidth(Ge)===2&&(ke++,Ge++);var tt=ge.getString(Ge).length;for(tt>1&&(Oe+=tt-1,Ae+=tt-1);ze>0&&be>0&&!this._isCharWordSeparator(ge.loadCell(ze-1,this._workCell));){ge.loadCell(ze-1,this._workCell);var Me=this._workCell.getChars().length;this._workCell.getWidth()===0?(Le++,ze--):Me>1&&(Pe+=Me-1,be-=Me-1),be--,ze--}for(;Ge<ge.length&&Ae+1<_e.length&&!this._isCharWordSeparator(ge.loadCell(Ge+1,this._workCell));){ge.loadCell(Ge+1,this._workCell);var We=this._workCell.getChars().length;this._workCell.getWidth()===2?(ke++,Ge++):We>1&&(Oe+=We-1,Ae+=We-1),Ae++,Ge++}}Ae++;var it=be+Te-Le+Pe,at=Math.min(this._bufferService.cols,Ae-be+Le+ke-Pe-Oe);if(ye||_e.slice(be,Ae).trim()!==""){if(Se&&it===0&&ge.getCodePoint(0)!==32){var $e=xe.lines.get(ue[1]-1);if($e&&ge.isWrapped&&$e.getCodePoint(this._bufferService.cols-1)!==32){var Je=this._getWordAt([this._bufferService.cols-1,ue[1]-1],!1,!0,!1);if(Je){var Ye=this._bufferService.cols-Je.start;it-=Ye,at+=Ye}}}if(we&&it+at===this._bufferService.cols&&ge.getCodePoint(this._bufferService.cols-1)!==32){var Qe=xe.lines.get(ue[1]+1);if(Qe&&Qe.isWrapped&&Qe.getCodePoint(0)!==32){var st=this._getWordAt([0,ue[1]+1],!1,!1,!0);st&&(at+=st.length)}}return{start:it,length:at}}}}},ce.prototype._selectWordAt=function(ue,ye){var Se=this._getWordAt(ue,ye);if(Se){for(;Se.start<0;)Se.start+=this._bufferService.cols,ue[1]--;this._model.selectionStart=[Se.start,ue[1]],this._model.selectionStartLength=Se.length}},ce.prototype._selectToWordAt=function(ue){var ye=this._getWordAt(ue,!0);if(ye){for(var Se=ue[1];ye.start<0;)ye.start+=this._bufferService.cols,Se--;if(!this._model.areSelectionValuesReversed())for(;ye.start+ye.length>this._bufferService.cols;)ye.length-=this._bufferService.cols,Se++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?ye.start:ye.start+ye.length,Se]}},ce.prototype._isCharWordSeparator=function(ue){return ue.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(ue.getChars())>=0},ce.prototype._selectLineAt=function(ue){var ye=this._bufferService.buffer.getWrappedRangeForLine(ue);this._model.selectionStart=[0,ye.first],this._model.selectionEnd=[this._bufferService.cols,ye.last],this._model.selectionStartLength=0},ce=he([de(2,z.IBufferService),de(3,z.ICoreService),de(4,se.IMouseService),de(5,z.IOptionsService),de(6,se.IRenderService)],ce)}(E.Disposable);Ce.SelectionService=le},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.SelectionModel=void 0;var Ue=function(){function a(he){this._bufferService=he,this.isSelectAllActive=!1,this.selectionStartLength=0}return a.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(a.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var he=this.selectionStart[0]+this.selectionStartLength;return he>this._bufferService.cols?[he%this._bufferService.cols,this.selectionStart[1]+Math.floor(he/this._bufferService.cols)]:[he,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),a.prototype.areSelectionValuesReversed=function(){var he=this.selectionStart,de=this.selectionEnd;return!(!he||!de)&&(he[1]>de[1]||he[1]===de[1]&&he[0]>de[0])},a.prototype.onTrim=function(he){return this.selectionStart&&(this.selectionStart[1]-=he),this.selectionEnd&&(this.selectionEnd[1]-=he),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},a}();Ce.SelectionModel=Ue},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.moveToCellSequence=void 0;var Ue=ve(12);function a(ee,se,z,x){var b=ee-he(z,ee),E=se-he(z,se);return ne(Math.abs(b-E)-function(re,ae,le){for(var fe=0,ce=re-he(le,re),ue=ae-he(le,ae),ye=0;ye<Math.abs(ce-ue);ye++){var Se=de(re,ae)==="A"?-1:1,we=le.buffer.lines.get(ce+Se*ye);we&&we.isWrapped&&fe++}return fe}(ee,se,z),oe(de(ee,se),x))}function he(ee,se){for(var z=0,x=ee.buffer.lines.get(se),b=x&&x.isWrapped;b&&se>=0&&se<ee.rows;)z++,b=(x=ee.buffer.lines.get(--se))&&x.isWrapped;return z}function de(ee,se){return ee>se?"A":"B"}function te(ee,se,z,x,b,E){for(var re=ee,ae=se,le="";re!==z||ae!==x;)re+=b?1:-1,b&&re>E.cols-1?(le+=E.buffer.translateBufferLineToString(ae,!1,ee,re),re=0,ee=0,ae++):!b&&re<0&&(le+=E.buffer.translateBufferLineToString(ae,!1,0,ee+1),ee=re=E.cols-1,ae--);return le+E.buffer.translateBufferLineToString(ae,!1,ee,re)}function oe(ee,se){var z=se?"O":"[";return Ue.C0.ESC+z+ee}function ne(ee,se){ee=Math.floor(ee);for(var z="",x=0;x<ee;x++)z+=se;return z}Ce.moveToCellSequence=function(ee,se,z,x){var b,E=z.buffer.x,re=z.buffer.y;if(!z.buffer.hasScrollback)return function(le,fe,ce,ue,ye,Se){return a(fe,ue,ye,Se).length===0?"":ne(te(le,fe,le,fe-he(ye,fe),!1,ye).length,oe("D",Se))}(E,re,0,se,z,x)+a(re,se,z,x)+function(le,fe,ce,ue,ye,Se){var we;we=a(fe,ue,ye,Se).length>0?ue-he(ye,ue):fe;var xe=ue,ge=function(_e,be,Ae,Te,Le,ke){var Pe;return Pe=a(Ae,Te,Le,ke).length>0?Te-he(Le,Te):be,_e<Ae&&Pe<=Te||_e>=Ae&&Pe<Te?"C":"D"}(le,fe,ce,ue,ye,Se);return ne(te(le,we,ce,xe,ge==="C",ye).length,oe(ge,Se))}(E,re,ee,se,z,x);if(re===se)return b=E>ee?"D":"C",ne(Math.abs(E-ee),oe(b,x));b=re>se?"D":"C";var ae=Math.abs(re-se);return ne(function(le,fe){return fe.cols-le}(re>se?ee:E,z)+(ae-1)*z.cols+1+((re>se?E:ee)-1),oe(b,x))}},function(pt,Ce,ve){"use strict";var Ue=this&&this.__decorate||function(te,oe,ne,ee){var se,z=arguments.length,x=z<3?oe:ee===null?ee=Object.getOwnPropertyDescriptor(oe,ne):ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(te,oe,ne,ee);else for(var b=te.length-1;b>=0;b--)(se=te[b])&&(x=(z<3?se(x):z>3?se(oe,ne,x):se(oe,ne))||x);return z>3&&x&&Object.defineProperty(oe,ne,x),x},a=this&&this.__param||function(te,oe){return function(ne,ee){oe(ne,ee,te)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.SoundService=void 0;var he=ve(1),de=function(){function te(oe){this._optionsService=oe}return Object.defineProperty(te,"audioContext",{get:function(){if(!te._audioContext){var oe=window.AudioContext||window.webkitAudioContext;if(!oe)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;te._audioContext=new oe}return te._audioContext},enumerable:!1,configurable:!0}),te.prototype.playBellSound=function(){var oe=te.audioContext;if(oe){var ne=oe.createBufferSource();oe.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(ee){ne.buffer=ee,ne.connect(oe.destination),ne.start(0)})}},te.prototype._base64ToArrayBuffer=function(oe){for(var ne=window.atob(oe),ee=ne.length,se=new Uint8Array(ee),z=0;z<ee;z++)se[z]=ne.charCodeAt(z);return se.buffer},te.prototype._removeMimeType=function(oe){return oe.split(",")[1]},te=Ue([a(0,he.IOptionsService)],te)}();Ce.SoundService=de},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(z,x){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var re in E)E.hasOwnProperty(re)&&(b[re]=E[re])})(z,x)},function(z,x){function b(){this.constructor=z}Ue(z,x),z.prototype=x===null?Object.create(x):(b.prototype=x.prototype,new b)}),he=this&&this.__decorate||function(z,x,b,E){var re,ae=arguments.length,le=ae<3?x:E===null?E=Object.getOwnPropertyDescriptor(x,b):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(z,x,b,E);else for(var fe=z.length-1;fe>=0;fe--)(re=z[fe])&&(le=(ae<3?re(le):ae>3?re(x,b,le):re(x,b))||le);return ae>3&&le&&Object.defineProperty(x,b,le),le},de=this&&this.__param||function(z,x){return function(b,E){x(b,E,z)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.MouseZoneManager=void 0;var te=ve(2),oe=ve(7),ne=ve(5),ee=ve(1),se=function(z){function x(b,E,re,ae,le,fe){var ce=z.call(this)||this;return ce._element=b,ce._screenElement=E,ce._bufferService=re,ce._mouseService=ae,ce._selectionService=le,ce._optionsService=fe,ce._zones=[],ce._areZonesActive=!1,ce._lastHoverCoords=[void 0,void 0],ce._initialSelectionLength=0,ce.register(oe.addDisposableDomListener(ce._element,"mousedown",function(ue){return ce._onMouseDown(ue)})),ce._mouseMoveListener=function(ue){return ce._onMouseMove(ue)},ce._mouseLeaveListener=function(ue){return ce._onMouseLeave(ue)},ce._clickListener=function(ue){return ce._onClick(ue)},ce}return a(x,z),x.prototype.dispose=function(){z.prototype.dispose.call(this),this._deactivate()},x.prototype.add=function(b){this._zones.push(b),this._zones.length===1&&this._activate()},x.prototype.clearAll=function(b,E){if(this._zones.length!==0){b&&E||(b=0,E=this._bufferService.rows-1);for(var re=0;re<this._zones.length;re++){var ae=this._zones[re];(ae.y1>b&&ae.y1<=E+1||ae.y2>b&&ae.y2<=E+1||ae.y1<b&&ae.y2>E+1)&&(this._currentZone&&this._currentZone===ae&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(re--,1))}this._zones.length===0&&this._deactivate()}},x.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},x.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},x.prototype._onMouseMove=function(b){this._lastHoverCoords[0]===b.pageX&&this._lastHoverCoords[1]===b.pageY||(this._onHover(b),this._lastHoverCoords=[b.pageX,b.pageY])},x.prototype._onHover=function(b){var E=this,re=this._findZoneEventAt(b);re!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),re&&(this._currentZone=re,re.hoverCallback&&re.hoverCallback(b),this._tooltipTimeout=window.setTimeout(function(){return E._onTooltip(b)},this._optionsService.options.linkTooltipHoverDuration)))},x.prototype._onTooltip=function(b){this._tooltipTimeout=void 0;var E=this._findZoneEventAt(b);E&&E.tooltipCallback&&E.tooltipCallback(b)},x.prototype._onMouseDown=function(b){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var E=this._findZoneEventAt(b);E!=null&&E.willLinkActivate(b)&&(b.preventDefault(),b.stopImmediatePropagation())}},x.prototype._onMouseLeave=function(b){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},x.prototype._onClick=function(b){var E=this._findZoneEventAt(b),re=this._getSelectionLength();E&&re===this._initialSelectionLength&&(E.clickCallback(b),b.preventDefault(),b.stopImmediatePropagation())},x.prototype._getSelectionLength=function(){var b=this._selectionService.selectionText;return b?b.length:0},x.prototype._findZoneEventAt=function(b){var E=this._mouseService.getCoords(b,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(E)for(var re=E[0],ae=E[1],le=0;le<this._zones.length;le++){var fe=this._zones[le];if(fe.y1===fe.y2){if(ae===fe.y1&&re>=fe.x1&&re<fe.x2)return fe}else if(ae===fe.y1&&re>=fe.x1||ae===fe.y2&&re<fe.x2||ae>fe.y1&&ae<fe.y2)return fe}},x=he([de(2,ee.IBufferService),de(3,ne.IMouseService),de(4,ne.ISelectionService),de(5,ee.IOptionsService)],x)}(te.Disposable);Ce.MouseZoneManager=se},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(x,b){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,re){E.__proto__=re}||function(E,re){for(var ae in re)re.hasOwnProperty(ae)&&(E[ae]=re[ae])})(x,b)},function(x,b){function E(){this.constructor=x}Ue(x,b),x.prototype=b===null?Object.create(b):(E.prototype=b.prototype,new E)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.AccessibilityManager=void 0;var he=ve(18),de=ve(11),te=ve(31),oe=ve(7),ne=ve(2),ee=ve(32),se=ve(17),z=function(x){function b(E,re){var ae=x.call(this)||this;ae._terminal=E,ae._renderService=re,ae._liveRegionLineCount=0,ae._charsToConsume=[],ae._charsToAnnounce="",ae._accessibilityTreeRoot=document.createElement("div"),ae._accessibilityTreeRoot.classList.add("xterm-accessibility"),ae._rowContainer=document.createElement("div"),ae._rowContainer.classList.add("xterm-accessibility-tree"),ae._rowContainer.setAttribute("role","list"),ae._rowElements=[];for(var le=0;le<ae._terminal.rows;le++)ae._rowElements[le]=ae._createAccessibilityTreeNode(),ae._rowContainer.appendChild(ae._rowElements[le]);if(ae._topBoundaryFocusListener=function(fe){return ae._onBoundaryFocus(fe,0)},ae._bottomBoundaryFocusListener=function(fe){return ae._onBoundaryFocus(fe,1)},ae._rowElements[0].addEventListener("focus",ae._topBoundaryFocusListener),ae._rowElements[ae._rowElements.length-1].addEventListener("focus",ae._bottomBoundaryFocusListener),ae._refreshRowsDimensions(),ae._accessibilityTreeRoot.appendChild(ae._rowContainer),ae._renderRowsDebouncer=new te.RenderDebouncer(ae._renderRows.bind(ae)),ae._refreshRows(),ae._liveRegion=document.createElement("div"),ae._liveRegion.classList.add("live-region"),ae._liveRegion.setAttribute("aria-live","assertive"),ae._accessibilityTreeRoot.appendChild(ae._liveRegion),!ae._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return ae._terminal.element.insertAdjacentElement("afterbegin",ae._accessibilityTreeRoot),ae.register(ae._renderRowsDebouncer),ae.register(ae._terminal.onResize(function(fe){return ae._onResize(fe.rows)})),ae.register(ae._terminal.onRender(function(fe){return ae._refreshRows(fe.start,fe.end)})),ae.register(ae._terminal.onScroll(function(){return ae._refreshRows()})),ae.register(ae._terminal.onA11yChar(function(fe){return ae._onChar(fe)})),ae.register(ae._terminal.onLineFeed(function(){return ae._onChar(`
`)})),ae.register(ae._terminal.onA11yTab(function(fe){return ae._onTab(fe)})),ae.register(ae._terminal.onKey(function(fe){return ae._onKey(fe.key)})),ae.register(ae._terminal.onBlur(function(){return ae._clearLiveRegion()})),ae.register(ae._renderService.onDimensionsChange(function(){return ae._refreshRowsDimensions()})),ae._screenDprMonitor=new ee.ScreenDprMonitor,ae.register(ae._screenDprMonitor),ae._screenDprMonitor.setListener(function(){return ae._refreshRowsDimensions()}),ae.register(oe.addDisposableDomListener(window,"resize",function(){return ae._refreshRowsDimensions()})),ae}return a(b,x),b.prototype.dispose=function(){x.prototype.dispose.call(this),se.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},b.prototype._onBoundaryFocus=function(E,re){var ae=E.target,le=this._rowElements[re===0?1:this._rowElements.length-2];if(ae.getAttribute("aria-posinset")!==(re===0?"1":""+this._terminal.buffer.lines.length)&&E.relatedTarget===le){var fe,ce;if(re===0?(fe=ae,ce=this._rowElements.pop(),this._rowContainer.removeChild(ce)):(fe=this._rowElements.shift(),ce=ae,this._rowContainer.removeChild(fe)),fe.removeEventListener("focus",this._topBoundaryFocusListener),ce.removeEventListener("focus",this._bottomBoundaryFocusListener),re===0){var ue=this._createAccessibilityTreeNode();this._rowElements.unshift(ue),this._rowContainer.insertAdjacentElement("afterbegin",ue)}else ue=this._createAccessibilityTreeNode(),this._rowElements.push(ue),this._rowContainer.appendChild(ue);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(re===0?-1:1),this._rowElements[re===0?1:this._rowElements.length-2].focus(),E.preventDefault(),E.stopImmediatePropagation()}},b.prototype._onResize=function(E){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var re=this._rowContainer.children.length;re<this._terminal.rows;re++)this._rowElements[re]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[re]);for(;this._rowElements.length>E;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},b.prototype._createAccessibilityTreeNode=function(){var E=document.createElement("div");return E.setAttribute("role","listitem"),E.tabIndex=-1,this._refreshRowDimensions(E),E},b.prototype._onTab=function(E){for(var re=0;re<E;re++)this._onChar(" ")},b.prototype._onChar=function(E){var re=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==E&&(this._charsToAnnounce+=E):this._charsToAnnounce+=E,E===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=he.tooMuchOutput)),de.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){re._accessibilityTreeRoot.appendChild(re._liveRegion)},0))},b.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,de.isMac&&se.removeElementFromParent(this._liveRegion)},b.prototype._onKey=function(E){this._clearLiveRegion(),this._charsToConsume.push(E)},b.prototype._refreshRows=function(E,re){this._renderRowsDebouncer.refresh(E,re,this._terminal.rows)},b.prototype._renderRows=function(E,re){for(var ae=this._terminal.buffer,le=ae.lines.length.toString(),fe=E;fe<=re;fe++){var ce=ae.translateBufferLineToString(ae.ydisp+fe,!0),ue=(ae.ydisp+fe+1).toString(),ye=this._rowElements[fe];ye&&(ce.length===0?ye.innerHTML="&nbsp;":ye.textContent=ce,ye.setAttribute("aria-posinset",ue),ye.setAttribute("aria-setsize",le))}this._announceCharacters()},b.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var E=0;E<this._terminal.rows;E++)this._refreshRowDimensions(this._rowElements[E])}},b.prototype._refreshRowDimensions=function(E){E.style.height=this._renderService.dimensions.actualCellHeight+"px"},b.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},b}(ne.Disposable);Ce.AccessibilityManager=z},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(ae,le){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ce){fe.__proto__=ce}||function(fe,ce){for(var ue in ce)ce.hasOwnProperty(ue)&&(fe[ue]=ce[ue])})(ae,le)},function(ae,le){function fe(){this.constructor=ae}Ue(ae,le),ae.prototype=le===null?Object.create(le):(fe.prototype=le.prototype,new fe)}),he=this&&this.__decorate||function(ae,le,fe,ce){var ue,ye=arguments.length,Se=ye<3?le:ce===null?ce=Object.getOwnPropertyDescriptor(le,fe):ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Se=Reflect.decorate(ae,le,fe,ce);else for(var we=ae.length-1;we>=0;we--)(ue=ae[we])&&(Se=(ye<3?ue(Se):ye>3?ue(le,fe,Se):ue(le,fe))||Se);return ye>3&&Se&&Object.defineProperty(le,fe,Se),Se},de=this&&this.__param||function(ae,le){return function(fe,ce){le(fe,ce,ae)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.DomRenderer=void 0;var te=ve(58),oe=ve(9),ne=ve(2),ee=ve(5),se=ve(1),z=ve(0),x=ve(10),b=ve(17),E=1,re=function(ae){function le(fe,ce,ue,ye,Se,we,xe,ge,_e){var be=ae.call(this)||this;return be._colors=fe,be._element=ce,be._screenElement=ue,be._viewportElement=ye,be._linkifier=Se,be._linkifier2=we,be._charSizeService=xe,be._optionsService=ge,be._bufferService=_e,be._terminalClass=E++,be._rowElements=[],be._rowContainer=document.createElement("div"),be._rowContainer.classList.add("xterm-rows"),be._rowContainer.style.lineHeight="normal",be._rowContainer.setAttribute("aria-hidden","true"),be._refreshRowElements(be._bufferService.cols,be._bufferService.rows),be._selectionContainer=document.createElement("div"),be._selectionContainer.classList.add("xterm-selection"),be._selectionContainer.setAttribute("aria-hidden","true"),be.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},be._updateDimensions(),be._injectCss(),be._rowFactory=new te.DomRendererRowFactory(document,be._optionsService,be._colors),be._element.classList.add("xterm-dom-renderer-owner-"+be._terminalClass),be._screenElement.appendChild(be._rowContainer),be._screenElement.appendChild(be._selectionContainer),be._linkifier.onShowLinkUnderline(function(Ae){return be._onLinkHover(Ae)}),be._linkifier.onHideLinkUnderline(function(Ae){return be._onLinkLeave(Ae)}),be._linkifier2.onShowLinkUnderline(function(Ae){return be._onLinkHover(Ae)}),be._linkifier2.onHideLinkUnderline(function(Ae){return be._onLinkLeave(Ae)}),be}return a(le,ae),Object.defineProperty(le.prototype,"onRequestRedraw",{get:function(){return new z.EventEmitter().event},enumerable:!1,configurable:!0}),le.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),b.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),ae.prototype.dispose.call(this)},le.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var fe=0,ce=this._rowElements;fe<ce.length;fe++){var ue=ce[fe];ue.style.width=this.dimensions.canvasWidth+"px",ue.style.height=this.dimensions.actualCellHeight+"px",ue.style.lineHeight=this.dimensions.actualCellHeight+"px",ue.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var ye=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=ye,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},le.prototype.setColors=function(fe){this._colors=fe,this._injectCss()},le.prototype._injectCss=function(){var fe=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var ce=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";ce+=this._terminalSelector+" span:not(."+te.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+te.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+te.ITALIC_CLASS+" { font-style: italic;}",ce+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",ce+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",ce+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+te.CURSOR_CLASS+"."+te.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+te.CURSOR_CLASS+"."+te.CURSOR_BLINK_CLASS+":not(."+te.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+te.CURSOR_CLASS+"."+te.CURSOR_BLINK_CLASS+"."+te.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+te.CURSOR_CLASS+"."+te.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+te.CURSOR_CLASS+"."+te.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+te.CURSOR_CLASS+"."+te.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",ce+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(ue,ye){ce+=fe._terminalSelector+" .xterm-fg-"+ye+" { color: "+ue.css+"; }"+fe._terminalSelector+" .xterm-bg-"+ye+" { background-color: "+ue.css+"; }"}),ce+=this._terminalSelector+" .xterm-fg-"+oe.INVERTED_DEFAULT_COLOR+" { color: "+x.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+oe.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=ce},le.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},le.prototype._refreshRowElements=function(fe,ce){for(var ue=this._rowElements.length;ue<=ce;ue++){var ye=document.createElement("div");this._rowContainer.appendChild(ye),this._rowElements.push(ye)}for(;this._rowElements.length>ce;)this._rowContainer.removeChild(this._rowElements.pop())},le.prototype.onResize=function(fe,ce){this._refreshRowElements(fe,ce),this._updateDimensions()},le.prototype.onCharSizeChanged=function(){this._updateDimensions()},le.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},le.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},le.prototype.onSelectionChanged=function(fe,ce,ue){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(fe&&ce){var ye=fe[1]-this._bufferService.buffer.ydisp,Se=ce[1]-this._bufferService.buffer.ydisp,we=Math.max(ye,0),xe=Math.min(Se,this._bufferService.rows-1);if(!(we>=this._bufferService.rows||xe<0)){var ge=document.createDocumentFragment();if(ue)ge.appendChild(this._createSelectionElement(we,fe[0],ce[0],xe-we+1));else{var _e=ye===we?fe[0]:0,be=we===xe?ce[0]:this._bufferService.cols;ge.appendChild(this._createSelectionElement(we,_e,be));var Ae=xe-we-1;if(ge.appendChild(this._createSelectionElement(we+1,0,this._bufferService.cols,Ae)),we!==xe){var Te=Se===xe?ce[0]:this._bufferService.cols;ge.appendChild(this._createSelectionElement(xe,0,Te))}}this._selectionContainer.appendChild(ge)}}},le.prototype._createSelectionElement=function(fe,ce,ue,ye){ye===void 0&&(ye=1);var Se=document.createElement("div");return Se.style.height=ye*this.dimensions.actualCellHeight+"px",Se.style.top=fe*this.dimensions.actualCellHeight+"px",Se.style.left=ce*this.dimensions.actualCellWidth+"px",Se.style.width=this.dimensions.actualCellWidth*(ue-ce)+"px",Se},le.prototype.onCursorMove=function(){},le.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},le.prototype.clear=function(){for(var fe=0,ce=this._rowElements;fe<ce.length;fe++)ce[fe].innerHTML=""},le.prototype.renderRows=function(fe,ce){for(var ue=this._bufferService.buffer.ybase+this._bufferService.buffer.y,ye=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),Se=this._optionsService.options.cursorBlink,we=fe;we<=ce;we++){var xe=this._rowElements[we];xe.innerHTML="";var ge=we+this._bufferService.buffer.ydisp,_e=this._bufferService.buffer.lines.get(ge),be=this._optionsService.options.cursorStyle;xe.appendChild(this._rowFactory.createRow(_e,ge===ue,be,ye,Se,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(le.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),le.prototype.registerCharacterJoiner=function(fe){return-1},le.prototype.deregisterCharacterJoiner=function(fe){return!1},le.prototype._onLinkHover=function(fe){this._setCellUnderline(fe.x1,fe.x2,fe.y1,fe.y2,fe.cols,!0)},le.prototype._onLinkLeave=function(fe){this._setCellUnderline(fe.x1,fe.x2,fe.y1,fe.y2,fe.cols,!1)},le.prototype._setCellUnderline=function(fe,ce,ue,ye,Se,we){for(;fe!==ce||ue!==ye;){var xe=this._rowElements[ue];if(!xe)return;var ge=xe.children[fe];ge&&(ge.style.textDecoration=we?"underline":"none"),++fe>=Se&&(fe=0,ue++)}},le=he([de(6,ee.ICharSizeService),de(7,se.IOptionsService),de(8,se.IBufferService)],le)}(ne.Disposable);Ce.DomRenderer=re},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.DomRendererRowFactory=Ce.CURSOR_STYLE_UNDERLINE_CLASS=Ce.CURSOR_STYLE_BAR_CLASS=Ce.CURSOR_STYLE_BLOCK_CLASS=Ce.CURSOR_BLINK_CLASS=Ce.CURSOR_CLASS=Ce.UNDERLINE_CLASS=Ce.ITALIC_CLASS=Ce.DIM_CLASS=Ce.BOLD_CLASS=void 0;var Ue=ve(9),a=ve(3),he=ve(4),de=ve(10);Ce.BOLD_CLASS="xterm-bold",Ce.DIM_CLASS="xterm-dim",Ce.ITALIC_CLASS="xterm-italic",Ce.UNDERLINE_CLASS="xterm-underline",Ce.CURSOR_CLASS="xterm-cursor",Ce.CURSOR_BLINK_CLASS="xterm-cursor-blink",Ce.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",Ce.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",Ce.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var te=function(){function ne(ee,se,z){this._document=ee,this._optionsService=se,this._colors=z,this._workCell=new he.CellData}return ne.prototype.setColors=function(ee){this._colors=ee},ne.prototype.createRow=function(ee,se,z,x,b,E,re){for(var ae=this._document.createDocumentFragment(),le=0,fe=Math.min(ee.length,re)-1;fe>=0;fe--)if(ee.loadCell(fe,this._workCell).getCode()!==a.NULL_CELL_CODE||se&&fe===x){le=fe+1;break}for(fe=0;fe<le;fe++){ee.loadCell(fe,this._workCell);var ce=this._workCell.getWidth();if(ce!==0){var ue=this._document.createElement("span");if(ce>1&&(ue.style.width=E*ce+"px"),se&&fe===x)switch(ue.classList.add(Ce.CURSOR_CLASS),b&&ue.classList.add(Ce.CURSOR_BLINK_CLASS),z){case"bar":ue.classList.add(Ce.CURSOR_STYLE_BAR_CLASS);break;case"underline":ue.classList.add(Ce.CURSOR_STYLE_UNDERLINE_CLASS);break;default:ue.classList.add(Ce.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&ue.classList.add(Ce.BOLD_CLASS),this._workCell.isItalic()&&ue.classList.add(Ce.ITALIC_CLASS),this._workCell.isDim()&&ue.classList.add(Ce.DIM_CLASS),this._workCell.isUnderline()&&ue.classList.add(Ce.UNDERLINE_CLASS),this._workCell.isInvisible()?ue.textContent=a.WHITESPACE_CELL_CHAR:ue.textContent=this._workCell.getChars()||a.WHITESPACE_CELL_CHAR;var ye=this._workCell.getFgColor(),Se=this._workCell.getFgColorMode(),we=this._workCell.getBgColor(),xe=this._workCell.getBgColorMode(),ge=!!this._workCell.isInverse();if(ge){var _e=ye;ye=we,we=_e;var be=Se;Se=xe,xe=be}switch(Se){case 16777216:case 33554432:this._workCell.isBold()&&ye<8&&this._optionsService.options.drawBoldTextInBrightColors&&(ye+=8),this._applyMinimumContrast(ue,this._colors.background,this._colors.ansi[ye])||ue.classList.add("xterm-fg-"+ye);break;case 50331648:var Ae=de.rgba.toColor(ye>>16&255,ye>>8&255,255&ye);this._applyMinimumContrast(ue,this._colors.background,Ae)||this._addStyle(ue,"color:#"+oe(ye.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(ue,this._colors.background,this._colors.foreground)||ge&&ue.classList.add("xterm-fg-"+Ue.INVERTED_DEFAULT_COLOR)}switch(xe){case 16777216:case 33554432:ue.classList.add("xterm-bg-"+we);break;case 50331648:this._addStyle(ue,"background-color:#"+oe(we.toString(16),"0",6));break;case 0:default:ge&&ue.classList.add("xterm-bg-"+Ue.INVERTED_DEFAULT_COLOR)}ae.appendChild(ue)}}return ae},ne.prototype._applyMinimumContrast=function(ee,se,z){if(this._optionsService.options.minimumContrastRatio===1)return!1;var x=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return x===void 0&&(x=de.color.ensureContrastRatio(se,z,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,x!=null?x:null)),!!x&&(this._addStyle(ee,"color:"+x.css),!0)},ne.prototype._addStyle=function(ee,se){ee.setAttribute("style",""+(ee.getAttribute("style")||"")+se+";")},ne}();function oe(ne,ee,se){for(;ne.length<se;)ne=ee+ne;return ne}Ce.DomRendererRowFactory=te},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.evaluateKeyboardEvent=void 0;var Ue=ve(12),a={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};Ce.evaluateKeyboardEvent=function(he,de,te,oe){var ne={type:0,cancel:!1,key:void 0},ee=(he.shiftKey?1:0)|(he.altKey?2:0)|(he.ctrlKey?4:0)|(he.metaKey?8:0);switch(he.keyCode){case 0:he.key==="UIKeyInputUpArrow"?ne.key=de?Ue.C0.ESC+"OA":Ue.C0.ESC+"[A":he.key==="UIKeyInputLeftArrow"?ne.key=de?Ue.C0.ESC+"OD":Ue.C0.ESC+"[D":he.key==="UIKeyInputRightArrow"?ne.key=de?Ue.C0.ESC+"OC":Ue.C0.ESC+"[C":he.key==="UIKeyInputDownArrow"&&(ne.key=de?Ue.C0.ESC+"OB":Ue.C0.ESC+"[B");break;case 8:if(he.shiftKey){ne.key=Ue.C0.BS;break}if(he.altKey){ne.key=Ue.C0.ESC+Ue.C0.DEL;break}ne.key=Ue.C0.DEL;break;case 9:if(he.shiftKey){ne.key=Ue.C0.ESC+"[Z";break}ne.key=Ue.C0.HT,ne.cancel=!0;break;case 13:ne.key=he.altKey?Ue.C0.ESC+Ue.C0.CR:Ue.C0.CR,ne.cancel=!0;break;case 27:ne.key=Ue.C0.ESC,he.altKey&&(ne.key=Ue.C0.ESC+Ue.C0.ESC),ne.cancel=!0;break;case 37:if(he.metaKey)break;ee?(ne.key=Ue.C0.ESC+"[1;"+(ee+1)+"D",ne.key===Ue.C0.ESC+"[1;3D"&&(ne.key=Ue.C0.ESC+(te?"b":"[1;5D"))):ne.key=de?Ue.C0.ESC+"OD":Ue.C0.ESC+"[D";break;case 39:if(he.metaKey)break;ee?(ne.key=Ue.C0.ESC+"[1;"+(ee+1)+"C",ne.key===Ue.C0.ESC+"[1;3C"&&(ne.key=Ue.C0.ESC+(te?"f":"[1;5C"))):ne.key=de?Ue.C0.ESC+"OC":Ue.C0.ESC+"[C";break;case 38:if(he.metaKey)break;ee?(ne.key=Ue.C0.ESC+"[1;"+(ee+1)+"A",te||ne.key!==Ue.C0.ESC+"[1;3A"||(ne.key=Ue.C0.ESC+"[1;5A")):ne.key=de?Ue.C0.ESC+"OA":Ue.C0.ESC+"[A";break;case 40:if(he.metaKey)break;ee?(ne.key=Ue.C0.ESC+"[1;"+(ee+1)+"B",te||ne.key!==Ue.C0.ESC+"[1;3B"||(ne.key=Ue.C0.ESC+"[1;5B")):ne.key=de?Ue.C0.ESC+"OB":Ue.C0.ESC+"[B";break;case 45:he.shiftKey||he.ctrlKey||(ne.key=Ue.C0.ESC+"[2~");break;case 46:ne.key=ee?Ue.C0.ESC+"[3;"+(ee+1)+"~":Ue.C0.ESC+"[3~";break;case 36:ne.key=ee?Ue.C0.ESC+"[1;"+(ee+1)+"H":de?Ue.C0.ESC+"OH":Ue.C0.ESC+"[H";break;case 35:ne.key=ee?Ue.C0.ESC+"[1;"+(ee+1)+"F":de?Ue.C0.ESC+"OF":Ue.C0.ESC+"[F";break;case 33:he.shiftKey?ne.type=2:ne.key=Ue.C0.ESC+"[5~";break;case 34:he.shiftKey?ne.type=3:ne.key=Ue.C0.ESC+"[6~";break;case 112:ne.key=ee?Ue.C0.ESC+"[1;"+(ee+1)+"P":Ue.C0.ESC+"OP";break;case 113:ne.key=ee?Ue.C0.ESC+"[1;"+(ee+1)+"Q":Ue.C0.ESC+"OQ";break;case 114:ne.key=ee?Ue.C0.ESC+"[1;"+(ee+1)+"R":Ue.C0.ESC+"OR";break;case 115:ne.key=ee?Ue.C0.ESC+"[1;"+(ee+1)+"S":Ue.C0.ESC+"OS";break;case 116:ne.key=ee?Ue.C0.ESC+"[15;"+(ee+1)+"~":Ue.C0.ESC+"[15~";break;case 117:ne.key=ee?Ue.C0.ESC+"[17;"+(ee+1)+"~":Ue.C0.ESC+"[17~";break;case 118:ne.key=ee?Ue.C0.ESC+"[18;"+(ee+1)+"~":Ue.C0.ESC+"[18~";break;case 119:ne.key=ee?Ue.C0.ESC+"[19;"+(ee+1)+"~":Ue.C0.ESC+"[19~";break;case 120:ne.key=ee?Ue.C0.ESC+"[20;"+(ee+1)+"~":Ue.C0.ESC+"[20~";break;case 121:ne.key=ee?Ue.C0.ESC+"[21;"+(ee+1)+"~":Ue.C0.ESC+"[21~";break;case 122:ne.key=ee?Ue.C0.ESC+"[23;"+(ee+1)+"~":Ue.C0.ESC+"[23~";break;case 123:ne.key=ee?Ue.C0.ESC+"[24;"+(ee+1)+"~":Ue.C0.ESC+"[24~";break;default:if(!he.ctrlKey||he.shiftKey||he.altKey||he.metaKey)if(te&&!oe||!he.altKey||he.metaKey)te&&!he.altKey&&!he.ctrlKey&&he.metaKey?he.keyCode===65&&(ne.type=1):he.key&&!he.ctrlKey&&!he.altKey&&!he.metaKey&&he.keyCode>=48&&he.key.length===1?ne.key=he.key:he.key&&he.ctrlKey&&he.key==="_"&&(ne.key=Ue.C0.US);else{var se=a[he.keyCode],z=se&&se[he.shiftKey?1:0];if(z)ne.key=Ue.C0.ESC+z;else if(he.keyCode>=65&&he.keyCode<=90){var x=he.ctrlKey?he.keyCode-64:he.keyCode+32;ne.key=Ue.C0.ESC+String.fromCharCode(x)}}else he.keyCode>=65&&he.keyCode<=90?ne.key=String.fromCharCode(he.keyCode-64):he.keyCode===32?ne.key=Ue.C0.NUL:he.keyCode>=51&&he.keyCode<=55?ne.key=String.fromCharCode(he.keyCode-51+27):he.keyCode===56?ne.key=Ue.C0.DEL:he.keyCode===219?ne.key=Ue.C0.ESC:he.keyCode===220?ne.key=Ue.C0.FS:he.keyCode===221&&(ne.key=Ue.C0.GS)}return ne}},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(E,re){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,le){ae.__proto__=le}||function(ae,le){for(var fe in le)le.hasOwnProperty(fe)&&(ae[fe]=le[fe])})(E,re)},function(E,re){function ae(){this.constructor=E}Ue(E,re),E.prototype=re===null?Object.create(re):(ae.prototype=re.prototype,new ae)}),he=this&&this.__decorate||function(E,re,ae,le){var fe,ce=arguments.length,ue=ce<3?re:le===null?le=Object.getOwnPropertyDescriptor(re,ae):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(E,re,ae,le);else for(var ye=E.length-1;ye>=0;ye--)(fe=E[ye])&&(ue=(ce<3?fe(ue):ce>3?fe(re,ae,ue):fe(re,ae))||ue);return ce>3&&ue&&Object.defineProperty(re,ae,ue),ue},de=this&&this.__param||function(E,re){return function(ae,le){re(ae,le,E)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.RenderService=void 0;var te=ve(31),oe=ve(0),ne=ve(2),ee=ve(32),se=ve(7),z=ve(1),x=ve(5),b=function(E){function re(ae,le,fe,ce,ue,ye){var Se=E.call(this)||this;if(Se._renderer=ae,Se._rowCount=le,Se._isPaused=!1,Se._needsFullRefresh=!1,Se._isNextRenderRedrawOnly=!0,Se._needsSelectionRefresh=!1,Se._canvasWidth=0,Se._canvasHeight=0,Se._selectionState={start:void 0,end:void 0,columnSelectMode:!1},Se._onDimensionsChange=new oe.EventEmitter,Se._onRender=new oe.EventEmitter,Se._onRefreshRequest=new oe.EventEmitter,Se.register({dispose:function(){return Se._renderer.dispose()}}),Se._renderDebouncer=new te.RenderDebouncer(function(xe,ge){return Se._renderRows(xe,ge)}),Se.register(Se._renderDebouncer),Se._screenDprMonitor=new ee.ScreenDprMonitor,Se._screenDprMonitor.setListener(function(){return Se.onDevicePixelRatioChange()}),Se.register(Se._screenDprMonitor),Se.register(ye.onResize(function(xe){return Se._fullRefresh()})),Se.register(ce.onOptionChange(function(){return Se._renderer.onOptionsChanged()})),Se.register(ue.onCharSizeChange(function(){return Se.onCharSizeChanged()})),Se._renderer.onRequestRedraw(function(xe){return Se.refreshRows(xe.start,xe.end,!0)}),Se.register(se.addDisposableDomListener(window,"resize",function(){return Se.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var we=new IntersectionObserver(function(xe){return Se._onIntersectionChange(xe[xe.length-1])},{threshold:0});we.observe(fe),Se.register({dispose:function(){return we.disconnect()}})}return Se}return a(re,E),Object.defineProperty(re.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),re.prototype._onIntersectionChange=function(ae){this._isPaused=ae.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},re.prototype.refreshRows=function(ae,le,fe){fe===void 0&&(fe=!1),this._isPaused?this._needsFullRefresh=!0:(fe||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(ae,le,this._rowCount))},re.prototype._renderRows=function(ae,le){this._renderer.renderRows(ae,le),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:ae,end:le}),this._isNextRenderRedrawOnly=!0},re.prototype.resize=function(ae,le){this._rowCount=le,this._fireOnCanvasResize()},re.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},re.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},re.prototype.dispose=function(){E.prototype.dispose.call(this)},re.prototype.setRenderer=function(ae){var le=this;this._renderer.dispose(),this._renderer=ae,this._renderer.onRequestRedraw(function(fe){return le.refreshRows(fe.start,fe.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},re.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},re.prototype.setColors=function(ae){this._renderer.setColors(ae),this._fullRefresh()},re.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},re.prototype.onResize=function(ae,le){this._renderer.onResize(ae,le),this._fullRefresh()},re.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},re.prototype.onBlur=function(){this._renderer.onBlur()},re.prototype.onFocus=function(){this._renderer.onFocus()},re.prototype.onSelectionChanged=function(ae,le,fe){this._selectionState.start=ae,this._selectionState.end=le,this._selectionState.columnSelectMode=fe,this._renderer.onSelectionChanged(ae,le,fe)},re.prototype.onCursorMove=function(){this._renderer.onCursorMove()},re.prototype.clear=function(){this._renderer.clear()},re.prototype.registerCharacterJoiner=function(ae){return this._renderer.registerCharacterJoiner(ae)},re.prototype.deregisterCharacterJoiner=function(ae){return this._renderer.deregisterCharacterJoiner(ae)},re=he([de(3,z.IOptionsService),de(4,x.ICharSizeService),de(5,z.IBufferService)],re)}(ne.Disposable);Ce.RenderService=b},function(pt,Ce,ve){"use strict";var Ue=this&&this.__decorate||function(ne,ee,se,z){var x,b=arguments.length,E=b<3?ee:z===null?z=Object.getOwnPropertyDescriptor(ee,se):z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ne,ee,se,z);else for(var re=ne.length-1;re>=0;re--)(x=ne[re])&&(E=(b<3?x(E):b>3?x(ee,se,E):x(ee,se))||E);return b>3&&E&&Object.defineProperty(ee,se,E),E},a=this&&this.__param||function(ne,ee){return function(se,z){ee(se,z,ne)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.CharSizeService=void 0;var he=ve(1),de=ve(0),te=function(){function ne(ee,se,z){this._optionsService=z,this.width=0,this.height=0,this._onCharSizeChange=new de.EventEmitter,this._measureStrategy=new oe(ee,se,this._optionsService)}return Object.defineProperty(ne.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),ne.prototype.measure=function(){var ee=this._measureStrategy.measure();ee.width===this.width&&ee.height===this.height||(this.width=ee.width,this.height=ee.height,this._onCharSizeChange.fire())},ne=Ue([a(2,he.IOptionsService)],ne)}();Ce.CharSizeService=te;var oe=function(){function ne(ee,se,z){this._document=ee,this._parentElement=se,this._optionsService=z,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return ne.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var ee=this._measureElement.getBoundingClientRect();return ee.width!==0&&ee.height!==0&&(this._result.width=ee.width,this._result.height=Math.ceil(ee.height)),this._result},ne}()},function(pt,Ce,ve){"use strict";var Ue=this&&this.__decorate||function(oe,ne,ee,se){var z,x=arguments.length,b=x<3?ne:se===null?se=Object.getOwnPropertyDescriptor(ne,ee):se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(oe,ne,ee,se);else for(var E=oe.length-1;E>=0;E--)(z=oe[E])&&(b=(x<3?z(b):x>3?z(ne,ee,b):z(ne,ee))||b);return x>3&&b&&Object.defineProperty(ne,ee,b),b},a=this&&this.__param||function(oe,ne){return function(ee,se){ne(ee,se,oe)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.MouseService=void 0;var he=ve(5),de=ve(30),te=function(){function oe(ne,ee){this._renderService=ne,this._charSizeService=ee}return oe.prototype.getCoords=function(ne,ee,se,z,x){return de.getCoords(ne,ee,se,z,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,x)},oe.prototype.getRawByteCoords=function(ne,ee,se,z){var x=this.getCoords(ne,ee,se,z);return de.getRawByteCoords(x)},oe=Ue([a(0,he.IRenderService),a(1,he.ICharSizeService)],oe)}();Ce.MouseService=te},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(z,x){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var re in E)E.hasOwnProperty(re)&&(b[re]=E[re])})(z,x)},function(z,x){function b(){this.constructor=z}Ue(z,x),z.prototype=x===null?Object.create(x):(b.prototype=x.prototype,new b)}),he=this&&this.__decorate||function(z,x,b,E){var re,ae=arguments.length,le=ae<3?x:E===null?E=Object.getOwnPropertyDescriptor(x,b):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(z,x,b,E);else for(var fe=z.length-1;fe>=0;fe--)(re=z[fe])&&(le=(ae<3?re(le):ae>3?re(x,b,le):re(x,b))||le);return ae>3&&le&&Object.defineProperty(x,b,le),le},de=this&&this.__param||function(z,x){return function(b,E){x(b,E,z)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.Linkifier2=void 0;var te=ve(1),oe=ve(0),ne=ve(2),ee=ve(7),se=function(z){function x(b){var E=z.call(this)||this;return E._bufferService=b,E._linkProviders=[],E._linkCacheDisposables=[],E._isMouseOut=!0,E._activeLine=-1,E._onShowLinkUnderline=E.register(new oe.EventEmitter),E._onHideLinkUnderline=E.register(new oe.EventEmitter),E.register(ne.getDisposeArrayDisposable(E._linkCacheDisposables)),E}return a(x,z),Object.defineProperty(x.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),x.prototype.registerLinkProvider=function(b){var E=this;return this._linkProviders.push(b),{dispose:function(){var re=E._linkProviders.indexOf(b);re!==-1&&E._linkProviders.splice(re,1)}}},x.prototype.attachToDom=function(b,E,re){var ae=this;this._element=b,this._mouseService=E,this._renderService=re,this.register(ee.addDisposableDomListener(this._element,"mouseleave",function(){ae._isMouseOut=!0,ae._clearCurrentLink()})),this.register(ee.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(ee.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},x.prototype._onMouseMove=function(b){if(this._lastMouseEvent=b,this._element&&this._mouseService){var E=this._positionFromMouseEvent(b,this._element,this._mouseService);if(E){this._isMouseOut=!1;for(var re=b.composedPath(),ae=0;ae<re.length;ae++){var le=re[ae];if(le.classList.contains("xterm"))break;if(le.classList.contains("xterm-hover"))return}this._lastBufferCell&&E.x===this._lastBufferCell.x&&E.y===this._lastBufferCell.y||(this._onHover(E),this._lastBufferCell=E)}}},x.prototype._onHover=function(b){if(this._activeLine!==b.y)return this._clearCurrentLink(),void this._askForLink(b,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,b)||(this._clearCurrentLink(),this._askForLink(b,!0))},x.prototype._askForLink=function(b,E){var re=this;this._activeProviderReplies&&E||(this._activeProviderReplies=new Map,this._activeLine=b.y);var ae=!1;this._linkProviders.forEach(function(le,fe){var ce;E?!((ce=re._activeProviderReplies)===null||ce===void 0)&&ce.get(fe)&&(ae=re._checkLinkProviderResult(fe,b,ae)):le.provideLinks(b.y,function(ue){var ye,Se;if(!re._isMouseOut){var we=ue==null?void 0:ue.map(function(xe){return{link:xe}});(ye=re._activeProviderReplies)===null||ye===void 0||ye.set(fe,we),ae=re._checkLinkProviderResult(fe,b,ae),((Se=re._activeProviderReplies)===null||Se===void 0?void 0:Se.size)===re._linkProviders.length&&re._removeIntersectingLinks(b.y,re._activeProviderReplies)}})})},x.prototype._removeIntersectingLinks=function(b,E){for(var re=new Set,ae=0;ae<E.size;ae++){var le=E.get(ae);if(le)for(var fe=0;fe<le.length;fe++)for(var ce=le[fe],ue=ce.link.range.start.y<b?0:ce.link.range.start.x,ye=ce.link.range.end.y>b?this._bufferService.cols:ce.link.range.end.x,Se=ue;Se<=ye;Se++){if(re.has(Se)){le.splice(fe--,1);break}re.add(Se)}}},x.prototype._checkLinkProviderResult=function(b,E,re){var ae,le=this;if(!this._activeProviderReplies)return re;for(var fe=this._activeProviderReplies.get(b),ce=!1,ue=0;ue<b;ue++)this._activeProviderReplies.has(ue)&&!this._activeProviderReplies.get(ue)||(ce=!0);if(!ce&&fe){var ye=fe.find(function(we){return le._linkAtPosition(we.link,E)});ye&&(re=!0,this._handleNewLink(ye))}if(this._activeProviderReplies.size===this._linkProviders.length&&!re)for(ue=0;ue<this._activeProviderReplies.size;ue++){var Se=(ae=this._activeProviderReplies.get(ue))===null||ae===void 0?void 0:ae.find(function(we){return le._linkAtPosition(we.link,E)});if(Se){re=!0,this._handleNewLink(Se);break}}return re},x.prototype._onClick=function(b){if(this._element&&this._mouseService&&this._currentLink){var E=this._positionFromMouseEvent(b,this._element,this._mouseService);E&&this._linkAtPosition(this._currentLink.link,E)&&this._currentLink.link.activate(b,this._currentLink.link.text)}},x.prototype._clearCurrentLink=function(b,E){this._element&&this._currentLink&&this._lastMouseEvent&&(!b||!E||this._currentLink.link.range.start.y>=b&&this._currentLink.link.range.end.y<=E)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,ne.disposeArray(this._linkCacheDisposables))},x.prototype._handleNewLink=function(b){var E=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var re=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);re&&this._linkAtPosition(b.link,re)&&(this._currentLink=b,this._currentLink.state={decorations:{underline:b.link.decorations===void 0||b.link.decorations.underline,pointerCursor:b.link.decorations===void 0||b.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,b.link,this._lastMouseEvent),b.link.decorations={},Object.defineProperties(b.link.decorations,{pointerCursor:{get:function(){var ae,le;return(le=(ae=E._currentLink)===null||ae===void 0?void 0:ae.state)===null||le===void 0?void 0:le.decorations.pointerCursor},set:function(ae){var le,fe;!((le=E._currentLink)===null||le===void 0)&&le.state&&E._currentLink.state.decorations.pointerCursor!==ae&&(E._currentLink.state.decorations.pointerCursor=ae,E._currentLink.state.isHovered&&((fe=E._element)===null||fe===void 0||fe.classList.toggle("xterm-cursor-pointer",ae)))}},underline:{get:function(){var ae,le;return(le=(ae=E._currentLink)===null||ae===void 0?void 0:ae.state)===null||le===void 0?void 0:le.decorations.underline},set:function(ae){var le,fe,ce;!((le=E._currentLink)===null||le===void 0)&&le.state&&((ce=(fe=E._currentLink)===null||fe===void 0?void 0:fe.state)===null||ce===void 0?void 0:ce.decorations.underline)!==ae&&(E._currentLink.state.decorations.underline=ae,E._currentLink.state.isHovered&&E._fireUnderlineEvent(b.link,ae))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(ae){var le=ae.start===0?0:ae.start+1+E._bufferService.buffer.ydisp;E._clearCurrentLink(le,ae.end+1+E._bufferService.buffer.ydisp)})))}},x.prototype._linkHover=function(b,E,re){var ae;!((ae=this._currentLink)===null||ae===void 0)&&ae.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(E,!0),this._currentLink.state.decorations.pointerCursor&&b.classList.add("xterm-cursor-pointer")),E.hover&&E.hover(re,E.text)},x.prototype._fireUnderlineEvent=function(b,E){var re=b.range,ae=this._bufferService.buffer.ydisp,le=this._createLinkUnderlineEvent(re.start.x-1,re.start.y-ae-1,re.end.x,re.end.y-ae-1,void 0);(E?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(le)},x.prototype._linkLeave=function(b,E,re){var ae;!((ae=this._currentLink)===null||ae===void 0)&&ae.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(E,!1),this._currentLink.state.decorations.pointerCursor&&b.classList.remove("xterm-cursor-pointer")),E.leave&&E.leave(re,E.text)},x.prototype._linkAtPosition=function(b,E){var re=b.range.start.y===b.range.end.y,ae=b.range.start.y<E.y,le=b.range.end.y>E.y;return(re&&b.range.start.x<=E.x&&b.range.end.x>=E.x||ae&&b.range.end.x>=E.x||le&&b.range.start.x<=E.x||ae&&le)&&b.range.start.y<=E.y&&b.range.end.y>=E.y},x.prototype._positionFromMouseEvent=function(b,E,re){var ae=re.getCoords(b,E,this._bufferService.cols,this._bufferService.rows);if(ae)return{x:ae[0],y:ae[1]+this._bufferService.buffer.ydisp}},x.prototype._createLinkUnderlineEvent=function(b,E,re,ae,le){return{x1:b,y1:E,x2:re,y2:ae,cols:this._bufferService.cols,fg:le}},x=he([de(0,te.IBufferService)],x)}(ne.Disposable);Ce.Linkifier2=se},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.CoreBrowserService=void 0;var Ue=function(){function a(he){this._textarea=he}return Object.defineProperty(a.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),a}();Ce.CoreBrowserService=Ue},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(ue,ye){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Se,we){Se.__proto__=we}||function(Se,we){for(var xe in we)we.hasOwnProperty(xe)&&(Se[xe]=we[xe])})(ue,ye)},function(ue,ye){function Se(){this.constructor=ue}Ue(ue,ye),ue.prototype=ye===null?Object.create(ye):(Se.prototype=ye.prototype,new Se)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.CoreTerminal=void 0;var he=ve(2),de=ve(1),te=ve(66),oe=ve(67),ne=ve(68),ee=ve(74),se=ve(75),z=ve(0),x=ve(76),b=ve(77),E=ve(78),re=ve(80),ae=ve(81),le=ve(19),fe=ve(82),ce=function(ue){function ye(Se){var we=ue.call(this)||this;return we._onBinary=new z.EventEmitter,we._onData=new z.EventEmitter,we._onLineFeed=new z.EventEmitter,we._onResize=new z.EventEmitter,we._onScroll=new z.EventEmitter,we._instantiationService=new te.InstantiationService,we.optionsService=new ee.OptionsService(Se),we._instantiationService.setService(de.IOptionsService,we.optionsService),we._bufferService=we.register(we._instantiationService.createInstance(ne.BufferService)),we._instantiationService.setService(de.IBufferService,we._bufferService),we._logService=we._instantiationService.createInstance(oe.LogService),we._instantiationService.setService(de.ILogService,we._logService),we._coreService=we.register(we._instantiationService.createInstance(se.CoreService,function(){return we.scrollToBottom()})),we._instantiationService.setService(de.ICoreService,we._coreService),we._coreMouseService=we._instantiationService.createInstance(x.CoreMouseService),we._instantiationService.setService(de.ICoreMouseService,we._coreMouseService),we._dirtyRowService=we._instantiationService.createInstance(b.DirtyRowService),we._instantiationService.setService(de.IDirtyRowService,we._dirtyRowService),we.unicodeService=we._instantiationService.createInstance(E.UnicodeService),we._instantiationService.setService(de.IUnicodeService,we.unicodeService),we._charsetService=we._instantiationService.createInstance(re.CharsetService),we._instantiationService.setService(de.ICharsetService,we._charsetService),we._inputHandler=new le.InputHandler(we._bufferService,we._charsetService,we._coreService,we._dirtyRowService,we._logService,we.optionsService,we._coreMouseService,we.unicodeService),we.register(z.forwardEvent(we._inputHandler.onLineFeed,we._onLineFeed)),we.register(we._inputHandler),we.register(z.forwardEvent(we._bufferService.onResize,we._onResize)),we.register(z.forwardEvent(we._coreService.onData,we._onData)),we.register(z.forwardEvent(we._coreService.onBinary,we._onBinary)),we.register(we.optionsService.onOptionChange(function(xe){return we._updateOptions(xe)})),we._writeBuffer=new fe.WriteBuffer(function(xe){return we._inputHandler.parse(xe)}),we}return a(ye,ue),Object.defineProperty(ye.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),ye.prototype.dispose=function(){var Se;this._isDisposed||(ue.prototype.dispose.call(this),(Se=this._windowsMode)===null||Se===void 0||Se.dispose(),this._windowsMode=void 0)},ye.prototype.write=function(Se,we){this._writeBuffer.write(Se,we)},ye.prototype.writeSync=function(Se){this._writeBuffer.writeSync(Se)},ye.prototype.resize=function(Se,we){isNaN(Se)||isNaN(we)||(Se=Math.max(Se,ne.MINIMUM_COLS),we=Math.max(we,ne.MINIMUM_ROWS),this._bufferService.resize(Se,we))},ye.prototype.scroll=function(Se,we){we===void 0&&(we=!1);var xe,ge=this._bufferService.buffer;(xe=this._cachedBlankLine)&&xe.length===this.cols&&xe.getFg(0)===Se.fg&&xe.getBg(0)===Se.bg||(xe=ge.getBlankLine(Se,we),this._cachedBlankLine=xe),xe.isWrapped=we;var _e=ge.ybase+ge.scrollTop,be=ge.ybase+ge.scrollBottom;if(ge.scrollTop===0){var Ae=ge.lines.isFull;be===ge.lines.length-1?Ae?ge.lines.recycle().copyFrom(xe):ge.lines.push(xe.clone()):ge.lines.splice(be+1,0,xe.clone()),Ae?this._bufferService.isUserScrolling&&(ge.ydisp=Math.max(ge.ydisp-1,0)):(ge.ybase++,this._bufferService.isUserScrolling||ge.ydisp++)}else{var Te=be-_e+1;ge.lines.shiftElements(_e+1,Te-1,-1),ge.lines.set(be,xe.clone())}this._bufferService.isUserScrolling||(ge.ydisp=ge.ybase),this._dirtyRowService.markRangeDirty(ge.scrollTop,ge.scrollBottom),this._onScroll.fire(ge.ydisp)},ye.prototype.scrollLines=function(Se,we){var xe=this._bufferService.buffer;if(Se<0){if(xe.ydisp===0)return;this._bufferService.isUserScrolling=!0}else Se+xe.ydisp>=xe.ybase&&(this._bufferService.isUserScrolling=!1);var ge=xe.ydisp;xe.ydisp=Math.max(Math.min(xe.ydisp+Se,xe.ybase),0),ge!==xe.ydisp&&(we||this._onScroll.fire(xe.ydisp))},ye.prototype.scrollPages=function(Se){this.scrollLines(Se*(this.rows-1))},ye.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},ye.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},ye.prototype.scrollToLine=function(Se){var we=Se-this._bufferService.buffer.ydisp;we!==0&&this.scrollLines(we)},ye.prototype.addEscHandler=function(Se,we){return this._inputHandler.addEscHandler(Se,we)},ye.prototype.addDcsHandler=function(Se,we){return this._inputHandler.addDcsHandler(Se,we)},ye.prototype.addCsiHandler=function(Se,we){return this._inputHandler.addCsiHandler(Se,we)},ye.prototype.addOscHandler=function(Se,we){return this._inputHandler.addOscHandler(Se,we)},ye.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},ye.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},ye.prototype._updateOptions=function(Se){var we;switch(Se){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((we=this._windowsMode)===null||we===void 0||we.dispose(),this._windowsMode=void 0)}},ye.prototype._enableWindowsMode=function(){var Se=this;if(!this._windowsMode){var we=[];we.push(this.onLineFeed(ae.updateWindowsModeWrappedState.bind(null,this._bufferService))),we.push(this.addCsiHandler({final:"H"},function(){return ae.updateWindowsModeWrappedState(Se._bufferService),!1})),this._windowsMode={dispose:function(){for(var xe=0,ge=we;xe<ge.length;xe++)ge[xe].dispose()}}}},ye}(he.Disposable);Ce.CoreTerminal=ce},function(pt,Ce,ve){"use strict";var Ue=this&&this.__spreadArrays||function(){for(var oe=0,ne=0,ee=arguments.length;ne<ee;ne++)oe+=arguments[ne].length;var se=Array(oe),z=0;for(ne=0;ne<ee;ne++)for(var x=arguments[ne],b=0,E=x.length;b<E;b++,z++)se[z]=x[b];return se};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.InstantiationService=Ce.ServiceCollection=void 0;var a=ve(1),he=ve(14),de=function(){function oe(){for(var ne=[],ee=0;ee<arguments.length;ee++)ne[ee]=arguments[ee];this._entries=new Map;for(var se=0,z=ne;se<z.length;se++){var x=z[se],b=x[0],E=x[1];this.set(b,E)}}return oe.prototype.set=function(ne,ee){var se=this._entries.get(ne);return this._entries.set(ne,ee),se},oe.prototype.forEach=function(ne){this._entries.forEach(function(ee,se){return ne(se,ee)})},oe.prototype.has=function(ne){return this._entries.has(ne)},oe.prototype.get=function(ne){return this._entries.get(ne)},oe}();Ce.ServiceCollection=de;var te=function(){function oe(){this._services=new de,this._services.set(a.IInstantiationService,this)}return oe.prototype.setService=function(ne,ee){this._services.set(ne,ee)},oe.prototype.getService=function(ne){return this._services.get(ne)},oe.prototype.createInstance=function(ne){for(var ee=[],se=1;se<arguments.length;se++)ee[se-1]=arguments[se];for(var z=he.getServiceDependencies(ne).sort(function(fe,ce){return fe.index-ce.index}),x=[],b=0,E=z;b<E.length;b++){var re=E[b],ae=this._services.get(re.id);if(!ae)throw new Error("[createInstance] "+ne.name+" depends on UNKNOWN service "+re.id+".");x.push(ae)}var le=z.length>0?z[0].index:ee.length;if(ee.length!==le)throw new Error("[createInstance] First service dependency of "+ne.name+" at position "+(le+1)+" conflicts with "+ee.length+" static arguments");return new(ne.bind.apply(ne,Ue([void 0],Ue(ee,x))))},oe}();Ce.InstantiationService=te},function(pt,Ce,ve){"use strict";var Ue=this&&this.__decorate||function(ee,se,z,x){var b,E=arguments.length,re=E<3?se:x===null?x=Object.getOwnPropertyDescriptor(se,z):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(ee,se,z,x);else for(var ae=ee.length-1;ae>=0;ae--)(b=ee[ae])&&(re=(E<3?b(re):E>3?b(se,z,re):b(se,z))||re);return E>3&&re&&Object.defineProperty(se,z,re),re},a=this&&this.__param||function(ee,se){return function(z,x){se(z,x,ee)}},he=this&&this.__spreadArrays||function(){for(var ee=0,se=0,z=arguments.length;se<z;se++)ee+=arguments[se].length;var x=Array(ee),b=0;for(se=0;se<z;se++)for(var E=arguments[se],re=0,ae=E.length;re<ae;re++,b++)x[b]=E[re];return x};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.LogService=Ce.LogLevel=void 0;var de,te=ve(1);(function(ee){ee[ee.DEBUG=0]="DEBUG",ee[ee.INFO=1]="INFO",ee[ee.WARN=2]="WARN",ee[ee.ERROR=3]="ERROR",ee[ee.OFF=4]="OFF"})(de=Ce.LogLevel||(Ce.LogLevel={}));var oe={debug:de.DEBUG,info:de.INFO,warn:de.WARN,error:de.ERROR,off:de.OFF},ne=function(){function ee(se){var z=this;this._optionsService=se,this._updateLogLevel(),this._optionsService.onOptionChange(function(x){x==="logLevel"&&z._updateLogLevel()})}return ee.prototype._updateLogLevel=function(){this._logLevel=oe[this._optionsService.options.logLevel]},ee.prototype._evalLazyOptionalParams=function(se){for(var z=0;z<se.length;z++)typeof se[z]=="function"&&(se[z]=se[z]())},ee.prototype._log=function(se,z,x){this._evalLazyOptionalParams(x),se.call.apply(se,he([console,"xterm.js: "+z],x))},ee.prototype.debug=function(se){for(var z=[],x=1;x<arguments.length;x++)z[x-1]=arguments[x];this._logLevel<=de.DEBUG&&this._log(console.log,se,z)},ee.prototype.info=function(se){for(var z=[],x=1;x<arguments.length;x++)z[x-1]=arguments[x];this._logLevel<=de.INFO&&this._log(console.info,se,z)},ee.prototype.warn=function(se){for(var z=[],x=1;x<arguments.length;x++)z[x-1]=arguments[x];this._logLevel<=de.WARN&&this._log(console.warn,se,z)},ee.prototype.error=function(se){for(var z=[],x=1;x<arguments.length;x++)z[x-1]=arguments[x];this._logLevel<=de.ERROR&&this._log(console.error,se,z)},ee=Ue([a(0,te.IOptionsService)],ee)}();Ce.LogService=ne},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(z,x){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var re in E)E.hasOwnProperty(re)&&(b[re]=E[re])})(z,x)},function(z,x){function b(){this.constructor=z}Ue(z,x),z.prototype=x===null?Object.create(x):(b.prototype=x.prototype,new b)}),he=this&&this.__decorate||function(z,x,b,E){var re,ae=arguments.length,le=ae<3?x:E===null?E=Object.getOwnPropertyDescriptor(x,b):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(z,x,b,E);else for(var fe=z.length-1;fe>=0;fe--)(re=z[fe])&&(le=(ae<3?re(le):ae>3?re(x,b,le):re(x,b))||le);return ae>3&&le&&Object.defineProperty(x,b,le),le},de=this&&this.__param||function(z,x){return function(b,E){x(b,E,z)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.BufferService=Ce.MINIMUM_ROWS=Ce.MINIMUM_COLS=void 0;var te=ve(1),oe=ve(69),ne=ve(0),ee=ve(2);Ce.MINIMUM_COLS=2,Ce.MINIMUM_ROWS=1;var se=function(z){function x(b){var E=z.call(this)||this;return E._optionsService=b,E.isUserScrolling=!1,E._onResize=new ne.EventEmitter,E.cols=Math.max(b.options.cols,Ce.MINIMUM_COLS),E.rows=Math.max(b.options.rows,Ce.MINIMUM_ROWS),E.buffers=new oe.BufferSet(b,E),E}return a(x,z),Object.defineProperty(x.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){z.prototype.dispose.call(this),this.buffers.dispose()},x.prototype.resize=function(b,E){this.cols=b,this.rows=E,this.buffers.resize(b,E),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:b,rows:E})},x.prototype.reset=function(){this.buffers.dispose(),this.buffers=new oe.BufferSet(this._optionsService,this),this.isUserScrolling=!1},x=he([de(0,te.IOptionsService)],x)}(ee.Disposable);Ce.BufferService=se},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(oe,ne){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,se){ee.__proto__=se}||function(ee,se){for(var z in se)se.hasOwnProperty(z)&&(ee[z]=se[z])})(oe,ne)},function(oe,ne){function ee(){this.constructor=oe}Ue(oe,ne),oe.prototype=ne===null?Object.create(ne):(ee.prototype=ne.prototype,new ee)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.BufferSet=void 0;var he=ve(70),de=ve(0),te=function(oe){function ne(ee,se){var z=oe.call(this)||this;return z._onBufferActivate=z.register(new de.EventEmitter),z._normal=new he.Buffer(!0,ee,se),z._normal.fillViewportRows(),z._alt=new he.Buffer(!1,ee,se),z._activeBuffer=z._normal,z.setupTabStops(),z}return a(ne,oe),Object.defineProperty(ne.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),ne.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},ne.prototype.activateAltBuffer=function(ee){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(ee),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},ne.prototype.resize=function(ee,se){this._normal.resize(ee,se),this._alt.resize(ee,se)},ne.prototype.setupTabStops=function(ee){this._normal.setupTabStops(ee),this._alt.setupTabStops(ee)},ne}(ve(2).Disposable);Ce.BufferSet=te},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.BufferStringIterator=Ce.Buffer=Ce.MAX_BUFFER_SIZE=void 0;var Ue=ve(71),a=ve(16),he=ve(4),de=ve(3),te=ve(72),oe=ve(73),ne=ve(20),ee=ve(6);Ce.MAX_BUFFER_SIZE=4294967295;var se=function(){function x(b,E,re){this._hasScrollback=b,this._optionsService=E,this._bufferService=re,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=a.DEFAULT_ATTR_DATA.clone(),this.savedCharset=ne.DEFAULT_CHARSET,this.markers=[],this._nullCell=he.CellData.fromCharData([0,de.NULL_CELL_CHAR,de.NULL_CELL_WIDTH,de.NULL_CELL_CODE]),this._whitespaceCell=he.CellData.fromCharData([0,de.WHITESPACE_CELL_CHAR,de.WHITESPACE_CELL_WIDTH,de.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new Ue.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return x.prototype.getNullCell=function(b){return b?(this._nullCell.fg=b.fg,this._nullCell.bg=b.bg,this._nullCell.extended=b.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new ee.ExtendedAttrs),this._nullCell},x.prototype.getWhitespaceCell=function(b){return b?(this._whitespaceCell.fg=b.fg,this._whitespaceCell.bg=b.bg,this._whitespaceCell.extended=b.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new ee.ExtendedAttrs),this._whitespaceCell},x.prototype.getBlankLine=function(b,E){return new a.BufferLine(this._bufferService.cols,this.getNullCell(b),E)},Object.defineProperty(x.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"isCursorInViewport",{get:function(){var b=this.ybase+this.y-this.ydisp;return b>=0&&b<this._rows},enumerable:!1,configurable:!0}),x.prototype._getCorrectBufferLength=function(b){if(!this._hasScrollback)return b;var E=b+this._optionsService.options.scrollback;return E>Ce.MAX_BUFFER_SIZE?Ce.MAX_BUFFER_SIZE:E},x.prototype.fillViewportRows=function(b){if(this.lines.length===0){b===void 0&&(b=a.DEFAULT_ATTR_DATA);for(var E=this._rows;E--;)this.lines.push(this.getBlankLine(b))}},x.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new Ue.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},x.prototype.resize=function(b,E){var re=this.getNullCell(a.DEFAULT_ATTR_DATA),ae=this._getCorrectBufferLength(E);if(ae>this.lines.maxLength&&(this.lines.maxLength=ae),this.lines.length>0){if(this._cols<b)for(var le=0;le<this.lines.length;le++)this.lines.get(le).resize(b,re);var fe=0;if(this._rows<E)for(var ce=this._rows;ce<E;ce++)this.lines.length<E+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new a.BufferLine(b,re)):this.ybase>0&&this.lines.length<=this.ybase+this.y+fe+1?(this.ybase--,fe++,this.ydisp>0&&this.ydisp--):this.lines.push(new a.BufferLine(b,re)));else for(ce=this._rows;ce>E;ce--)this.lines.length>E+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(ae<this.lines.maxLength){var ue=this.lines.length-ae;ue>0&&(this.lines.trimStart(ue),this.ybase=Math.max(this.ybase-ue,0),this.ydisp=Math.max(this.ydisp-ue,0),this.savedY=Math.max(this.savedY-ue,0)),this.lines.maxLength=ae}this.x=Math.min(this.x,b-1),this.y=Math.min(this.y,E-1),fe&&(this.y+=fe),this.savedX=Math.min(this.savedX,b-1),this.scrollTop=0}if(this.scrollBottom=E-1,this._isReflowEnabled&&(this._reflow(b,E),this._cols>b))for(le=0;le<this.lines.length;le++)this.lines.get(le).resize(b,re);this._cols=b,this._rows=E},Object.defineProperty(x.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),x.prototype._reflow=function(b,E){this._cols!==b&&(b>this._cols?this._reflowLarger(b,E):this._reflowSmaller(b,E))},x.prototype._reflowLarger=function(b,E){var re=te.reflowLargerGetLinesToRemove(this.lines,this._cols,b,this.ybase+this.y,this.getNullCell(a.DEFAULT_ATTR_DATA));if(re.length>0){var ae=te.reflowLargerCreateNewLayout(this.lines,re);te.reflowLargerApplyNewLayout(this.lines,ae.layout),this._reflowLargerAdjustViewport(b,E,ae.countRemoved)}},x.prototype._reflowLargerAdjustViewport=function(b,E,re){for(var ae=this.getNullCell(a.DEFAULT_ATTR_DATA),le=re;le-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<E&&this.lines.push(new a.BufferLine(b,ae))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-re,0)},x.prototype._reflowSmaller=function(b,E){for(var re=this.getNullCell(a.DEFAULT_ATTR_DATA),ae=[],le=0,fe=this.lines.length-1;fe>=0;fe--){var ce=this.lines.get(fe);if(!(!ce||!ce.isWrapped&&ce.getTrimmedLength()<=b)){for(var ue=[ce];ce.isWrapped&&fe>0;)ce=this.lines.get(--fe),ue.unshift(ce);var ye=this.ybase+this.y;if(!(ye>=fe&&ye<fe+ue.length)){var Se=ue[ue.length-1].getTrimmedLength(),we=te.reflowSmallerGetNewLineLengths(ue,this._cols,b),xe=we.length-ue.length,ge=void 0;ge=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+xe):Math.max(0,this.lines.length-this.lines.maxLength+xe);for(var _e=[],be=0;be<xe;be++){var Ae=this.getBlankLine(a.DEFAULT_ATTR_DATA,!0);_e.push(Ae)}_e.length>0&&(ae.push({start:fe+ue.length+le,newLines:_e}),le+=_e.length),ue.push.apply(ue,_e);var Te=we.length-1,Le=we[Te];Le===0&&(Le=we[--Te]);for(var ke=ue.length-xe-1,Pe=Se;ke>=0;){var Oe=Math.min(Pe,Le);if(ue[Te].copyCellsFrom(ue[ke],Pe-Oe,Le-Oe,Oe,!0),(Le-=Oe)===0&&(Le=we[--Te]),(Pe-=Oe)===0){ke--;var ze=Math.max(ke,0);Pe=te.getWrappedLineTrimmedLength(ue,ze,this._cols)}}for(be=0;be<ue.length;be++)we[be]<b&&ue[be].setCell(we[be],re);for(var Ge=xe-ge;Ge-- >0;)this.ybase===0?this.y<E-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+le)-E&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+xe,this.ybase+E-1)}}}if(ae.length>0){var tt=[],Me=[];for(be=0;be<this.lines.length;be++)Me.push(this.lines.get(be));var We=this.lines.length,it=We-1,at=0,$e=ae[at];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+le);var Je=0;for(be=Math.min(this.lines.maxLength-1,We+le-1);be>=0;be--)if($e&&$e.start>it+Je){for(var Ye=$e.newLines.length-1;Ye>=0;Ye--)this.lines.set(be--,$e.newLines[Ye]);be++,tt.push({index:it+1,amount:$e.newLines.length}),Je+=$e.newLines.length,$e=ae[++at]}else this.lines.set(be,Me[it--]);var Qe=0;for(be=tt.length-1;be>=0;be--)tt[be].index+=Qe,this.lines.onInsertEmitter.fire(tt[be]),Qe+=tt[be].amount;var st=Math.max(0,We+le-this.lines.maxLength);st>0&&this.lines.onTrimEmitter.fire(st)}},x.prototype.stringIndexToBufferIndex=function(b,E,re){for(re===void 0&&(re=!1);E;){var ae=this.lines.get(b);if(!ae)return[-1,-1];for(var le=re?ae.getTrimmedLength():ae.length,fe=0;fe<le;++fe)if(ae.get(fe)[de.CHAR_DATA_WIDTH_INDEX]&&(E-=ae.get(fe)[de.CHAR_DATA_CHAR_INDEX].length||1),E<0)return[b,fe];b++}return[b,0]},x.prototype.translateBufferLineToString=function(b,E,re,ae){re===void 0&&(re=0);var le=this.lines.get(b);return le?le.translateToString(E,re,ae):""},x.prototype.getWrappedRangeForLine=function(b){for(var E=b,re=b;E>0&&this.lines.get(E).isWrapped;)E--;for(;re+1<this.lines.length&&this.lines.get(re+1).isWrapped;)re++;return{first:E,last:re}},x.prototype.setupTabStops=function(b){for(b!=null?this.tabs[b]||(b=this.prevStop(b)):(this.tabs={},b=0);b<this._cols;b+=this._optionsService.options.tabStopWidth)this.tabs[b]=!0},x.prototype.prevStop=function(b){for(b==null&&(b=this.x);!this.tabs[--b]&&b>0;);return b>=this._cols?this._cols-1:b<0?0:b},x.prototype.nextStop=function(b){for(b==null&&(b=this.x);!this.tabs[++b]&&b<this._cols;);return b>=this._cols?this._cols-1:b<0?0:b},x.prototype.addMarker=function(b){var E=this,re=new oe.Marker(b);return this.markers.push(re),re.register(this.lines.onTrim(function(ae){re.line-=ae,re.line<0&&re.dispose()})),re.register(this.lines.onInsert(function(ae){re.line>=ae.index&&(re.line+=ae.amount)})),re.register(this.lines.onDelete(function(ae){re.line>=ae.index&&re.line<ae.index+ae.amount&&re.dispose(),re.line>ae.index&&(re.line-=ae.amount)})),re.register(re.onDispose(function(){return E._removeMarker(re)})),re},x.prototype._removeMarker=function(b){this.markers.splice(this.markers.indexOf(b),1)},x.prototype.iterator=function(b,E,re,ae,le){return new z(this,b,E,re,ae,le)},x}();Ce.Buffer=se;var z=function(){function x(b,E,re,ae,le,fe){re===void 0&&(re=0),ae===void 0&&(ae=b.lines.length),le===void 0&&(le=0),fe===void 0&&(fe=0),this._buffer=b,this._trimRight=E,this._startIndex=re,this._endIndex=ae,this._startOverscan=le,this._endOverscan=fe,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return x.prototype.hasNext=function(){return this._current<this._endIndex},x.prototype.next=function(){var b=this._buffer.getWrappedRangeForLine(this._current);b.first<this._startIndex-this._startOverscan&&(b.first=this._startIndex-this._startOverscan),b.last>this._endIndex+this._endOverscan&&(b.last=this._endIndex+this._endOverscan),b.first=Math.max(b.first,0),b.last=Math.min(b.last,this._buffer.lines.length);for(var E="",re=b.first;re<=b.last;++re)E+=this._buffer.translateBufferLineToString(re,this._trimRight);return this._current=b.last+1,{range:b,content:E}},x}();Ce.BufferStringIterator=z},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.CircularList=void 0;var Ue=ve(0),a=function(){function he(de){this._maxLength=de,this.onDeleteEmitter=new Ue.EventEmitter,this.onInsertEmitter=new Ue.EventEmitter,this.onTrimEmitter=new Ue.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(he.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"maxLength",{get:function(){return this._maxLength},set:function(de){if(this._maxLength!==de){for(var te=new Array(de),oe=0;oe<Math.min(de,this.length);oe++)te[oe]=this._array[this._getCyclicIndex(oe)];this._array=te,this._maxLength=de,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"length",{get:function(){return this._length},set:function(de){if(de>this._length)for(var te=this._length;te<de;te++)this._array[te]=void 0;this._length=de},enumerable:!1,configurable:!0}),he.prototype.get=function(de){return this._array[this._getCyclicIndex(de)]},he.prototype.set=function(de,te){this._array[this._getCyclicIndex(de)]=te},he.prototype.push=function(de){this._array[this._getCyclicIndex(this._length)]=de,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},he.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(he.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),he.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},he.prototype.splice=function(de,te){for(var oe=[],ne=2;ne<arguments.length;ne++)oe[ne-2]=arguments[ne];if(te){for(var ee=de;ee<this._length-te;ee++)this._array[this._getCyclicIndex(ee)]=this._array[this._getCyclicIndex(ee+te)];this._length-=te}for(ee=this._length-1;ee>=de;ee--)this._array[this._getCyclicIndex(ee+oe.length)]=this._array[this._getCyclicIndex(ee)];for(ee=0;ee<oe.length;ee++)this._array[this._getCyclicIndex(de+ee)]=oe[ee];if(this._length+oe.length>this._maxLength){var se=this._length+oe.length-this._maxLength;this._startIndex+=se,this._length=this._maxLength,this.onTrimEmitter.fire(se)}else this._length+=oe.length},he.prototype.trimStart=function(de){de>this._length&&(de=this._length),this._startIndex+=de,this._length-=de,this.onTrimEmitter.fire(de)},he.prototype.shiftElements=function(de,te,oe){if(!(te<=0)){if(de<0||de>=this._length)throw new Error("start argument out of range");if(de+oe<0)throw new Error("Cannot shift elements in list beyond index 0");if(oe>0){for(var ne=te-1;ne>=0;ne--)this.set(de+ne+oe,this.get(de+ne));var ee=de+te+oe-this._length;if(ee>0)for(this._length+=ee;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(ne=0;ne<te;ne++)this.set(de+ne+oe,this.get(de+ne))}},he.prototype._getCyclicIndex=function(de){return(this._startIndex+de)%this._maxLength},he}();Ce.CircularList=a},function(pt,Ce,ve){"use strict";function Ue(a,he,de){if(he===a.length-1)return a[he].getTrimmedLength();var te=!a[he].hasContent(de-1)&&a[he].getWidth(de-1)===1,oe=a[he+1].getWidth(0)===2;return te&&oe?de-1:de}Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.getWrappedLineTrimmedLength=Ce.reflowSmallerGetNewLineLengths=Ce.reflowLargerApplyNewLayout=Ce.reflowLargerCreateNewLayout=Ce.reflowLargerGetLinesToRemove=void 0,Ce.reflowLargerGetLinesToRemove=function(a,he,de,te,oe){for(var ne=[],ee=0;ee<a.length-1;ee++){var se=ee,z=a.get(++se);if(z.isWrapped){for(var x=[a.get(ee)];se<a.length&&z.isWrapped;)x.push(z),z=a.get(++se);if(te>=ee&&te<se)ee+=x.length-1;else{for(var b=0,E=Ue(x,b,he),re=1,ae=0;re<x.length;){var le=Ue(x,re,he),fe=le-ae,ce=de-E,ue=Math.min(fe,ce);x[b].copyCellsFrom(x[re],ae,E,ue,!1),(E+=ue)===de&&(b++,E=0),(ae+=ue)===le&&(re++,ae=0),E===0&&b!==0&&x[b-1].getWidth(de-1)===2&&(x[b].copyCellsFrom(x[b-1],de-1,E++,1,!1),x[b-1].setCell(de-1,oe))}x[b].replaceCells(E,de,oe);for(var ye=0,Se=x.length-1;Se>0&&(Se>b||x[Se].getTrimmedLength()===0);Se--)ye++;ye>0&&(ne.push(ee+x.length-ye),ne.push(ye)),ee+=x.length-1}}}return ne},Ce.reflowLargerCreateNewLayout=function(a,he){for(var de=[],te=0,oe=he[te],ne=0,ee=0;ee<a.length;ee++)if(oe===ee){var se=he[++te];a.onDeleteEmitter.fire({index:ee-ne,amount:se}),ee+=se-1,ne+=se,oe=he[++te]}else de.push(ee);return{layout:de,countRemoved:ne}},Ce.reflowLargerApplyNewLayout=function(a,he){for(var de=[],te=0;te<he.length;te++)de.push(a.get(he[te]));for(te=0;te<de.length;te++)a.set(te,de[te]);a.length=he.length},Ce.reflowSmallerGetNewLineLengths=function(a,he,de){for(var te=[],oe=a.map(function(E,re){return Ue(a,re,he)}).reduce(function(E,re){return E+re}),ne=0,ee=0,se=0;se<oe;){if(oe-se<de){te.push(oe-se);break}ne+=de;var z=Ue(a,ee,he);ne>z&&(ne-=z,ee++);var x=a[ee].getWidth(ne-1)===2;x&&ne--;var b=x?de-1:de;te.push(b),se+=b}return te},Ce.getWrappedLineTrimmedLength=Ue},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(te,oe){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,ee){ne.__proto__=ee}||function(ne,ee){for(var se in ee)ee.hasOwnProperty(se)&&(ne[se]=ee[se])})(te,oe)},function(te,oe){function ne(){this.constructor=te}Ue(te,oe),te.prototype=oe===null?Object.create(oe):(ne.prototype=oe.prototype,new ne)});Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.Marker=void 0;var he=ve(0),de=function(te){function oe(ne){var ee=te.call(this)||this;return ee.line=ne,ee._id=oe._nextId++,ee.isDisposed=!1,ee._onDispose=new he.EventEmitter,ee}return a(oe,te),Object.defineProperty(oe.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),oe.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},oe._nextId=1,oe}(ve(2).Disposable);Ce.Marker=de},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.OptionsService=Ce.DEFAULT_OPTIONS=Ce.DEFAULT_BELL_SOUND=void 0;var Ue=ve(0),a=ve(11),he=ve(33);Ce.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",Ce.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:Ce.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:a.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var de=["cols","rows"],te=function(){function oe(ne){this._onOptionChange=new Ue.EventEmitter,this.options=he.clone(Ce.DEFAULT_OPTIONS);for(var ee=0,se=Object.keys(ne);ee<se.length;ee++){var z=se[ee];if(z in this.options){var x=ne[z];this.options[z]=x}}}return Object.defineProperty(oe.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),oe.prototype.setOption=function(ne,ee){if(!(ne in Ce.DEFAULT_OPTIONS))throw new Error('No option with key "'+ne+'"');if(de.indexOf(ne)!==-1)throw new Error('Option "'+ne+'" can only be set in the constructor');this.options[ne]!==ee&&(ee=this._sanitizeAndValidateOption(ne,ee),this.options[ne]!==ee&&(this.options[ne]=ee,this._onOptionChange.fire(ne)))},oe.prototype._sanitizeAndValidateOption=function(ne,ee){switch(ne){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":ee||(ee=Ce.DEFAULT_OPTIONS[ne]);break;case"cursorWidth":ee=Math.floor(ee);case"lineHeight":case"tabStopWidth":if(ee<1)throw new Error(ne+" cannot be less than 1, value: "+ee);break;case"minimumContrastRatio":ee=Math.max(1,Math.min(21,Math.round(10*ee)/10));break;case"scrollback":if((ee=Math.min(ee,4294967295))<0)throw new Error(ne+" cannot be less than 0, value: "+ee);break;case"fastScrollSensitivity":case"scrollSensitivity":if(ee<=0)throw new Error(ne+" cannot be less than or equal to 0, value: "+ee)}return ee},oe.prototype.getOption=function(ne){if(!(ne in Ce.DEFAULT_OPTIONS))throw new Error('No option with key "'+ne+'"');return this.options[ne]},oe}();Ce.OptionsService=te},function(pt,Ce,ve){"use strict";var Ue,a=this&&this.__extends||(Ue=function(b,E){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ae){re.__proto__=ae}||function(re,ae){for(var le in ae)ae.hasOwnProperty(le)&&(re[le]=ae[le])})(b,E)},function(b,E){function re(){this.constructor=b}Ue(b,E),b.prototype=E===null?Object.create(E):(re.prototype=E.prototype,new re)}),he=this&&this.__decorate||function(b,E,re,ae){var le,fe=arguments.length,ce=fe<3?E:ae===null?ae=Object.getOwnPropertyDescriptor(E,re):ae;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ce=Reflect.decorate(b,E,re,ae);else for(var ue=b.length-1;ue>=0;ue--)(le=b[ue])&&(ce=(fe<3?le(ce):fe>3?le(E,re,ce):le(E,re))||ce);return fe>3&&ce&&Object.defineProperty(E,re,ce),ce},de=this&&this.__param||function(b,E){return function(re,ae){E(re,ae,b)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.CoreService=void 0;var te=ve(1),oe=ve(0),ne=ve(33),ee=ve(2),se=Object.freeze({insertMode:!1}),z=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),x=function(b){function E(re,ae,le,fe){var ce=b.call(this)||this;return ce._bufferService=ae,ce._logService=le,ce._optionsService=fe,ce.isCursorInitialized=!1,ce.isCursorHidden=!1,ce._onData=ce.register(new oe.EventEmitter),ce._onUserInput=ce.register(new oe.EventEmitter),ce._onBinary=ce.register(new oe.EventEmitter),ce._scrollToBottom=re,ce.register({dispose:function(){return ce._scrollToBottom=void 0}}),ce.modes=ne.clone(se),ce.decPrivateModes=ne.clone(z),ce}return a(E,b),Object.defineProperty(E.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),E.prototype.reset=function(){this.modes=ne.clone(se),this.decPrivateModes=ne.clone(z)},E.prototype.triggerDataEvent=function(re,ae){if(ae===void 0&&(ae=!1),!this._optionsService.options.disableStdin){var le=this._bufferService.buffer;le.ybase!==le.ydisp&&this._scrollToBottom(),ae&&this._onUserInput.fire(),this._logService.debug('sending data "'+re+'"',function(){return re.split("").map(function(fe){return fe.charCodeAt(0)})}),this._onData.fire(re)}},E.prototype.triggerBinaryEvent=function(re){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+re+'"',function(){return re.split("").map(function(ae){return ae.charCodeAt(0)})}),this._onBinary.fire(re))},E=he([de(1,te.IBufferService),de(2,te.ILogService),de(3,te.IOptionsService)],E)}(ee.Disposable);Ce.CoreService=x},function(pt,Ce,ve){"use strict";var Ue=this&&this.__decorate||function(z,x,b,E){var re,ae=arguments.length,le=ae<3?x:E===null?E=Object.getOwnPropertyDescriptor(x,b):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(z,x,b,E);else for(var fe=z.length-1;fe>=0;fe--)(re=z[fe])&&(le=(ae<3?re(le):ae>3?re(x,b,le):re(x,b))||le);return ae>3&&le&&Object.defineProperty(x,b,le),le},a=this&&this.__param||function(z,x){return function(b,E){x(b,E,z)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.CoreMouseService=void 0;var he=ve(1),de=ve(0),te={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(z){return z.button!==4&&z.action===1&&(z.ctrl=!1,z.alt=!1,z.shift=!1,!0)}},VT200:{events:19,restrict:function(z){return z.action!==32}},DRAG:{events:23,restrict:function(z){return z.action!==32||z.button!==3}},ANY:{events:31,restrict:function(z){return!0}}};function oe(z,x){var b=(z.ctrl?16:0)|(z.shift?4:0)|(z.alt?8:0);return z.button===4?(b|=64,b|=z.action):(b|=3&z.button,4&z.button&&(b|=64),8&z.button&&(b|=128),z.action===32?b|=32:z.action!==0||x||(b|=3)),b}var ne=String.fromCharCode,ee={DEFAULT:function(z){var x=[oe(z,!1)+32,z.col+32,z.row+32];return x[0]>255||x[1]>255||x[2]>255?"":"\x1B[M"+ne(x[0])+ne(x[1])+ne(x[2])},SGR:function(z){var x=z.action===0&&z.button!==4?"m":"M";return"\x1B[<"+oe(z,!0)+";"+z.col+";"+z.row+x}},se=function(){function z(x,b){this._bufferService=x,this._coreService=b,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new de.EventEmitter,this._lastEvent=null;for(var E=0,re=Object.keys(te);E<re.length;E++){var ae=re[E];this.addProtocol(ae,te[ae])}for(var le=0,fe=Object.keys(ee);le<fe.length;le++){var ce=fe[le];this.addEncoding(ce,ee[ce])}this.reset()}return z.prototype.addProtocol=function(x,b){this._protocols[x]=b},z.prototype.addEncoding=function(x,b){this._encodings[x]=b},Object.defineProperty(z.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(x){if(!this._protocols[x])throw new Error('unknown protocol "'+x+'"');this._activeProtocol=x,this._onProtocolChange.fire(this._protocols[x].events)},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(x){if(!this._encodings[x])throw new Error('unknown encoding "'+x+'"');this._activeEncoding=x},enumerable:!1,configurable:!0}),z.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(z.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),z.prototype.triggerMouseEvent=function(x){if(x.col<0||x.col>=this._bufferService.cols||x.row<0||x.row>=this._bufferService.rows||x.button===4&&x.action===32||x.button===3&&x.action!==32||x.button!==4&&(x.action===2||x.action===3)||(x.col++,x.row++,x.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,x))||!this._protocols[this._activeProtocol].restrict(x))return!1;var b=this._encodings[this._activeEncoding](x);return b&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(b):this._coreService.triggerDataEvent(b,!0)),this._lastEvent=x,!0},z.prototype.explainEvents=function(x){return{down:!!(1&x),up:!!(2&x),drag:!!(4&x),move:!!(8&x),wheel:!!(16&x)}},z.prototype._compareEvents=function(x,b){return x.col===b.col&&x.row===b.row&&x.button===b.button&&x.action===b.action&&x.ctrl===b.ctrl&&x.alt===b.alt&&x.shift===b.shift},z=Ue([a(0,he.IBufferService),a(1,he.ICoreService)],z)}();Ce.CoreMouseService=se},function(pt,Ce,ve){"use strict";var Ue=this&&this.__decorate||function(te,oe,ne,ee){var se,z=arguments.length,x=z<3?oe:ee===null?ee=Object.getOwnPropertyDescriptor(oe,ne):ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(te,oe,ne,ee);else for(var b=te.length-1;b>=0;b--)(se=te[b])&&(x=(z<3?se(x):z>3?se(oe,ne,x):se(oe,ne))||x);return z>3&&x&&Object.defineProperty(oe,ne,x),x},a=this&&this.__param||function(te,oe){return function(ne,ee){oe(ne,ee,te)}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.DirtyRowService=void 0;var he=ve(1),de=function(){function te(oe){this._bufferService=oe,this.clearRange()}return Object.defineProperty(te.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),te.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},te.prototype.markDirty=function(oe){oe<this._start?this._start=oe:oe>this._end&&(this._end=oe)},te.prototype.markRangeDirty=function(oe,ne){if(oe>ne){var ee=oe;oe=ne,ne=ee}oe<this._start&&(this._start=oe),ne>this._end&&(this._end=ne)},te.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},te=Ue([a(0,he.IBufferService)],te)}();Ce.DirtyRowService=de},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.UnicodeService=void 0;var Ue=ve(0),a=ve(79),he=function(){function de(){this._providers=Object.create(null),this._active="",this._onChange=new Ue.EventEmitter;var te=new a.UnicodeV6;this.register(te),this._active=te.version,this._activeProvider=te}return Object.defineProperty(de.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"activeVersion",{get:function(){return this._active},set:function(te){if(!this._providers[te])throw new Error('unknown Unicode version "'+te+'"');this._active=te,this._activeProvider=this._providers[te],this._onChange.fire(te)},enumerable:!1,configurable:!0}),de.prototype.register=function(te){this._providers[te.version]=te},de.prototype.wcwidth=function(te){return this._activeProvider.wcwidth(te)},de.prototype.getStringCellWidth=function(te){for(var oe=0,ne=te.length,ee=0;ee<ne;++ee){var se=te.charCodeAt(ee);if(55296<=se&&se<=56319){if(++ee>=ne)return oe+this.wcwidth(se);var z=te.charCodeAt(ee);56320<=z&&z<=57343?se=1024*(se-55296)+z-56320+65536:oe+=this.wcwidth(z)}oe+=this.wcwidth(se)}return oe},de}();Ce.UnicodeService=he},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.UnicodeV6=void 0;var Ue,a=ve(15),he=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],de=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],te=function(){function oe(){if(this.version="6",!Ue){Ue=new Uint8Array(65536),a.fill(Ue,1),Ue[0]=0,a.fill(Ue,0,1,32),a.fill(Ue,0,127,160),a.fill(Ue,2,4352,4448),Ue[9001]=2,Ue[9002]=2,a.fill(Ue,2,11904,42192),Ue[12351]=1,a.fill(Ue,2,44032,55204),a.fill(Ue,2,63744,64256),a.fill(Ue,2,65040,65050),a.fill(Ue,2,65072,65136),a.fill(Ue,2,65280,65377),a.fill(Ue,2,65504,65511);for(var ne=0;ne<he.length;++ne)a.fill(Ue,0,he[ne][0],he[ne][1]+1)}}return oe.prototype.wcwidth=function(ne){return ne<32?0:ne<127?1:ne<65536?Ue[ne]:function(ee,se){var z,x=0,b=se.length-1;if(ee<se[0][0]||ee>se[b][1])return!1;for(;b>=x;)if(ee>se[z=x+b>>1][1])x=z+1;else{if(!(ee<se[z][0]))return!0;b=z-1}return!1}(ne,de)?0:ne>=131072&&ne<=196605||ne>=196608&&ne<=262141?2:1},oe}();Ce.UnicodeV6=te},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.CharsetService=void 0;var Ue=function(){function a(){this.glevel=0,this._charsets=[]}return a.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},a.prototype.setgLevel=function(he){this.glevel=he,this.charset=this._charsets[he]},a.prototype.setgCharset=function(he,de){this._charsets[he]=de,this.glevel===he&&(this.charset=de)},a}();Ce.CharsetService=Ue},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.updateWindowsModeWrappedState=void 0;var Ue=ve(3);Ce.updateWindowsModeWrappedState=function(a){var he=a.buffer.lines.get(a.buffer.ybase+a.buffer.y-1),de=he==null?void 0:he.get(a.cols-1),te=a.buffer.lines.get(a.buffer.ybase+a.buffer.y);te&&de&&(te.isWrapped=de[Ue.CHAR_DATA_CODE_INDEX]!==Ue.NULL_CELL_CODE&&de[Ue.CHAR_DATA_CODE_INDEX]!==Ue.WHITESPACE_CELL_CODE)}},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.WriteBuffer=void 0;var Ue=function(){function a(he){this._action=he,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return a.prototype.writeSync=function(he){if(this._writeBuffer.length){for(var de=this._bufferOffset;de<this._writeBuffer.length;++de){var te=this._writeBuffer[de],oe=this._callbacks[de];this._action(te),oe&&oe()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(he)},a.prototype.write=function(he,de){var te=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return te._innerWrite()})),this._pendingData+=he.length,this._writeBuffer.push(he),this._callbacks.push(de)},a.prototype._innerWrite=function(){for(var he=this,de=Date.now();this._writeBuffer.length>this._bufferOffset;){var te=this._writeBuffer[this._bufferOffset],oe=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(te),this._pendingData-=te.length,oe&&oe(),Date.now()-de>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return he._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},a}();Ce.WriteBuffer=Ue},function(pt,Ce,ve){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.AddonManager=void 0;var Ue=function(){function a(){this._addons=[]}return a.prototype.dispose=function(){for(var he=this._addons.length-1;he>=0;he--)this._addons[he].instance.dispose()},a.prototype.loadAddon=function(he,de){var te=this,oe={instance:de,dispose:de.dispose,isDisposed:!1};this._addons.push(oe),de.dispose=function(){return te._wrappedAddonDispose(oe)},de.activate(he)},a.prototype._wrappedAddonDispose=function(he){if(!he.isDisposed){for(var de=-1,te=0;te<this._addons.length;te++)if(this._addons[te]===he){de=te;break}if(de===-1)throw new Error("Could not dispose an addon that has not been loaded");he.isDisposed=!0,he.dispose.apply(he.instance),this._addons.splice(de,1)}},a}();Ce.AddonManager=Ue}])})},20441:function(bt,pt,Ce){var ve={"./aac.svg":71454,"./amr.svg":3169,"./avi.svg":10090,"./bmp.svg":94472,"./default.svg":24547,"./doc.svg":20062,"./docx.svg":67421,"./flv.svg":43573,"./gif.svg":4276,"./jpeg.svg":90297,"./jpg.svg":91338,"./m4a.svg":88742,"./md.svg":37119,"./mkv.svg":46999,"./mov.svg":93383,"./mp3.svg":97104,"./mp4.svg":34657,"./mpeg.svg":8382,"./ogg.svg":91664,"./opus.svg":8796,"./pdf.svg":7794,"./png.svg":55463,"./ppt.svg":63675,"./pptx.svg":30457,"./txt.svg":22395,"./wav.svg":54408,"./webm.svg":72588,"./wma.svg":65872,"./wmv.svg":4272,"./wps.svg":89270,"./xls.svg":21919,"./xlsx.svg":72406};function Ue(he){var de=a(he);return Ce(de)}function a(he){if(!Ce.o(ve,he)){var de=new Error("Cannot find module '"+he+"'");throw de.code="MODULE_NOT_FOUND",de}return ve[he]}Ue.keys=function(){return Object.keys(ve)},Ue.resolve=a,bt.exports=Ue,Ue.id=20441},71454:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/aac.b3e9a3ba.svg"},3169:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/amr.ce411d51.svg"},10090:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/avi.d7b8adf7.svg"},94472:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/bmp.c62f88c4.svg"},24547:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/default.f48aef2c.svg"},20062:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/doc.e6c75d4c.svg"},67421:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/docx.150535e3.svg"},43573:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/flv.43967063.svg"},4276:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/gif.b2122741.svg"},90297:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/jpeg.fffee469.svg"},91338:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/jpg.2fb4a360.svg"},88742:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/m4a.7994dbc0.svg"},37119:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/md.1f56aa84.svg"},46999:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/mkv.f43ec502.svg"},93383:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/mov.1e1eebb7.svg"},97104:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/mp3.a7e45c91.svg"},34657:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/mp4.31a2d9d7.svg"},8382:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/mpeg.9a0dfa86.svg"},91664:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/ogg.0394dc54.svg"},8796:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/opus.faad335c.svg"},7794:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/pdf.5d12b224.svg"},55463:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/png.eacc8c1c.svg"},63675:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/ppt.d710530e.svg"},30457:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/pptx.d78add0d.svg"},22395:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/txt.53f7213d.svg"},54408:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/wav.a76e7dde.svg"},72588:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/webm.3a7e6ebc.svg"},65872:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/wma.a57b430b.svg"},4272:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/wmv.f22ee4a1.svg"},89270:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/wps.f48aef2c.svg"},21919:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/xls.0db636e2.svg"},72406:function(bt,pt,Ce){"use strict";bt.exports=Ce.p+"static/xlsx.5d09490a.svg"},93314:function(bt){"use strict";bt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHg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MfrKB3bZJqa44xzu4zV7nwhmJR4yMVCTYy6MeY5eyRO2iOzrcnraqGOCcxzblONZeYcc2MU51aMOYkhz3kjVHDEts3qsheN6XI5dolIzNi14iL7zg8wXzTNamzPr3K3xJvxcrAar9nDX+pDnK0ONTzcxondutzWpz8/zh3338Nmd/ZL9HYE14m+Bhvs/+RC57sbP9Xa/Aqv/6v1XYI/TYxfarB37lG7+A9W6V2xnoi5wAAAAABJRU5ErkJggg=="},2195:function(bt){"use strict";bt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAwCAYAAABjezibAAAAAXNSR0IArs4c6QAACjFJREFUWAnFWX1sXlUZP+e+bz/3hbKZOKubUQJ+To1RGVPEIPGLgCYsMjTat7VZZjs227RlwdigsI+yGRc2xmzfVgJDGjAIiVDwA2IMf7BEk7k/jDF8aBYz40C69W379t7j7/c859z3tr0btAQ96XvP1/P8nt/5Pefce9+31rzBUvqlW+Gqpt0m5jpnzKXWmJWA/Kdx5lkTmfvLN9jH30gI4C29lMbcV+F9j3NujaIAzoEm/qQ2Av+MtXZL+UZ7aimRlkyw9LDrcLE5AiLAqBEDWQNCSpKMQBa9U8U6e/nRzfalxZKMFutA+9aH3CdNbA4huK2ppUiWdBKqqB+HNkivnZ12j4yNucJi4y2JIPbbnUniikoCXEgoQWjhhAsLhcUYrlKD5EfHK/G32F1MWTTBtjH3XhDaJIHJhSklDa+YKqjjTHdQWJSE+IshR9tFE0TIKzWokkj3H9GoItVk8cSFJLqqpN3YcdzVyfzrvCyaIPbe2pBaSansN0QDuZpi6Ad1pdY57MYoOmne9jq5iVlxMcbetlH2F9OHYr1g0vap5pQohkGSZtot96T6LF3BnnG3jIFes3hyoiDbJKmnVVxJbr6a7Ae318LvubfGI01x28Nu3Zn/mBOtD7qdFwRImEsyUBKioO9Lm/sQ/XBwdB4qytgFkWWy9e6ZnWfOzpxoG3LrOCApbh9z705i87skduuw+gOlYy4qb7H78+Bwc64g/CtkIWmDEZUhIWgkN2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XNtQtBvAbMZhglok+Fakv6wgfxJ44e+C9A/A6EByBQAaJPVX/x2qdxEzxMUDL1+NFvxhLzNgaGtZigcopuIiRfofq2UpM0k+YbTSkM2Z+S/ooJQCMU2qoG21P29h9rjiJdBKVkk4m8B0OS8cyD3eFwpAkhppvvkcFXFKI1AaMn/NlqpnesAevGx48cGKaJJjkEHmtGAqKLPzn7ypFjJuy8GcOutbNzctr9UHdlGRMWs+A2Ri7RJ81/UoLsr34RO85rzH4rCbdqQjfbPOnw/hmCOQ1AhGu8TkRZUDnhH/ETD1n3yQj36LH9s0gglRnd5HO5TyHln1A58e/xvzx9W6ZgWXTHACSdJzIz2zoari3XgCUyPZqlD9FHdn9e+vmIiXq2nHTk69EOTZPJL95l50QoJiDpH2Mf2XsnjPvMA3dKaFLG/qhmoclR39OuyQEBjcz4FgoFs/zfCWbSSwvwdVLUDR06dN26J8aYv97NdVcasB78q4P/fKgZYhsxYn2EUfkye2cbu7Jib/wvvV7W3SmIewpAMiFrl6uHvpojGPOIeRBAtT+91d8PwuavH/zVTV+X3imA/wA0lpa5CSVH7AAAAABJRU5ErkJggg=="},36645:function(bt){"use strict";bt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAwCAYAAABe6Vn9AAAAAXNSR0IArs4c6QAACO9JREFUaAXVWWtsXEcVPnNfu+t9eZ34kXddx2lCGjlpSRPRAmmAKKL8KI0CTaC0SqmIVCi0YAlEqegPBD/4RcMrgqKC0haiglAqCOKR0BRQS0lbaPOwQ1rF77d314+9e198566vvXu966wde1uOtffeOTNn5nxzzpw5Mxa7znXudGx6ihxnAy0y3VITvZKR5Pc+sSI6sMhdl+xOcmznp0sBhkes0+S116mi7Qs96dqSGixyhUQOvWeR+yzorj6gVjOoL3enlhdULFFBWqJ+C7plUCsDckVAVQQQo6vXlEQlQFUM0Awoqe3BztSyAhMuYqGigHKg1MT1Ial9qUBVHNA0qKDU/nAyWbOIxnG7ekcAuaACamKNKS86qHcMEIOq09Sax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TnTgtRtKeKAGK92EpkG/RQt74gUBMw7iPduuE49j/ONgeO+bBOFysGiEeMGEkyLJMOA9Tp8VnreVop/8dlhMn7cfE3SQKrS+zY1qYf8LfxynzlnAtRHmdJ3w5FzBGSodoTgyZ9vkunv/GmUoLQhL4zaNqtPbptONIPhKptxP3JACSOtbTpj/KFil+Uo9yvweRL8oqSJbDhyhEyJc29v8PJwklIsoGgoA6bjtlt2lIWF0AI3ueJtE/jlPoaK9jSrm9G5HkB4agGOchvZUW7919NYnqDFXt6e8PGgPlFG5s+wvEsxEuNEi4kZyUtnlUivaYjJaBAwBFOryOUM8Gg/PzLq8WQX4eb2rM7Ldv5E0CFkS60Y+u665X1gTe4XcUB+JVbaLml3dhDtn0CoJDgibQsSfvPNqt/+L8FxBMB9/sENsJnkAexcxmSTPdUNMot1Bql5F5vDvwKUe1Brkd2p1q2KMx4Swm+2/lbL+pf23ox+8C7Xc8F6fc/EnMhFBj++EIAAAAASUVORK5CYII="},9515:function(bt){"use strict";bt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAZJJREFUSEvNkjtPAkEUhc/EQivEwkqxolFCq1Ep1s7C1hD8D5ZGEgtjbOz9DxIaKws7KDBRW0AKt+LRiJGwVBY65jBZXJhdGIgQb7LZ2bmP7557V8jHRYnpWV5MBAglAD71K9UazzSnoN6radf3R4D1O6BTUEUJW0kDlQOiJgSYjzQvZCM7vR18tfJCftjTAwiOyA9QzgCxlP8gnCoQWjMbkgZgcrsG1ArAzqlepPagfJEEENkdDekDsHgp85v06QALYWD7RN1RVbuqzvR1Gsq3HAsG+SoghMlOHTi87U8m5K0EvFeAWBLYSA5XoQE4gpcsMB8GmiUdkDsDxJzyWZfDuydaAzTLqiPKJmiwQ/rdkXjPQToC/6LR6zOL8APYxWctORrfhPee30Y2KYDFjSB+gPuba0TjW90CPHuN9zS7+NS73j867ovjd89mvgPOmd0FKXA7o9+rwo3X9jJzBeyAc3fnOLgDtVx9D/9LgdH/bRrU3UHLzkHCMs0ZK07KCyFbrxa+YUGI87GSRwWz+6Xo3g/REuYFwA5HMAAAAABJRU5ErkJggg=="},43214:function(bt){"use strict";bt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAAAXNSR0IArs4c6QAAAmFJREFUSEu1ls1rE0EUwN/smrZ+pLRR8INiD3oq2JRKEfGQzcXi2Y9T48fBP6AgHu3mDygFT0Is2uJFCqJXD2ZyVBQaD4J6MKLFerBpNxAzyX7Im2W2k82mm93YuezOe2/e733MziyBgLH4tqUDIQtBujBZ3QSo1Fyr5dkDxG/fIUCDxXemg8+TB+02+19/lTAe13+qumbEdrKPrySovGhPYE/eA4x6Bj5Zq2q4/hVLLrAW8Pc4QxlwV403WH5muMkzvHN9lD95hivPqzoQ8Hr2cDNJHSc+UAR59WgdxgYsL2abQJYDV9eqRQScHnMrfO/9kQ7g1Akb1jd3eyjP/TpByJ2xaXrU0nZqJhiGCW3A4SRo5yZc4I2Xu0B0divdgqnjFmRXD7mbgQB9k6tr86+HeBDFm3UuXykn4Gk54WX04JICE8cI/NxowI+NRjgQYUuXGx3ObqdbPAgRgGynl4Zo6bvC+x8ZuDTLeGb+yPVMk2bGTU0A0bkMFXI/EBzIez0MKqnIBB2K8uE7llAOolslIgODIhfOZaDooRxUUElDM5S/QXknYuby5sD5+m+1bRf3DYxzAEQu6aOL99s4hS9z8OHPZM/syLu0Z89dDCMD76rPAl0VrDk4r3yEaSjnC3au6zUWGWiPbIE1ssWhicpZkOcoU7dTXIc2qPePWEDhRNlOcaA81J0UP3NRjvpYQDwnr704XCKEZOL2UNw08zMqvXAKtMCz9H9cR2EBdlxPYQv61XPg14pTdAA0o2b262/P9Yw1YXDQph5wX2kAgEDGmPuL8fmbo+830DAMAEWh/wA9Tssi7VG0sQAAAABJRU5ErkJggg=="},54269:function(bt){"use strict";bt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAcZJREFUSEutlb9Lw0AUx9+1SlGLg4WWQlERiosuLnZsiZP+AcVdd93cmmzddBb/gc5Sp0I71qW7BIqVYhGMDq1IKubkHb0QL3dJ+uNNpXn3/Xzvvbt3BCLEtnlfpBCvYCqltAgUDPz9snuihy0nQQlcmInKgoIRBpECQoVFWADIB9gyH5pKx2H1kIBcwOZTXQcCrM5zhwfEAAsV5+4mEIL1dmisOavrwkoK2t8WW55eGsN+YuhKZWJ2iajc9/LHcPNhwrVlBrIxrzsewO1n3ZdHKJSIrKno6jKVh3K/7VuE3zC6PwPmNh23oZo5g6u3OxnAmBpQyxVg5DxDY9RxBRcGwF1dbOR9bqcGoBCGWH/8fy8x/Oce8xCAPcBeeINQkJcIy4Ah9gAbKqs1AhpfHR9YCZA1WeWe72DuJqvcLwQQ5H5mQC13COX+I7ulCBj99tjxFOMoeQA7y1nVRTOUo0I8SXip8ATJAHh6xBOEeewmRx12OGe01ffIIwtPUDV7rkce19MAuDjbhWhJNfyiALzCXFf5JstAp+uvqhK1JuItMSH00XecWJG/dNqaxaanJ5TCoTvwqrDdAICWtCrpuM1cqhyLO/gDpZk8IJ3d/IwAAAAASUVORK5CYII="},71986:function(bt){"use strict";bt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAABRCAYAAACOlsX2AAAAAXNSR0IArs4c6QAAIABJREFUeF7NmwecHlW9979nZp66fbM9vZOOJKH3FgLSNSAB5HJBEEEBr1yKF1CayEUFqVIEFQygEQg1lFAD6QXSk012N5vN9vb0KeflnHl20yEUue+E/ezDPDPnnN+/txUX/s2ZKvEeRtKfL33J7BviS7/5zbzwJfYX1AmMS8QFT6Rr4auA/WaO/G2uIhB14oePpXrI1Lt3D792+eJbOt2/c39x/iNJ2SuQWYTbBGXvtu5dIPviLgLee8P/IOWOD36b+4vzH0xIxM5H9A+UExKcf6jFg285O/K2l/U9B9/2/qTBBghYWO3q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x6ZItdHV5rF0bI96RwjJCzFmxnC3tjQQNqQfQwmaY808Zz8UXHIlnWpSWRbjv76t5vjbI5uo6OvpWICtLIRxFHqo8oYAPW2FiBXQ0YayppnjTOia6kgMrghTn22yubue5t9+eZSTs86r5N4we9hBASml2tq6+pnvzipsaNnaFXnxuGWWlOWzckKC2Nk1Jbh+au+K8/uk75BgR4l6SfnkljNmnkF/992kIK0hZv3z+8tdPeOvTTuaHBmAUFWCFgrjhPGLDB5MYFIWQg0gGKJq/kVC6AzfWTaqpmf+IdDNuRF66ra3r19fcf+2dnzeT9VWs9B4FINP89sSP3lz1UHtd16SVK9vZvDlNLGaQJ4p0cfzZJa9g6Wk8Q89nnHjYQC754dGYwTBVQ/vw3D83MG/hZmQmiekFsHOjLN+cwczvy6rD9sfOyaO0O8E+bz1NjimYNLIUy1FDb8bCwr6hS39298++tfHhXiKsePbm4CdrzP9csyp+3dat6f52xiKfPqRthzmr5hK3u5CeIJxjcPbUcZx07HcIRMKU9S1iyRsp1s0V1CXqWd6xgWGFVSxoa6cqL6BbO6VFebpNU5IfYvnqFFPLv1PXUb7qDoPOx25+7uZvf0B8e9bfdd5/5aza6E5vaU5evk/JyLHddlysaVrOmoZqDAJUlORy/eXHU1FaSCg3gkhFWT3bZM7y1azt3ki/gjJC0RysYIa059LeGaeqJJ94Ii6H9Kv8NNcovk+uKXvqF8un/N/+CcBu5N24Yb8H9pfF6XOW1M+bUtNYP6yoIGRccPphjBrZT7dBcosjtC2PsnRBnNUNDdiik5I+BeREQnpsMZm2VQt7vcR+PRoJPC1mtc2/mZv///ojj90punz2WfN/nntvQHFezmRXpPcdP3bIqIL8whGWF6xc+04oL7kqQ2Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg=="},37166:function(bt){"use strict";bt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAIABJRE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