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/6597.5320aad8.async.js

308 lines
3.4 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.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!(function(){var mS=Object.defineProperty,vS=Object.defineProperties;var yS=Object.getOwnPropertyDescriptors;var hv=Object.getOwnPropertySymbols;var I1=Object.prototype.hasOwnProperty,R1=Object.prototype.propertyIsEnumerable;var o0=Math.pow,N1=(Ne,Q,S)=>Q in Ne?mS(Ne,Q,{enumerable:!0,configurable:!0,writable:!0,value:S}):Ne[Q]=S,eo=(Ne,Q)=>{for(var S in Q||(Q={}))I1.call(Q,S)&&N1(Ne,S,Q[S]);if(hv)for(var S of hv(Q))R1.call(Q,S)&&N1(Ne,S,Q[S]);return Ne},Pf=(Ne,Q)=>vS(Ne,yS(Q));var O1=(Ne,Q)=>{var S={};for(var B in Ne)I1.call(Ne,B)&&Q.indexOf(B)<0&&(S[B]=Ne[B]);if(Ne!=null&&hv)for(var B of hv(Ne))Q.indexOf(B)<0&&R1.call(Ne,B)&&(S[B]=Ne[B]);return S};var s0=(Ne,Q,S)=>new Promise((B,Z)=>{var s=u=>{try{A(S.next(u))}catch(p){Z(p)}},C=u=>{try{A(S.throw(u))}catch(p){Z(p)}},A=u=>u.done?B(u.value):Promise.resolve(u.value).then(s,C);A((S=S.apply(Ne,Q)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[6597],{38470:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return Me}});var B=S(77321),Z=S(72308),s=S(62853),C=S(52487),A=S(74416),u=S(59301),p=S(43403),b=S(65352),g=S(92310),y=S.n(g),v=S(34280),c=S(18929);function h(Oe){return Oe!==null&&(0,s.Z)(Oe)==="object"}function m(Oe,Le,Pe){if(Oe===!1||Le===!1&&(!h(Oe)||!Oe.closeIcon))return null;var De=typeof Le!="boolean"?Le:void 0;if(h(Oe)){var Ke;return(0,B.Z)((0,B.Z)({},Oe),{},{closeIcon:(Ke=Oe.closeIcon)!==null&&Ke!==void 0?Ke:De})}return Pe||Oe||Le?{closeIcon:De}:"empty"}function E(Oe,Le,Pe,De){return u.useMemo(function(){var Ke=m(Oe,Le,!1),ze=m(Pe,De,!0);return Ke!=="empty"?Ke:ze},[Pe,De,Oe,Le])}var T=S(6089);function I(Oe){var Le=window.innerWidth||document.documentElement.clientWidth,Pe=window.innerHeight||document.documentElement.clientHeight,De=Oe.getBoundingClientRect(),Ke=De.top,ze=De.right,it=De.bottom,ot=De.left;return Ke>=0&&ot>=0&&ze<=Le&&it<=Pe}function R(Oe,Le,Pe){var De;return(De=Pe!=null?Pe:Le)!==null&&De!==void 0?De:Oe===null?"center":"bottom"}function N(Oe){return typeof Oe=="number"&&!Number.isNaN(Oe)}function k(Oe,Le,Pe,De){var Ke=(0,u.useState)(void 0),ze=(0,C.Z)(Ke,2),it=ze[0],ot=ze[1];(0,v.Z)(function(){var ne=typeof Oe=="function"?Oe():Oe;ot(ne||null)});var Ge=(0,u.useState)(null),Ee=(0,C.Z)(Ge,2),fe=Ee[0],z=Ee[1],X=(0,T.Z)(function(){if(it){!I(it)&&Le&&it.scrollIntoView(De);var ne=it.getBoundingClientRect(),re=ne.left,he=ne.top,_e=ne.width,Be=ne.height,Ue={left:re,top:he,width:_e,height:Be,radius:0};z(function(rt){return JSON.stringify(rt)!==JSON.stringify(Ue)?Ue:rt})}else z(null)}),de=function(re){var he;return(he=Array.isArray(Pe==null?void 0:Pe.offset)?Pe==null?void 0:Pe.offset[re]:Pe==null?void 0:Pe.offset)!==null&&he!==void 0?he:6};(0,v.Z)(function(){return X(),window.addEventListener("resize",X),function(){window.removeEventListener("resize",X)}},[it,Le,X]);var Ce=(0,u.useMemo)(function(){if(!fe)return fe;var ne=de(0),re=de(1),he=N(Pe==null?void 0:Pe.radius)?Pe==null?void 0:Pe.radius:2;return{left:fe.left-ne,top:fe.top-re,width:fe.width+ne*2,height:fe.height+re*2,radius:he}},[fe,Pe]);return[Ce,it]}var L=S(80402),H={fill:"transparent",pointerEvents:"auto"},D=function(Le){var Pe=Le.prefixCls,De=Le.rootClassName,Ke=Le.pos,ze=Le.showMask,it=Le.style,ot=it===void 0?{}:it,Ge=Le.fill,Ee=Ge===void 0?"rgba(0,0,0,0.5)":Ge,fe=Le.open,z=Le.animated,X=Le.zIndex,de=Le.disabledInteraction,Ce=(0,L.Z)(),ne="".concat(Pe,"-mask-").concat(Ce),re=(0,s.Z)(z)==="object"?z==null?void 0:z.placeholder:z,he=typeof navigator!="undefined"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_e=he?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return u.createElement(p.Z,{open:fe,autoLock:!0},u.createElement("div",{className:y()("".concat(Pe,"-mask"),De),style:(0,B.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:X,pointerEvents:Ke&&!de?"none":"auto"},ot)},ze?u.createElement("svg",{style:{width:"100%",height:"100%"}},u.createElement("defs",null,u.createElement("mask",{id:ne},u.createElement("rect",(0,Z.Z)({x:"0",y:"0"},_e,{fill:"white"})),Ke&&u.createElement("rect",{x:Ke.left,y:Ke.top,rx:Ke.radius,width:Ke.width,height:Ke.height,fill:"black",className:re?"".concat(Pe,"-placeholder-animated"):""}))),u.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:Ee,mask:"url(#".concat(ne,")")}),Ke&&u.createElement(u.Fragment,null,u.createElement("rect",(0,Z.Z)({},H,{x:"0",y:"0",width:"100%",height:Ke.top})),u.createElement("rect",(0,Z.Z)({},H,{x:"0",y:"0",width:Ke.left,height:"100%"})),u.createElement("rect",(0,Z.Z)({},H,{x:"0",y:Ke.top+Ke.height,width:"100%",height:"calc(100vh - ".concat(Ke.top+Ke.height,"px)")})),u.createElement("rect",(0,Z.Z)({},H,{x:Ke.left+Ke.width,y:"0",width:"calc(100vw - ".concat(Ke.left+Ke.width,"px)"),height:"100%"})))):null))},V=D,P={adjustX:1,adjustY:1},U=[0,0],G={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 J(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Le={};return Object.keys(G).forEach(function(Pe){Le[Pe]=(0,B.Z)((0,B.Z)({},G[Pe]),{},{autoArrow:Oe,targetOffset:U})}),Le}var ee=J(),ae=S(80702),oe=S(26112);function ue(Oe){var Le,Pe=Oe.prefixCls,De=Oe.current,Ke=Oe.total,ze=Oe.title,it=Oe.description,ot=Oe.onClose,Ge=Oe.onPrev,Ee=Oe.onNext,fe=Oe.onFinish,z=Oe.className,X=Oe.closable,de=(0,oe.Z)(X||{},!0),Ce=(Le=X==null?void 0:X.closeIcon)!==null&&Le!==void 0?Le:u.createElement("span",{className:"".concat(Pe,"-close-x")},"\xD7"),ne=!!X;return u.createElement("div",{className:y()("".concat(Pe,"-content"),z)},u.createElement("div",{className:"".concat(Pe,"-inner")},ne&&u.createElement("button",(0,Z.Z)({type:"button",onClick:ot,"aria-label":"Close"},de,{className:"".concat(Pe,"-close")}),Ce),u.createElement("div",{className:"".concat(Pe,"-header")},u.createElement("div",{className:"".concat(Pe,"-title")},ze)),u.createElement("div",{className:"".concat(Pe,"-description")},it),u.createElement("div",{className:"".concat(Pe,"-footer")},u.createElement("div",{className:"".concat(Pe,"-sliders")},Ke>1?(0,ae.Z)(Array.from({length:Ke}).keys()).map(function(re,he){return u.createElement("span",{key:re,className:he===De?"active":""})}):null),u.createElement("div",{className:"".concat(Pe,"-buttons")},De!==0?u.createElement("button",{className:"".concat(Pe,"-prev-btn"),onClick:Ge},"Prev"):null,De===Ke-1?u.createElement("button",{className:"".concat(Pe,"-finish-btn"),onClick:fe},"Finish"):u.createElement("button",{className:"".concat(Pe,"-next-btn"),onClick:Ee},"Next")))))}var se=function(Le){var Pe=Le.current,De=Le.renderPanel;return u.createElement(u.Fragment,null,typeof De=="function"?De(Le,Pe):u.createElement(ue,Le))},ye=se,ve=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],Re={left:"50%",top:"50%",width:1,height:1},le={block:"center",inline:"center"},xe=function(Le){var Pe=Le.prefixCls,De=Pe===void 0?"rc-tour":Pe,Ke=Le.steps,ze=Ke===void 0?[]:Ke,it=Le.defaultCurrent,ot=Le.current,Ge=Le.onChange,Ee=Le.onClose,fe=Le.onFinish,z=Le.open,X=Le.mask,de=X===void 0?!0:X,Ce=Le.arrow,ne=Ce===void 0?!0:Ce,re=Le.rootClassName,he=Le.placement,_e=Le.renderPanel,Be=Le.gap,Ue=Le.animated,rt=Le.scrollIntoViewOptions,et=rt===void 0?le:rt,dt=Le.zIndex,Ot=dt===void 0?1001:dt,pt=Le.closeIcon,nt=Le.closable,ut=Le.builtinPlacements,Tt=Le.disabledInteraction,vt=(0,A.Z)(Le,ve),Ct=u.useRef(),Ft=(0,c.Z)(0,{value:ot,defaultValue:it}),Rt=(0,C.Z)(Ft,2),$e=Rt[0],Zt=Rt[1],vn=(0,c.Z)(void 0,{value:z,postState:function(At){return $e<0||$e>=ze.length?!1:At!=null?At:!0}}),wt=(0,C.Z)(vn,2),Dn=wt[0],nr=wt[1],Qn=u.useState(Dn),jt=(0,C.Z)(Qn,2),br=jt[0],dr=jt[1],zn=u.useRef(Dn);(0,v.Z)(function(){Dn&&(zn.current||Zt(0),dr(!0)),zn.current=Dn},[Dn]);var $n=ze[$e]||{},Er=$n.target,me=$n.placement,jn=$n.style,Cn=$n.arrow,qn=$n.className,Ir=$n.mask,Vr=$n.scrollIntoViewOptions,fr=Vr===void 0?le:Vr,oo=$n.closeIcon,Zr=$n.closable,Qr=E(Zr,oo,nt,pt),Kn=Dn&&(Ir!=null?Ir:de),Mn=fr!=null?fr:et,ai=k(Er,z,Be,Mn),Nr=(0,C.Z)(ai,2),zr=Nr[0],pn=Nr[1],Vn=R(pn,he,me),Mt=pn?typeof Cn=="undefined"?ne:Cn:!1,It=(0,s.Z)(Mt)==="object"?Mt.pointAtCenter:!1;(0,v.Z)(function(){var Hn;(Hn=Ct.current)===null||Hn===void 0||Hn.forceAlign()},[It,$e]);var On=function(At){Zt(At),Ge==null||Ge(At)},ft=(0,u.useMemo)(function(){return ut?typeof ut=="function"?ut({arrowPointAtCenter:It}):ut:J(It)},[ut,It]);if(pn===void 0||!br)return null;var en=function(){nr(!1),Ee==null||Ee($e)},An=function(){return u.createElement(ye,(0,Z.Z)({arrow:Mt,key:"content",prefixCls:De,total:ze.length,renderPanel:_e,onPrev:function(){On($e-1)},onNext:function(){On($e+1)},onClose:en,current:$e,onFinish:function(){en(),fe==null||fe()}},ze[$e],{closable:Qr}))},Un=typeof Kn=="boolean"?Kn:!!Kn,gt=typeof Kn=="boolean"?void 0:Kn,gn=function(At){return At||pn||document.body};return u.createElement(u.Fragment,null,u.createElement(V,{zIndex:Ot,prefixCls:De,pos:zr,showMask:Un,style:gt==null?void 0:gt.style,fill:gt==null?void 0:gt.color,open:Dn,animated:Ue,rootClassName:re,disabledInteraction:Tt}),u.createElement(b.Z,(0,Z.Z)({},vt,{builtinPlacements:ft,ref:Ct,popupStyle:jn,popupPlacement:Vn,popupVisible:Dn,popupClassName:y()(re,qn),prefixCls:De,popup:An,forceRender:!1,destroyPopupOnHide:!0,zIndex:Ot,getTriggerDOMNode:gn,arrow:!!Mt}),u.createElement(p.Z,{open:Dn,autoLock:!0},u.createElement("div",{className:y()(re,"".concat(De,"-target-placeholder")),style:(0,B.Z)((0,B.Z)({},zr||Re),{},{position:"fixed",pointerEvents:"none"})}))))},pe=xe,Me=pe},37036:function(){"use strict"},95625:function(){"use strict"},47257:function(Ne){(function(Q){(function(S){if(1)Ne.exports=S();else var B})(function(){var S,B,Z;return function(){function s(C,A,u){function p(y,v){if(!A[y]){if(!C[y]){var c=void 0;if(!v&&c)return require(y,!0);if(b)return b(y,!0);var h=new Error("Cannot find module '"+y+"'");throw h.code="MODULE_NOT_FOUND",h}var m=A[y]={exports:{}};C[y][0].call(m.exports,function(E){var T=C[y][1][E];return p(T||E)},m,m.exports,s,C,A,u)}return A[y].exports}for(var b=void 0,g=0;g<u.length;g++)p(u[g]);return p}return s}()({1:[function(s,C,A){"use strict";var u=s("./browser/client");u.Buffer=s("buffer").Buffer,u.urllib=s("../shims/xhr"),u.version=s("./browser/version").version,C.exports=u},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),b=u(s("@babel/runtime/helpers/asyncToGenerator"));s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.slice.js");var g=s("assert"),y=s("../common/utils/checkBucketName"),v=y.checkBucketName,c=A;function h(E){return Array.isArray?Array.isArray(E):Object.prototype.toString.call(E)==="[object Array]"}function m(E){return E?h(E)?E:[E]:[]}c.useBucket=function(T){return v(T),this.options.bucket=T,this},c.setBucket=function(T){return v(T),this.options.bucket=T,this},c.getBucket=function(){return this.options.bucket},c.deleteBucket=function(){var E=(0,b.default)(p.default.mark(function I(R,N){var k,L;return p.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return k=this._bucketRequestParams("DELETE",R,"",N),D.next=3,this.request(k);case 3:if(L=D.sent,!(L.status===200||L.status===204)){D.next=6;break}return D.abrupt("return",{res:L.res});case 6:return D.next=8,this.requestError(L);case 8:throw D.sent;case 9:case"end":return D.stop()}},I,this)}));function T(I,R){return E.apply(this,arguments)}return T}(),c.putBucketACL=function(){var E=(0,b.default)(p.default.mark(function I(R,N,k){var L,H;return p.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return L=this._bucketRequestParams("PUT",R,"acl",k),L.headers={"x-oss-acl":N},L.successStatuses=[200],V.next=5,this.request(L);case 5:return H=V.sent,V.abrupt("return",{bucket:H.headers.location&&H.headers.location.substring(1)||null,res:H.res});case 7:case"end":return V.stop()}},I,this)}));function T(I,R,N){return E.apply(this,arguments)}return T}(),c.getBucketACL=function(){var E=(0,b.default)(p.default.mark(function I(R,N){var k,L;return p.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return k=this._bucketRequestParams("GET",R,"acl",N),k.successStatuses=[200],k.xmlResponse=!0,D.next=5,this.request(k);case 5:return L=D.sent,D.abrupt("return",{acl:L.data.AccessControlList.Grant,owner:{id:L.data.Owner.ID,displayName:L.data.Owner.DisplayName},res:L.res});case 7:case"end":return D.stop()}},I,this)}));function T(I,R){return E.apply(this,arguments)}return T}(),c.putBucketLogging=function(){var E=(0,b.default)(p.default.mark(function I(R,N,k){var L,H,D;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return L=this._bucketRequestParams("PUT",R,"logging",k),H=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(R,`</TargetBucket>
`),N&&(H+="<TargetPrefix>".concat(N,`</TargetPrefix>
`)),H+=`</LoggingEnabled>
</BucketLoggingStatus>`,L.content=H,L.mime="xml",L.successStatuses=[200],P.next=9,this.request(L);case 9:return D=P.sent,P.abrupt("return",{res:D.res});case 11:case"end":return P.stop()}},I,this)}));function T(I,R,N){return E.apply(this,arguments)}return T}(),c.getBucketLogging=function(){var E=(0,b.default)(p.default.mark(function I(R,N){var k,L,H;return p.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return k=this._bucketRequestParams("GET",R,"logging",N),k.successStatuses=[200],k.xmlResponse=!0,V.next=5,this.request(k);case 5:return L=V.sent,H=L.data.LoggingEnabled,V.abrupt("return",{enable:!!H,prefix:H&&H.TargetPrefix||null,res:L.res});case 8:case"end":return V.stop()}},I,this)}));function T(I,R){return E.apply(this,arguments)}return T}(),c.deleteBucketLogging=function(){var E=(0,b.default)(p.default.mark(function I(R,N){var k,L;return p.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return k=this._bucketRequestParams("DELETE",R,"logging",N),k.successStatuses=[204,200],D.next=4,this.request(k);case 4:return L=D.sent,D.abrupt("return",{res:L.res});case 6:case"end":return D.stop()}},I,this)}));function T(I,R){return E.apply(this,arguments)}return T}(),c.putBucketCORS=function(){var E=(0,b.default)(p.default.mark(function I(R,N,k){var L,H,D,V,P,U,G,J,ee,ae;return p.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:for(N=N||[],g(N.length,"rules is required"),N.forEach(function(se){g(se.allowedOrigin,"allowedOrigin is required"),g(se.allowedMethod,"allowedMethod is required")}),L=this._bucketRequestParams("PUT",R,"cors",k),H=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,D=function(ye){H+="<AllowedOrigin>".concat(ye,"</AllowedOrigin>")},V=function(ye){H+="<AllowedMethod>".concat(ye,"</AllowedMethod>")},P=function(ye){H+="<AllowedHeader>".concat(ye,"</AllowedHeader>")},U=function(ye){H+="<ExposeHeader>".concat(ye,"</ExposeHeader>")},G=0,J=N.length;G<J;G++)ee=N[G],H+="<CORSRule>",m(ee.allowedOrigin).forEach(D),m(ee.allowedMethod).forEach(V),m(ee.allowedHeader).forEach(P),m(ee.exposeHeader).forEach(U),ee.maxAgeSeconds&&(H+="<MaxAgeSeconds>".concat(ee.maxAgeSeconds,"</MaxAgeSeconds>")),H+="</CORSRule>";return H+="</CORSConfiguration>",L.content=H,L.mime="xml",L.successStatuses=[200],ue.next=16,this.request(L);case 16:return ae=ue.sent,ue.abrupt("return",{res:ae.res});case 18:case"end":return ue.stop()}},I,this)}));function T(I,R,N){return E.apply(this,arguments)}return T}(),c.getBucketCORS=function(){var E=(0,b.default)(p.default.mark(function I(R,N){var k,L,H,D;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return k=this._bucketRequestParams("GET",R,"cors",N),k.successStatuses=[200],k.xmlResponse=!0,P.next=5,this.request(k);case 5:return L=P.sent,H=[],L.data&&L.data.CORSRule&&(D=L.data.CORSRule,h(D)||(D=[D]),D.forEach(function(U){var G={};Object.keys(U).forEach(function(J){G[J.slice(0,1).toLowerCase()+J.slice(1,J.length)]=U[J]}),H.push(G)})),P.abrupt("return",{rules:H,res:L.res});case 9:case"end":return P.stop()}},I,this)}));function T(I,R){return E.apply(this,arguments)}return T}(),c.deleteBucketCORS=function(){var E=(0,b.default)(p.default.mark(function I(R,N){var k,L;return p.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return k=this._bucketRequestParams("DELETE",R,"cors",N),k.successStatuses=[204],D.next=4,this.request(k);case 4:return L=D.sent,D.abrupt("return",{res:L.res});case 6:case"end":return D.stop()}},I,this)}));function T(I,R){return E.apply(this,arguments)}return T}(),c.putBucketReferer=function(){var E=(0,b.default)(p.default.mark(function I(R,N,k,L){var H,D,V,P;return p.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(H=this._bucketRequestParams("PUT",R,"referer",L),D=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,D+=" <AllowEmptyReferer>".concat(N?"true":"false",`</AllowEmptyReferer>
`),k&&k.length>0){for(D+=` <RefererList>
`,V=0;V<k.length;V++)D+=" <Referer>".concat(k[V],`</Referer>
`);D+=` </RefererList>
`}else D+=` <RefererList />
`;return D+="</RefererConfiguration>",H.content=D,H.mime="xml",H.successStatuses=[200],G.next=10,this.request(H);case 10:return P=G.sent,G.abrupt("return",{res:P.res});case 12:case"end":return G.stop()}},I,this)}));function T(I,R,N,k){return E.apply(this,arguments)}return T}(),c.getBucketReferer=function(){var E=(0,b.default)(p.default.mark(function I(R,N){var k,L,H;return p.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return k=this._bucketRequestParams("GET",R,"referer",N),k.successStatuses=[200],k.xmlResponse=!0,V.next=5,this.request(k);case 5:return L=V.sent,H=L.data.RefererList.Referer||null,H&&(h(H)||(H=[H])),V.abrupt("return",{allowEmpty:L.data.AllowEmptyReferer==="true",referers:H,res:L.res});case 9:case"end":return V.stop()}},I,this)}));function T(I,R){return E.apply(this,arguments)}return T}(),c.deleteBucketReferer=function(){var E=(0,b.default)(p.default.mark(function I(R,N){return p.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.putBucketReferer(R,!0,null,N);case 2:return L.abrupt("return",L.sent);case 3:case"end":return L.stop()}},I,this)}));function T(I,R){return E.apply(this,arguments)}return T}(),c._bucketRequestParams=function(T,I,R,N){return{method:T,bucket:I,subres:R,timeout:N&&N.timeout,ctx:N&&N.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(s,C,A){(function(u,p){(function(){"use strict";var b=s("@babel/runtime/helpers/interopRequireDefault"),g=b(s("@babel/runtime/regenerator")),y=b(s("@babel/runtime/helpers/asyncToGenerator"));s("core-js/modules/es.function.name.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.split.js"),s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.array.includes.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.symbol.js"),s("core-js/modules/es.symbol.description.js"),s("core-js/modules/es.array.slice.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.regexp.to-string.js");var v=s("debug")("ali-oss"),c=s("xml2js"),h=s("agentkeepalive"),m=s("merge-descriptors"),E=s("platform"),T=s("utility"),I=s("urllib"),R=s("./version"),N=s("bowser"),k=s("../common/signUtils"),L=s("../common/client/initOptions"),H=s("../common/utils/createRequest"),D=H.createRequest,V=s("../common/utils/encoder"),P=V.encoder,U=s("../common/client/getReqUrl"),G=U.getReqUrl,J=s("../common/utils/setSTSToken"),ee=J.setSTSToken,ae=s("../common/utils/retry"),oe=ae.retry,ue=s("../common/utils/isFunction"),se=ue.isFunction,ye=new h;function ve(){var Oe=E.name,Le=E.version;Oe&&Oe.toLowerCase&&Oe.toLowerCase()==="ie"&&Le.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function Re(){return location&&location.protocol==="https:"}function le(Oe,Le){if(ve(),!(this instanceof le))return new le(Oe,Le);Oe&&Oe.inited?this.options=Oe:this.options=le.initOptions(Oe),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=I,this.agent=this.options.agent||ye),this.ctx=Le,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}C.exports=le,le.initOptions=function(Le){Le.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var Pe=Object.assign({secure:Re(),useFetch:!1},Le);return L(Pe)};var xe=le.prototype;xe.debug=v,m(xe,s("./object")),m(xe,s("./bucket")),m(xe,s("../common/bucket/getBucketWebsite")),m(xe,s("../common/bucket/putBucketWebsite")),m(xe,s("../common/bucket/deleteBucketWebsite")),m(xe,s("../common/bucket/getBucketLifecycle")),m(xe,s("../common/bucket/putBucketLifecycle")),m(xe,s("../common/bucket/deleteBucketLifecycle")),m(xe,s("../common/bucket/putBucketVersioning")),m(xe,s("../common/bucket/getBucketVersioning")),m(xe,s("../common/bucket/getBucketInventory")),m(xe,s("../common/bucket/deleteBucketInventory")),m(xe,s("../common/bucket/listBucketInventory")),m(xe,s("../common/bucket/putBucketInventory")),m(xe,s("../common/bucket/abortBucketWorm")),m(xe,s("../common/bucket/completeBucketWorm")),m(xe,s("../common/bucket/extendBucketWorm")),m(xe,s("../common/bucket/getBucketWorm")),m(xe,s("../common/bucket/initiateBucketWorm")),m(xe,s("./managed-upload")),m(xe,s("../common/multipart-copy")),m(xe,s("../common/multipart")),m(xe,s("../common/parallel")),xe.signature=function(Le){return this.debug("authorization stringToSign: %s",Le,"info"),k.computeSignature(this.options.accessKeySecret,Le,this.options.headerEncoding)},xe._getReqUrl=G,xe.authorization=function(Le,Pe,De,Ke){var ze=k.buildCanonicalString(Le.toUpperCase(),Pe,{headers:Ke,parameters:De});return k.authorization(this.options.accessKeyId,this.options.accessKeySecret,ze,this.options.headerEncoding)},xe.request=function(){var Oe=(0,y.default)(g.default.mark(function Le(Pe){var De=this;return g.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(!this.options.retryMax){ze.next=6;break}return ze.next=3,oe(pe.bind(this),this.options.retryMax,{errorHandler:function(ot){var Ge=function(fe){if(Pe.stream)return!1;var z=[-1,-2].includes(fe.status),X=De.options.requestErrorRetryHandle||function(){return!0};return z&&X(fe)};return!!Ge(ot)}})(Pe);case 3:return ze.abrupt("return",ze.sent);case 6:return ze.abrupt("return",pe.call(this,Pe));case 7:case"end":return ze.stop()}},Le,this)}));return function(Le){return Oe.apply(this,arguments)}}();function pe(Oe){return Me.apply(this,arguments)}function Me(){return Me=(0,y.default)(g.default.mark(function Oe(Le){var Pe,De,Ke,ze,it,ot;return g.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(!(this.options.stsToken&&se(this.options.refreshSTSToken))){Ee.next=3;break}return Ee.next=3,ee.call(this);case 3:return Pe=D.call(this,Le),this.options.useFetch||(Pe.params.mode="disable-fetch"),ze=!!Le.stream,Ee.prev=6,Ee.next=9,this.urllib.request(Pe.url,Pe.params);case 9:De=Ee.sent,this.debug("response %s %s, got %s, headers: %j",Le.method,Pe.url,De.status,De.headers,"info"),Ee.next=16;break;case 13:Ee.prev=13,Ee.t0=Ee.catch(6),Ke=Ee.t0;case 16:if(!(De&&Le.successStatuses&&Le.successStatuses.indexOf(De.status)===-1)){Ee.next=28;break}return Ee.next=19,this.requestError(De);case 19:if(it=Ee.sent,!(it.code==="RequestTimeTooSkewed"&&!ze)){Ee.next=25;break}return this.options.amendTimeSkewed=+new Date(it.serverTime)-new Date,Ee.next=24,this.request(Le);case 24:return Ee.abrupt("return",Ee.sent);case 25:it.params=Le,Ee.next=32;break;case 28:if(!Ke){Ee.next=32;break}return Ee.next=31,this.requestError(Ke);case 31:it=Ee.sent;case 32:if(!it){Ee.next=34;break}throw it;case 34:if(!Le.xmlResponse){Ee.next=39;break}return Ee.next=37,this.parseXML(De.data);case 37:ot=Ee.sent,De.data=ot;case 39:return Ee.abrupt("return",De);case 40:case"end":return Ee.stop()}},Oe,this,[[6,13]])})),Me.apply(this,arguments)}xe._getResource=function(Le){var Pe="/";return Le.bucket&&(Pe+="".concat(Le.bucket,"/")),Le.object&&(Pe+=P(Le.object,this.options.headerEncoding)),Pe},xe._escape=function(Le){return T.encodeURIComponent(Le).replace(/%2F/g,"/")},xe._getUserAgent=function(){var Le=p&&p.browser?"js":"nodejs",Pe="aliyun-sdk-".concat(Le,"/").concat(R.version),De=E.description;return!De&&p&&(De="Node.js ".concat(p.version.slice(1)," on ").concat(p.platform," ").concat(p.arch)),this._checkUserAgent("".concat(Pe," ").concat(De))},xe._checkUserAgent=function(Le){var Pe=Le.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return Pe},xe.checkBrowserAndVersion=function(Le,Pe){return N.name===Le&&N.version.split(".")[0]===Pe},xe.parseXML=function(Le){return new Promise(function(Pe,De){u.isBuffer(Le)&&(Le=Le.toString()),c.parseString(Le,{explicitRoot:!1,explicitArray:!1},function(Ke,ze){Ke?De(Ke):Pe(ze)})})},xe.requestError=function(){var Oe=(0,y.default)(g.default.mark(function Pe(De){var Ke,ze,it,ot;return g.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(Ke=null,!(!De.data||!De.data.length)){Ee.next=5;break}De.status===-1||De.status===-2?(Ke=new Error(De.message),Ke.name=De.name,Ke.status=De.status,Ke.code=De.name):(De.status===404?(Ke=new Error("Object not exists"),Ke.name="NoSuchKeyError",Ke.status=404,Ke.code="NoSuchKey"):De.status===412?(Ke=new Error("Pre condition failed"),Ke.name="PreconditionFailedError",Ke.status=412,Ke.code="PreconditionFailed"):(Ke=new Error("Unknow error, status: ".concat(De.status)),Ke.name="UnknownError",Ke.status=De.status),Ke.requestId=De.headers["x-oss-request-id"],Ke.host=""),Ee.next=32;break;case 5:return ze=String(De.data),this.debug("request response error data: %s",ze,"error"),Ee.prev=7,Ee.next=10,this.parseXML(ze);case 10:if(Ee.t0=Ee.sent,Ee.t0){Ee.next=13;break}Ee.t0={};case 13:it=Ee.t0,Ee.next=23;break;case 16:return Ee.prev=16,Ee.t1=Ee.catch(7),this.debug(ze,"error"),Ee.t1.message+=`
raw xml: `.concat(ze),Ee.t1.status=De.status,Ee.t1.requestId=De.headers["x-oss-request-id"],Ee.abrupt("return",Ee.t1);case 23:ot=it.Message||"unknow request error, status: ".concat(De.status),it.Condition&&(ot+=" (condition: ".concat(it.Condition,")")),Ke=new Error(ot),Ke.name=it.Code?"".concat(it.Code,"Error"):"UnknownError",Ke.status=De.status,Ke.code=it.Code,Ke.requestId=it.RequestId,Ke.hostId=it.HostId,Ke.serverTime=it.ServerTime;case 32:return this.debug("generate error %j",Ke,"error"),Ee.abrupt("return",Ke);case 34:case"end":return Ee.stop()}},Pe,this,[[7,16]])}));function Le(Pe){return Oe.apply(this,arguments)}return Le}()}).call(this)}).call(this,{isBuffer:s("../../node_modules/is-buffer/index.js")},s("_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(s,C,A){(function(u){(function(){"use strict";var p=s("@babel/runtime/helpers/interopRequireDefault"),b=p(s("@babel/runtime/regenerator"));s("core-js/modules/es.function.name.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.array.from.js"),s("core-js/modules/es.string.iterator.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.array.filter.js"),s("core-js/modules/es.array.find.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.regexp.to-string.js"),s("core-js/modules/es.array.slice.js"),s("core-js/modules/es.array.iterator.js"),s("core-js/modules/es.array-buffer.slice.js"),s("core-js/modules/es.typed-array.uint8-array.js"),s("core-js/modules/es.typed-array.copy-within.js"),s("core-js/modules/es.typed-array.every.js"),s("core-js/modules/es.typed-array.fill.js"),s("core-js/modules/es.typed-array.filter.js"),s("core-js/modules/es.typed-array.find.js"),s("core-js/modules/es.typed-array.find-index.js"),s("core-js/modules/es.typed-array.for-each.js"),s("core-js/modules/es.typed-array.includes.js"),s("core-js/modules/es.typed-array.index-of.js"),s("core-js/modules/es.typed-array.iterator.js"),s("core-js/modules/es.typed-array.join.js"),s("core-js/modules/es.typed-array.last-index-of.js"),s("core-js/modules/es.typed-array.map.js"),s("core-js/modules/es.typed-array.reduce.js"),s("core-js/modules/es.typed-array.reduce-right.js"),s("core-js/modules/es.typed-array.reverse.js"),s("core-js/modules/es.typed-array.set.js"),s("core-js/modules/es.typed-array.slice.js"),s("core-js/modules/es.typed-array.some.js"),s("core-js/modules/es.typed-array.sort.js"),s("core-js/modules/es.typed-array.subarray.js"),s("core-js/modules/es.typed-array.to-locale-string.js"),s("core-js/modules/es.typed-array.to-string.js");var g=p(s("@babel/runtime/helpers/asyncToGenerator")),y=s("util"),v=s("path"),c=s("mime"),h=s("copy-to"),m=s("../common/utils/isBlob"),E=m.isBlob,T=s("../common/utils/isFile"),I=T.isFile,R=s("../common/utils/isBuffer"),N=R.isBuffer,k=A;k.multipartUpload=function(){var P=(0,g.default)(b.default.mark(function G(J,ee){var ae,oe,ue,se,ye,ve,Re,le,xe,pe=arguments;return b.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(ae=pe.length>2&&pe[2]!==void 0?pe[2]:{},this.resetCancelFlag(),ae.disabledMD5=ae.disabledMD5===void 0?!0:!!ae.disabledMD5,!(ae.checkpoint&&ae.checkpoint.uploadId)){Oe.next=8;break}return ee&&I(ee)&&(ae.checkpoint.file=ee),Oe.next=7,this._resumeMultipart(ae.checkpoint,ae);case 7:return Oe.abrupt("return",Oe.sent);case 8:return oe=102400,ae.mime||(I(ee)?ae.mime=c.getType(v.extname(ee.name)):E(ee)?ae.mime=ee.type:N(ee)?ae.mime="":ae.mime=c.getType(v.extname(ee))),ae.headers=ae.headers||{},this._convertMetaToHeaders(ae.meta,ae.headers),Oe.next=14,this._getFileSize(ee);case 14:if(ue=Oe.sent,!(ue<oe)){Oe.next=26;break}return ae.contentLength=ue,Oe.next=19,this.put(J,ee,ae);case 19:if(se=Oe.sent,!(ae&&ae.progress)){Oe.next=23;break}return Oe.next=23,ae.progress(1);case 23:return ye={res:se.res,bucket:this.options.bucket,name:J,etag:se.res.headers.etag},(ae.headers&&ae.headers["x-oss-callback"]||ae.callback)&&(ye.data=se.data),Oe.abrupt("return",ye);case 26:if(!(ae.partSize&&parseInt(ae.partSize,10)!==ae.partSize)){Oe.next=28;break}throw new Error("partSize must be int number");case 28:if(!(ae.partSize&&ae.partSize<oe)){Oe.next=30;break}throw new Error("partSize must not be smaller than ".concat(oe));case 30:return Oe.next=32,this.initMultipartUpload(J,ae);case 32:if(ve=Oe.sent,Re=ve.uploadId,le=this._getPartSize(ue,ae.partSize),xe={file:ee,name:J,fileSize:ue,partSize:le,uploadId:Re,doneParts:[]},!(ae&&ae.progress)){Oe.next=39;break}return Oe.next=39,ae.progress(0,xe,ve.res);case 39:return Oe.next=41,this._resumeMultipart(xe,ae);case 41:return Oe.abrupt("return",Oe.sent);case 42:case"end":return Oe.stop()}},G,this)}));function U(G,J){return P.apply(this,arguments)}return U}(),k._resumeMultipart=function(){var P=(0,g.default)(b.default.mark(function G(J,ee){var ae,oe,ue,se,ye,ve,Re,le,xe,pe,Me,Oe,Le,Pe,De,Ke,ze,it,ot;return b.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(ae=this,!this.isCancel()){Ee.next=3;break}throw this._makeCancelEvent();case 3:return oe=J.file,ue=J.fileSize,se=J.partSize,ye=J.uploadId,ve=J.doneParts,Re=J.name,le=[],ve.length>0&&h(ve).to(le),xe=this._divideParts(ue,se),pe=xe.length,Me=!1,Oe=function(z,X){return new Promise(function(){var de=(0,g.default)(b.default.mark(function Ce(ne,re){var he,_e,Be,Ue,rt;return b.default.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(dt.prev=0,z.isCancel()){dt.next=29;break}return he=xe[X-1],dt.next=5,z._createBuffer(oe,he.start,he.end);case 5:return _e=dt.sent,Be={content:_e,size:he.end-he.start},dt.prev=7,dt.next=10,z._uploadPart(Re,ye,X,Be,ee);case 10:Ue=dt.sent,dt.next=18;break;case 13:if(dt.prev=13,dt.t0=dt.catch(7),dt.t0.status!==404){dt.next=17;break}throw z._makeAbortEvent();case 17:throw dt.t0;case 18:if(!(!z.isCancel()&&!Me)){dt.next=26;break}if(J.doneParts.push({number:X,etag:Ue.res.headers.etag}),!ee.progress){dt.next=23;break}return dt.next=23,ee.progress(ve.length/(pe+1),J,Ue.res);case 23:ne({number:X,etag:Ue.res.headers.etag}),dt.next=27;break;case 26:ne();case 27:dt.next=30;break;case 29:ne();case 30:dt.next=41;break;case 32:dt.prev=32,dt.t1=dt.catch(0),rt=new Error,rt.name=dt.t1.name,rt.message=dt.t1.message,rt.stack=dt.t1.stack,rt.partNum=X,h(dt.t1).to(rt),re(rt);case 41:case"end":return dt.stop()}},Ce,null,[[0,32],[7,13]])}));return function(Ce,ne){return de.apply(this,arguments)}}())},Le=Array.from(new Array(pe),function(fe,z){return z+1}),Pe=le.map(function(fe){return fe.number}),De=Le.filter(function(fe){return Pe.indexOf(fe)<0}),Ke=5,ze=ee.parallel||Ke,Ee.next=17,this._parallel(De,ze,function(fe){return new Promise(function(z,X){Oe(ae,fe).then(function(de){de&&le.push(de),z()}).catch(function(de){X(de)})})});case 17:if(it=Ee.sent,Me=!0,ot=it.find(function(fe){return fe.name==="abort"}),!ot){Ee.next=22;break}throw ot;case 22:if(!this.isCancel()){Ee.next=25;break}throw Oe=null,this._makeCancelEvent();case 25:if(!(it&&it.length>0)){Ee.next=28;break}throw it[0].message="Failed to upload some parts with error: ".concat(it[0].toString()," part_num: ").concat(it[0].partNum),it[0];case 28:return Ee.next=30,this.completeMultipartUpload(Re,ye,le,ee);case 30:return Ee.abrupt("return",Ee.sent);case 31:case"end":return Ee.stop()}},G,this)}));function U(G,J){return P.apply(this,arguments)}return U}(),k._getFileSize=function(){var P=(0,g.default)(b.default.mark(function G(J){return b.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(!N(J)){ae.next=4;break}return ae.abrupt("return",J.length);case 4:if(!(E(J)||I(J))){ae.next=6;break}return ae.abrupt("return",J.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return ae.stop()}},G)}));function U(G){return P.apply(this,arguments)}return U}();var L=s("stream"),H=L.Readable;function D(P,U){if(!(this instanceof D))return new D(P,U);H.call(this,U),this.file=P,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}y.inherits(D,H),D.prototype.readFileAndPush=function(U){if(this.fileBuffer)for(var G=!0;G&&this.fileBuffer&&this.start<this.fileBuffer.length;){var J=this.start,ee=J+U;ee=ee>this.fileBuffer.length?this.fileBuffer.length:ee,this.start=ee,G=this.push(this.fileBuffer.slice(J,ee))}},D.prototype._read=function(U){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 G=16*1024;U=U||G;var J=this;this.reader.onload=function(ae){J.fileBuffer=u.from(new Uint8Array(ae.target.result)),J.file=null,J.readFileAndPush(U)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(U)};function V(P){return P.arrayBuffer?P.arrayBuffer():new Promise(function(U,G){var J=new FileReader;J.onload=function(ee){U(ee.target.result)},J.onerror=function(ee){G(ee)},J.readAsArrayBuffer(P)})}k._createBuffer=function(){var P=(0,g.default)(b.default.mark(function G(J,ee,ae){var oe,ue;return b.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(!(E(J)||I(J))){ye.next=8;break}return oe=J.slice(ee,ae),ye.next=4,V(oe);case 4:return ue=ye.sent,ye.abrupt("return",u.from(ue));case 8:if(!N(J)){ye.next=12;break}return ye.abrupt("return",J.subarray(ee,ae));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return ye.stop()}},G)}));function U(G,J,ee){return P.apply(this,arguments)}return U}(),k._getPartSize=function(U,G){var J=1e4,ee=1*1024*1024;G||(G=ee);var ae=Math.ceil(U/J);return G<ae&&(G=ae,console.warn("partSize has been set to ".concat(G,", because the partSize you provided causes partNumber to be greater than 10,000"))),G},k._divideParts=function(U,G){for(var J=Math.ceil(U/G),ee=[],ae=0;ae<J;ae++){var oe=G*ae,ue=Math.min(oe+G,U);ee.push({start:oe,end:ue})}return ee}}).call(this)}).call(this,s("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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault");s("core-js/modules/es.function.name.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.regexp.to-string.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.number.constructor.js"),s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.promise.js");var p=u(s("@babel/runtime/regenerator")),b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("fs"),y=s("copy-to"),v=s("path"),c=s("mime"),h=s("../common/callback"),m=s("merge-descriptors"),E=s("../common/utils/isBlob"),T=E.isBlob,I=s("../common/utils/isFile"),R=I.isFile,N=s("../common/utils/isBuffer"),k=N.isBuffer,L=s("../common/utils/obj2xml"),H=L.obj2xml,D=A;D.append=function(){var V=(0,b.default)(p.default.mark(function U(G,J,ee){var ae;return p.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ee=ee||{},ee.position===void 0&&(ee.position="0"),ee.subres={append:"",position:ee.position},ee.method="POST",ue.next=6,this.put(G,J,ee);case 6:return ae=ue.sent,ae.nextAppendPosition=ae.res.headers["x-oss-next-append-position"],ue.abrupt("return",ae);case 9:case"end":return ue.stop()}},U,this)}));function P(U,G,J){return V.apply(this,arguments)}return P}(),D.put=function(){var V=(0,b.default)(p.default.mark(function U(G,J,ee){var ae,oe,ue,se,ye;return p.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(ee=ee||{},ee.disabledMD5=ee.disabledMD5===void 0?!0:!!ee.disabledMD5,ee.headers=ee.headers||{},G=this._objectName(G),!k(J)){Re.next=8;break}ae=J,Re.next=19;break;case 8:if(!(T(J)||R(J))){Re.next=18;break}return ee.mime||(R(J)?ee.mime=c.getType(v.extname(J.name)):ee.mime=J.type),Re.next=12,this._createBuffer(J,0,J.size);case 12:return ae=Re.sent,Re.next=15,this._getFileSize(J);case 15:ee.contentLength=Re.sent,Re.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(ee.meta,ee.headers),oe=ee.method||"PUT",ue=this._objectRequestParams(oe,G,ee),h.encodeCallback(ue,ee),ue.mime=ee.mime,ue.disabledMD5=ee.disabledMD5,ue.content=ae,ue.successStatuses=[200],Re.next=29,this.request(ue);case 29:return se=Re.sent,ye={name:G,url:this._objectUrl(G),res:se.res},ue.headers&&ue.headers["x-oss-callback"]&&(ye.data=JSON.parse(se.data.toString())),Re.abrupt("return",ye);case 33:case"end":return Re.stop()}},U,this)}));function P(U,G,J){return V.apply(this,arguments)}return P}(),D.putStream=function(){var V=(0,b.default)(p.default.mark(function U(G,J,ee){var ae,oe,ue,se;return p.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ee=ee||{},ee.headers=ee.headers||{},G=this._objectName(G),ee.contentLength?ee.headers["Content-Length"]=ee.contentLength:ee.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(ee.meta,ee.headers),ae=ee.method||"PUT",oe=this._objectRequestParams(ae,G,ee),h.encodeCallback(oe,ee),oe.mime=ee.mime,oe.stream=J,oe.successStatuses=[200],ve.next=13,this.request(oe);case 13:return ue=ve.sent,se={name:G,url:this._objectUrl(G),res:ue.res},oe.headers&&oe.headers["x-oss-callback"]&&(se.data=JSON.parse(ue.data.toString())),ve.abrupt("return",se);case 17:case"end":return ve.stop()}},U,this)}));function P(U,G,J){return V.apply(this,arguments)}return P}(),m(D,s("../common/object/copyObject")),m(D,s("../common/object/getObjectTagging")),m(D,s("../common/object/putObjectTagging")),m(D,s("../common/object/deleteObjectTagging")),m(D,s("../common/image")),m(D,s("../common/object/getBucketVersions")),m(D,s("../common/object/getACL")),m(D,s("../common/object/putACL")),m(D,s("../common/object/head")),m(D,s("../common/object/delete")),m(D,s("../common/object/get")),m(D,s("../common/object/putSymlink")),m(D,s("../common/object/getSymlink")),m(D,s("../common/object/deleteMulti")),m(D,s("../common/object/getObjectMeta")),m(D,s("../common/object/getObjectUrl")),m(D,s("../common/object/generateObjectUrl")),m(D,s("../common/object/signatureUrl")),m(D,s("../common/object/asyncSignatureUrl")),D.putMeta=function(){var V=(0,b.default)(p.default.mark(function U(G,J,ee){var ae;return p.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,this.copy(G,G,{meta:J||{},timeout:ee&&ee.timeout,ctx:ee&&ee.ctx});case 2:return ae=ue.sent,ue.abrupt("return",ae);case 4:case"end":return ue.stop()}},U,this)}));function P(U,G,J){return V.apply(this,arguments)}return P}(),D.list=function(){var V=(0,b.default)(p.default.mark(function U(G,J){var ee,ae,oe,ue,se;return p.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ee=this._objectRequestParams("GET","",J),ee.query=G,ee.xmlResponse=!0,ee.successStatuses=[200],ve.next=6,this.request(ee);case 6:return ae=ve.sent,oe=ae.data.Contents||[],ue=this,oe&&(Array.isArray(oe)||(oe=[oe]),oe=oe.map(function(Re){return{name:Re.Key,url:ue._objectUrl(Re.Key),lastModified:Re.LastModified,etag:Re.ETag,type:Re.Type,size:Number(Re.Size),storageClass:Re.StorageClass,owner:{id:Re.Owner.ID,displayName:Re.Owner.DisplayName}}})),se=ae.data.CommonPrefixes||null,se&&(Array.isArray(se)||(se=[se]),se=se.map(function(Re){return Re.Prefix})),ve.abrupt("return",{res:ae.res,objects:oe,prefixes:se,nextMarker:ae.data.NextMarker||null,isTruncated:ae.data.IsTruncated==="true"});case 13:case"end":return ve.stop()}},U,this)}));function P(U,G){return V.apply(this,arguments)}return P}(),D.listV2=function(){var V=(0,b.default)(p.default.mark(function U(G){var J,ee,ae,oe,ue,se,ye,ve=arguments;return p.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return J=ve.length>1&&ve[1]!==void 0?ve[1]:{},ee=G["continuation-token"]||G.continuationToken,ee&&(J.subres=Object.assign({"continuation-token":ee},J.subres)),ae=this._objectRequestParams("GET","",J),ae.query=Object.assign({"list-type":2},G),delete ae.query["continuation-token"],delete ae.query.continuationToken,ae.xmlResponse=!0,ae.successStatuses=[200],le.next=11,this.request(ae);case 11:return oe=le.sent,ue=oe.data.Contents||[],se=this,ue&&(Array.isArray(ue)||(ue=[ue]),ue=ue.map(function(xe){var pe=null;return xe.Owner&&(pe={id:xe.Owner.ID,displayName:xe.Owner.DisplayName}),{name:xe.Key,url:se._objectUrl(xe.Key),lastModified:xe.LastModified,etag:xe.ETag,type:xe.Type,size:Number(xe.Size),storageClass:xe.StorageClass,owner:pe}})),ye=oe.data.CommonPrefixes||null,ye&&(Array.isArray(ye)||(ye=[ye]),ye=ye.map(function(xe){return xe.Prefix})),le.abrupt("return",{res:oe.res,objects:ue,prefixes:ye,isTruncated:oe.data.IsTruncated==="true",keyCount:+oe.data.KeyCount,continuationToken:oe.data.ContinuationToken||null,nextContinuationToken:oe.data.NextContinuationToken||null});case 18:case"end":return le.stop()}},U,this)}));function P(U){return V.apply(this,arguments)}return P}(),D.restore=function(){var V=(0,b.default)(p.default.mark(function U(G){var J,ee,ae,oe,ue=arguments;return p.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return J=ue.length>1&&ue[1]!==void 0?ue[1]:{type:"Archive"},J=J||{},J.subres=Object.assign({restore:""},J.subres),J.versionId&&(J.subres.versionId=J.versionId),ee=this._objectRequestParams("POST",G,J),J.type==="ColdArchive"&&(ae={RestoreRequest:{Days:J.Days?J.Days:2,JobParameters:{Tier:J.JobParameters?J.JobParameters:"Standard"}}},ee.content=H(ae,{headers:!0}),ee.mime="xml"),ee.successStatuses=[202],ye.next=9,this.request(ee);case 9:return oe=ye.sent,ye.abrupt("return",{res:oe.res});case 11:case"end":return ye.stop()}},U,this)}));function P(U){return V.apply(this,arguments)}return P}(),D._objectUrl=function(P){return this._getReqUrl({bucket:this.options.bucket,object:P})},D._objectRequestParams=function(P,U,G){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");G=G||{},U=this._objectName(U);var J={object:U,bucket:this.options.bucket,method:P,subres:G&&G.subres,timeout:G&&G.timeout,ctx:G&&G.ctx};return G.headers&&(J.headers={},y(G.headers).to(J.headers)),J},D._objectName=function(P){return P.replace(/^\/+/,"")},D._convertMetaToHeaders=function(P,U){P&&Object.keys(P).forEach(function(G){U["x-oss-meta-".concat(G)]=P[G]})},D._deleteFileSafe=function(P){var U=this;return new Promise(function(G){g.exists(P,function(J){J?g.unlink(P,function(ee){ee&&U.debug("unlink %j error: %s",P,ee,"error"),G()}):G()})})}},{"../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(s,C,A){"use strict";A.version="6.18.1"},{}],7:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),b=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(A,"__esModule",{value:!0}),A.abortBucketWorm=void 0;var g=s("../utils/checkBucketName");function y(c,h){return v.apply(this,arguments)}function v(){return v=(0,b.default)(p.default.mark(function c(h,m){var E,T;return p.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return g.checkBucketName(h),E=this._bucketRequestParams("DELETE",h,"worm",m),R.next=4,this.request(E);case 4:return T=R.sent,R.abrupt("return",{res:T.res,status:T.status});case 6:case"end":return R.stop()}},c,this)})),v.apply(this,arguments)}A.abortBucketWorm=y},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),b=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(A,"__esModule",{value:!0}),A.completeBucketWorm=void 0;var g=s("../utils/checkBucketName");function y(c,h,m){return v.apply(this,arguments)}function v(){return v=(0,b.default)(p.default.mark(function c(h,m,E){var T,I;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return g.checkBucketName(h),T=this._bucketRequestParams("POST",h,{wormId:m},E),N.next=4,this.request(T);case 4:return I=N.sent,N.abrupt("return",{res:I.res,status:I.status});case 6:case"end":return N.stop()}},c,this)})),v.apply(this,arguments)}A.completeBucketWorm=y},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(A,"__esModule",{value:!0}),A.deleteBucketInventory=void 0;var g=s("../utils/checkBucketName");function y(c,h){return v.apply(this,arguments)}function v(){return v=(0,b.default)(p.default.mark(function c(h,m){var E,T,I,R,N=arguments;return p.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return E=N.length>2&&N[2]!==void 0?N[2]:{},T=Object.assign({inventory:"",inventoryId:m},E.subres),g.checkBucketName(h),I=this._bucketRequestParams("DELETE",h,T,E),I.successStatuses=[204],L.next=7,this.request(I);case 7:return R=L.sent,L.abrupt("return",{status:R.status,res:R.res});case 9:case"end":return L.stop()}},c,this)})),v.apply(this,arguments)}A.deleteBucketInventory=y},{"../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("../utils/checkBucketName"),y=g.checkBucketName,v=A;v.deleteBucketLifecycle=function(){var c=(0,b.default)(p.default.mark(function m(E,T){var I,R;return p.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return y(E),I=this._bucketRequestParams("DELETE",E,"lifecycle",T),I.successStatuses=[204],k.next=5,this.request(I);case 5:return R=k.sent,k.abrupt("return",{res:R.res});case 7:case"end":return k.stop()}},m,this)}));function h(m,E){return c.apply(this,arguments)}return h}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("../utils/checkBucketName"),y=g.checkBucketName,v=A;v.deleteBucketWebsite=function(){var c=(0,b.default)(p.default.mark(function m(E,T){var I,R;return p.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return y(E),I=this._bucketRequestParams("DELETE",E,"website",T),I.successStatuses=[204],k.next=5,this.request(I);case 5:return R=k.sent,k.abrupt("return",{res:R.res});case 7:case"end":return k.stop()}},m,this)}));function h(m,E){return c.apply(this,arguments)}return h}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),b=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(A,"__esModule",{value:!0}),A.extendBucketWorm=void 0;var g=s("../utils/checkBucketName"),y=s("../utils/obj2xml");function v(h,m,E,T){return c.apply(this,arguments)}function c(){return c=(0,b.default)(p.default.mark(function h(m,E,T,I){var R,N,k;return p.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return g.checkBucketName(m),R=this._bucketRequestParams("POST",m,{wormExtend:"",wormId:E},I),N={ExtendWormConfiguration:{RetentionPeriodInDays:T}},R.mime="xml",R.content=y.obj2xml(N,{headers:!0}),R.successStatuses=[200],H.next=8,this.request(R);case 8:return k=H.sent,H.abrupt("return",{res:k.res,status:k.status});case 10:case"end":return H.stop()}},h,this)})),c.apply(this,arguments)}A.extendBucketWorm=v},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(A,"__esModule",{value:!0}),A.getBucketInventory=void 0;var g=s("../utils/checkBucketName"),y=s("../utils/formatInventoryConfig");function v(h,m){return c.apply(this,arguments)}function c(){return c=(0,b.default)(p.default.mark(function h(m,E){var T,I,R,N,k=arguments;return p.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return T=k.length>2&&k[2]!==void 0?k[2]:{},I=Object.assign({inventory:"",inventoryId:E},T.subres),g.checkBucketName(m),R=this._bucketRequestParams("GET",m,I,T),R.successStatuses=[200],R.xmlResponse=!0,H.next=8,this.request(R);case 8:return N=H.sent,H.abrupt("return",{status:N.status,res:N.res,inventory:y.formatInventoryConfig(N.data)});case 10:case"end":return H.stop()}},h,this)})),c.apply(this,arguments)}A.getBucketInventory=v},{"../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.map.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("../utils/checkBucketName"),y=g.checkBucketName,v=s("../utils/isArray"),c=v.isArray,h=s("../utils/formatObjKey"),m=h.formatObjKey,E=A;E.getBucketLifecycle=function(){var T=(0,b.default)(p.default.mark(function R(N,k){var L,H,D;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return y(N),L=this._bucketRequestParams("GET",N,"lifecycle",k),L.successStatuses=[200],L.xmlResponse=!0,P.next=6,this.request(L);case 6:return H=P.sent,D=H.data.Rule||null,D&&(c(D)||(D=[D]),D=D.map(function(U){return U.ID&&(U.id=U.ID,delete U.ID),U.Tag&&!c(U.Tag)&&(U.Tag=[U.Tag]),m(U,"firstLowerCase")})),P.abrupt("return",{rules:D,res:H.res});case 10:case"end":return P.stop()}},R,this)}));function I(R,N){return T.apply(this,arguments)}return I}()},{"../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("../utils/checkBucketName"),y=g.checkBucketName,v=A;v.getBucketVersioning=function(){var c=(0,b.default)(p.default.mark(function m(E,T){var I,R,N;return p.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return y(E),I=this._bucketRequestParams("GET",E,"versioning",T),I.xmlResponse=!0,I.successStatuses=[200],L.next=6,this.request(I);case 6:return R=L.sent,N=R.data.Status,L.abrupt("return",{status:R.status,versionStatus:N,res:R.res});case 9:case"end":return L.stop()}},m,this)}));function h(m,E){return c.apply(this,arguments)}return h}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("../utils/checkBucketName"),y=g.checkBucketName,v=s("../utils/isObject"),c=v.isObject,h=A;h.getBucketWebsite=function(){var m=(0,b.default)(p.default.mark(function T(I,R){var N,k,L;return p.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return y(I),N=this._bucketRequestParams("GET",I,"website",R),N.successStatuses=[200],N.xmlResponse=!0,D.next=6,this.request(N);case 6:return k=D.sent,L=[],k.data.RoutingRules&&k.data.RoutingRules.RoutingRule&&(c(k.data.RoutingRules.RoutingRule)?L=[k.data.RoutingRules.RoutingRule]:L=k.data.RoutingRules.RoutingRule),D.abrupt("return",{index:k.data.IndexDocument&&k.data.IndexDocument.Suffix||"",supportSubDir:k.data.IndexDocument&&k.data.IndexDocument.SupportSubDir||"false",type:k.data.IndexDocument&&k.data.IndexDocument.Type,routingRules:L,error:k.data.ErrorDocument&&k.data.ErrorDocument.Key||null,res:k.res});case 10:case"end":return D.stop()}},T,this)}));function E(T,I){return m.apply(this,arguments)}return E}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(A,"__esModule",{value:!0}),A.getBucketWorm=void 0;var g=s("../utils/checkBucketName"),y=s("../utils/dataFix");function v(h,m){return c.apply(this,arguments)}function c(){return c=(0,b.default)(p.default.mark(function h(m,E){var T,I;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return g.checkBucketName(m),T=this._bucketRequestParams("GET",m,"worm",E),T.successStatuses=[200],T.xmlResponse=!0,N.next=6,this.request(T);case 6:return I=N.sent,y.dataFix(I.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),N.abrupt("return",Object.assign(Object.assign({},I.data),{res:I.res,status:I.status}));case 9:case"end":return N.stop()}},h,this)})),c.apply(this,arguments)}A.getBucketWorm=v},{"../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),b=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(A,"__esModule",{value:!0}),A.initiateBucketWorm=void 0;var g=s("../utils/obj2xml"),y=s("../utils/checkBucketName");function v(h,m,E){return c.apply(this,arguments)}function c(){return c=(0,b.default)(p.default.mark(function h(m,E,T){var I,R,N;return p.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return y.checkBucketName(m),I=this._bucketRequestParams("POST",m,"worm",T),R={InitiateWormConfiguration:{RetentionPeriodInDays:E}},I.mime="xml",I.content=g.obj2xml(R,{headers:!0}),I.successStatuses=[200],L.next=8,this.request(I);case 8:return N=L.sent,L.abrupt("return",{res:N.res,wormId:N.res.headers["x-oss-worm-id"],status:N.status});case 10:case"end":return L.stop()}},h,this)})),c.apply(this,arguments)}A.initiateBucketWorm=v},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(A,"__esModule",{value:!0}),A.listBucketInventory=void 0;var g=s("../utils/checkBucketName"),y=s("../utils/formatInventoryConfig");function v(h){return c.apply(this,arguments)}function c(){return c=(0,b.default)(p.default.mark(function h(m){var E,T,I,R,N,k,L,H,D=arguments;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return E=D.length>1&&D[1]!==void 0?D[1]:{},T=E.continuationToken,I=Object.assign({inventory:""},T&&{"continuation-token":T},E.subres),g.checkBucketName(m),R=this._bucketRequestParams("GET",m,I,E),R.successStatuses=[200],R.xmlResponse=!0,P.next=9,this.request(R);case 9:return N=P.sent,k=N.data,L=N.res,H=N.status,P.abrupt("return",{isTruncated:k.IsTruncated==="true",nextContinuationToken:k.NextContinuationToken,inventoryList:y.formatInventoryConfig(k.InventoryConfiguration,!0),status:H,res:L});case 12:case"end":return P.stop()}},h,this)})),c.apply(this,arguments)}A.listBucketInventory=v},{"../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.array.concat.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(A,"__esModule",{value:!0}),A.putBucketInventory=void 0;var g=s("../utils/checkBucketName"),y=s("../utils/obj2xml");function v(h,m){return c.apply(this,arguments)}function c(){return c=(0,b.default)(p.default.mark(function h(m,E){var T,I,R,N,k,L,H,D,V,P,U,G=arguments;return p.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return T=G.length>2&&G[2]!==void 0?G[2]:{},I=Object.assign({inventory:"",inventoryId:E.id},T.subres),g.checkBucketName(m),R=E.OSSBucketDestination,N=E.optionalFields,k=E.includedObjectVersions,L="acs:oss:::",H="acs:ram::".concat(R.accountId,":role/"),D={InventoryConfiguration:{Id:E.id,IsEnabled:E.isEnabled,Filter:{Prefix:E.prefix||""},Destination:{OSSBucketDestination:{Format:R.format,AccountId:R.accountId,RoleArn:"".concat(H).concat(R.rolename),Bucket:"".concat(L).concat(R.bucket),Prefix:R.prefix||"",Encryption:R.encryption||""}},Schedule:{Frequency:E.frequency},IncludedObjectVersions:k,OptionalFields:{Field:(N==null?void 0:N.field)||[]}}},V=y.obj2xml(D,{headers:!0,firstUpperCase:!0}),P=this._bucketRequestParams("PUT",m,I,T),P.successStatuses=[200],P.mime="xml",P.content=V,ee.next=14,this.request(P);case 14:return U=ee.sent,ee.abrupt("return",{status:U.status,res:U.res});case 16:case"end":return ee.stop()}},h,this)})),c.apply(this,arguments)}A.putBucketInventory=v},{"../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.array.includes.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("../utils/checkBucketName"),y=g.checkBucketName,v=s("../utils/isArray"),c=v.isArray,h=s("../utils/deepCopy"),m=h.deepCopy,E=s("../utils/isObject"),T=E.isObject,I=s("../utils/obj2xml"),R=I.obj2xml,N=s("../utils/checkObjectTag"),k=N.checkObjectTag,L=s("../utils/getStrBytesCount"),H=L.getStrBytesCount,D=A;D.putBucketLifecycle=function(){var J=(0,b.default)(p.default.mark(function ae(oe,ue,se){var ye,ve,Re,le,xe;return p.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(y(oe),c(ue)){Me.next=3;break}throw new Error("rules must be Array");case 3:return ye=this._bucketRequestParams("PUT",oe,"lifecycle",se),ve=[],Re={LifecycleConfiguration:{Rule:ve}},ue.forEach(function(Oe){V(Oe),G(Oe),Oe.id&&(Oe.ID=Oe.id,delete Oe.id),ve.push(Oe)}),le=R(Re,{headers:!0,firstUpperCase:!0}),ye.content=le,ye.mime="xml",ye.successStatuses=[200],Me.next=13,this.request(ye);case 13:return xe=Me.sent,Me.abrupt("return",{res:xe.res});case 15:case"end":return Me.stop()}},ae,this)}));function ee(ae,oe,ue){return J.apply(this,arguments)}return ee}();function V(J){J.days&&(J.expiration={days:J.days}),J.date&&(J.expiration={createdBeforeDate:J.date})}function P(J,ee){var ae=J.days,oe=J.createdBeforeDate;if(!ae&&!oe)throw new Error("".concat(ee," must includes days or createdBeforeDate"));if(ae&&!/^[1-9][0-9]*$/.test(ae))throw new Error("days must be a positive integer");if(oe&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(oe))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function U(J){if(!c(J)&&!T(J))throw new Error("tag must be Object or Array");J=T(J)?[J]:J;var ee={},ae=m(J);ae.forEach(function(oe){ee[oe.key]=oe.value}),k(ee)}function G(J){if(J.id&&H(J.id)>255)throw new Error("ID is composed of 255 bytes at most");if(J.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(J.status))throw new Error("Status must be Enabled or Disabled");if(J.transition){if(!["IA","Archive"].includes(J.transition.storageClass))throw new Error("StorageClass must be IA or Archive");P(J.transition,"Transition")}if(J.expiration){if(!J.expiration.expiredObjectDeleteMarker)P(J.expiration,"Expiration");else if(J.expiration.days||J.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(J.abortMultipartUpload&&P(J.abortMultipartUpload,"AbortMultipartUpload"),!J.expiration&&!J.abortMultipartUpload&&!J.transition&&!J.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(J.tag){if(J.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");U(J.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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.includes.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("../utils/checkBucketName"),y=g.checkBucketName,v=s("../utils/obj2xml"),c=v.obj2xml,h=A;h.putBucketVersioning=function(){var m=(0,b.default)(p.default.mark(function T(I,R){var N,k,L,H,D=arguments;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(N=D.length>2&&D[2]!==void 0?D[2]:{},y(I),["Enabled","Suspended"].includes(R)){P.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return k=this._bucketRequestParams("PUT",I,"versioning",N),L={VersioningConfiguration:{Status:R}},k.mime="xml",k.content=c(L,{headers:!0}),P.next=10,this.request(k);case 10:return H=P.sent,P.abrupt("return",{res:H.res,status:H.status});case 12:case"end":return P.stop()}},T,this)}));function E(T,I){return m.apply(this,arguments)}return E}()},{"../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("../utils/checkBucketName"),y=g.checkBucketName,v=s("../utils/obj2xml"),c=v.obj2xml,h=s("../utils/isArray"),m=h.isArray,E=A;E.putBucketWebsite=function(){var T=(0,b.default)(p.default.mark(function R(N){var k,L,H,D,V,P,U,G=arguments;return p.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(k=G.length>1&&G[1]!==void 0?G[1]:{},L=G.length>2?G[2]:void 0,y(N),H=this._bucketRequestParams("PUT",N,"website",L),D={Suffix:k.index||"index.html"},V={IndexDocument:D},P={WebsiteConfiguration:V},k.supportSubDir&&(D.SupportSubDir=k.supportSubDir),k.type&&(D.Type=k.type),k.error&&(V.ErrorDocument={Key:k.error}),k.routingRules===void 0){ee.next=14;break}if(m(k.routingRules)){ee.next=13;break}throw new Error("RoutingRules must be Array");case 13:V.RoutingRules={RoutingRule:k.routingRules};case 14:return P=c(P),H.content=P,H.mime="xml",H.successStatuses=[200],ee.next=20,this.request(H);case 20:return U=ee.sent,ee.abrupt("return",{res:U.res});case 22:case"end":return ee.stop()}},R,this)}));function I(R){return T.apply(this,arguments)}return I}()},{"../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(s,C,A){(function(u){(function(){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.regexp.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),A.encodeCallback=function(b,g){if(b.headers=b.headers||{},!Object.prototype.hasOwnProperty.call(b.headers,"x-oss-callback")&&g.callback){var y={callbackUrl:encodeURI(g.callback.url),callbackBody:g.callback.body};g.callback.host&&(y.callbackHost=g.callback.host),g.callback.contentType&&(y.callbackBodyType=g.callback.contentType);var v=u.from(JSON.stringify(y)).toString("base64");if(b.headers["x-oss-callback"]=v,g.callback.customValue){var c={};Object.keys(g.callback.customValue).forEach(function(h){c["x:".concat(h)]=g.callback.customValue[h].toString()}),b.headers["x-oss-callback-var"]=u.from(JSON.stringify(c)).toString("base64")}}}}).call(this)}).call(this,s("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(s,C,A){"use strict";s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js");var u=function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(A,"__esModule",{value:!0}),A.getReqUrl=void 0;var p=u(s("copy-to")),b=u(s("url")),g=u(s("merge-descriptors")),y=u(s("is-type-of")),v=s("../utils/isIP"),c=s("../utils/checkConfigValid");function h(m){var E={},T=this.options.cname;c.checkConfigValid(this.options.endpoint,"endpoint"),p.default(this.options.endpoint,!1).to(E),m.bucket&&!T&&!v.isIP(E.hostname)&&!this.options.sldEnable&&(E.host="".concat(m.bucket,".").concat(E.host));var I="/";m.bucket&&this.options.sldEnable&&(I+="".concat(m.bucket,"/")),m.object&&(I+=this._escape(m.object).replace(/\+/g,"%2B")),E.pathname=I;var R={};if(m.query&&g.default(R,m.query),m.subres){var N={};y.default.string(m.subres)?N[m.subres]="":y.default.array(m.subres)?m.subres.forEach(function(k){N[k]=""}):N=m.subres,g.default(R,N)}return E.query=R,b.default.format(E)}A.getReqUrl=h},{"../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(s,C,A){"use strict";s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.string.trim.js");var u=s("humanize-ms"),p=s("url"),b=s("../utils/checkBucketName"),g=b.checkBucketName,y=s("../utils/setRegion"),v=y.setRegion,c=s("../utils/checkConfigValid"),h=c.checkConfigValid;function m(E,T){h(E,"endpoint");var I=p.parse(E);if(I.protocol||(I=p.parse("http".concat(T?"s":"","://").concat(E))),I.protocol!=="http:"&&I.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return I}C.exports=function(E){if(!E||!E.accessKeyId||!E.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");E.stsToken&&!E.refreshSTSToken&&!E.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),E.bucket&&g(E.bucket);var T=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},E);if(T.accessKeyId=T.accessKeyId.trim(),T.accessKeySecret=T.accessKeySecret.trim(),T.timeout&&(T.timeout=u(T.timeout)),T.endpoint)T.endpoint=m(T.endpoint,T.secure);else if(T.region)T.endpoint=v(T.region,T.internal,T.secure);else throw new Error("require options.endpoint or options.region");return T.inited=!0,T}},{"../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(s,C,A){"use strict";var u=s("merge-descriptors"),p=A;u(p,s("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.concat.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("../utils/checkBucketName"),y=g.checkBucketName,v=s("querystring"),c=s("js-base64"),h=c.Base64.encode,m=A;m.processObjectSave=function(){var T=(0,b.default)(p.default.mark(function R(N,k,L,H){var D,V,P,U;return p.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return E(N,"sourceObject"),E(k,"targetObject"),E(L,"process"),k=this._objectName(k),H&&y(H),D=this._objectRequestParams("POST",N,{subres:"x-oss-process"}),V=H?",b_".concat(h(H)):"",k=h(k),P={"x-oss-process":"".concat(L,"|sys/saveas,o_").concat(k).concat(V)},D.content=v.stringify(P),J.next=12,this.request(D);case 12:return U=J.sent,J.abrupt("return",{res:U.res,status:U.res.status});case 14:case"end":return J.stop()}},R,this)}));function I(R,N,k,L){return T.apply(this,arguments)}return I}();function E(T,I){if(!T)throw new Error("".concat(I," is required"));if(typeof T!="string")throw new Error("".concat(I," 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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.function.name.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.array.from.js"),s("core-js/modules/es.string.iterator.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.array.filter.js"),s("core-js/modules/es.array.find.js"),s("core-js/modules/es.regexp.to-string.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("debug")("ali-oss:multipart-copy"),y=s("copy-to"),v=A;v.uploadPartCopy=function(){var c=(0,b.default)(p.default.mark(function m(E,T,I,R,N){var k,L,H,D,V,P=arguments;return p.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return k=P.length>5&&P[5]!==void 0?P[5]:{},k.headers=k.headers||{},L=k.versionId||k.subres&&k.subres.versionId||null,L?H="/".concat(N.sourceBucketName,"/").concat(encodeURIComponent(N.sourceKey),"?versionId=").concat(L):H="/".concat(N.sourceBucketName,"/").concat(encodeURIComponent(N.sourceKey)),k.headers["x-oss-copy-source"]=H,R&&(k.headers["x-oss-copy-source-range"]="bytes=".concat(R)),k.subres={partNumber:I,uploadId:T},D=this._objectRequestParams("PUT",E,k),D.mime=k.mime,D.successStatuses=[200],G.next=12,this.request(D);case 12:return V=G.sent,G.abrupt("return",{name:E,etag:V.res.headers.etag,res:V.res});case 14:case"end":return G.stop()}},m,this)}));function h(m,E,T,I,R){return c.apply(this,arguments)}return h}(),v.multipartUploadCopy=function(){var c=(0,b.default)(p.default.mark(function m(E,T){var I,R,N,k,L,H,D,V,P,U,G,J,ee=arguments;return p.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return I=ee.length>2&&ee[2]!==void 0?ee[2]:{},this.resetCancelFlag(),R=I.versionId,N=R===void 0?null:R,k={versionId:N},oe.next=6,this._getObjectMeta(T.sourceBucketName,T.sourceKey,k);case 6:if(L=oe.sent,H=L.res.headers["content-length"],T.startOffset=T.startOffset||0,T.endOffset=T.endOffset||H,!(I.checkpoint&&I.checkpoint.uploadId)){oe.next=14;break}return oe.next=13,this._resumeMultipartCopy(I.checkpoint,T,I);case 13:return oe.abrupt("return",oe.sent);case 14:if(D=102400,V=T.endOffset-T.startOffset,!(V<D)){oe.next=18;break}throw new Error("copySize must not be smaller than ".concat(D));case 18:if(!(I.partSize&&I.partSize<D)){oe.next=20;break}throw new Error("partSize must not be smaller than ".concat(D));case 20:return oe.next=22,this.initMultipartUpload(E,I);case 22:if(P=oe.sent,U=P.uploadId,G=this._getPartSize(V,I.partSize),J={name:E,copySize:V,partSize:G,uploadId:U,doneParts:[]},!(I&&I.progress)){oe.next=29;break}return oe.next=29,I.progress(0,J,P.res);case 29:return oe.next=31,this._resumeMultipartCopy(J,T,I);case 31:return oe.abrupt("return",oe.sent);case 32:case"end":return oe.stop()}},m,this)}));function h(m,E){return c.apply(this,arguments)}return h}(),v._resumeMultipartCopy=function(){var c=(0,b.default)(p.default.mark(function m(E,T,I){var R,N,k,L,H,D,V,P,U,G,J,ee,ae,oe,ue,se,ye,ve,Re,le,xe;return p.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(!this.isCancel()){Me.next=2;break}throw this._makeCancelEvent();case 2:if(R=I.versionId,N=R===void 0?null:R,k={versionId:N},L=E.copySize,H=E.partSize,D=E.uploadId,V=E.doneParts,P=E.name,U=this._divideMultipartCopyParts(L,H,T.startOffset),G=U.length,J={headers:{}},I.copyheaders&&y(I.copyheaders).to(J.headers),N&&y(k).to(J),ee=function(Le,Pe,De){return new Promise(function(){var Ke=(0,b.default)(p.default.mark(function ze(it,ot){var Ge,Ee,fe;return p.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(X.prev=0,Le.isCancel()){X.next=22;break}return Ge=U[Pe-1],Ee="".concat(Ge.start,"-").concat(Ge.end-1),X.prev=4,X.next=7,Le.uploadPartCopy(P,D,Pe,Ee,De,J);case 7:fe=X.sent,X.next=15;break;case 10:if(X.prev=10,X.t0=X.catch(4),X.t0.status!==404){X.next=14;break}throw Le._makeAbortEvent();case 14:throw X.t0;case 15:if(Le.isCancel()){X.next=22;break}if(g("content-range ".concat(fe.res.headers["content-range"])),V.push({number:Pe,etag:fe.res.headers.etag}),E.doneParts=V,!(I&&I.progress)){X.next=22;break}return X.next=22,I.progress(V.length/G,E,fe.res);case 22:it(),X.next=29;break;case 25:X.prev=25,X.t1=X.catch(0),X.t1.partNum=Pe,ot(X.t1);case 29:case"end":return X.stop()}},ze,null,[[0,25],[4,10]])}));return function(ze,it){return Ke.apply(this,arguments)}}())},ae=Array.from(new Array(G),function(Oe,Le){return Le+1}),oe=V.map(function(Oe){return Oe.number}),ue=ae.filter(function(Oe){return oe.indexOf(Oe)<0}),se=5,ye=I.parallel||se,!(this.checkBrowserAndVersion("Internet Explorer","10")||ye===1)){Me.next=28;break}ve=0;case 18:if(!(ve<ue.length)){Me.next=26;break}if(!this.isCancel()){Me.next=21;break}throw this._makeCancelEvent();case 21:return Me.next=23,ee(this,ue[ve],T);case 23:ve++,Me.next=18;break;case 26:Me.next=40;break;case 28:return Me.next=30,this._parallelNode(ue,ye,ee,T);case 30:if(Re=Me.sent,le=Re.find(function(Oe){return Oe.name==="abort"}),!le){Me.next=34;break}throw le;case 34:if(!this.isCancel()){Me.next=36;break}throw this._makeCancelEvent();case 36:if(!(Re&&Re.length>0)){Me.next=40;break}throw xe=Re[0],xe.message="Failed to copy some parts with error: ".concat(xe.toString()," part_num: ").concat(xe.partNum),xe;case 40:return Me.next=42,this.completeMultipartUpload(P,D,V,I);case 42:return Me.abrupt("return",Me.sent);case 43:case"end":return Me.stop()}},m,this)}));function h(m,E,T){return c.apply(this,arguments)}return h}(),v._divideMultipartCopyParts=function(h,m,E){for(var T=Math.ceil(h/m),I=[],R=0;R<T;R++){var N=m*R+E,k=Math.min(N+m,h+E);I.push({start:N,end:k})}return I},v._getObjectMeta=function(){var c=(0,b.default)(p.default.mark(function m(E,T,I){var R,N;return p.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return R=this.getBucket(),this.setBucket(E),L.next=4,this.head(T,I);case 4:return N=L.sent,this.setBucket(R),L.abrupt("return",N);case 7:case"end":return L.stop()}},m,this)}));function h(m,E,T){return c.apply(this,arguments)}return h}()},{"@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(s,C,A){(function(u){(function(){"use strict";var p=s("@babel/runtime/helpers/interopRequireDefault"),b=p(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.map.js"),s("core-js/modules/es.array.filter.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.array.sort.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.regexp.to-string.js");var g=p(s("@babel/runtime/helpers/asyncToGenerator")),y=s("copy-to"),v=s("./callback"),c=s("./utils/deepCopy"),h=c.deepCopyWith,m=s("./utils/isBuffer"),E=m.isBuffer,T=s("./utils/omit"),I=T.omit,R=A;R.listUploads=function(){var N=(0,g.default)(b.default.mark(function L(H,D){var V,P,U,G;return b.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return D=D||{},V={},y(D).to(V),V.subres="uploads",P=this._objectRequestParams("GET","",V),P.query=H,P.xmlResponse=!0,P.successStatuses=[200],ee.next=10,this.request(P);case 10:return U=ee.sent,G=U.data.Upload||[],Array.isArray(G)||(G=[G]),G=G.map(function(ae){return{name:ae.Key,uploadId:ae.UploadId,initiated:ae.Initiated}}),ee.abrupt("return",{res:U.res,uploads:G,bucket:U.data.Bucket,nextKeyMarker:U.data.NextKeyMarker,nextUploadIdMarker:U.data.NextUploadIdMarker,isTruncated:U.data.IsTruncated==="true"});case 15:case"end":return ee.stop()}},L,this)}));function k(L,H){return N.apply(this,arguments)}return k}(),R.listParts=function(){var N=(0,g.default)(b.default.mark(function L(H,D,V,P){var U,G,J;return b.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return P=P||{},U={},y(P).to(U),U.subres={uploadId:D},G=this._objectRequestParams("GET",H,U),G.query=V,G.xmlResponse=!0,G.successStatuses=[200],ae.next=10,this.request(G);case 10:return J=ae.sent,ae.abrupt("return",{res:J.res,uploadId:J.data.UploadId,bucket:J.data.Bucket,name:J.data.Key,partNumberMarker:J.data.PartNumberMarker,nextPartNumberMarker:J.data.NextPartNumberMarker,maxParts:J.data.MaxParts,isTruncated:J.data.IsTruncated,parts:J.data.Part||[]});case 12:case"end":return ae.stop()}},L,this)}));function k(L,H,D,V){return N.apply(this,arguments)}return k}(),R.abortMultipartUpload=function(){var N=(0,g.default)(b.default.mark(function L(H,D,V){var P,U,G;return b.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return this._stop(),V=V||{},P={},y(V).to(P),P.subres={uploadId:D},U=this._objectRequestParams("DELETE",H,P),U.successStatuses=[204],ee.next=9,this.request(U);case 9:return G=ee.sent,ee.abrupt("return",{res:G.res});case 11:case"end":return ee.stop()}},L,this)}));function k(L,H,D){return N.apply(this,arguments)}return k}(),R.initMultipartUpload=function(){var N=(0,g.default)(b.default.mark(function L(H,D){var V,P,U;return b.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return D=D||{},V={},y(D).to(V),V.headers=V.headers||{},this._convertMetaToHeaders(D.meta,V.headers),V.subres="uploads",P=this._objectRequestParams("POST",H,V),P.mime=D.mime,P.xmlResponse=!0,P.successStatuses=[200],J.next=12,this.request(P);case 12:return U=J.sent,J.abrupt("return",{res:U.res,bucket:U.data.Bucket,name:U.data.Key,uploadId:U.data.UploadId});case 14:case"end":return J.stop()}},L,this)}));function k(L,H){return N.apply(this,arguments)}return k}(),R.uploadPart=function(){var N=(0,g.default)(b.default.mark(function L(H,D,V,P,U,G,J){var ee,ae;return b.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(ee={size:G-U},ae=u&&u.browser,!ae){ue.next=8;break}return ue.next=5,this._createBuffer(P,U,G);case 5:ee.content=ue.sent,ue.next=11;break;case 8:return ue.next=10,this._createStream(P,U,G);case 10:ee.stream=ue.sent;case 11:return ue.next=13,this._uploadPart(H,D,V,ee,J);case 13:return ue.abrupt("return",ue.sent);case 14:case"end":return ue.stop()}},L,this)}));function k(L,H,D,V,P,U,G){return N.apply(this,arguments)}return k}(),R.completeMultipartUpload=function(){var N=(0,g.default)(b.default.mark(function L(H,D,V,P){var U,G,J,ee,ae,oe,ue,se;return b.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:for(U=V.concat().sort(function(Re,le){return Re.number-le.number}).filter(function(Re,le,xe){return!le||Re.number!==xe[le-1].number}),G=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,J=0;J<U.length;J++)ee=U[J],G+=`<Part>
`,G+="<PartNumber>".concat(ee.number,`</PartNumber>
`),G+="<ETag>".concat(ee.etag,`</ETag>
`),G+=`</Part>
`;return G+="</CompleteMultipartUpload>",P=P||{},ae={},ae=h(P,function(Re){if(E(Re))return null}),ae.subres={uploadId:D},ae.headers=I(ae.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),oe=this._objectRequestParams("POST",H,ae),v.encodeCallback(oe,ae),oe.mime="xml",oe.content=G,oe.headers&&oe.headers["x-oss-callback"]||(oe.xmlResponse=!0),oe.successStatuses=[200],ve.next=17,this.request(oe);case 17:if(ue=ve.sent,!P.progress){ve.next=21;break}return ve.next=21,P.progress(1,null,ue.res);case 21:return se={res:ue.res,bucket:oe.bucket,name:H,etag:ue.res.headers.etag},oe.headers&&oe.headers["x-oss-callback"]&&(se.data=JSON.parse(ue.data.toString())),ve.abrupt("return",se);case 24:case"end":return ve.stop()}},L,this)}));function k(L,H,D,V){return N.apply(this,arguments)}return k}(),R._uploadPart=function(){var N=(0,g.default)(b.default.mark(function L(H,D,V,P,U){var G,J,ee,ae;return b.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return U=U||{},G={},y(U).to(G),G.headers=G.headers||{},G.headers["Content-Length"]=P.size,G.headers=I(G.headers,["x-oss-server-side-encryption"]),G.subres={partNumber:V,uploadId:D},J=this._objectRequestParams("PUT",H,G),J.mime=G.mime,ee=u&&u.browser,ee?J.content=P.content:J.stream=P.stream,J.successStatuses=[200],J.disabledMD5=U.disabledMD5,ue.next=15,this.request(J);case 15:if(ae=ue.sent,ae.res.headers.etag){ue.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 P.stream&&(P.stream=null,J.stream=null),ue.abrupt("return",{name:H,etag:ae.res.headers.etag,res:ae.res});case 20:case"end":return ue.stop()}},L,this)}));function k(L,H,D,V,P){return N.apply(this,arguments)}return k}()}).call(this)}).call(this,s("_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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("url"),y=s("utility"),v=s("copy-to"),c=s("../../common/signUtils"),h=s("../utils/isIP"),m=h.isIP,E=s("../utils/setSTSToken"),T=E.setSTSToken,I=s("../utils/isFunction"),R=I.isFunction,N=A;N.asyncSignatureUrl=function(){var k=(0,b.default)(p.default.mark(function H(D,V){var P,U,G,J,ee;return p.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(!m(this.options.endpoint.hostname)){oe.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(V=V||{},D=this._objectName(D),V.method=V.method||"GET",P=y.timestamp()+(V.expires||1800),U={bucket:this.options.bucket,object:D},G=this._getResource(U),!(this.options.stsToken&&R(this.options.refreshSTSToken))){oe.next=11;break}return oe.next=11,T.call(this);case 11:return this.options.stsToken&&(V["security-token"]=this.options.stsToken),J=c._signatureForURL(this.options.accessKeySecret,V,G,P),ee=g.parse(this._getReqUrl(U)),ee.query={OSSAccessKeyId:this.options.accessKeyId,Expires:P,Signature:J.Signature},v(J.subResource).to(ee.query),oe.abrupt("return",ee.format());case 17:case"end":return oe.stop()}},H,this)}));function L(H,D){return k.apply(this,arguments)}return L}()},{"../../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.find.js"),s("core-js/modules/es.array.includes.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js");var b=u(s("@babel/runtime/helpers/typeof")),g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("../utils/checkBucketName"),v=y.checkBucketName,c=A,h=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];c.copy=function(){var m=(0,g.default)(p.default.mark(function T(I,R,N,k){var L,H,D;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return(0,b.default)(N)==="object"&&(k=N),k=k||{},k.headers=k.headers||{},Object.keys(k.headers).forEach(function(U){k.headers["x-oss-copy-source-".concat(U.toLowerCase())]=k.headers[U]}),(k.meta||Object.keys(k.headers).find(function(U){return h.includes(U.toLowerCase())}))&&(k.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(k.meta,k.headers),R=this._getSourceName(R,N),k.versionId&&(R="".concat(R,"?versionId=").concat(k.versionId)),k.headers["x-oss-copy-source"]=R,L=this._objectRequestParams("PUT",I,k),L.xmlResponse=!0,L.successStatuses=[200,304],P.next=14,this.request(L);case 14:return H=P.sent,D=H.data,D&&(D={etag:D.ETag,lastModified:D.LastModified}),P.abrupt("return",{data:D,res:H.res});case 18:case"end":return P.stop()}},T,this)}));function E(T,I,R,N){return m.apply(this,arguments)}return E}(),c._getSourceName=function(E,T){return typeof T=="string"?E=this._objectName(E):E[0]!=="/"?T=this.options.bucket:(T=E.replace(/\/(.+?)(\/.*)/,"$1"),E=E.replace(/(\/.+?\/)(.*)/,"$2")),v(T),E=encodeURIComponent(E),E="/".concat(T,"/").concat(E),E}},{"../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=A;g.delete=function(){var y=(0,b.default)(p.default.mark(function c(h){var m,E,T,I=arguments;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return m=I.length>1&&I[1]!==void 0?I[1]:{},m.subres=Object.assign({},m.subres),m.versionId&&(m.subres.versionId=m.versionId),E=this._objectRequestParams("DELETE",h,m),E.successStatuses=[204],N.next=7,this.request(E);case 7:return T=N.sent,N.abrupt("return",{res:T.res});case 9:case"end":return N.stop()}},c,this)}));function v(c){return y.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("utility"),y=s("../utils/obj2xml"),v=y.obj2xml,c=A;c.deleteMulti=function(){var h=(0,b.default)(p.default.mark(function E(T){var I,R,N,k,L,H,D,V,P,U,G,J,ee,ae=arguments;return p.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(I=ae.length>1&&ae[1]!==void 0?ae[1]:{},R=[],!(!T||!T.length)){ue.next=4;break}throw new Error("names is required");case 4:for(N=0;N<T.length;N++)k={},typeof T[N]=="string"?k.Key=g.escape(this._objectName(T[N])):(L=T[N],H=L.key,D=L.versionId,k.Key=g.escape(this._objectName(H)),k.VersionId=D),R.push(k);return V={Delete:{Quiet:!!I.quiet,Object:R}},P=v(V,{headers:!0}),I.subres=Object.assign({delete:""},I.subres),I.versionId&&(I.subres.versionId=I.versionId),U=this._objectRequestParams("POST","",I),U.mime="xml",U.content=P,U.xmlResponse=!0,U.successStatuses=[200],ue.next=16,this.request(U);case 16:return G=ue.sent,J=G.data,ee=J&&J.Deleted||null,ee&&(Array.isArray(ee)||(ee=[ee])),ue.abrupt("return",{res:G.res,deleted:ee||[]});case 21:case"end":return ue.stop()}},E,this)}));function m(E){return h.apply(this,arguments)}return m}()},{"../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=A;g.deleteObjectTagging=function(){var y=(0,b.default)(p.default.mark(function c(h){var m,E,T,I=arguments;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return m=I.length>1&&I[1]!==void 0?I[1]:{},m.subres=Object.assign({tagging:""},m.subres),m.versionId&&(m.subres.versionId=m.versionId),h=this._objectName(h),E=this._objectRequestParams("DELETE",h,m),E.successStatuses=[204],N.next=8,this.request(E);case 8:return T=N.sent,N.abrupt("return",{status:T.status,res:T.res});case 10:case"end":return N.stop()}},c,this)}));function v(c){return y.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(s,C,A){"use strict";s("core-js/modules/es.array.concat.js");var u=s("url"),p=s("../utils/isIP"),b=p.isIP,g=A;g.generateObjectUrl=function(v,c){if(b(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(c)c[c.length-1]!=="/"&&(c+="/");else{c=this.options.endpoint.format();var h=u.parse(c),m=this.options.bucket;h.hostname="".concat(m,".").concat(h.hostname),h.host="".concat(m,".").concat(h.host),c=h.format()}return c+this._escape(this._objectName(v))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(s,C,A){(function(u){(function(){"use strict";var p=s("@babel/runtime/helpers/interopRequireDefault"),b=p(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var g=p(s("@babel/runtime/helpers/asyncToGenerator")),y=s("fs"),v=s("is-type-of"),c=A;c.get=function(){var h=(0,g.default)(b.default.mark(function E(T,I){var R,N,k,L,H,D,V,P,U=arguments;return b.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return R=U.length>2&&U[2]!==void 0?U[2]:{},N=null,k=!1,v.writableStream(I)?N=I:v.string(I)?(N=y.createWriteStream(I),k=!0):R=I,R=R||{},L=u&&u.browser,H=R.responseCacheControl===null?"":"no-cache",D=L&&H?{"response-cache-control":H}:{},R.subres=Object.assign(D,R.subres),R.versionId&&(R.subres.versionId=R.versionId),R.process&&(R.subres["x-oss-process"]=R.process),J.prev=11,P=this._objectRequestParams("GET",T,R),P.writeStream=N,P.successStatuses=[200,206,304],J.next=17,this.request(P);case 17:V=J.sent,k&&N.destroy(),J.next=28;break;case 21:if(J.prev=21,J.t0=J.catch(11),!k){J.next=27;break}return N.destroy(),J.next=27,this._deleteFileSafe(I);case 27:throw J.t0;case 28:return J.abrupt("return",{res:V.res,content:V.data});case 29:case"end":return J.stop()}},E,this,[[11,21]])}));function m(E,T){return h.apply(this,arguments)}return m}()}).call(this)}).call(this,s("_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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=A;g.getACL=function(){var y=(0,b.default)(p.default.mark(function c(h){var m,E,T,I=arguments;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return m=I.length>1&&I[1]!==void 0?I[1]:{},m.subres=Object.assign({acl:""},m.subres),m.versionId&&(m.subres.versionId=m.versionId),h=this._objectName(h),E=this._objectRequestParams("GET",h,m),E.successStatuses=[200],E.xmlResponse=!0,N.next=9,this.request(E);case 9:return T=N.sent,N.abrupt("return",{acl:T.data.AccessControlList.Grant,owner:{id:T.data.Owner.ID,displayName:T.data.Owner.DisplayName},res:T.res});case 11:case"end":return N.stop()}},c,this)}));function v(c){return y.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.number.constructor.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=A,y=s("../utils/isObject"),v=y.isObject,c=s("../utils/isArray"),h=c.isArray;g.getBucketVersions=m,g.listObjectVersions=m;function m(){return E.apply(this,arguments)}function E(){return E=(0,b.default)(p.default.mark(function R(){var N,k,L,H,D,V,P,U,G=arguments;return p.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(N=G.length>0&&G[0]!==void 0?G[0]:{},k=G.length>1&&G[1]!==void 0?G[1]:{},!(N.versionIdMarker&&N.keyMarker===void 0)){ee.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return k.subres=Object.assign({versions:""},k.subres),k.versionId&&(k.subres.versionId=k.versionId),L=this._objectRequestParams("GET","",k),L.xmlResponse=!0,L.successStatuses=[200],L.query=I(N),ee.next=12,this.request(L);case 12:return H=ee.sent,D=H.data.Version||[],V=H.data.DeleteMarker||[],P=this,D&&(Array.isArray(D)||(D=[D]),D=D.map(function(ae){return{name:ae.Key,url:P._objectUrl(ae.Key),lastModified:ae.LastModified,isLatest:ae.IsLatest==="true",versionId:ae.VersionId,etag:ae.ETag,type:ae.Type,size:Number(ae.Size),storageClass:ae.StorageClass,owner:{id:ae.Owner.ID,displayName:ae.Owner.DisplayName}}})),V&&(h(V)||(V=[V]),V=V.map(function(ae){return{name:ae.Key,lastModified:ae.LastModified,versionId:ae.VersionId,owner:{id:ae.Owner.ID,displayName:ae.Owner.DisplayName}}})),U=H.data.CommonPrefixes||null,U&&(h(U)||(U=[U]),U=U.map(function(ae){return ae.Prefix})),ee.abrupt("return",{res:H.res,objects:D,deleteMarker:V,prefixes:U,nextMarker:H.data.NextKeyMarker||null,NextVersionIdMarker:H.data.NextVersionIdMarker||null,nextKeyMarker:H.data.NextKeyMarker||null,nextVersionIdMarker:H.data.NextVersionIdMarker||null,isTruncated:H.data.IsTruncated==="true"});case 21:case"end":return ee.stop()}},R,this)})),E.apply(this,arguments)}function T(R){return R.replace(/([A-Z])/g,"-$1").toLowerCase()}function I(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N={};return v(R)&&Object.keys(R).forEach(function(k){N[T(k)]=R[k]}),N}},{"../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=A;g.getObjectMeta=function(){var y=(0,b.default)(p.default.mark(function c(h,m){var E,T;return p.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return m=m||{},h=this._objectName(h),m.subres=Object.assign({objectMeta:""},m.subres),m.versionId&&(m.subres.versionId=m.versionId),E=this._objectRequestParams("HEAD",h,m),E.successStatuses=[200],R.next=8,this.request(E);case 8:return T=R.sent,R.abrupt("return",{status:T.status,res:T.res});case 10:case"end":return R.stop()}},c,this)}));function v(c,h){return y.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=A,y=s("../utils/isObject"),v=y.isObject;g.getObjectTagging=function(){var c=(0,b.default)(p.default.mark(function m(E){var T,I,R,N,k,L,H=arguments;return p.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return T=H.length>1&&H[1]!==void 0?H[1]:{},T.subres=Object.assign({tagging:""},T.subres),T.versionId&&(T.subres.versionId=T.versionId),E=this._objectName(E),I=this._objectRequestParams("GET",E,T),I.successStatuses=[200],V.next=8,this.request(I);case 8:return R=V.sent,V.next=11,this.parseXML(R.data);case 11:return N=V.sent,k=N.TagSet.Tag,k=k&&v(k)?[k]:k||[],L={},k.forEach(function(P){L[P.Key]=P.Value}),V.abrupt("return",{status:R.status,res:R.res,tag:L});case 17:case"end":return V.stop()}},m,this)}));function h(m){return c.apply(this,arguments)}return h}()},{"../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(s,C,A){"use strict";var u=s("../utils/isIP"),p=u.isIP,b=A;b.getObjectUrl=function(y,v){if(p(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return v?v[v.length-1]!=="/"&&(v+="/"):v=this.options.endpoint.format(),v+this._escape(this._objectName(y))}},{"../utils/isIP":69}],43:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=A;g.getSymlink=function(){var y=(0,b.default)(p.default.mark(function c(h){var m,E,T,I,R=arguments;return p.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return m=R.length>1&&R[1]!==void 0?R[1]:{},m.subres=Object.assign({symlink:""},m.subres),m.versionId&&(m.subres.versionId=m.versionId),h=this._objectName(h),E=this._objectRequestParams("GET",h,m),E.successStatuses=[200],k.next=8,this.request(E);case 8:return T=k.sent,I=T.res.headers["x-oss-symlink-target"],k.abrupt("return",{targetName:decodeURIComponent(I),res:T.res});case 11:case"end":return k.stop()}},c,this)}));function v(c){return y.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("../utils/checkEnv"),y=g.checkEnv,v=A;v.head=function(){var c=(0,b.default)(p.default.mark(function m(E){var T,I,R,N,k=arguments;return p.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return T=k.length>1&&k[1]!==void 0?k[1]:{},y("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),T.subres=Object.assign({},T.subres),T.versionId&&(T.subres.versionId=T.versionId),I=this._objectRequestParams("HEAD",E,T),I.successStatuses=[200,304],H.next=8,this.request(I);case 8:return R=H.sent,N={meta:null,res:R.res,status:R.status},R.status===200&&Object.keys(R.headers).forEach(function(D){D.indexOf("x-oss-meta-")===0&&(N.meta||(N.meta={}),N.meta[D.substring(11)]=R.headers[D])}),H.abrupt("return",N);case 12:case"end":return H.stop()}},m,this)}));function h(m){return c.apply(this,arguments)}return h}()},{"../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=A;g.putACL=function(){var y=(0,b.default)(p.default.mark(function c(h,m,E){var T,I;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return E=E||{},E.subres=Object.assign({acl:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),E.headers=E.headers||{},E.headers["x-oss-object-acl"]=m,h=this._objectName(h),T=this._objectRequestParams("PUT",h,E),T.successStatuses=[200],N.next=10,this.request(T);case 10:return I=N.sent,N.abrupt("return",{res:I.res});case 12:case"end":return N.stop()}},c,this)}));function v(c,h,m){return y.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.object.keys.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("../utils/obj2xml"),y=g.obj2xml,v=s("../utils/checkObjectTag"),c=v.checkObjectTag,h=A;h.putObjectTagging=function(){var m=(0,b.default)(p.default.mark(function T(I,R){var N,k,L,H,D=arguments;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return N=D.length>2&&D[2]!==void 0?D[2]:{},c(R),N.subres=Object.assign({tagging:""},N.subres),N.versionId&&(N.subres.versionId=N.versionId),I=this._objectName(I),k=this._objectRequestParams("PUT",I,N),k.successStatuses=[200],R=Object.keys(R).map(function(U){return{Key:U,Value:R[U]}}),L={Tagging:{TagSet:{Tag:R}}},k.mime="xml",k.content=y(L),P.next=13,this.request(k);case 13:return H=P.sent,P.abrupt("return",{res:H.res,status:H.status});case 15:case"end":return P.stop()}},T,this)}));function E(T,I){return m.apply(this,arguments)}return E}()},{"../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=A;g.putSymlink=function(){var y=(0,b.default)(p.default.mark(function c(h,m,E){var T,I;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return E=E||{},E.headers=E.headers||{},m=this._escape(this._objectName(m)),this._convertMetaToHeaders(E.meta,E.headers),E.headers["x-oss-symlink-target"]=m,E.subres=Object.assign({symlink:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),E.storageClass&&(E.headers["x-oss-storage-class"]=E.storageClass),h=this._objectName(h),T=this._objectRequestParams("PUT",h,E),T.successStatuses=[200],N.next=13,this.request(T);case 13:return I=N.sent,N.abrupt("return",{res:I.res});case 15:case"end":return N.stop()}},c,this)}));function v(c,h,m){return y.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(s,C,A){"use strict";var u=s("url"),p=s("utility"),b=s("copy-to"),g=s("../../common/signUtils"),y=s("../utils/isIP"),v=y.isIP,c=A;c.signatureUrl=function(m,E){if(v(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");E=E||{},m=this._objectName(m),E.method=E.method||"GET";var T=p.timestamp()+(E.expires||1800),I={bucket:this.options.bucket,object:m},R=this._getResource(I);this.options.stsToken&&(E["security-token"]=this.options.stsToken);var N=g._signatureForURL(this.options.accessKeySecret,E,R,T),k=u.parse(this._getReqUrl(I));return k.query={OSSAccessKeyId:this.options.accessKeyId,Expires:T,Signature:N.Signature},b(N.subResource).to(k.query),k.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.iterator.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.string.iterator.js"),s("core-js/modules/web.dom-collections.iterator.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.function.name.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator")),g=s("./utils/isArray"),y=g.isArray,v=A;v._parallelNode=function(){var c=(0,b.default)(p.default.mark(function m(E,T,I,R){var N,k,L,H,D,V,P,U;return p.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:N=this,k=[],L=[],H=E.length/T,D=E.length%T,V=D===0?H:(E.length-D)/T+1,P=1,U=0;case 8:if(!(U<E.length)){J.next=26;break}if(!N.isCancel()){J.next=11;break}return J.abrupt("break",26);case 11:if(R?L.push(I(N,E[U],R)):L.push(I(N,E[U])),!(L.length===T||P===V&&U===E.length-1)){J.next=23;break}return J.prev=13,P+=1,J.next=17,Promise.all(L);case 17:J.next=22;break;case 19:J.prev=19,J.t0=J.catch(13),k.push(J.t0);case 22:L=[];case 23:U++,J.next=8;break;case 26:return J.abrupt("return",k);case 27:case"end":return J.stop()}},m,this,[[13,19]])}));function h(m,E,T,I){return c.apply(this,arguments)}return h}(),v._parallel=function(h,m,E){var T=this;return new Promise(function(I){var R=[];if(m<=0||!h){I(R);return}function N(J){return function(){if(J===null)throw new Error("Callback was already called.");var ee=J;J=null;for(var ae=arguments.length,oe=new Array(ae),ue=0;ue<ae;ue++)oe[ue]=arguments[ue];ee.apply(this,oe)}}function k(J){var ee=-1,ae=J.length;return function(){return++ee<ae&&!T.isCancel()?{value:J[ee],key:ee}:null}}var L=k(h),H=!1,D=0,V=!1;function P(J){D-=1,J?(H=!0,R.push(J),I(R)):H&&D<=0?(H=!0,I(R)):V||(T.isCancel()?I(R):G())}function U(J,ee){E(J).then(function(ae){ee(null,ae)}).catch(function(ae){ee(ae)})}function G(){for(V=!0;D<m&&!H&&!T.isCancel();){var J=L();if(J===null||R.length>0){H=!0,D<=0&&I(R);return}D+=1,U(J.value,N(P))}V=!1}G()})},v.cancel=function(h){this.options.cancelFlag=!0,y(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(m){if(m.destroyed===!1){var E={name:"cancel",message:"cancel"};m.destroy(E)}}),this.multipartUploadStreams=[],h&&this.abortMultipartUpload(h.name,h.uploadId,h.options)},v.isCancel=function(){return this.options.cancelFlag},v.resetCancelFlag=function(){this.options.cancelFlag=!1},v._stop=function(){this.options.cancelFlag=!0},v._makeCancelEvent=function(){var h={status:0,name:"cancel"};return h},v._makeAbortEvent=function(){var h={status:0,name:"abort",message:"upload task has been abort"};return h}},{"./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(s,C,A){(function(u){(function(){"use strict";s("core-js/modules/es.string.trim.js"),s("core-js/modules/es.array.sort.js"),s("core-js/modules/es.array.join.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.regexp.to-string.js");var p=s("./../../shims/crypto/crypto.js"),b=s("is-type-of"),g=s("./utils/lowercaseKeyHeader"),y=g.lowercaseKeyHeader;A.buildCanonicalizedResource=function(c,h){var m="".concat(c),E="?";if(b.string(h)&&h.trim()!=="")m+=E+h;else if(b.array(h))h.sort(),m+=E+h.join("&");else if(h){var T=function(N,k){return N[0]>k[0]?1:N[0]<k[0]?-1:0},I=function(N){m+=E+N,(h[N]||h[N]===0)&&(m+="=".concat(h[N])),E="&"};Object.keys(h).sort(T).forEach(I)}return m},A.buildCanonicalString=function(c,h,m,E){m=m||{};var T=y(m.headers),I="x-oss-",R=[],N={},k=[c.toUpperCase(),T["content-md5"]||"",T["content-type"],E||T["x-oss-date"]];return Object.keys(T).forEach(function(L){var H=L.toLowerCase();H.indexOf(I)===0&&(N[H]=String(T[L]).trim())}),Object.keys(N).sort().forEach(function(L){R.push("".concat(L,":").concat(N[L]))}),k=k.concat(R),k.push(this.buildCanonicalizedResource(h,m.parameters)),k.join(`
`)},A.computeSignature=function(c,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",E=p.createHmac("sha1",c);return E.update(u.from(h,m)).digest("base64")},A.authorization=function(c,h,m,E){return"OSS ".concat(c,":").concat(this.computeSignature(h,m,E))},A._signatureForURL=function(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=arguments.length>2?arguments[2]:void 0,E=arguments.length>3?arguments[3]:void 0,T=arguments.length>4?arguments[4]:void 0,I={},R=h.subResource,N=R===void 0?{}:R;if(h.process){var k="x-oss-process";N[k]=h.process}if(h.trafficLimit){var L="x-oss-traffic-limit";N[L]=h.trafficLimit}if(h.response&&Object.keys(h.response).forEach(function(P){var U="response-".concat(P.toLowerCase());N[U]=h.response[P]}),Object.keys(h).forEach(function(P){var U=P.toLowerCase(),G=h[P];U.indexOf("x-oss-")===0?I[U]=G:(U.indexOf("content-md5")===0||U.indexOf("content-type")===0)&&(I[P]=G)}),Object.prototype.hasOwnProperty.call(h,"security-token")&&(N["security-token"]=h["security-token"]),Object.prototype.hasOwnProperty.call(h,"callback")){var H={callbackUrl:encodeURI(h.callback.url),callbackBody:h.callback.body};if(h.callback.host&&(H.callbackHost=h.callback.host),h.callback.contentType&&(H.callbackBodyType=h.callback.contentType),N.callback=u.from(JSON.stringify(H)).toString("base64"),h.callback.customValue){var D={};Object.keys(h.callback.customValue).forEach(function(P){D["x:".concat(P)]=h.callback.customValue[P]}),N["callback-var"]=u.from(JSON.stringify(D)).toString("base64")}}var V=this.buildCanonicalString(h.method,m,{headers:I,parameters:N},E.toString());return{Signature:this.computeSignature(c,V,T),subResource:N}}}).call(this)}).call(this,s("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(s,C,A){"use strict";s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.checkBucketName=void 0,A.checkBucketName=function(u){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=p?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!b.test(u))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(s,C,A){"use strict";s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.checkConfigValid=void 0;var u={endpoint:p,region:/^[a-zA-Z0-9\-_]+$/};function p(b){return typeof b=="string"?/^[a-zA-Z0-9._:/-]+$/.test(b):b.host?/^[a-zA-Z0-9._:/-]+$/.test(b.host):!1}A.checkConfigValid=function(b,g){if(u[g]){var y=!0;if(u[g]instanceof Function?y=u[g](b):y=u[g].test(b),!y)throw new Error("The ".concat(g," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(s,C,A){(function(u){(function(){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.checkEnv=void 0;function p(b){u.browser&&console.warn(b)}A.checkEnv=p}).call(this)}).call(this,s("_process"))},{_process:467}],54:[function(s,C,A){"use strict";s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.object.entries.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.checkObjectTag=void 0;var u=s("./checkValid"),p=u.checkValid,b=s("./isObject"),g=b.isObject,y=[{validator:function(m){if(typeof m!="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 (/)"}],v={key:[].concat(y,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(y,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function c(h){if(!g(h))throw new Error("tag must be Object");var m=Object.entries(h);if(m.length>10)throw new Error("maximum of 10 tags for a object");var E=["key","value"];m.forEach(function(T){T.forEach(function(I,R){p(I,v[E[R]])})})}A.checkObjectTag=c},{"./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(s,C,A){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.checkValid=void 0;function u(p,b){b.forEach(function(g){if(g.validator)g.validator(p);else if(g.pattern&&!g.pattern.test(p))throw new Error(g.msg)})}A.checkValid=u},{"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(s,C,A){(function(u){(function(){"use strict";s("core-js/modules/es.array.includes.js"),s("core-js/modules/es.string.includes.js"),s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.array.concat.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.createRequest=void 0;var p=s("./../../../shims/crypto/crypto.js"),b=s("debug")("ali-oss"),g=s("mime"),y=s("dateformat"),v=s("copy-to"),c=s("path"),h=s("./encoder"),m=h.encoder,E=s("./isIP"),T=E.isIP,I=s("./setRegion"),R=I.setRegion,N=s("../client/getReqUrl"),k=N.getReqUrl,L=s("./isDingTalk"),H=L.isDingTalk;function D(U,G){return U[G]||U[G.toLowerCase()]}function V(U,G){delete U[G],delete U[G.toLowerCase()]}function P(U){var G=new Date;this.options.amendTimeSkewed&&(G=+new Date+this.options.amendTimeSkewed);var J={"x-oss-date":y(G,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(J["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(J["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(J,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(J["x-oss-security-token"]=this.options.stsToken),v(U.headers).to(J),D(J,"Content-Type")||(U.mime&&U.mime.indexOf("/")>0?J["Content-Type"]=U.mime:H()?J["Content-Type"]="application/octet-stream":J["Content-Type"]=g.getType(U.mime||c.extname(U.object||""))),D(J,"Content-Type")||V(J,"Content-Type"),U.content&&(U.disabledMD5||(!U.headers||!U.headers["Content-MD5"]?J["Content-MD5"]=p.createHash("md5").update(u.from(U.content,"utf8")).digest("base64"):J["Content-MD5"]=U.headers["Content-MD5"]),J["Content-Length"]||(J["Content-Length"]=U.content.length));var ee=Object.prototype.hasOwnProperty;for(var ae in J)J[ae]&&ee.call(J,ae)&&(J[ae]=m(String(J[ae]),this.options.headerEncoding));var oe=this._getResource(U);if(J.authorization=this.authorization(U.method,oe,U.subres,J,this.options.headerEncoding),T(this.options.endpoint.hostname)){var ue=this.options,se=ue.region,ye=ue.internal,ve=ue.secure,Re=R(se,ye,ve);J.host="".concat(U.bucket,".").concat(Re.host)}var le=k.bind(this)(U);b("request %s %s, with headers %j, !!stream: %s",U.method,le,J,!!U.stream);var xe=U.timeout||this.options.timeout,pe={method:U.method,content:U.content,stream:U.stream,headers:J,timeout:xe,writeStream:U.writeStream,customResponse:U.customResponse,ctx:U.ctx||this.ctx};return this.agent&&(pe.agent=this.agent),this.httpsAgent&&(pe.httpsAgent=this.httpsAgent),pe.enableProxy=!!this.options.enableProxy,pe.proxy=this.options.proxy?this.options.proxy:null,{url:le,params:pe}}A.createRequest=P}).call(this)}).call(this,s("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(s,C,A){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.entries.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.array.includes.js"),s("core-js/modules/es.object.keys.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.dataFix=void 0;var u=s("./isObject"),p=["true","TRUE","1",1],b=["false","FALSE","0",0];function g(c,h,m){if(u.isObject(c)){var E=h.remove,T=E===void 0?[]:E,I=h.rename,R=I===void 0?{}:I,N=h.camel,k=N===void 0?[]:N,L=h.bool,H=L===void 0?[]:L,D=h.lowerFirst,V=D===void 0?!1:D;return T.forEach(function(P){return delete c[P]}),Object.entries(R).forEach(function(P){c[P[0]]&&(c[P[1]]||(c[P[1]]=c[P[0]],delete c[P[0]]))}),k.forEach(function(P){if(c[P]){var U=P.replace(/^(.)/,function(G){return G.toLowerCase()}).replace(/-(\w)/g,function(G,J){return J.toUpperCase()});c[U]||(c[U]=c[P])}}),H.forEach(function(P){c[P]=y(c[P])}),typeof m=="function"&&m(c),v(c,V),g}}A.dataFix=g;function y(c){return c?p.includes(c)?!0:b.includes(c)?!1:c:!1}function v(c,h){h&&Object.keys(c).forEach(function(m){var E=m.replace(/^\w/,function(T){return T.toLowerCase()});typeof c[E]=="undefined"&&(c[E]=c[m],delete c[m])})}},{"./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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault");s("core-js/modules/es.array.slice.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js");var p=u(s("@babel/runtime/helpers/typeof"));Object.defineProperty(A,"__esModule",{value:!0}),A.deepCopyWith=A.deepCopy=void 0;var b=s("./isBuffer");A.deepCopy=function(g){if(g===null||(0,p.default)(g)!=="object")return g;if(b.isBuffer(g))return g.slice();var y=Array.isArray(g)?[]:{};return Object.keys(g).forEach(function(v){y[v]=A.deepCopy(g[v])}),y},A.deepCopyWith=function(g,y){function v(c,h,m){var E=y(c,h,m);if(E!==void 0)return E;if(c===null||(0,p.default)(c)!=="object")return c;if(b.isBuffer(c))return c.slice();var T=Array.isArray(c)?[]:{};return Object.keys(c).forEach(function(I){T[I]=v(c[I],I,c)}),T}return y?v(g,"",null):A.deepCopy(g)}},{"./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(s,C,A){(function(u){(function(){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.encoder=void 0;function p(b){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return g==="utf-8"?b:u.from(b).toString("latin1")}A.encoder=p}).call(this)}).call(this,s("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(s,C,A){"use strict";s("core-js/modules/es.array.map.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.formatInventoryConfig=void 0;var u=s("../utils/dataFix"),p=s("../utils/isObject"),b=s("../utils/isArray"),g=s("../utils/formatObjKey");function y(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return h&&p.isObject(c)&&(c=[c]),b.isArray(c)?c=c.map(v):c=v(c),c}A.formatInventoryConfig=y;function v(c){return u.dataFix(c,{bool:["IsEnabled"]},function(h){var m,E;h.prefix=h.Filter.Prefix,delete h.Filter,h.OSSBucketDestination=h.Destination.OSSBucketDestination,h.OSSBucketDestination.rolename=h.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete h.OSSBucketDestination.RoleArn,h.OSSBucketDestination.bucket=h.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete h.OSSBucketDestination.Bucket,delete h.Destination,h.frequency=h.Schedule.Frequency,delete h.Schedule.Frequency,!((m=h==null?void 0:h.OptionalFields)===null||m===void 0)&&m.Field&&!b.isArray((E=h.OptionalFields)===null||E===void 0?void 0:E.Field)&&(h.OptionalFields.Field=[h.OptionalFields.Field])}),c=g.formatObjKey(c,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),c}},{"../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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault");s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.includes.js"),s("core-js/modules/es.string.includes.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js");var p=u(s("@babel/runtime/helpers/typeof"));Object.defineProperty(A,"__esModule",{value:!0}),A.formatObjKey=void 0;function b(y,v,c){if(y===null||(0,p.default)(y)!=="object")return y;var h;if(Array.isArray(y)){h=[];for(var m=0;m<y.length;m++)h.push(b(y[m],v,c))}else h={},Object.keys(y).forEach(function(E){h[g(E,v,c)]=b(y[E],v,c)});return h}A.formatObjKey=b;function g(y,v,c){return c&&c.exclude&&c.exclude.includes(y)||(v==="firstUpperCase"?y=y.replace(/^./,function(h){return h.toUpperCase()}):v==="firstLowerCase"&&(y=y.replace(/^./,function(h){return h.toLowerCase()}))),y}},{"@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(s,C,A){"use strict";s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.getStrBytesCount=void 0;function u(p){for(var b=0,g=0;g<p.length;g++){var y=p.charAt(g);/^[\u00-\uff]$/.test(y)?b+=1:b+=2}return b}A.getStrBytesCount=u},{"core-js/modules/es.regexp.exec.js":300}],63:[function(s,C,A){"use strict";s("core-js/modules/es.object.to-string.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.isArray=void 0,A.isArray=function(u){return Object.prototype.toString.call(u)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(s,C,A){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.isBlob=void 0;function u(p){return typeof Blob!="undefined"&&p instanceof Blob}A.isBlob=u},{}],65:[function(s,C,A){(function(u){(function(){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.isBuffer=void 0;function p(b){return u.isBuffer(b)}A.isBuffer=p}).call(this)}).call(this,{isBuffer:s("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(s,C,A){(function(u){(function(){"use strict";s("core-js/modules/es.array.includes.js"),s("core-js/modules/es.string.includes.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.isDingTalk=void 0;function p(){return!!(u.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}A.isDingTalk=p}).call(this)}).call(this,s("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(s,C,A){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.isFile=void 0,A.isFile=function(u){return typeof File!="undefined"&&u instanceof File}},{}],68:[function(s,C,A){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.isFunction=void 0,A.isFunction=function(u){return typeof u=="function"}},{}],69:[function(s,C,A){"use strict";s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.isIP=void 0,A.isIP=function(u){var p=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,b=/^\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 p.test(u)||b.test(u)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(s,C,A){"use strict";s("core-js/modules/es.object.to-string.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.isObject=void 0,A.isObject=function(u){return Object.prototype.toString.call(u)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(s,C,A){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.lowercaseKeyHeader=void 0;var u=s("./isObject");function p(b){var g={};return u.isObject(b)&&Object.keys(b).forEach(function(y){g[y.toLowerCase()]=b[y]}),g}A.lowercaseKeyHeader=p},{"./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(s,C,A){"use strict";s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.array.join.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.obj2xml=void 0;var u=s("./formatObjKey");function p(g){return Object.prototype.toString.call(g).replace(/(.*? |])/g,"").toLowerCase()}function b(g,y){var v="";return y&&y.headers&&(v=`<?xml version="1.0" encoding="UTF-8"?>
`),y&&y.firstUpperCase&&(g=u.formatObjKey(g,"firstUpperCase")),p(g)==="object"?Object.keys(g).forEach(function(c){p(g[c])!=="undefined"&&p(g[c])!=="null"&&(p(g[c])==="string"||p(g[c])==="number"?v+="<".concat(c,">").concat(g[c],"</").concat(c,">"):p(g[c])==="object"?v+="<".concat(c,">").concat(b(g[c]),"</").concat(c,">"):p(g[c])==="array"?v+=g[c].map(function(h){return"<".concat(c,">").concat(b(h),"</").concat(c,">")}).join(""):v+="<".concat(c,">").concat(g[c].toString(),"</").concat(c,">"))}):v+=g.toString(),v}A.obj2xml=b},{"./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(s,C,A){"use strict";s("core-js/modules/es.array.slice.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.function.name.js"),s("core-js/modules/es.array.from.js"),s("core-js/modules/es.string.iterator.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.symbol.js"),s("core-js/modules/es.symbol.description.js"),s("core-js/modules/es.symbol.iterator.js"),s("core-js/modules/es.array.iterator.js"),s("core-js/modules/web.dom-collections.iterator.js"),s("core-js/modules/es.object.assign.js");function u(y,v){var c=typeof Symbol!="undefined"&&y[Symbol.iterator]||y["@@iterator"];if(!c){if(Array.isArray(y)||(c=p(y))||v&&y&&typeof y.length=="number"){c&&(y=c);var h=0,m=function(){};return{s:m,n:function(){return h>=y.length?{done:!0}:{done:!1,value:y[h++]}},e:function(N){throw N},f:m}}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 E=!0,T=!1,I;return{s:function(){c=c.call(y)},n:function(){var N=c.next();return E=N.done,N},e:function(N){T=!0,I=N},f:function(){try{!E&&c.return!=null&&c.return()}finally{if(T)throw I}}}}function p(y,v){if(y){if(typeof y=="string")return b(y,v);var c=Object.prototype.toString.call(y).slice(8,-1);if(c==="Object"&&y.constructor&&(c=y.constructor.name),c==="Map"||c==="Set")return Array.from(y);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return b(y,v)}}function b(y,v){(v==null||v>y.length)&&(v=y.length);for(var c=0,h=new Array(v);c<v;c++)h[c]=y[c];return h}Object.defineProperty(A,"__esModule",{value:!0}),A.omit=void 0;function g(y,v){var c=Object.assign({},y),h=u(v),m;try{for(h.s();!(m=h.n()).done;){var E=m.value;delete c[E]}}catch(T){h.e(T)}finally{h.f()}return c}A.omit=g},{"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(s,C,A){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),Object.defineProperty(A,"__esModule",{value:!0}),A.retry=void 0;function u(p,b){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},y=0,v=g.retryDelay,c=v===void 0?500:v,h=g.errorHandler,m=h===void 0?function(){return!0}:h,E=function T(){for(var I=arguments.length,R=new Array(I),N=0;N<I;N++)R[N]=arguments[N];return new Promise(function(k,L){p.apply(void 0,R).then(function(H){y=0,k(H)}).catch(function(H){y<b&&m(H)?(y++,setTimeout(function(){k(T.apply(void 0,R))},c)):(y=0,L(H))})})};return E}A.retry=u},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(s,C,A){"use strict";var u=function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(A,"__esModule",{value:!0}),A.setRegion=void 0;var p=u(s("url")),b=s("./checkConfigValid");function g(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;b.checkConfigValid(y,"region");var h=c?"https://":"http://",m=v?"-internal.aliyuncs.com":".aliyuncs.com",E="vpc100-oss-cn-";return y.substr(0,E.length)===E&&(m=".aliyuncs.com"),p.default.parse(h+y+m)}A.setRegion=g},{"./checkConfigValid":52,url:472}],76:[function(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.array.find.js"),s("core-js/modules/es.object.assign.js");var b=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(A,"__esModule",{value:!0}),A.checkCredentials=A.setSTSToken=void 0;var g=s("./formatObjKey");function y(){return v.apply(this,arguments)}function v(){return v=(0,b.default)(p.default.mark(function h(){var m,E;return p.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(this.options||(this.options={}),m=new Date,!this.stsTokenFreshTime){I.next=14;break}if(!(+m-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){I.next=12;break}return this.stsTokenFreshTime=m,I.next=7,this.options.refreshSTSToken();case 7:E=I.sent,E=g.formatObjKey(E,"firstLowerCase"),E.securityToken&&(E.stsToken=E.securityToken),c(E),Object.assign(this.options,E);case 12:I.next=15;break;case 14:this.stsTokenFreshTime=m;case 15:return I.abrupt("return",null);case 16:case"end":return I.stop()}},h,this)})),v.apply(this,arguments)}A.setSTSToken=y;function c(h){var m=["accessKeySecret","accessKeyId","stsToken"],E=Object.keys(h);m.forEach(function(T){if(!E.find(function(I){return I===T}))throw Error("refreshSTSToken must return contains ".concat(T))})}A.checkCredentials=c},{"./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(s,C,A){function u(b,g,y,v,c,h,m){try{var E=b[h](m),T=E.value}catch(I){y(I);return}E.done?g(T):Promise.resolve(T).then(v,c)}function p(b){return function(){var g=this,y=arguments;return new Promise(function(v,c){var h=b.apply(g,y);function m(T){u(h,v,c,m,E,"next",T)}function E(T){u(h,v,c,m,E,"throw",T)}m(void 0)})}}C.exports=p,C.exports.__esModule=!0,C.exports.default=C.exports},{}],78:[function(s,C,A){function u(p){return p&&p.__esModule?p:{default:p}}C.exports=u,C.exports.__esModule=!0,C.exports.default=C.exports},{}],79:[function(s,C,A){function u(p){"@babel/helpers - typeof";return C.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},C.exports.__esModule=!0,C.exports.default=C.exports,u(p)}C.exports=u,C.exports.__esModule=!0,C.exports.default=C.exports},{}],80:[function(s,C,A){C.exports=s("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(s,C,A){C.exports=u,C.exports.HttpsAgent=u;function u(){}},{}],82:[function(s,C,A){(function(u){(function(){"use strict";var p=s("object-assign");function b(se,ye){if(se===ye)return 0;for(var ve=se.length,Re=ye.length,le=0,xe=Math.min(ve,Re);le<xe;++le)if(se[le]!==ye[le]){ve=se[le],Re=ye[le];break}return ve<Re?-1:Re<ve?1:0}function g(se){return u.Buffer&&typeof u.Buffer.isBuffer=="function"?u.Buffer.isBuffer(se):!!(se!=null&&se._isBuffer)}var y=s("util/"),v=Object.prototype.hasOwnProperty,c=Array.prototype.slice,h=function(){return function(){}.name==="foo"}();function m(se){return Object.prototype.toString.call(se)}function E(se){return g(se)||typeof u.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(se):se?!!(se instanceof DataView||se.buffer&&se.buffer instanceof ArrayBuffer):!1}var T=C.exports=D,I=/\s*function\s+([^\(\s]*)\s*/;function R(se){if(y.isFunction(se)){if(h)return se.name;var ye=se.toString(),ve=ye.match(I);return ve&&ve[1]}}T.AssertionError=function(ye){this.name="AssertionError",this.actual=ye.actual,this.expected=ye.expected,this.operator=ye.operator,ye.message?(this.message=ye.message,this.generatedMessage=!1):(this.message=L(this),this.generatedMessage=!0);var ve=ye.stackStartFunction||H;if(Error.captureStackTrace)Error.captureStackTrace(this,ve);else{var Re=new Error;if(Re.stack){var le=Re.stack,xe=R(ve),pe=le.indexOf(`
`+xe);if(pe>=0){var Me=le.indexOf(`
`,pe+1);le=le.substring(Me+1)}this.stack=le}}},y.inherits(T.AssertionError,Error);function N(se,ye){return typeof se=="string"?se.length<ye?se:se.slice(0,ye):se}function k(se){if(h||!y.isFunction(se))return y.inspect(se);var ye=R(se),ve=ye?": "+ye:"";return"[Function"+ve+"]"}function L(se){return N(k(se.actual),128)+" "+se.operator+" "+N(k(se.expected),128)}function H(se,ye,ve,Re,le){throw new T.AssertionError({message:ve,actual:se,expected:ye,operator:Re,stackStartFunction:le})}T.fail=H;function D(se,ye){se||H(se,!0,ye,"==",T.ok)}T.ok=D,T.equal=function(ye,ve,Re){ye!=ve&&H(ye,ve,Re,"==",T.equal)},T.notEqual=function(ye,ve,Re){ye==ve&&H(ye,ve,Re,"!=",T.notEqual)},T.deepEqual=function(ye,ve,Re){V(ye,ve,!1)||H(ye,ve,Re,"deepEqual",T.deepEqual)},T.deepStrictEqual=function(ye,ve,Re){V(ye,ve,!0)||H(ye,ve,Re,"deepStrictEqual",T.deepStrictEqual)};function V(se,ye,ve,Re){if(se===ye)return!0;if(g(se)&&g(ye))return b(se,ye)===0;if(y.isDate(se)&&y.isDate(ye))return se.getTime()===ye.getTime();if(y.isRegExp(se)&&y.isRegExp(ye))return se.source===ye.source&&se.global===ye.global&&se.multiline===ye.multiline&&se.lastIndex===ye.lastIndex&&se.ignoreCase===ye.ignoreCase;if((se===null||typeof se!="object")&&(ye===null||typeof ye!="object"))return ve?se===ye:se==ye;if(E(se)&&E(ye)&&m(se)===m(ye)&&!(se instanceof Float32Array||se instanceof Float64Array))return b(new Uint8Array(se.buffer),new Uint8Array(ye.buffer))===0;if(g(se)!==g(ye))return!1;Re=Re||{actual:[],expected:[]};var le=Re.actual.indexOf(se);return le!==-1&&le===Re.expected.indexOf(ye)?!0:(Re.actual.push(se),Re.expected.push(ye),U(se,ye,ve,Re))}function P(se){return Object.prototype.toString.call(se)=="[object Arguments]"}function U(se,ye,ve,Re){if(se==null||ye===null||ye===void 0)return!1;if(y.isPrimitive(se)||y.isPrimitive(ye))return se===ye;if(ve&&Object.getPrototypeOf(se)!==Object.getPrototypeOf(ye))return!1;var le=P(se),xe=P(ye);if(le&&!xe||!le&&xe)return!1;if(le)return se=c.call(se),ye=c.call(ye),V(se,ye,ve);var pe=ue(se),Me=ue(ye),Oe,Le;if(pe.length!==Me.length)return!1;for(pe.sort(),Me.sort(),Le=pe.length-1;Le>=0;Le--)if(pe[Le]!==Me[Le])return!1;for(Le=pe.length-1;Le>=0;Le--)if(Oe=pe[Le],!V(se[Oe],ye[Oe],ve,Re))return!1;return!0}T.notDeepEqual=function(ye,ve,Re){V(ye,ve,!1)&&H(ye,ve,Re,"notDeepEqual",T.notDeepEqual)},T.notDeepStrictEqual=G;function G(se,ye,ve){V(se,ye,!0)&&H(se,ye,ve,"notDeepStrictEqual",G)}T.strictEqual=function(ye,ve,Re){ye!==ve&&H(ye,ve,Re,"===",T.strictEqual)},T.notStrictEqual=function(ye,ve,Re){ye===ve&&H(ye,ve,Re,"!==",T.notStrictEqual)};function J(se,ye){if(!se||!ye)return!1;if(Object.prototype.toString.call(ye)=="[object RegExp]")return ye.test(se);try{if(se instanceof ye)return!0}catch(ve){}return Error.isPrototypeOf(ye)?!1:ye.call({},se)===!0}function ee(se){var ye;try{se()}catch(ve){ye=ve}return ye}function ae(se,ye,ve,Re){var le;if(typeof ye!="function")throw new TypeError('"block" argument must be a function');typeof ve=="string"&&(Re=ve,ve=null),le=ee(ye),Re=(ve&&ve.name?" ("+ve.name+").":".")+(Re?" "+Re:"."),se&&!le&&H(le,ve,"Missing expected exception"+Re);var xe=typeof Re=="string",pe=!se&&y.isError(le),Me=!se&&le&&!ve;if((pe&&xe&&J(le,ve)||Me)&&H(le,ve,"Got unwanted exception"+Re),se&&le&&ve&&!J(le,ve)||!se&&le)throw le}T.throws=function(se,ye,ve){ae(!0,se,ye,ve)},T.doesNotThrow=function(se,ye,ve){ae(!1,se,ye,ve)},T.ifError=function(se){if(se)throw se};function oe(se,ye){se||H(se,!0,ye,"==",oe)}T.strict=p(oe,T,{equal:T.strictEqual,deepEqual:T.deepStrictEqual,notEqual:T.notStrictEqual,notDeepEqual:T.notDeepStrictEqual}),T.strict.strict=T.strict;var ue=Object.keys||function(se){var ye=[];for(var ve in se)v.call(se,ve)&&ye.push(ve);return ye}}).call(this)}).call(this,typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(s,C,A){typeof Object.create=="function"?C.exports=function(p,b){p.super_=b,p.prototype=Object.create(b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})}:C.exports=function(p,b){p.super_=b;var g=function(){};g.prototype=b.prototype,p.prototype=new g,p.prototype.constructor=p}},{}],84:[function(s,C,A){C.exports=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}},{}],85:[function(s,C,A){(function(u,p){(function(){var b=/%[sdj%]/g;A.format=function(Me){if(!U(Me)){for(var Oe=[],Le=0;Le<arguments.length;Le++)Oe.push(v(arguments[Le]));return Oe.join(" ")}for(var Le=1,Pe=arguments,De=Pe.length,Ke=String(Me).replace(b,function(it){if(it==="%%")return"%";if(Le>=De)return it;switch(it){case"%s":return String(Pe[Le++]);case"%d":return Number(Pe[Le++]);case"%j":try{return JSON.stringify(Pe[Le++])}catch(ot){return"[Circular]"}default:return it}}),ze=Pe[Le];Le<De;ze=Pe[++Le])D(ze)||!ae(ze)?Ke+=" "+ze:Ke+=" "+v(ze);return Ke},A.deprecate=function(Me,Oe){if(J(p.process))return function(){return A.deprecate(Me,Oe).apply(this,arguments)};if(u.noDeprecation===!0)return Me;var Le=!1;function Pe(){if(!Le){if(u.throwDeprecation)throw new Error(Oe);u.traceDeprecation?console.trace(Oe):console.error(Oe),Le=!0}return Me.apply(this,arguments)}return Pe};var g={},y;A.debuglog=function(Me){if(J(y)&&(y=u.env.NODE_DEBUG||""),Me=Me.toUpperCase(),!g[Me])if(new RegExp("\\b"+Me+"\\b","i").test(y)){var Oe=u.pid;g[Me]=function(){var Le=A.format.apply(A,arguments);console.error("%s %d: %s",Me,Oe,Le)}}else g[Me]=function(){};return g[Me]};function v(Me,Oe){var Le={seen:[],stylize:h};return arguments.length>=3&&(Le.depth=arguments[2]),arguments.length>=4&&(Le.colors=arguments[3]),H(Oe)?Le.showHidden=Oe:Oe&&A._extend(Le,Oe),J(Le.showHidden)&&(Le.showHidden=!1),J(Le.depth)&&(Le.depth=2),J(Le.colors)&&(Le.colors=!1),J(Le.customInspect)&&(Le.customInspect=!0),Le.colors&&(Le.stylize=c),E(Le,Me,Le.depth)}A.inspect=v,v.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]},v.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(Me,Oe){var Le=v.styles[Oe];return Le?"\x1B["+v.colors[Le][0]+"m"+Me+"\x1B["+v.colors[Le][1]+"m":Me}function h(Me,Oe){return Me}function m(Me){var Oe={};return Me.forEach(function(Le,Pe){Oe[Le]=!0}),Oe}function E(Me,Oe,Le){if(Me.customInspect&&Oe&&se(Oe.inspect)&&Oe.inspect!==A.inspect&&!(Oe.constructor&&Oe.constructor.prototype===Oe)){var Pe=Oe.inspect(Le,Me);return U(Pe)||(Pe=E(Me,Pe,Le)),Pe}var De=T(Me,Oe);if(De)return De;var Ke=Object.keys(Oe),ze=m(Ke);if(Me.showHidden&&(Ke=Object.getOwnPropertyNames(Oe)),ue(Oe)&&(Ke.indexOf("message")>=0||Ke.indexOf("description")>=0))return I(Oe);if(Ke.length===0){if(se(Oe)){var it=Oe.name?": "+Oe.name:"";return Me.stylize("[Function"+it+"]","special")}if(ee(Oe))return Me.stylize(RegExp.prototype.toString.call(Oe),"regexp");if(oe(Oe))return Me.stylize(Date.prototype.toString.call(Oe),"date");if(ue(Oe))return I(Oe)}var ot="",Ge=!1,Ee=["{","}"];if(L(Oe)&&(Ge=!0,Ee=["[","]"]),se(Oe)){var fe=Oe.name?": "+Oe.name:"";ot=" [Function"+fe+"]"}if(ee(Oe)&&(ot=" "+RegExp.prototype.toString.call(Oe)),oe(Oe)&&(ot=" "+Date.prototype.toUTCString.call(Oe)),ue(Oe)&&(ot=" "+I(Oe)),Ke.length===0&&(!Ge||Oe.length==0))return Ee[0]+ot+Ee[1];if(Le<0)return ee(Oe)?Me.stylize(RegExp.prototype.toString.call(Oe),"regexp"):Me.stylize("[Object]","special");Me.seen.push(Oe);var z;return Ge?z=R(Me,Oe,Le,ze,Ke):z=Ke.map(function(X){return N(Me,Oe,Le,ze,X,Ge)}),Me.seen.pop(),k(z,ot,Ee)}function T(Me,Oe){if(J(Oe))return Me.stylize("undefined","undefined");if(U(Oe)){var Le="'"+JSON.stringify(Oe).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Me.stylize(Le,"string")}if(P(Oe))return Me.stylize(""+Oe,"number");if(H(Oe))return Me.stylize(""+Oe,"boolean");if(D(Oe))return Me.stylize("null","null")}function I(Me){return"["+Error.prototype.toString.call(Me)+"]"}function R(Me,Oe,Le,Pe,De){for(var Ke=[],ze=0,it=Oe.length;ze<it;++ze)pe(Oe,String(ze))?Ke.push(N(Me,Oe,Le,Pe,String(ze),!0)):Ke.push("");return De.forEach(function(ot){ot.match(/^\d+$/)||Ke.push(N(Me,Oe,Le,Pe,ot,!0))}),Ke}function N(Me,Oe,Le,Pe,De,Ke){var ze,it,ot;if(ot=Object.getOwnPropertyDescriptor(Oe,De)||{value:Oe[De]},ot.get?ot.set?it=Me.stylize("[Getter/Setter]","special"):it=Me.stylize("[Getter]","special"):ot.set&&(it=Me.stylize("[Setter]","special")),pe(Pe,De)||(ze="["+De+"]"),it||(Me.seen.indexOf(ot.value)<0?(D(Le)?it=E(Me,ot.value,null):it=E(Me,ot.value,Le-1),it.indexOf(`
`)>-1&&(Ke?it=it.split(`
`).map(function(Ge){return" "+Ge}).join(`
`).substr(2):it=`
`+it.split(`
`).map(function(Ge){return" "+Ge}).join(`
`))):it=Me.stylize("[Circular]","special")),J(ze)){if(Ke&&De.match(/^\d+$/))return it;ze=JSON.stringify(""+De),ze.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ze=ze.substr(1,ze.length-2),ze=Me.stylize(ze,"name")):(ze=ze.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ze=Me.stylize(ze,"string"))}return ze+": "+it}function k(Me,Oe,Le){var Pe=0,De=Me.reduce(function(Ke,ze){return Pe++,ze.indexOf(`
`)>=0&&Pe++,Ke+ze.replace(/\u001b\[\d\d?m/g,"").length+1},0);return De>60?Le[0]+(Oe===""?"":Oe+`
`)+" "+Me.join(`,
`)+" "+Le[1]:Le[0]+Oe+" "+Me.join(", ")+" "+Le[1]}function L(Me){return Array.isArray(Me)}A.isArray=L;function H(Me){return typeof Me=="boolean"}A.isBoolean=H;function D(Me){return Me===null}A.isNull=D;function V(Me){return Me==null}A.isNullOrUndefined=V;function P(Me){return typeof Me=="number"}A.isNumber=P;function U(Me){return typeof Me=="string"}A.isString=U;function G(Me){return typeof Me=="symbol"}A.isSymbol=G;function J(Me){return Me===void 0}A.isUndefined=J;function ee(Me){return ae(Me)&&ve(Me)==="[object RegExp]"}A.isRegExp=ee;function ae(Me){return typeof Me=="object"&&Me!==null}A.isObject=ae;function oe(Me){return ae(Me)&&ve(Me)==="[object Date]"}A.isDate=oe;function ue(Me){return ae(Me)&&(ve(Me)==="[object Error]"||Me instanceof Error)}A.isError=ue;function se(Me){return typeof Me=="function"}A.isFunction=se;function ye(Me){return Me===null||typeof Me=="boolean"||typeof Me=="number"||typeof Me=="string"||typeof Me=="symbol"||typeof Me=="undefined"}A.isPrimitive=ye,A.isBuffer=s("./support/isBuffer");function ve(Me){return Object.prototype.toString.call(Me)}function Re(Me){return Me<10?"0"+Me.toString(10):Me.toString(10)}var le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function xe(){var Me=new Date,Oe=[Re(Me.getHours()),Re(Me.getMinutes()),Re(Me.getSeconds())].join(":");return[Me.getDate(),le[Me.getMonth()],Oe].join(" ")}A.log=function(){console.log("%s - %s",xe(),A.format.apply(A,arguments))},A.inherits=s("inherits"),A._extend=function(Me,Oe){if(!Oe||!ae(Oe))return Me;for(var Le=Object.keys(Oe),Pe=Le.length;Pe--;)Me[Le[Pe]]=Oe[Le[Pe]];return Me};function pe(Me,Oe){return Object.prototype.hasOwnProperty.call(Me,Oe)}}).call(this)}).call(this,s("_process"),typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(s,C,A){(function(u){(function(){"use strict";var p=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],b=typeof globalThis=="undefined"?u:globalThis;C.exports=function(){for(var y=[],v=0;v<p.length;v++)typeof b[p[v]]=="function"&&(y[y.length]=p[v]);return y}}).call(this)}).call(this,typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(s,C,A){"use strict";A.byteLength=h,A.toByteArray=E,A.fromByteArray=R;for(var u=[],p=[],b=typeof Uint8Array!="undefined"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,v=g.length;y<v;++y)u[y]=g[y],p[g.charCodeAt(y)]=y;p[45]=62,p[95]=63;function c(N){var k=N.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var L=N.indexOf("=");L===-1&&(L=k);var H=L===k?0:4-L%4;return[L,H]}function h(N){var k=c(N),L=k[0],H=k[1];return(L+H)*3/4-H}function m(N,k,L){return(k+L)*3/4-L}function E(N){var k,L=c(N),H=L[0],D=L[1],V=new b(m(N,H,D)),P=0,U=D>0?H-4:H,G;for(G=0;G<U;G+=4)k=p[N.charCodeAt(G)]<<18|p[N.charCodeAt(G+1)]<<12|p[N.charCodeAt(G+2)]<<6|p[N.charCodeAt(G+3)],V[P++]=k>>16&255,V[P++]=k>>8&255,V[P++]=k&255;return D===2&&(k=p[N.charCodeAt(G)]<<2|p[N.charCodeAt(G+1)]>>4,V[P++]=k&255),D===1&&(k=p[N.charCodeAt(G)]<<10|p[N.charCodeAt(G+1)]<<4|p[N.charCodeAt(G+2)]>>2,V[P++]=k>>8&255,V[P++]=k&255),V}function T(N){return u[N>>18&63]+u[N>>12&63]+u[N>>6&63]+u[N&63]}function I(N,k,L){for(var H,D=[],V=k;V<L;V+=3)H=(N[V]<<16&16711680)+(N[V+1]<<8&65280)+(N[V+2]&255),D.push(T(H));return D.join("")}function R(N){for(var k,L=N.length,H=L%3,D=[],V=16383,P=0,U=L-H;P<U;P+=V)D.push(I(N,P,P+V>U?U:P+V));return H===1?(k=N[L-1],D.push(u[k>>2]+u[k<<4&63]+"==")):H===2&&(k=(N[L-2]<<8)+N[L-1],D.push(u[k>>10]+u[k>>4&63]+u[k<<2&63]+"=")),D.join("")}},{}],88:[function(s,C,A){(function(u,p,b){typeof C!="undefined"&&C.exports?C.exports=b():typeof S=="function"&&S.amd?S(p,b):u[p]=b()})(this,"bowser",function(){var u=!0;function p(m){function E(Oe){var Le=m.match(Oe);return Le&&Le.length>1&&Le[1]||""}function T(Oe){var Le=m.match(Oe);return Le&&Le.length>1&&Le[2]||""}var I=E(/(ipod|iphone|ipad)/i).toLowerCase(),R=/like android/i.test(m),N=!R&&/android/i.test(m),k=/nexus\s*[0-6]\s*/i.test(m),L=!k&&/nexus\s*[0-9]+/i.test(m),H=/CrOS/.test(m),D=/silk/i.test(m),V=/sailfish/i.test(m),P=/tizen/i.test(m),U=/(web|hpw)(o|0)s/i.test(m),G=/windows phone/i.test(m),J=/SamsungBrowser/i.test(m),ee=!G&&/windows/i.test(m),ae=!I&&!D&&/macintosh/i.test(m),oe=!N&&!V&&!P&&!U&&/linux/i.test(m),ue=T(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),se=E(/version\/(\d+(\.\d+)?)/i),ye=/tablet/i.test(m)&&!/tablet pc/i.test(m),ve=!ye&&/[^-]mobi/i.test(m),Re=/xbox/i.test(m),le;/opera/i.test(m)?le={name:"Opera",opera:u,version:se||E(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(m)?le={name:"Opera",opera:u,version:E(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||se}:/SamsungBrowser/i.test(m)?le={name:"Samsung Internet for Android",samsungBrowser:u,version:se||E(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(m)?le={name:"NAVER Whale browser",whale:u,version:E(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(m)?le={name:"MZ Browser",mzbrowser:u,version:E(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(m)?le={name:"Opera Coast",coast:u,version:se||E(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(m)?le={name:"Focus",focus:u,version:E(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(m)?le={name:"Yandex Browser",yandexbrowser:u,version:se||E(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(m)?le={name:"UC Browser",ucbrowser:u,version:E(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(m)?le={name:"Maxthon",maxthon:u,version:E(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(m)?le={name:"Epiphany",epiphany:u,version:E(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(m)?le={name:"Puffin",puffin:u,version:E(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(m)?le={name:"Sleipnir",sleipnir:u,version:E(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(m)?le={name:"K-Meleon",kMeleon:u,version:E(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:G?(le={name:"Windows Phone",osname:"Windows Phone",windowsphone:u},ue?(le.msedge=u,le.version=ue):(le.msie=u,le.version=E(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(m)?le={name:"Internet Explorer",msie:u,version:E(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:H?le={name:"Chrome",osname:"Chrome OS",chromeos:u,chromeBook:u,chrome:u,version:E(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(m)?le={name:"Microsoft Edge",msedge:u,version:ue}:/vivaldi/i.test(m)?le={name:"Vivaldi",vivaldi:u,version:E(/vivaldi\/(\d+(\.\d+)?)/i)||se}:V?le={name:"Sailfish",osname:"Sailfish OS",sailfish:u,version:E(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(m)?le={name:"SeaMonkey",seamonkey:u,version:E(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(m)?(le={name:"Firefox",firefox:u,version:E(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(m)&&(le.firefoxos=u,le.osname="Firefox OS")):D?le={name:"Amazon Silk",silk:u,version:E(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(m)?le={name:"PhantomJS",phantom:u,version:E(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(m)?le={name:"SlimerJS",slimer:u,version:E(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(m)||/rim\stablet/i.test(m)?le={name:"BlackBerry",osname:"BlackBerry OS",blackberry:u,version:se||E(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:U?(le={name:"WebOS",osname:"WebOS",webos:u,version:se||E(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(m)&&(le.touchpad=u)):/bada/i.test(m)?le={name:"Bada",osname:"Bada",bada:u,version:E(/dolfin\/(\d+(\.\d+)?)/i)}:P?le={name:"Tizen",osname:"Tizen",tizen:u,version:E(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||se}:/qupzilla/i.test(m)?le={name:"QupZilla",qupzilla:u,version:E(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||se}:/chromium/i.test(m)?le={name:"Chromium",chromium:u,version:E(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||se}:/chrome|crios|crmo/i.test(m)?le={name:"Chrome",chrome:u,version:E(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:N?le={name:"Android",version:se}:/safari|applewebkit/i.test(m)?(le={name:"Safari",safari:u},se&&(le.version=se)):I?(le={name:I=="iphone"?"iPhone":I=="ipad"?"iPad":"iPod"},se&&(le.version=se)):/googlebot/i.test(m)?le={name:"Googlebot",googlebot:u,version:E(/googlebot\/(\d+(\.\d+))/i)||se}:le={name:E(/^(.*)\/(.*) /),version:T(/^(.*)\/(.*) /)},!le.msedge&&/(apple)?webkit/i.test(m)?(/(apple)?webkit\/537\.36/i.test(m)?(le.name=le.name||"Blink",le.blink=u):(le.name=le.name||"Webkit",le.webkit=u),!le.version&&se&&(le.version=se)):!le.opera&&/gecko\//i.test(m)&&(le.name=le.name||"Gecko",le.gecko=u,le.version=le.version||E(/gecko\/(\d+(\.\d+)?)/i)),!le.windowsphone&&(N||le.silk)?(le.android=u,le.osname="Android"):!le.windowsphone&&I?(le[I]=u,le.ios=u,le.osname="iOS"):ae?(le.mac=u,le.osname="macOS"):Re?(le.xbox=u,le.osname="Xbox"):ee?(le.windows=u,le.osname="Windows"):oe&&(le.linux=u,le.osname="Linux");function xe(Oe){switch(Oe){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 pe="";le.windows?pe=xe(E(/Windows ((NT|XP)( \d\d?.\d)?)/i)):le.windowsphone?pe=E(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):le.mac?(pe=E(/Mac OS X (\d+([_\.\s]\d+)*)/i),pe=pe.replace(/[_\s]/g,".")):I?(pe=E(/os (\d+([_\s]\d+)*) like mac os x/i),pe=pe.replace(/[_\s]/g,".")):N?pe=E(/android[ \/-](\d+(\.\d+)*)/i):le.webos?pe=E(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):le.blackberry?pe=E(/rim\stablet\sos\s(\d+(\.\d+)*)/i):le.bada?pe=E(/bada\/(\d+(\.\d+)*)/i):le.tizen&&(pe=E(/tizen[\/\s](\d+(\.\d+)*)/i)),pe&&(le.osversion=pe);var Me=!le.windows&&pe.split(".")[0];return ye||L||I=="ipad"||N&&(Me==3||Me>=4&&!ve)||le.silk?le.tablet=u:(ve||I=="iphone"||I=="ipod"||N||k||le.blackberry||le.webos||le.bada)&&(le.mobile=u),le.msedge||le.msie&&le.version>=10||le.yandexbrowser&&le.version>=15||le.vivaldi&&le.version>=1||le.chrome&&le.version>=20||le.samsungBrowser&&le.version>=4||le.whale&&v([le.version,"1.0"])===1||le.mzbrowser&&v([le.version,"6.0"])===1||le.focus&&v([le.version,"1.0"])===1||le.firefox&&le.version>=20||le.safari&&le.version>=6||le.opera&&le.version>=10||le.ios&&le.osversion&&le.osversion.split(".")[0]>=6||le.blackberry&&le.version>=10.1||le.chromium&&le.version>=20?le.a=u:le.msie&&le.version<10||le.chrome&&le.version<20||le.firefox&&le.version<20||le.safari&&le.version<6||le.opera&&le.version<10||le.ios&&le.osversion&&le.osversion.split(".")[0]<6||le.chromium&&le.version<20?le.c=u:le.x=u,le}var b=p(typeof navigator!="undefined"&&navigator.userAgent||"");b.test=function(m){for(var E=0;E<m.length;++E){var T=m[E];if(typeof T=="string"&&T in b)return!0}return!1};function g(m){return m.split(".").length}function y(m,E){var T=[],I;if(Array.prototype.map)return Array.prototype.map.call(m,E);for(I=0;I<m.length;I++)T.push(E(m[I]));return T}function v(m){for(var E=Math.max(g(m[0]),g(m[1])),T=y(m,function(I){var R=E-g(I);return I=I+new Array(R+1).join(".0"),y(I.split("."),function(N){return new Array(20-N.length).join("0")+N}).reverse()});--E>=0;){if(T[0][E]>T[1][E])return 1;if(T[0][E]===T[1][E]){if(E===0)return 0}else return-1}}function c(m,E,T){var I=b;typeof E=="string"&&(T=E,E=void 0),E===void 0&&(E=!1),T&&(I=p(T));var R=""+I.version;for(var N in m)if(m.hasOwnProperty(N)&&I[N]){if(typeof m[N]!="string")throw new Error("Browser version in the minVersion map should be a string: "+N+": "+String(m));return v([R,m[N]])<0}return E}function h(m,E,T){return!c(m,E,T)}return b.isUnsupportedBrowser=c,b.compareVersions=v,b.check=h,b._detect=p,b.detect=p,b})},{}],89:[function(s,C,A){},{}],90:[function(s,C,A){(function(u){(function(){"use strict";var p=s("base64-js"),b=s("ieee754");A.Buffer=c,A.SlowBuffer=H,A.INSPECT_MAX_BYTES=50;var g=2147483647;A.kMaxLength=g,c.TYPED_ARRAY_SUPPORT=y(),!c.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 y(){try{var re=new Uint8Array(1);return re.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},re.foo()===42}catch(he){return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function v(re){if(re>g)throw new RangeError('The value "'+re+'" is invalid for option "size"');var he=new Uint8Array(re);return he.__proto__=c.prototype,he}function c(re,he,_e){if(typeof re=="number"){if(typeof he=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return T(re)}return h(re,he,_e)}typeof Symbol!="undefined"&&Symbol.species!=null&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192;function h(re,he,_e){if(typeof re=="string")return I(re,he);if(ArrayBuffer.isView(re))return R(re);if(re==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re);if(Ce(re,ArrayBuffer)||re&&Ce(re.buffer,ArrayBuffer))return N(re,he,_e);if(typeof re=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Be=re.valueOf&&re.valueOf();if(Be!=null&&Be!==re)return c.from(Be,he,_e);var Ue=k(re);if(Ue)return Ue;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof re[Symbol.toPrimitive]=="function")return c.from(re[Symbol.toPrimitive]("string"),he,_e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re)}c.from=function(re,he,_e){return h(re,he,_e)},c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array;function m(re){if(typeof re!="number")throw new TypeError('"size" argument must be of type number');if(re<0)throw new RangeError('The value "'+re+'" is invalid for option "size"')}function E(re,he,_e){return m(re),re<=0?v(re):he!==void 0?typeof _e=="string"?v(re).fill(he,_e):v(re).fill(he):v(re)}c.alloc=function(re,he,_e){return E(re,he,_e)};function T(re){return m(re),v(re<0?0:L(re)|0)}c.allocUnsafe=function(re){return T(re)},c.allocUnsafeSlow=function(re){return T(re)};function I(re,he){if((typeof he!="string"||he==="")&&(he="utf8"),!c.isEncoding(he))throw new TypeError("Unknown encoding: "+he);var _e=D(re,he)|0,Be=v(_e),Ue=Be.write(re,he);return Ue!==_e&&(Be=Be.slice(0,Ue)),Be}function R(re){for(var he=re.length<0?0:L(re.length)|0,_e=v(he),Be=0;Be<he;Be+=1)_e[Be]=re[Be]&255;return _e}function N(re,he,_e){if(he<0||re.byteLength<he)throw new RangeError('"offset" is outside of buffer bounds');if(re.byteLength<he+(_e||0))throw new RangeError('"length" is outside of buffer bounds');var Be;return he===void 0&&_e===void 0?Be=new Uint8Array(re):_e===void 0?Be=new Uint8Array(re,he):Be=new Uint8Array(re,he,_e),Be.__proto__=c.prototype,Be}function k(re){if(c.isBuffer(re)){var he=L(re.length)|0,_e=v(he);return _e.length===0||re.copy(_e,0,0,he),_e}if(re.length!==void 0)return typeof re.length!="number"||ne(re.length)?v(0):R(re);if(re.type==="Buffer"&&Array.isArray(re.data))return R(re.data)}function L(re){if(re>=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return re|0}function H(re){return+re!=re&&(re=0),c.alloc(+re)}c.isBuffer=function(he){return he!=null&&he._isBuffer===!0&&he!==c.prototype},c.compare=function(he,_e){if(Ce(he,Uint8Array)&&(he=c.from(he,he.offset,he.byteLength)),Ce(_e,Uint8Array)&&(_e=c.from(_e,_e.offset,_e.byteLength)),!c.isBuffer(he)||!c.isBuffer(_e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(he===_e)return 0;for(var Be=he.length,Ue=_e.length,rt=0,et=Math.min(Be,Ue);rt<et;++rt)if(he[rt]!==_e[rt]){Be=he[rt],Ue=_e[rt];break}return Be<Ue?-1:Ue<Be?1:0},c.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}},c.concat=function(he,_e){if(!Array.isArray(he))throw new TypeError('"list" argument must be an Array of Buffers');if(he.length===0)return c.alloc(0);var Be;if(_e===void 0)for(_e=0,Be=0;Be<he.length;++Be)_e+=he[Be].length;var Ue=c.allocUnsafe(_e),rt=0;for(Be=0;Be<he.length;++Be){var et=he[Be];if(Ce(et,Uint8Array)&&(et=c.from(et)),!c.isBuffer(et))throw new TypeError('"list" argument must be an Array of Buffers');et.copy(Ue,rt),rt+=et.length}return Ue};function D(re,he){if(c.isBuffer(re))return re.length;if(ArrayBuffer.isView(re)||Ce(re,ArrayBuffer))return re.byteLength;if(typeof re!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof re);var _e=re.length,Be=arguments.length>2&&arguments[2]===!0;if(!Be&&_e===0)return 0;for(var Ue=!1;;)switch(he){case"ascii":case"latin1":case"binary":return _e;case"utf8":case"utf-8":return Ee(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _e*2;case"hex":return _e>>>1;case"base64":return X(re).length;default:if(Ue)return Be?-1:Ee(re).length;he=(""+he).toLowerCase(),Ue=!0}}c.byteLength=D;function V(re,he,_e){var Be=!1;if((he===void 0||he<0)&&(he=0),he>this.length||((_e===void 0||_e>this.length)&&(_e=this.length),_e<=0)||(_e>>>=0,he>>>=0,_e<=he))return"";for(re||(re="utf8");;)switch(re){case"hex":return Me(this,he,_e);case"utf8":case"utf-8":return ve(this,he,_e);case"ascii":return xe(this,he,_e);case"latin1":case"binary":return pe(this,he,_e);case"base64":return ye(this,he,_e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oe(this,he,_e);default:if(Be)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),Be=!0}}c.prototype._isBuffer=!0;function P(re,he,_e){var Be=re[he];re[he]=re[_e],re[_e]=Be}c.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 _e=0;_e<he;_e+=2)P(this,_e,_e+1);return this},c.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 _e=0;_e<he;_e+=4)P(this,_e,_e+3),P(this,_e+1,_e+2);return this},c.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 _e=0;_e<he;_e+=8)P(this,_e,_e+7),P(this,_e+1,_e+6),P(this,_e+2,_e+5),P(this,_e+3,_e+4);return this},c.prototype.toString=function(){var he=this.length;return he===0?"":arguments.length===0?ve(this,0,he):V.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(he){if(!c.isBuffer(he))throw new TypeError("Argument must be a Buffer");return this===he?!0:c.compare(this,he)===0},c.prototype.inspect=function(){var he="",_e=A.INSPECT_MAX_BYTES;return he=this.toString("hex",0,_e).replace(/(.{2})/g,"$1 ").trim(),this.length>_e&&(he+=" ... "),"<Buffer "+he+">"},c.prototype.compare=function(he,_e,Be,Ue,rt){if(Ce(he,Uint8Array)&&(he=c.from(he,he.offset,he.byteLength)),!c.isBuffer(he))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof he);if(_e===void 0&&(_e=0),Be===void 0&&(Be=he?he.length:0),Ue===void 0&&(Ue=0),rt===void 0&&(rt=this.length),_e<0||Be>he.length||Ue<0||rt>this.length)throw new RangeError("out of range index");if(Ue>=rt&&_e>=Be)return 0;if(Ue>=rt)return-1;if(_e>=Be)return 1;if(_e>>>=0,Be>>>=0,Ue>>>=0,rt>>>=0,this===he)return 0;for(var et=rt-Ue,dt=Be-_e,Ot=Math.min(et,dt),pt=this.slice(Ue,rt),nt=he.slice(_e,Be),ut=0;ut<Ot;++ut)if(pt[ut]!==nt[ut]){et=pt[ut],dt=nt[ut];break}return et<dt?-1:dt<et?1:0};function U(re,he,_e,Be,Ue){if(re.length===0)return-1;if(typeof _e=="string"?(Be=_e,_e=0):_e>2147483647?_e=2147483647:_e<-2147483648&&(_e=-2147483648),_e=+_e,ne(_e)&&(_e=Ue?0:re.length-1),_e<0&&(_e=re.length+_e),_e>=re.length){if(Ue)return-1;_e=re.length-1}else if(_e<0)if(Ue)_e=0;else return-1;if(typeof he=="string"&&(he=c.from(he,Be)),c.isBuffer(he))return he.length===0?-1:G(re,he,_e,Be,Ue);if(typeof he=="number")return he=he&255,typeof Uint8Array.prototype.indexOf=="function"?Ue?Uint8Array.prototype.indexOf.call(re,he,_e):Uint8Array.prototype.lastIndexOf.call(re,he,_e):G(re,[he],_e,Be,Ue);throw new TypeError("val must be string, number or Buffer")}function G(re,he,_e,Be,Ue){var rt=1,et=re.length,dt=he.length;if(Be!==void 0&&(Be=String(Be).toLowerCase(),Be==="ucs2"||Be==="ucs-2"||Be==="utf16le"||Be==="utf-16le")){if(re.length<2||he.length<2)return-1;rt=2,et/=2,dt/=2,_e/=2}function Ot(vt,Ct){return rt===1?vt[Ct]:vt.readUInt16BE(Ct*rt)}var pt;if(Ue){var nt=-1;for(pt=_e;pt<et;pt++)if(Ot(re,pt)===Ot(he,nt===-1?0:pt-nt)){if(nt===-1&&(nt=pt),pt-nt+1===dt)return nt*rt}else nt!==-1&&(pt-=pt-nt),nt=-1}else for(_e+dt>et&&(_e=et-dt),pt=_e;pt>=0;pt--){for(var ut=!0,Tt=0;Tt<dt;Tt++)if(Ot(re,pt+Tt)!==Ot(he,Tt)){ut=!1;break}if(ut)return pt}return-1}c.prototype.includes=function(he,_e,Be){return this.indexOf(he,_e,Be)!==-1},c.prototype.indexOf=function(he,_e,Be){return U(this,he,_e,Be,!0)},c.prototype.lastIndexOf=function(he,_e,Be){return U(this,he,_e,Be,!1)};function J(re,he,_e,Be){_e=Number(_e)||0;var Ue=re.length-_e;Be?(Be=Number(Be),Be>Ue&&(Be=Ue)):Be=Ue;var rt=he.length;Be>rt/2&&(Be=rt/2);for(var et=0;et<Be;++et){var dt=parseInt(he.substr(et*2,2),16);if(ne(dt))return et;re[_e+et]=dt}return et}function ee(re,he,_e,Be){return de(Ee(he,re.length-_e),re,_e,Be)}function ae(re,he,_e,Be){return de(fe(he),re,_e,Be)}function oe(re,he,_e,Be){return ae(re,he,_e,Be)}function ue(re,he,_e,Be){return de(X(he),re,_e,Be)}function se(re,he,_e,Be){return de(z(he,re.length-_e),re,_e,Be)}c.prototype.write=function(he,_e,Be,Ue){if(_e===void 0)Ue="utf8",Be=this.length,_e=0;else if(Be===void 0&&typeof _e=="string")Ue=_e,Be=this.length,_e=0;else if(isFinite(_e))_e=_e>>>0,isFinite(Be)?(Be=Be>>>0,Ue===void 0&&(Ue="utf8")):(Ue=Be,Be=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var rt=this.length-_e;if((Be===void 0||Be>rt)&&(Be=rt),he.length>0&&(Be<0||_e<0)||_e>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ue||(Ue="utf8");for(var et=!1;;)switch(Ue){case"hex":return J(this,he,_e,Be);case"utf8":case"utf-8":return ee(this,he,_e,Be);case"ascii":return ae(this,he,_e,Be);case"latin1":case"binary":return oe(this,he,_e,Be);case"base64":return ue(this,he,_e,Be);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,he,_e,Be);default:if(et)throw new TypeError("Unknown encoding: "+Ue);Ue=(""+Ue).toLowerCase(),et=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ye(re,he,_e){return he===0&&_e===re.length?p.fromByteArray(re):p.fromByteArray(re.slice(he,_e))}function ve(re,he,_e){_e=Math.min(re.length,_e);for(var Be=[],Ue=he;Ue<_e;){var rt=re[Ue],et=null,dt=rt>239?4:rt>223?3:rt>191?2:1;if(Ue+dt<=_e){var Ot,pt,nt,ut;switch(dt){case 1:rt<128&&(et=rt);break;case 2:Ot=re[Ue+1],(Ot&192)===128&&(ut=(rt&31)<<6|Ot&63,ut>127&&(et=ut));break;case 3:Ot=re[Ue+1],pt=re[Ue+2],(Ot&192)===128&&(pt&192)===128&&(ut=(rt&15)<<12|(Ot&63)<<6|pt&63,ut>2047&&(ut<55296||ut>57343)&&(et=ut));break;case 4:Ot=re[Ue+1],pt=re[Ue+2],nt=re[Ue+3],(Ot&192)===128&&(pt&192)===128&&(nt&192)===128&&(ut=(rt&15)<<18|(Ot&63)<<12|(pt&63)<<6|nt&63,ut>65535&&ut<1114112&&(et=ut))}}et===null?(et=65533,dt=1):et>65535&&(et-=65536,Be.push(et>>>10&1023|55296),et=56320|et&1023),Be.push(et),Ue+=dt}return le(Be)}var Re=4096;function le(re){var he=re.length;if(he<=Re)return String.fromCharCode.apply(String,re);for(var _e="",Be=0;Be<he;)_e+=String.fromCharCode.apply(String,re.slice(Be,Be+=Re));return _e}function xe(re,he,_e){var Be="";_e=Math.min(re.length,_e);for(var Ue=he;Ue<_e;++Ue)Be+=String.fromCharCode(re[Ue]&127);return Be}function pe(re,he,_e){var Be="";_e=Math.min(re.length,_e);for(var Ue=he;Ue<_e;++Ue)Be+=String.fromCharCode(re[Ue]);return Be}function Me(re,he,_e){var Be=re.length;(!he||he<0)&&(he=0),(!_e||_e<0||_e>Be)&&(_e=Be);for(var Ue="",rt=he;rt<_e;++rt)Ue+=Ge(re[rt]);return Ue}function Oe(re,he,_e){for(var Be=re.slice(he,_e),Ue="",rt=0;rt<Be.length;rt+=2)Ue+=String.fromCharCode(Be[rt]+Be[rt+1]*256);return Ue}c.prototype.slice=function(he,_e){var Be=this.length;he=~~he,_e=_e===void 0?Be:~~_e,he<0?(he+=Be,he<0&&(he=0)):he>Be&&(he=Be),_e<0?(_e+=Be,_e<0&&(_e=0)):_e>Be&&(_e=Be),_e<he&&(_e=he);var Ue=this.subarray(he,_e);return Ue.__proto__=c.prototype,Ue};function Le(re,he,_e){if(re%1!==0||re<0)throw new RangeError("offset is not uint");if(re+he>_e)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(he,_e,Be){he=he>>>0,_e=_e>>>0,Be||Le(he,_e,this.length);for(var Ue=this[he],rt=1,et=0;++et<_e&&(rt*=256);)Ue+=this[he+et]*rt;return Ue},c.prototype.readUIntBE=function(he,_e,Be){he=he>>>0,_e=_e>>>0,Be||Le(he,_e,this.length);for(var Ue=this[he+--_e],rt=1;_e>0&&(rt*=256);)Ue+=this[he+--_e]*rt;return Ue},c.prototype.readUInt8=function(he,_e){return he=he>>>0,_e||Le(he,1,this.length),this[he]},c.prototype.readUInt16LE=function(he,_e){return he=he>>>0,_e||Le(he,2,this.length),this[he]|this[he+1]<<8},c.prototype.readUInt16BE=function(he,_e){return he=he>>>0,_e||Le(he,2,this.length),this[he]<<8|this[he+1]},c.prototype.readUInt32LE=function(he,_e){return he=he>>>0,_e||Le(he,4,this.length),(this[he]|this[he+1]<<8|this[he+2]<<16)+this[he+3]*16777216},c.prototype.readUInt32BE=function(he,_e){return he=he>>>0,_e||Le(he,4,this.length),this[he]*16777216+(this[he+1]<<16|this[he+2]<<8|this[he+3])},c.prototype.readIntLE=function(he,_e,Be){he=he>>>0,_e=_e>>>0,Be||Le(he,_e,this.length);for(var Ue=this[he],rt=1,et=0;++et<_e&&(rt*=256);)Ue+=this[he+et]*rt;return rt*=128,Ue>=rt&&(Ue-=Math.pow(2,8*_e)),Ue},c.prototype.readIntBE=function(he,_e,Be){he=he>>>0,_e=_e>>>0,Be||Le(he,_e,this.length);for(var Ue=_e,rt=1,et=this[he+--Ue];Ue>0&&(rt*=256);)et+=this[he+--Ue]*rt;return rt*=128,et>=rt&&(et-=Math.pow(2,8*_e)),et},c.prototype.readInt8=function(he,_e){return he=he>>>0,_e||Le(he,1,this.length),this[he]&128?(255-this[he]+1)*-1:this[he]},c.prototype.readInt16LE=function(he,_e){he=he>>>0,_e||Le(he,2,this.length);var Be=this[he]|this[he+1]<<8;return Be&32768?Be|4294901760:Be},c.prototype.readInt16BE=function(he,_e){he=he>>>0,_e||Le(he,2,this.length);var Be=this[he+1]|this[he]<<8;return Be&32768?Be|4294901760:Be},c.prototype.readInt32LE=function(he,_e){return he=he>>>0,_e||Le(he,4,this.length),this[he]|this[he+1]<<8|this[he+2]<<16|this[he+3]<<24},c.prototype.readInt32BE=function(he,_e){return he=he>>>0,_e||Le(he,4,this.length),this[he]<<24|this[he+1]<<16|this[he+2]<<8|this[he+3]},c.prototype.readFloatLE=function(he,_e){return he=he>>>0,_e||Le(he,4,this.length),b.read(this,he,!0,23,4)},c.prototype.readFloatBE=function(he,_e){return he=he>>>0,_e||Le(he,4,this.length),b.read(this,he,!1,23,4)},c.prototype.readDoubleLE=function(he,_e){return he=he>>>0,_e||Le(he,8,this.length),b.read(this,he,!0,52,8)},c.prototype.readDoubleBE=function(he,_e){return he=he>>>0,_e||Le(he,8,this.length),b.read(this,he,!1,52,8)};function Pe(re,he,_e,Be,Ue,rt){if(!c.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(he>Ue||he<rt)throw new RangeError('"value" argument is out of bounds');if(_e+Be>re.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(he,_e,Be,Ue){if(he=+he,_e=_e>>>0,Be=Be>>>0,!Ue){var rt=Math.pow(2,8*Be)-1;Pe(this,he,_e,Be,rt,0)}var et=1,dt=0;for(this[_e]=he&255;++dt<Be&&(et*=256);)this[_e+dt]=he/et&255;return _e+Be},c.prototype.writeUIntBE=function(he,_e,Be,Ue){if(he=+he,_e=_e>>>0,Be=Be>>>0,!Ue){var rt=Math.pow(2,8*Be)-1;Pe(this,he,_e,Be,rt,0)}var et=Be-1,dt=1;for(this[_e+et]=he&255;--et>=0&&(dt*=256);)this[_e+et]=he/dt&255;return _e+Be},c.prototype.writeUInt8=function(he,_e,Be){return he=+he,_e=_e>>>0,Be||Pe(this,he,_e,1,255,0),this[_e]=he&255,_e+1},c.prototype.writeUInt16LE=function(he,_e,Be){return he=+he,_e=_e>>>0,Be||Pe(this,he,_e,2,65535,0),this[_e]=he&255,this[_e+1]=he>>>8,_e+2},c.prototype.writeUInt16BE=function(he,_e,Be){return he=+he,_e=_e>>>0,Be||Pe(this,he,_e,2,65535,0),this[_e]=he>>>8,this[_e+1]=he&255,_e+2},c.prototype.writeUInt32LE=function(he,_e,Be){return he=+he,_e=_e>>>0,Be||Pe(this,he,_e,4,4294967295,0),this[_e+3]=he>>>24,this[_e+2]=he>>>16,this[_e+1]=he>>>8,this[_e]=he&255,_e+4},c.prototype.writeUInt32BE=function(he,_e,Be){return he=+he,_e=_e>>>0,Be||Pe(this,he,_e,4,4294967295,0),this[_e]=he>>>24,this[_e+1]=he>>>16,this[_e+2]=he>>>8,this[_e+3]=he&255,_e+4},c.prototype.writeIntLE=function(he,_e,Be,Ue){if(he=+he,_e=_e>>>0,!Ue){var rt=Math.pow(2,8*Be-1);Pe(this,he,_e,Be,rt-1,-rt)}var et=0,dt=1,Ot=0;for(this[_e]=he&255;++et<Be&&(dt*=256);)he<0&&Ot===0&&this[_e+et-1]!==0&&(Ot=1),this[_e+et]=(he/dt>>0)-Ot&255;return _e+Be},c.prototype.writeIntBE=function(he,_e,Be,Ue){if(he=+he,_e=_e>>>0,!Ue){var rt=Math.pow(2,8*Be-1);Pe(this,he,_e,Be,rt-1,-rt)}var et=Be-1,dt=1,Ot=0;for(this[_e+et]=he&255;--et>=0&&(dt*=256);)he<0&&Ot===0&&this[_e+et+1]!==0&&(Ot=1),this[_e+et]=(he/dt>>0)-Ot&255;return _e+Be},c.prototype.writeInt8=function(he,_e,Be){return he=+he,_e=_e>>>0,Be||Pe(this,he,_e,1,127,-128),he<0&&(he=255+he+1),this[_e]=he&255,_e+1},c.prototype.writeInt16LE=function(he,_e,Be){return he=+he,_e=_e>>>0,Be||Pe(this,he,_e,2,32767,-32768),this[_e]=he&255,this[_e+1]=he>>>8,_e+2},c.prototype.writeInt16BE=function(he,_e,Be){return he=+he,_e=_e>>>0,Be||Pe(this,he,_e,2,32767,-32768),this[_e]=he>>>8,this[_e+1]=he&255,_e+2},c.prototype.writeInt32LE=function(he,_e,Be){return he=+he,_e=_e>>>0,Be||Pe(this,he,_e,4,2147483647,-2147483648),this[_e]=he&255,this[_e+1]=he>>>8,this[_e+2]=he>>>16,this[_e+3]=he>>>24,_e+4},c.prototype.writeInt32BE=function(he,_e,Be){return he=+he,_e=_e>>>0,Be||Pe(this,he,_e,4,2147483647,-2147483648),he<0&&(he=4294967295+he+1),this[_e]=he>>>24,this[_e+1]=he>>>16,this[_e+2]=he>>>8,this[_e+3]=he&255,_e+4};function De(re,he,_e,Be,Ue,rt){if(_e+Be>re.length)throw new RangeError("Index out of range");if(_e<0)throw new RangeError("Index out of range")}function Ke(re,he,_e,Be,Ue){return he=+he,_e=_e>>>0,Ue||De(re,he,_e,4,34028234663852886e22,-34028234663852886e22),b.write(re,he,_e,Be,23,4),_e+4}c.prototype.writeFloatLE=function(he,_e,Be){return Ke(this,he,_e,!0,Be)},c.prototype.writeFloatBE=function(he,_e,Be){return Ke(this,he,_e,!1,Be)};function ze(re,he,_e,Be,Ue){return he=+he,_e=_e>>>0,Ue||De(re,he,_e,8,17976931348623157e292,-17976931348623157e292),b.write(re,he,_e,Be,52,8),_e+8}c.prototype.writeDoubleLE=function(he,_e,Be){return ze(this,he,_e,!0,Be)},c.prototype.writeDoubleBE=function(he,_e,Be){return ze(this,he,_e,!1,Be)},c.prototype.copy=function(he,_e,Be,Ue){if(!c.isBuffer(he))throw new TypeError("argument should be a Buffer");if(Be||(Be=0),!Ue&&Ue!==0&&(Ue=this.length),_e>=he.length&&(_e=he.length),_e||(_e=0),Ue>0&&Ue<Be&&(Ue=Be),Ue===Be||he.length===0||this.length===0)return 0;if(_e<0)throw new RangeError("targetStart out of bounds");if(Be<0||Be>=this.length)throw new RangeError("Index out of range");if(Ue<0)throw new RangeError("sourceEnd out of bounds");Ue>this.length&&(Ue=this.length),he.length-_e<Ue-Be&&(Ue=he.length-_e+Be);var rt=Ue-Be;if(this===he&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(_e,Be,Ue);else if(this===he&&Be<_e&&_e<Ue)for(var et=rt-1;et>=0;--et)he[et+_e]=this[et+Be];else Uint8Array.prototype.set.call(he,this.subarray(Be,Ue),_e);return rt},c.prototype.fill=function(he,_e,Be,Ue){if(typeof he=="string"){if(typeof _e=="string"?(Ue=_e,_e=0,Be=this.length):typeof Be=="string"&&(Ue=Be,Be=this.length),Ue!==void 0&&typeof Ue!="string")throw new TypeError("encoding must be a string");if(typeof Ue=="string"&&!c.isEncoding(Ue))throw new TypeError("Unknown encoding: "+Ue);if(he.length===1){var rt=he.charCodeAt(0);(Ue==="utf8"&&rt<128||Ue==="latin1")&&(he=rt)}}else typeof he=="number"&&(he=he&255);if(_e<0||this.length<_e||this.length<Be)throw new RangeError("Out of range index");if(Be<=_e)return this;_e=_e>>>0,Be=Be===void 0?this.length:Be>>>0,he||(he=0);var et;if(typeof he=="number")for(et=_e;et<Be;++et)this[et]=he;else{var dt=c.isBuffer(he)?he:c.from(he,Ue),Ot=dt.length;if(Ot===0)throw new TypeError('The value "'+he+'" is invalid for argument "value"');for(et=0;et<Be-_e;++et)this[et+_e]=dt[et%Ot]}return this};var it=/[^+/0-9A-Za-z-_]/g;function ot(re){if(re=re.split("=")[0],re=re.trim().replace(it,""),re.length<2)return"";for(;re.length%4!==0;)re=re+"=";return re}function Ge(re){return re<16?"0"+re.toString(16):re.toString(16)}function Ee(re,he){he=he||1/0;for(var _e,Be=re.length,Ue=null,rt=[],et=0;et<Be;++et){if(_e=re.charCodeAt(et),_e>55295&&_e<57344){if(!Ue){if(_e>56319){(he-=3)>-1&&rt.push(239,191,189);continue}else if(et+1===Be){(he-=3)>-1&&rt.push(239,191,189);continue}Ue=_e;continue}if(_e<56320){(he-=3)>-1&&rt.push(239,191,189),Ue=_e;continue}_e=(Ue-55296<<10|_e-56320)+65536}else Ue&&(he-=3)>-1&&rt.push(239,191,189);if(Ue=null,_e<128){if((he-=1)<0)break;rt.push(_e)}else if(_e<2048){if((he-=2)<0)break;rt.push(_e>>6|192,_e&63|128)}else if(_e<65536){if((he-=3)<0)break;rt.push(_e>>12|224,_e>>6&63|128,_e&63|128)}else if(_e<1114112){if((he-=4)<0)break;rt.push(_e>>18|240,_e>>12&63|128,_e>>6&63|128,_e&63|128)}else throw new Error("Invalid code point")}return rt}function fe(re){for(var he=[],_e=0;_e<re.length;++_e)he.push(re.charCodeAt(_e)&255);return he}function z(re,he){for(var _e,Be,Ue,rt=[],et=0;et<re.length&&!((he-=2)<0);++et)_e=re.charCodeAt(et),Be=_e>>8,Ue=_e%256,rt.push(Ue),rt.push(Be);return rt}function X(re){return p.toByteArray(ot(re))}function de(re,he,_e,Be){for(var Ue=0;Ue<Be&&!(Ue+_e>=he.length||Ue>=re.length);++Ue)he[Ue+_e]=re[Ue];return Ue}function Ce(re,he){return re instanceof he||re!=null&&re.constructor!=null&&re.constructor.name!=null&&re.constructor.name===he.name}function ne(re){return re!==re}}).call(this)}).call(this,s("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(s,C,A){C.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(s,C,A){"use strict";var u=s("get-intrinsic"),p=s("./"),b=p(u("String.prototype.indexOf"));C.exports=function(y,v){var c=u(y,!!v);return typeof c=="function"&&b(y,".prototype.")>-1?p(c):c}},{"./":93,"get-intrinsic":348}],93:[function(s,C,A){"use strict";var u=s("function-bind"),p=s("get-intrinsic"),b=p("%Function.prototype.apply%"),g=p("%Function.prototype.call%"),y=p("%Reflect.apply%",!0)||u.call(g,b),v=p("%Object.getOwnPropertyDescriptor%",!0),c=p("%Object.defineProperty%",!0),h=p("%Math.max%");if(c)try{c({},"a",{value:1})}catch(E){c=null}C.exports=function(T){var I=y(u,g,arguments);if(v&&c){var R=v(I,"length");R.configurable&&c(I,"length",{value:1+h(0,T.length-(arguments.length-1))})}return I};var m=function(){return y(u,b,arguments)};c?c(C.exports,"apply",{value:m}):C.exports.apply=m},{"function-bind":347,"get-intrinsic":348}],94:[function(s,C,A){"use strict";var u=Array.prototype.slice;C.exports=p;function p(g,y){if(!(this instanceof p))return new p(g,y);this.src=g,this._withAccess=y}p.prototype.withAccess=function(g){return this._withAccess=g!==!1,this},p.prototype.pick=function(g){return Array.isArray(g)||(g=u.call(arguments)),g.length&&(this.keys=g),this},p.prototype.to=function(g){if(g=g||{},!this.src)return g;var y=this.keys||Object.keys(this.src);if(!this._withAccess){for(var v=0;v<y.length;v++)c=y[v],g[c]===void 0&&(g[c]=this.src[c]);return g}for(var v=0;v<y.length;v++){var c=y[v];if(b(g,c)){var h=this.src.__lookupGetter__(c),m=this.src.__lookupSetter__(c);h&&g.__defineGetter__(c,h),m&&g.__defineSetter__(c,m),!h&&!m&&(g[c]=this.src[c])}}return g},p.prototype.toCover=function(g){for(var y=this.keys||Object.keys(this.src),v=0;v<y.length;v++){var c=y[v];delete g[c];var h=this.src.__lookupGetter__(c),m=this.src.__lookupSetter__(c);h&&g.__defineGetter__(c,h),m&&g.__defineSetter__(c,m),!h&&!m&&(g[c]=this.src[c])}},p.prototype.override=p.prototype.toCover,p.prototype.and=function(g){var y={};return this.to(y),this.src=g,this.to(y),this.src=y,this};function b(g,y){return g[y]===void 0&&g.__lookupGetter__(y)===void 0&&g.__lookupSetter__(y)===void 0}},{}],95:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/is-callable"),b=s("../internals/try-to-string"),g=u.TypeError;C.exports=function(y){if(p(y))return y;throw g(b(y)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/is-constructor"),b=s("../internals/try-to-string"),g=u.TypeError;C.exports=function(y){if(p(y))return y;throw g(b(y)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/is-callable"),b=u.String,g=u.TypeError;C.exports=function(y){if(typeof y=="object"||p(y))return y;throw g("Can't set "+b(y)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(s,C,A){var u=s("../internals/well-known-symbol"),p=s("../internals/object-create"),b=s("../internals/object-define-property"),g=u("unscopables"),y=Array.prototype;y[g]==null&&b.f(y,g,{configurable:!0,value:p(null)}),C.exports=function(v){y[g][v]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(s,C,A){"use strict";var u=s("../internals/string-multibyte").charAt;C.exports=function(p,b,g){return b+(g?u(p,b).length:1)}},{"../internals/string-multibyte":239}],100:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/object-is-prototype-of"),b=u.TypeError;C.exports=function(g,y){if(p(y,g))return g;throw b("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/is-object"),b=u.String,g=u.TypeError;C.exports=function(y){if(p(y))return y;throw g(b(y)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(s,C,A){C.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-native"),p=s("../internals/descriptors"),b=s("../internals/global"),g=s("../internals/is-callable"),y=s("../internals/is-object"),v=s("../internals/has-own-property"),c=s("../internals/classof"),h=s("../internals/try-to-string"),m=s("../internals/create-non-enumerable-property"),E=s("../internals/redefine"),T=s("../internals/object-define-property").f,I=s("../internals/object-is-prototype-of"),R=s("../internals/object-get-prototype-of"),N=s("../internals/object-set-prototype-of"),k=s("../internals/well-known-symbol"),L=s("../internals/uid"),H=b.Int8Array,D=H&&H.prototype,V=b.Uint8ClampedArray,P=V&&V.prototype,U=H&&R(H),G=D&&R(D),J=Object.prototype,ee=b.TypeError,ae=k("toStringTag"),oe=L("TYPED_ARRAY_TAG"),ue=L("TYPED_ARRAY_CONSTRUCTOR"),se=u&&!!N&&c(b.opera)!=="Opera",ye=!1,ve,Re,le,xe={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},pe={BigInt64Array:8,BigUint64Array:8},Me=function(it){if(!y(it))return!1;var ot=c(it);return ot==="DataView"||v(xe,ot)||v(pe,ot)},Oe=function(ze){if(!y(ze))return!1;var it=c(ze);return v(xe,it)||v(pe,it)},Le=function(ze){if(Oe(ze))return ze;throw ee("Target is not a typed array")},Pe=function(ze){if(g(ze)&&(!N||I(U,ze)))return ze;throw ee(h(ze)+" is not a typed array constructor")},De=function(ze,it,ot,Ge){if(p){if(ot)for(var Ee in xe){var fe=b[Ee];if(fe&&v(fe.prototype,ze))try{delete fe.prototype[ze]}catch(z){try{fe.prototype[ze]=it}catch(X){}}}(!G[ze]||ot)&&E(G,ze,ot?it:se&&D[ze]||it,Ge)}},Ke=function(ze,it,ot){var Ge,Ee;if(p){if(N){if(ot){for(Ge in xe)if(Ee=b[Ge],Ee&&v(Ee,ze))try{delete Ee[ze]}catch(fe){}}if(!U[ze]||ot)try{return E(U,ze,ot?it:se&&U[ze]||it)}catch(fe){}else return}for(Ge in xe)Ee=b[Ge],Ee&&(!Ee[ze]||ot)&&E(Ee,ze,it)}};for(ve in xe)Re=b[ve],le=Re&&Re.prototype,le?m(le,ue,Re):se=!1;for(ve in pe)Re=b[ve],le=Re&&Re.prototype,le&&m(le,ue,Re);if((!se||!g(U)||U===Function.prototype)&&(U=function(){throw ee("Incorrect invocation")},se))for(ve in xe)b[ve]&&N(b[ve],U);if((!se||!G||G===J)&&(G=U.prototype,se))for(ve in xe)b[ve]&&N(b[ve].prototype,G);if(se&&R(P)!==G&&N(P,G),p&&!v(G,ae)){ye=!0,T(G,ae,{get:function(){return y(this)?this[oe]:void 0}});for(ve in xe)b[ve]&&m(b[ve],oe,ve)}C.exports={NATIVE_ARRAY_BUFFER_VIEWS:se,TYPED_ARRAY_CONSTRUCTOR:ue,TYPED_ARRAY_TAG:ye&&oe,aTypedArray:Le,aTypedArrayConstructor:Pe,exportTypedArrayMethod:De,exportTypedArrayStaticMethod:Ke,isView:Me,isTypedArray:Oe,TypedArray:U,TypedArrayPrototype:G}},{"../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(s,C,A){"use strict";var u=s("../internals/global"),p=s("../internals/function-uncurry-this"),b=s("../internals/descriptors"),g=s("../internals/array-buffer-native"),y=s("../internals/function-name"),v=s("../internals/create-non-enumerable-property"),c=s("../internals/redefine-all"),h=s("../internals/fails"),m=s("../internals/an-instance"),E=s("../internals/to-integer-or-infinity"),T=s("../internals/to-length"),I=s("../internals/to-index"),R=s("../internals/ieee754"),N=s("../internals/object-get-prototype-of"),k=s("../internals/object-set-prototype-of"),L=s("../internals/object-get-own-property-names").f,H=s("../internals/object-define-property").f,D=s("../internals/array-fill"),V=s("../internals/array-slice-simple"),P=s("../internals/set-to-string-tag"),U=s("../internals/internal-state"),G=y.PROPER,J=y.CONFIGURABLE,ee=U.get,ae=U.set,oe="ArrayBuffer",ue="DataView",se="prototype",ye="Wrong length",ve="Wrong index",Re=u[oe],le=Re,xe=le&&le[se],pe=u[ue],Me=pe&&pe[se],Oe=Object.prototype,Le=u.Array,Pe=u.RangeError,De=p(D),Ke=p([].reverse),ze=R.pack,it=R.unpack,ot=function(et){return[et&255]},Ge=function(et){return[et&255,et>>8&255]},Ee=function(et){return[et&255,et>>8&255,et>>16&255,et>>24&255]},fe=function(et){return et[3]<<24|et[2]<<16|et[1]<<8|et[0]},z=function(et){return ze(et,23,4)},X=function(et){return ze(et,52,8)},de=function(et,dt){H(et[se],dt,{get:function(){return ee(this)[dt]}})},Ce=function(et,dt,Ot,pt){var nt=I(Ot),ut=ee(et);if(nt+dt>ut.byteLength)throw Pe(ve);var Tt=ee(ut.buffer).bytes,vt=nt+ut.byteOffset,Ct=V(Tt,vt,vt+dt);return pt?Ct:Ke(Ct)},ne=function(et,dt,Ot,pt,nt,ut){var Tt=I(Ot),vt=ee(et);if(Tt+dt>vt.byteLength)throw Pe(ve);for(var Ct=ee(vt.buffer).bytes,Ft=Tt+vt.byteOffset,Rt=pt(+nt),$e=0;$e<dt;$e++)Ct[Ft+$e]=Rt[ut?$e:dt-$e-1]};if(!g)le=function(dt){m(this,xe);var Ot=I(dt);ae(this,{bytes:De(Le(Ot),0),byteLength:Ot}),b||(this.byteLength=Ot)},xe=le[se],pe=function(dt,Ot,pt){m(this,Me),m(dt,xe);var nt=ee(dt).byteLength,ut=E(Ot);if(ut<0||ut>nt)throw Pe("Wrong offset");if(pt=pt===void 0?nt-ut:T(pt),ut+pt>nt)throw Pe(ye);ae(this,{buffer:dt,byteLength:pt,byteOffset:ut}),b||(this.buffer=dt,this.byteLength=pt,this.byteOffset=ut)},Me=pe[se],b&&(de(le,"byteLength"),de(pe,"buffer"),de(pe,"byteLength"),de(pe,"byteOffset")),c(Me,{getInt8:function(dt){return Ce(this,1,dt)[0]<<24>>24},getUint8:function(dt){return Ce(this,1,dt)[0]},getInt16:function(dt){var Ot=Ce(this,2,dt,arguments.length>1?arguments[1]:void 0);return(Ot[1]<<8|Ot[0])<<16>>16},getUint16:function(dt){var Ot=Ce(this,2,dt,arguments.length>1?arguments[1]:void 0);return Ot[1]<<8|Ot[0]},getInt32:function(dt){return fe(Ce(this,4,dt,arguments.length>1?arguments[1]:void 0))},getUint32:function(dt){return fe(Ce(this,4,dt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(dt){return it(Ce(this,4,dt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(dt){return it(Ce(this,8,dt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(dt,Ot){ne(this,1,dt,ot,Ot)},setUint8:function(dt,Ot){ne(this,1,dt,ot,Ot)},setInt16:function(dt,Ot){ne(this,2,dt,Ge,Ot,arguments.length>2?arguments[2]:void 0)},setUint16:function(dt,Ot){ne(this,2,dt,Ge,Ot,arguments.length>2?arguments[2]:void 0)},setInt32:function(dt,Ot){ne(this,4,dt,Ee,Ot,arguments.length>2?arguments[2]:void 0)},setUint32:function(dt,Ot){ne(this,4,dt,Ee,Ot,arguments.length>2?arguments[2]:void 0)},setFloat32:function(dt,Ot){ne(this,4,dt,z,Ot,arguments.length>2?arguments[2]:void 0)},setFloat64:function(dt,Ot){ne(this,8,dt,X,Ot,arguments.length>2?arguments[2]:void 0)}});else{var re=G&&Re.name!==oe;if(!h(function(){Re(1)})||!h(function(){new Re(-1)})||h(function(){return new Re,new Re(1.5),new Re(NaN),re&&!J})){le=function(dt){return m(this,xe),new Re(I(dt))},le[se]=xe;for(var he=L(Re),_e=0,Be;he.length>_e;)(Be=he[_e++])in le||v(le,Be,Re[Be]);xe.constructor=le}else re&&J&&v(Re,"name",oe);k&&N(Me)!==Oe&&k(Me,Oe);var Ue=new pe(new le(2)),rt=p(Me.setInt8);Ue.setInt8(0,2147483648),Ue.setInt8(1,2147483649),(Ue.getInt8(0)||!Ue.getInt8(1))&&c(Me,{setInt8:function(dt,Ot){rt(this,dt,Ot<<24>>24)},setUint8:function(dt,Ot){rt(this,dt,Ot<<24>>24)}},{unsafe:!0})}P(le,oe),P(pe,ue),C.exports={ArrayBuffer:le,DataView:pe}},{"../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(s,C,A){"use strict";var u=s("../internals/to-object"),p=s("../internals/to-absolute-index"),b=s("../internals/length-of-array-like"),g=Math.min;C.exports=[].copyWithin||function(v,c){var h=u(this),m=b(h),E=p(v,m),T=p(c,m),I=arguments.length>2?arguments[2]:void 0,R=g((I===void 0?m:p(I,m))-T,m-E),N=1;for(T<E&&E<T+R&&(N=-1,T+=R-1,E+=R-1);R-- >0;)T in h?h[E]=h[T]:delete h[E],E+=N,T+=N;return h}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(s,C,A){"use strict";var u=s("../internals/to-object"),p=s("../internals/to-absolute-index"),b=s("../internals/length-of-array-like");C.exports=function(y){for(var v=u(this),c=b(v),h=arguments.length,m=p(h>1?arguments[1]:void 0,c),E=h>2?arguments[2]:void 0,T=E===void 0?c:p(E,c);T>m;)v[m++]=y;return v}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(s,C,A){"use strict";var u=s("../internals/array-iteration").forEach,p=s("../internals/array-method-is-strict"),b=p("forEach");C.exports=b?[].forEach:function(y){return u(this,y,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(s,C,A){var u=s("../internals/length-of-array-like");C.exports=function(p,b){for(var g=0,y=u(b),v=new p(y);y>g;)v[g]=b[g++];return v}},{"../internals/length-of-array-like":188}],109:[function(s,C,A){"use strict";var u=s("../internals/global"),p=s("../internals/function-bind-context"),b=s("../internals/function-call"),g=s("../internals/to-object"),y=s("../internals/call-with-safe-iteration-closing"),v=s("../internals/is-array-iterator-method"),c=s("../internals/is-constructor"),h=s("../internals/length-of-array-like"),m=s("../internals/create-property"),E=s("../internals/get-iterator"),T=s("../internals/get-iterator-method"),I=u.Array;C.exports=function(N){var k=g(N),L=c(this),H=arguments.length,D=H>1?arguments[1]:void 0,V=D!==void 0;V&&(D=p(D,H>2?arguments[2]:void 0));var P=T(k),U=0,G,J,ee,ae,oe,ue;if(P&&!(this==I&&v(P)))for(ae=E(k,P),oe=ae.next,J=L?new this:[];!(ee=b(oe,ae)).done;U++)ue=V?y(ae,D,[ee.value,U],!0):ee.value,m(J,U,ue);else for(G=h(k),J=L?new this(G):I(G);G>U;U++)ue=V?D(k[U],U):k[U],m(J,U,ue);return J.length=U,J}},{"../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(s,C,A){var u=s("../internals/to-indexed-object"),p=s("../internals/to-absolute-index"),b=s("../internals/length-of-array-like"),g=function(y){return function(v,c,h){var m=u(v),E=b(m),T=p(h,E),I;if(y&&c!=c){for(;E>T;)if(I=m[T++],I!=I)return!0}else for(;E>T;T++)if((y||T in m)&&m[T]===c)return y||T||0;return!y&&-1}};C.exports={includes:g(!0),indexOf:g(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(s,C,A){var u=s("../internals/function-bind-context"),p=s("../internals/function-uncurry-this"),b=s("../internals/indexed-object"),g=s("../internals/to-object"),y=s("../internals/length-of-array-like"),v=s("../internals/array-species-create"),c=p([].push),h=function(m){var E=m==1,T=m==2,I=m==3,R=m==4,N=m==6,k=m==7,L=m==5||N;return function(H,D,V,P){for(var U=g(H),G=b(U),J=u(D,V),ee=y(G),ae=0,oe=P||v,ue=E?oe(H,ee):T||k?oe(H,0):void 0,se,ye;ee>ae;ae++)if((L||ae in G)&&(se=G[ae],ye=J(se,ae,U),m))if(E)ue[ae]=ye;else if(ye)switch(m){case 3:return!0;case 5:return se;case 6:return ae;case 2:c(ue,se)}else switch(m){case 4:return!1;case 7:c(ue,se)}return N?-1:I||R?R:ue}};C.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(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(s,C,A){"use strict";var u=s("../internals/function-apply"),p=s("../internals/to-indexed-object"),b=s("../internals/to-integer-or-infinity"),g=s("../internals/length-of-array-like"),y=s("../internals/array-method-is-strict"),v=Math.min,c=[].lastIndexOf,h=!!c&&1/[1].lastIndexOf(1,-0)<0,m=y("lastIndexOf"),E=h||!m;C.exports=E?function(I){if(h)return u(c,this,arguments)||0;var R=p(this),N=g(R),k=N-1;for(arguments.length>1&&(k=v(k,b(arguments[1]))),k<0&&(k=N+k);k>=0;k--)if(k in R&&R[k]===I)return k||0;return-1}:c},{"../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(s,C,A){var u=s("../internals/fails"),p=s("../internals/well-known-symbol"),b=s("../internals/engine-v8-version"),g=p("species");C.exports=function(y){return b>=51||!u(function(){var v=[],c=v.constructor={};return c[g]=function(){return{foo:1}},v[y](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(s,C,A){"use strict";var u=s("../internals/fails");C.exports=function(p,b){var g=[][p];return!!g&&u(function(){g.call(null,b||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/a-callable"),b=s("../internals/to-object"),g=s("../internals/indexed-object"),y=s("../internals/length-of-array-like"),v=u.TypeError,c=function(h){return function(m,E,T,I){p(E);var R=b(m),N=g(R),k=y(R),L=h?k-1:0,H=h?-1:1;if(T<2)for(;;){if(L in N){I=N[L],L+=H;break}if(L+=H,h?L<0:k<=L)throw v("Reduce of empty array with no initial value")}for(;h?L>=0:k>L;L+=H)L in N&&(I=E(I,N[L],L,R));return I}};C.exports={left:c(!1),right:c(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/to-absolute-index"),b=s("../internals/length-of-array-like"),g=s("../internals/create-property"),y=u.Array,v=Math.max;C.exports=function(c,h,m){for(var E=b(c),T=p(h,E),I=p(m===void 0?E:m,E),R=y(v(I-T,0)),N=0;T<I;T++,N++)g(R,N,c[T]);return R.length=N,R}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(s,C,A){var u=s("../internals/function-uncurry-this");C.exports=u([].slice)},{"../internals/function-uncurry-this":157}],118:[function(s,C,A){var u=s("../internals/array-slice-simple"),p=Math.floor,b=function(v,c){var h=v.length,m=p(h/2);return h<8?g(v,c):y(v,b(u(v,0,m),c),b(u(v,m),c),c)},g=function(v,c){for(var h=v.length,m=1,E,T;m<h;){for(T=m,E=v[m];T&&c(v[T-1],E)>0;)v[T]=v[--T];T!==m++&&(v[T]=E)}return v},y=function(v,c,h,m){for(var E=c.length,T=h.length,I=0,R=0;I<E||R<T;)v[I+R]=I<E&&R<T?m(c[I],h[R])<=0?c[I++]:h[R++]:I<E?c[I++]:h[R++];return v};C.exports=b},{"../internals/array-slice-simple":116}],119:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/is-array"),b=s("../internals/is-constructor"),g=s("../internals/is-object"),y=s("../internals/well-known-symbol"),v=y("species"),c=u.Array;C.exports=function(h){var m;return p(h)&&(m=h.constructor,b(m)&&(m===c||p(m.prototype))?m=void 0:g(m)&&(m=m[v],m===null&&(m=void 0))),m===void 0?c:m}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(s,C,A){var u=s("../internals/array-species-constructor");C.exports=function(p,b){return new(u(p))(b===0?0:b)}},{"../internals/array-species-constructor":119}],121:[function(s,C,A){var u=s("../internals/an-object"),p=s("../internals/iterator-close");C.exports=function(b,g,y,v){try{return v?g(u(y)[0],y[1]):g(y)}catch(c){p(b,"throw",c)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(s,C,A){var u=s("../internals/well-known-symbol"),p=u("iterator"),b=!1;try{var g=0,y={next:function(){return{done:!!g++}},return:function(){b=!0}};y[p]=function(){return this},Array.from(y,function(){throw 2})}catch(v){}C.exports=function(v,c){if(!c&&!b)return!1;var h=!1;try{var m={};m[p]=function(){return{next:function(){return{done:h=!0}}}},v(m)}catch(E){}return h}},{"../internals/well-known-symbol":268}],123:[function(s,C,A){var u=s("../internals/function-uncurry-this"),p=u({}.toString),b=u("".slice);C.exports=function(g){return b(p(g),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/to-string-tag-support"),b=s("../internals/is-callable"),g=s("../internals/classof-raw"),y=s("../internals/well-known-symbol"),v=y("toStringTag"),c=u.Object,h=g(function(){return arguments}())=="Arguments",m=function(E,T){try{return E[T]}catch(I){}};C.exports=p?g:function(E){var T,I,R;return E===void 0?"Undefined":E===null?"Null":typeof(I=m(T=c(E),v))=="string"?I:h?g(T):(R=g(T))=="Object"&&b(T.callee)?"Arguments":R}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(s,C,A){var u=s("../internals/has-own-property"),p=s("../internals/own-keys"),b=s("../internals/object-get-own-property-descriptor"),g=s("../internals/object-define-property");C.exports=function(y,v,c){for(var h=p(v),m=g.f,E=b.f,T=0;T<h.length;T++){var I=h[T];!u(y,I)&&!(c&&u(c,I))&&m(y,I,E(v,I))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(s,C,A){var u=s("../internals/well-known-symbol"),p=u("match");C.exports=function(b){var g=/./;try{"/./"[b](g)}catch(y){try{return g[p]=!1,"/./"[b](g)}catch(v){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(s,C,A){var u=s("../internals/fails");C.exports=!u(function(){function p(){}return p.prototype.constructor=null,Object.getPrototypeOf(new p)!==p.prototype})},{"../internals/fails":150}],128:[function(s,C,A){"use strict";var u=s("../internals/iterators-core").IteratorPrototype,p=s("../internals/object-create"),b=s("../internals/create-property-descriptor"),g=s("../internals/set-to-string-tag"),y=s("../internals/iterators"),v=function(){return this};C.exports=function(c,h,m,E){var T=h+" Iterator";return c.prototype=p(u,{next:b(+!E,m)}),g(c,T,!1,!0),y[T]=v,c}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(s,C,A){var u=s("../internals/descriptors"),p=s("../internals/object-define-property"),b=s("../internals/create-property-descriptor");C.exports=u?function(g,y,v){return p.f(g,y,b(1,v))}:function(g,y,v){return g[y]=v,g}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(s,C,A){C.exports=function(u,p){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:p}}},{}],131:[function(s,C,A){"use strict";var u=s("../internals/to-property-key"),p=s("../internals/object-define-property"),b=s("../internals/create-property-descriptor");C.exports=function(g,y,v){var c=u(y);c in g?p.f(g,c,b(0,v)):g[c]=v}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/function-call"),b=s("../internals/is-pure"),g=s("../internals/function-name"),y=s("../internals/is-callable"),v=s("../internals/create-iterator-constructor"),c=s("../internals/object-get-prototype-of"),h=s("../internals/object-set-prototype-of"),m=s("../internals/set-to-string-tag"),E=s("../internals/create-non-enumerable-property"),T=s("../internals/redefine"),I=s("../internals/well-known-symbol"),R=s("../internals/iterators"),N=s("../internals/iterators-core"),k=g.PROPER,L=g.CONFIGURABLE,H=N.IteratorPrototype,D=N.BUGGY_SAFARI_ITERATORS,V=I("iterator"),P="keys",U="values",G="entries",J=function(){return this};C.exports=function(ee,ae,oe,ue,se,ye,ve){v(oe,ae,ue);var Re=function(ze){if(ze===se&&Oe)return Oe;if(!D&&ze in pe)return pe[ze];switch(ze){case P:return function(){return new oe(this,ze)};case U:return function(){return new oe(this,ze)};case G:return function(){return new oe(this,ze)}}return function(){return new oe(this)}},le=ae+" Iterator",xe=!1,pe=ee.prototype,Me=pe[V]||pe["@@iterator"]||se&&pe[se],Oe=!D&&Me||Re(se),Le=ae=="Array"&&pe.entries||Me,Pe,De,Ke;if(Le&&(Pe=c(Le.call(new ee)),Pe!==Object.prototype&&Pe.next&&(!b&&c(Pe)!==H&&(h?h(Pe,H):y(Pe[V])||T(Pe,V,J)),m(Pe,le,!0,!0),b&&(R[le]=J))),k&&se==U&&Me&&Me.name!==U&&(!b&&L?E(pe,"name",U):(xe=!0,Oe=function(){return p(Me,this)})),se)if(De={values:Re(U),keys:ye?Oe:Re(P),entries:Re(G)},ve)for(Ke in De)(D||xe||!(Ke in pe))&&T(pe,Ke,De[Ke]);else u({target:ae,proto:!0,forced:D||xe},De);return(!b||ve)&&pe[V]!==Oe&&T(pe,V,Oe,{name:se}),R[ae]=Oe,De}},{"../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(s,C,A){var u=s("../internals/path"),p=s("../internals/has-own-property"),b=s("../internals/well-known-symbol-wrapped"),g=s("../internals/object-define-property").f;C.exports=function(y){var v=u.Symbol||(u.Symbol={});p(v,y)||g(v,y,{value:b.f(y)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(s,C,A){var u=s("../internals/fails");C.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/is-object"),b=u.document,g=p(b)&&p(b.createElement);C.exports=function(y){return g?b.createElement(y):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(s,C,A){C.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(s,C,A){var u=s("../internals/document-create-element"),p=u("span").classList,b=p&&p.constructor&&p.constructor.prototype;C.exports=b===Object.prototype?void 0:b},{"../internals/document-create-element":135}],138:[function(s,C,A){var u=s("../internals/engine-user-agent"),p=u.match(/firefox\/(\d+)/i);C.exports=!!p&&+p[1]},{"../internals/engine-user-agent":145}],139:[function(s,C,A){C.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(s,C,A){var u=s("../internals/engine-user-agent");C.exports=/MSIE|Trident/.test(u)},{"../internals/engine-user-agent":145}],141:[function(s,C,A){var u=s("../internals/engine-user-agent"),p=s("../internals/global");C.exports=/ipad|iphone|ipod/i.test(u)&&p.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(s,C,A){var u=s("../internals/engine-user-agent");C.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(u)},{"../internals/engine-user-agent":145}],143:[function(s,C,A){var u=s("../internals/classof-raw"),p=s("../internals/global");C.exports=u(p.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(s,C,A){var u=s("../internals/engine-user-agent");C.exports=/web0s(?!.*chrome)/i.test(u)},{"../internals/engine-user-agent":145}],145:[function(s,C,A){var u=s("../internals/get-built-in");C.exports=u("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/engine-user-agent"),b=u.process,g=u.Deno,y=b&&b.versions||g&&g.version,v=y&&y.v8,c,h;v&&(c=v.split("."),h=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!h&&p&&(c=p.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=p.match(/Chrome\/(\d+)/),c&&(h=+c[1]))),C.exports=h},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(s,C,A){var u=s("../internals/engine-user-agent"),p=u.match(/AppleWebKit\/(\d+)\./);C.exports=!!p&&+p[1]},{"../internals/engine-user-agent":145}],148:[function(s,C,A){C.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/object-get-own-property-descriptor").f,b=s("../internals/create-non-enumerable-property"),g=s("../internals/redefine"),y=s("../internals/set-global"),v=s("../internals/copy-constructor-properties"),c=s("../internals/is-forced");C.exports=function(h,m){var E=h.target,T=h.global,I=h.stat,R,N,k,L,H,D;if(T?N=u:I?N=u[E]||y(E,{}):N=(u[E]||{}).prototype,N)for(k in m){if(H=m[k],h.noTargetGet?(D=p(N,k),L=D&&D.value):L=N[k],R=c(T?k:E+(I?".":"#")+k,h.forced),!R&&L!==void 0){if(typeof H==typeof L)continue;v(H,L)}(h.sham||L&&L.sham)&&b(H,"sham",!0),g(N,k,H,h)}}},{"../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(s,C,A){C.exports=function(u){try{return!!u()}catch(p){return!0}}},{}],151:[function(s,C,A){"use strict";s("../modules/es.regexp.exec");var u=s("../internals/function-uncurry-this"),p=s("../internals/redefine"),b=s("../internals/regexp-exec"),g=s("../internals/fails"),y=s("../internals/well-known-symbol"),v=s("../internals/create-non-enumerable-property"),c=y("species"),h=RegExp.prototype;C.exports=function(m,E,T,I){var R=y(m),N=!g(function(){var D={};return D[R]=function(){return 7},""[m](D)!=7}),k=N&&!g(function(){var D=!1,V=/a/;return m==="split"&&(V={},V.constructor={},V.constructor[c]=function(){return V},V.flags="",V[R]=/./[R]),V.exec=function(){return D=!0,null},V[R](""),!D});if(!N||!k||T){var L=u(/./[R]),H=E(R,""[m],function(D,V,P,U,G){var J=u(D),ee=V.exec;return ee===b||ee===h.exec?N&&!G?{done:!0,value:L(V,P,U)}:{done:!0,value:J(P,V,U)}:{done:!1}});p(String.prototype,m,H[0]),p(h,R,H[1])}I&&v(h[R],"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(s,C,A){var u=s("../internals/function-bind-native"),p=Function.prototype,b=p.apply,g=p.call;C.exports=typeof Reflect=="object"&&Reflect.apply||(u?g.bind(b):function(){return g.apply(b,arguments)})},{"../internals/function-bind-native":154}],153:[function(s,C,A){var u=s("../internals/function-uncurry-this"),p=s("../internals/a-callable"),b=s("../internals/function-bind-native"),g=u(u.bind);C.exports=function(y,v){return p(y),v===void 0?y:b?g(y,v):function(){return y.apply(v,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(s,C,A){var u=s("../internals/fails");C.exports=!u(function(){var p=function(){}.bind();return typeof p!="function"||p.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(s,C,A){var u=s("../internals/function-bind-native"),p=Function.prototype.call;C.exports=u?p.bind(p):function(){return p.apply(p,arguments)}},{"../internals/function-bind-native":154}],156:[function(s,C,A){var u=s("../internals/descriptors"),p=s("../internals/has-own-property"),b=Function.prototype,g=u&&Object.getOwnPropertyDescriptor,y=p(b,"name"),v=y&&function(){}.name==="something",c=y&&(!u||u&&g(b,"name").configurable);C.exports={EXISTS:y,PROPER:v,CONFIGURABLE:c}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(s,C,A){var u=s("../internals/function-bind-native"),p=Function.prototype,b=p.bind,g=p.call,y=u&&b.bind(g,g);C.exports=u?function(v){return v&&y(v)}:function(v){return v&&function(){return g.apply(v,arguments)}}},{"../internals/function-bind-native":154}],158:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/is-callable"),b=function(g){return p(g)?g:void 0};C.exports=function(g,y){return arguments.length<2?b(u[g]):u[g]&&u[g][y]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(s,C,A){var u=s("../internals/classof"),p=s("../internals/get-method"),b=s("../internals/iterators"),g=s("../internals/well-known-symbol"),y=g("iterator");C.exports=function(v){if(v!=null)return p(v,y)||p(v,"@@iterator")||b[u(v)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/function-call"),b=s("../internals/a-callable"),g=s("../internals/an-object"),y=s("../internals/try-to-string"),v=s("../internals/get-iterator-method"),c=u.TypeError;C.exports=function(h,m){var E=arguments.length<2?v(h):m;if(b(E))return g(p(E,h));throw c(y(h)+" 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(s,C,A){var u=s("../internals/a-callable");C.exports=function(p,b){var g=p[b];return g==null?void 0:u(g)}},{"../internals/a-callable":95}],162:[function(s,C,A){var u=s("../internals/function-uncurry-this"),p=s("../internals/to-object"),b=Math.floor,g=u("".charAt),y=u("".replace),v=u("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,h=/\$([$&'`]|\d{1,2})/g;C.exports=function(m,E,T,I,R,N){var k=T+m.length,L=I.length,H=h;return R!==void 0&&(R=p(R),H=c),y(N,H,function(D,V){var P;switch(g(V,0)){case"$":return"$";case"&":return m;case"`":return v(E,0,T);case"'":return v(E,k);case"<":P=R[v(V,1,-1)];break;default:var U=+V;if(U===0)return D;if(U>L){var G=b(U/10);return G===0?D:G<=L?I[G-1]===void 0?g(V,1):I[G-1]+g(V,1):D}P=I[U-1]}return P===void 0?"":P})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(s,C,A){(function(u){(function(){var p=function(b){return b&&b.Math==Math&&b};C.exports=p(typeof globalThis=="object"&&globalThis)||p(typeof window=="object"&&window)||p(typeof self=="object"&&self)||p(typeof u=="object"&&u)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(s,C,A){var u=s("../internals/function-uncurry-this"),p=s("../internals/to-object"),b=u({}.hasOwnProperty);C.exports=Object.hasOwn||function(y,v){return b(p(y),v)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(s,C,A){C.exports={}},{}],166:[function(s,C,A){var u=s("../internals/global");C.exports=function(p,b){var g=u.console;g&&g.error&&(arguments.length==1?g.error(p):g.error(p,b))}},{"../internals/global":163}],167:[function(s,C,A){var u=s("../internals/get-built-in");C.exports=u("document","documentElement")},{"../internals/get-built-in":158}],168:[function(s,C,A){var u=s("../internals/descriptors"),p=s("../internals/fails"),b=s("../internals/document-create-element");C.exports=!u&&!p(function(){return Object.defineProperty(b("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(s,C,A){var u=s("../internals/global"),p=u.Array,b=Math.abs,g=Math.pow,y=Math.floor,v=Math.log,c=Math.LN2,h=function(E,T,I){var R=p(I),N=I*8-T-1,k=(1<<N)-1,L=k>>1,H=T===23?g(2,-24)-g(2,-77):0,D=E<0||E===0&&1/E<0?1:0,V=0,P,U,G;for(E=b(E),E!=E||E===1/0?(U=E!=E?1:0,P=k):(P=y(v(E)/c),G=g(2,-P),E*G<1&&(P--,G*=2),P+L>=1?E+=H/G:E+=H*g(2,1-L),E*G>=2&&(P++,G/=2),P+L>=k?(U=0,P=k):P+L>=1?(U=(E*G-1)*g(2,T),P=P+L):(U=E*g(2,L-1)*g(2,T),P=0));T>=8;)R[V++]=U&255,U/=256,T-=8;for(P=P<<T|U,N+=T;N>0;)R[V++]=P&255,P/=256,N-=8;return R[--V]|=D*128,R},m=function(E,T){var I=E.length,R=I*8-T-1,N=(1<<R)-1,k=N>>1,L=R-7,H=I-1,D=E[H--],V=D&127,P;for(D>>=7;L>0;)V=V*256+E[H--],L-=8;for(P=V&(1<<-L)-1,V>>=-L,L+=T;L>0;)P=P*256+E[H--],L-=8;if(V===0)V=1-k;else{if(V===N)return P?NaN:D?-1/0:1/0;P=P+g(2,T),V=V-k}return(D?-1:1)*P*g(2,V-T)};C.exports={pack:h,unpack:m}},{"../internals/global":163}],170:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/function-uncurry-this"),b=s("../internals/fails"),g=s("../internals/classof-raw"),y=u.Object,v=p("".split);C.exports=b(function(){return!y("z").propertyIsEnumerable(0)})?function(c){return g(c)=="String"?v(c,""):y(c)}:y},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(s,C,A){var u=s("../internals/is-callable"),p=s("../internals/is-object"),b=s("../internals/object-set-prototype-of");C.exports=function(g,y,v){var c,h;return b&&u(c=y.constructor)&&c!==v&&p(h=c.prototype)&&h!==v.prototype&&b(g,h),g}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(s,C,A){var u=s("../internals/function-uncurry-this"),p=s("../internals/is-callable"),b=s("../internals/shared-store"),g=u(Function.toString);p(b.inspectSource)||(b.inspectSource=function(y){return g(y)}),C.exports=b.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(s,C,A){var u=s("../internals/native-weak-map"),p=s("../internals/global"),b=s("../internals/function-uncurry-this"),g=s("../internals/is-object"),y=s("../internals/create-non-enumerable-property"),v=s("../internals/has-own-property"),c=s("../internals/shared-store"),h=s("../internals/shared-key"),m=s("../internals/hidden-keys"),E="Object already initialized",T=p.TypeError,I=p.WeakMap,R,N,k,L=function(J){return k(J)?N(J):R(J,{})},H=function(J){return function(ee){var ae;if(!g(ee)||(ae=N(ee)).type!==J)throw T("Incompatible receiver, "+J+" required");return ae}};if(u||c.state){var D=c.state||(c.state=new I),V=b(D.get),P=b(D.has),U=b(D.set);R=function(J,ee){if(P(D,J))throw new T(E);return ee.facade=J,U(D,J,ee),ee},N=function(J){return V(D,J)||{}},k=function(J){return P(D,J)}}else{var G=h("state");m[G]=!0,R=function(J,ee){if(v(J,G))throw new T(E);return ee.facade=J,y(J,G,ee),ee},N=function(J){return v(J,G)?J[G]:{}},k=function(J){return v(J,G)}}C.exports={set:R,get:N,has:k,enforce:L,getterFor:H}},{"../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(s,C,A){var u=s("../internals/well-known-symbol"),p=s("../internals/iterators"),b=u("iterator"),g=Array.prototype;C.exports=function(y){return y!==void 0&&(p.Array===y||g[b]===y)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(s,C,A){var u=s("../internals/classof-raw");C.exports=Array.isArray||function(b){return u(b)=="Array"}},{"../internals/classof-raw":123}],176:[function(s,C,A){C.exports=function(u){return typeof u=="function"}},{}],177:[function(s,C,A){var u=s("../internals/function-uncurry-this"),p=s("../internals/fails"),b=s("../internals/is-callable"),g=s("../internals/classof"),y=s("../internals/get-built-in"),v=s("../internals/inspect-source"),c=function(){},h=[],m=y("Reflect","construct"),E=/^\s*(?:class|function)\b/,T=u(E.exec),I=!E.exec(c),R=function(L){if(!b(L))return!1;try{return m(c,h,L),!0}catch(H){return!1}},N=function(L){if(!b(L))return!1;switch(g(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return I||!!T(E,v(L))}catch(H){return!0}};N.sham=!0,C.exports=!m||p(function(){var k;return R(R.call)||!R(Object)||!R(function(){k=!0})||k})?N:R},{"../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(s,C,A){var u=s("../internals/fails"),p=s("../internals/is-callable"),b=/#|\.prototype\./,g=function(m,E){var T=v[y(m)];return T==h?!0:T==c?!1:p(E)?u(E):!!E},y=g.normalize=function(m){return String(m).replace(b,".").toLowerCase()},v=g.data={},c=g.NATIVE="N",h=g.POLYFILL="P";C.exports=g},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(s,C,A){var u=s("../internals/is-object"),p=Math.floor;C.exports=Number.isInteger||function(g){return!u(g)&&isFinite(g)&&p(g)===g}},{"../internals/is-object":180}],180:[function(s,C,A){var u=s("../internals/is-callable");C.exports=function(p){return typeof p=="object"?p!==null:u(p)}},{"../internals/is-callable":176}],181:[function(s,C,A){C.exports=!1},{}],182:[function(s,C,A){var u=s("../internals/is-object"),p=s("../internals/classof-raw"),b=s("../internals/well-known-symbol"),g=b("match");C.exports=function(y){var v;return u(y)&&((v=y[g])!==void 0?!!v:p(y)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/get-built-in"),b=s("../internals/is-callable"),g=s("../internals/object-is-prototype-of"),y=s("../internals/use-symbol-as-uid"),v=u.Object;C.exports=y?function(c){return typeof c=="symbol"}:function(c){var h=p("Symbol");return b(h)&&g(h.prototype,v(c))}},{"../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(s,C,A){var u=s("../internals/global"),p=s("../internals/function-bind-context"),b=s("../internals/function-call"),g=s("../internals/an-object"),y=s("../internals/try-to-string"),v=s("../internals/is-array-iterator-method"),c=s("../internals/length-of-array-like"),h=s("../internals/object-is-prototype-of"),m=s("../internals/get-iterator"),E=s("../internals/get-iterator-method"),T=s("../internals/iterator-close"),I=u.TypeError,R=function(k,L){this.stopped=k,this.result=L},N=R.prototype;C.exports=function(k,L,H){var D=H&&H.that,V=!!(H&&H.AS_ENTRIES),P=!!(H&&H.IS_ITERATOR),U=!!(H&&H.INTERRUPTED),G=p(L,D),J,ee,ae,oe,ue,se,ye,ve=function(le){return J&&T(J,"normal",le),new R(!0,le)},Re=function(le){return V?(g(le),U?G(le[0],le[1],ve):G(le[0],le[1])):U?G(le,ve):G(le)};if(P)J=k;else{if(ee=E(k),!ee)throw I(y(k)+" is not iterable");if(v(ee)){for(ae=0,oe=c(k);oe>ae;ae++)if(ue=Re(k[ae]),ue&&h(N,ue))return ue;return new R(!1)}J=m(k,ee)}for(se=J.next;!(ye=b(se,J)).done;){try{ue=Re(ye.value)}catch(le){T(J,"throw",le)}if(typeof ue=="object"&&ue&&h(N,ue))return ue}return new R(!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(s,C,A){var u=s("../internals/function-call"),p=s("../internals/an-object"),b=s("../internals/get-method");C.exports=function(g,y,v){var c,h;p(g);try{if(c=b(g,"return"),!c){if(y==="throw")throw v;return v}c=u(c,g)}catch(m){h=!0,c=m}if(y==="throw")throw v;if(h)throw c;return p(c),v}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(s,C,A){"use strict";var u=s("../internals/fails"),p=s("../internals/is-callable"),b=s("../internals/object-create"),g=s("../internals/object-get-prototype-of"),y=s("../internals/redefine"),v=s("../internals/well-known-symbol"),c=s("../internals/is-pure"),h=v("iterator"),m=!1,E,T,I;[].keys&&(I=[].keys(),"next"in I?(T=g(g(I)),T!==Object.prototype&&(E=T)):m=!0);var R=E==null||u(function(){var N={};return E[h].call(N)!==N});R?E={}:c&&(E=b(E)),p(E[h])||y(E,h,function(){return this}),C.exports={IteratorPrototype:E,BUGGY_SAFARI_ITERATORS:m}},{"../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(s,C,A){arguments[4][165][0].apply(A,arguments)},{dup:165}],188:[function(s,C,A){var u=s("../internals/to-length");C.exports=function(p){return u(p.length)}},{"../internals/to-length":249}],189:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/function-bind-context"),b=s("../internals/object-get-own-property-descriptor").f,g=s("../internals/task").set,y=s("../internals/engine-is-ios"),v=s("../internals/engine-is-ios-pebble"),c=s("../internals/engine-is-webos-webkit"),h=s("../internals/engine-is-node"),m=u.MutationObserver||u.WebKitMutationObserver,E=u.document,T=u.process,I=u.Promise,R=b(u,"queueMicrotask"),N=R&&R.value,k,L,H,D,V,P,U,G;N||(k=function(){var J,ee;for(h&&(J=T.domain)&&J.exit();L;){ee=L.fn,L=L.next;try{ee()}catch(ae){throw L?D():H=void 0,ae}}H=void 0,J&&J.enter()},!y&&!h&&!c&&m&&E?(V=!0,P=E.createTextNode(""),new m(k).observe(P,{characterData:!0}),D=function(){P.data=V=!V}):!v&&I&&I.resolve?(U=I.resolve(void 0),U.constructor=I,G=p(U.then,U),D=function(){G(k)}):h?D=function(){T.nextTick(k)}:(g=p(g,u),D=function(){g(k)})),C.exports=N||function(J){var ee={fn:J,next:void 0};H&&(H.next=ee),L||(L=ee,D()),H=ee}},{"../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(s,C,A){var u=s("../internals/native-symbol");C.exports=u&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(s,C,A){var u=s("../internals/engine-v8-version"),p=s("../internals/fails");C.exports=!!Object.getOwnPropertySymbols&&!p(function(){var b=Symbol();return!String(b)||!(Object(b)instanceof Symbol)||!Symbol.sham&&u&&u<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/is-callable"),b=s("../internals/inspect-source"),g=u.WeakMap;C.exports=p(g)&&/native code/.test(b(g))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(s,C,A){"use strict";var u=s("../internals/a-callable"),p=function(b){var g,y;this.promise=new b(function(v,c){if(g!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");g=v,y=c}),this.resolve=u(g),this.reject=u(y)};C.exports.f=function(b){return new p(b)}},{"../internals/a-callable":95}],194:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/is-regexp"),b=u.TypeError;C.exports=function(g){if(p(g))throw b("The method doesn't accept regular expressions");return g}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(s,C,A){"use strict";var u=s("../internals/descriptors"),p=s("../internals/function-uncurry-this"),b=s("../internals/function-call"),g=s("../internals/fails"),y=s("../internals/object-keys"),v=s("../internals/object-get-own-property-symbols"),c=s("../internals/object-property-is-enumerable"),h=s("../internals/to-object"),m=s("../internals/indexed-object"),E=Object.assign,T=Object.defineProperty,I=p([].concat);C.exports=!E||g(function(){if(u&&E({b:1},E(T({},"a",{enumerable:!0,get:function(){T(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var R={},N={},k=Symbol(),L="abcdefghijklmnopqrst";return R[k]=7,L.split("").forEach(function(H){N[H]=H}),E({},R)[k]!=7||y(E({},N)).join("")!=L})?function(N,k){for(var L=h(N),H=arguments.length,D=1,V=v.f,P=c.f;H>D;)for(var U=m(arguments[D++]),G=V?I(y(U),V(U)):y(U),J=G.length,ee=0,ae;J>ee;)ae=G[ee++],(!u||b(P,U,ae))&&(L[ae]=U[ae]);return L}:E},{"../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(s,C,A){var u=s("../internals/an-object"),p=s("../internals/object-define-properties"),b=s("../internals/enum-bug-keys"),g=s("../internals/hidden-keys"),y=s("../internals/html"),v=s("../internals/document-create-element"),c=s("../internals/shared-key"),h=">",m="<",E="prototype",T="script",I=c("IE_PROTO"),R=function(){},N=function(V){return m+T+h+V+m+"/"+T+h},k=function(V){V.write(N("")),V.close();var P=V.parentWindow.Object;return V=null,P},L=function(){var V=v("iframe"),P="java"+T+":",U;return V.style.display="none",y.appendChild(V),V.src=String(P),U=V.contentWindow.document,U.open(),U.write(N("document.F=Object")),U.close(),U.F},H,D=function(){try{H=new ActiveXObject("htmlfile")}catch(P){}D=typeof document!="undefined"?document.domain&&H?k(H):L():k(H);for(var V=b.length;V--;)delete D[E][b[V]];return D()};g[I]=!0,C.exports=Object.create||function(P,U){var G;return P!==null?(R[E]=u(P),G=new R,R[E]=null,G[I]=P):G=D(),U===void 0?G:p.f(G,U)}},{"../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(s,C,A){var u=s("../internals/descriptors"),p=s("../internals/v8-prototype-define-bug"),b=s("../internals/object-define-property"),g=s("../internals/an-object"),y=s("../internals/to-indexed-object"),v=s("../internals/object-keys");A.f=u&&!p?Object.defineProperties:function(h,m){g(h);for(var E=y(m),T=v(m),I=T.length,R=0,N;I>R;)b.f(h,N=T[R++],E[N]);return h}},{"../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(s,C,A){var u=s("../internals/global"),p=s("../internals/descriptors"),b=s("../internals/ie8-dom-define"),g=s("../internals/v8-prototype-define-bug"),y=s("../internals/an-object"),v=s("../internals/to-property-key"),c=u.TypeError,h=Object.defineProperty,m=Object.getOwnPropertyDescriptor,E="enumerable",T="configurable",I="writable";A.f=p?g?function(N,k,L){if(y(N),k=v(k),y(L),typeof N=="function"&&k==="prototype"&&"value"in L&&I in L&&!L[I]){var H=m(N,k);H&&H[I]&&(N[k]=L.value,L={configurable:T in L?L[T]:H[T],enumerable:E in L?L[E]:H[E],writable:!1})}return h(N,k,L)}:h:function(N,k,L){if(y(N),k=v(k),y(L),b)try{return h(N,k,L)}catch(H){}if("get"in L||"set"in L)throw c("Accessors not supported");return"value"in L&&(N[k]=L.value),N}},{"../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(s,C,A){var u=s("../internals/descriptors"),p=s("../internals/function-call"),b=s("../internals/object-property-is-enumerable"),g=s("../internals/create-property-descriptor"),y=s("../internals/to-indexed-object"),v=s("../internals/to-property-key"),c=s("../internals/has-own-property"),h=s("../internals/ie8-dom-define"),m=Object.getOwnPropertyDescriptor;A.f=u?m:function(T,I){if(T=y(T),I=v(I),h)try{return m(T,I)}catch(R){}if(c(T,I))return g(!p(b.f,T,I),T[I])}},{"../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(s,C,A){var u=s("../internals/classof-raw"),p=s("../internals/to-indexed-object"),b=s("../internals/object-get-own-property-names").f,g=s("../internals/array-slice-simple"),y=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],v=function(c){try{return b(c)}catch(h){return g(y)}};C.exports.f=function(h){return y&&u(h)=="Window"?v(h):b(p(h))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(s,C,A){var u=s("../internals/object-keys-internal"),p=s("../internals/enum-bug-keys"),b=p.concat("length","prototype");A.f=Object.getOwnPropertyNames||function(y){return u(y,b)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(s,C,A){A.f=Object.getOwnPropertySymbols},{}],203:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/has-own-property"),b=s("../internals/is-callable"),g=s("../internals/to-object"),y=s("../internals/shared-key"),v=s("../internals/correct-prototype-getter"),c=y("IE_PROTO"),h=u.Object,m=h.prototype;C.exports=v?h.getPrototypeOf:function(E){var T=g(E);if(p(T,c))return T[c];var I=T.constructor;return b(I)&&T instanceof I?I.prototype:T instanceof h?m: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(s,C,A){var u=s("../internals/function-uncurry-this");C.exports=u({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(s,C,A){var u=s("../internals/function-uncurry-this"),p=s("../internals/has-own-property"),b=s("../internals/to-indexed-object"),g=s("../internals/array-includes").indexOf,y=s("../internals/hidden-keys"),v=u([].push);C.exports=function(c,h){var m=b(c),E=0,T=[],I;for(I in m)!p(y,I)&&p(m,I)&&v(T,I);for(;h.length>E;)p(m,I=h[E++])&&(~g(T,I)||v(T,I));return T}},{"../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(s,C,A){var u=s("../internals/object-keys-internal"),p=s("../internals/enum-bug-keys");C.exports=Object.keys||function(g){return u(g,p)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(s,C,A){"use strict";var u={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,b=p&&!u.call({1:2},1);A.f=b?function(y){var v=p(this,y);return!!v&&v.enumerable}:u},{}],208:[function(s,C,A){var u=s("../internals/function-uncurry-this"),p=s("../internals/an-object"),b=s("../internals/a-possible-prototype");C.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g=!1,y={},v;try{v=u(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),v(y,[]),g=y instanceof Array}catch(c){}return function(h,m){return p(h),b(m),g?v(h,m):h.__proto__=m,h}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(s,C,A){var u=s("../internals/descriptors"),p=s("../internals/function-uncurry-this"),b=s("../internals/object-keys"),g=s("../internals/to-indexed-object"),y=s("../internals/object-property-is-enumerable").f,v=p(y),c=p([].push),h=function(m){return function(E){for(var T=g(E),I=b(T),R=I.length,N=0,k=[],L;R>N;)L=I[N++],(!u||v(T,L))&&c(k,m?[L,T[L]]:T[L]);return k}};C.exports={entries:h(!0),values:h(!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(s,C,A){"use strict";var u=s("../internals/to-string-tag-support"),p=s("../internals/classof");C.exports=u?{}.toString:function(){return"[object "+p(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/function-call"),b=s("../internals/is-callable"),g=s("../internals/is-object"),y=u.TypeError;C.exports=function(v,c){var h,m;if(c==="string"&&b(h=v.toString)&&!g(m=p(h,v))||b(h=v.valueOf)&&!g(m=p(h,v))||c!=="string"&&b(h=v.toString)&&!g(m=p(h,v)))return m;throw y("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(s,C,A){var u=s("../internals/get-built-in"),p=s("../internals/function-uncurry-this"),b=s("../internals/object-get-own-property-names"),g=s("../internals/object-get-own-property-symbols"),y=s("../internals/an-object"),v=p([].concat);C.exports=u("Reflect","ownKeys")||function(h){var m=b.f(y(h)),E=g.f;return E?v(m,E(h)):m}},{"../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(s,C,A){var u=s("../internals/global");C.exports=u},{"../internals/global":163}],214:[function(s,C,A){C.exports=function(u){try{return{error:!1,value:u()}}catch(p){return{error:!0,value:p}}}},{}],215:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/promise-native-constructor"),b=s("../internals/is-callable"),g=s("../internals/is-forced"),y=s("../internals/inspect-source"),v=s("../internals/well-known-symbol"),c=s("../internals/engine-is-browser"),h=s("../internals/is-pure"),m=s("../internals/engine-v8-version"),E=p&&p.prototype,T=v("species"),I=!1,R=b(u.PromiseRejectionEvent),N=g("Promise",function(){var k=y(p),L=k!==String(p);if(!L&&m===66||h&&!(E.catch&&E.finally))return!0;if(m>=51&&/native code/.test(k))return!1;var H=new p(function(P){P(1)}),D=function(P){P(function(){},function(){})},V=H.constructor={};return V[T]=D,I=H.then(function(){})instanceof D,I?!L&&c&&!R:!0});C.exports={CONSTRUCTOR:N,REJECTION_EVENT:R,SUBCLASSING:I}},{"../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(s,C,A){var u=s("../internals/global");C.exports=u.Promise},{"../internals/global":163}],217:[function(s,C,A){var u=s("../internals/an-object"),p=s("../internals/is-object"),b=s("../internals/new-promise-capability");C.exports=function(g,y){if(u(g),p(y)&&y.constructor===g)return y;var v=b.f(g),c=v.resolve;return c(y),v.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(s,C,A){var u=s("../internals/promise-native-constructor"),p=s("../internals/check-correctness-of-iteration"),b=s("../internals/promise-constructor-detection").CONSTRUCTOR;C.exports=b||!p(function(g){u.all(g).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(s,C,A){var u=s("../internals/object-define-property").f;C.exports=function(p,b,g){g in p||u(p,g,{configurable:!0,get:function(){return b[g]},set:function(y){b[g]=y}})}},{"../internals/object-define-property":198}],220:[function(s,C,A){var u=function(){this.head=null,this.tail=null};u.prototype={add:function(p){var b={item:p,next:null};this.head?this.tail.next=b:this.head=b,this.tail=b},get:function(){var p=this.head;if(p)return this.head=p.next,this.tail===p&&(this.tail=null),p.item}},C.exports=u},{}],221:[function(s,C,A){var u=s("../internals/redefine");C.exports=function(p,b,g){for(var y in b)u(p,y,b[y],g);return p}},{"../internals/redefine":222}],222:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/is-callable"),b=s("../internals/has-own-property"),g=s("../internals/create-non-enumerable-property"),y=s("../internals/set-global"),v=s("../internals/inspect-source"),c=s("../internals/internal-state"),h=s("../internals/function-name").CONFIGURABLE,m=c.get,E=c.enforce,T=String(String).split("String");(C.exports=function(I,R,N,k){var L=k?!!k.unsafe:!1,H=k?!!k.enumerable:!1,D=k?!!k.noTargetGet:!1,V=k&&k.name!==void 0?k.name:R,P;if(p(N)&&(String(V).slice(0,7)==="Symbol("&&(V="["+String(V).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!b(N,"name")||h&&N.name!==V)&&g(N,"name",V),P=E(N),P.source||(P.source=T.join(typeof V=="string"?V:""))),I===u){H?I[R]=N:y(R,N);return}else L?!D&&I[R]&&(H=!0):delete I[R];H?I[R]=N:g(I,R,N)})(Function.prototype,"toString",function(){return p(this)&&m(this).source||v(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(s,C,A){var u=s("../internals/global"),p=s("../internals/function-call"),b=s("../internals/an-object"),g=s("../internals/is-callable"),y=s("../internals/classof-raw"),v=s("../internals/regexp-exec"),c=u.TypeError;C.exports=function(h,m){var E=h.exec;if(g(E)){var T=p(E,h,m);return T!==null&&b(T),T}if(y(h)==="RegExp")return p(v,h,m);throw c("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(s,C,A){"use strict";var u=s("../internals/function-call"),p=s("../internals/function-uncurry-this"),b=s("../internals/to-string"),g=s("../internals/regexp-flags"),y=s("../internals/regexp-sticky-helpers"),v=s("../internals/shared"),c=s("../internals/object-create"),h=s("../internals/internal-state").get,m=s("../internals/regexp-unsupported-dot-all"),E=s("../internals/regexp-unsupported-ncg"),T=v("native-string-replace",String.prototype.replace),I=RegExp.prototype.exec,R=I,N=p("".charAt),k=p("".indexOf),L=p("".replace),H=p("".slice),D=function(){var G=/a/,J=/b*/g;return u(I,G,"a"),u(I,J,"a"),G.lastIndex!==0||J.lastIndex!==0}(),V=y.BROKEN_CARET,P=/()??/.exec("")[1]!==void 0,U=D||P||V||m||E;U&&(R=function(J){var ee=this,ae=h(ee),oe=b(J),ue=ae.raw,se,ye,ve,Re,le,xe,pe;if(ue)return ue.lastIndex=ee.lastIndex,se=u(R,ue,oe),ee.lastIndex=ue.lastIndex,se;var Me=ae.groups,Oe=V&&ee.sticky,Le=u(g,ee),Pe=ee.source,De=0,Ke=oe;if(Oe&&(Le=L(Le,"y",""),k(Le,"g")===-1&&(Le+="g"),Ke=H(oe,ee.lastIndex),ee.lastIndex>0&&(!ee.multiline||ee.multiline&&N(oe,ee.lastIndex-1)!==`
`)&&(Pe="(?: "+Pe+")",Ke=" "+Ke,De++),ye=new RegExp("^(?:"+Pe+")",Le)),P&&(ye=new RegExp("^"+Pe+"$(?!\\s)",Le)),D&&(ve=ee.lastIndex),Re=u(I,Oe?ye:ee,Ke),Oe?Re?(Re.input=H(Re.input,De),Re[0]=H(Re[0],De),Re.index=ee.lastIndex,ee.lastIndex+=Re[0].length):ee.lastIndex=0:D&&Re&&(ee.lastIndex=ee.global?Re.index+Re[0].length:ve),P&&Re&&Re.length>1&&u(T,Re[0],ye,function(){for(le=1;le<arguments.length-2;le++)arguments[le]===void 0&&(Re[le]=void 0)}),Re&&Me)for(Re.groups=xe=c(null),le=0;le<Me.length;le++)pe=Me[le],xe[pe[0]]=Re[pe[1]];return Re}),C.exports=R},{"../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(s,C,A){"use strict";var u=s("../internals/an-object");C.exports=function(){var p=u(this),b="";return p.hasIndices&&(b+="d"),p.global&&(b+="g"),p.ignoreCase&&(b+="i"),p.multiline&&(b+="m"),p.dotAll&&(b+="s"),p.unicode&&(b+="u"),p.sticky&&(b+="y"),b}},{"../internals/an-object":101}],226:[function(s,C,A){var u=s("../internals/function-call"),p=s("../internals/has-own-property"),b=s("../internals/object-is-prototype-of"),g=s("../internals/regexp-flags"),y=RegExp.prototype;C.exports=function(v){var c=v.flags;return c===void 0&&!("flags"in y)&&!p(v,"flags")&&b(y,v)?u(g,v):c}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(s,C,A){var u=s("../internals/fails"),p=s("../internals/global"),b=p.RegExp,g=u(function(){var c=b("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),y=g||u(function(){return!b("a","y").sticky}),v=g||u(function(){var c=b("^r","gy");return c.lastIndex=2,c.exec("str")!=null});C.exports={BROKEN_CARET:v,MISSED_STICKY:y,UNSUPPORTED_Y:g}},{"../internals/fails":150,"../internals/global":163}],228:[function(s,C,A){var u=s("../internals/fails"),p=s("../internals/global"),b=p.RegExp;C.exports=u(function(){var g=b(".","s");return!(g.dotAll&&g.exec(`
`)&&g.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(s,C,A){var u=s("../internals/fails"),p=s("../internals/global"),b=p.RegExp;C.exports=u(function(){var g=b("(?<a>b)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(s,C,A){var u=s("../internals/global"),p=u.TypeError;C.exports=function(b){if(b==null)throw p("Can't call method on "+b);return b}},{"../internals/global":163}],231:[function(s,C,A){C.exports=Object.is||function(p,b){return p===b?p!==0||1/p===1/b:p!=p&&b!=b}},{}],232:[function(s,C,A){var u=s("../internals/global"),p=Object.defineProperty;C.exports=function(b,g){try{p(u,b,{value:g,configurable:!0,writable:!0})}catch(y){u[b]=g}return g}},{"../internals/global":163}],233:[function(s,C,A){"use strict";var u=s("../internals/get-built-in"),p=s("../internals/object-define-property"),b=s("../internals/well-known-symbol"),g=s("../internals/descriptors"),y=b("species");C.exports=function(v){var c=u(v),h=p.f;g&&c&&!c[y]&&h(c,y,{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(s,C,A){var u=s("../internals/object-define-property").f,p=s("../internals/has-own-property"),b=s("../internals/well-known-symbol"),g=b("toStringTag");C.exports=function(y,v,c){y&&!c&&(y=y.prototype),y&&!p(y,g)&&u(y,g,{configurable:!0,value:v})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(s,C,A){var u=s("../internals/shared"),p=s("../internals/uid"),b=u("keys");C.exports=function(g){return b[g]||(b[g]=p(g))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/set-global"),b="__core-js_shared__",g=u[b]||p(b,{});C.exports=g},{"../internals/global":163,"../internals/set-global":232}],237:[function(s,C,A){var u=s("../internals/is-pure"),p=s("../internals/shared-store");(C.exports=function(b,g){return p[b]||(p[b]=g!==void 0?g:{})})("versions",[]).push({version:"3.22.1",mode:u?"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(s,C,A){var u=s("../internals/an-object"),p=s("../internals/a-constructor"),b=s("../internals/well-known-symbol"),g=b("species");C.exports=function(y,v){var c=u(y).constructor,h;return c===void 0||(h=u(c)[g])==null?v:p(h)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(s,C,A){var u=s("../internals/function-uncurry-this"),p=s("../internals/to-integer-or-infinity"),b=s("../internals/to-string"),g=s("../internals/require-object-coercible"),y=u("".charAt),v=u("".charCodeAt),c=u("".slice),h=function(m){return function(E,T){var I=b(g(E)),R=p(T),N=I.length,k,L;return R<0||R>=N?m?"":void 0:(k=v(I,R),k<55296||k>56319||R+1===N||(L=v(I,R+1))<56320||L>57343?m?y(I,R):k:m?c(I,R,R+2):(k-55296<<10)+(L-56320)+65536)}};C.exports={codeAt:h(!1),charAt:h(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(s,C,A){var u=s("../internals/function-name").PROPER,p=s("../internals/fails"),b=s("../internals/whitespaces"),g="\u200B\x85\u180E";C.exports=function(y){return p(function(){return!!b[y]()||g[y]()!==g||u&&b[y].name!==y})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(s,C,A){var u=s("../internals/function-uncurry-this"),p=s("../internals/require-object-coercible"),b=s("../internals/to-string"),g=s("../internals/whitespaces"),y=u("".replace),v="["+g+"]",c=RegExp("^"+v+v+"*"),h=RegExp(v+v+"*$"),m=function(E){return function(T){var I=b(p(T));return E&1&&(I=y(I,c,"")),E&2&&(I=y(I,h,"")),I}};C.exports={start:m(1),end:m(2),trim:m(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(s,C,A){var u=s("../internals/function-call"),p=s("../internals/get-built-in"),b=s("../internals/well-known-symbol"),g=s("../internals/redefine");C.exports=function(){var y=p("Symbol"),v=y&&y.prototype,c=v&&v.valueOf,h=b("toPrimitive");v&&!v[h]&&g(v,h,function(m){return u(c,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/function-apply"),b=s("../internals/function-bind-context"),g=s("../internals/is-callable"),y=s("../internals/has-own-property"),v=s("../internals/fails"),c=s("../internals/html"),h=s("../internals/array-slice"),m=s("../internals/document-create-element"),E=s("../internals/validate-arguments-length"),T=s("../internals/engine-is-ios"),I=s("../internals/engine-is-node"),R=u.setImmediate,N=u.clearImmediate,k=u.process,L=u.Dispatch,H=u.Function,D=u.MessageChannel,V=u.String,P=0,U={},G="onreadystatechange",J,ee,ae,oe;try{J=u.location}catch(Re){}var ue=function(Re){if(y(U,Re)){var le=U[Re];delete U[Re],le()}},se=function(Re){return function(){ue(Re)}},ye=function(Re){ue(Re.data)},ve=function(Re){u.postMessage(V(Re),J.protocol+"//"+J.host)};(!R||!N)&&(R=function(le){E(arguments.length,1);var xe=g(le)?le:H(le),pe=h(arguments,1);return U[++P]=function(){p(xe,void 0,pe)},ee(P),P},N=function(le){delete U[le]},I?ee=function(Re){k.nextTick(se(Re))}:L&&L.now?ee=function(Re){L.now(se(Re))}:D&&!T?(ae=new D,oe=ae.port2,ae.port1.onmessage=ye,ee=b(oe.postMessage,oe)):u.addEventListener&&g(u.postMessage)&&!u.importScripts&&J&&J.protocol!=="file:"&&!v(ve)?(ee=ve,u.addEventListener("message",ye,!1)):G in m("script")?ee=function(Re){c.appendChild(m("script"))[G]=function(){c.removeChild(this),ue(Re)}}:ee=function(Re){setTimeout(se(Re),0)}),C.exports={set:R,clear:N}},{"../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(s,C,A){var u=s("../internals/function-uncurry-this");C.exports=u(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(s,C,A){var u=s("../internals/to-integer-or-infinity"),p=Math.max,b=Math.min;C.exports=function(g,y){var v=u(g);return v<0?p(v+y,0):b(v,y)}},{"../internals/to-integer-or-infinity":248}],246:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/to-integer-or-infinity"),b=s("../internals/to-length"),g=u.RangeError;C.exports=function(y){if(y===void 0)return 0;var v=p(y),c=b(v);if(v!==c)throw g("Wrong length or index");return c}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(s,C,A){var u=s("../internals/indexed-object"),p=s("../internals/require-object-coercible");C.exports=function(b){return u(p(b))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(s,C,A){var u=Math.ceil,p=Math.floor;C.exports=function(b){var g=+b;return g!==g||g===0?0:(g>0?p:u)(g)}},{}],249:[function(s,C,A){var u=s("../internals/to-integer-or-infinity"),p=Math.min;C.exports=function(b){return b>0?p(u(b),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/require-object-coercible"),b=u.Object;C.exports=function(g){return b(p(g))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/to-positive-integer"),b=u.RangeError;C.exports=function(g,y){var v=p(g);if(v%y)throw b("Wrong offset");return v}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/to-integer-or-infinity"),b=u.RangeError;C.exports=function(g){var y=p(g);if(y<0)throw b("The argument can't be less than 0");return y}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/function-call"),b=s("../internals/is-object"),g=s("../internals/is-symbol"),y=s("../internals/get-method"),v=s("../internals/ordinary-to-primitive"),c=s("../internals/well-known-symbol"),h=u.TypeError,m=c("toPrimitive");C.exports=function(E,T){if(!b(E)||g(E))return E;var I=y(E,m),R;if(I){if(T===void 0&&(T="default"),R=p(I,E,T),!b(R)||g(R))return R;throw h("Can't convert object to primitive value")}return T===void 0&&(T="number"),v(E,T)}},{"../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(s,C,A){var u=s("../internals/to-primitive"),p=s("../internals/is-symbol");C.exports=function(b){var g=u(b,"string");return p(g)?g:g+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(s,C,A){var u=s("../internals/well-known-symbol"),p=u("toStringTag"),b={};b[p]="z",C.exports=String(b)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/classof"),b=u.String;C.exports=function(g){if(p(g)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return b(g)}},{"../internals/classof":124,"../internals/global":163}],257:[function(s,C,A){var u=s("../internals/global"),p=u.String;C.exports=function(b){try{return p(b)}catch(g){return"Object"}}},{"../internals/global":163}],258:[function(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/global"),b=s("../internals/function-call"),g=s("../internals/descriptors"),y=s("../internals/typed-array-constructors-require-wrappers"),v=s("../internals/array-buffer-view-core"),c=s("../internals/array-buffer"),h=s("../internals/an-instance"),m=s("../internals/create-property-descriptor"),E=s("../internals/create-non-enumerable-property"),T=s("../internals/is-integral-number"),I=s("../internals/to-length"),R=s("../internals/to-index"),N=s("../internals/to-offset"),k=s("../internals/to-property-key"),L=s("../internals/has-own-property"),H=s("../internals/classof"),D=s("../internals/is-object"),V=s("../internals/is-symbol"),P=s("../internals/object-create"),U=s("../internals/object-is-prototype-of"),G=s("../internals/object-set-prototype-of"),J=s("../internals/object-get-own-property-names").f,ee=s("../internals/typed-array-from"),ae=s("../internals/array-iteration").forEach,oe=s("../internals/set-species"),ue=s("../internals/object-define-property"),se=s("../internals/object-get-own-property-descriptor"),ye=s("../internals/internal-state"),ve=s("../internals/inherit-if-required"),Re=ye.get,le=ye.set,xe=ue.f,pe=se.f,Me=Math.round,Oe=p.RangeError,Le=c.ArrayBuffer,Pe=Le.prototype,De=c.DataView,Ke=v.NATIVE_ARRAY_BUFFER_VIEWS,ze=v.TYPED_ARRAY_CONSTRUCTOR,it=v.TYPED_ARRAY_TAG,ot=v.TypedArray,Ge=v.TypedArrayPrototype,Ee=v.aTypedArrayConstructor,fe=v.isTypedArray,z="BYTES_PER_ELEMENT",X="Wrong length",de=function(Be,Ue){Ee(Be);for(var rt=0,et=Ue.length,dt=new Be(et);et>rt;)dt[rt]=Ue[rt++];return dt},Ce=function(Be,Ue){xe(Be,Ue,{get:function(){return Re(this)[Ue]}})},ne=function(Be){var Ue;return U(Pe,Be)||(Ue=H(Be))=="ArrayBuffer"||Ue=="SharedArrayBuffer"},re=function(Be,Ue){return fe(Be)&&!V(Ue)&&Ue in Be&&T(+Ue)&&Ue>=0},he=function(Ue,rt){return rt=k(rt),re(Ue,rt)?m(2,Ue[rt]):pe(Ue,rt)},_e=function(Ue,rt,et){return rt=k(rt),re(Ue,rt)&&D(et)&&L(et,"value")&&!L(et,"get")&&!L(et,"set")&&!et.configurable&&(!L(et,"writable")||et.writable)&&(!L(et,"enumerable")||et.enumerable)?(Ue[rt]=et.value,Ue):xe(Ue,rt,et)};g?(Ke||(se.f=he,ue.f=_e,Ce(Ge,"buffer"),Ce(Ge,"byteOffset"),Ce(Ge,"byteLength"),Ce(Ge,"length")),u({target:"Object",stat:!0,forced:!Ke},{getOwnPropertyDescriptor:he,defineProperty:_e}),C.exports=function(Be,Ue,rt){var et=Be.match(/\d+$/)[0]/8,dt=Be+(rt?"Clamped":"")+"Array",Ot="get"+Be,pt="set"+Be,nt=p[dt],ut=nt,Tt=ut&&ut.prototype,vt={},Ct=function($e,Zt){var vn=Re($e);return vn.view[Ot](Zt*et+vn.byteOffset,!0)},Ft=function($e,Zt,vn){var wt=Re($e);rt&&(vn=(vn=Me(vn))<0?0:vn>255?255:vn&255),wt.view[pt](Zt*et+wt.byteOffset,vn,!0)},Rt=function($e,Zt){xe($e,Zt,{get:function(){return Ct(this,Zt)},set:function(vn){return Ft(this,Zt,vn)},enumerable:!0})};Ke?y&&(ut=Ue(function($e,Zt,vn,wt){return h($e,Tt),ve(function(){return D(Zt)?ne(Zt)?wt!==void 0?new nt(Zt,N(vn,et),wt):vn!==void 0?new nt(Zt,N(vn,et)):new nt(Zt):fe(Zt)?de(ut,Zt):b(ee,ut,Zt):new nt(R(Zt))}(),$e,ut)}),G&&G(ut,ot),ae(J(nt),function($e){$e in ut||E(ut,$e,nt[$e])}),ut.prototype=Tt):(ut=Ue(function($e,Zt,vn,wt){h($e,Tt);var Dn=0,nr=0,Qn,jt,br;if(!D(Zt))br=R(Zt),jt=br*et,Qn=new Le(jt);else if(ne(Zt)){Qn=Zt,nr=N(vn,et);var dr=Zt.byteLength;if(wt===void 0){if(dr%et||(jt=dr-nr,jt<0))throw Oe(X)}else if(jt=I(wt)*et,jt+nr>dr)throw Oe(X);br=jt/et}else return fe(Zt)?de(ut,Zt):b(ee,ut,Zt);for(le($e,{buffer:Qn,byteOffset:nr,byteLength:jt,length:br,view:new De(Qn)});Dn<br;)Rt($e,Dn++)}),G&&G(ut,ot),Tt=ut.prototype=P(Ge)),Tt.constructor!==ut&&E(Tt,"constructor",ut),E(Tt,ze,ut),it&&E(Tt,it,dt),vt[dt]=ut,u({global:!0,forced:ut!=nt,sham:!Ke},vt),z in ut||E(ut,z,et),z in Tt||E(Tt,z,et),oe(dt)}):C.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(s,C,A){var u=s("../internals/global"),p=s("../internals/fails"),b=s("../internals/check-correctness-of-iteration"),g=s("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,y=u.ArrayBuffer,v=u.Int8Array;C.exports=!g||!p(function(){v(1)})||!p(function(){new v(-1)})||!b(function(c){new v,new v(null),new v(1.5),new v(c)},!0)||p(function(){return new v(new y(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(s,C,A){var u=s("../internals/array-from-constructor-and-list"),p=s("../internals/typed-array-species-constructor");C.exports=function(b,g){return u(p(b),g)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(s,C,A){var u=s("../internals/function-bind-context"),p=s("../internals/function-call"),b=s("../internals/a-constructor"),g=s("../internals/to-object"),y=s("../internals/length-of-array-like"),v=s("../internals/get-iterator"),c=s("../internals/get-iterator-method"),h=s("../internals/is-array-iterator-method"),m=s("../internals/array-buffer-view-core").aTypedArrayConstructor;C.exports=function(T){var I=b(this),R=g(T),N=arguments.length,k=N>1?arguments[1]:void 0,L=k!==void 0,H=c(R),D,V,P,U,G,J;if(H&&!h(H))for(G=v(R,H),J=G.next,R=[];!(U=p(J,G)).done;)R.push(U.value);for(L&&N>2&&(k=u(k,arguments[2])),V=y(R),P=new(m(I))(V),D=0;V>D;D++)P[D]=L?k(R[D],D):R[D];return P}},{"../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(s,C,A){var u=s("../internals/array-buffer-view-core"),p=s("../internals/species-constructor"),b=u.TYPED_ARRAY_CONSTRUCTOR,g=u.aTypedArrayConstructor;C.exports=function(y){return g(p(y,y[b]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(s,C,A){var u=s("../internals/function-uncurry-this"),p=0,b=Math.random(),g=u(1 .toString);C.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+g(++p+b,36)}},{"../internals/function-uncurry-this":157}],264:[function(s,C,A){var u=s("../internals/native-symbol");C.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(s,C,A){var u=s("../internals/descriptors"),p=s("../internals/fails");C.exports=u&&p(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(s,C,A){var u=s("../internals/global"),p=u.TypeError;C.exports=function(b,g){if(b<g)throw p("Not enough arguments");return b}},{"../internals/global":163}],267:[function(s,C,A){var u=s("../internals/well-known-symbol");A.f=u},{"../internals/well-known-symbol":268}],268:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/shared"),b=s("../internals/has-own-property"),g=s("../internals/uid"),y=s("../internals/native-symbol"),v=s("../internals/use-symbol-as-uid"),c=p("wks"),h=u.Symbol,m=h&&h.for,E=v?h:h&&h.withoutSetter||g;C.exports=function(T){if(!b(c,T)||!(y||typeof c[T]=="string")){var I="Symbol."+T;y&&b(h,T)?c[T]=h[T]:v&&m?c[T]=m(I):c[T]=E(I)}return c[T]}},{"../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(s,C,A){C.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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/global"),b=s("../internals/array-buffer"),g=s("../internals/set-species"),y="ArrayBuffer",v=b[y],c=p[y];u({global:!0,forced:c!==v},{ArrayBuffer:v}),g(y)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/function-uncurry-this"),b=s("../internals/fails"),g=s("../internals/array-buffer"),y=s("../internals/an-object"),v=s("../internals/to-absolute-index"),c=s("../internals/to-length"),h=s("../internals/species-constructor"),m=g.ArrayBuffer,E=g.DataView,T=E.prototype,I=p(m.prototype.slice),R=p(T.getUint8),N=p(T.setUint8),k=b(function(){return!new m(2).slice(1,void 0).byteLength});u({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:k},{slice:function(H,D){if(I&&D===void 0)return I(y(this),H);for(var V=y(this).byteLength,P=v(H,V),U=v(D===void 0?V:D,V),G=new(h(this,m))(c(U-P)),J=new E(this),ee=new E(G),ae=0;P<U;)N(ee,ae++,R(J,P++));return G}})},{"../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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/global"),b=s("../internals/fails"),g=s("../internals/is-array"),y=s("../internals/is-object"),v=s("../internals/to-object"),c=s("../internals/length-of-array-like"),h=s("../internals/create-property"),m=s("../internals/array-species-create"),E=s("../internals/array-method-has-species-support"),T=s("../internals/well-known-symbol"),I=s("../internals/engine-v8-version"),R=T("isConcatSpreadable"),N=9007199254740991,k="Maximum allowed index exceeded",L=p.TypeError,H=I>=51||!b(function(){var U=[];return U[R]=!1,U.concat()[0]!==U}),D=E("concat"),V=function(U){if(!y(U))return!1;var G=U[R];return G!==void 0?!!G:g(U)},P=!H||!D;u({target:"Array",proto:!0,forced:P},{concat:function(G){var J=v(this),ee=m(J,0),ae=0,oe,ue,se,ye,ve;for(oe=-1,se=arguments.length;oe<se;oe++)if(ve=oe===-1?J:arguments[oe],V(ve)){if(ye=c(ve),ae+ye>N)throw L(k);for(ue=0;ue<ye;ue++,ae++)ue in ve&&h(ee,ae,ve[ue])}else{if(ae>=N)throw L(k);h(ee,ae++,ve)}return ee.length=ae,ee}})},{"../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(s,C,A){var u=s("../internals/export"),p=s("../internals/array-fill"),b=s("../internals/add-to-unscopables");u({target:"Array",proto:!0},{fill:p}),b("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/array-iteration").filter,b=s("../internals/array-method-has-species-support"),g=b("filter");u({target:"Array",proto:!0,forced:!g},{filter:function(v){return p(this,v,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/array-iteration").find,b=s("../internals/add-to-unscopables"),g="find",y=!0;g in[]&&Array(1)[g](function(){y=!1}),u({target:"Array",proto:!0,forced:y},{find:function(c){return p(this,c,arguments.length>1?arguments[1]:void 0)}}),b(g)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(s,C,A){var u=s("../internals/export"),p=s("../internals/array-from"),b=s("../internals/check-correctness-of-iteration"),g=!b(function(y){Array.from(y)});u({target:"Array",stat:!0,forced:g},{from:p})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/array-includes").includes,b=s("../internals/add-to-unscopables");u({target:"Array",proto:!0},{includes:function(y){return p(this,y,arguments.length>1?arguments[1]:void 0)}}),b("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(s,C,A){"use strict";var u=s("../internals/to-indexed-object"),p=s("../internals/add-to-unscopables"),b=s("../internals/iterators"),g=s("../internals/internal-state"),y=s("../internals/object-define-property").f,v=s("../internals/define-iterator"),c=s("../internals/is-pure"),h=s("../internals/descriptors"),m="Array Iterator",E=g.set,T=g.getterFor(m);C.exports=v(Array,"Array",function(R,N){E(this,{type:m,target:u(R),index:0,kind:N})},function(){var R=T(this),N=R.target,k=R.kind,L=R.index++;return!N||L>=N.length?(R.target=void 0,{value:void 0,done:!0}):k=="keys"?{value:L,done:!1}:k=="values"?{value:N[L],done:!1}:{value:[L,N[L]],done:!1}},"values");var I=b.Arguments=b.Array;if(p("keys"),p("values"),p("entries"),!c&&h&&I.name!=="values")try{y(I,"name",{value:"values"})}catch(R){}},{"../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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/function-uncurry-this"),b=s("../internals/indexed-object"),g=s("../internals/to-indexed-object"),y=s("../internals/array-method-is-strict"),v=p([].join),c=b!=Object,h=y("join",",");u({target:"Array",proto:!0,forced:c||!h},{join:function(E){return v(g(this),E===void 0?",":E)}})},{"../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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/array-iteration").map,b=s("../internals/array-method-has-species-support"),g=b("map");u({target:"Array",proto:!0,forced:!g},{map:function(v){return p(this,v,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/global"),b=s("../internals/is-array"),g=s("../internals/is-constructor"),y=s("../internals/is-object"),v=s("../internals/to-absolute-index"),c=s("../internals/length-of-array-like"),h=s("../internals/to-indexed-object"),m=s("../internals/create-property"),E=s("../internals/well-known-symbol"),T=s("../internals/array-method-has-species-support"),I=s("../internals/array-slice"),R=T("slice"),N=E("species"),k=p.Array,L=Math.max;u({target:"Array",proto:!0,forced:!R},{slice:function(D,V){var P=h(this),U=c(P),G=v(D,U),J=v(V===void 0?U:V,U),ee,ae,oe;if(b(P)&&(ee=P.constructor,g(ee)&&(ee===k||b(ee.prototype))?ee=void 0:y(ee)&&(ee=ee[N],ee===null&&(ee=void 0)),ee===k||ee===void 0))return I(P,G,J);for(ae=new(ee===void 0?k:ee)(L(J-G,0)),oe=0;G<J;G++,oe++)G in P&&m(ae,oe,P[G]);return ae.length=oe,ae}})},{"../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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/function-uncurry-this"),b=s("../internals/a-callable"),g=s("../internals/to-object"),y=s("../internals/length-of-array-like"),v=s("../internals/to-string"),c=s("../internals/fails"),h=s("../internals/array-sort"),m=s("../internals/array-method-is-strict"),E=s("../internals/engine-ff-version"),T=s("../internals/engine-is-ie-or-edge"),I=s("../internals/engine-v8-version"),R=s("../internals/engine-webkit-version"),N=[],k=p(N.sort),L=p(N.push),H=c(function(){N.sort(void 0)}),D=c(function(){N.sort(null)}),V=m("sort"),P=!c(function(){if(I)return I<70;if(!(E&&E>3)){if(T)return!0;if(R)return R<603;var J="",ee,ae,oe,ue;for(ee=65;ee<76;ee++){switch(ae=String.fromCharCode(ee),ee){case 66:case 69:case 70:case 72:oe=3;break;case 68:case 71:oe=4;break;default:oe=2}for(ue=0;ue<47;ue++)N.push({k:ae+ue,v:oe})}for(N.sort(function(se,ye){return ye.v-se.v}),ue=0;ue<N.length;ue++)ae=N[ue].k.charAt(0),J.charAt(J.length-1)!==ae&&(J+=ae);return J!=="DGBEFHACIJK"}}),U=H||!D||!V||!P,G=function(J){return function(ee,ae){return ae===void 0?-1:ee===void 0?1:J!==void 0?+J(ee,ae)||0:v(ee)>v(ae)?1:-1}};u({target:"Array",proto:!0,forced:U},{sort:function(ee){ee!==void 0&&b(ee);var ae=g(this);if(P)return ee===void 0?k(ae):k(ae,ee);var oe=[],ue=y(ae),se,ye;for(ye=0;ye<ue;ye++)ye in ae&&L(oe,ae[ye]);for(h(oe,G(ee)),se=oe.length,ye=0;ye<se;)ae[ye]=oe[ye++];for(;ye<ue;)delete ae[ye++];return ae}})},{"../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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/global"),b=s("../internals/to-absolute-index"),g=s("../internals/to-integer-or-infinity"),y=s("../internals/length-of-array-like"),v=s("../internals/to-object"),c=s("../internals/array-species-create"),h=s("../internals/create-property"),m=s("../internals/array-method-has-species-support"),E=m("splice"),T=p.TypeError,I=Math.max,R=Math.min,N=9007199254740991,k="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!E},{splice:function(H,D){var V=v(this),P=y(V),U=b(H,P),G=arguments.length,J,ee,ae,oe,ue,se;if(G===0?J=ee=0:G===1?(J=0,ee=P-U):(J=G-2,ee=R(I(g(D),0),P-U)),P+J-ee>N)throw T(k);for(ae=c(V,ee),oe=0;oe<ee;oe++)ue=U+oe,ue in V&&h(ae,oe,V[ue]);if(ae.length=ee,J<ee){for(oe=U;oe<P-ee;oe++)ue=oe+ee,se=oe+J,ue in V?V[se]=V[ue]:delete V[se];for(oe=P;oe>P-ee+J;oe--)delete V[oe-1]}else if(J>ee)for(oe=P-ee;oe>U;oe--)ue=oe+ee-1,se=oe+J-1,ue in V?V[se]=V[ue]:delete V[se];for(oe=0;oe<J;oe++)V[oe+U]=arguments[oe+2];return V.length=P-ee+J,ae}})},{"../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(s,C,A){var u=s("../internals/descriptors"),p=s("../internals/function-name").EXISTS,b=s("../internals/function-uncurry-this"),g=s("../internals/object-define-property").f,y=Function.prototype,v=b(y.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,h=b(c.exec),m="name";u&&!p&&g(y,m,{configurable:!0,get:function(){try{return h(c,v(this))[1]}catch(E){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(s,C,A){var u=s("../internals/export"),p=s("../internals/get-built-in"),b=s("../internals/function-apply"),g=s("../internals/function-call"),y=s("../internals/function-uncurry-this"),v=s("../internals/fails"),c=s("../internals/is-array"),h=s("../internals/is-callable"),m=s("../internals/is-object"),E=s("../internals/is-symbol"),T=s("../internals/array-slice"),I=s("../internals/native-symbol"),R=p("JSON","stringify"),N=y(/./.exec),k=y("".charAt),L=y("".charCodeAt),H=y("".replace),D=y(1 .toString),V=/[\uD800-\uDFFF]/g,P=/^[\uD800-\uDBFF]$/,U=/^[\uDC00-\uDFFF]$/,G=!I||v(function(){var oe=p("Symbol")();return R([oe])!="[null]"||R({a:oe})!="{}"||R(Object(oe))!="{}"}),J=v(function(){return R("\uDF06\uD834")!=='"\\udf06\\ud834"'||R("\uDEAD")!=='"\\udead"'}),ee=function(oe,ue){var se=T(arguments),ye=ue;if(!(!m(ue)&&oe===void 0||E(oe)))return c(ue)||(ue=function(ve,Re){if(h(ye)&&(Re=g(ye,this,ve,Re)),!E(Re))return Re}),se[1]=ue,b(R,null,se)},ae=function(oe,ue,se){var ye=k(se,ue-1),ve=k(se,ue+1);return N(P,oe)&&!N(U,ve)||N(U,oe)&&!N(P,ye)?"\\u"+D(L(oe,0),16):oe};R&&u({target:"JSON",stat:!0,forced:G||J},{stringify:function(ue,se,ye){var ve=T(arguments),Re=b(G?ee:R,null,ve);return J&&typeof Re=="string"?H(Re,V,ae):Re}})},{"../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(s,C,A){"use strict";var u=s("../internals/descriptors"),p=s("../internals/global"),b=s("../internals/function-uncurry-this"),g=s("../internals/is-forced"),y=s("../internals/redefine"),v=s("../internals/has-own-property"),c=s("../internals/inherit-if-required"),h=s("../internals/object-is-prototype-of"),m=s("../internals/is-symbol"),E=s("../internals/to-primitive"),T=s("../internals/fails"),I=s("../internals/object-get-own-property-names").f,R=s("../internals/object-get-own-property-descriptor").f,N=s("../internals/object-define-property").f,k=s("../internals/this-number-value"),L=s("../internals/string-trim").trim,H="Number",D=p[H],V=D.prototype,P=p.TypeError,U=b("".slice),G=b("".charCodeAt),J=function(ye){var ve=E(ye,"number");return typeof ve=="bigint"?ve:ee(ve)},ee=function(ye){var ve=E(ye,"number"),Re,le,xe,pe,Me,Oe,Le,Pe;if(m(ve))throw P("Cannot convert a Symbol value to a number");if(typeof ve=="string"&&ve.length>2){if(ve=L(ve),Re=G(ve,0),Re===43||Re===45){if(le=G(ve,2),le===88||le===120)return NaN}else if(Re===48){switch(G(ve,1)){case 66:case 98:xe=2,pe=49;break;case 79:case 111:xe=8,pe=55;break;default:return+ve}for(Me=U(ve,2),Oe=Me.length,Le=0;Le<Oe;Le++)if(Pe=G(Me,Le),Pe<48||Pe>pe)return NaN;return parseInt(Me,xe)}}return+ve};if(g(H,!D(" 0o1")||!D("0b1")||D("+0x1"))){for(var ae=function(ve){var Re=arguments.length<1?0:D(J(ve)),le=this;return h(V,le)&&T(function(){k(le)})?c(Object(Re),le,ae):Re},oe=u?I(D):"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(","),ue=0,se;oe.length>ue;ue++)v(D,se=oe[ue])&&!v(ae,se)&&N(ae,se,R(D,se));ae.prototype=V,V.constructor=ae,y(p,H,ae)}},{"../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(s,C,A){var u=s("../internals/export"),p=s("../internals/object-assign");u({target:"Object",stat:!0,forced:Object.assign!==p},{assign:p})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(s,C,A){var u=s("../internals/export"),p=s("../internals/object-to-array").entries;u({target:"Object",stat:!0},{entries:function(g){return p(g)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(s,C,A){var u=s("../internals/export"),p=s("../internals/native-symbol"),b=s("../internals/fails"),g=s("../internals/object-get-own-property-symbols"),y=s("../internals/to-object"),v=!p||b(function(){g.f(1)});u({target:"Object",stat:!0,forced:v},{getOwnPropertySymbols:function(h){var m=g.f;return m?m(y(h)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(s,C,A){var u=s("../internals/export"),p=s("../internals/to-object"),b=s("../internals/object-keys"),g=s("../internals/fails"),y=g(function(){b(1)});u({target:"Object",stat:!0,forced:y},{keys:function(c){return b(p(c))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(s,C,A){var u=s("../internals/to-string-tag-support"),p=s("../internals/redefine"),b=s("../internals/object-to-string");u||p(Object.prototype,"toString",b,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/function-call"),b=s("../internals/a-callable"),g=s("../internals/new-promise-capability"),y=s("../internals/perform"),v=s("../internals/iterate"),c=s("../internals/promise-statics-incorrect-iteration");u({target:"Promise",stat:!0,forced:c},{all:function(m){var E=this,T=g.f(E),I=T.resolve,R=T.reject,N=y(function(){var k=b(E.resolve),L=[],H=0,D=1;v(m,function(V){var P=H++,U=!1;D++,p(k,E,V).then(function(G){U||(U=!0,L[P]=G,--D||I(L))},R)}),--D||I(L)});return N.error&&R(N.value),T.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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/is-pure"),b=s("../internals/promise-constructor-detection").CONSTRUCTOR,g=s("../internals/promise-native-constructor"),y=s("../internals/get-built-in"),v=s("../internals/is-callable"),c=s("../internals/redefine"),h=g&&g.prototype;if(u({target:"Promise",proto:!0,forced:b,real:!0},{catch:function(E){return this.then(void 0,E)}}),!p&&v(g)){var m=y("Promise").prototype.catch;h.catch!==m&&c(h,"catch",m,{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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/is-pure"),b=s("../internals/engine-is-node"),g=s("../internals/global"),y=s("../internals/function-call"),v=s("../internals/redefine"),c=s("../internals/redefine-all"),h=s("../internals/object-set-prototype-of"),m=s("../internals/set-to-string-tag"),E=s("../internals/set-species"),T=s("../internals/a-callable"),I=s("../internals/is-callable"),R=s("../internals/is-object"),N=s("../internals/an-instance"),k=s("../internals/species-constructor"),L=s("../internals/task").set,H=s("../internals/microtask"),D=s("../internals/host-report-errors"),V=s("../internals/perform"),P=s("../internals/queue"),U=s("../internals/internal-state"),G=s("../internals/promise-native-constructor"),J=s("../internals/promise-constructor-detection"),ee=s("../internals/new-promise-capability"),ae="Promise",oe=J.CONSTRUCTOR,ue=J.REJECTION_EVENT,se=J.SUBCLASSING,ye=U.getterFor(ae),ve=U.set,Re=G&&G.prototype,le=G,xe=Re,pe=g.TypeError,Me=g.document,Oe=g.process,Le=ee.f,Pe=Le,De=!!(Me&&Me.createEvent&&g.dispatchEvent),Ke="unhandledrejection",ze="rejectionhandled",it=0,ot=1,Ge=2,Ee=1,fe=2,z,X,de,Ce,ne=function(pt){var nt;return R(pt)&&I(nt=pt.then)?nt:!1},re=function(pt,nt){var ut=nt.value,Tt=nt.state==ot,vt=Tt?pt.ok:pt.fail,Ct=pt.resolve,Ft=pt.reject,Rt=pt.domain,$e,Zt,vn;try{vt?(Tt||(nt.rejection===fe&&rt(nt),nt.rejection=Ee),vt===!0?$e=ut:(Rt&&Rt.enter(),$e=vt(ut),Rt&&(Rt.exit(),vn=!0)),$e===pt.promise?Ft(pe("Promise-chain cycle")):(Zt=ne($e))?y(Zt,$e,Ct,Ft):Ct($e)):Ft(ut)}catch(wt){Rt&&!vn&&Rt.exit(),Ft(wt)}},he=function(pt,nt){pt.notified||(pt.notified=!0,H(function(){for(var ut=pt.reactions,Tt;Tt=ut.get();)re(Tt,pt);pt.notified=!1,nt&&!pt.rejection&&Be(pt)}))},_e=function(pt,nt,ut){var Tt,vt;De?(Tt=Me.createEvent("Event"),Tt.promise=nt,Tt.reason=ut,Tt.initEvent(pt,!1,!0),g.dispatchEvent(Tt)):Tt={promise:nt,reason:ut},!ue&&(vt=g["on"+pt])?vt(Tt):pt===Ke&&D("Unhandled promise rejection",ut)},Be=function(pt){y(L,g,function(){var nt=pt.facade,ut=pt.value,Tt=Ue(pt),vt;if(Tt&&(vt=V(function(){b?Oe.emit("unhandledRejection",ut,nt):_e(Ke,nt,ut)}),pt.rejection=b||Ue(pt)?fe:Ee,vt.error))throw vt.value})},Ue=function(pt){return pt.rejection!==Ee&&!pt.parent},rt=function(pt){y(L,g,function(){var nt=pt.facade;b?Oe.emit("rejectionHandled",nt):_e(ze,nt,pt.value)})},et=function(pt,nt,ut){return function(Tt){pt(nt,Tt,ut)}},dt=function(pt,nt,ut){pt.done||(pt.done=!0,ut&&(pt=ut),pt.value=nt,pt.state=Ge,he(pt,!0))},Ot=function(pt,nt,ut){if(!pt.done){pt.done=!0,ut&&(pt=ut);try{if(pt.facade===nt)throw pe("Promise can't be resolved itself");var Tt=ne(nt);Tt?H(function(){var vt={done:!1};try{y(Tt,nt,et(Ot,vt,pt),et(dt,vt,pt))}catch(Ct){dt(vt,Ct,pt)}}):(pt.value=nt,pt.state=ot,he(pt,!1))}catch(vt){dt({done:!1},vt,pt)}}};if(oe&&(le=function(nt){N(this,xe),T(nt),y(z,this);var ut=ye(this);try{nt(et(Ot,ut),et(dt,ut))}catch(Tt){dt(ut,Tt)}},xe=le.prototype,z=function(nt){ve(this,{type:ae,done:!1,notified:!1,parent:!1,reactions:new P,rejection:!1,state:it,value:void 0})},z.prototype=c(xe,{then:function(nt,ut){var Tt=ye(this),vt=Le(k(this,le));return Tt.parent=!0,vt.ok=I(nt)?nt:!0,vt.fail=I(ut)&&ut,vt.domain=b?Oe.domain:void 0,Tt.state==it?Tt.reactions.add(vt):H(function(){re(vt,Tt)}),vt.promise}}),X=function(){var pt=new z,nt=ye(pt);this.promise=pt,this.resolve=et(Ot,nt),this.reject=et(dt,nt)},ee.f=Le=function(pt){return pt===le||pt===de?new X(pt):Pe(pt)},!p&&I(G)&&Re!==Object.prototype)){Ce=Re.then,se||v(Re,"then",function(nt,ut){var Tt=this;return new le(function(vt,Ct){y(Ce,Tt,vt,Ct)}).then(nt,ut)},{unsafe:!0});try{delete Re.constructor}catch(pt){}h&&h(Re,xe)}u({global:!0,wrap:!0,forced:oe},{Promise:le}),m(le,ae,!1,!0),E(ae)},{"../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(s,C,A){s("../modules/es.promise.constructor"),s("../modules/es.promise.all"),s("../modules/es.promise.catch"),s("../modules/es.promise.race"),s("../modules/es.promise.reject"),s("../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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/function-call"),b=s("../internals/a-callable"),g=s("../internals/new-promise-capability"),y=s("../internals/perform"),v=s("../internals/iterate"),c=s("../internals/promise-statics-incorrect-iteration");u({target:"Promise",stat:!0,forced:c},{race:function(m){var E=this,T=g.f(E),I=T.reject,R=y(function(){var N=b(E.resolve);v(m,function(k){p(N,E,k).then(T.resolve,I)})});return R.error&&I(R.value),T.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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/function-call"),b=s("../internals/new-promise-capability"),g=s("../internals/promise-constructor-detection").CONSTRUCTOR;u({target:"Promise",stat:!0,forced:g},{reject:function(v){var c=b.f(this);return p(c.reject,void 0,v),c.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/get-built-in"),b=s("../internals/is-pure"),g=s("../internals/promise-native-constructor"),y=s("../internals/promise-constructor-detection").CONSTRUCTOR,v=s("../internals/promise-resolve"),c=p("Promise"),h=b&&!y;u({target:"Promise",stat:!0,forced:b||y},{resolve:function(E){return v(h&&this===c?g:this,E)}})},{"../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(s,C,A){var u=s("../internals/descriptors"),p=s("../internals/global"),b=s("../internals/function-uncurry-this"),g=s("../internals/is-forced"),y=s("../internals/inherit-if-required"),v=s("../internals/create-non-enumerable-property"),c=s("../internals/object-get-own-property-names").f,h=s("../internals/object-is-prototype-of"),m=s("../internals/is-regexp"),E=s("../internals/to-string"),T=s("../internals/regexp-get-flags"),I=s("../internals/regexp-sticky-helpers"),R=s("../internals/proxy-accessor"),N=s("../internals/redefine"),k=s("../internals/fails"),L=s("../internals/has-own-property"),H=s("../internals/internal-state").enforce,D=s("../internals/set-species"),V=s("../internals/well-known-symbol"),P=s("../internals/regexp-unsupported-dot-all"),U=s("../internals/regexp-unsupported-ncg"),G=V("match"),J=p.RegExp,ee=J.prototype,ae=p.SyntaxError,oe=b(ee.exec),ue=b("".charAt),se=b("".replace),ye=b("".indexOf),ve=b("".slice),Re=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,le=/a/g,xe=/a/g,pe=new J(le)!==le,Me=I.MISSED_STICKY,Oe=I.UNSUPPORTED_Y,Le=u&&(!pe||Me||P||U||k(function(){return xe[G]=!1,J(le)!=le||J(xe)==xe||J(le,"i")!="/a/i"})),Pe=function(ot){for(var Ge=ot.length,Ee=0,fe="",z=!1,X;Ee<=Ge;Ee++){if(X=ue(ot,Ee),X==="\\"){fe+=X+ue(ot,++Ee);continue}!z&&X==="."?fe+="[\\s\\S]":(X==="["?z=!0:X==="]"&&(z=!1),fe+=X)}return fe},De=function(ot){for(var Ge=ot.length,Ee=0,fe="",z=[],X={},de=!1,Ce=!1,ne=0,re="",he;Ee<=Ge;Ee++){if(he=ue(ot,Ee),he==="\\")he=he+ue(ot,++Ee);else if(he==="]")de=!1;else if(!de)switch(!0){case he==="[":de=!0;break;case he==="(":oe(Re,ve(ot,Ee+1))&&(Ee+=2,Ce=!0),fe+=he,ne++;continue;case(he===">"&&Ce):if(re===""||L(X,re))throw new ae("Invalid capture group name");X[re]=!0,z[z.length]=[re,ne],Ce=!1,re="";continue}Ce?re+=he:fe+=he}return[fe,z]};if(g("RegExp",Le)){for(var Ke=function(Ge,Ee){var fe=h(ee,this),z=m(Ge),X=Ee===void 0,de=[],Ce=Ge,ne,re,he,_e,Be,Ue;if(!fe&&z&&X&&Ge.constructor===Ke)return Ge;if((z||h(ee,Ge))&&(Ge=Ge.source,X&&(Ee=T(Ce))),Ge=Ge===void 0?"":E(Ge),Ee=Ee===void 0?"":E(Ee),Ce=Ge,P&&"dotAll"in le&&(re=!!Ee&&ye(Ee,"s")>-1,re&&(Ee=se(Ee,/s/g,""))),ne=Ee,Me&&"sticky"in le&&(he=!!Ee&&ye(Ee,"y")>-1,he&&Oe&&(Ee=se(Ee,/y/g,""))),U&&(_e=De(Ge),Ge=_e[0],de=_e[1]),Be=y(J(Ge,Ee),fe?this:ee,Ke),(re||he||de.length)&&(Ue=H(Be),re&&(Ue.dotAll=!0,Ue.raw=Ke(Pe(Ge),ne)),he&&(Ue.sticky=!0),de.length&&(Ue.groups=de)),Ge!==Ce)try{v(Be,"source",Ce===""?"(?:)":Ce)}catch(rt){}return Be},ze=c(J),it=0;ze.length>it;)R(Ke,J,ze[it++]);ee.constructor=Ke,Ke.prototype=ee,N(p,"RegExp",Ke)}D("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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/regexp-exec");u({target:"RegExp",proto:!0,forced:/./.exec!==p},{exec:p})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(s,C,A){"use strict";var u=s("../internals/function-name").PROPER,p=s("../internals/redefine"),b=s("../internals/an-object"),g=s("../internals/to-string"),y=s("../internals/fails"),v=s("../internals/regexp-get-flags"),c="toString",h=RegExp.prototype,m=h[c],E=y(function(){return m.call({source:"a",flags:"b"})!="/a/b"}),T=u&&m.name!=c;(E||T)&&p(RegExp.prototype,c,function(){var R=b(this),N=g(R.source),k=g(v(R));return"/"+N+"/"+k},{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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/function-uncurry-this"),b=s("../internals/not-a-regexp"),g=s("../internals/require-object-coercible"),y=s("../internals/to-string"),v=s("../internals/correct-is-regexp-logic"),c=p("".indexOf);u({target:"String",proto:!0,forced:!v("includes")},{includes:function(m){return!!~c(y(g(this)),y(b(m)),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(s,C,A){"use strict";var u=s("../internals/string-multibyte").charAt,p=s("../internals/to-string"),b=s("../internals/internal-state"),g=s("../internals/define-iterator"),y="String Iterator",v=b.set,c=b.getterFor(y);g(String,"String",function(h){v(this,{type:y,string:p(h),index:0})},function(){var m=c(this),E=m.string,T=m.index,I;return T>=E.length?{value:void 0,done:!0}:(I=u(E,T),m.index+=I.length,{value:I,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(s,C,A){"use strict";var u=s("../internals/function-call"),p=s("../internals/fix-regexp-well-known-symbol-logic"),b=s("../internals/an-object"),g=s("../internals/to-length"),y=s("../internals/to-string"),v=s("../internals/require-object-coercible"),c=s("../internals/get-method"),h=s("../internals/advance-string-index"),m=s("../internals/regexp-exec-abstract");p("match",function(E,T,I){return[function(N){var k=v(this),L=N==null?void 0:c(N,E);return L?u(L,N,k):new RegExp(N)[E](y(k))},function(R){var N=b(this),k=y(R),L=I(T,N,k);if(L.done)return L.value;if(!N.global)return m(N,k);var H=N.unicode;N.lastIndex=0;for(var D=[],V=0,P;(P=m(N,k))!==null;){var U=y(P[0]);D[V]=U,U===""&&(N.lastIndex=h(k,g(N.lastIndex),H)),V++}return V===0?null:D}]})},{"../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(s,C,A){"use strict";var u=s("../internals/function-apply"),p=s("../internals/function-call"),b=s("../internals/function-uncurry-this"),g=s("../internals/fix-regexp-well-known-symbol-logic"),y=s("../internals/fails"),v=s("../internals/an-object"),c=s("../internals/is-callable"),h=s("../internals/to-integer-or-infinity"),m=s("../internals/to-length"),E=s("../internals/to-string"),T=s("../internals/require-object-coercible"),I=s("../internals/advance-string-index"),R=s("../internals/get-method"),N=s("../internals/get-substitution"),k=s("../internals/regexp-exec-abstract"),L=s("../internals/well-known-symbol"),H=L("replace"),D=Math.max,V=Math.min,P=b([].concat),U=b([].push),G=b("".indexOf),J=b("".slice),ee=function(se){return se===void 0?se:String(se)},ae=function(){return"a".replace(/./,"$0")==="$0"}(),oe=function(){return/./[H]?/./[H]("a","$0")==="":!1}(),ue=!y(function(){var se=/./;return se.exec=function(){var ye=[];return ye.groups={a:"7"},ye},"".replace(se,"$<a>")!=="7"});g("replace",function(se,ye,ve){var Re=oe?"$":"$0";return[function(xe,pe){var Me=T(this),Oe=xe==null?void 0:R(xe,H);return Oe?p(Oe,xe,Me,pe):p(ye,E(Me),xe,pe)},function(le,xe){var pe=v(this),Me=E(le);if(typeof xe=="string"&&G(xe,Re)===-1&&G(xe,"$<")===-1){var Oe=ve(ye,pe,Me,xe);if(Oe.done)return Oe.value}var Le=c(xe);Le||(xe=E(xe));var Pe=pe.global;if(Pe){var De=pe.unicode;pe.lastIndex=0}for(var Ke=[];;){var ze=k(pe,Me);if(ze===null||(U(Ke,ze),!Pe))break;var it=E(ze[0]);it===""&&(pe.lastIndex=I(Me,m(pe.lastIndex),De))}for(var ot="",Ge=0,Ee=0;Ee<Ke.length;Ee++){ze=Ke[Ee];for(var fe=E(ze[0]),z=D(V(h(ze.index),Me.length),0),X=[],de=1;de<ze.length;de++)U(X,ee(ze[de]));var Ce=ze.groups;if(Le){var ne=P([fe],X,z,Me);Ce!==void 0&&U(ne,Ce);var re=E(u(xe,void 0,ne))}else re=N(fe,Me,z,X,Ce,xe);z>=Ge&&(ot+=J(Me,Ge,z)+re,Ge=z+fe.length)}return ot+J(Me,Ge)}]},!ue||!ae||oe)},{"../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(s,C,A){"use strict";var u=s("../internals/function-call"),p=s("../internals/fix-regexp-well-known-symbol-logic"),b=s("../internals/an-object"),g=s("../internals/require-object-coercible"),y=s("../internals/same-value"),v=s("../internals/to-string"),c=s("../internals/get-method"),h=s("../internals/regexp-exec-abstract");p("search",function(m,E,T){return[function(R){var N=g(this),k=R==null?void 0:c(R,m);return k?u(k,R,N):new RegExp(R)[m](v(N))},function(I){var R=b(this),N=v(I),k=T(E,R,N);if(k.done)return k.value;var L=R.lastIndex;y(L,0)||(R.lastIndex=0);var H=h(R,N);return y(R.lastIndex,L)||(R.lastIndex=L),H===null?-1:H.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(s,C,A){"use strict";var u=s("../internals/function-apply"),p=s("../internals/function-call"),b=s("../internals/function-uncurry-this"),g=s("../internals/fix-regexp-well-known-symbol-logic"),y=s("../internals/is-regexp"),v=s("../internals/an-object"),c=s("../internals/require-object-coercible"),h=s("../internals/species-constructor"),m=s("../internals/advance-string-index"),E=s("../internals/to-length"),T=s("../internals/to-string"),I=s("../internals/get-method"),R=s("../internals/array-slice-simple"),N=s("../internals/regexp-exec-abstract"),k=s("../internals/regexp-exec"),L=s("../internals/regexp-sticky-helpers"),H=s("../internals/fails"),D=L.UNSUPPORTED_Y,V=4294967295,P=Math.min,U=[].push,G=b(/./.exec),J=b(U),ee=b("".slice),ae=!H(function(){var oe=/(?:)/,ue=oe.exec;oe.exec=function(){return ue.apply(this,arguments)};var se="ab".split(oe);return se.length!==2||se[0]!=="a"||se[1]!=="b"});g("split",function(oe,ue,se){var ye;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?ye=function(ve,Re){var le=T(c(this)),xe=Re===void 0?V:Re>>>0;if(xe===0)return[];if(ve===void 0)return[le];if(!y(ve))return p(ue,le,ve,xe);for(var pe=[],Me=(ve.ignoreCase?"i":"")+(ve.multiline?"m":"")+(ve.unicode?"u":"")+(ve.sticky?"y":""),Oe=0,Le=new RegExp(ve.source,Me+"g"),Pe,De,Ke;(Pe=p(k,Le,le))&&(De=Le.lastIndex,!(De>Oe&&(J(pe,ee(le,Oe,Pe.index)),Pe.length>1&&Pe.index<le.length&&u(U,pe,R(Pe,1)),Ke=Pe[0].length,Oe=De,pe.length>=xe)));)Le.lastIndex===Pe.index&&Le.lastIndex++;return Oe===le.length?(Ke||!G(Le,""))&&J(pe,""):J(pe,ee(le,Oe)),pe.length>xe?R(pe,0,xe):pe}:"0".split(void 0,0).length?ye=function(ve,Re){return ve===void 0&&Re===0?[]:p(ue,this,ve,Re)}:ye=ue,[function(Re,le){var xe=c(this),pe=Re==null?void 0:I(Re,oe);return pe?p(pe,Re,xe,le):p(ye,T(xe),Re,le)},function(ve,Re){var le=v(this),xe=T(ve),pe=se(ye,le,xe,Re,ye!==ue);if(pe.done)return pe.value;var Me=h(le,RegExp),Oe=le.unicode,Le=(le.ignoreCase?"i":"")+(le.multiline?"m":"")+(le.unicode?"u":"")+(D?"g":"y"),Pe=new Me(D?"^(?:"+le.source+")":le,Le),De=Re===void 0?V:Re>>>0;if(De===0)return[];if(xe.length===0)return N(Pe,xe)===null?[xe]:[];for(var Ke=0,ze=0,it=[];ze<xe.length;){Pe.lastIndex=D?0:ze;var ot=N(Pe,D?ee(xe,ze):xe),Ge;if(ot===null||(Ge=P(E(Pe.lastIndex+(D?ze:0)),xe.length))===Ke)ze=m(xe,ze,Oe);else{if(J(it,ee(xe,Ke,ze)),it.length===De)return it;for(var Ee=1;Ee<=ot.length-1;Ee++)if(J(it,ot[Ee]),it.length===De)return it;ze=Ke=Ge}}return J(it,ee(xe,Ke)),it}]},!ae,D)},{"../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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/string-trim").trim,b=s("../internals/string-trim-forced");u({target:"String",proto:!0,forced:b("trim")},{trim:function(){return p(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/global"),b=s("../internals/function-call"),g=s("../internals/function-uncurry-this"),y=s("../internals/is-pure"),v=s("../internals/descriptors"),c=s("../internals/native-symbol"),h=s("../internals/fails"),m=s("../internals/has-own-property"),E=s("../internals/object-is-prototype-of"),T=s("../internals/an-object"),I=s("../internals/to-indexed-object"),R=s("../internals/to-property-key"),N=s("../internals/to-string"),k=s("../internals/create-property-descriptor"),L=s("../internals/object-create"),H=s("../internals/object-keys"),D=s("../internals/object-get-own-property-names"),V=s("../internals/object-get-own-property-names-external"),P=s("../internals/object-get-own-property-symbols"),U=s("../internals/object-get-own-property-descriptor"),G=s("../internals/object-define-property"),J=s("../internals/object-define-properties"),ee=s("../internals/object-property-is-enumerable"),ae=s("../internals/redefine"),oe=s("../internals/shared"),ue=s("../internals/shared-key"),se=s("../internals/hidden-keys"),ye=s("../internals/uid"),ve=s("../internals/well-known-symbol"),Re=s("../internals/well-known-symbol-wrapped"),le=s("../internals/define-well-known-symbol"),xe=s("../internals/symbol-define-to-primitive"),pe=s("../internals/set-to-string-tag"),Me=s("../internals/internal-state"),Oe=s("../internals/array-iteration").forEach,Le=ue("hidden"),Pe="Symbol",De="prototype",Ke=Me.set,ze=Me.getterFor(Pe),it=Object[De],ot=p.Symbol,Ge=ot&&ot[De],Ee=p.TypeError,fe=p.QObject,z=U.f,X=G.f,de=V.f,Ce=ee.f,ne=g([].push),re=oe("symbols"),he=oe("op-symbols"),_e=oe("wks"),Be=!fe||!fe[De]||!fe[De].findChild,Ue=v&&h(function(){return L(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a!=7})?function(vt,Ct,Ft){var Rt=z(it,Ct);Rt&&delete it[Ct],X(vt,Ct,Ft),Rt&&vt!==it&&X(it,Ct,Rt)}:X,rt=function(vt,Ct){var Ft=re[vt]=L(Ge);return Ke(Ft,{type:Pe,tag:vt,description:Ct}),v||(Ft.description=Ct),Ft},et=function(Ct,Ft,Rt){Ct===it&&et(he,Ft,Rt),T(Ct);var $e=R(Ft);return T(Rt),m(re,$e)?(Rt.enumerable?(m(Ct,Le)&&Ct[Le][$e]&&(Ct[Le][$e]=!1),Rt=L(Rt,{enumerable:k(0,!1)})):(m(Ct,Le)||X(Ct,Le,k(1,{})),Ct[Le][$e]=!0),Ue(Ct,$e,Rt)):X(Ct,$e,Rt)},dt=function(Ct,Ft){T(Ct);var Rt=I(Ft),$e=H(Rt).concat(Tt(Rt));return Oe($e,function(Zt){(!v||b(pt,Rt,Zt))&&et(Ct,Zt,Rt[Zt])}),Ct},Ot=function(Ct,Ft){return Ft===void 0?L(Ct):dt(L(Ct),Ft)},pt=function(Ct){var Ft=R(Ct),Rt=b(Ce,this,Ft);return this===it&&m(re,Ft)&&!m(he,Ft)?!1:Rt||!m(this,Ft)||!m(re,Ft)||m(this,Le)&&this[Le][Ft]?Rt:!0},nt=function(Ct,Ft){var Rt=I(Ct),$e=R(Ft);if(!(Rt===it&&m(re,$e)&&!m(he,$e))){var Zt=z(Rt,$e);return Zt&&m(re,$e)&&!(m(Rt,Le)&&Rt[Le][$e])&&(Zt.enumerable=!0),Zt}},ut=function(Ct){var Ft=de(I(Ct)),Rt=[];return Oe(Ft,function($e){!m(re,$e)&&!m(se,$e)&&ne(Rt,$e)}),Rt},Tt=function(vt){var Ct=vt===it,Ft=de(Ct?he:I(vt)),Rt=[];return Oe(Ft,function($e){m(re,$e)&&(!Ct||m(it,$e))&&ne(Rt,re[$e])}),Rt};c||(ot=function(){if(E(Ge,this))throw Ee("Symbol is not a constructor");var Ct=!arguments.length||arguments[0]===void 0?void 0:N(arguments[0]),Ft=ye(Ct),Rt=function($e){this===it&&b(Rt,he,$e),m(this,Le)&&m(this[Le],Ft)&&(this[Le][Ft]=!1),Ue(this,Ft,k(1,$e))};return v&&Be&&Ue(it,Ft,{configurable:!0,set:Rt}),rt(Ft,Ct)},Ge=ot[De],ae(Ge,"toString",function(){return ze(this).tag}),ae(ot,"withoutSetter",function(vt){return rt(ye(vt),vt)}),ee.f=pt,G.f=et,J.f=dt,U.f=nt,D.f=V.f=ut,P.f=Tt,Re.f=function(vt){return rt(ve(vt),vt)},v&&(X(Ge,"description",{configurable:!0,get:function(){return ze(this).description}}),y||ae(it,"propertyIsEnumerable",pt,{unsafe:!0}))),u({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:ot}),Oe(H(_e),function(vt){le(vt)}),u({target:Pe,stat:!0,forced:!c},{useSetter:function(){Be=!0},useSimple:function(){Be=!1}}),u({target:"Object",stat:!0,forced:!c,sham:!v},{create:Ot,defineProperty:et,defineProperties:dt,getOwnPropertyDescriptor:nt}),u({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ut}),xe(),pe(ot,Pe),se[Le]=!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(s,C,A){"use strict";var u=s("../internals/export"),p=s("../internals/descriptors"),b=s("../internals/global"),g=s("../internals/function-uncurry-this"),y=s("../internals/has-own-property"),v=s("../internals/is-callable"),c=s("../internals/object-is-prototype-of"),h=s("../internals/to-string"),m=s("../internals/object-define-property").f,E=s("../internals/copy-constructor-properties"),T=b.Symbol,I=T&&T.prototype;if(p&&v(T)&&(!("description"in I)||T().description!==void 0)){var R={},N=function(){var G=arguments.length<1||arguments[0]===void 0?void 0:h(arguments[0]),J=c(I,this)?new T(G):G===void 0?T():T(G);return G===""&&(R[J]=!0),J};E(N,T),N.prototype=I,I.constructor=N;var k=String(T("test"))=="Symbol(test)",L=g(I.toString),H=g(I.valueOf),D=/^Symbol\((.*)\)[^)]+$/,V=g("".replace),P=g("".slice);m(I,"description",{configurable:!0,get:function(){var G=H(this),J=L(G);if(y(R,G))return"";var ee=k?P(J,7,-1):V(J,D,"$1");return ee===""?void 0:ee}}),u({global:!0,forced:!0},{Symbol:N})}},{"../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(s,C,A){var u=s("../internals/export"),p=s("../internals/get-built-in"),b=s("../internals/has-own-property"),g=s("../internals/to-string"),y=s("../internals/shared"),v=s("../internals/native-symbol-registry"),c=y("string-to-symbol-registry"),h=y("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!v},{for:function(m){var E=g(m);if(b(c,E))return c[E];var T=p("Symbol")(E);return c[E]=T,h[T]=E,T}})},{"../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(s,C,A){var u=s("../internals/define-well-known-symbol");u("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(s,C,A){s("../modules/es.symbol.constructor"),s("../modules/es.symbol.for"),s("../modules/es.symbol.key-for"),s("../modules/es.json.stringify"),s("../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(s,C,A){var u=s("../internals/export"),p=s("../internals/has-own-property"),b=s("../internals/is-symbol"),g=s("../internals/try-to-string"),y=s("../internals/shared"),v=s("../internals/native-symbol-registry"),c=y("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!v},{keyFor:function(m){if(!b(m))throw TypeError(g(m)+" is not a symbol");if(p(c,m))return c[m]}})},{"../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(s,C,A){"use strict";var u=s("../internals/function-uncurry-this"),p=s("../internals/array-buffer-view-core"),b=s("../internals/array-copy-within"),g=u(b),y=p.aTypedArray,v=p.exportTypedArrayMethod;v("copyWithin",function(h,m){return g(y(this),h,m,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(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").every,b=u.aTypedArray,g=u.exportTypedArrayMethod;g("every",function(v){return p(b(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/function-call"),b=s("../internals/array-fill"),g=u.aTypedArray,y=u.exportTypedArrayMethod;y("fill",function(c){var h=arguments.length;return p(b,g(this),c,h>1?arguments[1]:void 0,h>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").filter,b=s("../internals/typed-array-from-species-and-list"),g=u.aTypedArray,y=u.exportTypedArrayMethod;y("filter",function(c){var h=p(g(this),c,arguments.length>1?arguments[1]:void 0);return b(this,h)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").findIndex,b=u.aTypedArray,g=u.exportTypedArrayMethod;g("findIndex",function(v){return p(b(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").find,b=u.aTypedArray,g=u.exportTypedArrayMethod;g("find",function(v){return p(b(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").forEach,b=u.aTypedArray,g=u.exportTypedArrayMethod;g("forEach",function(v){p(b(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-includes").includes,b=u.aTypedArray,g=u.exportTypedArrayMethod;g("includes",function(v){return p(b(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-includes").indexOf,b=u.aTypedArray,g=u.exportTypedArrayMethod;g("indexOf",function(v){return p(b(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(s,C,A){"use strict";var u=s("../internals/global"),p=s("../internals/fails"),b=s("../internals/function-uncurry-this"),g=s("../internals/array-buffer-view-core"),y=s("../modules/es.array.iterator"),v=s("../internals/well-known-symbol"),c=v("iterator"),h=u.Uint8Array,m=b(y.values),E=b(y.keys),T=b(y.entries),I=g.aTypedArray,R=g.exportTypedArrayMethod,N=h&&h.prototype,k=!p(function(){N[c].call([1])}),L=!!N&&N.values&&N[c]===N.values&&N.values.name==="values",H=function(){return m(I(this))};R("entries",function(){return T(I(this))},k),R("keys",function(){return E(I(this))},k),R("values",H,k||!L,{name:"values"}),R(c,H,k||!L,{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(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/function-uncurry-this"),b=u.aTypedArray,g=u.exportTypedArrayMethod,y=p([].join);g("join",function(c){return y(b(this),c)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/function-apply"),b=s("../internals/array-last-index-of"),g=u.aTypedArray,y=u.exportTypedArrayMethod;y("lastIndexOf",function(c){var h=arguments.length;return p(b,g(this),h>1?[c,arguments[1]]:[c])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").map,b=s("../internals/typed-array-species-constructor"),g=u.aTypedArray,y=u.exportTypedArrayMethod;y("map",function(c){return p(g(this),c,arguments.length>1?arguments[1]:void 0,function(h,m){return new(b(h))(m)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-reduce").right,b=u.aTypedArray,g=u.exportTypedArrayMethod;g("reduceRight",function(v){var c=arguments.length;return p(b(this),v,c,c>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-reduce").left,b=u.aTypedArray,g=u.exportTypedArrayMethod;g("reduce",function(v){var c=arguments.length;return p(b(this),v,c,c>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=u.aTypedArray,b=u.exportTypedArrayMethod,g=Math.floor;b("reverse",function(){for(var v=this,c=p(v).length,h=g(c/2),m=0,E;m<h;)E=v[m],v[m++]=v[--c],v[c]=E;return v})},{"../internals/array-buffer-view-core":103}],331:[function(s,C,A){"use strict";var u=s("../internals/global"),p=s("../internals/function-call"),b=s("../internals/array-buffer-view-core"),g=s("../internals/length-of-array-like"),y=s("../internals/to-offset"),v=s("../internals/to-object"),c=s("../internals/fails"),h=u.RangeError,m=u.Int8Array,E=m&&m.prototype,T=E&&E.set,I=b.aTypedArray,R=b.exportTypedArrayMethod,N=!c(function(){var L=new Uint8ClampedArray(2);return p(T,L,{length:1,0:3},1),L[1]!==3}),k=N&&b.NATIVE_ARRAY_BUFFER_VIEWS&&c(function(){var L=new m(2);return L.set(1),L.set("2",1),L[0]!==0||L[1]!==2});R("set",function(H){I(this);var D=y(arguments.length>1?arguments[1]:void 0,1),V=v(H);if(N)return p(T,this,V,D);var P=this.length,U=g(V),G=0;if(U+D>P)throw h("Wrong length");for(;G<U;)this[D+G]=V[G++]},!N||k)},{"../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(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/typed-array-species-constructor"),b=s("../internals/fails"),g=s("../internals/array-slice"),y=u.aTypedArray,v=u.exportTypedArrayMethod,c=b(function(){new Int8Array(1).slice()});v("slice",function(m,E){for(var T=g(y(this),m,E),I=p(this),R=0,N=T.length,k=new I(N);N>R;)k[R]=T[R++];return k},c)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").some,b=u.aTypedArray,g=u.exportTypedArrayMethod;g("some",function(v){return p(b(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(s,C,A){"use strict";var u=s("../internals/global"),p=s("../internals/function-uncurry-this"),b=s("../internals/fails"),g=s("../internals/a-callable"),y=s("../internals/array-sort"),v=s("../internals/array-buffer-view-core"),c=s("../internals/engine-ff-version"),h=s("../internals/engine-is-ie-or-edge"),m=s("../internals/engine-v8-version"),E=s("../internals/engine-webkit-version"),T=v.aTypedArray,I=v.exportTypedArrayMethod,R=u.Uint16Array,N=R&&p(R.prototype.sort),k=!!N&&!(b(function(){N(new R(2),null)})&&b(function(){N(new R(2),{})})),L=!!N&&!b(function(){if(m)return m<74;if(c)return c<67;if(h)return!0;if(E)return E<602;var D=new R(516),V=Array(516),P,U;for(P=0;P<516;P++)U=P%4,D[P]=515-P,V[P]=P-2*U+3;for(N(D,function(G,J){return(G/4|0)-(J/4|0)}),P=0;P<516;P++)if(D[P]!==V[P])return!0}),H=function(D){return function(V,P){return D!==void 0?+D(V,P)||0:P!==P?-1:V!==V?1:V===0&&P===0?1/V>0&&1/P<0?1:-1:V>P}};I("sort",function(V){return V!==void 0&&g(V),L?N(this,V):y(T(this),H(V))},!L||k)},{"../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(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/to-length"),b=s("../internals/to-absolute-index"),g=s("../internals/typed-array-species-constructor"),y=u.aTypedArray,v=u.exportTypedArrayMethod;v("subarray",function(h,m){var E=y(this),T=E.length,I=b(h,T),R=g(E);return new R(E.buffer,E.byteOffset+I*E.BYTES_PER_ELEMENT,p((m===void 0?T:b(m,T))-I))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(s,C,A){"use strict";var u=s("../internals/global"),p=s("../internals/function-apply"),b=s("../internals/array-buffer-view-core"),g=s("../internals/fails"),y=s("../internals/array-slice"),v=u.Int8Array,c=b.aTypedArray,h=b.exportTypedArrayMethod,m=[].toLocaleString,E=!!v&&g(function(){m.call(new v(1))}),T=g(function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()})||!g(function(){v.prototype.toLocaleString.call([1,2])});h("toLocaleString",function(){return p(m,E?y(c(this)):c(this),y(arguments))},T)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(s,C,A){"use strict";var u=s("../internals/array-buffer-view-core").exportTypedArrayMethod,p=s("../internals/fails"),b=s("../internals/global"),g=s("../internals/function-uncurry-this"),y=b.Uint8Array,v=y&&y.prototype||{},c=[].toString,h=g([].join);p(function(){c.call({})})&&(c=function(){return h(this)});var m=v.toString!=c;u("toString",c,m)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(s,C,A){var u=s("../internals/typed-array-constructor");u("Uint8",function(p){return function(g,y,v){return p(this,g,y,v)}})},{"../internals/typed-array-constructor":258}],339:[function(s,C,A){var u=s("../internals/global"),p=s("../internals/dom-iterables"),b=s("../internals/dom-token-list-prototype"),g=s("../internals/array-for-each"),y=s("../internals/create-non-enumerable-property"),v=function(h){if(h&&h.forEach!==g)try{y(h,"forEach",g)}catch(m){h.forEach=g}};for(var c in p)p[c]&&v(u[c]&&u[c].prototype);v(b)},{"../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(s,C,A){var u=s("../internals/global"),p=s("../internals/dom-iterables"),b=s("../internals/dom-token-list-prototype"),g=s("../modules/es.array.iterator"),y=s("../internals/create-non-enumerable-property"),v=s("../internals/well-known-symbol"),c=v("iterator"),h=v("toStringTag"),m=g.values,E=function(I,R){if(I){if(I[c]!==m)try{y(I,c,m)}catch(k){I[c]=m}if(I[h]||y(I,h,R),p[R]){for(var N in g)if(I[N]!==g[N])try{y(I,N,g[N])}catch(k){I[N]=g[N]}}}};for(var T in p)E(u[T]&&u[T].prototype,T);E(b,"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(s,C,A){function u(L){return Array.isArray?Array.isArray(L):k(L)==="[object Array]"}A.isArray=u;function p(L){return typeof L=="boolean"}A.isBoolean=p;function b(L){return L===null}A.isNull=b;function g(L){return L==null}A.isNullOrUndefined=g;function y(L){return typeof L=="number"}A.isNumber=y;function v(L){return typeof L=="string"}A.isString=v;function c(L){return typeof L=="symbol"}A.isSymbol=c;function h(L){return L===void 0}A.isUndefined=h;function m(L){return k(L)==="[object RegExp]"}A.isRegExp=m;function E(L){return typeof L=="object"&&L!==null}A.isObject=E;function T(L){return k(L)==="[object Date]"}A.isDate=T;function I(L){return k(L)==="[object Error]"||L instanceof Error}A.isError=I;function R(L){return typeof L=="function"}A.isFunction=R;function N(L){return L===null||typeof L=="boolean"||typeof L=="number"||typeof L=="string"||typeof L=="symbol"||typeof L=="undefined"}A.isPrimitive=N,A.isBuffer=s("buffer").Buffer.isBuffer;function k(L){return Object.prototype.toString.call(L)}},{buffer:90}],342:[function(s,C,A){(function(u){"use strict";var p=function(){var c=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,h=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,m=/[^-+\dA-Z]/g;return function(E,T,I,R){if(arguments.length===1&&v(E)==="string"&&!/\d/.test(E)&&(T=E,E=void 0),E=E||new Date,E instanceof Date||(E=new Date(E)),isNaN(E))throw TypeError("Invalid date");T=String(p.masks[T]||T||p.masks.default);var N=T.slice(0,4);(N==="UTC:"||N==="GMT:")&&(T=T.slice(4),I=!0,N==="GMT:"&&(R=!0));var k=I?"getUTC":"get",L=E[k+"Date"](),H=E[k+"Day"](),D=E[k+"Month"](),V=E[k+"FullYear"](),P=E[k+"Hours"](),U=E[k+"Minutes"](),G=E[k+"Seconds"](),J=E[k+"Milliseconds"](),ee=I?0:E.getTimezoneOffset(),ae=g(E),oe=y(E),ue={d:L,dd:b(L),ddd:p.i18n.dayNames[H],dddd:p.i18n.dayNames[H+7],m:D+1,mm:b(D+1),mmm:p.i18n.monthNames[D],mmmm:p.i18n.monthNames[D+12],yy:String(V).slice(2),yyyy:V,h:P%12||12,hh:b(P%12||12),H:P,HH:b(P),M:U,MM:b(U),s:G,ss:b(G),l:b(J,3),L:b(Math.round(J/10)),t:P<12?"a":"p",tt:P<12?"am":"pm",T:P<12?"A":"P",TT:P<12?"AM":"PM",Z:R?"GMT":I?"UTC":(String(E).match(h)||[""]).pop().replace(m,""),o:(ee>0?"-":"+")+b(Math.floor(Math.abs(ee)/60)*100+Math.abs(ee)%60,4),S:["th","st","nd","rd"][L%10>3?0:(L%100-L%10!=10)*L%10],W:ae,N:oe};return T.replace(c,function(se){return se in ue?ue[se]:se.slice(1,se.length-1)})}}();p.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"},p.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 b(c,h){for(c=String(c),h=h||2;c.length<h;)c="0"+c;return c}function g(c){var h=new Date(c.getFullYear(),c.getMonth(),c.getDate());h.setDate(h.getDate()-(h.getDay()+6)%7+3);var m=new Date(h.getFullYear(),0,4);m.setDate(m.getDate()-(m.getDay()+6)%7+3);var E=h.getTimezoneOffset()-m.getTimezoneOffset();h.setHours(h.getHours()-E);var T=(h-m)/(864e5*7);return 1+Math.floor(T)}function y(c){var h=c.getDay();return h===0&&(h=7),h}function v(c){return c===null?"null":c===void 0?"undefined":typeof c!="object"?typeof c:Array.isArray(c)?"array":{}.toString.call(c).slice(8,-1).toLowerCase()}typeof S=="function"&&S.amd?S(function(){return p}):typeof A=="object"?C.exports=p:u.dateFormat=p})(this)},{}],343:[function(s,C,A){"use strict";var u=/["'&<>]/;C.exports=p;function p(b){var g=""+b,y=u.exec(g);if(!y)return g;var v,c="",h=0,m=0;for(h=y.index;h<g.length;h++){switch(g.charCodeAt(h)){case 34:v="&quot;";break;case 38:v="&amp;";break;case 39:v="&#39;";break;case 60:v="&lt;";break;case 62:v="&gt;";break;default:continue}m!==h&&(c+=g.substring(m,h)),m=h+1,c+=v}return m!==h?c+g.substring(m,h):c}},{}],344:[function(s,C,A){"use strict";var u=typeof Reflect=="object"?Reflect:null,p=u&&typeof u.apply=="function"?u.apply:function(G,J,ee){return Function.prototype.apply.call(G,J,ee)},b;u&&typeof u.ownKeys=="function"?b=u.ownKeys:Object.getOwnPropertySymbols?b=function(G){return Object.getOwnPropertyNames(G).concat(Object.getOwnPropertySymbols(G))}:b=function(G){return Object.getOwnPropertyNames(G)};function g(U){console&&console.warn&&console.warn(U)}var y=Number.isNaN||function(G){return G!==G};function v(){v.init.call(this)}C.exports=v,C.exports.once=D,v.EventEmitter=v,v.prototype._events=void 0,v.prototype._eventsCount=0,v.prototype._maxListeners=void 0;var c=10;function h(U){if(typeof U!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof U)}Object.defineProperty(v,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(U){if(typeof U!="number"||U<0||y(U))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+U+".");c=U}}),v.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},v.prototype.setMaxListeners=function(G){if(typeof G!="number"||G<0||y(G))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+G+".");return this._maxListeners=G,this};function m(U){return U._maxListeners===void 0?v.defaultMaxListeners:U._maxListeners}v.prototype.getMaxListeners=function(){return m(this)},v.prototype.emit=function(G){for(var J=[],ee=1;ee<arguments.length;ee++)J.push(arguments[ee]);var ae=G==="error",oe=this._events;if(oe!==void 0)ae=ae&&oe.error===void 0;else if(!ae)return!1;if(ae){var ue;if(J.length>0&&(ue=J[0]),ue instanceof Error)throw ue;var se=new Error("Unhandled error."+(ue?" ("+ue.message+")":""));throw se.context=ue,se}var ye=oe[G];if(ye===void 0)return!1;if(typeof ye=="function")p(ye,this,J);else for(var ve=ye.length,Re=k(ye,ve),ee=0;ee<ve;++ee)p(Re[ee],this,J);return!0};function E(U,G,J,ee){var ae,oe,ue;if(h(J),oe=U._events,oe===void 0?(oe=U._events=Object.create(null),U._eventsCount=0):(oe.newListener!==void 0&&(U.emit("newListener",G,J.listener?J.listener:J),oe=U._events),ue=oe[G]),ue===void 0)ue=oe[G]=J,++U._eventsCount;else if(typeof ue=="function"?ue=oe[G]=ee?[J,ue]:[ue,J]:ee?ue.unshift(J):ue.push(J),ae=m(U),ae>0&&ue.length>ae&&!ue.warned){ue.warned=!0;var se=new Error("Possible EventEmitter memory leak detected. "+ue.length+" "+String(G)+" listeners added. Use emitter.setMaxListeners() to increase limit");se.name="MaxListenersExceededWarning",se.emitter=U,se.type=G,se.count=ue.length,g(se)}return U}v.prototype.addListener=function(G,J){return E(this,G,J,!1)},v.prototype.on=v.prototype.addListener,v.prototype.prependListener=function(G,J){return E(this,G,J,!0)};function T(){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 I(U,G,J){var ee={fired:!1,wrapFn:void 0,target:U,type:G,listener:J},ae=T.bind(ee);return ae.listener=J,ee.wrapFn=ae,ae}v.prototype.once=function(G,J){return h(J),this.on(G,I(this,G,J)),this},v.prototype.prependOnceListener=function(G,J){return h(J),this.prependListener(G,I(this,G,J)),this},v.prototype.removeListener=function(G,J){var ee,ae,oe,ue,se;if(h(J),ae=this._events,ae===void 0)return this;if(ee=ae[G],ee===void 0)return this;if(ee===J||ee.listener===J)--this._eventsCount===0?this._events=Object.create(null):(delete ae[G],ae.removeListener&&this.emit("removeListener",G,ee.listener||J));else if(typeof ee!="function"){for(oe=-1,ue=ee.length-1;ue>=0;ue--)if(ee[ue]===J||ee[ue].listener===J){se=ee[ue].listener,oe=ue;break}if(oe<0)return this;oe===0?ee.shift():L(ee,oe),ee.length===1&&(ae[G]=ee[0]),ae.removeListener!==void 0&&this.emit("removeListener",G,se||J)}return this},v.prototype.off=v.prototype.removeListener,v.prototype.removeAllListeners=function(G){var J,ee,ae;if(ee=this._events,ee===void 0)return this;if(ee.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ee[G]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ee[G]),this;if(arguments.length===0){var oe=Object.keys(ee),ue;for(ae=0;ae<oe.length;++ae)ue=oe[ae],ue!=="removeListener"&&this.removeAllListeners(ue);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(J=ee[G],typeof J=="function")this.removeListener(G,J);else if(J!==void 0)for(ae=J.length-1;ae>=0;ae--)this.removeListener(G,J[ae]);return this};function R(U,G,J){var ee=U._events;if(ee===void 0)return[];var ae=ee[G];return ae===void 0?[]:typeof ae=="function"?J?[ae.listener||ae]:[ae]:J?H(ae):k(ae,ae.length)}v.prototype.listeners=function(G){return R(this,G,!0)},v.prototype.rawListeners=function(G){return R(this,G,!1)},v.listenerCount=function(U,G){return typeof U.listenerCount=="function"?U.listenerCount(G):N.call(U,G)},v.prototype.listenerCount=N;function N(U){var G=this._events;if(G!==void 0){var J=G[U];if(typeof J=="function")return 1;if(J!==void 0)return J.length}return 0}v.prototype.eventNames=function(){return this._eventsCount>0?b(this._events):[]};function k(U,G){for(var J=new Array(G),ee=0;ee<G;++ee)J[ee]=U[ee];return J}function L(U,G){for(;G+1<U.length;G++)U[G]=U[G+1];U.pop()}function H(U){for(var G=new Array(U.length),J=0;J<G.length;++J)G[J]=U[J].listener||U[J];return G}function D(U,G){return new Promise(function(J,ee){function ae(ue){U.removeListener(G,oe),ee(ue)}function oe(){typeof U.removeListener=="function"&&U.removeListener("error",ae),J([].slice.call(arguments))}P(U,G,oe,{once:!0}),G!=="error"&&V(U,ae,{once:!0})})}function V(U,G,J){typeof U.on=="function"&&P(U,"error",G,J)}function P(U,G,J,ee){if(typeof U.on=="function")ee.once?U.once(G,J):U.on(G,J);else if(typeof U.addEventListener=="function")U.addEventListener(G,function ae(oe){ee.once&&U.removeEventListener(G,ae),J(oe)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof U)}},{}],345:[function(s,C,A){"use strict";var u=s("is-callable"),p=Object.prototype.toString,b=Object.prototype.hasOwnProperty,g=function(m,E,T){for(var I=0,R=m.length;I<R;I++)b.call(m,I)&&(T==null?E(m[I],I,m):E.call(T,m[I],I,m))},y=function(m,E,T){for(var I=0,R=m.length;I<R;I++)T==null?E(m.charAt(I),I,m):E.call(T,m.charAt(I),I,m)},v=function(m,E,T){for(var I in m)b.call(m,I)&&(T==null?E(m[I],I,m):E.call(T,m[I],I,m))},c=function(m,E,T){if(!u(E))throw new TypeError("iterator must be a function");var I;arguments.length>=3&&(I=T),p.call(m)==="[object Array]"?g(m,E,I):typeof m=="string"?y(m,E,I):v(m,E,I)};C.exports=c},{"is-callable":367}],346:[function(s,C,A){"use strict";var u="Function.prototype.bind called on incompatible ",p=Array.prototype.slice,b=Object.prototype.toString,g="[object Function]";C.exports=function(v){var c=this;if(typeof c!="function"||b.call(c)!==g)throw new TypeError(u+c);for(var h=p.call(arguments,1),m,E=function(){if(this instanceof m){var k=c.apply(this,h.concat(p.call(arguments)));return Object(k)===k?k:this}else return c.apply(v,h.concat(p.call(arguments)))},T=Math.max(0,c.length-h.length),I=[],R=0;R<T;R++)I.push("$"+R);if(m=Function("binder","return function ("+I.join(",")+"){ return binder.apply(this,arguments); }")(E),c.prototype){var N=function(){};N.prototype=c.prototype,m.prototype=new N,N.prototype=null}return m}},{}],347:[function(s,C,A){"use strict";var u=s("./implementation");C.exports=Function.prototype.bind||u},{"./implementation":346}],348:[function(s,C,A){"use strict";var u,p=SyntaxError,b=Function,g=TypeError,y=function(ye){try{return b('"use strict"; return ('+ye+").constructor;")()}catch(ve){}},v=Object.getOwnPropertyDescriptor;if(v)try{v({},"")}catch(ye){v=null}var c=function(){throw new g},h=v?function(){try{return arguments.callee,c}catch(ye){try{return v(arguments,"callee").get}catch(ve){return c}}}():c,m=s("has-symbols")(),E=s("has-proto")(),T=Object.getPrototypeOf||(E?function(ye){return ye.__proto__}:null),I={},R=typeof Uint8Array=="undefined"||!T?u:T(Uint8Array),N={"%AggregateError%":typeof AggregateError=="undefined"?u:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?u:ArrayBuffer,"%ArrayIteratorPrototype%":m&&T?T([][Symbol.iterator]()):u,"%AsyncFromSyncIteratorPrototype%":u,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics=="undefined"?u:Atomics,"%BigInt%":typeof BigInt=="undefined"?u:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?u:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?u:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?u:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?u:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?u:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?u:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array=="undefined"?u:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?u:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?u:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&T?T(T([][Symbol.iterator]())):u,"%JSON%":typeof JSON=="object"?JSON:u,"%Map%":typeof Map=="undefined"?u:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!m||!T?u:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?u:Promise,"%Proxy%":typeof Proxy=="undefined"?u:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?u:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?u:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!m||!T?u:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?u:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&T?T(""[Symbol.iterator]()):u,"%Symbol%":m?Symbol:u,"%SyntaxError%":p,"%ThrowTypeError%":h,"%TypedArray%":R,"%TypeError%":g,"%Uint8Array%":typeof Uint8Array=="undefined"?u:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?u:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?u:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?u:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?u:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?u:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?u:WeakSet};if(T)try{null.error}catch(ye){var k=T(T(ye));N["%Error.prototype%"]=k}var L=function ye(ve){var Re;if(ve==="%AsyncFunction%")Re=y("async function () {}");else if(ve==="%GeneratorFunction%")Re=y("function* () {}");else if(ve==="%AsyncGeneratorFunction%")Re=y("async function* () {}");else if(ve==="%AsyncGenerator%"){var le=ye("%AsyncGeneratorFunction%");le&&(Re=le.prototype)}else if(ve==="%AsyncIteratorPrototype%"){var xe=ye("%AsyncGenerator%");xe&&T&&(Re=T(xe.prototype))}return N[ve]=Re,Re},H={"%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"]},D=s("function-bind"),V=s("has"),P=D.call(Function.call,Array.prototype.concat),U=D.call(Function.apply,Array.prototype.splice),G=D.call(Function.call,String.prototype.replace),J=D.call(Function.call,String.prototype.slice),ee=D.call(Function.call,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oe=/\\(\\)?/g,ue=function(ve){var Re=J(ve,0,1),le=J(ve,-1);if(Re==="%"&&le!=="%")throw new p("invalid intrinsic syntax, expected closing `%`");if(le==="%"&&Re!=="%")throw new p("invalid intrinsic syntax, expected opening `%`");var xe=[];return G(ve,ae,function(pe,Me,Oe,Le){xe[xe.length]=Oe?G(Le,oe,"$1"):Me||pe}),xe},se=function(ve,Re){var le=ve,xe;if(V(H,le)&&(xe=H[le],le="%"+xe[0]+"%"),V(N,le)){var pe=N[le];if(pe===I&&(pe=L(le)),typeof pe=="undefined"&&!Re)throw new g("intrinsic "+ve+" exists, but is not available. Please file an issue!");return{alias:xe,name:le,value:pe}}throw new p("intrinsic "+ve+" does not exist!")};C.exports=function(ve,Re){if(typeof ve!="string"||ve.length===0)throw new g("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Re!="boolean")throw new g('"allowMissing" argument must be a boolean');if(ee(/^%?[^%]*%?$/,ve)===null)throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var le=ue(ve),xe=le.length>0?le[0]:"",pe=se("%"+xe+"%",Re),Me=pe.name,Oe=pe.value,Le=!1,Pe=pe.alias;Pe&&(xe=Pe[0],U(le,P([0,1],Pe)));for(var De=1,Ke=!0;De<le.length;De+=1){var ze=le[De],it=J(ze,0,1),ot=J(ze,-1);if((it==='"'||it==="'"||it==="`"||ot==='"'||ot==="'"||ot==="`")&&it!==ot)throw new p("property names with quotes must have matching quotes");if((ze==="constructor"||!Ke)&&(Le=!0),xe+="."+ze,Me="%"+xe+"%",V(N,Me))Oe=N[Me];else if(Oe!=null){if(!(ze in Oe)){if(!Re)throw new g("base intrinsic for "+ve+" exists, but the property is not available.");return}if(v&&De+1>=le.length){var Ge=v(Oe,ze);Ke=!!Ge,Ke&&"get"in Ge&&!("originalValue"in Ge.get)?Oe=Ge.get:Oe=Oe[ze]}else Ke=V(Oe,ze),Oe=Oe[ze];Ke&&!Le&&(N[Me]=Oe)}}return Oe}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(s,C,A){"use strict";var u=s("get-intrinsic"),p=u("%Object.getOwnPropertyDescriptor%",!0);if(p)try{p([],"length")}catch(b){p=null}C.exports=p},{"get-intrinsic":348}],350:[function(s,C,A){"use strict";var u={foo:{}},p=Object;C.exports=function(){return{__proto__:u}.foo===u.foo&&!({__proto__:null}instanceof p)}},{}],351:[function(s,C,A){"use strict";var u=typeof Symbol!="undefined"&&Symbol,p=s("./shams");C.exports=function(){return typeof u!="function"||typeof Symbol!="function"||typeof u("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:p()}},{"./shams":352}],352:[function(s,C,A){"use strict";C.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var p={},b=Symbol("test"),g=Object(b);if(typeof b=="string"||Object.prototype.toString.call(b)!=="[object Symbol]"||Object.prototype.toString.call(g)!=="[object Symbol]")return!1;var y=42;p[b]=y;for(b in p)return!1;if(typeof Object.keys=="function"&&Object.keys(p).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(p).length!==0)return!1;var v=Object.getOwnPropertySymbols(p);if(v.length!==1||v[0]!==b||!Object.prototype.propertyIsEnumerable.call(p,b))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(p,b);if(c.value!==y||c.enumerable!==!0)return!1}return!0}},{}],353:[function(s,C,A){"use strict";var u=s("has-symbols/shams");C.exports=function(){return u()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(s,C,A){"use strict";var u=s("function-bind");C.exports=u.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(s,C,A){var u=s("http"),p=s("url"),b=C.exports;for(var g in u)u.hasOwnProperty(g)&&(b[g]=u[g]);b.request=function(v,c){return v=y(v),u.request.call(this,v,c)},b.get=function(v,c){return v=y(v),u.get.call(this,v,c)};function y(v){if(typeof v=="string"&&(v=p.parse(v)),v.protocol||(v.protocol="https:"),v.protocol!=="https:")throw new Error('Protocol "'+v.protocol+'" not supported. Expected "https:"');return v}},{http:468,url:472}],356:[function(s,C,A){"use strict";var u=s("util"),p=s("ms");C.exports=function(b){if(typeof b=="number")return b;var g=p(b);if(g===void 0){var y=new Error(u.format("humanize-ms(%j) result undefined",b));console.warn(y.stack)}return g}},{ms:376,util:419}],357:[function(s,C,A){A.read=function(u,p,b,g,y){var v,c,h=y*8-g-1,m=(1<<h)-1,E=m>>1,T=-7,I=b?y-1:0,R=b?-1:1,N=u[p+I];for(I+=R,v=N&(1<<-T)-1,N>>=-T,T+=h;T>0;v=v*256+u[p+I],I+=R,T-=8);for(c=v&(1<<-T)-1,v>>=-T,T+=g;T>0;c=c*256+u[p+I],I+=R,T-=8);if(v===0)v=1-E;else{if(v===m)return c?NaN:(N?-1:1)*(1/0);c=c+Math.pow(2,g),v=v-E}return(N?-1:1)*c*Math.pow(2,v-g)},A.write=function(u,p,b,g,y,v){var c,h,m,E=v*8-y-1,T=(1<<E)-1,I=T>>1,R=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=g?0:v-1,k=g?1:-1,L=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===1/0?(h=isNaN(p)?1:0,c=T):(c=Math.floor(Math.log(p)/Math.LN2),p*(m=Math.pow(2,-c))<1&&(c--,m*=2),c+I>=1?p+=R/m:p+=R*Math.pow(2,1-I),p*m>=2&&(c++,m/=2),c+I>=T?(h=0,c=T):c+I>=1?(h=(p*m-1)*Math.pow(2,y),c=c+I):(h=p*Math.pow(2,I-1)*Math.pow(2,y),c=0));y>=8;u[b+N]=h&255,N+=k,h/=256,y-=8);for(c=c<<y|h,E+=y;E>0;u[b+N]=c&255,N+=k,c/=256,E-=8);u[b+N-k]|=L*128}},{}],358:[function(s,C,A){"use strict";var u=[s("./nextTick"),s("./queueMicrotask"),s("./mutation.js"),s("./messageChannel"),s("./stateChange"),s("./timeout")],p,b,g=-1,y=[],v=!1;function c(){!p||!b||(p=!1,b.length?y=b.concat(y):g=-1,y.length&&h())}function h(){if(!p){v=!1,p=!0;for(var N=y.length,k=setTimeout(c);N;){for(b=y,y=[];b&&++g<N;)b[g].run();g=-1,N=y.length}b=null,g=-1,p=!1,clearTimeout(k)}}for(var m,E=-1,T=u.length;++E<T;)if(u[E]&&u[E].test&&u[E].test()){m=u[E].install(h);break}function I(N,k){this.fun=N,this.array=k}I.prototype.run=function(){var N=this.fun,k=this.array;switch(k.length){case 0:return N();case 1:return N(k[0]);case 2:return N(k[0],k[1]);case 3:return N(k[0],k[1],k[2]);default:return N.apply(null,k)}},C.exports=R;function R(N){var k=new Array(arguments.length-1);if(arguments.length>1)for(var L=1;L<arguments.length;L++)k[L-1]=arguments[L];y.push(new I(N,k)),!v&&!p&&(v=!0,m())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(s,C,A){(function(u){(function(){"use strict";A.test=function(){return u.setImmediate?!1:typeof u.MessageChannel!="undefined"},A.install=function(p){var b=new u.MessageChannel;return b.port1.onmessage=p,function(){b.port2.postMessage(0)}}}).call(this)}).call(this,typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(s,C,A){(function(u){(function(){"use strict";var p=u.MutationObserver||u.WebKitMutationObserver;A.test=function(){return p},A.install=function(b){var g=0,y=new p(b),v=u.document.createTextNode("");return y.observe(v,{characterData:!0}),function(){v.data=g=++g%2}}}).call(this)}).call(this,typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(s,C,A){(function(u){(function(){"use strict";A.test=function(){return typeof u.queueMicrotask=="function"},A.install=function(p){return function(){u.queueMicrotask(p)}}}).call(this)}).call(this,typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(s,C,A){(function(u){(function(){"use strict";A.test=function(){return"document"in u&&"onreadystatechange"in u.document.createElement("script")},A.install=function(p){return function(){var b=u.document.createElement("script");return b.onreadystatechange=function(){p(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},u.document.documentElement.appendChild(b),p}}}).call(this)}).call(this,typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(s,C,A){"use strict";A.test=function(){return!0},A.install=function(u){return function(){setTimeout(u,0)}}},{}],364:[function(s,C,A){typeof Object.create=="function"?C.exports=function(p,b){b&&(p.super_=b,p.prototype=Object.create(b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:C.exports=function(p,b){if(b){p.super_=b;var g=function(){};g.prototype=b.prototype,p.prototype=new g,p.prototype.constructor=p}}},{}],365:[function(s,C,A){"use strict";var u=s("has-tostringtag/shams")(),p=s("call-bind/callBound"),b=p("Object.prototype.toString"),g=function(h){return u&&h&&typeof h=="object"&&Symbol.toStringTag in h?!1:b(h)==="[object Arguments]"},y=function(h){return g(h)?!0:h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&b(h)!=="[object Array]"&&b(h.callee)==="[object Function]"},v=function(){return g(arguments)}();g.isLegacyArguments=y,C.exports=v?g:y},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(s,C,A){C.exports=function(b){return b!=null&&(u(b)||p(b)||!!b._isBuffer)};function u(b){return!!b.constructor&&typeof b.constructor.isBuffer=="function"&&b.constructor.isBuffer(b)}function p(b){return typeof b.readFloatLE=="function"&&typeof b.slice=="function"&&u(b.slice(0,0))}},{}],367:[function(s,C,A){"use strict";var u=Function.prototype.toString,p=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,b,g;if(typeof p=="function"&&typeof Object.defineProperty=="function")try{b=Object.defineProperty({},"length",{get:function(){throw g}}),g={},p(function(){throw 42},null,b)}catch(V){V!==g&&(p=null)}else p=null;var y=/^\s*class\b/,v=function(P){try{var U=u.call(P);return y.test(U)}catch(G){return!1}},c=function(P){try{return v(P)?!1:(u.call(P),!0)}catch(U){return!1}},h=Object.prototype.toString,m="[object Object]",E="[object Function]",T="[object GeneratorFunction]",I="[object HTMLAllCollection]",R="[object HTML document.all class]",N="[object HTMLCollection]",k=typeof Symbol=="function"&&!!Symbol.toStringTag,L=!(0 in[,]),H=function(){return!1};if(typeof document=="object"){var D=document.all;h.call(D)===h.call(document.all)&&(H=function(P){if((L||!P)&&(typeof P=="undefined"||typeof P=="object"))try{var U=h.call(P);return(U===I||U===R||U===N||U===m)&&P("")==null}catch(G){}return!1})}C.exports=p?function(P){if(H(P))return!0;if(!P||typeof P!="function"&&typeof P!="object")return!1;try{p(P,null,b)}catch(U){if(U!==g)return!1}return!v(P)&&c(P)}:function(P){if(H(P))return!0;if(!P||typeof P!="function"&&typeof P!="object")return!1;if(k)return c(P);if(v(P))return!1;var U=h.call(P);return U!==E&&U!==T&&!/^\[object HTML/.test(U)?!1:c(P)}},{}],368:[function(s,C,A){"use strict";var u=Object.prototype.toString,p=Function.prototype.toString,b=/^\s*(?:function)?\*/,g=s("has-tostringtag/shams")(),y=Object.getPrototypeOf,v=function(){if(!g)return!1;try{return Function("return function*() {}")()}catch(h){}},c;C.exports=function(m){if(typeof m!="function")return!1;if(b.test(p.call(m)))return!0;if(!g){var E=u.call(m);return E==="[object GeneratorFunction]"}if(!y)return!1;if(typeof c=="undefined"){var T=v();c=T?y(T):!1}return y(m)===c}},{"has-tostringtag/shams":353}],369:[function(s,C,A){"use strict";var u=s("which-typed-array");C.exports=function(b){return!!u(b)}},{"which-typed-array":420}],370:[function(s,C,A){var u={}.toString;C.exports=Array.isArray||function(p){return u.call(p)=="[object Array]"}},{}],371:[function(s,C,A){(function(u){(function(){(function(p,b){typeof A=="object"&&typeof C!="undefined"?C.exports=b(p):typeof S=="function"&&S.amd?S(b):b(p)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof u!="undefined"?u:this,function(p){"use strict";p=p||{};var b=p.Base64,g="2.6.4",y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=function(ve){for(var Re={},le=0,xe=ve.length;le<xe;le++)Re[ve.charAt(le)]=le;return Re}(y),c=String.fromCharCode,h=function(ve){if(ve.length<2){var Re=ve.charCodeAt(0);return Re<128?ve:Re<2048?c(192|Re>>>6)+c(128|Re&63):c(224|Re>>>12&15)+c(128|Re>>>6&63)+c(128|Re&63)}else{var Re=65536+(ve.charCodeAt(0)-55296)*1024+(ve.charCodeAt(1)-56320);return c(240|Re>>>18&7)+c(128|Re>>>12&63)+c(128|Re>>>6&63)+c(128|Re&63)}},m=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,E=function(ve){return ve.replace(m,h)},T=function(ve){var Re=[0,2,1][ve.length%3],le=ve.charCodeAt(0)<<16|(ve.length>1?ve.charCodeAt(1):0)<<8|(ve.length>2?ve.charCodeAt(2):0),xe=[y.charAt(le>>>18),y.charAt(le>>>12&63),Re>=2?"=":y.charAt(le>>>6&63),Re>=1?"=":y.charAt(le&63)];return xe.join("")},I=p.btoa&&typeof p.btoa=="function"?function(ve){return p.btoa(ve)}:function(ve){if(ve.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ve.replace(/[\s\S]{1,3}/g,T)},R=function(ve){return I(E(String(ve)))},N=function(ve){return ve.replace(/[+\/]/g,function(Re){return Re=="+"?"-":"_"}).replace(/=/g,"")},k=function(ve,Re){return Re?N(R(ve)):R(ve)},L=function(ve){return k(ve,!0)},H;p.Uint8Array&&(H=function(ve,Re){for(var le="",xe=0,pe=ve.length;xe<pe;xe+=3){var Me=ve[xe],Oe=ve[xe+1],Le=ve[xe+2],Pe=Me<<16|Oe<<8|Le;le+=y.charAt(Pe>>>18)+y.charAt(Pe>>>12&63)+(typeof Oe!="undefined"?y.charAt(Pe>>>6&63):"=")+(typeof Le!="undefined"?y.charAt(Pe&63):"=")}return Re?N(le):le});var D=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,V=function(ve){switch(ve.length){case 4:var Re=(7&ve.charCodeAt(0))<<18|(63&ve.charCodeAt(1))<<12|(63&ve.charCodeAt(2))<<6|63&ve.charCodeAt(3),le=Re-65536;return c((le>>>10)+55296)+c((le&1023)+56320);case 3:return c((15&ve.charCodeAt(0))<<12|(63&ve.charCodeAt(1))<<6|63&ve.charCodeAt(2));default:return c((31&ve.charCodeAt(0))<<6|63&ve.charCodeAt(1))}},P=function(ve){return ve.replace(D,V)},U=function(ve){var Re=ve.length,le=Re%4,xe=(Re>0?v[ve.charAt(0)]<<18:0)|(Re>1?v[ve.charAt(1)]<<12:0)|(Re>2?v[ve.charAt(2)]<<6:0)|(Re>3?v[ve.charAt(3)]:0),pe=[c(xe>>>16),c(xe>>>8&255),c(xe&255)];return pe.length-=[0,0,2,1][le],pe.join("")},G=p.atob&&typeof p.atob=="function"?function(ve){return p.atob(ve)}:function(ve){return ve.replace(/\S{1,4}/g,U)},J=function(ve){return G(String(ve).replace(/[^A-Za-z0-9\+\/]/g,""))},ee=function(ve){return P(G(ve))},ae=function(ve){return String(ve).replace(/[-_]/g,function(Re){return Re=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},oe=function(ve){return ee(ae(ve))},ue;p.Uint8Array&&(ue=function(ve){return Uint8Array.from(J(ae(ve)),function(Re){return Re.charCodeAt(0)})});var se=function(){var ve=p.Base64;return p.Base64=b,ve};if(p.Base64={VERSION:g,atob:J,btoa:I,fromBase64:oe,toBase64:k,utob:E,encode:k,encodeURI:L,btou:P,decode:oe,noConflict:se,fromUint8Array:H,toUint8Array:ue},typeof Object.defineProperty=="function"){var ye=function(ve){return{value:ve,enumerable:!1,writable:!0,configurable:!0}};p.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ye(function(){return oe(this)})),Object.defineProperty(String.prototype,"toBase64",ye(function(ve){return k(this,ve)})),Object.defineProperty(String.prototype,"toBase64URI",ye(function(){return k(this,!0)}))}}return p.Meteor&&(Base64=p.Base64),typeof C!="undefined"&&C.exports?C.exports.Base64=p.Base64:typeof S=="function"&&S.amd&&S([],function(){return p.Base64}),{Base64:p.Base64}})}).call(this)}).call(this,typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(s,C,A){"use strict";C.exports=p;var u=Object.prototype.hasOwnProperty;function p(b,g,y){if(!b)throw new TypeError("argument dest is required");if(!g)throw new TypeError("argument src is required");return y===void 0&&(y=!0),Object.getOwnPropertyNames(g).forEach(function(c){if(!(!y&&u.call(b,c))){var h=Object.getOwnPropertyDescriptor(g,c);Object.defineProperty(b,c,h)}}),b}},{}],373:[function(s,C,A){"use strict";s("core-js/modules/es.array.map.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.regexp.constructor.js"),s("core-js/modules/es.regexp.to-string.js");function u(){this._types=Object.create(null),this._extensions=Object.create(null);for(var p=0;p<arguments.length;p++)this.define(arguments[p]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}u.prototype.define=function(p,b){for(var g in p){var y=p[g].map(function(m){return m.toLowerCase()});g=g.toLowerCase();for(var v=0;v<y.length;v++){var c=y[v];if(c[0]!=="*"){if(!b&&c in this._types)throw new Error('Attempt to change mapping for "'+c+'" extension from "'+this._types[c]+'" to "'+g+'". Pass `force=true` to allow this, otherwise remove "'+c+'" from the list of extensions for "'+g+'".');this._types[c]=g}}if(b||!this._extensions[g]){var h=y[0];this._extensions[g]=h[0]!=="*"?h:h.substr(1)}}},u.prototype.getType=function(p){p=String(p);var b=p.replace(/^.*[/\\]/,"").toLowerCase(),g=b.replace(/^.*\./,"").toLowerCase(),y=b.length<p.length,v=g.length<b.length-1;return(v||!y)&&this._types[g]||null},u.prototype.getExtension=function(p){return p=/^\s*([^;\s]*)/.test(p)&&RegExp.$1,p&&this._extensions[p.toLowerCase()]||null},C.exports=u},{"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(s,C,A){"use strict";var u=s("./Mime");C.exports=new u(s("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(s,C,A){"use strict";C.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(s,C,A){var u=1e3,p=u*60,b=p*60,g=b*24,y=g*7,v=g*365.25;C.exports=function(T,I){I=I||{};var R=typeof T;if(R==="string"&&T.length>0)return c(T);if(R==="number"&&isFinite(T))return I.long?m(T):h(T);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(T))};function c(T){if(T=String(T),!(T.length>100)){var I=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(T);if(I){var R=parseFloat(I[1]),N=(I[2]||"ms").toLowerCase();switch(N){case"years":case"year":case"yrs":case"yr":case"y":return R*v;case"weeks":case"week":case"w":return R*y;case"days":case"day":case"d":return R*g;case"hours":case"hour":case"hrs":case"hr":case"h":return R*b;case"minutes":case"minute":case"mins":case"min":case"m":return R*p;case"seconds":case"second":case"secs":case"sec":case"s":return R*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return R;default:return}}}}function h(T){var I=Math.abs(T);return I>=g?Math.round(T/g)+"d":I>=b?Math.round(T/b)+"h":I>=p?Math.round(T/p)+"m":I>=u?Math.round(T/u)+"s":T+"ms"}function m(T){var I=Math.abs(T);return I>=g?E(T,I,g,"day"):I>=b?E(T,I,b,"hour"):I>=p?E(T,I,p,"minute"):I>=u?E(T,I,u,"second"):T+" ms"}function E(T,I,R,N){var k=I>=R*1.5;return Math.round(T/R)+" "+N+(k?"s":"")}},{}],377:[function(s,C,A){"use strict";var u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;function g(v){if(v==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(v)}function y(){try{if(!Object.assign)return!1;var v=new String("abc");if(v[5]="de",Object.getOwnPropertyNames(v)[0]==="5")return!1;for(var c={},h=0;h<10;h++)c["_"+String.fromCharCode(h)]=h;var m=Object.getOwnPropertyNames(c).map(function(T){return c[T]});if(m.join("")!=="0123456789")return!1;var E={};return"abcdefghijklmnopqrst".split("").forEach(function(T){E[T]=T}),Object.keys(Object.assign({},E)).join("")==="abcdefghijklmnopqrst"}catch(T){return!1}}C.exports=y()?Object.assign:function(v,c){for(var h,m=g(v),E,T=1;T<arguments.length;T++){h=Object(arguments[T]);for(var I in h)p.call(h,I)&&(m[I]=h[I]);if(u){E=u(h);for(var R=0;R<E.length;R++)b.call(h,E[R])&&(m[E[R]]=h[E[R]])}}return m}},{}],378:[function(s,C,A){(function(u){(function(){"use strict";function p(v){if(typeof v!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(v))}function b(v,c){for(var h="",m=0,E=-1,T=0,I,R=0;R<=v.length;++R){if(R<v.length)I=v.charCodeAt(R);else{if(I===47)break;I=47}if(I===47){if(!(E===R-1||T===1))if(E!==R-1&&T===2){if(h.length<2||m!==2||h.charCodeAt(h.length-1)!==46||h.charCodeAt(h.length-2)!==46){if(h.length>2){var N=h.lastIndexOf("/");if(N!==h.length-1){N===-1?(h="",m=0):(h=h.slice(0,N),m=h.length-1-h.lastIndexOf("/")),E=R,T=0;continue}}else if(h.length===2||h.length===1){h="",m=0,E=R,T=0;continue}}c&&(h.length>0?h+="/..":h="..",m=2)}else h.length>0?h+="/"+v.slice(E+1,R):h=v.slice(E+1,R),m=R-E-1;E=R,T=0}else I===46&&T!==-1?++T:T=-1}return h}function g(v,c){var h=c.dir||c.root,m=c.base||(c.name||"")+(c.ext||"");return h?h===c.root?h+m:h+v+m:m}var y={resolve:function(){for(var c="",h=!1,m,E=arguments.length-1;E>=-1&&!h;E--){var T;E>=0?T=arguments[E]:(m===void 0&&(m=u.cwd()),T=m),p(T),T.length!==0&&(c=T+"/"+c,h=T.charCodeAt(0)===47)}return c=b(c,!h),h?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(c){if(p(c),c.length===0)return".";var h=c.charCodeAt(0)===47,m=c.charCodeAt(c.length-1)===47;return c=b(c,!h),c.length===0&&!h&&(c="."),c.length>0&&m&&(c+="/"),h?"/"+c:c},isAbsolute:function(c){return p(c),c.length>0&&c.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var c,h=0;h<arguments.length;++h){var m=arguments[h];p(m),m.length>0&&(c===void 0?c=m:c+="/"+m)}return c===void 0?".":y.normalize(c)},relative:function(c,h){if(p(c),p(h),c===h||(c=y.resolve(c),h=y.resolve(h),c===h))return"";for(var m=1;m<c.length&&c.charCodeAt(m)===47;++m);for(var E=c.length,T=E-m,I=1;I<h.length&&h.charCodeAt(I)===47;++I);for(var R=h.length,N=R-I,k=T<N?T:N,L=-1,H=0;H<=k;++H){if(H===k){if(N>k){if(h.charCodeAt(I+H)===47)return h.slice(I+H+1);if(H===0)return h.slice(I+H)}else T>k&&(c.charCodeAt(m+H)===47?L=H:H===0&&(L=0));break}var D=c.charCodeAt(m+H),V=h.charCodeAt(I+H);if(D!==V)break;D===47&&(L=H)}var P="";for(H=m+L+1;H<=E;++H)(H===E||c.charCodeAt(H)===47)&&(P.length===0?P+="..":P+="/..");return P.length>0?P+h.slice(I+L):(I+=L,h.charCodeAt(I)===47&&++I,h.slice(I))},_makeLong:function(c){return c},dirname:function(c){if(p(c),c.length===0)return".";for(var h=c.charCodeAt(0),m=h===47,E=-1,T=!0,I=c.length-1;I>=1;--I)if(h=c.charCodeAt(I),h===47){if(!T){E=I;break}}else T=!1;return E===-1?m?"/":".":m&&E===1?"//":c.slice(0,E)},basename:function(c,h){if(h!==void 0&&typeof h!="string")throw new TypeError('"ext" argument must be a string');p(c);var m=0,E=-1,T=!0,I;if(h!==void 0&&h.length>0&&h.length<=c.length){if(h.length===c.length&&h===c)return"";var R=h.length-1,N=-1;for(I=c.length-1;I>=0;--I){var k=c.charCodeAt(I);if(k===47){if(!T){m=I+1;break}}else N===-1&&(T=!1,N=I+1),R>=0&&(k===h.charCodeAt(R)?--R===-1&&(E=I):(R=-1,E=N))}return m===E?E=N:E===-1&&(E=c.length),c.slice(m,E)}else{for(I=c.length-1;I>=0;--I)if(c.charCodeAt(I)===47){if(!T){m=I+1;break}}else E===-1&&(T=!1,E=I+1);return E===-1?"":c.slice(m,E)}},extname:function(c){p(c);for(var h=-1,m=0,E=-1,T=!0,I=0,R=c.length-1;R>=0;--R){var N=c.charCodeAt(R);if(N===47){if(!T){m=R+1;break}continue}E===-1&&(T=!1,E=R+1),N===46?h===-1?h=R:I!==1&&(I=1):h!==-1&&(I=-1)}return h===-1||E===-1||I===0||I===1&&h===E-1&&h===m+1?"":c.slice(h,E)},format:function(c){if(c===null||typeof c!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof c);return g("/",c)},parse:function(c){p(c);var h={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return h;var m=c.charCodeAt(0),E=m===47,T;E?(h.root="/",T=1):T=0;for(var I=-1,R=0,N=-1,k=!0,L=c.length-1,H=0;L>=T;--L){if(m=c.charCodeAt(L),m===47){if(!k){R=L+1;break}continue}N===-1&&(k=!1,N=L+1),m===46?I===-1?I=L:H!==1&&(H=1):I!==-1&&(H=-1)}return I===-1||N===-1||H===0||H===1&&I===N-1&&I===R+1?N!==-1&&(R===0&&E?h.base=h.name=c.slice(1,N):h.base=h.name=c.slice(R,N)):(R===0&&E?(h.name=c.slice(1,I),h.base=c.slice(1,N)):(h.name=c.slice(R,I),h.base=c.slice(R,N)),h.ext=c.slice(I,N)),R>0?h.dir=c.slice(0,R-1):E&&(h.dir="/"),h},sep:"/",delimiter:":",win32:null,posix:null};y.posix=y,C.exports=y}).call(this)}).call(this,s("_process"))},{_process:467}],379:[function(s,C,A){(function(u){(function(){(function(){"use strict";var p={function:!0,object:!0},b=p[typeof window]&&window||this,g=b,y=p[typeof A]&&A,v=p[typeof C]&&C&&!C.nodeType&&C,c=y&&v&&typeof u=="object"&&u;c&&(c.global===c||c.window===c||c.self===c)&&(b=c);var h=Math.pow(2,53)-1,m=/\bOpera/,E=this,T=Object.prototype,I=T.hasOwnProperty,R=T.toString;function N(oe){return oe=String(oe),oe.charAt(0).toUpperCase()+oe.slice(1)}function k(oe,ue,se){var ye={"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 ue&&se&&/^Win/i.test(oe)&&!/^Windows Phone /i.test(oe)&&(ye=ye[/[\d.]+$/.exec(oe)])&&(oe="Windows "+ye),oe=String(oe),ue&&se&&(oe=oe.replace(RegExp(ue,"i"),se)),oe=H(oe.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]),oe}function L(oe,ue){var se=-1,ye=oe?oe.length:0;if(typeof ye=="number"&&ye>-1&&ye<=h)for(;++se<ye;)ue(oe[se],se,oe);else D(oe,ue)}function H(oe){return oe=J(oe),/^(?:webOS|i(?:OS|P))/.test(oe)?oe:N(oe)}function D(oe,ue){for(var se in oe)I.call(oe,se)&&ue(oe[se],se,oe)}function V(oe){return oe==null?N(oe):R.call(oe).slice(8,-1)}function P(oe,ue){var se=oe!=null?typeof oe[ue]:"number";return!/^(?:boolean|number|string|undefined)$/.test(se)&&(se=="object"?!!oe[ue]:!0)}function U(oe){return String(oe).replace(/([ -])(?!$)/g,"$1?")}function G(oe,ue){var se=null;return L(oe,function(ye,ve){se=ue(se,ye,ve,oe)}),se}function J(oe){return String(oe).replace(/^ +| +$/g,"")}function ee(oe){var ue=b,se=oe&&typeof oe=="object"&&V(oe)!="String";se&&(ue=oe,oe=null);var ye=ue.navigator||{},ve=ye.userAgent||"";oe||(oe=ve);var Re=se||E==g,le=se?!!ye.likeChrome:/\bChrome\b/.test(oe)&&!/internal|\n/i.test(R.toString()),xe="Object",pe=se?xe:"ScriptBridgingProxyObject",Me=se?xe:"Environment",Oe=se&&ue.java?"JavaPackage":V(ue.java),Le=se?xe:"RuntimeObject",Pe=/\bJava/.test(Oe)&&ue.java,De=Pe&&V(ue.environment)==Me,Ke=Pe?"a":"\u03B1",ze=Pe?"b":"\u03B2",it=ue.document||{},ot=ue.operamini||ue.opera,Ge=m.test(Ge=se&&ot?ot["[[Class]]"]:V(ot))?Ge:ot=null,Ee,fe=oe,z=[],X=null,de=oe==ve,Ce=de&&ot&&typeof ot.version=="function"&&ot.version(),ne,re=rt([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),he=dt(["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"]),_e=pt([{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"]),Be=et({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}}),Ue=Ot(["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 rt(vt){return G(vt,function(Ct,Ft){return Ct||RegExp("\\b"+(Ft.pattern||U(Ft))+"\\b","i").exec(oe)&&(Ft.label||Ft)})}function et(vt){return G(vt,function(Ct,Ft,Rt){return Ct||(Ft[_e]||Ft[/^[a-z]+(?: +[a-z]+\b)*/i.exec(_e)]||RegExp("\\b"+U(Rt)+"(?:\\b|\\w*\\d)","i").exec(oe))&&Rt})}function dt(vt){return G(vt,function(Ct,Ft){return Ct||RegExp("\\b"+(Ft.pattern||U(Ft))+"\\b","i").exec(oe)&&(Ft.label||Ft)})}function Ot(vt){return G(vt,function(Ct,Ft){var Rt=Ft.pattern||U(Ft);return!Ct&&(Ct=RegExp("\\b"+Rt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(oe))&&(Ct=k(Ct,Rt,Ft.label||Ft)),Ct})}function pt(vt){return G(vt,function(Ct,Ft){var Rt=Ft.pattern||U(Ft);return!Ct&&(Ct=RegExp("\\b"+Rt+" *\\d+[.\\w_]*","i").exec(oe)||RegExp("\\b"+Rt+" *\\w+-[\\w]*","i").exec(oe)||RegExp("\\b"+Rt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(oe))&&((Ct=String(Ft.label&&!RegExp(Rt,"i").test(Ft.label)?Ft.label:Ct).split("/"))[1]&&!/[\d.]+/.test(Ct[0])&&(Ct[0]+=" "+Ct[1]),Ft=Ft.label||Ft,Ct=H(Ct[0].replace(RegExp(Rt,"i"),Ft).replace(RegExp("; *(?:"+Ft+"[_-])?","i")," ").replace(RegExp("("+Ft+")[-_.]?(\\w)","i"),"$1 $2"))),Ct})}function nt(vt){return G(vt,function(Ct,Ft){return Ct||(RegExp(Ft+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(oe)||0)[1]||null})}function ut(){return this.description||""}if(re&&(re=[re]),/\bAndroid\b/.test(Ue)&&!_e&&(Ee=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(oe))&&(_e=J(Ee[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),Be&&!_e?_e=pt([Be]):Be&&_e&&(_e=_e.replace(RegExp("^("+U(Be)+")[-_.\\s]","i"),Be+" ").replace(RegExp("^("+U(Be)+")[-_.]?(\\w)","i"),Be+" $2")),(Ee=/\bGoogle TV\b/.exec(_e))&&(_e=Ee[0]),/\bSimulator\b/i.test(oe)&&(_e=(_e?_e+" ":"")+"Simulator"),he=="Opera Mini"&&/\bOPiOS\b/.test(oe)&&z.push("running in Turbo/Uncompressed mode"),he=="IE"&&/\blike iPhone OS\b/.test(oe)?(Ee=ee(oe.replace(/like iPhone OS/,"")),Be=Ee.manufacturer,_e=Ee.product):/^iP/.test(_e)?(he||(he="Safari"),Ue="iOS"+((Ee=/ OS ([\d_]+)/i.exec(oe))?" "+Ee[1].replace(/_/g,"."):"")):he=="Konqueror"&&/^Linux\b/i.test(Ue)?Ue="Kubuntu":Be&&Be!="Google"&&(/Chrome/.test(he)&&!/\bMobile Safari\b/i.test(oe)||/\bVita\b/.test(_e))||/\bAndroid\b/.test(Ue)&&/^Chrome/.test(he)&&/\bVersion\//i.test(oe)?(he="Android Browser",Ue=/\bAndroid\b/.test(Ue)?Ue:"Android"):he=="Silk"?(/\bMobi/i.test(oe)||(Ue="Android",z.unshift("desktop mode")),/Accelerated *= *true/i.test(oe)&&z.unshift("accelerated")):he=="UC Browser"&&/\bUCWEB\b/.test(oe)?z.push("speed mode"):he=="PaleMoon"&&(Ee=/\bFirefox\/([\d.]+)\b/.exec(oe))?z.push("identifying as Firefox "+Ee[1]):he=="Firefox"&&(Ee=/\b(Mobile|Tablet|TV)\b/i.exec(oe))?(Ue||(Ue="Firefox OS"),_e||(_e=Ee[1])):!he||(Ee=!/\bMinefield\b/i.test(oe)&&/\b(?:Firefox|Safari)\b/.exec(he))?(he&&!_e&&/[\/,]|^[^(]+?\)/.test(oe.slice(oe.indexOf(Ee+"/")+8))&&(he=null),(Ee=_e||Be||Ue)&&(_e||Be||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Ue))&&(he=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Ue)?Ue:Ee)+" Browser")):he=="Electron"&&(Ee=(/\bChrome\/([\d.]+)\b/.exec(oe)||0)[1])&&z.push("Chromium "+Ee),Ce||(Ce=nt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",U(he),"(?:Firefox|Minefield|NetFront)"])),(Ee=re=="iCab"&&parseFloat(Ce)>3&&"WebKit"||/\bOpera\b/.test(he)&&(/\bOPR\b/.test(oe)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(oe)&&!/^(?:Trident|EdgeHTML)$/.test(re)&&"WebKit"||!re&&/\bMSIE\b/i.test(oe)&&(Ue=="Mac OS"?"Tasman":"Trident")||re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(he)&&"NetFront")&&(re=[Ee]),he=="IE"&&(Ee=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(oe)||0)[1])?(he+=" Mobile",Ue="Windows Phone "+(/\+$/.test(Ee)?Ee:Ee+".x"),z.unshift("desktop mode")):/\bWPDesktop\b/i.test(oe)?(he="IE Mobile",Ue="Windows Phone 8.x",z.unshift("desktop mode"),Ce||(Ce=(/\brv:([\d.]+)/.exec(oe)||0)[1])):he!="IE"&&re=="Trident"&&(Ee=/\brv:([\d.]+)/.exec(oe))&&(he&&z.push("identifying as "+he+(Ce?" "+Ce:"")),he="IE",Ce=Ee[1]),de){if(P(ue,"global"))if(Pe&&(Ee=Pe.lang.System,fe=Ee.getProperty("os.arch"),Ue=Ue||Ee.getProperty("os.name")+" "+Ee.getProperty("os.version")),De){try{Ce=ue.require("ringo/engine").version.join("."),he="RingoJS"}catch(vt){(Ee=ue.system)&&Ee.global.system==ue.system&&(he="Narwhal",Ue||(Ue=Ee[0].os||null))}he||(he="Rhino")}else typeof ue.process=="object"&&!ue.process.browser&&(Ee=ue.process)&&(typeof Ee.versions=="object"&&(typeof Ee.versions.electron=="string"?(z.push("Node "+Ee.versions.node),he="Electron",Ce=Ee.versions.electron):typeof Ee.versions.nw=="string"&&(z.push("Chromium "+Ce,"Node "+Ee.versions.node),he="NW.js",Ce=Ee.versions.nw)),he||(he="Node.js",fe=Ee.arch,Ue=Ee.platform,Ce=/[\d.]+/.exec(Ee.version),Ce=Ce?Ce[0]:null));else V(Ee=ue.runtime)==pe?(he="Adobe AIR",Ue=Ee.flash.system.Capabilities.os):V(Ee=ue.phantom)==Le?(he="PhantomJS",Ce=(Ee=Ee.version||null)&&Ee.major+"."+Ee.minor+"."+Ee.patch):typeof it.documentMode=="number"&&(Ee=/\bTrident\/(\d+)/i.exec(oe))?(Ce=[Ce,it.documentMode],(Ee=+Ee[1]+4)!=Ce[1]&&(z.push("IE "+Ce[1]+" mode"),re&&(re[1]=""),Ce[1]=Ee),Ce=he=="IE"?String(Ce[1].toFixed(1)):Ce[0]):typeof it.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(he)&&(z.push("masking as "+he+" "+Ce),he="IE",Ce="11.0",re=["Trident"],Ue="Windows");Ue=Ue&&H(Ue)}if(Ce&&(Ee=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ce)||/(?:alpha|beta)(?: ?\d)?/i.exec(oe+";"+(de&&ye.appMinorVersion))||/\bMinefield\b/i.test(oe)&&"a")&&(X=/b/i.test(Ee)?"beta":"alpha",Ce=Ce.replace(RegExp(Ee+"\\+?$"),"")+(X=="beta"?ze:Ke)+(/\d+\+?/.exec(Ee)||"")),he=="Fennec"||he=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Ue))he="Firefox Mobile";else if(he=="Maxthon"&&Ce)Ce=Ce.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(_e))_e=="Xbox 360"&&(Ue=null),_e=="Xbox 360"&&/\bIEMobile\b/.test(oe)&&z.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(he)||he&&!_e&&!/Browser|Mobi/.test(he))&&(Ue=="Windows CE"||/Mobi/i.test(oe)))he+=" Mobile";else if(he=="IE"&&de)try{ue.external===null&&z.unshift("platform preview")}catch(vt){z.unshift("embedded")}else(/\bBlackBerry\b/.test(_e)||/\bBB10\b/.test(oe))&&(Ee=(RegExp(_e.replace(/ +/g," *")+"/([.\\d]+)","i").exec(oe)||0)[1]||Ce)?(Ee=[Ee,/BB10/.test(oe)],Ue=(Ee[1]?(_e=null,Be="BlackBerry"):"Device Software")+" "+Ee[0],Ce=null):this!=D&&_e!="Wii"&&(de&&ot||/Opera/.test(he)&&/\b(?:MSIE|Firefox)\b/i.test(oe)||he=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Ue)||he=="IE"&&(Ue&&!/^Win/.test(Ue)&&Ce>5.5||/\bWindows XP\b/.test(Ue)&&Ce>8||Ce==8&&!/\bTrident\b/.test(oe)))&&!m.test(Ee=ee.call(D,oe.replace(m,"")+";"))&&Ee.name&&(Ee="ing as "+Ee.name+((Ee=Ee.version)?" "+Ee:""),m.test(he)?(/\bIE\b/.test(Ee)&&Ue=="Mac OS"&&(Ue=null),Ee="identify"+Ee):(Ee="mask"+Ee,Ge?he=H(Ge.replace(/([a-z])([A-Z])/g,"$1 $2")):he="Opera",/\bIE\b/.test(Ee)&&(Ue=null),de||(Ce=null)),re=["Presto"],z.push(Ee));(Ee=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(oe)||0)[1])&&(Ee=[parseFloat(Ee.replace(/\.(\d)$/,".0$1")),Ee],he=="Safari"&&Ee[1].slice(-1)=="+"?(he="WebKit Nightly",X="alpha",Ce=Ee[1].slice(0,-1)):(Ce==Ee[1]||Ce==(Ee[2]=(/\bSafari\/([\d.]+\+?)/i.exec(oe)||0)[1]))&&(Ce=null),Ee[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(oe)||0)[1],Ee[0]==537.36&&Ee[2]==537.36&&parseFloat(Ee[1])>=28&&re=="WebKit"&&(re=["Blink"]),!de||!le&&!Ee[1]?(re&&(re[1]="like Safari"),Ee=(Ee=Ee[0],Ee<400?1:Ee<500?2:Ee<526?3:Ee<533?4:Ee<534?"4+":Ee<535?5:Ee<537?6:Ee<538?7:Ee<601?8:Ee<602?9:Ee<604?10:Ee<606?11:Ee<608?12:"12")):(re&&(re[1]="like Chrome"),Ee=Ee[1]||(Ee=Ee[0],Ee<530?1:Ee<532?2:Ee<532.05?3:Ee<533?4:Ee<534.03?5:Ee<534.07?6:Ee<534.1?7:Ee<534.13?8:Ee<534.16?9:Ee<534.24?10:Ee<534.3?11:Ee<535.01?12:Ee<535.02?"13+":Ee<535.07?15:Ee<535.11?16:Ee<535.19?17:Ee<536.05?18:Ee<536.1?19:Ee<537.01?20:Ee<537.11?"21+":Ee<537.13?23:Ee<537.18?24:Ee<537.24?25:Ee<537.36?26:re!="Blink"?"27":"28")),re&&(re[1]+=" "+(Ee+=typeof Ee=="number"?".x":/[.+]/.test(Ee)?"":"+")),he=="Safari"&&(!Ce||parseInt(Ce)>45)?Ce=Ee:he=="Chrome"&&/\bHeadlessChrome/i.test(oe)&&z.unshift("headless")),he=="Opera"&&(Ee=/\bzbov|zvav$/.exec(Ue))?(he+=" ",z.unshift("desktop mode"),Ee=="zvav"?(he+="Mini",Ce=null):he+="Mobile",Ue=Ue.replace(RegExp(" *"+Ee+"$"),"")):he=="Safari"&&/\bChrome\b/.exec(re&&re[1])?(z.unshift("desktop mode"),he="Chrome Mobile",Ce=null,/\bOS X\b/.test(Ue)?(Be="Apple",Ue="iOS 4.3+"):Ue=null):/\bSRWare Iron\b/.test(he)&&!Ce&&(Ce=nt("Chrome")),Ce&&Ce.indexOf(Ee=/[\d.]+$/.exec(Ue))==0&&oe.indexOf("/"+Ee+"-")>-1&&(Ue=J(Ue.replace(Ee,""))),Ue&&Ue.indexOf(he)!=-1&&!RegExp(he+" OS").test(Ue)&&(Ue=Ue.replace(RegExp(" *"+U(he)+" *"),"")),re&&!/\b(?:Avant|Nook)\b/.test(he)&&(/Browser|Lunascape|Maxthon/.test(he)||he!="Safari"&&/^iOS/.test(Ue)&&/\bSafari\b/.test(re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(he)&&re[1])&&(Ee=re[re.length-1])&&z.push(Ee),z.length&&(z=["("+z.join("; ")+")"]),Be&&_e&&_e.indexOf(Be)<0&&z.push("on "+Be),_e&&z.push((/^on /.test(z[z.length-1])?"":"on ")+_e),Ue&&(Ee=/ ([\d.+]+)$/.exec(Ue),ne=Ee&&Ue.charAt(Ue.length-Ee[0].length-1)=="/",Ue={architecture:32,family:Ee&&!ne?Ue.replace(Ee[0],""):Ue,version:Ee?Ee[1]:null,toString:function(){var vt=this.version;return this.family+(vt&&!ne?" "+vt:"")+(this.architecture==64?" 64-bit":"")}}),(Ee=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(fe))&&!/\bi686\b/i.test(fe)?(Ue&&(Ue.architecture=64,Ue.family=Ue.family.replace(RegExp(" *"+Ee),"")),he&&(/\bWOW64\b/i.test(oe)||de&&/\w(?:86|32)$/.test(ye.cpuClass||ye.platform)&&!/\bWin64; x64\b/i.test(oe))&&z.unshift("32-bit")):Ue&&/^OS X/.test(Ue.family)&&he=="Chrome"&&parseFloat(Ce)>=39&&(Ue.architecture=64),oe||(oe=null);var Tt={};return Tt.description=oe,Tt.layout=re&&re[0],Tt.manufacturer=Be,Tt.name=he,Tt.prerelease=X,Tt.product=_e,Tt.ua=oe,Tt.version=he&&Ce,Tt.os=Ue||{architecture:null,family:null,version:null,toString:function(){return"null"}},Tt.parse=ee,Tt.toString=ut,Tt.version&&z.unshift(Ce),Tt.name&&z.unshift(he),Ue&&he&&!(Ue==String(Ue).split(" ")[0]&&(Ue==he.split(" ")[0]||_e))&&z.push(_e?"("+Ue+")":"on "+Ue),z.length&&(Tt.description=z.join(" ")),Tt}var ae=ee();typeof S=="function"&&typeof S.amd=="object"&&S.amd?(b.platform=ae,S(function(){return ae})):y&&v?D(ae,function(oe,ue){y[ue]=oe}):b.platform=ae}).call(this)}).call(this)}).call(this,typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(s,C,A){(function(u){(function(){"use strict";typeof u=="undefined"||!u.version||u.version.indexOf("v0.")===0||u.version.indexOf("v1.")===0&&u.version.indexOf("v1.8.")!==0?C.exports={nextTick:p}:C.exports=u;function p(b,g,y,v){if(typeof b!="function")throw new TypeError('"callback" argument must be a function');var c=arguments.length,h,m;switch(c){case 0:case 1:return u.nextTick(b);case 2:return u.nextTick(function(){b.call(null,g)});case 3:return u.nextTick(function(){b.call(null,g,y)});case 4:return u.nextTick(function(){b.call(null,g,y,v)});default:for(h=new Array(c-1),m=0;m<h.length;)h[m++]=arguments[m];return u.nextTick(function(){b.apply(null,h)})}}}).call(this)}).call(this,s("_process"))},{_process:467}],381:[function(s,C,A){var u=C.exports={},p,b;function g(){throw new Error("setTimeout has not been defined")}function y(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?p=setTimeout:p=g}catch(L){p=g}try{typeof clearTimeout=="function"?b=clearTimeout:b=y}catch(L){b=y}})();function v(L){if(p===setTimeout)return setTimeout(L,0);if((p===g||!p)&&setTimeout)return p=setTimeout,setTimeout(L,0);try{return p(L,0)}catch(H){try{return p.call(null,L,0)}catch(D){return p.call(this,L,0)}}}function c(L){if(b===clearTimeout)return clearTimeout(L);if((b===y||!b)&&clearTimeout)return b=clearTimeout,clearTimeout(L);try{return b(L)}catch(H){try{return b.call(null,L)}catch(D){return b.call(this,L)}}}var h=[],m=!1,E,T=-1;function I(){!m||!E||(m=!1,E.length?h=E.concat(h):T=-1,h.length&&R())}function R(){if(!m){var L=v(I);m=!0;for(var H=h.length;H;){for(E=h,h=[];++T<H;)E&&E[T].run();T=-1,H=h.length}E=null,m=!1,c(L)}}u.nextTick=function(L){var H=new Array(arguments.length-1);if(arguments.length>1)for(var D=1;D<arguments.length;D++)H[D-1]=arguments[D];h.push(new N(L,H)),h.length===1&&!m&&v(R)};function N(L,H){this.fun=L,this.array=H}N.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={};function k(){}u.on=k,u.addListener=k,u.once=k,u.off=k,u.removeListener=k,u.removeAllListeners=k,u.emit=k,u.prependListener=k,u.prependOnceListener=k,u.listeners=function(L){return[]},u.binding=function(L){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(L){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],382:[function(s,C,A){(function(u){(function(){(function(p){var b=typeof A=="object"&&A&&!A.nodeType&&A,g=typeof C=="object"&&C&&!C.nodeType&&C,y=typeof u=="object"&&u;(y.global===y||y.window===y||y.self===y)&&(p=y);var v,c=2147483647,h=36,m=1,E=26,T=38,I=700,R=72,N=128,k="-",L=/^xn--/,H=/[^\x20-\x7E]/,D=/[\x2E\u3002\uFF0E\uFF61]/g,V={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=h-m,U=Math.floor,G=String.fromCharCode,J;function ee(Oe){throw new RangeError(V[Oe])}function ae(Oe,Le){for(var Pe=Oe.length,De=[];Pe--;)De[Pe]=Le(Oe[Pe]);return De}function oe(Oe,Le){var Pe=Oe.split("@"),De="";Pe.length>1&&(De=Pe[0]+"@",Oe=Pe[1]),Oe=Oe.replace(D,".");var Ke=Oe.split("."),ze=ae(Ke,Le).join(".");return De+ze}function ue(Oe){for(var Le=[],Pe=0,De=Oe.length,Ke,ze;Pe<De;)Ke=Oe.charCodeAt(Pe++),Ke>=55296&&Ke<=56319&&Pe<De?(ze=Oe.charCodeAt(Pe++),(ze&64512)==56320?Le.push(((Ke&1023)<<10)+(ze&1023)+65536):(Le.push(Ke),Pe--)):Le.push(Ke);return Le}function se(Oe){return ae(Oe,function(Le){var Pe="";return Le>65535&&(Le-=65536,Pe+=G(Le>>>10&1023|55296),Le=56320|Le&1023),Pe+=G(Le),Pe}).join("")}function ye(Oe){return Oe-48<10?Oe-22:Oe-65<26?Oe-65:Oe-97<26?Oe-97:h}function ve(Oe,Le){return Oe+22+75*(Oe<26)-((Le!=0)<<5)}function Re(Oe,Le,Pe){var De=0;for(Oe=Pe?U(Oe/I):Oe>>1,Oe+=U(Oe/Le);Oe>P*E>>1;De+=h)Oe=U(Oe/P);return U(De+(P+1)*Oe/(Oe+T))}function le(Oe){var Le=[],Pe=Oe.length,De,Ke=0,ze=N,it=R,ot,Ge,Ee,fe,z,X,de,Ce,ne;for(ot=Oe.lastIndexOf(k),ot<0&&(ot=0),Ge=0;Ge<ot;++Ge)Oe.charCodeAt(Ge)>=128&&ee("not-basic"),Le.push(Oe.charCodeAt(Ge));for(Ee=ot>0?ot+1:0;Ee<Pe;){for(fe=Ke,z=1,X=h;Ee>=Pe&&ee("invalid-input"),de=ye(Oe.charCodeAt(Ee++)),(de>=h||de>U((c-Ke)/z))&&ee("overflow"),Ke+=de*z,Ce=X<=it?m:X>=it+E?E:X-it,!(de<Ce);X+=h)ne=h-Ce,z>U(c/ne)&&ee("overflow"),z*=ne;De=Le.length+1,it=Re(Ke-fe,De,fe==0),U(Ke/De)>c-ze&&ee("overflow"),ze+=U(Ke/De),Ke%=De,Le.splice(Ke++,0,ze)}return se(Le)}function xe(Oe){var Le,Pe,De,Ke,ze,it,ot,Ge,Ee,fe,z,X=[],de,Ce,ne,re;for(Oe=ue(Oe),de=Oe.length,Le=N,Pe=0,ze=R,it=0;it<de;++it)z=Oe[it],z<128&&X.push(G(z));for(De=Ke=X.length,Ke&&X.push(k);De<de;){for(ot=c,it=0;it<de;++it)z=Oe[it],z>=Le&&z<ot&&(ot=z);for(Ce=De+1,ot-Le>U((c-Pe)/Ce)&&ee("overflow"),Pe+=(ot-Le)*Ce,Le=ot,it=0;it<de;++it)if(z=Oe[it],z<Le&&++Pe>c&&ee("overflow"),z==Le){for(Ge=Pe,Ee=h;fe=Ee<=ze?m:Ee>=ze+E?E:Ee-ze,!(Ge<fe);Ee+=h)re=Ge-fe,ne=h-fe,X.push(G(ve(fe+re%ne,0))),Ge=U(re/ne);X.push(G(ve(Ge,0))),ze=Re(Pe,Ce,De==Ke),Pe=0,++De}++Pe,++Le}return X.join("")}function pe(Oe){return oe(Oe,function(Le){return L.test(Le)?le(Le.slice(4).toLowerCase()):Le})}function Me(Oe){return oe(Oe,function(Le){return H.test(Le)?"xn--"+xe(Le):Le})}if(v={version:"1.4.1",ucs2:{decode:ue,encode:se},decode:le,encode:xe,toASCII:Me,toUnicode:pe},typeof S=="function"&&typeof S.amd=="object"&&S.amd)S("punycode",function(){return v});else if(b&&g)if(C.exports==b)g.exports=v;else for(J in v)v.hasOwnProperty(J)&&(b[J]=v[J]);else p.punycode=v})(this)}).call(this)}).call(this,typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(s,C,A){"use strict";function u(b,g){return Object.prototype.hasOwnProperty.call(b,g)}C.exports=function(b,g,y,v){g=g||"&",y=y||"=";var c={};if(typeof b!="string"||b.length===0)return c;var h=/\+/g;b=b.split(g);var m=1e3;v&&typeof v.maxKeys=="number"&&(m=v.maxKeys);var E=b.length;m>0&&E>m&&(E=m);for(var T=0;T<E;++T){var I=b[T].replace(h,"%20"),R=I.indexOf(y),N,k,L,H;R>=0?(N=I.substr(0,R),k=I.substr(R+1)):(N=I,k=""),L=decodeURIComponent(N),H=decodeURIComponent(k),u(c,L)?p(c[L])?c[L].push(H):c[L]=[c[L],H]:c[L]=H}return c};var p=Array.isArray||function(b){return Object.prototype.toString.call(b)==="[object Array]"}},{}],384:[function(s,C,A){"use strict";var u=function(y){switch(typeof y){case"string":return y;case"boolean":return y?"true":"false";case"number":return isFinite(y)?y:"";default:return""}};C.exports=function(y,v,c,h){return v=v||"&",c=c||"=",y===null&&(y=void 0),typeof y=="object"?b(g(y),function(m){var E=encodeURIComponent(u(m))+c;return p(y[m])?b(y[m],function(T){return E+encodeURIComponent(u(T))}).join(v):E+encodeURIComponent(u(y[m]))}).join(v):h?encodeURIComponent(u(h))+c+encodeURIComponent(u(y)):""};var p=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"};function b(y,v){if(y.map)return y.map(v);for(var c=[],h=0;h<y.length;h++)c.push(v(y[h],h));return c}var g=Object.keys||function(y){var v=[];for(var c in y)Object.prototype.hasOwnProperty.call(y,c)&&v.push(c);return v}},{}],385:[function(s,C,A){"use strict";A.decode=A.parse=s("./decode"),A.encode=A.stringify=s("./encode")},{"./decode":383,"./encode":384}],386:[function(s,C,A){"use strict";var u=s("process-nextick-args"),p=Object.keys||function(I){var R=[];for(var N in I)R.push(N);return R};C.exports=m;var b=Object.create(s("core-util-is"));b.inherits=s("inherits");var g=s("./_stream_readable"),y=s("./_stream_writable");b.inherits(m,g);for(var v=p(y.prototype),c=0;c<v.length;c++){var h=v[c];m.prototype[h]||(m.prototype[h]=y.prototype[h])}function m(I){if(!(this instanceof m))return new m(I);g.call(this,I),y.call(this,I),I&&I.readable===!1&&(this.readable=!1),I&&I.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,I&&I.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",E)}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function E(){this.allowHalfOpen||this._writableState.ended||u.nextTick(T,this)}function T(I){I.end()}Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(I){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=I,this._writableState.destroyed=I)}}),m.prototype._destroy=function(I,R){this.push(null),this.end(),u.nextTick(R,I)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(s,C,A){"use strict";C.exports=b;var u=s("./_stream_transform"),p=Object.create(s("core-util-is"));p.inherits=s("inherits"),p.inherits(b,u);function b(g){if(!(this instanceof b))return new b(g);u.call(this,g)}b.prototype._transform=function(g,y,v){v(null,g)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(s,C,A){(function(u,p){(function(){"use strict";var b=s("process-nextick-args");C.exports=G;var g=s("isarray"),y;G.ReadableState=U;var v=s("events").EventEmitter,c=function(z,X){return z.listeners(X).length},h=s("./internal/streams/stream"),m=s("safe-buffer").Buffer,E=p.Uint8Array||function(){};function T(z){return m.from(z)}function I(z){return m.isBuffer(z)||z instanceof E}var R=Object.create(s("core-util-is"));R.inherits=s("inherits");var N=s("util"),k=void 0;N&&N.debuglog?k=N.debuglog("stream"):k=function(){};var L=s("./internal/streams/BufferList"),H=s("./internal/streams/destroy"),D;R.inherits(G,h);var V=["error","close","destroy","pause","resume"];function P(z,X,de){if(typeof z.prependListener=="function")return z.prependListener(X,de);!z._events||!z._events[X]?z.on(X,de):g(z._events[X])?z._events[X].unshift(de):z._events[X]=[de,z._events[X]]}function U(z,X){y=y||s("./_stream_duplex"),z=z||{};var de=X instanceof y;this.objectMode=!!z.objectMode,de&&(this.objectMode=this.objectMode||!!z.readableObjectMode);var Ce=z.highWaterMark,ne=z.readableHighWaterMark,re=this.objectMode?16:16*1024;Ce||Ce===0?this.highWaterMark=Ce:de&&(ne||ne===0)?this.highWaterMark=ne:this.highWaterMark=re,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new L,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=z.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,z.encoding&&(D||(D=s("string_decoder/").StringDecoder),this.decoder=new D(z.encoding),this.encoding=z.encoding)}function G(z){if(y=y||s("./_stream_duplex"),!(this instanceof G))return new G(z);this._readableState=new U(z,this),this.readable=!0,z&&(typeof z.read=="function"&&(this._read=z.read),typeof z.destroy=="function"&&(this._destroy=z.destroy)),h.call(this)}Object.defineProperty(G.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(z){this._readableState&&(this._readableState.destroyed=z)}}),G.prototype.destroy=H.destroy,G.prototype._undestroy=H.undestroy,G.prototype._destroy=function(z,X){this.push(null),X(z)},G.prototype.push=function(z,X){var de=this._readableState,Ce;return de.objectMode?Ce=!0:typeof z=="string"&&(X=X||de.defaultEncoding,X!==de.encoding&&(z=m.from(z,X),X=""),Ce=!0),J(this,z,X,!1,Ce)},G.prototype.unshift=function(z){return J(this,z,null,!0,!1)};function J(z,X,de,Ce,ne){var re=z._readableState;if(X===null)re.reading=!1,ve(z,re);else{var he;ne||(he=ae(re,X)),he?z.emit("error",he):re.objectMode||X&&X.length>0?(typeof X!="string"&&!re.objectMode&&Object.getPrototypeOf(X)!==m.prototype&&(X=T(X)),Ce?re.endEmitted?z.emit("error",new Error("stream.unshift() after end event")):ee(z,re,X,!0):re.ended?z.emit("error",new Error("stream.push() after EOF")):(re.reading=!1,re.decoder&&!de?(X=re.decoder.write(X),re.objectMode||X.length!==0?ee(z,re,X,!1):xe(z,re)):ee(z,re,X,!1))):Ce||(re.reading=!1)}return oe(re)}function ee(z,X,de,Ce){X.flowing&&X.length===0&&!X.sync?(z.emit("data",de),z.read(0)):(X.length+=X.objectMode?1:de.length,Ce?X.buffer.unshift(de):X.buffer.push(de),X.needReadable&&Re(z)),xe(z,X)}function ae(z,X){var de;return!I(X)&&typeof X!="string"&&X!==void 0&&!z.objectMode&&(de=new TypeError("Invalid non-string/buffer chunk")),de}function oe(z){return!z.ended&&(z.needReadable||z.length<z.highWaterMark||z.length===0)}G.prototype.isPaused=function(){return this._readableState.flowing===!1},G.prototype.setEncoding=function(z){return D||(D=s("string_decoder/").StringDecoder),this._readableState.decoder=new D(z),this._readableState.encoding=z,this};var ue=8388608;function se(z){return z>=ue?z=ue:(z--,z|=z>>>1,z|=z>>>2,z|=z>>>4,z|=z>>>8,z|=z>>>16,z++),z}function ye(z,X){return z<=0||X.length===0&&X.ended?0:X.objectMode?1:z!==z?X.flowing&&X.length?X.buffer.head.data.length:X.length:(z>X.highWaterMark&&(X.highWaterMark=se(z)),z<=X.length?z:X.ended?X.length:(X.needReadable=!0,0))}G.prototype.read=function(z){k("read",z),z=parseInt(z,10);var X=this._readableState,de=z;if(z!==0&&(X.emittedReadable=!1),z===0&&X.needReadable&&(X.length>=X.highWaterMark||X.ended))return k("read: emitReadable",X.length,X.ended),X.length===0&&X.ended?Ge(this):Re(this),null;if(z=ye(z,X),z===0&&X.ended)return X.length===0&&Ge(this),null;var Ce=X.needReadable;k("need readable",Ce),(X.length===0||X.length-z<X.highWaterMark)&&(Ce=!0,k("length less than watermark",Ce)),X.ended||X.reading?(Ce=!1,k("reading or ended",Ce)):Ce&&(k("do read"),X.reading=!0,X.sync=!0,X.length===0&&(X.needReadable=!0),this._read(X.highWaterMark),X.sync=!1,X.reading||(z=ye(de,X)));var ne;return z>0?ne=Ke(z,X):ne=null,ne===null?(X.needReadable=!0,z=0):X.length-=z,X.length===0&&(X.ended||(X.needReadable=!0),de!==z&&X.ended&&Ge(this)),ne!==null&&this.emit("data",ne),ne};function ve(z,X){if(!X.ended){if(X.decoder){var de=X.decoder.end();de&&de.length&&(X.buffer.push(de),X.length+=X.objectMode?1:de.length)}X.ended=!0,Re(z)}}function Re(z){var X=z._readableState;X.needReadable=!1,X.emittedReadable||(k("emitReadable",X.flowing),X.emittedReadable=!0,X.sync?b.nextTick(le,z):le(z))}function le(z){k("emit readable"),z.emit("readable"),De(z)}function xe(z,X){X.readingMore||(X.readingMore=!0,b.nextTick(pe,z,X))}function pe(z,X){for(var de=X.length;!X.reading&&!X.flowing&&!X.ended&&X.length<X.highWaterMark&&(k("maybeReadMore read 0"),z.read(0),de!==X.length);)de=X.length;X.readingMore=!1}G.prototype._read=function(z){this.emit("error",new Error("_read() is not implemented"))},G.prototype.pipe=function(z,X){var de=this,Ce=this._readableState;switch(Ce.pipesCount){case 0:Ce.pipes=z;break;case 1:Ce.pipes=[Ce.pipes,z];break;default:Ce.pipes.push(z);break}Ce.pipesCount+=1,k("pipe count=%d opts=%j",Ce.pipesCount,X);var ne=(!X||X.end!==!1)&&z!==u.stdout&&z!==u.stderr,re=ne?_e:ut;Ce.endEmitted?b.nextTick(re):de.once("end",re),z.on("unpipe",he);function he(Tt,vt){k("onunpipe"),Tt===de&&vt&&vt.hasUnpiped===!1&&(vt.hasUnpiped=!0,rt())}function _e(){k("onend"),z.end()}var Be=Me(de);z.on("drain",Be);var Ue=!1;function rt(){k("cleanup"),z.removeListener("close",pt),z.removeListener("finish",nt),z.removeListener("drain",Be),z.removeListener("error",Ot),z.removeListener("unpipe",he),de.removeListener("end",_e),de.removeListener("end",ut),de.removeListener("data",dt),Ue=!0,Ce.awaitDrain&&(!z._writableState||z._writableState.needDrain)&&Be()}var et=!1;de.on("data",dt);function dt(Tt){k("ondata"),et=!1;var vt=z.write(Tt);vt===!1&&!et&&((Ce.pipesCount===1&&Ce.pipes===z||Ce.pipesCount>1&&fe(Ce.pipes,z)!==-1)&&!Ue&&(k("false write response, pause",de._readableState.awaitDrain),de._readableState.awaitDrain++,et=!0),de.pause())}function Ot(Tt){k("onerror",Tt),ut(),z.removeListener("error",Ot),c(z,"error")===0&&z.emit("error",Tt)}P(z,"error",Ot);function pt(){z.removeListener("finish",nt),ut()}z.once("close",pt);function nt(){k("onfinish"),z.removeListener("close",pt),ut()}z.once("finish",nt);function ut(){k("unpipe"),de.unpipe(z)}return z.emit("pipe",de),Ce.flowing||(k("pipe resume"),de.resume()),z};function Me(z){return function(){var X=z._readableState;k("pipeOnDrain",X.awaitDrain),X.awaitDrain&&X.awaitDrain--,X.awaitDrain===0&&c(z,"data")&&(X.flowing=!0,De(z))}}G.prototype.unpipe=function(z){var X=this._readableState,de={hasUnpiped:!1};if(X.pipesCount===0)return this;if(X.pipesCount===1)return z&&z!==X.pipes?this:(z||(z=X.pipes),X.pipes=null,X.pipesCount=0,X.flowing=!1,z&&z.emit("unpipe",this,de),this);if(!z){var Ce=X.pipes,ne=X.pipesCount;X.pipes=null,X.pipesCount=0,X.flowing=!1;for(var re=0;re<ne;re++)Ce[re].emit("unpipe",this,de);return this}var he=fe(X.pipes,z);return he===-1?this:(X.pipes.splice(he,1),X.pipesCount-=1,X.pipesCount===1&&(X.pipes=X.pipes[0]),z.emit("unpipe",this,de),this)},G.prototype.on=function(z,X){var de=h.prototype.on.call(this,z,X);if(z==="data")this._readableState.flowing!==!1&&this.resume();else if(z==="readable"){var Ce=this._readableState;!Ce.endEmitted&&!Ce.readableListening&&(Ce.readableListening=Ce.needReadable=!0,Ce.emittedReadable=!1,Ce.reading?Ce.length&&Re(this):b.nextTick(Oe,this))}return de},G.prototype.addListener=G.prototype.on;function Oe(z){k("readable nexttick read 0"),z.read(0)}G.prototype.resume=function(){var z=this._readableState;return z.flowing||(k("resume"),z.flowing=!0,Le(this,z)),this};function Le(z,X){X.resumeScheduled||(X.resumeScheduled=!0,b.nextTick(Pe,z,X))}function Pe(z,X){X.reading||(k("resume read 0"),z.read(0)),X.resumeScheduled=!1,X.awaitDrain=0,z.emit("resume"),De(z),X.flowing&&!X.reading&&z.read(0)}G.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function De(z){var X=z._readableState;for(k("flow",X.flowing);X.flowing&&z.read()!==null;);}G.prototype.wrap=function(z){var X=this,de=this._readableState,Ce=!1;z.on("end",function(){if(k("wrapped end"),de.decoder&&!de.ended){var he=de.decoder.end();he&&he.length&&X.push(he)}X.push(null)}),z.on("data",function(he){if(k("wrapped data"),de.decoder&&(he=de.decoder.write(he)),!(de.objectMode&&he==null)&&!(!de.objectMode&&(!he||!he.length))){var _e=X.push(he);_e||(Ce=!0,z.pause())}});for(var ne in z)this[ne]===void 0&&typeof z[ne]=="function"&&(this[ne]=function(he){return function(){return z[he].apply(z,arguments)}}(ne));for(var re=0;re<V.length;re++)z.on(V[re],this.emit.bind(this,V[re]));return this._read=function(he){k("wrapped _read",he),Ce&&(Ce=!1,z.resume())},this},Object.defineProperty(G.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),G._fromList=Ke;function Ke(z,X){if(X.length===0)return null;var de;return X.objectMode?de=X.buffer.shift():!z||z>=X.length?(X.decoder?de=X.buffer.join(""):X.buffer.length===1?de=X.buffer.head.data:de=X.buffer.concat(X.length),X.buffer.clear()):de=ze(z,X.buffer,X.decoder),de}function ze(z,X,de){var Ce;return z<X.head.data.length?(Ce=X.head.data.slice(0,z),X.head.data=X.head.data.slice(z)):z===X.head.data.length?Ce=X.shift():Ce=de?it(z,X):ot(z,X),Ce}function it(z,X){var de=X.head,Ce=1,ne=de.data;for(z-=ne.length;de=de.next;){var re=de.data,he=z>re.length?re.length:z;if(he===re.length?ne+=re:ne+=re.slice(0,z),z-=he,z===0){he===re.length?(++Ce,de.next?X.head=de.next:X.head=X.tail=null):(X.head=de,de.data=re.slice(he));break}++Ce}return X.length-=Ce,ne}function ot(z,X){var de=m.allocUnsafe(z),Ce=X.head,ne=1;for(Ce.data.copy(de),z-=Ce.data.length;Ce=Ce.next;){var re=Ce.data,he=z>re.length?re.length:z;if(re.copy(de,de.length-z,0,he),z-=he,z===0){he===re.length?(++ne,Ce.next?X.head=Ce.next:X.head=X.tail=null):(X.head=Ce,Ce.data=re.slice(he));break}++ne}return X.length-=ne,de}function Ge(z){var X=z._readableState;if(X.length>0)throw new Error('"endReadable()" called on non-empty stream');X.endEmitted||(X.ended=!0,b.nextTick(Ee,X,z))}function Ee(z,X){!z.endEmitted&&z.length===0&&(z.endEmitted=!0,X.readable=!1,X.emit("end"))}function fe(z,X){for(var de=0,Ce=z.length;de<Ce;de++)if(z[de]===X)return de;return-1}}).call(this)}).call(this,s("_process"),typeof Q!="undefined"?Q: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(s,C,A){"use strict";C.exports=g;var u=s("./_stream_duplex"),p=Object.create(s("core-util-is"));p.inherits=s("inherits"),p.inherits(g,u);function b(c,h){var m=this._transformState;m.transforming=!1;var E=m.writecb;if(!E)return this.emit("error",new Error("write callback called multiple times"));m.writechunk=null,m.writecb=null,h!=null&&this.push(h),E(c);var T=this._readableState;T.reading=!1,(T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}function g(c){if(!(this instanceof g))return new g(c);u.call(this,c),this._transformState={afterTransform:b.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,c&&(typeof c.transform=="function"&&(this._transform=c.transform),typeof c.flush=="function"&&(this._flush=c.flush)),this.on("prefinish",y)}function y(){var c=this;typeof this._flush=="function"?this._flush(function(h,m){v(c,h,m)}):v(this,null,null)}g.prototype.push=function(c,h){return this._transformState.needTransform=!1,u.prototype.push.call(this,c,h)},g.prototype._transform=function(c,h,m){throw new Error("_transform() is not implemented")},g.prototype._write=function(c,h,m){var E=this._transformState;if(E.writecb=m,E.writechunk=c,E.writeencoding=h,!E.transforming){var T=this._readableState;(E.needTransform||T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}},g.prototype._read=function(c){var h=this._transformState;h.writechunk!==null&&h.writecb&&!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0},g.prototype._destroy=function(c,h){var m=this;u.prototype._destroy.call(this,c,function(E){h(E),m.emit("close")})};function v(c,h,m){if(h)return c.emit("error",h);if(m!=null&&c.push(m),c._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(c._transformState.transforming)throw new Error("Calling transform done when still transforming");return c.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(s,C,A){(function(u,p,b){(function(){"use strict";var g=s("process-nextick-args");C.exports=P;function y(Pe,De,Ke){this.chunk=Pe,this.encoding=De,this.callback=Ke,this.next=null}function v(Pe){var De=this;this.next=null,this.entry=null,this.finish=function(){Le(De,Pe)}}var c=!u.browser&&["v0.10","v0.9."].indexOf(u.version.slice(0,5))>-1?b:g.nextTick,h;P.WritableState=D;var m=Object.create(s("core-util-is"));m.inherits=s("inherits");var E={deprecate:s("util-deprecate")},T=s("./internal/streams/stream"),I=s("safe-buffer").Buffer,R=p.Uint8Array||function(){};function N(Pe){return I.from(Pe)}function k(Pe){return I.isBuffer(Pe)||Pe instanceof R}var L=s("./internal/streams/destroy");m.inherits(P,T);function H(){}function D(Pe,De){h=h||s("./_stream_duplex"),Pe=Pe||{};var Ke=De instanceof h;this.objectMode=!!Pe.objectMode,Ke&&(this.objectMode=this.objectMode||!!Pe.writableObjectMode);var ze=Pe.highWaterMark,it=Pe.writableHighWaterMark,ot=this.objectMode?16:16*1024;ze||ze===0?this.highWaterMark=ze:Ke&&(it||it===0)?this.highWaterMark=it:this.highWaterMark=ot,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 Ge=Pe.decodeStrings===!1;this.decodeStrings=!Ge,this.defaultEncoding=Pe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ee){se(De,Ee)},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 v(this)}D.prototype.getBuffer=function(){for(var De=this.bufferedRequest,Ke=[];De;)Ke.push(De),De=De.next;return Ke},function(){try{Object.defineProperty(D.prototype,"buffer",{get:E.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Pe){}}();var V;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(V=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(Pe){return V.call(this,Pe)?!0:this!==P?!1:Pe&&Pe._writableState instanceof D}})):V=function(Pe){return Pe instanceof this};function P(Pe){if(h=h||s("./_stream_duplex"),!V.call(P,this)&&!(this instanceof h))return new P(Pe);this._writableState=new D(Pe,this),this.writable=!0,Pe&&(typeof Pe.write=="function"&&(this._write=Pe.write),typeof Pe.writev=="function"&&(this._writev=Pe.writev),typeof Pe.destroy=="function"&&(this._destroy=Pe.destroy),typeof Pe.final=="function"&&(this._final=Pe.final)),T.call(this)}P.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function U(Pe,De){var Ke=new Error("write after end");Pe.emit("error",Ke),g.nextTick(De,Ke)}function G(Pe,De,Ke,ze){var it=!0,ot=!1;return Ke===null?ot=new TypeError("May not write null values to stream"):typeof Ke!="string"&&Ke!==void 0&&!De.objectMode&&(ot=new TypeError("Invalid non-string/buffer chunk")),ot&&(Pe.emit("error",ot),g.nextTick(ze,ot),it=!1),it}P.prototype.write=function(Pe,De,Ke){var ze=this._writableState,it=!1,ot=!ze.objectMode&&k(Pe);return ot&&!I.isBuffer(Pe)&&(Pe=N(Pe)),typeof De=="function"&&(Ke=De,De=null),ot?De="buffer":De||(De=ze.defaultEncoding),typeof Ke!="function"&&(Ke=H),ze.ended?U(this,Ke):(ot||G(this,ze,Pe,Ke))&&(ze.pendingcb++,it=ee(this,ze,ot,Pe,De,Ke)),it},P.prototype.cork=function(){var Pe=this._writableState;Pe.corked++},P.prototype.uncork=function(){var Pe=this._writableState;Pe.corked&&(Pe.corked--,!Pe.writing&&!Pe.corked&&!Pe.finished&&!Pe.bufferProcessing&&Pe.bufferedRequest&&Re(this,Pe))},P.prototype.setDefaultEncoding=function(De){if(typeof De=="string"&&(De=De.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((De+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+De);return this._writableState.defaultEncoding=De,this};function J(Pe,De,Ke){return!Pe.objectMode&&Pe.decodeStrings!==!1&&typeof De=="string"&&(De=I.from(De,Ke)),De}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ee(Pe,De,Ke,ze,it,ot){if(!Ke){var Ge=J(De,ze,it);ze!==Ge&&(Ke=!0,it="buffer",ze=Ge)}var Ee=De.objectMode?1:ze.length;De.length+=Ee;var fe=De.length<De.highWaterMark;if(fe||(De.needDrain=!0),De.writing||De.corked){var z=De.lastBufferedRequest;De.lastBufferedRequest={chunk:ze,encoding:it,isBuf:Ke,callback:ot,next:null},z?z.next=De.lastBufferedRequest:De.bufferedRequest=De.lastBufferedRequest,De.bufferedRequestCount+=1}else ae(Pe,De,!1,Ee,ze,it,ot);return fe}function ae(Pe,De,Ke,ze,it,ot,Ge){De.writelen=ze,De.writecb=Ge,De.writing=!0,De.sync=!0,Ke?Pe._writev(it,De.onwrite):Pe._write(it,ot,De.onwrite),De.sync=!1}function oe(Pe,De,Ke,ze,it){--De.pendingcb,Ke?(g.nextTick(it,ze),g.nextTick(Me,Pe,De),Pe._writableState.errorEmitted=!0,Pe.emit("error",ze)):(it(ze),Pe._writableState.errorEmitted=!0,Pe.emit("error",ze),Me(Pe,De))}function ue(Pe){Pe.writing=!1,Pe.writecb=null,Pe.length-=Pe.writelen,Pe.writelen=0}function se(Pe,De){var Ke=Pe._writableState,ze=Ke.sync,it=Ke.writecb;if(ue(Ke),De)oe(Pe,Ke,ze,De,it);else{var ot=le(Ke);!ot&&!Ke.corked&&!Ke.bufferProcessing&&Ke.bufferedRequest&&Re(Pe,Ke),ze?c(ye,Pe,Ke,ot,it):ye(Pe,Ke,ot,it)}}function ye(Pe,De,Ke,ze){Ke||ve(Pe,De),De.pendingcb--,ze(),Me(Pe,De)}function ve(Pe,De){De.length===0&&De.needDrain&&(De.needDrain=!1,Pe.emit("drain"))}function Re(Pe,De){De.bufferProcessing=!0;var Ke=De.bufferedRequest;if(Pe._writev&&Ke&&Ke.next){var ze=De.bufferedRequestCount,it=new Array(ze),ot=De.corkedRequestsFree;ot.entry=Ke;for(var Ge=0,Ee=!0;Ke;)it[Ge]=Ke,Ke.isBuf||(Ee=!1),Ke=Ke.next,Ge+=1;it.allBuffers=Ee,ae(Pe,De,!0,De.length,it,"",ot.finish),De.pendingcb++,De.lastBufferedRequest=null,ot.next?(De.corkedRequestsFree=ot.next,ot.next=null):De.corkedRequestsFree=new v(De),De.bufferedRequestCount=0}else{for(;Ke;){var fe=Ke.chunk,z=Ke.encoding,X=Ke.callback,de=De.objectMode?1:fe.length;if(ae(Pe,De,!1,de,fe,z,X),Ke=Ke.next,De.bufferedRequestCount--,De.writing)break}Ke===null&&(De.lastBufferedRequest=null)}De.bufferedRequest=Ke,De.bufferProcessing=!1}P.prototype._write=function(Pe,De,Ke){Ke(new Error("_write() is not implemented"))},P.prototype._writev=null,P.prototype.end=function(Pe,De,Ke){var ze=this._writableState;typeof Pe=="function"?(Ke=Pe,Pe=null,De=null):typeof De=="function"&&(Ke=De,De=null),Pe!=null&&this.write(Pe,De),ze.corked&&(ze.corked=1,this.uncork()),!ze.ending&&!ze.finished&&Oe(this,ze,Ke)};function le(Pe){return Pe.ending&&Pe.length===0&&Pe.bufferedRequest===null&&!Pe.finished&&!Pe.writing}function xe(Pe,De){Pe._final(function(Ke){De.pendingcb--,Ke&&Pe.emit("error",Ke),De.prefinished=!0,Pe.emit("prefinish"),Me(Pe,De)})}function pe(Pe,De){!De.prefinished&&!De.finalCalled&&(typeof Pe._final=="function"?(De.pendingcb++,De.finalCalled=!0,g.nextTick(xe,Pe,De)):(De.prefinished=!0,Pe.emit("prefinish")))}function Me(Pe,De){var Ke=le(De);return Ke&&(pe(Pe,De),De.pendingcb===0&&(De.finished=!0,Pe.emit("finish"))),Ke}function Oe(Pe,De,Ke){De.ending=!0,Me(Pe,De),Ke&&(De.finished?g.nextTick(Ke):Pe.once("finish",Ke)),De.ended=!0,Pe.writable=!1}function Le(Pe,De,Ke){var ze=Pe.entry;for(Pe.entry=null;ze;){var it=ze.callback;De.pendingcb--,it(Ke),ze=ze.next}De.corkedRequestsFree?De.corkedRequestsFree.next=Pe:De.corkedRequestsFree=Pe}Object.defineProperty(P.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Pe){this._writableState&&(this._writableState.destroyed=Pe)}}),P.prototype.destroy=L.destroy,P.prototype._undestroy=L.undestroy,P.prototype._destroy=function(Pe,De){this.end(),De(Pe)}}).call(this)}).call(this,s("_process"),typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{},s("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(s,C,A){"use strict";function u(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}var p=s("safe-buffer").Buffer,b=s("util");function g(y,v,c){y.copy(v,c)}C.exports=function(){function y(){u(this,y),this.head=null,this.tail=null,this.length=0}return y.prototype.push=function(c){var h={data:c,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length},y.prototype.unshift=function(c){var h={data:c,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length},y.prototype.shift=function(){if(this.length!==0){var c=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,c}},y.prototype.clear=function(){this.head=this.tail=null,this.length=0},y.prototype.join=function(c){if(this.length===0)return"";for(var h=this.head,m=""+h.data;h=h.next;)m+=c+h.data;return m},y.prototype.concat=function(c){if(this.length===0)return p.alloc(0);if(this.length===1)return this.head.data;for(var h=p.allocUnsafe(c>>>0),m=this.head,E=0;m;)g(m.data,h,E),E+=m.data.length,m=m.next;return h},y}(),b&&b.inspect&&b.inspect.custom&&(C.exports.prototype[b.inspect.custom]=function(){var y=b.inspect({length:this.length});return this.constructor.name+" "+y})},{"safe-buffer":396,util:89}],392:[function(s,C,A){"use strict";var u=s("process-nextick-args");function p(y,v){var c=this,h=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return h||m?(v?v(y):y&&(!this._writableState||!this._writableState.errorEmitted)&&u.nextTick(g,this,y),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(E){!v&&E?(u.nextTick(g,c,E),c._writableState&&(c._writableState.errorEmitted=!0)):v&&v(E)}),this)}function b(){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 g(y,v){y.emit("error",v)}C.exports={destroy:p,undestroy:b}},{"process-nextick-args":380}],393:[function(s,C,A){C.exports=s("events").EventEmitter},{events:344}],394:[function(s,C,A){A=C.exports=s("./lib/_stream_readable.js"),A.Stream=A,A.Readable=A,A.Writable=s("./lib/_stream_writable.js"),A.Duplex=s("./lib/_stream_duplex.js"),A.Transform=s("./lib/_stream_transform.js"),A.PassThrough=s("./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(s,C,A){var u=function(p){"use strict";var b=Object.prototype,g=b.hasOwnProperty,y,v=typeof Symbol=="function"?Symbol:{},c=v.iterator||"@@iterator",h=v.asyncIterator||"@@asyncIterator",m=v.toStringTag||"@@toStringTag";function E(pe,Me,Oe){return Object.defineProperty(pe,Me,{value:Oe,enumerable:!0,configurable:!0,writable:!0}),pe[Me]}try{E({},"")}catch(pe){E=function(Me,Oe,Le){return Me[Oe]=Le}}function T(pe,Me,Oe,Le){var Pe=Me&&Me.prototype instanceof D?Me:D,De=Object.create(Pe.prototype),Ke=new Re(Le||[]);return De._invoke=ue(pe,Oe,Ke),De}p.wrap=T;function I(pe,Me,Oe){try{return{type:"normal",arg:pe.call(Me,Oe)}}catch(Le){return{type:"throw",arg:Le}}}var R="suspendedStart",N="suspendedYield",k="executing",L="completed",H={};function D(){}function V(){}function P(){}var U={};E(U,c,function(){return this});var G=Object.getPrototypeOf,J=G&&G(G(le([])));J&&J!==b&&g.call(J,c)&&(U=J);var ee=P.prototype=D.prototype=Object.create(U);V.prototype=P,E(ee,"constructor",P),E(P,"constructor",V),V.displayName=E(P,m,"GeneratorFunction");function ae(pe){["next","throw","return"].forEach(function(Me){E(pe,Me,function(Oe){return this._invoke(Me,Oe)})})}p.isGeneratorFunction=function(pe){var Me=typeof pe=="function"&&pe.constructor;return Me?Me===V||(Me.displayName||Me.name)==="GeneratorFunction":!1},p.mark=function(pe){return Object.setPrototypeOf?Object.setPrototypeOf(pe,P):(pe.__proto__=P,E(pe,m,"GeneratorFunction")),pe.prototype=Object.create(ee),pe},p.awrap=function(pe){return{__await:pe}};function oe(pe,Me){function Oe(De,Ke,ze,it){var ot=I(pe[De],pe,Ke);if(ot.type==="throw")it(ot.arg);else{var Ge=ot.arg,Ee=Ge.value;return Ee&&typeof Ee=="object"&&g.call(Ee,"__await")?Me.resolve(Ee.__await).then(function(fe){Oe("next",fe,ze,it)},function(fe){Oe("throw",fe,ze,it)}):Me.resolve(Ee).then(function(fe){Ge.value=fe,ze(Ge)},function(fe){return Oe("throw",fe,ze,it)})}}var Le;function Pe(De,Ke){function ze(){return new Me(function(it,ot){Oe(De,Ke,it,ot)})}return Le=Le?Le.then(ze,ze):ze()}this._invoke=Pe}ae(oe.prototype),E(oe.prototype,h,function(){return this}),p.AsyncIterator=oe,p.async=function(pe,Me,Oe,Le,Pe){Pe===void 0&&(Pe=Promise);var De=new oe(T(pe,Me,Oe,Le),Pe);return p.isGeneratorFunction(Me)?De:De.next().then(function(Ke){return Ke.done?Ke.value:De.next()})};function ue(pe,Me,Oe){var Le=R;return function(De,Ke){if(Le===k)throw new Error("Generator is already running");if(Le===L){if(De==="throw")throw Ke;return xe()}for(Oe.method=De,Oe.arg=Ke;;){var ze=Oe.delegate;if(ze){var it=se(ze,Oe);if(it){if(it===H)continue;return it}}if(Oe.method==="next")Oe.sent=Oe._sent=Oe.arg;else if(Oe.method==="throw"){if(Le===R)throw Le=L,Oe.arg;Oe.dispatchException(Oe.arg)}else Oe.method==="return"&&Oe.abrupt("return",Oe.arg);Le=k;var ot=I(pe,Me,Oe);if(ot.type==="normal"){if(Le=Oe.done?L:N,ot.arg===H)continue;return{value:ot.arg,done:Oe.done}}else ot.type==="throw"&&(Le=L,Oe.method="throw",Oe.arg=ot.arg)}}}function se(pe,Me){var Oe=pe.iterator[Me.method];if(Oe===y){if(Me.delegate=null,Me.method==="throw"){if(pe.iterator.return&&(Me.method="return",Me.arg=y,se(pe,Me),Me.method==="throw"))return H;Me.method="throw",Me.arg=new TypeError("The iterator does not provide a 'throw' method")}return H}var Le=I(Oe,pe.iterator,Me.arg);if(Le.type==="throw")return Me.method="throw",Me.arg=Le.arg,Me.delegate=null,H;var Pe=Le.arg;if(!Pe)return Me.method="throw",Me.arg=new TypeError("iterator result is not an object"),Me.delegate=null,H;if(Pe.done)Me[pe.resultName]=Pe.value,Me.next=pe.nextLoc,Me.method!=="return"&&(Me.method="next",Me.arg=y);else return Pe;return Me.delegate=null,H}ae(ee),E(ee,m,"Generator"),E(ee,c,function(){return this}),E(ee,"toString",function(){return"[object Generator]"});function ye(pe){var Me={tryLoc:pe[0]};1 in pe&&(Me.catchLoc=pe[1]),2 in pe&&(Me.finallyLoc=pe[2],Me.afterLoc=pe[3]),this.tryEntries.push(Me)}function ve(pe){var Me=pe.completion||{};Me.type="normal",delete Me.arg,pe.completion=Me}function Re(pe){this.tryEntries=[{tryLoc:"root"}],pe.forEach(ye,this),this.reset(!0)}p.keys=function(pe){var Me=[];for(var Oe in pe)Me.push(Oe);return Me.reverse(),function Le(){for(;Me.length;){var Pe=Me.pop();if(Pe in pe)return Le.value=Pe,Le.done=!1,Le}return Le.done=!0,Le}};function le(pe){if(pe){var Me=pe[c];if(Me)return Me.call(pe);if(typeof pe.next=="function")return pe;if(!isNaN(pe.length)){var Oe=-1,Le=function Pe(){for(;++Oe<pe.length;)if(g.call(pe,Oe))return Pe.value=pe[Oe],Pe.done=!1,Pe;return Pe.value=y,Pe.done=!0,Pe};return Le.next=Le}}return{next:xe}}p.values=le;function xe(){return{value:y,done:!0}}return Re.prototype={constructor:Re,reset:function(pe){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(ve),!pe)for(var Me in this)Me.charAt(0)==="t"&&g.call(this,Me)&&!isNaN(+Me.slice(1))&&(this[Me]=y)},stop:function(){this.done=!0;var pe=this.tryEntries[0],Me=pe.completion;if(Me.type==="throw")throw Me.arg;return this.rval},dispatchException:function(pe){if(this.done)throw pe;var Me=this;function Oe(it,ot){return De.type="throw",De.arg=pe,Me.next=it,ot&&(Me.method="next",Me.arg=y),!!ot}for(var Le=this.tryEntries.length-1;Le>=0;--Le){var Pe=this.tryEntries[Le],De=Pe.completion;if(Pe.tryLoc==="root")return Oe("end");if(Pe.tryLoc<=this.prev){var Ke=g.call(Pe,"catchLoc"),ze=g.call(Pe,"finallyLoc");if(Ke&&ze){if(this.prev<Pe.catchLoc)return Oe(Pe.catchLoc,!0);if(this.prev<Pe.finallyLoc)return Oe(Pe.finallyLoc)}else if(Ke){if(this.prev<Pe.catchLoc)return Oe(Pe.catchLoc,!0)}else if(ze){if(this.prev<Pe.finallyLoc)return Oe(Pe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(pe,Me){for(var Oe=this.tryEntries.length-1;Oe>=0;--Oe){var Le=this.tryEntries[Oe];if(Le.tryLoc<=this.prev&&g.call(Le,"finallyLoc")&&this.prev<Le.finallyLoc){var Pe=Le;break}}Pe&&(pe==="break"||pe==="continue")&&Pe.tryLoc<=Me&&Me<=Pe.finallyLoc&&(Pe=null);var De=Pe?Pe.completion:{};return De.type=pe,De.arg=Me,Pe?(this.method="next",this.next=Pe.finallyLoc,H):this.complete(De)},complete:function(pe,Me){if(pe.type==="throw")throw pe.arg;return pe.type==="break"||pe.type==="continue"?this.next=pe.arg:pe.type==="return"?(this.rval=this.arg=pe.arg,this.method="return",this.next="end"):pe.type==="normal"&&Me&&(this.next=Me),H},finish:function(pe){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Oe=this.tryEntries[Me];if(Oe.finallyLoc===pe)return this.complete(Oe.completion,Oe.afterLoc),ve(Oe),H}},catch:function(pe){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Oe=this.tryEntries[Me];if(Oe.tryLoc===pe){var Le=Oe.completion;if(Le.type==="throw"){var Pe=Le.arg;ve(Oe)}return Pe}}throw new Error("illegal catch attempt")},delegateYield:function(pe,Me,Oe){return this.delegate={iterator:le(pe),resultName:Me,nextLoc:Oe},this.method==="next"&&(this.arg=y),H}},p}(typeof C=="object"?C.exports:{});try{regeneratorRuntime=u}catch(p){typeof globalThis=="object"?globalThis.regeneratorRuntime=u:Function("r","regeneratorRuntime = r")(u)}},{}],396:[function(s,C,A){var u=s("buffer"),p=u.Buffer;function b(y,v){for(var c in y)v[c]=y[c]}p.from&&p.alloc&&p.allocUnsafe&&p.allocUnsafeSlow?C.exports=u:(b(u,A),A.Buffer=g);function g(y,v,c){return p(y,v,c)}b(p,g),g.from=function(y,v,c){if(typeof y=="number")throw new TypeError("Argument must not be a number");return p(y,v,c)},g.alloc=function(y,v,c){if(typeof y!="number")throw new TypeError("Argument must be a number");var h=p(y);return v!==void 0?typeof c=="string"?h.fill(v,c):h.fill(v):h.fill(0),h},g.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return p(y)},g.allocUnsafeSlow=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return u.SlowBuffer(y)}},{buffer:90}],397:[function(s,C,A){(function(u){(function(){(function(p){p.parser=function(Ge,Ee){return new g(Ge,Ee)},p.SAXParser=g,p.SAXStream=T,p.createStream=E,p.MAX_BUFFER_LENGTH=64*1024;var b=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];p.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function g(Ge,Ee){if(!(this instanceof g))return new g(Ge,Ee);var fe=this;v(fe),fe.q=fe.c="",fe.bufferCheckPosition=p.MAX_BUFFER_LENGTH,fe.opt=Ee||{},fe.opt.lowercase=fe.opt.lowercase||fe.opt.lowercasetags,fe.looseCase=fe.opt.lowercase?"toLowerCase":"toUpperCase",fe.tags=[],fe.closed=fe.closedRoot=fe.sawRoot=!1,fe.tag=fe.error=null,fe.strict=!!Ge,fe.noscript=!!(Ge||fe.opt.noscript),fe.state=oe.BEGIN,fe.strictEntities=fe.opt.strictEntities,fe.ENTITIES=fe.strictEntities?Object.create(p.XML_ENTITIES):Object.create(p.ENTITIES),fe.attribList=[],fe.opt.xmlns&&(fe.ns=Object.create(L)),fe.trackPosition=fe.opt.position!==!1,fe.trackPosition&&(fe.position=fe.line=fe.column=0),se(fe,"onready")}Object.create||(Object.create=function(Ge){function Ee(){}Ee.prototype=Ge;var fe=new Ee;return fe}),Object.keys||(Object.keys=function(Ge){var Ee=[];for(var fe in Ge)Ge.hasOwnProperty(fe)&&Ee.push(fe);return Ee});function y(Ge){for(var Ee=Math.max(p.MAX_BUFFER_LENGTH,10),fe=0,z=0,X=b.length;z<X;z++){var de=Ge[b[z]].length;if(de>Ee)switch(b[z]){case"textNode":ve(Ge);break;case"cdata":ye(Ge,"oncdata",Ge.cdata),Ge.cdata="";break;case"script":ye(Ge,"onscript",Ge.script),Ge.script="";break;default:le(Ge,"Max buffer length exceeded: "+b[z])}fe=Math.max(fe,de)}var Ce=p.MAX_BUFFER_LENGTH-fe;Ge.bufferCheckPosition=Ce+Ge.position}function v(Ge){for(var Ee=0,fe=b.length;Ee<fe;Ee++)Ge[b[Ee]]=""}function c(Ge){ve(Ge),Ge.cdata!==""&&(ye(Ge,"oncdata",Ge.cdata),Ge.cdata=""),Ge.script!==""&&(ye(Ge,"onscript",Ge.script),Ge.script="")}g.prototype={end:function(){xe(this)},write:ot,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){c(this)}};var h;try{h=s("stream").Stream}catch(Ge){h=function(){}}var m=p.EVENTS.filter(function(Ge){return Ge!=="error"&&Ge!=="end"});function E(Ge,Ee){return new T(Ge,Ee)}function T(Ge,Ee){if(!(this instanceof T))return new T(Ge,Ee);h.apply(this),this._parser=new g(Ge,Ee),this.writable=!0,this.readable=!0;var fe=this;this._parser.onend=function(){fe.emit("end")},this._parser.onerror=function(z){fe.emit("error",z),fe._parser.error=null},this._decoder=null,m.forEach(function(z){Object.defineProperty(fe,"on"+z,{get:function(){return fe._parser["on"+z]},set:function(X){if(!X)return fe.removeAllListeners(z),fe._parser["on"+z]=X,X;fe.on(z,X)},enumerable:!0,configurable:!1})})}T.prototype=Object.create(h.prototype,{constructor:{value:T}}),T.prototype.write=function(Ge){if(typeof u=="function"&&typeof u.isBuffer=="function"&&u.isBuffer(Ge)){if(!this._decoder){var Ee=s("string_decoder").StringDecoder;this._decoder=new Ee("utf8")}Ge=this._decoder.write(Ge)}return this._parser.write(Ge.toString()),this.emit("data",Ge),!0},T.prototype.end=function(Ge){return Ge&&Ge.length&&this.write(Ge),this._parser.end(),!0},T.prototype.on=function(Ge,Ee){var fe=this;return!fe._parser["on"+Ge]&&m.indexOf(Ge)!==-1&&(fe._parser["on"+Ge]=function(){var z=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);z.splice(0,0,Ge),fe.emit.apply(fe,z)}),h.prototype.on.call(fe,Ge,Ee)};var I="[CDATA[",R="DOCTYPE",N="http://www.w3.org/XML/1998/namespace",k="http://www.w3.org/2000/xmlns/",L={xml:N,xmlns:k},H=/[:_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]/,D=/[:_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-]/,V=/[#:_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]/,P=/[#:_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 U(Ge){return Ge===" "||Ge===`
`||Ge==="\r"||Ge===" "}function G(Ge){return Ge==='"'||Ge==="'"}function J(Ge){return Ge===">"||U(Ge)}function ee(Ge,Ee){return Ge.test(Ee)}function ae(Ge,Ee){return!ee(Ge,Ee)}var oe=0;p.STATE={BEGIN:oe++,BEGIN_WHITESPACE:oe++,TEXT:oe++,TEXT_ENTITY:oe++,OPEN_WAKA:oe++,SGML_DECL:oe++,SGML_DECL_QUOTED:oe++,DOCTYPE:oe++,DOCTYPE_QUOTED:oe++,DOCTYPE_DTD:oe++,DOCTYPE_DTD_QUOTED:oe++,COMMENT_STARTING:oe++,COMMENT:oe++,COMMENT_ENDING:oe++,COMMENT_ENDED:oe++,CDATA:oe++,CDATA_ENDING:oe++,CDATA_ENDING_2:oe++,PROC_INST:oe++,PROC_INST_BODY:oe++,PROC_INST_ENDING:oe++,OPEN_TAG:oe++,OPEN_TAG_SLASH:oe++,ATTRIB:oe++,ATTRIB_NAME:oe++,ATTRIB_NAME_SAW_WHITE:oe++,ATTRIB_VALUE:oe++,ATTRIB_VALUE_QUOTED:oe++,ATTRIB_VALUE_CLOSED:oe++,ATTRIB_VALUE_UNQUOTED:oe++,ATTRIB_VALUE_ENTITY_Q:oe++,ATTRIB_VALUE_ENTITY_U:oe++,CLOSE_TAG:oe++,CLOSE_TAG_SAW_WHITE:oe++,SCRIPT:oe++,SCRIPT_ENDING:oe++},p.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},p.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(p.ENTITIES).forEach(function(Ge){var Ee=p.ENTITIES[Ge],fe=typeof Ee=="number"?String.fromCharCode(Ee):Ee;p.ENTITIES[Ge]=fe});for(var ue in p.STATE)p.STATE[p.STATE[ue]]=ue;oe=p.STATE;function se(Ge,Ee,fe){Ge[Ee]&&Ge[Ee](fe)}function ye(Ge,Ee,fe){Ge.textNode&&ve(Ge),se(Ge,Ee,fe)}function ve(Ge){Ge.textNode=Re(Ge.opt,Ge.textNode),Ge.textNode&&se(Ge,"ontext",Ge.textNode),Ge.textNode=""}function Re(Ge,Ee){return Ge.trim&&(Ee=Ee.trim()),Ge.normalize&&(Ee=Ee.replace(/\s+/g," ")),Ee}function le(Ge,Ee){return ve(Ge),Ge.trackPosition&&(Ee+=`
Line: `+Ge.line+`
Column: `+Ge.column+`
Char: `+Ge.c),Ee=new Error(Ee),Ge.error=Ee,se(Ge,"onerror",Ee),Ge}function xe(Ge){return Ge.sawRoot&&!Ge.closedRoot&&pe(Ge,"Unclosed root tag"),Ge.state!==oe.BEGIN&&Ge.state!==oe.BEGIN_WHITESPACE&&Ge.state!==oe.TEXT&&le(Ge,"Unexpected end"),ve(Ge),Ge.c="",Ge.closed=!0,se(Ge,"onend"),g.call(Ge,Ge.strict,Ge.opt),Ge}function pe(Ge,Ee){if(typeof Ge!="object"||!(Ge instanceof g))throw new Error("bad call to strictFail");Ge.strict&&le(Ge,Ee)}function Me(Ge){Ge.strict||(Ge.tagName=Ge.tagName[Ge.looseCase]());var Ee=Ge.tags[Ge.tags.length-1]||Ge,fe=Ge.tag={name:Ge.tagName,attributes:{}};Ge.opt.xmlns&&(fe.ns=Ee.ns),Ge.attribList.length=0,ye(Ge,"onopentagstart",fe)}function Oe(Ge,Ee){var fe=Ge.indexOf(":"),z=fe<0?["",Ge]:Ge.split(":"),X=z[0],de=z[1];return Ee&&Ge==="xmlns"&&(X="xmlns",de=""),{prefix:X,local:de}}function Le(Ge){if(Ge.strict||(Ge.attribName=Ge.attribName[Ge.looseCase]()),Ge.attribList.indexOf(Ge.attribName)!==-1||Ge.tag.attributes.hasOwnProperty(Ge.attribName)){Ge.attribName=Ge.attribValue="";return}if(Ge.opt.xmlns){var Ee=Oe(Ge.attribName,!0),fe=Ee.prefix,z=Ee.local;if(fe==="xmlns")if(z==="xml"&&Ge.attribValue!==N)pe(Ge,"xml: prefix must be bound to "+N+`
Actual: `+Ge.attribValue);else if(z==="xmlns"&&Ge.attribValue!==k)pe(Ge,"xmlns: prefix must be bound to "+k+`
Actual: `+Ge.attribValue);else{var X=Ge.tag,de=Ge.tags[Ge.tags.length-1]||Ge;X.ns===de.ns&&(X.ns=Object.create(de.ns)),X.ns[z]=Ge.attribValue}Ge.attribList.push([Ge.attribName,Ge.attribValue])}else Ge.tag.attributes[Ge.attribName]=Ge.attribValue,ye(Ge,"onattribute",{name:Ge.attribName,value:Ge.attribValue});Ge.attribName=Ge.attribValue=""}function Pe(Ge,Ee){if(Ge.opt.xmlns){var fe=Ge.tag,z=Oe(Ge.tagName);fe.prefix=z.prefix,fe.local=z.local,fe.uri=fe.ns[z.prefix]||"",fe.prefix&&!fe.uri&&(pe(Ge,"Unbound namespace prefix: "+JSON.stringify(Ge.tagName)),fe.uri=z.prefix);var X=Ge.tags[Ge.tags.length-1]||Ge;fe.ns&&X.ns!==fe.ns&&Object.keys(fe.ns).forEach(function(dt){ye(Ge,"onopennamespace",{prefix:dt,uri:fe.ns[dt]})});for(var de=0,Ce=Ge.attribList.length;de<Ce;de++){var ne=Ge.attribList[de],re=ne[0],he=ne[1],_e=Oe(re,!0),Be=_e.prefix,Ue=_e.local,rt=Be===""?"":fe.ns[Be]||"",et={name:re,value:he,prefix:Be,local:Ue,uri:rt};Be&&Be!=="xmlns"&&!rt&&(pe(Ge,"Unbound namespace prefix: "+JSON.stringify(Be)),et.uri=Be),Ge.tag.attributes[re]=et,ye(Ge,"onattribute",et)}Ge.attribList.length=0}Ge.tag.isSelfClosing=!!Ee,Ge.sawRoot=!0,Ge.tags.push(Ge.tag),ye(Ge,"onopentag",Ge.tag),Ee||(!Ge.noscript&&Ge.tagName.toLowerCase()==="script"?Ge.state=oe.SCRIPT:Ge.state=oe.TEXT,Ge.tag=null,Ge.tagName=""),Ge.attribName=Ge.attribValue="",Ge.attribList.length=0}function De(Ge){if(!Ge.tagName){pe(Ge,"Weird empty close tag."),Ge.textNode+="</>",Ge.state=oe.TEXT;return}if(Ge.script){if(Ge.tagName!=="script"){Ge.script+="</"+Ge.tagName+">",Ge.tagName="",Ge.state=oe.SCRIPT;return}ye(Ge,"onscript",Ge.script),Ge.script=""}var Ee=Ge.tags.length,fe=Ge.tagName;Ge.strict||(fe=fe[Ge.looseCase]());for(var z=fe;Ee--;){var X=Ge.tags[Ee];if(X.name!==z)pe(Ge,"Unexpected close tag");else break}if(Ee<0){pe(Ge,"Unmatched closing tag: "+Ge.tagName),Ge.textNode+="</"+Ge.tagName+">",Ge.state=oe.TEXT;return}Ge.tagName=fe;for(var de=Ge.tags.length;de-- >Ee;){var Ce=Ge.tag=Ge.tags.pop();Ge.tagName=Ge.tag.name,ye(Ge,"onclosetag",Ge.tagName);var ne={};for(var re in Ce.ns)ne[re]=Ce.ns[re];var he=Ge.tags[Ge.tags.length-1]||Ge;Ge.opt.xmlns&&Ce.ns!==he.ns&&Object.keys(Ce.ns).forEach(function(_e){var Be=Ce.ns[_e];ye(Ge,"onclosenamespace",{prefix:_e,uri:Be})})}Ee===0&&(Ge.closedRoot=!0),Ge.tagName=Ge.attribValue=Ge.attribName="",Ge.attribList.length=0,Ge.state=oe.TEXT}function Ke(Ge){var Ee=Ge.entity,fe=Ee.toLowerCase(),z,X="";return Ge.ENTITIES[Ee]?Ge.ENTITIES[Ee]:Ge.ENTITIES[fe]?Ge.ENTITIES[fe]:(Ee=fe,Ee.charAt(0)==="#"&&(Ee.charAt(1)==="x"?(Ee=Ee.slice(2),z=parseInt(Ee,16),X=z.toString(16)):(Ee=Ee.slice(1),z=parseInt(Ee,10),X=z.toString(10))),Ee=Ee.replace(/^0+/,""),isNaN(z)||X.toLowerCase()!==Ee?(pe(Ge,"Invalid character entity"),"&"+Ge.entity+";"):String.fromCodePoint(z))}function ze(Ge,Ee){Ee==="<"?(Ge.state=oe.OPEN_WAKA,Ge.startTagPosition=Ge.position):U(Ee)||(pe(Ge,"Non-whitespace before first tag."),Ge.textNode=Ee,Ge.state=oe.TEXT)}function it(Ge,Ee){var fe="";return Ee<Ge.length&&(fe=Ge.charAt(Ee)),fe}function ot(Ge){var Ee=this;if(this.error)throw this.error;if(Ee.closed)return le(Ee,"Cannot write after close. Assign an onready handler.");if(Ge===null)return xe(Ee);typeof Ge=="object"&&(Ge=Ge.toString());for(var fe=0,z="";z=it(Ge,fe++),Ee.c=z,!!z;)switch(Ee.trackPosition&&(Ee.position++,z===`
`?(Ee.line++,Ee.column=0):Ee.column++),Ee.state){case oe.BEGIN:if(Ee.state=oe.BEGIN_WHITESPACE,z==="\uFEFF")continue;ze(Ee,z);continue;case oe.BEGIN_WHITESPACE:ze(Ee,z);continue;case oe.TEXT:if(Ee.sawRoot&&!Ee.closedRoot){for(var X=fe-1;z&&z!=="<"&&z!=="&";)z=it(Ge,fe++),z&&Ee.trackPosition&&(Ee.position++,z===`
`?(Ee.line++,Ee.column=0):Ee.column++);Ee.textNode+=Ge.substring(X,fe-1)}z==="<"&&!(Ee.sawRoot&&Ee.closedRoot&&!Ee.strict)?(Ee.state=oe.OPEN_WAKA,Ee.startTagPosition=Ee.position):(!U(z)&&(!Ee.sawRoot||Ee.closedRoot)&&pe(Ee,"Text data outside of root node."),z==="&"?Ee.state=oe.TEXT_ENTITY:Ee.textNode+=z);continue;case oe.SCRIPT:z==="<"?Ee.state=oe.SCRIPT_ENDING:Ee.script+=z;continue;case oe.SCRIPT_ENDING:z==="/"?Ee.state=oe.CLOSE_TAG:(Ee.script+="<"+z,Ee.state=oe.SCRIPT);continue;case oe.OPEN_WAKA:if(z==="!")Ee.state=oe.SGML_DECL,Ee.sgmlDecl="";else if(!U(z))if(ee(H,z))Ee.state=oe.OPEN_TAG,Ee.tagName=z;else if(z==="/")Ee.state=oe.CLOSE_TAG,Ee.tagName="";else if(z==="?")Ee.state=oe.PROC_INST,Ee.procInstName=Ee.procInstBody="";else{if(pe(Ee,"Unencoded <"),Ee.startTagPosition+1<Ee.position){var de=Ee.position-Ee.startTagPosition;z=new Array(de).join(" ")+z}Ee.textNode+="<"+z,Ee.state=oe.TEXT}continue;case oe.SGML_DECL:(Ee.sgmlDecl+z).toUpperCase()===I?(ye(Ee,"onopencdata"),Ee.state=oe.CDATA,Ee.sgmlDecl="",Ee.cdata=""):Ee.sgmlDecl+z==="--"?(Ee.state=oe.COMMENT,Ee.comment="",Ee.sgmlDecl=""):(Ee.sgmlDecl+z).toUpperCase()===R?(Ee.state=oe.DOCTYPE,(Ee.doctype||Ee.sawRoot)&&pe(Ee,"Inappropriately located doctype declaration"),Ee.doctype="",Ee.sgmlDecl=""):z===">"?(ye(Ee,"onsgmldeclaration",Ee.sgmlDecl),Ee.sgmlDecl="",Ee.state=oe.TEXT):(G(z)&&(Ee.state=oe.SGML_DECL_QUOTED),Ee.sgmlDecl+=z);continue;case oe.SGML_DECL_QUOTED:z===Ee.q&&(Ee.state=oe.SGML_DECL,Ee.q=""),Ee.sgmlDecl+=z;continue;case oe.DOCTYPE:z===">"?(Ee.state=oe.TEXT,ye(Ee,"ondoctype",Ee.doctype),Ee.doctype=!0):(Ee.doctype+=z,z==="["?Ee.state=oe.DOCTYPE_DTD:G(z)&&(Ee.state=oe.DOCTYPE_QUOTED,Ee.q=z));continue;case oe.DOCTYPE_QUOTED:Ee.doctype+=z,z===Ee.q&&(Ee.q="",Ee.state=oe.DOCTYPE);continue;case oe.DOCTYPE_DTD:Ee.doctype+=z,z==="]"?Ee.state=oe.DOCTYPE:G(z)&&(Ee.state=oe.DOCTYPE_DTD_QUOTED,Ee.q=z);continue;case oe.DOCTYPE_DTD_QUOTED:Ee.doctype+=z,z===Ee.q&&(Ee.state=oe.DOCTYPE_DTD,Ee.q="");continue;case oe.COMMENT:z==="-"?Ee.state=oe.COMMENT_ENDING:Ee.comment+=z;continue;case oe.COMMENT_ENDING:z==="-"?(Ee.state=oe.COMMENT_ENDED,Ee.comment=Re(Ee.opt,Ee.comment),Ee.comment&&ye(Ee,"oncomment",Ee.comment),Ee.comment=""):(Ee.comment+="-"+z,Ee.state=oe.COMMENT);continue;case oe.COMMENT_ENDED:z!==">"?(pe(Ee,"Malformed comment"),Ee.comment+="--"+z,Ee.state=oe.COMMENT):Ee.state=oe.TEXT;continue;case oe.CDATA:z==="]"?Ee.state=oe.CDATA_ENDING:Ee.cdata+=z;continue;case oe.CDATA_ENDING:z==="]"?Ee.state=oe.CDATA_ENDING_2:(Ee.cdata+="]"+z,Ee.state=oe.CDATA);continue;case oe.CDATA_ENDING_2:z===">"?(Ee.cdata&&ye(Ee,"oncdata",Ee.cdata),ye(Ee,"onclosecdata"),Ee.cdata="",Ee.state=oe.TEXT):z==="]"?Ee.cdata+="]":(Ee.cdata+="]]"+z,Ee.state=oe.CDATA);continue;case oe.PROC_INST:z==="?"?Ee.state=oe.PROC_INST_ENDING:U(z)?Ee.state=oe.PROC_INST_BODY:Ee.procInstName+=z;continue;case oe.PROC_INST_BODY:if(!Ee.procInstBody&&U(z))continue;z==="?"?Ee.state=oe.PROC_INST_ENDING:Ee.procInstBody+=z;continue;case oe.PROC_INST_ENDING:z===">"?(ye(Ee,"onprocessinginstruction",{name:Ee.procInstName,body:Ee.procInstBody}),Ee.procInstName=Ee.procInstBody="",Ee.state=oe.TEXT):(Ee.procInstBody+="?"+z,Ee.state=oe.PROC_INST_BODY);continue;case oe.OPEN_TAG:ee(D,z)?Ee.tagName+=z:(Me(Ee),z===">"?Pe(Ee):z==="/"?Ee.state=oe.OPEN_TAG_SLASH:(U(z)||pe(Ee,"Invalid character in tag name"),Ee.state=oe.ATTRIB));continue;case oe.OPEN_TAG_SLASH:z===">"?(Pe(Ee,!0),De(Ee)):(pe(Ee,"Forward-slash in opening tag not followed by >"),Ee.state=oe.ATTRIB);continue;case oe.ATTRIB:if(U(z))continue;z===">"?Pe(Ee):z==="/"?Ee.state=oe.OPEN_TAG_SLASH:ee(H,z)?(Ee.attribName=z,Ee.attribValue="",Ee.state=oe.ATTRIB_NAME):pe(Ee,"Invalid attribute name");continue;case oe.ATTRIB_NAME:z==="="?Ee.state=oe.ATTRIB_VALUE:z===">"?(pe(Ee,"Attribute without value"),Ee.attribValue=Ee.attribName,Le(Ee),Pe(Ee)):U(z)?Ee.state=oe.ATTRIB_NAME_SAW_WHITE:ee(D,z)?Ee.attribName+=z:pe(Ee,"Invalid attribute name");continue;case oe.ATTRIB_NAME_SAW_WHITE:if(z==="=")Ee.state=oe.ATTRIB_VALUE;else{if(U(z))continue;pe(Ee,"Attribute without value"),Ee.tag.attributes[Ee.attribName]="",Ee.attribValue="",ye(Ee,"onattribute",{name:Ee.attribName,value:""}),Ee.attribName="",z===">"?Pe(Ee):ee(H,z)?(Ee.attribName=z,Ee.state=oe.ATTRIB_NAME):(pe(Ee,"Invalid attribute name"),Ee.state=oe.ATTRIB)}continue;case oe.ATTRIB_VALUE:if(U(z))continue;G(z)?(Ee.q=z,Ee.state=oe.ATTRIB_VALUE_QUOTED):(pe(Ee,"Unquoted attribute value"),Ee.state=oe.ATTRIB_VALUE_UNQUOTED,Ee.attribValue=z);continue;case oe.ATTRIB_VALUE_QUOTED:if(z!==Ee.q){z==="&"?Ee.state=oe.ATTRIB_VALUE_ENTITY_Q:Ee.attribValue+=z;continue}Le(Ee),Ee.q="",Ee.state=oe.ATTRIB_VALUE_CLOSED;continue;case oe.ATTRIB_VALUE_CLOSED:U(z)?Ee.state=oe.ATTRIB:z===">"?Pe(Ee):z==="/"?Ee.state=oe.OPEN_TAG_SLASH:ee(H,z)?(pe(Ee,"No whitespace between attributes"),Ee.attribName=z,Ee.attribValue="",Ee.state=oe.ATTRIB_NAME):pe(Ee,"Invalid attribute name");continue;case oe.ATTRIB_VALUE_UNQUOTED:if(!J(z)){z==="&"?Ee.state=oe.ATTRIB_VALUE_ENTITY_U:Ee.attribValue+=z;continue}Le(Ee),z===">"?Pe(Ee):Ee.state=oe.ATTRIB;continue;case oe.CLOSE_TAG:if(Ee.tagName)z===">"?De(Ee):ee(D,z)?Ee.tagName+=z:Ee.script?(Ee.script+="</"+Ee.tagName,Ee.tagName="",Ee.state=oe.SCRIPT):(U(z)||pe(Ee,"Invalid tagname in closing tag"),Ee.state=oe.CLOSE_TAG_SAW_WHITE);else{if(U(z))continue;ae(H,z)?Ee.script?(Ee.script+="</"+z,Ee.state=oe.SCRIPT):pe(Ee,"Invalid tagname in closing tag."):Ee.tagName=z}continue;case oe.CLOSE_TAG_SAW_WHITE:if(U(z))continue;z===">"?De(Ee):pe(Ee,"Invalid characters in closing tag");continue;case oe.TEXT_ENTITY:case oe.ATTRIB_VALUE_ENTITY_Q:case oe.ATTRIB_VALUE_ENTITY_U:var Ce,ne;switch(Ee.state){case oe.TEXT_ENTITY:Ce=oe.TEXT,ne="textNode";break;case oe.ATTRIB_VALUE_ENTITY_Q:Ce=oe.ATTRIB_VALUE_QUOTED,ne="attribValue";break;case oe.ATTRIB_VALUE_ENTITY_U:Ce=oe.ATTRIB_VALUE_UNQUOTED,ne="attribValue";break}z===";"?(Ee[ne]+=Ke(Ee),Ee.entity="",Ee.state=Ce):ee(Ee.entity.length?P:V,z)?Ee.entity+=z:(pe(Ee,"Invalid character in entity name"),Ee[ne]+="&"+Ee.entity+z,Ee.entity="",Ee.state=Ce);continue;default:throw new Error(Ee,"Unknown state: "+Ee.state)}return Ee.position>=Ee.bufferCheckPosition&&y(Ee),Ee}String.fromCodePoint||function(){var Ge=String.fromCharCode,Ee=Math.floor,fe=function(){var z=16384,X=[],de,Ce,ne=-1,re=arguments.length;if(!re)return"";for(var he="";++ne<re;){var _e=Number(arguments[ne]);if(!isFinite(_e)||_e<0||_e>1114111||Ee(_e)!==_e)throw RangeError("Invalid code point: "+_e);_e<=65535?X.push(_e):(_e-=65536,de=(_e>>10)+55296,Ce=_e%1024+56320,X.push(de,Ce)),(ne+1===re||X.length>z)&&(he+=Ge.apply(null,X),X.length=0)}return he};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:fe,configurable:!0,writable:!0}):String.fromCodePoint=fe}()})(typeof A=="undefined"?this.sax={}:A)}).call(this)}).call(this,s("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(s,C,A){C.exports=b;var u=s("events").EventEmitter,p=s("inherits");p(b,u),b.Readable=s("readable-stream/lib/_stream_readable.js"),b.Writable=s("readable-stream/lib/_stream_writable.js"),b.Duplex=s("readable-stream/lib/_stream_duplex.js"),b.Transform=s("readable-stream/lib/_stream_transform.js"),b.PassThrough=s("readable-stream/lib/_stream_passthrough.js"),b.finished=s("readable-stream/lib/internal/streams/end-of-stream.js"),b.pipeline=s("readable-stream/lib/internal/streams/pipeline.js"),b.Stream=b;function b(){u.call(this)}b.prototype.pipe=function(g,y){var v=this;function c(N){g.writable&&g.write(N)===!1&&v.pause&&v.pause()}v.on("data",c);function h(){v.readable&&v.resume&&v.resume()}g.on("drain",h),!g._isStdio&&(!y||y.end!==!1)&&(v.on("end",E),v.on("close",T));var m=!1;function E(){m||(m=!0,g.end())}function T(){m||(m=!0,typeof g.destroy=="function"&&g.destroy())}function I(N){if(R(),u.listenerCount(this,"error")===0)throw N}v.on("error",I),g.on("error",I);function R(){v.removeListener("data",c),g.removeListener("drain",h),v.removeListener("end",E),v.removeListener("close",T),v.removeListener("error",I),g.removeListener("error",I),v.removeListener("end",R),v.removeListener("close",R),g.removeListener("close",R)}return v.on("end",R),v.on("close",R),g.on("close",R),g.emit("pipe",v),g}},{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(s,C,A){"use strict";function u(h,m){h.prototype=Object.create(m.prototype),h.prototype.constructor=h,h.__proto__=m}var p={};function b(h,m,E){E||(E=Error);function T(R,N,k){return typeof m=="string"?m:m(R,N,k)}var I=function(R){u(N,R);function N(k,L,H){return R.call(this,T(k,L,H))||this}return N}(E);I.prototype.name=E.name,I.prototype.code=h,p[h]=I}function g(h,m){if(Array.isArray(h)){var E=h.length;return h=h.map(function(T){return String(T)}),E>2?"one of ".concat(m," ").concat(h.slice(0,E-1).join(", "),", or ")+h[E-1]:E===2?"one of ".concat(m," ").concat(h[0]," or ").concat(h[1]):"of ".concat(m," ").concat(h[0])}else return"of ".concat(m," ").concat(String(h))}function y(h,m,E){return h.substr(!E||E<0?0:+E,m.length)===m}function v(h,m,E){return(E===void 0||E>h.length)&&(E=h.length),h.substring(E-m.length,E)===m}function c(h,m,E){return typeof E!="number"&&(E=0),E+m.length>h.length?!1:h.indexOf(m,E)!==-1}b("ERR_INVALID_OPT_VALUE",function(h,m){return'The value "'+m+'" is invalid for option "'+h+'"'},TypeError),b("ERR_INVALID_ARG_TYPE",function(h,m,E){var T;typeof m=="string"&&y(m,"not ")?(T="must not be",m=m.replace(/^not /,"")):T="must be";var I;if(v(h," argument"))I="The ".concat(h," ").concat(T," ").concat(g(m,"type"));else{var R=c(h,".")?"property":"argument";I='The "'.concat(h,'" ').concat(R," ").concat(T," ").concat(g(m,"type"))}return I+=". Received type ".concat(typeof E),I},TypeError),b("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),b("ERR_METHOD_NOT_IMPLEMENTED",function(h){return"The "+h+" method is not implemented"}),b("ERR_STREAM_PREMATURE_CLOSE","Premature close"),b("ERR_STREAM_DESTROYED",function(h){return"Cannot call "+h+" after a stream was destroyed"}),b("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),b("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),b("ERR_STREAM_WRITE_AFTER_END","write after end"),b("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),b("ERR_UNKNOWN_ENCODING",function(h){return"Unknown encoding: "+h},TypeError),b("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),C.exports.codes=p},{}],400:[function(s,C,A){(function(u){(function(){"use strict";var p=Object.keys||function(T){var I=[];for(var R in T)I.push(R);return I};C.exports=h;var b=s("./_stream_readable"),g=s("./_stream_writable");s("inherits")(h,b);for(var y=p(g.prototype),v=0;v<y.length;v++){var c=y[v];h.prototype[c]||(h.prototype[c]=g.prototype[c])}function h(T){if(!(this instanceof h))return new h(T);b.call(this,T),g.call(this,T),this.allowHalfOpen=!0,T&&(T.readable===!1&&(this.readable=!1),T.writable===!1&&(this.writable=!1),T.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",m)))}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function m(){this._writableState.ended||u.nextTick(E,this)}function E(T){T.end()}Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(I){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=I,this._writableState.destroyed=I)}})}).call(this)}).call(this,s("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(s,C,A){"use strict";C.exports=p;var u=s("./_stream_transform");s("inherits")(p,u);function p(b){if(!(this instanceof p))return new p(b);u.call(this,b)}p.prototype._transform=function(b,g,y){y(null,b)}},{"./_stream_transform":403,inherits:364}],402:[function(s,C,A){(function(u,p){(function(){"use strict";C.exports=ye;var b;ye.ReadableState=se;var g=s("events").EventEmitter,y=function(re,he){return re.listeners(he).length},v=s("./internal/streams/stream"),c=s("buffer").Buffer,h=(typeof p!="undefined"?p:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function m(ne){return c.from(ne)}function E(ne){return c.isBuffer(ne)||ne instanceof h}var T=s("util"),I;T&&T.debuglog?I=T.debuglog("stream"):I=function(){};var R=s("./internal/streams/buffer_list"),N=s("./internal/streams/destroy"),k=s("./internal/streams/state"),L=k.getHighWaterMark,H=s("../errors").codes,D=H.ERR_INVALID_ARG_TYPE,V=H.ERR_STREAM_PUSH_AFTER_EOF,P=H.ERR_METHOD_NOT_IMPLEMENTED,U=H.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,G,J,ee;s("inherits")(ye,v);var ae=N.errorOrDestroy,oe=["error","close","destroy","pause","resume"];function ue(ne,re,he){if(typeof ne.prependListener=="function")return ne.prependListener(re,he);!ne._events||!ne._events[re]?ne.on(re,he):Array.isArray(ne._events[re])?ne._events[re].unshift(he):ne._events[re]=[he,ne._events[re]]}function se(ne,re,he){b=b||s("./_stream_duplex"),ne=ne||{},typeof he!="boolean"&&(he=re instanceof b),this.objectMode=!!ne.objectMode,he&&(this.objectMode=this.objectMode||!!ne.readableObjectMode),this.highWaterMark=L(this,ne,"readableHighWaterMark",he),this.buffer=new R,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=ne.emitClose!==!1,this.autoDestroy=!!ne.autoDestroy,this.destroyed=!1,this.defaultEncoding=ne.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ne.encoding&&(G||(G=s("string_decoder/").StringDecoder),this.decoder=new G(ne.encoding),this.encoding=ne.encoding)}function ye(ne){if(b=b||s("./_stream_duplex"),!(this instanceof ye))return new ye(ne);var re=this instanceof b;this._readableState=new se(ne,this,re),this.readable=!0,ne&&(typeof ne.read=="function"&&(this._read=ne.read),typeof ne.destroy=="function"&&(this._destroy=ne.destroy)),v.call(this)}Object.defineProperty(ye.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(re){this._readableState&&(this._readableState.destroyed=re)}}),ye.prototype.destroy=N.destroy,ye.prototype._undestroy=N.undestroy,ye.prototype._destroy=function(ne,re){re(ne)},ye.prototype.push=function(ne,re){var he=this._readableState,_e;return he.objectMode?_e=!0:typeof ne=="string"&&(re=re||he.defaultEncoding,re!==he.encoding&&(ne=c.from(ne,re),re=""),_e=!0),ve(this,ne,re,!1,_e)},ye.prototype.unshift=function(ne){return ve(this,ne,null,!0,!1)};function ve(ne,re,he,_e,Be){I("readableAddChunk",re);var Ue=ne._readableState;if(re===null)Ue.reading=!1,Oe(ne,Ue);else{var rt;if(Be||(rt=le(Ue,re)),rt)ae(ne,rt);else if(Ue.objectMode||re&&re.length>0)if(typeof re!="string"&&!Ue.objectMode&&Object.getPrototypeOf(re)!==c.prototype&&(re=m(re)),_e)Ue.endEmitted?ae(ne,new U):Re(ne,Ue,re,!0);else if(Ue.ended)ae(ne,new V);else{if(Ue.destroyed)return!1;Ue.reading=!1,Ue.decoder&&!he?(re=Ue.decoder.write(re),Ue.objectMode||re.length!==0?Re(ne,Ue,re,!1):De(ne,Ue)):Re(ne,Ue,re,!1)}else _e||(Ue.reading=!1,De(ne,Ue))}return!Ue.ended&&(Ue.length<Ue.highWaterMark||Ue.length===0)}function Re(ne,re,he,_e){re.flowing&&re.length===0&&!re.sync?(re.awaitDrain=0,ne.emit("data",he)):(re.length+=re.objectMode?1:he.length,_e?re.buffer.unshift(he):re.buffer.push(he),re.needReadable&&Le(ne)),De(ne,re)}function le(ne,re){var he;return!E(re)&&typeof re!="string"&&re!==void 0&&!ne.objectMode&&(he=new D("chunk",["string","Buffer","Uint8Array"],re)),he}ye.prototype.isPaused=function(){return this._readableState.flowing===!1},ye.prototype.setEncoding=function(ne){G||(G=s("string_decoder/").StringDecoder);var re=new G(ne);this._readableState.decoder=re,this._readableState.encoding=this._readableState.decoder.encoding;for(var he=this._readableState.buffer.head,_e="";he!==null;)_e+=re.write(he.data),he=he.next;return this._readableState.buffer.clear(),_e!==""&&this._readableState.buffer.push(_e),this._readableState.length=_e.length,this};var xe=1073741824;function pe(ne){return ne>=xe?ne=xe:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}function Me(ne,re){return ne<=0||re.length===0&&re.ended?0:re.objectMode?1:ne!==ne?re.flowing&&re.length?re.buffer.head.data.length:re.length:(ne>re.highWaterMark&&(re.highWaterMark=pe(ne)),ne<=re.length?ne:re.ended?re.length:(re.needReadable=!0,0))}ye.prototype.read=function(ne){I("read",ne),ne=parseInt(ne,10);var re=this._readableState,he=ne;if(ne!==0&&(re.emittedReadable=!1),ne===0&&re.needReadable&&((re.highWaterMark!==0?re.length>=re.highWaterMark:re.length>0)||re.ended))return I("read: emitReadable",re.length,re.ended),re.length===0&&re.ended?X(this):Le(this),null;if(ne=Me(ne,re),ne===0&&re.ended)return re.length===0&&X(this),null;var _e=re.needReadable;I("need readable",_e),(re.length===0||re.length-ne<re.highWaterMark)&&(_e=!0,I("length less than watermark",_e)),re.ended||re.reading?(_e=!1,I("reading or ended",_e)):_e&&(I("do read"),re.reading=!0,re.sync=!0,re.length===0&&(re.needReadable=!0),this._read(re.highWaterMark),re.sync=!1,re.reading||(ne=Me(he,re)));var Be;return ne>0?Be=z(ne,re):Be=null,Be===null?(re.needReadable=re.length<=re.highWaterMark,ne=0):(re.length-=ne,re.awaitDrain=0),re.length===0&&(re.ended||(re.needReadable=!0),he!==ne&&re.ended&&X(this)),Be!==null&&this.emit("data",Be),Be};function Oe(ne,re){if(I("onEofChunk"),!re.ended){if(re.decoder){var he=re.decoder.end();he&&he.length&&(re.buffer.push(he),re.length+=re.objectMode?1:he.length)}re.ended=!0,re.sync?Le(ne):(re.needReadable=!1,re.emittedReadable||(re.emittedReadable=!0,Pe(ne)))}}function Le(ne){var re=ne._readableState;I("emitReadable",re.needReadable,re.emittedReadable),re.needReadable=!1,re.emittedReadable||(I("emitReadable",re.flowing),re.emittedReadable=!0,u.nextTick(Pe,ne))}function Pe(ne){var re=ne._readableState;I("emitReadable_",re.destroyed,re.length,re.ended),!re.destroyed&&(re.length||re.ended)&&(ne.emit("readable"),re.emittedReadable=!1),re.needReadable=!re.flowing&&!re.ended&&re.length<=re.highWaterMark,fe(ne)}function De(ne,re){re.readingMore||(re.readingMore=!0,u.nextTick(Ke,ne,re))}function Ke(ne,re){for(;!re.reading&&!re.ended&&(re.length<re.highWaterMark||re.flowing&&re.length===0);){var he=re.length;if(I("maybeReadMore read 0"),ne.read(0),he===re.length)break}re.readingMore=!1}ye.prototype._read=function(ne){ae(this,new P("_read()"))},ye.prototype.pipe=function(ne,re){var he=this,_e=this._readableState;switch(_e.pipesCount){case 0:_e.pipes=ne;break;case 1:_e.pipes=[_e.pipes,ne];break;default:_e.pipes.push(ne);break}_e.pipesCount+=1,I("pipe count=%d opts=%j",_e.pipesCount,re);var Be=(!re||re.end!==!1)&&ne!==u.stdout&&ne!==u.stderr,Ue=Be?et:Ct;_e.endEmitted?u.nextTick(Ue):he.once("end",Ue),ne.on("unpipe",rt);function rt(Ft,Rt){I("onunpipe"),Ft===he&&Rt&&Rt.hasUnpiped===!1&&(Rt.hasUnpiped=!0,pt())}function et(){I("onend"),ne.end()}var dt=ze(he);ne.on("drain",dt);var Ot=!1;function pt(){I("cleanup"),ne.removeListener("close",Tt),ne.removeListener("finish",vt),ne.removeListener("drain",dt),ne.removeListener("error",ut),ne.removeListener("unpipe",rt),he.removeListener("end",et),he.removeListener("end",Ct),he.removeListener("data",nt),Ot=!0,_e.awaitDrain&&(!ne._writableState||ne._writableState.needDrain)&&dt()}he.on("data",nt);function nt(Ft){I("ondata");var Rt=ne.write(Ft);I("dest.write",Rt),Rt===!1&&((_e.pipesCount===1&&_e.pipes===ne||_e.pipesCount>1&&Ce(_e.pipes,ne)!==-1)&&!Ot&&(I("false write response, pause",_e.awaitDrain),_e.awaitDrain++),he.pause())}function ut(Ft){I("onerror",Ft),Ct(),ne.removeListener("error",ut),y(ne,"error")===0&&ae(ne,Ft)}ue(ne,"error",ut);function Tt(){ne.removeListener("finish",vt),Ct()}ne.once("close",Tt);function vt(){I("onfinish"),ne.removeListener("close",Tt),Ct()}ne.once("finish",vt);function Ct(){I("unpipe"),he.unpipe(ne)}return ne.emit("pipe",he),_e.flowing||(I("pipe resume"),he.resume()),ne};function ze(ne){return function(){var he=ne._readableState;I("pipeOnDrain",he.awaitDrain),he.awaitDrain&&he.awaitDrain--,he.awaitDrain===0&&y(ne,"data")&&(he.flowing=!0,fe(ne))}}ye.prototype.unpipe=function(ne){var re=this._readableState,he={hasUnpiped:!1};if(re.pipesCount===0)return this;if(re.pipesCount===1)return ne&&ne!==re.pipes?this:(ne||(ne=re.pipes),re.pipes=null,re.pipesCount=0,re.flowing=!1,ne&&ne.emit("unpipe",this,he),this);if(!ne){var _e=re.pipes,Be=re.pipesCount;re.pipes=null,re.pipesCount=0,re.flowing=!1;for(var Ue=0;Ue<Be;Ue++)_e[Ue].emit("unpipe",this,{hasUnpiped:!1});return this}var rt=Ce(re.pipes,ne);return rt===-1?this:(re.pipes.splice(rt,1),re.pipesCount-=1,re.pipesCount===1&&(re.pipes=re.pipes[0]),ne.emit("unpipe",this,he),this)},ye.prototype.on=function(ne,re){var he=v.prototype.on.call(this,ne,re),_e=this._readableState;return ne==="data"?(_e.readableListening=this.listenerCount("readable")>0,_e.flowing!==!1&&this.resume()):ne==="readable"&&!_e.endEmitted&&!_e.readableListening&&(_e.readableListening=_e.needReadable=!0,_e.flowing=!1,_e.emittedReadable=!1,I("on readable",_e.length,_e.reading),_e.length?Le(this):_e.reading||u.nextTick(ot,this)),he},ye.prototype.addListener=ye.prototype.on,ye.prototype.removeListener=function(ne,re){var he=v.prototype.removeListener.call(this,ne,re);return ne==="readable"&&u.nextTick(it,this),he},ye.prototype.removeAllListeners=function(ne){var re=v.prototype.removeAllListeners.apply(this,arguments);return(ne==="readable"||ne===void 0)&&u.nextTick(it,this),re};function it(ne){var re=ne._readableState;re.readableListening=ne.listenerCount("readable")>0,re.resumeScheduled&&!re.paused?re.flowing=!0:ne.listenerCount("data")>0&&ne.resume()}function ot(ne){I("readable nexttick read 0"),ne.read(0)}ye.prototype.resume=function(){var ne=this._readableState;return ne.flowing||(I("resume"),ne.flowing=!ne.readableListening,Ge(this,ne)),ne.paused=!1,this};function Ge(ne,re){re.resumeScheduled||(re.resumeScheduled=!0,u.nextTick(Ee,ne,re))}function Ee(ne,re){I("resume",re.reading),re.reading||ne.read(0),re.resumeScheduled=!1,ne.emit("resume"),fe(ne),re.flowing&&!re.reading&&ne.read(0)}ye.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function fe(ne){var re=ne._readableState;for(I("flow",re.flowing);re.flowing&&ne.read()!==null;);}ye.prototype.wrap=function(ne){var re=this,he=this._readableState,_e=!1;ne.on("end",function(){if(I("wrapped end"),he.decoder&&!he.ended){var rt=he.decoder.end();rt&&rt.length&&re.push(rt)}re.push(null)}),ne.on("data",function(rt){if(I("wrapped data"),he.decoder&&(rt=he.decoder.write(rt)),!(he.objectMode&&rt==null)&&!(!he.objectMode&&(!rt||!rt.length))){var et=re.push(rt);et||(_e=!0,ne.pause())}});for(var Be in ne)this[Be]===void 0&&typeof ne[Be]=="function"&&(this[Be]=function(et){return function(){return ne[et].apply(ne,arguments)}}(Be));for(var Ue=0;Ue<oe.length;Ue++)ne.on(oe[Ue],this.emit.bind(this,oe[Ue]));return this._read=function(rt){I("wrapped _read",rt),_e&&(_e=!1,ne.resume())},this},typeof Symbol=="function"&&(ye.prototype[Symbol.asyncIterator]=function(){return J===void 0&&(J=s("./internal/streams/async_iterator")),J(this)}),Object.defineProperty(ye.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(ye.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(ye.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(re){this._readableState&&(this._readableState.flowing=re)}}),ye._fromList=z,Object.defineProperty(ye.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function z(ne,re){if(re.length===0)return null;var he;return re.objectMode?he=re.buffer.shift():!ne||ne>=re.length?(re.decoder?he=re.buffer.join(""):re.buffer.length===1?he=re.buffer.first():he=re.buffer.concat(re.length),re.buffer.clear()):he=re.buffer.consume(ne,re.decoder),he}function X(ne){var re=ne._readableState;I("endReadable",re.endEmitted),re.endEmitted||(re.ended=!0,u.nextTick(de,re,ne))}function de(ne,re){if(I("endReadableNT",ne.endEmitted,ne.length),!ne.endEmitted&&ne.length===0&&(ne.endEmitted=!0,re.readable=!1,re.emit("end"),ne.autoDestroy)){var he=re._writableState;(!he||he.autoDestroy&&he.finished)&&re.destroy()}}typeof Symbol=="function"&&(ye.from=function(ne,re){return ee===void 0&&(ee=s("./internal/streams/from")),ee(ye,ne,re)});function Ce(ne,re){for(var he=0,_e=ne.length;he<_e;he++)if(ne[he]===re)return he;return-1}}).call(this)}).call(this,s("_process"),typeof Q!="undefined"?Q: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(s,C,A){"use strict";C.exports=h;var u=s("../errors").codes,p=u.ERR_METHOD_NOT_IMPLEMENTED,b=u.ERR_MULTIPLE_CALLBACK,g=u.ERR_TRANSFORM_ALREADY_TRANSFORMING,y=u.ERR_TRANSFORM_WITH_LENGTH_0,v=s("./_stream_duplex");s("inherits")(h,v);function c(T,I){var R=this._transformState;R.transforming=!1;var N=R.writecb;if(N===null)return this.emit("error",new b);R.writechunk=null,R.writecb=null,I!=null&&this.push(I),N(T);var k=this._readableState;k.reading=!1,(k.needReadable||k.length<k.highWaterMark)&&this._read(k.highWaterMark)}function h(T){if(!(this instanceof h))return new h(T);v.call(this,T),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,T&&(typeof T.transform=="function"&&(this._transform=T.transform),typeof T.flush=="function"&&(this._flush=T.flush)),this.on("prefinish",m)}function m(){var T=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(I,R){E(T,I,R)}):E(this,null,null)}h.prototype.push=function(T,I){return this._transformState.needTransform=!1,v.prototype.push.call(this,T,I)},h.prototype._transform=function(T,I,R){R(new p("_transform()"))},h.prototype._write=function(T,I,R){var N=this._transformState;if(N.writecb=R,N.writechunk=T,N.writeencoding=I,!N.transforming){var k=this._readableState;(N.needTransform||k.needReadable||k.length<k.highWaterMark)&&this._read(k.highWaterMark)}},h.prototype._read=function(T){var I=this._transformState;I.writechunk!==null&&!I.transforming?(I.transforming=!0,this._transform(I.writechunk,I.writeencoding,I.afterTransform)):I.needTransform=!0},h.prototype._destroy=function(T,I){v.prototype._destroy.call(this,T,function(R){I(R)})};function E(T,I,R){if(I)return T.emit("error",I);if(R!=null&&T.push(R),T._writableState.length)throw new y;if(T._transformState.transforming)throw new g;return T.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(s,C,A){(function(u,p){(function(){"use strict";C.exports=se;function b(fe,z,X){this.chunk=fe,this.encoding=z,this.callback=X,this.next=null}function g(fe){var z=this;this.next=null,this.entry=null,this.finish=function(){Ee(z,fe)}}var y;se.WritableState=oe;var v={deprecate:s("util-deprecate")},c=s("./internal/streams/stream"),h=s("buffer").Buffer,m=(typeof p!="undefined"?p:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function E(fe){return h.from(fe)}function T(fe){return h.isBuffer(fe)||fe instanceof m}var I=s("./internal/streams/destroy"),R=s("./internal/streams/state"),N=R.getHighWaterMark,k=s("../errors").codes,L=k.ERR_INVALID_ARG_TYPE,H=k.ERR_METHOD_NOT_IMPLEMENTED,D=k.ERR_MULTIPLE_CALLBACK,V=k.ERR_STREAM_CANNOT_PIPE,P=k.ERR_STREAM_DESTROYED,U=k.ERR_STREAM_NULL_VALUES,G=k.ERR_STREAM_WRITE_AFTER_END,J=k.ERR_UNKNOWN_ENCODING,ee=I.errorOrDestroy;s("inherits")(se,c);function ae(){}function oe(fe,z,X){y=y||s("./_stream_duplex"),fe=fe||{},typeof X!="boolean"&&(X=z instanceof y),this.objectMode=!!fe.objectMode,X&&(this.objectMode=this.objectMode||!!fe.writableObjectMode),this.highWaterMark=N(this,fe,"writableHighWaterMark",X),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var de=fe.decodeStrings===!1;this.decodeStrings=!de,this.defaultEncoding=fe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ce){Oe(z,Ce)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=fe.emitClose!==!1,this.autoDestroy=!!fe.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new g(this)}oe.prototype.getBuffer=function(){for(var z=this.bufferedRequest,X=[];z;)X.push(z),z=z.next;return X},function(){try{Object.defineProperty(oe.prototype,"buffer",{get:v.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(fe){}}();var ue;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ue=Function.prototype[Symbol.hasInstance],Object.defineProperty(se,Symbol.hasInstance,{value:function(z){return ue.call(this,z)?!0:this!==se?!1:z&&z._writableState instanceof oe}})):ue=function(z){return z instanceof this};function se(fe){y=y||s("./_stream_duplex");var z=this instanceof y;if(!z&&!ue.call(se,this))return new se(fe);this._writableState=new oe(fe,this,z),this.writable=!0,fe&&(typeof fe.write=="function"&&(this._write=fe.write),typeof fe.writev=="function"&&(this._writev=fe.writev),typeof fe.destroy=="function"&&(this._destroy=fe.destroy),typeof fe.final=="function"&&(this._final=fe.final)),c.call(this)}se.prototype.pipe=function(){ee(this,new V)};function ye(fe,z){var X=new G;ee(fe,X),u.nextTick(z,X)}function ve(fe,z,X,de){var Ce;return X===null?Ce=new U:typeof X!="string"&&!z.objectMode&&(Ce=new L("chunk",["string","Buffer"],X)),Ce?(ee(fe,Ce),u.nextTick(de,Ce),!1):!0}se.prototype.write=function(fe,z,X){var de=this._writableState,Ce=!1,ne=!de.objectMode&&T(fe);return ne&&!h.isBuffer(fe)&&(fe=E(fe)),typeof z=="function"&&(X=z,z=null),ne?z="buffer":z||(z=de.defaultEncoding),typeof X!="function"&&(X=ae),de.ending?ye(this,X):(ne||ve(this,de,fe,X))&&(de.pendingcb++,Ce=le(this,de,ne,fe,z,X)),Ce},se.prototype.cork=function(){this._writableState.corked++},se.prototype.uncork=function(){var fe=this._writableState;fe.corked&&(fe.corked--,!fe.writing&&!fe.corked&&!fe.bufferProcessing&&fe.bufferedRequest&&De(this,fe))},se.prototype.setDefaultEncoding=function(z){if(typeof z=="string"&&(z=z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((z+"").toLowerCase())>-1))throw new J(z);return this._writableState.defaultEncoding=z,this},Object.defineProperty(se.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Re(fe,z,X){return!fe.objectMode&&fe.decodeStrings!==!1&&typeof z=="string"&&(z=h.from(z,X)),z}Object.defineProperty(se.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function le(fe,z,X,de,Ce,ne){if(!X){var re=Re(z,de,Ce);de!==re&&(X=!0,Ce="buffer",de=re)}var he=z.objectMode?1:de.length;z.length+=he;var _e=z.length<z.highWaterMark;if(_e||(z.needDrain=!0),z.writing||z.corked){var Be=z.lastBufferedRequest;z.lastBufferedRequest={chunk:de,encoding:Ce,isBuf:X,callback:ne,next:null},Be?Be.next=z.lastBufferedRequest:z.bufferedRequest=z.lastBufferedRequest,z.bufferedRequestCount+=1}else xe(fe,z,!1,he,de,Ce,ne);return _e}function xe(fe,z,X,de,Ce,ne,re){z.writelen=de,z.writecb=re,z.writing=!0,z.sync=!0,z.destroyed?z.onwrite(new P("write")):X?fe._writev(Ce,z.onwrite):fe._write(Ce,ne,z.onwrite),z.sync=!1}function pe(fe,z,X,de,Ce){--z.pendingcb,X?(u.nextTick(Ce,de),u.nextTick(ot,fe,z),fe._writableState.errorEmitted=!0,ee(fe,de)):(Ce(de),fe._writableState.errorEmitted=!0,ee(fe,de),ot(fe,z))}function Me(fe){fe.writing=!1,fe.writecb=null,fe.length-=fe.writelen,fe.writelen=0}function Oe(fe,z){var X=fe._writableState,de=X.sync,Ce=X.writecb;if(typeof Ce!="function")throw new D;if(Me(X),z)pe(fe,X,de,z,Ce);else{var ne=Ke(X)||fe.destroyed;!ne&&!X.corked&&!X.bufferProcessing&&X.bufferedRequest&&De(fe,X),de?u.nextTick(Le,fe,X,ne,Ce):Le(fe,X,ne,Ce)}}function Le(fe,z,X,de){X||Pe(fe,z),z.pendingcb--,de(),ot(fe,z)}function Pe(fe,z){z.length===0&&z.needDrain&&(z.needDrain=!1,fe.emit("drain"))}function De(fe,z){z.bufferProcessing=!0;var X=z.bufferedRequest;if(fe._writev&&X&&X.next){var de=z.bufferedRequestCount,Ce=new Array(de),ne=z.corkedRequestsFree;ne.entry=X;for(var re=0,he=!0;X;)Ce[re]=X,X.isBuf||(he=!1),X=X.next,re+=1;Ce.allBuffers=he,xe(fe,z,!0,z.length,Ce,"",ne.finish),z.pendingcb++,z.lastBufferedRequest=null,ne.next?(z.corkedRequestsFree=ne.next,ne.next=null):z.corkedRequestsFree=new g(z),z.bufferedRequestCount=0}else{for(;X;){var _e=X.chunk,Be=X.encoding,Ue=X.callback,rt=z.objectMode?1:_e.length;if(xe(fe,z,!1,rt,_e,Be,Ue),X=X.next,z.bufferedRequestCount--,z.writing)break}X===null&&(z.lastBufferedRequest=null)}z.bufferedRequest=X,z.bufferProcessing=!1}se.prototype._write=function(fe,z,X){X(new H("_write()"))},se.prototype._writev=null,se.prototype.end=function(fe,z,X){var de=this._writableState;return typeof fe=="function"?(X=fe,fe=null,z=null):typeof z=="function"&&(X=z,z=null),fe!=null&&this.write(fe,z),de.corked&&(de.corked=1,this.uncork()),de.ending||Ge(this,de,X),this},Object.defineProperty(se.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ke(fe){return fe.ending&&fe.length===0&&fe.bufferedRequest===null&&!fe.finished&&!fe.writing}function ze(fe,z){fe._final(function(X){z.pendingcb--,X&&ee(fe,X),z.prefinished=!0,fe.emit("prefinish"),ot(fe,z)})}function it(fe,z){!z.prefinished&&!z.finalCalled&&(typeof fe._final=="function"&&!z.destroyed?(z.pendingcb++,z.finalCalled=!0,u.nextTick(ze,fe,z)):(z.prefinished=!0,fe.emit("prefinish")))}function ot(fe,z){var X=Ke(z);if(X&&(it(fe,z),z.pendingcb===0&&(z.finished=!0,fe.emit("finish"),z.autoDestroy))){var de=fe._readableState;(!de||de.autoDestroy&&de.endEmitted)&&fe.destroy()}return X}function Ge(fe,z,X){z.ending=!0,ot(fe,z),X&&(z.finished?u.nextTick(X):fe.once("finish",X)),z.ended=!0,fe.writable=!1}function Ee(fe,z,X){var de=fe.entry;for(fe.entry=null;de;){var Ce=de.callback;z.pendingcb--,Ce(X),de=de.next}z.corkedRequestsFree.next=fe}Object.defineProperty(se.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(z){this._writableState&&(this._writableState.destroyed=z)}}),se.prototype.destroy=I.destroy,se.prototype._undestroy=I.undestroy,se.prototype._destroy=function(fe,z){z(fe)}}).call(this)}).call(this,s("_process"),typeof Q!="undefined"?Q: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(s,C,A){(function(u){(function(){"use strict";var p;function b(U,G,J){return G=g(G),G in U?Object.defineProperty(U,G,{value:J,enumerable:!0,configurable:!0,writable:!0}):U[G]=J,U}function g(U){var G=y(U,"string");return typeof G=="symbol"?G:String(G)}function y(U,G){if(typeof U!="object"||U===null)return U;var J=U[Symbol.toPrimitive];if(J!==void 0){var ee=J.call(U,G||"default");if(typeof ee!="object")return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(G==="string"?String:Number)(U)}var v=s("./end-of-stream"),c=Symbol("lastResolve"),h=Symbol("lastReject"),m=Symbol("error"),E=Symbol("ended"),T=Symbol("lastPromise"),I=Symbol("handlePromise"),R=Symbol("stream");function N(U,G){return{value:U,done:G}}function k(U){var G=U[c];if(G!==null){var J=U[R].read();J!==null&&(U[T]=null,U[c]=null,U[h]=null,G(N(J,!1)))}}function L(U){u.nextTick(k,U)}function H(U,G){return function(J,ee){U.then(function(){if(G[E]){J(N(void 0,!0));return}G[I](J,ee)},ee)}}var D=Object.getPrototypeOf(function(){}),V=Object.setPrototypeOf((p={get stream(){return this[R]},next:function(){var G=this,J=this[m];if(J!==null)return Promise.reject(J);if(this[E])return Promise.resolve(N(void 0,!0));if(this[R].destroyed)return new Promise(function(ue,se){u.nextTick(function(){G[m]?se(G[m]):ue(N(void 0,!0))})});var ee=this[T],ae;if(ee)ae=new Promise(H(ee,this));else{var oe=this[R].read();if(oe!==null)return Promise.resolve(N(oe,!1));ae=new Promise(this[I])}return this[T]=ae,ae}},b(p,Symbol.asyncIterator,function(){return this}),b(p,"return",function(){var G=this;return new Promise(function(J,ee){G[R].destroy(null,function(ae){if(ae){ee(ae);return}J(N(void 0,!0))})})}),p),D),P=function(G){var J,ee=Object.create(V,(J={},b(J,R,{value:G,writable:!0}),b(J,c,{value:null,writable:!0}),b(J,h,{value:null,writable:!0}),b(J,m,{value:null,writable:!0}),b(J,E,{value:G._readableState.endEmitted,writable:!0}),b(J,I,{value:function(oe,ue){var se=ee[R].read();se?(ee[T]=null,ee[c]=null,ee[h]=null,oe(N(se,!1))):(ee[c]=oe,ee[h]=ue)},writable:!0}),J));return ee[T]=null,v(G,function(ae){if(ae&&ae.code!=="ERR_STREAM_PREMATURE_CLOSE"){var oe=ee[h];oe!==null&&(ee[T]=null,ee[c]=null,ee[h]=null,oe(ae)),ee[m]=ae;return}var ue=ee[c];ue!==null&&(ee[T]=null,ee[c]=null,ee[h]=null,ue(N(void 0,!0))),ee[E]=!0}),G.on("readable",L.bind(null,ee)),ee};C.exports=P}).call(this)}).call(this,s("_process"))},{"./end-of-stream":408,_process:467}],406:[function(s,C,A){"use strict";function u(k,L){var H=Object.keys(k);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(k);L&&(D=D.filter(function(V){return Object.getOwnPropertyDescriptor(k,V).enumerable})),H.push.apply(H,D)}return H}function p(k){for(var L=1;L<arguments.length;L++){var H=arguments[L]!=null?arguments[L]:{};L%2?u(Object(H),!0).forEach(function(D){b(k,D,H[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(H)):u(Object(H)).forEach(function(D){Object.defineProperty(k,D,Object.getOwnPropertyDescriptor(H,D))})}return k}function b(k,L,H){return L=c(L),L in k?Object.defineProperty(k,L,{value:H,enumerable:!0,configurable:!0,writable:!0}):k[L]=H,k}function g(k,L){if(!(k instanceof L))throw new TypeError("Cannot call a class as a function")}function y(k,L){for(var H=0;H<L.length;H++){var D=L[H];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(k,c(D.key),D)}}function v(k,L,H){return L&&y(k.prototype,L),H&&y(k,H),Object.defineProperty(k,"prototype",{writable:!1}),k}function c(k){var L=h(k,"string");return typeof L=="symbol"?L:String(L)}function h(k,L){if(typeof k!="object"||k===null)return k;var H=k[Symbol.toPrimitive];if(H!==void 0){var D=H.call(k,L||"default");if(typeof D!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(k)}var m=s("buffer"),E=m.Buffer,T=s("util"),I=T.inspect,R=I&&I.custom||"inspect";function N(k,L,H){E.prototype.copy.call(k,L,H)}C.exports=function(){function k(){g(this,k),this.head=null,this.tail=null,this.length=0}return v(k,[{key:"push",value:function(H){var D={data:H,next:null};this.length>0?this.tail.next=D:this.head=D,this.tail=D,++this.length}},{key:"unshift",value:function(H){var D={data:H,next:this.head};this.length===0&&(this.tail=D),this.head=D,++this.length}},{key:"shift",value:function(){if(this.length!==0){var H=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,H}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(H){if(this.length===0)return"";for(var D=this.head,V=""+D.data;D=D.next;)V+=H+D.data;return V}},{key:"concat",value:function(H){if(this.length===0)return E.alloc(0);for(var D=E.allocUnsafe(H>>>0),V=this.head,P=0;V;)N(V.data,D,P),P+=V.data.length,V=V.next;return D}},{key:"consume",value:function(H,D){var V;return H<this.head.data.length?(V=this.head.data.slice(0,H),this.head.data=this.head.data.slice(H)):H===this.head.data.length?V=this.shift():V=D?this._getString(H):this._getBuffer(H),V}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(H){var D=this.head,V=1,P=D.data;for(H-=P.length;D=D.next;){var U=D.data,G=H>U.length?U.length:H;if(G===U.length?P+=U:P+=U.slice(0,H),H-=G,H===0){G===U.length?(++V,D.next?this.head=D.next:this.head=this.tail=null):(this.head=D,D.data=U.slice(G));break}++V}return this.length-=V,P}},{key:"_getBuffer",value:function(H){var D=E.allocUnsafe(H),V=this.head,P=1;for(V.data.copy(D),H-=V.data.length;V=V.next;){var U=V.data,G=H>U.length?U.length:H;if(U.copy(D,D.length-H,0,G),H-=G,H===0){G===U.length?(++P,V.next?this.head=V.next:this.head=this.tail=null):(this.head=V,V.data=U.slice(G));break}++P}return this.length-=P,D}},{key:R,value:function(H,D){return I(this,p(p({},D),{},{depth:0,customInspect:!1}))}}]),k}()},{buffer:90,util:89}],407:[function(s,C,A){(function(u){(function(){"use strict";function p(h,m){var E=this,T=this._readableState&&this._readableState.destroyed,I=this._writableState&&this._writableState.destroyed;return T||I?(m?m(h):h&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,u.nextTick(v,this,h)):u.nextTick(v,this,h)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(R){!m&&R?E._writableState?E._writableState.errorEmitted?u.nextTick(g,E):(E._writableState.errorEmitted=!0,u.nextTick(b,E,R)):u.nextTick(b,E,R):m?(u.nextTick(g,E),m(R)):u.nextTick(g,E)}),this)}function b(h,m){v(h,m),g(h)}function g(h){h._writableState&&!h._writableState.emitClose||h._readableState&&!h._readableState.emitClose||h.emit("close")}function y(){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 v(h,m){h.emit("error",m)}function c(h,m){var E=h._readableState,T=h._writableState;E&&E.autoDestroy||T&&T.autoDestroy?h.destroy(m):h.emit("error",m)}C.exports={destroy:p,undestroy:y,errorOrDestroy:c}}).call(this)}).call(this,s("_process"))},{_process:467}],408:[function(s,C,A){"use strict";var u=s("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function p(v){var c=!1;return function(){if(!c){c=!0;for(var h=arguments.length,m=new Array(h),E=0;E<h;E++)m[E]=arguments[E];v.apply(this,m)}}}function b(){}function g(v){return v.setHeader&&typeof v.abort=="function"}function y(v,c,h){if(typeof c=="function")return y(v,null,c);c||(c={}),h=p(h||b);var m=c.readable||c.readable!==!1&&v.readable,E=c.writable||c.writable!==!1&&v.writable,T=function(){v.writable||R()},I=v._writableState&&v._writableState.finished,R=function(){E=!1,I=!0,m||h.call(v)},N=v._readableState&&v._readableState.endEmitted,k=function(){m=!1,N=!0,E||h.call(v)},L=function(P){h.call(v,P)},H=function(){var P;if(m&&!N)return(!v._readableState||!v._readableState.ended)&&(P=new u),h.call(v,P);if(E&&!I)return(!v._writableState||!v._writableState.ended)&&(P=new u),h.call(v,P)},D=function(){v.req.on("finish",R)};return g(v)?(v.on("complete",R),v.on("abort",H),v.req?D():v.on("request",D)):E&&!v._writableState&&(v.on("end",T),v.on("close",T)),v.on("end",k),v.on("finish",R),c.error!==!1&&v.on("error",L),v.on("close",H),function(){v.removeListener("complete",R),v.removeListener("abort",H),v.removeListener("request",D),v.req&&v.req.removeListener("finish",R),v.removeListener("end",T),v.removeListener("close",T),v.removeListener("finish",R),v.removeListener("end",k),v.removeListener("error",L),v.removeListener("close",H)}}C.exports=y},{"../../../errors":399}],409:[function(s,C,A){C.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(s,C,A){"use strict";var u;function p(R){var N=!1;return function(){N||(N=!0,R.apply(void 0,arguments))}}var b=s("../../../errors").codes,g=b.ERR_MISSING_ARGS,y=b.ERR_STREAM_DESTROYED;function v(R){if(R)throw R}function c(R){return R.setHeader&&typeof R.abort=="function"}function h(R,N,k,L){L=p(L);var H=!1;R.on("close",function(){H=!0}),u===void 0&&(u=s("./end-of-stream")),u(R,{readable:N,writable:k},function(V){if(V)return L(V);H=!0,L()});var D=!1;return function(V){if(!H&&!D){if(D=!0,c(R))return R.abort();if(typeof R.destroy=="function")return R.destroy();L(V||new y("pipe"))}}}function m(R){R()}function E(R,N){return R.pipe(N)}function T(R){return!R.length||typeof R[R.length-1]!="function"?v:R.pop()}function I(){for(var R=arguments.length,N=new Array(R),k=0;k<R;k++)N[k]=arguments[k];var L=T(N);if(Array.isArray(N[0])&&(N=N[0]),N.length<2)throw new g("streams");var H,D=N.map(function(V,P){var U=P<N.length-1,G=P>0;return h(V,U,G,function(J){H||(H=J),J&&D.forEach(m),!U&&(D.forEach(m),L(H))})});return N.reduce(E)}C.exports=I},{"../../../errors":399,"./end-of-stream":408}],411:[function(s,C,A){"use strict";var u=s("../../../errors").codes.ERR_INVALID_OPT_VALUE;function p(g,y,v){return g.highWaterMark!=null?g.highWaterMark:y?g[v]:null}function b(g,y,v,c){var h=p(y,c,v);if(h!=null){if(!(isFinite(h)&&Math.floor(h)===h)||h<0){var m=c?v:"highWaterMark";throw new u(m,h)}return Math.floor(h)}return g.objectMode?16:16*1024}C.exports={getHighWaterMark:b}},{"../../../errors":399}],412:[function(s,C,A){arguments[4][393][0].apply(A,arguments)},{dup:393,events:344}],413:[function(s,C,A){"use strict";var u=s("safe-buffer").Buffer,p=u.isEncoding||function(D){switch(D=""+D,D&&D.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 b(D){if(!D)return"utf8";for(var V;;)switch(D){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 D;default:if(V)return;D=(""+D).toLowerCase(),V=!0}}function g(D){var V=b(D);if(typeof V!="string"&&(u.isEncoding===p||!p(D)))throw new Error("Unknown encoding: "+D);return V||D}A.StringDecoder=y;function y(D){this.encoding=g(D);var V;switch(this.encoding){case"utf16le":this.text=I,this.end=R,V=4;break;case"utf8":this.fillLast=m,V=4;break;case"base64":this.text=N,this.end=k,V=3;break;default:this.write=L,this.end=H;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=u.allocUnsafe(V)}y.prototype.write=function(D){if(D.length===0)return"";var V,P;if(this.lastNeed){if(V=this.fillLast(D),V===void 0)return"";P=this.lastNeed,this.lastNeed=0}else P=0;return P<D.length?V?V+this.text(D,P):this.text(D,P):V||""},y.prototype.end=T,y.prototype.text=E,y.prototype.fillLast=function(D){if(this.lastNeed<=D.length)return D.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);D.copy(this.lastChar,this.lastTotal-this.lastNeed,0,D.length),this.lastNeed-=D.length};function v(D){return D<=127?0:D>>5===6?2:D>>4===14?3:D>>3===30?4:D>>6===2?-1:-2}function c(D,V,P){var U=V.length-1;if(U<P)return 0;var G=v(V[U]);return G>=0?(G>0&&(D.lastNeed=G-1),G):--U<P||G===-2?0:(G=v(V[U]),G>=0?(G>0&&(D.lastNeed=G-2),G):--U<P||G===-2?0:(G=v(V[U]),G>=0?(G>0&&(G===2?G=0:D.lastNeed=G-3),G):0))}function h(D,V,P){if((V[0]&192)!==128)return D.lastNeed=0,"\uFFFD";if(D.lastNeed>1&&V.length>1){if((V[1]&192)!==128)return D.lastNeed=1,"\uFFFD";if(D.lastNeed>2&&V.length>2&&(V[2]&192)!==128)return D.lastNeed=2,"\uFFFD"}}function m(D){var V=this.lastTotal-this.lastNeed,P=h(this,D,V);if(P!==void 0)return P;if(this.lastNeed<=D.length)return D.copy(this.lastChar,V,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);D.copy(this.lastChar,V,0,D.length),this.lastNeed-=D.length}function E(D,V){var P=c(this,D,V);if(!this.lastNeed)return D.toString("utf8",V);this.lastTotal=P;var U=D.length-(P-this.lastNeed);return D.copy(this.lastChar,0,U),D.toString("utf8",V,U)}function T(D){var V=D&&D.length?this.write(D):"";return this.lastNeed?V+"\uFFFD":V}function I(D,V){if((D.length-V)%2===0){var P=D.toString("utf16le",V);if(P){var U=P.charCodeAt(P.length-1);if(U>=55296&&U<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=D[D.length-2],this.lastChar[1]=D[D.length-1],P.slice(0,-1)}return P}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=D[D.length-1],D.toString("utf16le",V,D.length-1)}function R(D){var V=D&&D.length?this.write(D):"";if(this.lastNeed){var P=this.lastTotal-this.lastNeed;return V+this.lastChar.toString("utf16le",0,P)}return V}function N(D,V){var P=(D.length-V)%3;return P===0?D.toString("base64",V):(this.lastNeed=3-P,this.lastTotal=3,P===1?this.lastChar[0]=D[D.length-1]:(this.lastChar[0]=D[D.length-2],this.lastChar[1]=D[D.length-1]),D.toString("base64",V,D.length-P))}function k(D){var V=D&&D.length?this.write(D):"";return this.lastNeed?V+this.lastChar.toString("base64",0,3-this.lastNeed):V}function L(D){return D.toString(this.encoding)}function H(D){return D&&D.length?this.write(D):""}},{"safe-buffer":396}],414:[function(s,C,A){(function(u,p){(function(){var b=s("process/browser.js").nextTick,g=Function.prototype.apply,y=Array.prototype.slice,v={},c=0;A.setTimeout=function(){return new h(g.call(setTimeout,window,arguments),clearTimeout)},A.setInterval=function(){return new h(g.call(setInterval,window,arguments),clearInterval)},A.clearTimeout=A.clearInterval=function(m){m.close()};function h(m,E){this._id=m,this._clearFn=E}h.prototype.unref=h.prototype.ref=function(){},h.prototype.close=function(){this._clearFn.call(window,this._id)},A.enroll=function(m,E){clearTimeout(m._idleTimeoutId),m._idleTimeout=E},A.unenroll=function(m){clearTimeout(m._idleTimeoutId),m._idleTimeout=-1},A._unrefActive=A.active=function(m){clearTimeout(m._idleTimeoutId);var E=m._idleTimeout;E>=0&&(m._idleTimeoutId=setTimeout(function(){m._onTimeout&&m._onTimeout()},E))},A.setImmediate=typeof u=="function"?u:function(m){var E=c++,T=arguments.length<2?!1:y.call(arguments,1);return v[E]=!0,b(function(){v[E]&&(T?m.apply(null,T):m.call(null),A.clearImmediate(E))}),E},A.clearImmediate=typeof p=="function"?p:function(m){delete v[m]}}).call(this)}).call(this,s("timers").setImmediate,s("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(s,C,A){var u=s("buffer").Buffer;C.exports=function(p){if(p instanceof Uint8Array){if(p.byteOffset===0&&p.byteLength===p.buffer.byteLength)return p.buffer;if(typeof p.buffer.slice=="function")return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}if(u.isBuffer(p)){for(var b=new Uint8Array(p.length),g=p.length,y=0;y<g;y++)b[y]=p[y];return b.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(s,C,A){(function(u){(function(){C.exports=p;function p(g,y){if(b("noDeprecation"))return g;var v=!1;function c(){if(!v){if(b("throwDeprecation"))throw new Error(y);b("traceDeprecation")?console.trace(y):console.warn(y),v=!0}return g.apply(this,arguments)}return c}function b(g){try{if(!u.localStorage)return!1}catch(v){return!1}var y=u.localStorage[g];return y==null?!1:String(y).toLowerCase()==="true"}}).call(this)}).call(this,typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(s,C,A){arguments[4][84][0].apply(A,arguments)},{dup:84}],418:[function(s,C,A){"use strict";var u=s("is-arguments"),p=s("is-generator-function"),b=s("which-typed-array"),g=s("is-typed-array");function y(Be){return Be.call.bind(Be)}var v=typeof BigInt!="undefined",c=typeof Symbol!="undefined",h=y(Object.prototype.toString),m=y(Number.prototype.valueOf),E=y(String.prototype.valueOf),T=y(Boolean.prototype.valueOf);if(v)var I=y(BigInt.prototype.valueOf);if(c)var R=y(Symbol.prototype.valueOf);function N(Be,Ue){if(typeof Be!="object")return!1;try{return Ue(Be),!0}catch(rt){return!1}}A.isArgumentsObject=u,A.isGeneratorFunction=p,A.isTypedArray=g;function k(Be){return typeof Promise!="undefined"&&Be instanceof Promise||Be!==null&&typeof Be=="object"&&typeof Be.then=="function"&&typeof Be.catch=="function"}A.isPromise=k;function L(Be){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(Be):g(Be)||De(Be)}A.isArrayBufferView=L;function H(Be){return b(Be)==="Uint8Array"}A.isUint8Array=H;function D(Be){return b(Be)==="Uint8ClampedArray"}A.isUint8ClampedArray=D;function V(Be){return b(Be)==="Uint16Array"}A.isUint16Array=V;function P(Be){return b(Be)==="Uint32Array"}A.isUint32Array=P;function U(Be){return b(Be)==="Int8Array"}A.isInt8Array=U;function G(Be){return b(Be)==="Int16Array"}A.isInt16Array=G;function J(Be){return b(Be)==="Int32Array"}A.isInt32Array=J;function ee(Be){return b(Be)==="Float32Array"}A.isFloat32Array=ee;function ae(Be){return b(Be)==="Float64Array"}A.isFloat64Array=ae;function oe(Be){return b(Be)==="BigInt64Array"}A.isBigInt64Array=oe;function ue(Be){return b(Be)==="BigUint64Array"}A.isBigUint64Array=ue;function se(Be){return h(Be)==="[object Map]"}se.working=typeof Map!="undefined"&&se(new Map);function ye(Be){return typeof Map=="undefined"?!1:se.working?se(Be):Be instanceof Map}A.isMap=ye;function ve(Be){return h(Be)==="[object Set]"}ve.working=typeof Set!="undefined"&&ve(new Set);function Re(Be){return typeof Set=="undefined"?!1:ve.working?ve(Be):Be instanceof Set}A.isSet=Re;function le(Be){return h(Be)==="[object WeakMap]"}le.working=typeof WeakMap!="undefined"&&le(new WeakMap);function xe(Be){return typeof WeakMap=="undefined"?!1:le.working?le(Be):Be instanceof WeakMap}A.isWeakMap=xe;function pe(Be){return h(Be)==="[object WeakSet]"}pe.working=typeof WeakSet!="undefined"&&pe(new WeakSet);function Me(Be){return pe(Be)}A.isWeakSet=Me;function Oe(Be){return h(Be)==="[object ArrayBuffer]"}Oe.working=typeof ArrayBuffer!="undefined"&&Oe(new ArrayBuffer);function Le(Be){return typeof ArrayBuffer=="undefined"?!1:Oe.working?Oe(Be):Be instanceof ArrayBuffer}A.isArrayBuffer=Le;function Pe(Be){return h(Be)==="[object DataView]"}Pe.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Pe(new DataView(new ArrayBuffer(1),0,1));function De(Be){return typeof DataView=="undefined"?!1:Pe.working?Pe(Be):Be instanceof DataView}A.isDataView=De;var Ke=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function ze(Be){return h(Be)==="[object SharedArrayBuffer]"}function it(Be){return typeof Ke=="undefined"?!1:(typeof ze.working=="undefined"&&(ze.working=ze(new Ke)),ze.working?ze(Be):Be instanceof Ke)}A.isSharedArrayBuffer=it;function ot(Be){return h(Be)==="[object AsyncFunction]"}A.isAsyncFunction=ot;function Ge(Be){return h(Be)==="[object Map Iterator]"}A.isMapIterator=Ge;function Ee(Be){return h(Be)==="[object Set Iterator]"}A.isSetIterator=Ee;function fe(Be){return h(Be)==="[object Generator]"}A.isGeneratorObject=fe;function z(Be){return h(Be)==="[object WebAssembly.Module]"}A.isWebAssemblyCompiledModule=z;function X(Be){return N(Be,m)}A.isNumberObject=X;function de(Be){return N(Be,E)}A.isStringObject=de;function Ce(Be){return N(Be,T)}A.isBooleanObject=Ce;function ne(Be){return v&&N(Be,I)}A.isBigIntObject=ne;function re(Be){return c&&N(Be,R)}A.isSymbolObject=re;function he(Be){return X(Be)||de(Be)||Ce(Be)||ne(Be)||re(Be)}A.isBoxedPrimitive=he;function _e(Be){return typeof Uint8Array!="undefined"&&(Le(Be)||it(Be))}A.isAnyArrayBuffer=_e,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Be){Object.defineProperty(A,Be,{enumerable:!1,value:function(){throw new Error(Be+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(s,C,A){(function(u){(function(){var p=Object.getOwnPropertyDescriptors||function(Ke){for(var ze=Object.keys(Ke),it={},ot=0;ot<ze.length;ot++)it[ze[ot]]=Object.getOwnPropertyDescriptor(Ke,ze[ot]);return it},b=/%[sdj%]/g;A.format=function(De){if(!G(De)){for(var Ke=[],ze=0;ze<arguments.length;ze++)Ke.push(c(arguments[ze]));return Ke.join(" ")}for(var ze=1,it=arguments,ot=it.length,Ge=String(De).replace(b,function(fe){if(fe==="%%")return"%";if(ze>=ot)return fe;switch(fe){case"%s":return String(it[ze++]);case"%d":return Number(it[ze++]);case"%j":try{return JSON.stringify(it[ze++])}catch(z){return"[Circular]"}default:return fe}}),Ee=it[ze];ze<ot;Ee=it[++ze])V(Ee)||!oe(Ee)?Ge+=" "+Ee:Ge+=" "+c(Ee);return Ge},A.deprecate=function(De,Ke){if(typeof u!="undefined"&&u.noDeprecation===!0)return De;if(typeof u=="undefined")return function(){return A.deprecate(De,Ke).apply(this,arguments)};var ze=!1;function it(){if(!ze){if(u.throwDeprecation)throw new Error(Ke);u.traceDeprecation?console.trace(Ke):console.error(Ke),ze=!0}return De.apply(this,arguments)}return it};var g={},y=/^$/;if(u.env.NODE_DEBUG){var v=u.env.NODE_DEBUG;v=v.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),y=new RegExp("^"+v+"$","i")}A.debuglog=function(De){if(De=De.toUpperCase(),!g[De])if(y.test(De)){var Ke=u.pid;g[De]=function(){var ze=A.format.apply(A,arguments);console.error("%s %d: %s",De,Ke,ze)}}else g[De]=function(){};return g[De]};function c(De,Ke){var ze={seen:[],stylize:m};return arguments.length>=3&&(ze.depth=arguments[2]),arguments.length>=4&&(ze.colors=arguments[3]),D(Ke)?ze.showHidden=Ke:Ke&&A._extend(ze,Ke),ee(ze.showHidden)&&(ze.showHidden=!1),ee(ze.depth)&&(ze.depth=2),ee(ze.colors)&&(ze.colors=!1),ee(ze.customInspect)&&(ze.customInspect=!0),ze.colors&&(ze.stylize=h),T(ze,De,ze.depth)}A.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function h(De,Ke){var ze=c.styles[Ke];return ze?"\x1B["+c.colors[ze][0]+"m"+De+"\x1B["+c.colors[ze][1]+"m":De}function m(De,Ke){return De}function E(De){var Ke={};return De.forEach(function(ze,it){Ke[ze]=!0}),Ke}function T(De,Ke,ze){if(De.customInspect&&Ke&&ye(Ke.inspect)&&Ke.inspect!==A.inspect&&!(Ke.constructor&&Ke.constructor.prototype===Ke)){var it=Ke.inspect(ze,De);return G(it)||(it=T(De,it,ze)),it}var ot=I(De,Ke);if(ot)return ot;var Ge=Object.keys(Ke),Ee=E(Ge);if(De.showHidden&&(Ge=Object.getOwnPropertyNames(Ke)),se(Ke)&&(Ge.indexOf("message")>=0||Ge.indexOf("description")>=0))return R(Ke);if(Ge.length===0){if(ye(Ke)){var fe=Ke.name?": "+Ke.name:"";return De.stylize("[Function"+fe+"]","special")}if(ae(Ke))return De.stylize(RegExp.prototype.toString.call(Ke),"regexp");if(ue(Ke))return De.stylize(Date.prototype.toString.call(Ke),"date");if(se(Ke))return R(Ke)}var z="",X=!1,de=["{","}"];if(H(Ke)&&(X=!0,de=["[","]"]),ye(Ke)){var Ce=Ke.name?": "+Ke.name:"";z=" [Function"+Ce+"]"}if(ae(Ke)&&(z=" "+RegExp.prototype.toString.call(Ke)),ue(Ke)&&(z=" "+Date.prototype.toUTCString.call(Ke)),se(Ke)&&(z=" "+R(Ke)),Ge.length===0&&(!X||Ke.length==0))return de[0]+z+de[1];if(ze<0)return ae(Ke)?De.stylize(RegExp.prototype.toString.call(Ke),"regexp"):De.stylize("[Object]","special");De.seen.push(Ke);var ne;return X?ne=N(De,Ke,ze,Ee,Ge):ne=Ge.map(function(re){return k(De,Ke,ze,Ee,re,X)}),De.seen.pop(),L(ne,z,de)}function I(De,Ke){if(ee(Ke))return De.stylize("undefined","undefined");if(G(Ke)){var ze="'"+JSON.stringify(Ke).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return De.stylize(ze,"string")}if(U(Ke))return De.stylize(""+Ke,"number");if(D(Ke))return De.stylize(""+Ke,"boolean");if(V(Ke))return De.stylize("null","null")}function R(De){return"["+Error.prototype.toString.call(De)+"]"}function N(De,Ke,ze,it,ot){for(var Ge=[],Ee=0,fe=Ke.length;Ee<fe;++Ee)Me(Ke,String(Ee))?Ge.push(k(De,Ke,ze,it,String(Ee),!0)):Ge.push("");return ot.forEach(function(z){z.match(/^\d+$/)||Ge.push(k(De,Ke,ze,it,z,!0))}),Ge}function k(De,Ke,ze,it,ot,Ge){var Ee,fe,z;if(z=Object.getOwnPropertyDescriptor(Ke,ot)||{value:Ke[ot]},z.get?z.set?fe=De.stylize("[Getter/Setter]","special"):fe=De.stylize("[Getter]","special"):z.set&&(fe=De.stylize("[Setter]","special")),Me(it,ot)||(Ee="["+ot+"]"),fe||(De.seen.indexOf(z.value)<0?(V(ze)?fe=T(De,z.value,null):fe=T(De,z.value,ze-1),fe.indexOf(`
`)>-1&&(Ge?fe=fe.split(`
`).map(function(X){return" "+X}).join(`
`).slice(2):fe=`
`+fe.split(`
`).map(function(X){return" "+X}).join(`
`))):fe=De.stylize("[Circular]","special")),ee(Ee)){if(Ge&&ot.match(/^\d+$/))return fe;Ee=JSON.stringify(""+ot),Ee.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ee=Ee.slice(1,-1),Ee=De.stylize(Ee,"name")):(Ee=Ee.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ee=De.stylize(Ee,"string"))}return Ee+": "+fe}function L(De,Ke,ze){var it=0,ot=De.reduce(function(Ge,Ee){return it++,Ee.indexOf(`
`)>=0&&it++,Ge+Ee.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ot>60?ze[0]+(Ke===""?"":Ke+`
`)+" "+De.join(`,
`)+" "+ze[1]:ze[0]+Ke+" "+De.join(", ")+" "+ze[1]}A.types=s("./support/types");function H(De){return Array.isArray(De)}A.isArray=H;function D(De){return typeof De=="boolean"}A.isBoolean=D;function V(De){return De===null}A.isNull=V;function P(De){return De==null}A.isNullOrUndefined=P;function U(De){return typeof De=="number"}A.isNumber=U;function G(De){return typeof De=="string"}A.isString=G;function J(De){return typeof De=="symbol"}A.isSymbol=J;function ee(De){return De===void 0}A.isUndefined=ee;function ae(De){return oe(De)&&Re(De)==="[object RegExp]"}A.isRegExp=ae,A.types.isRegExp=ae;function oe(De){return typeof De=="object"&&De!==null}A.isObject=oe;function ue(De){return oe(De)&&Re(De)==="[object Date]"}A.isDate=ue,A.types.isDate=ue;function se(De){return oe(De)&&(Re(De)==="[object Error]"||De instanceof Error)}A.isError=se,A.types.isNativeError=se;function ye(De){return typeof De=="function"}A.isFunction=ye;function ve(De){return De===null||typeof De=="boolean"||typeof De=="number"||typeof De=="string"||typeof De=="symbol"||typeof De=="undefined"}A.isPrimitive=ve,A.isBuffer=s("./support/isBuffer");function Re(De){return Object.prototype.toString.call(De)}function le(De){return De<10?"0"+De.toString(10):De.toString(10)}var xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pe(){var De=new Date,Ke=[le(De.getHours()),le(De.getMinutes()),le(De.getSeconds())].join(":");return[De.getDate(),xe[De.getMonth()],Ke].join(" ")}A.log=function(){console.log("%s - %s",pe(),A.format.apply(A,arguments))},A.inherits=s("inherits"),A._extend=function(De,Ke){if(!Ke||!oe(Ke))return De;for(var ze=Object.keys(Ke),it=ze.length;it--;)De[ze[it]]=Ke[ze[it]];return De};function Me(De,Ke){return Object.prototype.hasOwnProperty.call(De,Ke)}var Oe=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;A.promisify=function(Ke){if(typeof Ke!="function")throw new TypeError('The "original" argument must be of type Function');if(Oe&&Ke[Oe]){var ze=Ke[Oe];if(typeof ze!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ze,Oe,{value:ze,enumerable:!1,writable:!1,configurable:!0}),ze}function ze(){for(var it,ot,Ge=new Promise(function(z,X){it=z,ot=X}),Ee=[],fe=0;fe<arguments.length;fe++)Ee.push(arguments[fe]);Ee.push(function(z,X){z?ot(z):it(X)});try{Ke.apply(this,Ee)}catch(z){ot(z)}return Ge}return Object.setPrototypeOf(ze,Object.getPrototypeOf(Ke)),Oe&&Object.defineProperty(ze,Oe,{value:ze,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ze,p(Ke))},A.promisify.custom=Oe;function Le(De,Ke){if(!De){var ze=new Error("Promise was rejected with a falsy value");ze.reason=De,De=ze}return Ke(De)}function Pe(De){if(typeof De!="function")throw new TypeError('The "original" argument must be of type Function');function Ke(){for(var ze=[],it=0;it<arguments.length;it++)ze.push(arguments[it]);var ot=ze.pop();if(typeof ot!="function")throw new TypeError("The last argument must be of type Function");var Ge=this,Ee=function(){return ot.apply(Ge,arguments)};De.apply(this,ze).then(function(fe){u.nextTick(Ee.bind(null,null,fe))},function(fe){u.nextTick(Le.bind(null,fe,Ee))})}return Object.setPrototypeOf(Ke,Object.getPrototypeOf(De)),Object.defineProperties(Ke,p(De)),Ke}A.callbackify=Pe}).call(this)}).call(this,s("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(s,C,A){(function(u){(function(){"use strict";var p=s("for-each"),b=s("available-typed-arrays"),g=s("call-bind"),y=s("call-bind/callBound"),v=s("gopd"),c=y("Object.prototype.toString"),h=s("has-tostringtag/shams")(),m=typeof globalThis=="undefined"?u:globalThis,E=b(),T=y("String.prototype.slice"),I=Object.getPrototypeOf,R=y("Array.prototype.indexOf",!0)||function(D,V){for(var P=0;P<D.length;P+=1)if(D[P]===V)return P;return-1},N={__proto__:null};h&&v&&I?p(E,function(H){var D=new m[H];if(Symbol.toStringTag in D){var V=I(D),P=v(V,Symbol.toStringTag);if(!P){var U=I(V);P=v(U,Symbol.toStringTag)}N["$"+H]=g(P.get)}}):p(E,function(H){var D=new m[H];N["$"+H]=g(D.slice)});var k=function(D){var V=!1;return p(N,function(P,U){if(!V)try{"$"+P(D)===U&&(V=T(U,1))}catch(G){}}),V},L=function(D){var V=!1;return p(N,function(P,U){if(!V)try{P(D),V=T(U,1)}catch(G){}}),V};C.exports=function(D){if(!D||typeof D!="object")return!1;if(!h){var V=T(c(D),8,-1);return R(E,V)>-1?V:V!=="Object"?!1:L(D)}return v?k(D):null}}).call(this)}).call(this,typeof Q!="undefined"?Q: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(s,C,A){(function(){"use strict";A.stripBOM=function(u){return u[0]==="\uFEFF"?u.substring(1):u}}).call(this)},{}],422:[function(s,C,A){(function(){"use strict";var u,p,b,g,y,v={}.hasOwnProperty;u=s("xmlbuilder"),p=s("./defaults").defaults,g=function(c){return typeof c=="string"&&(c.indexOf("&")>=0||c.indexOf(">")>=0||c.indexOf("<")>=0)},y=function(c){return"<![CDATA["+b(c)+"]]>"},b=function(c){return c.replace("]]>","]]]]><![CDATA[>")},A.Builder=function(){function c(h){var m,E,T;this.options={},E=p["0.2"];for(m in E)v.call(E,m)&&(T=E[m],this.options[m]=T);for(m in h)v.call(h,m)&&(T=h[m],this.options[m]=T)}return c.prototype.buildObject=function(h){var m,E,T,I,R;return m=this.options.attrkey,E=this.options.charkey,Object.keys(h).length===1&&this.options.rootName===p["0.2"].rootName?(R=Object.keys(h)[0],h=h[R]):R=this.options.rootName,T=function(N){return function(k,L){var H,D,V,P,U,G;if(typeof L!="object")N.options.cdata&&g(L)?k.raw(y(L)):k.txt(L);else if(Array.isArray(L)){for(P in L)if(v.call(L,P)){D=L[P];for(U in D)V=D[U],k=T(k.ele(U),V).up()}}else for(U in L)if(v.call(L,U))if(D=L[U],U===m){if(typeof D=="object")for(H in D)G=D[H],k=k.att(H,G)}else if(U===E)N.options.cdata&&g(D)?k=k.raw(y(D)):k=k.txt(D);else if(Array.isArray(D))for(P in D)v.call(D,P)&&(V=D[P],typeof V=="string"?N.options.cdata&&g(V)?k=k.ele(U).raw(y(V)).up():k=k.ele(U,V).up():k=T(k.ele(U),V).up());else typeof D=="object"?k=T(k.ele(U),D).up():typeof D=="string"&&N.options.cdata&&g(D)?k=k.ele(U).raw(y(D)).up():(D==null&&(D=""),k=k.ele(U,D.toString()).up());return k}}(this),I=u.create(R,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),T(I,h).end(this.options.renderOpts)},c}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(s,C,A){(function(){A.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(s,C,A){(function(){"use strict";var u,p,b,g,y,v,c,h,m,E=function(R,N){return function(){return R.apply(N,arguments)}},T=function(R,N){for(var k in N)I.call(N,k)&&(R[k]=N[k]);function L(){this.constructor=R}return L.prototype=N.prototype,R.prototype=new L,R.__super__=N.prototype,R},I={}.hasOwnProperty;h=s("sax"),g=s("events"),u=s("./bom"),c=s("./processors"),m=s("timers").setImmediate,p=s("./defaults").defaults,y=function(R){return typeof R=="object"&&R!=null&&Object.keys(R).length===0},v=function(R,N,k){var L,H,D;for(L=0,H=R.length;L<H;L++)D=R[L],N=D(N,k);return N},b=function(R,N,k){var L;return L=Object.create(null),L.value=k,L.writable=!0,L.enumerable=!0,L.configurable=!0,Object.defineProperty(R,N,L)},A.Parser=function(R){T(N,R);function N(k){this.parseStringPromise=E(this.parseStringPromise,this),this.parseString=E(this.parseString,this),this.reset=E(this.reset,this),this.assignOrPush=E(this.assignOrPush,this),this.processAsync=E(this.processAsync,this);var L,H,D;if(!(this instanceof A.Parser))return new A.Parser(k);this.options={},H=p["0.2"];for(L in H)I.call(H,L)&&(D=H[L],this.options[L]=D);for(L in k)I.call(k,L)&&(D=k[L],this.options[L]=D);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(c.normalize)),this.reset()}return N.prototype.processAsync=function(){var k,L;try{return this.remaining.length<=this.options.chunkSize?(k=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(k),this.saxParser.close()):(k=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(k),m(this.processAsync))}catch(H){if(L=H,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(L)}},N.prototype.assignOrPush=function(k,L,H){return L in k?(k[L]instanceof Array||b(k,L,[k[L]]),k[L].push(H)):this.options.explicitArray?b(k,L,[H]):b(k,L,H)},N.prototype.reset=function(){var k,L,H,D;return this.removeAllListeners(),this.saxParser=h.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(V){return function(P){if(V.saxParser.resume(),!V.saxParser.errThrown)return V.saxParser.errThrown=!0,V.emit("error",P)}}(this),this.saxParser.onend=function(V){return function(){if(!V.saxParser.ended)return V.saxParser.ended=!0,V.emit("end",V.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,D=[],k=this.options.attrkey,L=this.options.charkey,this.saxParser.onopentag=function(V){return function(P){var U,G,J,ee,ae;if(J={},J[L]="",!V.options.ignoreAttrs){ae=P.attributes;for(U in ae)I.call(ae,U)&&(!(k in J)&&!V.options.mergeAttrs&&(J[k]={}),G=V.options.attrValueProcessors?v(V.options.attrValueProcessors,P.attributes[U],U):P.attributes[U],ee=V.options.attrNameProcessors?v(V.options.attrNameProcessors,U):U,V.options.mergeAttrs?V.assignOrPush(J,ee,G):b(J[k],ee,G))}return J["#name"]=V.options.tagNameProcessors?v(V.options.tagNameProcessors,P.name):P.name,V.options.xmlns&&(J[V.options.xmlnskey]={uri:P.uri,local:P.local}),D.push(J)}}(this),this.saxParser.onclosetag=function(V){return function(){var P,U,G,J,ee,ae,oe,ue,se,ye;if(ae=D.pop(),ee=ae["#name"],(!V.options.explicitChildren||!V.options.preserveChildrenOrder)&&delete ae["#name"],ae.cdata===!0&&(P=ae.cdata,delete ae.cdata),se=D[D.length-1],ae[L].match(/^\s*$/)&&!P?(U=ae[L],delete ae[L]):(V.options.trim&&(ae[L]=ae[L].trim()),V.options.normalize&&(ae[L]=ae[L].replace(/\s{2,}/g," ").trim()),ae[L]=V.options.valueProcessors?v(V.options.valueProcessors,ae[L],ee):ae[L],Object.keys(ae).length===1&&L in ae&&!V.EXPLICIT_CHARKEY&&(ae=ae[L])),y(ae)&&(typeof V.options.emptyTag=="function"?ae=V.options.emptyTag():ae=V.options.emptyTag!==""?V.options.emptyTag:U),V.options.validator!=null&&(ye="/"+function(){var ve,Re,le;for(le=[],ve=0,Re=D.length;ve<Re;ve++)J=D[ve],le.push(J["#name"]);return le}().concat(ee).join("/"),function(){var ve;try{return ae=V.options.validator(ye,se&&se[ee],ae)}catch(Re){return ve=Re,V.emit("error",ve)}}()),V.options.explicitChildren&&!V.options.mergeAttrs&&typeof ae=="object"){if(!V.options.preserveChildrenOrder)J={},V.options.attrkey in ae&&(J[V.options.attrkey]=ae[V.options.attrkey],delete ae[V.options.attrkey]),!V.options.charsAsChildren&&V.options.charkey in ae&&(J[V.options.charkey]=ae[V.options.charkey],delete ae[V.options.charkey]),Object.getOwnPropertyNames(ae).length>0&&(J[V.options.childkey]=ae),ae=J;else if(se){se[V.options.childkey]=se[V.options.childkey]||[],oe={};for(G in ae)I.call(ae,G)&&b(oe,G,ae[G]);se[V.options.childkey].push(oe),delete ae["#name"],Object.keys(ae).length===1&&L in ae&&!V.EXPLICIT_CHARKEY&&(ae=ae[L])}}return D.length>0?V.assignOrPush(se,ee,ae):(V.options.explicitRoot&&(ue=ae,ae={},b(ae,ee,ue)),V.resultObject=ae,V.saxParser.ended=!0,V.emit("end",V.resultObject))}}(this),H=function(V){return function(P){var U,G;if(G=D[D.length-1],G)return G[L]+=P,V.options.explicitChildren&&V.options.preserveChildrenOrder&&V.options.charsAsChildren&&(V.options.includeWhiteChars||P.replace(/\\n/g,"").trim()!=="")&&(G[V.options.childkey]=G[V.options.childkey]||[],U={"#name":"__text__"},U[L]=P,V.options.normalize&&(U[L]=U[L].replace(/\s{2,}/g," ").trim()),G[V.options.childkey].push(U)),G}}(this),this.saxParser.ontext=H,this.saxParser.oncdata=function(V){return function(P){var U;if(U=H(P),U)return U.cdata=!0}}(this)},N.prototype.parseString=function(k,L){var H;L!=null&&typeof L=="function"&&(this.on("end",function(D){return this.reset(),L(null,D)}),this.on("error",function(D){return this.reset(),L(D)}));try{return k=k.toString(),k.trim()===""?(this.emit("end",null),!0):(k=u.stripBOM(k),this.options.async?(this.remaining=k,m(this.processAsync),this.saxParser):this.saxParser.write(k).close())}catch(D){if(H=D,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw H}else return this.emit("error",H),this.saxParser.errThrown=!0}},N.prototype.parseStringPromise=function(k){return new Promise(function(L){return function(H,D){return L.parseString(k,function(V,P){return V?D(V):H(P)})}}(this))},N}(g),A.parseString=function(R,N,k){var L,H,D;return k!=null?(typeof k=="function"&&(L=k),typeof N=="object"&&(H=N)):(typeof N=="function"&&(L=N),H={}),D=new A.Parser(H),D.parseString(R,L)},A.parseStringPromise=function(R,N){var k,L;return typeof N=="object"&&(k=N),L=new A.Parser(k),L.parseStringPromise(R)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(s,C,A){(function(){"use strict";var u;u=new RegExp(/(?!xmlns)^.*:/),A.normalize=function(p){return p.toLowerCase()},A.firstCharLowerCase=function(p){return p.charAt(0).toLowerCase()+p.slice(1)},A.stripPrefix=function(p){return p.replace(u,"")},A.parseNumbers=function(p){return isNaN(p)||(p=p%1===0?parseInt(p,10):parseFloat(p)),p},A.parseBooleans=function(p){return/^(?:true|false)$/i.test(p)&&(p=p.toLowerCase()==="true"),p}}).call(this)},{}],426:[function(s,C,A){(function(){"use strict";var u,p,b,g,y=function(c,h){for(var m in h)v.call(h,m)&&(c[m]=h[m]);function E(){this.constructor=c}return E.prototype=h.prototype,c.prototype=new E,c.__super__=h.prototype,c},v={}.hasOwnProperty;p=s("./defaults"),u=s("./builder"),b=s("./parser"),g=s("./processors"),A.defaults=p.defaults,A.processors=g,A.ValidationError=function(c){y(h,c);function h(m){this.message=m}return h}(Error),A.Builder=u.Builder,A.Parser=b.Parser,A.parseString=b.parseString,A.parseStringPromise=b.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(s,C,A){(function(){C.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(s,C,A){(function(){C.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(s,C,A){(function(){var u,p,b,g,y,v,c,h=[].slice,m={}.hasOwnProperty;u=function(){var E,T,I,R,N,k;if(k=arguments[0],N=2<=arguments.length?h.call(arguments,1):[],y(Object.assign))Object.assign.apply(null,arguments);else for(E=0,I=N.length;E<I;E++)if(R=N[E],R!=null)for(T in R)m.call(R,T)&&(k[T]=R[T]);return k},y=function(E){return!!E&&Object.prototype.toString.call(E)==="[object Function]"},v=function(E){var T;return!!E&&((T=typeof E)=="function"||T==="object")},b=function(E){return y(Array.isArray)?Array.isArray(E):Object.prototype.toString.call(E)==="[object Array]"},g=function(E){var T;if(b(E))return!E.length;for(T in E)if(m.call(E,T))return!1;return!0},c=function(E){var T,I;return v(E)&&(I=Object.getPrototypeOf(E))&&(T=I.constructor)&&typeof T=="function"&&T instanceof T&&Function.prototype.toString.call(T)===Function.prototype.toString.call(Object)},p=function(E){return y(E.valueOf)?E.valueOf():E},C.exports.assign=u,C.exports.isFunction=y,C.exports.isObject=v,C.exports.isArray=b,C.exports.isEmpty=g,C.exports.isPlainObject=c,C.exports.getValue=p}).call(this)},{}],430:[function(s,C,A){(function(){C.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(s,C,A){(function(){var u,p,b;u=s("./NodeType"),b=s("./XMLNode"),C.exports=p=function(){function g(y,v,c){if(this.parent=y,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),v==null)throw new Error("Missing attribute name. "+this.debugInfo(v));this.name=this.stringify.name(v),this.value=this.stringify.attValue(c),this.type=u.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(g.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(g.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(g.prototype,"textContent",{get:function(){return this.value},set:function(y){return this.value=y||""}}),Object.defineProperty(g.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(g.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(g.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(g.prototype,"specified",{get:function(){return!0}}),g.prototype.clone=function(){return Object.create(this)},g.prototype.toString=function(y){return this.options.writer.attribute(this,this.options.writer.filterOptions(y))},g.prototype.debugInfo=function(y){return y=y||this.name,y==null?"parent: <"+this.parent.name+">":"attribute: {"+y+"}, parent: <"+this.parent.name+">"},g.prototype.isEqualNode=function(y){return!(y.namespaceURI!==this.namespaceURI||y.prefix!==this.prefix||y.localName!==this.localName||y.value!==this.value)},g}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(s,C,A){(function(){var u,p,b,g=function(v,c){for(var h in c)y.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},y={}.hasOwnProperty;u=s("./NodeType"),b=s("./XMLCharacterData"),C.exports=p=function(v){g(c,v);function c(h,m){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=u.CData,this.value=this.stringify.cdata(m)}return c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(h){return this.options.writer.cdata(this,this.options.writer.filterOptions(h))},c}(b)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(s,C,A){(function(){var u,p,b=function(y,v){for(var c in v)g.call(v,c)&&(y[c]=v[c]);function h(){this.constructor=y}return h.prototype=v.prototype,y.prototype=new h,y.__super__=v.prototype,y},g={}.hasOwnProperty;p=s("./XMLNode"),C.exports=u=function(y){b(v,y);function v(c){v.__super__.constructor.call(this,c),this.value=""}return Object.defineProperty(v.prototype,"data",{get:function(){return this.value},set:function(c){return this.value=c||""}}),Object.defineProperty(v.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(v.prototype,"textContent",{get:function(){return this.value},set:function(c){return this.value=c||""}}),v.prototype.clone=function(){return Object.create(this)},v.prototype.substringData=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.appendData=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.insertData=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.deleteData=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.replaceData=function(c,h,m){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.isEqualNode=function(c){return!(!v.__super__.isEqualNode.apply(this,arguments).isEqualNode(c)||c.data!==this.data)},v}(p)}).call(this)},{"./XMLNode":450}],434:[function(s,C,A){(function(){var u,p,b,g=function(v,c){for(var h in c)y.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},y={}.hasOwnProperty;u=s("./NodeType"),p=s("./XMLCharacterData"),C.exports=b=function(v){g(c,v);function c(h,m){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=u.Comment,this.value=this.stringify.comment(m)}return c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(h){return this.options.writer.comment(this,this.options.writer.filterOptions(h))},c}(p)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(s,C,A){(function(){var u,p,b;p=s("./XMLDOMErrorHandler"),b=s("./XMLDOMStringList"),C.exports=u=function(){function g(){var y;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new p,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=y=Object.create(this.defaultParams)}return Object.defineProperty(g.prototype,"parameterNames",{get:function(){return new b(Object.keys(this.defaultParams))}}),g.prototype.getParameter=function(y){return this.params.hasOwnProperty(y)?this.params[y]:null},g.prototype.canSetParameter=function(y,v){return!0},g.prototype.setParameter=function(y,v){return v!=null?this.params[y]=v:delete this.params[y]},g}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(s,C,A){(function(){var u;C.exports=u=function(){function p(){}return p.prototype.handleError=function(b){throw new Error(b)},p}()}).call(this)},{}],437:[function(s,C,A){(function(){var u;C.exports=u=function(){function p(){}return p.prototype.hasFeature=function(b,g){return!0},p.prototype.createDocumentType=function(b,g,y){throw new Error("This DOM method is not implemented.")},p.prototype.createDocument=function(b,g,y){throw new Error("This DOM method is not implemented.")},p.prototype.createHTMLDocument=function(b){throw new Error("This DOM method is not implemented.")},p.prototype.getFeature=function(b,g){throw new Error("This DOM method is not implemented.")},p}()}).call(this)},{}],438:[function(s,C,A){(function(){var u;C.exports=u=function(){function p(b){this.arr=b||[]}return Object.defineProperty(p.prototype,"length",{get:function(){return this.arr.length}}),p.prototype.item=function(b){return this.arr[b]||null},p.prototype.contains=function(b){return this.arr.indexOf(b)!==-1},p}()}).call(this)},{}],439:[function(s,C,A){(function(){var u,p,b,g=function(v,c){for(var h in c)y.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},y={}.hasOwnProperty;b=s("./XMLNode"),u=s("./NodeType"),C.exports=p=function(v){g(c,v);function c(h,m,E,T,I,R){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(E==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(m));if(!T)throw new Error("Missing DTD attribute type. "+this.debugInfo(m));if(!I)throw new Error("Missing DTD attribute default. "+this.debugInfo(m));if(I.indexOf("#")!==0&&(I="#"+I),!I.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(m));if(R&&!I.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(m));this.elementName=this.stringify.name(m),this.type=u.AttributeDeclaration,this.attributeName=this.stringify.name(E),this.attributeType=this.stringify.dtdAttType(T),R&&(this.defaultValue=this.stringify.dtdAttDefault(R)),this.defaultValueType=I}return c.prototype.toString=function(h){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(h))},c}(b)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(s,C,A){(function(){var u,p,b,g=function(v,c){for(var h in c)y.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},y={}.hasOwnProperty;b=s("./XMLNode"),u=s("./NodeType"),C.exports=p=function(v){g(c,v);function c(h,m,E){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing DTD element name. "+this.debugInfo());E||(E="(#PCDATA)"),Array.isArray(E)&&(E="("+E.join(",")+")"),this.name=this.stringify.name(m),this.type=u.ElementDeclaration,this.value=this.stringify.dtdElementValue(E)}return c.prototype.toString=function(h){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(h))},c}(b)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(s,C,A){(function(){var u,p,b,g,y=function(c,h){for(var m in h)v.call(h,m)&&(c[m]=h[m]);function E(){this.constructor=c}return E.prototype=h.prototype,c.prototype=new E,c.__super__=h.prototype,c},v={}.hasOwnProperty;g=s("./Utility").isObject,b=s("./XMLNode"),u=s("./NodeType"),C.exports=p=function(c){y(h,c);function h(m,E,T,I){if(h.__super__.constructor.call(this,m),T==null)throw new Error("Missing DTD entity name. "+this.debugInfo(T));if(I==null)throw new Error("Missing DTD entity value. "+this.debugInfo(T));if(this.pe=!!E,this.name=this.stringify.name(T),this.type=u.EntityDeclaration,!g(I))this.value=this.stringify.dtdEntityValue(I),this.internal=!0;else{if(!I.pubID&&!I.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(T));if(I.pubID&&!I.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(T));if(this.internal=!1,I.pubID!=null&&(this.pubID=this.stringify.dtdPubID(I.pubID)),I.sysID!=null&&(this.sysID=this.stringify.dtdSysID(I.sysID)),I.nData!=null&&(this.nData=this.stringify.dtdNData(I.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(T))}}return Object.defineProperty(h.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(h.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(h.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(h.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(h.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(h.prototype,"xmlVersion",{get:function(){return null}}),h.prototype.toString=function(m){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(m))},h}(b)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(s,C,A){(function(){var u,p,b,g=function(v,c){for(var h in c)y.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},y={}.hasOwnProperty;b=s("./XMLNode"),u=s("./NodeType"),C.exports=p=function(v){g(c,v);function c(h,m,E){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing DTD notation name. "+this.debugInfo(m));if(!E.pubID&&!E.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(m));this.name=this.stringify.name(m),this.type=u.NotationDeclaration,E.pubID!=null&&(this.pubID=this.stringify.dtdPubID(E.pubID)),E.sysID!=null&&(this.sysID=this.stringify.dtdSysID(E.sysID))}return Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),c.prototype.toString=function(h){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(h))},c}(b)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(s,C,A){(function(){var u,p,b,g,y=function(c,h){for(var m in h)v.call(h,m)&&(c[m]=h[m]);function E(){this.constructor=c}return E.prototype=h.prototype,c.prototype=new E,c.__super__=h.prototype,c},v={}.hasOwnProperty;g=s("./Utility").isObject,b=s("./XMLNode"),u=s("./NodeType"),C.exports=p=function(c){y(h,c);function h(m,E,T,I){var R;h.__super__.constructor.call(this,m),g(E)&&(R=E,E=R.version,T=R.encoding,I=R.standalone),E||(E="1.0"),this.type=u.Declaration,this.version=this.stringify.xmlVersion(E),T!=null&&(this.encoding=this.stringify.xmlEncoding(T)),I!=null&&(this.standalone=this.stringify.xmlStandalone(I))}return h.prototype.toString=function(m){return this.options.writer.declaration(this,this.options.writer.filterOptions(m))},h}(b)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(s,C,A){(function(){var u,p,b,g,y,v,c,h,m,E=function(I,R){for(var N in R)T.call(R,N)&&(I[N]=R[N]);function k(){this.constructor=I}return k.prototype=R.prototype,I.prototype=new k,I.__super__=R.prototype,I},T={}.hasOwnProperty;m=s("./Utility").isObject,h=s("./XMLNode"),u=s("./NodeType"),p=s("./XMLDTDAttList"),g=s("./XMLDTDEntity"),b=s("./XMLDTDElement"),y=s("./XMLDTDNotation"),c=s("./XMLNamedNodeMap"),C.exports=v=function(I){E(R,I);function R(N,k,L){var H,D,V,P,U,G;if(R.__super__.constructor.call(this,N),this.type=u.DocType,N.children){for(P=N.children,D=0,V=P.length;D<V;D++)if(H=P[D],H.type===u.Element){this.name=H.name;break}}this.documentObject=N,m(k)&&(U=k,k=U.pubID,L=U.sysID),L==null&&(G=[k,L],L=G[0],k=G[1]),k!=null&&(this.pubID=this.stringify.dtdPubID(k)),L!=null&&(this.sysID=this.stringify.dtdSysID(L))}return Object.defineProperty(R.prototype,"entities",{get:function(){var N,k,L,H,D;for(H={},D=this.children,k=0,L=D.length;k<L;k++)N=D[k],N.type===u.EntityDeclaration&&!N.pe&&(H[N.name]=N);return new c(H)}}),Object.defineProperty(R.prototype,"notations",{get:function(){var N,k,L,H,D;for(H={},D=this.children,k=0,L=D.length;k<L;k++)N=D[k],N.type===u.NotationDeclaration&&(H[N.name]=N);return new c(H)}}),Object.defineProperty(R.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(R.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(R.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),R.prototype.element=function(N,k){var L;return L=new b(this,N,k),this.children.push(L),this},R.prototype.attList=function(N,k,L,H,D){var V;return V=new p(this,N,k,L,H,D),this.children.push(V),this},R.prototype.entity=function(N,k){var L;return L=new g(this,!1,N,k),this.children.push(L),this},R.prototype.pEntity=function(N,k){var L;return L=new g(this,!0,N,k),this.children.push(L),this},R.prototype.notation=function(N,k){var L;return L=new y(this,N,k),this.children.push(L),this},R.prototype.toString=function(N){return this.options.writer.docType(this,this.options.writer.filterOptions(N))},R.prototype.ele=function(N,k){return this.element(N,k)},R.prototype.att=function(N,k,L,H,D){return this.attList(N,k,L,H,D)},R.prototype.ent=function(N,k){return this.entity(N,k)},R.prototype.pent=function(N,k){return this.pEntity(N,k)},R.prototype.not=function(N,k){return this.notation(N,k)},R.prototype.up=function(){return this.root()||this.documentObject},R.prototype.isEqualNode=function(N){return!(!R.__super__.isEqualNode.apply(this,arguments).isEqualNode(N)||N.name!==this.name||N.publicId!==this.publicId||N.systemId!==this.systemId)},R}(h)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(s,C,A){(function(){var u,p,b,g,y,v,c,h,m=function(T,I){for(var R in I)E.call(I,R)&&(T[R]=I[R]);function N(){this.constructor=T}return N.prototype=I.prototype,T.prototype=new N,T.__super__=I.prototype,T},E={}.hasOwnProperty;h=s("./Utility").isPlainObject,b=s("./XMLDOMImplementation"),p=s("./XMLDOMConfiguration"),y=s("./XMLNode"),u=s("./NodeType"),c=s("./XMLStringifier"),v=s("./XMLStringWriter"),C.exports=g=function(T){m(I,T);function I(R){I.__super__.constructor.call(this,null),this.name="#document",this.type=u.Document,this.documentURI=null,this.domConfig=new p,R||(R={}),R.writer||(R.writer=new v),this.options=R,this.stringify=new c(R)}return Object.defineProperty(I.prototype,"implementation",{value:new b}),Object.defineProperty(I.prototype,"doctype",{get:function(){var R,N,k,L;for(L=this.children,N=0,k=L.length;N<k;N++)if(R=L[N],R.type===u.DocType)return R;return null}}),Object.defineProperty(I.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(I.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(I.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(I.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].encoding:null}}),Object.defineProperty(I.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(I.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(I.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(I.prototype,"origin",{get:function(){return null}}),Object.defineProperty(I.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(I.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(I.prototype,"contentType",{get:function(){return null}}),I.prototype.end=function(R){var N;return N={},R?h(R)&&(N=R,R=this.options.writer):R=this.options.writer,R.document(this,R.filterOptions(N))},I.prototype.toString=function(R){return this.options.writer.document(this,this.options.writer.filterOptions(R))},I.prototype.createElement=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createTextNode=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createComment=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createCDATASection=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createProcessingInstruction=function(R,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createAttribute=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createEntityReference=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.getElementsByTagName=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.importNode=function(R,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createElementNS=function(R,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createAttributeNS=function(R,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.getElementsByTagNameNS=function(R,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.getElementById=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.adoptNode=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.renameNode=function(R,N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.getElementsByClassName=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createEvent=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createNodeIterator=function(R,N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createTreeWalker=function(R,N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},I}(y)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(s,C,A){(function(){var u,p,b,g,y,v,c,h,m,E,T,I,R,N,k,L,H,D,V,P,U,G,J,ee,ae={}.hasOwnProperty;ee=s("./Utility"),G=ee.isObject,U=ee.isFunction,J=ee.isPlainObject,P=ee.getValue,u=s("./NodeType"),I=s("./XMLDocument"),N=s("./XMLElement"),g=s("./XMLCData"),y=s("./XMLComment"),L=s("./XMLRaw"),V=s("./XMLText"),k=s("./XMLProcessingInstruction"),E=s("./XMLDeclaration"),T=s("./XMLDocType"),v=s("./XMLDTDAttList"),h=s("./XMLDTDEntity"),c=s("./XMLDTDElement"),m=s("./XMLDTDNotation"),b=s("./XMLAttribute"),D=s("./XMLStringifier"),H=s("./XMLStringWriter"),p=s("./WriterState"),C.exports=R=function(){function oe(ue,se,ye){var ve;this.name="?xml",this.type=u.Document,ue||(ue={}),ve={},ue.writer?J(ue.writer)&&(ve=ue.writer,ue.writer=new H):ue.writer=new H,this.options=ue,this.writer=ue.writer,this.writerOptions=this.writer.filterOptions(ve),this.stringify=new D(ue),this.onDataCallback=se||function(){},this.onEndCallback=ye||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return oe.prototype.createChildNode=function(ue){var se,ye,ve,Re,le,xe,pe,Me;switch(ue.type){case u.CData:this.cdata(ue.value);break;case u.Comment:this.comment(ue.value);break;case u.Element:ve={},pe=ue.attribs;for(ye in pe)ae.call(pe,ye)&&(se=pe[ye],ve[ye]=se.value);this.node(ue.name,ve);break;case u.Dummy:this.dummy();break;case u.Raw:this.raw(ue.value);break;case u.Text:this.text(ue.value);break;case u.ProcessingInstruction:this.instruction(ue.target,ue.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+ue.constructor.name)}for(Me=ue.children,le=0,xe=Me.length;le<xe;le++)Re=Me[le],this.createChildNode(Re),Re.type===u.Element&&this.up();return this},oe.prototype.dummy=function(){return this},oe.prototype.node=function(ue,se,ye){var ve;if(ue==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(ue));return this.openCurrent(),ue=P(ue),se==null&&(se={}),se=P(se),G(se)||(ve=[se,ye],ye=ve[0],se=ve[1]),this.currentNode=new N(this,ue,se),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,ye!=null&&this.text(ye),this},oe.prototype.element=function(ue,se,ye){var ve,Re,le,xe,pe,Me;if(this.currentNode&&this.currentNode.type===u.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(ue)||G(ue)||U(ue))for(xe=this.options.noValidation,this.options.noValidation=!0,Me=new I(this.options).element("TEMP_ROOT"),Me.element(ue),this.options.noValidation=xe,pe=Me.children,Re=0,le=pe.length;Re<le;Re++)ve=pe[Re],this.createChildNode(ve),ve.type===u.Element&&this.up();else this.node(ue,se,ye);return this},oe.prototype.attribute=function(ue,se){var ye,ve;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(ue));if(ue!=null&&(ue=P(ue)),G(ue))for(ye in ue)ae.call(ue,ye)&&(ve=ue[ye],this.attribute(ye,ve));else U(se)&&(se=se.apply()),this.options.keepNullAttributes&&se==null?this.currentNode.attribs[ue]=new b(this,ue,""):se!=null&&(this.currentNode.attribs[ue]=new b(this,ue,se));return this},oe.prototype.text=function(ue){var se;return this.openCurrent(),se=new V(this,ue),this.onData(this.writer.text(se,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.cdata=function(ue){var se;return this.openCurrent(),se=new g(this,ue),this.onData(this.writer.cdata(se,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.comment=function(ue){var se;return this.openCurrent(),se=new y(this,ue),this.onData(this.writer.comment(se,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.raw=function(ue){var se;return this.openCurrent(),se=new L(this,ue),this.onData(this.writer.raw(se,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.instruction=function(ue,se){var ye,ve,Re,le,xe;if(this.openCurrent(),ue!=null&&(ue=P(ue)),se!=null&&(se=P(se)),Array.isArray(ue))for(ye=0,le=ue.length;ye<le;ye++)ve=ue[ye],this.instruction(ve);else if(G(ue))for(ve in ue)ae.call(ue,ve)&&(Re=ue[ve],this.instruction(ve,Re));else U(se)&&(se=se.apply()),xe=new k(this,ue,se),this.onData(this.writer.processingInstruction(xe,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},oe.prototype.declaration=function(ue,se,ye){var ve;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return ve=new E(this,ue,se,ye),this.onData(this.writer.declaration(ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.doctype=function(ue,se,ye){if(this.openCurrent(),ue==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 T(this,se,ye),this.currentNode.rootNodeName=ue,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},oe.prototype.dtdElement=function(ue,se){var ye;return this.openCurrent(),ye=new c(this,ue,se),this.onData(this.writer.dtdElement(ye,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.attList=function(ue,se,ye,ve,Re){var le;return this.openCurrent(),le=new v(this,ue,se,ye,ve,Re),this.onData(this.writer.dtdAttList(le,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.entity=function(ue,se){var ye;return this.openCurrent(),ye=new h(this,!1,ue,se),this.onData(this.writer.dtdEntity(ye,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.pEntity=function(ue,se){var ye;return this.openCurrent(),ye=new h(this,!0,ue,se),this.onData(this.writer.dtdEntity(ye,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.notation=function(ue,se){var ye;return this.openCurrent(),ye=new m(this,ue,se),this.onData(this.writer.dtdNotation(ye,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.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},oe.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},oe.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},oe.prototype.openNode=function(ue){var se,ye,ve,Re;if(!ue.isOpen){if(!this.root&&this.currentLevel===0&&ue.type===u.Element&&(this.root=ue),ye="",ue.type===u.Element){this.writerOptions.state=p.OpenTag,ye=this.writer.indent(ue,this.writerOptions,this.currentLevel)+"<"+ue.name,Re=ue.attribs;for(ve in Re)ae.call(Re,ve)&&(se=Re[ve],ye+=this.writer.attribute(se,this.writerOptions,this.currentLevel));ye+=(ue.children?">":"/>")+this.writer.endline(ue,this.writerOptions,this.currentLevel),this.writerOptions.state=p.InsideTag}else this.writerOptions.state=p.OpenTag,ye=this.writer.indent(ue,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+ue.rootNodeName,ue.pubID&&ue.sysID?ye+=' PUBLIC "'+ue.pubID+'" "'+ue.sysID+'"':ue.sysID&&(ye+=' SYSTEM "'+ue.sysID+'"'),ue.children?(ye+=" [",this.writerOptions.state=p.InsideTag):(this.writerOptions.state=p.CloseTag,ye+=">"),ye+=this.writer.endline(ue,this.writerOptions,this.currentLevel);return this.onData(ye,this.currentLevel),ue.isOpen=!0}},oe.prototype.closeNode=function(ue){var se;if(!ue.isClosed)return se="",this.writerOptions.state=p.CloseTag,ue.type===u.Element?se=this.writer.indent(ue,this.writerOptions,this.currentLevel)+"</"+ue.name+">"+this.writer.endline(ue,this.writerOptions,this.currentLevel):se=this.writer.indent(ue,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(ue,this.writerOptions,this.currentLevel),this.writerOptions.state=p.None,this.onData(se,this.currentLevel),ue.isClosed=!0},oe.prototype.onData=function(ue,se){return this.documentStarted=!0,this.onDataCallback(ue,se+1)},oe.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},oe.prototype.debugInfo=function(ue){return ue==null?"":"node: <"+ue+">"},oe.prototype.ele=function(){return this.element.apply(this,arguments)},oe.prototype.nod=function(ue,se,ye){return this.node(ue,se,ye)},oe.prototype.txt=function(ue){return this.text(ue)},oe.prototype.dat=function(ue){return this.cdata(ue)},oe.prototype.com=function(ue){return this.comment(ue)},oe.prototype.ins=function(ue,se){return this.instruction(ue,se)},oe.prototype.dec=function(ue,se,ye){return this.declaration(ue,se,ye)},oe.prototype.dtd=function(ue,se,ye){return this.doctype(ue,se,ye)},oe.prototype.e=function(ue,se,ye){return this.element(ue,se,ye)},oe.prototype.n=function(ue,se,ye){return this.node(ue,se,ye)},oe.prototype.t=function(ue){return this.text(ue)},oe.prototype.d=function(ue){return this.cdata(ue)},oe.prototype.c=function(ue){return this.comment(ue)},oe.prototype.r=function(ue){return this.raw(ue)},oe.prototype.i=function(ue,se){return this.instruction(ue,se)},oe.prototype.att=function(){return this.currentNode&&this.currentNode.type===u.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},oe.prototype.a=function(){return this.currentNode&&this.currentNode.type===u.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},oe.prototype.ent=function(ue,se){return this.entity(ue,se)},oe.prototype.pent=function(ue,se){return this.pEntity(ue,se)},oe.prototype.not=function(ue,se){return this.notation(ue,se)},oe}()}).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(s,C,A){(function(){var u,p,b,g=function(v,c){for(var h in c)y.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},y={}.hasOwnProperty;b=s("./XMLNode"),u=s("./NodeType"),C.exports=p=function(v){g(c,v);function c(h){c.__super__.constructor.call(this,h),this.type=u.Dummy}return c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(h){return""},c}(b)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(s,C,A){(function(){var u,p,b,g,y,v,c,h,m,E=function(I,R){for(var N in R)T.call(R,N)&&(I[N]=R[N]);function k(){this.constructor=I}return k.prototype=R.prototype,I.prototype=new k,I.__super__=R.prototype,I},T={}.hasOwnProperty;m=s("./Utility"),h=m.isObject,c=m.isFunction,v=m.getValue,y=s("./XMLNode"),u=s("./NodeType"),p=s("./XMLAttribute"),g=s("./XMLNamedNodeMap"),C.exports=b=function(I){E(R,I);function R(N,k,L){var H,D,V,P;if(R.__super__.constructor.call(this,N),k==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(k),this.type=u.Element,this.attribs={},this.schemaTypeInfo=null,L!=null&&this.attribute(L),N.type===u.Document&&(this.isRoot=!0,this.documentObject=N,N.rootObject=this,N.children)){for(P=N.children,D=0,V=P.length;D<V;D++)if(H=P[D],H.type===u.DocType){H.name=this.name;break}}}return Object.defineProperty(R.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(R.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(R.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(R.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(R.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(R.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(R.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(R.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new g(this.attribs)),this.attributeMap}}),R.prototype.clone=function(){var N,k,L,H;L=Object.create(this),L.isRoot&&(L.documentObject=null),L.attribs={},H=this.attribs;for(k in H)T.call(H,k)&&(N=H[k],L.attribs[k]=N.clone());return L.children=[],this.children.forEach(function(D){var V;return V=D.clone(),V.parent=L,L.children.push(V)}),L},R.prototype.attribute=function(N,k){var L,H;if(N!=null&&(N=v(N)),h(N))for(L in N)T.call(N,L)&&(H=N[L],this.attribute(L,H));else c(k)&&(k=k.apply()),this.options.keepNullAttributes&&k==null?this.attribs[N]=new p(this,N,""):k!=null&&(this.attribs[N]=new p(this,N,k));return this},R.prototype.removeAttribute=function(N){var k,L,H;if(N==null)throw new Error("Missing attribute name. "+this.debugInfo());if(N=v(N),Array.isArray(N))for(L=0,H=N.length;L<H;L++)k=N[L],delete this.attribs[k];else delete this.attribs[N];return this},R.prototype.toString=function(N){return this.options.writer.element(this,this.options.writer.filterOptions(N))},R.prototype.att=function(N,k){return this.attribute(N,k)},R.prototype.a=function(N,k){return this.attribute(N,k)},R.prototype.getAttribute=function(N){return this.attribs.hasOwnProperty(N)?this.attribs[N].value:null},R.prototype.setAttribute=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getAttributeNode=function(N){return this.attribs.hasOwnProperty(N)?this.attribs[N]:null},R.prototype.setAttributeNode=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.removeAttributeNode=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByTagName=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getAttributeNS=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.setAttributeNS=function(N,k,L){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.removeAttributeNS=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getAttributeNodeNS=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.setAttributeNodeNS=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByTagNameNS=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.hasAttribute=function(N){return this.attribs.hasOwnProperty(N)},R.prototype.hasAttributeNS=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.setIdAttribute=function(N,k){return this.attribs.hasOwnProperty(N)?this.attribs[N].isId:k},R.prototype.setIdAttributeNS=function(N,k,L){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.setIdAttributeNode=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByTagName=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByTagNameNS=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByClassName=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.isEqualNode=function(N){var k,L,H;if(!R.__super__.isEqualNode.apply(this,arguments).isEqualNode(N)||N.namespaceURI!==this.namespaceURI||N.prefix!==this.prefix||N.localName!==this.localName||N.attribs.length!==this.attribs.length)return!1;for(k=L=0,H=this.attribs.length-1;0<=H?L<=H:L>=H;k=0<=H?++L:--L)if(!this.attribs[k].isEqualNode(N.attribs[k]))return!1;return!0},R}(y)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(s,C,A){(function(){var u;C.exports=u=function(){function p(b){this.nodes=b}return Object.defineProperty(p.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),p.prototype.clone=function(){return this.nodes=null},p.prototype.getNamedItem=function(b){return this.nodes[b]},p.prototype.setNamedItem=function(b){var g;return g=this.nodes[b.nodeName],this.nodes[b.nodeName]=b,g||null},p.prototype.removeNamedItem=function(b){var g;return g=this.nodes[b],delete this.nodes[b],g||null},p.prototype.item=function(b){return this.nodes[Object.keys(this.nodes)[b]]||null},p.prototype.getNamedItemNS=function(b,g){throw new Error("This DOM method is not implemented.")},p.prototype.setNamedItemNS=function(b){throw new Error("This DOM method is not implemented.")},p.prototype.removeNamedItemNS=function(b,g){throw new Error("This DOM method is not implemented.")},p}()}).call(this)},{}],450:[function(s,C,A){(function(){var u,p,b,g,y,v,c,h,m,E,T,I,R,N,k,L,H,D,V,P={}.hasOwnProperty;V=s("./Utility"),D=V.isObject,H=V.isFunction,L=V.isEmpty,k=V.getValue,h=null,b=null,g=null,y=null,v=null,R=null,N=null,I=null,c=null,p=null,T=null,m=null,u=null,C.exports=E=function(){function U(G){this.parent=G,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,h||(h=s("./XMLElement"),b=s("./XMLCData"),g=s("./XMLComment"),y=s("./XMLDeclaration"),v=s("./XMLDocType"),R=s("./XMLRaw"),N=s("./XMLText"),I=s("./XMLProcessingInstruction"),c=s("./XMLDummy"),p=s("./NodeType"),T=s("./XMLNodeList"),m=s("./XMLNamedNodeMap"),u=s("./DocumentPosition"))}return Object.defineProperty(U.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(U.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(U.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(U.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(U.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new T(this.children)),this.childNodeList}}),Object.defineProperty(U.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(U.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(U.prototype,"previousSibling",{get:function(){var G;return G=this.parent.children.indexOf(this),this.parent.children[G-1]||null}}),Object.defineProperty(U.prototype,"nextSibling",{get:function(){var G;return G=this.parent.children.indexOf(this),this.parent.children[G+1]||null}}),Object.defineProperty(U.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(U.prototype,"textContent",{get:function(){var G,J,ee,ae,oe;if(this.nodeType===p.Element||this.nodeType===p.DocumentFragment){for(oe="",ae=this.children,J=0,ee=ae.length;J<ee;J++)G=ae[J],G.textContent&&(oe+=G.textContent);return oe}else return null},set:function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),U.prototype.setParent=function(G){var J,ee,ae,oe,ue;for(this.parent=G,G&&(this.options=G.options,this.stringify=G.stringify),oe=this.children,ue=[],ee=0,ae=oe.length;ee<ae;ee++)J=oe[ee],ue.push(J.setParent(this));return ue},U.prototype.element=function(G,J,ee){var ae,oe,ue,se,ye,ve,Re,le,xe,pe,Me;if(ve=null,J===null&&ee==null&&(xe=[{},null],J=xe[0],ee=xe[1]),J==null&&(J={}),J=k(J),D(J)||(pe=[J,ee],ee=pe[0],J=pe[1]),G!=null&&(G=k(G)),Array.isArray(G))for(ue=0,Re=G.length;ue<Re;ue++)oe=G[ue],ve=this.element(oe);else if(H(G))ve=this.element(G.apply());else if(D(G)){for(ye in G)if(P.call(G,ye))if(Me=G[ye],H(Me)&&(Me=Me.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ye.indexOf(this.stringify.convertAttKey)===0)ve=this.attribute(ye.substr(this.stringify.convertAttKey.length),Me);else if(!this.options.separateArrayItems&&Array.isArray(Me)&&L(Me))ve=this.dummy();else if(D(Me)&&L(Me))ve=this.element(ye);else if(!this.options.keepNullNodes&&Me==null)ve=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(Me))for(se=0,le=Me.length;se<le;se++)oe=Me[se],ae={},ae[ye]=oe,ve=this.element(ae);else D(Me)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ye.indexOf(this.stringify.convertTextKey)===0?ve=this.element(Me):(ve=this.element(ye),ve.element(Me)):ve=this.element(ye,Me)}else!this.options.keepNullNodes&&ee===null?ve=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&G.indexOf(this.stringify.convertTextKey)===0?ve=this.text(ee):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&G.indexOf(this.stringify.convertCDataKey)===0?ve=this.cdata(ee):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&G.indexOf(this.stringify.convertCommentKey)===0?ve=this.comment(ee):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&G.indexOf(this.stringify.convertRawKey)===0?ve=this.raw(ee):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&G.indexOf(this.stringify.convertPIKey)===0?ve=this.instruction(G.substr(this.stringify.convertPIKey.length),ee):ve=this.node(G,J,ee);if(ve==null)throw new Error("Could not create any elements with: "+G+". "+this.debugInfo());return ve},U.prototype.insertBefore=function(G,J,ee){var ae,oe,ue,se,ye;if(G!=null&&G.type)return ue=G,se=J,ue.setParent(this),se?(oe=children.indexOf(se),ye=children.splice(oe),children.push(ue),Array.prototype.push.apply(children,ye)):children.push(ue),ue;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(G));return oe=this.parent.children.indexOf(this),ye=this.parent.children.splice(oe),ae=this.parent.element(G,J,ee),Array.prototype.push.apply(this.parent.children,ye),ae},U.prototype.insertAfter=function(G,J,ee){var ae,oe,ue;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(G));return oe=this.parent.children.indexOf(this),ue=this.parent.children.splice(oe+1),ae=this.parent.element(G,J,ee),Array.prototype.push.apply(this.parent.children,ue),ae},U.prototype.remove=function(){var G,J;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return G=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[G,G-G+1].concat(J=[])),this.parent},U.prototype.node=function(G,J,ee){var ae,oe;return G!=null&&(G=k(G)),J||(J={}),J=k(J),D(J)||(oe=[J,ee],ee=oe[0],J=oe[1]),ae=new h(this,G,J),ee!=null&&ae.text(ee),this.children.push(ae),ae},U.prototype.text=function(G){var J;return D(G)&&this.element(G),J=new N(this,G),this.children.push(J),this},U.prototype.cdata=function(G){var J;return J=new b(this,G),this.children.push(J),this},U.prototype.comment=function(G){var J;return J=new g(this,G),this.children.push(J),this},U.prototype.commentBefore=function(G){var J,ee,ae;return ee=this.parent.children.indexOf(this),ae=this.parent.children.splice(ee),J=this.parent.comment(G),Array.prototype.push.apply(this.parent.children,ae),this},U.prototype.commentAfter=function(G){var J,ee,ae;return ee=this.parent.children.indexOf(this),ae=this.parent.children.splice(ee+1),J=this.parent.comment(G),Array.prototype.push.apply(this.parent.children,ae),this},U.prototype.raw=function(G){var J;return J=new R(this,G),this.children.push(J),this},U.prototype.dummy=function(){var G;return G=new c(this),G},U.prototype.instruction=function(G,J){var ee,ae,oe,ue,se;if(G!=null&&(G=k(G)),J!=null&&(J=k(J)),Array.isArray(G))for(ue=0,se=G.length;ue<se;ue++)ee=G[ue],this.instruction(ee);else if(D(G))for(ee in G)P.call(G,ee)&&(ae=G[ee],this.instruction(ee,ae));else H(J)&&(J=J.apply()),oe=new I(this,G,J),this.children.push(oe);return this},U.prototype.instructionBefore=function(G,J){var ee,ae,oe;return ae=this.parent.children.indexOf(this),oe=this.parent.children.splice(ae),ee=this.parent.instruction(G,J),Array.prototype.push.apply(this.parent.children,oe),this},U.prototype.instructionAfter=function(G,J){var ee,ae,oe;return ae=this.parent.children.indexOf(this),oe=this.parent.children.splice(ae+1),ee=this.parent.instruction(G,J),Array.prototype.push.apply(this.parent.children,oe),this},U.prototype.declaration=function(G,J,ee){var ae,oe;return ae=this.document(),oe=new y(ae,G,J,ee),ae.children.length===0?ae.children.unshift(oe):ae.children[0].type===p.Declaration?ae.children[0]=oe:ae.children.unshift(oe),ae.root()||ae},U.prototype.dtd=function(G,J){var ee,ae,oe,ue,se,ye,ve,Re,le,xe;for(ae=this.document(),oe=new v(ae,G,J),le=ae.children,ue=se=0,ve=le.length;se<ve;ue=++se)if(ee=le[ue],ee.type===p.DocType)return ae.children[ue]=oe,oe;for(xe=ae.children,ue=ye=0,Re=xe.length;ye<Re;ue=++ye)if(ee=xe[ue],ee.isRoot)return ae.children.splice(ue,0,oe),oe;return ae.children.push(oe),oe},U.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},U.prototype.root=function(){var G;for(G=this;G;){if(G.type===p.Document)return G.rootObject;if(G.isRoot)return G;G=G.parent}},U.prototype.document=function(){var G;for(G=this;G;){if(G.type===p.Document)return G;G=G.parent}},U.prototype.end=function(G){return this.document().end(G)},U.prototype.prev=function(){var G;if(G=this.parent.children.indexOf(this),G<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[G-1]},U.prototype.next=function(){var G;if(G=this.parent.children.indexOf(this),G===-1||G===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[G+1]},U.prototype.importDocument=function(G){var J;return J=G.root().clone(),J.parent=this,J.isRoot=!1,this.children.push(J),this},U.prototype.debugInfo=function(G){var J,ee;return G=G||this.name,G==null&&!((J=this.parent)!=null&&J.name)?"":G==null?"parent: <"+this.parent.name+">":(ee=this.parent)!=null&&ee.name?"node: <"+G+">, parent: <"+this.parent.name+">":"node: <"+G+">"},U.prototype.ele=function(G,J,ee){return this.element(G,J,ee)},U.prototype.nod=function(G,J,ee){return this.node(G,J,ee)},U.prototype.txt=function(G){return this.text(G)},U.prototype.dat=function(G){return this.cdata(G)},U.prototype.com=function(G){return this.comment(G)},U.prototype.ins=function(G,J){return this.instruction(G,J)},U.prototype.doc=function(){return this.document()},U.prototype.dec=function(G,J,ee){return this.declaration(G,J,ee)},U.prototype.e=function(G,J,ee){return this.element(G,J,ee)},U.prototype.n=function(G,J,ee){return this.node(G,J,ee)},U.prototype.t=function(G){return this.text(G)},U.prototype.d=function(G){return this.cdata(G)},U.prototype.c=function(G){return this.comment(G)},U.prototype.r=function(G){return this.raw(G)},U.prototype.i=function(G,J){return this.instruction(G,J)},U.prototype.u=function(){return this.up()},U.prototype.importXMLBuilder=function(G){return this.importDocument(G)},U.prototype.replaceChild=function(G,J){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.removeChild=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.appendChild=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.hasChildNodes=function(){return this.children.length!==0},U.prototype.cloneNode=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.isSupported=function(G,J){return!0},U.prototype.hasAttributes=function(){return this.attribs.length!==0},U.prototype.compareDocumentPosition=function(G){var J,ee;return J=this,J===G?0:this.document()!==G.document()?(ee=u.Disconnected|u.ImplementationSpecific,Math.random()<.5?ee|=u.Preceding:ee|=u.Following,ee):J.isAncestor(G)?u.Contains|u.Preceding:J.isDescendant(G)?u.Contains|u.Following:J.isPreceding(G)?u.Preceding:u.Following},U.prototype.isSameNode=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.lookupPrefix=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.isDefaultNamespace=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.lookupNamespaceURI=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.isEqualNode=function(G){var J,ee,ae;if(G.nodeType!==this.nodeType||G.children.length!==this.children.length)return!1;for(J=ee=0,ae=this.children.length-1;0<=ae?ee<=ae:ee>=ae;J=0<=ae?++ee:--ee)if(!this.children[J].isEqualNode(G.children[J]))return!1;return!0},U.prototype.getFeature=function(G,J){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.setUserData=function(G,J,ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.getUserData=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.contains=function(G){return G?G===this||this.isDescendant(G):!1},U.prototype.isDescendant=function(G){var J,ee,ae,oe,ue;for(ue=this.children,ae=0,oe=ue.length;ae<oe;ae++)if(J=ue[ae],G===J||(ee=J.isDescendant(G),ee))return!0;return!1},U.prototype.isAncestor=function(G){return G.isDescendant(this)},U.prototype.isPreceding=function(G){var J,ee;return J=this.treePosition(G),ee=this.treePosition(this),J===-1||ee===-1?!1:J<ee},U.prototype.isFollowing=function(G){var J,ee;return J=this.treePosition(G),ee=this.treePosition(this),J===-1||ee===-1?!1:J>ee},U.prototype.treePosition=function(G){var J,ee;return ee=0,J=!1,this.foreachTreeNode(this.document(),function(ae){if(ee++,!J&&ae===G)return J=!0}),J?ee:-1},U.prototype.foreachTreeNode=function(G,J){var ee,ae,oe,ue,se;for(G||(G=this.document()),ue=G.children,ae=0,oe=ue.length;ae<oe;ae++){if(ee=ue[ae],se=J(ee))return se;if(se=this.foreachTreeNode(ee,J),se)return se}},U}()}).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(s,C,A){(function(){var u;C.exports=u=function(){function p(b){this.nodes=b}return Object.defineProperty(p.prototype,"length",{get:function(){return this.nodes.length||0}}),p.prototype.clone=function(){return this.nodes=null},p.prototype.item=function(b){return this.nodes[b]||null},p}()}).call(this)},{}],452:[function(s,C,A){(function(){var u,p,b,g=function(v,c){for(var h in c)y.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},y={}.hasOwnProperty;u=s("./NodeType"),p=s("./XMLCharacterData"),C.exports=b=function(v){g(c,v);function c(h,m,E){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=u.ProcessingInstruction,this.target=this.stringify.insTarget(m),this.name=this.target,E&&(this.value=this.stringify.insValue(E))}return c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(h){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(h))},c.prototype.isEqualNode=function(h){return!(!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(h)||h.target!==this.target)},c}(p)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(s,C,A){(function(){var u,p,b,g=function(v,c){for(var h in c)y.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},y={}.hasOwnProperty;u=s("./NodeType"),p=s("./XMLNode"),C.exports=b=function(v){g(c,v);function c(h,m){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=u.Raw,this.value=this.stringify.raw(m)}return c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(h){return this.options.writer.raw(this,this.options.writer.filterOptions(h))},c}(p)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(s,C,A){(function(){var u,p,b,g,y=function(c,h){for(var m in h)v.call(h,m)&&(c[m]=h[m]);function E(){this.constructor=c}return E.prototype=h.prototype,c.prototype=new E,c.__super__=h.prototype,c},v={}.hasOwnProperty;u=s("./NodeType"),g=s("./XMLWriterBase"),p=s("./WriterState"),C.exports=b=function(c){y(h,c);function h(m,E){this.stream=m,h.__super__.constructor.call(this,E)}return h.prototype.endline=function(m,E,T){return m.isLastRootNode&&E.state===p.CloseTag?"":h.__super__.endline.call(this,m,E,T)},h.prototype.document=function(m,E){var T,I,R,N,k,L,H,D,V;for(H=m.children,I=R=0,k=H.length;R<k;I=++R)T=H[I],T.isLastRootNode=I===m.children.length-1;for(E=this.filterOptions(E),D=m.children,V=[],N=0,L=D.length;N<L;N++)T=D[N],V.push(this.writeChildNode(T,E,0));return V},h.prototype.attribute=function(m,E,T){return this.stream.write(h.__super__.attribute.call(this,m,E,T))},h.prototype.cdata=function(m,E,T){return this.stream.write(h.__super__.cdata.call(this,m,E,T))},h.prototype.comment=function(m,E,T){return this.stream.write(h.__super__.comment.call(this,m,E,T))},h.prototype.declaration=function(m,E,T){return this.stream.write(h.__super__.declaration.call(this,m,E,T))},h.prototype.docType=function(m,E,T){var I,R,N,k;if(T||(T=0),this.openNode(m,E,T),E.state=p.OpenTag,this.stream.write(this.indent(m,E,T)),this.stream.write("<!DOCTYPE "+m.root().name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(m,E,T)),E.state=p.InsideTag,k=m.children,R=0,N=k.length;R<N;R++)I=k[R],this.writeChildNode(I,E,T+1);E.state=p.CloseTag,this.stream.write("]")}return E.state=p.CloseTag,this.stream.write(E.spaceBeforeSlash+">"),this.stream.write(this.endline(m,E,T)),E.state=p.None,this.closeNode(m,E,T)},h.prototype.element=function(m,E,T){var I,R,N,k,L,H,D,V,P,U;T||(T=0),this.openNode(m,E,T),E.state=p.OpenTag,this.stream.write(this.indent(m,E,T)+"<"+m.name),P=m.attribs;for(D in P)v.call(P,D)&&(I=P[D],this.attribute(I,E,T));if(N=m.children.length,k=N===0?null:m.children[0],N===0||m.children.every(function(G){return(G.type===u.Text||G.type===u.Raw)&&G.value===""}))E.allowEmpty?(this.stream.write(">"),E.state=p.CloseTag,this.stream.write("</"+m.name+">")):(E.state=p.CloseTag,this.stream.write(E.spaceBeforeSlash+"/>"));else if(E.pretty&&N===1&&(k.type===u.Text||k.type===u.Raw)&&k.value!=null)this.stream.write(">"),E.state=p.InsideTag,E.suppressPrettyCount++,V=!0,this.writeChildNode(k,E,T+1),E.suppressPrettyCount--,V=!1,E.state=p.CloseTag,this.stream.write("</"+m.name+">");else{for(this.stream.write(">"+this.endline(m,E,T)),E.state=p.InsideTag,U=m.children,L=0,H=U.length;L<H;L++)R=U[L],this.writeChildNode(R,E,T+1);E.state=p.CloseTag,this.stream.write(this.indent(m,E,T)+"</"+m.name+">")}return this.stream.write(this.endline(m,E,T)),E.state=p.None,this.closeNode(m,E,T)},h.prototype.processingInstruction=function(m,E,T){return this.stream.write(h.__super__.processingInstruction.call(this,m,E,T))},h.prototype.raw=function(m,E,T){return this.stream.write(h.__super__.raw.call(this,m,E,T))},h.prototype.text=function(m,E,T){return this.stream.write(h.__super__.text.call(this,m,E,T))},h.prototype.dtdAttList=function(m,E,T){return this.stream.write(h.__super__.dtdAttList.call(this,m,E,T))},h.prototype.dtdElement=function(m,E,T){return this.stream.write(h.__super__.dtdElement.call(this,m,E,T))},h.prototype.dtdEntity=function(m,E,T){return this.stream.write(h.__super__.dtdEntity.call(this,m,E,T))},h.prototype.dtdNotation=function(m,E,T){return this.stream.write(h.__super__.dtdNotation.call(this,m,E,T))},h}(g)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(s,C,A){(function(){var u,p,b=function(y,v){for(var c in v)g.call(v,c)&&(y[c]=v[c]);function h(){this.constructor=y}return h.prototype=v.prototype,y.prototype=new h,y.__super__=v.prototype,y},g={}.hasOwnProperty;p=s("./XMLWriterBase"),C.exports=u=function(y){b(v,y);function v(c){v.__super__.constructor.call(this,c)}return v.prototype.document=function(c,h){var m,E,T,I,R;for(h=this.filterOptions(h),I="",R=c.children,E=0,T=R.length;E<T;E++)m=R[E],I+=this.writeChildNode(m,h,0);return h.pretty&&I.slice(-h.newline.length)===h.newline&&(I=I.slice(0,-h.newline.length)),I},v}(p)}).call(this)},{"./XMLWriterBase":458}],456:[function(s,C,A){(function(){var u,p=function(g,y){return function(){return g.apply(y,arguments)}},b={}.hasOwnProperty;C.exports=u=function(){function g(y){this.assertLegalName=p(this.assertLegalName,this),this.assertLegalChar=p(this.assertLegalChar,this);var v,c,h;y||(y={}),this.options=y,this.options.version||(this.options.version="1.0"),c=y.stringify||{};for(v in c)b.call(c,v)&&(h=c[v],this[v]=h)}return g.prototype.name=function(y){return this.options.noValidation?y:this.assertLegalName(""+y||"")},g.prototype.text=function(y){return this.options.noValidation?y:this.assertLegalChar(this.textEscape(""+y||""))},g.prototype.cdata=function(y){return this.options.noValidation?y:(y=""+y||"",y=y.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(y))},g.prototype.comment=function(y){if(this.options.noValidation)return y;if(y=""+y||"",y.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+y);return this.assertLegalChar(y)},g.prototype.raw=function(y){return this.options.noValidation?y:""+y||""},g.prototype.attValue=function(y){return this.options.noValidation?y:this.assertLegalChar(this.attEscape(y=""+y||""))},g.prototype.insTarget=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},g.prototype.insValue=function(y){if(this.options.noValidation)return y;if(y=""+y||"",y.match(/\?>/))throw new Error("Invalid processing instruction value: "+y);return this.assertLegalChar(y)},g.prototype.xmlVersion=function(y){if(this.options.noValidation)return y;if(y=""+y||"",!y.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+y);return y},g.prototype.xmlEncoding=function(y){if(this.options.noValidation)return y;if(y=""+y||"",!y.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+y);return this.assertLegalChar(y)},g.prototype.xmlStandalone=function(y){return this.options.noValidation?y:y?"yes":"no"},g.prototype.dtdPubID=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},g.prototype.dtdSysID=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},g.prototype.dtdElementValue=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},g.prototype.dtdAttType=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},g.prototype.dtdAttDefault=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},g.prototype.dtdEntityValue=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},g.prototype.dtdNData=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},g.prototype.convertAttKey="@",g.prototype.convertPIKey="?",g.prototype.convertTextKey="#text",g.prototype.convertCDataKey="#cdata",g.prototype.convertCommentKey="#comment",g.prototype.convertRawKey="#raw",g.prototype.assertLegalChar=function(y){var v,c;if(this.options.noValidation)return y;if(v="",this.options.version==="1.0"){if(v=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=y.match(v))throw new Error("Invalid character in string: "+y+" at index "+c.index)}else if(this.options.version==="1.1"&&(v=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=y.match(v)))throw new Error("Invalid character in string: "+y+" at index "+c.index);return y},g.prototype.assertLegalName=function(y){var v;if(this.options.noValidation)return y;if(this.assertLegalChar(y),v=/^([: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])*$/,!y.match(v))throw new Error("Invalid character in name");return y},g.prototype.textEscape=function(y){var v;return this.options.noValidation?y:(v=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(v,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},g.prototype.attEscape=function(y){var v;return this.options.noValidation?y:(v=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(v,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},g}()}).call(this)},{}],457:[function(s,C,A){(function(){var u,p,b,g=function(v,c){for(var h in c)y.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},y={}.hasOwnProperty;u=s("./NodeType"),p=s("./XMLCharacterData"),C.exports=b=function(v){g(c,v);function c(h,m){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=u.Text,this.value=this.stringify.text(m)}return Object.defineProperty(c.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"wholeText",{get:function(){var h,m,E;for(E="",m=this.previousSibling;m;)E=m.data+E,m=m.previousSibling;for(E+=this.data,h=this.nextSibling;h;)E=E+h.data,h=h.nextSibling;return E}}),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(h){return this.options.writer.text(this,this.options.writer.filterOptions(h))},c.prototype.splitText=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.replaceWholeText=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c}(p)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(s,C,A){(function(){var u,p,b,g,y,v,c,h,m,E,T,I,R,N,k,L,H,D={}.hasOwnProperty;H=s("./Utility").assign,u=s("./NodeType"),m=s("./XMLDeclaration"),E=s("./XMLDocType"),b=s("./XMLCData"),g=s("./XMLComment"),I=s("./XMLElement"),N=s("./XMLRaw"),k=s("./XMLText"),R=s("./XMLProcessingInstruction"),T=s("./XMLDummy"),y=s("./XMLDTDAttList"),v=s("./XMLDTDElement"),c=s("./XMLDTDEntity"),h=s("./XMLDTDNotation"),p=s("./WriterState"),C.exports=L=function(){function V(P){var U,G,J;P||(P={}),this.options=P,G=P.writer||{};for(U in G)D.call(G,U)&&(J=G[U],this["_"+U]=this[U],this[U]=J)}return V.prototype.filterOptions=function(P){var U,G,J,ee,ae,oe,ue,se;return P||(P={}),P=H({},this.options,P),U={writer:this},U.pretty=P.pretty||!1,U.allowEmpty=P.allowEmpty||!1,U.indent=(G=P.indent)!=null?G:" ",U.newline=(J=P.newline)!=null?J:`
`,U.offset=(ee=P.offset)!=null?ee:0,U.dontPrettyTextNodes=(ae=(oe=P.dontPrettyTextNodes)!=null?oe:P.dontprettytextnodes)!=null?ae:0,U.spaceBeforeSlash=(ue=(se=P.spaceBeforeSlash)!=null?se:P.spacebeforeslash)!=null?ue:"",U.spaceBeforeSlash===!0&&(U.spaceBeforeSlash=" "),U.suppressPrettyCount=0,U.user={},U.state=p.None,U},V.prototype.indent=function(P,U,G){var J;return!U.pretty||U.suppressPrettyCount?"":U.pretty&&(J=(G||0)+U.offset+1,J>0)?new Array(J).join(U.indent):""},V.prototype.endline=function(P,U,G){return!U.pretty||U.suppressPrettyCount?"":U.newline},V.prototype.attribute=function(P,U,G){var J;return this.openAttribute(P,U,G),J=" "+P.name+'="'+P.value+'"',this.closeAttribute(P,U,G),J},V.prototype.cdata=function(P,U,G){var J;return this.openNode(P,U,G),U.state=p.OpenTag,J=this.indent(P,U,G)+"<![CDATA[",U.state=p.InsideTag,J+=P.value,U.state=p.CloseTag,J+="]]>"+this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),J},V.prototype.comment=function(P,U,G){var J;return this.openNode(P,U,G),U.state=p.OpenTag,J=this.indent(P,U,G)+"<!-- ",U.state=p.InsideTag,J+=P.value,U.state=p.CloseTag,J+=" -->"+this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),J},V.prototype.declaration=function(P,U,G){var J;return this.openNode(P,U,G),U.state=p.OpenTag,J=this.indent(P,U,G)+"<?xml",U.state=p.InsideTag,J+=' version="'+P.version+'"',P.encoding!=null&&(J+=' encoding="'+P.encoding+'"'),P.standalone!=null&&(J+=' standalone="'+P.standalone+'"'),U.state=p.CloseTag,J+=U.spaceBeforeSlash+"?>",J+=this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),J},V.prototype.docType=function(P,U,G){var J,ee,ae,oe,ue;if(G||(G=0),this.openNode(P,U,G),U.state=p.OpenTag,oe=this.indent(P,U,G),oe+="<!DOCTYPE "+P.root().name,P.pubID&&P.sysID?oe+=' PUBLIC "'+P.pubID+'" "'+P.sysID+'"':P.sysID&&(oe+=' SYSTEM "'+P.sysID+'"'),P.children.length>0){for(oe+=" [",oe+=this.endline(P,U,G),U.state=p.InsideTag,ue=P.children,ee=0,ae=ue.length;ee<ae;ee++)J=ue[ee],oe+=this.writeChildNode(J,U,G+1);U.state=p.CloseTag,oe+="]"}return U.state=p.CloseTag,oe+=U.spaceBeforeSlash+">",oe+=this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),oe},V.prototype.element=function(P,U,G){var J,ee,ae,oe,ue,se,ye,ve,Re,le,xe,pe,Me,Oe;G||(G=0),le=!1,xe="",this.openNode(P,U,G),U.state=p.OpenTag,xe+=this.indent(P,U,G)+"<"+P.name,pe=P.attribs;for(Re in pe)D.call(pe,Re)&&(J=pe[Re],xe+=this.attribute(J,U,G));if(ae=P.children.length,oe=ae===0?null:P.children[0],ae===0||P.children.every(function(Le){return(Le.type===u.Text||Le.type===u.Raw)&&Le.value===""}))U.allowEmpty?(xe+=">",U.state=p.CloseTag,xe+="</"+P.name+">"+this.endline(P,U,G)):(U.state=p.CloseTag,xe+=U.spaceBeforeSlash+"/>"+this.endline(P,U,G));else if(U.pretty&&ae===1&&(oe.type===u.Text||oe.type===u.Raw)&&oe.value!=null)xe+=">",U.state=p.InsideTag,U.suppressPrettyCount++,le=!0,xe+=this.writeChildNode(oe,U,G+1),U.suppressPrettyCount--,le=!1,U.state=p.CloseTag,xe+="</"+P.name+">"+this.endline(P,U,G);else{if(U.dontPrettyTextNodes){for(Me=P.children,ue=0,ye=Me.length;ue<ye;ue++)if(ee=Me[ue],(ee.type===u.Text||ee.type===u.Raw)&&ee.value!=null){U.suppressPrettyCount++,le=!0;break}}for(xe+=">"+this.endline(P,U,G),U.state=p.InsideTag,Oe=P.children,se=0,ve=Oe.length;se<ve;se++)ee=Oe[se],xe+=this.writeChildNode(ee,U,G+1);U.state=p.CloseTag,xe+=this.indent(P,U,G)+"</"+P.name+">",le&&U.suppressPrettyCount--,xe+=this.endline(P,U,G),U.state=p.None}return this.closeNode(P,U,G),xe},V.prototype.writeChildNode=function(P,U,G){switch(P.type){case u.CData:return this.cdata(P,U,G);case u.Comment:return this.comment(P,U,G);case u.Element:return this.element(P,U,G);case u.Raw:return this.raw(P,U,G);case u.Text:return this.text(P,U,G);case u.ProcessingInstruction:return this.processingInstruction(P,U,G);case u.Dummy:return"";case u.Declaration:return this.declaration(P,U,G);case u.DocType:return this.docType(P,U,G);case u.AttributeDeclaration:return this.dtdAttList(P,U,G);case u.ElementDeclaration:return this.dtdElement(P,U,G);case u.EntityDeclaration:return this.dtdEntity(P,U,G);case u.NotationDeclaration:return this.dtdNotation(P,U,G);default:throw new Error("Unknown XML node type: "+P.constructor.name)}},V.prototype.processingInstruction=function(P,U,G){var J;return this.openNode(P,U,G),U.state=p.OpenTag,J=this.indent(P,U,G)+"<?",U.state=p.InsideTag,J+=P.target,P.value&&(J+=" "+P.value),U.state=p.CloseTag,J+=U.spaceBeforeSlash+"?>",J+=this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),J},V.prototype.raw=function(P,U,G){var J;return this.openNode(P,U,G),U.state=p.OpenTag,J=this.indent(P,U,G),U.state=p.InsideTag,J+=P.value,U.state=p.CloseTag,J+=this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),J},V.prototype.text=function(P,U,G){var J;return this.openNode(P,U,G),U.state=p.OpenTag,J=this.indent(P,U,G),U.state=p.InsideTag,J+=P.value,U.state=p.CloseTag,J+=this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),J},V.prototype.dtdAttList=function(P,U,G){var J;return this.openNode(P,U,G),U.state=p.OpenTag,J=this.indent(P,U,G)+"<!ATTLIST",U.state=p.InsideTag,J+=" "+P.elementName+" "+P.attributeName+" "+P.attributeType,P.defaultValueType!=="#DEFAULT"&&(J+=" "+P.defaultValueType),P.defaultValue&&(J+=' "'+P.defaultValue+'"'),U.state=p.CloseTag,J+=U.spaceBeforeSlash+">"+this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),J},V.prototype.dtdElement=function(P,U,G){var J;return this.openNode(P,U,G),U.state=p.OpenTag,J=this.indent(P,U,G)+"<!ELEMENT",U.state=p.InsideTag,J+=" "+P.name+" "+P.value,U.state=p.CloseTag,J+=U.spaceBeforeSlash+">"+this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),J},V.prototype.dtdEntity=function(P,U,G){var J;return this.openNode(P,U,G),U.state=p.OpenTag,J=this.indent(P,U,G)+"<!ENTITY",U.state=p.InsideTag,P.pe&&(J+=" %"),J+=" "+P.name,P.value?J+=' "'+P.value+'"':(P.pubID&&P.sysID?J+=' PUBLIC "'+P.pubID+'" "'+P.sysID+'"':P.sysID&&(J+=' SYSTEM "'+P.sysID+'"'),P.nData&&(J+=" NDATA "+P.nData)),U.state=p.CloseTag,J+=U.spaceBeforeSlash+">"+this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),J},V.prototype.dtdNotation=function(P,U,G){var J;return this.openNode(P,U,G),U.state=p.OpenTag,J=this.indent(P,U,G)+"<!NOTATION",U.state=p.InsideTag,J+=" "+P.name,P.pubID&&P.sysID?J+=' PUBLIC "'+P.pubID+'" "'+P.sysID+'"':P.pubID?J+=' PUBLIC "'+P.pubID+'"':P.sysID&&(J+=' SYSTEM "'+P.sysID+'"'),U.state=p.CloseTag,J+=U.spaceBeforeSlash+">"+this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),J},V.prototype.openNode=function(P,U,G){},V.prototype.closeNode=function(P,U,G){},V.prototype.openAttribute=function(P,U,G){},V.prototype.closeAttribute=function(P,U,G){},V}()}).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(s,C,A){(function(){var u,p,b,g,y,v,c,h,m,E;E=s("./Utility"),h=E.assign,m=E.isFunction,b=s("./XMLDOMImplementation"),g=s("./XMLDocument"),y=s("./XMLDocumentCB"),c=s("./XMLStringWriter"),v=s("./XMLStreamWriter"),u=s("./NodeType"),p=s("./WriterState"),C.exports.create=function(T,I,R,N){var k,L;if(T==null)throw new Error("Root element needs a name.");return N=h({},I,R,N),k=new g(N),L=k.element(T),N.headless||(k.declaration(N),(N.pubID!=null||N.sysID!=null)&&k.dtd(N)),L},C.exports.begin=function(T,I,R){var N;return m(T)&&(N=[T,I],I=N[0],R=N[1],T={}),I?new y(T,I,R):new g(T)},C.exports.stringWriter=function(T){return new c(T)},C.exports.streamWriter=function(T,I){return new v(T,I)},C.exports.implementation=new b,C.exports.nodeType=u,C.exports.writerState=p}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(s,C,A){C.exports=p;var u=Object.prototype.hasOwnProperty;function p(){for(var b={},g=0;g<arguments.length;g++){var y=arguments[g];for(var v in y)u.call(y,v)&&(b[v]=y[v])}return b}},{}],461:[function(s,C,A){"use strict";s("core-js/modules/es.array.fill.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.regexp.to-string.js"),s("core-js/modules/es.array.join.js"),s("core-js/modules/es.array.slice.js");var u=s("buffer").Buffer,p=s("./sha"),b=s("./md5"),g={sha1:p,md5:b},y=64,v=u.alloc(y);v.fill(0);function c(E,T,I){u.isBuffer(T)||(T=u.from(T)),u.isBuffer(I)||(I=u.from(I)),T.length>y?T=E(T):T.length<y&&(T=u.concat([T,v],y));for(var R=u.alloc(y),N=u.alloc(y),k=0;k<y;k++)R[k]=T[k]^54,N[k]=T[k]^92;var L=E(u.concat([R,I]));return E(u.concat([N,L]))}function h(E,T){E=E||"sha1";var I=g[E],R=[],N=0;return I||m("algorithm:",E,"is not yet supported"),{update:function(L){return u.isBuffer(L)||(L=u.from(L)),R.push(L),N+=L.length,this},digest:function(L){var H=u.concat(R),D=T?c(I,T,H):I(H);return R=null,L?D.toString(L):D}}}function m(){var E=[].slice.call(arguments).join(" ");throw new Error([E,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}A.createHash=function(E){return h(E)},A.createHmac=function(E,T){return h(E,T)},A.createCredentials=function(){m("sorry,createCredentials is not implemented yet")},A.createCipher=function(){m("sorry,createCipher is not implemented yet")},A.createCipheriv=function(){m("sorry,createCipheriv is not implemented yet")},A.createDecipher=function(){m("sorry,createDecipher is not implemented yet")},A.createDecipheriv=function(){m("sorry,createDecipheriv is not implemented yet")},A.createSign=function(){m("sorry,createSign is not implemented yet")},A.createVerify=function(){m("sorry,createVerify is not implemented yet")},A.createDiffieHellman=function(){m("sorry,createDiffieHellman is not implemented yet")},A.pbkdf2=function(){m("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(s,C,A){"use strict";s("core-js/modules/es.array.fill.js"),s("core-js/modules/es.array.concat.js");var u=s("buffer").Buffer,p=4,b=u.alloc(p);b.fill(0);var g=8;function y(h,m){if(h.length%p!==0){var E=h.length+(p-h.length%p);h=u.concat([h,b],E)}for(var T=[],I=m?h.readInt32BE:h.readInt32LE,R=0;R<h.length;R+=p)T.push(I.call(h,R));return T}function v(h,m,E){for(var T=u.alloc(m),I=E?T.writeInt32BE:T.writeInt32LE,R=0;R<h.length;R++)I.call(T,h[R],R*4,!0);return T}function c(h,m,E,T){u.isBuffer(h)||(h=u.from(h));var I=m(y(h,T),h.length*g);return v(I,E,T)}C.exports={hash:c}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(s,C,A){"use strict";var u=s("./helpers");function p(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function b(T,I){T[I>>5]|=128<<I%32,T[(I+64>>>9<<4)+14]=I;for(var R=1732584193,N=-271733879,k=-1732584194,L=271733878,H=0;H<T.length;H+=16){var D=R,V=N,P=k,U=L;R=y(R,N,k,L,T[H+0],7,-680876936),L=y(L,R,N,k,T[H+1],12,-389564586),k=y(k,L,R,N,T[H+2],17,606105819),N=y(N,k,L,R,T[H+3],22,-1044525330),R=y(R,N,k,L,T[H+4],7,-176418897),L=y(L,R,N,k,T[H+5],12,1200080426),k=y(k,L,R,N,T[H+6],17,-1473231341),N=y(N,k,L,R,T[H+7],22,-45705983),R=y(R,N,k,L,T[H+8],7,1770035416),L=y(L,R,N,k,T[H+9],12,-1958414417),k=y(k,L,R,N,T[H+10],17,-42063),N=y(N,k,L,R,T[H+11],22,-1990404162),R=y(R,N,k,L,T[H+12],7,1804603682),L=y(L,R,N,k,T[H+13],12,-40341101),k=y(k,L,R,N,T[H+14],17,-1502002290),N=y(N,k,L,R,T[H+15],22,1236535329),R=v(R,N,k,L,T[H+1],5,-165796510),L=v(L,R,N,k,T[H+6],9,-1069501632),k=v(k,L,R,N,T[H+11],14,643717713),N=v(N,k,L,R,T[H+0],20,-373897302),R=v(R,N,k,L,T[H+5],5,-701558691),L=v(L,R,N,k,T[H+10],9,38016083),k=v(k,L,R,N,T[H+15],14,-660478335),N=v(N,k,L,R,T[H+4],20,-405537848),R=v(R,N,k,L,T[H+9],5,568446438),L=v(L,R,N,k,T[H+14],9,-1019803690),k=v(k,L,R,N,T[H+3],14,-187363961),N=v(N,k,L,R,T[H+8],20,1163531501),R=v(R,N,k,L,T[H+13],5,-1444681467),L=v(L,R,N,k,T[H+2],9,-51403784),k=v(k,L,R,N,T[H+7],14,1735328473),N=v(N,k,L,R,T[H+12],20,-1926607734),R=c(R,N,k,L,T[H+5],4,-378558),L=c(L,R,N,k,T[H+8],11,-2022574463),k=c(k,L,R,N,T[H+11],16,1839030562),N=c(N,k,L,R,T[H+14],23,-35309556),R=c(R,N,k,L,T[H+1],4,-1530992060),L=c(L,R,N,k,T[H+4],11,1272893353),k=c(k,L,R,N,T[H+7],16,-155497632),N=c(N,k,L,R,T[H+10],23,-1094730640),R=c(R,N,k,L,T[H+13],4,681279174),L=c(L,R,N,k,T[H+0],11,-358537222),k=c(k,L,R,N,T[H+3],16,-722521979),N=c(N,k,L,R,T[H+6],23,76029189),R=c(R,N,k,L,T[H+9],4,-640364487),L=c(L,R,N,k,T[H+12],11,-421815835),k=c(k,L,R,N,T[H+15],16,530742520),N=c(N,k,L,R,T[H+2],23,-995338651),R=h(R,N,k,L,T[H+0],6,-198630844),L=h(L,R,N,k,T[H+7],10,1126891415),k=h(k,L,R,N,T[H+14],15,-1416354905),N=h(N,k,L,R,T[H+5],21,-57434055),R=h(R,N,k,L,T[H+12],6,1700485571),L=h(L,R,N,k,T[H+3],10,-1894986606),k=h(k,L,R,N,T[H+10],15,-1051523),N=h(N,k,L,R,T[H+1],21,-2054922799),R=h(R,N,k,L,T[H+8],6,1873313359),L=h(L,R,N,k,T[H+15],10,-30611744),k=h(k,L,R,N,T[H+6],15,-1560198380),N=h(N,k,L,R,T[H+13],21,1309151649),R=h(R,N,k,L,T[H+4],6,-145523070),L=h(L,R,N,k,T[H+11],10,-1120210379),k=h(k,L,R,N,T[H+2],15,718787259),N=h(N,k,L,R,T[H+9],21,-343485551),R=m(R,D),N=m(N,V),k=m(k,P),L=m(L,U)}return Array(R,N,k,L)}function g(T,I,R,N,k,L){return m(E(m(m(I,T),m(N,L)),k),R)}function y(T,I,R,N,k,L,H){return g(I&R|~I&N,T,I,k,L,H)}function v(T,I,R,N,k,L,H){return g(I&N|R&~N,T,I,k,L,H)}function c(T,I,R,N,k,L,H){return g(I^R^N,T,I,k,L,H)}function h(T,I,R,N,k,L,H){return g(R^(I|~N),T,I,k,L,H)}function m(T,I){var R=(T&65535)+(I&65535),N=(T>>16)+(I>>16)+(R>>16);return N<<16|R&65535}function E(T,I){return T<<I|T>>>32-I}C.exports=function(I){return u.hash(I,b,16)}},{"./helpers":462}],464:[function(s,C,A){"use strict";var u=s("./helpers");function p(c,h){c[h>>5]|=128<<24-h%32,c[(h+64>>9<<4)+15]=h;for(var m=Array(80),E=1732584193,T=-271733879,I=-1732584194,R=271733878,N=-1009589776,k=0;k<c.length;k+=16){for(var L=E,H=T,D=I,V=R,P=N,U=0;U<80;U++){U<16?m[U]=c[k+U]:m[U]=v(m[U-3]^m[U-8]^m[U-14]^m[U-16],1);var G=y(y(v(E,5),b(U,T,I,R)),y(y(N,m[U]),g(U)));N=R,R=I,I=v(T,30),T=E,E=G}E=y(E,L),T=y(T,H),I=y(I,D),R=y(R,V),N=y(N,P)}return Array(E,T,I,R,N)}function b(c,h,m,E){return c<20?h&m|~h&E:c<40?h^m^E:c<60?h&m|h&E|m&E:h^m^E}function g(c){return c<20?1518500249:c<40?1859775393:c<60?-1894007588:-899497514}function y(c,h){var m=(c&65535)+(h&65535),E=(c>>16)+(h>>16)+(m>>16);return E<<16|m&65535}function v(c,h){return c<<h|c>>>32-h}C.exports=function(h){return u.hash(h,p,20,!0)}},{"./helpers":462}],465:[function(s,C,A){"use strict";C.exports=function(){return function(){}}},{}],466:[function(s,C,A){(function(u){(function(){"use strict";var p=s("@babel/runtime/helpers/interopRequireDefault"),b=p(s("@babel/runtime/helpers/typeof")),g=s("stream"),y=g.Stream,v=s("../lib/common/utils/isArray"),c=v.isArray;C.exports.string=function(E){return typeof E=="string"},C.exports.array=c,C.exports.buffer=u.isBuffer;function h(m){return m instanceof y}C.exports.writableStream=function(E){return h(E)&&typeof E._write=="function"&&(0,b.default)(E._writableState)==="object"}}).call(this)}).call(this,{isBuffer:s("../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(s,C,A){"use strict";var u=s("immediate"),p=C.exports={};p.nextTick=u,p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={};function b(){}p.on=b,p.addListener=b,p.once=b,p.off=b,p.removeListener=b,p.removeAllListeners=b,p.emit=b,p.prependListener=b,p.prependOnceListener=b,p.listeners=function(g){return[]},p.binding=function(g){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(g){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{immediate:358}],468:[function(s,C,A){(function(u){(function(){"use strict";s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.search.js");var p=s("./lib/request"),b=s("./lib/response"),g=s("xtend"),y=s("builtin-status-codes"),v=s("url"),c=A;c.request=function(h,m){typeof h=="string"?h=v.parse(h):h=g(h);var E=u.location.protocol.search(/^https?:$/)===-1?"http:":"",T=h.protocol||E,I=h.hostname||h.host,R=h.port,N=h.path||"/";I&&I.indexOf(":")!==-1&&(I="["+I+"]"),h.url=(I?T+"//"+I:"")+(R?":"+R:"")+N,h.method=(h.method||"GET").toUpperCase(),h.headers=h.headers||{};var k=new p(h);return m&&k.on("response",m),k},c.get=function(m,E){var T=c.request(m,E);return T.end(),T},c.ClientRequest=p,c.IncomingMessage=b.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=y,c.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 Q!="undefined"?Q: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(s,C,A){(function(u){(function(){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.array-buffer.constructor.js"),s("core-js/modules/es.array-buffer.slice.js"),s("core-js/modules/es.array.slice.js"),A.fetch=c(u.fetch)&&c(u.ReadableStream),A.writableStream=c(u.WritableStream),A.abortController=c(u.AbortController),A.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),A.blobConstructor=!0}catch(h){}var p;function b(){if(p!==void 0)return p;if(u.XMLHttpRequest){p=new u.XMLHttpRequest;try{p.open("GET",u.XDomainRequest?"/":"https://example.com")}catch(h){p=null}}else p=null;return p}function g(h){var m=b();if(!m)return!1;try{return m.responseType=h,m.responseType===h}catch(E){}return!1}var y=typeof u.ArrayBuffer!="undefined",v=y&&c(u.ArrayBuffer.prototype.slice);A.arraybuffer=A.fetch||y&&g("arraybuffer"),A.msstream=!A.fetch&&v&&g("ms-stream"),A.mozchunkedarraybuffer=!A.fetch&&y&&g("moz-chunked-arraybuffer"),A.overrideMimeType=A.fetch||(b()?c(b().overrideMimeType):!1),A.vbArray=c(u.VBArray);function c(h){return typeof h=="function"}p=null}).call(this)}).call(this,typeof Q!="undefined"?Q: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(s,C,A){(function(u,p,b){(function(){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.regexp.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.function.name.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.split.js");var g=s("./capability"),y=s("inherits"),v=s("./response"),c=s("readable-stream"),h=s("to-arraybuffer"),m=v.IncomingMessage,E=v.readyStates;function T(k,L){return g.fetch&&L?"fetch":g.mozchunkedarraybuffer?"moz-chunked-arraybuffer":g.msstream?"ms-stream":g.arraybuffer&&k?"arraybuffer":g.vbArray&&k?"text:vbarray":"text"}var I=C.exports=function(k){var L=this;c.Writable.call(L),L._opts=k,L._body=[],L._headers={},k.auth&&L.setHeader("Authorization","Basic "+new b(k.auth).toString("base64")),Object.keys(k.headers).forEach(function(V){L.setHeader(V,k.headers[V])});var H,D=!0;if(k.mode==="disable-fetch"||"requestTimeout"in k&&!g.abortController)D=!1,H=!0;else if(k.mode==="prefer-streaming")H=!1;else if(k.mode==="allow-wrong-content-type")H=!g.overrideMimeType;else if(!k.mode||k.mode==="default"||k.mode==="prefer-fast")H=!0;else throw new Error("Invalid value for opts.mode");L._mode=T(H,D),L._fetchTimer=null,L.on("finish",function(){L._onFinish()})};y(I,c.Writable),I.prototype.setHeader=function(k,L){var H=this,D=k.toLowerCase();N.indexOf(D)===-1&&(H._headers[D]={name:k,value:L})},I.prototype.getHeader=function(k){var L=this._headers[k.toLowerCase()];return L?L.value:null},I.prototype.removeHeader=function(k){var L=this;delete L._headers[k.toLowerCase()]},I.prototype._onFinish=function(){var k=this;if(!k._destroyed){var L=k._opts,H=k._headers,D=null;L.method!=="GET"&&L.method!=="HEAD"&&(g.arraybuffer?D=h(b.concat(k._body)):g.blobConstructor?D=new p.Blob(k._body.map(function(ee){return h(ee)}),{type:(H["content-type"]||{}).value||""}):D=b.concat(k._body).toString());var V=[];if(Object.keys(H).forEach(function(ee){var ae=H[ee].name,oe=H[ee].value;Array.isArray(oe)?oe.forEach(function(ue){V.push([ae,ue])}):V.push([ae,oe])}),k._mode==="fetch"){var P=null,U=null;if(g.abortController){var G=new AbortController;P=G.signal,k._fetchAbortController=G,"requestTimeout"in L&&L.requestTimeout!==0&&(k._fetchTimer=p.setTimeout(function(){k.emit("requestTimeout"),k._fetchAbortController&&k._fetchAbortController.abort()},L.requestTimeout))}p.fetch(k._opts.url,{method:k._opts.method,headers:V,body:D||void 0,mode:"cors",credentials:L.withCredentials?"include":"same-origin",signal:P}).then(function(ee){k._fetchResponse=ee,k._connect()},function(ee){p.clearTimeout(k._fetchTimer),k._destroyed||k.emit("error",ee)})}else{var J=k._xhr=new p.XMLHttpRequest;try{J.open(k._opts.method,k._opts.url,!0)}catch(ee){u.nextTick(function(){k.emit("error",ee)});return}"responseType"in J&&(J.responseType=k._mode.split(":")[0]),"withCredentials"in J&&(J.withCredentials=!!L.withCredentials),k._mode==="text"&&"overrideMimeType"in J&&J.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in L&&(J.timeout=L.requestTimeout,J.ontimeout=function(){k.emit("requestTimeout")}),V.forEach(function(ee){J.setRequestHeader(ee[0],ee[1])}),k._response=null,J.onreadystatechange=function(){switch(J.readyState){case E.LOADING:case E.DONE:k._onXHRProgress();break}},k._mode==="moz-chunked-arraybuffer"&&(J.onprogress=function(){k._onXHRProgress()}),J.onerror=function(){k._destroyed||k.emit("error",new Error("XHR error"))};try{J.send(D)}catch(ee){u.nextTick(function(){k.emit("error",ee)});return}}}};function R(k){try{var L=k.status;return L!==null&&L!==0}catch(H){return!1}}I.prototype._onXHRProgress=function(){var k=this;!R(k._xhr)||k._destroyed||(k._response||k._connect(),k._response._onXHRProgress())},I.prototype._connect=function(){var k=this;k._destroyed||(k._response=new m(k._xhr,k._fetchResponse,k._mode,k._fetchTimer),k._response.on("error",function(L){k.emit("error",L)}),k.emit("response",k._response))},I.prototype._write=function(k,L,H){var D=this;D._body.push(k),H()},I.prototype.abort=I.prototype.destroy=function(){var k=this;k._destroyed=!0,p.clearTimeout(k._fetchTimer),k._response&&(k._response._destroyed=!0),k._xhr?k._xhr.abort():k._fetchAbortController&&k._fetchAbortController.abort()},I.prototype.end=function(k,L,H){var D=this;typeof k=="function"&&(H=k,k=void 0),c.Writable.prototype.end.call(D,k,L,H)},I.prototype.flushHeaders=function(){},I.prototype.setTimeout=function(){},I.prototype.setNoDelay=function(){},I.prototype.setSocketKeepAlive=function(){};var N=["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,s("_process"),typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{},s("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(s,C,A){(function(u,p,b){(function(){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.split.js"),s("core-js/modules/es.string.match.js"),s("core-js/modules/es.array.iterator.js"),s("core-js/modules/es.array-buffer.slice.js"),s("core-js/modules/es.typed-array.uint8-array.js"),s("core-js/modules/es.typed-array.copy-within.js"),s("core-js/modules/es.typed-array.every.js"),s("core-js/modules/es.typed-array.fill.js"),s("core-js/modules/es.typed-array.filter.js"),s("core-js/modules/es.typed-array.find.js"),s("core-js/modules/es.typed-array.find-index.js"),s("core-js/modules/es.typed-array.for-each.js"),s("core-js/modules/es.typed-array.includes.js"),s("core-js/modules/es.typed-array.index-of.js"),s("core-js/modules/es.typed-array.iterator.js"),s("core-js/modules/es.typed-array.join.js"),s("core-js/modules/es.typed-array.last-index-of.js"),s("core-js/modules/es.typed-array.map.js"),s("core-js/modules/es.typed-array.reduce.js"),s("core-js/modules/es.typed-array.reduce-right.js"),s("core-js/modules/es.typed-array.reverse.js"),s("core-js/modules/es.typed-array.set.js"),s("core-js/modules/es.typed-array.slice.js"),s("core-js/modules/es.typed-array.some.js"),s("core-js/modules/es.typed-array.sort.js"),s("core-js/modules/es.typed-array.subarray.js"),s("core-js/modules/es.typed-array.to-locale-string.js"),s("core-js/modules/es.typed-array.to-string.js"),s("core-js/modules/es.array.slice.js");var g=s("./capability"),y=s("inherits"),v=s("readable-stream"),c=A.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},h=A.IncomingMessage=function(m,E,T,I){var R=this;if(v.Readable.call(R),R._mode=T,R.headers={},R.rawHeaders=[],R.trailers={},R.rawTrailers=[],R.on("end",function(){u.nextTick(function(){R.emit("close")})}),T==="fetch"){var N=function P(){L.read().then(function(U){if(!R._destroyed){if(U.done){p.clearTimeout(I),R.push(null);return}R.push(new b(U.value)),P()}}).catch(function(U){p.clearTimeout(I),R._destroyed||R.emit("error",U)})};if(R._fetchResponse=E,R.url=E.url,R.statusCode=E.status,R.statusMessage=E.statusText,E.headers.forEach(function(P,U){R.headers[U.toLowerCase()]=P,R.rawHeaders.push(U,P)}),g.writableStream){var k=new WritableStream({write:function(U){return new Promise(function(G,J){R._destroyed?J():R.push(new b(U))?G():R._resumeFetch=G})},close:function(){p.clearTimeout(I),R._destroyed||R.push(null)},abort:function(U){R._destroyed||R.emit("error",U)}});try{E.body.pipeTo(k).catch(function(P){p.clearTimeout(I),R._destroyed||R.emit("error",P)});return}catch(P){}}var L=E.body.getReader();N()}else{R._xhr=m,R._pos=0,R.url=m.responseURL,R.statusCode=m.status,R.statusMessage=m.statusText;var H=m.getAllResponseHeaders().split(/\r?\n/);if(H.forEach(function(P){var U=P.match(/^([^:]+):\s*(.*)/);if(U){var G=U[1].toLowerCase();G==="set-cookie"?(R.headers[G]===void 0&&(R.headers[G]=[]),R.headers[G].push(U[2])):R.headers[G]!==void 0?R.headers[G]+=", "+U[2]:R.headers[G]=U[2],R.rawHeaders.push(U[1],U[2])}}),R._charset="x-user-defined",!g.overrideMimeType){var D=R.rawHeaders["mime-type"];if(D){var V=D.match(/;\s*charset=([^;])(;|$)/);V&&(R._charset=V[1].toLowerCase())}R._charset||(R._charset="utf-8")}}};y(h,v.Readable),h.prototype._read=function(){var m=this,E=m._resumeFetch;E&&(m._resumeFetch=null,E())},h.prototype._onXHRProgress=function(){var m=this,E=m._xhr,T=null;switch(m._mode){case"text:vbarray":if(E.readyState!==c.DONE)break;try{T=new p.VBArray(E.responseBody).toArray()}catch(L){}if(T!==null){m.push(new b(T));break}case"text":try{T=E.responseText}catch(L){m._mode="text:vbarray";break}if(T.length>m._pos){var I=T.substr(m._pos);if(m._charset==="x-user-defined"){for(var R=new b(I.length),N=0;N<I.length;N++)R[N]=I.charCodeAt(N)&255;m.push(R)}else m.push(I,m._charset);m._pos=T.length}break;case"arraybuffer":if(E.readyState!==c.DONE||!E.response)break;T=E.response,m.push(new b(new Uint8Array(T)));break;case"moz-chunked-arraybuffer":if(T=E.response,E.readyState!==c.LOADING||!T)break;m.push(new b(new Uint8Array(T)));break;case"ms-stream":if(T=E.response,E.readyState!==c.LOADING)break;var k=new p.MSStreamReader;k.onprogress=function(){k.result.byteLength>m._pos&&(m.push(new b(new Uint8Array(k.result.slice(m._pos)))),m._pos=k.result.byteLength)},k.onload=function(){m.push(null)},k.readAsArrayBuffer(T);break}m._xhr.readyState===c.DONE&&m._mode!=="ms-stream"&&m.push(null)}}).call(this)}).call(this,s("_process"),typeof Q!="undefined"?Q:typeof self!="undefined"?self:typeof window!="undefined"?window:{},s("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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/helpers/typeof"));s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.search.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.string.split.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.array.join.js"),s("core-js/modules/es.string.trim.js"),s("core-js/modules/es.string.match.js"),s("core-js/modules/es.array.slice.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.splice.js");var b=s("punycode"),g=s("./util");A.parse=U,A.resolve=J,A.resolveObject=ee,A.format=G,A.Url=y;function y(){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 v=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,m=["<",">",'"',"`"," ","\r",`
`," "],E=["{","}","|","\\","^","`"].concat(m),T=["'"].concat(E),I=["%","/","?",";","#"].concat(T),R=["/","?","#"],N=255,k=/^[+a-z0-9A-Z_-]{0,63}$/,L=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,H={javascript:!0,"javascript:":!0},D={javascript:!0,"javascript:":!0},V={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=s("querystring");function U(ae,oe,ue){if(ae&&g.isObject(ae)&&ae instanceof y)return ae;var se=new y;return se.parse(ae,oe,ue),se}y.prototype.parse=function(ae,oe,ue){if(!g.isString(ae))throw new TypeError("Parameter 'url' must be a string, not "+(0,p.default)(ae));var se=ae.indexOf("?"),ye=se!==-1&&se<ae.indexOf("#")?"?":"#",ve=ae.split(ye),Re=/\\/g;ve[0]=ve[0].replace(Re,"/"),ae=ve.join(ye);var le=ae;if(le=le.trim(),!ue&&ae.split("#").length===1){var xe=h.exec(le);if(xe)return this.path=le,this.href=le,this.pathname=xe[1],xe[2]?(this.search=xe[2],oe?this.query=P.parse(this.search.substr(1)):this.query=this.search.substr(1)):oe&&(this.search="",this.query={}),this}var pe=v.exec(le);if(pe){pe=pe[0];var Me=pe.toLowerCase();this.protocol=Me,le=le.substr(pe.length)}if(ue||pe||le.match(/^\/\/[^@\/]+@[^@\/]+/)){var Oe=le.substr(0,2)==="//";Oe&&!(pe&&D[pe])&&(le=le.substr(2),this.slashes=!0)}if(!D[pe]&&(Oe||pe&&!V[pe])){for(var Le=-1,Pe=0;Pe<R.length;Pe++){var De=le.indexOf(R[Pe]);De!==-1&&(Le===-1||De<Le)&&(Le=De)}var Ke,ze;Le===-1?ze=le.lastIndexOf("@"):ze=le.lastIndexOf("@",Le),ze!==-1&&(Ke=le.slice(0,ze),le=le.slice(ze+1),this.auth=decodeURIComponent(Ke)),Le=-1;for(var Pe=0;Pe<I.length;Pe++){var De=le.indexOf(I[Pe]);De!==-1&&(Le===-1||De<Le)&&(Le=De)}Le===-1&&(Le=le.length),this.host=le.slice(0,Le),le=le.slice(Le),this.parseHost(),this.hostname=this.hostname||"";var it=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!it)for(var ot=this.hostname.split("."),Pe=0,Ge=ot.length;Pe<Ge;Pe++){var Ee=ot[Pe];if(Ee&&!Ee.match(k)){for(var fe="",z=0,X=Ee.length;z<X;z++)Ee.charCodeAt(z)>127?fe+="x":fe+=Ee[z];if(!fe.match(k)){var de=ot.slice(0,Pe),Ce=ot.slice(Pe+1),ne=Ee.match(L);ne&&(de.push(ne[1]),Ce.unshift(ne[2])),Ce.length&&(le="/"+Ce.join(".")+le),this.hostname=de.join(".");break}}}this.hostname.length>N?this.hostname="":this.hostname=this.hostname.toLowerCase(),it||(this.hostname=b.toASCII(this.hostname));var re=this.port?":"+this.port:"",he=this.hostname||"";this.host=he+re,this.href+=this.host,it&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),le[0]!=="/"&&(le="/"+le))}if(!H[Me])for(var Pe=0,Ge=T.length;Pe<Ge;Pe++){var _e=T[Pe];if(le.indexOf(_e)!==-1){var Be=encodeURIComponent(_e);Be===_e&&(Be=escape(_e)),le=le.split(_e).join(Be)}}var Ue=le.indexOf("#");Ue!==-1&&(this.hash=le.substr(Ue),le=le.slice(0,Ue));var rt=le.indexOf("?");if(rt!==-1?(this.search=le.substr(rt),this.query=le.substr(rt+1),oe&&(this.query=P.parse(this.query)),le=le.slice(0,rt)):oe&&(this.search="",this.query={}),le&&(this.pathname=le),V[Me]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var re=this.pathname||"",et=this.search||"";this.path=re+et}return this.href=this.format(),this};function G(ae){return g.isString(ae)&&(ae=U(ae)),ae instanceof y?ae.format():y.prototype.format.call(ae)}y.prototype.format=function(){var ae=this.auth||"";ae&&(ae=encodeURIComponent(ae),ae=ae.replace(/%3A/i,":"),ae+="@");var oe=this.protocol||"",ue=this.pathname||"",se=this.hash||"",ye=!1,ve="";this.host?ye=ae+this.host:this.hostname&&(ye=ae+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ye+=":"+this.port)),this.query&&g.isObject(this.query)&&Object.keys(this.query).length&&(ve=P.stringify(this.query));var Re=this.search||ve&&"?"+ve||"";return oe&&oe.substr(-1)!==":"&&(oe+=":"),this.slashes||(!oe||V[oe])&&ye!==!1?(ye="//"+(ye||""),ue&&ue.charAt(0)!=="/"&&(ue="/"+ue)):ye||(ye=""),se&&se.charAt(0)!=="#"&&(se="#"+se),Re&&Re.charAt(0)!=="?"&&(Re="?"+Re),ue=ue.replace(/[?#]/g,function(le){return encodeURIComponent(le)}),Re=Re.replace("#","%23"),oe+ye+ue+Re+se};function J(ae,oe){return U(ae,!1,!0).resolve(oe)}y.prototype.resolve=function(ae){return this.resolveObject(U(ae,!1,!0)).format()};function ee(ae,oe){return ae?U(ae,!1,!0).resolveObject(oe):oe}y.prototype.resolveObject=function(ae){if(g.isString(ae)){var oe=new y;oe.parse(ae,!1,!0),ae=oe}for(var ue=new y,se=Object.keys(this),ye=0;ye<se.length;ye++){var ve=se[ye];ue[ve]=this[ve]}if(ue.hash=ae.hash,ae.href==="")return ue.href=ue.format(),ue;if(ae.slashes&&!ae.protocol){for(var Re=Object.keys(ae),le=0;le<Re.length;le++){var xe=Re[le];xe!=="protocol"&&(ue[xe]=ae[xe])}return V[ue.protocol]&&ue.hostname&&!ue.pathname&&(ue.path=ue.pathname="/"),ue.href=ue.format(),ue}if(ae.protocol&&ae.protocol!==ue.protocol){if(!V[ae.protocol]){for(var pe=Object.keys(ae),Me=0;Me<pe.length;Me++){var Oe=pe[Me];ue[Oe]=ae[Oe]}return ue.href=ue.format(),ue}if(ue.protocol=ae.protocol,!ae.host&&!D[ae.protocol]){for(var Ge=(ae.pathname||"").split("/");Ge.length&&!(ae.host=Ge.shift()););ae.host||(ae.host=""),ae.hostname||(ae.hostname=""),Ge[0]!==""&&Ge.unshift(""),Ge.length<2&&Ge.unshift(""),ue.pathname=Ge.join("/")}else ue.pathname=ae.pathname;if(ue.search=ae.search,ue.query=ae.query,ue.host=ae.host||"",ue.auth=ae.auth,ue.hostname=ae.hostname||ae.host,ue.port=ae.port,ue.pathname||ue.search){var Le=ue.pathname||"",Pe=ue.search||"";ue.path=Le+Pe}return ue.slashes=ue.slashes||ae.slashes,ue.href=ue.format(),ue}var De=ue.pathname&&ue.pathname.charAt(0)==="/",Ke=ae.host||ae.pathname&&ae.pathname.charAt(0)==="/",ze=Ke||De||ue.host&&ae.pathname,it=ze,ot=ue.pathname&&ue.pathname.split("/")||[],Ge=ae.pathname&&ae.pathname.split("/")||[],Ee=ue.protocol&&!V[ue.protocol];if(Ee&&(ue.hostname="",ue.port=null,ue.host&&(ot[0]===""?ot[0]=ue.host:ot.unshift(ue.host)),ue.host="",ae.protocol&&(ae.hostname=null,ae.port=null,ae.host&&(Ge[0]===""?Ge[0]=ae.host:Ge.unshift(ae.host)),ae.host=null),ze=ze&&(Ge[0]===""||ot[0]==="")),Ke)ue.host=ae.host||ae.host===""?ae.host:ue.host,ue.hostname=ae.hostname||ae.hostname===""?ae.hostname:ue.hostname,ue.search=ae.search,ue.query=ae.query,ot=Ge;else if(Ge.length)ot||(ot=[]),ot.pop(),ot=ot.concat(Ge),ue.search=ae.search,ue.query=ae.query;else if(!g.isNullOrUndefined(ae.search)){if(Ee){ue.hostname=ue.host=ot.shift();var fe=ue.host&&ue.host.indexOf("@")>0?ue.host.split("@"):!1;fe&&(ue.auth=fe.shift(),ue.host=ue.hostname=fe.shift())}return ue.search=ae.search,ue.query=ae.query,(!g.isNull(ue.pathname)||!g.isNull(ue.search))&&(ue.path=(ue.pathname?ue.pathname:"")+(ue.search?ue.search:"")),ue.href=ue.format(),ue}if(!ot.length)return ue.pathname=null,ue.search?ue.path="/"+ue.search:ue.path=null,ue.href=ue.format(),ue;for(var z=ot.slice(-1)[0],X=(ue.host||ae.host||ot.length>1)&&(z==="."||z==="..")||z==="",de=0,Ce=ot.length;Ce>=0;Ce--)z=ot[Ce],z==="."?ot.splice(Ce,1):z===".."?(ot.splice(Ce,1),de++):de&&(ot.splice(Ce,1),de--);if(!ze&&!it)for(;de--;de)ot.unshift("..");ze&&ot[0]!==""&&(!ot[0]||ot[0].charAt(0)!=="/")&&ot.unshift(""),X&&ot.join("/").substr(-1)!=="/"&&ot.push("");var ne=ot[0]===""||ot[0]&&ot[0].charAt(0)==="/";if(Ee){ue.hostname=ue.host=ne?"":ot.length?ot.shift():"";var fe=ue.host&&ue.host.indexOf("@")>0?ue.host.split("@"):!1;fe&&(ue.auth=fe.shift(),ue.host=ue.hostname=fe.shift())}return ze=ze||ue.host&&ot.length,ze&&!ne&&ot.unshift(""),ot.length?ue.pathname=ot.join("/"):(ue.pathname=null,ue.path=null),(!g.isNull(ue.pathname)||!g.isNull(ue.search))&&(ue.path=(ue.pathname?ue.pathname:"")+(ue.search?ue.search:"")),ue.auth=ae.auth||ue.auth,ue.slashes=ue.slashes||ae.slashes,ue.href=ue.format(),ue},y.prototype.parseHost=function(){var ae=this.host,oe=c.exec(ae);oe&&(oe=oe[0],oe!==":"&&(this.port=oe.substr(1)),ae=ae.substr(0,ae.length-oe.length)),ae&&(this.hostname=ae)}},{"./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(s,C,A){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/helpers/typeof"));C.exports={isString:function(g){return typeof g=="string"},isObject:function(g){return(0,p.default)(g)==="object"&&g!==null},isNull:function(g){return g===null},isNullOrUndefined:function(g){return g==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(s,C,A){"use strict";s("core-js/modules/es.number.constructor.js"),A.encodeURIComponent=function(u){try{return encodeURIComponent(u)}catch(p){return u}},A.escape=s("escape-html"),A.timestamp=function(p){if(p){var b=p;return typeof b=="string"&&(b=Number(b)),String(p).length===10&&(b*=1e3),new Date(b)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(s,C,A){(function(u,p){(function(){"use strict";var b=s("@babel/runtime/helpers/interopRequireDefault"),g=b(s("@babel/runtime/helpers/typeof"));s("core-js/modules/es.string.trim.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.split.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.function.name.js"),s("core-js/modules/es.array.concat.js");var y=s("util"),v=s("url"),c=s("http"),h=s("https"),m=s("debug")("urllib"),E=s("humanize-ms"),T=0,I=Math.pow(2,31)-10,R=/^https?:\/\//i;function N(D,V){return D===void 0?V:D}function k(D){return D?D.split(";")[0].trim().toLowerCase():""}function L(D,V){return function(P,U,G){if(P)return V(P);D({data:U,status:G.statusCode,headers:G.headers,res:G})}}A.TIMEOUTS=[E("300s"),E("300s")];var H=["json","text"];A.request=function(V,P,U){return arguments.length===2&&typeof P=="function"&&(U=P,P=null),typeof U=="function"?A.requestWithCallback(V,P,U):new Promise(function(G,J){A.requestWithCallback(V,P,L(G,J))})},A.requestWithCallback=function(V,P,U){if(!V||typeof V!="string"&&(0,g.default)(V)!=="object"){var G=y.format("expect request url to be a string or a http request options, but got %j",V);throw new Error(G)}arguments.length===2&&typeof P=="function"&&(U=P,P=null),P=P||{},T>=I&&(T=0);var J=++T;P.requestUrls=P.requestUrls||[];var ee={requestId:J,url:V,args:P,ctx:P.ctx};P.emitter&&P.emitter.emit("request",ee),P.timeout=P.timeout||A.TIMEOUTS,P.maxRedirects=P.maxRedirects||10,P.streaming=P.streaming||P.customResponse;var ae=Date.now(),oe;typeof V=="string"?(R.test(V)||(V="https://"+V),oe=v.parse(V)):oe=V;var ue=(P.type||P.method||oe.method||"GET").toUpperCase(),se=oe.port||80,ye=c,ve=N(P.agent,A.agent),Re=P.fixJSONCtlChars;oe.protocol==="https:"&&(ye=h,ve=N(P.httpsAgent,A.httpsAgent),oe.port||(se=443));var le={host:oe.hostname||oe.host||"localhost",path:oe.path||"/",method:ue,port:se,agent:ve,headers:P.headers||{},lookup:P.lookup};Array.isArray(P.timeout)?le.requestTimeout=P.timeout[P.timeout.length-1]:typeof P.timeout!="undefined"&&(le.requestTimeout=P.timeout);var xe=P.auth||oe.auth;xe&&(le.auth=xe);var pe=P.content||P.data,Me=ue==="GET"||ue==="HEAD"||P.dataAsQueryString;if(!P.content&&pe&&!(typeof pe=="string"||p.isBuffer(pe)))if(Me)pe=P.nestedQuerystring?qs.stringify(pe):querystring.stringify(pe);else{var Oe=le.headers["Content-Type"]||le.headers["content-type"];Oe||(P.contentType==="json"?Oe="application/json":Oe="application/x-www-form-urlencoded",le.headers["Content-Type"]=Oe),k(Oe)==="application/json"?pe=JSON.stringify(pe):pe=P.nestedQuerystring?qs.stringify(pe):querystring.stringify(pe)}Me&&pe&&(le.path+=(oe.query?"&":"?")+pe,pe=null);var Le=0;if(pe){var Pe=pe.length;p.isBuffer(pe)||(Pe=p.byteLength(pe)),Le=le.headers["Content-Length"]=Pe}P.dataType==="json"&&(le.headers.Accept="application/json"),typeof P.beforeRequest=="function"&&P.beforeRequest(le);var De=null,Ke=null,ze=null,it=!1,ot=!1,Ge=0,Ee=-1,fe=!1,z="",X="",de=null;P.timing&&(de={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Ce(){De&&(clearTimeout(De),De=null)}function ne(){Ke&&(clearTimeout(Ke),Ke=null)}function re(ut,Tt,vt){if(ne(),!U){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),J,u.pid,le.method,V),ut&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),J,u.pid,ut.name,ut.message,ut.stack);return}var Ct=U;U=null;var Ft={};vt&&(Ee=vt.statusCode,Ft=vt.headers);var Rt=Date.now()-ae;de&&(de.contentDownload=Rt),m("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Rt,Ge,Ee,le.method,le.host,le.path,ot,de);var $e={status:Ee,statusCode:Ee,headers:Ft,size:Ge,aborted:fe,rt:Rt,keepAliveSocket:ot,data:Tt,requestUrls:P.requestUrls,timing:de,remoteAddress:z,remotePort:X};if(ut){var Zt="";ve&&typeof ve.getCurrentStatus=="function"&&(Zt=", agent status: "+JSON.stringify(ve.getCurrentStatus())),ut.message+=", "+le.method+" "+V+" "+Ee+" (connected: "+it+", keepalive socket: "+ot+Zt+`)
headers: `+JSON.stringify(Ft),ut.data=Tt,ut.path=le.path,ut.status=Ee,ut.headers=Ft,ut.res=$e}Ct(ut,Tt,P.streaming?vt:$e),P.emitter&&(ee.url=V,ee.socket=pt&&pt.connection,ee.options=le,ee.size=Le,P.emitter.emit("response",{requestId:J,error:ut,ctx:P.ctx,req:ee,res:$e}))}function he(ut){var Tt=null;if(P.followRedirect&&statuses.redirect[ut.statusCode]){P._followRedirectCount=(P._followRedirectCount||0)+1;var vt=ut.headers.location;if(!vt)Tt=new Error("Got statusCode "+ut.statusCode+" but cannot resolve next location from headers"),Tt.name="FollowRedirectError";else if(P._followRedirectCount>P.maxRedirects)Tt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+V),Tt.name="MaxRedirectError";else{var Ct=P.formatRedirectUrl?P.formatRedirectUrl(V,vt):v.resolve(V,vt);m("Request#%d %s: `redirected` from %s to %s",J,le.path,V,Ct),ne(),P.headers&&P.headers.Host&&R.test(vt)&&(P.headers.Host=null);var Ft=U;return U=null,A.requestWithCallback(Ct,P,Ft),{redirect:!0,error:null}}}return{redirect:!1,error:Tt}}P.gzip&&!le.headers["Accept-Encoding"]&&!le.headers["accept-encoding"]&&(le.headers["Accept-Encoding"]="gzip");function _e(ut,Tt,vt){var Ct=ut.headers["content-encoding"];return vt(null,Tt,Ct)}var Be=P.writeStream;m("Request#%d %s %s with headers %j, options.path: %s",J,ue,V,le.headers,le.path),P.requestUrls.push(V);function Ue(ut){if(de&&(de.waiting=Date.now()-ae),m("Request#%d %s `req response` event emit: status %d, headers: %j",J,V,ut.statusCode,ut.headers),P.streaming){var Tt=he(ut);if(Tt.redirect){ut.resume();return}return Tt.error?(ut.resume(),re(Tt.error,null,ut)):re(null,null,ut)}if(ut.on("close",function(){m("Request#%d %s: `res close` event emit, total size %d",J,V,Ge)}),ut.on("error",function(){m("Request#%d %s: `res error` event emit, total size %d",J,V,Ge)}),ut.on("aborted",function(){fe=!0,m("Request#%d %s: `res aborted` event emit, total size %d",J,V,Ge)}),Be){var vt=he(ut);if(vt.redirect){ut.resume();return}return vt.error?(ut.resume(),Be.end(),re(vt.error,null,ut)):(P.consumeWriteStream===!1?ut.on("end",re.bind(null,null,null,ut)):Be.on("close",function(){m("Request#%d %s: writeStream close event emitted",J,V),re(ze||null,null,ut)}),ut.pipe(Be))}var Ct=[];ut.on("data",function(Ft){m("Request#%d %s: `res data` event emit, size %d",J,V,Ft.length),Ge+=Ft.length,Ct.push(Ft)}),ut.on("end",function(){var Ft=p.concat(Ct,Ge);if(m("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",J,V,Ge,ut._dumped),ze)return re(ze,Ft,ut);var Rt=he(ut);if(Rt.error)return re(Rt.error,Ft,ut);Rt.redirect||_e(ut,Ft,function($e,Zt,vn){if($e)return re($e,Ft,ut);if(!vn&&H.indexOf(P.dataType)>=0){try{Zt=decodeBodyByCharset(Zt,ut)}catch(Dn){return m("decodeBodyByCharset error: %s",Dn),re(null,Zt,ut)}if(P.dataType==="json")if(Ge===0)Zt=null;else{var wt=parseJSON(Zt,Re);wt.error?$e=wt.error:Zt=wt.data}}fe&&m("Request#%d %s: Remote socket was terminated before `response.end()` was called",J,V),re($e,Zt,ut)})})}var rt,et;Array.isArray(P.timeout)?(rt=E(P.timeout[0]),et=E(P.timeout[1])):rt=et=E(P.timeout),m("ConnectTimeout: %d, ResponseTimeout: %d",rt,et);function dt(){m("Connect timer ticking, timeout: %d",rt),De=setTimeout(function(){De=null,Ee===-1&&(Ee=-2);var ut="Connect timeout for "+rt+"ms",Tt="ConnectionTimeoutError";pt.socket||(Tt="SocketAssignTimeoutError",ut+=", working sockets is full"),ze=new Error(ut),ze.name=Tt,ze.requestId=J,m("ConnectTimeout: Request#%d %s %s: %s, connected: %s",J,V,ze.name,ut,it),nt()},rt)}function Ot(){m("Response timer ticking, timeout: %d",et),Ke=setTimeout(function(){Ke=null;var ut="Response timeout for "+et+"ms",Tt="ResponseTimeoutError";ze=new Error(ut),ze.name=Tt,ze.requestId=J,m("ResponseTimeout: Request#%d %s %s: %s, connected: %s",J,V,ze.name,ut,it),nt()},et)}var pt;le.mode=P.mode?P.mode:"";try{pt=ye.request(le,Ue)}catch(ut){return re(ut)}typeof window=="undefined"?dt():pt.on("requestTimeout",function(){Ee===-1&&(Ee=-2);var ut="Connect timeout for "+rt+"ms",Tt="ConnectionTimeoutError";ze=new Error(ut),ze.name=Tt,ze.requestId=J,nt()});function nt(){m("Request#%d %s abort, connected: %s",J,V,it),pt.socket||(ze.noSocket=!0,re(ze)),pt.abort()}return de&&pt.on("finish",function(){de.requestSent=Date.now()-ae}),pt.once("socket",function(ut){de&&(de.queuing=Date.now()-ae);var Tt=ut.readyState;if(Tt==="opening"){ut.once("lookup",function(vt,Ct,Ft){m("Request#%d %s lookup: %s, %s, %s",J,V,vt,Ct,Ft),de&&(de.dnslookup=Date.now()-ae),Ct&&(z=Ct)}),ut.once("connect",function(){de&&(de.connected=Date.now()-ae),Ce(),Ot(),m("Request#%d %s new socket connected",J,V),it=!0,z||(z=ut.remoteAddress),X=ut.remotePort});return}m("Request#%d %s reuse socket connected, readyState: %s",J,V,Tt),it=!0,ot=!0,z||(z=ut.remoteAddress),X=ut.remotePort,Ce(),Ot()}),pt.on("error",function(ut){(ut.name==="Error"||ut.name==="TypeError")&&(ut.name=it?"ResponseError":"RequestError"),ut.message+=' (req "error")',m("Request#%d %s `req error` event emit, %s: %s",J,V,ut.name,ut.message),re(ze||ut)}),Be&&Be.once("error",function(ut){ut.message+=' (writeStream "error")',ze=ut,m("Request#%d %s `writeStream error` event emit, %s: %s",J,V,ut.name,ut.message),nt()}),P.stream?(P.stream.pipe(pt),P.stream.once("error",function(ut){ut.message+=' (stream "error")',ze=ut,m("Request#%d %s `readStream error` event emit, %s: %s",J,V,ut.name,ut.message),nt()})):pt.end(pe),pt.requestId=J,pt}}).call(this)}).call(this,s("_process"),s("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},99498:function(Ne,Q,S){(function(B){B(S(89780))})(function(B){B.defineOption("placeholder","",function(b,g,y){var v=y&&y!=B.Init;if(g&&!v)b.on("blur",A),b.on("change",u),b.on("swapDoc",u),B.on(b.getInputField(),"compositionupdate",b.state.placeholderCompose=function(){C(b)}),u(b);else if(!g&&v){b.off("blur",A),b.off("change",u),b.off("swapDoc",u),B.off(b.getInputField(),"compositionupdate",b.state.placeholderCompose),Z(b);var c=b.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}g&&!b.hasFocus()&&A(b)});function Z(b){b.state.placeholder&&(b.state.placeholder.parentNode.removeChild(b.state.placeholder),b.state.placeholder=null)}function s(b){Z(b);var g=b.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=b.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var y=b.getOption("placeholder");typeof y=="string"&&(y=document.createTextNode(y)),g.appendChild(y),b.display.lineSpace.insertBefore(g,b.display.lineSpace.firstChild)}function C(b){setTimeout(function(){var g=!1,y=b.getInputField();y.nodeName=="TEXTAREA"?g=!y.value:b.lineCount()==1&&(g=!/[^\u200b]/.test(y.querySelector(".CodeMirror-line").textContent)),g?s(b):Z(b)},20)}function A(b){p(b)&&s(b)}function u(b){var g=b.getWrapperElement(),y=p(b);g.className=g.className.replace(" CodeMirror-empty","")+(y?" CodeMirror-empty":""),y?s(b):Z(b)}function p(b){return b.lineCount()===1&&b.getLine(0)===""}})},25717:function(Ne,Q,S){(function(B){B(S(89780))})(function(B){var Z={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},s=B.Pos;B.defineOption("autoCloseBrackets",!1,function(E,T,I){I&&I!=B.Init&&(E.removeKeyMap(A),E.state.closeBrackets=null),T&&(u(C(T,"pairs")),E.state.closeBrackets=T,E.addKeyMap(A))});function C(E,T){return T=="pairs"&&typeof E=="string"?E:typeof E=="object"&&E[T]!=null?E[T]:Z[T]}var A={Backspace:g,Enter:y};function u(E){for(var T=0;T<E.length;T++){var I=E.charAt(T),R="'"+I+"'";A[R]||(A[R]=p(I))}}u(Z.pairs+"`");function p(E){return function(T){return c(T,E)}}function b(E){var T=E.state.closeBrackets;if(!T||T.override)return T;var I=E.getModeAt(E.getCursor());return I.closeBrackets||T}function g(E){var T=b(E);if(!T||E.getOption("disableInput"))return B.Pass;for(var I=C(T,"pairs"),R=E.listSelections(),N=0;N<R.length;N++){if(!R[N].empty())return B.Pass;var k=h(E,R[N].head);if(!k||I.indexOf(k)%2!=0)return B.Pass}for(var N=R.length-1;N>=0;N--){var L=R[N].head;E.replaceRange("",s(L.line,L.ch-1),s(L.line,L.ch+1),"+delete")}}function y(E){var T=b(E),I=T&&C(T,"explode");if(!I||E.getOption("disableInput"))return B.Pass;for(var R=E.listSelections(),N=0;N<R.length;N++){if(!R[N].empty())return B.Pass;var k=h(E,R[N].head);if(!k||I.indexOf(k)%2!=0)return B.Pass}E.operation(function(){var L=E.lineSeparator()||`
`;E.replaceSelection(L+L,null),E.execCommand("goCharLeft"),R=E.listSelections();for(var H=0;H<R.length;H++){var D=R[H].head.line;E.indentLine(D,null,!0),E.indentLine(D+1,null,!0)}})}function v(E){var T=B.cmpPos(E.anchor,E.head)>0;return{anchor:new s(E.anchor.line,E.anchor.ch+(T?-1:1)),head:new s(E.head.line,E.head.ch+(T?1:-1))}}function c(E,T){var I=b(E);if(!I||E.getOption("disableInput"))return B.Pass;var R=C(I,"pairs"),N=R.indexOf(T);if(N==-1)return B.Pass;for(var k=C(I,"closeBefore"),L=C(I,"triples"),H=R.charAt(N+1)==T,D=E.listSelections(),V=N%2==0,P,U=0;U<D.length;U++){var G=D[U],J=G.head,ee,ae=E.getRange(J,s(J.line,J.ch+1));if(V&&!G.empty())ee="surround";else if((H||!V)&&ae==T)H&&m(E,J)?ee="both":L.indexOf(T)>=0&&E.getRange(J,s(J.line,J.ch+3))==T+T+T?ee="skipThree":ee="skip";else if(H&&J.ch>1&&L.indexOf(T)>=0&&E.getRange(s(J.line,J.ch-2),J)==T+T){if(J.ch>2&&/\bstring/.test(E.getTokenTypeAt(s(J.line,J.ch-2))))return B.Pass;ee="addFour"}else if(H){var oe=J.ch==0?" ":E.getRange(s(J.line,J.ch-1),J);if(!B.isWordChar(ae)&&oe!=T&&!B.isWordChar(oe))ee="both";else return B.Pass}else if(V&&(ae.length===0||/\s/.test(ae)||k.indexOf(ae)>-1))ee="both";else return B.Pass;if(!P)P=ee;else if(P!=ee)return B.Pass}var ue=N%2?R.charAt(N-1):T,se=N%2?T:R.charAt(N+1);E.operation(function(){if(P=="skip")E.execCommand("goCharRight");else if(P=="skipThree")for(var ye=0;ye<3;ye++)E.execCommand("goCharRight");else if(P=="surround"){for(var ve=E.getSelections(),ye=0;ye<ve.length;ye++)ve[ye]=ue+ve[ye]+se;E.replaceSelections(ve,"around"),ve=E.listSelections().slice();for(var ye=0;ye<ve.length;ye++)ve[ye]=v(ve[ye]);E.setSelections(ve)}else P=="both"?(E.replaceSelection(ue+se,null),E.triggerElectric(ue+se),E.execCommand("goCharLeft")):P=="addFour"&&(E.replaceSelection(ue+ue+ue+ue,"before"),E.execCommand("goCharRight"))})}function h(E,T){var I=E.getRange(s(T.line,T.ch-1),s(T.line,T.ch+1));return I.length==2?I:null}function m(E,T){var I=E.getTokenAt(s(T.line,T.ch+1));return/\bstring/.test(I.type)&&I.start==T.ch&&(T.ch==0||!/\bstring/.test(E.getTokenTypeAt(T)))}})},6313:function(Ne,Q,S){(function(B){B(S(89780),S(32855))})(function(B){B.defineOption("autoCloseTags",!1,function(g,y,v){if(v!=B.Init&&v&&g.removeKeyMap("autoCloseTags"),!!y){var c={name:"autoCloseTags"};(typeof y!="object"||y.whenClosing!==!1)&&(c["'/'"]=function(h){return u(h)}),(typeof y!="object"||y.whenOpening!==!1)&&(c["'>'"]=function(h){return C(h)}),g.addKeyMap(c)}});var Z=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],s=["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 C(g){if(g.getOption("disableInput"))return B.Pass;for(var y=g.listSelections(),v=[],c=g.getOption("autoCloseTags"),h=0;h<y.length;h++){if(!y[h].empty())return B.Pass;var m=y[h].head,E=g.getTokenAt(m),T=B.innerMode(g.getMode(),E.state),I=T.state,R=T.mode.xmlCurrentTag&&T.mode.xmlCurrentTag(I),N=R&&R.name;if(!N)return B.Pass;var k=T.mode.configuration=="html",L=typeof c=="object"&&c.dontCloseTags||k&&Z,H=typeof c=="object"&&c.indentTags||k&&s;E.end>m.ch&&(N=N.slice(0,N.length-E.end+m.ch));var D=N.toLowerCase();if(!N||E.type=="string"&&(E.end!=m.ch||!/[\"\']/.test(E.string.charAt(E.string.length-1))||E.string.length==1)||E.type=="tag"&&R.close||E.string.indexOf("/")==m.ch-E.start-1||L&&p(L,D)>-1||b(g,T.mode.xmlCurrentContext&&T.mode.xmlCurrentContext(I)||[],N,m,!0))return B.Pass;var V=typeof c=="object"&&c.emptyTags;if(V&&p(V,N)>-1){v[h]={text:"/>",newPos:B.Pos(m.line,m.ch+2)};continue}var P=H&&p(H,D)>-1;v[h]={indent:P,text:">"+(P?`
`:"")+"</"+N+">",newPos:P?B.Pos(m.line+1,0):B.Pos(m.line,m.ch+1)}}for(var U=typeof c=="object"&&c.dontIndentOnAutoClose,h=y.length-1;h>=0;h--){var G=v[h];g.replaceRange(G.text,y[h].head,y[h].anchor,"+insert");var J=g.listSelections().slice(0);J[h]={head:G.newPos,anchor:G.newPos},g.setSelections(J),!U&&G.indent&&(g.indentLine(G.newPos.line,null,!0),g.indentLine(G.newPos.line+1,null,!0))}}function A(g,y){for(var v=g.listSelections(),c=[],h=y?"/":"</",m=g.getOption("autoCloseTags"),E=typeof m=="object"&&m.dontIndentOnSlash,T=0;T<v.length;T++){if(!v[T].empty())return B.Pass;var I=v[T].head,R=g.getTokenAt(I),N=B.innerMode(g.getMode(),R.state),k=N.state;if(y&&(R.type=="string"||R.string.charAt(0)!="<"||R.start!=I.ch-1))return B.Pass;var L,H=N.mode.name!="xml"&&g.getMode().name=="htmlmixed";if(H&&N.mode.name=="javascript")L=h+"script";else if(H&&N.mode.name=="css")L=h+"style";else{var D=N.mode.xmlCurrentContext&&N.mode.xmlCurrentContext(k);if(!D||D.length&&b(g,D,D[D.length-1],I))return B.Pass;L=h+D[D.length-1]}g.getLine(I.line).charAt(R.end)!=">"&&(L+=">"),c[T]=L}if(g.replaceSelections(c),v=g.listSelections(),!E)for(var T=0;T<v.length;T++)(T==v.length-1||v[T].head.line<v[T+1].head.line)&&g.indentLine(v[T].head.line)}function u(g){return g.getOption("disableInput")?B.Pass:A(g,!0)}B.commands.closeTag=function(g){return A(g)};function p(g,y){if(g.indexOf)return g.indexOf(y);for(var v=0,c=g.length;v<c;++v)if(g[v]==y)return v;return-1}function b(g,y,v,c,h){if(!B.scanForClosingTag)return!1;var m=Math.min(g.lastLine()+1,c.line+500),E=B.scanForClosingTag(g,c,null,m);if(!E||E.tag!=v)return!1;for(var T=h?1:0,I=y.length-1;I>=0&&y[I]==v;I--)++T;c=E.to;for(var I=1;I<T;I++){var R=B.scanForClosingTag(g,c,null,m);if(!R||R.tag!=v)return!1;c=R.to}return!0}})},32855:function(Ne,Q,S){(function(B){B(S(89780))})(function(B){"use strict";var Z=B.Pos;function s(I,R){return I.line-R.line||I.ch-R.ch}var C="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",A=C+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",u=new RegExp("<(/?)(["+C+"]["+A+"]*)","g");function p(I,R,N,k){this.line=R,this.ch=N,this.cm=I,this.text=I.getLine(R),this.min=k?Math.max(k.from,I.firstLine()):I.firstLine(),this.max=k?Math.min(k.to-1,I.lastLine()):I.lastLine()}function b(I,R){var N=I.cm.getTokenTypeAt(Z(I.line,R));return N&&/\btag\b/.test(N)}function g(I){if(!(I.line>=I.max))return I.ch=0,I.text=I.cm.getLine(++I.line),!0}function y(I){if(!(I.line<=I.min))return I.text=I.cm.getLine(--I.line),I.ch=I.text.length,!0}function v(I){for(;;){var R=I.text.indexOf(">",I.ch);if(R==-1){if(g(I))continue;return}if(!b(I,R+1)){I.ch=R+1;continue}var N=I.text.lastIndexOf("/",R),k=N>-1&&!/\S/.test(I.text.slice(N+1,R));return I.ch=R+1,k?"selfClose":"regular"}}function c(I){for(;;){var R=I.ch?I.text.lastIndexOf("<",I.ch-1):-1;if(R==-1){if(y(I))continue;return}if(!b(I,R+1)){I.ch=R;continue}u.lastIndex=R,I.ch=R;var N=u.exec(I.text);if(N&&N.index==R)return N}}function h(I){for(;;){u.lastIndex=I.ch;var R=u.exec(I.text);if(!R){if(g(I))continue;return}if(!b(I,R.index+1)){I.ch=R.index+1;continue}return I.ch=R.index+R[0].length,R}}function m(I){for(;;){var R=I.ch?I.text.lastIndexOf(">",I.ch-1):-1;if(R==-1){if(y(I))continue;return}if(!b(I,R+1)){I.ch=R;continue}var N=I.text.lastIndexOf("/",R),k=N>-1&&!/\S/.test(I.text.slice(N+1,R));return I.ch=R+1,k?"selfClose":"regular"}}function E(I,R){for(var N=[];;){var k=h(I),L,H=I.line,D=I.ch-(k?k[0].length:0);if(!k||!(L=v(I)))return;if(L!="selfClose")if(k[1]){for(var V=N.length-1;V>=0;--V)if(N[V]==k[2]){N.length=V;break}if(V<0&&(!R||R==k[2]))return{tag:k[2],from:Z(H,D),to:Z(I.line,I.ch)}}else N.push(k[2])}}function T(I,R){for(var N=[];;){var k=m(I);if(!k)return;if(k=="selfClose"){c(I);continue}var L=I.line,H=I.ch,D=c(I);if(!D)return;if(D[1])N.push(D[2]);else{for(var V=N.length-1;V>=0;--V)if(N[V]==D[2]){N.length=V;break}if(V<0&&(!R||R==D[2]))return{tag:D[2],from:Z(I.line,I.ch),to:Z(L,H)}}}}B.registerHelper("fold","xml",function(I,R){for(var N=new p(I,R.line,0);;){var k=h(N);if(!k||N.line!=R.line)return;var L=v(N);if(!L)return;if(!k[1]&&L!="selfClose"){var H=Z(N.line,N.ch),D=E(N,k[2]);return D&&s(D.from,H)>0?{from:H,to:D.from}:null}}}),B.findMatchingTag=function(I,R,N){var k=new p(I,R.line,R.ch,N);if(!(k.text.indexOf(">")==-1&&k.text.indexOf("<")==-1)){var L=v(k),H=L&&Z(k.line,k.ch),D=L&&c(k);if(!(!L||!D||s(k,R)>0)){var V={from:Z(k.line,k.ch),to:H,tag:D[2]};return L=="selfClose"?{open:V,close:null,at:"open"}:D[1]?{open:T(k,D[2]),close:V,at:"close"}:(k=new p(I,H.line,H.ch,N),{open:V,close:E(k,D[2]),at:"open"})}}},B.findEnclosingTag=function(I,R,N,k){for(var L=new p(I,R.line,R.ch,N);;){var H=T(L,k);if(!H)break;var D=new p(I,R.line,R.ch,N),V=E(D,H.tag);if(V)return{open:H,close:V}}},B.scanForClosingTag=function(I,R,N,k){var L=new p(I,R.line,R.ch,k?{from:0,to:k}:null);return E(L,N)}})},89780:function(Ne){(function(Q,S){Ne.exports=S()})(this,function(){"use strict";var Q=navigator.userAgent,S=navigator.platform,B=/gecko\/\d/i.test(Q),Z=/MSIE \d/.test(Q),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Q),C=/Edge\/(\d+)/.exec(Q),A=Z||s||C,u=A&&(Z?document.documentMode||6:+(C||s)[1]),p=!C&&/WebKit\//.test(Q),b=p&&/Qt\/\d+\.\d+/.test(Q),g=!C&&/Chrome\//.test(Q),y=/Opera\//.test(Q),v=/Apple Computer/.test(navigator.vendor),c=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Q),h=/PhantomJS/.test(Q),m=!C&&/AppleWebKit/.test(Q)&&/Mobile\/\w+/.test(Q),E=/Android/.test(Q),T=m||E||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Q),I=m||/Mac/.test(S),R=/\bCrOS\b/.test(Q),N=/win/i.test(S),k=y&&Q.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(y=!1,p=!0);var L=I&&(b||y&&(k==null||k<12.11)),H=B||A&&u>=9;function D(l){return new RegExp("(^|\\s)"+l+"(?:$|\\s)\\s*")}var V=function(l,w){var K=l.className,W=D(w).exec(K);if(W){var q=K.slice(W.index+W[0].length);l.className=K.slice(0,W.index)+(q?W[1]+q:"")}};function P(l){for(var w=l.childNodes.length;w>0;--w)l.removeChild(l.firstChild);return l}function U(l,w){return P(l).appendChild(w)}function G(l,w,K,W){var q=document.createElement(l);if(K&&(q.className=K),W&&(q.style.cssText=W),typeof w=="string")q.appendChild(document.createTextNode(w));else if(w)for(var be=0;be<w.length;++be)q.appendChild(w[be]);return q}function J(l,w,K,W){var q=G(l,w,K,W);return q.setAttribute("role","presentation"),q}var ee;document.createRange?ee=function(l,w,K,W){var q=document.createRange();return q.setEnd(W||l,K),q.setStart(l,w),q}:ee=function(l,w,K){var W=document.body.createTextRange();try{W.moveToElementText(l.parentNode)}catch(q){return W}return W.collapse(!0),W.moveEnd("character",K),W.moveStart("character",w),W};function ae(l,w){if(w.nodeType==3&&(w=w.parentNode),l.contains)return l.contains(w);do if(w.nodeType==11&&(w=w.host),w==l)return!0;while(w=w.parentNode)}function oe(){var l;try{l=document.activeElement}catch(w){l=document.body||null}for(;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;return l}function ue(l,w){var K=l.className;D(w).test(K)||(l.className+=(K?" ":"")+w)}function se(l,w){for(var K=l.split(" "),W=0;W<K.length;W++)K[W]&&!D(K[W]).test(w)&&(w+=" "+K[W]);return w}var ye=function(l){l.select()};m?ye=function(l){l.selectionStart=0,l.selectionEnd=l.value.length}:A&&(ye=function(l){try{l.select()}catch(w){}});function ve(l){var w=Array.prototype.slice.call(arguments,1);return function(){return l.apply(null,w)}}function Re(l,w,K){w||(w={});for(var W in l)l.hasOwnProperty(W)&&(K!==!1||!w.hasOwnProperty(W))&&(w[W]=l[W]);return w}function le(l,w,K,W,q){w==null&&(w=l.search(/[^\s\u00a0]/),w==-1&&(w=l.length));for(var be=W||0,Fe=q||0;;){var Ye=l.indexOf(" ",be);if(Ye<0||Ye>=w)return Fe+(w-be);Fe+=Ye-be,Fe+=K-Fe%K,be=Ye+1}}var xe=function(){this.id=null,this.f=null,this.time=0,this.handler=ve(this.onTimeout,this)};xe.prototype.onTimeout=function(l){l.id=0,l.time<=+new Date?l.f():setTimeout(l.handler,l.time-+new Date)},xe.prototype.set=function(l,w){this.f=w;var K=+new Date+l;(!this.id||K<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,l),this.time=K)};function pe(l,w){for(var K=0;K<l.length;++K)if(l[K]==w)return K;return-1}var Me=50,Oe={toString:function(){return"CodeMirror.Pass"}},Le={scroll:!1},Pe={origin:"*mouse"},De={origin:"+move"};function Ke(l,w,K){for(var W=0,q=0;;){var be=l.indexOf(" ",W);be==-1&&(be=l.length);var Fe=be-W;if(be==l.length||q+Fe>=w)return W+Math.min(Fe,w-q);if(q+=be-W,q+=K-q%K,W=be+1,q>=w)return W}}var ze=[""];function it(l){for(;ze.length<=l;)ze.push(ot(ze)+" ");return ze[l]}function ot(l){return l[l.length-1]}function Ge(l,w){for(var K=[],W=0;W<l.length;W++)K[W]=w(l[W],W);return K}function Ee(l,w,K){for(var W=0,q=K(w);W<l.length&&K(l[W])<=q;)W++;l.splice(W,0,w)}function fe(){}function z(l,w){var K;return Object.create?K=Object.create(l):(fe.prototype=l,K=new fe),w&&Re(w,K),K}var X=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function de(l){return/\w/.test(l)||l>"\x80"&&(l.toUpperCase()!=l.toLowerCase()||X.test(l))}function Ce(l,w){return w?w.source.indexOf("\\w")>-1&&de(l)?!0:w.test(l):de(l)}function ne(l){for(var w in l)if(l.hasOwnProperty(w)&&l[w])return!1;return!0}var re=/[\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(l){return l.charCodeAt(0)>=768&&re.test(l)}function _e(l,w,K){for(;(K<0?w>0:w<l.length)&&he(l.charAt(w));)w+=K;return w}function Be(l,w,K){for(var W=w>K?-1:1;;){if(w==K)return w;var q=(w+K)/2,be=W<0?Math.ceil(q):Math.floor(q);if(be==w)return l(be)?w:K;l(be)?K=be:w=be+W}}function Ue(l,w,K,W){if(!l)return W(w,K,"ltr",0);for(var q=!1,be=0;be<l.length;++be){var Fe=l[be];(Fe.from<K&&Fe.to>w||w==K&&Fe.to==w)&&(W(Math.max(Fe.from,w),Math.min(Fe.to,K),Fe.level==1?"rtl":"ltr",be),q=!0)}q||W(w,K,"ltr")}var rt=null;function et(l,w,K){var W;rt=null;for(var q=0;q<l.length;++q){var be=l[q];if(be.from<w&&be.to>w)return q;be.to==w&&(be.from!=be.to&&K=="before"?W=q:rt=q),be.from==w&&(be.from!=be.to&&K!="before"?W=q:rt=q)}return W!=null?W:rt}var dt=function(){var l="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",w="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function K(tt){return tt<=247?l.charAt(tt):1424<=tt&&tt<=1524?"R":1536<=tt&&tt<=1785?w.charAt(tt-1536):1774<=tt&&tt<=2220?"r":8192<=tt&&tt<=8203?"w":tt==8204?"b":"L"}var W=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,q=/[stwN]/,be=/[LRr]/,Fe=/[Lb1n]/,Ye=/[1n]/;function We(tt,Nt,at){this.level=tt,this.from=Nt,this.to=at}return function(tt,Nt){var at=Nt=="ltr"?"L":"R";if(tt.length==0||Nt=="ltr"&&!W.test(tt))return!1;for(var $t=tt.length,Ut=[],Nn=0;Nn<$t;++Nn)Ut.push(K(tt.charCodeAt(Nn)));for(var Ln=0,Yn=at;Ln<$t;++Ln){var sr=Ut[Ln];sr=="m"?Ut[Ln]=Yn:Yn=sr}for(var kr=0,yr=at;kr<$t;++kr){var Hr=Ut[kr];Hr=="1"&&yr=="r"?Ut[kr]="n":be.test(Hr)&&(yr=Hr,Hr=="r"&&(Ut[kr]="R"))}for(var Ci=1,vr=Ut[0];Ci<$t-1;++Ci){var qi=Ut[Ci];qi=="+"&&vr=="1"&&Ut[Ci+1]=="1"?Ut[Ci]="1":qi==","&&vr==Ut[Ci+1]&&(vr=="1"||vr=="n")&&(Ut[Ci]=vr),vr=qi}for(var as=0;as<$t;++as){var Qs=Ut[as];if(Qs==",")Ut[as]="N";else if(Qs=="%"){var ys=void 0;for(ys=as+1;ys<$t&&Ut[ys]=="%";++ys);for(var hl=as&&Ut[as-1]=="!"||ys<$t&&Ut[ys]=="1"?"1":"N",Fa=as;Fa<ys;++Fa)Ut[Fa]=hl;as=ys-1}}for(var Ws=0,El=at;Ws<$t;++Ws){var _a=Ut[Ws];El=="L"&&_a=="1"?Ut[Ws]="L":be.test(_a)&&(El=_a)}for(var Vs=0;Vs<$t;++Vs)if(q.test(Ut[Vs])){var bo=void 0;for(bo=Vs+1;bo<$t&&q.test(Ut[bo]);++bo);for(var ws=(Vs?Ut[Vs-1]:at)=="L",ua=(bo<$t?Ut[bo]:at)=="L",Aa=ws==ua?ws?"L":"R":at,bu=Vs;bu<bo;++bu)Ut[bu]=Aa;Vs=bo-1}for(var bs=[],ou,Ns=0;Ns<$t;)if(Fe.test(Ut[Ns])){var df=Ns;for(++Ns;Ns<$t&&Fe.test(Ut[Ns]);++Ns);bs.push(new We(0,df,Ns))}else{var jl=Ns,Cl=bs.length,fl=Nt=="rtl"?1:0;for(++Ns;Ns<$t&&Ut[Ns]!="L";++Ns);for(var Vo=jl;Vo<Ns;)if(Ye.test(Ut[Vo])){jl<Vo&&(bs.splice(Cl,0,new We(1,jl,Vo)),Cl+=fl);var ca=Vo;for(++Vo;Vo<Ns&&Ye.test(Ut[Vo]);++Vo);bs.splice(Cl,0,new We(2,ca,Vo)),Cl+=fl,jl=Vo}else++Vo;jl<Ns&&bs.splice(Cl,0,new We(1,jl,Ns))}return Nt=="ltr"&&(bs[0].level==1&&(ou=tt.match(/^\s+/))&&(bs[0].from=ou[0].length,bs.unshift(new We(0,0,ou[0].length))),ot(bs).level==1&&(ou=tt.match(/\s+$/))&&(ot(bs).to-=ou[0].length,bs.push(new We(0,$t-ou[0].length,$t)))),Nt=="rtl"?bs.reverse():bs}}();function Ot(l,w){var K=l.order;return K==null&&(K=l.order=dt(l.text,w)),K}var pt=[],nt=function(l,w,K){if(l.addEventListener)l.addEventListener(w,K,!1);else if(l.attachEvent)l.attachEvent("on"+w,K);else{var W=l._handlers||(l._handlers={});W[w]=(W[w]||pt).concat(K)}};function ut(l,w){return l._handlers&&l._handlers[w]||pt}function Tt(l,w,K){if(l.removeEventListener)l.removeEventListener(w,K,!1);else if(l.detachEvent)l.detachEvent("on"+w,K);else{var W=l._handlers,q=W&&W[w];if(q){var be=pe(q,K);be>-1&&(W[w]=q.slice(0,be).concat(q.slice(be+1)))}}}function vt(l,w){var K=ut(l,w);if(K.length)for(var W=Array.prototype.slice.call(arguments,2),q=0;q<K.length;++q)K[q].apply(null,W)}function Ct(l,w,K){return typeof w=="string"&&(w={type:w,preventDefault:function(){this.defaultPrevented=!0}}),vt(l,K||w.type,l,w),wt(w)||w.codemirrorIgnore}function Ft(l){var w=l._handlers&&l._handlers.cursorActivity;if(w)for(var K=l.curOp.cursorActivityHandlers||(l.curOp.cursorActivityHandlers=[]),W=0;W<w.length;++W)pe(K,w[W])==-1&&K.push(w[W])}function Rt(l,w){return ut(l,w).length>0}function $e(l){l.prototype.on=function(w,K){nt(this,w,K)},l.prototype.off=function(w,K){Tt(this,w,K)}}function Zt(l){l.preventDefault?l.preventDefault():l.returnValue=!1}function vn(l){l.stopPropagation?l.stopPropagation():l.cancelBubble=!0}function wt(l){return l.defaultPrevented!=null?l.defaultPrevented:l.returnValue==!1}function Dn(l){Zt(l),vn(l)}function nr(l){return l.target||l.srcElement}function Qn(l){var w=l.which;return w==null&&(l.button&1?w=1:l.button&2?w=3:l.button&4&&(w=2)),I&&l.ctrlKey&&w==1&&(w=3),w}var jt=function(){if(A&&u<9)return!1;var l=G("div");return"draggable"in l||"dragDrop"in l}(),br;function dr(l){if(br==null){var w=G("span","\u200B");U(l,G("span",[w,document.createTextNode("x")])),l.firstChild.offsetHeight!=0&&(br=w.offsetWidth<=1&&w.offsetHeight>2&&!(A&&u<8))}var K=br?G("span","\u200B"):G("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return K.setAttribute("cm-text",""),K}var zn;function $n(l){if(zn!=null)return zn;var w=U(l,document.createTextNode("A\u062EA")),K=ee(w,0,1).getBoundingClientRect(),W=ee(w,1,2).getBoundingClientRect();return P(l),!K||K.left==K.right?!1:zn=W.right-K.right<3}var Er=`
b`.split(/\n/).length!=3?function(l){for(var w=0,K=[],W=l.length;w<=W;){var q=l.indexOf(`
`,w);q==-1&&(q=l.length);var be=l.slice(w,l.charAt(q-1)=="\r"?q-1:q),Fe=be.indexOf("\r");Fe!=-1?(K.push(be.slice(0,Fe)),w+=Fe+1):(K.push(be),w=q+1)}return K}:function(l){return l.split(/\r\n?|\n/)},me=window.getSelection?function(l){try{return l.selectionStart!=l.selectionEnd}catch(w){return!1}}:function(l){var w;try{w=l.ownerDocument.selection.createRange()}catch(K){}return!w||w.parentElement()!=l?!1:w.compareEndPoints("StartToEnd",w)!=0},jn=function(){var l=G("div");return"oncopy"in l?!0:(l.setAttribute("oncopy","return;"),typeof l.oncopy=="function")}(),Cn=null;function qn(l){if(Cn!=null)return Cn;var w=U(l,G("span","x")),K=w.getBoundingClientRect(),W=ee(w,0,1).getBoundingClientRect();return Cn=Math.abs(K.left-W.left)>1}var Ir={},Vr={};function fr(l,w){arguments.length>2&&(w.dependencies=Array.prototype.slice.call(arguments,2)),Ir[l]=w}function oo(l,w){Vr[l]=w}function Zr(l){if(typeof l=="string"&&Vr.hasOwnProperty(l))l=Vr[l];else if(l&&typeof l.name=="string"&&Vr.hasOwnProperty(l.name)){var w=Vr[l.name];typeof w=="string"&&(w={name:w}),l=z(w,l),l.name=w.name}else{if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(l))return Zr("application/xml");if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(l))return Zr("application/json")}return typeof l=="string"?{name:l}:l||{name:"null"}}function Qr(l,w){w=Zr(w);var K=Ir[w.name];if(!K)return Qr(l,"text/plain");var W=K(l,w);if(Kn.hasOwnProperty(w.name)){var q=Kn[w.name];for(var be in q)q.hasOwnProperty(be)&&(W.hasOwnProperty(be)&&(W["_"+be]=W[be]),W[be]=q[be])}if(W.name=w.name,w.helperType&&(W.helperType=w.helperType),w.modeProps)for(var Fe in w.modeProps)W[Fe]=w.modeProps[Fe];return W}var Kn={};function Mn(l,w){var K=Kn.hasOwnProperty(l)?Kn[l]:Kn[l]={};Re(w,K)}function ai(l,w){if(w===!0)return w;if(l.copyState)return l.copyState(w);var K={};for(var W in w){var q=w[W];q instanceof Array&&(q=q.concat([])),K[W]=q}return K}function Nr(l,w){for(var K;l.innerMode&&(K=l.innerMode(w),!(!K||K.mode==l));)w=K.state,l=K.mode;return K||{mode:l,state:w}}function zr(l,w,K){return l.startState?l.startState(w,K):!0}var pn=function(l,w,K){this.pos=this.start=0,this.string=l,this.tabSize=w||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=K};pn.prototype.eol=function(){return this.pos>=this.string.length},pn.prototype.sol=function(){return this.pos==this.lineStart},pn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},pn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},pn.prototype.eat=function(l){var w=this.string.charAt(this.pos),K;if(typeof l=="string"?K=w==l:K=w&&(l.test?l.test(w):l(w)),K)return++this.pos,w},pn.prototype.eatWhile=function(l){for(var w=this.pos;this.eat(l););return this.pos>w},pn.prototype.eatSpace=function(){for(var l=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>l},pn.prototype.skipToEnd=function(){this.pos=this.string.length},pn.prototype.skipTo=function(l){var w=this.string.indexOf(l,this.pos);if(w>-1)return this.pos=w,!0},pn.prototype.backUp=function(l){this.pos-=l},pn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=le(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?le(this.string,this.lineStart,this.tabSize):0)},pn.prototype.indentation=function(){return le(this.string,null,this.tabSize)-(this.lineStart?le(this.string,this.lineStart,this.tabSize):0)},pn.prototype.match=function(l,w,K){if(typeof l=="string"){var W=function(Fe){return K?Fe.toLowerCase():Fe},q=this.string.substr(this.pos,l.length);if(W(q)==W(l))return w!==!1&&(this.pos+=l.length),!0}else{var be=this.string.slice(this.pos).match(l);return be&&be.index>0?null:(be&&w!==!1&&(this.pos+=be[0].length),be)}},pn.prototype.current=function(){return this.string.slice(this.start,this.pos)},pn.prototype.hideFirstChars=function(l,w){this.lineStart+=l;try{return w()}finally{this.lineStart-=l}},pn.prototype.lookAhead=function(l){var w=this.lineOracle;return w&&w.lookAhead(l)},pn.prototype.baseToken=function(){var l=this.lineOracle;return l&&l.baseToken(this.pos)};function Vn(l,w){if(w-=l.first,w<0||w>=l.size)throw new Error("There is no line "+(w+l.first)+" in the document.");for(var K=l;!K.lines;)for(var W=0;;++W){var q=K.children[W],be=q.chunkSize();if(w<be){K=q;break}w-=be}return K.lines[w]}function Mt(l,w,K){var W=[],q=w.line;return l.iter(w.line,K.line+1,function(be){var Fe=be.text;q==K.line&&(Fe=Fe.slice(0,K.ch)),q==w.line&&(Fe=Fe.slice(w.ch)),W.push(Fe),++q}),W}function It(l,w,K){var W=[];return l.iter(w,K,function(q){W.push(q.text)}),W}function On(l,w){var K=w-l.height;if(K)for(var W=l;W;W=W.parent)W.height+=K}function ft(l){if(l.parent==null)return null;for(var w=l.parent,K=pe(w.lines,l),W=w.parent;W;w=W,W=W.parent)for(var q=0;W.children[q]!=w;++q)K+=W.children[q].chunkSize();return K+w.first}function en(l,w){var K=l.first;e:do{for(var W=0;W<l.children.length;++W){var q=l.children[W],be=q.height;if(w<be){l=q;continue e}w-=be,K+=q.chunkSize()}return K}while(!l.lines);for(var Fe=0;Fe<l.lines.length;++Fe){var Ye=l.lines[Fe],We=Ye.height;if(w<We)break;w-=We}return K+Fe}function An(l,w){return w>=l.first&&w<l.first+l.size}function Un(l,w){return String(l.lineNumberFormatter(w+l.firstLineNumber))}function gt(l,w,K){if(K===void 0&&(K=null),!(this instanceof gt))return new gt(l,w,K);this.line=l,this.ch=w,this.sticky=K}function gn(l,w){return l.line-w.line||l.ch-w.ch}function Hn(l,w){return l.sticky==w.sticky&&gn(l,w)==0}function At(l){return gt(l.line,l.ch)}function we(l,w){return gn(l,w)<0?w:l}function Bn(l,w){return gn(l,w)<0?l:w}function wn(l,w){return Math.max(l.first,Math.min(w,l.first+l.size-1))}function Ht(l,w){if(w.line<l.first)return gt(l.first,0);var K=l.first+l.size-1;return w.line>K?gt(K,Vn(l,K).text.length):lr(w,Vn(l,w.line).text.length)}function lr(l,w){var K=l.ch;return K==null||K>w?gt(l.line,w):K<0?gt(l.line,0):l}function pr(l,w){for(var K=[],W=0;W<w.length;W++)K[W]=Ht(l,w[W]);return K}var xr=function(l,w){this.state=l,this.lookAhead=w},Pn=function(l,w,K,W){this.state=w,this.doc=l,this.line=K,this.maxLookAhead=W||0,this.baseTokens=null,this.baseTokenPos=1};Pn.prototype.lookAhead=function(l){var w=this.doc.getLine(this.line+l);return w!=null&&l>this.maxLookAhead&&(this.maxLookAhead=l),w},Pn.prototype.baseToken=function(l){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=l;)this.baseTokenPos+=2;var w=this.baseTokens[this.baseTokenPos+1];return{type:w&&w.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-l}},Pn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pn.fromSaved=function(l,w,K){return w instanceof xr?new Pn(l,ai(l.mode,w.state),K,w.lookAhead):new Pn(l,ai(l.mode,w),K)},Pn.prototype.save=function(l){var w=l!==!1?ai(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new xr(w,this.maxLookAhead):w};function St(l,w,K,W){var q=[l.state.modeGen],be={};li(l,w.text,l.doc.mode,K,function(tt,Nt){return q.push(tt,Nt)},be,W);for(var Fe=K.state,Ye=function(tt){K.baseTokens=q;var Nt=l.state.overlays[tt],at=1,$t=0;K.state=!0,li(l,w.text,Nt.mode,K,function(Ut,Nn){for(var Ln=at;$t<Ut;){var Yn=q[at];Yn>Ut&&q.splice(at,1,Ut,q[at+1],Yn),at+=2,$t=Math.min(Ut,Yn)}if(Nn)if(Nt.opaque)q.splice(Ln,at-Ln,Ut,"overlay "+Nn),at=Ln+2;else for(;Ln<at;Ln+=2){var sr=q[Ln+1];q[Ln+1]=(sr?sr+" ":"")+"overlay "+Nn}},be),K.state=Fe,K.baseTokens=null,K.baseTokenPos=1},We=0;We<l.state.overlays.length;++We)Ye(We);return{styles:q,classes:be.bgClass||be.textClass?be:null}}function gr(l,w,K){if(!w.styles||w.styles[0]!=l.state.modeGen){var W=vi(l,ft(w)),q=w.text.length>l.options.maxHighlightLength&&ai(l.doc.mode,W.state),be=St(l,w,W);q&&(W.state=q),w.stateAfter=W.save(!q),w.styles=be.styles,be.classes?w.styleClasses=be.classes:w.styleClasses&&(w.styleClasses=null),K===l.doc.highlightFrontier&&(l.doc.modeFrontier=Math.max(l.doc.modeFrontier,++l.doc.highlightFrontier))}return w.styles}function vi(l,w,K){var W=l.doc,q=l.display;if(!W.mode.startState)return new Pn(W,!0,w);var be=Pr(l,w,K),Fe=be>W.first&&Vn(W,be-1).stateAfter,Ye=Fe?Pn.fromSaved(W,Fe,be):new Pn(W,zr(W.mode),be);return W.iter(be,w,function(We){Dt(l,We.text,Ye);var tt=Ye.line;We.stateAfter=tt==w-1||tt%5==0||tt>=q.viewFrom&&tt<q.viewTo?Ye.save():null,Ye.nextLine()}),K&&(W.modeFrontier=Ye.line),Ye}function Dt(l,w,K,W){var q=l.doc.mode,be=new pn(w,l.options.tabSize,K);for(be.start=be.pos=W||0,w==""&&Ji(q,K.state);!be.eol();)Ri(q,be,K.state),be.start=be.pos}function Ji(l,w){if(l.blankLine)return l.blankLine(w);if(l.innerMode){var K=Nr(l,w);if(K.mode.blankLine)return K.mode.blankLine(K.state)}}function Ri(l,w,K,W){for(var q=0;q<10;q++){W&&(W[0]=Nr(l,K).mode);var be=l.token(w,K);if(w.pos>w.start)return be}throw new Error("Mode "+l.name+" failed to advance stream.")}var oi=function(l,w,K){this.start=l.start,this.end=l.pos,this.string=l.current(),this.type=w||null,this.state=K};function Oi(l,w,K,W){var q=l.doc,be=q.mode,Fe;w=Ht(q,w);var Ye=Vn(q,w.line),We=vi(l,w.line,K),tt=new pn(Ye.text,l.options.tabSize,We),Nt;for(W&&(Nt=[]);(W||tt.pos<w.ch)&&!tt.eol();)tt.start=tt.pos,Fe=Ri(be,tt,We.state),W&&Nt.push(new oi(tt,Fe,ai(q.mode,We.state)));return W?Nt:new oi(tt,Fe,We.state)}function Rr(l,w){if(l)for(;;){var K=l.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!K)break;l=l.slice(0,K.index)+l.slice(K.index+K[0].length);var W=K[1]?"bgClass":"textClass";w[W]==null?w[W]=K[2]:new RegExp("(?:^|\\s)"+K[2]+"(?:$|\\s)").test(w[W])||(w[W]+=" "+K[2])}return l}function li(l,w,K,W,q,be,Fe){var Ye=K.flattenSpans;Ye==null&&(Ye=l.options.flattenSpans);var We=0,tt=null,Nt=new pn(w,l.options.tabSize,W),at,$t=l.options.addModeClass&&[null];for(w==""&&Rr(Ji(K,W.state),be);!Nt.eol();){if(Nt.pos>l.options.maxHighlightLength?(Ye=!1,Fe&&Dt(l,w,W,Nt.pos),Nt.pos=w.length,at=null):at=Rr(Ri(K,Nt,W.state,$t),be),$t){var Ut=$t[0].name;Ut&&(at="m-"+(at?Ut+" "+at:Ut))}if(!Ye||tt!=at){for(;We<Nt.start;)We=Math.min(Nt.start,We+5e3),q(We,tt);tt=at}Nt.start=Nt.pos}for(;We<Nt.pos;){var Nn=Math.min(Nt.pos,We+5e3);q(Nn,tt),We=Nn}}function Pr(l,w,K){for(var W,q,be=l.doc,Fe=K?-1:w-(l.doc.mode.innerMode?1e3:100),Ye=w;Ye>Fe;--Ye){if(Ye<=be.first)return be.first;var We=Vn(be,Ye-1),tt=We.stateAfter;if(tt&&(!K||Ye+(tt instanceof xr?tt.lookAhead:0)<=be.modeFrontier))return Ye;var Nt=le(We.text,null,l.options.tabSize);(q==null||W>Nt)&&(q=Ye-1,W=Nt)}return q}function qr(l,w){if(l.modeFrontier=Math.min(l.modeFrontier,w),!(l.highlightFrontier<w-10)){for(var K=l.first,W=w-1;W>K;W--){var q=Vn(l,W).stateAfter;if(q&&(!(q instanceof xr)||W+q.lookAhead<w)){K=W+1;break}}l.highlightFrontier=Math.min(l.highlightFrontier,K)}}var ri=!1,Gt=!1;function ui(){ri=!0}function Kt(){Gt=!0}function Wn(l,w,K){this.marker=l,this.from=w,this.to=K}function er(l,w){if(l)for(var K=0;K<l.length;++K){var W=l[K];if(W.marker==w)return W}}function rr(l,w){for(var K,W=0;W<l.length;++W)l[W]!=w&&(K||(K=[])).push(l[W]);return K}function Di(l,w){l.markedSpans=l.markedSpans?l.markedSpans.concat([w]):[w],w.marker.attachLine(l)}function Li(l,w,K){var W;if(l)for(var q=0;q<l.length;++q){var be=l[q],Fe=be.marker,Ye=be.from==null||(Fe.inclusiveLeft?be.from<=w:be.from<w);if(Ye||be.from==w&&Fe.type=="bookmark"&&(!K||!be.marker.insertLeft)){var We=be.to==null||(Fe.inclusiveRight?be.to>=w:be.to>w);(W||(W=[])).push(new Wn(Fe,be.from,We?null:be.to))}}return W}function pi(l,w,K){var W;if(l)for(var q=0;q<l.length;++q){var be=l[q],Fe=be.marker,Ye=be.to==null||(Fe.inclusiveRight?be.to>=w:be.to>w);if(Ye||be.from==w&&Fe.type=="bookmark"&&(!K||be.marker.insertLeft)){var We=be.from==null||(Fe.inclusiveLeft?be.from<=w:be.from<w);(W||(W=[])).push(new Wn(Fe,We?null:be.from-w,be.to==null?null:be.to-w))}}return W}function Mi(l,w){if(w.full)return null;var K=An(l,w.from.line)&&Vn(l,w.from.line).markedSpans,W=An(l,w.to.line)&&Vn(l,w.to.line).markedSpans;if(!K&&!W)return null;var q=w.from.ch,be=w.to.ch,Fe=gn(w.from,w.to)==0,Ye=Li(K,q,Fe),We=pi(W,be,Fe),tt=w.text.length==1,Nt=ot(w.text).length+(tt?q:0);if(Ye)for(var at=0;at<Ye.length;++at){var $t=Ye[at];if($t.to==null){var Ut=er(We,$t.marker);Ut?tt&&($t.to=Ut.to==null?null:Ut.to+Nt):$t.to=q}}if(We)for(var Nn=0;Nn<We.length;++Nn){var Ln=We[Nn];if(Ln.to!=null&&(Ln.to+=Nt),Ln.from==null){var Yn=er(Ye,Ln.marker);Yn||(Ln.from=Nt,tt&&(Ye||(Ye=[])).push(Ln))}else Ln.from+=Nt,tt&&(Ye||(Ye=[])).push(Ln)}Ye&&(Ye=_t(Ye)),We&&We!=Ye&&(We=_t(We));var sr=[Ye];if(!tt){var kr=w.text.length-2,yr;if(kr>0&&Ye)for(var Hr=0;Hr<Ye.length;++Hr)Ye[Hr].to==null&&(yr||(yr=[])).push(new Wn(Ye[Hr].marker,null,null));for(var Ci=0;Ci<kr;++Ci)sr.push(yr);sr.push(We)}return sr}function _t(l){for(var w=0;w<l.length;++w){var K=l[w];K.from!=null&&K.from==K.to&&K.marker.clearWhenEmpty!==!1&&l.splice(w--,1)}return l.length?l:null}function Vt(l,w,K){var W=null;if(l.iter(w.line,K.line+1,function(Ut){if(Ut.markedSpans)for(var Nn=0;Nn<Ut.markedSpans.length;++Nn){var Ln=Ut.markedSpans[Nn].marker;Ln.readOnly&&(!W||pe(W,Ln)==-1)&&(W||(W=[])).push(Ln)}}),!W)return null;for(var q=[{from:w,to:K}],be=0;be<W.length;++be)for(var Fe=W[be],Ye=Fe.find(0),We=0;We<q.length;++We){var tt=q[We];if(!(gn(tt.to,Ye.from)<0||gn(tt.from,Ye.to)>0)){var Nt=[We,1],at=gn(tt.from,Ye.from),$t=gn(tt.to,Ye.to);(at<0||!Fe.inclusiveLeft&&!at)&&Nt.push({from:tt.from,to:Ye.from}),($t>0||!Fe.inclusiveRight&&!$t)&&Nt.push({from:Ye.to,to:tt.to}),q.splice.apply(q,Nt),We+=Nt.length-3}}return q}function Et(l){var w=l.markedSpans;if(w){for(var K=0;K<w.length;++K)w[K].marker.detachLine(l);l.markedSpans=null}}function Ie(l,w){if(w){for(var K=0;K<w.length;++K)w[K].marker.attachLine(l);l.markedSpans=w}}function cn(l){return l.inclusiveLeft?-1:0}function sn(l){return l.inclusiveRight?1:0}function bn(l,w){var K=l.lines.length-w.lines.length;if(K!=0)return K;var W=l.find(),q=w.find(),be=gn(W.from,q.from)||cn(l)-cn(w);if(be)return-be;var Fe=gn(W.to,q.to)||sn(l)-sn(w);return Fe||w.id-l.id}function _n(l,w){var K=Gt&&l.markedSpans,W;if(K)for(var q=void 0,be=0;be<K.length;++be)q=K[be],q.marker.collapsed&&(w?q.from:q.to)==null&&(!W||bn(W,q.marker)<0)&&(W=q.marker);return W}function Rn(l){return _n(l,!0)}function Jt(l){return _n(l,!1)}function fn(l,w){var K=Gt&&l.markedSpans,W;if(K)for(var q=0;q<K.length;++q){var be=K[q];be.marker.collapsed&&(be.from==null||be.from<w)&&(be.to==null||be.to>w)&&(!W||bn(W,be.marker)<0)&&(W=be.marker)}return W}function dn(l,w,K,W,q){var be=Vn(l,w),Fe=Gt&&be.markedSpans;if(Fe)for(var Ye=0;Ye<Fe.length;++Ye){var We=Fe[Ye];if(We.marker.collapsed){var tt=We.marker.find(0),Nt=gn(tt.from,K)||cn(We.marker)-cn(q),at=gn(tt.to,W)||sn(We.marker)-sn(q);if(!(Nt>=0&&at<=0||Nt<=0&&at>=0)&&(Nt<=0&&(We.marker.inclusiveRight&&q.inclusiveLeft?gn(tt.to,K)>=0:gn(tt.to,K)>0)||Nt>=0&&(We.marker.inclusiveRight&&q.inclusiveLeft?gn(tt.from,W)<=0:gn(tt.from,W)<0)))return!0}}}function yn(l){for(var w;w=Rn(l);)l=w.find(-1,!0).line;return l}function Sn(l){for(var w;w=Jt(l);)l=w.find(1,!0).line;return l}function Xn(l){for(var w,K;w=Jt(l);)l=w.find(1,!0).line,(K||(K=[])).push(l);return K}function _r(l,w){var K=Vn(l,w),W=yn(K);return K==W?w:ft(W)}function Fr(l,w){if(w>l.lastLine())return w;var K=Vn(l,w),W;if(!mn(l,K))return w;for(;W=Jt(K);)K=W.find(1,!0).line;return ft(K)+1}function mn(l,w){var K=Gt&&w.markedSpans;if(K){for(var W=void 0,q=0;q<K.length;++q)if(W=K[q],!!W.marker.collapsed){if(W.from==null)return!0;if(!W.marker.widgetNode&&W.from==0&&W.marker.inclusiveLeft&&Cr(l,w,W))return!0}}}function Cr(l,w,K){if(K.to==null){var W=K.marker.find(1,!0);return Cr(l,W.line,er(W.line.markedSpans,K.marker))}if(K.marker.inclusiveRight&&K.to==w.text.length)return!0;for(var q=void 0,be=0;be<w.markedSpans.length;++be)if(q=w.markedSpans[be],q.marker.collapsed&&!q.marker.widgetNode&&q.from==K.to&&(q.to==null||q.to!=K.from)&&(q.marker.inclusiveLeft||K.marker.inclusiveRight)&&Cr(l,w,q))return!0}function Or(l){l=yn(l);for(var w=0,K=l.parent,W=0;W<K.lines.length;++W){var q=K.lines[W];if(q==l)break;w+=q.height}for(var be=K.parent;be;K=be,be=K.parent)for(var Fe=0;Fe<be.children.length;++Fe){var Ye=be.children[Fe];if(Ye==K)break;w+=Ye.height}return w}function yi(l){if(l.height==0)return 0;for(var w=l.text.length,K,W=l;K=Rn(W);){var q=K.find(0,!0);W=q.from.line,w+=q.from.ch-q.to.ch}for(W=l;K=Jt(W);){var be=K.find(0,!0);w-=W.text.length-be.from.ch,W=be.to.line,w+=W.text.length-be.to.ch}return w}function Kr(l){var w=l.display,K=l.doc;w.maxLine=Vn(K,K.first),w.maxLineLength=yi(w.maxLine),w.maxLineChanged=!0,K.iter(function(W){var q=yi(W);q>w.maxLineLength&&(w.maxLineLength=q,w.maxLine=W)})}var bi=function(l,w,K){this.text=l,Ie(this,w),this.height=K?K(this):1};bi.prototype.lineNo=function(){return ft(this)},$e(bi);function Si(l,w,K,W){l.text=w,l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null),l.order!=null&&(l.order=null),Et(l),Ie(l,K);var q=W?W(l):1;q!=l.height&&On(l,q)}function hi(l){l.parent=null,Et(l)}var Wi={},to={};function go(l,w){if(!l||/^\s*$/.test(l))return null;var K=w.addModeClass?to:Wi;return K[l]||(K[l]=l.replace(/\S+/g,"cm-$&"))}function xt(l,w){var K=J("span",null,null,p?"padding-right: .1px":null),W={pre:J("pre",[K],"CodeMirror-line"),content:K,col:0,pos:0,cm:l,trailingSpace:!1,splitSpaces:l.getOption("lineWrapping")};w.measure={};for(var q=0;q<=(w.rest?w.rest.length:0);q++){var be=q?w.rest[q-1]:w.line,Fe=void 0;W.pos=0,W.addToken=si,$n(l.display.measure)&&(Fe=Ot(be,l.doc.direction))&&(W.addToken=ii(W.addToken,Fe)),W.map=[];var Ye=w!=l.display.externalMeasured&&ft(be);Qi(be,W,gr(l,be,Ye)),be.styleClasses&&(be.styleClasses.bgClass&&(W.bgClass=se(be.styleClasses.bgClass,W.bgClass||"")),be.styleClasses.textClass&&(W.textClass=se(be.styleClasses.textClass,W.textClass||""))),W.map.length==0&&W.map.push(0,0,W.content.appendChild(dr(l.display.measure))),q==0?(w.measure.map=W.map,w.measure.cache={}):((w.measure.maps||(w.measure.maps=[])).push(W.map),(w.measure.caches||(w.measure.caches=[])).push({}))}if(p){var We=W.content.lastChild;(/\bcm-tab\b/.test(We.className)||We.querySelector&&We.querySelector(".cm-tab"))&&(W.content.className="cm-tab-wrap-hack")}return vt(l,"renderLine",l,w.line,W.pre),W.pre.className&&(W.textClass=se(W.pre.className,W.textClass||"")),W}function ei(l){var w=G("span","\u2022","cm-invalidchar");return w.title="\\u"+l.charCodeAt(0).toString(16),w.setAttribute("aria-label",w.title),w}function si(l,w,K,W,q,be,Fe){if(w){var Ye=l.splitSpaces?Sr(w,l.trailingSpace):w,We=l.cm.state.specialChars,tt=!1,Nt;if(!We.test(w))l.col+=w.length,Nt=document.createTextNode(Ye),l.map.push(l.pos,l.pos+w.length,Nt),A&&u<9&&(tt=!0),l.pos+=w.length;else{Nt=document.createDocumentFragment();for(var at=0;;){We.lastIndex=at;var $t=We.exec(w),Ut=$t?$t.index-at:w.length-at;if(Ut){var Nn=document.createTextNode(Ye.slice(at,at+Ut));A&&u<9?Nt.appendChild(G("span",[Nn])):Nt.appendChild(Nn),l.map.push(l.pos,l.pos+Ut,Nn),l.col+=Ut,l.pos+=Ut}if(!$t)break;at+=Ut+1;var Ln=void 0;if($t[0]==" "){var Yn=l.cm.options.tabSize,sr=Yn-l.col%Yn;Ln=Nt.appendChild(G("span",it(sr),"cm-tab")),Ln.setAttribute("role","presentation"),Ln.setAttribute("cm-text"," "),l.col+=sr}else $t[0]=="\r"||$t[0]==`
`?(Ln=Nt.appendChild(G("span",$t[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ln.setAttribute("cm-text",$t[0]),l.col+=1):(Ln=l.cm.options.specialCharPlaceholder($t[0]),Ln.setAttribute("cm-text",$t[0]),A&&u<9?Nt.appendChild(G("span",[Ln])):Nt.appendChild(Ln),l.col+=1);l.map.push(l.pos,l.pos+1,Ln),l.pos++}}if(l.trailingSpace=Ye.charCodeAt(w.length-1)==32,K||W||q||tt||be||Fe){var kr=K||"";W&&(kr+=W),q&&(kr+=q);var yr=G("span",[Nt],kr,be);if(Fe)for(var Hr in Fe)Fe.hasOwnProperty(Hr)&&Hr!="style"&&Hr!="class"&&yr.setAttribute(Hr,Fe[Hr]);return l.content.appendChild(yr)}l.content.appendChild(Nt)}}function Sr(l,w){if(l.length>1&&!/ /.test(l))return l;for(var K=w,W="",q=0;q<l.length;q++){var be=l.charAt(q);be==" "&&K&&(q==l.length-1||l.charCodeAt(q+1)==32)&&(be="\xA0"),W+=be,K=be==" "}return W}function ii(l,w){return function(K,W,q,be,Fe,Ye,We){q=q?q+" cm-force-border":"cm-force-border";for(var tt=K.pos,Nt=tt+W.length;;){for(var at=void 0,$t=0;$t<w.length&&(at=w[$t],!(at.to>tt&&at.from<=tt));$t++);if(at.to>=Nt)return l(K,W,q,be,Fe,Ye,We);l(K,W.slice(0,at.to-tt),q,be,null,Ye,We),be=null,W=W.slice(at.to-tt),tt=at.to}}}function Br(l,w,K,W){var q=!W&&K.widgetNode;q&&l.map.push(l.pos,l.pos+w,q),!W&&l.cm.display.input.needsContentAttribute&&(q||(q=l.content.appendChild(document.createElement("span"))),q.setAttribute("cm-marker",K.id)),q&&(l.cm.display.input.setUneditable(q),l.content.appendChild(q)),l.pos+=w,l.trailingSpace=!1}function Qi(l,w,K){var W=l.markedSpans,q=l.text,be=0;if(!W){for(var Fe=1;Fe<K.length;Fe+=2)w.addToken(w,q.slice(be,be=K[Fe]),go(K[Fe+1],w.cm.options));return}for(var Ye=q.length,We=0,tt=1,Nt="",at,$t,Ut=0,Nn,Ln,Yn,sr,kr;;){if(Ut==We){Nn=Ln=Yn=$t="",kr=null,sr=null,Ut=1/0;for(var yr=[],Hr=void 0,Ci=0;Ci<W.length;++Ci){var vr=W[Ci],qi=vr.marker;if(qi.type=="bookmark"&&vr.from==We&&qi.widgetNode)yr.push(qi);else if(vr.from<=We&&(vr.to==null||vr.to>We||qi.collapsed&&vr.to==We&&vr.from==We)){if(vr.to!=null&&vr.to!=We&&Ut>vr.to&&(Ut=vr.to,Ln=""),qi.className&&(Nn+=" "+qi.className),qi.css&&($t=($t?$t+";":"")+qi.css),qi.startStyle&&vr.from==We&&(Yn+=" "+qi.startStyle),qi.endStyle&&vr.to==Ut&&(Hr||(Hr=[])).push(qi.endStyle,vr.to),qi.title&&((kr||(kr={})).title=qi.title),qi.attributes)for(var as in qi.attributes)(kr||(kr={}))[as]=qi.attributes[as];qi.collapsed&&(!sr||bn(sr.marker,qi)<0)&&(sr=vr)}else vr.from>We&&Ut>vr.from&&(Ut=vr.from)}if(Hr)for(var Qs=0;Qs<Hr.length;Qs+=2)Hr[Qs+1]==Ut&&(Ln+=" "+Hr[Qs]);if(!sr||sr.from==We)for(var ys=0;ys<yr.length;++ys)Br(w,0,yr[ys]);if(sr&&(sr.from||0)==We){if(Br(w,(sr.to==null?Ye+1:sr.to)-We,sr.marker,sr.from==null),sr.to==null)return;sr.to==We&&(sr=!1)}}if(We>=Ye)break;for(var hl=Math.min(Ye,Ut);;){if(Nt){var Fa=We+Nt.length;if(!sr){var Ws=Fa>hl?Nt.slice(0,hl-We):Nt;w.addToken(w,Ws,at?at+Nn:Nn,Yn,We+Ws.length==Ut?Ln:"",$t,kr)}if(Fa>=hl){Nt=Nt.slice(hl-We),We=hl;break}We=Fa,Yn=""}Nt=q.slice(be,be=K[tt++]),at=go(K[tt++],w.cm.options)}}}function kt(l,w,K){this.line=w,this.rest=Xn(w),this.size=this.rest?ft(ot(this.rest))-K+1:1,this.node=this.text=null,this.hidden=mn(l,w)}function Jr(l,w,K){for(var W=[],q,be=w;be<K;be=q){var Fe=new kt(l.doc,Vn(l.doc,be),be);q=be+Fe.size,W.push(Fe)}return W}var Vi=null;function Ts(l){Vi?Vi.ops.push(l):l.ownsGroup=Vi={ops:[l],delayedCallbacks:[]}}function ds(l){var w=l.delayedCallbacks,K=0;do{for(;K<w.length;K++)w[K].call(null);for(var W=0;W<l.ops.length;W++){var q=l.ops[W];if(q.cursorActivityHandlers)for(;q.cursorActivityCalled<q.cursorActivityHandlers.length;)q.cursorActivityHandlers[q.cursorActivityCalled++].call(null,q.cm)}}while(K<w.length)}function js(l,w){var K=l.ownsGroup;if(K)try{ds(K)}finally{Vi=null,w(K)}}var _s=null;function ar(l,w){var K=ut(l,w);if(K.length){var W=Array.prototype.slice.call(arguments,2),q;Vi?q=Vi.delayedCallbacks:_s?q=_s:(q=_s=[],setTimeout(Ki,0));for(var be=function(Ye){q.push(function(){return K[Ye].apply(null,W)})},Fe=0;Fe<K.length;++Fe)be(Fe)}}function Ki(){var l=_s;_s=null;for(var w=0;w<l.length;++w)l[w]()}function yo(l,w,K,W){for(var q=0;q<w.changes.length;q++){var be=w.changes[q];be=="text"?an(l,w):be=="gutter"?Gr(l,w,K,W):be=="class"?cr(l,w):be=="widget"&&ro(l,w,W)}w.changes=null}function Ho(l){return l.node==l.text&&(l.node=G("div",null,null,"position: relative"),l.text.parentNode&&l.text.parentNode.replaceChild(l.node,l.text),l.node.appendChild(l.text),A&&u<8&&(l.node.style.zIndex=2)),l.node}function Yr(l,w){var K=w.bgClass?w.bgClass+" "+(w.line.bgClass||""):w.line.bgClass;if(K&&(K+=" CodeMirror-linebackground"),w.background)K?w.background.className=K:(w.background.parentNode.removeChild(w.background),w.background=null);else if(K){var W=Ho(w);w.background=W.insertBefore(G("div",null,K),W.firstChild),l.display.input.setUneditable(w.background)}}function jr(l,w){var K=l.display.externalMeasured;return K&&K.line==w.line?(l.display.externalMeasured=null,w.measure=K.measure,K.built):xt(l,w)}function an(l,w){var K=w.text.className,W=jr(l,w);w.text==w.node&&(w.node=W.pre),w.text.parentNode.replaceChild(W.pre,w.text),w.text=W.pre,W.bgClass!=w.bgClass||W.textClass!=w.textClass?(w.bgClass=W.bgClass,w.textClass=W.textClass,cr(l,w)):K&&(w.text.className=K)}function cr(l,w){Yr(l,w),w.line.wrapClass?Ho(w).className=w.line.wrapClass:w.node!=w.text&&(w.node.className="");var K=w.textClass?w.textClass+" "+(w.line.textClass||""):w.line.textClass;w.text.className=K||""}function Gr(l,w,K,W){if(w.gutter&&(w.node.removeChild(w.gutter),w.gutter=null),w.gutterBackground&&(w.node.removeChild(w.gutterBackground),w.gutterBackground=null),w.line.gutterClass){var q=Ho(w);w.gutterBackground=G("div",null,"CodeMirror-gutter-background "+w.line.gutterClass,"left: "+(l.options.fixedGutter?W.fixedPos:-W.gutterTotalWidth)+"px; width: "+W.gutterTotalWidth+"px"),l.display.input.setUneditable(w.gutterBackground),q.insertBefore(w.gutterBackground,w.text)}var be=w.line.gutterMarkers;if(l.options.lineNumbers||be){var Fe=Ho(w),Ye=w.gutter=G("div",null,"CodeMirror-gutter-wrapper","left: "+(l.options.fixedGutter?W.fixedPos:-W.gutterTotalWidth)+"px");if(l.display.input.setUneditable(Ye),Fe.insertBefore(Ye,w.text),w.line.gutterClass&&(Ye.className+=" "+w.line.gutterClass),l.options.lineNumbers&&(!be||!be["CodeMirror-linenumbers"])&&(w.lineNumber=Ye.appendChild(G("div",Un(l.options,K),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+W.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+l.display.lineNumInnerWidth+"px"))),be)for(var We=0;We<l.display.gutterSpecs.length;++We){var tt=l.display.gutterSpecs[We].className,Nt=be.hasOwnProperty(tt)&&be[tt];Nt&&Ye.appendChild(G("div",[Nt],"CodeMirror-gutter-elt","left: "+W.gutterLeft[tt]+"px; width: "+W.gutterWidth[tt]+"px"))}}}function ro(l,w,K){w.alignable&&(w.alignable=null);for(var W=D("CodeMirror-linewidget"),q=w.node.firstChild,be=void 0;q;q=be)be=q.nextSibling,W.test(q.className)&&w.node.removeChild(q);Qo(l,w,K)}function zo(l,w,K,W){var q=jr(l,w);return w.text=w.node=q.pre,q.bgClass&&(w.bgClass=q.bgClass),q.textClass&&(w.textClass=q.textClass),cr(l,w),Gr(l,w,K,W),Qo(l,w,W),w.node}function Qo(l,w,K){if(Tr(l,w.line,w,K,!0),w.rest)for(var W=0;W<w.rest.length;W++)Tr(l,w.rest[W],w,K,!1)}function Tr(l,w,K,W,q){if(w.widgets)for(var be=Ho(K),Fe=0,Ye=w.widgets;Fe<Ye.length;++Fe){var We=Ye[Fe],tt=G("div",[We.node],"CodeMirror-linewidget"+(We.className?" "+We.className:""));We.handleMouseEvents||tt.setAttribute("cm-ignore-events","true"),So(We,tt,K,W),l.display.input.setUneditable(tt),q&&We.above?be.insertBefore(tt,K.gutter||K.text):be.appendChild(tt),ar(We,"redraw")}}function So(l,w,K,W){if(l.noHScroll){(K.alignable||(K.alignable=[])).push(w);var q=W.wrapperWidth;w.style.left=W.fixedPos+"px",l.coverGutter||(q-=W.gutterTotalWidth,w.style.paddingLeft=W.gutterTotalWidth+"px"),w.style.width=q+"px"}l.coverGutter&&(w.style.zIndex=5,w.style.position="relative",l.noHScroll||(w.style.marginLeft=-W.gutterTotalWidth+"px"))}function Oo(l){if(l.height!=null)return l.height;var w=l.doc.cm;if(!w)return 0;if(!ae(document.body,l.node)){var K="position: relative;";l.coverGutter&&(K+="margin-left: -"+w.display.gutters.offsetWidth+"px;"),l.noHScroll&&(K+="width: "+w.display.wrapper.clientWidth+"px;"),U(w.display.measure,G("div",[l.node],null,K))}return l.height=l.node.parentNode.offsetHeight}function Co(l,w){for(var K=nr(w);K!=l.wrapper;K=K.parentNode)if(!K||K.nodeType==1&&K.getAttribute("cm-ignore-events")=="true"||K.parentNode==l.sizer&&K!=l.mover)return!0}function Pi(l){return l.lineSpace.offsetTop}function lo(l){return l.mover.offsetHeight-l.lineSpace.offsetHeight}function Is(l){if(l.cachedPaddingH)return l.cachedPaddingH;var w=U(l.measure,G("pre","x","CodeMirror-line-like")),K=window.getComputedStyle?window.getComputedStyle(w):w.currentStyle,W={left:parseInt(K.paddingLeft),right:parseInt(K.paddingRight)};return!isNaN(W.left)&&!isNaN(W.right)&&(l.cachedPaddingH=W),W}function Bi(l){return Me-l.display.nativeBarWidth}function cs(l){return l.display.scroller.clientWidth-Bi(l)-l.display.barWidth}function Sa(l){return l.display.scroller.clientHeight-Bi(l)-l.display.barHeight}function rl(l,w,K){var W=l.options.lineWrapping,q=W&&cs(l);if(!w.measure.heights||W&&w.measure.width!=q){var be=w.measure.heights=[];if(W){w.measure.width=q;for(var Fe=w.text.firstChild.getClientRects(),Ye=0;Ye<Fe.length-1;Ye++){var We=Fe[Ye],tt=Fe[Ye+1];Math.abs(We.bottom-tt.bottom)>2&&be.push((We.bottom+tt.top)/2-K.top)}}be.push(K.bottom-K.top)}}function xo(l,w,K){if(l.line==w)return{map:l.measure.map,cache:l.measure.cache};for(var W=0;W<l.rest.length;W++)if(l.rest[W]==w)return{map:l.measure.maps[W],cache:l.measure.caches[W]};for(var q=0;q<l.rest.length;q++)if(ft(l.rest[q])>K)return{map:l.measure.maps[q],cache:l.measure.caches[q],before:!0}}function Oa(l,w){w=yn(w);var K=ft(w),W=l.display.externalMeasured=new kt(l.doc,w,K);W.lineN=K;var q=W.built=xt(l,W);return W.text=q.pre,U(l.display.lineMeasure,q.pre),W}function Yl(l,w,K,W){return Us(l,ra(l,w),K,W)}function Ga(l,w){if(w>=l.display.viewFrom&&w<l.display.viewTo)return l.display.view[Ps(l,w)];var K=l.display.externalMeasured;if(K&&w>=K.lineN&&w<K.lineN+K.size)return K}function ra(l,w){var K=ft(w),W=Ga(l,K);W&&!W.text?W=null:W&&W.changes&&(yo(l,W,K,Ml(l)),l.curOp.forceUpdate=!0),W||(W=Oa(l,w));var q=xo(W,w,K);return{line:w,view:W,rect:null,map:q.map,cache:q.cache,before:q.before,hasHeights:!1}}function Us(l,w,K,W,q){w.before&&(K=-1);var be=K+(W||""),Fe;return w.cache.hasOwnProperty(be)?Fe=w.cache[be]:(w.rect||(w.rect=w.view.text.getBoundingClientRect()),w.hasHeights||(rl(l,w.view,w.rect),w.hasHeights=!0),Fe=Bo(l,w,K,W),Fe.bogus||(w.cache[be]=Fe)),{left:Fe.left,right:Fe.right,top:q?Fe.rtop:Fe.top,bottom:q?Fe.rbottom:Fe.bottom}}var Wa={left:0,right:0,top:0,bottom:0};function pu(l,w,K){for(var W,q,be,Fe,Ye,We,tt=0;tt<l.length;tt+=3)if(Ye=l[tt],We=l[tt+1],w<Ye?(q=0,be=1,Fe="left"):w<We?(q=w-Ye,be=q+1):(tt==l.length-3||w==We&&l[tt+3]>w)&&(be=We-Ye,q=be-1,w>=We&&(Fe="right")),q!=null){if(W=l[tt+2],Ye==We&&K==(W.insertLeft?"left":"right")&&(Fe=K),K=="left"&&q==0)for(;tt&&l[tt-2]==l[tt-3]&&l[tt-1].insertLeft;)W=l[(tt-=3)+2],Fe="left";if(K=="right"&&q==We-Ye)for(;tt<l.length-3&&l[tt+3]==l[tt+4]&&!l[tt+5].insertLeft;)W=l[(tt+=3)+2],Fe="right";break}return{node:W,start:q,end:be,collapse:Fe,coverStart:Ye,coverEnd:We}}function $l(l,w){var K=Wa;if(w=="left")for(var W=0;W<l.length&&(K=l[W]).left==K.right;W++);else for(var q=l.length-1;q>=0&&(K=l[q]).left==K.right;q--);return K}function Bo(l,w,K,W){var q=pu(w.map,K,W),be=q.node,Fe=q.start,Ye=q.end,We=q.collapse,tt;if(be.nodeType==3){for(var Nt=0;Nt<4;Nt++){for(;Fe&&he(w.line.text.charAt(q.coverStart+Fe));)--Fe;for(;q.coverStart+Ye<q.coverEnd&&he(w.line.text.charAt(q.coverStart+Ye));)++Ye;if(A&&u<9&&Fe==0&&Ye==q.coverEnd-q.coverStart?tt=be.parentNode.getBoundingClientRect():tt=$l(ee(be,Fe,Ye).getClientRects(),W),tt.left||tt.right||Fe==0)break;Ye=Fe,Fe=Fe-1,We="right"}A&&u<11&&(tt=Xl(l.display.measure,tt))}else{Fe>0&&(We=W="right");var at;l.options.lineWrapping&&(at=be.getClientRects()).length>1?tt=at[W=="right"?at.length-1:0]:tt=be.getBoundingClientRect()}if(A&&u<9&&!Fe&&(!tt||!tt.left&&!tt.right)){var $t=be.parentNode.getClientRects()[0];$t?tt={left:$t.left,right:$t.left+vl(l.display),top:$t.top,bottom:$t.bottom}:tt=Wa}for(var Ut=tt.top-w.rect.top,Nn=tt.bottom-w.rect.top,Ln=(Ut+Nn)/2,Yn=w.view.measure.heights,sr=0;sr<Yn.length-1&&!(Ln<Yn[sr]);sr++);var kr=sr?Yn[sr-1]:0,yr=Yn[sr],Hr={left:(We=="right"?tt.right:tt.left)-w.rect.left,right:(We=="left"?tt.left:tt.right)-w.rect.left,top:kr,bottom:yr};return!tt.left&&!tt.right&&(Hr.bogus=!0),l.options.singleCursorHeightPerLine||(Hr.rtop=Ut,Hr.rbottom=Nn),Hr}function Xl(l,w){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!qn(l))return w;var K=screen.logicalXDPI/screen.deviceXDPI,W=screen.logicalYDPI/screen.deviceYDPI;return{left:w.left*K,right:w.right*K,top:w.top*W,bottom:w.bottom*W}}function gu(l){if(l.measure&&(l.measure.cache={},l.measure.heights=null,l.rest))for(var w=0;w<l.rest.length;w++)l.measure.caches[w]={}}function Ol(l){l.display.externalMeasure=null,P(l.display.lineMeasure);for(var w=0;w<l.display.view.length;w++)gu(l.display.view[w])}function Ll(l){Ol(l),l.display.cachedCharWidth=l.display.cachedTextHeight=l.display.cachedPaddingH=null,l.options.lineWrapping||(l.display.maxLineChanged=!0),l.display.lineNumChars=null}function Ss(){return g&&E?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function As(){return g&&E?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function $o(l){var w=0;if(l.widgets)for(var K=0;K<l.widgets.length;++K)l.widgets[K].above&&(w+=Oo(l.widgets[K]));return w}function qo(l,w,K,W,q){if(!q){var be=$o(w);K.top+=be,K.bottom+=be}if(W=="line")return K;W||(W="local");var Fe=Or(w);if(W=="local"?Fe+=Pi(l.display):Fe-=l.display.viewOffset,W=="page"||W=="window"){var Ye=l.display.lineSpace.getBoundingClientRect();Fe+=Ye.top+(W=="window"?0:As());var We=Ye.left+(W=="window"?0:Ss());K.left+=We,K.right+=We}return K.top+=Fe,K.bottom+=Fe,K}function no(l,w,K){if(K=="div")return w;var W=w.left,q=w.top;if(K=="page")W-=Ss(),q-=As();else if(K=="local"||!K){var be=l.display.sizer.getBoundingClientRect();W+=be.left,q+=be.top}var Fe=l.display.lineSpace.getBoundingClientRect();return{left:W-Fe.left,top:q-Fe.top}}function ci(l,w,K,W,q){return W||(W=Vn(l.doc,w.line)),qo(l,W,Yl(l,W,w.ch,q),K)}function _i(l,w,K,W,q,be){W=W||Vn(l.doc,w.line),q||(q=ra(l,W));function Fe(Nn,Ln){var Yn=Us(l,q,Nn,Ln?"right":"left",be);return Ln?Yn.left=Yn.right:Yn.right=Yn.left,qo(l,W,Yn,K)}var Ye=Ot(W,l.doc.direction),We=w.ch,tt=w.sticky;if(We>=W.text.length?(We=W.text.length,tt="before"):We<=0&&(We=0,tt="after"),!Ye)return Fe(tt=="before"?We-1:We,tt=="before");function Nt(Nn,Ln,Yn){var sr=Ye[Ln],kr=sr.level==1;return Fe(Yn?Nn-1:Nn,kr!=Yn)}var at=et(Ye,We,tt),$t=rt,Ut=Nt(We,at,tt=="before");return $t!=null&&(Ut.other=Nt(We,$t,tt!="before")),Ut}function es(l,w){var K=0;w=Ht(l.doc,w),l.options.lineWrapping||(K=vl(l.display)*w.ch);var W=Vn(l.doc,w.line),q=Or(W)+Pi(l.display);return{left:K,right:K,top:q,bottom:q+W.height}}function Lo(l,w,K,W,q){var be=gt(l,w,K);return be.xRel=q,W&&(be.outside=W),be}function jo(l,w,K){var W=l.doc;if(K+=l.display.viewOffset,K<0)return Lo(W.first,0,null,-1,-1);var q=en(W,K),be=W.first+W.size-1;if(q>be)return Lo(W.first+W.size-1,Vn(W,be).text.length,null,1,1);w<0&&(w=0);for(var Fe=Vn(W,q);;){var Ye=qt(l,Fe,q,w,K),We=fn(Fe,Ye.ch+(Ye.xRel>0||Ye.outside>0?1:0));if(!We)return Ye;var tt=We.find(1);if(tt.line==q)return tt;Fe=Vn(W,q=tt.line)}}function Zn(l,w,K,W){W-=$o(w);var q=w.text.length,be=Be(function(Fe){return Us(l,K,Fe-1).bottom<=W},q,0);return q=Be(function(Fe){return Us(l,K,Fe).top>W},be,q),{begin:be,end:q}}function ia(l,w,K,W){K||(K=ra(l,w));var q=qo(l,w,Us(l,K,W),"line").top;return Zn(l,w,K,q)}function ht(l,w,K,W){return l.bottom<=K?!1:l.top>K?!0:(W?l.left:l.right)>w}function qt(l,w,K,W,q){q-=Or(w);var be=ra(l,w),Fe=$o(w),Ye=0,We=w.text.length,tt=!0,Nt=Ot(w,l.doc.direction);if(Nt){var at=(l.options.lineWrapping?Zl:il)(l,w,K,be,Nt,W,q);tt=at.level!=1,Ye=tt?at.from:at.to-1,We=tt?at.to:at.from-1}var $t=null,Ut=null,Nn=Be(function(Ci){var vr=Us(l,be,Ci);return vr.top+=Fe,vr.bottom+=Fe,ht(vr,W,q,!1)?(vr.top<=q&&vr.left<=W&&($t=Ci,Ut=vr),!0):!1},Ye,We),Ln,Yn,sr=!1;if(Ut){var kr=W-Ut.left<Ut.right-W,yr=kr==tt;Nn=$t+(yr?0:1),Yn=yr?"after":"before",Ln=kr?Ut.left:Ut.right}else{!tt&&(Nn==We||Nn==Ye)&&Nn++,Yn=Nn==0?"after":Nn==w.text.length?"before":Us(l,be,Nn-(tt?1:0)).bottom+Fe<=q==tt?"after":"before";var Hr=_i(l,gt(K,Nn,Yn),"line",w,be);Ln=Hr.left,sr=q<Hr.top?-1:q>=Hr.bottom?1:0}return Nn=_e(w.text,Nn,1),Lo(K,Nn,Yn,sr,W-Ln)}function il(l,w,K,W,q,be,Fe){var Ye=Be(function(at){var $t=q[at],Ut=$t.level!=1;return ht(_i(l,gt(K,Ut?$t.to:$t.from,Ut?"before":"after"),"line",w,W),be,Fe,!0)},0,q.length-1),We=q[Ye];if(Ye>0){var tt=We.level!=1,Nt=_i(l,gt(K,tt?We.from:We.to,tt?"after":"before"),"line",w,W);ht(Nt,be,Fe,!0)&&Nt.top>Fe&&(We=q[Ye-1])}return We}function Zl(l,w,K,W,q,be,Fe){var Ye=Zn(l,w,W,Fe),We=Ye.begin,tt=Ye.end;/\s/.test(w.text.charAt(tt-1))&&tt--;for(var Nt=null,at=null,$t=0;$t<q.length;$t++){var Ut=q[$t];if(!(Ut.from>=tt||Ut.to<=We)){var Nn=Ut.level!=1,Ln=Us(l,W,Nn?Math.min(tt,Ut.to)-1:Math.max(We,Ut.from)).right,Yn=Ln<be?be-Ln+1e9:Ln-be;(!Nt||at>Yn)&&(Nt=Ut,at=Yn)}}return Nt||(Nt=q[q.length-1]),Nt.from<We&&(Nt={from:We,to:Nt.to,level:Nt.level}),Nt.to>tt&&(Nt={from:Nt.from,to:tt,level:Nt.level}),Nt}var Xo;function Ys(l){if(l.cachedTextHeight!=null)return l.cachedTextHeight;if(Xo==null){Xo=G("pre",null,"CodeMirror-line-like");for(var w=0;w<49;++w)Xo.appendChild(document.createTextNode("x")),Xo.appendChild(G("br"));Xo.appendChild(document.createTextNode("x"))}U(l.measure,Xo);var K=Xo.offsetHeight/50;return K>3&&(l.cachedTextHeight=K),P(l.measure),K||1}function vl(l){if(l.cachedCharWidth!=null)return l.cachedCharWidth;var w=G("span","xxxxxxxxxx"),K=G("pre",[w],"CodeMirror-line-like");U(l.measure,K);var W=w.getBoundingClientRect(),q=(W.right-W.left)/10;return q>2&&(l.cachedCharWidth=q),q||10}function Ml(l){for(var w=l.display,K={},W={},q=w.gutters.clientLeft,be=w.gutters.firstChild,Fe=0;be;be=be.nextSibling,++Fe){var Ye=l.display.gutterSpecs[Fe].className;K[Ye]=be.offsetLeft+be.clientLeft+q,W[Ye]=be.clientWidth}return{fixedPos:Jl(w),gutterTotalWidth:w.gutters.offsetWidth,gutterLeft:K,gutterWidth:W,wrapperWidth:w.wrapper.clientWidth}}function Jl(l){return l.scroller.getBoundingClientRect().left-l.sizer.getBoundingClientRect().left}function To(l){var w=Ys(l.display),K=l.options.lineWrapping,W=K&&Math.max(5,l.display.scroller.clientWidth/vl(l.display)-3);return function(q){if(mn(l.doc,q))return 0;var be=0;if(q.widgets)for(var Fe=0;Fe<q.widgets.length;Fe++)q.widgets[Fe].height&&(be+=q.widgets[Fe].height);return K?be+(Math.ceil(q.text.length/W)||1)*w:be+w}}function Mr(l){var w=l.doc,K=To(l);w.iter(function(W){var q=K(W);q!=W.height&&On(W,q)})}function ps(l,w,K,W){var q=l.display;if(!K&&nr(w).getAttribute("cm-not-content")=="true")return null;var be,Fe,Ye=q.lineSpace.getBoundingClientRect();try{be=w.clientX-Ye.left,Fe=w.clientY-Ye.top}catch(at){return null}var We=jo(l,be,Fe),tt;if(W&&We.xRel>0&&(tt=Vn(l.doc,We.line).text).length==We.ch){var Nt=le(tt,tt.length,l.options.tabSize)-tt.length;We=gt(We.line,Math.max(0,Math.round((be-Is(l.display).left)/vl(l.display))-Nt))}return We}function Ps(l,w){if(w>=l.display.viewTo||(w-=l.display.viewFrom,w<0))return null;for(var K=l.display.view,W=0;W<K.length;W++)if(w-=K[W].size,w<0)return W}function Yi(l,w,K,W){w==null&&(w=l.doc.first),K==null&&(K=l.doc.first+l.doc.size),W||(W=0);var q=l.display;if(W&&K<q.viewTo&&(q.updateLineNumbers==null||q.updateLineNumbers>w)&&(q.updateLineNumbers=w),l.curOp.viewChanged=!0,w>=q.viewTo)Gt&&_r(l.doc,w)<q.viewTo&&Ao(l);else if(K<=q.viewFrom)Gt&&Fr(l.doc,K+W)>q.viewFrom?Ao(l):(q.viewFrom+=W,q.viewTo+=W);else if(w<=q.viewFrom&&K>=q.viewTo)Ao(l);else if(w<=q.viewFrom){var be=Hs(l,K,K+W,1);be?(q.view=q.view.slice(be.index),q.viewFrom=be.lineN,q.viewTo+=W):Ao(l)}else if(K>=q.viewTo){var Fe=Hs(l,w,w,-1);Fe?(q.view=q.view.slice(0,Fe.index),q.viewTo=Fe.lineN):Ao(l)}else{var Ye=Hs(l,w,w,-1),We=Hs(l,K,K+W,1);Ye&&We?(q.view=q.view.slice(0,Ye.index).concat(Jr(l,Ye.lineN,We.lineN)).concat(q.view.slice(We.index)),q.viewTo+=W):Ao(l)}var tt=q.externalMeasured;tt&&(K<tt.lineN?tt.lineN+=W:w<tt.lineN+tt.size&&(q.externalMeasured=null))}function xi(l,w,K){l.curOp.viewChanged=!0;var W=l.display,q=l.display.externalMeasured;if(q&&w>=q.lineN&&w<q.lineN+q.size&&(W.externalMeasured=null),!(w<W.viewFrom||w>=W.viewTo)){var be=W.view[Ps(l,w)];if(be.node!=null){var Fe=be.changes||(be.changes=[]);pe(Fe,K)==-1&&Fe.push(K)}}}function Ao(l){l.display.viewFrom=l.display.viewTo=l.doc.first,l.display.view=[],l.display.viewOffset=0}function Hs(l,w,K,W){var q=Ps(l,w),be,Fe=l.display.view;if(!Gt||K==l.doc.first+l.doc.size)return{index:q,lineN:K};for(var Ye=l.display.viewFrom,We=0;We<q;We++)Ye+=Fe[We].size;if(Ye!=w){if(W>0){if(q==Fe.length-1)return null;be=Ye+Fe[q].size-w,q++}else be=Ye-w;w+=be,K+=be}for(;_r(l.doc,K)!=K;){if(q==(W<0?0:Fe.length-1))return null;K+=W*Fe[q-(W<0?1:0)].size,q+=W}return{index:q,lineN:K}}function mo(l,w,K){var W=l.display,q=W.view;q.length==0||w>=W.viewTo||K<=W.viewFrom?(W.view=Jr(l,w,K),W.viewFrom=w):(W.viewFrom>w?W.view=Jr(l,w,W.viewFrom).concat(W.view):W.viewFrom<w&&(W.view=W.view.slice(Ps(l,w))),W.viewFrom=w,W.viewTo<K?W.view=W.view.concat(Jr(l,W.viewTo,K)):W.viewTo>K&&(W.view=W.view.slice(0,Ps(l,K)))),W.viewTo=K}function $s(l){for(var w=l.display.view,K=0,W=0;W<w.length;W++){var q=w[W];!q.hidden&&(!q.node||q.changes)&&++K}return K}function is(l){l.display.input.showSelection(l.display.input.prepareSelection())}function yl(l,w){w===void 0&&(w=!0);for(var K=l.doc,W={},q=W.cursors=document.createDocumentFragment(),be=W.selection=document.createDocumentFragment(),Fe=0;Fe<K.sel.ranges.length;Fe++)if(!(!w&&Fe==K.sel.primIndex)){var Ye=K.sel.ranges[Fe];if(!(Ye.from().line>=l.display.viewTo||Ye.to().line<l.display.viewFrom)){var We=Ye.empty();(We||l.options.showCursorWhenSelecting)&&Xi(l,Ye.head,q),We||ji(l,Ye,be)}}return W}function Xi(l,w,K){var W=_i(l,w,"div",null,null,!l.options.singleCursorHeightPerLine),q=K.appendChild(G("div","\xA0","CodeMirror-cursor"));if(q.style.left=W.left+"px",q.style.top=W.top+"px",q.style.height=Math.max(0,W.bottom-W.top)*l.options.cursorHeight+"px",W.other){var be=K.appendChild(G("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));be.style.display="",be.style.left=W.other.left+"px",be.style.top=W.other.top+"px",be.style.height=(W.other.bottom-W.other.top)*.85+"px"}}function gs(l,w){return l.top-w.top||l.left-w.left}function ji(l,w,K){var W=l.display,q=l.doc,be=document.createDocumentFragment(),Fe=Is(l.display),Ye=Fe.left,We=Math.max(W.sizerWidth,cs(l)-W.sizer.offsetLeft)-Fe.right,tt=q.direction=="ltr";function Nt(yr,Hr,Ci,vr){Hr<0&&(Hr=0),Hr=Math.round(Hr),vr=Math.round(vr),be.appendChild(G("div",null,"CodeMirror-selected","position: absolute; left: "+yr+`px;
top: `+Hr+"px; width: "+(Ci==null?We-yr:Ci)+`px;
height: `+(vr-Hr)+"px"))}function at(yr,Hr,Ci){var vr=Vn(q,yr),qi=vr.text.length,as,Qs;function ys(Ws,El){return ci(l,gt(yr,Ws),"div",vr,El)}function hl(Ws,El,_a){var Vs=ia(l,vr,null,Ws),bo=El=="ltr"==(_a=="after")?"left":"right",ws=_a=="after"?Vs.begin:Vs.end-(/\s/.test(vr.text.charAt(Vs.end-1))?2:1);return ys(ws,bo)[bo]}var Fa=Ot(vr,q.direction);return Ue(Fa,Hr||0,Ci==null?qi:Ci,function(Ws,El,_a,Vs){var bo=_a=="ltr",ws=ys(Ws,bo?"left":"right"),ua=ys(El-1,bo?"right":"left"),Aa=Hr==null&&Ws==0,bu=Ci==null&&El==qi,bs=Vs==0,ou=!Fa||Vs==Fa.length-1;if(ua.top-ws.top<=3){var Ns=(tt?Aa:bu)&&bs,df=(tt?bu:Aa)&&ou,jl=Ns?Ye:(bo?ws:ua).left,Cl=df?We:(bo?ua:ws).right;Nt(jl,ws.top,Cl-jl,ws.bottom)}else{var fl,Vo,ca,Vu;bo?(fl=tt&&Aa&&bs?Ye:ws.left,Vo=tt?We:hl(Ws,_a,"before"),ca=tt?Ye:hl(El,_a,"after"),Vu=tt&&bu&&ou?We:ua.right):(fl=tt?hl(Ws,_a,"before"):Ye,Vo=!tt&&Aa&&bs?We:ws.right,ca=!tt&&bu&&ou?Ye:ua.left,Vu=tt?hl(El,_a,"after"):We),Nt(fl,ws.top,Vo-fl,ws.bottom),ws.bottom<ua.top&&Nt(Ye,ws.bottom,null,ua.top),Nt(ca,ua.top,Vu-ca,ua.bottom)}(!as||gs(ws,as)<0)&&(as=ws),gs(ua,as)<0&&(as=ua),(!Qs||gs(ws,Qs)<0)&&(Qs=ws),gs(ua,Qs)<0&&(Qs=ua)}),{start:as,end:Qs}}var $t=w.from(),Ut=w.to();if($t.line==Ut.line)at($t.line,$t.ch,Ut.ch);else{var Nn=Vn(q,$t.line),Ln=Vn(q,Ut.line),Yn=yn(Nn)==yn(Ln),sr=at($t.line,$t.ch,Yn?Nn.text.length+1:null).end,kr=at(Ut.line,Yn?0:null,Ut.ch).start;Yn&&(sr.top<kr.top-2?(Nt(sr.right,sr.top,null,sr.bottom),Nt(Ye,kr.top,kr.left,kr.bottom)):Nt(sr.right,sr.top,kr.left-sr.right,sr.bottom)),sr.bottom<kr.top&&Nt(Ye,sr.bottom,null,kr.top)}K.appendChild(be)}function uo(l){if(l.state.focused){var w=l.display;clearInterval(w.blinker);var K=!0;w.cursorDiv.style.visibility="",l.options.cursorBlinkRate>0?w.blinker=setInterval(function(){l.hasFocus()||Ql(l),w.cursorDiv.style.visibility=(K=!K)?"":"hidden"},l.options.cursorBlinkRate):l.options.cursorBlinkRate<0&&(w.cursorDiv.style.visibility="hidden")}}function po(l){l.state.focused||(l.display.input.focus(),Ai(l))}function _o(l){l.state.delayingBlurEvent=!0,setTimeout(function(){l.state.delayingBlurEvent&&(l.state.delayingBlurEvent=!1,Ql(l))},100)}function Ai(l,w){l.state.delayingBlurEvent&&(l.state.delayingBlurEvent=!1),l.options.readOnly!="nocursor"&&(l.state.focused||(vt(l,"focus",l,w),l.state.focused=!0,ue(l.display.wrapper,"CodeMirror-focused"),!l.curOp&&l.display.selForContextMenu!=l.doc.sel&&(l.display.input.reset(),p&&setTimeout(function(){return l.display.input.reset(!0)},20)),l.display.input.receivedFocus()),uo(l))}function Ql(l,w){l.state.delayingBlurEvent||(l.state.focused&&(vt(l,"blur",l,w),l.state.focused=!1,V(l.display.wrapper,"CodeMirror-focused")),clearInterval(l.display.blinker),setTimeout(function(){l.state.focused||(l.display.shift=!1)},150))}function Ar(l){for(var w=l.display,K=w.lineDiv.offsetTop,W=0;W<w.view.length;W++){var q=w.view[W],be=l.options.lineWrapping,Fe=void 0,Ye=0;if(!q.hidden){if(A&&u<8){var We=q.node.offsetTop+q.node.offsetHeight;Fe=We-K,K=We}else{var tt=q.node.getBoundingClientRect();Fe=tt.bottom-tt.top,!be&&q.text.firstChild&&(Ye=q.text.firstChild.getBoundingClientRect().right-tt.left-1)}var Nt=q.line.height-Fe;if((Nt>.005||Nt<-.005)&&(On(q.line,Fe),oc(q.line),q.rest))for(var at=0;at<q.rest.length;at++)oc(q.rest[at]);if(Ye>l.display.sizerWidth){var $t=Math.ceil(Ye/vl(l.display));$t>l.display.maxLineLength&&(l.display.maxLineLength=$t,l.display.maxLine=q.line,l.display.maxLineChanged=!0)}}}}function oc(l){if(l.widgets)for(var w=0;w<l.widgets.length;++w){var K=l.widgets[w],W=K.node.parentNode;W&&(K.height=W.offsetHeight)}}function Fi(l,w,K){var W=K&&K.top!=null?Math.max(0,K.top):l.scroller.scrollTop;W=Math.floor(W-Pi(l));var q=K&&K.bottom!=null?K.bottom:W+l.wrapper.clientHeight,be=en(w,W),Fe=en(w,q);if(K&&K.ensure){var Ye=K.ensure.from.line,We=K.ensure.to.line;Ye<be?(be=Ye,Fe=en(w,Or(Vn(w,Ye))+l.wrapper.clientHeight)):Math.min(We,w.lastLine())>=Fe&&(be=en(w,Or(Vn(w,We))-l.wrapper.clientHeight),Fe=We)}return{from:be,to:Math.max(Fe,be+1)}}function ju(l,w){if(!Ct(l,"scrollCursorIntoView")){var K=l.display,W=K.sizer.getBoundingClientRect(),q=null;if(w.top+W.top<0?q=!0:w.bottom+W.top>(window.innerHeight||document.documentElement.clientHeight)&&(q=!1),q!=null&&!h){var be=G("div","\u200B",null,`position: absolute;
top: `+(w.top-K.viewOffset-Pi(l.display))+`px;
height: `+(w.bottom-w.top+Bi(l)+K.barHeight)+`px;
left: `+w.left+"px; width: "+Math.max(2,w.right-w.left)+"px;");l.display.lineSpace.appendChild(be),be.scrollIntoView(q),l.display.lineSpace.removeChild(be)}}}function Dl(l,w,K,W){W==null&&(W=0);var q;!l.options.lineWrapping&&w==K&&(w=w.ch?gt(w.line,w.sticky=="before"?w.ch-1:w.ch,"after"):w,K=w.sticky=="before"?gt(w.line,w.ch+1,"before"):w);for(var be=0;be<5;be++){var Fe=!1,Ye=_i(l,w),We=!K||K==w?Ye:_i(l,K);q={left:Math.min(Ye.left,We.left),top:Math.min(Ye.top,We.top)-W,right:Math.max(Ye.left,We.left),bottom:Math.max(Ye.bottom,We.bottom)+W};var tt=Uu(l,q),Nt=l.doc.scrollTop,at=l.doc.scrollLeft;if(tt.scrollTop!=null&&(Da(l,tt.scrollTop),Math.abs(l.doc.scrollTop-Nt)>1&&(Fe=!0)),tt.scrollLeft!=null&&(Va(l,tt.scrollLeft),Math.abs(l.doc.scrollLeft-at)>1&&(Fe=!0)),!Fe)break}return q}function ol(l,w){var K=Uu(l,w);K.scrollTop!=null&&Da(l,K.scrollTop),K.scrollLeft!=null&&Va(l,K.scrollLeft)}function Uu(l,w){var K=l.display,W=Ys(l.display);w.top<0&&(w.top=0);var q=l.curOp&&l.curOp.scrollTop!=null?l.curOp.scrollTop:K.scroller.scrollTop,be=Sa(l),Fe={};w.bottom-w.top>be&&(w.bottom=w.top+be);var Ye=l.doc.height+lo(K),We=w.top<W,tt=w.bottom>Ye-W;if(w.top<q)Fe.scrollTop=We?0:w.top;else if(w.bottom>q+be){var Nt=Math.min(w.top,(tt?Ye:w.bottom)-be);Nt!=q&&(Fe.scrollTop=Nt)}var at=l.options.fixedGutter?0:K.gutters.offsetWidth,$t=l.curOp&&l.curOp.scrollLeft!=null?l.curOp.scrollLeft:K.scroller.scrollLeft-at,Ut=cs(l)-K.gutters.offsetWidth,Nn=w.right-w.left>Ut;return Nn&&(w.right=w.left+Ut),w.left<10?Fe.scrollLeft=0:w.left<$t?Fe.scrollLeft=Math.max(0,w.left+at-(Nn?0:10)):w.right>Ut+$t-3&&(Fe.scrollLeft=w.right+(Nn?0:10)-Ut),Fe}function Nu(l,w){w!=null&&(Rs(l),l.curOp.scrollTop=(l.curOp.scrollTop==null?l.doc.scrollTop:l.curOp.scrollTop)+w)}function La(l){Rs(l);var w=l.getCursor();l.curOp.scrollToPos={from:w,to:w,margin:l.options.cursorScrollMargin}}function Ma(l,w,K){(w!=null||K!=null)&&Rs(l),w!=null&&(l.curOp.scrollLeft=w),K!=null&&(l.curOp.scrollTop=K)}function Ui(l,w){Rs(l),l.curOp.scrollToPos=w}function Rs(l){var w=l.curOp.scrollToPos;if(w){l.curOp.scrollToPos=null;var K=es(l,w.from),W=es(l,w.to);ql(l,K,W,w.margin)}}function ql(l,w,K,W){var q=Uu(l,{left:Math.min(w.left,K.left),top:Math.min(w.top,K.top)-W,right:Math.max(w.right,K.right),bottom:Math.max(w.bottom,K.bottom)+W});Ma(l,q.scrollLeft,q.scrollTop)}function Da(l,w){Math.abs(l.doc.scrollTop-w)<2||(B||ke(l,{top:w}),sl(l,w,!0),B&&ke(l),mu(l,100))}function sl(l,w,K){w=Math.max(0,Math.min(l.display.scroller.scrollHeight-l.display.scroller.clientHeight,w)),!(l.display.scroller.scrollTop==w&&!K)&&(l.doc.scrollTop=w,l.display.scrollbars.setScrollTop(w),l.display.scroller.scrollTop!=w&&(l.display.scroller.scrollTop=w))}function Va(l,w,K,W){w=Math.max(0,Math.min(w,l.display.scroller.scrollWidth-l.display.scroller.clientWidth)),!((K?w==l.doc.scrollLeft:Math.abs(l.doc.scrollLeft-w)<2)&&!W)&&(l.doc.scrollLeft=w,ct(l),l.display.scroller.scrollLeft!=w&&(l.display.scroller.scrollLeft=w),l.display.scrollbars.setScrollLeft(w))}function ki(l){var w=l.display,K=w.gutters.offsetWidth,W=Math.round(l.doc.height+lo(l.display));return{clientHeight:w.scroller.clientHeight,viewHeight:w.wrapper.clientHeight,scrollWidth:w.scroller.scrollWidth,clientWidth:w.scroller.clientWidth,viewWidth:w.wrapper.clientWidth,barLeft:l.options.fixedGutter?K:0,docHeight:W,scrollHeight:W+Bi(l)+w.barHeight,nativeBarWidth:w.nativeBarWidth,gutterWidth:K}}var Zi=function(l,w,K){this.cm=K;var W=this.vert=G("div",[G("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),q=this.horiz=G("div",[G("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");W.tabIndex=q.tabIndex=-1,l(W),l(q),nt(W,"scroll",function(){W.clientHeight&&w(W.scrollTop,"vertical")}),nt(q,"scroll",function(){q.clientWidth&&w(q.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,A&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Zi.prototype.update=function(l){var w=l.scrollWidth>l.clientWidth+1,K=l.scrollHeight>l.clientHeight+1,W=l.nativeBarWidth;if(K){this.vert.style.display="block",this.vert.style.bottom=w?W+"px":"0";var q=l.viewHeight-(w?W:0);this.vert.firstChild.style.height=Math.max(0,l.scrollHeight-l.clientHeight+q)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(w){this.horiz.style.display="block",this.horiz.style.right=K?W+"px":"0",this.horiz.style.left=l.barLeft+"px";var be=l.viewWidth-l.barLeft-(K?W:0);this.horiz.firstChild.style.width=Math.max(0,l.scrollWidth-l.clientWidth+be)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&l.clientHeight>0&&(W==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:K?W:0,bottom:w?W:0}},Zi.prototype.setScrollLeft=function(l){this.horiz.scrollLeft!=l&&(this.horiz.scrollLeft=l),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Zi.prototype.setScrollTop=function(l){this.vert.scrollTop!=l&&(this.vert.scrollTop=l),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Zi.prototype.zeroWidthHack=function(){var l=I&&!c?"12px":"18px";this.horiz.style.height=this.vert.style.width=l,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new xe,this.disableVert=new xe},Zi.prototype.enableZeroWidthBar=function(l,w,K){l.style.pointerEvents="auto";function W(){var q=l.getBoundingClientRect(),be=K=="vert"?document.elementFromPoint(q.right-1,(q.top+q.bottom)/2):document.elementFromPoint((q.right+q.left)/2,q.bottom-1);be!=l?l.style.pointerEvents="none":w.set(1e3,W)}w.set(1e3,W)},Zi.prototype.clear=function(){var l=this.horiz.parentNode;l.removeChild(this.horiz),l.removeChild(this.vert)};var ko=function(){};ko.prototype.update=function(){return{bottom:0,right:0}},ko.prototype.setScrollLeft=function(){},ko.prototype.setScrollTop=function(){},ko.prototype.clear=function(){};function ms(l,w){w||(w=ki(l));var K=l.display.barWidth,W=l.display.barHeight;os(l,w);for(var q=0;q<4&&K!=l.display.barWidth||W!=l.display.barHeight;q++)K!=l.display.barWidth&&l.options.lineWrapping&&Ar(l),os(l,ki(l)),K=l.display.barWidth,W=l.display.barHeight}function os(l,w){var K=l.display,W=K.scrollbars.update(w);K.sizer.style.paddingRight=(K.barWidth=W.right)+"px",K.sizer.style.paddingBottom=(K.barHeight=W.bottom)+"px",K.heightForcer.style.borderBottom=W.bottom+"px solid transparent",W.right&&W.bottom?(K.scrollbarFiller.style.display="block",K.scrollbarFiller.style.height=W.bottom+"px",K.scrollbarFiller.style.width=W.right+"px"):K.scrollbarFiller.style.display="",W.bottom&&l.options.coverGutterNextToScrollbar&&l.options.fixedGutter?(K.gutterFiller.style.display="block",K.gutterFiller.style.height=W.bottom+"px",K.gutterFiller.style.width=w.gutterWidth+"px"):K.gutterFiller.style.display=""}var xa={native:Zi,null:ko};function wa(l){l.display.scrollbars&&(l.display.scrollbars.clear(),l.display.scrollbars.addClass&&V(l.display.wrapper,l.display.scrollbars.addClass)),l.display.scrollbars=new xa[l.options.scrollbarStyle](function(w){l.display.wrapper.insertBefore(w,l.display.scrollbarFiller),nt(w,"mousedown",function(){l.state.focused&&setTimeout(function(){return l.display.input.focus()},0)}),w.setAttribute("cm-not-content","true")},function(w,K){K=="horizontal"?Va(l,w):Da(l,w)},l),l.display.scrollbars.addClass&&ue(l.display.wrapper,l.display.scrollbars.addClass)}var Ea=0;function oa(l){l.curOp={cm:l,viewChanged:!1,startHeight:l.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:++Ea},Ts(l.curOp)}function Ka(l){var w=l.curOp;w&&js(w,function(K){for(var W=0;W<K.ops.length;W++)K.ops[W].cm.curOp=null;Sc(K)})}function Sc(l){for(var w=l.ops,K=0;K<w.length;K++)Th(w[K]);for(var W=0;W<w.length;W++)_h(w[W]);for(var q=0;q<w.length;q++)Ah(w[q]);for(var be=0;be<w.length;be++)ts(w[be]);for(var Fe=0;Fe<w.length;Fe++)eu(w[Fe])}function Th(l){var w=l.cm,K=w.display;xc(w),l.updateMaxLine&&Kr(w),l.mustUpdate=l.viewChanged||l.forceUpdate||l.scrollTop!=null||l.scrollToPos&&(l.scrollToPos.from.line<K.viewFrom||l.scrollToPos.to.line>=K.viewTo)||K.maxLineChanged&&w.options.lineWrapping,l.update=l.mustUpdate&&new tu(w,l.mustUpdate&&{top:l.scrollTop,ensure:l.scrollToPos},l.forceUpdate)}function _h(l){l.updatedDisplay=l.mustUpdate&&te(l.cm,l.update)}function Ah(l){var w=l.cm,K=w.display;l.updatedDisplay&&Ar(w),l.barMeasure=ki(w),K.maxLineChanged&&!w.options.lineWrapping&&(l.adjustWidthTo=Yl(w,K.maxLine,K.maxLine.text.length).left+3,w.display.sizerWidth=l.adjustWidthTo,l.barMeasure.scrollWidth=Math.max(K.scroller.clientWidth,K.sizer.offsetLeft+l.adjustWidthTo+Bi(w)+w.display.barWidth),l.maxScrollLeft=Math.max(0,K.sizer.offsetLeft+l.adjustWidthTo-cs(w))),(l.updatedDisplay||l.selectionChanged)&&(l.preparedSelection=K.input.prepareSelection())}function ts(l){var w=l.cm;l.adjustWidthTo!=null&&(w.display.sizer.style.minWidth=l.adjustWidthTo+"px",l.maxScrollLeft<w.doc.scrollLeft&&Va(w,Math.min(w.display.scroller.scrollLeft,l.maxScrollLeft),!0),w.display.maxLineChanged=!1);var K=l.focus&&l.focus==oe();l.preparedSelection&&w.display.input.showSelection(l.preparedSelection,K),(l.updatedDisplay||l.startHeight!=w.doc.height)&&ms(w,l.barMeasure),l.updatedDisplay&&Qe(w,l.barMeasure),l.selectionChanged&&uo(w),w.state.focused&&l.updateInput&&w.display.input.reset(l.typing),K&&po(l.cm)}function eu(l){var w=l.cm,K=w.display,W=w.doc;if(l.updatedDisplay&&Se(w,l.update),K.wheelStartX!=null&&(l.scrollTop!=null||l.scrollLeft!=null||l.scrollToPos)&&(K.wheelStartX=K.wheelStartY=null),l.scrollTop!=null&&sl(w,l.scrollTop,l.forceScroll),l.scrollLeft!=null&&Va(w,l.scrollLeft,!0,!0),l.scrollToPos){var q=Dl(w,Ht(W,l.scrollToPos.from),Ht(W,l.scrollToPos.to),l.scrollToPos.margin);ju(w,q)}var be=l.maybeHiddenMarkers,Fe=l.maybeUnhiddenMarkers;if(be)for(var Ye=0;Ye<be.length;++Ye)be[Ye].lines.length||vt(be[Ye],"hide");if(Fe)for(var We=0;We<Fe.length;++We)Fe[We].lines.length&&vt(Fe[We],"unhide");K.wrapper.offsetHeight&&(W.scrollTop=w.display.scroller.scrollTop),l.changeObjs&&vt(w,"changes",w,l.changeObjs),l.update&&l.update.finish()}function ho(l,w){if(l.curOp)return w();oa(l);try{return w()}finally{Ka(l)}}function xs(l,w){return function(){if(l.curOp)return w.apply(l,arguments);oa(l);try{return w.apply(l,arguments)}finally{Ka(l)}}}function Os(l){return function(){if(this.curOp)return l.apply(this,arguments);oa(this);try{return l.apply(this,arguments)}finally{Ka(this)}}}function ks(l){return function(){var w=this.cm;if(!w||w.curOp)return l.apply(this,arguments);oa(w);try{return l.apply(this,arguments)}finally{Ka(w)}}}function mu(l,w){l.doc.highlightFrontier<l.display.viewTo&&l.state.highlight.set(w,ve(Fs,l))}function Fs(l){var w=l.doc;if(!(w.highlightFrontier>=l.display.viewTo)){var K=+new Date+l.options.workTime,W=vi(l,w.highlightFrontier),q=[];w.iter(W.line,Math.min(w.first+w.size,l.display.viewTo+500),function(be){if(W.line>=l.display.viewFrom){var Fe=be.styles,Ye=be.text.length>l.options.maxHighlightLength?ai(w.mode,W.state):null,We=St(l,be,W,!0);Ye&&(W.state=Ye),be.styles=We.styles;var tt=be.styleClasses,Nt=We.classes;Nt?be.styleClasses=Nt:tt&&(be.styleClasses=null);for(var at=!Fe||Fe.length!=be.styles.length||tt!=Nt&&(!tt||!Nt||tt.bgClass!=Nt.bgClass||tt.textClass!=Nt.textClass),$t=0;!at&&$t<Fe.length;++$t)at=Fe[$t]!=be.styles[$t];at&&q.push(W.line),be.stateAfter=W.save(),W.nextLine()}else be.text.length<=l.options.maxHighlightLength&&Dt(l,be.text,W),be.stateAfter=W.line%5==0?W.save():null,W.nextLine();if(+new Date>K)return mu(l,l.options.workDelay),!0}),w.highlightFrontier=W.line,w.modeFrontier=Math.max(w.modeFrontier,W.line),q.length&&ho(l,function(){for(var be=0;be<q.length;be++)xi(l,q[be],"text")})}}var tu=function(l,w,K){var W=l.display;this.viewport=w,this.visible=Fi(W,l.doc,w),this.editorIsHidden=!W.wrapper.offsetWidth,this.wrapperHeight=W.wrapper.clientHeight,this.wrapperWidth=W.wrapper.clientWidth,this.oldDisplayWidth=cs(l),this.force=K,this.dims=Ml(l),this.events=[]};tu.prototype.signal=function(l,w){Rt(l,w)&&this.events.push(arguments)},tu.prototype.finish=function(){for(var l=0;l<this.events.length;l++)vt.apply(null,this.events[l])};function xc(l){var w=l.display;!w.scrollbarsClipped&&w.scroller.offsetWidth&&(w.nativeBarWidth=w.scroller.offsetWidth-w.scroller.clientWidth,w.heightForcer.style.height=Bi(l)+"px",w.sizer.style.marginBottom=-w.nativeBarWidth+"px",w.sizer.style.borderRightWidth=Bi(l)+"px",w.scrollbarsClipped=!0)}function wc(l){if(l.hasFocus())return null;var w=oe();if(!w||!ae(l.display.lineDiv,w))return null;var K={activeElt:w};if(window.getSelection){var W=window.getSelection();W.anchorNode&&W.extend&&ae(l.display.lineDiv,W.anchorNode)&&(K.anchorNode=W.anchorNode,K.anchorOffset=W.anchorOffset,K.focusNode=W.focusNode,K.focusOffset=W.focusOffset)}return K}function sa(l){if(!(!l||!l.activeElt||l.activeElt==oe())&&(l.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(l.activeElt.nodeName)&&l.anchorNode&&ae(document.body,l.anchorNode)&&ae(document.body,l.focusNode))){var w=window.getSelection(),K=document.createRange();K.setEnd(l.anchorNode,l.anchorOffset),K.collapse(!1),w.removeAllRanges(),w.addRange(K),w.extend(l.focusNode,l.focusOffset)}}function te(l,w){var K=l.display,W=l.doc;if(w.editorIsHidden)return Ao(l),!1;if(!w.force&&w.visible.from>=K.viewFrom&&w.visible.to<=K.viewTo&&(K.updateLineNumbers==null||K.updateLineNumbers>=K.viewTo)&&K.renderedView==K.view&&$s(l)==0)return!1;mt(l)&&(Ao(l),w.dims=Ml(l));var q=W.first+W.size,be=Math.max(w.visible.from-l.options.viewportMargin,W.first),Fe=Math.min(q,w.visible.to+l.options.viewportMargin);K.viewFrom<be&&be-K.viewFrom<20&&(be=Math.max(W.first,K.viewFrom)),K.viewTo>Fe&&K.viewTo-Fe<20&&(Fe=Math.min(q,K.viewTo)),Gt&&(be=_r(l.doc,be),Fe=Fr(l.doc,Fe));var Ye=be!=K.viewFrom||Fe!=K.viewTo||K.lastWrapHeight!=w.wrapperHeight||K.lastWrapWidth!=w.wrapperWidth;mo(l,be,Fe),K.viewOffset=Or(Vn(l.doc,K.viewFrom)),l.display.mover.style.top=K.viewOffset+"px";var We=$s(l);if(!Ye&&We==0&&!w.force&&K.renderedView==K.view&&(K.updateLineNumbers==null||K.updateLineNumbers>=K.viewTo))return!1;var tt=wc(l);return We>4&&(K.lineDiv.style.display="none"),je(l,K.updateLineNumbers,w.dims),We>4&&(K.lineDiv.style.display=""),K.renderedView=K.view,sa(tt),P(K.cursorDiv),P(K.selectionDiv),K.gutters.style.height=K.sizer.style.minHeight=0,Ye&&(K.lastWrapHeight=w.wrapperHeight,K.lastWrapWidth=w.wrapperWidth,mu(l,400)),K.updateLineNumbers=null,!0}function Se(l,w){for(var K=w.viewport,W=!0;;W=!1){if(!W||!l.options.lineWrapping||w.oldDisplayWidth==cs(l)){if(K&&K.top!=null&&(K={top:Math.min(l.doc.height+lo(l.display)-Sa(l),K.top)}),w.visible=Fi(l.display,l.doc,K),w.visible.from>=l.display.viewFrom&&w.visible.to<=l.display.viewTo)break}else W&&(w.visible=Fi(l.display,l.doc,K));if(!te(l,w))break;Ar(l);var q=ki(l);is(l),ms(l,q),Qe(l,q),w.force=!1}w.signal(l,"update",l),(l.display.viewFrom!=l.display.reportedViewFrom||l.display.viewTo!=l.display.reportedViewTo)&&(w.signal(l,"viewportChange",l,l.display.viewFrom,l.display.viewTo),l.display.reportedViewFrom=l.display.viewFrom,l.display.reportedViewTo=l.display.viewTo)}function ke(l,w){var K=new tu(l,w);if(te(l,K)){Ar(l),Se(l,K);var W=ki(l);is(l),ms(l,W),Qe(l,W),K.finish()}}function je(l,w,K){var W=l.display,q=l.options.lineNumbers,be=W.lineDiv,Fe=be.firstChild;function Ye(Nn){var Ln=Nn.nextSibling;return p&&I&&l.display.currentWheelTarget==Nn?Nn.style.display="none":Nn.parentNode.removeChild(Nn),Ln}for(var We=W.view,tt=W.viewFrom,Nt=0;Nt<We.length;Nt++){var at=We[Nt];if(!at.hidden)if(!at.node||at.node.parentNode!=be){var $t=zo(l,at,tt,K);be.insertBefore($t,Fe)}else{for(;Fe!=at.node;)Fe=Ye(Fe);var Ut=q&&w!=null&&w<=tt&&at.lineNumber;at.changes&&(pe(at.changes,"gutter")>-1&&(Ut=!1),yo(l,at,tt,K)),Ut&&(P(at.lineNumber),at.lineNumber.appendChild(document.createTextNode(Un(l.options,tt)))),Fe=at.node.nextSibling}tt+=at.size}for(;Fe;)Fe=Ye(Fe)}function Je(l){var w=l.gutters.offsetWidth;l.sizer.style.marginLeft=w+"px"}function Qe(l,w){l.display.sizer.style.minHeight=w.docHeight+"px",l.display.heightForcer.style.top=w.docHeight+"px",l.display.gutters.style.height=w.docHeight+l.display.barHeight+Bi(l)+"px"}function ct(l){var w=l.display,K=w.view;if(!(!w.alignWidgets&&(!w.gutters.firstChild||!l.options.fixedGutter))){for(var W=Jl(w)-w.scroller.scrollLeft+l.doc.scrollLeft,q=w.gutters.offsetWidth,be=W+"px",Fe=0;Fe<K.length;Fe++)if(!K[Fe].hidden){l.options.fixedGutter&&(K[Fe].gutter&&(K[Fe].gutter.style.left=be),K[Fe].gutterBackground&&(K[Fe].gutterBackground.style.left=be));var Ye=K[Fe].alignable;if(Ye)for(var We=0;We<Ye.length;We++)Ye[We].style.left=be}l.options.fixedGutter&&(w.gutters.style.left=W+q+"px")}}function mt(l){if(!l.options.lineNumbers)return!1;var w=l.doc,K=Un(l.options,w.first+w.size-1),W=l.display;if(K.length!=W.lineNumChars){var q=W.measure.appendChild(G("div",[G("div",K)],"CodeMirror-linenumber CodeMirror-gutter-elt")),be=q.firstChild.offsetWidth,Fe=q.offsetWidth-be;return W.lineGutter.style.width="",W.lineNumInnerWidth=Math.max(be,W.lineGutter.offsetWidth-Fe)+1,W.lineNumWidth=W.lineNumInnerWidth+Fe,W.lineNumChars=W.lineNumInnerWidth?K.length:-1,W.lineGutter.style.width=W.lineNumWidth+"px",Je(l.display),!0}return!1}function zt(l,w){for(var K=[],W=!1,q=0;q<l.length;q++){var be=l[q],Fe=null;if(typeof be!="string"&&(Fe=be.style,be=be.className),be=="CodeMirror-linenumbers")if(w)W=!0;else continue;K.push({className:be,style:Fe})}return w&&!W&&K.push({className:"CodeMirror-linenumbers",style:null}),K}function Yt(l){var w=l.gutters,K=l.gutterSpecs;P(w),l.lineGutter=null;for(var W=0;W<K.length;++W){var q=K[W],be=q.className,Fe=q.style,Ye=w.appendChild(G("div",null,"CodeMirror-gutter "+be));Fe&&(Ye.style.cssText=Fe),be=="CodeMirror-linenumbers"&&(l.lineGutter=Ye,Ye.style.width=(l.lineNumWidth||1)+"px")}w.style.display=K.length?"":"none",Je(l)}function Lt(l){Yt(l.display),Yi(l),ct(l)}function ln(l,w,K,W){var q=this;this.input=K,q.scrollbarFiller=G("div",null,"CodeMirror-scrollbar-filler"),q.scrollbarFiller.setAttribute("cm-not-content","true"),q.gutterFiller=G("div",null,"CodeMirror-gutter-filler"),q.gutterFiller.setAttribute("cm-not-content","true"),q.lineDiv=J("div",null,"CodeMirror-code"),q.selectionDiv=G("div",null,null,"position: relative; z-index: 1"),q.cursorDiv=G("div",null,"CodeMirror-cursors"),q.measure=G("div",null,"CodeMirror-measure"),q.lineMeasure=G("div",null,"CodeMirror-measure"),q.lineSpace=J("div",[q.measure,q.lineMeasure,q.selectionDiv,q.cursorDiv,q.lineDiv],null,"position: relative; outline: none");var be=J("div",[q.lineSpace],"CodeMirror-lines");q.mover=G("div",[be],null,"position: relative"),q.sizer=G("div",[q.mover],"CodeMirror-sizer"),q.sizerWidth=null,q.heightForcer=G("div",null,null,"position: absolute; height: "+Me+"px; width: 1px;"),q.gutters=G("div",null,"CodeMirror-gutters"),q.lineGutter=null,q.scroller=G("div",[q.sizer,q.heightForcer,q.gutters],"CodeMirror-scroll"),q.scroller.setAttribute("tabIndex","-1"),q.wrapper=G("div",[q.scrollbarFiller,q.gutterFiller,q.scroller],"CodeMirror"),A&&u<8&&(q.gutters.style.zIndex=-1,q.scroller.style.paddingRight=0),!p&&!(B&&T)&&(q.scroller.draggable=!0),l&&(l.appendChild?l.appendChild(q.wrapper):l(q.wrapper)),q.viewFrom=q.viewTo=w.first,q.reportedViewFrom=q.reportedViewTo=w.first,q.view=[],q.renderedView=null,q.externalMeasured=null,q.viewOffset=0,q.lastWrapHeight=q.lastWrapWidth=0,q.updateLineNumbers=null,q.nativeBarWidth=q.barHeight=q.barWidth=0,q.scrollbarsClipped=!1,q.lineNumWidth=q.lineNumInnerWidth=q.lineNumChars=null,q.alignWidgets=!1,q.cachedCharWidth=q.cachedTextHeight=q.cachedPaddingH=null,q.maxLine=null,q.maxLineLength=0,q.maxLineChanged=!1,q.wheelDX=q.wheelDY=q.wheelStartX=q.wheelStartY=null,q.shift=!1,q.selForContextMenu=null,q.activeTouch=null,q.gutterSpecs=zt(W.gutters,W.lineNumbers),Yt(q),K.init(q)}var on=0,Pt=null;A?Pt=-.53:B?Pt=15:g?Pt=-.7:v&&(Pt=-1/3);function Ur(l){var w=l.wheelDeltaX,K=l.wheelDeltaY;return w==null&&l.detail&&l.axis==l.HORIZONTAL_AXIS&&(w=l.detail),K==null&&l.detail&&l.axis==l.VERTICAL_AXIS?K=l.detail:K==null&&(K=l.wheelDelta),{x:w,y:K}}function fi(l){var w=Ur(l);return w.x*=Pt,w.y*=Pt,w}function Ni(l,w){var K=Ur(w),W=K.x,q=K.y,be=l.display,Fe=be.scroller,Ye=Fe.scrollWidth>Fe.clientWidth,We=Fe.scrollHeight>Fe.clientHeight;if(W&&Ye||q&&We){if(q&&I&&p){e:for(var tt=w.target,Nt=be.view;tt!=Fe;tt=tt.parentNode)for(var at=0;at<Nt.length;at++)if(Nt[at].node==tt){l.display.currentWheelTarget=tt;break e}}if(W&&!B&&!y&&Pt!=null){q&&We&&Da(l,Math.max(0,Fe.scrollTop+q*Pt)),Va(l,Math.max(0,Fe.scrollLeft+W*Pt)),(!q||q&&We)&&Zt(w),be.wheelStartX=null;return}if(q&&Pt!=null){var $t=q*Pt,Ut=l.doc.scrollTop,Nn=Ut+be.wrapper.clientHeight;$t<0?Ut=Math.max(0,Ut+$t-50):Nn=Math.min(l.doc.height,Nn+$t+50),ke(l,{top:Ut,bottom:Nn})}on<20&&(be.wheelStartX==null?(be.wheelStartX=Fe.scrollLeft,be.wheelStartY=Fe.scrollTop,be.wheelDX=W,be.wheelDY=q,setTimeout(function(){if(be.wheelStartX!=null){var Ln=Fe.scrollLeft-be.wheelStartX,Yn=Fe.scrollTop-be.wheelStartY,sr=Yn&&be.wheelDY&&Yn/be.wheelDY||Ln&&be.wheelDX&&Ln/be.wheelDX;be.wheelStartX=be.wheelStartY=null,sr&&(Pt=(Pt*on+sr)/(on+1),++on)}},200)):(be.wheelDX+=W,be.wheelDY+=q))}}var mr=function(l,w){this.ranges=l,this.primIndex=w};mr.prototype.primary=function(){return this.ranges[this.primIndex]},mr.prototype.equals=function(l){if(l==this)return!0;if(l.primIndex!=this.primIndex||l.ranges.length!=this.ranges.length)return!1;for(var w=0;w<this.ranges.length;w++){var K=this.ranges[w],W=l.ranges[w];if(!Hn(K.anchor,W.anchor)||!Hn(K.head,W.head))return!1}return!0},mr.prototype.deepCopy=function(){for(var l=[],w=0;w<this.ranges.length;w++)l[w]=new Wr(At(this.ranges[w].anchor),At(this.ranges[w].head));return new mr(l,this.primIndex)},mr.prototype.somethingSelected=function(){for(var l=0;l<this.ranges.length;l++)if(!this.ranges[l].empty())return!0;return!1},mr.prototype.contains=function(l,w){w||(w=l);for(var K=0;K<this.ranges.length;K++){var W=this.ranges[K];if(gn(w,W.from())>=0&&gn(l,W.to())<=0)return K}return-1};var Wr=function(l,w){this.anchor=l,this.head=w};Wr.prototype.from=function(){return Bn(this.anchor,this.head)},Wr.prototype.to=function(){return we(this.anchor,this.head)},Wr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ti(l,w,K){var W=l&&l.options.selectionsMayTouch,q=w[K];w.sort(function($t,Ut){return gn($t.from(),Ut.from())}),K=pe(w,q);for(var be=1;be<w.length;be++){var Fe=w[be],Ye=w[be-1],We=gn(Ye.to(),Fe.from());if(W&&!Fe.empty()?We>0:We>=0){var tt=Bn(Ye.from(),Fe.from()),Nt=we(Ye.to(),Fe.to()),at=Ye.empty()?Fe.from()==Fe.head:Ye.from()==Ye.head;be<=K&&--K,w.splice(--be,2,new Wr(at?Nt:tt,at?tt:Nt))}}return new mr(w,K)}function No(l,w){return new mr([new Wr(l,w||l)],0)}function Io(l){return l.text?gt(l.from.line+l.text.length-1,ot(l.text).length+(l.text.length==1?l.from.ch:0)):l.to}function tr(l,w){if(gn(l,w.from)<0)return l;if(gn(l,w.to)<=0)return Io(w);var K=l.line+w.text.length-(w.to.line-w.from.line)-1,W=l.ch;return l.line==w.to.line&&(W+=Io(w).ch-w.to.ch),gt(K,W)}function Mo(l,w){for(var K=[],W=0;W<l.sel.ranges.length;W++){var q=l.sel.ranges[W];K.push(new Wr(tr(q.anchor,w),tr(q.head,w)))}return ti(l.cm,K,l.sel.primIndex)}function ss(l,w,K){return l.line==w.line?gt(K.line,l.ch-w.ch+K.ch):gt(K.line+(l.line-w.line),l.ch)}function wo(l,w,K){for(var W=[],q=gt(l.first,0),be=q,Fe=0;Fe<w.length;Fe++){var Ye=w[Fe],We=ss(Ye.from,q,be),tt=ss(Io(Ye),q,be);if(q=Ye.to,be=tt,K=="around"){var Nt=l.sel.ranges[Fe],at=gn(Nt.head,Nt.anchor)<0;W[Fe]=new Wr(at?tt:We,at?We:tt)}else W[Fe]=new Wr(We,We)}return new mr(W,l.sel.primIndex)}function Dr(l){l.doc.mode=Qr(l.options,l.doc.modeOption),aa(l)}function aa(l){l.doc.iter(function(w){w.stateAfter&&(w.stateAfter=null),w.styles&&(w.styles=null)}),l.doc.modeFrontier=l.doc.highlightFrontier=l.doc.first,mu(l,100),l.state.modeGen++,l.curOp&&Yi(l)}function Go(l,w){return w.from.ch==0&&w.to.ch==0&&ot(w.text)==""&&(!l.cm||l.cm.options.wholeLineUpdateBefore)}function Ti(l,w,K,W){function q(kr){return K?K[kr]:null}function be(kr,yr,Hr){Si(kr,yr,Hr,W),ar(kr,"change",kr,w)}function Fe(kr,yr){for(var Hr=[],Ci=kr;Ci<yr;++Ci)Hr.push(new bi(tt[Ci],q(Ci),W));return Hr}var Ye=w.from,We=w.to,tt=w.text,Nt=Vn(l,Ye.line),at=Vn(l,We.line),$t=ot(tt),Ut=q(tt.length-1),Nn=We.line-Ye.line;if(w.full)l.insert(0,Fe(0,tt.length)),l.remove(tt.length,l.size-tt.length);else if(Go(l,w)){var Ln=Fe(0,tt.length-1);be(at,at.text,Ut),Nn&&l.remove(Ye.line,Nn),Ln.length&&l.insert(Ye.line,Ln)}else if(Nt==at)if(tt.length==1)be(Nt,Nt.text.slice(0,Ye.ch)+$t+Nt.text.slice(We.ch),Ut);else{var Yn=Fe(1,tt.length-1);Yn.push(new bi($t+Nt.text.slice(We.ch),Ut,W)),be(Nt,Nt.text.slice(0,Ye.ch)+tt[0],q(0)),l.insert(Ye.line+1,Yn)}else if(tt.length==1)be(Nt,Nt.text.slice(0,Ye.ch)+tt[0]+at.text.slice(We.ch),q(0)),l.remove(Ye.line+1,Nn);else{be(Nt,Nt.text.slice(0,Ye.ch)+tt[0],q(0)),be(at,$t+at.text.slice(We.ch),Ut);var sr=Fe(1,tt.length-1);Nn>1&&l.remove(Ye.line+1,Nn-1),l.insert(Ye.line+1,sr)}ar(l,"change",l,w)}function wi(l,w,K){function W(q,be,Fe){if(q.linked)for(var Ye=0;Ye<q.linked.length;++Ye){var We=q.linked[Ye];if(We.doc!=be){var tt=Fe&&We.sharedHist;K&&!tt||(w(We.doc,tt),W(We.doc,q,tt))}}}W(l,null,!0)}function so(l,w){if(w.cm)throw new Error("This document is already in use.");l.doc=w,w.cm=l,Mr(l),Dr(l),ns(l),l.options.lineWrapping||Kr(l),l.options.mode=w.modeOption,Yi(l)}function ns(l){(l.doc.direction=="rtl"?ue:V)(l.display.lineDiv,"CodeMirror-rtl")}function Bs(l){ho(l,function(){ns(l),Yi(l)})}function Xs(l){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=l||1}function Pa(l,w){var K={from:At(w.from),to:Io(w),text:Mt(l,w.from,w.to)};return bl(l,K,w.from.line,w.to.line+1),wi(l,function(W){return bl(W,K,w.from.line,w.to.line+1)},!0),K}function Qt(l){for(;l.length;){var w=ot(l);if(w.ranges)l.pop();else break}}function la(l,w){if(w)return Qt(l.done),ot(l.done);if(l.done.length&&!ot(l.done).ranges)return ot(l.done);if(l.done.length>1&&!l.done[l.done.length-2].ranges)return l.done.pop(),ot(l.done)}function Ya(l,w,K,W){var q=l.history;q.undone.length=0;var be=+new Date,Fe,Ye;if((q.lastOp==W||q.lastOrigin==w.origin&&w.origin&&(w.origin.charAt(0)=="+"&&q.lastModTime>be-(l.cm?l.cm.options.historyEventDelay:500)||w.origin.charAt(0)=="*"))&&(Fe=la(q,q.lastOp==W)))Ye=ot(Fe.changes),gn(w.from,w.to)==0&&gn(w.from,Ye.to)==0?Ye.to=Io(w):Fe.changes.push(Pa(l,w));else{var We=ot(q.done);for((!We||!We.ranges)&&al(l.sel,q.done),Fe={changes:[Pa(l,w)],generation:q.generation},q.done.push(Fe);q.done.length>q.undoDepth;)q.done.shift(),q.done[0].ranges||q.done.shift()}q.done.push(K),q.generation=++q.maxGeneration,q.lastModTime=q.lastSelTime=be,q.lastOp=q.lastSelOp=W,q.lastOrigin=q.lastSelOrigin=w.origin,Ye||vt(l,"historyAdded")}function rn(l,w,K,W){var q=w.charAt(0);return q=="*"||q=="+"&&K.ranges.length==W.ranges.length&&K.somethingSelected()==W.somethingSelected()&&new Date-l.history.lastSelTime<=(l.cm?l.cm.options.historyEventDelay:500)}function Zs(l,w,K,W){var q=l.history,be=W&&W.origin;K==q.lastSelOp||be&&q.lastSelOrigin==be&&(q.lastModTime==q.lastSelTime&&q.lastOrigin==be||rn(l,be,ot(q.done),w))?q.done[q.done.length-1]=w:al(w,q.done),q.lastSelTime=+new Date,q.lastSelOrigin=be,q.lastSelOp=K,W&&W.clearRedo!==!1&&Qt(q.undone)}function al(l,w){var K=ot(w);K&&K.ranges&&K.equals(l)||w.push(l)}function bl(l,w,K,W){var q=w["spans_"+l.id],be=0;l.iter(Math.max(l.first,K),Math.min(l.first+l.size,W),function(Fe){Fe.markedSpans&&((q||(q=w["spans_"+l.id]={}))[be]=Fe.markedSpans),++be})}function Ls(l){if(!l)return null;for(var w,K=0;K<l.length;++K)l[K].marker.explicitlyCleared?w||(w=l.slice(0,K)):w&&w.push(l[K]);return w?w.length?w:null:l}function rs(l,w){var K=w["spans_"+l.id];if(!K)return null;for(var W=[],q=0;q<w.text.length;++q)W.push(Ls(K[q]));return W}function $a(l,w){var K=rs(l,w),W=Mi(l,w);if(!K)return W;if(!W)return K;for(var q=0;q<K.length;++q){var be=K[q],Fe=W[q];if(be&&Fe)e:for(var Ye=0;Ye<Fe.length;++Ye){for(var We=Fe[Ye],tt=0;tt<be.length;++tt)if(be[tt].marker==We.marker)continue e;be.push(We)}else Fe&&(K[q]=Fe)}return K}function zs(l,w,K){for(var W=[],q=0;q<l.length;++q){var be=l[q];if(be.ranges){W.push(K?mr.prototype.deepCopy.call(be):be);continue}var Fe=be.changes,Ye=[];W.push({changes:Ye});for(var We=0;We<Fe.length;++We){var tt=Fe[We],Nt=void 0;if(Ye.push({from:tt.from,to:tt.to,text:tt.text}),w)for(var at in tt)(Nt=at.match(/^spans_(\d+)$/))&&pe(w,Number(Nt[1]))>-1&&(ot(Ye)[at]=tt[at],delete tt[at])}}return W}function Pl(l,w,K,W){if(W){var q=l.anchor;if(K){var be=gn(w,q)<0;be!=gn(K,q)<0?(q=w,w=K):be!=gn(w,K)<0&&(w=K)}return new Wr(q,w)}else return new Wr(K||w,w)}function nu(l,w,K,W,q){q==null&&(q=l.cm&&(l.cm.display.shift||l.extend)),F(l,new mr([Pl(l.sel.primary(),w,K,q)],0),W)}function Ec(l,w,K){for(var W=[],q=l.cm&&(l.cm.display.shift||l.extend),be=0;be<l.sel.ranges.length;be++)W[be]=Pl(l.sel.ranges[be],w[be],null,q);var Fe=ti(l.cm,W,l.sel.primIndex);F(l,Fe,K)}function ll(l,w,K,W){var q=l.sel.ranges.slice(0);q[w]=K,F(l,ti(l.cm,q,l.sel.primIndex),W)}function vu(l,w,K,W){F(l,No(w,K),W)}function Xc(l,w,K){var W={ranges:w.ranges,update:function(q){this.ranges=[];for(var be=0;be<q.length;be++)this.ranges[be]=new Wr(Ht(l,q[be].anchor),Ht(l,q[be].head))},origin:K&&K.origin};return vt(l,"beforeSelectionChange",l,W),l.cm&&vt(l.cm,"beforeSelectionChange",l.cm,W),W.ranges!=w.ranges?ti(l.cm,W.ranges,W.ranges.length-1):w}function _(l,w,K){var W=l.history.done,q=ot(W);q&&q.ranges?(W[W.length-1]=w,Ae(l,w,K)):F(l,w,K)}function F(l,w,K){Ae(l,w,K),Zs(l,l.sel,l.cm?l.cm.curOp.id:NaN,K)}function Ae(l,w,K){(Rt(l,"beforeSelectionChange")||l.cm&&Rt(l.cm,"beforeSelectionChange"))&&(w=Xc(l,w,K));var W=K&&K.bias||(gn(w.primary().head,l.sel.primary().head)<0?-1:1);lt(l,Tn(l,w,W,!0)),!(K&&K.scroll===!1)&&l.cm&&La(l.cm)}function lt(l,w){w.equals(l.sel)||(l.sel=w,l.cm&&(l.cm.curOp.updateInput=1,l.cm.curOp.selectionChanged=!0,Ft(l.cm)),ar(l,"cursorActivity",l))}function Wt(l){lt(l,Tn(l,l.sel,null,!1))}function Tn(l,w,K,W){for(var q,be=0;be<w.ranges.length;be++){var Fe=w.ranges[be],Ye=w.ranges.length==l.sel.ranges.length&&l.sel.ranges[be],We=$r(l,Fe.anchor,Ye&&Ye.anchor,K,W),tt=$r(l,Fe.head,Ye&&Ye.head,K,W);(q||We!=Fe.anchor||tt!=Fe.head)&&(q||(q=w.ranges.slice(0,be)),q[be]=new Wr(We,tt))}return q?ti(l.cm,q,w.primIndex):w}function Gn(l,w,K,W,q){var be=Vn(l,w.line);if(be.markedSpans)for(var Fe=0;Fe<be.markedSpans.length;++Fe){var Ye=be.markedSpans[Fe],We=Ye.marker,tt="selectLeft"in We?!We.selectLeft:We.inclusiveLeft,Nt="selectRight"in We?!We.selectRight:We.inclusiveRight;if((Ye.from==null||(tt?Ye.from<=w.ch:Ye.from<w.ch))&&(Ye.to==null||(Nt?Ye.to>=w.ch:Ye.to>w.ch))){if(q&&(vt(We,"beforeCursorEnter"),We.explicitlyCleared))if(be.markedSpans){--Fe;continue}else break;if(!We.atomic)continue;if(K){var at=We.find(W<0?1:-1),$t=void 0;if((W<0?Nt:tt)&&(at=Ei(l,at,-W,at&&at.line==w.line?be:null)),at&&at.line==w.line&&($t=gn(at,K))&&(W<0?$t<0:$t>0))return Gn(l,at,w,W,q)}var Ut=We.find(W<0?-1:1);return(W<0?tt:Nt)&&(Ut=Ei(l,Ut,W,Ut.line==w.line?be:null)),Ut?Gn(l,Ut,w,W,q):null}}return w}function $r(l,w,K,W,q){var be=W||1,Fe=Gn(l,w,K,be,q)||!q&&Gn(l,w,K,be,!0)||Gn(l,w,K,-be,q)||!q&&Gn(l,w,K,-be,!0);return Fe||(l.cantEdit=!0,gt(l.first,0))}function Ei(l,w,K,W){return K<0&&w.ch==0?w.line>l.first?Ht(l,gt(w.line-1)):null:K>0&&w.ch==(W||Vn(l,w.line)).text.length?w.line<l.first+l.size-1?gt(w.line+1,0):null:new gt(w.line,w.ch+K)}function xn(l){l.setSelection(gt(l.firstLine(),0),gt(l.lastLine()),Le)}function ur(l,w,K){var W={canceled:!1,from:w.from,to:w.to,text:w.text,origin:w.origin,cancel:function(){return W.canceled=!0}};return K&&(W.update=function(q,be,Fe,Ye){q&&(W.from=Ht(l,q)),be&&(W.to=Ht(l,be)),Fe&&(W.text=Fe),Ye!==void 0&&(W.origin=Ye)}),vt(l,"beforeChange",l,W),l.cm&&vt(l.cm,"beforeChange",l.cm,W),W.canceled?(l.cm&&(l.cm.curOp.updateInput=2),null):{from:W.from,to:W.to,text:W.text,origin:W.origin}}function Ii(l,w,K){if(l.cm){if(!l.cm.curOp)return xs(l.cm,Ii)(l,w,K);if(l.cm.state.suppressEdits)return}if(!((Rt(l,"beforeChange")||l.cm&&Rt(l.cm,"beforeChange"))&&(w=ur(l,w,!0),!w))){var W=ri&&!K&&Vt(l,w.from,w.to);if(W)for(var q=W.length-1;q>=0;--q)co(l,{from:W[q].from,to:W[q].to,text:q?[""]:w.text,origin:w.origin});else co(l,w)}}function co(l,w){if(!(w.text.length==1&&w.text[0]==""&&gn(w.from,w.to)==0)){var K=Mo(l,w);Ya(l,w,K,l.cm?l.cm.curOp.id:NaN),Fl(l,w,K,Mi(l,w));var W=[];wi(l,function(q,be){!be&&pe(W,q.history)==-1&&(Hu(q.history,w),W.push(q.history)),Fl(q,w,null,Mi(q,w))})}}function Uo(l,w,K){var W=l.cm&&l.cm.state.suppressEdits;if(!(W&&!K)){for(var q=l.history,be,Fe=l.sel,Ye=w=="undo"?q.done:q.undone,We=w=="undo"?q.undone:q.done,tt=0;tt<Ye.length&&(be=Ye[tt],!(K?be.ranges&&!be.equals(l.sel):!be.ranges));tt++);if(tt!=Ye.length){for(q.lastOrigin=q.lastSelOrigin=null;;)if(be=Ye.pop(),be.ranges){if(al(be,We),K&&!be.equals(l.sel)){F(l,be,{clearRedo:!1});return}Fe=be}else if(W){Ye.push(be);return}else break;var Nt=[];al(Fe,We),We.push({changes:Nt,generation:q.generation}),q.generation=be.generation||++q.maxGeneration;for(var at=Rt(l,"beforeChange")||l.cm&&Rt(l.cm,"beforeChange"),$t=function(Ln){var Yn=be.changes[Ln];if(Yn.origin=w,at&&!ur(l,Yn,!1))return Ye.length=0,{};Nt.push(Pa(l,Yn));var sr=Ln?Mo(l,Yn):ot(Ye);Fl(l,Yn,sr,$a(l,Yn)),!Ln&&l.cm&&l.cm.scrollIntoView({from:Yn.from,to:Io(Yn)});var kr=[];wi(l,function(yr,Hr){!Hr&&pe(kr,yr.history)==-1&&(Hu(yr.history,Yn),kr.push(yr.history)),Fl(yr,Yn,null,$a(yr,Yn))})},Ut=be.changes.length-1;Ut>=0;--Ut){var Nn=$t(Ut);if(Nn)return Nn.v}}}}function Sl(l,w){if(w!=0&&(l.first+=w,l.sel=new mr(Ge(l.sel.ranges,function(q){return new Wr(gt(q.anchor.line+w,q.anchor.ch),gt(q.head.line+w,q.head.ch))}),l.sel.primIndex),l.cm)){Yi(l.cm,l.first,l.first-w,w);for(var K=l.cm.display,W=K.viewFrom;W<K.viewTo;W++)xi(l.cm,W,"gutter")}}function Fl(l,w,K,W){if(l.cm&&!l.cm.curOp)return xs(l.cm,Fl)(l,w,K,W);if(w.to.line<l.first){Sl(l,w.text.length-1-(w.to.line-w.from.line));return}if(!(w.from.line>l.lastLine())){if(w.from.line<l.first){var q=w.text.length-1-(l.first-w.from.line);Sl(l,q),w={from:gt(l.first,0),to:gt(w.to.line+q,w.to.ch),text:[ot(w.text)],origin:w.origin}}var be=l.lastLine();w.to.line>be&&(w={from:w.from,to:gt(be,Vn(l,be).text.length),text:[w.text[0]],origin:w.origin}),w.removed=Mt(l,w.from,w.to),K||(K=Mo(l,w)),l.cm?yu(l.cm,w,W):Ti(l,w,W),Ae(l,K,Le),l.cantEdit&&$r(l,gt(l.firstLine(),0))&&(l.cantEdit=!1)}}function yu(l,w,K){var W=l.doc,q=l.display,be=w.from,Fe=w.to,Ye=!1,We=be.line;l.options.lineWrapping||(We=ft(yn(Vn(W,be.line))),W.iter(We,Fe.line+1,function(Ut){if(Ut==q.maxLine)return Ye=!0,!0})),W.sel.contains(w.from,w.to)>-1&&Ft(l),Ti(W,w,K,To(l)),l.options.lineWrapping||(W.iter(We,be.line+w.text.length,function(Ut){var Nn=yi(Ut);Nn>q.maxLineLength&&(q.maxLine=Ut,q.maxLineLength=Nn,q.maxLineChanged=!0,Ye=!1)}),Ye&&(l.curOp.updateMaxLine=!0)),qr(W,be.line),mu(l,400);var tt=w.text.length-(Fe.line-be.line)-1;w.full?Yi(l):be.line==Fe.line&&w.text.length==1&&!Go(l.doc,w)?xi(l,be.line,"text"):Yi(l,be.line,Fe.line+1,tt);var Nt=Rt(l,"changes"),at=Rt(l,"change");if(at||Nt){var $t={from:be,to:Fe,text:w.text,removed:w.removed,origin:w.origin};at&&ar(l,"change",l,$t),Nt&&(l.curOp.changeObjs||(l.curOp.changeObjs=[])).push($t)}l.display.selForContextMenu=null}function ru(l,w,K,W,q){var be;W||(W=K),gn(W,K)<0&&(be=[W,K],K=be[0],W=be[1]),typeof w=="string"&&(w=l.splitLines(w)),Ii(l,{from:K,to:W,text:w,origin:q})}function Ca(l,w,K,W){K<l.line?l.line+=W:w<l.line&&(l.line=w,l.ch=0)}function ul(l,w,K,W){for(var q=0;q<l.length;++q){var be=l[q],Fe=!0;if(be.ranges){be.copied||(be=l[q]=be.deepCopy(),be.copied=!0);for(var Ye=0;Ye<be.ranges.length;Ye++)Ca(be.ranges[Ye].anchor,w,K,W),Ca(be.ranges[Ye].head,w,K,W);continue}for(var We=0;We<be.changes.length;++We){var tt=be.changes[We];if(K<tt.from.line)tt.from=gt(tt.from.line+W,tt.from.ch),tt.to=gt(tt.to.line+W,tt.to.ch);else if(w<=tt.to.line){Fe=!1;break}}Fe||(l.splice(0,q+1),q=0)}}function Hu(l,w){var K=w.from.line,W=w.to.line,q=w.text.length-(W-K)-1;ul(l.done,K,W,q),ul(l.undone,K,W,q)}function Xa(l,w,K,W){var q=w,be=w;return typeof w=="number"?be=Vn(l,wn(l,w)):q=ft(w),q==null?null:(W(be,q)&&l.cm&&xi(l.cm,q,K),be)}function kh(l){this.lines=l,this.parent=null;for(var w=0,K=0;K<l.length;++K)l[K].parent=this,w+=l[K].height;this.height=w}kh.prototype={chunkSize:function(){return this.lines.length},removeInner:function(l,w){for(var K=l,W=l+w;K<W;++K){var q=this.lines[K];this.height-=q.height,hi(q),ar(q,"delete")}this.lines.splice(l,w)},collapse:function(l){l.push.apply(l,this.lines)},insertInner:function(l,w,K){this.height+=K,this.lines=this.lines.slice(0,l).concat(w).concat(this.lines.slice(l));for(var W=0;W<w.length;++W)w[W].parent=this},iterN:function(l,w,K){for(var W=l+w;l<W;++l)if(K(this.lines[l]))return!0}};function vs(l){this.children=l;for(var w=0,K=0,W=0;W<l.length;++W){var q=l[W];w+=q.chunkSize(),K+=q.height,q.parent=this}this.size=w,this.height=K,this.parent=null}vs.prototype={chunkSize:function(){return this.size},removeInner:function(l,w){this.size-=w;for(var K=0;K<this.children.length;++K){var W=this.children[K],q=W.chunkSize();if(l<q){var be=Math.min(w,q-l),Fe=W.height;if(W.removeInner(l,be),this.height-=Fe-W.height,q==be&&(this.children.splice(K--,1),W.parent=null),(w-=be)==0)break;l=0}else l-=q}if(this.size-w<25&&(this.children.length>1||!(this.children[0]instanceof kh))){var Ye=[];this.collapse(Ye),this.children=[new kh(Ye)],this.children[0].parent=this}},collapse:function(l){for(var w=0;w<this.children.length;++w)this.children[w].collapse(l)},insertInner:function(l,w,K){this.size+=w.length,this.height+=K;for(var W=0;W<this.children.length;++W){var q=this.children[W],be=q.chunkSize();if(l<=be){if(q.insertInner(l,w,K),q.lines&&q.lines.length>50){for(var Fe=q.lines.length%25+25,Ye=Fe;Ye<q.lines.length;){var We=new kh(q.lines.slice(Ye,Ye+=25));q.height-=We.height,this.children.splice(++W,0,We),We.parent=this}q.lines=q.lines.slice(0,Fe),this.maybeSpill()}break}l-=be}},maybeSpill:function(){if(!(this.children.length<=10)){var l=this;do{var w=l.children.splice(l.children.length-5,5),K=new vs(w);if(l.parent){l.size-=K.size,l.height-=K.height;var q=pe(l.parent.children,l);l.parent.children.splice(q+1,0,K)}else{var W=new vs(l.children);W.parent=l,l.children=[W,K],l=W}K.parent=l.parent}while(l.children.length>10);l.parent.maybeSpill()}},iterN:function(l,w,K){for(var W=0;W<this.children.length;++W){var q=this.children[W],be=q.chunkSize();if(l<be){var Fe=Math.min(w,be-l);if(q.iterN(l,Fe,K))return!0;if((w-=Fe)==0)break;l=0}else l-=be}}};var sc=function(l,w,K){if(K)for(var W in K)K.hasOwnProperty(W)&&(this[W]=K[W]);this.doc=l,this.node=w};sc.prototype.clear=function(){var l=this.doc.cm,w=this.line.widgets,K=this.line,W=ft(K);if(!(W==null||!w)){for(var q=0;q<w.length;++q)w[q]==this&&w.splice(q--,1);w.length||(K.widgets=null);var be=Oo(this);On(K,Math.max(0,K.height-be)),l&&(ho(l,function(){og(l,K,-be),xi(l,W,"widget")}),ar(l,"lineWidgetCleared",l,this,W))}},sc.prototype.changed=function(){var l=this,w=this.height,K=this.doc.cm,W=this.line;this.height=null;var q=Oo(this)-w;q&&(mn(this.doc,W)||On(W,W.height+q),K&&ho(K,function(){K.curOp.forceUpdate=!0,og(K,W,q),ar(K,"lineWidgetChanged",K,l,ft(W))}))},$e(sc);function og(l,w,K){Or(w)<(l.curOp&&l.curOp.scrollTop||l.doc.scrollTop)&&Nu(l,K)}function Ff(l,w,K,W){var q=new sc(l,K,W),be=l.cm;return be&&q.noHScroll&&(be.display.alignWidgets=!0),Xa(l,w,"widget",function(Fe){var Ye=Fe.widgets||(Fe.widgets=[]);if(q.insertAt==null?Ye.push(q):Ye.splice(Math.min(Ye.length-1,Math.max(0,q.insertAt)),0,q),q.line=Fe,be&&!mn(l,Fe)){var We=Or(Fe)<l.scrollTop;On(Fe,Fe.height+Oo(q)),We&&Nu(be,q.height),be.curOp.forceUpdate=!0}return!0}),be&&ar(be,"lineWidgetAdded",be,q,typeof w=="number"?w:ft(w)),q}var sg=0,bt=function(l,w){this.lines=[],this.type=w,this.doc=l,this.id=++sg};bt.prototype.clear=function(){if(!this.explicitlyCleared){var l=this.doc.cm,w=l&&!l.curOp;if(w&&oa(l),Rt(this,"clear")){var K=this.find();K&&ar(this,"clear",K.from,K.to)}for(var W=null,q=null,be=0;be<this.lines.length;++be){var Fe=this.lines[be],Ye=er(Fe.markedSpans,this);l&&!this.collapsed?xi(l,ft(Fe),"text"):l&&(Ye.to!=null&&(q=ft(Fe)),Ye.from!=null&&(W=ft(Fe))),Fe.markedSpans=rr(Fe.markedSpans,Ye),Ye.from==null&&this.collapsed&&!mn(this.doc,Fe)&&l&&On(Fe,Ys(l.display))}if(l&&this.collapsed&&!l.options.lineWrapping)for(var We=0;We<this.lines.length;++We){var tt=yn(this.lines[We]),Nt=yi(tt);Nt>l.display.maxLineLength&&(l.display.maxLine=tt,l.display.maxLineLength=Nt,l.display.maxLineChanged=!0)}W!=null&&l&&this.collapsed&&Yi(l,W,q+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,l&&Wt(l.doc)),l&&ar(l,"markerCleared",l,this,W,q),w&&Ka(l),this.parent&&this.parent.clear()}},bt.prototype.find=function(l,w){l==null&&this.type=="bookmark"&&(l=1);for(var K,W,q=0;q<this.lines.length;++q){var be=this.lines[q],Fe=er(be.markedSpans,this);if(Fe.from!=null&&(K=gt(w?be:ft(be),Fe.from),l==-1))return K;if(Fe.to!=null&&(W=gt(w?be:ft(be),Fe.to),l==1))return W}return K&&{from:K,to:W}},bt.prototype.changed=function(){var l=this,w=this.find(-1,!0),K=this,W=this.doc.cm;!w||!W||ho(W,function(){var q=w.line,be=ft(w.line),Fe=Ga(W,be);if(Fe&&(gu(Fe),W.curOp.selectionChanged=W.curOp.forceUpdate=!0),W.curOp.updateMaxLine=!0,!mn(K.doc,q)&&K.height!=null){var Ye=K.height;K.height=null;var We=Oo(K)-Ye;We&&On(q,q.height+We)}ar(W,"markerChanged",W,l)})},bt.prototype.attachLine=function(l){if(!this.lines.length&&this.doc.cm){var w=this.doc.cm.curOp;(!w.maybeHiddenMarkers||pe(w.maybeHiddenMarkers,this)==-1)&&(w.maybeUnhiddenMarkers||(w.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(l)},bt.prototype.detachLine=function(l){if(this.lines.splice(pe(this.lines,l),1),!this.lines.length&&this.doc.cm){var w=this.doc.cm.curOp;(w.maybeHiddenMarkers||(w.maybeHiddenMarkers=[])).push(this)}},$e(bt);function Zc(l,w,K,W,q){if(W&&W.shared)return ag(l,w,K,W,q);if(l.cm&&!l.cm.curOp)return xs(l.cm,Zc)(l,w,K,W,q);var be=new bt(l,q),Fe=gn(w,K);if(W&&Re(W,be,!1),Fe>0||Fe==0&&be.clearWhenEmpty!==!1)return be;if(be.replacedWith&&(be.collapsed=!0,be.widgetNode=J("span",[be.replacedWith],"CodeMirror-widget"),W.handleMouseEvents||be.widgetNode.setAttribute("cm-ignore-events","true"),W.insertLeft&&(be.widgetNode.insertLeft=!0)),be.collapsed){if(dn(l,w.line,w,K,be)||w.line!=K.line&&dn(l,K.line,w,K,be))throw new Error("Inserting collapsed marker partially overlapping an existing one");Kt()}be.addToHistory&&Ya(l,{from:w,to:K,origin:"markText"},l.sel,NaN);var Ye=w.line,We=l.cm,tt;if(l.iter(Ye,K.line+1,function(at){We&&be.collapsed&&!We.options.lineWrapping&&yn(at)==We.display.maxLine&&(tt=!0),be.collapsed&&Ye!=w.line&&On(at,0),Di(at,new Wn(be,Ye==w.line?w.ch:null,Ye==K.line?K.ch:null)),++Ye}),be.collapsed&&l.iter(w.line,K.line+1,function(at){mn(l,at)&&On(at,0)}),be.clearOnEnter&&nt(be,"beforeCursorEnter",function(){return be.clear()}),be.readOnly&&(ui(),(l.history.done.length||l.history.undone.length)&&l.clearHistory()),be.collapsed&&(be.id=++sg,be.atomic=!0),We){if(tt&&(We.curOp.updateMaxLine=!0),be.collapsed)Yi(We,w.line,K.line+1);else if(be.className||be.startStyle||be.endStyle||be.css||be.attributes||be.title)for(var Nt=w.line;Nt<=K.line;Nt++)xi(We,Nt,"text");be.atomic&&Wt(We.doc),ar(We,"markerAdded",We,be)}return be}var zu=function(l,w){this.markers=l,this.primary=w;for(var K=0;K<l.length;++K)l[K].parent=this};zu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var l=0;l<this.markers.length;++l)this.markers[l].clear();ar(this,"clear")}},zu.prototype.find=function(l,w){return this.primary.find(l,w)},$e(zu);function ag(l,w,K,W,q){W=Re(W),W.shared=!1;var be=[Zc(l,w,K,W,q)],Fe=be[0],Ye=W.widgetNode;return wi(l,function(We){Ye&&(W.widgetNode=Ye.cloneNode(!0)),be.push(Zc(We,Ht(We,w),Ht(We,K),W,q));for(var tt=0;tt<We.linked.length;++tt)if(We.linked[tt].isParent)return;Fe=ot(be)}),new zu(be,Fe)}function Pd(l){return l.findMarks(gt(l.first,0),l.clipPos(gt(l.lastLine())),function(w){return w.parent})}function lg(l,w){for(var K=0;K<w.length;K++){var W=w[K],q=W.find(),be=l.clipPos(q.from),Fe=l.clipPos(q.to);if(gn(be,Fe)){var Ye=Zc(l,be,Fe,W.primary,W.primary.type);W.markers.push(Ye),Ye.parent=W}}}function Fd(l){for(var w=function(W){var q=l[W],be=[q.primary.doc];wi(q.primary.doc,function(We){return be.push(We)});for(var Fe=0;Fe<q.markers.length;Fe++){var Ye=q.markers[Fe];pe(be,Ye.doc)==-1&&(Ye.parent=null,q.markers.splice(Fe--,1))}},K=0;K<l.length;K++)w(K)}var fv=0,Ta=function(l,w,K,W,q){if(!(this instanceof Ta))return new Ta(l,w,K,W,q);K==null&&(K=0),vs.call(this,[new kh([new bi("",null)])]),this.first=K,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=K;var be=gt(K,0);this.sel=No(be),this.history=new Xs(null),this.id=++fv,this.modeOption=w,this.lineSep=W,this.direction=q=="rtl"?"rtl":"ltr",this.extend=!1,typeof l=="string"&&(l=this.splitLines(l)),Ti(this,{from:be,to:be,text:l}),F(this,No(be),Le)};Ta.prototype=z(vs.prototype,{constructor:Ta,iter:function(l,w,K){K?this.iterN(l-this.first,w-l,K):this.iterN(this.first,this.first+this.size,l)},insert:function(l,w){for(var K=0,W=0;W<w.length;++W)K+=w[W].height;this.insertInner(l-this.first,w,K)},remove:function(l,w){this.removeInner(l-this.first,w)},getValue:function(l){var w=It(this,this.first,this.first+this.size);return l===!1?w:w.join(l||this.lineSeparator())},setValue:ks(function(l){var w=gt(this.first,0),K=this.first+this.size-1;Ii(this,{from:w,to:gt(K,Vn(this,K).text.length),text:this.splitLines(l),origin:"setValue",full:!0},!0),this.cm&&Ma(this.cm,0,0),F(this,No(w),Le)}),replaceRange:function(l,w,K,W){w=Ht(this,w),K=K?Ht(this,K):w,ru(this,l,w,K,W)},getRange:function(l,w,K){var W=Mt(this,Ht(this,l),Ht(this,w));return K===!1?W:W.join(K||this.lineSeparator())},getLine:function(l){var w=this.getLineHandle(l);return w&&w.text},getLineHandle:function(l){if(An(this,l))return Vn(this,l)},getLineNumber:function(l){return ft(l)},getLineHandleVisualStart:function(l){return typeof l=="number"&&(l=Vn(this,l)),yn(l)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(l){return Ht(this,l)},getCursor:function(l){var w=this.sel.primary(),K;return l==null||l=="head"?K=w.head:l=="anchor"?K=w.anchor:l=="end"||l=="to"||l===!1?K=w.to():K=w.from(),K},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ks(function(l,w,K){vu(this,Ht(this,typeof l=="number"?gt(l,w||0):l),null,K)}),setSelection:ks(function(l,w,K){vu(this,Ht(this,l),Ht(this,w||l),K)}),extendSelection:ks(function(l,w,K){nu(this,Ht(this,l),w&&Ht(this,w),K)}),extendSelections:ks(function(l,w){Ec(this,pr(this,l),w)}),extendSelectionsBy:ks(function(l,w){var K=Ge(this.sel.ranges,l);Ec(this,pr(this,K),w)}),setSelections:ks(function(l,w,K){if(l.length){for(var W=[],q=0;q<l.length;q++)W[q]=new Wr(Ht(this,l[q].anchor),Ht(this,l[q].head));w==null&&(w=Math.min(l.length-1,this.sel.primIndex)),F(this,ti(this.cm,W,w),K)}}),addSelection:ks(function(l,w,K){var W=this.sel.ranges.slice(0);W.push(new Wr(Ht(this,l),Ht(this,w||l))),F(this,ti(this.cm,W,W.length-1),K)}),getSelection:function(l){for(var w=this.sel.ranges,K,W=0;W<w.length;W++){var q=Mt(this,w[W].from(),w[W].to());K=K?K.concat(q):q}return l===!1?K:K.join(l||this.lineSeparator())},getSelections:function(l){for(var w=[],K=this.sel.ranges,W=0;W<K.length;W++){var q=Mt(this,K[W].from(),K[W].to());l!==!1&&(q=q.join(l||this.lineSeparator())),w[W]=q}return w},replaceSelection:function(l,w,K){for(var W=[],q=0;q<this.sel.ranges.length;q++)W[q]=l;this.replaceSelections(W,w,K||"+input")},replaceSelections:ks(function(l,w,K){for(var W=[],q=this.sel,be=0;be<q.ranges.length;be++){var Fe=q.ranges[be];W[be]={from:Fe.from(),to:Fe.to(),text:this.splitLines(l[be]),origin:K}}for(var Ye=w&&w!="end"&&wo(this,W,w),We=W.length-1;We>=0;We--)Ii(this,W[We]);Ye?_(this,Ye):this.cm&&La(this.cm)}),undo:ks(function(){Uo(this,"undo")}),redo:ks(function(){Uo(this,"redo")}),undoSelection:ks(function(){Uo(this,"undo",!0)}),redoSelection:ks(function(){Uo(this,"redo",!0)}),setExtending:function(l){this.extend=l},getExtending:function(){return this.extend},historySize:function(){for(var l=this.history,w=0,K=0,W=0;W<l.done.length;W++)l.done[W].ranges||++w;for(var q=0;q<l.undone.length;q++)l.undone[q].ranges||++K;return{undo:w,redo:K}},clearHistory:function(){var l=this;this.history=new Xs(this.history.maxGeneration),wi(this,function(w){return w.history=l.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(l){return l&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(l){return this.history.generation==(l||this.cleanGeneration)},getHistory:function(){return{done:zs(this.history.done),undone:zs(this.history.undone)}},setHistory:function(l){var w=this.history=new Xs(this.history.maxGeneration);w.done=zs(l.done.slice(0),null,!0),w.undone=zs(l.undone.slice(0),null,!0)},setGutterMarker:ks(function(l,w,K){return Xa(this,l,"gutter",function(W){var q=W.gutterMarkers||(W.gutterMarkers={});return q[w]=K,!K&&ne(q)&&(W.gutterMarkers=null),!0})}),clearGutter:ks(function(l){var w=this;this.iter(function(K){K.gutterMarkers&&K.gutterMarkers[l]&&Xa(w,K,"gutter",function(){return K.gutterMarkers[l]=null,ne(K.gutterMarkers)&&(K.gutterMarkers=null),!0})})}),lineInfo:function(l){var w;if(typeof l=="number"){if(!An(this,l)||(w=l,l=Vn(this,l),!l))return null}else if(w=ft(l),w==null)return null;return{line:w,handle:l,text:l.text,gutterMarkers:l.gutterMarkers,textClass:l.textClass,bgClass:l.bgClass,wrapClass:l.wrapClass,widgets:l.widgets}},addLineClass:ks(function(l,w,K){return Xa(this,l,w=="gutter"?"gutter":"class",function(W){var q=w=="text"?"textClass":w=="background"?"bgClass":w=="gutter"?"gutterClass":"wrapClass";if(!W[q])W[q]=K;else{if(D(K).test(W[q]))return!1;W[q]+=" "+K}return!0})}),removeLineClass:ks(function(l,w,K){return Xa(this,l,w=="gutter"?"gutter":"class",function(W){var q=w=="text"?"textClass":w=="background"?"bgClass":w=="gutter"?"gutterClass":"wrapClass",be=W[q];if(be)if(K==null)W[q]=null;else{var Fe=be.match(D(K));if(!Fe)return!1;var Ye=Fe.index+Fe[0].length;W[q]=be.slice(0,Fe.index)+(!Fe.index||Ye==be.length?"":" ")+be.slice(Ye)||null}else return!1;return!0})}),addLineWidget:ks(function(l,w,K){return Ff(this,l,w,K)}),removeLineWidget:function(l){l.clear()},markText:function(l,w,K){return Zc(this,Ht(this,l),Ht(this,w),K,K&&K.type||"range")},setBookmark:function(l,w){var K={replacedWith:w&&(w.nodeType==null?w.widget:w),insertLeft:w&&w.insertLeft,clearWhenEmpty:!1,shared:w&&w.shared,handleMouseEvents:w&&w.handleMouseEvents};return l=Ht(this,l),Zc(this,l,l,K,"bookmark")},findMarksAt:function(l){l=Ht(this,l);var w=[],K=Vn(this,l.line).markedSpans;if(K)for(var W=0;W<K.length;++W){var q=K[W];(q.from==null||q.from<=l.ch)&&(q.to==null||q.to>=l.ch)&&w.push(q.marker.parent||q.marker)}return w},findMarks:function(l,w,K){l=Ht(this,l),w=Ht(this,w);var W=[],q=l.line;return this.iter(l.line,w.line+1,function(be){var Fe=be.markedSpans;if(Fe)for(var Ye=0;Ye<Fe.length;Ye++){var We=Fe[Ye];!(We.to!=null&&q==l.line&&l.ch>=We.to||We.from==null&&q!=l.line||We.from!=null&&q==w.line&&We.from>=w.ch)&&(!K||K(We.marker))&&W.push(We.marker.parent||We.marker)}++q}),W},getAllMarks:function(){var l=[];return this.iter(function(w){var K=w.markedSpans;if(K)for(var W=0;W<K.length;++W)K[W].from!=null&&l.push(K[W].marker)}),l},posFromIndex:function(l){var w,K=this.first,W=this.lineSeparator().length;return this.iter(function(q){var be=q.text.length+W;if(be>l)return w=l,!0;l-=be,++K}),Ht(this,gt(K,w))},indexFromPos:function(l){l=Ht(this,l);var w=l.ch;if(l.line<this.first||l.ch<0)return 0;var K=this.lineSeparator().length;return this.iter(this.first,l.line,function(W){w+=W.text.length+K}),w},copy:function(l){var w=new Ta(It(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return w.scrollTop=this.scrollTop,w.scrollLeft=this.scrollLeft,w.sel=this.sel,w.extend=!1,l&&(w.history.undoDepth=this.history.undoDepth,w.setHistory(this.getHistory())),w},linkedDoc:function(l){l||(l={});var w=this.first,K=this.first+this.size;l.from!=null&&l.from>w&&(w=l.from),l.to!=null&&l.to<K&&(K=l.to);var W=new Ta(It(this,w,K),l.mode||this.modeOption,w,this.lineSep,this.direction);return l.sharedHist&&(W.history=this.history),(this.linked||(this.linked=[])).push({doc:W,sharedHist:l.sharedHist}),W.linked=[{doc:this,isParent:!0,sharedHist:l.sharedHist}],lg(W,Pd(this)),W},unlinkDoc:function(l){if(l instanceof vo&&(l=l.doc),this.linked)for(var w=0;w<this.linked.length;++w){var K=this.linked[w];if(K.doc==l){this.linked.splice(w,1),l.unlinkDoc(this),Fd(Pd(this));break}}if(l.history==this.history){var W=[l.id];wi(l,function(q){return W.push(q.id)},!0),l.history=new Xs(null),l.history.done=zs(this.history.done,W),l.history.undone=zs(this.history.undone,W)}},iterLinkedDocs:function(l){wi(this,l)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(l){return this.lineSep?l.split(this.lineSep):Er(l)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ks(function(l){l!="rtl"&&(l="ltr"),l!=this.direction&&(this.direction=l,this.iter(function(w){return w.order=null}),this.cm&&Bs(this.cm))})}),Ta.prototype.eachLine=Ta.prototype.iter;var rf=0;function Bd(l){var w=this;if(hg(w),!(Ct(w,l)||Co(w.display,l))){Zt(l),A&&(rf=+new Date);var K=ps(w,l,!0),W=l.dataTransfer.files;if(!(!K||w.isReadOnly()))if(W&&W.length&&window.FileReader&&window.File)for(var q=W.length,be=Array(q),Fe=0,Ye=function(){++Fe==q&&xs(w,function(){K=Ht(w.doc,K);var Ut={from:K,to:K,text:w.doc.splitLines(be.filter(function(Nn){return Nn!=null}).join(w.doc.lineSeparator())),origin:"paste"};Ii(w.doc,Ut),_(w.doc,No(Ht(w.doc,K),Ht(w.doc,Io(Ut))))})()},We=function(Ut,Nn){if(w.options.allowDropFileTypes&&pe(w.options.allowDropFileTypes,Ut.type)==-1){Ye();return}var Ln=new FileReader;Ln.onerror=function(){return Ye()},Ln.onload=function(){var Yn=Ln.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Yn)){Ye();return}be[Nn]=Yn,Ye()},Ln.readAsText(Ut)},tt=0;tt<W.length;tt++)We(W[tt],tt);else{if(w.state.draggingText&&w.doc.sel.contains(K)>-1){w.state.draggingText(l),setTimeout(function(){return w.display.input.focus()},20);return}try{var Nt=l.dataTransfer.getData("Text");if(Nt){var at;if(w.state.draggingText&&!w.state.draggingText.copy&&(at=w.listSelections()),Ae(w.doc,No(K,K)),at)for(var $t=0;$t<at.length;++$t)ru(w.doc,"",at[$t].anchor,at[$t].head,"drag");w.replaceSelection(Nt,"around","paste"),w.display.input.focus()}}catch(Ut){}}}}function ug(l,w){if(A&&(!l.state.draggingText||+new Date-rf<100)){Dn(w);return}if(!(Ct(l,w)||Co(l.display,w))&&(w.dataTransfer.setData("Text",l.getSelection()),w.dataTransfer.effectAllowed="copyMove",w.dataTransfer.setDragImage&&!v)){var K=G("img",null,null,"position: fixed; left: 0; top: 0;");K.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",y&&(K.width=K.height=1,l.display.wrapper.appendChild(K),K._top=K.offsetTop),w.dataTransfer.setDragImage(K,0,0),y&&K.parentNode.removeChild(K)}}function cg(l,w){var K=ps(l,w);if(K){var W=document.createDocumentFragment();Xi(l,K,W),l.display.dragCursor||(l.display.dragCursor=G("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),l.display.lineSpace.insertBefore(l.display.dragCursor,l.display.cursorDiv)),U(l.display.dragCursor,W)}}function hg(l){l.display.dragCursor&&(l.display.lineSpace.removeChild(l.display.dragCursor),l.display.dragCursor=null)}function fg(l){if(document.getElementsByClassName){for(var w=document.getElementsByClassName("CodeMirror"),K=[],W=0;W<w.length;W++){var q=w[W].CodeMirror;q&&K.push(q)}K.length&&K[0].operation(function(){for(var be=0;be<K.length;be++)l(K[be])})}}var jd=!1;function Bl(){jd||(Nh(),jd=!0)}function Nh(){var l;nt(window,"resize",function(){l==null&&(l=setTimeout(function(){l=null,fg(Ud)},100))}),nt(window,"blur",function(){return fg(Ql)})}function Ud(l){var w=l.display;w.cachedCharWidth=w.cachedTextHeight=w.cachedPaddingH=null,w.scrollbarsClipped=!1,l.setSize()}for(var Gu={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"},of=0;of<10;of++)Gu[of+48]=Gu[of+96]=String(of);for(var Bf=65;Bf<=90;Bf++)Gu[Bf]=String.fromCharCode(Bf);for(var sf=1;sf<=12;sf++)Gu[sf+111]=Gu[sf+63235]="F"+sf;var xl={};xl.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"},xl.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"},xl.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"},xl.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"]},xl.default=I?xl.macDefault:xl.pcDefault;function Hd(l){var w=l.split(/-(?!$)/);l=w[w.length-1];for(var K,W,q,be,Fe=0;Fe<w.length-1;Fe++){var Ye=w[Fe];if(/^(cmd|meta|m)$/i.test(Ye))be=!0;else if(/^a(lt)?$/i.test(Ye))K=!0;else if(/^(c|ctrl|control)$/i.test(Ye))W=!0;else if(/^s(hift)?$/i.test(Ye))q=!0;else throw new Error("Unrecognized modifier name: "+Ye)}return K&&(l="Alt-"+l),W&&(l="Ctrl-"+l),be&&(l="Cmd-"+l),q&&(l="Shift-"+l),l}function zd(l){var w={};for(var K in l)if(l.hasOwnProperty(K)){var W=l[K];if(/^(name|fallthrough|(de|at)tach)$/.test(K))continue;if(W=="..."){delete l[K];continue}for(var q=Ge(K.split(" "),Hd),be=0;be<q.length;be++){var Fe=void 0,Ye=void 0;be==q.length-1?(Ye=q.join(" "),Fe=W):(Ye=q.slice(0,be+1).join(" "),Fe="...");var We=w[Ye];if(!We)w[Ye]=Fe;else if(We!=Fe)throw new Error("Inconsistent bindings for "+Ye)}delete l[K]}for(var tt in w)l[tt]=w[tt];return l}function iu(l,w,K,W){w=Jc(w);var q=w.call?w.call(l,W):w[l];if(q===!1)return"nothing";if(q==="...")return"multi";if(q!=null&&K(q))return"handled";if(w.fallthrough){if(Object.prototype.toString.call(w.fallthrough)!="[object Array]")return iu(l,w.fallthrough,K,W);for(var be=0;be<w.fallthrough.length;be++){var Fe=iu(l,w.fallthrough[be],K,W);if(Fe)return Fe}}}function Ih(l){var w=typeof l=="string"?l:Gu[l.keyCode];return w=="Ctrl"||w=="Alt"||w=="Shift"||w=="Mod"}function Gd(l,w,K){var W=l;return w.altKey&&W!="Alt"&&(l="Alt-"+l),(L?w.metaKey:w.ctrlKey)&&W!="Ctrl"&&(l="Ctrl-"+l),(L?w.ctrlKey:w.metaKey)&&W!="Mod"&&(l="Cmd-"+l),!K&&w.shiftKey&&W!="Shift"&&(l="Shift-"+l),l}function dg(l,w){if(y&&l.keyCode==34&&l.char)return!1;var K=Gu[l.keyCode];return K==null||l.altGraphKey?!1:(l.keyCode==3&&l.code&&(K=l.code),Gd(K,l,w))}function Jc(l){return typeof l=="string"?xl[l]:l}function wl(l,w){for(var K=l.doc.sel.ranges,W=[],q=0;q<K.length;q++){for(var be=w(K[q]);W.length&&gn(be.from,ot(W).to)<=0;){var Fe=W.pop();if(gn(Fe.from,be.from)<0){be.from=Fe.from;break}}W.push(be)}ho(l,function(){for(var Ye=W.length-1;Ye>=0;Ye--)ru(l.doc,"",W[Ye].from,W[Ye].to,"+delete");La(l)})}function Wd(l,w,K){var W=_e(l.text,w+K,K);return W<0||W>l.text.length?null:W}function Ms(l,w,K){var W=Wd(l,w.ch,K);return W==null?null:new gt(w.line,W,K<0?"after":"before")}function af(l,w,K,W,q){if(l){w.doc.direction=="rtl"&&(q=-q);var be=Ot(K,w.doc.direction);if(be){var Fe=q<0?ot(be):be[0],Ye=q<0==(Fe.level==1),We=Ye?"after":"before",tt;if(Fe.level>0||w.doc.direction=="rtl"){var Nt=ra(w,K);tt=q<0?K.text.length-1:0;var at=Us(w,Nt,tt).top;tt=Be(function($t){return Us(w,Nt,$t).top==at},q<0==(Fe.level==1)?Fe.from:Fe.to-1,tt),We=="before"&&(tt=Wd(K,tt,1))}else tt=q<0?Fe.to:Fe.from;return new gt(W,tt,We)}}return new gt(W,q<0?K.text.length:0,q<0?"before":"after")}function jf(l,w,K,W){var q=Ot(w,l.doc.direction);if(!q)return Ms(w,K,W);K.ch>=w.text.length?(K.ch=w.text.length,K.sticky="before"):K.ch<=0&&(K.ch=0,K.sticky="after");var be=et(q,K.ch,K.sticky),Fe=q[be];if(l.doc.direction=="ltr"&&Fe.level%2==0&&(W>0?Fe.to>K.ch:Fe.from<K.ch))return Ms(w,K,W);var Ye=function(sr,kr){return Wd(w,sr instanceof gt?sr.ch:sr,kr)},We,tt=function(sr){return l.options.lineWrapping?(We=We||ra(l,w),ia(l,w,We,sr)):{begin:0,end:w.text.length}},Nt=tt(K.sticky=="before"?Ye(K,-1):K.ch);if(l.doc.direction=="rtl"||Fe.level==1){var at=Fe.level==1==W<0,$t=Ye(K,at?1:-1);if($t!=null&&(at?$t<=Fe.to&&$t<=Nt.end:$t>=Fe.from&&$t>=Nt.begin)){var Ut=at?"before":"after";return new gt(K.line,$t,Ut)}}var Nn=function(sr,kr,yr){for(var Hr=function(as,Qs){return Qs?new gt(K.line,Ye(as,1),"before"):new gt(K.line,as,"after")};sr>=0&&sr<q.length;sr+=kr){var Ci=q[sr],vr=kr>0==(Ci.level!=1),qi=vr?yr.begin:Ye(yr.end,-1);if(Ci.from<=qi&&qi<Ci.to||(qi=vr?Ci.from:Ye(Ci.to,-1),yr.begin<=qi&&qi<yr.end))return Hr(qi,vr)}},Ln=Nn(be+W,W,Nt);if(Ln)return Ln;var Yn=W>0?Nt.end:Ye(Nt.begin,-1);return Yn!=null&&!(W>0&&Yn==w.text.length)&&(Ln=Nn(W>0?0:q.length-1,W,tt(Yn)),Ln)?Ln:null}var Cc={selectAll:xn,singleSelection:function(l){return l.setSelection(l.getCursor("anchor"),l.getCursor("head"),Le)},killLine:function(l){return wl(l,function(w){if(w.empty()){var K=Vn(l.doc,w.head.line).text.length;return w.head.ch==K&&w.head.line<l.lastLine()?{from:w.head,to:gt(w.head.line+1,0)}:{from:w.head,to:gt(w.head.line,K)}}else return{from:w.from(),to:w.to()}})},deleteLine:function(l){return wl(l,function(w){return{from:gt(w.from().line,0),to:Ht(l.doc,gt(w.to().line+1,0))}})},delLineLeft:function(l){return wl(l,function(w){return{from:gt(w.from().line,0),to:w.from()}})},delWrappedLineLeft:function(l){return wl(l,function(w){var K=l.charCoords(w.head,"div").top+5,W=l.coordsChar({left:0,top:K},"div");return{from:W,to:w.from()}})},delWrappedLineRight:function(l){return wl(l,function(w){var K=l.charCoords(w.head,"div").top+5,W=l.coordsChar({left:l.display.lineDiv.offsetWidth+100,top:K},"div");return{from:w.from(),to:W}})},undo:function(l){return l.undo()},redo:function(l){return l.redo()},undoSelection:function(l){return l.undoSelection()},redoSelection:function(l){return l.redoSelection()},goDocStart:function(l){return l.extendSelection(gt(l.firstLine(),0))},goDocEnd:function(l){return l.extendSelection(gt(l.lastLine()))},goLineStart:function(l){return l.extendSelectionsBy(function(w){return Rh(l,w.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(l){return l.extendSelectionsBy(function(w){return Vd(l,w.head)},{origin:"+move",bias:1})},goLineEnd:function(l){return l.extendSelectionsBy(function(w){return Oh(l,w.head.line)},{origin:"+move",bias:-1})},goLineRight:function(l){return l.extendSelectionsBy(function(w){var K=l.cursorCoords(w.head,"div").top+5;return l.coordsChar({left:l.display.lineDiv.offsetWidth+100,top:K},"div")},De)},goLineLeft:function(l){return l.extendSelectionsBy(function(w){var K=l.cursorCoords(w.head,"div").top+5;return l.coordsChar({left:0,top:K},"div")},De)},goLineLeftSmart:function(l){return l.extendSelectionsBy(function(w){var K=l.cursorCoords(w.head,"div").top+5,W=l.coordsChar({left:0,top:K},"div");return W.ch<l.getLine(W.line).search(/\S/)?Vd(l,w.head):W},De)},goLineUp:function(l){return l.moveV(-1,"line")},goLineDown:function(l){return l.moveV(1,"line")},goPageUp:function(l){return l.moveV(-1,"page")},goPageDown:function(l){return l.moveV(1,"page")},goCharLeft:function(l){return l.moveH(-1,"char")},goCharRight:function(l){return l.moveH(1,"char")},goColumnLeft:function(l){return l.moveH(-1,"column")},goColumnRight:function(l){return l.moveH(1,"column")},goWordLeft:function(l){return l.moveH(-1,"word")},goGroupRight:function(l){return l.moveH(1,"group")},goGroupLeft:function(l){return l.moveH(-1,"group")},goWordRight:function(l){return l.moveH(1,"word")},delCharBefore:function(l){return l.deleteH(-1,"codepoint")},delCharAfter:function(l){return l.deleteH(1,"char")},delWordBefore:function(l){return l.deleteH(-1,"word")},delWordAfter:function(l){return l.deleteH(1,"word")},delGroupBefore:function(l){return l.deleteH(-1,"group")},delGroupAfter:function(l){return l.deleteH(1,"group")},indentAuto:function(l){return l.indentSelection("smart")},indentMore:function(l){return l.indentSelection("add")},indentLess:function(l){return l.indentSelection("subtract")},insertTab:function(l){return l.replaceSelection(" ")},insertSoftTab:function(l){for(var w=[],K=l.listSelections(),W=l.options.tabSize,q=0;q<K.length;q++){var be=K[q].from(),Fe=le(l.getLine(be.line),be.ch,W);w.push(it(W-Fe%W))}l.replaceSelections(w)},defaultTab:function(l){l.somethingSelected()?l.indentSelection("add"):l.execCommand("insertTab")},transposeChars:function(l){return ho(l,function(){for(var w=l.listSelections(),K=[],W=0;W<w.length;W++)if(w[W].empty()){var q=w[W].head,be=Vn(l.doc,q.line).text;if(be){if(q.ch==be.length&&(q=new gt(q.line,q.ch-1)),q.ch>0)q=new gt(q.line,q.ch+1),l.replaceRange(be.charAt(q.ch-1)+be.charAt(q.ch-2),gt(q.line,q.ch-2),q,"+transpose");else if(q.line>l.doc.first){var Fe=Vn(l.doc,q.line-1).text;Fe&&(q=new gt(q.line,1),l.replaceRange(be.charAt(0)+l.doc.lineSeparator()+Fe.charAt(Fe.length-1),gt(q.line-1,Fe.length-1),q,"+transpose"))}}K.push(new Wr(q,q))}l.setSelections(K)})},newlineAndIndent:function(l){return ho(l,function(){for(var w=l.listSelections(),K=w.length-1;K>=0;K--)l.replaceRange(l.doc.lineSeparator(),w[K].anchor,w[K].head,"+input");w=l.listSelections();for(var W=0;W<w.length;W++)l.indentLine(w[W].from().line,null,!0);La(l)})},openLine:function(l){return l.replaceSelection(`
`,"start")},toggleOverwrite:function(l){return l.toggleOverwrite()}};function Rh(l,w){var K=Vn(l.doc,w),W=yn(K);return W!=K&&(w=ft(W)),af(!0,l,W,w,1)}function Oh(l,w){var K=Vn(l.doc,w),W=Sn(K);return W!=K&&(w=ft(W)),af(!0,l,K,w,-1)}function Vd(l,w){var K=Rh(l,w.line),W=Vn(l.doc,K.line),q=Ot(W,l.doc.direction);if(!q||q[0].level==0){var be=Math.max(K.ch,W.text.search(/\S/)),Fe=w.line==K.line&&w.ch<=be&&w.ch;return gt(K.line,Fe?0:be,K.sticky)}return K}function Lh(l,w,K){if(typeof w=="string"&&(w=Cc[w],!w))return!1;l.display.input.ensurePolled();var W=l.display.shift,q=!1;try{l.isReadOnly()&&(l.state.suppressEdits=!0),K&&(l.display.shift=!1),q=w(l)!=Oe}finally{l.display.shift=W,l.state.suppressEdits=!1}return q}function Kd(l,w,K){for(var W=0;W<l.state.keyMaps.length;W++){var q=iu(w,l.state.keyMaps[W],K,l);if(q)return q}return l.options.extraKeys&&iu(w,l.options.extraKeys,K,l)||iu(w,l.options.keyMap,K,l)}var Wu=new xe;function Qc(l,w,K,W){var q=l.state.keySeq;if(q){if(Ih(w))return"handled";if(/\'$/.test(w)?l.state.keySeq=null:Wu.set(50,function(){l.state.keySeq==q&&(l.state.keySeq=null,l.display.input.reset())}),Uf(l,q+" "+w,K,W))return!0}return Uf(l,w,K,W)}function Uf(l,w,K,W){var q=Kd(l,w,W);return q=="multi"&&(l.state.keySeq=w),q=="handled"&&ar(l,"keyHandled",l,w,K),(q=="handled"||q=="multi")&&(Zt(K),uo(l)),!!q}function Hf(l,w){var K=dg(w,!0);return K?w.shiftKey&&!l.state.keySeq?Qc(l,"Shift-"+K,w,function(W){return Lh(l,W,!0)})||Qc(l,K,w,function(W){if(typeof W=="string"?/^go[A-Z]/.test(W):W.motion)return Lh(l,W)}):Qc(l,K,w,function(W){return Lh(l,W)}):!1}function zf(l,w,K){return Qc(l,"'"+K+"'",w,function(W){return Lh(l,W,!0)})}var qc=null;function Yd(l){var w=this;if(!(l.target&&l.target!=w.display.input.getField())&&(w.curOp.focus=oe(),!Ct(w,l))){A&&u<11&&l.keyCode==27&&(l.returnValue=!1);var K=l.keyCode;w.display.shift=K==16||l.shiftKey;var W=Hf(w,l);y&&(qc=W?K:null,!W&&K==88&&!jn&&(I?l.metaKey:l.ctrlKey)&&w.replaceSelection("",null,"cut")),B&&!I&&!W&&K==46&&l.shiftKey&&!l.ctrlKey&&document.execCommand&&document.execCommand("cut"),K==18&&!/\bCodeMirror-crosshair\b/.test(w.display.lineDiv.className)&&$d(w)}}function $d(l){var w=l.display.lineDiv;ue(w,"CodeMirror-crosshair");function K(W){(W.keyCode==18||!W.altKey)&&(V(w,"CodeMirror-crosshair"),Tt(document,"keyup",K),Tt(document,"mouseover",K))}nt(document,"keyup",K),nt(document,"mouseover",K)}function Xd(l){l.keyCode==16&&(this.doc.sel.shift=!1),Ct(this,l)}function Iu(l){var w=this;if(!(l.target&&l.target!=w.display.input.getField())&&!(Co(w.display,l)||Ct(w,l)||l.ctrlKey&&!l.altKey||I&&l.metaKey)){var K=l.keyCode,W=l.charCode;if(y&&K==qc){qc=null,Zt(l);return}if(!(y&&(!l.which||l.which<10)&&Hf(w,l))){var q=String.fromCharCode(W==null?K:W);q!="\b"&&(zf(w,l,q)||w.display.input.onKeyPress(l))}}}var pg=400,Zd=function(l,w,K){this.time=l,this.pos=w,this.button=K};Zd.prototype.compare=function(l,w,K){return this.time+pg>l&&gn(w,this.pos)==0&&K==this.button};var Mh,eh;function Jd(l,w){var K=+new Date;return eh&&eh.compare(K,l,w)?(Mh=eh=null,"triple"):Mh&&Mh.compare(K,l,w)?(eh=new Zd(K,l,w),Mh=null,"double"):(Mh=new Zd(K,l,w),eh=null,"single")}function Ru(l){var w=this,K=w.display;if(!(Ct(w,l)||K.activeTouch&&K.input.supportsTouch())){if(K.input.ensurePolled(),K.shift=l.shiftKey,Co(K,l)){p||(K.scroller.draggable=!1,setTimeout(function(){return K.scroller.draggable=!0},100));return}if(!Vf(w,l)){var W=ps(w,l),q=Qn(l),be=W?Jd(W,q):"single";window.focus(),q==1&&w.state.selectingText&&w.state.selectingText(l),!(W&&Qd(w,q,W,be,l))&&(q==1?W?gg(w,W,be,l):nr(l)==K.scroller&&Zt(l):q==2?(W&&nu(w.doc,W),setTimeout(function(){return K.input.focus()},20)):q==3&&(H?w.display.input.onContextMenu(l):_o(w)))}}}function Qd(l,w,K,W,q){var be="Click";return W=="double"?be="Double"+be:W=="triple"&&(be="Triple"+be),be=(w==1?"Left":w==2?"Middle":"Right")+be,Qc(l,Gd(be,q),q,function(Fe){if(typeof Fe=="string"&&(Fe=Cc[Fe]),!Fe)return!1;var Ye=!1;try{l.isReadOnly()&&(l.state.suppressEdits=!0),Ye=Fe(l,K)!=Oe}finally{l.state.suppressEdits=!1}return Ye})}function Gf(l,w,K){var W=l.getOption("configureMouse"),q=W?W(l,w,K):{};if(q.unit==null){var be=R?K.shiftKey&&K.metaKey:K.altKey;q.unit=be?"rectangle":w=="single"?"char":w=="double"?"word":"line"}return(q.extend==null||l.doc.extend)&&(q.extend=l.doc.extend||K.shiftKey),q.addNew==null&&(q.addNew=I?K.metaKey:K.ctrlKey),q.moveOnDrag==null&&(q.moveOnDrag=!(I?K.altKey:K.ctrlKey)),q}function gg(l,w,K,W){A?setTimeout(ve(po,l),0):l.curOp.focus=oe();var q=Gf(l,K,W),be=l.doc.sel,Fe;l.options.dragDrop&&jt&&!l.isReadOnly()&&K=="single"&&(Fe=be.contains(w))>-1&&(gn((Fe=be.ranges[Fe]).from(),w)<0||w.xRel>0)&&(gn(Fe.to(),w)>0||w.xRel<0)?qd(l,W,w,q):dv(l,W,w,q)}function qd(l,w,K,W){var q=l.display,be=!1,Fe=xs(l,function(tt){p&&(q.scroller.draggable=!1),l.state.draggingText=!1,Tt(q.wrapper.ownerDocument,"mouseup",Fe),Tt(q.wrapper.ownerDocument,"mousemove",Ye),Tt(q.scroller,"dragstart",We),Tt(q.scroller,"drop",Fe),be||(Zt(tt),W.addNew||nu(l.doc,K,null,null,W.extend),p&&!v||A&&u==9?setTimeout(function(){q.wrapper.ownerDocument.body.focus({preventScroll:!0}),q.input.focus()},20):q.input.focus())}),Ye=function(tt){be=be||Math.abs(w.clientX-tt.clientX)+Math.abs(w.clientY-tt.clientY)>=10},We=function(){return be=!0};p&&(q.scroller.draggable=!0),l.state.draggingText=Fe,Fe.copy=!W.moveOnDrag,q.scroller.dragDrop&&q.scroller.dragDrop(),nt(q.wrapper.ownerDocument,"mouseup",Fe),nt(q.wrapper.ownerDocument,"mousemove",Ye),nt(q.scroller,"dragstart",We),nt(q.scroller,"drop",Fe),_o(l),setTimeout(function(){return q.input.focus()},20)}function ep(l,w,K){if(K=="char")return new Wr(w,w);if(K=="word")return l.findWordAt(w);if(K=="line")return new Wr(gt(w.line,0),Ht(l.doc,gt(w.line+1,0)));var W=K(l,w);return new Wr(W.from,W.to)}function dv(l,w,K,W){var q=l.display,be=l.doc;Zt(w);var Fe,Ye,We=be.sel,tt=We.ranges;if(W.addNew&&!W.extend?(Ye=be.sel.contains(K),Ye>-1?Fe=tt[Ye]:Fe=new Wr(K,K)):(Fe=be.sel.primary(),Ye=be.sel.primIndex),W.unit=="rectangle")W.addNew||(Fe=new Wr(K,K)),K=ps(l,w,!0,!0),Ye=-1;else{var Nt=ep(l,K,W.unit);W.extend?Fe=Pl(Fe,Nt.anchor,Nt.head,W.extend):Fe=Nt}W.addNew?Ye==-1?(Ye=tt.length,F(be,ti(l,tt.concat([Fe]),Ye),{scroll:!1,origin:"*mouse"})):tt.length>1&&tt[Ye].empty()&&W.unit=="char"&&!W.extend?(F(be,ti(l,tt.slice(0,Ye).concat(tt.slice(Ye+1)),0),{scroll:!1,origin:"*mouse"}),We=be.sel):ll(be,Ye,Fe,Pe):(Ye=0,F(be,new mr([Fe],0),Pe),We=be.sel);var at=K;function $t(yr){if(gn(at,yr)!=0)if(at=yr,W.unit=="rectangle"){for(var Hr=[],Ci=l.options.tabSize,vr=le(Vn(be,K.line).text,K.ch,Ci),qi=le(Vn(be,yr.line).text,yr.ch,Ci),as=Math.min(vr,qi),Qs=Math.max(vr,qi),ys=Math.min(K.line,yr.line),hl=Math.min(l.lastLine(),Math.max(K.line,yr.line));ys<=hl;ys++){var Fa=Vn(be,ys).text,Ws=Ke(Fa,as,Ci);as==Qs?Hr.push(new Wr(gt(ys,Ws),gt(ys,Ws))):Fa.length>Ws&&Hr.push(new Wr(gt(ys,Ws),gt(ys,Ke(Fa,Qs,Ci))))}Hr.length||Hr.push(new Wr(K,K)),F(be,ti(l,We.ranges.slice(0,Ye).concat(Hr),Ye),{origin:"*mouse",scroll:!1}),l.scrollIntoView(yr)}else{var El=Fe,_a=ep(l,yr,W.unit),Vs=El.anchor,bo;gn(_a.anchor,Vs)>0?(bo=_a.head,Vs=Bn(El.from(),_a.anchor)):(bo=_a.anchor,Vs=we(El.to(),_a.head));var ws=We.ranges.slice(0);ws[Ye]=mg(l,new Wr(Ht(be,Vs),bo)),F(be,ti(l,ws,Ye),Pe)}}var Ut=q.wrapper.getBoundingClientRect(),Nn=0;function Ln(yr){var Hr=++Nn,Ci=ps(l,yr,!0,W.unit=="rectangle");if(Ci)if(gn(Ci,at)!=0){l.curOp.focus=oe(),$t(Ci);var vr=Fi(q,be);(Ci.line>=vr.to||Ci.line<vr.from)&&setTimeout(xs(l,function(){Nn==Hr&&Ln(yr)}),150)}else{var qi=yr.clientY<Ut.top?-20:yr.clientY>Ut.bottom?20:0;qi&&setTimeout(xs(l,function(){Nn==Hr&&(q.scroller.scrollTop+=qi,Ln(yr))}),50)}}function Yn(yr){l.state.selectingText=!1,Nn=1/0,yr&&(Zt(yr),q.input.focus()),Tt(q.wrapper.ownerDocument,"mousemove",sr),Tt(q.wrapper.ownerDocument,"mouseup",kr),be.history.lastSelOrigin=null}var sr=xs(l,function(yr){yr.buttons===0||!Qn(yr)?Yn(yr):Ln(yr)}),kr=xs(l,Yn);l.state.selectingText=kr,nt(q.wrapper.ownerDocument,"mousemove",sr),nt(q.wrapper.ownerDocument,"mouseup",kr)}function mg(l,w){var K=w.anchor,W=w.head,q=Vn(l.doc,K.line);if(gn(K,W)==0&&K.sticky==W.sticky)return w;var be=Ot(q);if(!be)return w;var Fe=et(be,K.ch,K.sticky),Ye=be[Fe];if(Ye.from!=K.ch&&Ye.to!=K.ch)return w;var We=Fe+(Ye.from==K.ch==(Ye.level!=1)?0:1);if(We==0||We==be.length)return w;var tt;if(W.line!=K.line)tt=(W.line-K.line)*(l.doc.direction=="ltr"?1:-1)>0;else{var Nt=et(be,W.ch,W.sticky),at=Nt-Fe||(W.ch-K.ch)*(Ye.level==1?-1:1);Nt==We-1||Nt==We?tt=at<0:tt=at>0}var $t=be[We+(tt?-1:0)],Ut=tt==($t.level==1),Nn=Ut?$t.from:$t.to,Ln=Ut?"after":"before";return K.ch==Nn&&K.sticky==Ln?w:new Wr(new gt(K.line,Nn,Ln),W)}function Wf(l,w,K,W){var q,be;if(w.touches)q=w.touches[0].clientX,be=w.touches[0].clientY;else try{q=w.clientX,be=w.clientY}catch($t){return!1}if(q>=Math.floor(l.display.gutters.getBoundingClientRect().right))return!1;W&&Zt(w);var Fe=l.display,Ye=Fe.lineDiv.getBoundingClientRect();if(be>Ye.bottom||!Rt(l,K))return wt(w);be-=Ye.top-Fe.viewOffset;for(var We=0;We<l.display.gutterSpecs.length;++We){var tt=Fe.gutters.childNodes[We];if(tt&&tt.getBoundingClientRect().right>=q){var Nt=en(l.doc,be),at=l.display.gutterSpecs[We];return vt(l,K,l,Nt,at.className,w),wt(w)}}}function Vf(l,w){return Wf(l,w,"gutterClick",!0)}function Kf(l,w){Co(l.display,w)||vg(l,w)||Ct(l,w,"contextmenu")||H||l.display.input.onContextMenu(w)}function vg(l,w){return Rt(l,"gutterContextMenu")?Wf(l,w,"gutterContextMenu",!1):!1}function Yf(l){l.display.wrapper.className=l.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+l.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ll(l)}var Tc={toString:function(){return"CodeMirror.Init"}},tp={},lf={};function yg(l){var w=l.optionHandlers;function K(W,q,be,Fe){l.defaults[W]=q,be&&(w[W]=Fe?function(Ye,We,tt){tt!=Tc&&be(Ye,We,tt)}:be)}l.defineOption=K,l.Init=Tc,K("value","",function(W,q){return W.setValue(q)},!0),K("mode",null,function(W,q){W.doc.modeOption=q,Dr(W)},!0),K("indentUnit",2,Dr,!0),K("indentWithTabs",!1),K("smartIndent",!0),K("tabSize",4,function(W){aa(W),Ll(W),Yi(W)},!0),K("lineSeparator",null,function(W,q){if(W.doc.lineSep=q,!!q){var be=[],Fe=W.doc.first;W.doc.iter(function(We){for(var tt=0;;){var Nt=We.text.indexOf(q,tt);if(Nt==-1)break;tt=Nt+q.length,be.push(gt(Fe,Nt))}Fe++});for(var Ye=be.length-1;Ye>=0;Ye--)ru(W.doc,q,be[Ye],gt(be[Ye].line,be[Ye].ch+q.length))}}),K("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(W,q,be){W.state.specialChars=new RegExp(q.source+(q.test(" ")?"":"| "),"g"),be!=Tc&&W.refresh()}),K("specialCharPlaceholder",ei,function(W){return W.refresh()},!0),K("electricChars",!0),K("inputStyle",T?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),K("spellcheck",!1,function(W,q){return W.getInputField().spellcheck=q},!0),K("autocorrect",!1,function(W,q){return W.getInputField().autocorrect=q},!0),K("autocapitalize",!1,function(W,q){return W.getInputField().autocapitalize=q},!0),K("rtlMoveVisually",!N),K("wholeLineUpdateBefore",!0),K("theme","default",function(W){Yf(W),Lt(W)},!0),K("keyMap","default",function(W,q,be){var Fe=Jc(q),Ye=be!=Tc&&Jc(be);Ye&&Ye.detach&&Ye.detach(W,Fe),Fe.attach&&Fe.attach(W,Ye||null)}),K("extraKeys",null),K("configureMouse",null),K("lineWrapping",!1,bg,!0),K("gutters",[],function(W,q){W.display.gutterSpecs=zt(q,W.options.lineNumbers),Lt(W)},!0),K("fixedGutter",!0,function(W,q){W.display.gutters.style.left=q?Jl(W.display)+"px":"0",W.refresh()},!0),K("coverGutterNextToScrollbar",!1,function(W){return ms(W)},!0),K("scrollbarStyle","native",function(W){wa(W),ms(W),W.display.scrollbars.setScrollTop(W.doc.scrollTop),W.display.scrollbars.setScrollLeft(W.doc.scrollLeft)},!0),K("lineNumbers",!1,function(W,q){W.display.gutterSpecs=zt(W.options.gutters,q),Lt(W)},!0),K("firstLineNumber",1,Lt,!0),K("lineNumberFormatter",function(W){return W},Lt,!0),K("showCursorWhenSelecting",!1,is,!0),K("resetSelectionOnContextMenu",!0),K("lineWiseCopyCut",!0),K("pasteLinesPerSelection",!0),K("selectionsMayTouch",!1),K("readOnly",!1,function(W,q){q=="nocursor"&&(Ql(W),W.display.input.blur()),W.display.input.readOnlyChanged(q)}),K("screenReaderLabel",null,function(W,q){q=q===""?null:q,W.display.input.screenReaderLabelChanged(q)}),K("disableInput",!1,function(W,q){q||W.display.input.reset()},!0),K("dragDrop",!0,$f),K("allowDropFileTypes",null),K("cursorBlinkRate",530),K("cursorScrollMargin",0),K("cursorHeight",1,is,!0),K("singleCursorHeightPerLine",!0,is,!0),K("workTime",100),K("workDelay",100),K("flattenSpans",!0,aa,!0),K("addModeClass",!1,aa,!0),K("pollInterval",100),K("undoDepth",200,function(W,q){return W.doc.history.undoDepth=q}),K("historyEventDelay",1250),K("viewportMargin",10,function(W){return W.refresh()},!0),K("maxHighlightLength",1e4,aa,!0),K("moveInputWithCursor",!0,function(W,q){q||W.display.input.resetPosition()}),K("tabindex",null,function(W,q){return W.display.input.getField().tabIndex=q||""}),K("autofocus",null),K("direction","ltr",function(W,q){return W.doc.setDirection(q)},!0),K("phrases",null)}function $f(l,w,K){var W=K&&K!=Tc;if(!w!=!W){var q=l.display.dragFunctions,be=w?nt:Tt;be(l.display.scroller,"dragstart",q.start),be(l.display.scroller,"dragenter",q.enter),be(l.display.scroller,"dragover",q.over),be(l.display.scroller,"dragleave",q.leave),be(l.display.scroller,"drop",q.drop)}}function bg(l){l.options.lineWrapping?(ue(l.display.wrapper,"CodeMirror-wrap"),l.display.sizer.style.minWidth="",l.display.sizerWidth=null):(V(l.display.wrapper,"CodeMirror-wrap"),Kr(l)),Mr(l),Yi(l),Ll(l),setTimeout(function(){return ms(l)},100)}function vo(l,w){var K=this;if(!(this instanceof vo))return new vo(l,w);this.options=w=w?Re(w):{},Re(tp,w,!1);var W=w.value;typeof W=="string"?W=new Ta(W,w.mode,null,w.lineSeparator,w.direction):w.mode&&(W.modeOption=w.mode),this.doc=W;var q=new vo.inputStyles[w.inputStyle](this),be=this.display=new ln(l,W,q,w);be.wrapper.CodeMirror=this,Yf(this),w.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wa(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 xe,keySeq:null,specialChars:null},w.autofocus&&!T&&be.input.focus(),A&&u<11&&setTimeout(function(){return K.display.input.reset(!0)},20),Dh(this),Bl(),oa(this),this.curOp.forceUpdate=!0,so(this,W),w.autofocus&&!T||this.hasFocus()?setTimeout(function(){K.hasFocus()&&!K.state.focused&&Ai(K)},20):Ql(this);for(var Fe in lf)lf.hasOwnProperty(Fe)&&lf[Fe](this,w[Fe],Tc);mt(this),w.finishInit&&w.finishInit(this);for(var Ye=0;Ye<th.length;++Ye)th[Ye](this);Ka(this),p&&w.lineWrapping&&getComputedStyle(be.lineDiv).textRendering=="optimizelegibility"&&(be.lineDiv.style.textRendering="auto")}vo.defaults=tp,vo.optionHandlers=lf;function Dh(l){var w=l.display;nt(w.scroller,"mousedown",xs(l,Ru)),A&&u<11?nt(w.scroller,"dblclick",xs(l,function(We){if(!Ct(l,We)){var tt=ps(l,We);if(!(!tt||Vf(l,We)||Co(l.display,We))){Zt(We);var Nt=l.findWordAt(tt);nu(l.doc,Nt.anchor,Nt.head)}}})):nt(w.scroller,"dblclick",function(We){return Ct(l,We)||Zt(We)}),nt(w.scroller,"contextmenu",function(We){return Kf(l,We)}),nt(w.input.getField(),"contextmenu",function(We){w.scroller.contains(We.target)||Kf(l,We)});var K,W={end:0};function q(){w.activeTouch&&(K=setTimeout(function(){return w.activeTouch=null},1e3),W=w.activeTouch,W.end=+new Date)}function be(We){if(We.touches.length!=1)return!1;var tt=We.touches[0];return tt.radiusX<=1&&tt.radiusY<=1}function Fe(We,tt){if(tt.left==null)return!0;var Nt=tt.left-We.left,at=tt.top-We.top;return Nt*Nt+at*at>20*20}nt(w.scroller,"touchstart",function(We){if(!Ct(l,We)&&!be(We)&&!Vf(l,We)){w.input.ensurePolled(),clearTimeout(K);var tt=+new Date;w.activeTouch={start:tt,moved:!1,prev:tt-W.end<=300?W:null},We.touches.length==1&&(w.activeTouch.left=We.touches[0].pageX,w.activeTouch.top=We.touches[0].pageY)}}),nt(w.scroller,"touchmove",function(){w.activeTouch&&(w.activeTouch.moved=!0)}),nt(w.scroller,"touchend",function(We){var tt=w.activeTouch;if(tt&&!Co(w,We)&&tt.left!=null&&!tt.moved&&new Date-tt.start<300){var Nt=l.coordsChar(w.activeTouch,"page"),at;!tt.prev||Fe(tt,tt.prev)?at=new Wr(Nt,Nt):!tt.prev.prev||Fe(tt,tt.prev.prev)?at=l.findWordAt(Nt):at=new Wr(gt(Nt.line,0),Ht(l.doc,gt(Nt.line+1,0))),l.setSelection(at.anchor,at.head),l.focus(),Zt(We)}q()}),nt(w.scroller,"touchcancel",q),nt(w.scroller,"scroll",function(){w.scroller.clientHeight&&(Da(l,w.scroller.scrollTop),Va(l,w.scroller.scrollLeft,!0),vt(l,"scroll",l))}),nt(w.scroller,"mousewheel",function(We){return Ni(l,We)}),nt(w.scroller,"DOMMouseScroll",function(We){return Ni(l,We)}),nt(w.wrapper,"scroll",function(){return w.wrapper.scrollTop=w.wrapper.scrollLeft=0}),w.dragFunctions={enter:function(We){Ct(l,We)||Dn(We)},over:function(We){Ct(l,We)||(cg(l,We),Dn(We))},start:function(We){return ug(l,We)},drop:xs(l,Bd),leave:function(We){Ct(l,We)||hg(l)}};var Ye=w.input.getField();nt(Ye,"keyup",function(We){return Xd.call(l,We)}),nt(Ye,"keydown",xs(l,Yd)),nt(Ye,"keypress",xs(l,Iu)),nt(Ye,"focus",function(We){return Ai(l,We)}),nt(Ye,"blur",function(We){return Ql(l,We)})}var th=[];vo.defineInitHook=function(l){return th.push(l)};function Js(l,w,K,W){var q=l.doc,be;K==null&&(K="add"),K=="smart"&&(q.mode.indent?be=vi(l,w).state:K="prev");var Fe=l.options.tabSize,Ye=Vn(q,w),We=le(Ye.text,null,Fe);Ye.stateAfter&&(Ye.stateAfter=null);var tt=Ye.text.match(/^\s*/)[0],Nt;if(!W&&!/\S/.test(Ye.text))Nt=0,K="not";else if(K=="smart"&&(Nt=q.mode.indent(be,Ye.text.slice(tt.length),Ye.text),Nt==Oe||Nt>150)){if(!W)return;K="prev"}K=="prev"?w>q.first?Nt=le(Vn(q,w-1).text,null,Fe):Nt=0:K=="add"?Nt=We+l.options.indentUnit:K=="subtract"?Nt=We-l.options.indentUnit:typeof K=="number"&&(Nt=We+K),Nt=Math.max(0,Nt);var at="",$t=0;if(l.options.indentWithTabs)for(var Ut=Math.floor(Nt/Fe);Ut;--Ut)$t+=Fe,at+=" ";if($t<Nt&&(at+=it(Nt-$t)),at!=tt)return ru(q,at,gt(w,0),gt(w,tt.length),"+input"),Ye.stateAfter=null,!0;for(var Nn=0;Nn<q.sel.ranges.length;Nn++){var Ln=q.sel.ranges[Nn];if(Ln.head.line==w&&Ln.head.ch<tt.length){var Yn=gt(w,tt.length);ll(q,Nn,new Wr(Yn,Yn));break}}}var cl=null;function nh(l){cl=l}function uf(l,w,K,W,q){var be=l.doc;l.display.shift=!1,W||(W=be.sel);var Fe=+new Date-200,Ye=q=="paste"||l.state.pasteIncoming>Fe,We=Er(w),tt=null;if(Ye&&W.ranges.length>1)if(cl&&cl.text.join(`
`)==w){if(W.ranges.length%cl.text.length==0){tt=[];for(var Nt=0;Nt<cl.text.length;Nt++)tt.push(be.splitLines(cl.text[Nt]))}}else We.length==W.ranges.length&&l.options.pasteLinesPerSelection&&(tt=Ge(We,function(sr){return[sr]}));for(var at=l.curOp.updateInput,$t=W.ranges.length-1;$t>=0;$t--){var Ut=W.ranges[$t],Nn=Ut.from(),Ln=Ut.to();Ut.empty()&&(K&&K>0?Nn=gt(Nn.line,Nn.ch-K):l.state.overwrite&&!Ye?Ln=gt(Ln.line,Math.min(Vn(be,Ln.line).text.length,Ln.ch+ot(We).length)):Ye&&cl&&cl.lineWise&&cl.text.join(`
`)==We.join(`
`)&&(Nn=Ln=gt(Nn.line,0)));var Yn={from:Nn,to:Ln,text:tt?tt[$t%tt.length]:We,origin:q||(Ye?"paste":l.state.cutIncoming>Fe?"cut":"+input")};Ii(l.doc,Yn),ar(l,"inputRead",l,Yn)}w&&!Ye&&rp(l,w),La(l),l.curOp.updateInput<2&&(l.curOp.updateInput=at),l.curOp.typing=!0,l.state.pasteIncoming=l.state.cutIncoming=-1}function np(l,w){var K=l.clipboardData&&l.clipboardData.getData("Text");if(K)return l.preventDefault(),!w.isReadOnly()&&!w.options.disableInput&&ho(w,function(){return uf(w,K,0,null,"paste")}),!0}function rp(l,w){if(!(!l.options.electricChars||!l.options.smartIndent))for(var K=l.doc.sel,W=K.ranges.length-1;W>=0;W--){var q=K.ranges[W];if(!(q.head.ch>100||W&&K.ranges[W-1].head.line==q.head.line)){var be=l.getModeAt(q.head),Fe=!1;if(be.electricChars){for(var Ye=0;Ye<be.electricChars.length;Ye++)if(w.indexOf(be.electricChars.charAt(Ye))>-1){Fe=Js(l,q.head.line,"smart");break}}else be.electricInput&&be.electricInput.test(Vn(l.doc,q.head.line).text.slice(0,q.head.ch))&&(Fe=Js(l,q.head.line,"smart"));Fe&&ar(l,"electricInput",l,q.head.line)}}}function ip(l){for(var w=[],K=[],W=0;W<l.doc.sel.ranges.length;W++){var q=l.doc.sel.ranges[W].head.line,be={anchor:gt(q,0),head:gt(q+1,0)};K.push(be),w.push(l.getRange(be.anchor,be.head))}return{text:w,ranges:K}}function op(l,w,K,W){l.setAttribute("autocorrect",K?"":"off"),l.setAttribute("autocapitalize",W?"":"off"),l.setAttribute("spellcheck",!!w)}function sp(){var l=G("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),w=G("div",[l],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return p?l.style.width="1000px":l.setAttribute("wrap","off"),m&&(l.style.border="1px solid black"),op(l),w}function _c(l){var w=l.optionHandlers,K=l.helpers={};l.prototype={constructor:l,focus:function(){window.focus(),this.display.input.focus()},setOption:function(W,q){var be=this.options,Fe=be[W];be[W]==q&&W!="mode"||(be[W]=q,w.hasOwnProperty(W)&&xs(this,w[W])(this,q,Fe),vt(this,"optionChange",this,W))},getOption:function(W){return this.options[W]},getDoc:function(){return this.doc},addKeyMap:function(W,q){this.state.keyMaps[q?"push":"unshift"](Jc(W))},removeKeyMap:function(W){for(var q=this.state.keyMaps,be=0;be<q.length;++be)if(q[be]==W||q[be].name==W)return q.splice(be,1),!0},addOverlay:Os(function(W,q){var be=W.token?W:l.getMode(this.options,W);if(be.startState)throw new Error("Overlays may not be stateful.");Ee(this.state.overlays,{mode:be,modeSpec:W,opaque:q&&q.opaque,priority:q&&q.priority||0},function(Fe){return Fe.priority}),this.state.modeGen++,Yi(this)}),removeOverlay:Os(function(W){for(var q=this.state.overlays,be=0;be<q.length;++be){var Fe=q[be].modeSpec;if(Fe==W||typeof W=="string"&&Fe.name==W){q.splice(be,1),this.state.modeGen++,Yi(this);return}}}),indentLine:Os(function(W,q,be){typeof q!="string"&&typeof q!="number"&&(q==null?q=this.options.smartIndent?"smart":"prev":q=q?"add":"subtract"),An(this.doc,W)&&Js(this,W,q,be)}),indentSelection:Os(function(W){for(var q=this.doc.sel.ranges,be=-1,Fe=0;Fe<q.length;Fe++){var Ye=q[Fe];if(Ye.empty())Ye.head.line>be&&(Js(this,Ye.head.line,W,!0),be=Ye.head.line,Fe==this.doc.sel.primIndex&&La(this));else{var We=Ye.from(),tt=Ye.to(),Nt=Math.max(be,We.line);be=Math.min(this.lastLine(),tt.line-(tt.ch?0:1))+1;for(var at=Nt;at<be;++at)Js(this,at,W);var $t=this.doc.sel.ranges;We.ch==0&&q.length==$t.length&&$t[Fe].from().ch>0&&ll(this.doc,Fe,new Wr(We,$t[Fe].to()),Le)}}}),getTokenAt:function(W,q){return Oi(this,W,q)},getLineTokens:function(W,q){return Oi(this,gt(W),q,!0)},getTokenTypeAt:function(W){W=Ht(this.doc,W);var q=gr(this,Vn(this.doc,W.line)),be=0,Fe=(q.length-1)/2,Ye=W.ch,We;if(Ye==0)We=q[2];else for(;;){var tt=be+Fe>>1;if((tt?q[tt*2-1]:0)>=Ye)Fe=tt;else if(q[tt*2+1]<Ye)be=tt+1;else{We=q[tt*2+2];break}}var Nt=We?We.indexOf("overlay "):-1;return Nt<0?We:Nt==0?null:We.slice(0,Nt-1)},getModeAt:function(W){var q=this.doc.mode;return q.innerMode?l.innerMode(q,this.getTokenAt(W).state).mode:q},getHelper:function(W,q){return this.getHelpers(W,q)[0]},getHelpers:function(W,q){var be=[];if(!K.hasOwnProperty(q))return be;var Fe=K[q],Ye=this.getModeAt(W);if(typeof Ye[q]=="string")Fe[Ye[q]]&&be.push(Fe[Ye[q]]);else if(Ye[q])for(var We=0;We<Ye[q].length;We++){var tt=Fe[Ye[q][We]];tt&&be.push(tt)}else Ye.helperType&&Fe[Ye.helperType]?be.push(Fe[Ye.helperType]):Fe[Ye.name]&&be.push(Fe[Ye.name]);for(var Nt=0;Nt<Fe._global.length;Nt++){var at=Fe._global[Nt];at.pred(Ye,this)&&pe(be,at.val)==-1&&be.push(at.val)}return be},getStateAfter:function(W,q){var be=this.doc;return W=wn(be,W==null?be.first+be.size-1:W),vi(this,W+1,q).state},cursorCoords:function(W,q){var be,Fe=this.doc.sel.primary();return W==null?be=Fe.head:typeof W=="object"?be=Ht(this.doc,W):be=W?Fe.from():Fe.to(),_i(this,be,q||"page")},charCoords:function(W,q){return ci(this,Ht(this.doc,W),q||"page")},coordsChar:function(W,q){return W=no(this,W,q||"page"),jo(this,W.left,W.top)},lineAtHeight:function(W,q){return W=no(this,{top:W,left:0},q||"page").top,en(this.doc,W+this.display.viewOffset)},heightAtLine:function(W,q,be){var Fe=!1,Ye;if(typeof W=="number"){var We=this.doc.first+this.doc.size-1;W<this.doc.first?W=this.doc.first:W>We&&(W=We,Fe=!0),Ye=Vn(this.doc,W)}else Ye=W;return qo(this,Ye,{top:0,left:0},q||"page",be||Fe).top+(Fe?this.doc.height-Or(Ye):0)},defaultTextHeight:function(){return Ys(this.display)},defaultCharWidth:function(){return vl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(W,q,be,Fe,Ye){var We=this.display;W=_i(this,Ht(this.doc,W));var tt=W.bottom,Nt=W.left;if(q.style.position="absolute",q.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(q),We.sizer.appendChild(q),Fe=="over")tt=W.top;else if(Fe=="above"||Fe=="near"){var at=Math.max(We.wrapper.clientHeight,this.doc.height),$t=Math.max(We.sizer.clientWidth,We.lineSpace.clientWidth);(Fe=="above"||W.bottom+q.offsetHeight>at)&&W.top>q.offsetHeight?tt=W.top-q.offsetHeight:W.bottom+q.offsetHeight<=at&&(tt=W.bottom),Nt+q.offsetWidth>$t&&(Nt=$t-q.offsetWidth)}q.style.top=tt+"px",q.style.left=q.style.right="",Ye=="right"?(Nt=We.sizer.clientWidth-q.offsetWidth,q.style.right="0px"):(Ye=="left"?Nt=0:Ye=="middle"&&(Nt=(We.sizer.clientWidth-q.offsetWidth)/2),q.style.left=Nt+"px"),be&&ol(this,{left:Nt,top:tt,right:Nt+q.offsetWidth,bottom:tt+q.offsetHeight})},triggerOnKeyDown:Os(Yd),triggerOnKeyPress:Os(Iu),triggerOnKeyUp:Xd,triggerOnMouseDown:Os(Ru),execCommand:function(W){if(Cc.hasOwnProperty(W))return Cc[W].call(null,this)},triggerElectric:Os(function(W){rp(this,W)}),findPosH:function(W,q,be,Fe){var Ye=1;q<0&&(Ye=-1,q=-q);for(var We=Ht(this.doc,W),tt=0;tt<q&&(We=cf(this.doc,We,Ye,be,Fe),!We.hitSide);++tt);return We},moveH:Os(function(W,q){var be=this;this.extendSelectionsBy(function(Fe){return be.display.shift||be.doc.extend||Fe.empty()?cf(be.doc,Fe.head,W,q,be.options.rtlMoveVisually):W<0?Fe.from():Fe.to()},De)}),deleteH:Os(function(W,q){var be=this.doc.sel,Fe=this.doc;be.somethingSelected()?Fe.replaceSelection("",null,"+delete"):wl(this,function(Ye){var We=cf(Fe,Ye.head,W,q,!1);return W<0?{from:We,to:Ye.head}:{from:Ye.head,to:We}})}),findPosV:function(W,q,be,Fe){var Ye=1,We=Fe;q<0&&(Ye=-1,q=-q);for(var tt=Ht(this.doc,W),Nt=0;Nt<q;++Nt){var at=_i(this,tt,"div");if(We==null?We=at.left:at.left=We,tt=Ac(this,at,Ye,be),tt.hitSide)break}return tt},moveV:Os(function(W,q){var be=this,Fe=this.doc,Ye=[],We=!this.display.shift&&!Fe.extend&&Fe.sel.somethingSelected();if(Fe.extendSelectionsBy(function(Nt){if(We)return W<0?Nt.from():Nt.to();var at=_i(be,Nt.head,"div");Nt.goalColumn!=null&&(at.left=Nt.goalColumn),Ye.push(at.left);var $t=Ac(be,at,W,q);return q=="page"&&Nt==Fe.sel.primary()&&Nu(be,ci(be,$t,"div").top-at.top),$t},De),Ye.length)for(var tt=0;tt<Fe.sel.ranges.length;tt++)Fe.sel.ranges[tt].goalColumn=Ye[tt]}),findWordAt:function(W){var q=this.doc,be=Vn(q,W.line).text,Fe=W.ch,Ye=W.ch;if(be){var We=this.getHelper(W,"wordChars");(W.sticky=="before"||Ye==be.length)&&Fe?--Fe:++Ye;for(var tt=be.charAt(Fe),Nt=Ce(tt,We)?function(at){return Ce(at,We)}:/\s/.test(tt)?function(at){return/\s/.test(at)}:function(at){return!/\s/.test(at)&&!Ce(at)};Fe>0&&Nt(be.charAt(Fe-1));)--Fe;for(;Ye<be.length&&Nt(be.charAt(Ye));)++Ye}return new Wr(gt(W.line,Fe),gt(W.line,Ye))},toggleOverwrite:function(W){W!=null&&W==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ue(this.display.cursorDiv,"CodeMirror-overwrite"):V(this.display.cursorDiv,"CodeMirror-overwrite"),vt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==oe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Os(function(W,q){Ma(this,W,q)}),getScrollInfo:function(){var W=this.display.scroller;return{left:W.scrollLeft,top:W.scrollTop,height:W.scrollHeight-Bi(this)-this.display.barHeight,width:W.scrollWidth-Bi(this)-this.display.barWidth,clientHeight:Sa(this),clientWidth:cs(this)}},scrollIntoView:Os(function(W,q){W==null?(W={from:this.doc.sel.primary().head,to:null},q==null&&(q=this.options.cursorScrollMargin)):typeof W=="number"?W={from:gt(W,0),to:null}:W.from==null&&(W={from:W,to:null}),W.to||(W.to=W.from),W.margin=q||0,W.from.line!=null?Ui(this,W):ql(this,W.from,W.to,W.margin)}),setSize:Os(function(W,q){var be=this,Fe=function(We){return typeof We=="number"||/^\d+$/.test(String(We))?We+"px":We};W!=null&&(this.display.wrapper.style.width=Fe(W)),q!=null&&(this.display.wrapper.style.height=Fe(q)),this.options.lineWrapping&&Ol(this);var Ye=this.display.viewFrom;this.doc.iter(Ye,this.display.viewTo,function(We){if(We.widgets){for(var tt=0;tt<We.widgets.length;tt++)if(We.widgets[tt].noHScroll){xi(be,Ye,"widget");break}}++Ye}),this.curOp.forceUpdate=!0,vt(this,"refresh",this)}),operation:function(W){return ho(this,W)},startOperation:function(){return oa(this)},endOperation:function(){return Ka(this)},refresh:Os(function(){var W=this.display.cachedTextHeight;Yi(this),this.curOp.forceUpdate=!0,Ll(this),Ma(this,this.doc.scrollLeft,this.doc.scrollTop),Je(this.display),(W==null||Math.abs(W-Ys(this.display))>.5||this.options.lineWrapping)&&Mr(this),vt(this,"refresh",this)}),swapDoc:Os(function(W){var q=this.doc;return q.cm=null,this.state.selectingText&&this.state.selectingText(),so(this,W),Ll(this),this.display.input.reset(),Ma(this,W.scrollLeft,W.scrollTop),this.curOp.forceScroll=!0,ar(this,"swapDoc",this,q),q}),phrase:function(W){var q=this.options.phrases;return q&&Object.prototype.hasOwnProperty.call(q,W)?q[W]:W},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}},$e(l),l.registerHelper=function(W,q,be){K.hasOwnProperty(W)||(K[W]=l[W]={_global:[]}),K[W][q]=be},l.registerGlobalHelper=function(W,q,be,Fe){l.registerHelper(W,q,Fe),K[W]._global.push({pred:be,val:Fe})}}function cf(l,w,K,W,q){var be=w,Fe=K,Ye=Vn(l,w.line),We=q&&l.direction=="rtl"?-K:K;function tt(){var kr=w.line+We;return kr<l.first||kr>=l.first+l.size?!1:(w=new gt(kr,w.ch,w.sticky),Ye=Vn(l,kr))}function Nt(kr){var yr;if(W=="codepoint"){var Hr=Ye.text.charCodeAt(w.ch+(W>0?0:-1));isNaN(Hr)?yr=null:yr=new gt(w.line,Math.max(0,Math.min(Ye.text.length,w.ch+K*(Hr>=55296&&Hr<56320?2:1))),-K)}else q?yr=jf(l.cm,Ye,w,K):yr=Ms(Ye,w,K);if(yr==null)if(!kr&&tt())w=af(q,l.cm,Ye,w.line,We);else return!1;else w=yr;return!0}if(W=="char"||W=="codepoint")Nt();else if(W=="column")Nt(!0);else if(W=="word"||W=="group")for(var at=null,$t=W=="group",Ut=l.cm&&l.cm.getHelper(w,"wordChars"),Nn=!0;!(K<0&&!Nt(!Nn));Nn=!1){var Ln=Ye.text.charAt(w.ch)||`
`,Yn=Ce(Ln,Ut)?"w":$t&&Ln==`
`?"n":!$t||/\s/.test(Ln)?null:"p";if($t&&!Nn&&!Yn&&(Yn="s"),at&&at!=Yn){K<0&&(K=1,Nt(),w.sticky="after");break}if(Yn&&(at=Yn),K>0&&!Nt(!Nn))break}var sr=$r(l,w,be,Fe,!0);return Hn(be,sr)&&(sr.hitSide=!0),sr}function Ac(l,w,K,W){var q=l.doc,be=w.left,Fe;if(W=="page"){var Ye=Math.min(l.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),We=Math.max(Ye-.5*Ys(l.display),3);Fe=(K>0?w.bottom:w.top)+K*We}else W=="line"&&(Fe=K>0?w.bottom+3:w.top-3);for(var tt;tt=jo(l,be,Fe),!!tt.outside;){if(K<0?Fe<=0:Fe>=q.height){tt.hitSide=!0;break}Fe+=K*5}return tt}var Wo=function(l){this.cm=l,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new xe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Wo.prototype.init=function(l){var w=this,K=this,W=K.cm,q=K.div=l.lineDiv;op(q,W.options.spellcheck,W.options.autocorrect,W.options.autocapitalize);function be(Ye){for(var We=Ye.target;We;We=We.parentNode){if(We==q)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(We.className))break}return!1}nt(q,"paste",function(Ye){!be(Ye)||Ct(W,Ye)||np(Ye,W)||u<=11&&setTimeout(xs(W,function(){return w.updateFromDOM()}),20)}),nt(q,"compositionstart",function(Ye){w.composing={data:Ye.data,done:!1}}),nt(q,"compositionupdate",function(Ye){w.composing||(w.composing={data:Ye.data,done:!1})}),nt(q,"compositionend",function(Ye){w.composing&&(Ye.data!=w.composing.data&&w.readFromDOMSoon(),w.composing.done=!0)}),nt(q,"touchstart",function(){return K.forceCompositionEnd()}),nt(q,"input",function(){w.composing||w.readFromDOMSoon()});function Fe(Ye){if(!(!be(Ye)||Ct(W,Ye))){if(W.somethingSelected())nh({lineWise:!1,text:W.getSelections()}),Ye.type=="cut"&&W.replaceSelection("",null,"cut");else if(W.options.lineWiseCopyCut){var We=ip(W);nh({lineWise:!0,text:We.text}),Ye.type=="cut"&&W.operation(function(){W.setSelections(We.ranges,0,Le),W.replaceSelection("",null,"cut")})}else return;if(Ye.clipboardData){Ye.clipboardData.clearData();var tt=cl.text.join(`
`);if(Ye.clipboardData.setData("Text",tt),Ye.clipboardData.getData("Text")==tt){Ye.preventDefault();return}}var Nt=sp(),at=Nt.firstChild;W.display.lineSpace.insertBefore(Nt,W.display.lineSpace.firstChild),at.value=cl.text.join(`
`);var $t=document.activeElement;ye(at),setTimeout(function(){W.display.lineSpace.removeChild(Nt),$t.focus(),$t==q&&K.showPrimarySelection()},50)}}nt(q,"copy",Fe),nt(q,"cut",Fe)},Wo.prototype.screenReaderLabelChanged=function(l){l?this.div.setAttribute("aria-label",l):this.div.removeAttribute("aria-label")},Wo.prototype.prepareSelection=function(){var l=yl(this.cm,!1);return l.focus=document.activeElement==this.div,l},Wo.prototype.showSelection=function(l,w){!l||!this.cm.display.view.length||((l.focus||w)&&this.showPrimarySelection(),this.showMultipleSelections(l))},Wo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Wo.prototype.showPrimarySelection=function(){var l=this.getSelection(),w=this.cm,K=w.doc.sel.primary(),W=K.from(),q=K.to();if(w.display.viewTo==w.display.viewFrom||W.line>=w.display.viewTo||q.line<w.display.viewFrom){l.removeAllRanges();return}var be=hf(w,l.anchorNode,l.anchorOffset),Fe=hf(w,l.focusNode,l.focusOffset);if(!(be&&!be.bad&&Fe&&!Fe.bad&&gn(Bn(be,Fe),W)==0&&gn(we(be,Fe),q)==0)){var Ye=w.display.view,We=W.line>=w.display.viewFrom&&Xf(w,W)||{node:Ye[0].measure.map[2],offset:0},tt=q.line<w.display.viewTo&&Xf(w,q);if(!tt){var Nt=Ye[Ye.length-1].measure,at=Nt.maps?Nt.maps[Nt.maps.length-1]:Nt.map;tt={node:at[at.length-1],offset:at[at.length-2]-at[at.length-3]}}if(!We||!tt){l.removeAllRanges();return}var $t=l.rangeCount&&l.getRangeAt(0),Ut;try{Ut=ee(We.node,We.offset,tt.offset,tt.node)}catch(Nn){}Ut&&(!B&&w.state.focused?(l.collapse(We.node,We.offset),Ut.collapsed||(l.removeAllRanges(),l.addRange(Ut))):(l.removeAllRanges(),l.addRange(Ut)),$t&&l.anchorNode==null?l.addRange($t):B&&this.startGracePeriod()),this.rememberSelection()}},Wo.prototype.startGracePeriod=function(){var l=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){l.gracePeriod=!1,l.selectionChanged()&&l.cm.operation(function(){return l.cm.curOp.selectionChanged=!0})},20)},Wo.prototype.showMultipleSelections=function(l){U(this.cm.display.cursorDiv,l.cursors),U(this.cm.display.selectionDiv,l.selection)},Wo.prototype.rememberSelection=function(){var l=this.getSelection();this.lastAnchorNode=l.anchorNode,this.lastAnchorOffset=l.anchorOffset,this.lastFocusNode=l.focusNode,this.lastFocusOffset=l.focusOffset},Wo.prototype.selectionInEditor=function(){var l=this.getSelection();if(!l.rangeCount)return!1;var w=l.getRangeAt(0).commonAncestorContainer;return ae(this.div,w)},Wo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Wo.prototype.blur=function(){this.div.blur()},Wo.prototype.getField=function(){return this.div},Wo.prototype.supportsTouch=function(){return!0},Wo.prototype.receivedFocus=function(){var l=this;this.selectionInEditor()?this.pollSelection():ho(this.cm,function(){return l.cm.curOp.selectionChanged=!0});function w(){l.cm.state.focused&&(l.pollSelection(),l.polling.set(l.cm.options.pollInterval,w))}this.polling.set(this.cm.options.pollInterval,w)},Wo.prototype.selectionChanged=function(){var l=this.getSelection();return l.anchorNode!=this.lastAnchorNode||l.anchorOffset!=this.lastAnchorOffset||l.focusNode!=this.lastFocusNode||l.focusOffset!=this.lastFocusOffset},Wo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var l=this.getSelection(),w=this.cm;if(E&&g&&this.cm.display.gutterSpecs.length&&ap(l.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var K=hf(w,l.anchorNode,l.anchorOffset),W=hf(w,l.focusNode,l.focusOffset);K&&W&&ho(w,function(){F(w.doc,No(K,W),Le),(K.bad||W.bad)&&(w.curOp.selectionChanged=!0)})}}},Wo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var l=this.cm,w=l.display,K=l.doc.sel.primary(),W=K.from(),q=K.to();if(W.ch==0&&W.line>l.firstLine()&&(W=gt(W.line-1,Vn(l.doc,W.line-1).length)),q.ch==Vn(l.doc,q.line).text.length&&q.line<l.lastLine()&&(q=gt(q.line+1,0)),W.line<w.viewFrom||q.line>w.viewTo-1)return!1;var be,Fe,Ye;W.line==w.viewFrom||(be=Ps(l,W.line))==0?(Fe=ft(w.view[0].line),Ye=w.view[0].node):(Fe=ft(w.view[be].line),Ye=w.view[be-1].node.nextSibling);var We=Ps(l,q.line),tt,Nt;if(We==w.view.length-1?(tt=w.viewTo-1,Nt=w.lineDiv.lastChild):(tt=ft(w.view[We+1].line)-1,Nt=w.view[We+1].node.previousSibling),!Ye)return!1;for(var at=l.doc.splitLines(Fh(l,Ye,Nt,Fe,tt)),$t=Mt(l.doc,gt(Fe,0),gt(tt,Vn(l.doc,tt).text.length));at.length>1&&$t.length>1;)if(ot(at)==ot($t))at.pop(),$t.pop(),tt--;else if(at[0]==$t[0])at.shift(),$t.shift(),Fe++;else break;for(var Ut=0,Nn=0,Ln=at[0],Yn=$t[0],sr=Math.min(Ln.length,Yn.length);Ut<sr&&Ln.charCodeAt(Ut)==Yn.charCodeAt(Ut);)++Ut;for(var kr=ot(at),yr=ot($t),Hr=Math.min(kr.length-(at.length==1?Ut:0),yr.length-($t.length==1?Ut:0));Nn<Hr&&kr.charCodeAt(kr.length-Nn-1)==yr.charCodeAt(yr.length-Nn-1);)++Nn;if(at.length==1&&$t.length==1&&Fe==W.line)for(;Ut&&Ut>W.ch&&kr.charCodeAt(kr.length-Nn-1)==yr.charCodeAt(yr.length-Nn-1);)Ut--,Nn++;at[at.length-1]=kr.slice(0,kr.length-Nn).replace(/^\u200b+/,""),at[0]=at[0].slice(Ut).replace(/\u200b+$/,"");var Ci=gt(Fe,Ut),vr=gt(tt,$t.length?ot($t).length-Nn:0);if(at.length>1||at[0]||gn(Ci,vr))return ru(l.doc,at,Ci,vr,"+input"),!0},Wo.prototype.ensurePolled=function(){this.forceCompositionEnd()},Wo.prototype.reset=function(){this.forceCompositionEnd()},Wo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Wo.prototype.readFromDOMSoon=function(){var l=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(l.readDOMTimeout=null,l.composing)if(l.composing.done)l.composing=null;else return;l.updateFromDOM()},80))},Wo.prototype.updateFromDOM=function(){var l=this;(this.cm.isReadOnly()||!this.pollContent())&&ho(this.cm,function(){return Yi(l.cm)})},Wo.prototype.setUneditable=function(l){l.contentEditable="false"},Wo.prototype.onKeyPress=function(l){l.charCode==0||this.composing||(l.preventDefault(),this.cm.isReadOnly()||xs(this.cm,uf)(this.cm,String.fromCharCode(l.charCode==null?l.keyCode:l.charCode),0))},Wo.prototype.readOnlyChanged=function(l){this.div.contentEditable=String(l!="nocursor")},Wo.prototype.onContextMenu=function(){},Wo.prototype.resetPosition=function(){},Wo.prototype.needsContentAttribute=!0;function Xf(l,w){var K=Ga(l,w.line);if(!K||K.hidden)return null;var W=Vn(l.doc,w.line),q=xo(K,W,w.line),be=Ot(W,l.doc.direction),Fe="left";if(be){var Ye=et(be,w.ch);Fe=Ye%2?"right":"left"}var We=pu(q.map,w.ch,Fe);return We.offset=We.collapse=="right"?We.end:We.start,We}function ap(l){for(var w=l;w;w=w.parentNode)if(/CodeMirror-gutter-wrapper/.test(w.className))return!0;return!1}function Ph(l,w){return w&&(l.bad=!0),l}function Fh(l,w,K,W,q){var be="",Fe=!1,Ye=l.doc.lineSeparator(),We=!1;function tt(Ut){return function(Nn){return Nn.id==Ut}}function Nt(){Fe&&(be+=Ye,We&&(be+=Ye),Fe=We=!1)}function at(Ut){Ut&&(Nt(),be+=Ut)}function $t(Ut){if(Ut.nodeType==1){var Nn=Ut.getAttribute("cm-text");if(Nn){at(Nn);return}var Ln=Ut.getAttribute("cm-marker"),Yn;if(Ln){var sr=l.findMarks(gt(W,0),gt(q+1,0),tt(+Ln));sr.length&&(Yn=sr[0].find(0))&&at(Mt(l.doc,Yn.from,Yn.to).join(Ye));return}if(Ut.getAttribute("contenteditable")=="false")return;var kr=/^(pre|div|p|li|table|br)$/i.test(Ut.nodeName);if(!/^br$/i.test(Ut.nodeName)&&Ut.textContent.length==0)return;kr&&Nt();for(var yr=0;yr<Ut.childNodes.length;yr++)$t(Ut.childNodes[yr]);/^(pre|p)$/i.test(Ut.nodeName)&&(We=!0),kr&&(Fe=!0)}else Ut.nodeType==3&&at(Ut.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;$t(w),w!=K;)w=w.nextSibling,We=!1;return be}function hf(l,w,K){var W;if(w==l.display.lineDiv){if(W=l.display.lineDiv.childNodes[K],!W)return Ph(l.clipPos(gt(l.display.viewTo-1)),!0);w=null,K=0}else for(W=w;;W=W.parentNode){if(!W||W==l.display.lineDiv)return null;if(W.parentNode&&W.parentNode==l.display.lineDiv)break}for(var q=0;q<l.display.view.length;q++){var be=l.display.view[q];if(be.node==W)return Sg(be,w,K)}}function Sg(l,w,K){var W=l.text.firstChild,q=!1;if(!w||!ae(W,w))return Ph(gt(ft(l.line),0),!0);if(w==W&&(q=!0,w=W.childNodes[K],K=0,!w)){var be=l.rest?ot(l.rest):l.line;return Ph(gt(ft(be),be.text.length),q)}var Fe=w.nodeType==3?w:null,Ye=w;for(!Fe&&w.childNodes.length==1&&w.firstChild.nodeType==3&&(Fe=w.firstChild,K&&(K=Fe.nodeValue.length));Ye.parentNode!=W;)Ye=Ye.parentNode;var We=l.measure,tt=We.maps;function Nt(Yn,sr,kr){for(var yr=-1;yr<(tt?tt.length:0);yr++)for(var Hr=yr<0?We.map:tt[yr],Ci=0;Ci<Hr.length;Ci+=3){var vr=Hr[Ci+2];if(vr==Yn||vr==sr){var qi=ft(yr<0?l.line:l.rest[yr]),as=Hr[Ci]+kr;return(kr<0||vr!=Yn)&&(as=Hr[Ci+(kr?1:0)]),gt(qi,as)}}}var at=Nt(Fe,Ye,K);if(at)return Ph(at,q);for(var $t=Ye.nextSibling,Ut=Fe?Fe.nodeValue.length-K:0;$t;$t=$t.nextSibling){if(at=Nt($t,$t.firstChild,0),at)return Ph(gt(at.line,at.ch-Ut),q);Ut+=$t.textContent.length}for(var Nn=Ye.previousSibling,Ln=K;Nn;Nn=Nn.previousSibling){if(at=Nt(Nn,Nn.firstChild,-1),at)return Ph(gt(at.line,at.ch+Ln),q);Ln+=Nn.textContent.length}}var Gs=function(l){this.cm=l,this.prevInput="",this.pollingFast=!1,this.polling=new xe,this.hasSelection=!1,this.composing=null};Gs.prototype.init=function(l){var w=this,K=this,W=this.cm;this.createField(l);var q=this.textarea;l.wrapper.insertBefore(this.wrapper,l.wrapper.firstChild),m&&(q.style.width="0px"),nt(q,"input",function(){A&&u>=9&&w.hasSelection&&(w.hasSelection=null),K.poll()}),nt(q,"paste",function(Fe){Ct(W,Fe)||np(Fe,W)||(W.state.pasteIncoming=+new Date,K.fastPoll())});function be(Fe){if(!Ct(W,Fe)){if(W.somethingSelected())nh({lineWise:!1,text:W.getSelections()});else if(W.options.lineWiseCopyCut){var Ye=ip(W);nh({lineWise:!0,text:Ye.text}),Fe.type=="cut"?W.setSelections(Ye.ranges,null,Le):(K.prevInput="",q.value=Ye.text.join(`
`),ye(q))}else return;Fe.type=="cut"&&(W.state.cutIncoming=+new Date)}}nt(q,"cut",be),nt(q,"copy",be),nt(l.scroller,"paste",function(Fe){if(!(Co(l,Fe)||Ct(W,Fe))){if(!q.dispatchEvent){W.state.pasteIncoming=+new Date,K.focus();return}var Ye=new Event("paste");Ye.clipboardData=Fe.clipboardData,q.dispatchEvent(Ye)}}),nt(l.lineSpace,"selectstart",function(Fe){Co(l,Fe)||Zt(Fe)}),nt(q,"compositionstart",function(){var Fe=W.getCursor("from");K.composing&&K.composing.range.clear(),K.composing={start:Fe,range:W.markText(Fe,W.getCursor("to"),{className:"CodeMirror-composing"})}}),nt(q,"compositionend",function(){K.composing&&(K.poll(),K.composing.range.clear(),K.composing=null)})},Gs.prototype.createField=function(l){this.wrapper=sp(),this.textarea=this.wrapper.firstChild},Gs.prototype.screenReaderLabelChanged=function(l){l?this.textarea.setAttribute("aria-label",l):this.textarea.removeAttribute("aria-label")},Gs.prototype.prepareSelection=function(){var l=this.cm,w=l.display,K=l.doc,W=yl(l);if(l.options.moveInputWithCursor){var q=_i(l,K.sel.primary().head,"div"),be=w.wrapper.getBoundingClientRect(),Fe=w.lineDiv.getBoundingClientRect();W.teTop=Math.max(0,Math.min(w.wrapper.clientHeight-10,q.top+Fe.top-be.top)),W.teLeft=Math.max(0,Math.min(w.wrapper.clientWidth-10,q.left+Fe.left-be.left))}return W},Gs.prototype.showSelection=function(l){var w=this.cm,K=w.display;U(K.cursorDiv,l.cursors),U(K.selectionDiv,l.selection),l.teTop!=null&&(this.wrapper.style.top=l.teTop+"px",this.wrapper.style.left=l.teLeft+"px")},Gs.prototype.reset=function(l){if(!(this.contextMenuPending||this.composing)){var w=this.cm;if(w.somethingSelected()){this.prevInput="";var K=w.getSelection();this.textarea.value=K,w.state.focused&&ye(this.textarea),A&&u>=9&&(this.hasSelection=K)}else l||(this.prevInput=this.textarea.value="",A&&u>=9&&(this.hasSelection=null))}},Gs.prototype.getField=function(){return this.textarea},Gs.prototype.supportsTouch=function(){return!1},Gs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!T||oe()!=this.textarea))try{this.textarea.focus()}catch(l){}},Gs.prototype.blur=function(){this.textarea.blur()},Gs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Gs.prototype.receivedFocus=function(){this.slowPoll()},Gs.prototype.slowPoll=function(){var l=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){l.poll(),l.cm.state.focused&&l.slowPoll()})},Gs.prototype.fastPoll=function(){var l=!1,w=this;w.pollingFast=!0;function K(){var W=w.poll();!W&&!l?(l=!0,w.polling.set(60,K)):(w.pollingFast=!1,w.slowPoll())}w.polling.set(20,K)},Gs.prototype.poll=function(){var l=this,w=this.cm,K=this.textarea,W=this.prevInput;if(this.contextMenuPending||!w.state.focused||me(K)&&!W&&!this.composing||w.isReadOnly()||w.options.disableInput||w.state.keySeq)return!1;var q=K.value;if(q==W&&!w.somethingSelected())return!1;if(A&&u>=9&&this.hasSelection===q||I&&/[\uf700-\uf7ff]/.test(q))return w.display.input.reset(),!1;if(w.doc.sel==w.display.selForContextMenu){var be=q.charCodeAt(0);if(be==8203&&!W&&(W="\u200B"),be==8666)return this.reset(),this.cm.execCommand("undo")}for(var Fe=0,Ye=Math.min(W.length,q.length);Fe<Ye&&W.charCodeAt(Fe)==q.charCodeAt(Fe);)++Fe;return ho(w,function(){uf(w,q.slice(Fe),W.length-Fe,null,l.composing?"*compose":null),q.length>1e3||q.indexOf(`
`)>-1?K.value=l.prevInput="":l.prevInput=q,l.composing&&(l.composing.range.clear(),l.composing.range=w.markText(l.composing.start,w.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Gs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Gs.prototype.onKeyPress=function(){A&&u>=9&&(this.hasSelection=null),this.fastPoll()},Gs.prototype.onContextMenu=function(l){var w=this,K=w.cm,W=K.display,q=w.textarea;w.contextMenuPending&&w.contextMenuPending();var be=ps(K,l),Fe=W.scroller.scrollTop;if(!be||y)return;var Ye=K.options.resetSelectionOnContextMenu;Ye&&K.doc.sel.contains(be)==-1&&xs(K,F)(K.doc,No(be),Le);var We=q.style.cssText,tt=w.wrapper.style.cssText,Nt=w.wrapper.offsetParent.getBoundingClientRect();w.wrapper.style.cssText="position: static",q.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(l.clientY-Nt.top-5)+"px; left: "+(l.clientX-Nt.left-5)+`px;
z-index: 1000; background: `+(A?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var at;p&&(at=window.scrollY),W.input.focus(),p&&window.scrollTo(null,at),W.input.reset(),K.somethingSelected()||(q.value=w.prevInput=" "),w.contextMenuPending=Ut,W.selForContextMenu=K.doc.sel,clearTimeout(W.detectingSelectAll);function $t(){if(q.selectionStart!=null){var Ln=K.somethingSelected(),Yn="\u200B"+(Ln?q.value:"");q.value="\u21DA",q.value=Yn,w.prevInput=Ln?"":"\u200B",q.selectionStart=1,q.selectionEnd=Yn.length,W.selForContextMenu=K.doc.sel}}function Ut(){if(w.contextMenuPending==Ut&&(w.contextMenuPending=!1,w.wrapper.style.cssText=tt,q.style.cssText=We,A&&u<9&&W.scrollbars.setScrollTop(W.scroller.scrollTop=Fe),q.selectionStart!=null)){(!A||A&&u<9)&&$t();var Ln=0,Yn=function(){W.selForContextMenu==K.doc.sel&&q.selectionStart==0&&q.selectionEnd>0&&w.prevInput=="\u200B"?xs(K,xn)(K):Ln++<10?W.detectingSelectAll=setTimeout(Yn,500):(W.selForContextMenu=null,W.input.reset())};W.detectingSelectAll=setTimeout(Yn,200)}}if(A&&u>=9&&$t(),H){Dn(l);var Nn=function(){Tt(window,"mouseup",Nn),setTimeout(Ut,20)};nt(window,"mouseup",Nn)}else setTimeout(Ut,50)},Gs.prototype.readOnlyChanged=function(l){l||this.reset(),this.textarea.disabled=l=="nocursor",this.textarea.readOnly=!!l},Gs.prototype.setUneditable=function(){},Gs.prototype.needsContentAttribute=!1;function xg(l,w){if(w=w?Re(w):{},w.value=l.value,!w.tabindex&&l.tabIndex&&(w.tabindex=l.tabIndex),!w.placeholder&&l.placeholder&&(w.placeholder=l.placeholder),w.autofocus==null){var K=oe();w.autofocus=K==l||l.getAttribute("autofocus")!=null&&K==document.body}function W(){l.value=Ye.getValue()}var q;if(l.form&&(nt(l.form,"submit",W),!w.leaveSubmitMethodAlone)){var be=l.form;q=be.submit;try{var Fe=be.submit=function(){W(),be.submit=q,be.submit(),be.submit=Fe}}catch(We){}}w.finishInit=function(We){We.save=W,We.getTextArea=function(){return l},We.toTextArea=function(){We.toTextArea=isNaN,W(),l.parentNode.removeChild(We.getWrapperElement()),l.style.display="",l.form&&(Tt(l.form,"submit",W),!w.leaveSubmitMethodAlone&&typeof l.form.submit=="function"&&(l.form.submit=q))}},l.style.display="none";var Ye=vo(function(We){return l.parentNode.insertBefore(We,l.nextSibling)},w);return Ye}function Bh(l){l.off=Tt,l.on=nt,l.wheelEventPixels=fi,l.Doc=Ta,l.splitLines=Er,l.countColumn=le,l.findColumn=Ke,l.isWordChar=de,l.Pass=Oe,l.signal=vt,l.Line=bi,l.changeEnd=Io,l.scrollbarModel=xa,l.Pos=gt,l.cmpPos=gn,l.modes=Ir,l.mimeModes=Vr,l.resolveMode=Zr,l.getMode=Qr,l.modeExtensions=Kn,l.extendMode=Mn,l.copyState=ai,l.startState=zr,l.innerMode=Nr,l.commands=Cc,l.keyMap=xl,l.keyName=dg,l.isModifierKey=Ih,l.lookupKey=iu,l.normalizeKeyMap=zd,l.StringStream=pn,l.SharedTextMarker=zu,l.TextMarker=bt,l.LineWidget=sc,l.e_preventDefault=Zt,l.e_stopPropagation=vn,l.e_stop=Dn,l.addClass=ue,l.contains=ae,l.rmClass=V,l.keyNames=Gu}yg(vo),_c(vo);var ac="iter insert remove copy getEditor constructor".split(" ");for(var ff in Ta.prototype)Ta.prototype.hasOwnProperty(ff)&&pe(ac,ff)<0&&(vo.prototype[ff]=function(l){return function(){return l.apply(this.doc,arguments)}}(Ta.prototype[ff]));return $e(Ta),vo.inputStyles={textarea:Gs,contenteditable:Wo},vo.defineMode=function(l){!vo.defaults.mode&&l!="null"&&(vo.defaults.mode=l),fr.apply(this,arguments)},vo.defineMIME=oo,vo.defineMode("null",function(){return{token:function(l){return l.skipToEnd()}}}),vo.defineMIME("text/plain","null"),vo.defineExtension=function(l,w){vo.prototype[l]=w},vo.defineDocExtension=function(l,w){Ta.prototype[l]=w},vo.fromTextArea=xg,Bh(vo),vo.version="5.58.2",vo})},25419:function(Ne,Q,S){(function(B){B(S(89780),S(15525),S(98101))})(function(B){"use strict";B.defineMode("markdown",function(Z,s){var C=B.getMode(Z,"text/html"),A=C.name=="null";function u(le){if(B.findModeByName){var xe=B.findModeByName(le);xe&&(le=xe.mime||xe.mimes[0])}var pe=B.getMode(Z,le);return pe.name=="null"?null:pe}s.highlightFormatting===void 0&&(s.highlightFormatting=!1),s.maxBlockquoteDepth===void 0&&(s.maxBlockquoteDepth=0),s.taskLists===void 0&&(s.taskLists=!1),s.strikethrough===void 0&&(s.strikethrough=!1),s.emoji===void 0&&(s.emoji=!1),s.fencedCodeBlockHighlighting===void 0&&(s.fencedCodeBlockHighlighting=!0),s.fencedCodeBlockDefaultMode===void 0&&(s.fencedCodeBlockDefaultMode="text/plain"),s.xml===void 0&&(s.xml=!0),s.tokenTypeOverrides===void 0&&(s.tokenTypeOverrides={});var p={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 b in p)p.hasOwnProperty(b)&&s.tokenTypeOverrides[b]&&(p[b]=s.tokenTypeOverrides[b]);var g=/^([*\-_])(?:\s*\1){2,}\s*$/,y=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,v=/^\[(x| )\](?=\s)/i,c=s.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,h=/^ {0,3}(?:\={1,}|-{2,})\s*$/,m=/^[^#!\[\]*_\\<>` "'(~:]+/,E=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,T=/^\s*\[[^\]]+?\]:.*$/,I=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,R=" ";function N(le,xe,pe){return xe.f=xe.inline=pe,pe(le,xe)}function k(le,xe,pe){return xe.f=xe.block=pe,pe(le,xe)}function L(le){return!le||!/\S/.test(le.string)}function H(le){if(le.linkTitle=!1,le.linkHref=!1,le.linkText=!1,le.em=!1,le.strong=!1,le.strikethrough=!1,le.quote=0,le.indentedCode=!1,le.f==V){var xe=A;if(!xe){var pe=B.innerMode(C,le.htmlState);xe=pe.mode.name=="xml"&&pe.state.tagStart===null&&!pe.state.context&&pe.state.tokenize.isInText}xe&&(le.f=J,le.block=D,le.htmlState=null)}return le.trailingSpace=0,le.trailingSpaceNewLine=!1,le.prevLine=le.thisLine,le.thisLine={stream:null},null}function D(le,xe){var pe=le.column()===xe.indentation,Me=L(xe.prevLine.stream),Oe=xe.indentedCode,Le=xe.prevLine.hr,Pe=xe.list!==!1,De=(xe.listStack[xe.listStack.length-1]||0)+3;xe.indentedCode=!1;var Ke=xe.indentation;if(xe.indentationDiff===null&&(xe.indentationDiff=xe.indentation,Pe)){for(xe.list=null;Ke<xe.listStack[xe.listStack.length-1];)xe.listStack.pop(),xe.listStack.length?xe.indentation=xe.listStack[xe.listStack.length-1]:xe.list=!1;xe.list!==!1&&(xe.indentationDiff=Ke-xe.listStack[xe.listStack.length-1])}var ze=!Me&&!Le&&!xe.prevLine.header&&(!Pe||!Oe)&&!xe.prevLine.fencedCodeEnd,it=(xe.list===!1||Le||Me)&&xe.indentation<=De&&le.match(g),ot=null;if(xe.indentationDiff>=4&&(Oe||xe.prevLine.fencedCodeEnd||xe.prevLine.header||Me))return le.skipToEnd(),xe.indentedCode=!0,p.code;if(le.eatSpace())return null;if(pe&&xe.indentation<=De&&(ot=le.match(c))&&ot[1].length<=6)return xe.quote=0,xe.header=ot[1].length,xe.thisLine.header=!0,s.highlightFormatting&&(xe.formatting="header"),xe.f=xe.inline,U(xe);if(xe.indentation<=De&&le.eat(">"))return xe.quote=pe?1:xe.quote+1,s.highlightFormatting&&(xe.formatting="quote"),le.eatSpace(),U(xe);if(!it&&!xe.setext&&pe&&xe.indentation<=De&&(ot=le.match(y))){var Ge=ot[1]?"ol":"ul";return xe.indentation=Ke+le.current().length,xe.list=!0,xe.quote=0,xe.listStack.push(xe.indentation),xe.em=!1,xe.strong=!1,xe.code=!1,xe.strikethrough=!1,s.taskLists&&le.match(v,!1)&&(xe.taskList=!0),xe.f=xe.inline,s.highlightFormatting&&(xe.formatting=["list","list-"+Ge]),U(xe)}else{if(pe&&xe.indentation<=De&&(ot=le.match(E,!0)))return xe.quote=0,xe.fencedEndRE=new RegExp(ot[1]+"+ *$"),xe.localMode=s.fencedCodeBlockHighlighting&&u(ot[2]||s.fencedCodeBlockDefaultMode),xe.localMode&&(xe.localState=B.startState(xe.localMode)),xe.f=xe.block=P,s.highlightFormatting&&(xe.formatting="code-block"),xe.code=-1,U(xe);if(xe.setext||(!ze||!Pe)&&!xe.quote&&xe.list===!1&&!xe.code&&!it&&!T.test(le.string)&&(ot=le.lookAhead(1))&&(ot=ot.match(h)))return xe.setext?(xe.header=xe.setext,xe.setext=0,le.skipToEnd(),s.highlightFormatting&&(xe.formatting="header")):(xe.header=ot[0].charAt(0)=="="?1:2,xe.setext=xe.header),xe.thisLine.header=!0,xe.f=xe.inline,U(xe);if(it)return le.skipToEnd(),xe.hr=!0,xe.thisLine.hr=!0,p.hr;if(le.peek()==="[")return N(le,xe,se)}return N(le,xe,xe.inline)}function V(le,xe){var pe=C.token(le,xe.htmlState);if(!A){var Me=B.innerMode(C,xe.htmlState);(Me.mode.name=="xml"&&Me.state.tagStart===null&&!Me.state.context&&Me.state.tokenize.isInText||xe.md_inside&&le.current().indexOf(">")>-1)&&(xe.f=J,xe.block=D,xe.htmlState=null)}return pe}function P(le,xe){var pe=xe.listStack[xe.listStack.length-1]||0,Me=xe.indentation<pe,Oe=pe+3;if(xe.fencedEndRE&&xe.indentation<=Oe&&(Me||le.match(xe.fencedEndRE))){s.highlightFormatting&&(xe.formatting="code-block");var Le;return Me||(Le=U(xe)),xe.localMode=xe.localState=null,xe.block=D,xe.f=J,xe.fencedEndRE=null,xe.code=0,xe.thisLine.fencedCodeEnd=!0,Me?k(le,xe,xe.block):Le}else return xe.localMode?xe.localMode.token(le,xe.localState):(le.skipToEnd(),p.code)}function U(le){var xe=[];if(le.formatting){xe.push(p.formatting),typeof le.formatting=="string"&&(le.formatting=[le.formatting]);for(var pe=0;pe<le.formatting.length;pe++)xe.push(p.formatting+"-"+le.formatting[pe]),le.formatting[pe]==="header"&&xe.push(p.formatting+"-"+le.formatting[pe]+"-"+le.header),le.formatting[pe]==="quote"&&(!s.maxBlockquoteDepth||s.maxBlockquoteDepth>=le.quote?xe.push(p.formatting+"-"+le.formatting[pe]+"-"+le.quote):xe.push("error"))}if(le.taskOpen)return xe.push("meta"),xe.length?xe.join(" "):null;if(le.taskClosed)return xe.push("property"),xe.length?xe.join(" "):null;if(le.linkHref?xe.push(p.linkHref,"url"):(le.strong&&xe.push(p.strong),le.em&&xe.push(p.em),le.strikethrough&&xe.push(p.strikethrough),le.emoji&&xe.push(p.emoji),le.linkText&&xe.push(p.linkText),le.code&&xe.push(p.code),le.image&&xe.push(p.image),le.imageAltText&&xe.push(p.imageAltText,"link"),le.imageMarker&&xe.push(p.imageMarker)),le.header&&xe.push(p.header,p.header+"-"+le.header),le.quote&&(xe.push(p.quote),!s.maxBlockquoteDepth||s.maxBlockquoteDepth>=le.quote?xe.push(p.quote+"-"+le.quote):xe.push(p.quote+"-"+s.maxBlockquoteDepth)),le.list!==!1){var Me=(le.listStack.length-1)%3;Me?Me===1?xe.push(p.list2):xe.push(p.list3):xe.push(p.list1)}return le.trailingSpaceNewLine?xe.push("trailing-space-new-line"):le.trailingSpace&&xe.push("trailing-space-"+(le.trailingSpace%2?"a":"b")),xe.length?xe.join(" "):null}function G(le,xe){if(le.match(m,!0))return U(xe)}function J(le,xe){var pe=xe.text(le,xe);if(typeof pe!="undefined")return pe;if(xe.list)return xe.list=null,U(xe);if(xe.taskList){var Me=le.match(v,!0)[1]===" ";return Me?xe.taskOpen=!0:xe.taskClosed=!0,s.highlightFormatting&&(xe.formatting="task"),xe.taskList=!1,U(xe)}if(xe.taskOpen=!1,xe.taskClosed=!1,xe.header&&le.match(/^#+$/,!0))return s.highlightFormatting&&(xe.formatting="header"),U(xe);var Oe=le.next();if(xe.linkTitle){xe.linkTitle=!1;var Le=Oe;Oe==="("&&(Le=")"),Le=(Le+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Pe="^\\s*(?:[^"+Le+"\\\\]+|\\\\\\\\|\\\\.)"+Le;if(le.match(new RegExp(Pe),!0))return p.linkHref}if(Oe==="`"){var De=xe.formatting;s.highlightFormatting&&(xe.formatting="code"),le.eatWhile("`");var Ke=le.current().length;if(xe.code==0&&(!xe.quote||Ke==1))return xe.code=Ke,U(xe);if(Ke==xe.code){var ze=U(xe);return xe.code=0,ze}else return xe.formatting=De,U(xe)}else if(xe.code)return U(xe);if(Oe==="\\"&&(le.next(),s.highlightFormatting)){var it=U(xe),ot=p.formatting+"-escape";return it?it+" "+ot:ot}if(Oe==="!"&&le.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return xe.imageMarker=!0,xe.image=!0,s.highlightFormatting&&(xe.formatting="image"),U(xe);if(Oe==="["&&xe.imageMarker&&le.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return xe.imageMarker=!1,xe.imageAltText=!0,s.highlightFormatting&&(xe.formatting="image"),U(xe);if(Oe==="]"&&xe.imageAltText){s.highlightFormatting&&(xe.formatting="image");var it=U(xe);return xe.imageAltText=!1,xe.image=!1,xe.inline=xe.f=ae,it}if(Oe==="["&&!xe.image)return xe.linkText&&le.match(/^.*?\]/)||(xe.linkText=!0,s.highlightFormatting&&(xe.formatting="link")),U(xe);if(Oe==="]"&&xe.linkText){s.highlightFormatting&&(xe.formatting="link");var it=U(xe);return xe.linkText=!1,xe.inline=xe.f=le.match(/\(.*?\)| ?\[.*?\]/,!1)?ae:J,it}if(Oe==="<"&&le.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){xe.f=xe.inline=ee,s.highlightFormatting&&(xe.formatting="link");var it=U(xe);return it?it+=" ":it="",it+p.linkInline}if(Oe==="<"&&le.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){xe.f=xe.inline=ee,s.highlightFormatting&&(xe.formatting="link");var it=U(xe);return it?it+=" ":it="",it+p.linkEmail}if(s.xml&&Oe==="<"&&le.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ge=le.string.indexOf(">",le.pos);if(Ge!=-1){var Ee=le.string.substring(le.start,Ge);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ee)&&(xe.md_inside=!0)}return le.backUp(1),xe.htmlState=B.startState(C),k(le,xe,V)}if(s.xml&&Oe==="<"&&le.match(/^\/\w*?>/))return xe.md_inside=!1,"tag";if(Oe==="*"||Oe==="_"){for(var fe=1,z=le.pos==1?" ":le.string.charAt(le.pos-2);fe<3&&le.eat(Oe);)fe++;var X=le.peek()||" ",de=!/\s/.test(X)&&(!I.test(X)||/\s/.test(z)||I.test(z)),Ce=!/\s/.test(z)&&(!I.test(z)||/\s/.test(X)||I.test(X)),ne=null,re=null;if(fe%2&&(!xe.em&&de&&(Oe==="*"||!Ce||I.test(z))?ne=!0:xe.em==Oe&&Ce&&(Oe==="*"||!de||I.test(X))&&(ne=!1)),fe>1&&(!xe.strong&&de&&(Oe==="*"||!Ce||I.test(z))?re=!0:xe.strong==Oe&&Ce&&(Oe==="*"||!de||I.test(X))&&(re=!1)),re!=null||ne!=null){s.highlightFormatting&&(xe.formatting=ne==null?"strong":re==null?"em":"strong em"),ne===!0&&(xe.em=Oe),re===!0&&(xe.strong=Oe);var ze=U(xe);return ne===!1&&(xe.em=!1),re===!1&&(xe.strong=!1),ze}}else if(Oe===" "&&(le.eat("*")||le.eat("_"))){if(le.peek()===" ")return U(xe);le.backUp(1)}if(s.strikethrough){if(Oe==="~"&&le.eatWhile(Oe)){if(xe.strikethrough){s.highlightFormatting&&(xe.formatting="strikethrough");var ze=U(xe);return xe.strikethrough=!1,ze}else if(le.match(/^[^\s]/,!1))return xe.strikethrough=!0,s.highlightFormatting&&(xe.formatting="strikethrough"),U(xe)}else if(Oe===" "&&le.match(/^~~/,!0)){if(le.peek()===" ")return U(xe);le.backUp(2)}}if(s.emoji&&Oe===":"&&le.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){xe.emoji=!0,s.highlightFormatting&&(xe.formatting="emoji");var he=U(xe);return xe.emoji=!1,he}return Oe===" "&&(le.match(/^ +$/,!1)?xe.trailingSpace++:xe.trailingSpace&&(xe.trailingSpaceNewLine=!0)),U(xe)}function ee(le,xe){var pe=le.next();if(pe===">"){xe.f=xe.inline=J,s.highlightFormatting&&(xe.formatting="link");var Me=U(xe);return Me?Me+=" ":Me="",Me+p.linkInline}return le.match(/^[^>]+/,!0),p.linkInline}function ae(le,xe){if(le.eatSpace())return null;var pe=le.next();return pe==="("||pe==="["?(xe.f=xe.inline=ue(pe==="("?")":"]"),s.highlightFormatting&&(xe.formatting="link-string"),xe.linkHref=!0,U(xe)):"error"}var oe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ue(le){return function(xe,pe){var Me=xe.next();if(Me===le){pe.f=pe.inline=J,s.highlightFormatting&&(pe.formatting="link-string");var Oe=U(pe);return pe.linkHref=!1,Oe}return xe.match(oe[le]),pe.linkHref=!0,U(pe)}}function se(le,xe){return le.match(/^([^\]\\]|\\.)*\]:/,!1)?(xe.f=ye,le.next(),s.highlightFormatting&&(xe.formatting="link"),xe.linkText=!0,U(xe)):N(le,xe,J)}function ye(le,xe){if(le.match(/^\]:/,!0)){xe.f=xe.inline=ve,s.highlightFormatting&&(xe.formatting="link");var pe=U(xe);return xe.linkText=!1,pe}return le.match(/^([^\]\\]|\\.)+/,!0),p.linkText}function ve(le,xe){return le.eatSpace()?null:(le.match(/^[^\s]+/,!0),le.peek()===void 0?xe.linkTitle=!0:le.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),xe.f=xe.inline=J,p.linkHref+" url")}var Re={startState:function(){return{f:D,prevLine:{stream:null},thisLine:{stream:null},block:D,htmlState:null,indentation:0,inline:J,text:G,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(le){return{f:le.f,prevLine:le.prevLine,thisLine:le.thisLine,block:le.block,htmlState:le.htmlState&&B.copyState(C,le.htmlState),indentation:le.indentation,localMode:le.localMode,localState:le.localMode?B.copyState(le.localMode,le.localState):null,inline:le.inline,text:le.text,formatting:!1,linkText:le.linkText,linkTitle:le.linkTitle,linkHref:le.linkHref,code:le.code,em:le.em,strong:le.strong,strikethrough:le.strikethrough,emoji:le.emoji,header:le.header,setext:le.setext,hr:le.hr,taskList:le.taskList,list:le.list,listStack:le.listStack.slice(0),quote:le.quote,indentedCode:le.indentedCode,trailingSpace:le.trailingSpace,trailingSpaceNewLine:le.trailingSpaceNewLine,md_inside:le.md_inside,fencedEndRE:le.fencedEndRE}},token:function(le,xe){if(xe.formatting=!1,le!=xe.thisLine.stream){if(xe.header=0,xe.hr=!1,le.match(/^\s*$/,!0))return H(xe),null;if(xe.prevLine=xe.thisLine,xe.thisLine={stream:le},xe.taskList=!1,xe.trailingSpace=0,xe.trailingSpaceNewLine=!1,!xe.localState&&(xe.f=xe.block,xe.f!=V)){var pe=le.match(/^\s*/,!0)[0].replace(/\t/g,R).length;if(xe.indentation=pe,xe.indentationDiff=null,pe>0)return null}}return xe.f(le,xe)},innerMode:function(le){return le.block==V?{state:le.htmlState,mode:C}:le.localState?{state:le.localState,mode:le.localMode}:{state:le,mode:Re}},indent:function(le,xe,pe){return le.block==V&&C.indent?C.indent(le.htmlState,xe,pe):le.localState&&le.localMode.indent?le.localMode.indent(le.localState,xe,pe):B.Pass},blankLine:H,getType:U,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Re},"xml"),B.defineMIME("text/markdown","markdown"),B.defineMIME("text/x-markdown","markdown")})},98101:function(Ne,Q,S){(function(B){B(S(89780))})(function(B){"use strict";B.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 Z=0;Z<B.modeInfo.length;Z++){var s=B.modeInfo[Z];s.mimes&&(s.mime=s.mimes[0])}B.findModeByMIME=function(C){C=C.toLowerCase();for(var A=0;A<B.modeInfo.length;A++){var u=B.modeInfo[A];if(u.mime==C)return u;if(u.mimes){for(var p=0;p<u.mimes.length;p++)if(u.mimes[p]==C)return u}}if(/\+xml$/.test(C))return B.findModeByMIME("application/xml");if(/\+json$/.test(C))return B.findModeByMIME("application/json")},B.findModeByExtension=function(C){C=C.toLowerCase();for(var A=0;A<B.modeInfo.length;A++){var u=B.modeInfo[A];if(u.ext){for(var p=0;p<u.ext.length;p++)if(u.ext[p]==C)return u}}},B.findModeByFileName=function(C){for(var A=0;A<B.modeInfo.length;A++){var u=B.modeInfo[A];if(u.file&&u.file.test(C))return u}var p=C.lastIndexOf("."),b=p>-1&&C.substring(p+1,C.length);if(b)return B.findModeByExtension(b)},B.findModeByName=function(C){C=C.toLowerCase();for(var A=0;A<B.modeInfo.length;A++){var u=B.modeInfo[A];if(u.name.toLowerCase()==C)return u;if(u.alias){for(var p=0;p<u.alias.length;p++)if(u.alias[p].toLowerCase()==C)return u}}}})},67549:function(Ne,Q,S){(function(B){B(S(89780))})(function(B){"use strict";B.defineMode("stex",function(Z,s){"use strict";function C(m,E){m.cmdState.push(E)}function A(m){return m.cmdState.length>0?m.cmdState[m.cmdState.length-1]:null}function u(m){var E=m.cmdState.pop();E&&E.closeBracket()}function p(m){for(var E=m.cmdState,T=E.length-1;T>=0;T--){var I=E[T];if(I.name!="DEFAULT")return I}return{styleIdentifier:function(){return null}}}function b(m,E,T){return function(){this.name=m,this.bracketNo=0,this.style=E,this.styles=T,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var g={};g.importmodule=b("importmodule","tag",["string","builtin"]),g.documentclass=b("documentclass","tag",["","atom"]),g.usepackage=b("usepackage","tag",["atom"]),g.begin=b("begin","tag",["atom"]),g.end=b("end","tag",["atom"]),g.label=b("label","tag",["atom"]),g.ref=b("ref","tag",["atom"]),g.eqref=b("eqref","tag",["atom"]),g.cite=b("cite","tag",["atom"]),g.bibitem=b("bibitem","tag",["atom"]),g.Bibitem=b("Bibitem","tag",["atom"]),g.RBibitem=b("RBibitem","tag",["atom"]),g.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function y(m,E){m.f=E}function v(m,E){var T;if(m.match(/^\\[a-zA-Z@]+/)){var I=m.current().slice(1);return T=g.hasOwnProperty(I)?g[I]:g.DEFAULT,T=new T,C(E,T),y(E,h),T.style}if(m.match(/^\\[$&%#{}_]/)||m.match(/^\\[,;!\/\\]/))return"tag";if(m.match("\\["))return y(E,function(N,k){return c(N,k,"\\]")}),"keyword";if(m.match("\\("))return y(E,function(N,k){return c(N,k,"\\)")}),"keyword";if(m.match("$$"))return y(E,function(N,k){return c(N,k,"$$")}),"keyword";if(m.match("$"))return y(E,function(N,k){return c(N,k,"$")}),"keyword";var R=m.next();if(R=="%")return m.skipToEnd(),"comment";if(R=="}"||R=="]"){if(T=A(E),T)T.closeBracket(R),y(E,h);else return"error";return"bracket"}else return R=="{"||R=="["?(T=g.DEFAULT,T=new T,C(E,T),"bracket"):/\d/.test(R)?(m.eatWhile(/[\w.%]/),"atom"):(m.eatWhile(/[\w\-_]/),T=p(E),T.name=="begin"&&(T.argument=m.current()),T.styleIdentifier())}function c(m,E,T){if(m.eatSpace())return null;if(T&&m.match(T))return y(E,v),"keyword";if(m.match(/^\\[a-zA-Z@]+/))return"tag";if(m.match(/^[a-zA-Z]+/))return"variable-2";if(m.match(/^\\[$&%#{}_]/)||m.match(/^\\[,;!\/]/)||m.match(/^[\^_&]/))return"tag";if(m.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(m.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var I=m.next();return I=="{"||I=="}"||I=="["||I=="]"||I=="("||I==")"?"bracket":I=="%"?(m.skipToEnd(),"comment"):"error"}function h(m,E){var T=m.peek(),I;return T=="{"||T=="["?(I=A(E),I.openBracket(T),m.eat(T),y(E,v),"bracket"):/[ \t\r]/.test(T)?(m.eat(T),null):(y(E,v),u(E),v(m,E))}return{startState:function(){var m=s.inMathMode?function(E,T){return c(E,T)}:v;return{cmdState:[],f:m}},copyState:function(m){return{cmdState:m.cmdState.slice(),f:m.f}},token:function(m,E){return E.f(m,E)},blankLine:function(m){m.f=v,m.cmdState.length=0},lineComment:"%"}}),B.defineMIME("text/x-stex","stex"),B.defineMIME("text/x-latex","stex")})},15525:function(Ne,Q,S){(function(B){B(S(89780))})(function(B){"use strict";var Z={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},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};B.defineMode("xml",function(C,A){var u=C.indentUnit,p={},b=A.htmlMode?Z:s;for(var g in b)p[g]=b[g];for(var g in A)p[g]=A[g];var y,v;function c(ee,ae){function oe(ye){return ae.tokenize=ye,ye(ee,ae)}var ue=ee.next();if(ue=="<")return ee.eat("!")?ee.eat("[")?ee.match("CDATA[")?oe(E("atom","]]>")):null:ee.match("--")?oe(E("comment","-->")):ee.match("DOCTYPE",!0,!0)?(ee.eatWhile(/[\w\._\-]/),oe(T(1))):null:ee.eat("?")?(ee.eatWhile(/[\w\._\-]/),ae.tokenize=E("meta","?>"),"meta"):(y=ee.eat("/")?"closeTag":"openTag",ae.tokenize=h,"tag bracket");if(ue=="&"){var se;return ee.eat("#")?ee.eat("x")?se=ee.eatWhile(/[a-fA-F\d]/)&&ee.eat(";"):se=ee.eatWhile(/[\d]/)&&ee.eat(";"):se=ee.eatWhile(/[\w\.\-:]/)&&ee.eat(";"),se?"atom":"error"}else return ee.eatWhile(/[^&<]/),null}c.isInText=!0;function h(ee,ae){var oe=ee.next();if(oe==">"||oe=="/"&&ee.eat(">"))return ae.tokenize=c,y=oe==">"?"endTag":"selfcloseTag","tag bracket";if(oe=="=")return y="equals",null;if(oe=="<"){ae.tokenize=c,ae.state=k,ae.tagName=ae.tagStart=null;var ue=ae.tokenize(ee,ae);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(oe)?(ae.tokenize=m(oe),ae.stringStartCol=ee.column(),ae.tokenize(ee,ae)):(ee.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function m(ee){var ae=function(oe,ue){for(;!oe.eol();)if(oe.next()==ee){ue.tokenize=h;break}return"string"};return ae.isInAttribute=!0,ae}function E(ee,ae){return function(oe,ue){for(;!oe.eol();){if(oe.match(ae)){ue.tokenize=c;break}oe.next()}return ee}}function T(ee){return function(ae,oe){for(var ue;(ue=ae.next())!=null;){if(ue=="<")return oe.tokenize=T(ee+1),oe.tokenize(ae,oe);if(ue==">")if(ee==1){oe.tokenize=c;break}else return oe.tokenize=T(ee-1),oe.tokenize(ae,oe)}return"meta"}}function I(ee,ae,oe){this.prev=ee.context,this.tagName=ae,this.indent=ee.indented,this.startOfLine=oe,(p.doNotIndent.hasOwnProperty(ae)||ee.context&&ee.context.noIndent)&&(this.noIndent=!0)}function R(ee){ee.context&&(ee.context=ee.context.prev)}function N(ee,ae){for(var oe;;){if(!ee.context||(oe=ee.context.tagName,!p.contextGrabbers.hasOwnProperty(oe)||!p.contextGrabbers[oe].hasOwnProperty(ae)))return;R(ee)}}function k(ee,ae,oe){return ee=="openTag"?(oe.tagStart=ae.column(),L):ee=="closeTag"?H:k}function L(ee,ae,oe){return ee=="word"?(oe.tagName=ae.current(),v="tag",P):p.allowMissingTagName&&ee=="endTag"?(v="tag bracket",P(ee,ae,oe)):(v="error",L)}function H(ee,ae,oe){if(ee=="word"){var ue=ae.current();return oe.context&&oe.context.tagName!=ue&&p.implicitlyClosed.hasOwnProperty(oe.context.tagName)&&R(oe),oe.context&&oe.context.tagName==ue||p.matchClosing===!1?(v="tag",D):(v="tag error",V)}else return p.allowMissingTagName&&ee=="endTag"?(v="tag bracket",D(ee,ae,oe)):(v="error",V)}function D(ee,ae,oe){return ee!="endTag"?(v="error",D):(R(oe),k)}function V(ee,ae,oe){return v="error",D(ee,ae,oe)}function P(ee,ae,oe){if(ee=="word")return v="attribute",U;if(ee=="endTag"||ee=="selfcloseTag"){var ue=oe.tagName,se=oe.tagStart;return oe.tagName=oe.tagStart=null,ee=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(ue)?N(oe,ue):(N(oe,ue),oe.context=new I(oe,ue,se==oe.indented)),k}return v="error",P}function U(ee,ae,oe){return ee=="equals"?G:(p.allowMissing||(v="error"),P(ee,ae,oe))}function G(ee,ae,oe){return ee=="string"?J:ee=="word"&&p.allowUnquoted?(v="string",P):(v="error",P(ee,ae,oe))}function J(ee,ae,oe){return ee=="string"?J:P(ee,ae,oe)}return{startState:function(ee){var ae={tokenize:c,state:k,indented:ee||0,tagName:null,tagStart:null,context:null};return ee!=null&&(ae.baseIndent=ee),ae},token:function(ee,ae){if(!ae.tagName&&ee.sol()&&(ae.indented=ee.indentation()),ee.eatSpace())return null;y=null;var oe=ae.tokenize(ee,ae);return(oe||y)&&oe!="comment"&&(v=null,ae.state=ae.state(y||oe,ee,ae),v&&(oe=v=="error"?oe+" error":v)),oe},indent:function(ee,ae,oe){var ue=ee.context;if(ee.tokenize.isInAttribute)return ee.tagStart==ee.indented?ee.stringStartCol+1:ee.indented+u;if(ue&&ue.noIndent)return B.Pass;if(ee.tokenize!=h&&ee.tokenize!=c)return oe?oe.match(/^(\s*)/)[0].length:0;if(ee.tagName)return p.multilineTagIndentPastTag!==!1?ee.tagStart+ee.tagName.length+2:ee.tagStart+u*(p.multilineTagIndentFactor||1);if(p.alignCDATA&&/<!\[CDATA\[/.test(ae))return 0;var se=ae&&/^<(\/)?([\w_:\.-]*)/.exec(ae);if(se&&se[1])for(;ue;)if(ue.tagName==se[2]){ue=ue.prev;break}else if(p.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(se)for(;ue;){var ye=p.contextGrabbers[ue.tagName];if(ye&&ye.hasOwnProperty(se[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+u:ee.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:p.htmlMode?"html":"xml",helperType:p.htmlMode?"html":"xml",skipAttribute:function(ee){ee.state==G&&(ee.state=P)},xmlCurrentTag:function(ee){return ee.tagName?{name:ee.tagName,close:ee.type=="closeTag"}:null},xmlCurrentContext:function(ee){for(var ae=[],oe=ee.context;oe;oe=oe.prev)oe.tagName&&ae.push(oe.tagName);return ae.reverse()}}}),B.defineMIME("text/xml","xml"),B.defineMIME("application/xml","xml"),B.mimeModes.hasOwnProperty("text/html")||B.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(Ne,Q){"use strict";var S;Q.Q=C,S=A;var B=",",Z=" ",s="";function C(u){for(var p=[],b=String(u||s),g=b.indexOf(B),y=0,v=!1,c;!v;)g===-1&&(g=b.length,v=!0),c=b.slice(y,g).trim(),(c||!v)&&p.push(c),y=g+1,g=b.indexOf(B,y);return p}function A(u,p){var b=p||{},g=b.padLeft===!1?s:Z,y=b.padRight?Z:s;return u[u.length-1]===s&&(u=u.concat(s)),u.join(y+B+g).trim()}},86204:function(Ne){"use strict";var Q=typeof Reflect=="object"?Reflect:null,S=Q&&typeof Q.apply=="function"?Q.apply:function(k,L,H){return Function.prototype.apply.call(k,L,H)},B;Q&&typeof Q.ownKeys=="function"?B=Q.ownKeys:Object.getOwnPropertySymbols?B=function(k){return Object.getOwnPropertyNames(k).concat(Object.getOwnPropertySymbols(k))}:B=function(k){return Object.getOwnPropertyNames(k)};function Z(N){console&&console.warn&&console.warn(N)}var s=Number.isNaN||function(k){return k!==k};function C(){C.init.call(this)}Ne.exports=C,Ne.exports.once=T,C.EventEmitter=C,C.prototype._events=void 0,C.prototype._eventsCount=0,C.prototype._maxListeners=void 0;var A=10;function u(N){if(typeof N!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof N)}Object.defineProperty(C,"defaultMaxListeners",{enumerable:!0,get:function(){return A},set:function(N){if(typeof N!="number"||N<0||s(N))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+N+".");A=N}}),C.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},C.prototype.setMaxListeners=function(k){if(typeof k!="number"||k<0||s(k))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+k+".");return this._maxListeners=k,this};function p(N){return N._maxListeners===void 0?C.defaultMaxListeners:N._maxListeners}C.prototype.getMaxListeners=function(){return p(this)},C.prototype.emit=function(k){for(var L=[],H=1;H<arguments.length;H++)L.push(arguments[H]);var D=k==="error",V=this._events;if(V!==void 0)D=D&&V.error===void 0;else if(!D)return!1;if(D){var P;if(L.length>0&&(P=L[0]),P instanceof Error)throw P;var U=new Error("Unhandled error."+(P?" ("+P.message+")":""));throw U.context=P,U}var G=V[k];if(G===void 0)return!1;if(typeof G=="function")S(G,this,L);else for(var J=G.length,ee=h(G,J),H=0;H<J;++H)S(ee[H],this,L);return!0};function b(N,k,L,H){var D,V,P;if(u(L),V=N._events,V===void 0?(V=N._events=Object.create(null),N._eventsCount=0):(V.newListener!==void 0&&(N.emit("newListener",k,L.listener?L.listener:L),V=N._events),P=V[k]),P===void 0)P=V[k]=L,++N._eventsCount;else if(typeof P=="function"?P=V[k]=H?[L,P]:[P,L]:H?P.unshift(L):P.push(L),D=p(N),D>0&&P.length>D&&!P.warned){P.warned=!0;var U=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(k)+" listeners added. Use emitter.setMaxListeners() to increase limit");U.name="MaxListenersExceededWarning",U.emitter=N,U.type=k,U.count=P.length,Z(U)}return N}C.prototype.addListener=function(k,L){return b(this,k,L,!1)},C.prototype.on=C.prototype.addListener,C.prototype.prependListener=function(k,L){return b(this,k,L,!0)};function g(){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 y(N,k,L){var H={fired:!1,wrapFn:void 0,target:N,type:k,listener:L},D=g.bind(H);return D.listener=L,H.wrapFn=D,D}C.prototype.once=function(k,L){return u(L),this.on(k,y(this,k,L)),this},C.prototype.prependOnceListener=function(k,L){return u(L),this.prependListener(k,y(this,k,L)),this},C.prototype.removeListener=function(k,L){var H,D,V,P,U;if(u(L),D=this._events,D===void 0)return this;if(H=D[k],H===void 0)return this;if(H===L||H.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete D[k],D.removeListener&&this.emit("removeListener",k,H.listener||L));else if(typeof H!="function"){for(V=-1,P=H.length-1;P>=0;P--)if(H[P]===L||H[P].listener===L){U=H[P].listener,V=P;break}if(V<0)return this;V===0?H.shift():m(H,V),H.length===1&&(D[k]=H[0]),D.removeListener!==void 0&&this.emit("removeListener",k,U||L)}return this},C.prototype.off=C.prototype.removeListener,C.prototype.removeAllListeners=function(k){var L,H,D;if(H=this._events,H===void 0)return this;if(H.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):H[k]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete H[k]),this;if(arguments.length===0){var V=Object.keys(H),P;for(D=0;D<V.length;++D)P=V[D],P!=="removeListener"&&this.removeAllListeners(P);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=H[k],typeof L=="function")this.removeListener(k,L);else if(L!==void 0)for(D=L.length-1;D>=0;D--)this.removeListener(k,L[D]);return this};function v(N,k,L){var H=N._events;if(H===void 0)return[];var D=H[k];return D===void 0?[]:typeof D=="function"?L?[D.listener||D]:[D]:L?E(D):h(D,D.length)}C.prototype.listeners=function(k){return v(this,k,!0)},C.prototype.rawListeners=function(k){return v(this,k,!1)},C.listenerCount=function(N,k){return typeof N.listenerCount=="function"?N.listenerCount(k):c.call(N,k)},C.prototype.listenerCount=c;function c(N){var k=this._events;if(k!==void 0){var L=k[N];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}C.prototype.eventNames=function(){return this._eventsCount>0?B(this._events):[]};function h(N,k){for(var L=new Array(k),H=0;H<k;++H)L[H]=N[H];return L}function m(N,k){for(;k+1<N.length;k++)N[k]=N[k+1];N.pop()}function E(N){for(var k=new Array(N.length),L=0;L<k.length;++L)k[L]=N[L].listener||N[L];return k}function T(N,k){return new Promise(function(L,H){function D(P){N.removeListener(k,V),H(P)}function V(){typeof N.removeListener=="function"&&N.removeListener("error",D),L([].slice.call(arguments))}R(N,k,V,{once:!0}),k!=="error"&&I(N,D,{once:!0})})}function I(N,k,L){typeof N.on=="function"&&R(N,"error",k,L)}function R(N,k,L,H){if(typeof N.on=="function")H.once?N.once(k,L):N.on(k,L);else if(typeof N.addEventListener=="function")N.addEventListener(k,function D(V){H.once&&N.removeEventListener(k,D),L(V)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof N)}},58847:function(Ne){"use strict";var Q=Object.prototype.hasOwnProperty,S=Object.prototype.toString,B=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,s=function(b){return typeof Array.isArray=="function"?Array.isArray(b):S.call(b)==="[object Array]"},C=function(b){if(!b||S.call(b)!=="[object Object]")return!1;var g=Q.call(b,"constructor"),y=b.constructor&&b.constructor.prototype&&Q.call(b.constructor.prototype,"isPrototypeOf");if(b.constructor&&!g&&!y)return!1;var v;for(v in b);return typeof v=="undefined"||Q.call(b,v)},A=function(b,g){B&&g.name==="__proto__"?B(b,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):b[g.name]=g.newValue},u=function(b,g){if(g==="__proto__")if(Q.call(b,g)){if(Z)return Z(b,g).value}else return;return b[g]};Ne.exports=function p(){var b,g,y,v,c,h,m=arguments[0],E=1,T=arguments.length,I=!1;for(typeof m=="boolean"&&(I=m,m=arguments[1]||{},E=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});E<T;++E)if(b=arguments[E],b!=null)for(g in b)y=u(m,g),v=u(b,g),m!==v&&(I&&v&&(C(v)||(c=s(v)))?(c?(c=!1,h=y&&s(y)?y:[]):h=y&&C(y)?y:{},A(m,{name:g,newValue:p(I,h,v)})):typeof v!="undefined"&&A(m,{name:g,newValue:v}));return m}},12378:function(Ne,Q,S){"use strict";S.d(Q,{$u:function(){return g},BD:function(){return fe},E9:function(){return b},FF:function(){return br},FJ:function(){return k},Hn:function(){return N},KX:function(){return H},NB:function(){return Ue},S0:function(){return ot},UL:function(){return y},Vk:function(){return R},Vm:function(){return et},YI:function(){return Ge},ZA:function(){return s},Zt:function(){return v},al:function(){return ne},bn:function(){return Ce},bx:function(){return z},g2:function(){return Ee},h1:function(){return G},hD:function(){return $e},l4:function(){return u},rU:function(){return rt},s_:function(){return X},uz:function(){return Be},z6:function(){return c}}),Ne=S.hmd(Ne),function(){var me;function jn(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function Cn(e){var t=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:jn(e)}}function qn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var Ir=typeof Object.create=="function"?Object.create:function(e){function t(){}return t.prototype=e,new t},Vr;if(typeof Object.setPrototypeOf=="function")Vr=Object.setPrototypeOf;else{var fr;e:{var oo={a:!0},Zr={};try{Zr.__proto__=oo,fr=Zr.a;break e}catch(e){}fr=!1}Vr=fr?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var Qr=Vr;function Kn(e,t){if(e.prototype=Ir(t.prototype),e.prototype.constructor=e,Qr)Qr(e,t);else for(var n in t)if(n!="prototype")if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(t,n);r&&Object.defineProperty(e,n,r)}else e[n]=t[n];e.QA=t.prototype}var Mn=typeof S.g!="undefined"&&S.g!=null?S.g:self,ai=typeof Object.assign=="function"?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Nr=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};function zr(e,t){if(t){var n=Mn;e=e.split(".");for(var r=0;r<e.length-1;r++){var i=e[r];i in n||(n[i]={}),n=n[i]}e=e[e.length-1],r=n[e],t=t(r),t!=r&&t!=null&&Nr(n,e,{writable:!0,value:t})}}zr("Object.assign",function(e){return e||ai}),zr("Array.prototype.fill",function(e){return e||function(t,n,r){var i=this.length||0;for(0>n&&(n=Math.max(0,i+n)),(r==null||r>i)&&(r=i),r=Number(r),0>r&&(r=Math.max(0,i+r)),n=Number(n||0);n<r;n++)this[n]=t;return this}});var pn=typeof globalThis=="object"&&globalThis||typeof S.g=="object"&&S.g.global===S.g&&S.g||typeof self=="object"&&self.self===self&&self||{};pn.requestAnimationFrame===void 0&&(pn.setImmediate===void 0?pn.requestAnimationFrame=function(e){pn.setTimeout(e,0)}:pn.requestAnimationFrame=pn.setImmediate);function Vn(){}function Mt(e,t){var n=-1;return function(){var r=this,i=arguments;n!==-1&&pn.clearTimeout(n),n=It(function(){n=-1,e.apply(r,i)},t)}}function It(e,t){return pn.setTimeout(e,t)}function On(e){return pn.document.createElement(e)}function ft(e){throw Error(e)}function en(e,t){e="The object is frozen, so its properties cannot be set: "+e.toString(),t!==void 0&&(e+=" to value: "+t),ft(e)}function An(e,t,n,r){n=n===null?"*":typeof n=="string"?n:typeof n=="function"&&typeof n.className=="string"?n.className:"",r!==void 0&&(n+="."+r),ft(n+" is not in the range "+t+": "+e)}function Un(e){pn.console&&pn.console.log(e)}function gt(e){return typeof e=="object"&&e!==null}function gn(e){return Array.isArray(e)||pn.NodeList&&e instanceof pn.NodeList||pn.HTMLCollection&&e instanceof pn.HTMLCollection}function Hn(e){return Array.prototype.slice.call(e)}function At(e,t,n){Array.isArray(e)?t>=e.length?e.push(n):e.splice(t,0,n):ft("Cannot insert an object into an HTMLCollection or NodeList: "+n+" at "+t)}function we(e,t){Array.isArray(e)?t>=e.length?e.pop():e.splice(t,1):ft("Cannot remove an object from an HTMLCollection or NodeList at "+t)}function Bn(){var e=vi.pop();return e===void 0?[]:e}function wn(e){e.length=0,vi.push(e)}function Ht(e){if(typeof e=="function"){if(e.className)return e.className;if(e.name)return e.name;var t=e.toString();if(t=t.substring(9,t.indexOf("(")).trim(),t!=="")return e._className=t}else if(gt(e)&&e.constructor)return Ht(e.constructor);return typeof e}function lr(e){var t=e;return gt(e)&&(e.text?t=e.text:e.name?t=e.name:e.key!==void 0?t=e.key:e.id!==void 0?t=e.id:e.constructor===Object&&(e.Text?t=e.Text:e.Name?t=e.Name:e.Key!==void 0?t=e.Key:e.Id!==void 0?t=e.Id:e.ID!==void 0&&(t=e.ID))),t===void 0?"undefined":t===null?"null":t.toString()}function pr(e,t){if(e.hasOwnProperty(t))return!0;for(e=Object.getPrototypeOf(e);e&&e!==Function;){if(e.hasOwnProperty(t))return!0;var n=e.CA;if(n&&n[t])return!0;e=Object.getPrototypeOf(e)}return!1}function xr(e,t,n){Object.defineProperty(Fi.prototype,e,{get:t,set:n})}function Pn(e){for(var t=[],n=0;256>n;n++)t["0123456789abcdef".charAt(n>>4)+"0123456789abcdef".charAt(n&15)]=String.fromCharCode(n);e.length%2&&(e="0"+e),n=[];for(var r=0,i=0;i<e.length;i+=2)n[r++]=t[e.substr(i,2)];for(e=n.join(""),e=e===""?"0":e,t=[],n=0;256>n;n++)t[n]=n;for(n=r=0;256>n;n++)r=(r+t[n]+119)%256,i=t[n],t[n]=t[r],t[r]=i;r=n=0;for(var o="",a=0;a<e.length;a++)n=(n+1)%256,r=(r+t[n])%256,i=t[n],t[n]=t[r],t[r]=i,o+=String.fromCharCode(e.charCodeAt(a)^t[(t[n]+t[r])%256]);return o.indexOf("GoJS 2.1 evaluation")>-1||o.indexOf("\xA9 1998-2021 Northwoods Software")>-1||o.indexOf("Not for distribution or production use")>-1||o.indexOf("gojs.net")>-1?"":o}var St=pn.navigator!==void 0&&0<pn.navigator.userAgent.indexOf("Trident/7"),gr=pn.navigator!==void 0&&pn.navigator.platform!==void 0&&pn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,vi=[];Object.freeze([]),Vn.className="Util",Vn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Vn.adym="gojs.net",Vn.vfo="28e645fdb266",Vn.className="Util";function Dt(e,t,n){Wn(this),this.j=e,this.xa=t,this.o=n}Dt.prototype.toString=function(){return"EnumValue."+this.xa};function Ji(e,t){return t==null||t===""?null:e[t]}Mn.Object.defineProperties(Dt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Dt.className="EnumValue";function Ri(){this.ew=[]}Ri.prototype.toString=function(){return this.ew.join("")},Ri.prototype.add=function(e){e!==""&&this.ew.push(e)},Ri.className="StringBuilder";function oi(){}oi.className="PropertyCollection";var Oi={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(e){pn.console&&pn.console.log(e)},HA:function(e,t,n,r){e.strokeStyle="red",e.fillStyle="red",e.font="8px sans-serif",e.beginPath(),e.moveTo(-10,0),e.lineTo(10,0),e.moveTo(0,-10),e.lineTo(0,10),e.stroke(),e.setTransform(1,0,0,1,0,0),e.scale(n,n),e.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),e.lineWidth=2,e.beginPath(),e.moveTo(r.left,r.top+20),e.lineTo(r.left,r.top),e.lineTo(r.left+20,r.top),e.moveTo(r.right,r.bottom-20),e.lineTo(r.right,r.bottom),e.lineTo(r.right-20,r.bottom),e.stroke(),e.fillText("DB: "+Math.round(r.x)+", "+Math.round(r.y)+", "+Math.round(r.width)+", "+Math.round(r.height),r.left,r.top-5)},DA:function(e){var t={},n;for(n in e){if(t.x=n,t.x!=="licenseKey"){var r=e[t.x];if(r.prototype!==void 0){t.Zl=Object.getOwnPropertyNames(r.prototype);for(var i={Tj:0};i.Tj<t.Zl.length;i={Tj:i.Tj},i.Tj++){var o=Object.getOwnPropertyDescriptor(r.prototype,t.Zl[i.Tj]);o.get!==void 0&&o.set===void 0&&Object.defineProperty(r.prototype,t.Zl[i.Tj],{set:function(a,d){return function(){throw Error("Property "+a.Zl[d.Tj]+" of "+a.x+" is read-only.")}}(t,i)})}}}t={Zl:t.Zl,x:t.x}}}};function Rr(){}Rr.prototype.reset=function(){},Rr.prototype.next=function(){return!1},Rr.prototype.Ad=function(){return!1},Rr.prototype.first=function(){return null},Rr.prototype.any=function(){return!1},Rr.prototype.all=function(){return!0},Rr.prototype.each=function(){return this},Rr.prototype.map=function(){return this},Rr.prototype.filter=function(){return this},Rr.prototype.de=function(){},Rr.prototype.toString=function(){return"EmptyIterator"},Mn.Object.defineProperties(Rr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Rr.prototype.first=Rr.prototype.first,Rr.prototype.hasNext=Rr.prototype.Ad,Rr.prototype.next=Rr.prototype.next,Rr.prototype.reset=Rr.prototype.reset;var li=null;Rr.className="EmptyIterator",li=new Rr;function Pr(e){this.key=-1,this.value=e}Pr.prototype.reset=function(){this.key=-1},Pr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Pr.prototype.Ad=function(){return this.next()},Pr.prototype.first=function(){return this.key=0,this.value},Pr.prototype.any=function(e){return this.key=-1,e(this.value)},Pr.prototype.all=function(e){return this.key=-1,e(this.value)},Pr.prototype.each=function(e){return this.key=-1,e(this.value),this},Pr.prototype.map=function(e){return new Pr(e(this.value))},Pr.prototype.filter=function(e){return e(this.value)?new Pr(this.value):li},Pr.prototype.de=function(){this.value=null},Pr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Mn.Object.defineProperties(Pr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Pr.prototype.first=Pr.prototype.first,Pr.prototype.hasNext=Pr.prototype.Ad,Pr.prototype.next=Pr.prototype.next,Pr.prototype.reset=Pr.prototype.reset,Pr.className="SingletonIterator";function qr(e){this.Bb=e,this.qf=null,e.Sa=null,this.qa=e.Ja,this.Za=-1}qr.prototype.reset=function(){var e=this.Bb;e.Sa=null,this.qa=e.Ja,this.Za=-1},qr.prototype.next=function(){var e=this.Bb;if(e.Ja!==this.qa&&0>this.key)return!1;e=e.s;var t=e.length,n=++this.Za,r=this.qf;if(r!==null)for(;n<t;){var i=e[n];if(r(i))return this.key=this.Za=n,this.value=i,!0;n++}else{if(n<t)return this.key=n,this.value=e[n],!0;this.de()}return!1},qr.prototype.Ad=function(){return this.next()},qr.prototype.first=function(){var e=this.Bb;this.qa=e.Ja,this.Za=0,e=e.s;var t=e.length,n=this.qf;if(n!==null){for(var r=0;r<t;){var i=e[r];if(n(i))return this.key=this.Za=r,this.value=i;r++}return null}return 0<t?(e=e[0],this.key=0,this.value=e):null},qr.prototype.any=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,r=this.qf,i=0;i<n;i++){var o=t[i];if((r===null||r(o))&&e(o))return!0}return!1},qr.prototype.all=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,r=this.qf,i=0;i<n;i++){var o=t[i];if((r===null||r(o))&&!e(o))return!1}return!0},qr.prototype.each=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,r=this.qf,i=0;i<n;i++){var o=t[i];(r===null||r(o))&&e(o)}return this},qr.prototype.map=function(e){var t=this.Bb;t.Sa=null,this.Za=-1;var n=[];t=t.s;for(var r=t.length,i=this.qf,o=0;o<r;o++){var a=t[o];(i===null||i(a))&&n.push(e(a))}return e=new Gt,e.s=n,e.xb(),e.iterator},qr.prototype.filter=function(e){var t=this.Bb;t.Sa=null,this.Za=-1;var n=[];t=t.s;for(var r=t.length,i=this.qf,o=0;o<r;o++){var a=t[o];(i===null||i(a))&&e(a)&&n.push(a)}return e=new Gt,e.s=n,e.xb(),e.iterator},qr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},qr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Mn.Object.defineProperties(qr.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(e){this.qf=e}},count:{get:function(){var e=this.qf;if(e!==null){for(var t=0,n=this.Bb.s,r=n.length,i=0;i<r;i++)e(n[i])&&t++;return t}return this.Bb.s.length}}}),qr.prototype.first=qr.prototype.first,qr.prototype.hasNext=qr.prototype.Ad,qr.prototype.next=qr.prototype.next,qr.prototype.reset=qr.prototype.reset,qr.className="ListIterator";function ri(e){this.Bb=e,e.Hg=null,this.qa=e.Ja,this.Za=e.s.length}ri.prototype.reset=function(){var e=this.Bb;e.Hg=null,this.qa=e.Ja,this.Za=e.s.length},ri.prototype.next=function(){var e=this.Bb;if(e.Ja!==this.qa&&0>this.key)return!1;var t=--this.Za;return 0<=t?(this.key=t,this.value=e.s[t],!0):(this.de(),!1)},ri.prototype.Ad=function(){return this.next()},ri.prototype.first=function(){var e=this.Bb;this.qa=e.Ja;var t=e.s;return this.Za=e=t.length-1,0<=e?(t=t[e],this.key=e,this.value=t):null},ri.prototype.any=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)if(e(t[n]))return!0;return!1},ri.prototype.all=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)if(!e(t[n]))return!1;return!0},ri.prototype.each=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)e(t[n]);return this},ri.prototype.map=function(e){var t=this.Bb;t.Hg=null;var n=[];t=t.s;var r=t.length;for(this.Za=r,--r;0<=r;r--)n.push(e(t[r]));return e=new Gt,e.s=n,e.xb(),e.iterator},ri.prototype.filter=function(e){var t=this.Bb;t.Hg=null;var n=[];t=t.s;var r=t.length;for(this.Za=r,--r;0<=r;r--){var i=t[r];e(i)&&n.push(i)}return e=new Gt,e.s=n,e.xb(),e.iterator},ri.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},ri.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Mn.Object.defineProperties(ri.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),ri.prototype.first=ri.prototype.first,ri.prototype.hasNext=ri.prototype.Ad,ri.prototype.next=ri.prototype.next,ri.prototype.reset=ri.prototype.reset,ri.className="ListIteratorBackwards";function Gt(e){Wn(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof e=="string"&&ft("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}me=Gt.prototype,me.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},me.freeze=function(){return this._isFrozen=!0,this},me.ka=function(){return this._isFrozen=!1,this},me.toString=function(){return"List()#"+rr(this)},me.add=function(e){return e===null?this:(this._isFrozen&&en(this,e),this.s.push(e),this.xb(),this)},me.push=function(e){this.add(e)},me.addAll=function(e){if(e===null)return this;this._isFrozen&&en(this);var t=this.s;if(gn(e))for(var n=e.length,r=0;r<n;r++)t.push(e[r]);else for(e=e.iterator;e.next();)t.push(e.value);return this.xb(),this},me.clear=function(){this._isFrozen&&en(this),this.s.length=0,this.xb()},me.contains=function(e){return e===null?!1:this.s.indexOf(e)!==-1},me.has=function(e){return this.contains(e)},me.indexOf=function(e){return e===null?-1:this.s.indexOf(e)},me.M=function(e){var t=this.s;return(0>e||e>=t.length)&&An(e,"0 <= i < length",Gt,"elt:i"),t[e]},me.get=function(e){return this.M(e)},me.cd=function(e,t){var n=this.s;(0>e||e>=n.length)&&An(e,"0 <= i < length",Gt,"setElt:i"),this._isFrozen&&en(this,e),n[e]=t},me.set=function(e,t){this.cd(e,t)},me.first=function(){var e=this.s;return e.length===0?null:e[0]},me.jc=function(){var e=this.s,t=e.length;return 0<t?e[t-1]:null},me.pop=function(){this._isFrozen&&en(this);var e=this.s;return 0<e.length?e.pop():null},Gt.prototype.any=function(e){for(var t=this.s,n=t.length,r=0;r<n;r++)if(e(t[r]))return!0;return!1},Gt.prototype.all=function(e){for(var t=this.s,n=t.length,r=0;r<n;r++)if(!e(t[r]))return!1;return!0},Gt.prototype.each=function(e){for(var t=this.s,n=t.length,r=0;r<n;r++)e(t[r]);return this},Gt.prototype.map=function(e){for(var t=new Gt,n=[],r=this.s,i=r.length,o=0;o<i;o++)n.push(e(r[o]));return t.s=n,t.xb(),t},Gt.prototype.filter=function(e){for(var t=new Gt,n=[],r=this.s,i=r.length,o=0;o<i;o++){var a=r[o];e(a)&&n.push(a)}return t.s=n,t.xb(),t},me=Gt.prototype,me.Gb=function(e,t){0>e&&An(e,">= 0",Gt,"insertAt:i"),this._isFrozen&&en(this,e);var n=this.s;e>=n.length?n.push(t):n.splice(e,0,t),this.xb()},me.remove=function(e){if(e===null)return!1;this._isFrozen&&en(this,e);var t=this.s;return e=t.indexOf(e),e===-1?!1:(e===t.length-1?t.pop():t.splice(e,1),this.xb(),!0)},me.delete=function(e){return this.remove(e)},me.mb=function(e){var t=this.s;(0>e||e>=t.length)&&An(e,"0 <= i < length",Gt,"removeAt:i"),this._isFrozen&&en(this,e),e===t.length-1?t.pop():t.splice(e,1),this.xb()},me.removeRange=function(e,t){var n=this.s,r=n.length;if(0>e)e=0;else if(e>=r)return this;if(0>t)return this;if(t>=r&&(t=r-1),e>t)return this;this._isFrozen&&en(this);for(var i=e,o=t+1;o<r;)n[i++]=n[o++];return n.length=r-(t-e+1),this.xb(),this},Gt.prototype.copy=function(){var e=new Gt,t=this.s;return 0<t.length&&(e.s=Array.prototype.slice.call(t)),e},me=Gt.prototype,me.Fa=function(){for(var e=this.s,t=this.count,n=Array(t),r=0;r<t;r++)n[r]=e[r];return n},me.Iv=function(){for(var e=new Kt,t=this.s,n=this.count,r=0;r<n;r++)e.add(t[r]);return e},me.sort=function(e){return this._isFrozen&&en(this),this.s.sort(e),this.xb(),this},me.zi=function(e,t,n){var r=this.s,i=r.length;t===void 0&&(t=0),n===void 0&&(n=i),this._isFrozen&&en(this);var o=n-t;if(1>=o)return this;if((0>t||t>=i-1)&&An(t,"0 <= from < length",Gt,"sortRange:from"),o===2)return n=r[t],i=r[t+1],0<e(n,i)&&(r[t]=i,r[t+1]=n,this.xb()),this;if(t===0)if(n>=i)r.sort(e);else for(t=r.slice(0,n),t.sort(e),e=0;e<n;e++)r[e]=t[e];else if(n>=i)for(n=r.slice(t),n.sort(e),e=t;e<i;e++)r[e]=n[e-t];else for(i=r.slice(t,n),i.sort(e),e=t;e<n;e++)r[e]=i[e-t];return this.xb(),this},me.reverse=function(){return this._isFrozen&&en(this),this.s.reverse(),this.xb(),this},Mn.Object.defineProperties(Gt.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return li;var e=this.Sa;return e!==null?(e.reset(),e):new qr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return li;var e=this.Hg;return e!==null?(e.reset(),e):new ri(this)}}}),Gt.prototype.reverse=Gt.prototype.reverse,Gt.prototype.sortRange=Gt.prototype.zi,Gt.prototype.sort=Gt.prototype.sort,Gt.prototype.toSet=Gt.prototype.Iv,Gt.prototype.toArray=Gt.prototype.Fa,Gt.prototype.removeRange=Gt.prototype.removeRange,Gt.prototype.removeAt=Gt.prototype.mb,Gt.prototype.delete=Gt.prototype.delete,Gt.prototype.remove=Gt.prototype.remove,Gt.prototype.insertAt=Gt.prototype.Gb,Gt.prototype.pop=Gt.prototype.pop,Gt.prototype.last=Gt.prototype.jc,Gt.prototype.first=Gt.prototype.first,Gt.prototype.set=Gt.prototype.set,Gt.prototype.setElt=Gt.prototype.cd,Gt.prototype.get=Gt.prototype.get,Gt.prototype.elt=Gt.prototype.M,Gt.prototype.indexOf=Gt.prototype.indexOf,Gt.prototype.has=Gt.prototype.has,Gt.prototype.contains=Gt.prototype.contains,Gt.prototype.clear=Gt.prototype.clear,Gt.prototype.addAll=Gt.prototype.addAll,Gt.prototype.push=Gt.prototype.push,Gt.prototype.add=Gt.prototype.add,Gt.prototype.thaw=Gt.prototype.ka,Gt.prototype.freeze=Gt.prototype.freeze,Gt.className="List";function ui(e){this.eg=e,e.Sa=null,this.qa=e.Ja,this.sa=null}ui.prototype.reset=function(){var e=this.eg;e.Sa=null,this.qa=e.Ja,this.sa=null},ui.prototype.next=function(){var e=this.eg;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},ui.prototype.Ad=function(){return this.next()},ui.prototype.first=function(){var e=this.eg;if(this.qa=e.Ja,e=e.ea,e!==null){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},ui.prototype.any=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},ui.prototype.all=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},ui.prototype.each=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;)e(t.value),t=t.va;return this},ui.prototype.map=function(e){var t=this.eg;t.Sa=null;var n=new Gt;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},ui.prototype.filter=function(e){var t=this.eg;t.Sa=null;var n=new Gt;for(t=t.ea;t!==null;){var r=t.value;e(r)&&n.add(r),t=t.va}return n.iterator},ui.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},ui.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Mn.Object.defineProperties(ui.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),ui.prototype.first=ui.prototype.first,ui.prototype.hasNext=ui.prototype.Ad,ui.prototype.next=ui.prototype.next,ui.prototype.reset=ui.prototype.reset,ui.className="SetIterator";function Kt(e){Wn(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof e=="string"&&ft("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}me=Kt.prototype,me.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},me.freeze=function(){return this._isFrozen=!0,this},me.ka=function(){return this._isFrozen=!1,this},me.toString=function(){return"Set()#"+rr(this)},me.add=function(e){if(e===null)return this;this._isFrozen&&en(this,e);var t=e;return gt(e)&&(t=er(e)),this.Tb[t]===void 0&&(this.Sb++,e=new _t(e,e),this.Tb[t]=e,t=this.kf,t===null?this.ea=e:(e.ll=t,t.va=e),this.kf=e,this.xb()),this},me.addAll=function(e){if(e===null)return this;if(this._isFrozen&&en(this),gn(e))for(var t=e.length,n=0;n<t;n++)this.add(e[n]);else for(e=e.iterator;e.next();)this.add(e.value);return this},me.contains=function(e){if(e===null)return!1;var t=e;return gt(e)&&(t=rr(e),t===void 0)?!1:this.Tb[t]!==void 0},me.has=function(e){return this.contains(e)},me.Sy=function(e){if(e===null)return!0;for(e=e.iterator;e.next();)if(!this.contains(e.value))return!1;return!0},me.Ty=function(e){if(e===null)return!0;for(e=e.iterator;e.next();)if(this.contains(e.value))return!0;return!1},me.first=function(){var e=this.ea;return e===null?null:e.value},Kt.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},Kt.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},Kt.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t.value),t=t.va;return this},Kt.prototype.map=function(e){for(var t=new Kt,n=this.ea;n!==null;)t.add(e(n.value)),n=n.va;return t},Kt.prototype.filter=function(e){for(var t=new Kt,n=this.ea;n!==null;){var r=n.value;e(r)&&t.add(r),n=n.va}return t},me=Kt.prototype,me.remove=function(e){if(e===null)return!1;this._isFrozen&&en(this,e);var t=e;if(gt(e)&&(t=rr(e),t===void 0)||(e=this.Tb[t],e===void 0))return!1;var n=e.va,r=e.ll;return n!==null&&(n.ll=r),r!==null&&(r.va=n),this.ea===e&&(this.ea=n),this.kf===e&&(this.kf=r),delete this.Tb[t],this.Sb--,this.xb(),!0},me.delete=function(e){return this.remove(e)},me.hp=function(e){if(e===null)return this;if(this._isFrozen&&en(this),gn(e))for(var t=e.length,n=0;n<t;n++)this.remove(e[n]);else for(e=e.iterator;e.next();)this.remove(e.value);return this},me.pA=function(e){if(e===null||this.count===0)return this;this._isFrozen&&en(this);var t=new Kt;t.addAll(e),e=[];for(var n=this.iterator;n.next();){var r=n.value;t.contains(r)||e.push(r)}return this.hp(e),this},me.clear=function(){this._isFrozen&&en(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Kt.prototype.copy=function(){var e=new Kt,t=this.Tb,n;for(n in t)e.add(t[n].value);return e},Kt.prototype.Fa=function(){var e=Array(this.Sb),t=this.Tb,n=0,r;for(r in t)e[n]=t[r].value,n++;return e},Kt.prototype.Hv=function(){var e=new Gt,t=this.Tb,n;for(n in t)e.add(t[n].value);return e};function Wn(e){e.__gohashid=Di++}function er(e){var t=e.__gohashid;return t===void 0&&(t=Di++,e.__gohashid=t),t}function rr(e){return e.__gohashid}Mn.Object.defineProperties(Kt.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return li;var e=this.Sa;return e!==null?(e.reset(),e):new ui(this)}}}),Kt.prototype.toList=Kt.prototype.Hv,Kt.prototype.toArray=Kt.prototype.Fa,Kt.prototype.clear=Kt.prototype.clear,Kt.prototype.retainAll=Kt.prototype.pA,Kt.prototype.removeAll=Kt.prototype.hp,Kt.prototype.delete=Kt.prototype.delete,Kt.prototype.remove=Kt.prototype.remove,Kt.prototype.first=Kt.prototype.first,Kt.prototype.containsAny=Kt.prototype.Ty,Kt.prototype.containsAll=Kt.prototype.Sy,Kt.prototype.has=Kt.prototype.has,Kt.prototype.contains=Kt.prototype.contains,Kt.prototype.addAll=Kt.prototype.addAll,Kt.prototype.add=Kt.prototype.add,Kt.prototype.thaw=Kt.prototype.ka,Kt.prototype.freeze=Kt.prototype.freeze;var Di=1;Kt.className="Set",Kt.uniqueHash=Wn,Kt.hashIdUnique=er,Kt.hashId=rr;function Li(e){this.ma=e,this.qa=e.Ja,this.sa=null}Li.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Li.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=this.key=e=t.key,!0):(this.de(),!1)},Li.prototype.Ad=function(){return this.next()},Li.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,e=e.ea,e!==null?(this.sa=e,this.value=this.key=e=e.key):null},Li.prototype.any=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;){if(e(t.key))return!0;t=t.va}return!1},Li.prototype.all=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;){if(!e(t.key))return!1;t=t.va}return!0},Li.prototype.each=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;)e(t.key),t=t.va;return this},Li.prototype.map=function(e){var t=this.ma;this.sa=null;var n=new Gt;for(t=t.ea;t!==null;)n.add(e(t.key)),t=t.va;return n.iterator},Li.prototype.filter=function(e){var t=this.ma;this.sa=null;var n=new Gt;for(t=t.ea;t!==null;){var r=t.key;e(r)&&n.add(r),t=t.va}return n.iterator},Li.prototype.de=function(){this.value=this.key=null,this.qa=-1},Li.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Mn.Object.defineProperties(Li.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Li.prototype.first=Li.prototype.first,Li.prototype.hasNext=Li.prototype.Ad,Li.prototype.next=Li.prototype.next,Li.prototype.reset=Li.prototype.reset,Li.className="MapKeySetIterator";function pi(e){Kt.call(this),Wn(this),this._isFrozen=!0,this.ma=e}Kn(pi,Kt),me=pi.prototype,me.freeze=function(){return this},me.ka=function(){return this},me.toString=function(){return"MapKeySet("+this.ma.toString()+")"},me.add=function(){ft("This Set is read-only: "+this.toString())},me.contains=function(e){return this.ma.contains(e)},me.has=function(e){return this.contains(e)},me.remove=function(){ft("This Set is read-only: "+this.toString())},me.delete=function(e){return this.remove(e)},me.clear=function(){ft("This Set is read-only: "+this.toString())},me.first=function(){var e=this.ma.ea;return e!==null?e.key:null},pi.prototype.any=function(e){for(var t=this.ma.ea;t!==null;){if(e(t.key))return!0;t=t.va}return!1},pi.prototype.all=function(e){for(var t=this.ma.ea;t!==null;){if(!e(t.key))return!1;t=t.va}return!0},pi.prototype.each=function(e){for(var t=this.ma.ea;t!==null;)e(t.key),t=t.va;return this},pi.prototype.map=function(e){for(var t=new Kt,n=this.ma.ea;n!==null;)t.add(e(n.key)),n=n.va;return t},pi.prototype.filter=function(e){for(var t=new Kt,n=this.ma.ea;n!==null;){var r=n.key;e(r)&&t.add(r),n=n.va}return t},pi.prototype.copy=function(){return new pi(this.ma)},pi.prototype.Iv=function(){var e=new Kt,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},pi.prototype.Fa=function(){var e=this.ma.Tb,t=Array(this.ma.Sb),n=0,r;for(r in e)t[n]=e[r].key,n++;return t},pi.prototype.Hv=function(){var e=new Gt,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},Mn.Object.defineProperties(pi.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?li:new Li(this.ma)}}}),pi.prototype.toList=pi.prototype.Hv,pi.prototype.toArray=pi.prototype.Fa,pi.prototype.toSet=pi.prototype.Iv,pi.prototype.first=pi.prototype.first,pi.prototype.clear=pi.prototype.clear,pi.prototype.delete=pi.prototype.delete,pi.prototype.remove=pi.prototype.remove,pi.prototype.has=pi.prototype.has,pi.prototype.contains=pi.prototype.contains,pi.prototype.add=pi.prototype.add,pi.prototype.thaw=pi.prototype.ka,pi.prototype.freeze=pi.prototype.freeze,pi.className="MapKeySet";function Mi(e){this.ma=e,e.jf=null,this.qa=e.Ja,this.sa=null}Mi.prototype.reset=function(){var e=this.ma;e.jf=null,this.qa=e.Ja,this.sa=null},Mi.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},Mi.prototype.Ad=function(){return this.next()},Mi.prototype.first=function(){var e=this.ma;if(this.qa=e.Ja,e=e.ea,e!==null){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},Mi.prototype.any=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},Mi.prototype.all=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},Mi.prototype.each=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;)e(t.value),t=t.va;return this},Mi.prototype.map=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Gt;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},Mi.prototype.filter=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Gt;for(t=t.ea;t!==null;){var r=t.value;e(r)&&n.add(r),t=t.va}return n.iterator},Mi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Mi.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Mn.Object.defineProperties(Mi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Mi.prototype.first=Mi.prototype.first,Mi.prototype.hasNext=Mi.prototype.Ad,Mi.prototype.next=Mi.prototype.next,Mi.prototype.reset=Mi.prototype.reset,Mi.className="MapValueSetIterator";function _t(e,t){this.key=e,this.value=t,this.ll=this.va=null}_t.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},_t.className="KeyValuePair";function Vt(e){this.ma=e,e.Sa=null,this.qa=e.Ja,this.sa=null}Vt.prototype.reset=function(){var e=this.ma;e.Sa=null,this.qa=e.Ja,this.sa=null},Vt.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.key=t.key,this.value=t.value,!0):(this.de(),!1)},Vt.prototype.Ad=function(){return this.next()},Vt.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,e=e.ea,e!==null?(this.sa=e,this.key=e.key,this.value=e.value,e):null},Vt.prototype.any=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(e(t))return!0;t=t.va}return!1},Vt.prototype.all=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(!e(t))return!1;t=t.va}return!0},Vt.prototype.each=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;)e(t),t=t.va;return this},Vt.prototype.map=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Gt;for(t=t.ea;t!==null;)n.add(e(t)),t=t.va;return n.iterator},Vt.prototype.filter=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Gt;for(t=t.ea;t!==null;)e(t)&&n.add(t),t=t.va;return n.iterator},Vt.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Vt.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Mn.Object.defineProperties(Vt.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Vt.prototype.first=Vt.prototype.first,Vt.prototype.hasNext=Vt.prototype.Ad,Vt.prototype.next=Vt.prototype.next,Vt.prototype.reset=Vt.prototype.reset,Vt.className="MapIterator";function Et(e){Wn(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof e=="string"&&ft("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}me=Et.prototype,me.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},me.freeze=function(){return this._isFrozen=!0,this},me.ka=function(){return this._isFrozen=!1,this},me.toString=function(){return"Map()#"+rr(this)},me.add=function(e,t){this._isFrozen&&en(this,e);var n=e;gt(e)&&(n=er(e));var r=this.Tb[n];return r===void 0?(this.Sb++,e=new _t(e,t),this.Tb[n]=e,n=this.kf,n===null?this.ea=e:(e.ll=n,n.va=e),this.kf=e,this.xb()):r.value=t,this},me.set=function(e,t){return this.add(e,t)},me.addAll=function(e){if(e===null)return this;if(gn(e))for(var t=e.length,n=0;n<t;n++){var r=e[n];this.add(r.key,r.value)}else if(e instanceof Et)for(e=e.iterator;e.next();)this.add(e.key,e.value);else for(e=e.iterator;e.next();)t=e.value,this.add(t.key,t.value);return this},me.first=function(){return this.ea},Et.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t))return!0;t=t.va}return!1},Et.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t))return!1;t=t.va}return!0},Et.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t),t=t.va;return this},Et.prototype.map=function(e){for(var t=new Et,n=this.ea;n!==null;)t.add(n.key,e(n)),n=n.va;return t},Et.prototype.filter=function(e){for(var t=new Et,n=this.ea;n!==null;)e(n)&&t.add(n.key,n.value),n=n.va;return t},me=Et.prototype,me.contains=function(e){var t=e;return gt(e)&&(t=rr(e),t===void 0)?!1:this.Tb[t]!==void 0},me.has=function(e){return this.contains(e)},me.I=function(e){var t=e;return gt(e)&&(t=rr(e),t===void 0)?null:(e=this.Tb[t],e===void 0?null:e.value)},me.get=function(e){return this.I(e)},me.remove=function(e){if(e===null)return!1;this._isFrozen&&en(this,e);var t=e;if(gt(e)&&(t=rr(e),t===void 0)||(e=this.Tb[t],e===void 0))return!1;var n=e.va,r=e.ll;return n!==null&&(n.ll=r),r!==null&&(r.va=n),this.ea===e&&(this.ea=n),this.kf===e&&(this.kf=r),delete this.Tb[t],this.Sb--,this.xb(),!0},me.delete=function(e){return this.remove(e)},me.clear=function(){this._isFrozen&&en(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},Et.prototype.copy=function(){var e=new Et,t=this.Tb,n;for(n in t){var r=t[n];e.add(r.key,r.value)}return e},Et.prototype.Fa=function(){var e=this.Tb,t=Array(this.Sb),n=0,r;for(r in e){var i=e[r];t[n]=new _t(i.key,i.value),n++}return t},Et.prototype.Lf=function(){return new pi(this)},Mn.Object.defineProperties(Et.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return li;var e=this.Sa;return e!==null?(e.reset(),e):new Vt(this)}},iteratorKeys:{get:function(){return 0>=this.count?li:new Li(this)}},iteratorValues:{get:function(){if(0>=this.count)return li;var e=this.jf;return e!==null?(e.reset(),e):new Mi(this)}}}),Et.prototype.toKeySet=Et.prototype.Lf,Et.prototype.toArray=Et.prototype.Fa,Et.prototype.clear=Et.prototype.clear,Et.prototype.delete=Et.prototype.delete,Et.prototype.remove=Et.prototype.remove,Et.prototype.get=Et.prototype.get,Et.prototype.getValue=Et.prototype.I,Et.prototype.has=Et.prototype.has,Et.prototype.contains=Et.prototype.contains,Et.prototype.first=Et.prototype.first,Et.prototype.addAll=Et.prototype.addAll,Et.prototype.set=Et.prototype.set,Et.prototype.add=Et.prototype.add,Et.prototype.thaw=Et.prototype.ka,Et.prototype.freeze=Et.prototype.freeze,Et.className="Map";function Ie(e,t){e===void 0?this.y=this.x=0:typeof e=="number"&&typeof t=="number"?(this.x=e,this.y=t):ft("Invalid arguments to Point constructor: "+e+", "+t),this._isFrozen=!1}var cn,sn,bn,_n,Rn;Ie.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this},Ie.prototype.h=function(e,t){return this.x=e,this.y=t,this},Ie.prototype.sg=function(e,t){return this.x=e,this.y=t,this},Ie.prototype.set=function(e){return this.x=e.x,this.y=e.y,this},Ie.prototype.copy=function(){var e=new Ie;return e.x=this.x,e.y=this.y,e},me=Ie.prototype,me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},me.freeze=function(){return this._isFrozen=!0,this},me.ka=function(){return Object.isFrozen(this)&&ft("cannot thaw constant: "+this),this._isFrozen=!1,this};function Jt(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var r=e[t++];r&&(n=parseFloat(r));for(var i=0;e[t]==="";)t++;return(r=e[t++])&&(i=parseFloat(r)),new Ie(n,i)}return new Ie}function fn(e){return e.x.toString()+" "+e.y.toString()}me.toString=function(){return"Point("+this.x+","+this.y+")"},me.D=function(e){return e instanceof Ie?this.x===e.x&&this.y===e.y:!1},me.hi=function(e,t){return this.x===e&&this.y===t},me.Xa=function(e){return ht.B(this.x,e.x)&&ht.B(this.y,e.y)},me.add=function(e){return this.x+=e.x,this.y+=e.y,this},me.re=function(e){return this.x-=e.x,this.y-=e.y,this},me.offset=function(e,t){return this.x+=e,this.y+=t,this},Ie.prototype.rotate=function(e){if(e===0)return this;var t=this.x,n=this.y;if(t===0&&n===0)return this;if(360<=e?e-=360:0>e&&(e+=360),e===90){e=0;var r=1}else e===180?(e=-1,r=0):e===270?(e=0,r=-1):(r=e*Math.PI/180,e=Math.cos(r),r=Math.sin(r));return this.x=e*t-r*n,this.y=r*t+e*n,this},me=Ie.prototype,me.scale=function(e,t){return this.x*=e,this.y*=t,this},me.Bf=function(e){var t=e.x-this.x;return e=e.y-this.y,t*t+e*e},me.zd=function(e,t){return e-=this.x,t-=this.y,e*e+t*t},me.normalize=function(){var e=this.x,t=this.y,n=Math.sqrt(e*e+t*t);return 0<n&&(this.x=e/n,this.y=t/n),this},me.ab=function(e){return dn(e.x-this.x,e.y-this.y)},me.direction=function(e,t){return dn(e-this.x,t-this.y)};function dn(e,t){if(e===0)return 0<t?90:0>t?270:0;if(t===0)return 0<e?0:180;if(isNaN(e)||isNaN(t))return 0;var n=180*Math.atan(Math.abs(t/e))/Math.PI;return 0>e?n=0>t?n+180:180-n:0>t&&(n=360-n),n}me.Ry=function(e,t){return ht.Fl(e.x,e.y,t.x,t.y,this.x,this.y)},me.fA=function(e,t,n,r){return ht.qh(e,t,n,r,this.x,this.y,this),this},me.gA=function(e,t){return ht.qh(e.x,e.y,t.x,t.y,this.x,this.y,this),this},me.uA=function(e,t,n,r){return ht.No(this.x,this.y,e,t,n,r,this),this},me.vA=function(e,t){return ht.No(this.x,this.y,e.x,e.y,t.width,t.height,this),this},me.xi=function(e,t){return this.x=e.x+t.x*e.width+t.offsetX,this.y=e.y+t.y*e.height+t.offsetY,this},me.yi=function(e,t,n,r,i){return this.x=e+i.x*n+i.offsetX,this.y=t+i.y*r+i.offsetY,this},me.transform=function(e){return e.Ga(this),this};function yn(e,t){return t.Cd(e),e}function Sn(e,t,n,r,i,o){var a=i-n,d=o-r,x=a*a+d*d;n-=e,r-=t;var O=-n*a-r*d;return 0>=O||O>=x?(a=i-e,d=o-t,Math.min(n*n+r*r,a*a+d*d)):(e=a*r-d*n,e*e/x)}function Xn(e,t,n,r){return e=n-e,t=r-t,e*e+t*t}function _r(e,t,n,r){return e=n-e,t=r-t,e===0?0<t?90:0>t?270:0:t===0?0<e?0:180:isNaN(e)||isNaN(t)?0:(r=180*Math.atan(Math.abs(t/e))/Math.PI,0>e?r=0>t?r+180:180-r:0>t&&(r=360-r),r)}me.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ie.alloc=function(){var e=Fr.pop();return e===void 0?new Ie:e},Ie.allocAt=function(e,t){var n=Fr.pop();return n===void 0?new Ie(e,t):(n.x=e,n.y=t,n)},Ie.free=function(e){Fr.push(e)},Ie.prototype.isReal=Ie.prototype.w,Ie.prototype.setSpot=Ie.prototype.yi,Ie.prototype.setRectSpot=Ie.prototype.xi,Ie.prototype.snapToGridPoint=Ie.prototype.vA,Ie.prototype.snapToGrid=Ie.prototype.uA,Ie.prototype.projectOntoLineSegmentPoint=Ie.prototype.gA,Ie.prototype.projectOntoLineSegment=Ie.prototype.fA,Ie.intersectingLineSegments=function(e,t,n,r,i,o,a,d){return ht.Rl(e,t,n,r,i,o,a,d)},Ie.prototype.compareWithLineSegmentPoint=Ie.prototype.Ry,Ie.compareWithLineSegment=function(e,t,n,r,i,o){return ht.Fl(e,t,n,r,i,o)},Ie.prototype.direction=Ie.prototype.direction,Ie.prototype.directionPoint=Ie.prototype.ab,Ie.prototype.normalize=Ie.prototype.normalize,Ie.prototype.distanceSquared=Ie.prototype.zd,Ie.prototype.distanceSquaredPoint=Ie.prototype.Bf,Ie.prototype.scale=Ie.prototype.scale,Ie.prototype.rotate=Ie.prototype.rotate,Ie.prototype.offset=Ie.prototype.offset,Ie.prototype.subtract=Ie.prototype.re,Ie.prototype.add=Ie.prototype.add,Ie.prototype.equalsApprox=Ie.prototype.Xa,Ie.prototype.equalTo=Ie.prototype.hi,Ie.prototype.equals=Ie.prototype.D,Ie.prototype.set=Ie.prototype.set,Ie.prototype.setTo=Ie.prototype.sg;var Fr=[];Ie.className="Point",Ie.parse=Jt,Ie.stringify=fn,Ie.distanceLineSegmentSquared=Sn,Ie.distanceSquared=Xn,Ie.direction=_r,Ie.Origin=cn=new Ie(0,0).ja(),Ie.InfiniteTopLeft=sn=new Ie(-1/0,-1/0).ja(),Ie.InfiniteBottomRight=bn=new Ie(1/0,1/0).ja(),Ie.SixPoint=_n=new Ie(6,6).ja(),Ie.NoPoint=Rn=new Ie(NaN,NaN).ja(),Ie.parse=Jt,Ie.stringify=fn,Ie.distanceLineSegmentSquared=Sn,Ie.distanceSquared=Xn,Ie.direction=_r;function mn(e,t){e===void 0?this.height=this.width=0:typeof e=="number"&&(0<=e||isNaN(e))&&typeof t=="number"&&(0<=t||isNaN(t))?(this.width=e,this.height=t):ft("Invalid arguments to Size constructor: "+e+", "+t),this._isFrozen=!1}var Cr,Or,yi,Kr,bi,Si,hi;mn.prototype.assign=function(e){return this.width=e.width,this.height=e.height,this},mn.prototype.h=function(e,t){return this.width=e,this.height=t,this},mn.prototype.sg=function(e,t){return this.width=e,this.height=t,this},mn.prototype.set=function(e){return this.width=e.width,this.height=e.height,this},mn.prototype.copy=function(){var e=new mn;return e.width=this.width,e.height=this.height,e},me=mn.prototype,me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},me.freeze=function(){return this._isFrozen=!0,this},me.ka=function(){return Object.isFrozen(this)&&ft("cannot thaw constant: "+this),this._isFrozen=!1,this};function Wi(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var r=e[t++];r&&(n=parseFloat(r));for(var i=0;e[t]==="";)t++;return(r=e[t++])&&(i=parseFloat(r)),new mn(n,i)}return new mn}function to(e){return e.width.toString()+" "+e.height.toString()}me.toString=function(){return"Size("+this.width+","+this.height+")"},me.D=function(e){return e instanceof mn?this.width===e.width&&this.height===e.height:!1},me.hi=function(e,t){return this.width===e&&this.height===t},me.Xa=function(e){return ht.B(this.width,e.width)&&ht.B(this.height,e.height)},me.Bc=function(e,t){return e=this.width+e,this.width=0<=e?e:0,t=this.height+t,this.height=0<=t?t:0,this},me.w=function(){return isFinite(this.width)&&isFinite(this.height)},mn.alloc=function(){var e=go.pop();return e===void 0?new mn:e},mn.free=function(e){go.push(e)},mn.prototype.isReal=mn.prototype.w,mn.prototype.inflate=mn.prototype.Bc,mn.prototype.equalsApprox=mn.prototype.Xa,mn.prototype.equalTo=mn.prototype.hi,mn.prototype.equals=mn.prototype.D,mn.prototype.set=mn.prototype.set,mn.prototype.setTo=mn.prototype.sg;var go=[];mn.className="Size",mn.parse=Wi,mn.stringify=to,mn.ZeroSize=Cr=new mn(0,0).ja(),mn.OneSize=Or=new mn(1,1).ja(),mn.SixSize=yi=new mn(6,6).ja(),mn.EightSize=Kr=new mn(8,8).ja(),mn.TenSize=bi=new mn(10,10).ja(),mn.InfiniteSize=Si=new mn(1/0,1/0).ja(),mn.NoSize=hi=new mn(NaN,NaN).ja(),mn.parse=Wi,mn.stringify=to;function xt(e,t,n,r){e===void 0?this.height=this.width=this.y=this.x=0:typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&(0<=n||isNaN(n))&&typeof r=="number"&&(0<=r||isNaN(r))?(this.x=e,this.y=t,this.width=n,this.height=r):e instanceof Ie?(n=e.x,e=e.y,t instanceof Ie?(r=t.x,t=t.y,this.x=Math.min(n,r),this.y=Math.min(e,t),this.width=Math.abs(n-r),this.height=Math.abs(e-t)):t instanceof mn?(this.x=n,this.y=e,this.width=t.width,this.height=t.height):ft("Incorrect second argument supplied to Rect constructor "+t)):ft("Invalid arguments to Rect constructor: "+e+", "+t+", "+n+", "+r),this._isFrozen=!1}me=xt.prototype,me.assign=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},me.h=function(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this};function ei(e,t,n){e.width=t,e.height=n}me.sg=function(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this},me.set=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},me.dd=function(e){return this.x=e.x,this.y=e.y,this},me.tA=function(e){return this.width=e.width,this.height=e.height,this},xt.prototype.copy=function(){var e=new xt;return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},me=xt.prototype,me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},me.freeze=function(){return this._isFrozen=!0,this},me.ka=function(){return Object.isFrozen(this)&&ft("cannot thaw constant: "+this),this._isFrozen=!1,this};function si(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var r=e[t++];r&&(n=parseFloat(r));for(var i=0;e[t]==="";)t++;(r=e[t++])&&(i=parseFloat(r));for(var o=0;e[t]==="";)t++;(r=e[t++])&&(o=parseFloat(r));for(var a=0;e[t]==="";)t++;return(r=e[t++])&&(a=parseFloat(r)),new xt(n,i,o,a)}return new xt}function Sr(e){return e.x.toString()+" "+e.y.toString()+" "+e.width.toString()+" "+e.height.toString()}me.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},me.D=function(e){return e instanceof xt?this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height:!1},me.hi=function(e,t,n,r){return this.x===e&&this.y===t&&this.width===n&&this.height===r},me.Xa=function(e){return ht.B(this.x,e.x)&&ht.B(this.y,e.y)&&ht.B(this.width,e.width)&&ht.B(this.height,e.height)};function ii(e,t){return ht.$(e.x,t.x)&&ht.$(e.y,t.y)&&ht.$(e.width,t.width)&&ht.$(e.height,t.height)}me.ca=function(e){return this.x<=e.x&&this.x+this.width>=e.x&&this.y<=e.y&&this.y+this.height>=e.y},me.Re=function(e){return this.x<=e.x&&e.x+e.width<=this.x+this.width&&this.y<=e.y&&e.y+e.height<=this.y+this.height},me.contains=function(e,t,n,r){return n===void 0&&(n=0),r===void 0&&(r=0),this.x<=e&&e+n<=this.x+this.width&&this.y<=t&&t+r<=this.y+this.height},me.offset=function(e,t){return this.x+=e,this.y+=t,this},me.Bc=function(e,t){return Br(this,t,e,t,e)},me.Co=function(e){return Br(this,e.top,e.right,e.bottom,e.left)},me.Fv=function(e){return Br(this,-e.top,-e.right,-e.bottom,-e.left)},me.Hz=function(e,t,n,r){return Br(this,e,t,n,r)};function Br(e,t,n,r,i){var o=e.width;return n+i<=-o?(e.x+=o/2,e.width=0):(e.x-=i,e.width+=n+i),n=e.height,t+r<=-n?(e.y+=n/2,e.height=0):(e.y-=t,e.height+=t+r),e}me.Ex=function(e){return Qi(this,e.x,e.y,e.width,e.height)},me.Uu=function(e,t,n,r){return Qi(this,e,t,n,r)};function Qi(e,t,n,r,i){var o=Math.max(e.x,t),a=Math.max(e.y,n);return t=Math.min(e.x+e.width,t+r),n=Math.min(e.y+e.height,n+i),e.x=o,e.y=a,e.width=Math.max(0,t-o),e.height=Math.max(0,n-a),e}me.Yc=function(e){return this.Vu(e.x,e.y,e.width,e.height)},me.Vu=function(e,t,n,r){var i=this.width,o=this.x;return i!==1/0&&n!==1/0&&(i+=o,n+=e,isNaN(n)||isNaN(i)||o>n||e>i)?!1:(e=this.height,n=this.y,!(e!==1/0&&r!==1/0&&(e+=n,r+=t,isNaN(r)||isNaN(e)||n>r||t>e)))};function kt(e,t){var n=e.width,r=e.x,i=t.x-10;return r>t.width+10+10+i||i>n+r?!1:(n=e.height,e=e.y,r=t.y-10,!(e>t.height+10+10+r||r>n+e))}me.Ye=function(e){return Jr(this,e.x,e.y,0,0)},me.ed=function(e){return Jr(this,e.x,e.y,e.width,e.height)},me.Kv=function(e,t,n,r){return n===void 0&&(n=0),r===void 0&&(r=0),Jr(this,e,t,n,r)};function Jr(e,t,n,r,i){var o=Math.min(e.x,t),a=Math.min(e.y,n);return t=Math.max(e.x+e.width,t+r),n=Math.max(e.y+e.height,n+i),e.x=o,e.y=a,e.width=t-o,e.height=n-a,e}me.yi=function(e,t,n){return this.x=e-n.offsetX-n.x*this.width,this.y=t-n.offsetY-n.y*this.height,this};function Vi(e,t,n,r,i,o,a,d){return a===void 0&&(a=0),d===void 0&&(d=0),e<=i&&i+a<=e+n&&t<=o&&o+d<=t+r}function Ts(e,t,n,r,i,o,a,d){return e>a+i||i>n+e?!1:!(t>d+o||o>r+t)}me.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},me.Mz=function(){return this.width===0&&this.height===0},xt.alloc=function(){var e=_s.pop();return e===void 0?new xt:e},xt.allocAt=function(e,t,n,r){var i=_s.pop();return i===void 0?new xt(e,t,n,r):i.h(e,t,n,r)},xt.free=function(e){_s.push(e)},Mn.Object.defineProperties(xt.prototype,{left:{get:function(){return this.x},set:function(e){this.x=e}},top:{get:function(){return this.y},set:function(e){this.y=e}},right:{get:function(){return this.x+this.width},set:function(e){this.x+=e-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(e){this.y+=e-(this.y+this.height)}},position:{get:function(){return new Ie(this.x,this.y)},set:function(e){this.x=e.x,this.y=e.y}},size:{get:function(){return new mn(this.width,this.height)},set:function(e){this.width=e.width,this.height=e.height}},center:{get:function(){return new Ie(this.x+this.width/2,this.y+this.height/2)},set:function(e){this.x=e.x-this.width/2,this.y=e.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(e){this.x=e-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(e){this.y=e-this.height/2}}}),xt.prototype.isEmpty=xt.prototype.Mz,xt.prototype.isReal=xt.prototype.w,xt.intersectsLineSegment=function(e,t,n,r,i,o,a,d){return ht.Fx(e,t,n,r,i,o,a,d)},xt.prototype.setSpot=xt.prototype.yi,xt.prototype.union=xt.prototype.Kv,xt.prototype.unionRect=xt.prototype.ed,xt.prototype.unionPoint=xt.prototype.Ye,xt.prototype.intersects=xt.prototype.Vu,xt.prototype.intersectsRect=xt.prototype.Yc,xt.prototype.intersect=xt.prototype.Uu,xt.prototype.intersectRect=xt.prototype.Ex,xt.prototype.grow=xt.prototype.Hz,xt.prototype.subtractMargin=xt.prototype.Fv,xt.prototype.addMargin=xt.prototype.Co,xt.prototype.inflate=xt.prototype.Bc,xt.prototype.offset=xt.prototype.offset,xt.prototype.contains=xt.prototype.contains,xt.prototype.containsRect=xt.prototype.Re,xt.prototype.containsPoint=xt.prototype.ca,xt.prototype.equalsApprox=xt.prototype.Xa,xt.prototype.equalTo=xt.prototype.hi,xt.prototype.equals=xt.prototype.D,xt.prototype.setSize=xt.prototype.tA,xt.prototype.setPoint=xt.prototype.dd,xt.prototype.set=xt.prototype.set,xt.prototype.setTo=xt.prototype.sg;var ds=null,js=null,_s=[];xt.className="Rect",xt.parse=si,xt.stringify=Sr,xt.contains=Vi,xt.intersects=Ts,xt.ZeroRect=ds=new xt(0,0,0,0).ja(),xt.NoRect=js=new xt(NaN,NaN,NaN,NaN).ja(),xt.parse=si,xt.stringify=Sr,xt.contains=Vi,xt.intersects=Ts;function ar(e,t,n,r){e===void 0?this.left=this.bottom=this.right=this.top=0:t===void 0?this.left=this.bottom=this.right=this.top=e:n===void 0?(this.top=e,this.right=t,this.bottom=e,this.left=t):r!==void 0?(this.top=e,this.right=t,this.bottom=n,this.left=r):ft("Invalid arguments to Margin constructor: "+e+", "+t+", "+n+", "+r),this._isFrozen=!1}ar.prototype.assign=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},ar.prototype.sg=function(e,t,n,r){return this.top=e,this.right=t,this.bottom=n,this.left=r,this},ar.prototype.set=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},ar.prototype.copy=function(){var e=new ar;return e.top=this.top,e.right=this.right,e.bottom=this.bottom,e.left=this.left,e},me=ar.prototype,me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},me.freeze=function(){return this._isFrozen=!0,this},me.ka=function(){return Object.isFrozen(this)&&ft("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ki(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=NaN;e[t]==="";)t++;var r=e[t++];if(r&&(n=parseFloat(r)),isNaN(n))return new ar;for(var i=NaN;e[t]==="";)t++;if((r=e[t++])&&(i=parseFloat(r)),isNaN(i))return new ar(n);for(var o=NaN;e[t]==="";)t++;if((r=e[t++])&&(o=parseFloat(r)),isNaN(o))return new ar(n,i);for(var a=NaN;e[t]==="";)t++;return(r=e[t++])&&(a=parseFloat(r)),isNaN(a)?new ar(n,i):new ar(n,i,o,a)}return new ar}function yo(e){return e.top.toString()+" "+e.right.toString()+" "+e.bottom.toString()+" "+e.left.toString()}me.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},me.D=function(e){return e instanceof ar?this.top===e.top&&this.right===e.right&&this.bottom===e.bottom&&this.left===e.left:!1},me.hi=function(e,t,n,r){return this.top===e&&this.right===t&&this.bottom===n&&this.left===r},me.Xa=function(e){return ht.B(this.top,e.top)&&ht.B(this.right,e.right)&&ht.B(this.bottom,e.bottom)&&ht.B(this.left,e.left)},me.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},ar.alloc=function(){var e=jr.pop();return e===void 0?new ar:e},ar.free=function(e){jr.push(e)},ar.prototype.isReal=ar.prototype.w,ar.prototype.equalsApprox=ar.prototype.Xa,ar.prototype.equalTo=ar.prototype.hi,ar.prototype.equals=ar.prototype.D,ar.prototype.set=ar.prototype.set,ar.prototype.setTo=ar.prototype.sg;var Ho=null,Yr=null,jr=[];ar.className="Margin",ar.parse=Ki,ar.stringify=yo,ar.ZeroMargin=Ho=new ar(0,0,0,0).ja(),ar.TwoMargin=Yr=new ar(2,2,2,2).ja(),ar.parse=Ki,ar.stringify=yo;function an(e,t,n,r){e===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),this.x=e,this.y=t,this.offsetX=n,this.offsetY=r),this._isFrozen=!1}var cr,Gr,ro,zo,Qo,Tr,So,Oo,Co,Pi,lo,Is,Bi,cs,Sa,rl,xo,Oa,Yl,Ga,ra,Us,Wa,pu,$l,Bo,Xl,gu,Ol,Ll,Ss,As,$o,qo,no,ci;an.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},an.prototype.sg=function(e,t,n,r){return this.x=e,this.y=t,this.offsetX=n,this.offsetY=r,this},an.prototype.set=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},an.prototype.copy=function(){var e=new an;return e.x=this.x,e.y=this.y,e.offsetX=this.offsetX,e.offsetY=this.offsetY,e},me=an.prototype,me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},me.freeze=function(){return this._isFrozen=!0,this},me.ka=function(){return Object.isFrozen(this)&&ft("cannot thaw constant: "+this),this._isFrozen=!1,this};function _i(e,t){return e.x=NaN,e.y=NaN,e.offsetX=t,e}function es(e){if(typeof e=="string"){if(e=e.trim(),e==="None")return cr;if(e==="TopLeft")return Gr;if(e==="Top"||e==="TopCenter"||e==="MiddleTop")return ro;if(e==="TopRight")return zo;if(e==="Left"||e==="LeftCenter"||e==="MiddleLeft")return Qo;if(e==="Center")return Tr;if(e==="Right"||e==="RightCenter"||e==="MiddleRight")return So;if(e==="BottomLeft")return Oo;if(e==="Bottom"||e==="BottomCenter"||e==="MiddleBottom")return Co;if(e==="BottomRight")return Pi;if(e==="TopSide")return lo;if(e==="LeftSide")return Is;if(e==="RightSide")return Bi;if(e==="BottomSide")return cs;if(e==="TopBottomSides")return Sa;if(e==="LeftRightSides")return rl;if(e==="TopLeftSides")return xo;if(e==="TopRightSides")return Oa;if(e==="BottomLeftSides")return Yl;if(e==="BottomRightSides")return Ga;if(e==="NotTopSide")return ra;if(e==="NotLeftSide")return Us;if(e==="NotRightSide")return Wa;if(e==="NotBottomSide")return pu;if(e==="AllSides")return $l;if(e==="Default")return Bo;e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var r=e[t++];r!==void 0&&0<r.length&&(n=parseFloat(r));for(var i=0;e[t]==="";)t++;r=e[t++],r!==void 0&&0<r.length&&(i=parseFloat(r));for(var o=0;e[t]==="";)t++;r=e[t++],r!==void 0&&0<r.length&&(o=parseFloat(r));for(var a=0;e[t]==="";)t++;return r=e[t++],r!==void 0&&0<r.length&&(a=parseFloat(r)),new an(n,i,o,a)}return new an}function Lo(e){return e.sb()?e.x.toString()+" "+e.y.toString()+" "+e.offsetX.toString()+" "+e.offsetY.toString():e.toString()}me.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(cr)?"None":this.D(Gr)?"TopLeft":this.D(ro)?"Top":this.D(zo)?"TopRight":this.D(Qo)?"Left":this.D(Tr)?"Center":this.D(So)?"Right":this.D(Oo)?"BottomLeft":this.D(Co)?"Bottom":this.D(Pi)?"BottomRight":this.D(lo)?"TopSide":this.D(Is)?"LeftSide":this.D(Bi)?"RightSide":this.D(cs)?"BottomSide":this.D(Sa)?"TopBottomSides":this.D(rl)?"LeftRightSides":this.D(xo)?"TopLeftSides":this.D(Oa)?"TopRightSides":this.D(Yl)?"BottomLeftSides":this.D(Ga)?"BottomRightSides":this.D(ra)?"NotTopSide":this.D(Us)?"NotLeftSide":this.D(Wa)?"NotRightSide":this.D(pu)?"NotBottomSide":this.D($l)?"AllSides":this.D(Bo)?"Default":"None"},me.D=function(e){return e instanceof an?(this.x===e.x||isNaN(this.x)&&isNaN(e.x))&&(this.y===e.y||isNaN(this.y)&&isNaN(e.y))&&this.offsetX===e.offsetX&&this.offsetY===e.offsetY:!1},me.gv=function(){return new an(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},me.Hf=function(e){if(!this.$c())return!1;if(!e.$c())if(e.D(Xl))e=Is;else if(e.D(gu))e=Bi;else if(e.D(Ol))e=lo;else if(e.D(Ll))e=cs;else return!1;return e=e.offsetY,(this.offsetY&e)===e},me.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},me.Mc=function(){return isNaN(this.x)||isNaN(this.y)},me.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},me.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},me.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},an.alloc=function(){var e=jo.pop();return e===void 0?new an:e},an.free=function(e){jo.push(e)},an.prototype.isDefault=an.prototype.Xb,an.prototype.isNone=an.prototype.ys,an.prototype.isSide=an.prototype.$c,an.prototype.isNoSpot=an.prototype.Mc,an.prototype.isSpot=an.prototype.sb,an.prototype.includesSide=an.prototype.Hf,an.prototype.opposite=an.prototype.gv,an.prototype.equals=an.prototype.D,an.prototype.set=an.prototype.set,an.prototype.setTo=an.prototype.sg;var jo=[];an.className="Spot",an.parse=es,an.stringify=Lo,an.None=cr=_i(new an(0,0,0,0),0).ja(),an.Default=Bo=_i(new an(0,0,-1,0),-1).ja(),an.TopLeft=Gr=new an(0,0,0,0).ja(),an.TopCenter=ro=new an(.5,0,0,0).ja(),an.TopRight=zo=new an(1,0,0,0).ja(),an.LeftCenter=Qo=new an(0,.5,0,0).ja(),an.Center=Tr=new an(.5,.5,0,0).ja(),an.RightCenter=So=new an(1,.5,0,0).ja(),an.BottomLeft=Oo=new an(0,1,0,0).ja(),an.BottomCenter=Co=new an(.5,1,0,0).ja(),an.BottomRight=Pi=new an(1,1,0,0).ja(),an.MiddleTop=Ss=ro,an.MiddleLeft=As=Qo,an.MiddleRight=$o=So,an.MiddleBottom=qo=Co,an.Top=Ol=ro,an.Left=Xl=Qo,an.Right=gu=So,an.Bottom=Ll=Co,an.TopSide=lo=_i(new an(0,0,1,1),1).ja(),an.LeftSide=Is=_i(new an(0,0,1,2),1).ja(),an.RightSide=Bi=_i(new an(0,0,1,4),1).ja(),an.BottomSide=cs=_i(new an(0,0,1,8),1).ja(),an.TopBottomSides=Sa=_i(new an(0,0,1,9),1).ja(),an.LeftRightSides=rl=_i(new an(0,0,1,6),1).ja(),an.TopLeftSides=xo=_i(new an(0,0,1,3),1).ja(),an.TopRightSides=Oa=_i(new an(0,0,1,5),1).ja(),an.BottomLeftSides=Yl=_i(new an(0,0,1,10),1).ja(),an.BottomRightSides=Ga=_i(new an(0,0,1,12),1).ja(),an.NotTopSide=ra=_i(new an(0,0,1,14),1).ja(),an.NotLeftSide=Us=_i(new an(0,0,1,13),1).ja(),an.NotRightSide=Wa=_i(new an(0,0,1,11),1).ja(),an.NotBottomSide=pu=_i(new an(0,0,1,7),1).ja(),an.AllSides=$l=_i(new an(0,0,1,15),1).ja(),no=new an(.156,.156).ja(),ci=new an(.844,.844).ja(),an.parse=es,an.stringify=Lo;function Zn(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Zn.prototype.set=function(e){return this.m11=e.m11,this.m12=e.m12,this.m21=e.m21,this.m22=e.m22,this.dx=e.dx,this.dy=e.dy,this},Zn.prototype.setTransform=function(e,t,n,r,i,o){return this.m11=e,this.m12=t,this.m21=n,this.m22=r,this.dx=i,this.dy=o,this},Zn.prototype.copy=function(){var e=new Zn;return e.m11=this.m11,e.m12=this.m12,e.m21=this.m21,e.m22=this.m22,e.dx=this.dx,e.dy=this.dy,e},Zn.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Zn.prototype.D=function(e){return this.m11===e.m11&&this.m12===e.m12&&this.m21===e.m21&&this.m22===e.m22&&this.dx===e.dx&&this.dy===e.dy},Zn.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Zn.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Zn.prototype.multiply=function(e){var t=this.m11*e.m11+this.m21*e.m12,n=this.m12*e.m11+this.m22*e.m12,r=this.m11*e.m21+this.m21*e.m22,i=this.m12*e.m21+this.m22*e.m22;return this.dx=this.m11*e.dx+this.m21*e.dy+this.dx,this.dy=this.m12*e.dx+this.m22*e.dy+this.dy,this.m11=t,this.m12=n,this.m21=r,this.m22=i,this},Zn.prototype.bv=function(e){var t=1/(e.m11*e.m22-e.m12*e.m21),n=e.m22*t,r=-e.m12*t,i=-e.m21*t,o=e.m11*t,a=t*(e.m21*e.dy-e.m22*e.dx);return e=t*(e.m12*e.dx-e.m11*e.dy),t=this.m11*n+this.m21*r,n=this.m12*n+this.m22*r,r=this.m11*i+this.m21*o,i=this.m12*i+this.m22*o,this.dx=this.m11*a+this.m21*e+this.dx,this.dy=this.m12*a+this.m22*e+this.dy,this.m11=t,this.m12=n,this.m21=r,this.m22=i,this},Zn.prototype.Vj=function(){var e=1/(this.m11*this.m22-this.m12*this.m21),t=-this.m12*e,n=-this.m21*e,r=this.m11*e,i=e*(this.m21*this.dy-this.m22*this.dx),o=e*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*e,this.m12=t,this.m21=n,this.m22=r,this.dx=i,this.dy=o,this},Zn.prototype.rotate=function(e,t,n){if(360<=e?e-=360:0>e&&(e+=360),e===0)return this;if(this.translate(t,n),e===90){e=0;var r=1}else e===180?(e=-1,r=0):e===270?(e=0,r=-1):(r=e*Math.PI/180,e=Math.cos(r),r=Math.sin(r));var i=this.m12*e+this.m22*r,o=this.m11*-r+this.m21*e,a=this.m12*-r+this.m22*e;return this.m11=this.m11*e+this.m21*r,this.m12=i,this.m21=o,this.m22=a,this.translate(-t,-n),this},me=Zn.prototype,me.translate=function(e,t){return this.dx+=this.m11*e+this.m21*t,this.dy+=this.m12*e+this.m22*t,this},me.scale=function(e,t){return t===void 0&&(t=e),this.m11*=e,this.m12*=e,this.m21*=t,this.m22*=t,this},me.Ga=function(e){var t=e.x,n=e.y;return e.h(t*this.m11+n*this.m21+this.dx,t*this.m12+n*this.m22+this.dy)},me.Cd=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=e.x,r=e.y;return e.h(n*this.m22*t+r*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+r*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},me.Eu=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=1.25*e.x,r=1.2*e.y;return e.h(n*this.m22*t+r*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+r*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},me.pp=function(e){var t=e.x,n=e.y,r=t+e.width,i=n+e.height,o=this.m11,a=this.m12,d=this.m21,x=this.m22,O=this.dx,M=this.dy,Y=t*o+n*d+O,ie=t*a+n*x+M,ce=r*o+n*d+O,ge=r*a+n*x+M;return n=t*o+i*d+O,t=t*a+i*x+M,o=r*o+i*d+O,r=r*a+i*x+M,i=Math.min(Y,ce),Y=Math.max(Y,ce),ce=Math.min(ie,ge),ie=Math.max(ie,ge),i=Math.min(i,n),Y=Math.max(Y,n),ce=Math.min(ce,t),ie=Math.max(ie,t),i=Math.min(i,o),Y=Math.max(Y,o),ce=Math.min(ce,r),ie=Math.max(ie,r),e.h(i,ce,Y-i,ie-ce),e},Zn.alloc=function(){var e=ia.pop();return e===void 0?new Zn:e},Zn.free=function(e){ia.push(e)},Zn.prototype.transformRect=Zn.prototype.pp,Zn.prototype.transformPoint=Zn.prototype.Ga,Zn.prototype.scale=Zn.prototype.scale,Zn.prototype.translate=Zn.prototype.translate,Zn.prototype.rotate=Zn.prototype.rotate,Zn.prototype.invert=Zn.prototype.Vj,Zn.prototype.multiplyInverted=Zn.prototype.bv,Zn.prototype.multiply=Zn.prototype.multiply,Zn.prototype.reset=Zn.prototype.reset,Zn.prototype.isIdentity=Zn.prototype.ws,Zn.prototype.equals=Zn.prototype.D,Zn.prototype.setTransform=Zn.prototype.setTransform,Zn.prototype.set=Zn.prototype.set;var ia=[];Zn.className="Transform",Zn.xF="54a702f3e53909c447824c6706603faf4c";var ht={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(e){if(0>=e)return 0;var t=ht.Uv;if(t===null){t=[];for(var n=0;2e3>=n;n++)t[n]=Math.sqrt(n);ht.Uv=t}return 1>e?(n=1/e,2e3>=n?1/t[n|0]:Math.sqrt(e)):2e3>=e?t[e|0]:Math.sqrt(e)},B:function(e,t){return e-=t,.5>e&&-.5<e},$:function(e,t){return e-=t,5e-8>e&&-5e-8<e},Yb:function(e,t,n,r,i,o,a){if(0>=i&&(i=1e-6),e<n)var d=e,x=n;else d=n,x=e;if(t<r)var O=t,M=r;else O=r,M=t;if(e===n)return O<=a&&a<=M&&e-i<=o&&o<=e+i;if(t===r)return d<=o&&o<=x&&t-i<=a&&a<=t+i;if(x+=i,d-=i,d<=o&&o<=x&&(M+=i,O-=i,O<=a&&a<=M))if(x-d>M-O)if(e-n>i||n-e>i){if(o=(r-t)/(n-e)*(o-e)+t,o-i<=a&&a<=o+i)return!0}else return!0;else if(t-r>i||r-t>i){if(a=(n-e)/(r-t)*(a-t)+e,a-i<=o&&o<=a+i)return!0}else return!0;return!1},cs:function(e,t,n,r,i,o,a,d,x,O,M,Y){if(ht.Yb(e,t,a,d,Y,n,r)&&ht.Yb(e,t,a,d,Y,i,o))return ht.Yb(e,t,a,d,Y,O,M);var ie=(e+n)/2,ce=(t+r)/2,ge=(n+i)/2,Te=(r+o)/2;i=(i+a)/2,o=(o+d)/2,r=(ie+ge)/2,n=(ce+Te)/2,ge=(ge+i)/2,Te=(Te+o)/2;var Ve=(r+ge)/2,He=(n+Te)/2;return ht.cs(e,t,ie,ce,r,n,Ve,He,x,O,M,Y)||ht.cs(Ve,He,ge,Te,i,o,a,d,x,O,M,Y)},ax:function(e,t,n,r,i,o,a,d,x){var O=(n+i)/2,M=(r+o)/2;return x.h((((e+n)/2+O)/2+(O+(i+a)/2)/2)/2,(((t+r)/2+M)/2+(M+(o+d)/2)/2)/2),x},My:function(e,t,n,r,i,o,a,d){var x=(n+i)/2,O=(r+o)/2;return _r(((e+n)/2+x)/2,((t+r)/2+O)/2,(x+(i+a)/2)/2,(O+(o+d)/2)/2)},Dl:function(e,t,n,r,i,o,a,d,x,O){if(ht.Yb(e,t,a,d,x,n,r)&&ht.Yb(e,t,a,d,x,i,o))Jr(O,e,t,0,0),Jr(O,a,d,0,0);else{var M=(e+n)/2,Y=(t+r)/2,ie=(n+i)/2,ce=(r+o)/2;i=(i+a)/2,o=(o+d)/2,r=(M+ie)/2,n=(Y+ce)/2,ie=(ie+i)/2,ce=(ce+o)/2;var ge=(r+ie)/2,Te=(n+ce)/2;ht.Dl(e,t,M,Y,r,n,ge,Te,x,O),ht.Dl(ge,Te,ie,ce,i,o,a,d,x,O)}return O},Qe:function(e,t,n,r,i,o,a,d,x,O){if(ht.Yb(e,t,a,d,x,n,r)&&ht.Yb(e,t,a,d,x,i,o))O.length===0&&(O.push(e),O.push(t)),O.push(a),O.push(d);else{var M=(e+n)/2,Y=(t+r)/2,ie=(n+i)/2,ce=(r+o)/2;i=(i+a)/2,o=(o+d)/2,r=(M+ie)/2,n=(Y+ce)/2,ie=(ie+i)/2,ce=(ce+o)/2;var ge=(r+ie)/2,Te=(n+ce)/2;ht.Qe(e,t,M,Y,r,n,ge,Te,x,O),ht.Qe(ge,Te,ie,ce,i,o,a,d,x,O)}return O},jv:function(e,t,n,r,i,o,a,d,x,O){if(ht.Yb(e,t,i,o,O,n,r))return ht.Yb(e,t,i,o,O,d,x);var M=(e+n)/2,Y=(t+r)/2;n=(n+i)/2,r=(r+o)/2;var ie=(M+n)/2,ce=(Y+r)/2;return ht.jv(e,t,M,Y,ie,ce,a,d,x,O)||ht.jv(ie,ce,n,r,i,o,a,d,x,O)},OA:function(e,t,n,r,i,o,a){return a.h(((e+n)/2+(n+i)/2)/2,((t+r)/2+(r+o)/2)/2),a},iv:function(e,t,n,r,i,o,a,d){if(ht.Yb(e,t,i,o,a,n,r))Jr(d,e,t,0,0),Jr(d,i,o,0,0);else{var x=(e+n)/2,O=(t+r)/2;n=(n+i)/2,r=(r+o)/2;var M=(x+n)/2,Y=(O+r)/2;ht.iv(e,t,x,O,M,Y,a,d),ht.iv(M,Y,n,r,i,o,a,d)}return d},ep:function(e,t,n,r,i,o,a,d){if(ht.Yb(e,t,i,o,a,n,r))d.length===0&&(d.push(e),d.push(t)),d.push(i),d.push(o);else{var x=(e+n)/2,O=(t+r)/2;n=(n+i)/2,r=(r+o)/2;var M=(x+n)/2,Y=(O+r)/2;ht.ep(e,t,x,O,M,Y,a,d),ht.ep(M,Y,n,r,i,o,a,d)}return d},Eo:function(e,t,n,r,i,o,a,d,x,O,M,Y,ie,ce){if(ht.Yb(e,t,a,d,ie,n,r)&&ht.Yb(e,t,a,d,ie,i,o))return!ht.Rl(e,t,a,d,x,O,M,Y)||(ie=(e-a)*(O-Y)-(t-d)*(x-M),ie===0)?!1:(ce.h(((e*d-t*a)*(x-M)-(e-a)*(x*Y-O*M))/ie,((e*d-t*a)*(O-Y)-(t-d)*(x*Y-O*M))/ie),!0);var ge=(e+n)/2,Te=(t+r)/2,Ve=(n+i)/2,He=(r+o)/2;i=(i+a)/2,o=(o+d)/2,r=(ge+Ve)/2,n=(Te+He)/2,Ve=(Ve+i)/2,He=(He+o)/2;var Xe=(r+Ve)/2,Ze=(n+He)/2,qe=1/0,st=!1,yt=0,un=0;return ht.Eo(e,t,ge,Te,r,n,Xe,Ze,x,O,M,Y,ie,ce)&&(e=(ce.x-x)*(ce.x-x)+(ce.y-O)*(ce.y-O),e<qe&&(qe=e,st=!0,yt=ce.x,un=ce.y)),ht.Eo(Xe,Ze,Ve,He,i,o,a,d,x,O,M,Y,ie,ce)&&(ce.x-x)*(ce.x-x)+(ce.y-O)*(ce.y-O)<qe&&(st=!0,yt=ce.x,un=ce.y),st&&(ce.x=yt,ce.y=un),st},Fo:function(e,t,n,r,i,o,a,d,x,O,M,Y,ie){var ce=0;if(ht.Yb(e,t,a,d,ie,n,r)&&ht.Yb(e,t,a,d,ie,i,o)){if(ie=(e-a)*(O-Y)-(t-d)*(x-M),ie===0)return ce;var ge=((e*d-t*a)*(x-M)-(e-a)*(x*Y-O*M))/ie,Te=((e*d-t*a)*(O-Y)-(t-d)*(x*Y-O*M))/ie;if(ge>=M)return ce;if((x>M?x-M:M-x)<(O>Y?O-Y:Y-O)){if(t<d?(x=t,e=d):(x=d,e=t),Te<x||Te>e)return ce}else if(e<a?(x=e,e=a):x=a,ge<x||ge>e)return ce;0<ie?ce++:0>ie&&ce--}else{ge=(e+n)/2,Te=(t+r)/2;var Ve=(n+i)/2,He=(r+o)/2;i=(i+a)/2,o=(o+d)/2,r=(ge+Ve)/2,n=(Te+He)/2,Ve=(Ve+i)/2,He=(He+o)/2;var Xe=(r+Ve)/2,Ze=(n+He)/2;ce+=ht.Fo(e,t,ge,Te,r,n,Xe,Ze,x,O,M,Y,ie),ce+=ht.Fo(Xe,Ze,Ve,He,i,o,a,d,x,O,M,Y,ie)}return ce},qh:function(e,t,n,r,i,o,a){return ht.$(e,n)?(t<r?(n=t,t=r):n=r,o<n?(a.h(e,n),!1):o>t?(a.h(e,t),!1):(a.h(e,o),!0)):ht.$(t,r)?(e<n?(r=e,e=n):r=n,i<r?(a.h(r,t),!1):i>e?(a.h(e,t),!1):(a.h(i,t),!0)):(i=((e-i)*(e-n)+(t-o)*(t-r))/((n-e)*(n-e)+(r-t)*(r-t)),-5e-6>i?(a.h(e,t),!1):1.000005<i?(a.h(n,r),!1):(a.h(e+i*(n-e),t+i*(r-t)),!0))},Ve:function(e,t,n,r,i,o,a,d,x){return ht.B(e,n)&&ht.B(t,r)?(x.h(e,t),!1):ht.$(i,a)?ht.$(e,n)?(ht.qh(e,t,n,r,i,o,x),!1):ht.qh(e,t,n,r,i,(r-t)/(n-e)*(i-e)+t,x):(d=(d-o)/(a-i),ht.$(e,n)?(n=d*(e-i)+o,t<r?(i=t,t=r):i=r,n<i?(x.h(e,i),!1):n>t?(x.h(e,t),!1):(x.h(e,n),!0)):(a=(r-t)/(n-e),ht.$(d,a)?(ht.qh(e,t,n,r,i,o,x),!1):(i=(a*e-d*i+o-t)/(a-d),ht.$(a,0)?(e<n?(r=e,e=n):r=n,i<r?(x.h(r,t),!1):i>e?(x.h(e,t),!1):(x.h(i,t),!0)):ht.qh(e,t,n,r,i,a*(i-e)+t,x))))},MA:function(e,t,n,r,i){return ht.Ve(n.x,n.y,r.x,r.y,e.x,e.y,t.x,t.y,i)},KA:function(e,t,n,r,i,o,a,d,x,O){function M(Ve,He){var Xe=(Ve-e)*(Ve-e)+(He-t)*(He-t);Xe<Y&&(Y=Xe,x.h(Ve,He))}var Y=1/0;M(x.x,x.y);var ie=0,ce=0,ge=0,Te=0;if(i<a?(ie=i,ce=a):(ie=a,ce=i),o<d?(ge=i,Te=a):(ge=a,Te=i),ie=(ce-ie)/2+O,O=(Te-ge)/2+O,i=(i+a)/2,o=(o+d)/2,ie===0||O===0)return x;if(.5>(n>e?n-e:e-n)){if(ie=1-(n-i)*(n-i)/(ie*ie),0>ie)return x;ie=Math.sqrt(ie),r=-O*ie+o,M(n,O*ie+o),M(n,r)}else{if(n=(r-t)/(n-e),r=1/(ie*ie)+n*n/(O*O),d=2*n*(t-n*e)/(O*O)-2*n*o/(O*O)-2*i/(ie*ie),ie=d*d-4*r*(2*n*e*o/(O*O)-2*t*o/(O*O)+o*o/(O*O)+i*i/(ie*ie)-1+(t-n*e)*(t-n*e)/(O*O)),0>ie)return x;ie=Math.sqrt(ie),O=(-d+ie)/(2*r),M(O,n*O-n*e+t),ie=(-d-ie)/(2*r),M(ie,n*ie-n*e+t)}return x},Ff:function(e,t,n,r,i,o,a,d,x){var O=1e21,M=e,Y=t;if(ht.Ve(e,t,e,r,i,o,a,d,x)){var ie=(x.x-i)*(x.x-i)+(x.y-o)*(x.y-o);ie<O&&(O=ie,M=x.x,Y=x.y)}return ht.Ve(n,t,n,r,i,o,a,d,x)&&(ie=(x.x-i)*(x.x-i)+(x.y-o)*(x.y-o),ie<O&&(O=ie,M=x.x,Y=x.y)),ht.Ve(e,t,n,t,i,o,a,d,x)&&(t=(x.x-i)*(x.x-i)+(x.y-o)*(x.y-o),t<O&&(O=t,M=x.x,Y=x.y)),ht.Ve(e,r,n,r,i,o,a,d,x)&&(e=(x.x-i)*(x.x-i)+(x.y-o)*(x.y-o),e<O&&(O=e,M=x.x,Y=x.y)),x.h(M,Y),1e21>O},us:function(e,t,n){return ht.Fx(e.x,e.y,e.width,e.height,t.x,t.y,n.x,n.y)},Fx:function(e,t,n,r,i,o,a,d){var x=e+n,O=t+r;return i===a?(o<d?(a=o,o=d):a=d,e<=i&&i<=x&&a<=O&&o>=t):o===d?(i<a?(d=i,i=a):d=a,t<=o&&o<=O&&d<=x&&i>=e):!!(Vi(e,t,n,r,i,o)||Vi(e,t,n,r,a,d)||ht.Rl(e,t,x,t,i,o,a,d)||ht.Rl(x,t,x,O,i,o,a,d)||ht.Rl(x,O,e,O,i,o,a,d)||ht.Rl(e,O,e,t,i,o,a,d))},Rl:function(e,t,n,r,i,o,a,d){return e===n&&t===r&&i===a&&o===d?e===i&&t===o:0>=ht.Fl(e,t,n,r,i,o)*ht.Fl(e,t,n,r,a,d)&&0>=ht.Fl(i,o,a,d,e,t)*ht.Fl(i,o,a,d,n,r)},Fl:function(e,t,n,r,i,o){return n-=e,r-=t,e=i-e,t=o-t,o=e*r-t*n,o===0&&(o=e*n+t*r,0<o&&(o=(e-n)*n+(t-r)*r,0>o&&(o=0))),o},bp:function(e){return 0>e&&(e+=360),360<=e&&(e-=360),e},jx:function(e,t,n,r,i,o){var a=Math.PI;o||(r*=a/180,i*=a/180);var d=r>i?-1:1;o=[];var x=a/2,O=r;if(r=Math.min(2*a,Math.abs(i-r)),1e-5>r)return x=O+d*Math.min(r,x),d=e+n*Math.cos(O),O=t+n*Math.sin(O),e+=n*Math.cos(x),t+=n*Math.sin(x),n=(d+e)/2,x=(O+t)/2,o.push([d,O,n,x,n,x,e,t]),o;for(;1e-5<r;)i=O+d*Math.min(r,x),o.push(ht.Vy(n,O,i,e,t)),r-=Math.abs(i-O),O=i;return o},Vy:function(e,t,n,r,i){var o=(n-t)/2,a=e*Math.cos(o),d=e*Math.sin(o),x=-d,O=a*a+x*x,M=O+a*a+x*d;return O=4/3*(Math.sqrt(2*O*M)-M)/(a*d-x*a),d=a-O*x,a=x+O*a,x=-a,O=o+t,o=Math.cos(O),O=Math.sin(O),[r+e*Math.cos(t),i+e*Math.sin(t),r+d*o-a*O,i+d*O+a*o,r+d*o-x*O,i+d*O+x*o,r+e*Math.cos(n),i+e*Math.sin(n)]},No:function(e,t,n,r,i,o,a){n=Math.floor((e-n)/i)*i+n,r=Math.floor((t-r)/o)*o+r;var d=n;return n+i-e<i/2&&(d=n+i),e=r,r+o-t<o/2&&(e=r+o),a.h(d,e),a},vx:function(e,t){var n=Math.max(e,t);e=Math.min(e,t);var r;do t=n%e,n=r=e,e=t;while(0<t);return r},$y:function(e,t,n,r){var i=0>n,o=0>r;if(e<t)var a=1,d=0;else a=0,d=1;var x=a===0?e:t,O=a===0?n:r;return(a===0?i:o)&&(O=-O),a=d,n=a===0?n:r,(a===0?i:o)&&(n=-n),ht.az(x,a===0?e:t,O,n,0,0)},az:function(e,t,n,r,i,o){if(0<r)if(0<n){i=e*e,o=t*t,e*=n;var a=t*r,d=-o+a,x=-o+Math.sqrt(e*e+a*a);t=d;for(var O=0;9999999999>O&&(t=.5*(d+x),!(t===d||t===x));++O){var M=e/(t+i),Y=a/(t+o);if(M=M*M+Y*Y-1,0<M)d=t;else if(0>M)x=t;else break}n=i*n/(t+i)-n,r=o*r/(t+o)-r,n=Math.sqrt(n*n+r*r)}else n=Math.abs(r-t);else r=e*e-t*t,o=e*n,o<r?(r=o/r,o=t*Math.sqrt(Math.abs(1-r*r)),n=e*r-n,n=Math.sqrt(n*n+o*o)):n=Math.abs(n-e);return n},Ze:new oi,um:new oi,Mf:new oi,Nf:0,vm:100};ht.za=ht.AA;function qt(e){Wn(this),this.l=2,e===void 0&&(e=qt.o),this.na=e,this.Ec=this.Dc=this.pd=this.od=0,e===qt.o?this.ee=new Gt:(qt.V===null&&(qt.V=new Gt().freeze()),this.ee=qt.V),this.aq=this.ee.Ja,this.Ip=new xt().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Gr,this.gg=Pi,this.Rk=this.Sk=NaN,this.Uf=$t}qt.prototype.copy=function(){var e=new qt;if(e.l=this.l&-2,e.na=this.na,e.od=this.od,e.pd=this.pd,e.Dc=this.Dc,e.Ec=this.Ec,this.na===qt.o){for(var t=this.ee.s,n=e.ee,r=0;r<t.length;r++)n.add(t[r].copy());e.ee=n}else e.ee=this.ee;return e.aq=this.aq,e.Ip.assign(this.Ip),e.tk=this.tk,e.ym=this.ym,e.zm=this.zm,e.fg=this.fg.J(),e.gg=this.gg.J(),e.Sk=this.Sk,e.Rk=this.Rk,e.Uf=this.Uf,e},qt.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},qt.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==qt.o)return this;var e=this.figures;e.freeze(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].freeze();return this},qt.prototype.ka=function(){if(Object.isFrozen(this)&&ft("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==qt.o)return this;var e=this.figures;e.ka(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].ka();return this},qt.prototype.Xa=function(e){if(!(e instanceof qt))return!1;if(this.type!==e.type)return this.type===qt.j&&e.type===qt.o?il(this,e):e.type===qt.j&&this.type===qt.o?il(e,this):!1;if(this.type===qt.o){var t=this.figures.s;e=e.figures.s;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(!t[r].Xa(e[r]))return!1;return!0}return ht.B(this.startX,e.startX)&&ht.B(this.startY,e.startY)&&ht.B(this.endX,e.endX)&&ht.B(this.endY,e.endY)};function il(e,t){return e.type!==qt.j||t.type!==qt.o?!1:!!(t.figures.count===1&&(t=t.figures.M(0),t.segments.count===1&&ht.B(e.startX,t.startX)&&ht.B(e.startY,t.startY)&&(t=t.segments.M(0),t.type===xi&&ht.B(e.endX,t.endX)&&ht.B(e.endY,t.endY))))}qt.ia=function(e){return e.toString()},qt.prototype.qb=function(e){e.classType===qt&&(this.type=e)},qt.prototype.toString=function(e){switch(e===void 0&&(e=-1),this.type){case qt.j:return 0>e?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e)+"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);case qt.u:var t=new xt(this.startX,this.startY,0,0);return t.Kv(this.endX,this.endY,0,0),0>e?"M"+t.x.toString()+" "+t.y.toString()+"H"+t.right.toString()+"V"+t.bottom.toString()+"H"+t.left.toString()+"z":"M"+t.x.toFixed(e)+" "+t.y.toFixed(e)+"H"+t.right.toFixed(e)+"V"+t.bottom.toFixed(e)+"H"+t.left.toFixed(e)+"z";case qt.F:if(t=new xt(this.startX,this.startY,0,0),t.Kv(this.endX,this.endY,0,0),0>e)return e=t.left.toString()+" "+(t.y+t.height/2).toString(),"M"+e+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+(t.right.toString()+" "+(t.y+t.height/2).toString())+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+e;var n=t.left.toFixed(e)+" "+(t.y+t.height/2).toFixed(e);return"M"+n+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+(t.right.toFixed(e)+" "+(t.y+t.height/2).toFixed(e))+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+n;case qt.o:t="",n=this.figures.s;for(var r=n.length,i=0;i<r;i++){var o=n[i];0<i&&(t+=" x "),o.isFilled&&(t+="F "),t+=o.toString(e)}return t;default:return this.type.toString()}},qt.nb=function(e){e=e.split(/[Xx]/);for(var t=e.length,n="",r=0;r<t;r++){var i=e[r];n=i.match(/[Ff]/)!==null?r===0?n+i:n+("X"+(i[0]===" "?"":" ")+i):n+((r===0?"":"X ")+"F"+(i[0]===" "?"":" ")+i)}return n},qt.parse=function(e,t){function n(){return Te>=qe-1?!0:O[Te+1].match(st)!==null}function r(){return Te++,O[Te]}function i(ir){var Jn=parseFloat(r()),ni=parseFloat(r());Ve===Ve.toLowerCase()&&(Jn=Ze.x+Jn,ni=Ze.y+ni),ir.h(Jn,ni)}function o(){return i(Ze),Ze}function a(){return i(Xe),Xe}function d(){var ir=He.toLowerCase();return ir!=="c"&&ir!=="s"&&ir!=="q"&&ir!=="t"?Ze:new Ie(2*Ze.x-Xe.x,2*Ze.y-Xe.y)}t===void 0&&(t=!1);var x=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;e=e.replace(/,/gm," "),e=e.replace(x,"$1 $2"),e=e.replace(x,"$1 $2"),e=e.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),e=e.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),e=e.replace(/([0-9])([+\-])/gm,"$1 $2"),e=e.replace(/[\s\r\t\n]+/gm," "),e=e.replace(/^\s+|\s+$/g,"");var O=e.split(" ");for(e=0;e<O.length;e++){var M=O[e];if(M.match(/(\.[0-9]*)(\.)/gm)!==null){x=Bn();for(var Y="",ie=!1,ce=0;ce<M.length;ce++){var ge=M[ce];ge!=="."||ie?ge==="."?(x.push(Y),Y="."):Y+=ge:(ie=!0,Y+=ge)}for(x.push(Y),O.splice(e,1),M=0;M<x.length;M++)O.splice(e+M,0,x[M]);e+=x.length-1,wn(x)}}var Te=-1,Ve="",He="";x=new Ie(0,0);var Xe=new Ie(0,0),Ze=new Ie(0,0),qe=O.length;e=W0(null),ie=Y=M=!1,ce=!0,ge=null;for(var st=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Te>=qe-1);)if(He=Ve,Ve=r(),Ve!=="")switch(Ve.toUpperCase()){case"X":ce=!0,Y=M=!1;break;case"M":for(ge=o(),e.mc===null||ce===!0?(ud(e,ge.x,ge.y,M,!Y,ie),ce=!1):e.moveTo(ge.x,ge.y),x.assign(Ze);!n();)ge=o(),e.lineTo(ge.x,ge.y);break;case"L":for(;!n();)ge=o(),e.lineTo(ge.x,ge.y);break;case"H":for(;!n();)Ze=new Ie((Ve===Ve.toLowerCase()?Ze.x:0)+parseFloat(r()),Ze.y),e.lineTo(Ze.x,Ze.y);break;case"V":for(;!n();)Ze=new Ie(Ze.x,(Ve===Ve.toLowerCase()?Ze.y:0)+parseFloat(r())),e.lineTo(Ze.x,Ze.y);break;case"C":for(;!n();){ge=new Ie,i(ge);var yt=a(),un=o();Rc(e,ge.x,ge.y,yt.x,yt.y,un.x,un.y)}break;case"S":for(;!n();)ge=d(),yt=a(),un=o(),Rc(e,ge.x,ge.y,yt.x,yt.y,un.x,un.y);break;case"Q":for(;!n();)ge=a(),yt=o(),Jg(e,ge.x,ge.y,yt.x,yt.y);break;case"T":for(;!n();)Xe=ge=d(),yt=o(),Jg(e,ge.x,ge.y,yt.x,yt.y);break;case"B":for(;!n();){ge=parseFloat(r()),yt=parseFloat(r()),un=parseFloat(r());var kn=parseFloat(r()),En=parseFloat(r()),tn=En,Bt=!1;n()||(tn=parseFloat(r()),n()||(Bt=parseFloat(r())!==0)),Ve===Ve.toLowerCase()&&(un+=Ze.x,kn+=Ze.y),e.arcTo(ge,yt,un,kn,En,tn,Bt)}break;case"A":for(;!n();)ge=Math.abs(parseFloat(r())),yt=Math.abs(parseFloat(r())),un=parseFloat(r()),En=kn=!1,Bt=tn=0,tn=r(),tn.length===1?(kn=!!parseFloat(tn),En=!!parseFloat(r()),tn=parseFloat(r())):tn.length===2?(kn=!!parseFloat(tn[0]),En=!!parseFloat(tn[1]),tn=parseFloat(r())):(kn=!!parseFloat(tn[0]),En=!!parseFloat(tn[1]),tn=parseFloat(tn.slice(2))),Bt=parseFloat(r()),Ve===Ve.toLowerCase()&&(tn=Ze.x+tn,Bt=Ze.y+Bt),Ze.h(tn,Bt),j1(e,ge,yt,un,kn,En,tn,Bt);break;case"Z":B1(e),Ze.assign(x);break;case"F":for(ge="",yt=1;O[Te+yt];)if(O[Te+yt]==="0")ie=!0,yt++;else if(O[Te+yt].match(/[Uu]/)!==null)yt++;else if(O[Te+yt].match(st)===null)yt++;else{ge=O[Te+yt];break}ge.match(/[Mm]/)?M=!0:0<e.mc.segments.length&&(e.mc.isFilled=!0);break;case"U":for(ge="",yt=1;O[Te+yt];)if(O[Te+yt].match(/[Ff]/)!==null)yt++;else if(O[Te+yt].match(st)===null)yt++;else{ge=O[Te+yt];break}ge.match(/[Mm]/)?Y=!0:e.mc.isShadowed=!1}if(x=e.os,Qg=e,t)for(t=x.figures.iterator;t.next();)t.value.isFilled=!0;return x},qt.Ha=function(e,t){for(var n=e.length,r=Ie.alloc(),i=0;i<n;i++){var o=e[i];r.x=o[0],r.y=o[1],t.Ga(r),o[0]=r.x,o[1]=r.y,r.x=o[2],r.y=o[3],t.Ga(r),o[2]=r.x,o[3]=r.y,r.x=o[4],r.y=o[5],t.Ga(r),o[4]=r.x,o[5]=r.y,r.x=o[6],r.y=o[7],t.Ga(r),o[6]=r.x,o[7]=r.y}Ie.free(r)},qt.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===qt.o){if(this.aq!==this.figures.Ja)return!0;for(var e=this.figures.s,t=e.length,n=0;n<t;n++)if(e[n].Zu())return!0}return!1},qt.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===qt.o){this.aq=this.figures.Ja;for(var e=this.figures.s,t=e.length,n=0;n<t;n++){var r=e[n];r._isInvalidBounds=!1;var i=r.segments;r.sr=i.Ja,r=i.s,i=r.length;for(var o=0;o<i;o++){var a=r[o];a._isInvalidBounds=!1,a.ae=null}}}e=this.Ip,e.ka(),isNaN(this.Sk)||isNaN(this.Rk)?e.h(0,0,0,0):e.h(0,0,this.Sk,this.Rk),Zl(this,e,!1),Jr(e,0,0,0,0),e.freeze()},qt.prototype.ix=function(){var e=new xt;return Zl(this,e,!0),e};function Zl(e,t,n){switch(e.type){case qt.j:case qt.u:case qt.F:n?t.h(e.od,e.pd,0,0):Jr(t,e.od,e.pd,0,0),Jr(t,e.Dc,e.Ec,0,0);break;case qt.o:var r=e.figures;e=r.s,r=r.length;for(var i=0;i<r;i++){var o=e[i];n&&i===0?t.h(o.startX,o.startY,0,0):Jr(t,o.startX,o.startY,0,0);for(var a=o.segments.s,d=a.length,x=o.startX,O=o.startY,M=0;M<d;M++){var Y=a[M];switch(Y.type){case xi:case Yi:x=Y.endX,O=Y.endY,Jr(t,x,O,0,0);break;case Ao:ht.Dl(x,O,Y.point1X,Y.point1Y,Y.point2X,Y.point2Y,Y.endX,Y.endY,.5,t),x=Y.endX,O=Y.endY;break;case Hs:ht.iv(x,O,Y.point1X,Y.point1Y,Y.endX,Y.endY,.5,t),x=Y.endX,O=Y.endY;break;case mo:case $s:var ie=Y.type===mo?ps(Y,o):Ps(Y,o,x,O),ce=ie.length;if(ce===0){x=Y.type===mo?Y.centerX:Y.endX,O=Y.type===mo?Y.centerY:Y.endY,Jr(t,x,O,0,0);break}Y=null;for(var ge=0;ge<ce;ge++)Y=ie[ge],ht.Dl(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5],Y[6],Y[7],.5,t);Y!==null&&(x=Y[6],O=Y[7]);break;default:ft("Unknown Segment type: "+Y.type)}}}break;default:ft("Unknown Geometry type: "+e.type)}}qt.prototype.normalize=function(){this._isFrozen&&en(this);var e=this.ix();return this.offset(-e.x,-e.y),new Ie(-e.x,-e.y)},qt.prototype.offset=function(e,t){return this._isFrozen&&en(this),this.transform(1,0,0,1,e,t),this},qt.prototype.scale=function(e,t){return this._isFrozen&&en(this),this.transform(e,0,0,t,0,0),this},qt.prototype.rotate=function(e,t,n){this._isFrozen&&en(this),t===void 0&&(t=0),n===void 0&&(n=0);var r=Zn.alloc();return r.reset(),r.rotate(e,t,n),this.transform(r.m11,r.m12,r.m21,r.m22,r.dx,r.dy),Zn.free(r),this},me=qt.prototype,me.transform=function(e,t,n,r,i,o){switch(this.type){case qt.j:case qt.u:case qt.F:var a=this.od,d=this.pd;this.od=a*e+d*n+i,this.pd=a*t+d*r+o,a=this.Dc,d=this.Ec,this.Dc=a*e+d*n+i,this.Ec=a*t+d*r+o;break;case qt.o:for(var x=this.figures.s,O=x.length,M=0;M<O;M++){var Y=x[M];a=Y.startX,d=Y.startY,Y.startX=a*e+d*n+i,Y.startY=a*t+d*r+o,Y=Y.segments.s;for(var ie=Y.length,ce=0;ce<ie;ce++){var ge=Y[ce];switch(ge.type){case xi:case Yi:a=ge.endX,d=ge.endY,ge.endX=a*e+d*n+i,ge.endY=a*t+d*r+o;break;case Ao:a=ge.point1X,d=ge.point1Y,ge.point1X=a*e+d*n+i,ge.point1Y=a*t+d*r+o,a=ge.point2X,d=ge.point2Y,ge.point2X=a*e+d*n+i,ge.point2Y=a*t+d*r+o,a=ge.endX,d=ge.endY,ge.endX=a*e+d*n+i,ge.endY=a*t+d*r+o;break;case Hs:a=ge.point1X,d=ge.point1Y,ge.point1X=a*e+d*n+i,ge.point1Y=a*t+d*r+o,a=ge.endX,d=ge.endY,ge.endX=a*e+d*n+i,ge.endY=a*t+d*r+o;break;case mo:a=ge.centerX,d=ge.centerY,ge.centerX=a*e+d*n+i,ge.centerY=a*t+d*r+o,t!==0&&(a=180*Math.atan2(t,e)/Math.PI,0>a&&(a+=360),ge.startAngle+=a),0>e&&(ge.startAngle=180-ge.startAngle,ge.sweepAngle=-ge.sweepAngle),0>r&&(ge.startAngle=-ge.startAngle,ge.sweepAngle=-ge.sweepAngle),ge.radiusX*=Math.sqrt(e*e+n*n),ge.radiusY!==void 0&&(ge.radiusY*=Math.sqrt(t*t+r*r));break;case $s:if(a=ge.endX,d=ge.endY,ge.endX=a*e+d*n+i,ge.endY=a*t+d*r+o,ge.radiusX===0||ge.radiusY===0)break;t!==0&&(a=180*Math.atan2(t,e)/Math.PI,0>a&&(a+=360),ge.xAxisRotation+=a),0>e&&(ge.xAxisRotation=180-ge.xAxisRotation,ge.isClockwiseArc=!ge.isClockwiseArc),0>r&&(ge.xAxisRotation=-ge.xAxisRotation,ge.isClockwiseArc=!ge.isClockwiseArc),ge.radiusX*=Math.sqrt(e*e+n*n),ge.radiusY*=Math.sqrt(t*t+r*r);break;default:ft("Unknown Segment type: "+ge.type)}}}}return this._isInvalidBounds=!0,this},me.ca=function(e,t){t===void 0&&(t=0);var n=this.od,r=this.pd,i=this.Dc,o=this.Ec;switch(this.type){case qt.j:return ht.Yb(n,r,i,o,t,e.x,e.y);case qt.u:var a=xt.allocAt(Math.min(n,i)-t,Math.min(r,o)-t,Math.abs(i-n)+2*t,Math.abs(o-r)+2*t);return e=a.ca(e),xt.free(a),e;case qt.F:a=Math.min(n,i)-t;var d=Math.min(r,o)-t;return n=(Math.abs(i-n)+2*t)/2,t=(Math.abs(o-r)+2*t)/2,0>=n||0>=t?!1:(a=e.x-(a+n),d=e.y-(d+t),1>=a*a/(n*n)+d*d/(t*t));case qt.o:return Xo(this,e,t,!0,!1);default:return!1}};function Xo(e,t,n,r,i){var o=t.x;t=t.y;for(var a=e.bounds.x-20,d=0,x,O,M,Y,ie=e.figures.s,ce=ie.length,ge=0;ge<ce;ge++){var Te=ie[ge],Ve=!Te.isEvenOdd;if(Te.isFilled){if(r&&Te.ca(o,t,n))return!0;var He=Te.segments;x=Te.startX,O=Te.startY;for(var Xe=x,Ze=O,qe=He.s,st=0;st<=He.length;st++){var yt=void 0;if(st!==He.length){yt=qe[st];var un=yt.type;e=yt.endX,Y=yt.endY}else un=xi,e=Xe,Y=Ze;switch(un){case Yi:if(Xe=Ys(o,t,a,t,x,O,Xe,Ze),isNaN(Xe))return!0;d+=Xe,Xe=e,Ze=Y;break;case xi:if(x=Ys(o,t,a,t,x,O,e,Y),isNaN(x))return!0;d+=x;break;case Ao:M=ht.Fo(x,O,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,e,Y,a,t,o,t,.5),d+=M;break;case Hs:M=ht.Fo(x,O,(x+2*yt.point1X)/3,(O+2*yt.point1Y)/3,(2*yt.point1X+e)/3,(2*yt.point1Y+Y)/3,e,Y,a,t,o,t,.5),d+=M;break;case mo:case $s:un=yt.type===mo?ps(yt,Te):Ps(yt,Te,x,O);var kn=un.length;if(kn===0){if(x=Ys(o,t,a,t,x,O,yt.type===mo?yt.centerX:yt.endX,yt.type===mo?yt.centerY:yt.endY),isNaN(x))return!0;d+=x;break}yt=null;for(var En=0;En<kn;En++){if(yt=un[En],En===0){if(M=Ys(o,t,a,t,x,O,yt[0],yt[1]),isNaN(M))return!0;d+=M}M=ht.Fo(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],a,t,o,t,.5),d+=M}yt!==null&&(e=yt[6],Y=yt[7]);break;default:ft("Unknown Segment type: "+yt.type)}x=e,O=Y}if(Ve){if(d!==0)return!0}else if(d%2!==0)return!0;d=0}else if(Te.ca(o,t,i?n:n+2))return!0}return!1}function Ys(e,t,n,r,i,o,a,d){if(ht.Yb(i,o,a,d,.05,e,t))return NaN;var x=(e-n)*(o-d);if(x===0)return 0;var O=((e*r-t*n)*(i-a)-(e-n)*(i*d-o*a))/x;if(t=(e*r-t*n)*(o-d)/x,O>=e)return 0;if((i>a?i-a:a-i)<(o>d?o-d:d-o)){if(o<d){if(t<o||t>d)return 0}else if(t<d||t>o)return 0}else if(i<a){if(O<i||O>a)return 0}else if(O<a||O>i)return 0;return 0<x?1:-1}function vl(e,t,n,r){e=e.figures.s;for(var i=e.length,o=0;o<i;o++)if(e[o].ca(t,n,r))return!0;return!1}me.Pu=function(e,t){if(0>e?e=0:1<e&&(e=1),t===void 0&&(t=new Ie),this.type===qt.j)return t.h(this.startX+e*(this.endX-this.startX),this.startY+e*(this.endY-this.startY)),t;for(var n=this.flattenedSegments,r=this.flattenedLengths,i=n.length,o=this.flattenedTotalLength*e,a=0,d=0;d<i;d++){var x=r[d],O=x.length;for(e=0;e<O;e++){var M=x[e];if(a+M>=o)return r=o-a,r=M===0?0:r/M,n=n[d],d=n[2*e],i=n[2*e+1],t.h(d+(n[2*e+2]-d)*r,i+(n[2*e+3]-i)*r),t;a+=M}}return t},me.wx=function(e){if(0>e?e=0:1<e&&(e=1),this.type===qt.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var t=this.flattenedSegments,n=this.flattenedLengths,r=t.length,i=this.flattenedTotalLength*e,o=0,a=0;a<r;a++){var d=n[a],x=d.length;for(e=0;e<x;e++){var O=d[e];if(o+O>=i)return i=t[a],t=i[2*e],n=i[2*e+1],r=i[2*e+2],e=i[2*e+3],1>Math.abs(r-t)&&1>Math.abs(e-n)?0:1>Math.abs(r-t)?0<=e-n?90:270:1>Math.abs(e-n)?0<=r-t?0:180:180*Math.atan2(e-n,r-t)/Math.PI;o+=O}}return NaN},me.Qu=function(e,t){if(0>e?e=0:1<e&&(e=1),t===void 0&&(t=[]),t.length=3,this.type===qt.j)return t[0]=this.startX+e*(this.endX-this.startX),t[1]=this.startY+e*(this.endY-this.startY),t[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,t;for(var n=this.flattenedSegments,r=this.flattenedLengths,i=n.length,o=this.flattenedTotalLength*e,a=0,d=0;d<i;d++){var x=r[d],O=x.length;for(e=0;e<O;e++){var M=x[e];if(a+M>=o)return r=o-a,r=M===0?0:r/M,M=n[d],n=M[2*e],d=M[2*e+1],i=M[2*e+2],e=M[2*e+3],t[0]=n+(i-n)*r,t[1]=d+(e-d)*r,t[2]=1>Math.abs(i-n)&&1>Math.abs(e-d)?0:1>Math.abs(i-n)?0<=e-d?90:270:1>Math.abs(e-d)?0<=i-n?0:180:180*Math.atan2(e-d,i-n)/Math.PI,t;a+=M}}return t},me.xx=function(e){if(this.type===qt.j){var t=this.startX,n=this.startY,r=this.endX,i=this.endY;if(t!==r||n!==i){var o=e.x;if(e=e.y,t===r){if(n<i){var a=n;r=i}else a=i,r=n;return e<=a?a===n?0:1:e>=r?r===n?0:1:Math.abs(e-n)/(r-a)}if(n===i)return t<r?a=t:(a=r,r=t),o<=a?a===t?0:1:o>=r?r===t?0:1:Math.abs(o-t)/(r-a);a=(r-t)*(r-t)+(i-n)*(i-n);var d=Ie.alloc();return ht.qh(t,n,r,i,o,e,d),e=d.x,o=d.y,Ie.free(d),Math.sqrt(((e-t)*(e-t)+(o-n)*(o-n))/a)}}else if(this.type===qt.u){a=this.startX,d=this.startY;var x=this.endX;if(i=this.endY,a!==x||d!==i){t=x-a,n=i-d,o=2*t+2*n,r=e.x,e=e.y,r=Math.min(Math.max(r,a),x),e=Math.min(Math.max(e,d),i),a=Math.abs(r-a),x=Math.abs(r-x),d=Math.abs(e-d),i=Math.abs(e-i);var O=Math.min(a,x,d,i);if(O===d)return r/o;if(O===x)return(t+e)/o;if(O===i)return(2*t+n-r)/o;if(O===a)return(2*t+2*n-e)/o}}else{t=this.flattenedSegments,n=this.flattenedLengths,o=this.flattenedTotalLength,r=Ie.alloc(),i=1/0,d=a=0,x=t.length;for(var M=O=0,Y=0;Y<x;Y++)for(var ie=t[Y],ce=n[Y],ge=ie.length,Te=0;Te<ge;Te+=2){var Ve=ie[Te],He=ie[Te+1];if(Te!==0){ht.qh(O,M,Ve,He,e.x,e.y,r);var Xe=(r.x-e.x)*(r.x-e.x)+(r.y-e.y)*(r.y-e.y);Xe<i&&(i=Xe,a=d,a+=Math.sqrt((r.x-O)*(r.x-O)+(r.y-M)*(r.y-M))),d+=ce[(Te-2)/2]}O=Ve,M=He}return Ie.free(r),e=a/o,0>e?0:1<e?1:e}return 0};function Ml(e){if(e.tk===null){var t=e.tk=[],n=e.ym=[],r=[],i=[];if(e.type===qt.j)r.push(e.startX),r.push(e.startY),r.push(e.endX),r.push(e.endY),t.push(r),i.push(Math.sqrt((e.startX-e.endX)*(e.startX-e.endX)+(e.startY-e.endY)*(e.startY-e.endY))),n.push(i);else if(e.type===qt.u)r.push(e.startX),r.push(e.startY),r.push(e.endX),r.push(e.startY),r.push(e.endX),r.push(e.endY),r.push(e.startX),r.push(e.endY),r.push(e.startX),r.push(e.startY),t.push(r),i.push(Math.abs(e.startX-e.endX)),i.push(Math.abs(e.startY-e.endY)),i.push(Math.abs(e.startX-e.endX)),i.push(Math.abs(e.startY-e.endY)),n.push(i);else if(e.type===qt.F){var o=new To;o.startX=e.endX,o.startY=(e.startY+e.endY)/2;var a=new Mr(mo);if(a.startAngle=0,a.sweepAngle=360,a.centerX=(e.startX+e.endX)/2,a.centerY=(e.startY+e.endY)/2,a.radiusX=Math.abs(e.startX-e.endX)/2,a.radiusY=Math.abs(e.startY-e.endY)/2,o.add(a),e=ps(a,o),i=e.length,i===0)r.push(a.centerX),r.push(a.centerY);else{a=o.startX,o=o.startY;for(var d=0;d<i;d++){var x=e[d];ht.Qe(a,o,x[2],x[3],x[4],x[5],x[6],x[7],.5,r),a=x[6],o=x[7]}}t.push(r),n.push(Jl(r))}else for(e=e.figures.iterator;e.next();){i=e.value,r=[],r.push(i.startX),r.push(i.startY),a=i.startX,o=i.startY,d=a,x=o;for(var O=i.segments.s,M=O.length,Y=0;Y<M;Y++){var ie=O[Y];switch(ie.type){case Yi:4<=r.length&&(t.push(r),n.push(Jl(r))),r=[],r.push(ie.endX),r.push(ie.endY),a=ie.endX,o=ie.endY,d=a,x=o;break;case xi:r.push(ie.endX),r.push(ie.endY),a=ie.endX,o=ie.endY;break;case Ao:ht.Qe(a,o,ie.point1X,ie.point1Y,ie.point2X,ie.point2Y,ie.endX,ie.endY,.5,r),a=ie.endX,o=ie.endY;break;case Hs:ht.ep(a,o,ie.point1X,ie.point1Y,ie.endX,ie.endY,.5,r),a=ie.endX,o=ie.endY;break;case mo:var ce=ps(ie,i),ge=ce.length;if(ge===0){r.push(ie.centerX),r.push(ie.centerY),a=ie.centerX,o=ie.centerY;break}for(var Te=0;Te<ge;Te++){var Ve=ce[Te];ht.Qe(a,o,Ve[2],Ve[3],Ve[4],Ve[5],Ve[6],Ve[7],.5,r),a=Ve[6],o=Ve[7]}break;case $s:if(ce=Ps(ie,i,a,o),ge=ce.length,Te=ie.endX,Ve=ie.endY,ge===0){r.push(Te),r.push(Ve),a=Te,o=Ve;break}for(Te=0;Te<ge;Te++)Ve=ce[Te],ht.Qe(a,o,Ve[2],Ve[3],Ve[4],Ve[5],Ve[6],Ve[7],.5,r),a=Ve[6],o=Ve[7];break;default:ft("Segment not of valid type: "+ie.type)}ie.isClosed&&(r.push(d),r.push(x))}4<=r.length&&(t.push(r),n.push(Jl(r)))}}}function Jl(e){for(var t=[],n=0,r=0,i=e.length,o=0;o<i;o+=2){var a=e[o],d=e[o+1];o!==0&&t.push(Math.sqrt(Xn(n,r,a,d))),n=a,r=d}return t}me.add=function(e){return this.ee.add(e),this},me.pm=function(e,t,n,r,i,o,a,d){return this._isFrozen&&en(this),this.fg=new an(e,t,i,o).freeze(),this.gg=new an(n,r,a,d).freeze(),this},Mn.Object.defineProperties(qt.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return Ml(this),this.tk}},flattenedLengths:{get:function(){return Ml(this),this.ym}},flattenedTotalLength:{get:function(){var e=this.zm;if(isNaN(e)){if(this.type===qt.j){e=Math.abs(this.endX-this.startX);var t=Math.abs(this.endY-this.startY);e=Math.sqrt(e*e+t*t)}else if(this.type===qt.u)e=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{t=this.flattenedLengths;for(var n=t.length,r=e=0;r<n;r++)for(var i=t[r],o=i.length,a=0;a<o;a++)e+=i[a]}this.zm=e}return e}},type:{get:function(){return this.na},set:function(e){this.na!==e&&(this._isFrozen&&en(this,e),this.na=e,e===qt.o?this.ee=new Gt:(qt.V===null&&(qt.V=new Gt().freeze()),this.ee=qt.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(e){this.od!==e&&(this._isFrozen&&en(this,e),this.od=e,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(e){this.pd!==e&&(this._isFrozen&&en(this,e),this.pd=e,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(e){this.Dc!==e&&(this._isFrozen&&en(this,e),this.Dc=e,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(e){this.Ec!==e&&(this._isFrozen&&en(this,e),this.Ec=e,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(e){this.ee!==e&&(this._isFrozen&&en(this,e),this.ee=e,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(e){this._isFrozen&&en(this,e),this.fg=e.J()}},spot2:{get:function(){return this.gg},set:function(e){this._isFrozen&&en(this,e),this.gg=e.J()}},defaultStretch:{get:function(){return this.Uf},set:function(e){this._isFrozen&&en(this,e),this.Uf=e}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),qt.prototype.setSpots=qt.prototype.pm,qt.prototype.add=qt.prototype.add,qt.prototype.getFractionForPoint=qt.prototype.xx,qt.prototype.getPointAndAngleAlongPath=qt.prototype.Qu,qt.prototype.getAngleAlongPath=qt.prototype.wx,qt.prototype.getPointAlongPath=qt.prototype.Pu,qt.prototype.containsPoint=qt.prototype.ca,qt.prototype.transform=qt.prototype.transform,qt.prototype.rotate=qt.prototype.rotate,qt.prototype.scale=qt.prototype.scale,qt.prototype.offset=qt.prototype.offset,qt.prototype.normalize=qt.prototype.normalize,qt.prototype.computeBoundsWithoutOrigin=qt.prototype.ix,qt.prototype.equalsApprox=qt.prototype.Xa,qt.className="Geometry",qt.j=new Dt(qt,"Line",0),qt.u=new Dt(qt,"Rectangle",1),qt.F=new Dt(qt,"Ellipse",2),qt.o=new Dt(qt,"Path",3),qt.V=null,qt.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",qt.className="Geometry",qt.stringify=qt.ia,qt.fillPath=qt.nb,qt.parse=qt.parse,qt.Line=qt.j,qt.Rectangle=qt.u,qt.Ellipse=qt.F,qt.Path=qt.o;function To(e,t,n,r,i){Wn(this),n===void 0&&(n=!0),r===void 0&&(r=!0),i===void 0&&(i=!1),this.l=2|(n?4:0)|(r?8:0)|(i?16:0),e!==void 0?this.od=e:this.od=0,t!==void 0?this.pd=t:this.pd=0,this.pl=new Gt,this.sr=this.pl.Ja,this.fw=null}To.prototype.copy=function(){var e=new To;e.l=this.l&-2,e.od=this.od,e.pd=this.pd;for(var t=this.pl.s,n=t.length,r=e.pl,i=0;i<n;i++){var o=t[i].copy();r.add(o)}return e.sr=this.sr,e.fw=this.fw,e},me=To.prototype,me.Xa=function(e){if(!(e instanceof To&&ht.B(this.startX,e.startX)&&ht.B(this.startY,e.startY)))return!1;var t=this.segments.s;e=e.segments.s;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(!t[r].Xa(e[r]))return!1;return!0},me.toString=function(e){e===void 0&&(e=-1);for(var t=0>e?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e),n=this.segments.s,r=n.length,i=0;i<r;i++)t+=" "+n[i].toString(e);return t},me.freeze=function(){this._isFrozen=!0;var e=this.segments;e.freeze();var t=e.s;e=e.length;for(var n=0;n<e;n++)t[n].freeze();return this},me.ka=function(){this._isFrozen=!1;var e=this.segments;e.ka(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].ka();return this},me.Zu=function(){if(this._isInvalidBounds)return!0;var e=this.segments;if(this.sr!==e.Ja)return!0;e=e.s;for(var t=e.length,n=0;n<t;n++)if(e[n]._isInvalidBounds)return!0;return!1},me.add=function(e){return this.pl.add(e),this},me.ca=function(e,t,n){for(var r=this.startX,i=this.startY,o=r,a=i,d=this.segments.s,x=d.length,O=0;O<x;O++){var M=d[O];switch(M.type){case Yi:o=M.endX,a=M.endY,r=M.endX,i=M.endY;break;case xi:if(ht.Yb(r,i,M.endX,M.endY,n,e,t))return!0;r=M.endX,i=M.endY;break;case Ao:if(ht.cs(r,i,M.point1X,M.point1Y,M.point2X,M.point2Y,M.endX,M.endY,.5,e,t,n))return!0;r=M.endX,i=M.endY;break;case Hs:if(ht.jv(r,i,M.point1X,M.point1Y,M.endX,M.endY,.5,e,t,n))return!0;r=M.endX,i=M.endY;break;case mo:case $s:var Y=M.type===mo?ps(M,this):Ps(M,this,r,i),ie=Y.length,ce=M.type===mo?M.centerX:M.endX,ge=M.type===mo?M.centerY:M.endY;if(ie===0){if(ht.Yb(r,i,ce,ge,n,e,t))return!0;r=ce,i=ge;break}for(ce=null,ge=0;ge<ie;ge++)if(ce=Y[ge],ge===0&&ht.Yb(r,i,ce[0],ce[1],n,e,t)||ht.cs(ce[0],ce[1],ce[2],ce[3],ce[4],ce[5],ce[6],ce[7],.5,e,t,n))return!0;ce!==null&&(r=ce[6],i=ce[7]);break;default:ft("Unknown Segment type: "+M.type)}if(M.isClosed&&(r!==o||i!==a)&&ht.Yb(r,i,o,a,n,e,t))return!0}return!1},Mn.Object.defineProperties(To.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(e){this._isFrozen&&en(this,e),this.l=e?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(e){this._isFrozen&&en(this,e),this.l=e?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(e){this._isFrozen&&en(this,e),this.l=e?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(e){this._isFrozen&&en(this,e),this.od=e,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(e){this._isFrozen&&en(this,e),this.pd=e,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(e){this._isFrozen&&en(this,e),this.pl=e,this._isInvalidBounds=!0}}}),To.prototype.add=To.prototype.add,To.prototype.equalsApprox=To.prototype.Xa,To.className="PathFigure";function Mr(e,t,n,r,i,o,a,d){Wn(this),e===void 0&&(e=xi),this.na=e,this.l=2,t!==void 0?this.Dc=t:this.Dc=0,n!==void 0?this.Ec=n:this.Ec=0,r===void 0&&(r=0),i===void 0&&(i=0),o===void 0&&(o=0),a===void 0&&(a=0),e===$s?(e=o%360,0>e&&(e+=360),this.Ne=e,this.Vh=0,this.Wh=Math.max(r,0),this.Pg=Math.max(i,0),typeof a=="boolean"?a&&(this.isLargeArc=!0):typeof a=="number"&&a&&(this.isLargeArc=!0),d&&(this.isClockwiseArc=!0)):(this.Ne=r,this.Vh=i,e===mo&&(o=Math.max(o,0)),this.Wh=o,typeof a=="number"?(e===mo&&(a=Math.max(a,0)),this.Pg=a):this.Pg=0),this.ae=null}Mr.prototype.copy=function(){var e=new Mr;return e.na=this.na,e.l=this.l&-2,e.Dc=this.Dc,e.Ec=this.Ec,e.Ne=this.Ne,e.Vh=this.Vh,e.Wh=this.Wh,e.Pg=this.Pg,e},me=Mr.prototype,me.Xa=function(e){if(!(e instanceof Mr)||this.type!==e.type||this.isClosed!==e.isClosed)return!1;switch(this.type){case Yi:case xi:return ht.B(this.endX,e.endX)&&ht.B(this.endY,e.endY);case Ao:return ht.B(this.endX,e.endX)&&ht.B(this.endY,e.endY)&&ht.B(this.point1X,e.point1X)&&ht.B(this.point1Y,e.point1Y)&&ht.B(this.point2X,e.point2X)&&ht.B(this.point2Y,e.point2Y);case Hs:return ht.B(this.endX,e.endX)&&ht.B(this.endY,e.endY)&&ht.B(this.point1X,e.point1X)&&ht.B(this.point1Y,e.point1Y);case mo:return ht.B(this.startAngle,e.startAngle)&&ht.B(this.sweepAngle,e.sweepAngle)&&ht.B(this.centerX,e.centerX)&&ht.B(this.centerY,e.centerY)&&ht.B(this.radiusX,e.radiusX)&&ht.B(this.radiusY,e.radiusY);case $s:return this.isClockwiseArc===e.isClockwiseArc&&this.isLargeArc===e.isLargeArc&&ht.B(this.xAxisRotation,e.xAxisRotation)&&ht.B(this.endX,e.endX)&&ht.B(this.endY,e.endY)&&ht.B(this.radiusX,e.radiusX)&&ht.B(this.radiusY,e.radiusY);default:return!1}},me.qb=function(e){e.classType===Mr&&(this.type=e)},me.toString=function(e){switch(e===void 0&&(e=-1),this.type){case Yi:e=0>e?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case xi:e=0>e?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case Ao:e=0>e?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.point2X.toFixed(e)+" "+this.point2Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case Hs:e=0>e?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case mo:e=0>e?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(e)+" "+this.sweepAngle.toFixed(e)+" "+this.centerX.toFixed(e)+" "+this.centerY.toFixed(e)+" "+this.radiusX.toFixed(e)+" "+this.radiusY.toFixed(e);break;case $s:e=0>e?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(e)+" "+this.radiusY.toFixed(e)+" "+this.xAxisRotation.toFixed(e)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;default:e=this.type.toString()}return e+(this.isClosed?"z":"")},me.freeze=function(){return this._isFrozen=!0,this},me.ka=function(){return this._isFrozen=!1,this},me.close=function(){return this.isClosed=!0,this};function ps(e,t){if(e.ae!==null&&t._isInvalidBounds===!1)return e.ae;var n=e.radiusX,r=e.radiusY;if(r===void 0&&(r=n),n===0||r===0)return e.ae=[],e.ae;t=e.Ne;var i=e.Vh,o=ht.jx(0,0,n<r?n:r,e.startAngle,e.startAngle+e.sweepAngle,!1);if(n!==r){var a=Zn.alloc();a.reset(),n<r?a.scale(1,r/n):a.scale(n/r,1),qt.Ha(o,a),Zn.free(a)}for(n=o.length,r=0;r<n;r++)a=o[r],a[0]+=t,a[1]+=i,a[2]+=t,a[3]+=i,a[4]+=t,a[5]+=i,a[6]+=t,a[7]+=i;return e.ae=o,e.ae}function Ps(e,t,n,r){function i(Te,Ve,He,Xe){return(Te*Xe<Ve*He?-1:1)*Math.acos((Te*He+Ve*Xe)/(Math.sqrt(Te*Te+Ve*Ve)*Math.sqrt(He*He+Xe*Xe)))}if(e.ae!==null&&t._isInvalidBounds===!1)return e.ae;if(e.radiusX===0||e.radiusY===0)return e.ae=[],e.ae;t=e.Wh;var o=e.Pg;t===0&&(t=1e-4),o===0&&(o=1e-4);var a=Math.PI/180*e.Ne,d=e.isLargeArc,x=e.isClockwiseArc,O=e.Dc,M=e.Ec,Y=Math.cos(a),ie=Math.sin(a),ce=Y*(n-O)/2+ie*(r-M)/2;a=-ie*(n-O)/2+Y*(r-M)/2;var ge=ce*ce/(t*t)+a*a/(o*o);return 1<ge&&(t*=Math.sqrt(ge),o*=Math.sqrt(ge)),ge=(d===x?-1:1)*Math.sqrt((t*t*o*o-t*t*a*a-o*o*ce*ce)/(t*t*a*a+o*o*ce*ce)),isNaN(ge)&&(ge=0),d=ge*t*a/o,ge=ge*-o*ce/t,isNaN(d)&&(d=0),isNaN(ge)&&(ge=0),n=(n+O)/2+Y*d-ie*ge,r=(r+M)/2+ie*d+Y*ge,M=i(1,0,(ce-d)/t,(a-ge)/o),Y=(ce-d)/t,O=(a-ge)/o,ce=(-ce-d)/t,d=(-a-ge)/o,a=i(Y,O,ce,d),ce=(Y*ce+O*d)/(Math.sqrt(Y*Y+O*O)*Math.sqrt(ce*ce+d*d)),-1>=ce?a=Math.PI:1<=ce&&(a=0),!x&&0<a&&(a-=2*Math.PI),x&&0>a&&(a+=2*Math.PI),x=t>o?1:t/o,ce=t>o?o/t:1,t=ht.jx(0,0,t>o?t:o,M,M+a,!0),o=Zn.alloc(),o.reset(),o.translate(n,r),o.rotate(e.Ne,0,0),o.scale(x,ce),qt.Ha(t,o),Zn.free(o),e.ae=t,e.ae}Mn.Object.defineProperties(Mr.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(e){this.isClosed!==e&&(this.l=e?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(e){this._isFrozen&&en(this,e),this.na=e,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(e){this._isFrozen&&en(this,e),this.Dc=e,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(e){this._isFrozen&&en(this,e),this.Ec=e,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(e){this._isFrozen&&en(this,e),this.Ne=e,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(e){this._isFrozen&&en(this,e),this.Vh=e,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(e){this._isFrozen&&en(this,e),this.Wh=e,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(e){this._isFrozen&&en(this,e),this.Pg=e,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(e){this._isFrozen&&en(this,e),this.Ne=e,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(e){this._isFrozen&&en(this,e),this.Vh=e,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(e){0>e&&An(e,">= zero",Mr,"radiusX"),this._isFrozen&&en(this,e),this.Wh=e,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(e){0>e&&An(e,">= zero",Mr,"radiusY"),this._isFrozen&&en(this,e),this.Pg=e,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(e){this._isFrozen&&en(this,e),e%=360,0>e&&(e+=360),this.Dc=e,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(e){this._isFrozen&&en(this,e),360<e&&(e=360),-360>e&&(e=-360),this.Ec=e,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(e){this._isFrozen&&en(this,e),this.l=e?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(e){this._isFrozen&&en(this,e),this.l=e?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(e){this._isFrozen&&en(this,e),e%=360,0>e&&(e+=360),this.Ne=e,this._isInvalidBounds=!0}}}),Mr.prototype.equalsApprox=Mr.prototype.Xa;var Yi=new Dt(Mr,"Move",0),xi=new Dt(Mr,"Line",1),Ao=new Dt(Mr,"Bezier",2),Hs=new Dt(Mr,"QuadraticBezier",3),mo=new Dt(Mr,"Arc",4),$s=new Dt(Mr,"SvgArc",4);Mr.className="PathSegment",Mr.Move=Yi,Mr.Line=xi,Mr.Bezier=Ao,Mr.QuadraticBezier=Hs,Mr.Arc=mo,Mr.SvgArc=$s;function is(){this.H=null,this.xu=new Ie(0,0).freeze(),this.mt=new Ie(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}is.prototype.copy=function(){var e=new is;return this.clone(e)},is.prototype.clone=function(e){return e.H=this.H,e.xu.assign(this.viewPoint),e.mt.assign(this.documentPoint),e.Rq=this.Rq,e.Bp=this.Bp,e.Cp=this.Cp,e.xq=this.xq,e.Tp=this.Tp,e.Wr=this.Wr,e.Ep=this.Ep,e.Rp=this.Rp,e.tq=this.tq,e.nq=this.nq,e.xg=this.xg,e.Zp=this.Zp,e.Rr=this.Rr,e.Nr=this.Nr,e.xd=this.xd,e},is.prototype.toString=function(){var e="^";return this.modifiers!==0&&(e+="M:"+this.modifiers),this.button!==0&&(e+="B:"+this.button),this.key!==""&&(e+="K:"+this.key),this.clickCount!==0&&(e+="C:"+this.clickCount),this.delta!==0&&(e+="D:"+this.delta),this.handled&&(e+="h"),this.bubbles&&(e+="b"),this.documentPoint!==null&&(e+="@"+this.documentPoint.toString()),e},is.prototype.So=function(e,t){var n=this.diagram;return n===null||Gd(n,e,t),t},is.prototype.Bz=function(e,t){var n=this.diagram;return n===null||(Gd(n,e,t),t.assign(n.Ps(t))),t},Mn.Object.defineProperties(is.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},viewPoint:{get:function(){return this.xu},set:function(e){this.xu.assign(e)}},documentPoint:{get:function(){return this.mt},set:function(e){this.mt.assign(e)}},modifiers:{get:function(){return this.Rq},set:function(e){this.Rq=e}},button:{get:function(){return this.Bp},set:function(e){if(this.Bp=e,this.event===null)switch(e){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(e){this.Cp=e}},key:{get:function(){return this.xq},set:function(e){this.xq=e}},down:{get:function(){return this.Tp},set:function(e){this.Tp=e}},up:{get:function(){return this.Wr},set:function(e){this.Wr=e}},clickCount:{get:function(){return this.Ep},set:function(e){this.Ep=e}},delta:{get:function(){return this.Rp},set:function(e){this.Rp=e}},isMultiTouch:{get:function(){return this.tq},set:function(e){this.tq=e}},handled:{get:function(){return this.nq},set:function(e){this.nq=e}},bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},event:{get:function(){return this.Zp},set:function(e){this.Zp=e}},isTouchEvent:{get:function(){var e=this.event;return e===null?!1:e.pointerType==="touch"||e.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(e){this.Rr=e}},targetDiagram:{get:function(){return this.Nr},set:function(e){this.Nr=e}},targetObject:{get:function(){return this.xd},set:function(e){this.xd=e}},control:{get:function(){return(this.modifiers&1)!==0},set:function(e){this.modifiers=e?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(e){this.modifiers=e?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(e){this.modifiers=e?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(e){this.modifiers=e?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(e){this.buttons=e?this.buttons|1:this.buttons&-2}},right:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(e){this.buttons=e?this.buttons|2:this.buttons&-3}},middle:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(e){this.buttons=e?this.buttons|4:this.buttons&-5}}}),is.prototype.getMultiTouchDocumentPoint=is.prototype.Bz,is.prototype.getMultiTouchViewPoint=is.prototype.So,is.className="InputEvent";function yl(){this.H=null,this.xa="",this.ar=this.Lr=null}yl.prototype.copy=function(){var e=new yl;return e.H=this.H,e.xa=this.xa,e.Lr=this.Lr,e.ar=this.ar,e},yl.prototype.toString=function(){var e="*"+this.name;return this.subject!==null&&(e+=":"+this.subject.toString()),this.parameter!==null&&(e+="("+this.parameter.toString()+")"),e},Mn.Object.defineProperties(yl.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},subject:{get:function(){return this.Lr},set:function(e){this.Lr=e}},parameter:{get:function(){return this.ar},set:function(e){this.ar=e}}}),yl.className="DiagramEvent";function Xi(){this.Fm=ji,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Xi.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Xi.prototype.copy=function(){var e=new Xi;e.Fm=this.Fm,e.Qq=this.Qq,e.rf=this.rf,e.cc=this.cc,e.H=this.H,e.Qn=this.Qn;var t=this.Sn;return e.Sn=gt(t)&&typeof t.J=="function"?t.J():t,t=this.Rn,e.Rn=gt(t)&&typeof t.J=="function"?t.J():t,t=this.Mn,e.Mn=gt(t)&&typeof t.J=="function"?t.J():t,t=this.Ln,e.Ln=gt(t)&&typeof t.J=="function"?t.J():t,e},Xi.prototype.qb=function(e){e.classType===Xi&&(this.change=e)},Xi.prototype.toString=function(){var e="";return e=this.change===gs?e+"* ":this.change===ji?e+(this.model!==null?"!m":"!d"):e+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(e+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(e+=" "+this.modelChange),e+=": ",this.change===gs?this.oldValue!==null&&(e+=" "+this.oldValue):(this.object!==null&&(e+=lr(this.object)),this.oldValue!==null&&(e+=" old: "+lr(this.oldValue)),this.oldParam!==null&&(e+=" "+this.oldParam),this.newValue!==null&&(e+=" new: "+lr(this.newValue)),this.newParam!==null&&(e+=" "+this.newParam)),e},Xi.prototype.I=function(e){return e?this.oldValue:this.newValue},Xi.prototype.Dz=function(e){return e?this.oldParam:this.newParam},Xi.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Xi.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Xi.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Xi.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Mn.Object.defineProperties(Xi.prototype,{model:{get:function(){return this.cc},set:function(e){this.cc=e}},diagram:{get:function(){return this.H},set:function(e){this.H=e}},change:{get:function(){return this.Fm},set:function(e){this.Fm=e}},modelChange:{get:function(){return this.Qq},set:function(e){this.Qq=e}},propertyName:{get:function(){return this.rf},set:function(e){this.rf=e}},isTransactionFinished:{get:function(){return this.Fm===gs&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(e){this.Qn=e}},oldValue:{get:function(){return this.Sn},set:function(e){this.Sn=e}},oldParam:{get:function(){return this.Rn},set:function(e){this.Rn=e}},newValue:{get:function(){return this.Mn},set:function(e){this.Mn=e}},newParam:{get:function(){return this.Ln},set:function(e){this.Ln=e}}}),Xi.prototype.redo=Xi.prototype.redo,Xi.prototype.canRedo=Xi.prototype.canRedo,Xi.prototype.undo=Xi.prototype.undo,Xi.prototype.canUndo=Xi.prototype.canUndo,Xi.prototype.getParam=Xi.prototype.Dz,Xi.prototype.getValue=Xi.prototype.I,Xi.prototype.clear=Xi.prototype.clear;var gs=new Dt(Xi,"Transaction",-1),ji=new Dt(Xi,"Property",0),uo=new Dt(Xi,"Insert",1),po=new Dt(Xi,"Remove",2);Xi.className="ChangedEvent",Xi.Transaction=gs,Xi.Property=ji,Xi.Insert=uo,Xi.Remove=po;function _o(){this.o=new Gt().freeze(),this.xa="",this.j=!1}_o.prototype.toString=function(e){var t="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(e!==void 0&&0<e){e=this.changes.count;for(var n=0;n<e;n++){var r=this.changes.M(n);r!==null&&(t+=`
`+r.toString())}}return t},_o.prototype.clear=function(){var e=this.changes;e.ka();for(var t=e.count-1;0<=t;t--){var n=e.M(t);n!==null&&n.clear()}e.clear(),e.freeze()},_o.prototype.canUndo=function(){return this.isComplete},_o.prototype.undo=function(){if(this.canUndo())for(var e=this.changes.count-1;0<=e;e--){var t=this.changes.M(e);t!==null&&t.undo()}},_o.prototype.canRedo=function(){return this.isComplete},_o.prototype.redo=function(){if(this.canRedo())for(var e=this.changes.count,t=0;t<e;t++){var n=this.changes.M(t);n!==null&&n.redo()}},_o.prototype.ak=function(){if(this.isComplete){var e=this.changes;e.ka();for(var t=new Et,n=0;n<e.count;n++){var r=e.M(n);if(r!==null&&r.change===ji&&r.object){var i=t.get(r.object);i||(i=new Et,t.set(r.object,i));var o=i.get(r.propertyName);o===null?i.set(r.propertyName,-1):(0<o&&e.cd(o,null),i.set(r.propertyName,n))}}for(n=t=0;n<e.count;n++)r=e.M(n),r!==null&&(n>t&&e.cd(t,r),t++);for(;e.length>t;)e.pop();e.freeze()}},Mn.Object.defineProperties(_o.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isComplete:{get:function(){return this.j},set:function(e){this.j=e}}}),_o.prototype.optimize=_o.prototype.ak,_o.prototype.redo=_o.prototype.redo,_o.prototype.canRedo=_o.prototype.canRedo,_o.prototype.undo=_o.prototype.undo,_o.prototype.canUndo=_o.prototype.canUndo,_o.prototype.clear=_o.prototype.clear,_o.className="Transaction";function Ai(){this.Pt=new Kt,this.Jd=!1,this.u=new Gt().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Gt().freeze(),this.hl=new Gt,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Ai.prototype.toString=function(e){var t="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;t+="[";for(var n=this.nestedTransactionNames.count,r=0;r<n;r++)0<r&&(t+=" "),t+=this.nestedTransactionNames.M(r);if(t+="]",e!==void 0&&0<e)for(n=this.history.count,r=0;r<n;r++)t+=`
`+this.history.M(r).toString(e-1);return t},Ai.prototype.clear=function(){var e=this.history;e.ka();for(var t=e.count-1;0<=t;t--){var n=e.M(t);n!==null&&n.clear()}e.clear(),this.Ce=-1,e.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},Ai.prototype.copyProperties=function(e){this.isEnabled=e.isEnabled,this.maxHistoryLength=e.maxHistoryLength,this.checksTransactionLevel=e.checksTransactionLevel},me=Ai.prototype,me.Xw=function(e){this.Pt.add(e)},me.Rx=function(e){this.Pt.remove(e)},me.Ea=function(e){if(e===void 0&&(e=""),e===null&&(e=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",e,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(e),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var t=this.transactionLevel===1;return t&&(this.isInternalTransaction||this.Ob("StartedTransaction",e,this.currentTransaction)),t},me.eb=function(e){return e===void 0&&(e=""),Ql(this,!0,e)},me.Kf=function(){return Ql(this,!1,"")};function Ql(e,t,n){if(e.isUndoingRedoing)return!1;e.checksTransactionLevel&&1>e.transactionLevel&&Un("Ending transaction without having started a transaction: "+n);var r=e.transactionLevel===1,i=e.currentTransaction;r&&t&&(e.isInternalTransaction||e.Ob("CommittingTransaction",n,i));var o=0;if(0<e.transactionLevel&&(e.bi--,e.isEnabled)){var a=e.Ie.count;0<a&&(n===""&&(n=e.Ie.M(0)),e.Ie.ka(),e.Ie.mb(a-1),e.Ie.freeze()),a=e.hl.count,0<a&&(o=e.hl.M(a-1),e.hl.mb(a-1))}if(r){if(t)e.rq=!1,i===null&&n!==""&&(i=e.currentTransaction),e.isEnabled&&i!==null&&(i.isComplete||(i.isComplete=!0,i.name=n),e.lx(),t=e.history,t.ka(),r=e.maxHistoryLength,0<=r&&(r===0?t.clear():t.count>=r&&(o=t.M(0),o!==null&&o.clear(),t.mb(0),e.Ce--)),r===0||t.count!==0&&t.get(t.count-1)===i||(t.add(i),e.Ce++),t.freeze()),e.isInternalTransaction||e.Ob("CommittedTransaction",n,i);else{e.Fe=!0;try{e.isEnabled&&i!==null&&(i.isComplete=!0,i.undo())}finally{e.isInternalTransaction||e.Ob("RolledBackTransaction",n,i),e.Fe=!1}i!==null&&i.clear()}return e.Np=null,e.isPendingClear&&e.clear(),e.isPendingClear=!1,e.isPendingUnmodified=!1,!0}if(e.isEnabled&&!t&&i!==null){for(e=o,n=i.changes,i=n.count-1;i>=e;i--)t=n.M(i),t!==null&&t.undo(),n.ka(),n.mb(i);n.freeze()}return!1}me.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var e=this.history;e.ka();for(var t=e.count-1;t>this.historyIndex;t--){var n=e.M(t);n!==null&&n.clear(),e.mb(t),this.rq=!0}e.freeze()}},Ai.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToUndo;return!!(e!==null&&e.canUndo())},Ai.prototype.undo=function(){if(this.canUndo()){var e=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",e),this.Ce--,e.undo()}catch(t){Un("undo error: "+t.toString())}finally{this.Ob("FinishedUndo","Undo",e),this.Fe=!1}}},Ai.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToRedo;return!!(e!==null&&e.canRedo())},Ai.prototype.redo=function(){if(this.canRedo()){var e=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",e),this.Ce++,e.redo()}catch(t){Un("redo error: "+t.toString())}finally{this.Ob("FinishedRedo","Redo",e),this.Fe=!1}}},Ai.prototype.Ob=function(e,t,n){n===void 0&&(n=null);var r=new Xi;for(r.change=gs,r.propertyName=e,r.object=n,r.oldValue=t,e=this.models;e.next();)t=e.value,r.model=t,t.ds(r)},Ai.prototype.Tu=function(e){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(e)){var t=this.currentTransaction;t===null&&(this.Np=t=new _o);var n=e.copy();t=t.changes,t.ka(),t.add(n),t.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(e=e.diagram,e!==null&&e.pi===!1||Un("Change not within a transaction: "+n.toString()))}},Ai.prototype.skipsEvent=function(e){if(e===null||0>e.change.value)return!0;if(e=e.object,e===null)return!1;if(e.layer!==void 0){if(e=e.layer,e!==null&&e.isTemporary)return!0}else if(e.isTemporary)return!0;return!1},Mn.Object.defineProperties(Ai.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(e){this.o=e}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(e){this.j=e}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(e){this.Ft=e}},isPendingUnmodified:{get:function(){return this.Gt},set:function(e){this.Gt=e}},isInternalTransaction:{get:function(){return this.Dt},set:function(e){this.Dt=e}},isJustDiscarded:{get:function(){return this.rq}}}),Ai.prototype.handleChanged=Ai.prototype.Tu,Ai.prototype.redo=Ai.prototype.redo,Ai.prototype.undo=Ai.prototype.undo,Ai.prototype.canUndo=Ai.prototype.canUndo,Ai.prototype.discardHistoryAfterIndex=Ai.prototype.lx,Ai.prototype.rollbackTransaction=Ai.prototype.Kf,Ai.prototype.commitTransaction=Ai.prototype.eb,Ai.prototype.startTransaction=Ai.prototype.Ea,Ai.prototype.removeModel=Ai.prototype.Rx,Ai.prototype.addModel=Ai.prototype.Xw,Ai.prototype.clear=Ai.prototype.clear,Ai.className="UndoManager";function Ar(){Wn(this),this.H=zu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new is,this.Zr=-1}Ar.prototype.toString=function(){return this.name!==""?this.name+" Tool":Ht(this.constructor)},Ar.prototype.updateAdornments=function(){},Ar.prototype.canStart=function(){return this.isEnabled},Ar.prototype.doStart=function(){},Ar.prototype.doActivate=function(){this.isActive=!0},Ar.prototype.doDeactivate=function(){this.isActive=!1},Ar.prototype.doStop=function(){},Ar.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Ar.prototype.stopTool=function(){var e=this.diagram;e.currentTool===this&&(e.currentTool=null,e.currentCursor="")},Ar.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Ar.prototype.doMouseMove=function(){},Ar.prototype.doMouseUp=function(){this.stopTool()},Ar.prototype.doMouseWheel=function(){},Ar.prototype.canStartMultiTouch=function(){return!0},Ar.prototype.standardPinchZoomStart=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,Ie.allocAt(NaN,NaN)),r=t.So(1,Ie.allocAt(NaN,NaN));if(n.w()&&r.w()&&(this.doCancel(),e.Ql("hasGestureZoom"))){e.Bw=e.scale;var i=r.x-n.x,o=r.y-n.y;e.Jw=Math.sqrt(i*i+o*o),t.bubbles=!1}Ie.free(n),Ie.free(r)},Ar.prototype.standardPinchZoomMove=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,Ie.allocAt(NaN,NaN)),r=t.So(1,Ie.allocAt(NaN,NaN));if(n.w()&&r.w()&&(this.doCancel(),e.Ql("hasGestureZoom"))){var i=r.x-n.x,o=r.y-n.y;o=Math.sqrt(i*i+o*o)/e.Jw,i=new Ie((Math.min(r.x,n.x)+Math.max(r.x,n.x))/2,(Math.min(r.y,n.y)+Math.max(r.y,n.y))/2),o*=e.Bw;var a=e.commandHandler;if(o!==e.scale&&a.canResetZoom(o)){var d=e.zoomPoint;e.zoomPoint=i,a.resetZoom(o),e.zoomPoint=d}t.bubbles=!1}Ie.free(n),Ie.free(r)},Ar.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Ar.prototype.doKeyUp=function(){},Ar.prototype.Ea=function(e){return e===void 0&&(e=this.name),this.transactionResult=null,this.diagram.Ea(e)},Ar.prototype.stopTransaction=function(){var e=this.diagram;return this.transactionResult===null?e.Kf():e.eb(this.transactionResult)},Ar.prototype.standardMouseSelect=function(){var e=this.diagram;if(e.allowSelect){var t=e.lastInput,n=e.Ol(t.documentPoint,!1);if(n!==null){if(gr?t.meta:t.control){for(e.R("ChangingSelection",e.selection),t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&(t.isSelected=!t.isSelected),e.R("ChangedSelection",e.selection)}else if(t.shift){if(!n.isSelected){for(e.R("ChangingSelection",e.selection),t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&(t.isSelected=!0),e.R("ChangedSelection",e.selection)}}else if(!n.isSelected){for(t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&e.select(t)}}else!t.left||(gr?t.meta:t.control)||t.shift||e.clearSelection()}},Ar.prototype.standardMouseClick=function(e,t){e===void 0&&(e=null),t===void 0&&(t=function(i){return!i.layer.isTemporary});var n=this.diagram,r=n.lastInput;return e=n.ic(r.documentPoint,e,t),r.targetObject=e,oc(e,r,n),r.handled};function oc(e,t,n){if(t.handled=!1,e===null||e.If()){var r=0;t.left?r=t.clickCount===1?1:t.clickCount===2?2:1:t.right&&t.clickCount===1&&(r=3);var i="ObjectSingleClicked";if(e!==null){switch(r){case 1:i="ObjectSingleClicked";break;case 2:i="ObjectDoubleClicked";break;case 3:i="ObjectContextClicked"}r!==0&&n.R(i,e)}else{switch(r){case 1:i="BackgroundSingleClicked";break;case 2:i="BackgroundDoubleClicked";break;case 3:i="BackgroundContextClicked"}r!==0&&n.R(i)}if(e!==null)for(;e!==null;){switch(n=null,r){case 1:n=e.click;break;case 2:n=e.doubleClick?e.doubleClick:e.click;break;case 3:n=e.contextClick}if(n!==null&&(n(t,e),t.handled))break;e=e.panel}else{switch(e=null,r){case 1:e=n.click;break;case 2:e=n.doubleClick?n.doubleClick:n.click;break;case 3:e=n.contextClick}e!==null&&e(t)}}}Ar.prototype.standardMouseOver=function(){var e=this.diagram,t=e.lastInput;if(e.animationManager.zb!==!0){var n=e.skipsUndoManager;e.skipsUndoManager=!0;var r=e.viewportBounds.ca(t.documentPoint)?e.ic(t.documentPoint,null,null):null;!t.event||t.event.type!=="pointercancel"&&t.event.type!=="pointerout"||(r=null),t.targetObject=r;var i=!1;if(r!==e.Ck){var o=e.Ck,a=o;for(e.Ck=r,this.doCurrentObjectChanged(o,r),t.handled=!1;o!==null;){var d=o.mouseLeave;if(d!==null&&(r===o||r!==null&&r.rg(o)||(d(t,o,r),i=!0,t.handled)))break;o=o.panel}for(o=a,t.handled=!1;r!==null&&(a=r.mouseEnter,!(a!==null&&(o===r||o!==null&&o.rg(r)||(a(t,r,o),i=!0,t.handled))));)r=r.panel;r=e.Ck}if(r!==null){for(o=r,a="";o!==null&&(a=o.cursor,a==="");)o=o.panel;for(e.currentCursor=a,t.handled=!1,o=r;o!==null&&(r=o.mouseOver,!(r!==null&&(r(t,o),i=!0,t.handled)));)o=o.panel}else this.doUpdateCursor(null),r=e.mouseOver,r!==null&&(r(t),i=!0);i&&e.$b(),e.skipsUndoManager=n}},Ar.prototype.doUpdateCursor=function(){var e=this.diagram;e&&(e.currentCursor="")},Ar.prototype.doCurrentObjectChanged=function(){},Ar.prototype.standardMouseWheel=function(){var e=this.diagram,t=e.lastInput,n=t.delta;if(n!==0&&e.documentBounds.w()){var r=e.commandHandler,i=e.toolManager.mouseWheelBehavior;if(r!==null&&(i===ol&&!t.shift||i===Dl&&t.control))(0<n?r.canIncreaseZoom():r.canDecreaseZoom())&&(i=e.zoomPoint,e.zoomPoint=t.viewPoint,0<n?r.increaseZoom():r.decreaseZoom(),e.zoomPoint=i),t.bubbles=!1;else if(i===ol&&t.shift||i===Dl&&!t.control){r=e.position.copy();var o=t.event;i=o.deltaMode;var a=o.deltaX;o=o.deltaY;var d="pixel";if(a===0&&o===0||t.shift)!t.shift&&e.allowVerticalScroll?(n=3*n*e.scrollVerticalLineChange,e.scroll(d,0<n?"up":"down",Math.abs(n))):t.shift&&e.allowHorizontalScroll&&(n=3*n*e.scrollHorizontalLineChange,e.scroll(d,0<n?"left":"right",Math.abs(n)));else{switch(i){case 0:d="pixel";break;case 1:d="line";break;case 2:d="page"}a!==0&&e.allowHorizontalScroll&&(a*=e.scrollHorizontalLineChange/16,e.scroll(d,0<a?"right":"left",Math.abs(a))),o!==0&&e.allowVerticalScroll&&(o*=e.scrollVerticalLineChange/16,e.scroll(d,0<o?"down":"up",Math.abs(o)))}this.doWheelChange(e,r,t)}}},Ar.prototype.doWheelChange=function(e,t,n){e.position.D(t)&&n.event.wheelDeltaX===0||(n.bubbles=!1)},Ar.prototype.standardWaitAfter=function(e,t){t===void 0&&(t=this.diagram.lastInput),this.cancelWaitAfter();var n=this,r=t.clone(this.yy);this.Zr=It(function(){n.doWaitAfter(r)},e)},Ar.prototype.cancelWaitAfter=function(){this.Zr!==-1&&pn.clearTimeout(this.Zr),this.Zr=-1},Ar.prototype.doWaitAfter=function(){},Ar.prototype.findToolHandleAt=function(e,t){return e=this.diagram.ic(e,function(n){for(;n!==null&&!(n.panel instanceof Xr);)n=n.panel;return n}),e===null?null:e.part.category===t?e:null},Ar.prototype.isBeyondDragSize=function(e,t){var n=this.diagram;e===void 0&&(e=n.firstInput.viewPoint),t===void 0&&(t=n.lastInput.viewPoint);var r=n.toolManager.dragSize,i=r.width;return r=r.height,n.firstInput.isTouchEvent&&(i+=6,r+=6),Math.abs(t.x-e.x)>i||Math.abs(t.y-e.y)>r},Mn.Object.defineProperties(Ar.prototype,{diagram:{get:function(){return this.H},set:function(e){e instanceof bt&&(this.H=e)}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},isActive:{get:function(){return this.nb},set:function(e){this.nb=e}},transactionResult:{get:function(){return this.wm},set:function(e){this.wm=e}}}),Ar.prototype.startTransaction=Ar.prototype.Ea,Ar.className="Tool";function Fi(){Ar.call(this),this.name="ToolManager",this.hb=new Gt,this.ob=new Gt,this.Hb=new Gt,this.F=this.V=850,this.o=new mn(2,2).ja(),this.Ha=5e3,this.ia=Dl,this.u=Nu,this.Mp=this.j=null,this.zj=-1}Kn(Fi,Ar),Fi.prototype.initializeStandardTools=function(){},Fi.prototype.updateAdornments=function(e){var t=this.currentToolTip;if(t instanceof Xr&&this.Mp===e){var n=t.adornedObject;(e!==null?n.part===e:n===null)?this.showToolTip(t,n):this.hideToolTip()}},Fi.prototype.doMouseDown=function(){var e=this.diagram,t=e.lastInput;if(t.isTouchEvent&&this.gestureBehavior===La&&(t.bubbles=!1),t.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Ma){t.bubbles=!0;return}if(this.gestureBehavior===La)return;if(e.currentTool.canStartMultiTouch()){e.currentTool.standardPinchZoomStart();return}}for(var n=this.mouseDownTools.length,r=0;r<n;r++){var i=this.mouseDownTools.M(r);if(i.diagram=this.diagram,i.canStart()){e.doFocus(),e.currentTool=i,e.currentTool===i&&(i.isActive||i.doActivate(),i.doMouseDown());return}}e.lastInput.button===1&&(this.mouseWheelBehavior===Dl?this.mouseWheelBehavior=ol:this.mouseWheelBehavior===ol&&(this.mouseWheelBehavior=Dl)),this.doActivate(),this.standardWaitAfter(this.holdDelay,t)},Fi.prototype.doMouseMove=function(){var e=this.diagram,t=e.lastInput;if(t.isMultiTouch){if(this.gestureBehavior===Ma){t.bubbles=!0;return}if(this.gestureBehavior===La)return;if(e.currentTool.canStartMultiTouch()){e.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var n=this.mouseMoveTools.length,r=0;r<n;r++){var i=this.mouseMoveTools.M(r);if(i.diagram=this.diagram,i.canStart()){e.doFocus(),e.currentTool=i,e.currentTool===i&&(i.isActive||i.doActivate(),i.doMouseMove());return}}ju(this,e),e=t.event,e===null||e.type!=="pointermove"&&e.cancelable||(t.bubbles=!0)};function ju(e,t){e.standardMouseOver(),e.isBeyondDragSize()&&e.standardWaitAfter(e.isActive?e.holdDelay:e.hoverDelay,t.lastInput)}Fi.prototype.doCurrentObjectChanged=function(e,t){e=this.currentToolTip,e===null||t!==null&&e instanceof Xr&&(t===e||t.rg(e))||this.hideToolTip()},Fi.prototype.doWaitAfter=function(e){var t=this.diagram;t.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),e.isTouchEvent&&!t.lastInput.handled&&(e=e.copy(),e.button=2,e.buttons=2,t.lastInput=e,t.qu=!0,t.doMouseUp()))},Fi.prototype.doMouseHover=function(){var e=this.diagram,t=e.lastInput;t.targetObject===null&&(t.targetObject=e.ic(t.documentPoint,null,null));var n=t.targetObject;if(n!==null)for(t.handled=!1;n!==null&&(e=this.isActive?n.mouseHold:n.mouseHover,!(e!==null&&(e(t,n),t.handled)));)n=n.panel;else n=this.isActive?e.mouseHold:e.mouseHover,n!==null&&n(t)},Fi.prototype.doToolTip=function(){var e=this.diagram,t=e.lastInput;if(t.targetObject===null&&(t.targetObject=e.ic(t.documentPoint,null,null)),t=t.targetObject,t!==null){if(e=this.currentToolTip,!(e instanceof Xr)||t!==e&&!t.rg(e)){for(;t!==null;){if(e=t.toolTip,e!==null){this.showToolTip(e,t);return}t=t.panel}this.hideToolTip()}}else t=e.toolTip,t!==null?this.showToolTip(t,null):this.hideToolTip()},Fi.prototype.showToolTip=function(e,t){var n=this.diagram;if(e!==this.currentToolTip&&this.hideToolTip(),e instanceof Xr){e.layerName="Tool",e.selectable=!1,e.scale=1/n.scale,e.category="ToolTip",e.placeholder!==null&&(e.placeholder.scale=n.scale);var r=e.diagram;r!==null&&r!==n&&r.remove(e),n.add(e),t!==null?e.adornedObject=t:e.data=n.model,e.Va(),this.positionToolTip(e,t)}else e instanceof Ur&&e!==this.currentToolTip&&e.show(t,n,this);if(this.currentToolTip=e,this.zj!==-1&&(pn.clearTimeout(this.zj),this.zj=-1),e=this.toolTipDuration,0<e&&e!==1/0){var i=this;this.zj=It(function(){i.hideToolTip()},e)}},Fi.prototype.positionToolTip=function(e){if(e.placeholder===null){var t=this.diagram,n=t.lastInput.documentPoint.copy(),r=e.measuredBounds,i=t.viewportBounds;t.lastInput.isTouchEvent&&(n.x-=r.width),n.x+r.width>i.right&&(n.x-=r.width+5/t.scale),n.x<i.x&&(n.x=i.x),n.y=n.y+20/t.scale+r.height>i.bottom?n.y-(r.height+5/t.scale):n.y+20/t.scale,n.y<i.y&&(n.y=i.y),e.position=n}},Fi.prototype.hideToolTip=function(){this.zj!==-1&&(pn.clearTimeout(this.zj),this.zj=-1);var e=this.diagram,t=this.currentToolTip;t!==null&&(t instanceof Xr?(e.remove(t),this.Mp!==null&&this.Mp.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof Ur&&t.hide!==null&&t.hide(e,this),this.currentToolTip=null)},Fi.prototype.doMouseUp=function(){this.cancelWaitAfter();var e=this.diagram;if(this.isActive)for(var t=this.mouseUpTools.length,n=0;n<t;n++){var r=this.mouseUpTools.M(n);if(r.diagram=this.diagram,r.canStart()){e.doFocus(),e.currentTool=r,e.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseUp());return}}e.doFocus(),this.doDeactivate()},Fi.prototype.doMouseWheel=function(){this.standardMouseWheel()},Fi.prototype.doKeyDown=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyDown()},Fi.prototype.doKeyUp=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyUp()},Fi.prototype.findTool=function(e){for(var t=this.mouseDownTools.length,n=0;n<t;n++){var r=this.mouseDownTools.M(n);if(r.name===e)return r}for(t=this.mouseMoveTools.length,n=0;n<t;n++)if(r=this.mouseMoveTools.M(n),r.name===e)return r;for(t=this.mouseUpTools.length,n=0;n<t;n++)if(r=this.mouseUpTools.M(n),r.name===e)return r;return null},Fi.prototype.replaceTool=function(e,t){t!==null&&(t.diagram=this.diagram);for(var n=this.mouseDownTools.length,r=0;r<n;r++){var i=this.mouseDownTools.M(r);if(i.name===e)return t!==null?this.mouseDownTools.cd(r,t):this.mouseDownTools.mb(r),i}for(n=this.mouseMoveTools.length,r=0;r<n;r++)if(i=this.mouseMoveTools.M(r),i.name===e)return t!==null?this.mouseMoveTools.cd(r,t):this.mouseMoveTools.mb(r),i;for(n=this.mouseUpTools.length,r=0;r<n;r++)if(i=this.mouseUpTools.M(r),i.name===e)return t!==null?this.mouseUpTools.cd(r,t):this.mouseUpTools.mb(r),i;return null},Fi.prototype.gb=function(e,t,n){t!==null&&(t.name=e,t.diagram=this.diagram),this.findTool(e)?this.replaceTool(e,t):t!==null&&n.add(t)},Mn.Object.defineProperties(Fi.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(e){this.ia=e}},gestureBehavior:{get:function(){return this.u},set:function(e){this.u=e}},currentToolTip:{get:function(){return this.j},set:function(e){this.j=e,this.Mp=e!==null&&e instanceof Xr?e.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(e){this.V=e}},holdDelay:{get:function(){return this.F},set:function(e){this.F=e}},dragSize:{get:function(){return this.o},set:function(e){this.o=e.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(e){this.Ha=e}}}),Fi.prototype.replaceStandardTool=Fi.prototype.gb;var Dl=new Dt(Fi,"WheelScroll",0),ol=new Dt(Fi,"WheelZoom",1),Uu=new Dt(Fi,"WheelNone",2),Nu=new Dt(Fi,"GestureZoom",3),La=new Dt(Fi,"GestureCancel",4),Ma=new Dt(Fi,"GestureNone",5);Fi.className="ToolManager",Fi.WheelScroll=Dl,Fi.WheelZoom=ol,Fi.WheelNone=Uu,Fi.GestureZoom=Nu,Fi.GestureCancel=La,Fi.GestureNone=Ma;function Ui(){Ar.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new Ie(NaN,NaN),this.Fr=new Ie,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Kt().freeze(),this.ia=new w,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Rs;Kn(Ui,Ar),Ui.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e.isReadOnly&&!e.allowDragOut||!e.allowMove&&!e.allowCopy&&!e.allowDragOut||!e.allowSelect)return!1;var t=e.lastInput;return!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.isTouchEvent&&t.timestamp-e.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Ui.prototype.findDraggablePart=function(){var e=this.diagram;if(e=e.Ol(e.firstInput.documentPoint,!1),e===null)return null;for(;e!==null&&!e.canSelect();)e=e.containingGroup;return e!==null&&(e.canMove()||e.canCopy())?e:null},Ui.prototype.standardMouseSelect=function(){var e=this.diagram;if(e.allowSelect){var t=e.Ol(e.firstInput.documentPoint,!1);if(t!==null){for(;t!==null&&!t.canSelect();)t=t.containingGroup;this.currentPart=t,this.currentPart===null||this.currentPart.isSelected||(e.R("ChangingSelection",e.selection),t=e.lastInput,(gr?t.meta:t.control)||t.shift||e.clearSelection(!0),this.currentPart.isSelected=!0,e.R("ChangedSelection",e.selection))}}},Ui.prototype.doActivate=function(){var e=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var t=this.currentPart;t!==null&&(t.canMove()||t.canCopy())&&(e.Fu(!0),ts=null,this.isActive=!0,this.tl.set(e.position),ql(this,e.selection),this.Cg.length=0,e.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(e.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,e.Ns=!0,e.Gf("temporaryPixelRatio")===!0&&30<e.$w&&Ta(e),zf(e,this.draggedParts),this.Ea("Drag"),this.startPoint=e.firstInput.documentPoint,e.isMouseCaptured=!0,e.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,ts=this,eu=this.diagram,this.doSimulatedDragOut()))};function ql(e,t){if(e.dragsLink){var n=e.diagram;n.allowRelink&&(n.model.Wj()&&t.count===1&&t.first()instanceof nn?(e.draggedLink=t.first(),e.draggedLink.canRelinkFrom()&&e.draggedLink.canRelinkTo()&&e.draggedLink.Ej(),e.Oe=n.toolManager.findTool("Relinking"),e.Oe===null&&(e.Oe=new sa,e.Oe.diagram=n),e.Oe.originalLink=e.draggedLink):(e.draggedLink=null,e.Oe=null))}}Ui.prototype.computeEffectiveCollection=function(e,t){return this.diagram.commandHandler.computeEffectiveCollection(e,t)},Ui.prototype.Pd=function(e){return e===void 0?new ac(cn):this.isGridSnapEnabled?new ac(new Ie(Math.round(1e3*e.x)/1e3,Math.round(1e3*e.y)/1e3)):new ac(e.copy())},Ui.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,e.Fu(!1),e.ug(),Da(this),qc(e,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Rs.count){for(var t=Rs,n=t.length,r=0;r<n;r++){var i=t.M(r);Zi(i),ki(i),Da(i),i.diagram.ug()}t.clear()}Zi(this),this.tl.h(NaN,NaN),eu!==null&&(eu.currentCursor=""),ts=eu=null,ki(this),e.isMouseCaptured=!1,e.currentCursor="",e.Ns=!1,this.stopTransaction(),rf(e,!0)},Ui.prototype.stopTransaction=function(){var e=this.diagram,t=Ar.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t};function Da(e){var t=e.diagram,n=t.skipsUndoManager;t.skipsUndoManager=!0,xa(e,t.lastInput,null),t.skipsUndoManager=n,e.Cg.length=0}function sl(){var e=ts;ki(e),ms(e);var t=e.diagram;e.tl.w()&&(t.position=e.tl),t.ug()}Ui.prototype.doCancel=function(){ki(this),ms(this);var e=this.diagram;this.tl.w()&&(e.position=this.tl),this.stopTool()},Ui.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput;this.isActive&&(t.key==="Esc"?this.doCancel():t.key!==e.previousInput.key&&this.doMouseMove())},Ui.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Va(e,t){if(e.copiedParts===null){var n=e.diagram;if((!t||!n.isReadOnly&&!n.isModelReadOnly)&&e.draggedParts!==null){var r=n.undoManager;for(r.isEnabled&&r.isInTransaction?r.currentTransaction!==null&&0<r.currentTransaction.changes.count&&(n.undoManager.Kf(),n.Ea("Drag")):ms(e),n.skipsUndoManager=!t,n.partManager.addsToTemporaryLayer=!t,e.startPoint=n.firstInput.documentPoint,t=e.copiesEffectiveCollection?e.draggedParts.Lf():n.selection,t=n.Kj(t,n,!0),n=new Et,r=e.draggedParts.iterator;r.next();){var i=r.key;if(i.Zc()&&i.canCopy()){var o=t.I(i);o!==null&&(o.location=i.location,o.Va(),n.add(o,e.Pd(o.location)))}}for(t=t.iterator;t.next();)r=t.value,r instanceof nn&&r.canCopy()&&n.add(r,e.Pd());e.copiedParts=n,ql(e,n.Lf()),e.draggedLink!==null&&(n=e.draggedLink,t=n.routeBounds,Mc(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}function ki(e){var t=e.diagram;if(e.copiedParts!==null){if(t.Is(e.copiedParts.Lf(),!1),e.copiedParts=null,e.draggedParts!==null)for(var n=e.draggedParts.iterator;n.next();)n.key instanceof nn&&(n.value.point=new Ie(0,0));e.doUpdateCursor(null)}t.skipsUndoManager=!1,t.partManager.addsToTemporaryLayer=!1,e.startPoint=t.firstInput.documentPoint}function Zi(e){if(e.draggedLink!==null){if(e.dragsLink&&e.Oe!==null){var t=e.Oe;t.diagram.remove(t.temporaryFromNode),t.diagram.remove(t.temporaryToNode),e.Oe.originalLink=null}e.draggedLink=null,e.Oe=null}}function ko(e,t,n){var r=e.diagram,i=e.startPoint,o=Ie.alloc();o.assign(r.lastInput.documentPoint),e.moveParts(t,o.re(i),n),Ie.free(o),r.Gf("temporaryPixelRatio")===!0&&r.Yh===null&&30<r.$w&&(Ta(r),r.hk())}Ui.prototype.moveParts=function(e,t,n){n===void 0&&(n=!1);var r=this.diagram;r!==null&&Qc(r,e,t,this.dragOptions,n)};function ms(e){if(e.draggedParts!==null){for(var t=e.diagram,n=e.draggedParts.iterator;n.next();){var r=n.key;r.Zc()&&(r.location=n.value.point)}for(n=e.draggedParts.iterator;n.next();)if(r=n.key,r instanceof nn&&r.suspendsRouting){var i=n.value.point;e.draggedParts.add(r,e.Pd()),Mc(r,-i.x,-i.y)}t.bd()}}function os(e,t){var n=e.diagram;e.dragsLink&&(e.draggedLink!==null&&(e.draggedLink.fromNode=null,e.draggedLink.toNode=null),oa(e,!1));var r=e.findDragOverObject(t),i=n.lastInput;i.targetObject=r,e.doUpdateCursor(r);var o=n.skipsUndoManager,a=!1;try{if(n.skipsUndoManager=!0,a=xa(e,i,r),!e.isActive&&ts===null)return;var d=r!==null?r.part:null;if(d===null||n.handlesDragDropForTopLevelParts&&d.isTopLevel&&!(d instanceof or)){var x=n.mouseDragOver;x!==null&&(x(i),a=!0)}if(!e.isActive&&ts===null||(e.doDragOver(t,r),!e.isActive&&ts===null))return}finally{n.skipsUndoManager=o,a&&n.bd()}e.Bn=r,n.isReadOnly||!n.allowMove&&!n.allowCopy||!n.allowHorizontalScroll&&!n.allowVerticalScroll||n.gs(i.viewPoint)}Ui.prototype.findDragOverObject=function(e){var t=this;return Gu(this.diagram,e,null,function(n){return n===null?n=!0:(n=n.part,n=!!(n===null||n instanceof Xr||n.layer.isTemporary||t.draggedParts&&t.draggedParts.contains(n)||t.copiedParts&&t.copiedParts.contains(n))),!n})},Ui.prototype.doUpdateCursor=function(e){var t=this.diagram;(e===null||this.Bn!==e)&&(!this.diagram.currentTool.isActive||this.mayCopy()?t.currentCursor=this.copyCursor:this.mayMove()?t.currentCursor=this.moveCursor:this.mayDragOut()&&(t.currentCursor=this.nodropCursor))};function xa(e,t,n){var r=!1,i=e.Cg.length,o=0<i?e.Cg[0]:null;if(n===o)return!1;t.handled=!1;for(var a=0;a<i;a++){var d=e.Cg[a],x=d.mouseDragLeave;if(x!==null&&(x(t,d,n),r=!0,t.handled))break}if(e.Cg.length=0,!e.isActive&&ts===null||n===null)return r;for(t.handled=!1,i=n;i!==null;)e.Cg.push(i),i=wa(i);for(i=e.Cg.length,n=0;n<i&&(a=e.Cg[n],d=a.mouseDragEnter,d===null||(d(t,a,o),r=!0,!t.handled));n++);return r}function wa(e){var t=e.panel;return t!==null?t:e instanceof Fn&&!(e instanceof or)&&(e=e.containingGroup,e!==null&&e.handlesDragDropForMembers)?e:null}function Ea(e,t,n){var r=e.Oe;if(r===null)return null;var i=e.diagram.og(t,r.portGravity,function(O){return r.findValidLinkablePort(O,n)});e=Ie.alloc();var o=1/0,a=null;for(i=i.iterator;i.next();){var d=i.value;if(d.part!==null){var x=d.ga(Tr,e);x=t.Bf(x),x<o&&(a=d,o=x)}}return Ie.free(e),a}function oa(e,t){var n=e.draggedLink;if(n!==null&&!(2>n.pointsCount)){var r=e.diagram;if(!r.isReadOnly){var i=e.Oe;if(i!==null){var o=null,a=null;n.fromNode===null&&(o=Ea(e,n.i(0),!1),o!==null&&(a=o.part));var d=null,x=null;n.toNode===null&&(d=Ea(e,n.i(n.pointsCount-1),!0),d!==null&&(x=d.part)),i.isValidLink(a,o,x,d)?t?(n.defaultFromPoint=n.i(0),n.defaultToPoint=n.i(n.pointsCount-1),n.suspendsRouting=!1,n.fromNode=a,o!==null&&(n.fromPortId=o.portId),n.toNode=x,d!==null&&(n.toPortId=d.portId),n.fromPort!==r.Mx&&r.R("LinkRelinked",n,r.Mx),n.toPort!==r.Nx&&r.R("LinkRelinked",n,r.Nx)):te(i,a,o,x,d):te(i,null,null,null,null)}}}}Ui.prototype.doDragOver=function(){};function Ka(e,t){var n=e.diagram;e.dragsLink&&oa(e,!0),Da(e);var r=e.findDragOverObject(t),i=n.lastInput;if(i.targetObject=r,r!==null){i.handled=!1;for(var o=r;o!==null;){var a=o.mouseDrop;if(a!==null&&(a(i,o),i.handled))break;Sc(e,i,o),o=wa(o)}}else o=n.mouseDrop,o!==null&&o(i);if(e.isActive||ts!==null){for(i=(e.copiedParts||e.draggedParts).iterator;i.next();)o=i.key,o instanceof hn&&o.linksConnected.each(function(d){d.suspendsRouting=!1});if(e.doDropOnto(t,r),e.isActive||ts!==null){for(e=xt.alloc(),t=n.selection.iterator;t.next();)r=t.value,r instanceof hn&&Th(n,r,e);xt.free(e)}}}function Sc(e,t,n){e=e.diagram,n=n.part,!e.handlesDragDropForTopLevelParts||!n.isTopLevel||n instanceof or||(n=e.mouseDrop,n!==null&&n(t))}function Th(e,t,n){var r=!1;if(n=t.getAvoidableRect(n),e.viewportBounds.Re(n)&&(r=!0),e=e.Nu(n,function(i){return i.part},function(i){return i instanceof nn},!0,function(i){return i instanceof nn},r),e.count!==0)for(e=e.iterator;e.next();)n=e.value,!n.Td(t)&&n.isAvoiding&&n.bb()}Ui.prototype.doDropOnto=function(){},Ui.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram,t=e.lastInput;this.simulatedMouseMove(t.event,t.documentPoint,t.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(Va(this,!1),zf(e,this.copiedParts),ko(this,this.copiedParts,!1),qc(e,this.copiedParts)):this.mayMove()?(ki(this),ko(this,this.draggedParts,!0)):this.mayDragOut()?(Va(this,!1),ko(this,this.copiedParts,!1)):ki(this),os(this,e.lastInput.documentPoint))}},Ui.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram,t=e.lastInput;if(!this.simulatedMouseUp(t.event,t.documentPoint,t.targetDiagram)){t=!1;var n=this.mayCopy();if(n&&this.copiedParts!==null?(ki(this),Va(this,!0),zf(e,this.copiedParts),ko(this,this.copiedParts,!1),qc(e,this.copiedParts),this.copiedParts!==null&&(e.R("ChangingSelection",e.selection),e.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(i){i.isSelected=!0}))):(t=!0,ki(this),this.mayMove()&&(ko(this,this.draggedParts,!0),os(this,e.lastInput.documentPoint))),this.Ym=!0,Ka(this,e.lastInput.documentPoint),this.isActive){var r=n?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,t&&_h(this),e.Ya(),qc(e,this.draggedParts),this.transactionResult=n?"Copy":"Move",e.R(n?"SelectionCopied":"SelectionMoved",r)}this.stopTool(),n&&e.R("ChangedSelection",e.selection)}}},Ui.prototype.simulatedMouseMove=function(e,t,n){if(ts===null)return!1;var r=ts.diagram;n instanceof bt||(n=null);var i=eu;return n!==i&&(i!==null&&i!==r&&(i.ug(),ts.isDragOutStarted=!1,i=i.toolManager.findTool("Dragging"),i!==null&&i.doSimulatedDragLeave()),eu=n,n!==null&&n!==r&&(sl(),i=n.toolManager.findTool("Dragging"),i!==null&&(Rs.contains(i)||Rs.add(i),i.doSimulatedDragEnter())),this.doUpdateCursor(null)),n===null||n===r||!n.allowDrop||n.isReadOnly||!n.allowInsert?!1:(r=n.toolManager.findTool("Dragging"),r!==null&&(e!==null&&(e.targetTouches!==void 0&&(0<e.targetTouches.length?e=e.targetTouches[0]:0<e.changedTouches.length&&(e=e.changedTouches[0])),t=n.getMouse(e)),n.lastInput.documentPoint=t,n.lastInput.viewPoint=n.op(t),n.lastInput.down=!1,n.lastInput.up=!1,r.doSimulatedDragOver()),!0)},Ui.prototype.simulatedMouseUp=function(e,t,n){if(ts===null)return!1;var r=eu,i=ts.diagram;if(n===null)return ts.doCancel(),!0;if(n!==r){var o=r.toolManager.findTool("Dragging");if(r!==null&&r!==i&&o!==null)return r.ug(),ts.isDragOutStarted=!1,o.doSimulatedDragLeave(),!1;eu=n,r=n.toolManager.findTool("Dragging"),r!==null&&(sl(),Rs.contains(r)||Rs.add(r),r.doSimulatedDragEnter())}return n!==this.diagram?(e!==null?(e.targetTouches!==void 0&&(0<e.targetTouches.length?e=e.targetTouches[0]:0<e.changedTouches.length&&(e=e.changedTouches[0])),t=n.getMouse(e)):t===null&&(t=new Ie),n.lastInput.documentPoint=t,n.lastInput.viewPoint=n.op(t),n.lastInput.down=!1,n.lastInput.up=!0,e=n.toolManager.findTool("Dragging"),e!==null&&e.doSimulatedDrop(),e=ts,e!==null&&(n=e.mayCopy(),e.transactionResult=n?"Copy":"Move",e.stopTool()),!0):!1};function _h(e){if(e.draggedParts!==null)for(var t=e.draggedParts.iterator;t.next();){var n=t.key;n instanceof hn&&(n=n.containingGroup,n===null||n.placeholder===null||e.draggedParts.contains(n)||n.placeholder.v())}}Ui.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowCopy||(gr?!e.lastInput.alt:!e.lastInput.control))return!1;for(e=e.selection.iterator;e.next();)if(e.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Ui.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var e=this.diagram;if(!e.allowDragOut||!e.allowCopy||e.allowMove)return!1;for(e=e.selection.iterator;e.next();)if(e.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Ui.prototype.mayMove=function(){var e=this.diagram;if(e.isReadOnly||!e.allowMove)return!1;for(e=e.selection.iterator;e.next();)if(e.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Ui.prototype.computeBorder=function(e,t,n){return this.Ym||this.draggedParts===null||this.draggedParts.contains(e)?null:n.assign(t)},Ui.prototype.Az=function(){return ts},Ui.prototype.mayDragIn=function(){var e=this.diagram;if(!e.allowDrop||e.isReadOnly||e.isModelReadOnly||!e.allowInsert)return!1;var t=ts;return!(t===null||t.diagram.model.dataFormat!==e.model.dataFormat)},Ui.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var e=this.diagram;e.animationManager.Cc(),wl(e),e.animationManager.Cc(),e=ts,e!==null&&(e.diagram.Ns=!1),this.doUpdateCursor(null)}},Ui.prototype.doSimulatedDragLeave=function(){var e=ts;e!==null&&e.doSimulatedDragOut(),this.doCancel()},Ui.prototype.doSimulatedDragOver=function(){var e=this.diagram;e.animationManager.Dm=!0;var t=ts;if(t!==null&&t.draggedParts!==null){if(!this.mayDragIn())return;Ah(this,t.draggedParts.Lf(),!1,e.firstInput),ko(this,this.copiedParts,!1),os(this,e.lastInput.documentPoint)}e.animationManager.Dm=!1},Ui.prototype.doSimulatedDrop=function(){var e=this.diagram,t=ts;if(t!==null){var n=t.diagram;if(t.Ym=!0,ki(this),!this.mayDragIn())return;e.animationManager.Dm=!0,e.R("ChangingSelection",e.selection),this.Ea("Drop"),Ah(this,t.draggedParts.Lf(),!0,e.lastInput),ko(this,this.copiedParts,!1);var r=new Kt;this.copiedParts!==null&&(e.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(i){i.isSelected=!0,r.add(i)})),Ka(this,e.lastInput.documentPoint),e.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,e.doFocus(),e.R("ExternalObjectsDropped",r,n),this.stopTransaction(),e.R("ChangedSelection",e.selection)}e.animationManager.Dm=!1};function Ah(e,t,n,r){if(e.copiedParts===null){var i=e.diagram;if(!i.isReadOnly&&!i.isModelReadOnly){i.skipsUndoManager=!n,i.partManager.addsToTemporaryLayer=!n,e.startPoint=r.documentPoint,n=i.Kj(t,i,!0);var o=xt.alloc();i=r=1/0;for(var a=-1/0,d=-1/0,x=t.iterator;x.next();){var O=x.value;if(O.isVisible()){var M=O.location;O=M.x,M=M.y,isNaN(O)||isNaN(M)||(O<r&&(r=O),M<i&&(i=M),O>a&&(a=O),M>d&&(d=M))}}for(r===1/0?o.h(0,0,0,0):o.h(r,i,a-r,d-i),r=o.x+o.width/2,i=o.y+o.height/2,xt.free(o),o=e.Fr,a=new Et,d=Ie.alloc(),x=t.iterator;x.next();)O=x.value,O instanceof nn&&O.canCopy()&&(M=n.I(O),M!==null&&(M.points=O.points,Mc(M,o.x-r,o.y-i),M.suspendsRouting=!0,a.add(M,e.Pd())));for(t=t.iterator;t.next();)O=t.value,O.Zc()&&O.canCopy()&&(x=n.I(O),x!==null&&(O=O.location,d.h(o.x-(r-O.x),o.y-(i-O.y)),x.location=d,x.Va(),a.add(x,e.Pd(d))));Ie.free(d),e.copiedParts=a,ql(e,a.Lf()),e.draggedLink!==null&&(n=e.draggedLink,t=n.routeBounds,Mc(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}Ui.prototype.doSimulatedDragOut=function(){var e=this.diagram;e.Ns=!1,this.mayCopy()||this.mayMove()?e.currentCursor="":e.currentCursor=this.nodropCursor,this.Bn=null},Ui.prototype.computeMove=function(e,t,n,r){return n=this.diagram,n!==null?n.computeMove(e,t,this.dragOptions,r):new Ie},Mn.Object.defineProperties(Ui.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(e){this.ob=e}},copiesEffectiveCollection:{get:function(){return this.u},set:function(e){this.u=e}},dragOptions:{get:function(){return this.ia},set:function(e){this.ia=e}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(e){this.dragOptions.isGridSnapEnabled=e}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(e){this.hb=e}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(e){this.dragOptions.isGridSnapRealtime=e}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(e){this.dragOptions.gridSnapCellSize.D(e)||(e=e.J(),this.dragOptions.gridSnapCellSize=e)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(e){this.dragOptions.gridSnapCellSpot.D(e)||(e=e.J(),this.dragOptions.gridSnapCellSpot=e)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(e){this.dragOptions.gridSnapOrigin.D(e)||(e=e.J(),this.dragOptions.gridSnapOrigin=e)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(e){this.dragOptions.dragsLink=e}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(e){this.dragOptions.dragsTree=e}},copyCursor:{get:function(){return this.F},set:function(e){this.F=e}},moveCursor:{get:function(){return this.Oc},set:function(e){this.Oc=e}},nodropCursor:{get:function(){return this.Pc},set:function(e){this.Pc=e}},currentPart:{get:function(){return this.V},set:function(e){this.V=e}},copiedParts:{get:function(){return this.o},set:function(e){this.o=e}},draggedParts:{get:function(){return this.Ha},set:function(e){this.Ha=e}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(e){this.diagram.draggedLink=e}},isDragOutStarted:{get:function(){return this.Hb},set:function(e){this.Hb=e}},startPoint:{get:function(){return this.Fr},set:function(e){this.Fr.D(e)||this.Fr.assign(e)}},delay:{get:function(){return this.Ik},set:function(e){this.Ik=e}}}),Ui.prototype.getDraggingSource=Ui.prototype.Az;var ts=null,eu=null;Ui.className="DraggingTool",Rs=new Gt,xr("draggingTool",function(){return this.findTool("Dragging")},function(e){this.gb("Dragging",e,this.mouseMoveTools)}),Fi.prototype.doCancel=function(){ts!==null&&ts.doCancel(),Ar.prototype.doCancel.call(this)};function ho(){Ar.call(this),this.te=100,this.Ha=!1,this.u="pointer";var e=new nn,t=new hr;t.isPanelMain=!0,t.stroke="blue",e.add(t),t=new hr,t.toArrow="Standard",t.fill="blue",t.stroke="blue",e.add(t),e.layerName="Tool",this.Ci=e,e=new hn,t=new hr,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=Or,e.add(t),e.selectable=!1,e.layerName="Tool",this.Bi=e,this.j=t,e=new hn,t=new hr,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=Or,e.add(t),e.selectable=!1,e.layerName="Tool",this.Di=e,this.o=t,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Et,this.Of=this.gj=this.Pf=null}Kn(ho,Ar),ho.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},ho.prototype.copyPortProperties=function(e,t,n,r,i){if(e!==null&&t!==null&&n!==null&&r!==null){var o=t.Df(),a=mn.alloc();a.width=t.naturalBounds.width*o,a.height=t.naturalBounds.height*o,r.desiredSize=a,mn.free(a),i?(r.toSpot=t.toSpot,r.toEndSegmentLength=t.toEndSegmentLength):(r.fromSpot=t.fromSpot,r.fromEndSegmentLength=t.fromEndSegmentLength),n.locationSpot=Tr,o=Ie.alloc(),n.location=t.ga(Tr,o),Ie.free(o),r.angle=t.li(),this.portTargeted!==null&&this.portTargeted(e,t,n,r,i)}},ho.prototype.setNoTargetPortProperties=function(e,t,n){t!==null&&(t.desiredSize=Or,t.fromSpot=cr,t.toSpot=cr),e!==null&&(e.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,e,t,n)},ho.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},ho.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof hn){var t=this.targetPort.part;this.isForwards?this.copyPortProperties(t,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(t,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(e.allowHorizontalScroll||e.allowVerticalScroll)&&e.gs(e.lastInput.viewPoint)}},ho.prototype.findValidLinkablePort=function(e,t){if(e===null)return null;var n=e.part;if(!(n instanceof hn))return null;for(;e!==null;){var r=t?e.toLinkable:e.fromLinkable;if(r===!0&&(e.portId!==null||e instanceof hn)&&(t?this.isValidTo(n,e):this.isValidFrom(n,e)))return e;if(r===!1)break;e=e.panel}return null},ho.prototype.findTargetPort=function(e){var t=this.diagram,n=t.lastInput.documentPoint,r=this.portGravity;0>=r&&(r=.1);var i=this,o=t.og(n,r,function(Y){return i.findValidLinkablePort(Y,e)},null,!0);for(r=1/0,t=null,o=o.iterator;o.next();){var a=o.value,d=a.part;if(d instanceof hn){var x=a.ga(Tr,Ie.alloc()),O=n.x-x.x,M=n.y-x.y;Ie.free(x),x=O*O+M*M,x<r&&(O=this.validPortsCache.I(a),O!==null?O&&(t=a,r=x):e&&this.isValidLink(this.originalFromNode,this.originalFromPort,d,a)||!e&&this.isValidLink(d,a,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(a,!0),t=a,r=x):this.validPortsCache.add(a,!1))}}return t!==null&&(n=t.part,n instanceof hn&&(n.layer===null||n.layer.allowLink))?t:null},ho.prototype.isValidFrom=function(e,t){if(e===null||t===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(e.layer!==null&&!e.layer.allowLink||t.fromLinkable!==!0))return!1;var n=t.fromMaxLinks;if(1/0>n){if(this.originalLink!==null&&e===this.originalFromNode&&t===this.originalFromPort)return!0;if(t=t.portId,t===null&&(t=""),e.Mo(t).count>=n)return!1}return!0},ho.prototype.isValidTo=function(e,t){if(e===null||t===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(e.layer!==null&&!e.layer.allowLink||t.toLinkable!==!0))return!1;var n=t.toMaxLinks;if(1/0>n){if(this.originalLink!==null&&e===this.originalToNode&&t===this.originalToPort)return!0;if(t=t.portId,t===null&&(t=""),e.Sd(t).count>=n)return!1}return!0},ho.prototype.isInSameNode=function(e,t){return e===null||t===null?!1:e===t?!0:(e=e.part,t=t.part,e!==null&&e===t)},ho.prototype.isLinked=function(e,t){if(e===null||t===null)return!1;var n=e.part;if(!(n instanceof hn))return!1;e=e.portId,e===null&&(e="");var r=t.part;if(!(r instanceof hn))return!1;for(t=t.portId,t===null&&(t=""),t=r.Sd(t);t.next();)if(r=t.value,r.fromNode===n&&r.fromPortId===e)return!0;return!1},ho.prototype.isValidLink=function(e,t,n,r){if(!this.isValidFrom(e,t)||!this.isValidTo(n,r)||!(t===null||r===null||(t.fromLinkableSelfNode&&r.toLinkableSelfNode||!this.isInSameNode(t,r))&&(t.fromLinkableDuplicates&&r.toLinkableDuplicates||!this.isLinked(t,r)))||this.originalLink!==null&&(e!==null&&this.isLabelDependentOnLink(e,this.originalLink)||n!==null&&this.isLabelDependentOnLink(n,this.originalLink))||e!==null&&n!==null&&(e.data===null&&n.data!==null||e.data!==null&&n.data===null)||!this.isValidCycle(e,n,this.originalLink))return!1;if(e!==null){var i=e.linkValidation;if(i!==null&&!i(e,t,n,r,this.originalLink))return!1}return n!==null&&(i=n.linkValidation,i!==null&&!i(e,t,n,r,this.originalLink))?!1:(i=this.linkValidation,i!==null?i(e,t,n,r,this.originalLink):!0)},ho.prototype.isLabelDependentOnLink=function(e,t){if(e===null)return!1;var n=e.labeledLink;if(n===null)return!1;if(n===t)return!0;var r=new Kt;return r.add(e),xs(this,n,t,r)};function xs(e,t,n,r){if(t===n)return!0;var i=t.fromNode;return i!==null&&i.isLinkLabel&&(r.add(i),xs(e,i.labeledLink,n,r))?!0:(t=t.toNode,!!(t!==null&&t.isLinkLabel&&(r.add(t),xs(e,t.labeledLink,n,r))))}ho.prototype.isValidCycle=function(e,t,n){if(n===void 0&&(n=null),e===null||t===null)return this.isUnconnectedLinkValid;var r=this.diagram.validCycle;if(r!==uf){if(r===op){if(r=n||this.temporaryLink,r!==null&&!r.isTreeLink)return!0;for(r=t.linksConnected;r.next();){var i=r.value;if(i!==n&&i.isTreeLink&&i.toNode===t)return!1}return!Os(this,e,t,n,!0)}if(r===sp){if(r=n||this.temporaryLink,r!==null&&!r.isTreeLink)return!0;for(r=e.linksConnected;r.next();)if(i=r.value,i!==n&&i.isTreeLink&&i.fromNode===e)return!1;return!Os(this,e,t,n,!0)}if(r===np)return e===t?e=!0:(r=new Kt,r.add(t),e=ks(this,r,e,t,n)),!e;if(r===rp)return!Os(this,e,t,n,!1);if(r===ip)return e===t?e=!0:(r=new Kt,r.add(t),e=mu(this,r,e,t,n)),!e}return!0};function Os(e,t,n,r,i){if(t===n)return!0;if(t===null||n===null)return!1;for(var o=t.linksConnected;o.next();){var a=o.value;if(a!==r&&(!i||a.isTreeLink)&&a.toNode===t&&(a=a.fromNode,a!==t&&Os(e,a,n,r,i)))return!0}return!1}function ks(e,t,n,r,i){if(n===r)return!0;if(n===null||r===null||t.contains(n))return!1;t.add(n);for(var o=n.linksConnected;o.next();){var a=o.value;if(a!==i&&a.toNode===n&&(a=a.fromNode,a!==n&&ks(e,t,a,r,i)))return!0}return!1}function mu(e,t,n,r,i){if(n===r)return!0;if(n===null||r===null||t.contains(n))return!1;t.add(n);for(var o=n.linksConnected;o.next();){var a=o.value;if(a!==i){var d=a.fromNode;if(a=a.toNode,d=d===n?a:d,d!==n&&mu(e,t,d,r,i))return!0}}return!1}Mn.Object.defineProperties(ho.prototype,{portGravity:{get:function(){return this.te},set:function(e){0<=e&&(this.te=e)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(e){this.Ha=e}},linkingCursor:{get:function(){return this.u},set:function(e){this.u=e}},temporaryLink:{get:function(){return this.Ci},set:function(e){this.Ci=e}},temporaryFromNode:{get:function(){return this.Bi},set:function(e){(this.Bi=e)&&(this.j=e.port)}},temporaryFromPort:{get:function(){return this.j},set:function(e){if(this.j!==null){var t=this.j.panel;if(t!==null){var n=t.O.indexOf(this.j);t.mb(n),t.Gb(n,e)}}this.j=e}},temporaryToNode:{get:function(){return this.Di},set:function(e){(this.Di=e)&&(this.o=e.port)}},temporaryToPort:{get:function(){return this.o},set:function(e){if(this.o!==null){var t=this.o.panel;if(t!==null){var n=t.O.indexOf(this.o);t.mb(n),t.Gb(n,e)}}this.o=e}},originalLink:{get:function(){return this.Hb},set:function(e){this.Hb=e}},originalFromNode:{get:function(){return this.hb},set:function(e){this.hb=e}},originalFromPort:{get:function(){return this.ob},set:function(e){this.ob=e}},originalToNode:{get:function(){return this.Oc},set:function(e){this.Oc=e}},originalToPort:{get:function(){return this.Pc},set:function(e){this.Pc=e}},isForwards:{get:function(){return this.ia},set:function(e){this.ia=e}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(e){this.Pf=e}},linkValidation:{get:function(){return this.gj},set:function(e){this.gj=e}},portTargeted:{get:function(){return this.Of},set:function(e){this.Of=e}}}),ho.className="LinkingBaseTool";function Fs(){ho.call(this),this.name="Linking",this.V={},this.F=null,this.K=tu,this.Xd=null}Kn(Fs,ho),Fs.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return e.isReadOnly||e.isModelReadOnly||!e.allowLink||!e.model.xs()||!e.lastInput.left||e.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},Fs.prototype.findLinkablePort=function(){var e=this.diagram,t=this.startObject;if(t===null&&(t=e.ic(e.firstInput.documentPoint,null,null)),t===null||(e=t.part,!(e instanceof hn)))return null;var n=this.direction;if(n===tu||n===xc){var r=this.findValidLinkablePort(t,!1);if(r!==null||this.startObject===e&&(r=e.port,this.findValidLinkablePort(r,!1)))return this.isForwards=!0,r}return(n===tu||n===wc)&&(t=this.findValidLinkablePort(t,!0),t!==null||this.startObject===e&&(t=e.port,this.findValidLinkablePort(t,!0)))?(this.isForwards=!1,t):null},Fs.prototype.doActivate=function(){var e=this.diagram,t=this.findLinkablePort();t===null?this.stopTool():(this.Ea(this.name),e.isMouseCaptured=!0,e.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=e.lastInput.documentPoint),this.originalFromPort=t,t=this.originalFromPort.part,t instanceof hn&&(this.originalFromNode=t),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=e.lastInput.documentPoint),this.originalToPort=t,t=this.originalToPort.part,t instanceof hn&&(this.originalToNode=t),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),e.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),e.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),e.add(this.temporaryLink)),this.isActive=!0)},Fs.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;e.remove(this.temporaryLink),e.remove(this.temporaryFromNode),e.remove(this.temporaryToNode),e.isMouseCaptured=!1,e.currentCursor="",this.stopTransaction()},Fs.prototype.doStop=function(){ho.prototype.doStop.call(this),this.startObject=null},Fs.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram,t=this.transactionResult=null,n=null,r=null,i=null,o=null;try{var a=this.targetPort=this.findTargetPort(this.isForwards);if(a!==null){var d=a.part;d instanceof hn&&(this.isForwards?(this.originalFromNode!==null&&(t=this.originalFromNode,n=this.originalFromPort),r=d,i=a):(t=d,n=a,this.originalToNode!==null&&(r=this.originalToNode,i=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(t=this.originalFromNode,n=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(r=this.originalToNode,i=this.originalToPort);t!==null||r!==null?(o=this.insertLink(t,n,r,i),o!==null?(a===null&&(this.isForwards?o.defaultToPoint=e.lastInput.documentPoint:o.defaultFromPoint=e.lastInput.documentPoint),e.allowSelect&&(e.R("ChangingSelection",e.selection),e.clearSelection(!0),o.isSelected=!0),this.transactionResult=this.name,e.R("LinkDrawn",o)):this.doNoLink(t,n,r,i)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),o&&e.allowSelect&&e.R("ChangedSelection",e.selection)}}},Fs.prototype.isNewTreeLink=function(){var e=this.archetypeLinkData;if(e===null)return!0;if(e instanceof nn)return e.isTreeLink;var t=this.diagram;return t===null?!0:(e=t.partManager.getLinkCategoryForData(e),t=t.partManager.findLinkTemplateForCategory(e),t!==null?t.isTreeLink:!0)},Fs.prototype.insertLink=function(e,t,n,r){return this.diagram.partManager.insertLink(e,t,n,r)},Fs.prototype.doNoLink=function(){},Mn.Object.defineProperties(Fs.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(e){this.V=e}},archetypeLabelNodeData:{get:function(){return this.F},set:function(e){this.F=e}},direction:{get:function(){return this.K},set:function(e){this.K=e}},startObject:{get:function(){return this.Xd},set:function(e){this.Xd=e}}});var tu=new Dt(Fs,"Either",0),xc=new Dt(Fs,"ForwardsOnly",0),wc=new Dt(Fs,"BackwardsOnly",0);Fs.className="LinkingTool",Fs.Either=tu,Fs.ForwardsOnly=xc,Fs.BackwardsOnly=wc;function sa(){ho.call(this),this.name="Relinking";var e=new hr;e.figure="Diamond",e.desiredSize=Kr,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=0,this.V=e,e=new hr,e.figure="Diamond",e.desiredSize=Kr,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=-1,this.Xd=e,this.F=null,this.Ew=new xt}Kn(sa,ho),sa.prototype.updateAdornments=function(e){if(e!==null&&e instanceof nn){var t="RelinkFrom",n=null;if(e.isSelected&&!this.diagram.isReadOnly){var r=e.selectionObject;r!==null&&e.canRelinkFrom()&&e.actualBounds.w()&&e.isVisible()&&r.actualBounds.w()&&r.Ed()&&(n=e.Pj(t),n===null&&(n=this.makeAdornment(r,!1),e.bh(t,n)))}n===null&&e.Jf(t),t="RelinkTo",n=null,e.isSelected&&!this.diagram.isReadOnly&&(r=e.selectionObject,r!==null&&e.canRelinkTo()&&e.actualBounds.w()&&e.isVisible()&&r.actualBounds.w()&&r.Ed()&&(n=e.Pj(t),n===null?(n=this.makeAdornment(r,!0),e.bh(t,n)):n.v())),n===null&&e.Jf(t)}},sa.prototype.makeAdornment=function(e,t){var n=new Xr;return n.type=Xt.Link,t=t?this.toHandleArchetype:this.fromHandleArchetype,t!==null&&n.add(t.copy()),n.adornedObject=e,n},sa.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowRelink||!e.model.xs()||!e.lastInput.left)return!1;var t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkFrom");return t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkTo")),t!==null},sa.prototype.doActivate=function(){var e=this.diagram;if(this.originalLink===null){var t=this.handle;if(t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkFrom"),t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkTo"))),t===null)return;var n=t.part;if(!(n instanceof Xr&&n.adornedPart instanceof nn))return;this.handle=t,this.isForwards=n===null||n.category==="RelinkTo",this.originalLink=n.adornedPart}this.Ea(this.name),e.isMouseCaptured=!0,e.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=Cr),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Cr),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),e.add(this.temporaryFromNode),e.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),e.add(this.temporaryLink)),this.isActive=!0},sa.prototype.copyLinkProperties=function(e,t){if(e!==null&&t!==null){t.adjusting=e.adjusting,t.corner=e.corner;var n=e.curve;(n===fd||n===Dc)&&(n=da),t.curve=n,t.curviness=e.curviness,t.isTreeLink=e.isTreeLink,t.points=e.points,t.routing=e.routing,t.smoothness=e.smoothness,t.fromSpot=e.fromSpot,t.fromEndSegmentLength=e.fromEndSegmentLength,t.fromShortLength=e.fromShortLength,t.toSpot=e.toSpot,t.toEndSegmentLength=e.toEndSegmentLength,t.toShortLength=e.toShortLength}},sa.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;e.remove(this.temporaryLink),e.remove(this.temporaryFromNode),e.remove(this.temporaryToNode),e.isMouseCaptured=!1,e.currentCursor="",this.stopTransaction()},sa.prototype.doStop=function(){ho.prototype.doStop.call(this),this.handle=null},sa.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram;this.transactionResult=null;var t=this.originalFromNode,n=this.originalFromPort,r=this.originalToNode,i=this.originalToPort,o=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var a=this.targetPort.part;a instanceof hn&&(this.isForwards?(r=a,i=this.targetPort):(t=a,n=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?i=r=null:n=t=null:o=null;o!==null?(this.reconnectLink(o,this.isForwards?r:t,this.isForwards?i:n,this.isForwards),this.targetPort===null&&(this.isForwards?o.defaultToPoint=e.lastInput.documentPoint:o.defaultFromPoint=e.lastInput.documentPoint,o.bb()),this.transactionResult=this.name,e.R("LinkRelinked",o,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},sa.prototype.reconnectLink=function(e,t,n,r){return n=n!==null&&n.portId!==null?n.portId:"",r?(e.toNode=t,e.toPortId=n):(e.fromNode=t,e.fromPortId=n),!0},sa.prototype.doNoRelink=function(){};function te(e,t,n,r,i){t!==null?(e.copyPortProperties(t,n,e.temporaryFromNode,e.temporaryFromPort,!1),e.diagram.add(e.temporaryFromNode)):e.diagram.remove(e.temporaryFromNode),r!==null?(e.copyPortProperties(r,i,e.temporaryToNode,e.temporaryToPort,!0),e.diagram.add(e.temporaryToNode)):e.diagram.remove(e.temporaryToNode)}Mn.Object.defineProperties(sa.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(e){this.V=e}},toHandleArchetype:{get:function(){return this.Xd},set:function(e){this.Xd=e}},handle:{get:function(){return this.F},set:function(e){if(e!==null&&!(e.part instanceof Xr))throw Error("new handle is not in an Adornment: "+e);this.F=e}}}),sa.className="RelinkingTool",xr("linkingTool",function(){return this.findTool("Linking")},function(e){this.gb("Linking",e,this.mouseMoveTools)}),xr("relinkingTool",function(){return this.findTool("Relinking")},function(e){this.gb("Relinking",e,this.mouseDownTools)});function Se(){Ar.call(this),this.name="LinkReshaping";var e=new hr;e.figure="Rectangle",e.desiredSize=yi,e.fill="lightblue",e.stroke="dodgerblue",this.o=e,e=new hr,e.figure="Diamond",e.desiredSize=Kr,e.fill="lightblue",e.stroke="dodgerblue",e.cursor="move",this.u=e,this.F=3,this.Ts=this.j=null,this.Fw=new Ie,this.Yq=new Gt}Kn(Se,Ar),Se.prototype.Ru=function(e){return e&&e.reshapingBehavior.value!==0?e.reshapingBehavior:je},Se.prototype.om=function(e,t){e.reshapingBehavior=t},Se.prototype.updateAdornments=function(e){if(e!==null&&e instanceof nn){var t=null;if(e.isSelected&&!this.diagram.isReadOnly){var n=e.path;n!==null&&e.canReshape()&&e.actualBounds.w()&&e.isVisible()&&n.actualBounds.w()&&n.Ed()&&(t=e.Pj(this.name),t===null||t.Aw!==e.pointsCount||t.Uw!==e.resegmentable)&&(t=this.makeAdornment(n),t!==null&&(t.Aw=e.pointsCount,t.Uw=e.resegmentable,e.bh(this.name,t)))}t===null&&e.Jf(this.name)}},Se.prototype.makeAdornment=function(e){var t=e.part,n=t.pointsCount,r=t.isOrthogonal,i=null;if(t.points!==null&&1<n){i=new Xr,i.type=Xt.Link,n=t.firstPickIndex;var o=t.lastPickIndex,a=r?1:0;if(t.resegmentable&&t.computeCurve()!==pl)for(var d=n+a;d<o-a;d++){var x=this.makeResegmentHandle(e,d);x!==null&&(x.segmentIndex=d,x.segmentFraction=.5,x.fromMaxLinks=999,i.add(x))}for(a=n+1;a<o;a++)if(d=this.makeHandle(e,a),d!==null){if(d.segmentIndex=a,a!==n)if(a===n+1&&r){x=t.i(n);var O=t.i(n+1);ht.B(x.x,O.x)&&ht.B(x.y,O.y)&&(O=t.i(n-1)),ht.B(x.x,O.x)?(this.om(d,Qe),d.cursor="n-resize"):ht.B(x.y,O.y)&&(this.om(d,Je),d.cursor="w-resize")}else a===o-1&&r?(x=t.i(o-1),O=t.i(o),ht.B(x.x,O.x)&&ht.B(x.y,O.y)&&(x=t.i(o+1)),ht.B(x.x,O.x)?(this.om(d,Qe),d.cursor="n-resize"):ht.B(x.y,O.y)&&(this.om(d,Je),d.cursor="w-resize")):a!==o&&(this.om(d,ct),d.cursor="move");i.add(d)}i.adornedObject=e}return i},Se.prototype.makeHandle=function(){var e=this.handleArchetype;return e===null?null:e.copy()},Se.prototype.makeResegmentHandle=function(){var e=this.midHandleArchetype;return e===null?null:e.copy()},Se.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowReshape&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},Se.prototype.doActivate=function(){var e=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle!==null){var t=this.handle.part.adornedPart;if(t instanceof nn){if(this.Ts=t,e.isMouseCaptured=!0,this.Ea(this.name),t.resegmentable&&this.handle.fromMaxLinks===999){var n=t.points.copy(),r=this.getResegmentingPoint();if(n.Gb(this.handle.segmentIndex+1,r),t.isOrthogonal&&n.Gb(this.handle.segmentIndex+1,r),t.points=n,t.Wb(),t.updateAdornments(),this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=t.i(this.handle.segmentIndex),this.Yq=t.points.copy(),this.isActive=!0}}},Se.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Se.prototype.stopTransaction=function(){var e=this.diagram,t=Ar.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},Se.prototype.doCancel=function(){var e=this.adornedLink;e!==null&&(e.points=this.Yq),this.stopTool()},Se.prototype.getResegmentingPoint=function(){return this.handle.ga(Tr)},Se.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeReshape(e.lastInput.documentPoint),this.reshape(e))},Se.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){var t=this.computeReshape(e.lastInput.documentPoint);if(this.reshape(t),t=this.adornedLink,t!==null&&t.resegmentable){var n=this.handle.segmentIndex,r=t.i(n-1),i=t.i(n),o=t.i(n+1);if(t.isOrthogonal){if(n>t.firstPickIndex+1&&n<t.lastPickIndex-1){var a=t.i(n-2);if(Math.abs(r.x-i.x)<this.resegmentingDistance&&Math.abs(r.y-i.y)<this.resegmentingDistance&&(ke(this,a,r,i,o,!0)||ke(this,a,r,i,o,!1))){var d=t.points.copy();ke(this,a,r,i,o,!0)?(d.cd(n-2,new Ie(a.x,(o.y+a.y)/2)),d.cd(n+1,new Ie(o.x,(o.y+a.y)/2))):(d.cd(n-2,new Ie((o.x+a.x)/2,a.y)),d.cd(n+1,new Ie((o.x+a.x)/2,o.y))),d.mb(n),d.mb(n-1),t.points=d,t.Wb()}else a=t.i(n+2),Math.abs(i.x-o.x)<this.resegmentingDistance&&Math.abs(i.y-o.y)<this.resegmentingDistance&&(ke(this,r,i,o,a,!0)||ke(this,r,i,o,a,!1))&&(d=t.points.copy(),ke(this,r,i,o,a,!0)?(d.cd(n-1,new Ie(r.x,(r.y+a.y)/2)),d.cd(n+2,new Ie(a.x,(r.y+a.y)/2))):(d.cd(n-1,new Ie((r.x+a.x)/2,r.y)),d.cd(n+2,new Ie((r.x+a.x)/2,a.y))),d.mb(n+1),d.mb(n),t.points=d,t.Wb())}}else a=Ie.alloc(),ht.qh(r.x,r.y,o.x,o.y,i.x,i.y,a)&&a.Bf(i)<this.resegmentingDistance*this.resegmentingDistance&&(r=t.points.copy(),r.mb(n),t.points=r,t.Wb()),Ie.free(a)}e.Ya(),this.transactionResult=this.name,e.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function ke(e,t,n,r,i,o){return o?Math.abs(t.y-n.y)<e.resegmentingDistance&&Math.abs(n.y-r.y)<e.resegmentingDistance&&Math.abs(r.y-i.y)<e.resegmentingDistance:Math.abs(t.x-n.x)<e.resegmentingDistance&&Math.abs(n.x-r.x)<e.resegmentingDistance&&Math.abs(r.x-i.x)<e.resegmentingDistance}Se.prototype.reshape=function(e){var t=this.adornedLink;t.uh();var n=this.handle.segmentIndex,r=this.Ru(this.handle);if(t.isOrthogonal)if(n===t.firstPickIndex+1)n=t.firstPickIndex+1,r===Qe?(t.L(n,t.i(n-1).x,e.y),t.L(n+1,t.i(n+2).x,e.y)):r===Je&&(t.L(n,e.x,t.i(n-1).y),t.L(n+1,e.x,t.i(n+2).y));else if(n===t.lastPickIndex-1)n=t.lastPickIndex-1,r===Qe?(t.L(n-1,t.i(n-2).x,e.y),t.L(n,t.i(n+1).x,e.y)):r===Je&&(t.L(n-1,e.x,t.i(n-2).y),t.L(n,e.x,t.i(n+1).y));else{r=n;var i=t.i(r),o=t.i(r-1),a=t.i(r+1);ht.B(o.x,i.x)&&ht.B(i.y,a.y)?(ht.B(o.x,t.i(r-2).x)&&!ht.B(o.y,t.i(r-2).y)?(t.m(r,e.x,o.y),n++,r++):t.L(r-1,e.x,o.y),ht.B(a.y,t.i(r+2).y)&&!ht.B(a.x,t.i(r+2).x)?t.m(r+1,a.x,e.y):t.L(r+1,a.x,e.y)):ht.B(o.y,i.y)&&ht.B(i.x,a.x)?(ht.B(o.y,t.i(r-2).y)&&!ht.B(o.x,t.i(r-2).x)?(t.m(r,o.x,e.y),n++,r++):t.L(r-1,o.x,e.y),ht.B(a.x,t.i(r+2).x)&&!ht.B(a.y,t.i(r+2).y)?t.m(r+1,e.x,a.y):t.L(r+1,e.x,a.y)):ht.B(o.x,i.x)&&ht.B(i.x,a.x)?(ht.B(o.x,t.i(r-2).x)&&!ht.B(o.y,t.i(r-2).y)?(t.m(r,e.x,o.y),n++,r++):t.L(r-1,e.x,o.y),ht.B(a.x,t.i(r+2).x)&&!ht.B(a.y,t.i(r+2).y)?t.m(r+1,e.x,a.y):t.L(r+1,e.x,a.y)):ht.B(o.y,i.y)&&ht.B(i.y,a.y)&&(ht.B(o.y,t.i(r-2).y)&&!ht.B(o.x,t.i(r-2).x)?(t.m(r,o.x,e.y),n++,r++):t.L(r-1,o.x,e.y),ht.B(a.y,t.i(r+2).y)&&!ht.B(a.x,t.i(r+2).x)?t.m(r+1,a.x,e.y):t.L(r+1,a.x,e.y)),t.L(n,e.x,e.y)}else t.L(n,e.x,e.y),r=t.fromNode,i=t.fromPort,r!==null&&(o=r.findVisibleNode(),o!==null&&o!==r&&(r=o,i=r.port)),n===1&&t.computeSpot(!0,i).Mc()&&(o=i.ga(Tr,Ie.alloc()),r=t.getLinkPointFromPoint(r,i,o,e,!0,Ie.alloc()),t.L(0,r.x,r.y),Ie.free(o),Ie.free(r)),r=t.toNode,i=t.toPort,r!==null&&(o=r.findVisibleNode(),o!==null&&o!==r&&(r=o,i=r.port)),n===t.pointsCount-2&&t.computeSpot(!1,i).Mc()&&(n=i.ga(Tr,Ie.alloc()),e=t.getLinkPointFromPoint(r,i,n,e,!1,Ie.alloc()),t.L(t.pointsCount-1,e.x,e.y),Ie.free(n),Ie.free(e));t.zf()},Se.prototype.computeReshape=function(e){var t=this.adornedLink,n=this.handle.segmentIndex;switch(this.Ru(this.handle)){case ct:return e;case Qe:return new Ie(t.i(n).x,e.y);case Je:return new Ie(e.x,t.i(n).y);default:case je:return t.i(n)}},Mn.Object.defineProperties(Se.prototype,{handleArchetype:{get:function(){return this.o},set:function(e){this.o=e}},midHandleArchetype:{get:function(){return this.u},set:function(e){this.u=e}},handle:{get:function(){return this.j},set:function(e){if(e!==null&&!(e.part instanceof Xr))throw Error("new handle is not in an Adornment: "+e);this.j=e}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(e){this.F=e}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),Se.prototype.setReshapingBehavior=Se.prototype.om,Se.prototype.getReshapingBehavior=Se.prototype.Ru;var je=new Dt(Se,"None",0),Je=new Dt(Se,"Horizontal",1),Qe=new Dt(Se,"Vertical",2),ct=new Dt(Se,"All",3);Se.className="LinkReshapingTool",Se.None=je,Se.Horizontal=Je,Se.Vertical=Qe,Se.All=ct,xr("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(e){this.gb("LinkReshaping",e,this.mouseDownTools)});function mt(){Ar.call(this),this.name="Resizing",this.o=new mn(1,1).freeze(),this.j=new mn(9999,9999).freeze(),this.yg=new mn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var e=new hr;e.alignmentFocus=Tr,e.figure="Rectangle",e.desiredSize=yi,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.F=e,this.u=null,this.Xq=new Ie,this.Dw=new mn,this.Tn=new Ie,this.rt=new mn(0,0),this.qt=new mn(1/0,1/0),this.pt=new mn(1,1)}Kn(mt,Ar),mt.prototype.updateAdornments=function(e){if(!(e===null||e instanceof nn)){if(e.isSelected&&!this.diagram.isReadOnly){var t=e.resizeObject,n=e.Pj(this.name);if(t!==null&&e.canResize()&&e.actualBounds.w()&&e.isVisible()&&t.actualBounds.w()&&t.Ed()&&((n===null||n.adornedObject!==t)&&(n=this.makeAdornment(t)),n!==null)){t=t.li(),oh(e)&&this.updateResizeHandles(n,t),e.bh(this.name,n);return}}e.Jf(this.name)}},mt.prototype.makeAdornment=function(e){var t=e.part.resizeAdornmentTemplate;if(t===null){t=new Xr,t.type=Xt.Spot,t.locationSpot=Tr;var n=new fa;n.isPanelMain=!0,t.add(n),t.add(this.makeHandle(e,Gr)),t.add(this.makeHandle(e,zo)),t.add(this.makeHandle(e,Pi)),t.add(this.makeHandle(e,Oo)),t.add(this.makeHandle(e,Ss)),t.add(this.makeHandle(e,$o)),t.add(this.makeHandle(e,qo)),t.add(this.makeHandle(e,As))}else if(Hl(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},mt.prototype.makeHandle=function(e,t){return e=this.handleArchetype,e===null?null:(e=e.copy(),e.alignment=t,e)},mt.prototype.updateResizeHandles=function(e,t){if(e!==null){if(!e.alignment.Xb()&&(e.cursor==="pointer"||0<e.cursor.indexOf("resize")))e:{var n=e.alignment;if(n.Mc()&&(n=Tr),0>=n.x)t=0>=n.y?t+225:1<=n.y?t+135:t+180;else if(1<=n.x)0>=n.y?t+=315:1<=n.y&&(t+=45);else if(0>=n.y)t+=270;else if(1<=n.y)t+=90;else break e;0>t?t+=360:360<=t&&(t-=360),e.cursor=22.5>t?"e-resize":67.5>t?"se-resize":112.5>t?"s-resize":157.5>t?"sw-resize":202.5>t?"w-resize":247.5>t?"nw-resize":292.5>t?"n-resize":337.5>t?"ne-resize":"e-resize"}else if(e instanceof Xt)for(e=e.elements;e.next();)this.updateResizeHandles(e.value,t)}},mt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowResize&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},mt.prototype.doActivate=function(){var e=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(e.isMouseCaptured=!0,e.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},mt.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=e.isMouseCaptured=!1},mt.prototype.stopTransaction=function(){var e=this.diagram,t=Ar.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},mt.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},mt.prototype.doMouseMove=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,r=this.pt,i=this.adornedObject.qs(e.lastInput.documentPoint,Ie.alloc()),o=this.computeReshape();t=this.computeResize(i,this.handle.alignment,t,n,r,o),this.resize(t),e.bd(),Ie.free(i)}},mt.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,r=this.pt,i=this.adornedObject.qs(e.lastInput.documentPoint,Ie.alloc()),o=this.computeReshape();t=this.computeResize(i,this.handle.alignment,t,n,r,o),this.resize(t),Ie.free(i),e.Ya(),this.transactionResult=this.name,e.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},mt.prototype.resize=function(e){var t=this.diagram,n=this.adornedObject;if(n!==null){if(n.desiredSize=e.size,e=n.part,e.Va(),n=n.ga(this.handle.alignment.gv()),e instanceof or){var r=new Gt;if(r.add(e),!this.dragsMembers&&e.placeholder===null){var i=new w;i.dragsMembers=!1}t.moveParts(r,this.oppositePoint.copy().re(n),!0,i)}else e.location=e.location.copy().re(n).add(this.oppositePoint);t.bd()}},mt.prototype.computeResize=function(e,t,n,r,i,o){t.Mc()&&(t=Tr);var a=this.adornedObject.naturalBounds,d=a.x,x=a.y,O=a.x+a.width,M=a.y+a.height,Y=1;if(!o){Y=a.width;var ie=a.height;0>=Y&&(Y=1),0>=ie&&(ie=1),Y=ie/Y}return ie=Ie.alloc(),ht.No(e.x,e.y,d,x,i.width,i.height,ie),e=a.copy(),0>=t.x?0>=t.y?(e.x=Math.max(ie.x,O-r.width),e.x=Math.min(e.x,O-n.width),e.width=Math.max(O-e.x,n.width),e.y=Math.max(ie.y,M-r.height),e.y=Math.min(e.y,M-n.height),e.height=Math.max(M-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(Y*e.width,r.height),n.height),e.width=e.height/Y):(e.width=Math.max(Math.min(e.height/Y,r.width),n.width),e.height=Y*e.width),e.x=O-e.width,e.y=M-e.height)):1<=t.y?(e.x=Math.max(ie.x,O-r.width),e.x=Math.min(e.x,O-n.width),e.width=Math.max(O-e.x,n.width),e.height=Math.max(Math.min(ie.y-x,r.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(Y*e.width,r.height),n.height),e.width=e.height/Y):(e.width=Math.max(Math.min(e.height/Y,r.width),n.width),e.height=Y*e.width),e.x=O-e.width)):(e.x=Math.max(ie.x,O-r.width),e.x=Math.min(e.x,O-n.width),e.width=O-e.x,o||(e.height=Math.max(Math.min(Y*e.width,r.height),n.height),e.width=e.height/Y,e.y=x+.5*(M-x-e.height))):1<=t.x?0>=t.y?(e.width=Math.max(Math.min(ie.x-d,r.width),n.width),e.y=Math.max(ie.y,M-r.height),e.y=Math.min(e.y,M-n.height),e.height=Math.max(M-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(Y*e.width,r.height),n.height),e.width=e.height/Y):(e.width=Math.max(Math.min(e.height/Y,r.width),n.width),e.height=Y*e.width),e.y=M-e.height)):1<=t.y?(e.width=Math.max(Math.min(ie.x-d,r.width),n.width),e.height=Math.max(Math.min(ie.y-x,r.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(Y*e.width,r.height),n.height),e.width=e.height/Y):(e.width=Math.max(Math.min(e.height/Y,r.width),n.width),e.height=Y*e.width))):(e.width=Math.max(Math.min(ie.x-d,r.width),n.width),o||(e.height=Math.max(Math.min(Y*e.width,r.height),n.height),e.width=e.height/Y,e.y=x+.5*(M-x-e.height))):0>=t.y?(e.y=Math.max(ie.y,M-r.height),e.y=Math.min(e.y,M-n.height),e.height=M-e.y,o||(e.width=Math.max(Math.min(e.height/Y,r.width),n.width),e.height=Y*e.width,e.x=d+.5*(O-d-e.width))):1<=t.y&&(e.height=Math.max(Math.min(ie.y-x,r.height),n.height),o||(e.width=Math.max(Math.min(e.height/Y,r.width),n.width),e.height=Y*e.width,e.x=d+.5*(O-d-e.width))),Ie.free(ie),e},mt.prototype.computeReshape=function(){var e=Ut;return this.adornedObject instanceof hr&&(e=Pv(this.adornedObject)),!(e===Nn||this.diagram.lastInput.shift)},mt.prototype.computeMinSize=function(){var e=this.adornedObject.minSize.copy(),t=this.minSize;return!isNaN(t.width)&&t.width>e.width&&(e.width=t.width),!isNaN(t.height)&&t.height>e.height&&(e.height=t.height),e},mt.prototype.computeMaxSize=function(){var e=this.adornedObject.maxSize.copy(),t=this.maxSize;return!isNaN(t.width)&&t.width<e.width&&(e.width=t.width),!isNaN(t.height)&&t.height<e.height&&(e.height=t.height),e},mt.prototype.computeCellSize=function(){var e=new mn(NaN,NaN),t=this.adornedObject.part;return t!==null&&(t=t.resizeCellSize,!isNaN(t.width)&&0<t.width&&(e.width=t.width),!isNaN(t.height)&&0<t.height&&(e.height=t.height)),t=this.cellSize,isNaN(e.width)&&!isNaN(t.width)&&0<t.width&&(e.width=t.width),isNaN(e.height)&&!isNaN(t.height)&&0<t.height&&(e.height=t.height),t=this.diagram,(isNaN(e.width)||isNaN(e.height))&&t&&(t=t.grid,t!==null&&t.visible&&this.isGridSnapEnabled&&(t=t.gridCellSize,isNaN(e.width)&&!isNaN(t.width)&&0<t.width&&(e.width=t.width),isNaN(e.height)&&!isNaN(t.height)&&0<t.height&&(e.height=t.height))),(isNaN(e.width)||e.width===0||e.width===1/0)&&(e.width=1),(isNaN(e.height)||e.height===0||e.height===1/0)&&(e.height=1),e},Mn.Object.defineProperties(mt.prototype,{handleArchetype:{get:function(){return this.F},set:function(e){this.F=e}},handle:{get:function(){return this.u},set:function(e){if(e!==null&&!(e.part instanceof Xr))throw Error("new handle is not in an Adornment: "+e);this.u=e}},adornedObject:{get:function(){return this.ue},set:function(e){if(e!==null&&e.part instanceof Xr)throw Error("new handle must not be in an Adornment: "+e);this.ue=e}},minSize:{get:function(){return this.o},set:function(e){if(!this.o.D(e)){var t=e.width;isNaN(t)&&(t=0),e=e.height,isNaN(e)&&(e=0),this.o.h(t,e)}}},maxSize:{get:function(){return this.j},set:function(e){if(!this.j.D(e)){var t=e.width;isNaN(t)&&(t=1/0),e=e.height,isNaN(e)&&(e=1/0),this.j.h(t,e)}}},cellSize:{get:function(){return this.yg},set:function(e){this.yg.D(e)||this.yg.assign(e)}},isGridSnapEnabled:{get:function(){return this.V},set:function(e){this.V=e}},dragsMembers:{get:function(){return this.ia},set:function(e){this.ia=e}},oppositePoint:{get:function(){return this.Xq},set:function(e){this.Xq.D(e)||this.Xq.assign(e)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),mt.className="ResizingTool",xr("resizingTool",function(){return this.findTool("Resizing")},function(e){this.gb("Resizing",e,this.mouseDownTools)});function zt(){Ar.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Ie,this.ue=null;var e=new hr;e.figure="Ellipse",e.desiredSize=Kr,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.o=e,this.j=null,this.Cw=0,this.kr=new Ie(NaN,NaN),this.u=0,this.F=50}Kn(zt,Ar),zt.prototype.updateAdornments=function(e){if(e!==null){if(e.ph()){var t=e.rotateObject;if(t===e||t===e.path||t.isPanelMain)return}if(e.isSelected&&!this.diagram.isReadOnly&&(t=e.rotateObject,t!==null&&e.canRotate()&&e.actualBounds.w()&&e.isVisible()&&t.actualBounds.w()&&t.Ed())){var n=e.Pj(this.name);if((n===null||n.adornedObject!==t)&&(n=this.makeAdornment(t)),n!==null){n.angle=t.li(),n.placeholder===null&&(n.location=this.computeAdornmentLocation(t)),e.bh(this.name,n);return}}e.Jf(this.name)}},zt.prototype.makeAdornment=function(e){var t=e.part.rotateAdornmentTemplate;if(t===null){t=new Xr,t.type=Xt.Position,t.locationSpot=Tr;var n=this.handleArchetype;n!==null&&t.add(n.copy())}else if(Hl(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},zt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowRotate&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},zt.prototype.doActivate=function(){var e=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(e.isMouseCaptured=!0,e.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},zt.prototype.computeRotationPoint=function(e){var t=e.part,n=t.locationObject;return t.rotationSpot.sb()?e.ga(t.rotationSpot):e===t||e===n?n.ga(t.locationSpot):e.ga(Tr)},zt.prototype.computeAdornmentLocation=function(e){var t=this.rotationPoint;t.w()||(t=this.computeRotationPoint(e)),t=e.qs(t);var n=this.handleAngle;0>n?n+=360:360<=n&&(n-=360),n=Math.round(45*Math.round(n/45));var r=this.handleDistance;return n===0?t.x=e.naturalBounds.width+r:n===45?(t.x=e.naturalBounds.width+r,t.y=e.naturalBounds.height+r):n===90?t.y=e.naturalBounds.height+r:n===135?(t.x=-r,t.y=e.naturalBounds.height+r):n===180?t.x=-r:n===225?(t.x=-r,t.y=-r):n===270?t.y=-r:n===315&&(t.x=e.naturalBounds.width+r,t.y=-r),e.ga(t)},zt.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ie(NaN,NaN),this.isActive=e.isMouseCaptured=!1},zt.prototype.stopTransaction=function(){var e=this.diagram,t=Ar.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},zt.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},zt.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeRotate(e.lastInput.documentPoint),this.rotate(e))},zt.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){e.delaysLayout=!1;var t=this.computeRotate(e.lastInput.documentPoint);this.rotate(t),e.Ya(),this.transactionResult=this.name,e.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},zt.prototype.rotate=function(e){var t=this.adornedObject;if(t!==null){t.angle=e,t=t.part,t.Va();var n=t.locationObject,r=t.rotateObject;(n===r||n.rg(r))&&(n=this.Tn.copy(),t.location=n.re(this.rotationPoint).rotate(e-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},zt.prototype.computeRotate=function(e){e=this.rotationPoint.ab(e)-this.handleAngle;var t=this.adornedObject.panel;t!==null&&(e-=t.li()),360<=e?e-=360:0>e&&(e+=360),t=Math.min(Math.abs(this.snapAngleMultiple),180);var n=Math.min(Math.abs(this.snapAngleEpsilon),t/2);return!this.diagram.lastInput.shift&&0<t&&0<n&&(e%t<n?e=Math.floor(e/t)*t:e%t>t-n&&(e=(Math.floor(e/t)+1)*t)),360<=e?e-=360:0>e&&(e+=360),e},Mn.Object.defineProperties(zt.prototype,{handleArchetype:{get:function(){return this.o},set:function(e){this.o=e}},handle:{get:function(){return this.j},set:function(e){if(e!==null&&!(e.part instanceof Xr))throw Error("new handle is not in an Adornment: "+e);this.j=e}},adornedObject:{get:function(){return this.ue},set:function(e){if(e!==null&&e.part instanceof Xr)throw Error("new handle must not be in an Adornment: "+e);this.ue=e}},snapAngleMultiple:{get:function(){return this.ia},set:function(e){this.ia=e}},snapAngleEpsilon:{get:function(){return this.V},set:function(e){this.V=e}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(e){this.kr=e.copy()}},handleAngle:{get:function(){return this.u},set:function(e){this.u=e}},handleDistance:{get:function(){return this.F},set:function(e){this.F=e}}}),zt.className="RotatingTool",xr("rotatingTool",function(){return this.findTool("Rotating")},function(e){this.gb("Rotating",e,this.mouseDownTools)});function Yt(){Ar.call(this),this.name="ClickSelecting"}Kn(Yt,Ar),Yt.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Yt.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Yt.className="ClickSelectingTool";function Lt(){Ar.call(this),this.name="Action",this.pk=null}Kn(Lt,Ar),Lt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram,t=e.lastInput,n=e.ic(t.documentPoint,function(r){for(;r.panel!==null&&!r.isActionable;)r=r.panel;return r});return n!==null&&n.isActionable?(this.pk=n,e.Ck=e.ic(t.documentPoint,null,null),!0):!1},Lt.prototype.doMouseDown=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionDown!==null&&t.actionDown(e,t))}else this.canStart()&&this.doActivate()},Lt.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionMove!==null&&t.actionMove(e,t))}},Lt.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;if(t===null)return;e.targetObject=t,t.actionUp!==null&&t.actionUp(e,t),this.standardMouseClick(function(n){for(;n.panel!==null&&(!n.isActionable||n!==t);)n=n.panel;return n},function(n){return n===t})}this.stopTool()},Lt.prototype.doCancel=function(){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionCancel!==null&&t.actionCancel(e,t),this.stopTool())},Lt.prototype.doStop=function(){this.pk=null},Lt.className="ActionTool";function ln(){Ar.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ie(0,0)}Kn(ln,Ar),ln.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(e.lastInput.clickCount===1&&(this.mw=e.lastInput.viewPoint.copy()),e.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(e.lastInput.clickCount!==1)return!1;return!(e.currentTool!==this&&e.Ol(e.lastInput.documentPoint,!0)!==null)},ln.prototype.doMouseUp=function(){var e=this.diagram;this.isActive&&this.insertPart(e.lastInput.documentPoint),this.stopTool()},ln.prototype.insertPart=function(e){var t=this.diagram,n=this.archetypeNodeData;if(n===null)return null;var r=null;try{if(t.R("ChangingSelection",t.selection),this.Ea(this.name),n instanceof Fn)n.Zc()&&(Hl(n),r=n.copy(),r!==null&&t.add(r));else if(n!==null){var i=t.model.copyNodeData(n);gt(i)&&(t.model.xf(i),r=t.Lc(i))}if(r!==null){var o=Ie.allocAt(e.x,e.y);this.isGridSnapEnabled&&Hf(this.diagram,r,e,o),r.location=o,t.allowSelect&&(t.clearSelection(!0),r.isSelected=!0),Ie.free(o)}t.Ya(),this.transactionResult=this.name,t.R("PartCreated",r)}finally{this.stopTransaction(),t.R("ChangedSelection",t.selection)}return r},Mn.Object.defineProperties(ln.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(e){this.Ri=e}},isDoubleClick:{get:function(){return this.o},set:function(e){this.o=e}},isGridSnapEnabled:{get:function(){return this.j},set:function(e){this.j=e}}}),ln.className="ClickCreatingTool";function on(){Ar.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var e=new Fn;e.layerName="Tool",e.selectable=!1;var t=new hr;t.name="SHAPE",t.figure="Rectangle",t.fill=null,t.stroke="magenta",e.add(t),this.j=e}Kn(on,Ar),on.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(!e.allowSelect)return!1;var t=e.lastInput;return!(!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.timestamp-e.firstInput.timestamp<this.delay||e.Ol(t.documentPoint,!0)!==null))},on.prototype.doActivate=function(){var e=this.diagram;this.isActive=!0,e.isMouseCaptured=!0,e.skipsUndoManager=!0,e.add(this.box),this.doMouseMove()},on.prototype.doDeactivate=function(){var e=this.diagram;e.ug(),e.remove(this.box),e.skipsUndoManager=!1,this.isActive=e.isMouseCaptured=!1},on.prototype.doMouseMove=function(){var e=this.diagram;if(this.isActive&&this.box!==null){var t=this.computeBoxBounds(),n=this.box.fb("SHAPE");n===null&&(n=this.box.Pb());var r=mn.alloc().h(t.width,t.height);n.desiredSize=r,this.box.mm(t.x,t.y,!1),mn.free(r),(e.allowHorizontalScroll||e.allowVerticalScroll)&&e.gs(e.lastInput.viewPoint)}},on.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram;e.remove(this.box);try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),this.selectInRect(this.computeBoxBounds()),e.R("ChangedSelection",e.selection)}finally{e.currentCursor=""}}this.stopTool()},on.prototype.computeBoxBounds=function(){var e=this.diagram;return new xt(e.firstInput.documentPoint,e.lastInput.documentPoint)},on.prototype.selectInRect=function(e){var t=this.diagram,n=t.lastInput;if(e=t.ux(e,this.isPartialInclusion),gr?n.meta:n.control)if(n.shift)for(e=e.iterator;e.next();)t=e.value,t.isSelected&&(t.isSelected=!1);else for(e=e.iterator;e.next();)t=e.value,t.isSelected=!t.isSelected;else if(n.shift)for(e=e.iterator;e.next();)t=e.value,t.isSelected||(t.isSelected=!0);else{for(n=new Gt,t=t.selection.iterator;t.next();){var r=t.value;e.contains(r)||n.add(r)}for(t=n.iterator;t.next();)t.value.isSelected=!1;for(e=e.iterator;e.next();)t=e.value,t.isSelected||(t.isSelected=!0)}},Mn.Object.defineProperties(on.prototype,{delay:{get:function(){return this.Ik},set:function(e){this.Ik=e}},isPartialInclusion:{get:function(){return this.o},set:function(e){this.o=e}},box:{get:function(){return this.j},set:function(e){this.j=e}}}),on.className="DragSelectingTool";function Pt(){Ar.call(this),this.name="Panning",this.Xt=new Ie,this.xy=new Ie,this.xg=!1;var e=this;this.Kw=function(){var t=e.diagram;t!==null&&t.removeEventListener(pn.document,"scroll",e.Kw,!1),e.stopTool()}}Kn(Pt,Ar),Pt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!(!e.allowHorizontalScroll&&!e.allowVerticalScroll||!e.lastInput.left||e.currentTool!==this&&!this.isBeyondDragSize())},Pt.prototype.doActivate=function(){var e=this.diagram;this.xg?(e.lastInput.bubbles=!0,e.addEventListener(pn.document,"scroll",this.Kw,!1)):(e.currentCursor="move",e.isMouseCaptured=!0,this.Xt.assign(e.position)),this.isActive=!0},Pt.prototype.doDeactivate=function(){var e=this.diagram;e.currentCursor="",this.isActive=e.isMouseCaptured=!1},Pt.prototype.doCancel=function(){var e=this.diagram;e.position=this.Xt,e.isMouseCaptured=!1,this.stopTool()},Pt.prototype.doMouseMove=function(){this.move()},Pt.prototype.doMouseUp=function(){this.move(),this.stopTool()},Pt.prototype.move=function(){var e=this.diagram;if(this.isActive&&e)if(this.xg)e.lastInput.bubbles=!0;else{var t=e.position,n=e.firstInput.documentPoint,r=e.lastInput.documentPoint,i=t.x+n.x-r.x;n=t.y+n.y-r.y,e.allowHorizontalScroll||(i=t.x),e.allowVerticalScroll||(n=t.y),e.position=this.xy.h(i,n)}},Mn.Object.defineProperties(Pt.prototype,{bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},originalPosition:{get:function(){return this.Xt}}}),Pt.className="PanningTool",xr("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(e){this.gb("ClickCreating",e,this.mouseUpTools)}),xr("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(e){this.gb("ClickSelecting",e,this.mouseUpTools)}),xr("panningTool",function(){return this.findTool("Panning")},function(e){this.gb("Panning",e,this.mouseMoveTools)}),xr("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(e){this.gb("DragSelecting",e,this.mouseMoveTools)}),xr("actionTool",function(){return this.findTool("Action")},function(e){this.gb("Action",e,this.mouseDownTools)});function Ur(){this.F=this.u=this.j=this.o=null}Mn.Object.defineProperties(Ur.prototype,{mainElement:{get:function(){return this.u},set:function(e){this.u=e}},show:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},hide:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}},valueFunction:{get:function(){return this.F},set:function(e){this.F=e}}}),Ur.className="HTMLInfo";function fi(e,t,n){this.text=e,this.hx=t,this.visible=n}fi.className="ContextMenuButtonInfo";function Ni(){Ar.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Ie,this.jt=null,this.Et=!1;var e=this;this.tu=function(){e.stopTool()}}Kn(Ni,Ar);function mr(e){var t=new Ur;t.show=function(i,o,a){a.showDefaultContextMenu()},t.hide=function(i,o){o.hideDefaultContextMenu()},tr=t,e.tu=function(){e.stopTool()},t=On("div");var n=On("div");t.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",n.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var r=On("style");pn.document.getElementsByTagName("head")[0].appendChild(r),r.sheet.insertRule(".goCXul { list-style: none; }",0),r.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),r.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),r=e.diagram,r!==null&&(r.addEventListener(t,"contextmenu",Wr,!1),r.addEventListener(t,"selectstart",Wr,!1),r.addEventListener(n,"contextmenu",Wr,!1)),t.className="goCXforeground",n.className="goCXbackground",pn.document.body&&(pn.document.body.appendChild(t),pn.document.body.appendChild(n)),wo=t,ss=n,Mo=!0}function Wr(e){return e.preventDefault(),!1}Ni.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return this.isBeyondDragSize()||!e.lastInput.right||1<e.lastInput.clickCount?!1:!!(e.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},Ni.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Ni.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Ni.prototype.findObjectWithContextMenu=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.lastInput,r=null;if(e instanceof bt||(e instanceof at?r=e:r=t.ic(n.documentPoint,null,function(i){return!i.layer.isTemporary})),r!==null){for(e=r;e!==null;){if(e.contextMenu!==null)return e;e=e.panel}if(t.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return r.part}else if(t.contextMenu!==null)return t;return null},Ni.prototype.doActivate=function(){},Ni.prototype.doMouseDown=function(){if(Ar.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Xr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doMouseDown(),e.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&ti(this)},Ni.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Xr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doCancel(),e.doDeactivate())}ti(this)};function ti(e){var t=e.diagram;if(e.isActive){var n=e.currentContextMenu;if(n!==null){var r=null;n instanceof Ur||(r=t.ic(t.lastInput.documentPoint,null,null),r!==null&&r.rg(n)&&e.standardMouseClick(null,null)),e.maybeStopTool(r)}}else e.canStart()&&(No(e,!0),e.isActive||e.stopTool())}Ni.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function No(e,t,n){if(n===void 0&&(n=null),!e.Et&&(e.Et=!0,t&&e.standardMouseSelect(),t=e.standardMouseClick(),e.Et=!1,!t)){if(e.isActive=!0,t=tr,n===null&&(n=e.findObjectWithContextMenu()),n!==null){var r=n.contextMenu;r!==null?(e.currentObject=n instanceof at?n:null,e.showContextMenu(r,e.currentObject)):t!==null&&e.showContextMenu(t,e.currentObject)}else t!==null&&e.showContextMenu(t,null);e.currentContextMenu instanceof Xr&&!e.currentContextMenu.visible&&e.stopTool()}}Ni.prototype.doMouseMove=function(){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Ni.prototype.showContextMenu=function(e,t){var n=this.diagram;if(e!==this.currentContextMenu&&this.hideContextMenu(),e instanceof Xr){e.layerName="Tool",e.selectable=!1,e.scale=1/n.scale,e.category=this.name,e.placeholder!==null&&(e.placeholder.scale=n.scale);var r=e.diagram;r!==null&&r!==n&&r.remove(e),n.add(e),t!==null?e.adornedObject=t:e.data=n.model,e.Va(),this.positionContextMenu(e,t)}else e instanceof Ur&&e.show(t,n,this);this.currentContextMenu=e},Ni.prototype.positionContextMenu=function(e){if(e.placeholder===null){var t=this.diagram,n=t.lastInput.documentPoint.copy(),r=e.measuredBounds,i=t.viewportBounds;t.lastInput.isTouchEvent&&(n.x-=r.width),n.x+r.width>i.right&&(n.x-=r.width+5/t.scale),n.x<i.x&&(n.x=i.x),n.y+r.height>i.bottom&&(n.y-=r.height+5/t.scale),n.y<i.y&&(n.y=i.y),e.position=n}},Ni.prototype.hideContextMenu=function(){var e=this.diagram,t=this.currentContextMenu;t!==null&&(t instanceof Xr?(e.remove(t),this.ht!==null&&this.ht.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof Ur&&(t.hide!==null?t.hide(e,this):t.mainElement!==null&&(t.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Io(e){var t=new Gt;return t.add(new fi("Copy",function(n){n.commandHandler.copySelection()},function(n){return n.commandHandler.canCopySelection()})),t.add(new fi("Cut",function(n){n.commandHandler.cutSelection()},function(n){return n.commandHandler.canCutSelection()})),t.add(new fi("Delete",function(n){n.commandHandler.deleteSelection()},function(n){return n.commandHandler.canDeleteSelection()})),t.add(new fi("Paste",function(n){n.commandHandler.pasteSelection(e.mouseDownPoint)},function(n){return n.commandHandler.canPasteSelection(e.mouseDownPoint)})),t.add(new fi("Select All",function(n){n.commandHandler.selectAll()},function(n){return n.commandHandler.canSelectAll()})),t.add(new fi("Undo",function(n){n.commandHandler.undo()},function(n){return n.commandHandler.canUndo()})),t.add(new fi("Redo",function(n){n.commandHandler.redo()},function(n){return n.commandHandler.canRedo()})),t.add(new fi("Scroll To Part",function(n){n.commandHandler.scrollToPart()},function(n){return n.commandHandler.canScrollToPart()})),t.add(new fi("Zoom To Fit",function(n){n.commandHandler.zoomToFit()},function(n){return n.commandHandler.canZoomToFit()})),t.add(new fi("Reset Zoom",function(n){n.commandHandler.resetZoom()},function(n){return n.commandHandler.canResetZoom()})),t.add(new fi("Group Selection",function(n){n.commandHandler.groupSelection()},function(n){return n.commandHandler.canGroupSelection()})),t.add(new fi("Ungroup Selection",function(n){n.commandHandler.ungroupSelection()},function(n){return n.commandHandler.canUngroupSelection()})),t.add(new fi("Edit Text",function(n){n.commandHandler.editTextBlock()},function(n){return n.commandHandler.canEditTextBlock()})),t}Ni.prototype.showDefaultContextMenu=function(){var e=this.diagram;this.jt===null&&(this.jt=Io(this)),wo.innerHTML="",ss.addEventListener("pointerdown",this.tu,!1);var t=this,n=On("ul");n.className="goCXul",wo.appendChild(n),n.innerHTML="";for(var r=this.jt.iterator;r.next();){var i=r.value,o=i.visible;if(typeof i.hx=="function"&&(typeof o!="function"||o(e))){o=On("li"),o.className="goCXli";var a=On("a");a.className="goCXa",a.href="#",a.ky=i.hx,a.addEventListener("pointerdown",function(d){return this.ky(e),t.stopTool(),d.preventDefault(),!1},!1),a.textContent=i.text,o.appendChild(a),n.appendChild(o)}}wo.style.display="block",ss.style.display="block"},Ni.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===tr){wo.style.display="none",ss.style.display="none";var e=this.diagram;e!==null&&e.removeEventListener(ss,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Mn.Object.defineProperties(Ni.prototype,{currentContextMenu:{get:function(){return this.j},set:function(e){this.j=e,this.ht=e instanceof Xr?e.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Mo===!1&&tr===null&&vo&&mr(this),tr},set:function(e){e===null&&(Mo=!0),tr=e}},currentObject:{get:function(){return this.o},set:function(e){this.o=e}},mouseDownPoint:{get:function(){return this.yw}}});var tr=null,Mo=!1,ss=null,wo=null;Ni.className="ContextMenuTool",xr("contextMenuTool",function(){return this.findTool("ContextMenu")},function(e){this.gb("ContextMenu",e,this.mouseUpTools)});function Dr(){Ar.call(this),this.name="TextEditing",this.Zh=new zi,this.ia=null,this.V=Xs,this.vj=null,this.qa=Qt,this.u=1,this.F=!0,this.o=null,this.j=new Ur,this.kt=null,aa(this,this.j)}Kn(Dr,Ar);function aa(e,t){if(vo){var n=On("textarea");e.kt=n,n.addEventListener("input",function(){if(e.textBlock!==null){var r=e.Lx(this.value);this.style.width=20+r.measuredBounds.width*this.wA+"px",this.rows=r.lineCount}},!1),n.addEventListener("keydown",function(r){if(!r.isComposing&&e.textBlock!==null){var i=r.key;i==="Enter"?(e.textBlock.isMultiline===!1&&r.preventDefault(),e.acceptText(ns)):i==="Tab"?(e.acceptText(so),r.preventDefault()):i==="Escape"&&(e.doCancel(),e.diagram!==null&&e.diagram.doFocus())}},!1),n.addEventListener("focus",function(){if(e.currentTextEditor!==null&&e.state!==Qt){var r=e.kt;e.qa===la&&(e.qa=Ya),typeof r.select=="function"&&e.selectsTextOnActivate&&(r.select(),r.setSelectionRange(0,9999))}},!1),n.addEventListener("blur",function(){if(e.currentTextEditor!==null&&e.state!==Qt){var r=e.kt;typeof r.focus=="function"&&r.focus(),typeof r.select=="function"&&e.selectsTextOnActivate&&(r.select(),r.setSelectionRange(0,9999))}},!1),t.valueFunction=function(){return n.value},t.mainElement=n,t.show=function(r,i,o){if(r instanceof zi&&o instanceof Dr)if(o.state===Zs)n.style.border="3px solid red",n.focus();else{var a=r.ga(Tr),d=i.position,x=i.scale,O=r.Df()*x;O<o.minimumEditorScale&&(O=o.minimumEditorScale);var M=r.naturalBounds.width*O+6,Y=r.naturalBounds.height*O+2,ie=(a.x-d.x)*x;a=(a.y-d.y)*x,d=r.verticalAlignment,x=(r.lineHeight+r.spacingAbove+r.spacingBelow)*r.lineCount*O,Y=d.y*Y-d.y*x+d.offsetY-(.5*Y-.5*x)-x/2,n.value=r.text,i.div.style.font=r.font,n.style.position="absolute",n.style.zIndex="100",n.style.font="inherit",n.style.fontSize=100*O+"%",n.style.lineHeight="normal",n.style.width=M+"px",n.style.left=(ie-M/2|0)-1+"px",n.style.top=(a+Y|0)-1+"px",n.style.textAlign=r.textAlign,n.style.margin="0",n.style.padding="1px",n.style.border="0",n.style.outline="none",n.style.whiteSpace="pre-wrap",n.style.overflow="hidden",n.rows=r.lineCount,n.wA=O,n.className="goTXarea",i.div.appendChild(n),n.focus(),o.selectsTextOnActivate&&(n.select(),n.setSelectionRange(0,9999))}},t.hide=function(r){r.div.removeChild(n)}}}Dr.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e===null||e.isReadOnly||bl&&bl!==this&&(bl.acceptText(wi),bl&&bl!==this)||!e.lastInput.left||this.isBeyondDragSize())return!1;var t=e.ic(e.lastInput.documentPoint);return t!==null&&t instanceof zi&&t.editable&&t.part.canEdit()?(t=t.part,!(t===null||this.starting===Xs&&!t.isSelected||this.starting===Pa&&2>e.lastInput.clickCount)):!1},Dr.prototype.doStart=function(){bl=this,this.textBlock!==null&&this.doActivate()},Dr.prototype.doActivate=function(){if(!this.isActive){var e=this.diagram;if(e!==null){var t=this.textBlock;if(t===null&&(t=e.ic(e.lastInput.documentPoint)),t!==null&&t instanceof zi&&(this.textBlock=t,t.part!==null)){e.animationManager.Cc(),this.isActive=!0,this.qa=la;var n=this.defaultTextEditor;t.textEditor!==null&&(n=t.textEditor),this.Zh=this.textBlock.copy();var r=new xt(this.textBlock.ga(Gr),this.textBlock.ga(Pi));e.tv(r),n.show(t,e,this),this.currentTextEditor=n}}}},Dr.prototype.doCancel=function(){this.stopTool()},Dr.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Dr.prototype.doMouseDown=function(){this.isActive&&this.acceptText(wi)},Dr.prototype.acceptText=function(e){switch(e){case wi:this.qa===al?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===la||this.qa===Zs||this.qa===Ya)&&(this.qa=rn,Go(this));break;case Ti:case ns:case so:(ns!==e||this.textBlock.isMultiline!==!0)&&(this.qa===la||this.qa===Zs||this.qa===Ya)&&(this.qa=rn,Go(this))}};function Go(e){var t=e.textBlock,n=e.diagram,r=e.currentTextEditor;if(t!==null&&r!==null){var i=t.text,o="";r.valueFunction!==null&&(o=r.valueFunction()),e.isValidText(t,i,o)?(e.Ea(e.name),e.qa=al,e.transactionResult=e.name,t.text=o,e.doSuccess(i,o),n!==null&&n.R("TextEdited",t,i),e.stopTransaction(),e.stopTool(),n!==null&&n.doFocus()):(e.qa=Zs,e.doError(i,o))}}Dr.prototype.doError=function(e,t){var n=this.textBlock;n.errorFunction!==null&&n.errorFunction(this,e,t),(e=this.currentTextEditor)&&e.show(n,this.diagram,this)},Dr.prototype.doSuccess=function(e,t){var n=this.textBlock;n.textEdited!==null&&n.textEdited(n,e,t)},Dr.prototype.doDeactivate=function(){var e=this.diagram;e!==null&&(this.qa=Qt,this.currentTextEditor!==null&&this.currentTextEditor.hide(e,this),this.textBlock=null,this.isActive=!1)},Dr.prototype.doStop=function(){bl=null},Dr.prototype.isValidText=function(e,t,n){var r=this.textValidation;return r!==null&&!r(e,t,n)?!1:(r=e.textValidation,!!(r===null||r(e,t,n)))},Dr.prototype.Lx=function(e){var t=this.Zh;return t.text=e,t.measure(this.textBlock.Ih,1/0),t},Mn.Object.defineProperties(Dr.prototype,{textBlock:{get:function(){return this.ia},set:function(e){this.ia=e}},currentTextEditor:{get:function(){return this.o},set:function(e){this.o=e}},defaultTextEditor:{get:function(){return this.j},set:function(e){this.j=e}},starting:{get:function(){return this.V},set:function(e){this.V=e}},textValidation:{get:function(){return this.vj},set:function(e){this.vj=e}},minimumEditorScale:{get:function(){return this.u},set:function(e){this.u=e}},selectsTextOnActivate:{get:function(){return this.F},set:function(e){this.F=e}},state:{get:function(){return this.qa},set:function(e){this.qa!==e&&(this.qa=e)}}}),Dr.prototype.measureTemporaryTextBlock=Dr.prototype.Lx;var Ti=new Dt(Dr,"LostFocus",0),wi=new Dt(Dr,"MouseDown",1),so=new Dt(Dr,"Tab",2),ns=new Dt(Dr,"Enter",3),Bs=new Dt(Dr,"SingleClick",0),Xs=new Dt(Dr,"SingleClickSelected",1),Pa=new Dt(Dr,"DoubleClick",2),Qt=new Dt(Dr,"StateNone",0),la=new Dt(Dr,"StateActive",1),Ya=new Dt(Dr,"StateEditing",2),rn=new Dt(Dr,"StateValidating",3),Zs=new Dt(Dr,"StateInvalid",4),al=new Dt(Dr,"StateValidated",5),bl=null;Dr.className="TextEditingTool",Dr.LostFocus=Ti,Dr.MouseDown=wi,Dr.Tab=so,Dr.Enter=ns,Dr.SingleClick=Bs,Dr.SingleClickSelected=Xs,Dr.DoubleClick=Pa,Dr.StateNone=Qt,Dr.StateActive=la,Dr.StateEditing=Ya,Dr.StateValidating=rn,Dr.StateInvalid=Zs,Dr.StateValidated=al,xr("textEditingTool",function(){return this.findTool("TextEditing")},function(e){this.gb("TextEditing",e,this.mouseUpTools)});function Ls(e){Tn||(lt(),Tn=!0),this.H=zu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Gn,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Kt,this.ce=new xn,this.ce.Yd=this,this.Ei=new Kt,this.pu=new Kt,this.Sr=new Kt,this.pr=new Kt,e&&Object.assign(this,e)}Ls.prototype.Xe=function(e){this.H=e},Ls.prototype.canStart=function(){return!0};function rs(e,t){e.Jd&&e.canStart(t)&&(e.Zd.add(t),e.defaultAnimation.isAnimating&&e.Cc(),Ms(e.H),e.zb=!0)}function $a(e){if(e.Jd&&e.zb){var t=e.ce,n=e.H,r=e.Zd.contains("Model");r&&(e.Ok=!0,e.Pk===Gn?(t.isViewportUnconstrained=!0,t.vc.clear(),t.add(n,"position",n.position.copy().offset(0,-200),n.position),t.add(n,"opacity",0,1)):e.Pk===Ei&&t.vc.clear(),e.Qw=!!(e.Pk===$r&&n.du.D(n.pa)),n.R("InitialAnimationStarting",e)),r&&!e.Gh||t.vc.count===0?(e.Zd.clear(),e.zb=!1,t.vc.clear(),ur(t,n),e.Ok=!1,n.N()):(e.Zd.clear(),n.kg=!1,r=t.vc.get(n),n.autoScale!==Js&&r!==null&&(delete r.start.scale,delete r.end.scale),pn.requestAnimationFrame(function(){e.zb===!1||t.bc||(n.Gf("temporaryPixelRatio")&&Ta(n),Bd(n),e.zb=!1,t.start(),t.bc&&(ll(e),n.Ya(),Sl(t,0),wl(n,!0),vu(e),n.R("AnimationStarting",e)))}))}}function zs(e){return e.Zd.contains("Trigger")&&e.Zd.count===1}function Pl(e,t,n,r){e.isTicking||zs(e)||t instanceof nn&&(t.fromNode!==null||t.toNode!==null)||e.ce.add(t,"position",n,r,!1)}me=Ls.prototype,me.fv=function(e){return this.ce.fv(e)},me.Xu=function(e){return this.ce.Xu(e)};function nu(e,t){function n(){if(0<i.Sr.count&&(r.addAll(i.Sr),i.Sr.clear(),i.bc=!0),i.bc!==!1&&r.count!==0){i.pu.addAll(r);for(var o=i.pu.iterator;o.next();){var a=o.value;if(a.bc!==!1){e:if(0<a.yl.count)var d=!0;else{for(d=a.vc.iterator;d.next();){var x=d.key;if(x instanceof at&&x.diagram!==null||x instanceof bt){d=!0;break e}}d=!1}d?Uo(a,!1):a.Xk=!0}}i.pu.clear(),i.bc!==!1&&(ll(i),wl(i.H),vu(i)),pn.requestAnimationFrame(n)}}var r=e.Ei,i=e;e.bc?e.Sr.add(t):(e.bc=!0,r.add(t),pn.requestAnimationFrame(function(){n()}))}function Ec(e){for(e=e.Ei.iterator;e.next();)e.value.Xk=!1}function ll(e){if(!e.vq){var t=e.H;e.Ow=t.skipsUndoManager,e.cw=t.skipsModelSourceBindings,t.skipsUndoManager=!0,t.skipsModelSourceBindings=!0,e.vq=!0}}function vu(e){var t=e.H;t.skipsUndoManager=e.Ow,t.skipsModelSourceBindings=e.cw,e.vq=!1}me.Cc=function(e){var t=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<t.vc.count&&this.H.$b()),this.bc){if(t.Ml(!0),t.vc.clear(),ur(t,null),e===!0)for(e=this.Ei.Fa(),t=0;t<e.length;t++)e[t].Ml(!0)}else t.vc.clear(),ur(t,this.H)},me.Ml=function(e){e===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(e),this.Ei.count===0&&(this.bc=!1,this.H.$b()),e===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},me.Cj=function(e,t){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(e,t),F(this,e))},me.Aj=function(e,t){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(e,t),Ii(this.ce,t,"position",t.position,t.position),F(this,e))};function Xc(e,t,n){!e.zb||t.D(n)||zs(e)||(e.H.pi||(t=n.copy()),Ii(e.ce,e.H,"position",t,n))}function _(e,t,n){t.fd&&(t.Tg=n,e.pr.add(t))}function F(e,t){for(t=t.findLinksConnected();t.next();){var n=t.value;n.fd&&(n.Tg=n.points.copy(),e.pr.add(n))}}function Ae(e,t,n,r,i){e===null&&(e=[0,0,0,0]),t===null&&(t=[0,0,0,0]);var o=e[0],a=e[1],d=e[2];e=e[3];var x=t[0],O=t[1],M=t[2];return t=t[3],d===0||d===100?(o=x,a=O):(M===0||M===100)&&(x=o,O=a),180<Math.abs(x-o)&&(x>o?o+=360:x+=360),o=i(n,o,x-o,r)%360,a=i(n,a,O-a,r),d=i(n,d,M-d,r),n=i(n,e,t-e,r),"hsla("+o+", "+a+"%, "+d+"%, "+n+")"}function lt(){function e(n,r,i,o,a,d){n.position=new Ie(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d))}var t=new Et;t.add("position:diagram",e),t.add("position",e),t.add("position:part",function(n,r,i,o,a,d){a<d?n.mm(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d),!1):n.position=new Ie(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d))}),t.add("location",function(n,r,i,o,a,d){a<d?n.mm(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d),!0):n.location=new Ie(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d))}),t.add("position:placeholder",function(n,r,i,o,a,d){a<d?n.mm(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d),!1):n.position=new Ie(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d))}),t.add("position:nodeCollapse",function(n,r,i,o,a,d){var x=n.actualBounds,O=i.actualBounds;i=O.x+O.width/2-x.width/2,x=O.y+O.height/2-x.height/2,a<d?n.mm(o(a,r.x,i-r.x,d),o(a,r.y,x-r.y,d),!1):n.position=new Ie(o(a,r.x,i-r.x,d),o(a,r.y,x-r.y,d))}),t.add("desiredSize",function(n,r,i,o,a,d){n.desiredSize=new xt(o(a,r.width,i.width-r.width,d),o(a,r.height,i.height-r.height,d))}),t.add("width",function(n,r,i,o,a,d){n.width=o(a,r,i-r,d)}),t.add("height",function(n,r,i,o,a,d){n.height=o(a,r,i-r,d)}),t.add("fill",function(n,r,i,o,a,d){n.fill=Ae(r,i,a,d,o)}),t.add("stroke",function(n,r,i,o,a,d){n.stroke=Ae(r,i,a,d,o)}),t.add("strokeWidth",function(n,r,i,o,a,d){n.strokeWidth=o(a,r,i-r,d)}),t.add("strokeDashOffset",function(n,r,i,o,a,d){n.strokeDashOffset=o(a,r,i-r,d)}),t.add("background",function(n,r,i,o,a,d){n.background=Ae(r,i,a,d,o)}),t.add("areaBackground",function(n,r,i,o,a,d){n.areaBackground=Ae(r,i,a,d,o)}),t.add("opacity",function(n,r,i,o,a,d){n.opacity=o(a,r,i-r,d)}),t.add("scale",function(n,r,i,o,a,d){n.scale=o(a,r,i-r,d)}),t.add("angle",function(n,r,i,o,a,d){n.angle=o(a,r,i-r,d)}),Wt=t}Mn.Object.defineProperties(Ls.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(e){(this.Jd=e)&&this.Ei.each(function(t){t.isAnimating||t.runCount!==1/0||t.start()})}},duration:{get:function(){return this.Dg},set:function(e){1>e&&An(e,">= 1",Ls,"duration"),this.Dg=e}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(e){this.Pk=e}}}),Ls.prototype.stopAnimation=Ls.prototype.Cc;var Wt=null,Tn=!1,Gn=new Dt(Ls,"Default",1),$r=new Dt(Ls,"AnimateLocations",2),Ei=new Dt(Ls,"None",3);Ls.className="AnimationManager",Ls.defineAnimationEffect=function(e,t){Tn||(lt(),Tn=!0),Wt.add(e,t)},Ls.Default=Gn,Ls.AnimateLocations=$r,Ls.None=Ei;function xn(e){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Fl,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=cn,this.vc=new Et,this.Tt=new Et,this.yl=new Kt,this.Ut=new Kt,this.dw=_c,e&&Object.assign(this,e)}xn.prototype.suspend=function(){this.Xk=!0},xn.prototype.advanceTo=function(e,t){t&&(this.Xk=!1),this.ho&&e>=this.Gd&&(this.Wk=!0,e-=this.Gd),this.gw=e,Uo(this,!0),ll(this.Yd),wl(this.H),vu(this.Yd),this.H.redraw()};function ur(e,t){if(e.Tt.clear(),e.Wk=!1,e.au=0,e.Gd=NaN,0<e.yl.count&&e.yl.clear(),0<e.Ut.count&&e.Ut.clear(),t!==null)for(e=t.links;e.next();)e.value.Tg=null}me=xn.prototype,me.start=function(){if(this.vc.count===0||this.bc)return this;for(var e=this.H,t=this.vc.iterator;t.next();){var n=t.key;e===null&&(n instanceof bt?e=n:n instanceof at&&(e=n.diagram))}if(e!==null)this.H=e,this.Yd=e.animationManager;else return this;return t=this.Yd,t.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?t.duration:this.Dg,this.Lp=this.ot,t.Ok&&t.Pk===Gn&&this===t.defaultAnimation&&(this.Lp=yu,this.Gd=isNaN(this.Dg)?t.duration===600?900:t.duration:this.Dg),this.dw=e.scrollMode,this.isViewportUnconstrained&&(e.sj=cf),ll(t),this.yl.each(function(r){r.data=null,e.add(r)}),vu(t),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,nu(t,this),this)},me.Iy=function(e,t){return e.Zc()?(this.yl.add(e),this.H=t,this):this},me.add=function(e,t,n,r,i){if(t==="position"&&n.Xa(r))return this;if(this.H===null&&(e instanceof bt?this.H=e:e instanceof at&&e.diagram!==null&&(this.H=e.diagram)),e instanceof Fn){if(!e.isAnimated)return this;t==="position"&&(t="position:part")}return Ii(this,e,t,n,r,i),this};function Ii(e,t,n,r,i,o){var a=e.vc;if(t instanceof bt&&n==="position"&&(n="position:diagram"),(n==="fill"||n==="stroke"||n==="background"||n==="areaBackground")&&(uc(r),yv(),r=[dl.j,dl.u,dl.o,dl.F],uc(i),yv(),i=[dl.j,dl.u,dl.o,dl.F]),a.contains(t)){var d=a.I(t),x=d.start,O=d.end;x[n]===void 0&&(x[n]=co(r)),O[n]=co(i)}else x={},O={},x[n]=co(r),O[n]=co(i),d=x.position,t instanceof at&&d instanceof Ie&&!d.w()&&t.diagram.animationManager.Zd.contains("Expand SubGraph")&&d.assign(O.position),d=new ru(x,O,o),a.add(t,d);a=x[n],a instanceof Ie&&!a.w()&&a.assign(e.o),o&&n.indexOf("position:")===0&&t instanceof Fn?d.Ku.location=co(t.location):o&&(d.Ku[n]=co(r))}function co(e){return e instanceof Ie||e instanceof mn?e.copy():e}me.fv=function(e){return this.bc?(e=this.vc.I(e),e!==null&&e.nv):!1},me.Xu=function(e){return this.bc?(e=this.vc.I(e),e!==null&&(e.start.position||e.start.location)):!1};function Uo(e,t){if(!e.Xk||t){var n=e.Yd;if(e.bc!==!1){var r=+new Date,i=r>e.cn?e.Gd:r-e.Qd;t&&(i=e.gw,i<e.Gd?(e.Qd=+new Date-i,e.cn=e.Qd+e.Gd):i=e.Gd),ll(n),Sl(e,i),wl(e.H,!0),vu(n),r>e.cn&&(e.ho&&!e.Wk?(e.Qd=+new Date,e.cn=e.Qd+e.Gd,e.Wk=!0):e.Ml(!1))}}}function Sl(e,t){for(var n=e.Gd,r=e.vc.iterator,i=e.Wk;r.next();){var o=r.key;if(!(o instanceof at&&o.diagram===null)){var a=r.value,d=i?a.end:a.start;a=i?a.start:a.end;var x=Wt,O;for(O in a)O==="position"&&(a["position:placeholder"]||a["position:nodeCollapse"])||x.get(O)===null||x.get(O)(o,d[O],a[O],e.Lp,t,n,e)}}}me.stop=function(){return this.bc?(this.Ml(!0),this):this},me.Ml=function(e){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var t=this.H,n=this.Yd;this.Xk=this.bc=n.Ok=!1,ll(n);for(var r=this.vc,i=this.yl.iterator;i.next();)t.remove(i.value);for(i=this.Ut.iterator;i.next();)i.value.v();i=this.ho,r=r.iterator;for(var o=Wt;r.next();){var a=r.key,d=r.value,x=i?d.end:d.start,O=i?d.start:d.end,M=d.Ku,Y;for(Y in O)if(o.get(Y)!==null){var ie=Y;!d.Hu||ie!=="position:nodeCollapse"&&ie!=="position:placeholder"||(ie="position"),o.get(ie)(a,x[Y],M[Y]!==void 0?M[Y]:d.Hu?x[Y]:O[Y],this.Lp,this.Gd,this.Gd,this)}d.Hu&&M.location!==void 0&&a instanceof Fn&&(a.location=M.location),d.nv&&a instanceof Fn&&a.Zb(!1)}if(t.As.clear(),rf(t,!1),t.Ya(),t.N(),wl(t,!0),n.defaultAnimation===this){for(Y=n.pr.iterator;Y.next();)i=Y.value,i.Tg!==null&&(i.points=i.Tg,i.Tg=null);n.pr.clear()}wl(t,!0),this.isViewportUnconstrained&&(t.scrollMode=this.dw),vu(n),this.au++,!e&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ur(this,null),n.Ml(this),t.$b())}},me.Cj=function(e,t){var n=t.actualBounds,r=null;if(t instanceof or&&(r=t.placeholder),r!==null?(n=r.ga(Gr),r=r.padding,n.x+=r.left,n.y+=r.top,this.add(e,"position",n,e.position,!1)):this.add(e,"position",new Ie(n.x+n.width/2,n.y+n.height/2),e.position,!1),this.add(e,"scale",.01,e.scale,!1),e instanceof or)for(e=e.memberParts;e.next();)r=e.value,r instanceof hn&&this.Cj(r,t)},me.Aj=function(e,t){if(e.isVisible()){var n=null;if(t instanceof or&&(n=t.placeholder),n!==null){var r=n.ga(Gr);n=n.padding,r.x+=n.left,r.y+=n.top,this.add(e,"position:placeholder",e.position,r,!0)}else this.add(e,"position:nodeCollapse",e.position,t,!0);if(this.add(e,"scale",e.scale,.01,!0),r=this.vc,r.contains(e)&&(r.I(e).nv=!0),e instanceof or)for(e=e.memberParts;e.next();)r=e.value,r instanceof hn&&this.Aj(r,t)}},me.Ez=function(e){var t=this.Tt.get(e);return t===null&&(t={},this.Tt.add(e,t)),t},Mn.Object.defineProperties(xn.prototype,{duration:{get:function(){return this.Dg},set:function(e){1>e&&An(e,">= 1",xn,"duration"),this.Dg=e}},reversible:{get:function(){return this.ho},set:function(e){this.ho=e}},runCount:{get:function(){return this.cu},set:function(e){0<e?this.cu=e:ft("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(e){this.dn!==e&&(this.dn=e)}},easing:{get:function(){return this.ot},set:function(e){this.ot=e}},isViewportUnconstrained:{get:function(){return this.j},set:function(e){this.j=e}},isAnimating:{get:function(){return this.bc}}}),xn.prototype.getTemporaryState=xn.prototype.Ez,xn.prototype.stop=xn.prototype.stop,xn.prototype.add=xn.prototype.add,xn.prototype.addTemporaryPart=xn.prototype.Iy;function Fl(e,t,n,r){return e/=r/2,1>e?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function yu(e,t,n,r){return e===r?t+n:n*(-Math.pow(2,-10*e/r)+1)+t}xn.className="Animation",xn.EaseLinear=function(e,t,n,r){return n*e/r+t},xn.EaseInOutQuad=Fl,xn.EaseInQuad=function(e,t,n,r){return n*(e/=r)*e+t},xn.EaseOutQuad=function(e,t,n,r){return-n*(e/=r)*(e-2)+t},xn.EaseInExpo=function(e,t,n,r){return e===0?t:n*Math.pow(2,10*(e/r-1))+t},xn.EaseOutExpo=yu;function ru(e,t,n){this.start=e,this.end=t,this.Ku={},this.Hu=n,this.nv=!1}ru.className="AnimationState";function Ca(e,t,n){this.xd=null,this.rf=e,this.so=n||Hu,this.uk=null,t!==void 0&&(this.uk=t,n===void 0&&(this.so=Xa))}Ca.prototype.copy=function(){var e=new Ca(this.rf);e.so=this.so;var t=this.uk;if(t!==null){var n={};t.duration!==void 0&&(n.duration=t.duration),t.finished!==void 0&&(n.finished=t.finished),t.easing!==void 0&&(n.easing=t.easing),e.uk=n}return e};function ul(e,t){e=e.uk,e!==null&&(e.duration&&(t.duration=e.duration),e.finished&&(t.finished=e.finished),e.easing&&(t.easing=e.easing))}Mn.Object.defineProperties(Ca.prototype,{propertyName:{get:function(){return this.rf},set:function(e){this.rf=e}},animationSettings:{get:function(){return this.uk},set:function(e){this.uk=e}},startCondition:{get:function(){return this.so},set:function(e){this.so=e}}});var Hu=new Dt(Ca,"Default",1),Xa=new Dt(Ca,"Immediate",2),kh=new Dt(Ca,"Bundled",3);Ca.className="AnimationTrigger",Ca.Default=Hu,Ca.Immediate=Xa,Ca.Bundled=kh;function vs(e){Wn(this),this.H=null,this.Pa=new Gt,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],e&&Object.assign(this,e)}me=vs.prototype,me.clear=function(){for(var e=this.Pa,t=0;t<e.length;t++){var n=e.s[t];n.Ig=null,Vs(n)}e.clear(),this.Zq.length=0},me.Xe=function(e){this.H=e},me.toString=function(e){e===void 0&&(e=0);var t='Layer "'+this.name+'"';if(0>=e)return t;for(var n=0,r=0,i=0,o=0,a=0,d=this.Pa.iterator;d.next();){var x=d.value;x instanceof or?i++:x instanceof hn?r++:x instanceof nn?o++:x instanceof Xr?a++:n++}if(d="",0<n&&(d+=n+" Parts "),0<r&&(d+=r+" Nodes "),0<i&&(d+=i+" Groups "),0<o&&(d+=o+" Links "),0<a&&(d+=a+" Adornments "),1<e)for(e=this.Pa.iterator;e.next();)n=e.value,d+=`
`+n.toString(),r=n.data,r!==null&&rr(r)&&(d+=" #"+rr(r)),n instanceof hn?d+=" "+lr(r):n instanceof nn&&(d+=" "+lr(n.fromNode)+" "+lr(n.toNode));return t+" "+this.Pa.count+": "+d},me.ic=function(e,t,n){if(t===void 0&&(t=null),n===void 0&&(n=null),this.Uh===!1)return null;var r=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(r=!0);for(var i=Ie.alloc(),o=this.Pa.s,a=o.length;a--;){var d=o[a];if((r!==!0||oh(d)!==!1)&&d.isVisible()&&(i.assign(e),yn(i,d.oe),d=d.ic(i,t,n),d!==null&&(t!==null&&(d=t(d)),d!==null&&(n===null||n(d)))))return Ie.free(i),d}return Ie.free(i),null},me.ji=function(e,t,n,r){if(t===void 0&&(t=null),n===void 0&&(n=null),r instanceof Gt||r instanceof Kt||(r=new Kt),this.Uh===!1)return r;var i=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(i=!0);for(var o=Ie.alloc(),a=this.Pa.s,d=a.length;d--;){var x=a[d];if((i!==!0||oh(x)!==!1)&&x.isVisible()){o.assign(e),yn(o,x.oe);var O=x;x.ji(o,t,n,r)&&(t!==null&&(O=t(O)),O===null||n!==null&&!n(O)||r.add(O))}}return Ie.free(o),r},me.Cf=function(e,t,n,r,i){if(t===void 0&&(t=null),n===void 0&&(n=null),r===void 0&&(r=!1),i instanceof Gt||i instanceof Kt||(i=new Kt),this.Uh===!1)return i;var o=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(e)&&(o=!0);for(var a=this.Pa.s,d=a.length;d--;){var x=a[d];if((o!==!0||oh(x)!==!1)&&x.isVisible()){var O=x;x.Cf(e,t,n,r,i)&&(t!==null&&(O=t(O)),O===null||n!==null&&!n(O)||i.add(O))}}return i},me.Nu=function(e,t,n,r,i,o,a){if(this.Uh===!1)return i;for(var d=this.Pa.s,x=d.length;x--;){var O=d[x];if((a!==!0||oh(O)!==!1)&&o(O)&&O.isVisible()){var M=O;O.Cf(e,t,n,r,i)&&(t!==null&&(M=t(M)),M===null||n!==null&&!n(M)||i.add(M))}}return i},me.og=function(e,t,n,r,i,o){if(n===void 0&&(n=null),r===void 0&&(r=null),i===void 0&&(i=!0),i!==!1&&i!==!0&&((i instanceof Gt||i instanceof Kt)&&(o=i),i=!0),o instanceof Gt||o instanceof Kt||(o=new Kt),this.Uh===!1)return o;var a=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(a=!0);for(var d=Ie.alloc(),x=Ie.alloc(),O=this.Pa.s,M=O.length;M--;){var Y=O[M];if((a!==!0||oh(Y)!==!1)&&Y.isVisible()){d.assign(e),yn(d,Y.oe),x.h(e.x+t,e.y),yn(x,Y.oe);var ie=Y;Y.og(d,x,n,r,i,o)&&(n!==null&&(ie=n(ie)),ie===null||r!==null&&!r(ie)||o.add(ie))}}return Ie.free(d),Ie.free(x),o},me.Fd=function(e,t){if(this.visible){var n=this.Pa.s,r=n.length;if(r!==0){e=Bn();for(var i=Bn(),o=0;o<r;o++){var a=n[o];if(a.vw=o,a instanceof nn){if(a.fd===!1)continue}else if(a instanceof Xr&&a.adornedPart!==null)continue;var d=a.actualBounds;a.isVisible()&&kt(d,t)?(a.Fd(!0),e.push(a)):(a.Fd(!1),a.adornments!==null&&0<a.adornments.count&&i.push(a))}for(t=0;t<e.length;t++)for(n=e[t],Yv(n),n=n.adornments;n.next();)r=n.value,r.measure(1/0,1/0),r.arrange(),r.Fd(!0);for(t=0;t<i.length;t++)Yv(i[t]);wn(e),wn(i)}}};function sc(e,t){var n=1;return e.pb!==1&&(n=t.globalAlpha,t.globalAlpha=n*e.pb),n}me.gc=function(e,t,n){if(this.visible&&this.pb!==0&&(n===void 0&&(n=!0),n||!this.isTemporary)){n=this.Pa.s;var r=n.length;if(r!==0){if(e.isTemporary)for(var i=0;i<r;i++)n[i].Gj();i=sc(this,e);var o=this.Zq;o.length=0;for(var a=t.scale,d=xt.alloc(),x=0;x<r;x++)this.Oj(e,n[x],t,o,a,d,!0);if(xt.free(d),e.isTemporary)for(t=0;t<r;t++)n[t].Gj();e.globalAlpha=i}}};function og(e,t,n,r,i){if(e.visible&&e.pb!==0&&(i||!e.isTemporary)){i=e.Pa.s;var o=i.length;if(o!==0){var a=sc(e,t),d=e.Zq;d.length=0;for(var x=n.scale,O=xt.alloc(),M=0;M<o;M++){var Y=i[M];r.contains(Y)&&e.Oj(t,Y,n,d,x,O,!1)}xt.free(O),t.globalAlpha=a}}}me.Oj=function(e,t,n,r,i,o,a){if(a&&!oh(t))e.Hs(t);else{if(r!==null&&t instanceof nn&&(t.isOrthogonal&&r.push(t),t.fd===!1)){e.Hs(t);return}for(a=!1,r=t.containingGroup;r!==null;)a?r.tb!==null&&o.Ex(r.tb):r.tb!==null&&(a=!0,o.assign(r.tb)),r=r.containingGroup;var d=t.actualBounds;if(r=!1,a&&t.isVisible()){if(!o.Yc(d)){e.Hs(t);return}r=!o.Re(d)}r&&(e.save(),e instanceof Za?e.bk=o.copy():(e.beginPath(),e.rect(o.x,o.y,o.width,o.height),e.clip())),d.width*i>n.Oq||d.height*i>n.Oq?t.gc(e,n):(i=t.actualBounds,o=t.naturalBounds,i.width===0||i.height===0||isNaN(i.x)||isNaN(i.y)||!t.isVisible()||(n=t.transform,t.areaBackground!==null&&(bo(t,e,t.areaBackground,!0,!0,o,i),e.fillRect(i.x,i.y,i.width,i.height)),t.areaBackground===null&&t.background===null&&(bo(t,e,"rgba(0,0,0,0.3)",!0,!1,o,i),e.fillRect(i.x,i.y,i.width,i.height)),t.background!==null&&(e.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),bo(t,e,t.background,!0,!1,o,i),e.fillRect(0,0,o.width/2,o.height/2),n.ws()||(t=1/(n.m11*n.m22-n.m12*n.m21),e.transform(n.m22*t,-n.m12*t,-n.m21*t,n.m11*t,t*(n.m21*n.dy-n.m22*n.dx),t*(n.m12*n.dx-n.m11*n.dy)))))),r&&(e.restore(),e.Vc(!0))}},me.g=function(e,t,n,r,i){var o=this.diagram;o!==null&&o.cb(ji,e,this,t,n,r,i)},me.oi=function(e,t,n){var r=this.Pa;if(t.Ig=this,this===null&&Vs(t),e>=r.count)e=r.count;else if(r.M(e)===t)return-1;return r.Gb(e,t),t.Vo(n),r=this.diagram,r!==null&&(n?r.N():r.oi(t)),Ff(this,e,t),e},me.pc=function(e,t,n){if(!n&&t.layer!==this&&t.layer!==null)return t.layer.pc(e,t,n);var r=this.Pa;if(0>e||e>=r.length){if(e=r.indexOf(t),0>e)return-1}else if(r.M(e)!==t&&(e=r.indexOf(t),0>e))return-1;return t.Wo(n),r.mb(e),r=this.diagram,r!==null&&(n?r.N():r.pc(t)),t.Ig=null,Vs(t),e};function Ff(e,t,n){if(t=sg(e,t,n),n instanceof or&&n!==null&&isNaN(n.zOrder)){if(n.memberParts.count!==0){for(var r=-1,i=e.Pa.s,o=i.length,a=0;a<o;a++){var d=i[a];if(d===n&&(t=a,0<=r)||0>r&&d.containingGroup===n&&(r=a,0<=t))break}!(0>r)&&r<t&&(i=e.Pa,i.mb(t),i.Gb(r,n))}t=n.containingGroup,t!==null&&Ff(e,-1,t)}n.svg!==null&&n.svg.remove()}function sg(e,t,n){var r=n.zOrder;if(isNaN(r))return t;e=e.Pa;var i=e.count;if(1>=i)return t;if(0>t&&(t=e.indexOf(n)),0>t)return-1;for(var o=t-1,a=NaN;0<=o&&(a=e.M(o).zOrder,!!isNaN(a));)o--;for(var d=t+1,x=NaN;d<i&&(x=e.M(d).zOrder,!!isNaN(x));)d++;if(!isNaN(a)&&a>r)for(;;){if(o===-1||a<=r){if(o++,o===t)break;return e.mb(t),e.Gb(o,n),o}for(a=NaN;0<=--o&&(a=e.M(o).zOrder,isNaN(a)););}else if(!isNaN(x)&&x<r)for(;;){if(d===i||x>=r){if(d--,d===t)break;return e.mb(t),e.Gb(d,n),d}for(x=NaN;++d<i&&(x=e.M(d).zOrder,isNaN(x)););}return t}Mn.Object.defineProperties(vs.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(e){var t=this.xa;if(t!==e){var n=this.diagram;if(n!==null)for(t===""&&ft("Cannot rename default Layer to: "+e),n=n.layers;n.next();)n.value.name===e&&ft("Layer.name is already present in this diagram: "+e);for(this.xa=e,this.g("name",t,e),e=this.Pa.iterator;e.next();)e.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&An(e,"0 <= value <= 1",vs,"opacity"),this.pb=e,this.g("opacity",t,e),e=this.diagram,e!==null&&e.N())}},isTemporary:{get:function(){return this.o},set:function(e){var t=this.o;t!==e&&((this.o=e)&&(this.isInDocumentBounds=!1),this.g("isTemporary",t,e))}},visible:{get:function(){return this.u},set:function(e){var t=this.u;if(t!==e){for(this.u=e,this.g("visible",t,e),t=this.Pa.iterator;t.next();)t.value.Zb(e);e=this.diagram,e!==null&&e.N()}}},pickable:{get:function(){return this.Uh},set:function(e){var t=this.Uh;t!==e&&(this.Uh=e,this.g("pickable",t,e))}},isInDocumentBounds:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(e){var t=this.Fi;t!==e&&(this.Fi=e,this.g("allowCopy",t,e))}},allowDelete:{get:function(){return this.Gi},set:function(e){var t=this.Gi;t!==e&&(this.Gi=e,this.g("allowDelete",t,e))}},allowTextEdit:{get:function(){return this.Pi},set:function(e){var t=this.Pi;t!==e&&(this.Pi=e,this.g("allowTextEdit",t,e))}},allowGroup:{get:function(){return this.Hi},set:function(e){var t=this.Hi;t!==e&&(this.Hi=e,this.g("allowGroup",t,e))}},allowUngroup:{get:function(){return this.Qi},set:function(e){var t=this.Qi;t!==e&&(this.Qi=e,this.g("allowUngroup",t,e))}},allowLink:{get:function(){return this.Ii},set:function(e){var t=this.Ii;t!==e&&(this.Ii=e,this.g("allowLink",t,e))}},allowRelink:{get:function(){return this.Ki},set:function(e){var t=this.Ki;t!==e&&(this.Ki=e,this.g("allowRelink",t,e))}},allowMove:{get:function(){return this.Ji},set:function(e){var t=this.Ji;t!==e&&(this.Ji=e,this.g("allowMove",t,e))}},allowReshape:{get:function(){return this.Li},set:function(e){var t=this.Li;t!==e&&(this.Li=e,this.g("allowReshape",t,e))}},allowResize:{get:function(){return this.Mi},set:function(e){var t=this.Mi;t!==e&&(this.Mi=e,this.g("allowResize",t,e))}},allowRotate:{get:function(){return this.Ni},set:function(e){var t=this.Ni;t!==e&&(this.Ni=e,this.g("allowRotate",t,e))}},allowSelect:{get:function(){return this.Oi},set:function(e){var t=this.Oi;t!==e&&(this.Oi=e,this.g("allowSelect",t,e))}}}),vs.prototype.findObjectsNear=vs.prototype.og,vs.prototype.findObjectsIn=vs.prototype.Cf,vs.prototype.findObjectsAt=vs.prototype.ji,vs.prototype.findObjectAt=vs.prototype.ic,vs.className="Layer";function bt(e,t){if(Sg||(Gs(),Sg=!0),Wn(this),zu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,vo){var n=this,r=function(){n.removeEventListener(pn.document,"DOMContentLoaded",r,!1),n.setRTL()};pn.document.body!==null?this.setRTL():n.addEventListener(pn.document,"DOMContentLoaded",r,!1)}this.ol=null,$f.add("Model",gi);var i=this;return this.Hb=function(o){var a=i.partManager;if(o.model===a.diagram.model&&a.diagram.aa){a.diagram.aa=!1;try{var d=o.change;o.modelChange===""&&d===ji&&a.updateDataBindings(o.object,o.propertyName)}finally{a.diagram.aa=!0}}},this.Oc=function(o){i.partManager.doModelChanged(o)},this.hu=this.ku=null,ag(this),this.model=wy(),this.Wg=!0,ug(this),this.layout=new ao,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new xg,e!==void 0&&(typeof e=="string"||pn.Element&&e instanceof Element?Fd(this,e):t=e),this.vb=!1,t&&this.nm(t),this}var Zc,zu;function ag(e){e.Yd=new Ls,e.Yd.Xe(e),e.Db=17,e.Gw=!1,e.tn=!1,e.bu="default",e.Wa=new Gt,e.pj=new Et,e.nl="default",e.Tx(),e.Sx(),e.pb=1,e.pa=new Ie(NaN,NaN).freeze(),e.du=new Ie(NaN,NaN),e.Ca=1,e.Pp=1,e.zt=new Ie(NaN,NaN).freeze(),e.At=NaN,e.Ot=1e-4,e.Mt=100,e.Ab=new Zn,e.zu=new Ie(NaN,NaN).freeze(),e.ut=new xt(NaN,NaN,NaN,NaN).freeze(),e.rj=new ar(0,0,0,0).freeze(),e.sj=_c,e.nu=!1,e.Zt=null,e.fu=null,e.yh=Js,e.zk=Bo,e.Fg=Js,e.pq=Bo,e.yt=Gr,e.Bt=Gr,e.Fc=!0,e.pn=!1,e.De=new Kt,e.Eh=new Et,e.Xm=!0,e.vp=250,e.vk=-1,e.xp=new ar(16,16,16,16).freeze(),e.kg=!1,e.Jk=!1,e.fn=!0,e.bq=new is,e.bq.diagram=e,e.Qg=new is,e.Qg.diagram=e,e.cj=new is,e.cj.diagram=e,e.zg=null,e.pf=null,e.qu=!1,dv(e),e.ai=new Kt,e.Ht=!0,e.uu=Ac,e.pw=!1,e.wu=uf,e.it="auto",e.Op="auto",e.zh=null,e.Fh=null,e.Bh=null,e.Qh=null,e.Oh=null,e.Nh=null,e.Qt=null,e.Lh=null,e.xt=!1,e.Mh=null,e.Ph=null,e.$h=null,e.Ch=null,e.Rt=!1,e.Yt={},e.oj=[null,null],e.Wg=!1,e.Iw=!1,e.ou=!1,e.lt=!1,e.rw=!0,e.ld=!1,e.$i=!1,e.Tw=!0,e.Ce=-2,e.Og=new Et,e.Xn=new Gt,e.Gg=!1,e.Jd=!0,e.Us=!0,e.Fi=!0,e.Gi=!0,e.Vs=!1,e.Ws=!0,e.Pi=!0,e.Hi=!0,e.Qi=!0,e.Ys=!0,e.Ii=!0,e.Ki=!0,e.Ji=!0,e.Li=!0,e.Mi=!0,e.Ni=!0,e.Oi=!0,e.Zs=!0,e.at=!0,e.qw=!1,e.Vk=!1,e.mn=!0,e.nn=!0,e.Xs=!0,e.$s=!0,e.iu=16,e.mu=16,e.qr=!1,e.gu=!1,e.lu=0,e.ju=0,e.yb=new ar(5).freeze(),e.Hw=new Kt().freeze(),e.Nt=999999999,e.nw=new Kt().freeze(),e.Zi=!0,e.Ee=!0,e.vd=!0,e.Be=!1,e.gf=!1,e.xh=!0,e.hf=!1,e.sy=new Kt,e.ow=new Kt,e.Xh=null,e.aw=new mn(8,8),e.bw=999,e.Bw=1,e.Jw=0,e.fc={scale:1,position:new Ie,bounds:new xt,Py:new mn,bA:new mn,Oz:!1},e.fc.canvasSize=e.fc.Py,e.fc.newCanvasSize=e.fc.bA,e.fc.isScroll=!1,e.Rw=new xt(NaN,NaN,NaN,NaN).freeze(),e.wo=new mn(NaN,NaN).freeze(),e.Sp=new xt(NaN,NaN,NaN,NaN).freeze(),e.It=!1,e.Lg=new Et;var t=new hn,n=new zi;n.bind(new Do("text","",lr)),t.add(n),e.ny=t,e.Lg.add("",t),t=new hn,n=new zi,n.stroke="brown",n.bind(new Do("text","",lr)),t.add(n),e.Lg.add("Comment",t),t=new hn,t.selectable=!1,t.avoidable=!1,n=new hr,n.figure="Ellipse",n.fill="black",n.stroke=null,n.desiredSize=new mn(3,3).ja(),t.add(n),e.Lg.add("LinkLabel",t),e.Yi=new Et,t=new or,t.selectionObjectName="GROUPPANEL",t.type=Xt.Vertical,n=new zi,n.font="bold 12pt sans-serif",n.bind(new Do("text","",lr)),t.add(n),n=new Xt(Xt.Auto),n.name="GROUPPANEL";var r=new hr;r.figure="Rectangle",r.fill="rgba(128,128,128,0.2)",r.stroke="black",n.add(r),r=new fa,r.padding=new ar(5,5,5,5).ja(),n.add(r),t.add(n),e.ly=t,e.Yi.add("",t),e.Kh=new Et,t=new nn,n=new hr,n.isPanelMain=!0,t.add(n),n=new hr,n.toArrow="Standard",n.fill="black",n.stroke=null,n.strokeWidth=0,t.add(n),e.my=t,e.Kh.add("",t),t=new nn,n=new hr,n.isPanelMain=!0,n.stroke="brown",t.add(n),e.Kh.add("Comment",t),t=new Xr,t.type=Xt.Auto,n=new hr,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),n=new fa,n.margin=new ar(1.5,1.5,1.5,1.5).ja(),t.add(n),e.St=t,e.wt=t,t=new Xr,t.type=Xt.Link,n=new hr,n.isPanelMain=!0,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),e.Kt=t,e.fe=null,e.mq=!1,e.Ck=null,e.partManager=new gi,e.toolManager=new Fi,e.toolManager.initializeStandardTools(),e.defaultTool=e.toolManager,e.currentTool=e.defaultTool,e.nt=null,e.Wm=new w,e.Vt=null,e.Wt=null,e.Mr=!1,e.commandHandler=lg(),e.eq=null,e.fq=Rn,e.Pw=!1,e.Mb=1,e.Yh=null,e.Oq=1,e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0,e.yq=1,e.tw=0,e.uw=new Ie,e.zy=500,e.wp=new Ie,e.wq=!1}bt.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Dh=null,th="",Pd(this,!1),this.Xn.clear(),ad(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Pd(e,t){e.animationManager.Cc(!0),e.Hw=new Kt().freeze(),e.nw=new Kt().freeze();var n=e.skipsUndoManager,r=e.cc!==null&&e.cc!==void 0;r&&(e.skipsUndoManager=!0);var i=null;e.fe!==null&&(i=e.fe.part,i!==null&&e.remove(i));var o=[],a=e.Wa.length;if(t){for(t=0;t<a;t++)for(var d=e.Wa.s[t].parts;d.next();){var x=d.value;x!==i&&x.data===null&&o.push(x)}for(t=0;t<o.length;t++)e.remove(o[t])}for(t=0;t<a;t++)e.Wa.s[t].clear();return e.partManager.clear(),e.De.clear(),e.Eh.clear(),e.ai.clear(),e.Ck=null,e.Xn.clear(),ad(),e.Og.clear(),vi=[],i!==null&&(e.add(i),e.partManager.parts.remove(i)),r&&(e.skipsUndoManager=n),o}function lg(){return null}bt.prototype.reset=function(){this.clear(),this.vb=!0,ag(this),Ru(this),this.Wg=!0,ug(this),this.layout=new ao,this.Wg=!1,this.model=wy(),this.model.undoManager=new Ai,this.vb=this.rn=!1,this.N()},bt.prototype.setRTL=function(e){e=e===void 0?this.div:e,e===null&&(e=pn.document.body);var t=On("div");t.dir="rtl",t.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",t.textContent="A",e.appendChild(t);var n="reverse";0<t.scrollLeft?n="default":(t.scrollLeft=1,t.scrollLeft===0&&(n="negative")),e.removeChild(t),this.bu=n},bt.prototype.setScrollWidth=function(e){e=e===void 0?this.div:e,e===null&&(e=pn.document.body);var t=0;if(vo){var n=bg;t=Zc,n===null&&(n=bg=On("p"),n.style.width="100%",n.style.height="200px",n.style.boxSizing="content-box",t=Zc=On("div"),t.style.position="absolute",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.boxSizing="content-box",t.appendChild(n)),t.style.overflow="hidden",e.appendChild(t);var r=n.offsetWidth;t.style.overflow="scroll",n=n.offsetWidth,r===n&&(n=t.clientWidth),e.removeChild(t),t=r-n,t!==0||gr||(t=11)}this.Db=t,this.Gw=!0},bt.prototype.qb=function(e){e.classType===bt&&(this.autoScale=e)},bt.prototype.toString=function(e){e===void 0&&(e=0);var t="";if(this.div&&this.div.id&&(t=this.div.id),t='Diagram "'+t+'"',0>=e)return t;for(var n=this.Wa.iterator;n.next();)t+=`
`+n.value.toString(e-1);return t};function Fd(e,t){if(vo){if(t!=null||ft("Diagram setup requires an argument DIV."),e.Ka!==null&&ft("Diagram has already completed setup."),typeof t=="string"?e.Ka=pn.document.getElementById(t):t instanceof HTMLDivElement?e.Ka=t:ft("No DIV or DIV id supplied: "+t),e.Ka===null&&ft("Invalid DIV id; could not get element with id: "+t),e.Ka.H!==void 0&&ft("Invalid div id; div already has a Diagram associated with it."),!e.ol&&pn.ResizeObserver){var n=Mt(function(){e.$b()},250);e.ol=new pn.ResizeObserver(function(){n()}),e.ol.observe(e.Ka)}pn.getComputedStyle(e.Ka,null).position==="static"&&(e.Ka.style.position="relative"),t=5;var r="rgba(2"+t+"5, 255, 255, 0)";t--,e.Ka.style["-webkit-tap-highlight-color"]=r,e.Ka.innerHTML="",e.Ka.H=e,e.Ka.goDiagram=e,e.Ka.go=pn.go;var i=new Ul(e);if(i.style!==void 0&&(i.style.position="absolute",i.style.top="0px",i.style.left="0px",pn.getComputedStyle(e.Ka,null).getPropertyValue("direction")==="rtl"&&(e.tn=!0),i.style.zIndex="2",i.style.userSelect="none",i.style.MozUserSelect="none",i.style.touchAction="none",i.style.letterSpacing="normal !important",i.style.wordSpacing="normal !important"),e.ta=i,e.ib=i.context,r=e.ib,e.Mb=e.computePixelRatio(),e.viewSize.w()||(e.Aa=e.Ka.clientWidth||1,e.ya=e.Ka.clientHeight||1),Vd(e,e.Aa,e.ya),e.Ka.insertBefore(i.Oa,e.Ka.firstChild),i=new Ul(null),i.width=1,i.height=1,e.jw=i,e.oy=i.context,vo){i=On("div");var o=On("div");i.style.position="absolute",i.style.overflow="auto",i.style.width=e.Aa+"px",i.style.height=e.ya+"px",i.style.zIndex="1",o.style.position="absolute",o.style.width="1px",o.style.height="1px",e.Ka.appendChild(i),i.appendChild(o),i.onscroll=hg,i.addEventListener("pointerdown",fg),i.H=e,i.uy=!0,i.vy=!0,e.ku=i,e.hu=o}e.hk=Mt(function(){e.Yh=null,e.N()},300),e.Ov=Mt(function(){Bd(e)},250),e.preventDefault=function(a){return a.preventDefault(),!1},e.$j=function(a){if(e.isEnabled){var d=xl(e,a,!0);d.bubbles=!0;var x=0,O=0;d.delta=0,a.deltaX!==void 0?(a.deltaX!==0&&(x=0<a.deltaX?1:-1),a.deltaY!==0&&(O=0<a.deltaY?1:-1),d.delta=Math.abs(a.deltaX)>Math.abs(a.deltaY)?-x:-O):a.wheelDeltaX!==void 0?(a.wheelDeltaX!==0&&(x=0<a.wheelDeltaX?-1:1),a.wheelDeltaY!==0&&(O=0<a.wheelDeltaY?-1:1),d.delta=Math.abs(a.wheelDeltaX)>Math.abs(a.wheelDeltaY)?-x:-O):a.wheelDelta!==void 0&&a.wheelDelta!==0&&(d.delta=0<a.wheelDelta?1:-1),e.doMouseWheel(),iu(d,a)}},e.aA=function(a){e.isEnabled&&(e.Vk=!1,xl(e,a,!0),a=e.currentTool,a.cancelWaitAfter(),a.standardMouseOver())},e.ui=function(a){if(e.isEnabled){e.Vk=!0;var d=e.Yt;d[a.pointerId]===void 0&&(d[a.pointerId]=a),d=e.oj;var x=!1;if(d[0]===null||d[0].pointerId!==a.pointerId&&d[0].pointerType===a.pointerType)if(d[1]!==null&&d[1].pointerId===a.pointerId)d[1]=a,x=!0;else if(d[0]===null)d[0]=a;else if(d[1]===null)d[1]=a,x=!0;else{a.preventDefault();return}else d[0]=a;(d=a.pointerType==="touch"||a.pointerType==="pen")&&(e.qu=!1,e.wq=!0);var O=x;x=zd(e,a,!0,!1,!0,O),Ih(e,a,x),x.targetDiagram=Hd(a,a.target),x.targetObject=null,O||x.clone(e.bq),O=e.uw,d=d?25:10,a.timeStamp-e.tw<e.zy&&!(Math.abs(O.x-a.screenX)>d||Math.abs(O.y-a.screenY)>d)?e.yq++:e.yq=1,x.clickCount=e.yq,e.tw=a.timeStamp,e.uw.sg(a.screenX,a.screenY),e.doMouseDown(),a.button===1?a.preventDefault():iu(x,a)}},e.dk=function(a){if(e.isEnabled){e.Vk=!0;var d=e.oj;if(d[0]===null||d[0].pointerId!==a.pointerId&&d[0].pointerType===a.pointerType){if(d[1]!==null&&d[1].pointerId===a.pointerId){d[1]=a;return}if(d[0]===null)d[0]=a;else return}else d[0]=a;if(d[0].pointerId===a.pointerId){d=zd(e,a,!1,!1,!1,d[1]!==null);var x=pn.document.elementFromPoint(a.clientX,a.clientY)||null;x!==null&&x.shadowRoot!==void 0&&x.shadowRoot!==null&&(x=x.shadowRoot.elementFromPoint(a.clientX,a.clientY));var O=e,M=a;x&&x.H&&(M=a,O=x.H),d.targetDiagram=O,Ih(e,M,d),d.targetObject=null,e.doMouseMove(),iu(d,a)}}},e.fk=function(a){if(e.isEnabled){e.Vk=!0;var d=a.pointerType==="touch"||a.pointerType==="pen",x=e.Yt;if(d&&e.qu)delete x[a.pointerId],a.preventDefault();else if(x=e.oj,x[0]===null||x[0].pointerId!==a.pointerId&&x[0].pointerType===a.pointerType)x[1]!==null&&x[1].pointerId===a.pointerId&&(x[1]=null);else{x[0]=null,x=zd(e,a,!1,!0,!0,!1);var O=pn.document.elementFromPoint(a.clientX,a.clientY)||null;O!==null&&O.shadowRoot!==void 0&&O.shadowRoot!==null&&(O=O.shadowRoot.elementFromPoint(a.clientX,a.clientY)),O!==null&&O.H instanceof bt&&O.H!==e&&Ih(O.H,a,x),O===null&&(O=a.target),Ih(e,a,x),x.clickCount=e.yq,x.targetDiagram=Hd(a,O),x.targetObject=null,e.doMouseUp(),iu(x,a),d&&(e.wq=!1)}}},e.ek=function(a){if(e.isEnabled){e.Vk=!1;var d=e.Yt;d[a.pointerId]&&delete d[a.pointerId],d=e.oj,d[0]!==null&&d[0].pointerId===a.pointerId&&(d[0]=null),d[1]!==null&&d[1].pointerId===a.pointerId&&(d[1]=null),a.pointerType!=="touch"&&a.pointerType!=="pen"&&(a=e.currentTool,a.cancelWaitAfter(),a.standardMouseOver())}},e.ck=function(a){var d=e.oj;d[0]!==null&&d[0].pointerId===a.pointerId?(d[0]=null,e.wq=!1):d[1]!==null&&d[1].pointerId===a.pointerId&&(d[1]=null)},e.Vp=r.Z["d"+ff[1]+ff[2]+"wI"+Fh.slice(1,5)]["b"+X1.slice(1,t)](r.Z,hf,t,t),r.Vc(!0),fv(e),e.nl==="svg"&&(t=e.pj.get("svg"),e.Ka.appendChild(t.Oa),e.ib=t.context)}}bt.prototype.addEventListener=function(e,t,n,r){e.addEventListener(t,n,{capture:r,passive:!1})},bt.prototype.removeEventListener=function(e,t,n,r){e.removeEventListener(t,n,{capture:r})};function fv(e){var t=e.ta.Oa;t instanceof HTMLCanvasElement||(t=e.div),e.addEventListener(t,"pointerdown",e.ui,!1),e.addEventListener(t,"pointermove",e.dk,!1),e.addEventListener(t,"pointerup",e.fk,!1),e.addEventListener(t,"pointerout",e.ek,!1),e.addEventListener(t,"pointercancel",e.ck,!1),e.addEventListener(t,"pointerenter",e.bz,!1),e.addEventListener(t,"pointerleave",e.cz,!1),e.addEventListener(t,"wheel",e.$j,!1),e.addEventListener(t,"keydown",e.Qz,!1),e.addEventListener(t,"keyup",e.Rz,!1),e.addEventListener(t,"blur",e.Ny,!1),e.addEventListener(t,"focus",e.Oy,!1),e.addEventListener(t,"selectstart",function(n){return n.preventDefault(),!1},!1),e.addEventListener(t,"contextmenu",function(n){return n.preventDefault(),!1},!1),e.addEventListener(pn,"resize",e.Ov,!1)}function Ta(e){30<e.Sq&&(e.Yh=1)}function rf(e,t){e.Yh!==null&&(e.Yh=null,t&&e.hk(),Oi&&Oi.nx||(e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0))}bt.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:pn.devicePixelRatio||1},bt.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},bt.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},bt.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},bt.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},bt.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},bt.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},bt.prototype.doFocus=function(){this.focus()},bt.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var e=pn.scrollX||pn.pageXOffset,t=pn.scrollY||pn.pageYOffset;this.ta.focus(),pn.scrollTo(e,t)}},bt.prototype.Oy=function(){this.H.R("GainedFocus")},bt.prototype.Ny=function(){this.H.R("LostFocus")};function Bd(e){if(e.ta!==null){var t=e.Ka;if(t!==null&&t.clientWidth!==0&&t.clientHeight!==0){e.Gw||e.setScrollWidth();var n=e.gf?e.Db:0,r=e.Be?e.Db:0,i=e.Mb;e.Mb=e.computePixelRatio(),e.Mb!==i&&(e.pn=!0,e.$b()),(t.clientWidth!==e.Aa+n||t.clientHeight!==e.ya+r)&&(e.Ee=!0,e.Fc=!0,t=e.layout,t!==null&&t.isViewportSized&&e.autoScale===Js&&(e.Jk=!0,t.C()),e.ld||e.$b())}}}function ug(e){var t=new vs;t.name="Background",e.Al(t),t=new vs,t.name="",e.Al(t),t=new vs,t.name="Foreground",e.Al(t),t=new vs,t.name="Adornment",t.isTemporary=!0,t.isInDocumentBounds=!1,e.Al(t),t=new vs,t.name="Tool",t.isTemporary=!0,t.isInDocumentBounds=!0,e.Al(t),t=new vs,t.name="Grid",t.allowSelect=!1,t.pickable=!1,t.isTemporary=!0,t.isInDocumentBounds=!1,e.Ww(t,e.Qj("Background"))}function cg(e){var t=new Xt(Xt.Grid);t.name="GRID";var n=new hr;return n.figure="LineH",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new hr,n.figure="LineH",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new hr,n.figure="LineH",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new hr,n.figure="LineV",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new hr,n.figure="LineV",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new hr,n.figure="LineV",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new Fn,n.add(t),n.layerName="Grid",n.zOrder=0,n.isInDocumentBounds=!1,n.isAnimated=!1,n.pickable=!1,n.locationObjectName="GRID",e.add(n),e.partManager.parts.remove(n),t.visible=!1,t}function hg(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Lh(this.H)}function fg(e){this.H.isEnabled?(this.H.lu=e.target.scrollTop,this.H.ju=e.target.scrollLeft):Lh(this.H)}bt.prototype.kx=function(e){if(this.ta!==null){var t=this.ku,n=this.hu;this.qr=!0;var r=this.documentBounds,i=this.viewportBounds,o=this.rj,a=r.x-o.left,d=r.y-o.top,x=r.width+o.left+o.right,O=r.height+o.top+o.bottom,M=r.right+o.right;o=r.bottom+o.bottom;var Y=i.x;r=i.y;var ie=i.width,ce=i.height,ge=i.right,Te=i.bottom;i=this.scale;var Ve=e.scrollLeft;if(this.tn)switch(this.bu){case"negative":Ve=Ve+e.scrollWidth-e.clientWidth;break;case"reverse":Ve=e.scrollWidth-Ve-e.clientWidth}var He=Ve;ie<x||ce<O?(Ve=Ie.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==He&&(Ve.x=He/i+a,this.ju=He),this.allowVerticalScroll&&this.lu!==e.scrollTop&&(Ve.y=e.scrollTop/i+d,this.lu=e.scrollTop),this.position=Ve,Ie.free(Ve),this.Ee=this.qr=!1):(Ve=Ie.alloc(),e.uy&&this.allowHorizontalScroll&&(a<Y&&(this.position=Ve.h(He+a,this.position.y)),M>ge&&(this.position=Ve.h(-(t.scrollWidth-this.Aa)+He-this.Aa/i+M,this.position.y))),e.vy&&this.allowVerticalScroll&&(d<r&&(this.position=Ve.h(this.position.x,e.scrollTop+d)),o>Te&&(this.position=Ve.h(this.position.x,-(t.scrollHeight-this.ya)+e.scrollTop-this.ya/i+o))),Ie.free(Ve),this.vd=!0,this.Ee=this.qr=!1,r=this.documentBounds,i=this.viewportBounds,M=r.right,ge=i.right,o=r.bottom,Te=i.bottom,a=r.x,Y=i.x,d=r.y,r=i.y,ie>=x&&a>=Y&&M<=ge&&(n.style.width="1px"),ce>=O&&d>=r&&o<=Te&&(n.style.height="1px"))}},bt.prototype.computeBounds=function(e){return e===void 0&&(e=new xt),Ms(this),jd(this,e)};function jd(e,t){if(e.fixedBounds.w())return t.assign(e.fixedBounds),t.Co(e.yb),t;for(var n=!0,r=e.Wa.s,i=r.length,o=0;o<i;o++){var a=r[o];if(a.visible&&a.isInDocumentBounds){a=a.Pa.s;for(var d=a.length,x=0;x<d;x++){var O=a[x];O.isInDocumentBounds&&O.isVisible()&&(O=O.actualBounds,O.w()&&(n?(n=!1,t.assign(O)):t.ed(O)))}}}return n&&t.h(0,0,0,0),t.Co(e.yb),t}bt.prototype.computePartsBounds=function(e,t){t===void 0&&(t=!1);var n=null;if(gn(e))for(var r=0;r<e.length;r++){var i=e[r];!t&&i instanceof nn||(i.Va(),n===null?n=i.actualBounds.copy():n.ed(i.actualBounds))}else for(e=e.iterator;e.next();)r=e.value,!t&&r instanceof nn||(r.Va(),n===null?n=r.actualBounds.copy():n.ed(r.actualBounds));return n===null?new xt(NaN,NaN,0,0):n};function Bl(e,t){if((t||e.hf)&&!e.vb&&e.ta!==null&&e.documentBounds.w()){if(e.vb=!0,t){var n=e.initialPosition;if(n.w()){e.vb=!1,e.position=n;return}n=Ie.alloc(),n.xi(e.documentBounds,e.initialDocumentSpot);var r=e.viewportBounds;r=xt.allocAt(0,0,r.width,r.height);var i=Ie.alloc();i.xi(r,e.initialViewportSpot),i.h(n.x-i.x,n.y-i.y),e.position=i,xt.free(r),Ie.free(i),Ie.free(n)}n=e.yh,t&&e.Fg!==Js&&(n=e.Fg);var o=n!==Js?Nh(e,n):e.scale;n=e.pa.x,r=e.pa.y,i=e.Aa/o;var a=e.ya/o,d=e.zk,x=e.pq;t&&!d.sb()&&(x.sb()||x.Xb())&&(d=x.Xb()?Tr:x),Ud(e,e.documentBounds,i,a,d,t),t=e.scale,e.scale=o,e.vb=!1,o=e.viewportBounds,ht.B(o.x,n)&&ht.B(o.y,r)&&ht.B(o.width,i)&&ht.B(o.height,a)||e.onViewportBoundsChanged(new xt(n,r,i,a),o,t,!1)}}function Nh(e,t){var n=e.Pp;if(e.ta===null)return n;e.Va();var r=e.documentBounds;if(!r.w())return n;var i=r.width;r=r.height;var o=e.Aa+(e.gf?e.Db:0),a=e.ya+(e.Be?e.Db:0),d=o/i,x=a/r;return t===cl?(t=Math.min(x,d),t>n&&(t=n),t<e.minScale&&(t=e.minScale),t>e.maxScale&&(t=e.maxScale),t):t===nh?(t=x>d?(a-e.Db)/r:(o-e.Db)/i,t>n&&(t=n),t<e.minScale&&(t=e.minScale),t>e.maxScale&&(t=e.maxScale),t):e.scale}bt.prototype.zoomToFit=function(){var e=this.sj;this.sj=_c,this.scale=Nh(this,cl),e!==_c&&(Bl(this,!1),Ud(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=e},me=bt.prototype,me.BA=function(e,t){t===void 0&&(t=cl);var n=e.width,r=e.height;if(!(n===0||r===0||isNaN(n)&&isNaN(r))){var i=1;if(t===cl||t===nh)if(isNaN(n))i=this.viewportBounds.height*this.scale/r;else if(isNaN(r))i=this.viewportBounds.width*this.scale/n;else{i=this.Aa;var o=this.ya;i=t===nh?o/r>i/n?(o-(this.Be?this.Db:0))/r:(i-(this.gf?this.Db:0))/n:Math.min(o/r,i/n)}this.scale=i,this.position=new Ie(e.x,e.y)}},me.Jy=function(e,t){this.Va();var n=this.documentBounds,r=this.viewportBounds;this.position=new Ie(n.x+(e.x*n.width+e.offsetX)-(t.x*r.width-t.offsetX),n.y+(e.y*n.height+e.offsetY)-(t.y*r.height-t.offsetY))},me.zz=function(e){if(e instanceof at){this.eq=e;var t=Ie.alloc();this.fq=this.op(e.ga(Gr,t)),Ie.free(t)}else this.eq=null,this.fq=Rn};function Ud(e,t,n,r,i,o){var a=Ie.allocAt(e.pa.x,e.pa.y),d=a.x,x=a.y;if(e.eq!==null){var O=Ie.alloc();O=e.eq.ga(Gr,O),d=O.x-e.fq.x/e.scale,x=O.y-e.fq.y/e.scale,i=cr,Ie.free(O)}(o||e.scrollMode===_c)&&(i.sb()&&(n>t.width&&(d=t.x+(i.x*t.width+i.offsetX)-(i.x*n-i.offsetX)),r>t.height&&(x=t.y+(i.y*t.height+i.offsetY)-(i.y*r-i.offsetY))),i=e.rj,o=n-t.width,n<t.width+i.left+i.right?(d=Math.min(d+n/2,t.right+Math.max(o,i.right)-n/2),d=Math.max(d,t.left-Math.max(o,i.left)+n/2),d-=n/2):d>t.left?d=t.left:d<t.right-n&&(d=t.right-n),n=r-t.height,r<t.height+i.top+i.bottom?(x=Math.min(x+r/2,t.bottom+Math.max(n,i.bottom)-r/2),x=Math.max(x,t.top-Math.max(n,i.top)+r/2),x-=r/2):x>t.top?x=t.top:x<t.bottom-r&&(x=t.bottom-r)),a.x=isFinite(d)?d:-e.yb.left,a.y=isFinite(x)?x:-e.yb.top,e.positionComputation!==null&&(t=e.positionComputation(e,a),a.x=t.x,a.y=t.y),Xc(e.Yd,e.pa,a),e.pa.h(a.x,a.y),Ru(e),Ie.free(a)}me.Ol=function(e,t){if(t===void 0&&(t=!0),t){if(e=Gu(this,e,function(n){return n.part},function(n){return n.canSelect()}),e instanceof Fn)return e}else if(e=Gu(this,e,function(n){return n.part}),e instanceof Fn)return e;return null},me.ic=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null),Ms(this);for(var r=this.Wa.iteratorBackwards;r.next();){var i=r.value;if(i.visible&&(i=i.ic(e,t,n),i!==null))return i}return null};function Gu(e,t,n,r){for(n===void 0&&(n=null),r===void 0&&(r=null),Ms(e),e=e.Wa.iteratorBackwards;e.next();){var i=e.value;if(i.visible&&!i.isTemporary&&(i=i.ic(t,n,r),i!==null))return i}return null}me.lz=function(e,t,n){return t===void 0&&(t=!0),of(this,e,function(r){return r.part},t?function(r){return r instanceof Fn&&r.canSelect()}:null,n)};function of(e,t,n,r,i){for(n===void 0&&(n=null),r===void 0&&(r=null),i instanceof Gt||i instanceof Kt||(i=new Kt),Ms(e),e=e.Wa.iteratorBackwards;e.next();){var o=e.value;o.visible&&!o.isTemporary&&o.ji(t,n,r,i)}return i}me.ji=function(e,t,n,r){t===void 0&&(t=null),n===void 0&&(n=null),r instanceof Gt||r instanceof Kt||(r=new Kt),Ms(this);for(var i=this.Wa.iteratorBackwards;i.next();){var o=i.value;o.visible&&o.ji(e,t,n,r)}return r},me.ux=function(e,t,n,r){return t===void 0&&(t=!1),n===void 0&&(n=!0),Bf(this,e,function(i){return i instanceof Fn&&(!n||i.canSelect())},t,r)},me.Cf=function(e,t,n,r,i){t===void 0&&(t=null),n===void 0&&(n=null),r===void 0&&(r=!1),i instanceof Gt||i instanceof Kt||(i=new Kt),Ms(this);for(var o=this.Wa.iteratorBackwards;o.next();){var a=o.value;a.visible&&a.Cf(e,t,n,r,i)}return i},me.Nu=function(e,t,n,r,i,o){var a=new Kt;Ms(this);for(var d=this.Wa.iteratorBackwards;d.next();){var x=d.value;x.visible&&x.Nu(e,t,n,r,a,i,o)}return a};function Bf(e,t,n,r,i){var o=null;for(o===void 0&&(o=null),n===void 0&&(n=null),r===void 0&&(r=!1),i instanceof Gt||i instanceof Kt||(i=new Kt),Ms(e),e=e.Wa.iteratorBackwards;e.next();){var a=e.value;a.visible&&!a.isTemporary&&a.Cf(t,o,n,r,i)}return i}me.mz=function(e,t,n,r,i){return n===void 0&&(n=!0),r===void 0&&(r=!0),sf(this,e,t,function(o){return o instanceof Fn&&(!r||o.canSelect())},n,i)},me.og=function(e,t,n,r,i,o){n===void 0&&(n=null),r===void 0&&(r=null),i===void 0&&(i=!0),i!==!1&&i!==!0&&((i instanceof Gt||i instanceof Kt)&&(o=i),i=!0),o instanceof Gt||o instanceof Kt||(o=new Kt),Ms(this);for(var a=this.Wa.iteratorBackwards;a.next();){var d=a.value;d.visible&&d.og(e,t,n,r,i,o)}return o};function sf(e,t,n,r,i,o){var a=null;for(a===void 0&&(a=null),r===void 0&&(r=null),i===void 0&&(i=!0),i!==!1&&i!==!0&&((i instanceof Gt||i instanceof Kt)&&(o=i),i=!0),o instanceof Gt||o instanceof Kt||(o=new Kt),Ms(e),e=e.Wa.iteratorBackwards;e.next();){var d=e.value;d.visible&&!d.isTemporary&&d.og(t,n,a,r,i,o)}return o}bt.prototype.acceptEvent=function(e){return xl(this,e,e instanceof MouseEvent)};function xl(e,t,n){var r=e.Qg;return e.Qg=e.cj,e.cj=r,r.diagram=e,r.event=t,n?Ih(e,t,r):(r.viewPoint=e.Qg.viewPoint,r.documentPoint=e.Qg.documentPoint),e=0,t.ctrlKey&&(e+=1),t.altKey&&(e+=2),t.shiftKey&&(e+=4),t.metaKey&&(e+=8),r.modifiers=e,r.button=t.button,t.buttons!==void 0&&(r.buttons=t.buttons),gr&&t.button===0&&t.ctrlKey&&(r.button=2),r.down=!1,r.up=!1,r.clickCount=1,r.delta=0,r.handled=!1,r.bubbles=!1,r.timestamp=t.timeStamp,r.isMultiTouch=!1,r.targetDiagram=Hd(t,t.target),r.targetObject=null,r}function Hd(e,t){return t===null?null:(t=t.H)?t:((t=e.path)||typeof e.composedPath!="function"||(t=e.composedPath()),t&&t[0]&&t[0].H?t[0].H:null)}function zd(e,t,n,r,i,o){var a=e.Qg;return e.Qg=e.cj,e.cj=a,a.diagram=e,a.clickCount=1,e=a.delta=0,t.ctrlKey&&(e+=1),t.altKey&&(e+=2),t.shiftKey&&(e+=4),t.metaKey&&(e+=8),a.modifiers=e,a.event=t,a.timestamp=t.timeStamp,a.button=t.button,a.buttons=t.buttons,gr&&t.button===0&&t.ctrlKey&&(a.button=2),a.down=n,a.up=r,a.handled=!1,a.bubbles=i,a.isMultiTouch=o,a}function iu(e,t){return e.bubbles?!0:(t.stopPropagation!==void 0&&t.stopPropagation(),t.cancelable!==!1&&t.preventDefault(),t.cancelBubble=!0,!1)}bt.prototype.Qz=function(e){var t=this.H;if(!this.H.isEnabled)return!1;var n=xl(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.down=!0,e.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del";break;case 48:n.key="0";break;case 187:case 61:case 107:n.key="Add";break;case 189:case 173:case 109:n.key="Subtract";break;case 27:n.key="Esc"}return t.doKeyDown(),iu(n,e)},bt.prototype.Rz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=xl(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.up=!0,e.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del"}return t.doKeyUp(),iu(n,e)},bt.prototype.bz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=xl(t,e,!0);return t.mouseEnter!==null&&t.mouseEnter(n),t.currentTool.standardMouseOver(),iu(n,e)},bt.prototype.cz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=xl(t,e,!0);return t.mouseLeave!==null&&t.mouseLeave(n),iu(n,e)},bt.prototype.getMouse=function(e){var t=this.ta;if(t===null)return new Ie(0,0);var n=t.getBoundingClientRect();return t=e.clientX-this.Aa/n.width*n.left,e=e.clientY-this.ya/n.height*n.top,this.Ab!==null?yn(new Ie(t,e),this.Ab):new Ie(t,e)};function Ih(e,t,n){var r=e.ta,i=e.Aa,o=e.ya,a=0,d=0;r!==null&&(r=r.getBoundingClientRect(),a=t.clientX-i/r.width*r.left,d=t.clientY-o/r.height*r.top),n.viewPoint.h(a,d),e.Ab!==null?(t=Ie.allocAt(a,d),e.Ab.Cd(t),n.documentPoint.assign(t),Ie.free(t)):n.documentPoint.h(a,d)}function Gd(e,t,n){if(e.oj[0]!==null){t=e.oj[t];var r=e.ta;r!==null&&(r=r.getBoundingClientRect(),n.h(t.clientX-e.Aa/r.width*r.left,t.clientY-e.ya/r.height*r.top))}}bt.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function dg(e){e.ld||Ms(e),e.Va()}bt.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},me=bt.prototype,me.Pz=function(){return this.kg},me.Xy=function(e){e===void 0&&(e=null);var t=this.animationManager,n=t.isEnabled;t.Cc(),t.isEnabled=!1,wl(this),this.hf=!1,this.du=new Ie(NaN,NaN),t.isEnabled=n,this.ld=!0;var r=this;e!==null&&It(function(){r.ld=!1,rs(t,"Model"),e(r)},1)},me.$b=function(e){if(e===void 0&&(e=!1),this.kg!==!0&&!(this.vb||e===!1&&this.ld)){this.kg=!0;var t=this;pn.requestAnimationFrame(function(){t.kg&&t.bd()})}},me.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),wl(this))};function Jc(e,t,n){!e.Ee||e.vb||e.animationManager.defaultAnimation.isAnimating||Lh(e)||(t&&Ms(e),n&&Bl(e,!1))}function wl(e,t){if(!e.ld&&(e.kg=!1,e.Ka!==null||e.wo.w())){e.ld=!0;var n=e.animationManager,r=e.Xn;if(!n.isAnimating&&r.length!==0){for(var i=r.s,o=i.length,a=0;a<o;a++){var d=i[a];Vo(d,!1),d.v()}r.clear()}r=e.ow,0<r.count&&(r.each(function(x){x.Nv()}),r.clear()),i=r=!1,n.defaultAnimation.isAnimating&&(i=!0,r=e.skipsUndoManager,e.skipsUndoManager=!0),n.zb||Bd(e),Jc(e,!1,!0),e.fe!==null&&(e.fe.visible&&!e.mq&&(Iu(e),e.mq=!0),!e.fe.visible&&e.mq&&(e.mq=!1)),Ms(e),o=!1,(!e.hf||e.xh)&&(e.hf?qd(e,!e.Jk):(e.Ea("Initial Layout"),n.isEnabled===!1&&n.Cc(),qd(e,!1)),o=!0),e.Jk=!1,Ms(e),e.ou||dg(e),Jc(e,!0,!1),a=!1,o?(n=xt.alloc(),n.assign(e.viewportBounds),e.hf||(a=e.hf=!0,e.skipsUndoManager||(e.undoManager.isPendingClear=!0),e.undoManager.isPendingUnmodified=!0,Wd(e)),e.R("LayoutCompleted"),Jc(e,!0,!1),xt.free(n)):n.Ok&&n.Qw&&(e.Fg!==Js?e.scale=Nh(e,e.Fg):e.yh!==Js?e.scale=Nh(e,e.yh):(n=e.initialScale,isFinite(n)&&0<n&&(e.scale=n)),Bl(e,!0)),o&&a&&e.eb("Initial Layout"),Ms(e),t||e.gc(e.ib),i&&(e.skipsUndoManager=r),e.ld=!1}}function Wd(e){if(e.Fg!==Js)e.scale=Nh(e,e.Fg);else if(e.yh!==Js)e.scale=Nh(e,e.yh);else{var t=e.initialScale;isFinite(t)&&0<t&&(e.scale=t)}Bl(e,!0),t=e.Wa.s,e.Fd(t,t.length,e,e.viewportBounds),e.R("InitialLayoutCompleted"),e.du.assign(e.pa),Iu(e)}function Ms(e){if(e.De.count!==0&&(e.ld||!e.animationManager.isTicking)){for(var t=0;23>t;t++){var n=e.De.iterator;if(n===null||e.De.count===0)break;e.De=new Kt,e.Nv(n,e.De)}e.nodes.each(function(r){r instanceof or&&r.U&65536&&(r.U=r.U^65536)})}}me.Nv=function(e,t){for(e.reset();e.next();){var n=e.value;!n.Zc()||n instanceof or||(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))}for(e.reset();e.next();)n=e.value,n instanceof or&&n.isVisible()&&af(this,n);for(e.reset();e.next();)n=e.value,n instanceof nn&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n));for(e.reset();e.next();)n=e.value,n instanceof Xr&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))};function af(e,t){for(var n=Bn(),r=Bn(),i=t.memberParts;i.next();){var o=i.value;o.isVisible()&&(o instanceof or?(fl(o)||ca(o)||ih(o))&&af(e,o):o instanceof nn?o.fromNode===t||o.toNode===t?r.push(o):n.push(o):(o.measure(1/0,1/0),o.arrange()))}for(e=n.length,i=0;i<e;i++)o=n[i],o.measure(1/0,1/0),o.arrange();for(wn(n),t.measure(1/0,1/0),t.arrange(),e=r.length,t=0;t<e;t++)n=r[t],n.measure(1/0,1/0),n.arrange();wn(r)}me.Fd=function(e,t,n,r){if(this.vd||this.animationManager.isAnimating)for(var i=0;i<t;i++)e[i].Fd(n,r)},me.gc=function(e){if(this.Ka!==null){if(this.ta===null&&ft("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var t=this.animationManager;if(!t.zb&&(!t.isAnimating||t.isTicking)){Oh(this);var n=this.Aa,r=this.ya;if(e.Gv.resize(n,r,n,r),n=this.Wa.s,r=n.length,this.Fd(n,r,this,this.viewportBounds),this.Fc||t.isAnimating){t=this.pa;var i=this.Ca,o=Math.round(t.x*i)/i,a=Math.round(t.y*i)/i,d=this.Ab;for(d.reset(),i!==1&&d.scale(i),t.x===0&&t.y===0||d.translate(-o,-a),e.ti=null,l0(e,d.m11,d.m12,d.m21,d.m22,d.dx,d.dy),this.pb!==1&&(e.globalAlpha=this.pb),Cc(this,e),t=this.Mb,this.ta.context.setTransform(t,0,0,t,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),t=0;t<r;t++)n[t].gc(e,this);e=!1,this.Yf?Bh(this.Yf,this)&&(e=this.Vp()):e=!0,e&&(Zn.prototype.Cd=Zn.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(o=this.animationManager,!o.zb&&(!o.isAnimating||o.isTicking)&&(n=new Date,Oh(this),this.Ka.style.opacity!=="0")){if(r=e!==this.ib,t=this.Wa.s,i=t.length,this.Fd(t,i,this,this.viewportBounds),r)e.Vc(!0),this.vd=!0;else if(!this.Fc&&!o.isAnimating)break e;o=this.Ab,o.reset(),a=this.Mb,d=this.pa;var x=this.Ca,O=Math.round(d.x*x)/x,M=Math.round(d.y*x)/x;for(x!==1&&o.scale(x),d.x===0&&d.y===0||o.translate(-O,-M),e.setTransform(a,0,0,a,0,0),e.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(e.globalAlpha=this.pb),Cc(this,e),d=0;d<i;d++)e.setTransform(a,0,0,a,0,0),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),e.yc(),t[d].gc(e,this);if(t=!1,this.Yf?Bh(this.Yf,this)&&(t=this.Vp()):t=!0,t&&(Zn.prototype.Cd=Zn.prototype.Eu),r?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,t=+new Date-+n,r=Oi&&Oi.nx,n=this.zw,r||this.Yh===null){for(n[this.Tq]=t,this.Tq=(this.Tq+1)%n.length,i=t=0;i<n.length;i++)t+=n[i];this.Sq=t/n.length}if(this.pb!==1&&(e.globalAlpha=1),r)for(e.setTransform(1,0,0,1,0,0),r=0;r<n.length;r++)e.fillText(n[r].toString(),20,150+ +(20*r))}}};function jf(e,t,n,r,i,o,a,d,x,O){if(e.Ka!==null){e.ta===null&&ft("No canvas specified"),a===void 0&&(a=null),d===void 0&&(d=null),x===void 0&&(x=!1),O===void 0&&(O=!1),Oh(e),e.ib.Vc(!0),e.vd=!0,e.$i=!0;var M=e.Ca;e.Ca=i;var Y=e.Wa.s,ie=Y.length;try{var ce=new xt(o.x,o.y,r.width/i,r.height/i),ge=ce.copy();ge.Co(n),Iu(e,ge),Ms(e),e.Fd(Y,ie,e,ce),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,r.width,r.height),d!==null&&d!==""&&(t.fillStyle=d,t.ox(0,0,r.width,r.height));var Te=e.Mb;t.scale(Te,Te);var Ve=Zn.alloc();Ve.reset(),Ve.translate(n.left,n.top),Ve.scale(i),o.x===0&&o.y===0||Ve.translate(-o.x,-o.y),t.setTransform(Ve.m11,Ve.m12,Ve.m21,Ve.m22,Ve.dx,Ve.dy),t.yc(),t instanceof Za&&l0(t,Ve.m11,Ve.m12,Ve.m21,Ve.m22,Ve.dx,Ve.dy),Zn.free(Ve),Cc(e,t),t.globalAlpha=e.pb;var He=e.Qj("Grid");if(a){var Xe=new Kt,Ze=a.iterator;for(Ze.reset();Ze.next();){var qe=Ze.value;qe instanceof Fn&&(O||qe.layer!==He)&&(qe.Gj(),Xe.add(qe))}for(O=0;O<ie;O++)og(Y[O],t,e,Xe,x);Xe.each(function(yt){return yt.Gj()})}else for(Xe=0;Xe<ie;Xe++){var st=Y[Xe];st===He?O&&st.gc(t,e,!0):st.gc(t,e,x)}e.$i=!1,e.Yf&&Bh(e.Yf,e)&&e.Vp()}finally{e.Ca=M,e.ib.Vc(!0),e.vd=!0,e.Fd(Y,ie,e,e.viewportBounds),Iu(e),e.ib instanceof Za&&(e.ib.Nj.PA(),e.redraw())}}}me.Gf=function(e){return this.Rg[e]},me.Xx=function(e,t){e==="minDrawingLength"&&(this.Oq=t),this.Rg[e]=t,this.redraw()},me.Tx=function(){this.Rg=new oi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(gr||St),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Cc(e,t){e=e.Rg,e!==null&&(e.imageSmoothingEnabled!==void 0&&t.Wx(!!e.imageSmoothingEnabled),e=e.defaultFont,e!=null&&(t.font=e))}me.Ql=function(e){return this.on[e]},me.sA=function(e,t){this.on[e]=t},me.Sx=function(){this.on=new oi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},me.set=function(e){return Object.assign(this,e),this},me.Du=function(e){return this.nm(e)},me.nm=function(e){return Rh(this,e),this};function Rh(e,t){var n=e instanceof Xt,r=e instanceof bt,i;for(i in t){i===""&&ft("Setting properties requires non-empty property names");var o=e,a=i;if(n||r){var d=i.indexOf(".");if(0<d){var x=i.substring(0,d);n?o=e.fb(x):(o=e[x],o==null&&(o=e.toolManager[x])),gt(o)?a=i.substr(d+1):ft("Unable to find object named: "+x+" in "+e.toString()+" when trying to set property: "+i)}}if(a[0]!=="_"&&!pr(o,a))if(r&&a==="ModelChanged"){e.Yw(t[a]);continue}else if(r&&a==="Changed"){e.Pe(t[a]);continue}else if(r&&pr(e.toolManager,a))o=e.toolManager;else if(r&&mg(e,a)){e.Bj(a,t[a]);continue}else if(e instanceof In&&a==="Changed"){e.Pe(t[a]);continue}else ft('Trying to set undefined property "'+a+'" on object: '+o.toString());o[a]=t[i],a[0]==="_"&&o instanceof at&&o.Vw(a)}}me.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var e=this.Eh;for(this.Eh=new Et,e=e.iterator;e.next();){var t=e.key;t.Xo(e.value),t.qc()}}this.N()}},me.N=function(e){if(e===void 0)this.Fc=!0,this.$b();else{var t=this.viewportBounds;e.w()&&t.Yc(e)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},bt.prototype.invalidateViewport=function(e,t){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var n=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==cf&&this.rj.hi(0,0,0,0)&&t.width===e.width&&t.height===e.height){var r=this.scale,i=Math.max(e.y,t.y),o=Math.min(e.y+e.height,t.y+t.height);if(0<Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x))*r&&0<Math.max(0,o-i)*r){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(r=xt.alloc(),Qd(this,this.computeBounds(r)),xt.free(r)),r=this.ta,r===null||r instanceof Ou)))){var a=this.Mb;i=this.Aa*a;var d=this.ya*a,x=this.scale*a;o=Math.round(Math.round(t.x*x)-Math.round(e.x*x)),t=Math.round(Math.round(t.y*x)-Math.round(e.y*x)),x=this.jw,e=this.oy,x.width!==i&&(x.width=i),x.height!==d&&(x.height=d),e.clearRect(0,0,i,d),x=190*a;var O=70*a,M=Math.max(o,0),Y=Math.max(t,0),ie=Math.floor(i-M),ce=Math.floor(d-Y);e.drawImage(r.Oa,M,Y,ie,ce,0,0,ie,ce),Bh(this.Yf,this)&&e.clearRect(0,0,x,O),r=Bn(),e=Bn(),ce=Math.abs(o),ie=Math.abs(t);var ge=M===0?0:i-ce;M=Ie.allocAt(ge,0),ce=Ie.allocAt(ce+ge,d),e.push(new xt(Math.min(M.x,ce.x),Math.min(M.y,ce.y),Math.abs(M.x-ce.x),Math.abs(M.y-ce.y)));var Te=this.Ab;if(Te.reset(),Te.scale(a,a),this.Ca!==1&&Te.scale(this.Ca),a=this.pa,(a.x!==0||a.y!==0)&&isFinite(a.x)&&isFinite(a.y)&&Te.translate(-a.x,-a.y),yn(M,Te),yn(ce,Te),r.push(new xt(Math.min(M.x,ce.x),Math.min(M.y,ce.y),Math.abs(M.x-ce.x),Math.abs(M.y-ce.y))),ge=Y===0?0:d-ie,M.h(0,ge),ce.h(i,ie+ge),e.push(new xt(Math.min(M.x,ce.x),Math.min(M.y,ce.y),Math.abs(M.x-ce.x),Math.abs(M.y-ce.y))),yn(M,Te),yn(ce,Te),r.push(new xt(Math.min(M.x,ce.x),Math.min(M.y,ce.y),Math.abs(M.x-ce.x),Math.abs(M.y-ce.y))),Bh(this.Yf,this)&&(i=0<o?0:-o,d=0<t?0:-t,M.h(i,d),ce.h(x+i,O+d),e.push(new xt(Math.min(M.x,ce.x),Math.min(M.y,ce.y),Math.abs(M.x-ce.x),Math.abs(M.y-ce.y))),yn(M,Te),yn(ce,Te),r.push(new xt(Math.min(M.x,ce.x),Math.min(M.y,ce.y),Math.abs(M.x-ce.x),Math.abs(M.y-ce.y)))),Ie.free(M),Ie.free(ce),Jc(this,!1,!0),this.Ka===null&&ft("No div specified"),this.ta===null&&ft("No canvas specified"),!this.animationManager.zb&&(i=this.ib,this.Fc)){for(Oh(this),d=this.Mb,i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,this.Aa*d,this.ya*d),i.drawImage(this.jw.Oa,0<o?0:Math.round(-o),0<t?0:Math.round(-t)),o=this.pa,a=this.Ca,x=Math.round(o.x*a)/a,O=Math.round(o.y*a)/a,t=this.Ab,t.reset(),a!==1&&t.scale(a),o.x===0&&o.y===0||t.translate(-x,-O),i.save(),i.beginPath(),o=e.length,a=0;a<o;a++)x=e[a],x.width!==0&&x.height!==0&&i.rect(Math.floor(x.x),Math.floor(x.y),Math.ceil(x.width),Math.ceil(x.height));for(i.clip(),i.setTransform(d,0,0,d,0,0),i.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),i.yc(),t=this.Wa.s,o=t.length,this.Fd(t,o,this,this.viewportBounds),Cc(this,i),i.globalAlpha=this.pb,d=0;d<o;d++)if(a=t[d],x=r,a.visible&&a.pb!==0){O=sc(a,i),Y=a.Zq,Y.length=0,M=this.scale,ie=xt.alloc(),ce=a.Pa.s,Te=ce.length,ge=x.length;for(var Ve=0;Ve<Te;Ve++){var He=ce[Ve],Xe=Vh(He,He.actualBounds);e:{for(var Ze=2/M,qe=4/M,st=0;st<ge;st++){var yt=x[st];if(yt.width!==0&&yt.height!==0&&Xe.Vu(yt.x-Ze,yt.y-Ze,yt.width+qe,yt.height+qe)){Xe=!0;break e}}Xe=!1}Xe&&a.Oj(i,He,this,Y,M,ie,!0)}xt.free(ie),i.globalAlpha=O}i.restore(),i.Vc(!0),this.Yf&&Bh(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}wn(r),wn(e),this.ld=!1}}else this.bd();n&&(Ta(this),this.bd(),rf(this,!0))}else n?(Ta(this),this.bd(),rf(this,!0)):this.bd()}};function Oh(e){e.pn!==!1&&(e.pn=!1,Vd(e,e.Aa,e.ya))}function Vd(e,t,n){Ru(e);var r=e.Mb;e.ta.resize(t*r,n*r,t,n)&&(e.Fc=!0,e.ib.Vc(!0))}function Lh(e){var t=e.ta;if(t===null||e.wo.w())return!0;var n=e.Aa,r=e.ya,i=e.Ka,o=!1,a=e.gf?e.Db:0,d=e.Be?e.Db:0,x=i.clientWidth||n+a,O=i.clientHeight||r+d,M=e.viewportBounds;i=M.x;var Y=M.y,ie=M.width,ce=M.height;if((x!==n+a||O!==r+d)&&(e.gf=!1,e.Be=!1,d=a=0,e.Aa=x,e.ya=O,o=e.pn=!0,Ru(e)),!e.hf||!e.viewportBounds.w())return!0;var ge=e.ku,Te=e.hu;if(e.Ee=!1,!(o||e.gf||e.Be||e.mn||e.nn))return!0;var Ve=e.documentBounds,He=0,Xe=0,Ze=0,qe=0,st=M.width,yt=M.height,un=e.rj;e.contentAlignment.sb()?(Ve.width>st&&(He=un.left,Xe=un.right),Ve.height>yt&&(Ze=un.top,qe=un.bottom)):(He=un.left,Xe=un.right,Ze=un.top,qe=un.bottom);var kn=Ve.width+He+Xe,En=Ve.height+Ze+qe;un=e.scale;var tn=kn>x/un,Bt=En>O/un;if(!(o||e.gf||e.Be||tn||Bt))return!0;He=Ve.x-He,x=M.x,Xe=Ve.right+Xe,O=M.right+a,Ze=Ve.y-Ze;var ir=M.y;Ve=Ve.bottom+qe,M=M.bottom+d;var Jn="1px";if(qe="1px",e.scrollMode===_c&&(tn||Bt)&&(tn&&e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(tn=1,He+1<x&&(tn=Math.max((x-He)*un+e.Aa,tn)),Xe>O+1&&(tn=Math.max((Xe-O)*un+e.Aa,tn)),st+a+1<kn&&(tn=Math.max((kn-st)*un+e.Aa,tn)),Jn=tn.toString()+"px"),Bt&&e.hasVerticalScrollbar&&e.allowVerticalScroll&&(tn=1,Ze+1<ir&&(tn=Math.max((ir-Ze)*un+e.ya,tn)),Ve>M+1&&(tn=Math.max((Ve-M)*un+e.ya,tn)),yt+d+1<En&&(tn=Math.max((En-yt)*un+e.ya,tn)),qe=tn.toString()+"px")),tn=Jn!=="1px",Bt=qe!=="1px",tn&&Bt||!tn&&!Bt||(Bt&&(O-=e.Db),tn&&(M-=e.Db),kn<st+a||!e.hasHorizontalScrollbar||!e.allowHorizontalScroll||(a=1,He+1<x&&(a=Math.max((x-He)*un+e.Aa,a)),Xe>O+1&&(a=Math.max((Xe-O)*un+e.Aa,a)),st+1<kn&&(a=Math.max((kn-st)*un+e.Aa,a)),Jn=a.toString()+"px"),tn=Jn!=="1px",a=e.ya,tn!==e.Be&&(a=tn?e.ya-e.Db:e.ya+e.Db),En<yt+d||!e.hasVerticalScrollbar||!e.allowVerticalScroll||(d=1,Ze+1<ir&&(d=Math.max((ir-Ze)*un+a,d)),Ve>M+1&&(d=Math.max((Ve-M)*un+a,d)),yt+1<En&&(d=Math.max((En-yt)*un+a,d)),qe=d.toString()+"px"),Bt=qe!=="1px"),e.qr&&tn===e.Be&&Bt===e.gf)return n===e.Aa&&r===e.ya||e.bd(),!1;if(tn!==e.Be&&(Jn==="1px"?e.ya=e.ya+e.Db:e.ya=Math.max(e.ya-e.Db,1),o=!0),e.Be=tn,Te.style.width=Jn,Bt!==e.gf&&(qe==="1px"?e.Aa=e.Aa+e.Db:e.Aa=Math.max(e.Aa-e.Db,1),o=!0,e.tn&&(d=Ie.alloc(),Bt?(t.style.left=e.Db+"px",e.position=d.h(e.pa.x+e.Db/e.scale,e.pa.y)):(t.style.left="0px",e.position=d.h(e.pa.x-e.Db/e.scale,e.pa.y)),Ie.free(d))),o&&Ru(e),e.gf=Bt,Te.style.height=qe,e.gu=!0,o&&(e.pn=!0),t=ge.scrollLeft,e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(st+1<kn?t=(e.position.x-He)*un:He+1<x?t=ge.scrollWidth-ge.clientWidth:Xe>O+1&&(t=e.position.x*un)),e.tn)switch(e.bu){case"negative":t=-(ge.scrollWidth-t-ge.clientWidth);break;case"reverse":t=ge.scrollWidth-t-ge.clientWidth}return ge.scrollLeft=t,e.hasVerticalScrollbar&&e.allowVerticalScroll&&(yt+1<En?ge.scrollTop=(e.position.y-Ze)*un:Ze+1<ir?ge.scrollTop=ge.scrollHeight-ge.clientHeight:Ve>M+1&&(ge.scrollTop=e.position.y*un)),x=e.Aa,O=e.ya,ge.style.width=x+(e.gf?e.Db:0)+"px",ge.style.height=O+(e.Be?e.Db:0)+"px",n!==x||r!==O||e.animationManager.zb?(n=xt.allocAt(i,Y,ie,ce),e.onViewportBoundsChanged(n,e.viewportBounds,un,o),xt.free(n),!1):!0}me=bt.prototype,me.add=function(e){var t=e.diagram;if(t!==this&&(t!==null&&ft("Cannot add part "+e.toString()+" to "+this.toString()+". It is already a part of "+t.toString()),t=this.Qj(e.layerName),t===null&&(t=this.Qj("")),t===null&&ft('Cannot add a Part when unable find a Layer named "'+e.layerName+'" and there is no default Layer'),e.layer!==t)){var n=t.oi(99999999,e,e.diagram===this);0<=n&&this.cb(uo,"parts",t,null,e,null,n),t.isTemporary||this.Ya(),e.C(1),n=e.layerChanged,n!==null&&n(e,null,t)}},me.oi=function(e){this.partManager.oi(e);var t=this;zh(e,function(n){Mh(t,n)}),(e instanceof Xr||e instanceof or&&e.placeholder!==null)&&e.v(),e.data!==null&&zh(e,function(n){by(t.partManager,n)}),ca(e)!==!0&&ih(e)!==!0||this.De.add(e),J0(e,!0,this),q0(e)?(e.actualBounds.w()&&this.N(Vh(e,e.actualBounds)),this.Ya()):e.isVisible()&&e.actualBounds.w()&&this.N(Vh(e,e.actualBounds)),this.$b()},me.pc=function(e){e.Ej(),this.partManager.pc(e);var t=this;e.data!==null&&zh(e,function(n){Sy(t.partManager,n,t)}),this.De.remove(e),q0(e)?(e.actualBounds.w()&&this.N(Vh(e,e.actualBounds)),this.Ya()):e.isVisible()&&e.actualBounds.w()&&this.N(Vh(e,e.actualBounds)),this.$b()},me.remove=function(e){Kd(this,e,!0)};function Kd(e,t,n){var r=t.layer;r!==null&&r.diagram===e&&(t.isSelected=!1,t.isHighlighted=!1,t.C(2),n&&t.Lj(),n=r.pc(-1,t,!1),0<=n&&e.cb(po,"parts",r,t,null,n,null),e=t.layerChanged,e!==null&&e(t,r,null))}me.Is=function(e,t){if(t===void 0&&(t=!1),gn(e))for(var n=e.length,r=0;r<n;r++){var i=e[r];t&&!i.canDelete()||this.remove(i)}else for(n=new Kt,n.addAll(e),e=n.iterator;e.next();)n=e.value,t&&!n.canDelete()||this.remove(n)},me.Kj=function(e,t,n){return n===void 0&&(n=!1),this.partManager.Kj(e,t,n)},bt.prototype.moveParts=function(e,t,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=Uf(this)),this.toolManager!==null){var i=new Et;if(e!==null)if(gn(e))for(var o=0;o<e.length;o++)Wu(this,i,e[o],n,r);else for(e=e.iterator;e.next();)Wu(this,i,e.value,n,r);else{for(e=this.parts;e.next();)Wu(this,i,e.value,n,r);for(e=this.nodes;e.next();)Wu(this,i,e.value,n,r);for(e=this.links;e.next();)Wu(this,i,e.value,n,r)}Qc(this,i,t,r,n)}};function Wu(e,t,n,r,i,o){if(!t.contains(n)&&(o===void 0&&(o=!1),!r||o||n.canMove()||n.canCopy()))if(i===void 0&&(i=Uf(e)),n instanceof hn){if(t.add(n,e.Pd(i,n,n.location)),n instanceof or&&(n.placeholder!==null||i.dragsMembers))for(o=n.memberParts;o.next();)Wu(e,t,o.value,r,i,i.groupsAlwaysMove);for(o=n.linksConnected;o.next();){var a=o.value;if(!t.contains(a)){var d=a.fromNode,x=a.toNode;d!==null&&t.contains(d)&&x!==null&&t.contains(x)&&Wu(e,t,a,r,i)}}if(i.dragsTree)for(n=n.Ou();n.next();)Wu(e,t,n.value,r,i)}else if(n instanceof nn)for(t.add(n,e.Pd(i,n)),n=n.labelNodes;n.next();)Wu(e,t,n.value,r,i);else n instanceof Xr||t.add(n,e.Pd(i,n,n.location))}function Qc(e,t,n,r,i){if(t!==null&&t.count!==0){var o=Ie.alloc(),a=Ie.alloc();a.assign(n),isNaN(a.x)&&(a.x=0),isNaN(a.y)&&(a.y=0),(n=e.Mr)||zf(e,t);for(var d=Bn(),x=Bn(),O=t.iterator,M=Ie.alloc();O.next();){var Y=O.key,ie=O.value;if(Y.Zc()){var ce=Yd(e,Y,t);ce!==null?d.push(new l(Y,ie,ce)):(!i||Y.canMove())&&(ce=ie.point,o.assign(ce),e.computeMove(Y,o.add(a),r,M),Y.location=M,ie.shifted===void 0&&(ie.shifted=new Ie),ie.shifted.assign(M.re(ce)))}else O.key instanceof nn&&x.push(O.sa)}for(Ie.free(M),i=d.length,O=0;O<i;O++)Y=d[O],o.assign(Y.info.point),Y.Su.shifted===void 0&&(Y.Su.shifted=new Ie),Y.node.location=o.add(Y.Su.shifted);for(i=Ie.alloc(),O=Ie.alloc(),Y=x.length,ie=0;ie<Y;ie++){var ge=x[ie];if(ce=ge.key,ce instanceof nn)if(ce.suspendsRouting){ce.Tg=null,M=ce.fromNode;var Te=ce.toNode;if(e.draggedLink!==null&&r.dragsLink)if(Te=ge.value.point,ce.dragComputation===null)t.add(ce,e.Pd(r,ce,a)),Mc(ce,a.x-Te.x,a.y-Te.y);else{ge=Ie.allocAt(0,0),(M=ce.i(0))&&M.w()&&ge.assign(M);var Ve=M=Ie.alloc().assign(ge).add(a);r.isGridSnapEnabled&&(r.isGridSnapRealtime||e.lastInput.up)&&(Ve=Ie.alloc(),Hf(e,ce,M,Ve,r)),M.assign(ce.dragComputation(ce,M,Ve)).re(ge),t.add(ce,e.Pd(r,ce,M)),Mc(ce,M.x-Te.x,M.y-Te.y),Ie.free(ge),Ie.free(M),Ve!==M&&Ie.free(Ve)}else M!==null&&(i.assign(M.location),Ve=t.I(M),Ve!==null&&i.re(Ve.point)),Te!==null&&(O.assign(Te.location),Ve=t.I(Te),Ve!==null&&O.re(Ve.point)),M!==null&&Te!==null?i.Xa(O)?(M=ge.value.point,Te=o,Te.assign(i),Te.re(M),t.add(ce,e.Pd(r,ce,i)),Mc(ce,Te.x,Te.y)):(ce.suspendsRouting=!1,ce.bb()):(ge=ge.value.point,M=M!==null?i:Te!==null?O:a,t.add(ce,e.Pd(r,ce,M)),Mc(ce,M.x-ge.x,M.y-ge.y))}else(ce.fromNode===null||ce.toNode===null)&&(M=ge.value.point,t.add(ce,e.Pd(r,ce,a)),Mc(ce,a.x-M.x,a.y-M.y))}Ie.free(o),Ie.free(a),Ie.free(i),Ie.free(O),wn(d),wn(x),n||(Ms(e),qc(e,t))}}bt.prototype.computeMove=function(e,t,n,r){if(r===void 0&&(r=new Ie),r.assign(t),e===null)return r;var i=t,o=n.isGridSnapEnabled;o&&(n.isGridSnapRealtime||this.lastInput.up)&&(i=Ie.alloc(),Hf(this,e,t,i,n)),n=e.dragComputation!==null?e.dragComputation(e,t,i):i;var a=e.minLocation,d=a.x;isNaN(d)&&(d=o?Math.round(1e3*e.location.x)/1e3:e.location.x),a=a.y,isNaN(a)&&(a=o?Math.round(1e3*e.location.y)/1e3:e.location.y);var x=e.maxLocation,O=x.x;return isNaN(O)&&(O=o?Math.round(1e3*e.location.x)/1e3:e.location.x),x=x.y,isNaN(x)&&(x=o?Math.round(1e3*e.location.y)/1e3:e.location.y),r.h(Math.max(d,Math.min(n.x,O)),Math.max(a,Math.min(n.y,x))),i!==t&&Ie.free(i),r};function Uf(e){var t=e.toolManager.findTool("Dragging");return t!==null?t.dragOptions:e.Wm}function Hf(e,t,n,r,i){if(i===void 0&&(i=Uf(e)),r.assign(n),t!==null){var o=e.grid;t=i.gridSnapCellSize,e=t.width,t=t.height;var a=i.gridSnapOrigin,d=a.x;if(a=a.y,i=i.gridSnapCellSpot,o!==null){var x=o.gridCellSize;isNaN(e)&&(e=x.width),isNaN(t)&&(t=x.height),o=o.gridOrigin,isNaN(d)&&(d=o.x),isNaN(a)&&(a=o.y)}o=Ie.allocAt(0,0),o.yi(0,0,e,t,i),ht.No(n.x,n.y,d+o.x,a+o.y,e,t,r),Ie.free(o)}}function zf(e,t){if(t!==null)for(e.Mr=!0,e=t.iterator;e.next();)t=e.key,t instanceof nn&&(t.suspendsRouting=!0)}function qc(e,t){if(t!==null){for(t=t.iterator;t.next();){var n=t.key;n instanceof nn&&(n.suspendsRouting=!1,oy(n)&&n.bb())}e.Mr=!1}}function Yd(e,t,n){return t=t.containingGroup,t!==null&&(e=Yd(e,t,n),e!==null||(e=n.I(t),e!==null))?e:null}me=bt.prototype,me.Pd=function(e,t,n){if(n===void 0)return new ac(cn);var r=e.isGridSnapEnabled;return e.groupsSnapMembers||t.containingGroup===null||(r=!1),r?new ac(new Ie(Math.round(1e3*n.x)/1e3,Math.round(1e3*n.y)/1e3)):new ac(n.copy())};function $d(e,t,n){if(t.diagram!==null&&t.diagram!==e&&ft("Cannot share a Layer with another Diagram: "+t+" of "+t.diagram),n===null?t.diagram!==null&&ft("Cannot add an existing Layer to this Diagram again: "+t):(n.diagram!==e&&ft("Existing Layer must be in this Diagram: "+n+" not in "+n.diagram),t===n&&ft("Cannot move a Layer before or after itself: "+t)),t.diagram!==e){t=t.name,e=e.Wa,n=e.count;for(var r=0;r<n;r++)e.M(r).name===t&&ft("Cannot add Layer with the name '"+t+"'; a Layer with the same name is already present in this Diagram.")}}me.Al=function(e){$d(this,e,null),e.Xe(this);var t=this.Wa,n=t.count-1;if(!e.isTemporary)for(;0<=n&&t.M(n).isTemporary;)n--;return t.Gb(n+1,e),this.cc!==null&&this.cb(uo,"layers",this,null,e,null,n+1),this.N(),this.Ya(),this},me.Ww=function(e,t){$d(this,e,t),e.Xe(this);var n=this.Wa,r=n.indexOf(e);0<=r&&(n.remove(e),this.cc!==null&&this.cb(po,"layers",this,e,null,r,null));var i=n.count,o;for(o=0;o<i;o++)if(n.M(o)===t){n.Gb(o,e);break}return this.cc!==null&&this.cb(uo,"layers",this,null,e,null,o),this.N(),0>r&&this.Ya(),this},me.Cy=function(e,t){$d(this,e,t),e.Xe(this);var n=this.Wa,r=n.indexOf(e);0<=r&&(n.remove(e),this.cc!==null&&this.cb(po,"layers",this,e,null,r,null));var i=n.count,o;for(o=0;o<i;o++)if(n.M(o)===t){n.Gb(o+1,e);break}return this.cc!==null&&this.cb(uo,"layers",this,null,e,null,o+1),this.N(),0>r&&this.Ya(),this},me.kA=function(e){if(e.diagram!==this&&ft("Cannot remove a Layer from another Diagram: "+e+" of "+e.diagram),e.name!==""){var t=this.Wa,n=t.indexOf(e);if(t.remove(e)){for(t=e.Pa.copy().iterator;t.next();){var r=t.value,i=r.layerName;i!==e.name?r.layerName=i:r.layerName=""}this.cc!==null&&this.cb(po,"layers",this,e,null,n,null),this.N(),this.Ya()}}},me.Qj=function(e){for(var t=this.layers;t.next();){var n=t.value;if(n.name===e)return n}return null},me.Yw=function(e){return this.pf===null&&(this.pf=new Gt),this.pf.add(e),this.model.Pe(e),this},me.mA=function(e){this.pf!==null&&(this.pf.remove(e),this.pf.count===0&&(this.pf=null)),this.model.ik(e)},me.Pe=function(e){return this.zg===null&&(this.zg=new Gt),this.zg.add(e),this},me.ik=function(e){this.zg!==null&&(this.zg.remove(e),this.zg.count===0&&(this.zg=null))},me.ds=function(e){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(e),e.change!==gs&&(this.isModified=!0),this.zg!==null)for(var t=this.zg,n=t.length,r=0;r<n;r++)t.M(r)(e)},me.cb=function(e,t,n,r,i,o,a){o===void 0&&(o=null),a===void 0&&(a=null);var d=new Xi;d.diagram=this,d.change=e,d.propertyName=t,d.object=n,d.oldValue=r,d.oldParam=o,d.newValue=i,d.newParam=a,this.ds(d)},me.g=function(e,t,n,r,i){this.cb(ji,e,this,t,n,r,i)},bt.prototype.changeState=function(e,t){if(e!==null&&e.diagram===this){var n=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var r=e.change;if(r===ji){var i=e.object;if(io(i,e.propertyName,e.I(t)),i instanceof at){var o=i.part;o!==null&&o.Wb()}this.isModified=!0}else if(r===uo){var a=e.object,d=e.newParam,x=e.newValue;if(a instanceof Xt)if(typeof d=="number"&&x instanceof at){t?a.pc(d):a.Gb(d,x);var O=a.part;O!==null&&O.Wb()}else typeof d=="number"&&x instanceof Ko&&(x.isRow?C0(a,d,t?void 0:x):T0(a,d,t?void 0:x));else if(a instanceof vs){var M=e.oldParam===!0;typeof d=="number"&&x instanceof Fn&&(t?(x.isSelected=!1,x.isHighlighted=!1,x.Wb(),a.pc(M?d:-1,x,M)):a.oi(d,x,M))}else a instanceof bt?typeof d=="number"&&x instanceof vs&&(t?this.Wa.mb(d):(x.Xe(this),this.Wa.Gb(d,x))):ft("unknown ChangedEvent.Insert object: "+e.toString());this.isModified=!0}else if(r===po){var Y=e.object,ie=e.oldParam,ce=e.oldValue;if(Y instanceof Xt)typeof ie=="number"&&ce instanceof at?t?Y.Gb(ie,ce):Y.pc(ie):typeof ie=="number"&&ce instanceof Ko&&(ce.isRow?C0(Y,ie,t?ce:void 0):T0(Y,ie,t?ce:void 0));else if(Y instanceof vs){var ge=e.newParam===!0;typeof ie=="number"&&ce instanceof Fn&&(t?0>Y.Pa.indexOf(ce)&&Y.oi(ie,ce,ge):(ce.isSelected=!1,ce.isHighlighted=!1,ce.Wb(),Y.pc(ge?ie:-1,ce,ge)))}else Y instanceof bt?typeof ie=="number"&&ce instanceof vs&&(t?(ce.Xe(this),this.Wa.Gb(ie,ce)):this.Wa.mb(ie)):ft("unknown ChangedEvent.Remove object: "+e.toString());this.isModified=!0}else r!==gs&&ft("unknown ChangedEvent: "+e.toString())}finally{this.skipsModelSourceBindings=n}}},bt.prototype.Ea=function(e){return this.undoManager.Ea(e)},bt.prototype.eb=function(e){return this.undoManager.eb(e)},bt.prototype.Kf=function(){return this.undoManager.Kf()},bt.prototype.commit=function(e,t){t===void 0&&(t="");var n=this.skipsUndoManager;t===null&&(this.skipsUndoManager=!0,t=""),this.undoManager.Ea(t);var r=!1;try{e(this),r=!0}finally{r?this.undoManager.eb(t):this.undoManager.Kf(),this.skipsUndoManager=n}},bt.prototype.updateAllTargetBindings=function(e){this.partManager.updateAllTargetBindings(e)},bt.prototype.rp=function(){this.partManager.rp()};function Xd(e,t,n){var r=e.animationManager;if(e.vb||e.ld)e.Ca=n,Ru(e),e.N(),e.Ee=!0,r.zb&&(zs(r)||r.ce.add(r.H,"scale",t,e.Ca));else if(e.ta===null)e.Ca=n,Ru(e);else{e.vb=!0;var i=e.viewportBounds.copy(),o=e.Aa,a=e.ya,d=e.zoomPoint.x,x=e.zoomPoint.y,O=e.contentAlignment;isNaN(d)&&(O.$c()?O.Hf(Is)?d=0:O.Hf(Bi)&&(d=o-1):d=O.sb()?O.x*(o-1):o/2),isNaN(x)&&(O.$c()?O.Hf(lo)?x=0:O.Hf(cs)&&(x=a-1):x=O.sb()?O.y*(a-1):a/2),e.scaleComputation===null||e.animationManager.defaultAnimation.isAnimating||(n=e.scaleComputation(e,n)),n<e.minScale&&(n=e.minScale),n>e.maxScale&&(n=e.maxScale),o=Ie.allocAt(e.pa.x+d/t-d/n,e.pa.y+x/t-x/n),e.position=o,Ie.free(o),e.Ca=n,Ru(e),e.vb=!1,e.onViewportBoundsChanged(i,e.viewportBounds,t,!1),Bl(e,!1),r.zb&&(zs(r)||r.ce.add(r.H,"scale",t,e.Ca))}}bt.prototype.onViewportBoundsChanged=function(e,t,n,r){if(!e.D(t)){r===void 0&&(r=!1),r||(this.Ee=!0),this.vd=!0;var i=this.layout;i===null||!i.isViewportSized||this.autoScale!==Js||e.width===t.width&&e.height===t.height||i.C(),i=this.currentTool,this.Vk===!0&&i instanceof Fi&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),ju(i,this)),this.vb||this.invalidateViewport(e,t),Iu(this),this.fc.scale=n,this.fc.position.x=e.x,this.fc.position.y=e.y,this.fc.bounds.assign(e),this.fc.canvasSize.width=Math.round(e.width*n),this.fc.canvasSize.height=Math.round(e.height*n),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=r,this.R("ViewportBoundsChanged",this.fc,e),this.isVirtualized&&this.links.each(function(o){o.isAvoiding&&o.actualBounds.Yc(t)&&o.bb()})}};function Iu(e,t){var n=e.fe;if(n!==null&&n.visible){for(var r=mn.alloc(),i=1,o=1,a=n.O.s,d=a.length,x=0;x<d;x++){var O=a[x],M=Math.abs(O.interval);2>M||(Av(O.figure)?o=o*M/ht.vx(o,M):i=i*M/ht.vx(i,M))}if(a=n.gridCellSize,r.h(o*a.width,i*a.height),t!==void 0)i=t.width,o=t.height,e=t.x,a=t.y;else{if(t=xt.alloc(),e=e.viewportBounds,t.h(e.x,e.y,e.width,e.height),!t.w()){xt.free(t);return}i=t.width,o=t.height,e=t.x,a=t.y,xt.free(t)}n.width=i+2*r.width,n.height=o+2*r.height,t=Ie.alloc(),ht.No(e,a,0,0,r.width,r.height,t),t.offset(-r.width,-r.height),mn.free(r),n.part.location=t,Ie.free(t)}}bt.prototype.clearSelection=function(e){e===void 0&&(e=!1);var t=this.selection;if(t.count!==0){e||this.R("ChangingSelection",t);for(var n=t.Fa(),r=n.length,i=0;i<r;i++)n[i].isSelected=!1;t.ka(),t.clear(),t.freeze(),e||this.R("ChangedSelection",t)}},bt.prototype.select=function(e){e!==null&&e.diagram===this&&(!e.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),e.isSelected=!0,this.R("ChangedSelection",this.selection))},bt.prototype.rA=function(e){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),gn(e))for(var t=e.length,n=0;n<t;n++){var r=e[n];r instanceof Fn||ft("Diagram.selectCollection given something that is not a Part: "+r),r.isSelected=!0}else for(e=e.iterator;e.next();)t=e.value,t instanceof Fn||ft("Diagram.selectCollection given something that is not a Part: "+t),t.isSelected=!0;this.R("ChangedSelection",this.selection)},bt.prototype.clearHighlighteds=function(){var e=this.highlighteds;if(0<e.count){for(var t=e.Fa(),n=t.length,r=0;r<n;r++)t[r].isHighlighted=!1;e.ka(),e.clear(),e.freeze()}},me=bt.prototype,me.Iz=function(e){e!==null&&e.diagram===this&&(!e.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),e.isHighlighted=!0)},me.Jz=function(e){e=new Kt().addAll(e);for(var t=this.highlighteds.copy().hp(e).iterator;t.next();)t.value.isHighlighted=!1;for(e=e.iterator;e.next();)t=e.value,t instanceof Fn||ft("Diagram.highlightCollection given something that is not a Part: "+t),t.isHighlighted=!0},me.scroll=function(e,t,n){n===void 0&&(n=1);var r=t==="up"||t==="down",i=0,o=Ie.alloc();if(e==="pixel")i=n;else if(e==="line")i=n*(r?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(e==="page")e=r?this.viewportBounds.height:this.viewportBounds.width,e*=this.scale,e!==0&&(i=n*Math.max(e-(r?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(e==="document"){i=this.documentBounds,n=this.viewportBounds,t==="up"?this.position=o.h(n.x,i.y):t==="left"?this.position=o.h(i.x,n.y):t==="down"?this.position=o.h(n.x,i.bottom-n.height):t==="right"&&(this.position=o.h(i.right-n.width,n.y)),Ie.free(o);return}ft("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+e)}i/=this.scale,n=this.position,t==="up"?this.position=o.h(n.x,n.y-i):t==="down"?this.position=o.h(n.x,n.y+i):t==="left"?this.position=o.h(n.x-i,n.y):t==="right"?this.position=o.h(n.x+i,n.y):ft("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+t),Ie.free(o)},me.tv=function(e){var t=this.viewportBounds;t.Re(e)||(e=e.center,e.x-=t.width/2,e.y-=t.height/2,this.position=e)},me.es=function(e){var t=this.viewportBounds;e=e.center,e.x-=t.width/2,e.y-=t.height/2,this.position=e},me.op=function(e){var t=this.Ab;t.reset(),this.Ca!==1&&t.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&t.translate(-n.x,-n.y),e.copy().transform(this.Ab)},me.zA=function(e){var t=this.Ab,n=e.x,r=e.y,i=n+e.width,o=r+e.height,a=t.m11,d=t.m12,x=t.m21,O=t.m22,M=t.dx,Y=t.dy,ie=n*a+r*x+M;t=n*d+r*O+Y;var ce=i*a+r*x+M;return e=i*d+r*O+Y,r=n*a+o*x+M,n=n*d+o*O+Y,a=i*a+o*x+M,i=i*d+o*O+Y,o=Math.min(ie,ce),ie=Math.max(ie,ce),ce=Math.min(t,e),t=Math.max(t,e),o=Math.min(o,r),ie=Math.max(ie,r),ce=Math.min(ce,n),t=Math.max(t,n),o=Math.min(o,a),ie=Math.max(ie,a),ce=Math.min(ce,i),t=Math.max(t,i),new xt(o,ce,ie-o,t-ce)},me.Ps=function(e){var t=this.Ab;t.reset(),this.Ca!==1&&t.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&t.translate(-n.x,-n.y),yn(e.copy(),this.Ab)};function pg(e){var t=e.isModified;e.Tw!==t&&(e.Tw=t,e.R("Modified"))}function Zd(e){return e=$f.get(e),e!==null?new e:new gi}bt.prototype.doModelChanged=function(e){var t=this;if(e.model===this.model){var n=e.change,r=e.propertyName;if(n===gs&&r[0]==="S")if(r==="StartingFirstTransaction"){var i=this;e=this.toolManager,e.mouseDownTools.each(function(x){return x.diagram=i}),e.mouseMoveTools.each(function(x){return x.diagram=i}),e.mouseUpTools.each(function(x){return x.diagram=i}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else r==="StartingUndo"||r==="StartingRedo"?(e=this.animationManager,e.defaultAnimation.isAnimating&&!this.skipsUndoManager&&e.Cc(),this.R("ChangingSelection",this.selection)):r==="StartedTransaction"&&(e=this.animationManager,e.defaultAnimation.isAnimating&&!this.skipsUndoManager&&e.Cc());else if(this.aa){this.aa=!1;try{if(e.modelChange===""&&n===gs){(r==="FinishedUndo"||r==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ms(this));var o=this.animationManager;r==="RolledBackTransaction"&&o.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||$a(o),r==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),r!=="CommittedTransaction"&&r!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){t.isModified=!1},1);var a=e.isTransactionFinished;if(a&&(pg(this),this.As.clear(),Ec(this.animationManager)),!this.Rt&&a&&this.lastInput.targetDiagram){this.Rt=!0;var d=this;It(function(){d.currentTool.standardMouseOver(),d.Rt=!1},10)}}}finally{this.aa=!0}}}};function Mh(e,t){t=t.O.s;for(var n=t.length,r=0;r<n;r++)eh(e,t[r])}function eh(e,t){if(t instanceof Na){var n=t.element;if(n!==null&&n instanceof HTMLImageElement){n.Bg instanceof Kt&&n.Bg.add(e);var r=t.Eg;if(r!==null&&r.sq===!0&&t.diagram!==null&&t.diagram.Xn.add(t),n.hn)if(n=n.getAttribute("src")||"",r=e.Og.I(n),r===null)r=[],r.push(t),e.Og.add(n,r);else{for(e=0;e<r.length;e++)if(r[e]===t)return;r.push(t)}}}}function Jd(e,t){if(t instanceof Na){var n=t.element;if(n!==null&&n instanceof HTMLImageElement&&n.hn){var r=n.getAttribute("src")||"",i=e.Og.I(r);if(i!==null){for(var o=0;o<i.length;o++)if(i[o]===t){i.splice(o,1),i.length===0&&(e.Og.remove(r),n.Fq&&n.removeEventListener("load",n.Fq),n.Yp&&n.removeEventListener("error",n.Yp),delete n.Fq,delete n.Yp,n.Bg instanceof Kt&&n.Bg.remove(e),ad(r));break}}}}}bt.prototype.Wd=function(){this.partManager.Wd()},bt.prototype.Aj=function(e,t){this.Yd.Aj(e,t)},bt.prototype.Cj=function(e,t){this.Yd.Cj(e,t)},bt.prototype.findPartForKey=function(e){return this.partManager.findPartForKey(e)},bt.prototype.Vb=function(e){return this.partManager.Vb(e)},bt.prototype.findLinkForKey=function(e){return this.partManager.findLinkForKey(e)},me=bt.prototype,me.Lc=function(e){return this.partManager.Lc(e)},me.ii=function(e){return this.partManager.ii(e)},me.Kc=function(e){return this.partManager.Kc(e)},me.ms=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.partManager.ms.apply(this.partManager,t instanceof Array?t:qn(Cn(t)))},me.ls=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.partManager.ls.apply(this.partManager,t instanceof Array?t:qn(Cn(t)))};function Ru(e){var t=e.pa,n=e.Ca;e.Rw.h(t.x,t.y,Math.max(e.Aa,0)/n,Math.max(e.ya,0)/n),e.vd=!0}function Qd(e,t){e.Zi=!1;var n=e.Sp;n.D(t)||(n=n.copy(),e.Sp.assign(t),Bl(e,!1),e.R("DocumentBoundsChanged",void 0,n),e.Ee=!0,e.N())}me.Va=function(){if(this.Zi){var e=xt.alloc();Qd(this,this.computeBounds(e)),xt.free(e)}},me.rz=function(){for(var e=new Kt,t=this.nodes;t.next();){var n=t.value;n.isTopLevel&&e.add(n)}for(t=this.links;t.next();)n=t.value,n.isTopLevel&&e.add(n);return e.iterator},me.qz=function(){return this.ai.iterator},me.Uz=function(e){Ms(this),e&&Gf(this,!0),this.ld?qd(this,!1):(this.Jk=!0,wl(this))};function Gf(e,t){for(var n=e.ai.iterator;n.next();)gg(e,n.value,t);e.layout&&(t?e.layout.isValidLayout=!1:e.layout.C())}function gg(e,t,n){if(t!==null){for(var r=t.gl.iterator;r.next();)gg(e,r.value,n);t.layout!==null&&(n?t.layout.isValidLayout=!1:t.layout.C())}}function qd(e,t){if(e.xh&&!e.lt){var n=e.aa;e.aa=!0;var r=e.undoManager.transactionLevel,i=e.layout,o=e.animationManager;try{r===0&&(e.undoManager.isInternalTransaction=!0,e.Ea("Layout")),1>=r&&!o.defaultAnimation.isAnimating&&!o.zb&&(t||rs(o,"Layout")),e.xh=!1;for(var a=e.ai.iterator;a.next();)ep(e,a.value,t,r);i.isValidLayout||(!t||i.isRealtime||i.isRealtime===null||r===0?(i.doLayout(e),Ms(e),i.isValidLayout=!0):e.xh=!0)}finally{t=e.undoManager.isInternalTransaction,r===0&&(e.eb("Layout"),e.undoManager.isInternalTransaction=!1),!t||r!==0&&r!==1||$a(o),e.aa=n}}}function ep(e,t,n,r){if(t!==null){for(var i=t.gl.iterator;i.next();)ep(e,i.value,n,r);i=t.layout,i===null||i.isValidLayout||(!n||i.isRealtime||r===0?(t.rh=!t.location.w(),i.doLayout(t),t.C(32),af(e,t),i.isValidLayout=!0):e.xh=!0)}}me.yz=function(){for(var e=new Gt,t=this.nodes;t.next();){var n=t.value;n.isTopLevel&&n.kh()===null&&e.add(n)}return e.iterator};function dv(e){function t(i){var o=i.toLowerCase(),a=new Gt;n.add(i,a),n.add(o,a),r.add(i,i),r.add(o,i)}var n=new Et,r=new Et;t("InitialAnimationStarting"),t("AnimationStarting"),t("AnimationFinished"),t("BackgroundSingleClicked"),t("BackgroundDoubleClicked"),t("BackgroundContextClicked"),t("ClipboardChanged"),t("ClipboardPasted"),t("DocumentBoundsChanged"),t("ExternalObjectsDropped"),t("GainedFocus"),t("InitialLayoutCompleted"),t("LayoutCompleted"),t("LinkDrawn"),t("LinkRelinked"),t("LinkReshaped"),t("LostFocus"),t("Modified"),t("ObjectSingleClicked"),t("ObjectDoubleClicked"),t("ObjectContextClicked"),t("PartCreated"),t("PartResized"),t("PartRotated"),t("SelectionMoved"),t("SelectionCopied"),t("SelectionDeleting"),t("SelectionDeleted"),t("SelectionGrouped"),t("SelectionUngrouped"),t("ChangingSelection"),t("ChangedSelection"),t("SubGraphCollapsed"),t("SubGraphExpanded"),t("TextEdited"),t("TreeCollapsed"),t("TreeExpanded"),t("ViewportBoundsChanged"),t("InvalidateDraw"),e.iw=n,e.hw=r}function mg(e,t){var n=e.hw.I(t);return n!==null?n:e.hw.I(t.toLowerCase())}function Wf(e,t){var n=e.iw.I(t);if(n!==null||(n=e.iw.I(t.toLowerCase()),n!==null))return n;ft("Unknown DiagramEvent name: "+t)}me.Bj=function(e,t){return e=Wf(this,e),e!==null&&e.add(t),this},me.am=function(e,t){e=Wf(this,e),e!==null&&e.remove(t)},me.R=function(e,t,n){var r=Wf(this,e),i=new yl;if(i.diagram=this,e=mg(this,e),e!==null&&(i.name=e),t!==void 0&&(i.subject=t),n!==void 0&&(i.parameter=n),t=r.length,t===1)r.M(0)(i);else if(t!==0)for(r=r.Fa(),n=0;n<t;n++)(0,r[n])(i)};function Vf(e){if(e.animationManager.isTicking)return!1;var t=e.currentTool;return t===e.toolManager.findTool("Dragging")?!e.Mr||t.isComplexRoutingRealtime:!0}me.Yj=function(e,t){return Kf(this,!1,null,t||null).Yj(e.x,e.y,e.width,e.height)},bt.prototype.computeOccupiedArea=function(e){return this.isVirtualized?this.viewportBounds.copy():this.Zi?jd(this,e):e.assign(this.documentBounds)};function Kf(e,t,n,r){var i=e.Xh;if(i===null&&(e.Xh=i=new Np(e.avoidanceCellSize)),i.vs||i.group!==n||i.Yx!==r){if(i.Hx=Math.max(i.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.width)),i.Ix=Math.max(i.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.height)),n!==null&&(n=vg(e,n)),n===null){t=xt.alloc(),e.computeOccupiedArea(t),t.Bc(100,100),i.initialize(t);for(var o=e.nodes;o.next();){var a=o.value,d=a.layer;d!==null&&d.visible&&!d.isTemporary&&Yf(e,a,r,t)}xt.free(t)}else{for(0<n.memberParts.count&&(t=e.computePartsBounds(n.memberParts,!1),t.Bc(20,20),i.initialize(t)),t=xt.alloc(),o=n.memberParts;o.next();)a=o.value,a instanceof hn&&Yf(e,a,r,t);xt.free(t)}i.group=n,i.Yx=r,i.vs=!1}else t&&yb(i);return i}function vg(e,t){return t.avoidable&&!t.isLinkLabel?t:t.containingGroup!==null?vg(e,t.containingGroup):null}function Yf(e,t,n,r){if(t!==n&&t.isVisible()){if(t.avoidable&&!t.isLinkLabel){t=t.getAvoidableRect(r),e=e.Xh;var i=t.x,o=t.y;if(dd(e,i,o))for(n=(o-e.Od)/e.sc|0,r=Math.min((i+t.width-e.Nd)/e.rc|0,e.di),t=Math.min((o+t.height-e.Od)/e.sc|0,e.ei),i=(i-e.Nd)/e.rc|0;i<=r;i++)if(o=e.ac[i],o.fill)o.fill(Pc,n,t+1);else for(var a=n;a<=t;a++)o[a]=Pc}else if(t instanceof or)for(t=t.memberParts;t.next();)i=t.value,i instanceof hn&&Yf(e,i,n,r)}}function Tc(e,t){e.Xh===null||e.Xh.vs||t!==void 0&&(!t.avoidable||t.isLinkLabel)||(e.Xh.vs=!0)}bt.prototype.gs=function(e){this.wp.assign(e),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():tp(this)};function tp(e){e.vk===-1&&(e.vk=It(function(){if(e.vk!==-1&&(e.ug(),e.lastInput.event!==null)){var t=e.computeAutoScrollPosition(e.wp);t.Xa(e.position)||(e.position=t,e.lastInput.documentPoint=e.Ps(e.wp),e.doMouseMove(),e.Zi=!0,t=xt.alloc(),e.computeBounds(t),t.ed(e.documentBounds),Qd(e,t),xt.free(t),e.Fc=!0,e.bd(),tp(e))}},e.vp))}bt.prototype.ug=function(){this.vk!==-1&&(pn.clearTimeout(this.vk),this.vk=-1)},bt.prototype.computeAutoScrollPosition=function(e){var t=this.position,n=this.xp;if(0>=n.top&&0>=n.left&&0>=n.right&&0>=n.bottom)return t;var r=this.viewportBounds,i=this.scale;r=xt.allocAt(0,0,r.width*i,r.height*i);var o=Ie.allocAt(0,0);if(e.x>=r.x&&e.x<r.x+n.left&&this.allowHorizontalScroll){var a=Math.max(this.scrollHorizontalLineChange,1);a|=0,o.x-=a,e.x<r.x+n.left/2&&(o.x-=a),e.x<r.x+n.left/4&&(o.x-=4*a)}else e.x<=r.x+r.width&&e.x>r.x+r.width-n.right&&this.allowHorizontalScroll&&(a=Math.max(this.scrollHorizontalLineChange,1),a|=0,o.x+=a,e.x>r.x+r.width-n.right/2&&(o.x+=a),e.x>r.x+r.width-n.right/4&&(o.x+=4*a));return e.y>=r.y&&e.y<r.y+n.top&&this.allowVerticalScroll?(a=Math.max(this.scrollVerticalLineChange,1),a|=0,o.y-=a,e.y<r.y+n.top/2&&(o.y-=a),e.y<r.y+n.top/4&&(o.y-=4*a)):e.y<=r.y+r.height&&e.y>r.y+r.height-n.bottom&&this.allowVerticalScroll&&(a=Math.max(this.scrollVerticalLineChange,1),a|=0,o.y+=a,e.y>r.y+r.height-n.bottom/2&&(o.y+=a),e.y>r.y+r.height-n.bottom/4&&(o.y+=4*a)),o.Xa(cn)||(t=new Ie(t.x+o.x/i,t.y+o.y/i)),xt.free(r),Ie.free(o),t},me=bt.prototype,me.Cs=function(){return null},me.av=function(){return null},me.bs=function(e,t){this.pj.add(e,t)},me.Fu=function(e){(this.Pw=e)||this.nodes.each(function(t){t instanceof or&&(t.$p=null)})};function lf(e,t,n){function r(){var M=+new Date;for(o=!0,a.reset();a.next();)if(!a.value[0].al){o=!1;break}o||M-O>x?t(n,i,d):pn.requestAnimationFrame(r)}for(var i=n.callback,o=!0,a=e.Og.iterator;a.next();)if(!a.value[0].al){o=!1;break}if(typeof i!="function"||o)return t(n,i,e);var d=e,x=n.callbackTimeout||300,O=+new Date;return pn.requestAnimationFrame(function(){r()}),null}me.Wz=function(e){return vo?(e===void 0&&(e={}),e.returnType="Image",this.Jx(e)):null},me.Jx=function(e){return e===void 0&&(e={}),lf(this,this.Xz,e)},me.Xz=function(e,t,n){var r=yg(n,e,"canvas",null);if(r===null)return null;n=r.Z.canvas;var i=null;if(n!==null)switch(i=e.returnType,i===void 0?i="string":i=i.toLowerCase(),i){case Fh+"data":i=r.getImageData(0,0,n.width,n.height);break;case Fh:r=(e.document||document).createElement("img"),r.src=n.toDataURL(e.type,e.details),i=r;break;case"blob":return typeof t!="function"&&ft('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof n.toBlob=="function"?(n.toBlob(t,e.type,e.details),"toBlob"):(t(null),null);default:i=n.toDataURL(e.type,e.details)}return typeof t=="function"?(t(i),null):i};function yg(e,t,n,r){if(e.animationManager.Cc(),e.bd(),e.ta===null)return null;typeof t!="object"&&ft("properties argument must be an Object.");var i=t.size||null,o=t.scale||null;t.scale!==void 0&&isNaN(t.scale)&&(o="NaN");var a=t.maxSize;t.maxSize===void 0&&(a=n==="SVG"?new mn(1/0,1/0):new mn(2e3,2e3));var d=t.position||null,x=t.parts||null,O=t.padding===void 0?1:t.padding,M=t.background||null,Y=t.omitTemporary;Y===void 0&&(Y=!0);var ie=t.document||document,ce=t.elementFinished||null,ge=t.showTemporary;ge===void 0&&(ge=!Y),t=t.showGrid,t===void 0&&(t=ge),i!==null&&isNaN(i.width)&&isNaN(i.height)&&(i=null),typeof O=="number"?O=new ar(O):O instanceof ar||ft("MakeImage padding must be a Margin or a number."),O.left=Math.max(O.left,0),O.right=Math.max(O.right,0),O.top=Math.max(O.top,0),O.bottom=Math.max(O.bottom,0),e.ib.Vc(!0),Y=new Ul(null,ie,void 0,!0);var Te=Y.context;if(!(i||o||x||d))return Y.width=e.Aa+Math.ceil(O.left+O.right),Y.height=e.ya+Math.ceil(O.top+O.bottom),n==="SVG"?r===null?null:(r.resize(Y.width,Y.height,Y.width,Y.height),r.ownerDocument=ie,r.hs=ce,jf(e,r.context,O,new mn(Y.width,Y.height),e.Ca,e.pa,x,M,ge,t),r.context):(e.Xm=!1,jf(e,Te,O,new mn(Y.width,Y.height),e.Ca,e.pa,x,M,ge,t),e.Xm=!0,Y.context);var Ve=e.Pp,He=e.documentBounds.copy();if(He.Fv(e.yb),ge)for(var Xe=e.Wa.s,Ze=Xe.length,qe=0;qe<Ze;qe++){var st=Xe[qe];if(st.visible&&st.isTemporary){st=st.Pa.s;for(var yt=st.length,un=0;un<yt;un++){var kn=st[un];kn.isInDocumentBounds&&kn.isVisible()&&(kn=kn.actualBounds,kn.w()&&He.ed(kn))}}}if(Xe=new Ie(He.x,He.y),x!==null){for(Ze=new xt(0,0,0,0),qe=!0,st=x.iterator,st.reset();st.next();)yt=st.value,yt instanceof Fn&&(un=yt.layer,un!==null&&!un.visible||un!==null&&!ge&&un.isTemporary||!yt.isVisible()||(yt=yt.actualBounds,yt.w()&&(qe?(qe=!1,Ze.assign(yt)):Ze.ed(yt))));He.width=Ze.width,He.height=Ze.height,Xe.x=Ze.x,Xe.y=Ze.y}return d!==null&&d.w()&&(Xe=d,o||(o=Ve)),Ze=d=0,O!==null&&(d=O.left+O.right,Ze=O.top+O.bottom),qe=st=0,i!==null&&(st=i.width,qe=i.height,isFinite(st)&&(st=Math.max(0,st-d)),isFinite(qe)&&(qe=Math.max(0,qe-Ze))),i!==null&&o!==null?(o==="NaN"&&(o=Ve),i.w()?(i=st,He=qe):isNaN(qe)?(i=st,He=He.height*o):(i=He.width*o,He=qe)):i!==null?i.w()?(o=Math.min(st/He.width,qe/He.height),i=st,He=qe):isNaN(qe)?(o=st/He.width,i=st,He=He.height*o):(o=qe/He.height,i=He.width*o,He=qe):o!==null?o==="NaN"&&a.w()?(o=Math.min((a.width-d)/He.width,(a.height-Ze)/He.height),o>Ve?(o=Ve,i=He.width,He=He.height):(i=a.width,He=a.height)):(i=He.width*o,He=He.height*o):(o=Ve,i=He.width,He=He.height),O!==null?(i+=d,He+=Ze):O=new ar(0),a!==null&&(Ve=a.width,a=a.height,isNaN(Ve)&&(Ve=2e3),isNaN(a)&&(a=2e3),isFinite(Ve)&&(i=Math.min(i,Ve)),isFinite(a)&&(He=Math.min(He,a))),Y.width=Math.ceil(i),Y.height=Math.ceil(He),n==="SVG"?r===null?null:(r.resize(Y.width,Y.height,Y.width,Y.height),r.ownerDocument=ie,r.hs=ce,jf(e,r.context,O,new mn(Math.ceil(i),Math.ceil(He)),o,Xe,x,M,ge,t),r.context):(e.Xm=!1,jf(e,Te,O,new mn(Math.ceil(i),Math.ceil(He)),o,Xe,x,M,ge,t),e.Xm=!0,Y.context)}Mn.Object.defineProperties(bt.prototype,{renderer:{get:function(){return this.nl},set:function(e){this instanceof q||(e===""&&(e="default"),e=e.toLowerCase(),e!==this.nl&&(this.nl=e,e==="default"||e==="canvas"?(e=this.pj.get("svg"),e!==null&&e.Oa.remove(),this.ta&&(this.ib=this.ta.context)):e==="svg"?(this.pj.contains("svg")?e=this.pj.get("svg"):(e=new Ou(this,pn.document),this.bs("svg",e)),this.div!==null&&this.div.appendChild(e.Oa),this.ib=e.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):e!=="debug"||this.pj.contains("SVG")||(e=new Ou(this,pn.document),this.bs("SVG",e),e.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(e.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(e){if(this.Ka!==e){var t=this.Ka;t!==null?(t.H=void 0,t.goDiagram=void 0,t.go=void 0,t.innerHTML="",this.ta!==null&&(t=this.ta.Oa,this.removeEventListener(t,"pointermove",this.dk,!1),this.removeEventListener(t,"pointerdown",this.ui,!1),this.removeEventListener(t,"pointerup",this.fk,!1),this.removeEventListener(t,"pointerout",this.ek,!1),this.removeEventListener(t,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),t=this.toolManager,t!==null&&(t.mouseDownTools.each(function(n){n.cancelWaitAfter()}),t.mouseMoveTools.each(function(n){n.cancelWaitAfter()}),t.mouseUpTools.each(function(n){n.cancelWaitAfter()})),t.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(pn,"resize",this.Ov,!1),this.removeEventListener(pn,"wheel",this.$j,!0),zu===this&&(zu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,e!==null&&((t=e.H)&&(t.div=null),Fd(this,e),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(e){this.nt!==e&&(this.nt=e,e!==null&&(this.Vt=e.fromPort,this.Wt=e.toPort))}},Mx:{get:function(){return this.Vt},set:function(e){this.Vt=e}},Nx:{get:function(){return this.Wt},set:function(e){this.Wt=e}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e,this.cc.skipsUndoManager=e}},delaysLayout:{get:function(){return this.lt},set:function(e){this.lt=e}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&An(e,"0 <= value <= 1",bt,"opacity"),this.pb=e,this.g("opacity",t,e),this.N())}},validCycle:{get:function(){return this.wu},set:function(e){var t=this.wu;t!==e&&(this.wu=e,this.g("validCycle",t,e))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var e=this.cc;return e===null?!1:e.isReadOnly},set:function(e){var t=this.cc;t!==null&&(t.isReadOnly=e)}},isReadOnly:{get:function(){return this.Gg},set:function(e){var t=this.Gg;t!==e&&(this.Gg=e,this.g("isReadOnly",t,e))}},isEnabled:{get:function(){return this.Jd},set:function(e){var t=this.Jd;t!==e&&(this.Jd=e,this.g("isEnabled",t,e))}},allowClipboard:{get:function(){return this.Us},set:function(e){var t=this.Us;t!==e&&(this.Us=e,this.g("allowClipboard",t,e))}},allowCopy:{get:function(){return this.Fi},set:function(e){var t=this.Fi;t!==e&&(this.Fi=e,this.g("allowCopy",t,e))}},allowDelete:{get:function(){return this.Gi},set:function(e){var t=this.Gi;t!==e&&(this.Gi=e,this.g("allowDelete",t,e))}},allowDragOut:{get:function(){return this.Vs},set:function(e){var t=this.Vs;t!==e&&(this.Vs=e,this.g("allowDragOut",t,e))}},allowDrop:{get:function(){return this.Ws},set:function(e){var t=this.Ws;t!==e&&(this.Ws=e,this.g("allowDrop",t,e))}},allowTextEdit:{get:function(){return this.Pi},set:function(e){var t=this.Pi;t!==e&&(this.Pi=e,this.g("allowTextEdit",t,e))}},allowGroup:{get:function(){return this.Hi},set:function(e){var t=this.Hi;t!==e&&(this.Hi=e,this.g("allowGroup",t,e))}},allowUngroup:{get:function(){return this.Qi},set:function(e){var t=this.Qi;t!==e&&(this.Qi=e,this.g("allowUngroup",t,e))}},allowInsert:{get:function(){return this.Ys},set:function(e){var t=this.Ys;t!==e&&(this.Ys=e,this.g("allowInsert",t,e))}},allowLink:{get:function(){return this.Ii},set:function(e){var t=this.Ii;t!==e&&(this.Ii=e,this.g("allowLink",t,e))}},allowRelink:{get:function(){return this.Ki},set:function(e){var t=this.Ki;t!==e&&(this.Ki=e,this.g("allowRelink",t,e))}},allowMove:{get:function(){return this.Ji},set:function(e){var t=this.Ji;t!==e&&(this.Ji=e,this.g("allowMove",t,e))}},allowReshape:{get:function(){return this.Li},set:function(e){var t=this.Li;t!==e&&(this.Li=e,this.g("allowReshape",t,e))}},allowResize:{get:function(){return this.Mi},set:function(e){var t=this.Mi;t!==e&&(this.Mi=e,this.g("allowResize",t,e))}},allowRotate:{get:function(){return this.Ni},set:function(e){var t=this.Ni;t!==e&&(this.Ni=e,this.g("allowRotate",t,e))}},allowSelect:{get:function(){return this.Oi},set:function(e){var t=this.Oi;t!==e&&(this.Oi=e,this.g("allowSelect",t,e))}},allowUndo:{get:function(){return this.Zs},set:function(e){var t=this.Zs;t!==e&&(this.Zs=e,this.g("allowUndo",t,e))}},allowZoom:{get:function(){return this.at},set:function(e){var t=this.at;t!==e&&(this.at=e,this.g("allowZoom",t,e))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(e){var t=this.nn;t!==e&&(this.nn=e,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",t,e),Bl(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(e){var t=this.mn;t!==e&&(this.mn=e,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",t,e),Bl(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(e){var t=this.Xs;t!==e&&(this.Xs=e,this.g("allowHorizontalScroll",t,e),Bl(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(e){var t=this.$s;t!==e&&(this.$s=e,this.g("allowVerticalScroll",t,e),Bl(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(e){var t=this.iu;t!==e&&(0>e&&An(e,">= 0",bt,"scrollHorizontalLineChange"),this.iu=e,this.g("scrollHorizontalLineChange",t,e))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(e){var t=this.mu;t!==e&&(0>e&&An(e,">= 0",bt,"scrollVerticalLineChange"),this.mu=e,this.g("scrollVerticalLineChange",t,e))}},lastInput:{get:function(){return this.cj},set:function(e){this.cj=e}},previousInput:{get:function(){return this.Qg},set:function(e){this.Qg=e}},firstInput:{get:function(){return this.bq},set:function(e){this.bq=e}},currentCursor:{get:function(){return this.it},set:function(e){if(e===""&&(e=this.Op),this.it!==e){var t=this.ta,n=this.Ka;if(t!==null&&n!==null){this.it=e;var r=t.style.cursor;t.style.cursor=e,n.style.cursor=e,t.style.cursor===r&&(t.style.cursor="-webkit-"+e,n.style.cursor="-webkit-"+e,t.style.cursor===r&&(t.style.cursor="-moz-"+e,n.style.cursor="-moz-"+e,t.style.cursor===r&&(t.style.cursor=e,n.style.cursor=e)))}}}},defaultCursor:{get:function(){return this.Op},set:function(e){e===""&&(e="auto");var t=this.Op;t!==e&&(this.Op=e,this.g("defaultCursor",t,e))}},click:{get:function(){return this.zh},set:function(e){var t=this.zh;t!==e&&(this.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return this.Fh},set:function(e){var t=this.Fh;t!==e&&(this.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return this.Bh},set:function(e){var t=this.Bh;t!==e&&(this.Bh=e,this.g("contextClick",t,e))}},mouseOver:{get:function(){return this.Qh},set:function(e){var t=this.Qh;t!==e&&(this.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return this.Oh},set:function(e){var t=this.Oh;t!==e&&(this.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return this.Nh},set:function(e){var t=this.Nh;t!==e&&(this.Nh=e,this.g("mouseHold",t,e))}},mouseDragOver:{get:function(){return this.Qt},set:function(e){var t=this.Qt;t!==e&&(this.Qt=e,this.g("mouseDragOver",t,e))}},mouseDrop:{get:function(){return this.Lh},set:function(e){var t=this.Lh;t!==e&&(this.Lh=e,this.g("mouseDrop",t,e))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(e){var t=this.xt;t!==e&&(this.xt=e,this.g("handlesDragDropForTopLevelParts",t,e))}},mouseEnter:{get:function(){return this.Mh},set:function(e){var t=this.Mh;t!==e&&(this.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return this.Ph},set:function(e){var t=this.Ph;t!==e&&(this.Ph=e,this.g("mouseLeave",t,e))}},toolTip:{get:function(){return this.$h},set:function(e){var t=this.$h;t!==e&&(this.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return this.Ch},set:function(e){var t=this.Ch;t!==e&&(this.Ch=e,this.g("contextMenu",t,e))}},commandHandler:{get:function(){return this.nb},set:function(e){this.nb!==e&&(this.nb=e,e.Xe(this))}},toolManager:{get:function(){return this.te},set:function(e){this.te!==e&&(this.te=e,e.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(e){var t=this.ob;t!==e&&(this.ob=e,e.diagram=this,this.currentTool===t&&(this.currentTool=e))}},currentTool:{get:function(){return this.hb},set:function(e){var t=this.hb;t&&(t.isActive&&t.doDeactivate(),t.cancelWaitAfter(),t.doStop()),e===null&&(e=this.defaultTool),e!==null&&(this.hb=e,e.diagram=this,e.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(e){var t=this.Nt;if(t!==e)if(0<=e&&!isNaN(e)){if(this.Nt=e,this.g("maxSelectionCount",t,e),!this.undoManager.isUndoingRedoing&&(e=this.selection.count-e,0<e)){this.R("ChangingSelection",this.selection),t=this.selection.Fa();for(var n=0;n<e;n++)t[n].isSelected=!1;this.R("ChangedSelection",this.selection)}}else An(e,">= 0",bt,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(e){var t=this.St;t!==e&&(this.St=e,this.g("nodeSelectionAdornmentTemplate",t,e))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(e){var t=this.wt;t!==e&&(this.wt=e,this.g("groupSelectionAdornmentTemplate",t,e))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(e){var t=this.Kt;t!==e&&(this.Kt=e,this.g("linkSelectionAdornmentTemplate",t,e))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var e=this.undoManager;return e.isEnabled?e.currentTransaction!==null?!0:this.rn&&this.Ce!==e.historyIndex:this.rn},set:function(e){if(this.rn!==e){this.rn=e;var t=this.undoManager;!e&&t.isEnabled&&(this.Ce=t.historyIndex),e||pg(this)}}},model:{get:function(){return this.cc},set:function(e){var t=this.cc;if(t!==e){this.currentTool.doCancel(),t&&t.undoManager!==e.undoManager&&t.undoManager.isInTransaction&&ft("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var n=Pd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var r=this.vb;this.vb=!0,rs(this.animationManager,"Model"),t&&(this.pf!==null&&this.pf.each(function(o){return t.ik(o)}),t.ik(this.Oc)),this.cc=e,this.partManager=Zd(this.cc.type);for(var i=0;i<n.length;i++)this.add(n[i]);e.Pe(this.Hb),this.partManager.addAllModeledParts(),e.ik(this.Hb),e.Pe(this.Oc),this.pf!==null&&this.pf.each(function(o){return e.Pe(o)}),this.vb=r,this.Ya(),this.vb||this.N(),t&&e.undoManager.copyProperties(t.undoManager)}}},aa:{get:function(){return this.rw},set:function(e){this.rw=e}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(e){this.Iw=e}},Ns:{get:function(){return this.ou},set:function(e){this.ou=e}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(e){var t=this.Lg.I("");t!==e&&(this.Lg.add("",e),this.g("nodeTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(e){var t=this.Lg;t!==e&&(this.Lg=e,this.g("nodeTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(e){var t=this.Yi.I("");t!==e&&(this.Yi.add("",e),this.g("groupTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(e){var t=this.Yi;t!==e&&(this.Yi=e,this.g("groupTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(e){var t=this.Kh.I("");t!==e&&(this.Kh.add("",e),this.g("linkTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(e){var t=this.Kh;t!==e&&(this.Kh=e,this.g("linkTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(e){var t=this.ta;t!==null&&(t=t.Oa,t instanceof SVGElement||(e?(this.lastInput.bubbles=!1,this.removeEventListener(t,"pointermove",this.dk,!1),this.removeEventListener(t,"pointerdown",this.ui,!1),this.removeEventListener(t,"pointerup",this.fk,!1),this.removeEventListener(t,"pointerout",this.ek,!1),this.removeEventListener(t,"pointercancel",this.ck,!1),this.addEventListener(pn,"pointermove",this.dk,!0),this.addEventListener(pn,"pointerdown",this.ui,!0),this.addEventListener(pn,"pointerup",this.fk,!0),this.addEventListener(pn,"pointerout",this.ek,!0),this.addEventListener(pn,"pointercancel",this.ck,!0),this.removeEventListener(t,"wheel",this.$j,!1),this.addEventListener(pn,"wheel",this.$j,!0),this.addEventListener(pn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(pn,"pointermove",this.dk,!0),this.removeEventListener(pn,"pointerdown",this.ui,!0),this.removeEventListener(pn,"pointerup",this.fk,!0),this.removeEventListener(pn,"pointerout",this.ek,!0),this.removeEventListener(pn,"pointercancel",this.ck,!0),this.addEventListener(t,"pointermove",this.dk,!1),this.addEventListener(t,"pointerdown",this.ui,!1),this.addEventListener(t,"pointerup",this.fk,!1),this.addEventListener(t,"pointerout",this.ek,!1),this.addEventListener(t,"pointercancel",this.ck,!1),this.removeEventListener(pn,"wheel",this.$j,!0),this.removeEventListener(pn,"selectstart",this.preventDefault,!1),this.addEventListener(t,"wheel",this.$j,!1)),this.qw=e))}},position:{get:function(){return this.pa},set:function(e){var t=Ie.alloc().assign(this.pa);if(!t.D(e)){var n=this.viewportBounds.copy();this.pa.assign(e),Xc(this.animationManager,t,this.pa),this.vb||this.ta===null&&!this.wo.w()?Ru(this):(this.vb=!0,e=this.scale,Ud(this,this.Sp,this.Aa/e,this.ya/e,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(n,this.viewportBounds,this.Ca,!1)}Ie.free(t)}},initialPosition:{get:function(){return this.zt},set:function(e){this.zt.D(e)||(this.zt=e.J())}},initialScale:{get:function(){return this.At},set:function(e){this.At!==e&&(this.At=e)}},grid:{get:function(){return this.fe===null&&(this.fe=cg(this)),this.fe},set:function(e){var t=this.fe;if(t!==e){t===null&&(t=this.fe=cg(this)),e.type!==Xt.Grid&&ft("Diagram.grid must be a Panel of type Panel.Grid");var n=t.panel;n!==null&&n.remove(t),this.fe=e,e.name="GRID",n!==null&&n.add(e),Iu(this),this.N(),this.g("grid",t,e)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(e){var t=this.viewSize;t.D(e)||(this.wo=e=e.J(),this.ya=this.Aa=0,e.w()?(this.Aa=e.width,this.ya=e.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Ru(this),this.Ya(),this.g("viewSize",t,e),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(e){var t=this.ut;t.D(e)||(e.width!==-1/0&&e.height!==1/0&&e.height!==-1/0||ft("fixedBounds width/height must not be Infinity"),this.ut=e=e.J(),this.Ya(),this.g("fixedBounds",t,e))}},scrollMargin:{get:function(){return this.rj},set:function(e){typeof e=="number"&&(e=new ar(e));var t=this.rj;t.D(e)||(this.rj=e=e.J(),this.g("scrollMargin",t,e),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(e){var t=this.sj;t!==e&&(this.sj=e,e===_c&&Bl(this,!1),this.g("scrollMode",t,e),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(e){var t=this.nu;t!==e&&(this.nu=e,this.g("scrollsPageOnFocus",t,e))}},positionComputation:{get:function(){return this.Zt},set:function(e){var t=this.Zt;t!==e&&(this.Zt=e,Bl(this,!1),this.g("positionComputation",t,e))}},scaleComputation:{get:function(){return this.fu},set:function(e){var t=this.fu;t!==e&&(this.fu=e,Xd(this,this.scale,this.scale),this.g("scaleComputation",t,e))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(e){var t=this.It;t!==e&&(this.It=e,this.g("isVirtualized",t,e))}},scale:{get:function(){return this.Ca},set:function(e){var t=this.Ca;t!==e&&Xd(this,t,e)}},defaultScale:{get:function(){return this.Pp},set:function(e){this.Pp=e}},autoScale:{get:function(){return this.yh},set:function(e){var t=this.yh;t!==e&&(this.yh=e,this.g("autoScale",t,e),e!==Js&&Bl(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(e){var t=this.Fg;t!==e&&(this.Fg=e,this.g("initialAutoScale",t,e))}},initialViewportSpot:{get:function(){return this.Bt},set:function(e){var t=this.Bt;t!==e&&(e.sb()||ft("initialViewportSpot must be a specific Spot: "+e),this.Bt=e,this.g("initialViewportSpot",t,e))}},initialDocumentSpot:{get:function(){return this.yt},set:function(e){var t=this.yt;t!==e&&(e.sb()||ft("initialViewportSpot must be a specific Spot: "+e),this.yt=e,this.g("initialDocumentSpot",t,e))}},minScale:{get:function(){return this.Ot},set:function(e){var t=this.Ot;t!==e&&(0<e?(this.Ot=e,this.g("minScale",t,e),e>this.scale&&(this.scale=e)):An(e,"> 0",bt,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(e){var t=this.Mt;t!==e&&(0<e?(this.Mt=e,this.g("maxScale",t,e),e<this.scale&&(this.scale=e)):An(e,"> 0",bt,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(e){this.zu.D(e)||(this.zu=e=e.J())}},contentAlignment:{get:function(){return this.zk},set:function(e){var t=this.zk;t.D(e)||(this.zk=e=e.J(),this.g("contentAlignment",t,e),Bl(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(e){var t=this.pq;t.D(e)||(this.pq=e=e.J(),this.g("initialContentAlignment",t,e))}},padding:{get:function(){return this.yb},set:function(e){typeof e=="number"&&(e=new ar(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.Ya(),this.g("padding",t,e))}},partManager:{get:function(){return this.Pc},set:function(e){var t=this.Pc;t!==e&&(e.diagram!==null&&ft("Cannot share PartManagers between Diagrams: "+e.toString()),t&&t.Xe(null),this.Pc=e,e.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(e){var t=this.Sc;t!==e&&(this.Sc=e,e.diagram=this,e.group=null,this.xh=!0,this.g("layout",t,e),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(e){var t=this.Ht;if(t!==e&&(this.Ht=e,this.g("isTreePathToChildren",t,e),!this.undoManager.isUndoingRedoing))for(e=this.nodes;e.next();)bp(e.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(e){var t=this.uu;t!==e&&(e!==Ac&&e!==Wo&&e!==Xf&&ft("Unknown Diagram.treeCollapsePolicy: "+e),this.uu=e,this.g("treeCollapsePolicy",t,e))}},Ue:{get:function(){return this.pw},set:function(e){this.pw=e}},avoidanceCellSize:{get:function(){return this.aw},set:function(e){this.Xh=null,this.aw=new mn(Math.max(1,e.width),Math.max(1,e.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(e){this.bw=Math.max(1,e)}},autoScrollInterval:{get:function(){return this.vp},set:function(e){var t=this.vp;t!==e&&(this.vp=e,this.g("autoScrollInterval",t,e))}},autoScrollRegion:{get:function(){return this.xp},set:function(e){typeof e=="number"&&(e=new ar(e));var t=this.xp;t.D(e)||(this.xp=e=e.J(),this.Ya(),this.g("autoScrollRegion",t,e))}}}),Mn.Object.defineProperties(bt,{licenseKey:{get:function(){return ap.jc()},set:function(e){ap.add(e.replace(/\s/g,""))}},version:{get:function(){return Ph}}}),bt.prototype.makeImageData=bt.prototype.Jx,bt.prototype.makeImage=bt.prototype.Wz,bt.prototype.cacheGroupExternalLinks=bt.prototype.Fu,bt.prototype.addRenderer=bt.prototype.bs,bt.prototype.makeSVG=bt.prototype.av,bt.prototype.makeSvg=bt.prototype.Cs,bt.prototype.stopAutoScroll=bt.prototype.ug,bt.prototype.doAutoScroll=bt.prototype.gs,bt.prototype.isUnoccupied=bt.prototype.Yj,bt.prototype.raiseDiagramEvent=bt.prototype.R,bt.prototype.removeDiagramListener=bt.prototype.am,bt.prototype.addDiagramListener=bt.prototype.Bj,bt.prototype.findTreeRoots=bt.prototype.yz,bt.prototype.layoutDiagram=bt.prototype.Uz,bt.prototype.findTopLevelGroups=bt.prototype.qz,bt.prototype.findTopLevelNodesAndLinks=bt.prototype.rz,bt.prototype.ensureBounds=bt.prototype.Va,bt.prototype.findLinksByExample=bt.prototype.ls,bt.prototype.findNodesByExample=bt.prototype.ms,bt.prototype.findLinkForData=bt.prototype.Kc,bt.prototype.findNodeForData=bt.prototype.ii,bt.prototype.findPartForData=bt.prototype.Lc,bt.prototype.findLinkForKey=bt.prototype.findLinkForKey,bt.prototype.findNodeForKey=bt.prototype.Vb,bt.prototype.findPartForKey=bt.prototype.findPartForKey,bt.prototype.rebuildParts=bt.prototype.Wd,bt.prototype.transformViewToDoc=bt.prototype.Ps,bt.prototype.transformRectDocToView=bt.prototype.zA,bt.prototype.transformDocToView=bt.prototype.op,bt.prototype.centerRect=bt.prototype.es,bt.prototype.scrollToRect=bt.prototype.tv,bt.prototype.scroll=bt.prototype.scroll,bt.prototype.highlightCollection=bt.prototype.Jz,bt.prototype.highlight=bt.prototype.Iz,bt.prototype.selectCollection=bt.prototype.rA,bt.prototype.select=bt.prototype.select,bt.prototype.updateAllRelationshipsFromData=bt.prototype.rp,bt.prototype.updateAllTargetBindings=bt.prototype.updateAllTargetBindings,bt.prototype.commit=bt.prototype.commit,bt.prototype.rollbackTransaction=bt.prototype.Kf,bt.prototype.commitTransaction=bt.prototype.eb,bt.prototype.startTransaction=bt.prototype.Ea,bt.prototype.raiseChanged=bt.prototype.g,bt.prototype.raiseChangedEvent=bt.prototype.cb,bt.prototype.removeChangedListener=bt.prototype.ik,bt.prototype.addChangedListener=bt.prototype.Pe,bt.prototype.removeModelChangedListener=bt.prototype.mA,bt.prototype.addModelChangedListener=bt.prototype.Yw,bt.prototype.findLayer=bt.prototype.Qj,bt.prototype.removeLayer=bt.prototype.kA,bt.prototype.addLayerAfter=bt.prototype.Cy,bt.prototype.addLayerBefore=bt.prototype.Ww,bt.prototype.addLayer=bt.prototype.Al,bt.prototype.moveParts=bt.prototype.moveParts,bt.prototype.copyParts=bt.prototype.Kj,bt.prototype.removeParts=bt.prototype.Is,bt.prototype.remove=bt.prototype.remove,bt.prototype.add=bt.prototype.add,bt.prototype.clearDelayedGeometries=bt.prototype.bx,bt.prototype.setProperties=bt.prototype.nm,bt.prototype.attach=bt.prototype.Du,bt.prototype.set=bt.prototype.set,bt.prototype.resetInputOptions=bt.prototype.Sx,bt.prototype.setInputOption=bt.prototype.sA,bt.prototype.getInputOption=bt.prototype.Ql,bt.prototype.resetRenderingHints=bt.prototype.Tx,bt.prototype.setRenderingHint=bt.prototype.Xx,bt.prototype.getRenderingHint=bt.prototype.Gf,bt.prototype.maybeUpdate=bt.prototype.bd,bt.prototype.requestUpdate=bt.prototype.$b,bt.prototype.delayInitialization=bt.prototype.Xy,bt.prototype.isUpdateRequested=bt.prototype.Pz,bt.prototype.invalidateDocumentBounds=bt.prototype.Ya,bt.prototype.findObjectsNear=bt.prototype.og,bt.prototype.findPartsNear=bt.prototype.mz,bt.prototype.findObjectsIn=bt.prototype.Cf,bt.prototype.findPartsIn=bt.prototype.ux,bt.prototype.findObjectsAt=bt.prototype.ji,bt.prototype.findPartsAt=bt.prototype.lz,bt.prototype.findObjectAt=bt.prototype.ic,bt.prototype.findPartAt=bt.prototype.Ol,bt.prototype.focusObject=bt.prototype.zz,bt.prototype.alignDocument=bt.prototype.Jy,bt.prototype.zoomToRect=bt.prototype.BA,bt.prototype.zoomToFit=bt.prototype.zoomToFit,bt.prototype.diagramScroll=bt.prototype.kx,bt.prototype.focus=bt.prototype.focus;var $f=new Et,bg=null,vo=pn.document!==void 0,Dh=null,th="",Js=new Dt(bt,"None",0),cl=new Dt(bt,"Uniform",1),nh=new Dt(bt,"UniformToFill",2),uf=new Dt(bt,"CycleAll",10),np=new Dt(bt,"CycleNotDirected",11),rp=new Dt(bt,"CycleNotDirectedFast",12),ip=new Dt(bt,"CycleNotUndirected",13),op=new Dt(bt,"CycleDestinationTree",14),sp=new Dt(bt,"CycleSourceTree",15),_c=new Dt(bt,"DocumentScroll",1),cf=new Dt(bt,"InfiniteScroll",2),Ac=new Dt(bt,"TreeParentCollapsed",21),Wo=new Dt(bt,"AllParentsCollapsed",22),Xf=new Dt(bt,"AnyParentsCollapsed",23),ap=new Gt,Ph="2.3.10",Fh="image",hf=null,Sg=!1;function Gs(){if(vo){var e=pn.document.createElement("canvas"),t=e.getContext("2d"),n=Pn("7ca11abfd022028846");t[n]=Pn("398c3597c01238");for(var r=["5da73c80a36455d7038e4972187c3cae51fd22",Vn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Zn.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",ht.za],i=1;5>i;i++)t[Pn("7ca11abfd7330390")](Pn(r[i-1]),10,15*i);for(t[n]=Pn("39f046ebb36e4b"),n=1;5>n;n++)t[Pn("7ca11abfd7330390")](Pn(r[n-1]),10,15*n);(r.length!==4||r[0][0]!=="5"||r[3][0]!=="7")&&(Zn.prototype.Cd=Zn.prototype.Eu),hf=e}}bt.className="Diagram",bt.fromDiv=function(e){var t=e;return typeof e=="string"&&(t=pn.document.getElementById(e)),t instanceof HTMLDivElement&&t.H instanceof bt?t.H:null},bt.inherit=function(e,t){function n(){}if(Object.getPrototypeOf(e).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
`+e);n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},bt.useDOM=function(e){vo=e?pn.document!==void 0:!1},bt.isUsingDOM=function(){return vo},bt.None=Js,bt.Uniform=cl,bt.UniformToFill=nh,bt.CycleAll=uf,bt.CycleNotDirected=np,bt.CycleNotDirectedFast=rp,bt.CycleNotUndirected=ip,bt.CycleDestinationTree=op,bt.CycleSourceTree=sp,bt.DocumentScroll=_c,bt.InfiniteScroll=cf,bt.TreeParentCollapsed=Ac,bt.AllParentsCollapsed=Wo,bt.AnyParentsCollapsed=Xf;function xg(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Bh(e,t){if(t.ib.setTransform(t.Mb,0,0,t.Mb,0,0),t.ib.yc(),e.Rc===null)e:{t="f";var n=pn[Pn("76a715b2f73f148a")][Pn("72ba13b5")]||"";if(e.Rc=!0,vo){var r=bt[Pn("76a115b6ed251eaf4692")];if(r)for(var i=ap.iterator;i.next()&&(r=i.value,r=Pn(r).split(Pn("39e9")),!(6>r.length));){var o=Pn(r[1]).split(".");if(r[4]!=="7da71ca0")break;var a=Pn(Vn[Pn("6cae19")]).split(".");if(o[0]>a[0]||o[0]===a[0]&&o[1]>=a[1]){var d=pn[Pn("74a900bae4370f8b51")][Pn("6fbb13a1c2311e8a57")].toLowerCase();if(a=d[Pn("73a612b6fb191d")](Pn("3aad1ab6e022098b4dc4")),o=Pn(r[2]),-1<a&&(d=d[Pn("73a612b6fb191d")](o.toLowerCase()+"/"),e.Rc=!(-1<d&&d<a),!e.Rc))break;for(a=n[Pn("76ad18b4f73e")],d=n[Pn("73a612b6fb191d")](Pn("35e7"))+2;d<a;d++)t+=n[d];if(a=t[Pn("73a612b6fb191d")](o),0>a&&o!==Pn("7da71ca0ad381e90")&&(a=t[Pn("73a612b6fb191d")](Pn("76a715b2ef3e149757"))),0>a&&(a=t[Pn("73a612b6fb191d")](Pn("76a715b2ef3e149757"))),0>a&&(a=t[Pn("73a612b6fb191d")](Pn("2bfa41fdb3784bca12"))),0>a&&(a=n[Pn("73a612b6fb191d")](Pn("7baa19a6f76c1988428554"))),e.Rc=!(0<=a&&a<t[Pn("73a612b6fb191d")](Pn("35"))||t[Pn("73a612b6fb191d")](Pn("35"))===-1),!e.Rc||n[Pn("73a612b6fb191d")](Pn("7fb002b6ed25128b4da25b2e"))&&(e.Rc=!(-1<n[Pn("73a612b6fb191d")](o)),!e.Rc)||(a=pn[Pn("76a715b2f73f148a")][Pn("69ad17a1e03e")],d=a[Pn("73a612b6fb191d")](Pn("7fb002b6ed25128b4da25b2e")),-1<d&&(e.Rc=!(a[Pn("73a612b6fb191d")](o)>d),!e.Rc)))break;if(o[0]==="#"){a=pn.document.createElement("div");for(var x=r[0].replace(/[A-Za-z]/g,"");4>x.length;)x+="9";if(d=x,x=x.substr(x.length-4),r="",r+=["gsh","gsf"][parseInt(x.substr(0,1),10)%2],r+=["Header","Background","Display","Feedback"][parseInt(x.substr(0,1),10)%4],a[Pn("79a417a0f0181a8946")]=r,pn.document[Pn("78a712aa")]){pn.document[Pn("78a712aa")][Pn("7bb806b6ed32388c4a875b")](a),x=pn.getComputedStyle(a).getPropertyValue(Pn("78a704b7e62456904c9b12701b6532a8"));var O=pn.getComputedStyle(a).getPropertyValue(Pn("75b817b0ea2202"));if(pn.document[Pn("78a712aa")][Pn("68ad1bbcf533388c4a875b")](a),x){if(a=pn[Pn("77a902b0eb1b1e804a8a")],O==="0."+parseInt(d,10)%100||x.indexOf(parseInt(o[1]+o[2],16))!==-1&&x.indexOf(parseInt(o[3]+o[4],16))!==-1){e.Rc=!1;break}else if(a&&a(Pn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(r="."+r,o=0;o<document.styleSheets.length;o++){a=document.styleSheets[o].rules||document.styleSheets[o].cssRules;for(var M in a)if(r===a[M].selectorText){e.Rc=!1;break e}}}}else e.Rc=null,e.Rc=!1}}}else{for(M=n[Pn("76ad18b4f73e")],i=n[Pn("73a612b6fb191d")](Pn("35e7"))+2;i<M;i++)t+=n[i];n=t[Pn("73a612b6fb191d")](Pn("7da71ca0ad381e90")),e.Rc=!(0<=n&&n<t[Pn("73a612b6fb191d")](Pn("35")))}}}return 0<e.Rc&&e!==e.wy}xg.className="DiagramHelper";function ac(e){this.j=e===void 0?new Ie:e,this.o=new Ie}Mn.Object.defineProperties(ac.prototype,{point:{get:function(){return this.j},set:function(e){this.j=e}},shifted:{get:function(){return this.o},set:function(e){this.o=e}}});var ff="DraggingInfo";ac.className="DraggingInfo";function l(e,t,n){this.node=e,this.info=t,this.Su=n}l.className="DraggingNodeInfoPair";function w(){this.reset()}w.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new mn(NaN,NaN).freeze(),this.gridSnapCellSpot=Gr,this.gridSnapOrigin=new Ie(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},w.className="DraggingOptions";function K(e,t){if(typeof e=="string"||pn.Element&&e instanceof Element)var n=bt.call(this,e)||this;else n=bt.call(this)||this,t=e;return W(n),t&&n.nm(t),n}Kn(K,bt);function W(e){e.allowDragOut=!0,e.allowMove=!1,e.isReadOnly=!0,e.contentAlignment=ro,e.layout=new Es}K.prototype.reset=function(){bt.prototype.reset.call(this),W(this)},K.className="Palette";function q(e,t){if(typeof e=="string"||pn.Element&&e instanceof Element)var n=bt.call(this,e)||this;else n=bt.call(this)||this,t=e;var r=n;n.animationManager.isEnabled=!1,n.vb=!0,n.V=null,n.mn=!1,n.nn=!1,n.F=!0,n.u=!0,n.ia=0,n.o=!1,n.ql=null,n.Xx("drawShadows",!1),e=new Fn;var i=new hr;return i.stroke="magenta",i.strokeWidth=2,i.fill="transparent",i.name="BOXSHAPE",e.selectable=!0,e.selectionAdorned=!1,e.selectionObjectName="BOXSHAPE",e.locationObjectName="BOXSHAPE",e.resizeObjectName="BOXSHAPE",e.cursor="move",e.add(i),n.j=e,n.allowCopy=!1,n.allowDelete=!1,n.allowSelect=!0,n.autoScrollRegion=new ar(0,0,0,0),n.pa.h(0,0),n.toolManager.gb("Dragging",new Ye,n.toolManager.mouseMoveTools),n.click=function(){var o=r.observed;if(o!==null){var a=o.viewportBounds,d=r.lastInput.documentPoint;o.position=new Ie(d.x-a.width/2,d.y-a.height/2)}},n.Pf=function(){r.Ya(),Fe(r)},n.Xd=function(){r.observed!==null&&(r.Ya(),r.N())},n.Ha=function(){1>r.updateDelay?r.N():r.o||(r.o=!0,setTimeout(function(){return r.redraw()},r.updateDelay))},n.Of=function(){r.observed!==null&&Fe(r)},n.autoScale=cl,n.vb=!1,t&&Object.assign(n,t),n}Kn(q,bt),q.prototype.computePixelRatio=function(){return 1},q.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var e=this.ta,t=this.ib;if(e!==null&&t!==null){if(Oh(this),this.ql===null){var n=new Ul(null);n.width=e.width,n.height=e.height,this.ql=n}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),be(this)}finally{this.ta=e,this.ib=t}}}bt.prototype.redraw.call(this)},q.prototype.gc=function(){if(this.Ka===null&&ft("No div specified"),this.ta===null&&ft("No canvas specified"),!(this.ta instanceof Ou)&&(Yv(this.box),this.Fc)){var e=this.observed;if(e!==null&&!e.animationManager.defaultAnimation.isAnimating&&e.pi){Oh(this);var t=this.ta;e=this.ib,e.Vc(!0),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t.width,t.height),1>this.updateDelay?be(this):this.ql!==null&&(e.drawImage(this.ql.Oa,0,0),t=this.Ab,t.reset(),this.scale!==1&&t.scale(this.scale),this.position.x===0&&this.position.y===0||t.translate(-this.position.x,-this.position.y),e.scale(this.Mb,this.Mb),e.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),e.yc()),t=this.Wa.s;for(var n=t.length,r=0;r<n;r++)t[r].gc(e,this);this.Fc=this.vd=!1}}};function be(e){var t=e.observed;if(t!==null){var n=e.drawsTemporaryLayers,r=e.drawsGrid&&n,i=t.grid;r&&i!==null&&i.visible&&!isNaN(i.width)&&!isNaN(i.height)&&(i=xt.alloc().assign(e.viewportBounds).ed(t.viewportBounds),Iu(t,i),xt.free(i),Ms(t));var o=e.Ab;o.reset(),e.scale!==1&&o.scale(e.scale),e.position.x===0&&e.position.y===0||o.translate(-e.position.x,-e.position.y),i=e.ib,i.scale(e.Mb,e.Mb),i.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),i.yc(),t=t.Wa.s,o=t.length;for(var a=0;a<o;a++){var d=t[a],x=e;if(d.visible&&d.opacity!==0){var O=d.diagram.grid.part;if(!n&&d.isTemporary)r&&O.layer===d&&(d=sc(d,i),O.gc(i,x),i.globalAlpha=d);else{for(var M=sc(d,i),Y=x.scale,ie=xt.alloc(),ce=d.Pa.s,ge=ce.length,Te=0;Te<ge;Te++){var Ve=ce[Te];(r||Ve!==O)&&d.Oj(i,Ve,x,null,Y,ie,!1)}xt.free(ie),i.globalAlpha=M}}}}}function Fe(e){var t=e.box;if(t!==null){var n=e.observed;if(n!==null){e.Fc=!0,n=n.viewportBounds;var r=t.selectionObject,i=mn.alloc();i.h(n.width,n.height),r.desiredSize=i,mn.free(i),e=2/e.scale,r instanceof hr&&(r.strokeWidth=e),t.location=new Ie(n.x-e/2,n.y-e/2),t.isSelected=!0}}}q.prototype.computeBounds=function(){var e=this.observed;if(e===null)return ds;var t=e.documentBounds.copy();return t.ed(e.viewportBounds),t},q.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},q.prototype.onViewportBoundsChanged=function(e,t,n,r){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Fe(this),this.fc.scale=n,this.fc.position.x=e.x,this.fc.position.y=e.y,this.fc.bounds.assign(e),this.fc.Oz=r,this.R("ViewportBoundsChanged",this.fc,e))},Mn.Object.defineProperties(q.prototype,{observed:{get:function(){return this.V},set:function(e){var t=this.V;if(e instanceof q&&ft("Overview.observed Diagram may not be an Overview itself: "+e),t!==e){if(t!==null&&(this.remove(this.box),t.am("ViewportBoundsChanged",this.Pf),t.am("DocumentBoundsChanged",this.Xd),t.am("InvalidateDraw",this.Ha),t.am("AnimationFinished",this.Of)),this.V=e,e!==null&&(e.Bj("ViewportBoundsChanged",this.Pf),e.Bj("DocumentBoundsChanged",this.Xd),e.Bj("InvalidateDraw",this.Ha),e.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),e===null){this.ql=null;var n=this.ta,r=this.ib;n&&r&&(r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,n.width,n.height))}else this.Ha(null),Fe(this),this.N();this.g("observed",t,e)}}},box:{get:function(){return this.j},set:function(e){var t=this.j;t!==e&&(this.j=e,this.remove(t),this.add(this.j),Fe(this),this.g("box",t,e))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(e){0>e&&(e=0),this.ia!==e&&(this.ia=e)}}}),q.className="Overview";function Ye(){Ui.call(this),this.j=null}Kn(Ye,Ui),Ye.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e===null||!e.allowMove||!e.allowSelect)return!1;var t=e.observed;if(t===null)return!1;var n=e.lastInput;return!n.left||e.currentTool!==this&&(!this.isBeyondDragSize()||n.isTouchEvent&&n.timestamp-e.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(n=t.viewportBounds,this.j=new Ie(n.width/2,n.height/2),e=e.firstInput.documentPoint,t.position=new Ie(e.x-this.j.x,e.y-this.j.y)),!0)},Ye.prototype.doActivate=function(){this.j=null,Ui.prototype.doActivate.call(this)},Ye.prototype.doUpdateCursor=function(){var e=this.diagram,t=e.box;t!==null&&t.cursor&&(e.currentCursor=t.cursor)},Ye.prototype.moveParts=function(){var e=this.diagram,t=e.observed;if(t!==null){var n=e.box;if(n!==null){if(this.j===null){var r=e.firstInput.documentPoint;n=n.location,this.j=new Ie(r.x-n.x,r.y-n.y)}e=e.lastInput.documentPoint,t.position=new Ie(e.x-this.j.x,e.y-this.j.y)}}},Ye.className="OverviewDraggingTool";function We(){Wn(this),this.H=zu,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=ds,this.hb=!0,this.cg=null,this.ob=200}We.prototype.toString=function(){return"CommandHandler"},We.prototype.Xe=function(e){this.H=e},We.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput,n=gr?t.meta:t.control,r=t.shift,i=t.alt,o=t.key;!n||o!=="C"&&o!=="Insert"?n&&o==="X"||r&&o==="Del"?this.canCutSelection()&&this.cutSelection():n&&o==="V"||r&&o==="Insert"?this.canPasteSelection()&&this.pasteSelection():n&&o==="Y"||i&&r&&o==="Backspace"?this.canRedo()&&this.redo():n&&o==="Z"||i&&o==="Backspace"?this.canUndo()&&this.undo():o==="Del"||o==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():n&&o==="A"?this.canSelectAll()&&this.selectAll():o==="Esc"?this.canStopCommand()&&this.stopCommand():o==="Up"?e.allowVerticalScroll&&(n?e.scroll("pixel","up"):e.scroll("line","up")):o==="Down"?e.allowVerticalScroll&&(n?e.scroll("pixel","down"):e.scroll("line","down")):o==="Left"?e.allowHorizontalScroll&&(n?e.scroll("pixel","left"):e.scroll("line","left")):o==="Right"?e.allowHorizontalScroll&&(n?e.scroll("pixel","right"):e.scroll("line","right")):o==="PageUp"?r&&e.allowHorizontalScroll?e.scroll("page","left"):e.allowVerticalScroll&&e.scroll("page","up"):o==="PageDown"?r&&e.allowHorizontalScroll?e.scroll("page","right"):e.allowVerticalScroll&&e.scroll("page","down"):o==="Home"?n&&e.allowVerticalScroll?e.scroll("document","up"):!n&&e.allowHorizontalScroll&&e.scroll("document","left"):o==="End"?n&&e.allowVerticalScroll?e.scroll("document","down"):!n&&e.allowHorizontalScroll&&e.scroll("document","right"):o===" "?this.canScrollToPart()&&this.scrollToPart():o==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():o==="Add"?this.canIncreaseZoom()&&this.increaseZoom():n&&o==="0"?this.canResetZoom()&&this.resetZoom():r&&o==="Z"?this.canZoomToFit()&&this.zoomToFit():n&&!r&&o==="G"?this.canGroupSelection()&&this.groupSelection():n&&r&&o==="G"?this.canUngroupSelection()&&this.ungroupSelection():o==="F2"||t.event&&t.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():o==="ContextMenu"||t.event&&t.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():t.bubbles=!0:this.canCopySelection()&&this.copySelection()},We.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},We.prototype.stopCommand=function(){var e=this.diagram,t=e.currentTool;t instanceof Fi&&e.allowSelect&&e.clearSelection(),t!==null&&t.doCancel()},We.prototype.canStopCommand=function(){return!0},We.prototype.selectAll=function(){var e=this.diagram;e.N();try{e.currentCursor="wait",e.R("ChangingSelection",e.selection);for(var t=e.parts;t.next();)t.value.isSelected=!0;for(var n=e.nodes;n.next();)n.value.isSelected=!0;for(var r=e.links;r.next();)r.value.isSelected=!0}finally{e.R("ChangedSelection",e.selection),e.currentCursor=""}},We.prototype.canSelectAll=function(){return this.diagram.allowSelect},We.prototype.deleteSelection=function(){var e=this.diagram;try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Delete"),e.R("SelectionDeleting",e.selection);for(var t=new Kt,n=e.selection.iterator;n.next();)sh(t,n.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(r){return r.canDelete()});e.Is(t,!0),e.R("SelectionDeleted",t)}finally{e.eb("Delete"),e.R("ChangedSelection",e.selection),e.currentCursor=""}},We.prototype.canDeleteSelection=function(){var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowDelete||e.selection.count===0)},We.prototype.copySelection=function(){var e=this.diagram,t=new Kt;for(e=e.selection.iterator;e.next();)sh(t,e.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(n){return n.canCopy()});this.copyToClipboard(t)},We.prototype.canCopySelection=function(){var e=this.diagram;return!!(e.allowCopy&&e.allowClipboard&&e.selection.count!==0)},We.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},We.prototype.canCutSelection=function(){var e=this.diagram;return!!(!e.isReadOnly&&!e.isModelReadOnly&&e.allowCopy&&e.allowDelete&&e.allowClipboard&&e.selection.count!==0)},We.prototype.copyToClipboard=function(e){var t=this.diagram,n=null;if(e===null)Dh=null,th="";else{n=t.model;var r=!1,i=!1,o=null;try{n.Tl()&&(r=n.Jj,n.Jj=this.copiesParentKey),n.Wj()&&(i=n.Ij,n.Ij=this.copiesGroupKey),o=t.Kj(e,null,!0)}finally{n.Tl()&&(n.Jj=r),n.Wj()&&(n.Ij=i),n=new Gt,n.addAll(o),Dh=n,th=t.model.dataFormat}}t.R("ClipboardChanged",n)},We.prototype.pasteFromClipboard=function(){var e=new Kt,t=Dh;if(t===null)return e;var n=this.diagram;if(th!==n.model.dataFormat)return e;var r=n.model,i=!1,o=!1,a=null;try{r.Tl()&&(i=r.Jj,r.Jj=this.copiesParentKey),r.Wj()&&(o=r.Ij,r.Ij=this.copiesGroupKey),a=n.Kj(t,n,!1)}finally{for(r.Tl()&&(r.Jj=i),r.Wj()&&(r.Ij=o),t=a.iterator;t.next();)n=t.value,r=t.key,n.location.w()||(r.location.w()?n.location=r.location:!n.position.w()&&r.position.w()&&(n.position=r.position)),e.add(n)}return e},We.prototype.pasteSelection=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Paste");var n=this.pasteFromClipboard();0<n.count&&t.clearSelection(!0);for(var r=n.iterator;r.next();)r.value.isSelected=!0;if(e!==null){var i=t.computePartsBounds(t.selection);if(i.w()){var o=this.computeEffectiveCollection(t.selection,t.Wm);Qc(t,o,new Ie(e.x-i.centerX,e.y-i.centerY),t.Wm,!1)}}t.R("ClipboardPasted",n)}finally{t.eb("Paste"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},We.prototype.canPasteSelection=function(){var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowClipboard||Dh===null||Dh.count===0||th!==e.model.dataFormat)},We.prototype.undo=function(){this.diagram.undoManager.undo()},We.prototype.canUndo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canUndo()},We.prototype.redo=function(){this.diagram.undoManager.redo()},We.prototype.canRedo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canRedo()},We.prototype.decreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;t.autoScale===Js&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},We.prototype.canDecreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;return t.autoScale!==Js?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},We.prototype.increaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;t.autoScale===Js&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},We.prototype.canIncreaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;return t.autoScale!==Js?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},We.prototype.resetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;e<t.minScale||e>t.maxScale||(t.scale=e)},We.prototype.canResetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;return e<t.minScale||e>t.maxScale?!1:t.allowZoom},We.prototype.zoomToFit=function(){var e=this.diagram,t=e.animationManager;t.Cc(),e.redraw();var n=e.position,r=e.scale;rs(t,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&r===this.Au&&!isNaN(this.Jt)&&e.documentBounds.D(this.yu)?(e.scale=this.Jt,e.position=this.sw,this.Au=NaN,this.yu=ds):(this.Jt=r,this.sw=n.copy(),e.zoomToFit(),this.Au=e.scale,this.yu=e.documentBounds.copy()),$a(t)},We.prototype.canZoomToFit=function(){return this.diagram.allowZoom},We.prototype.scrollToPart=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.Va(),e===null){try{this.cg!==null&&(this.cg.next()?e=this.cg.value:this.cg=null)}catch(x){this.cg=null}e===null&&(0<t.highlighteds.count?this.cg=t.highlighteds.iterator:0<t.selection.count&&(this.cg=t.selection.iterator),this.cg!==null&&this.cg.next()&&(e=this.cg.value))}if(e!==null){var n=t.animationManager;rs(n,"Scroll To Part");var r=this.scrollToPartPause;if(0<r){var i=tt(this,e,[e]);if(i.length===1)t.Ea(),t.es(e.actualBounds),t.eb("Scroll To Part");else{var o=function(){t.Ea();for(var x=i.pop();0<i.length&&x instanceof hn&&x.isTreeExpanded&&(!(x instanceof or)||x.isSubGraphExpanded);)x=i.pop();0<i.length?(x instanceof Fn&&t.tv(x.actualBounds),x instanceof hn&&!x.isTreeExpanded&&(x.isTreeExpanded=!0),x instanceof or&&!x.isSubGraphExpanded&&(x.isSubGraphExpanded=!0)):(x instanceof Fn&&t.es(x.actualBounds),t.am("LayoutCompleted",a)),t.eb("Scroll To Part")},a=function(){It(o,(n.isEnabled?n.duration:0)+r)};t.Bj("LayoutCompleted",a),o()}}else{var d=t.position.copy();t.es(e.actualBounds),d.Xa(t.position)&&n.Cc()}}};function tt(e,t,n){if(t.isVisible())return n;if(t instanceof Xr)tt(e,t.adornedPart,n);else if(t instanceof nn){var r=t.fromNode;r!==null&&tt(e,r,n),t=t.toNode,t!==null&&tt(e,t,n)}else t instanceof hn&&(r=t.labeledLink,r!==null&&tt(e,r,n),r=t.pg(),r!==null&&(r.isTreeExpanded||r.wasTreeExpanded||n.push(r),tt(e,r,n))),t=t.containingGroup,t!==null&&(t.isSubGraphExpanded||t.wasSubGraphExpanded||n.push(t),tt(e,t,n));return n}We.prototype.canScrollToPart=function(e){return e===void 0&&(e=null),e!==null&&!(e instanceof Fn)?!1:(e=this.diagram,e.selection.count===0&&e.highlighteds.count===0?!1:e.allowHorizontalScroll&&e.allowVerticalScroll)},We.prototype.collapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse Tree"),rs(t.animationManager,"Collapse Tree");var n=new Gt;if(e!==null&&e.isTreeExpanded)e.collapseTree(),n.add(e);else if(e===null)for(var r=t.selection.iterator;r.next();){var i=r.value;i instanceof hn&&i.isTreeExpanded&&(i.collapseTree(),n.add(i))}t.R("TreeCollapsed",n)}finally{t.eb("Collapse Tree")}},We.prototype.canCollapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof hn&&e.isTreeExpanded))return!1;if(0<e.Qo().count)return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof hn&&t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},We.prototype.expandTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand Tree"),rs(t.animationManager,"Expand Tree");var n=new Gt;if(e!==null&&!e.isTreeExpanded)e.expandTree(),n.add(e);else if(e===null)for(var r=t.selection.iterator;r.next();){var i=r.value;i instanceof hn&&!i.isTreeExpanded&&(i.expandTree(),n.add(i))}t.R("TreeExpanded",n)}finally{t.eb("Expand Tree")}},We.prototype.canExpandTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof hn)||e.isTreeExpanded)return!1;if(0<e.Qo().count)return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof hn&&!t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},We.prototype.groupSelection=function(){var e=this.diagram,t=e.model;if(t.Xj()){var n=this.archetypeGroupData;if(n!==null){var r=null;try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Group");for(var i=new Gt,o=e.selection.iterator;o.next();){var a=o.value;a.Zc()&&a.canGroup()&&i.add(a)}for(var d=new Gt,x=i.iterator;x.next();){var O=x.value;o=!1;for(var M=i.iterator;M.next();)if(O.Td(M.value)){o=!0;break}o||d.add(O)}if(0<d.count){var Y=d.first().containingGroup;if(Y!==null)for(;Y!==null;){i=!1;for(var ie=d.iterator;ie.next();)if(!ie.value.Td(Y)){i=!0;break}if(i)Y=Y.containingGroup;else break}if(n instanceof or)Hl(n),r=n.copy(),r!==null&&e.add(r);else if(t.Yu(n)){var ce=t.copyNodeData(n);gt(ce)&&(t.xf(ce),r=e.ii(ce))}if(r!==null){Y!==null&&this.isValidMember(Y,r)&&(r.containingGroup=Y);for(var ge=d.iterator;ge.next();){var Te=ge.value;this.isValidMember(r,Te)&&(Te.containingGroup=r)}e.clearSelection(!0),r.isSelected=!0}}e.R("SelectionGrouped",r)}finally{e.eb("Group"),e.R("ChangedSelection",e.selection),e.currentCursor=""}}}},We.prototype.canGroupSelection=function(){var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowGroup||!e.model.Xj()||this.archetypeGroupData===null)return!1;for(e=e.selection.iterator;e.next();){var t=e.value;if(t.Zc()&&t.canGroup())return!0}return!1};function Nt(e){var t=Bn();for(e=e.iterator;e.next();){var n=e.value;n instanceof nn||t.push(n)}e=new Kt,n=t.length;for(var r=0;r<n;r++){for(var i=t[r],o=!0,a=0;a<n;a++)if(i.Td(t[a])){o=!1;break}o&&e.add(i)}return wn(t),e}We.prototype.isValidMember=function(e,t){if(t===null||e===t||t instanceof nn)return!1;if(e!==null){if(e===t||e.Td(t))return!1;var n=e.memberValidation;if(n!==null&&!n(e,t)||e.data===null&&t.data!==null||e.data!==null&&t.data===null)return!1}return n=this.memberValidation,n!==null?n(e,t):!0},We.prototype.ungroupSelection=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.model;if(n.Xj())try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Ungroup");var r=new Gt;if(e!==null)r.add(e);else for(var i=t.selection.iterator;i.next();){var o=i.value;o instanceof or&&o.canUngroup()&&r.add(o)}var a=new Gt;if(0<r.count){t.clearSelection(!0);for(var d=r.iterator;d.next();){var x=d.value;x.expandSubGraph();var O=x.containingGroup,M=O!==null&&O.data!==null?n.wa(O.data):void 0;a.addAll(x.memberParts);for(var Y=a.iterator;Y.next();){var ie=Y.value;if(ie.isSelected=!0,!(ie instanceof nn)){var ce=ie.data;ce!==null?n.mp(ce,M):ie.containingGroup=O}}t.remove(x)}}t.R("SelectionUngrouped",r,a)}finally{t.eb("Ungroup"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},We.prototype.canUngroupSelection=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowDelete||!t.allowUngroup||!t.model.Xj())return!1;if(e!==null){if(!(e instanceof or))return!1;if(e.canUngroup())return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof or&&t.canUngroup())return!0;return!1},We.prototype.addTopLevelParts=function(e,t){var n=!0;for(e=Nt(e).iterator;e.next();){var r=e.value;r.containingGroup!==null&&(!t||this.isValidMember(null,r)?r.containingGroup=null:n=!1)}return n},We.prototype.collapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse SubGraph"),rs(t.animationManager,"Collapse SubGraph");var n=new Gt;if(e!==null&&e.isSubGraphExpanded)e.collapseSubGraph(),n.add(e);else if(e===null)for(var r=t.selection.iterator;r.next();){var i=r.value;i instanceof or&&i.isSubGraphExpanded&&(i.collapseSubGraph(),n.add(i))}t.R("SubGraphCollapsed",n)}finally{t.eb("Collapse SubGraph")}},We.prototype.canCollapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return!!(e instanceof or&&e.isSubGraphExpanded);for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof or&&t.isSubGraphExpanded)return!0;return!1},We.prototype.expandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand SubGraph"),rs(t.animationManager,"Expand SubGraph");var n=new Gt;if(e!==null&&!e.isSubGraphExpanded)e.expandSubGraph(),n.add(e);else if(e===null)for(var r=t.selection.iterator;r.next();){var i=r.value;i instanceof or&&!i.isSubGraphExpanded&&(i.expandSubGraph(),n.add(i))}t.R("SubGraphExpanded",n)}finally{t.eb("Expand SubGraph")}},We.prototype.canExpandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return e instanceof or&&!e.isSubGraphExpanded;for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof or&&!t.isSubGraphExpanded)return!0;return!1},We.prototype.editTextBlock=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.toolManager.findTool("TextEditing");if(n!==null){if(e===null){e=null;for(var r=t.selection.iterator;r.next();){var i=r.value;if(i.canEdit()){e=i;break}}if(e===null)return;e=e.Nl(function(o){return o instanceof zi&&o.editable})}e!==null&&(t.currentTool=null,n.textBlock=e,t.currentTool=n)}},We.prototype.canEditTextBlock=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowTextEdit||t.toolManager.findTool("TextEditing")===null)return!1;if(e!==null){if(!(e instanceof zi))return!1;if(e=e.part,e!==null&&e.canEdit())return!0}else for(t=t.selection.iterator;t.next();)if(e=t.value,e.canEdit()&&(e=e.Nl(function(n){return n instanceof zi&&n.editable}),e!==null))return!0;return!1},We.prototype.showContextMenu=function(e){var t=this.diagram,n=t.toolManager.findTool("ContextMenu");if(n!==null&&(e===void 0&&(e=0<t.selection.count?t.selection.first():t),e=n.findObjectWithContextMenu(e),e!==null)){var r=t.lastInput,i=null;e instanceof at?i=e.ga(Tr):t.viewportBounds.ca(r.documentPoint)||(i=t.viewportBounds,i=new Ie(i.x+i.width/2,i.y+i.height/2)),i!==null&&(r.viewPoint=t.op(i),r.documentPoint=i,r.left=!1,r.right=!0,r.up=!0),t.currentTool=n,No(n,!1,e)}},We.prototype.canShowContextMenu=function(e){var t=this.diagram,n=t.toolManager.findTool("ContextMenu");return n===null?!1:(e===void 0&&(e=0<t.selection.count?t.selection.first():t),n.findObjectWithContextMenu(e)!==null)},We.prototype.computeEffectiveCollection=function(e,t){var n=this.diagram,r=n.toolManager.findTool("Dragging"),i=n.currentTool===r;if(t===void 0&&(t=i?r.dragOptions:n.Wm),r=new Et,e===null)return r;for(var o=e.iterator;o.next();)Wu(n,r,o.value,i,t);if(n.draggedLink!==null&&t.dragsLink)return r;for(o=e.iterator;o.next();)e=o.value,e instanceof nn&&(t=e.fromNode,t===null||r.contains(t)?(t=e.toNode,t===null||r.contains(t)||r.remove(e)):r.remove(e));return r},Mn.Object.defineProperties(We.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(e){this.o=e}},copiesConnectedLinks:{get:function(){return this.u},set:function(e){this.u=e}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(e){this.Ha=e}},copiesTree:{get:function(){return this.ia},set:function(e){this.ia=e}},deletesTree:{get:function(){return this.nb},set:function(e){this.nb=e}},copiesParentKey:{get:function(){return this.V},set:function(e){this.V=e}},copiesGroupKey:{get:function(){return this.F},set:function(e){this.F=e}},archetypeGroupData:{get:function(){return this.j},set:function(e){this.j=e}},memberValidation:{get:function(){return this.ij},set:function(e){this.ij=e}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(e){this.diagram.defaultScale=e}},zoomFactor:{get:function(){return this.Hb},set:function(e){1<e||ft("zoomFactor must be larger than 1.0, not: "+e),this.Hb=e}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(e){this.hb=e}},scrollToPartPause:{get:function(){return this.ob},set:function(e){this.ob=e}}}),We.className="CommandHandler",lg=function(){return new We};function at(){Wn(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Ie(NaN,NaN).freeze(),this.jd=hi,this.Ab=new Zn,this.wh=new Zn,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Ho,this.uc=new xt(NaN,NaN,NaN,NaN).freeze(),this.Ib=new xt(NaN,NaN,NaN,NaN).freeze(),this.dc=new xt(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Bo,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var $t,Ut,Nn,Ln,Yn,sr,kr,yr,Hr,Ci;at.prototype.cloneProtected=function(e){e.l=this.l|6144,e.pb=this.pb,e.bn=this.bn,e.Ma=this.Ma,e.pa.assign(this.pa),e.jd=this.jd.J(),this.Lb!==null?e.Lb=this.Lb.copy():e.Lb=null,e.Ca=this.Ca,e.Kb=this.Kb,e.Kg=this.Kg.J(),e.uc.assign(this.uc),e.Ib.assign(this.Ib),e.dc.assign(this.dc),e.Yn=this.Yn,this.ba!==null&&(e.ba=this.ba.copy()),e.Jb=this.Jb.J(),e.sk=this.sk.J(),e.io=this.io,e.Ag=this.Ag,this.Ua!==null&&(e.Ua=this.Ua.copy()),this.A!==null&&(e.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(e.Dh=Hn(this.Dh)),this.tb!==null&&(e.tb=this.tb.copy())},at.prototype.Vw=function(e){var t=this.Dh;if(gn(t)){for(var n=0;n<t.length;n++)if(t[n]===e)return}else this.Dh=t=[];t.push(e)},at.prototype.Af=function(e){e.Zn=null,e.Ng=null,e.v()},at.prototype.clone=function(){var e=new this.constructor;if(this.cloneProtected(e),this.Dh!==null)for(var t=0;t<this.Dh.length;t++){var n=this.Dh[t];e[n]=this[n]}return e},at.prototype.copy=function(){return this.clone()},me=at.prototype,me.qb=function(e){e.classType===nn?e.name.indexOf("Orient")===0?this.segmentOrientation=e:ft("Unknown Link enum value for GraphObject.segmentOrientation property: "+e):e.classType===at&&(this.stretch=e)},me.toString=function(){return Ht(this.constructor)+"#"+rr(this)},me.th=function(){this.A!==null&&(this.A.nc=!0)};function vr(e){e.A===null?e.A=new pf:e.A.nc&&(e.A=e.A.copy())}me.Xc=function(){if(this.ba===null){var e=new lp;e.Xi=cr,e.yj=cr,e.Vi=10,e.wj=10,e.Wi=0,e.xj=0,this.ba=e}},me.cb=function(e,t,n,r,i,o,a){var d=this.part;if(d!==null&&(d.gk(e,t,n,r,i,o,a),n===this&&e===ji&&Ns(this)&&qi(this,d,t),o=this.diagram,this.animationTriggers===null||o===null||!o.pi||o.undoManager.isUndoingRedoing||o.animationManager.Dm||(e=this.animationTriggers.get(t),e!==null&&o.animationManager.isEnabled&&!o.animationManager.isTicking&&(this.jo===null&&(this.jo=new Et),a=o.undoManager.transactionLevel===0,e.startCondition===Xa?a=!0:e.startCondition===kh&&(a=!1),a?(o=new xn,ul(e,o),a=this.jo.get(e),a!==null&&a.stop(),this.jo.add(e,o),o.vu=this,o.Nw=e,o.add(this,t,r,i),o.start()):(rs(o.animationManager,"Trigger"),o.animationManager.defaultAnimation.add(this,t,r,i)))),this instanceof Xt&&n===d&&(d.l&16777216)!==0&&d.data!==null))for(n=this.O.s,r=n.length,i=0;i<r;i++)d=n[i],d instanceof Xt&&zh(d,function(x){x.data!==null&&x.l&16777216&&x.La(t)})};function qi(e,t,n){var r=e.ih();if(r!==null)for(var i=e.localBindings.iterator;i.next();){var o=i.value,a=null;if(o.sourceName!==null){if(a=Ub(o,r,e),a===null)continue;o.sp(e,a,n,null)}else if(o.isToModel){var d=t.diagram;d===null||d.skipsModelSourceBindings||o.sp(e,d.model.modelData,n,r)}else{if(d=r.data,d===null)continue;var x=t.diagram;x===null||x.skipsModelSourceBindings||o.sp(e,d,n,r)}a===e&&(d=r.ks(o.Ai),d!==null&&o.Mv(d,a,n))}}me.ks=function(e){return this.bindingId===e?this:null},me.g=function(e,t,n){this.cb(ji,e,this,t,n)},me.Ge=function(e,t,n,r){var i=this.uc;if(i.h(e,t,n,r),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Zn);var o=this.Lb;o.reset(),this.no(o,e,t,n,r),o.pp(i)}};function as(e,t,n,r){return e.pickable===!1?!1:(r.multiply(e.transform),n?e.Yc(t,r):e.fh(t,r))}me.tx=function(e,t,n){if(this.pickable===!1)return!1;var r=this.naturalBounds;return t=e.Bf(t),n?Sn(e.x,e.y,0,0,0,r.height)<=t||Sn(e.x,e.y,0,r.height,r.width,r.height)<=t||Sn(e.x,e.y,r.width,r.height,r.width,0)<=t||Sn(e.x,e.y,r.width,0,0,0)<=t:e.zd(0,0)<=t&&e.zd(0,r.height)<=t&&e.zd(r.width,0)<=t&&e.zd(r.width,r.height)<=t},me.se=function(){return!0},me.ca=function(e){var t=Ie.alloc();t.assign(e),this.transform.Ga(t);var n=this.actualBounds;if(!n.w())return Ie.free(t),!1;var r=this.diagram;if(r!==null&&r.wq){var i=r.Ql("extraTouchThreshold"),o=r.Ql("extraTouchArea"),a=o/2,d=this.naturalBounds;r=this.Df()*r.scale;var x=1/r;if(d.width*r<i&&d.height*r<i)return e=Vi(n.x-a*x,n.y-a*x,n.width+o*x,n.height+o*x,t.x,t.y),Ie.free(t),e}return i=!1,(this instanceof Xr||this instanceof hr?Vi(n.x-5,n.y-5,n.width+10,n.height+10,t.x,t.y):n.ca(t))&&(this.tb&&!this.tb.ca(t)?i=!1:this.areaBackground!==null&&n.ca(t)||this.Ma!==null&&this.dc.ca(e)?i=!0:i=this.gh(e)),Ie.free(t),i},me.gh=function(e){var t=this.naturalBounds;return Vi(0,0,t.width,t.height,e.x,e.y)},me.Re=function(e){if(this.angle===0)return this.actualBounds.Re(e);var t=this.naturalBounds;t=xt.allocAt(0,0,t.width,t.height);var n=this.transform,r=!1,i=Ie.allocAt(e.x,e.y);return t.ca(n.Cd(i))&&(i.h(e.x,e.bottom),t.ca(n.Cd(i))&&(i.h(e.right,e.bottom),t.ca(n.Cd(i))&&(i.h(e.right,e.y),t.ca(n.Cd(i))&&(r=!0)))),Ie.free(i),xt.free(t),r},me.fh=function(e,t){if(t===void 0)return e.Re(this.actualBounds);var n=this.naturalBounds,r=!1,i=Ie.allocAt(0,0);return e.ca(t.Ga(i))&&(i.h(0,n.height),e.ca(t.Ga(i))&&(i.h(n.width,n.height),e.ca(t.Ga(i))&&(i.h(n.width,0),e.ca(t.Ga(i))&&(r=!0)))),Ie.free(i),r},me.Yc=function(e,t){if(t===void 0&&(t=this.transform,this.angle===0))return e.Yc(this.actualBounds);var n=this.naturalBounds,r=Ie.allocAt(0,0),i=Ie.allocAt(0,n.height),o=Ie.allocAt(n.width,n.height),a=Ie.allocAt(n.width,0),d=!1;if(e.ca(t.Ga(r))||e.ca(t.Ga(i))||e.ca(t.Ga(o))||e.ca(t.Ga(a)))d=!0;else{n=xt.allocAt(0,0,n.width,n.height);var x=Ie.allocAt(e.x,e.y);n.ca(t.Cd(x))?d=!0:(x.h(e.x,e.bottom),n.ca(t.Cd(x))?d=!0:(x.h(e.right,e.bottom),n.ca(t.Cd(x))?d=!0:(x.h(e.right,e.y),n.ca(t.Cd(x))&&(d=!0)))),Ie.free(x),xt.free(n),!d&&(ht.us(e,r,i)||ht.us(e,i,o)||ht.us(e,o,a)||ht.us(e,a,r))&&(d=!0)}return Ie.free(r),Ie.free(i),Ie.free(o),Ie.free(a),d},me.ga=function(e,t){if(t===void 0&&(t=new Ie),e instanceof an){var n=this.naturalBounds;t.h(e.x*n.width+e.offsetX,e.y*n.height+e.offsetY)}else t.set(e);return this.oe.Ga(t),t},me.mi=function(e){e===void 0&&(e=new xt);var t=this.naturalBounds,n=this.oe,r=Ie.allocAt(0,0).transform(n);return e.h(r.x,r.y,0,0),r.h(t.width,0).transform(n),Jr(e,r.x,r.y,0,0),r.h(t.width,t.height).transform(n),Jr(e,r.x,r.y,0,0),r.h(0,t.height).transform(n),Jr(e,r.x,r.y,0,0),Ie.free(r),e},me.li=function(){var e=this.oe;return e.m11===1&&e.m12===0?e=0:(e=180*Math.atan2(e.m12,e.m11)/Math.PI,0>e&&(e+=360)),e},me.Df=function(){if(!(this.l&4096))return this.Kk;var e=this.Ca;return this.panel!==null?e*this.panel.Df():e},me.qs=function(e,t){return t===void 0&&(t=new Ie),t.assign(e),this.oe.Cd(t),t},me.rs=function(e,t,n){return this.Sj(e.x,e.y,t.x,t.y,n)},me.Sj=function(e,t,n,r,i){var o=this.transform,a=1/(o.m11*o.m22-o.m12*o.m21),d=o.m22*a,x=-o.m12*a,O=-o.m21*a,M=o.m11*a,Y=a*(o.m21*o.dy-o.m22*o.dx),ie=a*(o.m12*o.dx-o.m11*o.dy);return this.areaBackground!==null?(o=this.actualBounds,ht.Ff(o.left,o.top,o.right,o.bottom,e,t,n,r,i)):(a=e*d+t*O+Y,e=e*x+t*M+ie,t=n*d+r*O+Y,n=n*x+r*M+ie,i.h(0,0),r=this.naturalBounds,n=ht.Ff(0,0,r.width,r.height,a,e,t,n,i),i.transform(o),n)},at.prototype.measure=function(e,t,n,r){if(fl(this)!==!1){var i=this.Kg,o=i.right+i.left;i=i.top+i.bottom,e=Math.max(e-o,0),t=Math.max(t-i,0),n=Math.max((n||0)-o,0),r=Math.max((r||0)-i,0),o=this.angle,i=this.desiredSize;var a=this.kq();o===90||o===270?(e=isFinite(i.height)?i.height+a:e,t=isFinite(i.width)?i.width+a:t):(e=isFinite(i.width)?i.width+a:e,t=isFinite(i.height)?i.height+a:t),i=n||0,a=r||0;var d=this instanceof Xt;switch(Aa(this,!0)){case Ut:a=i=0,d&&(t=e=1/0);break;case $t:isFinite(e)&&e>n&&(i=e),isFinite(t)&&t>r&&(a=t);break;case Ln:isFinite(e)&&e>n&&(i=e),a=0,d&&(t=1/0);break;case Yn:isFinite(t)&&t>r&&(a=t),i=0,d&&(e=1/0)}d=this.maxSize;var x=this.minSize;i>d.width&&x.width<d.width&&(i=d.width),a>d.height&&x.height<d.height&&(a=d.height),n=Math.max(i,x.width),r=Math.max(a,x.height),d.width<n&&(n=Math.min(x.width,n)),d.height<r&&(r=Math.min(x.height,r)),e=Math.min(d.width,e),t=Math.min(d.height,t),e=Math.max(n,e),t=Math.max(r,t),(o===90||o===270)&&(o=e,e=t,t=o,o=n,n=r,r=o),this.uc.ka(),this.Wl(e,t,n,r),this.uc.freeze(),this.uc.w()||ft("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Vo(this,!1)}},at.prototype.Wl=function(){},at.prototype.Dd=function(){return!1},at.prototype.arrange=function(e,t,n,r,i){this.Uk();var o=xt.alloc();o.assign(this.Ib),this.Ib.ka(),ca(this)===!1?this.Ib.h(e,t,n,r):this.eh(e,t,n,r),this.Ib.freeze(),i===void 0?this.tb=null:this.tb=i,n=!1,i!==void 0?n=!0:(i=this.panel,i!==null&&Ic(i)&&(i=i.panel),i!==null&&(i=i.dc,r=this.measuredBounds,this.areaBackground!==null&&(r=this.Ib),n=t+r.height,r=e+r.width,n=!(0<=e+.05&&r<=i.width+.05&&0<=t+.05&&n<=i.height+.05),this instanceof zi&&(e=this.naturalBounds,this.Lq>e.height||this.Cb>e.width))&&(n=!0)),this.l=n?this.l|256:this.l&-257,this.Ib.w()||ft("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(o,this.Ib),Vu(this,!1),xt.free(o)},me=at.prototype,me.eh=function(){};function Qs(e,t,n,r,i){if(e.Ib.h(t,n,r,i),!e.desiredSize.w()){var o=e.uc;n=e.Kg,t=n.right+n.left;var a=n.top+n.bottom;switch(n=o.width+t,o=o.height+a,r+=t,i+=a,t=Aa(e,!0),n===r&&o===i&&(t=Ut),t){case Ut:(n>r||o>i)&&(Vo(e,!0),e.measure(n>r?r:n,o>i?i:o,0,0));break;case $t:Vo(e,!0),e.measure(r,i,0,0);break;case Ln:Vo(e,!0),e.measure(r,o,0,0);break;case Yn:Vo(e,!0),e.measure(n,i,0,0)}}}me.Xl=function(e,t){var n=this.part;n!==null&&n.diagram!==null&&(n.selectionObject!==this&&n.resizeObject!==this&&n.rotateObject!==this||Zv(n,!0),this.N(),ii(e,t)||(n.oh(),this.Pn(n)))},me.Pn=function(e){this.portId!==null&&(Zv(e,!0),e instanceof hn&&rb(e,this))},me.gc=function(e,t){if(!El(this,e,t)&&this.visible){var n=this.opacity;if(n!==0){var r=1;n!==1&&(r=e.globalAlpha,e.globalAlpha=r*n);var i="";this.filter!==""&&(i=e.filter,e.filter=this.filter);var o=this instanceof Xt&&Ic(this),a=this.Ib;if(o){var d=this.Ib,x=this.dc,O=this.areaBackground,M=this.Ma;O===null&&M===null||e.yc(),O!==null&&(bo(this,e,O,!0,!0,x,d),O instanceof di&&O.type===_l?(e.beginPath(),e.rect(d.x,d.y,d.width,d.height),e.ng(O)):e.fillRect(d.x,d.y,d.width,d.height)),M!==null&&(bo(this,e,M,!0,!1,x,d),M instanceof di&&M.type===_l?(e.beginPath(),e.rect(d.x,d.y,d.width,d.height),e.ng(M)):e.fillRect(d.x,d.y,d.width,d.height)),this.hh(e,t)}if(!o&&(o||a.width!==0&&a.height!==0&&!isNaN(a.x)&&!isNaN(a.y))){o=this.transform,d=this.panel,this.l&4096&&ws(this),O=this.part,x=!1;var Y=0;O&&t.Gf("drawShadows")&&(x=O.isShadowed)&&(M=O.shadowOffset,Y=Math.max(M.y,M.x)*t.scale*t.Mb),M=this.Dd();var ie;if(!(ie=t.$i||!M)){var ce=this.naturalBounds;ie=this.wh;var ge=ie.m11,Te=ie.m21,Ve=ie.dx,He=ie.m12,Xe=ie.m22,Ze=ie.dy,qe,st=qe=0;ie=qe*ge+st*Te+Ve;var yt=qe*He+st*Xe+Ze;qe=ce.width+Y,st=0;var un=qe*ge+st*Te+Ve;qe=qe*He+st*Xe+Ze,st=Math.min(ie,un);var kn=Math.min(yt,qe),En=Math.max(ie+0,un)-st,tn=Math.max(yt+0,qe)-kn;ie=st,yt=kn,qe=ce.width+Y,st=ce.height+Y,un=qe*ge+st*Te+Ve,qe=qe*He+st*Xe+Ze,st=Math.min(ie,un),kn=Math.min(yt,qe),En=Math.max(ie+En,un)-st,tn=Math.max(yt+tn,qe)-kn,ie=st,yt=kn,qe=0,st=ce.height+Y,un=qe*ge+st*Te+Ve,qe=qe*He+st*Xe+Ze,st=Math.min(ie,un),kn=Math.min(yt,qe),En=Math.max(ie+En,un)-st,tn=Math.max(yt+tn,qe)-kn,ie=st,yt=kn,Y=t.viewportBounds,ce=Y.x,ge=Y.y,ie=!(ie>Y.width+ce||ce>En+ie||yt>Y.height+ge||ge>tn+yt)}if(ie){if(ie=(this.l&256)!==0,e.clipInsteadOfFill&&(ie=!1),this instanceof zi&&(e.font=this.font),ie){if(yt=d.se()?d.naturalBounds:d.actualBounds,En=Math.max(a.x,yt.x),tn=Math.max(a.y,yt.y),Y=Math.min(a.right,yt.right)-En,ce=Math.min(a.bottom,yt.bottom)-tn,ge=this.tb,ge!==null&&(En=ge.x,tn=ge.y,Y=ge.width,ce=ge.height),En>a.width+a.x||a.x>yt.width+yt.x){n!==1&&(e.globalAlpha=r),this.filter!==""&&(e.filter=i);return}e.save(),e.beginPath(),e.rect(En,tn,Y,ce),e.clip()}if(M){if(!O.isVisible()){n!==1&&(e.globalAlpha=r),this.filter!==""&&(e.filter=i);return}x&&(yt=O.shadowOffset,e.Ev(yt.x*t.scale*this.scale*t.Mb,yt.y*t.scale*this.scale*t.Mb,O.shadowBlur),lc(e),e.shadowColor=O.shadowColor)}x&&this.shadowVisible===!0?lc(e):x&&this.shadowVisible===!1&&Ku(e),O=this.naturalBounds,this.areaBackground!==null&&(e.yc(),hl(this,e,O,a)),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),x&&ys(this,d)&&this.shadowVisible===null&&Ku(e),this.Ma!==null&&(e.yc(),Fa(this,e,O,a)),x&&(this.Ma!==null||this.areaBackground!==null||ys(this,d))?(ou(this,!0),this.shadowVisible===null&&Ku(e)):ou(this,!1),this.hh(e,t),x&&this.l&512&&lc(e),M&&x&&Ku(e),ie&&(e.restore(),e.Vc(this instanceof Xt)),o.ws()||(t=1/(o.m11*o.m22-o.m12*o.m21),e.transform(o.m22*t,-o.m12*t,-o.m21*t,o.m11*t,t*(o.m21*o.dy-o.m22*o.dx),t*(o.m12*o.dx-o.m11*o.dy)))}}n!==1&&(e.globalAlpha=r),this.filter!==""&&(e.filter=i)}}};function ys(e,t){return t===null?!1:(Ic(t)&&(t=t.panel),(t.l&512)!==0||(t.type===Xt.Auto||t.type===Xt.Spot)&&t.Pb()!==e)}me.Dv=function(){};function hl(e,t,n,r){bo(e,t,e.areaBackground,!0,!0,n,r),e.areaBackground instanceof di&&e.areaBackground.type===_l?(t.beginPath(),t.rect(r.x,r.y,r.width,r.height),t.ng(e.areaBackground)):t.fillRect(r.x,r.y,r.width,r.height)}function Fa(e,t,n,r){var i=e.kq(),o=n.x,a=n.y,d=n.width+i,x=n.height+i;bo(e,t,e.Ma,!0,!1,n,r),e.Ma instanceof di&&e.Ma.type===_l?(t.beginPath(),t.rect(o-i/2,a-i/2,d,x),t.ng(e.Ma)):t.fillRect(o-i/2,a-i/2,d,x)}function Ws(e,t,n){for(var r=t.O.s,i=r.length,o=-1,a=0;a<i;a++)if(r[a]===e){o=a;break}if(e=o,e!==-1)if(e===0)t.svg.gd?t.svg.gd.after(n):t.svg.Ma?t.svg.Ma.after(n):t.type===Xt.Table?(t=t.svg.getElementsByClassName("gojs-ts"),t=t.length!==0?t[0]:null,t!==null&&t.after(n)):t.svg.prepend(n);else{for(;e!==0&&!t.M(e-1).Ed();)e--;e===0?t.svg.prepend(n):(e=t.M(e-1).svg,e!==null?e.after(n):t.svg.appendChild(n))}}function El(e,t,n){if(!(t instanceof Za))return!1;if(!e.visible||e.opacity===0||e.Dd()&&!e.isVisible())return e.svg!==null&&e.svg.parentNode!==null&&e.svg.remove(),!0;var r=e.panel,i=e.nk(t);if(e.kk(t,n,i))return e.svg.parentElement!==null?(e.Dd()&&(t.ti=e.svg),!0):(e.Dd()?(t.ti!==null?t.ti.after(e.svg):t.Nj.prepend(e.svg),t.ti=e.svg):r&&Ws(e,r,e.svg),!0);if(e.Dd()&&e.isShadowed){var o=e.shadowOffset;t.Ev(o.x*n.scale*e.scale*n.Mb,o.y*n.scale*e.scale*n.Mb,e.shadowBlur),lc(t),t.shadowColor=e.shadowColor}e instanceof zi&&(t.font=e.font),t.yd=null;var a=e.transform;o=e instanceof Xt;var d=e instanceof Xt?Ic(e):!1;e.l&4096&&ws(e);var x=e.Ib;if(t.rb.ha=[1,0,0,1,0,0],t.o=!1,i&&(t.o=!0,o&&d?(up(t,1,0,0,1,0,0),e.svg=t.ad):o?(up(t,a.m11,a.m12,a.m21,a.m22,a.dx,a.dy),e.svg=t.ad):up(t,1,0,0,1,0,0)),i=e.naturalBounds,e.areaBackground!==null){var O=a.copy().Vj();t.rb.ha=[O.m11,O.m12,O.m21,O.m22,O.dx,O.dy],hl(e,t,i,x),t.rb.ha=[1,0,0,1,0,0],t.yd.gd=t.ad,t.yd.prepend(t.ad)}return o||(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),e.background!==null&&(o?(d&&(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),Fa(e,t,i,x),d&&(t.rb.ha=[1,0,0,1,0,0])):(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],Fa(e,t,i,x)),t.yd.Ma=t.ad,t.yd.prepend(t.ad)),a=t.yd,i=e.part,d=!1,i&&n.Gf("drawShadows")&&(d=i.isShadowed),t.clipInsteadOfFill&&(d=!1),e.Dd()&&d&&lc(t),d&&e.shadowVisible===!0?lc(t):d&&e.shadowVisible===!1&&Ku(t),i=e.panel,d&&ys(e,i)&&e.shadowVisible===null&&Ku(t),t.Il&&(O=n.computePixelRatio(),O="drop-shadow("+t.shadowOffsetX/O+"px "+t.shadowOffsetY/O+"px "+t.shadowBlur/O/2+"px "+t.shadowColor+")",e.background!==null&&a.Ma.setAttributeNS(null,"filter",O),e.areaBackground!==null&&a.gd.setAttributeNS(null,"filter",O)),d&&(e.Ma!==null||e.areaBackground!==null||ys(e,i))?(ou(e,!0),e.shadowVisible===null&&Ku(t)):ou(e,!1),i=d,e.hh(t,n),o&&t.nh.pop(),t.o&&t.nh.pop(),a=t.Gv.hs,d=o?e.svg:t.yd,O=e.svg,!o&&O!==null&&d!==O&&O.parentNode===e.panel.svg?(e.svg.replaceWith(d),e.svg=d,d!==null&&e.$o(t,r,x,d),_a(t,O),!0):(e.svg=d,a!==null&&d===null&&(Eg(t),t.nh.pop()),d===null||(e.$o(t,r,x,d),t.Il&&(n=n.computePixelRatio(),e.Dv(d,"drop-shadow("+t.shadowOffsetX/n+"px "+t.shadowOffsetY/n+"px "+t.shadowBlur/n/2+"px "+t.shadowColor+")")),i&&e.l&512&&lc(t),e.Dd()&&Ku(t),n=e.Dd()?e.opacity*t.globalAlpha:e.opacity,n!==1&&d.setAttributeNS(null,"opacity",n.toString()),e.filter!==""&&d.setAttributeNS(null,"filter",e.filter),e.Dd()?(t.ti?t.ti.after(d):t.Nj.prepend(d),t.ti=d):r!==null&&Ws(e,r,d),a!==null&&a(e,d)),!0)}me.$o=function(e,t,n,r){var i=(this.l&256)!==0;if(e.clipInsteadOfFill&&(i=!1),i){var o=t.se()?t.naturalBounds:t.actualBounds;t=Math.max(n.x,o.x),i=Math.max(n.y,o.y);var a=Math.min(n.right,o.right)-t;n=Math.min(n.bottom,o.bottom)-i,o=this.tb,o!==null&&(t=o.x,i=o.y,a=o.width,n=o.height),o=r.getAttribute("clip-path");var d=null;o!==null&&(d=e.svg.getElementById(o.split("#")[1].slice(0,-1))),d===null?(o="CLIP"+Di++,d=e.Ud("clipPath",{id:o}),t=e.Ud("rect",{x:t,y:i,width:a,height:n}),this instanceof Xt&&(i=this.transform.copy().Vj(),t.setAttribute("transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")")),d.appendChild(t),e.svg.appendChild(d),r.setAttributeNS(null,"clip-path","url(#"+o+")")):(e=d.firstElementChild,e.setAttribute("x",t.toString()),e.setAttribute("y",i.toString()),e.setAttribute("width",a.toString()),e.setAttribute("height",n.toString()))}else r.removeAttributeNS(null,"clip-path"),_a(e,r)};function _a(e,t){t=t.getAttribute("clip-path"),t!==null&&(e=e.svg.getElementById(t.split("#")[1].slice(0,-1)),e!==null&&e.remove())}function Vs(e){if(e.svg!==null){var t=e.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),n=e.svg.ownerDocument;if(t!==null){t=Cn(t);for(var r=t.next();!r.done;r=t.next())r=n.getElementById(r.value.split("#")[1].slice(0,-1)),r!==null&&r.remove()}e.svg.remove()}}me.hh=function(){},me.lv=function(){this.Uc=!0},me.kk=function(e,t,n){if(this.Uc)return this.lv(),this.Uc=!1;if(t=this.svg,t===null)return!1;if(!this.visible)return t.remove(),!1;if(t.nodeName!=="g"&&n||t.nodeName==="g"&&!n)return!1;var r=this.transform,i=this instanceof Xt?Ic(this):!1;if(!(this instanceof Xt&&i))if(this instanceof Na){var o=this.bt;e.rb.ha=[r.m11,r.m12,r.m21,r.m22,r.dx,r.dy],o!==null&&u0(e,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7]),n?t.lastElementChild.setAttributeNS(null,"transform",c0(e)):t.setAttributeNS(null,"transform",c0(e))}else if(!n||this instanceof Xt)t.setAttributeNS(null,"transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")");else if(this instanceof hr){o=t.getElementsByTagName("path");for(var a=0;a<o.length;a++)o[a].setAttributeNS(null,"transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")")}else t.lastElementChild.setAttributeNS(null,"transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")");return o=this.Dd()?this.opacity*e.globalAlpha:this.opacity,o===1?t.removeAttribute("opacity"):t.setAttributeNS(null,"opacity",o.toString()),e.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||t.gd!==void 0)&&(o=t.gd,this.areaBackground===null?(t.gd.remove(),t.gd=void 0):(a=r.copy().Vj(),e.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],hl(this,e,this.naturalBounds,this.actualBounds),e.rb.ha=[1,0,0,1,0,0],t.gd?(a=t.gd.getAttribute("filter"),a!==null&&e.ad.setAttribute("filter",a),t.gd.replaceWith(e.ad)):t.prepend(e.ad),t.gd=e.ad),o&&Cg(e,o)),(this.background!==null||t.Ma!==void 0)&&(o=t.Ma,this.background===null?(Cg(e,t.Ma),t.Ma.remove(),t.Ma=void 0):((i||n&&!(this instanceof Xt))&&(e.rb.ha=[r.m11,r.m12,r.m21,r.m22,r.dx,r.dy]),Fa(this,e,this.naturalBounds,this.actualBounds),t.Ma?(Cg(e,t.Ma),n=t.Ma.getAttribute("filter"),n!==null&&e.ad.setAttribute("filter",n),t.Ma.replaceWith(e.ad)):t.prepend(e.ad),t.Ma=e.ad),o&&Cg(e,o)),this.$o(e,this.panel,this.actualBounds,t),!0},me.nk=function(e){if(this.background!==null||this.areaBackground!==null)return!0;var t=(this.l&256)!==0;return e.clipInsteadOfFill&&(t=!1),!!t};function bo(e,t,n,r,i,o,a){if(n!==null){var d=1,x=1;if(typeof n=="string")r?t.fillStyle=n:t.strokeStyle=n;else if(n.type===Nc)r?t.fillStyle=n.color:t.strokeStyle=n.color;else{var O=e.kq();if(d=o.width,x=o.height,i?(d=a.width,x=a.height):r||(d+=O,x+=O),(o=t instanceof Hh)&&n.xe&&(n.type===nd||n.yk===d&&n.ft===x))var M=n.xe;else{var Y=0,ie=0,ce=0,ge=0,Te=0,Ve=0;if(Ve=Te=0,i?(Te=a.x,Ve=a.y):r||(Te-=O/2,Ve-=O/2),Y=n.start.x*d+n.start.offsetX,ie=n.start.y*x+n.start.offsetY,ce=n.end.x*d+n.end.offsetX,ge=n.end.y*x+n.end.offsetY,Y+=Te,ce+=Te,ie+=Ve,ge+=Ve,n.type===cc)M=t.createLinearGradient(Y,ie,ce,ge);else if(n.type===_l)Ve=isNaN(n.endRadius)?Math.max(d,x)/2:n.endRadius,isNaN(n.startRadius)?(Te=0,Ve=Math.max(d,x)/2):Te=n.startRadius,M=t.createRadialGradient(Y,ie,Te,ce,ge,Ve);else if(n.type===nd)try{M=t.createPattern(n.pattern,"repeat")}catch(Xe){M=null}if(n.type!==nd&&(i=n.colorStops,i!==null))for(i=i.iterator;i.next();)M.addColorStop(i.key,i.value);if(o&&(n.xe=M,M!==null&&(n.yk=d,n.ft=x),M===null&&n.type===nd&&n.yk!==-1)){n.yk=-1;var He=e.diagram;He!==null&&n.yk===-1&&It(function(){He.redraw()},600)}}r?t.fillStyle=M:t.strokeStyle=M}}}me.rg=function(e){if(e instanceof Xt)e:{if(this!==e&&e!==null)for(var t=this.panel;t!==null;){if(t===e){e=!0;break e}t=t.panel}e=!1}else e=!1;return e},me.Ed=function(){if(!this.visible)return!1;var e=this.panel;return e!==null?e.Ed():!0},me.If=function(){for(var e=this instanceof Xt?this:this.panel;e!==null&&e.isEnabled;)e=e.panel;return e===null};function ws(e){if(e.l&2048){var t=e.Ab;if(t.reset(),!e.Ib.w()||!e.uc.w()){jl(e,!1);return}if(t.translate(e.Ib.x-e.uc.x,e.Ib.y-e.uc.y),e.scale!==1||e.angle!==0){var n=e.naturalBounds;e.no(t,n.x,n.y,n.width,n.height)}jl(e,!1),Cl(e,!0)}e.l&4096&&(t=e.panel,t===null?(e.wh.set(e.Ab),e.Kk=e.scale,Cl(e,!1)):t.oe!==null&&(n=e.wh,n.reset(),t.se()?n.multiply(t.wh):t.panel!==null&&n.multiply(t.panel.wh),n.multiply(e.Ab),e.Kk=e.scale*t.Kk,Cl(e,!1)))}me.no=function(e,t,n,r,i){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=Ie.alloc();o.yi(t,n,r,i,Tr),e.rotate(this.Kb,o.x,o.y),Ie.free(o)}},me.v=function(e){if(!fl(this)){e===void 0&&(e=!1),Vo(this,!0),Vu(this,!0);var t=this.panel;t===null||e||t.v()}},me.Uj=function(){fl(this)||(Vo(this,!0),Vu(this,!0))};function ua(e){if(!ca(e)){var t=e.panel;t!==null?t.v():e.Dd()&&(t=e.diagram,t!==null&&(t.De.add(e),e instanceof hn&&e.Bd(),t.$b())),Vu(e,!0)}}me.Uk=function(){!(this.l&2048)&&(jl(this,!0),Cl(this,!0))},me.Wu=function(){Cl(this,!0)},me.N=function(){var e=this.part;e!==null&&e.N()};function Aa(e,t){var n=e.stretch,r=e.panel;return r!==null&&r.type===Xt.Table?bu(e,r.Fb(e.row),r.Eb(e.column),t):r!==null&&r.type===Xt.Auto&&r.Pb()===e?bs(e,$t,t):n===sr?r!==null?r.type===Xt.Spot&&r.Pb()===e?bs(e,$t,t):(n=r.defaultStretch,n===sr?bs(e,Ut,t):bs(e,n,t)):bs(e,Ut,t):bs(e,n,t)}function bu(e,t,n,r){var i=e.stretch;if(i!==sr)return bs(e,i,r);var o=i=null;switch(t.stretch){case Yn:o=!0;break;case $t:o=!0}switch(n.stretch){case Ln:i=!0;break;case $t:i=!0}return t=e.panel.defaultStretch,i===null&&(i=t===Ln||t===$t),o===null&&(o=t===Yn||t===$t),i===!0&&o===!0?bs(e,$t,r):i===!0?bs(e,Ln,r):o===!0?bs(e,Yn,r):bs(e,Ut,r)}function bs(e,t,n){if(n)return t;if(t===Ut||(n=e.desiredSize,n.w()))return Ut;if(e=e.angle,!isNaN(n.width))if(e!==90&&e!==270){if(t===Ln)return Ut;if(t===$t)return Yn}else{if(t===Yn)return Ut;if(t===$t)return Ln}if(!isNaN(n.height))if(e!==90&&e!==270){if(t===Yn)return Ut;if(t===$t)return Ln}else{if(t===Ln)return Ut;if(t===$t)return Yn}return t}function ou(e,t){e.l=t?e.l|512:e.l&-513}function Ns(e){return(e.l&1024)!==0}function df(e,t){e.l=t?e.l|1024:e.l&-1025}function jl(e,t){e.l=t?e.l|2048:e.l&-2049}function Cl(e,t){e.l=t?e.l|4096:e.l&-4097}function fl(e){return(e.l&8192)!==0}function Vo(e,t){e.l=t?e.l|8192:e.l&-8193}function ca(e){return(e.l&16384)!==0}function Vu(e,t){e.l=t?e.l|16384:e.l&-16385}me.Gj=function(){this.svg=null},me.wi=function(e){this.Me=e,this.svg!==null&&this.svg.remove()},me.Av=function(){},me.zv=function(e){return this.pa=e,ua(this),!0},me.mm=function(e,t){(this.pa.x!==e||this.pa.y!==t)&&(this.pa.h(e,t),this.Uk())},me.kq=function(){return 0};function jh(e){var t=e.part;if(t instanceof hn&&(e.portId!==null||e===t.port)){var n=t.diagram;n===null||n.undoManager.isUndoingRedoing||rb(t,e)}}function a0(e){var t=e.diagram;t===null||t.undoManager.isUndoingRedoing||(e instanceof Xt?e instanceof hn?e.Bd():e.qm(e,function(n){jh(n)}):jh(e))}me.bind=function(e,t,n,r){var i=null;return typeof e=="string"?i=new Do(e,t,n,r):i=e,i.xd=this,e=this.ih(),e!==null&&_0(e)&&ft("Cannot add a Binding to a template that has already been copied: "+i),this.localBindings===null&&(this.localBindings=new Gt),this.localBindings.add(i),this},me.set=function(e){return Object.assign(this,e),this},me.Du=function(e){return pv(this,e),this},me.apply=function(e){return e(this),this},me.nm=function(e){return Rh(this,e),this},me.pz=function(){return this.ih()},me.ih=function(){for(var e=this instanceof Xt?this:this.panel;e!==null;){if(e.allBindings!==null)return e;e=e.panel}return null},me.Jv=function(e){return e.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Et),this.animationTriggers.add(e.propertyName,e),this};function Tl(e,t){for(var n=1;n<arguments.length;++n);n=arguments;var r=null,i=null;if(typeof e=="function")i=e;else if(typeof e=="string"){var o=Zf.I(e);typeof o=="function"?(n=Hn(arguments),r=o(n),gt(r)||ft('GraphObject.make invoked object builder "'+e+'", but it did not return an Object')):i=pn.go[e]}if(r===null&&(i!=null&&i.constructor||ft("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+e),r=new i),i=1,r instanceof bt&&1<n.length){o=r;var a=n[1];(typeof a=="string"||a instanceof HTMLDivElement)&&(Fd(o,a),i++)}for(;i<n.length;i++)o=n[i],o===void 0?ft("Undefined value at argument "+i+" for object being constructed by GraphObject.make: "+r):pv(r,o);return r}function pv(e,t){if(typeof t=="string")if(e instanceof zi)e.text=t;else if(e instanceof hr)e.figure=t;else if(e instanceof Na)e.source=t;else if(e instanceof Xt)t=su.I(t),t!==null&&(e.type=t);else if(e instanceof di){var n=Ji(di,t);n!==null?e.type=n:ft("Unknown Brush type as an argument to GraphObject.make: "+t)}else e instanceof qt?(t=Ji(qt,t),t!==null&&(e.type=t)):e instanceof Mr&&(t=Ji(Mr,t),t!==null&&(e.type=t));else if(t instanceof at)e instanceof Xt||ft("A GraphObject can only be added to a Panel, not to: "+e),e.add(t);else if(t instanceof Ko){var r;t.isRow&&typeof e.getRowDefinition=="function"?r=e.getRowDefinition(t.index):t.isRow||typeof e.getColumnDefinition!="function"||(r=e.getColumnDefinition(t.index)),r instanceof Ko?Ug(r,t):ft("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+e)}else if(t instanceof Dt)typeof e.qb=="function"&&e.qb(t);else if(t instanceof Zo)e.type=t;else if(t instanceof Do)e instanceof at||e instanceof Ko?e.bind(t):ft("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+e);else if(t instanceof Ca)e instanceof at?e.Jv(t):ft("An AnimationTrigger can only be applied to a GraphObject, not to: "+e);else if(t instanceof To)e instanceof qt&&e.type===qt.o?e.figures.add(t):ft("A PathFigure can only be added to a Path Geometry, not to: "+e);else if(t instanceof Mr)e instanceof To?e.segments.add(t):ft("A PathSegment can only be added to a PathFigure, not to: "+e);else if(t instanceof ao)e instanceof bt||e instanceof or?e.layout=t:ft("A Layout can only be assigned to a Diagram or a Group, not to: "+e);else if(Array.isArray(t))for(n=0;n<t.length;n++)pv(e,t[n]);else if(typeof t=="object"&&t!==null)if(e instanceof di){n=new oi;for(var i in t)r=parseFloat(i),isNaN(r)?n[i]=t[i]:e.addColorStop(r,t[i]);Rh(e,n)}else if(e instanceof Ko){t.row!==void 0?(i=t.row,(i==null||i===1/0||isNaN(i)||0>i)&&ft("Must specify non-negative integer row for RowColumnDefinition "+t+", not: "+i),e.isRow=!0,e.index=i):t.column!==void 0&&(i=t.column,(i==null||i===1/0||isNaN(i)||0>i)&&ft("Must specify non-negative integer column for RowColumnDefinition "+t+", not: "+i),e.isRow=!1,e.index=i),i=new oi;for(n in t)n!=="row"&&n!=="column"&&(i[n]=t[n]);Rh(e,i)}else Rh(e,t);else ft('Unknown initializer "'+t+'" for object being constructed by GraphObject.make: '+e)}function kc(e,t){Zf.add(e,t)}function wg(e,t,n){n===void 0&&(n=null);var r=e[1];if(typeof n=="function"?n(r):typeof r=="string")return e.splice(1,1),r;if(t===void 0)throw Error("no "+(typeof n=="function"?"satisfactory":"string")+" argument for GraphObject builder "+e[0]);return t}Mn.Object.defineProperties(at.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(e){this.bindingId!==e&&(this.A===null&&(this.A=new pf),this.A.zp=e)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(e){this.localBindings!==e&&(this.A===null&&(this.A=new pf),this.A.te=e)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(e){this.srcBindings!==e&&(this.A===null&&(this.A=new pf),this.A.wm=e)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(e){var t=this.shadowVisible;t!==e&&(vr(this),this.A.Ci=e,this.Uc=!0,this.N(),this.g("shadowVisible",t,e))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(e){var t=this.enabledChanged;t!==e&&(vr(this),this.A.Hb=e,this.g("enabledChanged",t,e))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:da},set:function(e){var t=this.segmentOrientation;t!==e&&(this.Ua===null&&(this.Ua=new rh),this.Ua.rr=e,this.v(),this.g("segmentOrientation",t,e),e===da&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(e){e=Math.round(e);var t=this.segmentIndex;t!==e&&(this.Ua===null&&(this.Ua=new rh),this.Ua.u=e,this.v(),this.g("segmentIndex",t,e))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(e){isNaN(e)||0>e?e=0:1<e&&(e=1);var t=this.segmentFraction;t!==e&&(this.Ua===null&&(this.Ua=new rh),this.Ua.o=e,this.v(),this.g("segmentFraction",t,e))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:cn},set:function(e){var t=this.segmentOffset;t.D(e)||(e=e.J(),this.Ua===null&&(this.Ua=new rh),this.Ua.F=e,this.v(),this.g("segmentOffset",t,e))}},stretch:{get:function(){return this.A!==null?this.A.hg:sr},set:function(e){var t=this.stretch;t!==e&&(vr(this),this.A.hg=e,this.v(),this.g("stretch",t,e))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(e){var t=this.name;t!==e&&(vr(this),this.A.xa=e,this.part!==null&&(this.part.Rh=null),this.g("name",t,e))}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&An(e,"0 <= value <= 1",at,"opacity"),this.pb=e,this.g("opacity",t,e),e=this.diagram,t=this.part,e!==null&&t!==null&&e.N(Vh(t,t.actualBounds)))}},filter:{get:function(){return this.bn},set:function(e){var t=this.bn;t!==e&&(this.bn=e,this.Uc=!0,this.g("filter",t,e),e=this.diagram,t=this.part,e!==null&&t!==null&&e.N(Vh(t,t.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(e){var t=(this.l&1)!==0;t!==e&&(this.l^=1,this.g("visible",t,e),t=this.panel,t!==null?t.v():this.Dd()&&this.Zb(e),this.N(),a0(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(e){var t=(this.l&2)!==0;t!==e&&(this.l^=2,this.g("pickable",t,e))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(e){var t=(this.l&4)!==0;t!==e&&(this.l^=4,this.g("fromLinkableDuplicates",t,e))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(e){var t=(this.l&8)!==0;t!==e&&(this.l^=8,this.g("fromLinkableSelfNode",t,e))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(e){var t=(this.l&16)!==0;t!==e&&(this.l^=16,this.g("toLinkableDuplicates",t,e))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(e){var t=(this.l&32)!==0;t!==e&&(this.l^=32,this.g("toLinkableSelfNode",t,e))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(e){var t=(this.l&64)!==0;t!==e&&(this.l^=64,this.v(),this.g("isPanelMain",t,e))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(e){var t=(this.l&128)!==0;t!==e&&(this.l^=128,this.g("isActionable",t,e))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(e){var t=this.areaBackground;t!==e&&(e!==null&&mf(e,"GraphObject.areaBackground"),e instanceof di&&e.freeze(),vr(this),this.A.gd=e,this.N(),this.g("areaBackground",t,e))}},background:{get:function(){return this.Ma},set:function(e){var t=this.Ma;t!==e&&(e!==null&&mf(e,"GraphObject.background"),e instanceof di&&e.freeze(),this.Ma=e,this.N(),this.g("background",t,e))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var e;for(e=this.panel;e;){if(e instanceof Fn)return this.Ng=e;e=e.panel}return null}},svg:{get:function(){return this.V},set:function(e){this.V=e}},panel:{get:function(){return this.Me}},layer:{get:function(){var e=this.part;return e!==null?e.layer:null}},diagram:{get:function(){var e=this.part;return e!==null?e.diagram:null}},position:{get:function(){return this.pa},set:function(e){var t=e.x,n=e.y,r=this.pa,i=r.x;r=r.y,(i===t||isNaN(i)&&isNaN(t))&&(r===n||isNaN(r)&&isNaN(n))?this.Av():(e=e.copy(),this.zv(e,i,r)&&this.g("position",new Ie(i,r),e))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(e){var t=this.Ca;t!==e&&(0>=e&&ft("GraphObject.scale for "+this+" must be greater than zero, not: "+e),this.Ca=e,this.v(),this.g("scale",t,e))}},angle:{get:function(){return this.Kb},set:function(e){var t=this.Kb;t!==e&&(e%=360,0>e&&(e+=360),t!==e&&(this.Kb=e,a0(this),this.v(),this.g("angle",t,e)))}},desiredSize:{get:function(){return this.jd},set:function(e){var t=e.width,n=e.height,r=this.jd,i=r.width,o=r.height;(i===t||isNaN(i)&&isNaN(t))&&(o===n||isNaN(o)&&isNaN(n))||(this.jd=e=e.J(),this.v(),this instanceof hr&&this.qc(),this.g("desiredSize",r,e),Ns(this)&&(e=this.part,e!==null&&(qi(this,e,"width"),qi(this,e,"height"))))}},width:{get:function(){return this.jd.width},set:function(e){var t=this.jd.width;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new mn(e,this.jd.height).freeze(),this.v(),this instanceof hr&&this.qc(),this.g("desiredSize",t,e),Ns(this)&&(e=this.part,e!==null&&qi(this,e,"width")))}},height:{get:function(){return this.jd.height},set:function(e){var t=this.jd.height;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new mn(this.jd.width,e).freeze(),this.v(),this instanceof hr&&this.qc(),this.g("desiredSize",t,e),Ns(this)&&(e=this.part,e!==null&&qi(this,e,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Cr},set:function(e){var t=this.minSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=0),isNaN(e.height)&&(e.height=0),e.freeze(),vr(this),this.A.u=e,this.v(),this.g("minSize",t,e))}},maxSize:{get:function(){return this.A!==null?this.A.o:Si},set:function(e){var t=this.maxSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=1/0),isNaN(e.height)&&(e.height=1/0),e.freeze(),vr(this),this.A.o=e,this.v(),this.g("maxSize",t,e))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(e){typeof e=="number"&&(e=new ar(e));var t=this.Kg;t.D(e)||(this.Kg=e=e.J(),this.v(),this.g("margin",t,e))}},transform:{get:function(){return this.l&2048&&ws(this),this.Ab}},oe:{get:function(){return this.l&4096&&ws(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(e){this.animationTriggers!==e&&(vr(this),this.A.hb=e)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Ut},set:function(e){this.reshapingBehavior!==e&&(vr(this),this.A.Pf=e)}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(e.Mc()&&!e.Xb()&&ft("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+e),this.Jb=e=e.J(),ua(this),this.g("alignment",t,e))}},column:{get:function(){return this.Ag},set:function(e){e=Math.round(e);var t=this.Ag;t!==e&&(0>e&&An(e,">= 0",at,"column"),this.Ag=e,this.v(),this.g("column",t,e),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(e){e=Math.round(e);var t=this.columnSpan;t!==e&&(1>e&&An(e,">= 1",at,"columnSpan"),vr(this),this.A.ob=e,this.v(),this.g("columnSpan",t,e))}},row:{get:function(){return this.io},set:function(e){e=Math.round(e);var t=this.io;t!==e&&(0>e&&An(e,">= 0",at,"row"),this.io=e,this.v(),this.g("row",t,e),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(e){e=Math.round(e);var t=this.rowSpan;t!==e&&(1>e&&An(e,">= 1",at,"rowSpan"),vr(this),this.A.Bi=e,this.v(),this.g("rowSpan",t,e))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(e){var t=this.spanAllocation;t!==e&&(vr(this),this.A.Di=e,this.v(),this.g("spanAllocation",t,e))}},alignmentFocus:{get:function(){return this.sk},set:function(e){var t=this.sk;t.D(e)||(this.sk=e=e.J(),this.v(),this.g("alignmentFocus",t,e))}},portId:{get:function(){return this.Yn},set:function(e){var t=this.Yn;if(t!==e){var n=this.part;n===null||n instanceof hn||ft("Cannot set portID on a Link: "+e),t!==null&&n!==null&&ey(n,this),this.Yn=e,e!==null&&n!==null&&(n.Te=!0,sb(n,this)),this.g("portId",t,e)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:cr},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),jh(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&An(e,">= 0",at,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),jh(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.g("toShortLength",t,e),jh(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(e){var t=this.toLinkable;t!==e&&(this.Xc(),this.ba.Tr=e,this.g("toLinkable",t,e))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(e){var t=this.toMaxLinks;t!==e&&(0>e&&An(e,">= 0",at,"toMaxLinks"),this.Xc(),this.ba.Ur=e,this.g("toMaxLinks",t,e))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:cr},set:function(e){var t=this.fromSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.Xi=e,this.g("fromSpot",t,e),jh(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(e){var t=this.fromEndSegmentLength;t!==e&&(0>e&&An(e,">= 0",at,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),jh(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.g("fromShortLength",t,e),jh(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(e){var t=this.fromLinkable;t!==e&&(this.Xc(),this.ba.hq=e,this.g("fromLinkable",t,e))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(e){var t=this.fromMaxLinks;t!==e&&(0>e&&An(e,">= 0",at,"fromMaxLinks"),this.Xc(),this.ba.iq=e,this.g("fromMaxLinks",t,e))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(e){var t=this.cursor;t!==e&&(vr(this),this.A.j=e,this.g("cursor",t,e))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(e){var t=this.click;t!==e&&(vr(this),this.A.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(e){var t=this.doubleClick;t!==e&&(vr(this),this.A.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(e){var t=this.contextClick;t!==e&&(vr(this),this.A.Bh=e,this.g("contextClick",t,e))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(e){var t=this.mouseEnter;t!==e&&(vr(this),this.A.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(e){var t=this.mouseLeave;t!==e&&(vr(this),this.A.Ph=e,this.g("mouseLeave",t,e))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(e){var t=this.mouseOver;t!==e&&(vr(this),this.A.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(e){var t=this.mouseHover;t!==e&&(vr(this),this.A.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(e){var t=this.mouseHold;t!==e&&(vr(this),this.A.Nh=e,this.g("mouseHold",t,e))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(e){var t=this.mouseDragEnter;t!==e&&(vr(this),this.A.Of=e,this.g("mouseDragEnter",t,e))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(e){var t=this.mouseDragLeave;t!==e&&(vr(this),this.A.Xd=e,this.g("mouseDragLeave",t,e))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(e){var t=this.mouseDrop;t!==e&&(vr(this),this.A.Lh=e,this.g("mouseDrop",t,e))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(e){var t=this.actionDown;t!==e&&(vr(this),this.A.V=e,this.g("actionDown",t,e))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(e){var t=this.actionMove;t!==e&&(vr(this),this.A.ia=e,this.g("actionMove",t,e))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(e){var t=this.actionUp;t!==e&&(vr(this),this.A.Ha=e,this.g("actionUp",t,e))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(e){var t=this.actionCancel;t!==e&&(vr(this),this.A.F=e,this.g("actionCancel",t,e))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(e){var t=this.toolTip;t!==e&&(vr(this),this.A.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(e){var t=this.contextMenu;t!==e&&(vr(this),this.A.Ch=e,this.g("contextMenu",t,e))}}}),at.prototype.trigger=at.prototype.Jv,at.prototype.findBindingPanel=at.prototype.ih,at.prototype.findTemplateBinder=at.prototype.pz,at.prototype.setProperties=at.prototype.nm,at.prototype.apply=at.prototype.apply,at.prototype.attach=at.prototype.Du,at.prototype.set=at.prototype.set,at.prototype.isEnabledObject=at.prototype.If,at.prototype.isVisibleObject=at.prototype.Ed,at.prototype.isContainedBy=at.prototype.rg,at.prototype.getNearestIntersectionPoint=at.prototype.rs,at.prototype.getLocalPoint=at.prototype.qs,at.prototype.getDocumentScale=at.prototype.Df,at.prototype.getDocumentAngle=at.prototype.li,at.prototype.getDocumentBounds=at.prototype.mi,at.prototype.getDocumentPoint=at.prototype.ga,at.prototype.intersectsRect=at.prototype.Yc,at.prototype.containedInRect=at.prototype.fh,at.prototype.containsRect=at.prototype.Re,at.prototype.containsPoint=at.prototype.ca,at.prototype.raiseChanged=at.prototype.g,at.prototype.raiseChangedEvent=at.prototype.cb,at.prototype.addCopyProperty=at.prototype.Vw;var Zf=null;at.className="GraphObject",Zf=new Et,kc("Button",function(){function e(n,r){return n.diagram.ic(n.documentPoint,function(i){for(;i.panel!==null&&!i.isActionable;)i=i.panel;return i},function(i){return i===r})!==null}var t=Tl(Xt,Xt.Auto,{isActionable:!0,enabledChanged:function(n,r){if(n instanceof Xt){var i=n.fb("ButtonBorder");i!==null&&(i.fill=r?n._buttonFillNormal:n._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Tl(hr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new an(0,0,2.76142374915397,2.761423749153969),spot2:new an(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return t.mouseEnter=function(n,r){if(r.If()&&r instanceof Xt&&(n=r.fb("ButtonBorder"),n instanceof hr)){var i=r._buttonFillOver;r._buttonFillNormal=n.fill,n.fill=i,i=r._buttonStrokeOver,r._buttonStrokeNormal=n.stroke,n.stroke=i}},t.mouseLeave=function(n,r){r.If()&&r instanceof Xt&&(n=r.fb("ButtonBorder"),n instanceof hr&&(n.fill=r._buttonFillNormal,n.stroke=r._buttonStrokeNormal))},t.actionDown=function(n,r){if(r.If()&&r instanceof Xt&&r._buttonFillPressed!==null&&n.button===0){var i=r.fb("ButtonBorder");if(i instanceof hr){n=n.diagram;var o=n.skipsUndoManager;n.skipsUndoManager=!0;var a=r._buttonFillPressed;r._buttonFillOver=i.fill,i.fill=a,a=r._buttonStrokePressed,r._buttonStrokeOver=i.stroke,i.stroke=a,n.skipsUndoManager=o}}},t.actionUp=function(n,r){if(r.If()&&r instanceof Xt&&r._buttonFillPressed!==null&&n.button===0){var i=r.fb("ButtonBorder");if(i instanceof hr){var o=n.diagram,a=o.skipsUndoManager;o.skipsUndoManager=!0,e(n,r)?(i.fill=r._buttonFillOver,i.stroke=r._buttonStrokeOver):(i.fill=r._buttonFillNormal,i.stroke=r._buttonStrokeNormal),o.skipsUndoManager=a}}},t.actionCancel=function(n,r){if(r.If()&&r instanceof Xt&&r._buttonFillPressed!==null){var i=r.fb("ButtonBorder");if(i instanceof hr){var o=n.diagram,a=o.skipsUndoManager;o.skipsUndoManager=!0,e(n,r)?(i.fill=r._buttonFillOver,i.stroke=r._buttonStrokeOver):(i.fill=r._buttonFillNormal,i.stroke=r._buttonStrokeNormal),o.skipsUndoManager=a}}},t.actionMove=function(n,r){if(r.If()&&r instanceof Xt&&r._buttonFillPressed!==null){var i=n.diagram;if(i.firstInput.button===0&&(i.currentTool.standardMouseOver(),e(n,r)&&(n=r.fb("ButtonBorder"),n instanceof hr))){var o=i.skipsUndoManager;i.skipsUndoManager=!0;var a=r._buttonFillPressed;n.fill!==a&&(n.fill=a),a=r._buttonStrokePressed,n.stroke!==a&&(n.stroke=a),i.skipsUndoManager=o}}},t}),kc("TreeExpanderButton",function(){var e=Tl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Tl(hr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Kr},new Do("figure","isTreeExpanded",function(t,n){return n=n.panel,t?n._treeExpandedFigure:n._treeCollapsedFigure}).cp()),{visible:!1},new Do("visible","isTreeLeaf",function(t){return!t}).cp());return e.click=function(t,n){if(n=n.part,n instanceof Xr&&(n=n.adornedPart),n instanceof hn){var r=n.diagram;if(r!==null){if(r=r.commandHandler,n.isTreeExpanded){if(!r.canCollapseTree(n))return}else if(!r.canExpandTree(n))return;t.handled=!0,n.isTreeExpanded?r.collapseTree(n):r.expandTree(n)}}},e}),kc("SubGraphExpanderButton",function(){var e=Tl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Tl(hr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Kr},new Do("figure","isSubGraphExpanded",function(t,n){return n=n.panel,t?n._subGraphExpandedFigure:n._subGraphCollapsedFigure}).cp()));return e.click=function(t,n){if(n=n.part,n instanceof Xr&&(n=n.adornedPart),n instanceof or){var r=n.diagram;if(r!==null){if(r=r.commandHandler,n.isSubGraphExpanded){if(!r.canCollapseSubGraph(n))return}else if(!r.canExpandSubGraph(n))return;t.handled=!0,n.isSubGraphExpanded?r.collapseSubGraph(n):r.expandSubGraph(n)}}},e}),kc("ToolTip",function(){return Tl(Xr,Xt.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ie(0,3),shadowBlur:5},Tl(hr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new an(0,0,4,6),spot2:new an(1,1,-4,-4)}))}),kc("ContextMenu",function(){return Tl(Xr,Xt.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ie(0,3),shadowBlur:5},new Do("background","",function(e){return e.adornedPart!==null&&e.placeholder!==null?null:"#F5F5F5"}))}),kc("ContextMenuButton",function(){var e=Tl("Button");e.stretch=Ln;var t=e.fb("ButtonBorder");return t instanceof hr&&(t.figure="Rectangle",t.strokeWidth=0,t.spot1=new an(0,0,2,3),t.spot2=new an(1,1,-2,-2)),e}),kc("PanelExpanderButton",function(e){var t=wg(e,"COLLAPSIBLE"),n=Tl("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},Tl(hr,{name:"ButtonIcon",strokeWidth:2},new Do("geometryString","visible",function(r){return r?n._buttonExpandedFigure:n._buttonCollapsedFigure}).cp(t)));return e=n.fb("ButtonBorder"),e instanceof hr&&(e.stroke=null,e.fill="rgba(0, 0, 0, 0)"),n.click=function(r,i){var o=i.diagram;if(o!==null&&!o.isReadOnly){var a=i.ih();a===null&&(a=i.part),a!==null&&(i=a.fb(t),i!==null&&(r.handled=!0,o.Ea("Collapse/Expand Panel"),i.visible=!i.visible,o.eb("Collapse/Expand Panel")))}},n}),kc("CheckBoxButton",function(e){var t=wg(e);return e=Tl("Button",{desiredSize:new mn(14,14)},Tl(hr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:$t,geometryStretch:Nn,visible:!1},t!==""?new Do("visible",t).Kx():[])),e.click=function(n,r){if(r instanceof Xt){var i=n.diagram;if(!(i===null||i.isReadOnly||t!==""&&i.model.isReadOnly)){n.handled=!0;var o=r.fb("ButtonIcon");i.Ea("checkbox"),o.visible=!o.visible,typeof r._doClick=="function"&&r._doClick(n,r),i.eb("checkbox")}}},e}),kc("CheckBox",function(e){e=wg(e),e=Tl("CheckBoxButton",e,{name:"Button",isActionable:!1,margin:new ar(0,1,0,0)});var t=Tl(Xt,"Horizontal",e,{isActionable:!0,cursor:e.cursor,margin:new ar(1),_buttonFillNormal:e._buttonFillNormal,_buttonStrokeNormal:e._buttonStrokeNormal,_buttonFillOver:e._buttonFillOver,_buttonStrokeOver:e._buttonStrokeOver,_buttonFillPressed:e._buttonFillPressed,_buttonStrokePressed:e._buttonStrokePressed,_buttonFillDisabled:e._buttonFillDisabled,mouseEnter:e.mouseEnter,mouseLeave:e.mouseLeave,actionDown:e.actionDown,actionUp:e.actionUp,actionCancel:e.actionCancel,actionMove:e.actionMove,click:e.click,_buttonClick:e.click});return e.mouseEnter=null,e.mouseLeave=null,e.actionDown=null,e.actionUp=null,e.actionCancel=null,e.actionMove=null,e.click=null,t}),at.None=Ut=new Dt(at,"None",0),at.Default=sr=new Dt(at,"Default",0),at.Vertical=Yn=new Dt(at,"Vertical",4),at.Horizontal=Ln=new Dt(at,"Horizontal",5),at.Fill=$t=new Dt(at,"Fill",3),at.Uniform=Nn=new Dt(at,"Uniform",1),at.UniformToFill=kr=new Dt(at,"UniformToFill",2),at.FlipVertical=yr=new Dt(at,"FlipVertical",1),at.FlipHorizontal=Hr=new Dt(at,"FlipHorizontal",2),at.FlipBoth=Ci=new Dt(at,"FlipBoth",3),at.make=Tl,at.getBuilders=function(){var e=new Et,t;for(t in Zf)if(t!==t.toLowerCase()){var n=Zf.I(t);typeof n=="function"&&e.add(t,n)}return e.freeze(),e},at.defineBuilder=kc,at.build=function(e,t,n){for(var r=[],i=2;i<arguments.length;++i)r[i-2]=arguments[i];if(i=Zf.I(e),typeof i=="function"&&(r=i([e].concat(r)),r instanceof at))return t&&r.set(t),r;ft('GraphObject.build invoked object builder "'+e+'", but it did not return an Object')},at.takeBuilderArgument=wg;function pf(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=Cr,this.o=Si,this.hg=sr,this.ob=this.Bi=1,this.Pf=Ut,this.Pc=this.Ci=this.gd=null,this.Oc="category"}pf.prototype.copy=function(){var e=new pf;return e.xa=this.xa,e.zp=this.zp,e.te=this.te,e.nb=this.nb,e.j=this.j,e.zh=this.zh,e.Fh=this.Fh,e.Bh=this.Bh,e.Mh=this.Mh,e.Ph=this.Ph,e.Qh=this.Qh,e.Oh=this.Oh,e.Nh=this.Nh,e.Of=this.Of,e.Xd=this.Xd,e.Lh=this.Lh,e.V=this.V,e.ia=this.ia,e.Ha=this.Ha,e.F=this.F,e.$h=this.$h,e.Ch=this.Ch,e.Hb=this.Hb,e.Di=this.Di,e.hb=this.hb,e.u=this.u.J(),e.o=this.o.J(),e.hg=this.hg,e.Bi=this.Bi,e.ob=this.ob,e.Pf=this.Pf,e.gd=this.gd,e.Ci=this.Ci,e.Pc=this.Pc,e.Oc=this.Oc,e};function rh(){this.u=-1/0,this.o=0,this.F=cn,this.rr=da,this.j=this.V="None"}rh.prototype.copy=function(){var e=new rh;return e.u=this.u,e.o=this.o,e.F=this.F.J(),e.rr=this.rr,e.V=this.V,e.j=this.j,e},rh.className="LinkElementSettings";function lp(){this.yj=this.Xi=Bo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}lp.prototype.copy=function(){var e=new lp;return e.Xi=this.Xi.J(),e.yj=this.yj.J(),e.Vi=this.Vi,e.wj=this.wj,e.Wi=this.Wi,e.xj=this.xj,e.hq=this.hq,e.Tr=this.Tr,e.iq=this.iq,e.Ur=this.Ur,e},lp.className="LinkSettings";function Uh(){this.ha=[1,0,0,1,0,0]}Uh.prototype.copy=function(){var e=new Uh;return e.ha[0]=this.ha[0],e.ha[1]=this.ha[1],e.ha[2]=this.ha[2],e.ha[3]=this.ha[3],e.ha[4]=this.ha[4],e.ha[5]=this.ha[5],e},Uh.prototype.translate=function(e,t){this.ha[4]+=this.ha[0]*e+this.ha[2]*t,this.ha[5]+=this.ha[1]*e+this.ha[3]*t},Uh.prototype.scale=function(e,t){this.ha[0]*=e,this.ha[1]*=e,this.ha[2]*=t,this.ha[3]*=t},Uh.prototype.rotate=function(e,t,n){if(360<=e?e-=360:0>e&&(e+=360),e!==0){if(this.translate(t,n),e===90){e=0;var r=1}else e===180?(e=-1,r=0):e===270?(e=0,r=-1):(r=e*Math.PI/180,e=Math.cos(r),r=Math.sin(r));var i=this.ha[1]*e+this.ha[3]*r,o=this.ha[0]*-r+this.ha[2]*e,a=this.ha[1]*-r+this.ha[3]*e;this.ha[0]=this.ha[0]*e+this.ha[2]*r,this.ha[1]=i,this.ha[2]=o,this.ha[3]=a,this.translate(-t,-n)}},Uh.className="STransform";function gf(e){this.type=e,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}gf.prototype.addColorStop=function(e,t){this.gx.push({offset:e,color:t})},gf.className="SGradient";function Ou(e,t,n){this.ownerDocument=e=t===void 0?pn.document:t,this.cA="http://www.w3.org/2000/svg",e!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Za(this,n)}Ou.prototype.resize=function(e,t,n,r){return this.width!==e||this.height!==t?(this.width=e,this.height=t,this.style.width=n+"px",this.style.height=r+"px",this.Oa.setAttributeNS(null,"width",n+"px"),this.Oa.setAttributeNS(null,"height",r+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+n+" "+r),this.context.ww.firstElementChild.setAttributeNS(null,"width",n+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",r+"px"),!0):!1},Ou.prototype.Ud=function(e,t,n){if(e=this.ownerDocument.createElementNS(this.cA,e),gt(t))for(var r in t)e.setAttributeNS(r==="href"?"http://www.w3.org/1999/xlink":"",r,t[r]);return n!==void 0&&(e.textContent=n),e},Ou.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ou.prototype.focus=function(){this.Oa.focus()},Ou.prototype.mx=function(){this.ownerDocument=null},Mn.Object.defineProperties(Ou.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(e){this.Oa.setAttribute("width",e+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(e){this.Oa.setAttribute("height",e+"px")}},style:{get:function(){return this.Oa.style}}}),Ou.className="SVGSurface";function Za(e,t){this.Gv=e,this.svg=e.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new Uh,this.j=Eg(this),this.Nj=Eg(this,"gojs-diagram"),this.Hl=this.ti=null;var n=Di++,r=this.Ud("clipPath",{id:"mainClip"+n});r.appendChild(this.Ud("rect",{x:0,y:0,width:e.width,height:e.height})),this.ww=r,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(r),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+n+")"),this.eA={},this.isTemporary=!!t,this.filter="",this.bk=null}function l0(e,t,n,r,i,o,a){e.Nj===void 0?up(e,t,n,r,i,o,a):e.Nj.setAttribute("transform","matrix("+t+", "+n+", "+r+", "+i+", "+o+", "+a+")")}me=Za.prototype,me.arc=function(e,t,n,r,i,o,a,d){var x=2*Math.PI,O=x-1e-6,M=n*Math.cos(r),Y=n*Math.sin(r),ie=e+M,ce=t+Y,ge=o?0:1;r=o?r-i:i-r,(1e-6<Math.abs(a-ie)||1e-6<Math.abs(d-ce))&&this.path.push(["L",ie,+ce]),0>r&&(r=r%x+x),r>O?(this.path.push(["A",n,n,0,1,ge,e-M,t-Y]),this.path.push(["A",n,n,0,1,ge,ie,ce])):1e-6<r&&this.path.push(["A",n,n,0,+(r>=Math.PI),ge,e+n*Math.cos(i),t+n*Math.sin(i)])},me.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},me.Se=function(e){this.addPath(this.path,this.rb,e||0)},me.bezierCurveTo=function(e,t,n,r,i,o){this.path.push(["C",e,t,n,r,i,o])},me.clearRect=function(){},me.clip=function(){this.Yl.clipPath=!0},me.closePath=function(){this.path.push(["z"])},me.createLinearGradient=function(e,t,n,r){var i=new gf("linear");return i.x1=e,i.y1=t,i.x2=n,i.y2=r,i},me.createPattern=function(e){var t="";e instanceof HTMLCanvasElement&&(t=e.toDataURL()),e instanceof HTMLImageElement&&(t=e.getAttribute("src"));var n=this.eA;if(n[t])return"url(#"+n[t]+")";var r="PATTERN"+Di++,i={x:0,y:0,width:e.width,height:e.height,href:t};return e=this.Ud("pattern",{width:e.width,height:e.height,id:r,patternUnits:"userSpaceOnUse"}),e.appendChild(this.Ud(Fh,i)),this.svg.appendChild(e),n[t]=r,"url(#"+r+")"},me.createRadialGradient=function(e,t,n,r,i,o){var a=new gf("radial");return a.x1=e,a.y1=t,a.r1=n,a.x2=r,a.y2=i,a.r2=o,a};function u0(e,t,n,r,i,o,a,d,x){r=d/r,i=x/i,o===0&&a===0||e.rb.translate(o,a),r===1&&i===1||e.rb.scale(r,i),t===0&&n===0||e.rb.translate(-t,-n)}me.drawImage=function(e,t,n,r,i,o,a,d,x){var O="";e instanceof HTMLCanvasElement&&(O=e.toDataURL()),e instanceof HTMLImageElement&&(O=e.getAttribute("src"));var M=e instanceof HTMLImageElement?e.naturalWidth:e.width;e=e instanceof HTMLImageElement?e.naturalHeight:e.height,r===void 0&&(o=t,a=n,d=r=M,x=i=e),r=r||0,i=i||0,d=d||0,x=x||0,u0(this,t,n,r,i,o||0,a||0,d,x),o={x:0,y:0,width:M||r,height:e||i,href:O},ht.$(r,d)&&ht.$(i,x)?O.toLowerCase().indexOf(".svg")===-1&&O.toLowerCase().indexOf("data:image/svg")===-1&&(o.preserveAspectRatio="xMidYMid slice"):o.preserveAspectRatio="none",(t!==0||n!==0||r!==M||i!==e)&&(r+=t,i+=n,o["clip-path"]="path('M "+t+","+n+" L "+r+" "+n+" L "+r+" "+i+" L "+t+" "+i+" z')"),Jf(this,Fh,o,this.rb),this.addElement(Fh,o)},me.fill=function(e){e&&(this.Yl["fill-rule"]="evenodd"),gv(this,this.Yl)},me.ng=function(e,t){this.clipInsteadOfFill?this.clip():this.fill(t)},me.fillRect=function(e,t,n,r){e=[e,t,n,r],e={x:e[0],y:e[1],width:e[2],height:e[3]},Jf(this,"fill",e,this.rb),this.addElement("rect",e)},me.ox=function(e,t,n,r){e={x:e,y:t,width:n,height:r},Jf(this,"fill",e,this.rb),gv(this,e),this.svg.prepend(this.Ud("rect",e))},me.fillText=function(e,t,n){e=[e,t,n],t=this.textAlign,t==="left"?t="start":t==="right"?t="end":t==="center"&&(t="middle"),t={x:e[1],y:e[2],style:"font: "+this.font,"text-anchor":t},Jf(this,"fill",t,this.rb),this.addElement("text",t,e[0])},me.lineTo=function(e,t){this.path.push(["L",e,t])},me.moveTo=function(e,t){this.path.push(["M",e,t])},me.quadraticCurveTo=function(e,t,n,r){this.path.push(["Q",e,t,n,r])},me.rect=function(e,t,n,r){this.path.push(["M",e,t],["L",e+n,t],["L",e+n,t+r],["L",e,t+r],["z"])},me.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var e=this.stack.pop();this.fillStyle=e.fillStyle,this.font=e.font,this.globalAlpha=e.globalAlpha,this.lineCap=e.lineCap,this.lineDashOffset=e.lineDashOffset,this.lineJoin=e.lineJoin,this.lineWidth=e.lineWidth,this.miterLimit=e.miterLimit,this.shadowBlur=e.shadowBlur,this.shadowColor=e.shadowColor,this.shadowOffsetX=e.shadowOffsetX,this.shadowOffsetY=e.shadowOffsetY,this.strokeStyle=e.strokeStyle,this.textAlign=e.textAlign,this.bk=e.bk},me.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var e=[],t=0;t<this.path.length;t++)e.push(this.path[t]);this.stack.push(e),this.stack.push(this.rb.copy())},me.setTransform=function(e,t,n,r,i,o){e===1&&t===0&&n===0&&r===1&&i===0&&o===0||up(this,e,t,n,r,i,o)};function c0(e){return e=e.rb.ha,"matrix("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")"}me.scale=function(e,t){this.rb.scale(e,t)},me.translate=function(e,t){this.rb.translate(e,t)},me.transform=function(){},me.yc=function(){},me.stroke=function(){f0(this,this.Yl)},me.jk=function(){this.clipInsteadOfFill||this.stroke()},me.Ud=function(e,t,n){return this.Gv.Ud(e,t,n)},me.addElement=function(e,t,n){return e=this.Ud(e,t,n),this.yd!==null?this.yd.appendChild(e):this.yd=e,this.ad=e};function Jf(e,t,n,r){t==="fill"?gv(e,n):t==="stroke"&&f0(e,n),r!==null&&(e=r.ha,n.transform="matrix("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")")}function gv(e,t){e.fillStyle instanceof gf?t.fill=mv(e,e.fillStyle,!0):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.fill="rgb("+e[1]+","+e[2]+","+e[3]+")",t["fill-opacity"]=e[4]):t.fill=e.fillStyle}function h0(e,t,n){n=n?"fill":"stroke",e.fillStyle instanceof gf?t.setAttributeNS(null,"fill",mv(e,e.fillStyle,!0)):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.setAttributeNS(null,n,"rgb("+e[1]+","+e[2]+","+e[3]+")"),t.setAttributeNS(null,n+"-opacity",e[4])):t.setAttributeNS(null,n,e.fillStyle)}function f0(e,t){if(e.strokeStyle instanceof gf)t.stroke=mv(e,e.strokeStyle,!1);else if(/^rgba\(/.test(e.strokeStyle)){var n=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.strokeStyle);t.stroke="rgb("+n[1]+","+n[2]+","+n[3]+")",t["stroke-opacity"]=n[4]}else t.stroke=e.strokeStyle;t["stroke-width"]=e.lineWidth,t["stroke-linecap"]=e.lineCap,t["stroke-linejoin"]=e.lineJoin,t["stroke-miterlimit"]=e.miterLimit,e.Ct&&(t["stroke-dasharray"]=e.Yg.toString(),t["stroke-dashoffset"]=e.uj)}function mv(e,t,n){var r="";if(r=e.Hl!==null?e.Hl.getAttribute(n?"fill":"stroke"):null,r!==null&&r.indexOf("GRAD")!==-1?(r=r.split("#")[1].slice(0,-1),n=e.svg.getElementById(r),n!==null&&n.remove()):r="GRAD"+Di++,t.type==="linear")n=e.Ud("linearGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,id:r,gradientUnits:"userSpaceOnUse"});else if(t.type==="radial")n=e.Ud("radialGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,r1:t.r1,r2:t.r2,id:r});else throw Error("invalid gradient");var i=t.gx;t=i.length;for(var o=[],a=0;a<t;a++){var d=i[a],x=d.color;d={offset:d.offset,"stop-color":x},/^rgba\(/.test(x)&&(x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(x),d["stop-color"]="rgb("+x[1]+","+x[2]+","+x[3]+")",d["stop-opacity"]=x[4]),o.push(d)}for(o.sort(function(O,M){return O.offset>M.offset?1:-1}),i=0;i<t;i++)n.appendChild(e.Ud("stop",o[i]));return e.svg.appendChild(n),"url(#"+r+")"}me.addPath=function(e,t,n){for(var r=[],i=0;i<e.length;i++){var o=Hn(e[i]),a=[o.shift()];if(a[0]==="A")a.push(o.shift()+","+o.shift(),o.shift(),o.shift()+","+o.shift(),o.shift()+","+o.shift());else for(;o.length;)a.push(o.shift()+","+o.shift());r.push(a.join(" "))}if(r=r.join(" "),e=this.Yl,e.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+r+'")');else if(e.d=r,Jf(this,"",e,t),this.Hl!==null)if(t=this.Hl,t.nodeName!=="g")for(var d in e)d!=="transform"&&t.setAttributeNS(null,d,e[d]);else{d=t.getElementsByTagName("path");for(var x in e)x!=="transform"&&d[n].setAttributeNS(null,x,e[x])}else this.addElement("path",e)};function up(e,t,n,r,i,o,a){var d=new Uh;d.ha=[t,n,r,i,o,a],t={},Jf(e,"g",t,d),d=e.addElement("g",t),e.nh.push(d)}function Eg(e,t){var n={};return t&&(n.class=t),t=e.addElement("g",n),e.nh.push(t),t}me.Ev=function(e,t,n){this.Ar=e,this.Br=t,this.Vg=n};function Ku(e){e.Il=!1,e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0}function lc(e){e.Il=!0,e.shadowOffsetX=e.Ar,e.shadowOffsetY=e.Br,e.shadowBlur=e.Vg}me.js=function(e,t){this.Ct=!0,this.Yg=e,this.uj=t},me.fs=function(){this.Ct=!1},me.Vc=function(){},me.Wx=function(){},Za.prototype.rotate=function(e){this.rb.rotate(57.2958*e,0,0)},Za.prototype.getImageData=function(){return null},Za.prototype.measureText=function(){return null};function Cg(e,t){t=t.getAttribute("fill"),t!==null&&(t=t.split("#"),t.length!==1&&(t=e.svg.getElementById(t[1].slice(0,-1)),t!==null&&e.svg.innerHTML.match(new RegExp(t.id,"g")).length===1&&t.remove()))}Za.prototype.Hs=function(e){e.svg!==null&&e.svg.parentNode===this.Nj&&e.svg.remove()},Za.className="SVGContext",bt.prototype.Cs=function(e){this.pj.contains("SVG")||this.bs("SVG",new Ou(this,pn.document));var t=new Ou(this,pn.document,!0);e===void 0&&(e=new oi);var n=this;return lf(this,function(r,i){return r=yg(n,r,"SVG",t),r=r!==null?r.svg:null,typeof i=="function"?(i(r),null):r},e)},bt.prototype.makeSvg=bt.prototype.Cs,bt.prototype.av=function(e){return this.Cs(e)},bt.prototype.makeSVG=bt.prototype.av;function Ul(e,t,n,r){this.ownerDocument=t=t===void 0?pn.document:t,this.hs=null,t=t.createElement("canvas"),t.tabIndex=0,this.Oa=t,this.context=new Hh(t,n,r),t.H=e}Ul.prototype.resize=function(e,t,n,r){return this.width!==e||this.height!==t?(this.width=e,this.height=t,this.style.width=n+"px",this.style.height=r+"px",!0):!1},Ul.prototype.toDataURL=function(e,t){return this.Oa.toDataURL(e,t)},Ul.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ul.prototype.focus=function(){this.Oa.focus()},Ul.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Mn.Object.defineProperties(Ul.prototype,{width:{get:function(){return this.Oa.width},set:function(e){this.Oa.width=e}},height:{get:function(){return this.Oa.height},set:function(e){this.Oa.height=e}},style:{get:function(){return this.Oa.style}}}),Ul.className="CanvasSurface";function Hh(e,t,n){this.Z=e.getContext?e.getContext("2d",t):null,this.Z===null&&ft("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new Zn,this.isTemporary=!!n}me=Hh.prototype,me.Wx=function(e){this.Z.imageSmoothingEnabled=e},me.arc=function(e,t,n,r,i,o){this.Z.arc(e,t,n,r,i,o)},me.beginPath=function(){this.Z.beginPath()},me.Se=function(){},me.bezierCurveTo=function(e,t,n,r,i,o){this.Z.bezierCurveTo(e,t,n,r,i,o)},me.clearRect=function(e,t,n,r){this.yc(),this.Z.clearRect(e,t,n,r)},me.clip=function(){this.Z.clip()},me.closePath=function(){this.Z.closePath()},me.createLinearGradient=function(e,t,n,r){return this.Z.createLinearGradient(e,t,n,r)},me.createPattern=function(e,t){return this.Z.createPattern(e,t)},me.createRadialGradient=function(e,t,n,r,i,o){return this.Z.createRadialGradient(e,t,n,r,i,o)},me.drawImage=function(e,t,n,r,i,o,a,d,x){r===void 0?this.Z.drawImage(e,t,n):this.Z.drawImage(e,t,n,r,i,o,a,d,x)},me.fill=function(e){this.Z.fill(e?"evenodd":"nonzero")},me.fillRect=function(e,t,n,r){this.Z.fillRect(e,t,n,r)},me.ox=function(e,t,n,r){this.Z.fillRect(e,t,n,r)},me.fillText=function(e,t,n){this.Z.fillText(e,t,n)},me.getImageData=function(e,t,n,r){return this.Z.getImageData(e,t,n,r)},me.lineTo=function(e,t){this.Z.lineTo(e,t)},me.measureText=function(e){return this.Z.measureText(e)},me.moveTo=function(e,t){this.Z.moveTo(e,t)},me.quadraticCurveTo=function(e,t,n,r){this.Z.quadraticCurveTo(e,t,n,r)},me.rect=function(e,t,n,r){this.Z.rect(e,t,n,r)},me.restore=function(){this.Z.restore()},me.save=function(){this.yc(),this.Z.save()},Hh.prototype.rotate=function(e){this.El.rotate(57.2958*e,0,0)},me=Hh.prototype,me.setTransform=function(e,t,n,r,i,o){this.El.setTransform(e,t,n,r,i,o)},me.scale=function(e,t){this.El.scale(e,t)},me.translate=function(e,t){this.El.translate(e,t)},me.stroke=function(){this.Z.stroke()},me.transform=function(e,t,n,r,i,o){if(e!==1||t!==0||n!==0||r!==1||i!==0||o!==0){var a=this.El,d=a.m11*e+a.m21*t;e=a.m12*e+a.m22*t,t=a.m11*n+a.m21*r,n=a.m12*n+a.m22*r,a.dx=a.m11*i+a.m21*o+a.dx,a.dy=a.m12*i+a.m22*o+a.dy,a.m11=d,a.m12=e,a.m21=t,a.m22=n}},me.yc=function(){var e=this.El;this.Z.setTransform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy)},me.ng=function(e,t){if(e instanceof di&&e.type===_l){var n=e.yk;e=e.ft,e>n?(this.scale(n/e,1),this.translate((e-n)/2,0)):n>e&&(this.scale(1,e/n),this.translate(0,(n-e)/2)),this.Hm?this.clip():this.fill(t),e>n?(this.translate(-(e-n)/2,0),this.scale(1/(n/e),1)):n>e&&(this.translate(0,-(n-e)/2),this.scale(1,1/(e/n)))}else this.Hm?this.clip():this.fill(t)},me.jk=function(){this.Hm||this.stroke()},me.Ev=function(e,t,n){this.Ar=e,this.Br=t,this.Vg=n},me.js=function(e,t){var n=this.Z;n.setLineDash!==void 0&&(n.setLineDash(e),n.lineDashOffset=t)},me.fs=function(){var e=this.Z;e.setLineDash!==void 0&&(e.setLineDash(L1),e.lineDashOffset=0)},me.Vc=function(e){e&&(this.dt=""),this.ct=this.et=""},me.Hs=function(){},Mn.Object.defineProperties(Hh.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(e){this.ct!==e&&(this.ct=this.Z.fillStyle=e)}},font:{get:function(){return this.Z.font},set:function(e){this.dt!==e&&(this.dt=this.Z.font=e)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(e){this.Z.globalAlpha=e}},lineCap:{get:function(){return this.Z.lineCap},set:function(e){this.Z.lineCap=e}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(e){this.Z.lineDashOffset=e}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(e){this.Z.lineJoin=e}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(e){this.Z.lineWidth=e}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(e){this.Z.miterLimit=e}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(e){this.Z.shadowBlur=e}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(e){this.Z.shadowColor=e}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(e){this.Z.shadowOffsetX=e}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(e){this.Z.shadowOffsetY=e}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(e){this.et!==e&&(this.et=this.Z.strokeStyle=e)}},textAlign:{get:function(){return this.Z.textAlign},set:function(e){this.Z.textAlign=e}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(e){this.Z.imageSmoothingEnabled=e}},filter:{get:function(){return this.Z.filter},set:function(e){this.Z.filter=e===""?"none":e}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(e){this.Hm=e}}});var L1=Object.freeze([]);Hh.className="CanvasSurfaceContext";function cp(){this.F=this.o=this.u=this.j=0}cp.className="ColorNumbers";function di(e,t){td||(wv(),td=!0),Wn(this),this._isFrozen=!1,e===void 0?(this.na=Nc,this.xk="black"):typeof e=="string"?(this.na=Nc,this.xk=e):(this.na=e,this.xk="black"),e=this.na,e===cc?(this.Qd=ro,this.Lk=Co):this.Lk=e===_l?this.Qd=Tr:this.Qd=cr,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,t&&Object.assign(this,t)}di.prototype.copy=function(){var e=new di;return e.na=this.na,e.xk=this.xk,e.Qd=this.Qd.J(),e.Lk=this.Lk.J(),e.Gr=this.Gr,e.Xp=this.Xp,this.we!==null&&(e.we=this.we.copy()),e.cr=this.cr,e},me=di.prototype,me.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},me.ka=function(){return Object.isFrozen(this)&&ft("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},me.qb=function(e){e.classType===di&&(this.type=e)},me.toString=function(){var e="Brush(";if(this.type===Nc)e+=this.color;else if(e=this.type===cc?e+"Linear ":this.type===_l?e+"Radial ":this.type===nd?e+"Pattern ":e+"(unknown) ",e+=this.start+" "+this.end,this.colorStops!==null)for(var t=this.colorStops.iterator;t.next();)e+=" "+t.key+":"+t.value;return e+")"},me.addColorStop=function(e,t){return this._isFrozen&&en(this),(typeof e!="number"||!isFinite(e)||1<e||0>e)&&An(e,"0 <= loc <= 1",di,"addColorStop:loc"),this.we===null&&(this.we=new Et),this.we.add(e,t),this.na===Nc&&(this.type=cc),this.xe=null,this},me.Vz=function(e,t){if(this._isFrozen&&en(this),e=e===void 0||typeof e!="number"?.2:e,t=t===void 0?rd:t,this.type===Nc)uc(this.color),this.color=qf(e,t);else if((this.type===cc||this.type===_l)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)uc(n.value),this.addColorStop(n.key,qf(e,t));return this};function d0(e,t,n){return t=t===void 0||typeof t!="number"?.2:t,n=n===void 0?rd:n,uc(e),qf(t,n)}me.Wy=function(e,t){if(this._isFrozen&&en(this),e=e===void 0||typeof e!="number"?.2:e,t=t===void 0?rd:t,this.type===Nc)uc(this.color),this.color=qf(-e,t);else if((this.type===cc||this.type===_l)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)uc(n.value),this.addColorStop(n.key,qf(-e,t));return this};function p0(e,t,n){return t=t===void 0||typeof t!="number"?.2:t,n=n===void 0?rd:n,uc(e),qf(-t,n)}function vv(e,t,n){uc(e),e=$i.j;var r=$i.u,i=$i.o,o=$i.F;return uc(t),n===void 0&&(n=.5),"rgba("+Math.round(($i.j-e)*n+e)+", "+Math.round(($i.u-r)*n+r)+", "+Math.round(($i.o-i)*n+i)+", "+Math.round(($i.F-o)*n+o)+")"}me.Gx=function(){if(this.type===Nc)return Qf(this.color);if((this.type===cc||this.type===_l)&&this.colorStops!==null){var e=this.colorStops;if(this.type===_l)return Qf(e.first().value);if(e.get(.5)!==null)return Qf(e.get(.5));if(e.count===2)return e=e.Fa(),Qf(vv(e[0].value,e[1].value));for(var t=e.iterator,n=-1,r=-1,i=1,o=1;t.next();){var a=t.key,d=Math.abs(.5-t.key);i>o&&d<i?(n=a,i=d):o>=i&&d<o&&(r=a,o=d)}return n>r&&(o=n,n=r,r=o,o=i),i=r-n,Qf(vv(e.get(n),e.get(r),1-o/i))}return!1};function Qf(e){return e?e instanceof di?e.Gx():(uc(e),128>(299*$i.j+587*$i.u+114*$i.o)/1e3):!1}function qf(e,t){switch(t){case rd:t=100*bv($i.j);var n=100*bv($i.u),r=100*bv($i.o);return ha.j=.4124564*t+.3575761*n+.1804375*r,ha.u=.2126729*t+.7151522*n+.072175*r,ha.o=.0193339*t+.119192*n+.9503041*r,ha.F=$i.F,t=xv(ha.j/ed[0]),n=xv(ha.u/ed[1]),r=xv(ha.o/ed[2]),Yu.j=116*n-16,Yu.u=500*(t-n),Yu.o=200*(n-r),Yu.F=ha.F,Yu.j=Math.min(100,Math.max(0,Yu.j+100*e)),e=(Yu.j+16)/116,t=e-Yu.o/200,ha.j=ed[0]*g0(Yu.u/500+e),ha.u=ed[1]*(Yu.j>Tg*Ev?Math.pow(e,3):Yu.j/Tg),ha.o=ed[2]*g0(t),ha.F=Yu.F,e=-.969266*ha.j+1.8760108*ha.u+.041556*ha.o,t=.0556434*ha.j+-.2040259*ha.u+1.0572252*ha.o,$i.j=255*Sv((3.2404542*ha.j+-1.5371385*ha.u+-.4985314*ha.o)/100),$i.u=255*Sv(e/100),$i.o=255*Sv(t/100),$i.F=ha.F,$i.j=Math.round($i.j),255<$i.j?$i.j=255:0>$i.j&&($i.j=0),$i.u=Math.round($i.u),255<$i.u?$i.u=255:0>$i.u&&($i.u=0),$i.o=Math.round($i.o),255<$i.o?$i.o=255:0>$i.o&&($i.o=0),"rgba("+$i.j+", "+$i.u+", "+$i.o+", "+$i.F+")";case m0:return yv(),dl.o=Math.min(100,Math.max(0,dl.o+100*e)),"hsla("+dl.j+", "+dl.u+"%, "+dl.o+"%, "+dl.F+")";default:ft("Unknown color space: "+t)}}function uc(e){td||(wv(),td=!0);var t=Cv;if(t!==null){t.clearRect(0,0,1,1),t.fillStyle="#000000";var n=t.fillStyle;t.fillStyle=e,t.fillStyle!==n?(t.fillRect(0,0,1,1),e=t.getImageData(0,0,1,1).data,$i.j=e[0],$i.u=e[1],$i.o=e[2],$i.F=e[3]/255):(t.fillStyle="#FFFFFF",t.fillStyle=e,$i.j=0,$i.u=0,$i.o=0,$i.F=1)}}function yv(){var e=$i.j/255,t=$i.u/255,n=$i.o/255,r=Math.max(e,t,n),i=Math.min(e,t,n),o=r-i;if(i=(r+i)/2,o===0)var a=e=0;else{switch(r){case e:a=(t-n)/o%6;break;case t:a=(n-e)/o+2;break;case n:a=(e-t)/o+4}a*=60,0>a&&(a+=360),e=o/(1-Math.abs(2*i-1))}dl.j=Math.round(a),dl.u=Math.round(100*e),dl.o=Math.round(100*i),dl.F=$i.F}function bv(e){return e/=255,.04045>=e?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Sv(e){return .0031308>=e?12.92*e:1.055*Math.pow(e,1/2.4)-.055}function xv(e){return e>Ev?Math.pow(e,1/3):(Tg*e+16)/116}function g0(e){var t=e*e*e;return t>Ev?t:(116*e-16)/Tg}function mf(e,t){typeof e!="string"&&(e instanceof di||ft("Value for "+t+" must be a color string or a Brush, not "+e))}function wv(){Cv=vo?new Ul(null,void 0,{willReadFrequently:!0}).context:null}Mn.Object.defineProperties(di.prototype,{type:{get:function(){return this.na},set:function(e){this._isFrozen&&en(this,e),this.na=e,this.start.Mc()&&(e===cc?this.start=ro:e===_l&&(this.start=Tr)),this.end.Mc()&&(e===cc?this.end=Co:e===_l&&(this.end=Tr)),this.xe=null}},color:{get:function(){return this.xk},set:function(e){this._isFrozen&&en(this,e),this.xk=e,this.xe=null}},start:{get:function(){return this.Qd},set:function(e){this._isFrozen&&en(this,e),this.Qd=e.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(e){this._isFrozen&&en(this,e),this.Lk=e.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(e){this._isFrozen&&en(this,e),0>e&&An(e,">= zero",di,"startRadius"),this.Gr=e,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(e){this._isFrozen&&en(this,e),0>e&&An(e,">= zero",di,"endRadius"),this.Xp=e,this.xe=null}},colorStops:{get:function(){return this.we},set:function(e){this._isFrozen&&en(this,e),this.we=e,this.xe=null}},pattern:{get:function(){return this.cr},set:function(e){this._isFrozen&&en(this,e),this.cr=e,this.xe=null}}}),di.prototype.isDark=di.prototype.Gx,di.prototype.darkenBy=di.prototype.Wy,di.prototype.lightenBy=di.prototype.Vz,di.prototype.addColorStop=di.prototype.addColorStop;var Ev=216/24389,Tg=24389/27,ed=[95.047,100,108.883],Cv=null,$i=new cp,dl=new cp,ha=new cp,Yu=new cp,td=!1;di.className="Brush";var Nc;di.Solid=Nc=new Dt(di,"Solid",0);var cc;di.Linear=cc=new Dt(di,"Linear",1);var _l;di.Radial=_l=new Dt(di,"Radial",2);var nd;di.Pattern=nd=new Dt(di,"Pattern",4);var rd;di.Lab=rd=new Dt(di,"Lab",5);var m0;di.HSL=m0=new Dt(di,"HSL",6),di.randomColor=function(e,t){e===void 0&&(e=128),t===void 0&&(t=Math.max(e,255));var n=Math.abs(t-e);t=Math.floor(e+Math.random()*n).toString(16);var r=Math.floor(e+Math.random()*n).toString(16);return e=Math.floor(e+Math.random()*n).toString(16),2>t.length&&(t="0"+t),2>r.length&&(r="0"+r),2>e.length&&(e="0"+e),"#"+t+r+e},di.isValidColor=function(e){if(e==="black")return!0;if(e==="")return!1;td||(wv(),td=!0);var t=Cv;if(t===null)return!0;t.fillStyle="#000000";var n=t.fillStyle;return t.fillStyle=e,t.fillStyle!==n?!0:(t.fillStyle="#FFFFFF",n=t.fillStyle,t.fillStyle=e,t.fillStyle!==n)},di.lighten=function(e){return d0(e)},di.lightenBy=d0,di.darken=function(e){return p0(e)},di.darkenBy=p0,di.mix=vv,di.isDark=Qf;function Zo(){this.xa="Base"}Zo.prototype.measure=function(){},Zo.prototype.Yz=function(e,t,n,r,i){e.measure(t,n,r,i)},Zo.prototype.arrange=function(){},Zo.prototype.Ly=function(e,t,n,r,i,o){e.arrange(t,n,r,i,o)},Zo.prototype.iA=function(e){e.Uj()},Zo.prototype.gc=function(){},Mn.Object.defineProperties(Zo.prototype,{name:{get:function(){return this.xa},set:function(e){this.xa=e}},classType:{get:function(){return Xt}}}),Zo.prototype.remeasureObject=Zo.prototype.iA,Zo.prototype.arrangeElement=Zo.prototype.Ly,Zo.prototype.measureElement=Zo.prototype.Yz,Zo.className="PanelLayout";function _g(){this.xa="Base"}Kn(_g,Zo),_g.prototype.measure=function(e,t,n,r,i,o,a){var d=r.length;e=hc(e);for(var x=0;x<d;x++){var O=r[x];if(O.visible||O===e){var M=O.margin,Y=M.right+M.left;M=M.top+M.bottom,O.measure(t,n,o,a);var ie=O.measuredBounds;Y=Math.max(ie.width+Y,0),M=Math.max(ie.height+M,0),ie=O.position.x;var ce=O.position.y;isFinite(ie)||(ie=0),isFinite(ce)||(ce=0),O instanceof hr&&O.isGeometryPositioned&&(O=O.strokeWidth/2,ie-=O,ce-=O),Jr(i,ie,ce,Y,M)}}},_g.prototype.arrange=function(e,t,n){var r=t.length,i=e.padding;for(e=n.x-i.left,n=n.y-i.top,i=0;i<r;i++){var o=t[i],a=o.measuredBounds,d=o.margin,x=o.position.x,O=o.position.y;if(x=isNaN(x)?-e:x-e,O=isNaN(O)?-n:O-n,o instanceof hr&&o.isGeometryPositioned){var M=o.strokeWidth/2;x-=M,O-=M}o.visible&&o.arrange(x+d.left,O+d.top,a.width,a.height)}};function Ag(){this.xa="Base"}Kn(Ag,Zo),Ag.prototype.measure=function(e,t,n,r,i,o,a){var d=r.length;t=Bn(),o=hc(e);for(var x=0;x<d;x++){var O=r[x];if(O.visible||O===o){var M=Aa(O,!1);if(M!==Ut&&M!==Ln)t.push(O);else{O.measure(1/0,n,0,a),M=O.margin,O=O.measuredBounds;var Y=Math.max(O.height+M.top+M.bottom,0);i.width+=Math.max(O.width+M.right+M.left,0),i.height=Math.max(i.height,Y)}}}for(r=t.length,e.desiredSize.height?n=Math.min(e.desiredSize.height,e.maxSize.height):i.height!==0&&(n=Math.min(i.height,e.maxSize.height)),e=0;e<r;e++)x=t[e],(x.visible||x===o)&&(M=x.margin,d=M.right+M.left,M=M.top+M.bottom,x.measure(1/0,n,0,a),x=x.measuredBounds,M=Math.max(x.height+M,0),i.width+=Math.max(x.width+d,0),i.height=Math.max(i.height,M));wn(t)},Ag.prototype.arrange=function(e,t,n){for(var r=t.length,i=e.padding,o=i.top,a=e.isOpposite,d=a?n.width:i.left,x=0;x<r;x++){var O=o,M=t[x];if(M.visible){var Y=M.measuredBounds,ie=M.margin,ce=ie.top+ie.bottom,ge=o+i.bottom,Te=Y.height,Ve=Aa(M,!1);(isNaN(M.desiredSize.height)&&Ve===$t||Ve===Yn)&&(Te=Math.max(n.height-ce-ge,0)),ce=Te+ce+ge,ge=M.alignment,ge.Xb()&&(ge=e.defaultAlignment),ge.sb()||(ge=Tr),a&&(d-=Y.width+ie.left+ie.right),M.arrange(d+ge.offsetX+ie.left,O+ge.offsetY+ie.top+(n.height*ge.y-ce*ge.y),Y.width,Te),a||(d+=Y.width+ie.left+ie.right)}}};function kg(){this.xa="Base"}Kn(kg,Zo),kg.prototype.measure=function(e,t,n,r,i,o){var a=r.length;n=Bn();for(var d=hc(e),x=0;x<a;x++){var O=r[x];if(O.visible||O===d){var M=Aa(O,!1);if(M!==Ut&&M!==Yn)n.push(O);else{var Y=O.margin;M=Y.right+Y.left,Y=Y.top+Y.bottom,O.measure(t,1/0,o,0),O=O.measuredBounds,ei(i,Math.max(i.width,Math.max(O.width+M,0)),i.height+Math.max(O.height+Y,0))}}}if(r=n.length,r!==0){for(e.desiredSize.width?t=Math.min(e.desiredSize.width,e.maxSize.width):i.width!==0&&(t=Math.min(i.width,e.maxSize.width)),e=0;e<r;e++)x=n[e],(x.visible||x===d)&&(O=x.margin,a=O.right+O.left,O=O.top+O.bottom,x.measure(t,1/0,o,0),x=x.measuredBounds,O=Math.max(x.height+O,0),i.width=Math.max(i.width,Math.max(x.width+a,0)),i.height+=O);wn(n)}},kg.prototype.arrange=function(e,t,n){for(var r=t.length,i=e.padding,o=i.left,a=e.isOpposite,d=a?n.height:i.top,x=0;x<r;x++){var O=o,M=t[x];if(M.visible){var Y=M.measuredBounds,ie=M.margin,ce=ie.left+ie.right,ge=o+i.right,Te=Y.width,Ve=Aa(M,!1);(isNaN(M.desiredSize.width)&&Ve===$t||Ve===Ln)&&(Te=Math.max(n.width-ce-ge,0)),ce=Te+ce+ge,ge=M.alignment,ge.Xb()&&(ge=e.defaultAlignment),ge.sb()||(ge=Tr),a&&(d-=Y.height+ie.bottom+ie.top),M.arrange(O+ge.offsetX+ie.left+(n.width*ge.x-ce*ge.x),d+ge.offsetY+ie.top,Te,Y.height),a||(d+=Y.height+ie.bottom+ie.top)}}};function Ng(){this.xa="Base"}Kn(Ng,Zo),Ng.prototype.measure=function(e,t,n,r,i,o,a){var d=r.length,x=e.Pb(),O=x.margin,M=O.right+O.left,Y=O.top+O.bottom;x.measure(t,n,o,a);var ie=x.measuredBounds;o=ie.width,a=ie.height;var ce=Math.max(o+M,0),ge=Math.max(a+Y,0),Te=e.isClipping,Ve=xt.allocAt(-O.left,-O.top,ce,ge),He=xt.allocAt(0,0,o,a);Tv(x,He,!0),o=He.width,a=He.height;for(var Xe=!0,Ze=hc(e),qe=0;qe<d;qe++){var st=r[qe];ie=t;var yt=n;if(st!==x&&(st.visible||st===Ze)){O=st.margin;var un=O.left,kn=O.top;switch(ce=O.right+O.left,ge=O.top+O.bottom,O=Aa(st,!1),O){case $t:ie=o,yt=a,kn=un=ge=ce=0;break;case Ln:ie=o,un=ce=0;break;case Yn:yt=a,kn=ge=0}st.measure(ie,yt,0,0),ie=st.measuredBounds,ce=Math.max(ie.width+ce,0),ge=Math.max(ie.height+ge,0),O=st.alignment,O.Xb()&&(O=e.defaultAlignment),O.sb()||(O=Tr);var En=st.alignmentFocus;if(En.Xb()&&(En=Tr),yt=null,st instanceof Xt&&st.$e!==""&&(yt=st.fb(st.$e),yt===st&&(yt=null)),un=He.x-un,kn=He.y-kn,yt!==null){for(st.arrange(0,0,ie.width,ie.height),ie=yt.actualBounds,ie=Ie.allocAt(ie.x+(En.x*ie.width-En.offsetX),ie.y+(En.y*ie.height-En.offsetY)),yt=yt.panel;yt!==st;)yt.transform.Ga(ie),yt=yt.panel;un+=O.x*o+O.offsetX-ie.x,kn+=O.y*a+O.offsetY-ie.y,Ie.free(ie)}else un+=O.x*o+O.offsetX-(En.x*ie.width+En.offsetX),kn+=O.y*a+O.offsetY-(En.y*ie.height+En.offsetY);Xe?(Xe=!1,i.h(un,kn,ce,ge)):Jr(i,un,kn,ce,ge)}}switch(Xe?i.assign(Ve):Te?i.Uu(He.x,He.y,He.width,He.height):Jr(i,Ve.x,Ve.y,Ve.width,Ve.height),xt.free(Ve),xt.free(He),O=x.stretch,O===sr&&(O=Aa(x,!1)),O){case Ut:return;case $t:if(!isFinite(t)&&!isFinite(n))return;break;case Ln:if(!isFinite(t))return;break;case Yn:if(!isFinite(n))return}for(ie=x.measuredBounds,o=ie.width,a=ie.height,ce=Math.max(o+M,0),ge=Math.max(a+Y,0),O=x.margin,He=xt.allocAt(-O.left,-O.top,ce,ge),Tv(x,He,!0),o=He.width,a=He.height,t=0;t<d;t++)n=r[t],n===x||!n.visible&&n!==Ze||(O=n.margin,ce=O.right+O.left,ge=O.top+O.bottom,ie=n.measuredBounds,ce=Math.max(ie.width+ce,0),ge=Math.max(ie.height+ge,0),M=n.alignment,M.Xb()&&(M=e.defaultAlignment),M.sb()||(M=Tr),n=n.alignmentFocus,n.Xb()&&(n=Tr),Xe?(Xe=!1,i.h(M.x*o+M.offsetX-(n.x*ie.width+n.offsetX)-O.left,M.y*a+M.offsetY-(n.y*ie.height+n.offsetY)-O.top,ce,ge)):Jr(i,M.x*o+M.offsetX-(n.x*ie.width+n.offsetX)-O.left,M.y*a+M.offsetY-(n.y*ie.height+n.offsetY)-O.top,ce,ge));Xe?i.assign(Ve):Te?i.Uu(He.x,He.y,He.width,He.height):Jr(i,Ve.x,Ve.y,Ve.width,Ve.height),xt.free(He)},Ng.prototype.arrange=function(e,t,n){var r=t.length,i=e.Pb(),o=i.measuredBounds,a=o.width,d=o.height,x=e.padding;o=x.left,x=x.top;var O=o-n.x,M=x-n.y;for(i.arrange(O,M,a,d),a=xt.allocAt(0,0,a,d),Tv(i,a,!1),d=0;d<r;d++){var Y=t[d];if(Y!==i){O=Y.measuredBounds;var ie=O.width,ce=O.height;M=Y.alignment,M.Xb()&&(M=e.defaultAlignment),M.sb()||(M=Tr);var ge=Y.alignmentFocus;if(ge.Xb()&&(ge=Tr),O=null,Y instanceof Xt&&Y.$e!==""&&(O=Y.fb(Y.$e),O===Y&&(O=null)),O!==null){var Te=O.actualBounds;for(ge=Ie.allocAt(Te.x+(ge.x*Te.width-ge.offsetX),Te.y+(ge.y*Te.height-ge.offsetY)),O=O.panel;O!==Y;)O.transform.Ga(ge),O=O.panel;O=M.x*a.width+M.offsetX-ge.x,M=M.y*a.height+M.offsetY-ge.y,Ie.free(ge)}else O=M.x*a.width+M.offsetX-(ge.x*ie+ge.offsetX),M=M.y*a.height+M.offsetY-(ge.y*ce+ge.offsetY);O+=a.x-n.x,M+=a.y-n.y,Y.visible&&Y.arrange(o+O,x+M,ie,ce)}}xt.free(a)};function Tv(e,t,n){var r=null;if(e instanceof Xt&&e.$e!==""&&(r=e.fb(e.$e),r===e&&(r=null)),r!==null)for(n&&e.arrange(0,0,t.width,t.height),t.assign(r.actualBounds),r=r.panel;r!==e;)r.transform.pp(t),r=r.panel}function Ig(){this.xa="Base"}Kn(Ig,Zo),Ig.prototype.measure=function(e,t,n,r,i,o,a){var d=r.length,x=e.Pb(),O=x.margin,M=t,Y=n,ie=O.right+O.left,ce=O.top+O.bottom;x.measure(t,n,o,a),O=x.measuredBounds;var ge=0,Te=null;x instanceof hr&&(Te=x,ge=Te.strokeWidth*Te.scale);var Ve=Math.max(O.width+ie,0);O=Math.max(O.height+ce,0);var He=Nv(x),Xe=He.x*Ve+He.offsetX;He=He.y*O+He.offsetY;var Ze=Iv(x),qe=Ze.x*Ve+Ze.offsetX;for(Ze=Ze.y*O+Ze.offsetY,isFinite(t)&&(M=Math.max(Math.abs(Xe-qe)-ge,0)),isFinite(n)&&(Y=Math.max(Math.abs(He-Ze)-ge,0)),ge=mn.alloc(),ge.h(0,0),e=hc(e),Ze=0;Ze<d;Ze++)He=r[Ze],He===x||!He.visible&&He!==e||(O=He.margin,Ve=O.right+O.left,Xe=O.top+O.bottom,He.measure(M,Y,0,0),O=He.measuredBounds,Ve=Math.max(O.width+Ve,0),O=Math.max(O.height+Xe,0),ge.h(Math.max(Ve,ge.width),Math.max(O,ge.height)));if(d===1)i.width=Ve,i.height=O,mn.free(ge);else{switch(He=Nv(x),Ze=Iv(x),d=r=0,Ze.x!==He.x&&Ze.y!==He.y&&(r=ge.width/Math.abs(Ze.x-He.x),d=ge.height/Math.abs(Ze.y-He.y)),mn.free(ge),ge=0,Te!==null&&(ge=Te.strokeWidth*Te.scale,Pv(Te)===Nn&&(r=d=Math.max(r,d))),r+=Math.abs(He.offsetX)+Math.abs(Ze.offsetX)+ge,d+=Math.abs(He.offsetY)+Math.abs(Ze.offsetY)+ge,Te=x.stretch,Te===sr&&(Te=Aa(x,!1)),Te){case Ut:a=o=0;break;case $t:isFinite(t)&&(r=t),isFinite(n)&&(d=n);break;case Ln:isFinite(t)&&(r=t),a=0;break;case Yn:o=0,isFinite(n)&&(d=n)}x.Uj(),x.measure(r,d,o,a),i.width=x.measuredBounds.width+ie,i.height=x.measuredBounds.height+ce}},Ig.prototype.arrange=function(e,t){var n=t.length,r=e.Pb(),i=r.measuredBounds,o=xt.alloc();o.h(0,0,1,1);var a=r.margin,d=a.left;a=a.top;var x=e.padding,O=x.left;x=x.top,r.arrange(O+d,x+a,i.width,i.height);var M=Nv(r),Y=Iv(r),ie=M.y*i.height+M.offsetY,ce=Y.x*i.width+Y.offsetX;for(Y=Y.y*i.height+Y.offsetY,o.x=M.x*i.width+M.offsetX,o.y=ie,Jr(o,ce,Y,0,0),o.x+=d+O,o.y+=a+x,i=0;i<n;i++)d=t[i],d!==r&&(O=d.measuredBounds,a=d.margin,x=Math.max(O.width+a.right+a.left,0),M=Math.max(O.height+a.top+a.bottom,0),ie=d.alignment,ie.Xb()&&(ie=e.defaultAlignment),ie.sb()||(ie=Tr),x=o.width*ie.x+ie.offsetX-x*ie.x+a.left+o.x,a=o.height*ie.y+ie.offsetY-M*ie.y+a.top+o.y,d.visible&&(Vi(o.x,o.y,o.width,o.height,x,a,O.width,O.height)?d.arrange(x,a,O.width,O.height):d.arrange(x,a,O.width,O.height,new xt(o.x,o.y,o.width,o.height))));xt.free(o)};function Rg(){this.xa="Base",this.name="Table"}Kn(Rg,Zo),Rg.prototype.measure=function(e,t,n,r,i){for(var o=r.length,a=Bn(),d=Bn(),x=0;x<o;x++){var O=r[x],M=O instanceof Xt?O:null;if(M!==null&&Ic(M)&&O.visible){d.push(M);for(var Y=M.O.s,ie=Y.length,ce=0;ce<ie;ce++){var ge=Y[ce];M.type===Xt.TableRow?ge.row=O.row:M.type===Xt.TableColumn&&(ge.column=O.column),a.push(ge)}}else a.push(O)}o=a.length,o===0&&(e.Fb(0),e.Eb(0));for(var Te=[],Ve=0;Ve<o;Ve++){var He=a[Ve];He.visible&&(Vo(He,!0),Vu(He,!0),Te[He.row]||(Te[He.row]=[]),Te[He.row][He.column]||(Te[He.row][He.column]=[]),Te[He.row][He.column].push(He))}wn(a);var Xe=Bn(),Ze=Bn(),qe=Bn(),st={count:0},yt={count:0},un=t,kn=n,En=e.rowDefs,tn=e.colDefs,Bt=null;o=En.length;for(var ir=0;ir<o;ir++)Bt=En[ir],Bt!==void 0&&(Bt.actual=0);o=tn.length;for(var Jn=0;Jn<o;Jn++)Bt=tn[Jn],Bt!==void 0&&(Bt.actual=0);for(var ni=Te.length,Hi=0,ls=0;ls<ni;ls++)Te[ls]&&(Hi=Math.max(Hi,Te[ls].length));var fs=Math.min(e.topIndex,ni-1),ea=Math.min(e.leftIndex,Hi-1),us=0;ni=Te.length;for(var Uc=hc(e),Po=0;Po<ni;Po++)if(Te[Po]){Hi=Te[Po].length;var Cu=e.Fb(Po);Cu.actual=0;for(var ta=Cu.oc=0;ta<Hi;ta++)if(Te[Po][ta]){var Hc=e.Eb(ta);Xe[ta]===void 0&&(Hc.actual=0,Hc.oc=0,Xe[ta]=!0);for(var ml=Te[Po][ta],Wl=ml.length,qa=0;qa<Wl;qa++){var ja=ml[qa];if(ja.visible||ja===Uc){var vh=1<ja.rowSpan||1<ja.columnSpan;vh&&(Po<fs||ta<ea||Ze.push(ja));var Tu=ja.margin,_d=Tu.right+Tu.left,el=Tu.top+Tu.bottom,na=bu(ja,Cu,Hc,!1),Jp=ja.desiredSize,kf=!isNaN(Jp.height),Du=!isNaN(Jp.width)&&kf;if(vh||na===Ut||Du||Po<fs||ta<ea||(st[ta]!==void 0||na!==$t&&na!==Ln||(st[ta]=-1,st.count++),yt[Po]!==void 0||na!==$t&&na!==Yn||(yt[Po]=-1,yt.count++),qe.push(ja)),ja.measure(1/0,1/0,0,0),!(Po<fs||ta<ea)){var Ua=ja.measuredBounds,Zh=Math.max(Ua.width+_d,0),tl=Math.max(Ua.height+el,0);if(ja.rowSpan===1&&(na===Ut||na===Ln)){Bt=e.Fb(Po);var yh=Bt.Wc();us=Math.max(tl-Bt.actual,0),us+yh>kn&&(us=Math.max(kn-yh,0));var ev=Bt.oa===0;Bt.oc=Bt.oc+us,Bt.actual=Bt.oa+us,kn=Math.max(kn-(us+(ev?yh:0)),0)}if(ja.columnSpan===1&&(na===Ut||na===Yn)){Bt=e.Eb(ta);var Qp=Bt.Wc();us=Math.max(Zh-Bt.actual,0),us+Qp>un&&(us=Math.max(un-Qp,0));var Qy=Bt.oa===0;Bt.oc=Bt.oc+us,Bt.actual=Bt.oa+us,un=Math.max(un-(us+(Qy?Qp:0)),0)}vh&&ja.Uj()}}}}}wn(Xe);var nc=0,pc=0;o=e.columnCount;for(var Nf=0;Nf<o;Nf++){var bh=tn[Nf];bh!==void 0&&(nc+=isNaN(bh.Hc)?bh.oc:bh.Hc,bh.oc!==0&&(nc+=bh.Wc()))}o=e.rowCount;for(var Ad=0;Ad<o;Ad++){var Sh=En[Ad];Sh!==void 0&&(pc+=isNaN(Sh.Hc)?Sh.oc:Sh.Hc,Sh.oc!==0&&(pc+=Sh.Wc()))}un=Math.max(t-nc,0);var rc=kn=Math.max(n-pc,0),zc=un;o=qe.length;for(var Ha=0;Ha<o;Ha++){var Pu=qe[Ha],tv=e.Fb(Pu.row),gc=e.Eb(Pu.column),kd=Pu.measuredBounds,_u=Pu.margin,Jh=_u.right+_u.left,Fu=_u.top+_u.bottom;st[Pu.column]=gc.oc===0&&st[Pu.column]!==void 0?Math.max(kd.width+Jh,st[Pu.column]):null,yt[Pu.row]=tv.oc===0&&yt[Pu.row]!==void 0?Math.max(kd.height+Fu,yt[Pu.row]):null}var If=0,Nd=0,fu;for(fu in yt)fu!=="count"&&(If+=yt[fu]);for(fu in st)fu!=="count"&&(Nd+=st[fu]);for(var Cs=mn.alloc(),qp=0;qp<o;qp++){var ya=qe[qp];if(ya.visible||ya===Uc){var Fo=e.Fb(ya.row),ba=e.Eb(ya.column),mc=0;isFinite(ba.width)?mc=ba.width:(isFinite(un)&&st[ya.column]!==null?Nd===0?mc=ba.actual+un:mc=st[ya.column]/Nd*zc:st[ya.column]!==null?mc=un:mc=ba.actual||un,mc=Math.max(0,mc-ba.Wc()));var Gc=0;switch(isFinite(Fo.height)?Gc=Fo.height:(isFinite(kn)&&yt[ya.row]!==null?If===0?Gc=Fo.actual+kn:Gc=yt[ya.row]/If*rc:yt[ya.row]!==null?Gc=kn:Gc=Fo.actual||kn,Gc=Math.max(0,Gc-Fo.Wc())),Cs.h(Math.max(ba.minimum,Math.min(mc,ba.maximum)),Math.max(Fo.minimum,Math.min(Gc,Fo.maximum))),na=bu(ya,Fo,ba,!1),na){case Ln:Cs.height=Math.max(Cs.height,Fo.actual+kn);break;case Yn:Cs.width=Math.max(Cs.width,ba.actual+un)}var Qh=ya.margin,qy=Qh.right+Qh.left,nv=Qh.top+Qh.bottom;ya.Uj(),ya.measure(Cs.width,Cs.height,ba.minimum,Fo.minimum);var Id=ya.measuredBounds,qh=Math.max(Id.width+qy,0),Rf=Math.max(Id.height+nv,0);isFinite(un)&&(qh=Math.min(qh,Cs.width)),isFinite(kn)&&(Rf=Math.min(Rf,Cs.height));var za=0;za=Fo.actual,Fo.actual=Math.max(Fo.actual,Rf),Fo.oc=Math.max(Fo.oc,Rf),us=Fo.actual-za,kn=Math.max(kn-us,0),yt[ya.row]===null&&(rc=Math.max(rc-us,0)),za=ba.actual,ba.actual=Math.max(ba.actual,qh),ba.oc=Math.max(ba.oc,qh),us=ba.actual-za,un=Math.max(un-us,0),st[ya.column]===null&&(zc=Math.max(zc-us,0))}}wn(qe);var vc=mn.alloc(),Au=Bn(),Rl=Bn();if(o=Ze.length,o!==0){for(var xh=0;xh<ni;xh++)if(Te[xh]){Hi=Te[xh].length;var Rd=e.Fb(xh);Au[xh]=Rd.actual;for(var wh=0;wh<Hi;wh++)if(Te[xh][wh]){var rv=e.Eb(wh);Rl[wh]=rv.actual}}}for(var Od=0;Od<o;Od++){var Eo=Ze[Od];if(Eo.visible||Eo===Uc){var du=e.Fb(Eo.row),Vl=e.Eb(Eo.column);switch(Cs.h(Math.max(Vl.minimum,Math.min(t,Vl.maximum)),Math.max(du.minimum,Math.min(n,du.maximum))),na=bu(Eo,du,Vl,!1),na){case $t:Rl[Vl.index]!==0&&(Cs.width=Math.min(Cs.width,Rl[Vl.index])),Au[du.index]!==0&&(Cs.height=Math.min(Cs.height,Au[du.index]));break;case Ln:Rl[Vl.index]!==0&&(Cs.width=Math.min(Cs.width,Rl[Vl.index]));break;case Yn:Au[du.index]!==0&&(Cs.height=Math.min(Cs.height,Au[du.index]))}isFinite(Vl.width)&&(Cs.width=Vl.width),isFinite(du.height)&&(Cs.height=du.height),vc.h(0,0);for(var iv=Vl.minimum,nl=du.minimum,Wc=1;Wc<Eo.rowSpan&&!(Eo.row+Wc>=e.rowCount);Wc++)Bt=e.Fb(Eo.row+Wc),us=0,us=na===$t||na===Yn?Math.max(Bt.minimum,Au[Eo.row+Wc]===0?Bt.maximum:Math.min(Au[Eo.row+Wc],Bt.maximum)):Math.max(Bt.minimum,isNaN(Bt.Hc)?Bt.maximum:Math.min(Bt.Hc,Bt.maximum)),vc.height+=us,nl+=Bt.minimum;for(var Kl=1;Kl<Eo.columnSpan&&!(Eo.column+Kl>=e.columnCount);Kl++)Bt=e.Eb(Eo.column+Kl),us=0,us=na===$t||na===Ln?Math.max(Bt.minimum,Rl[Eo.column+Kl]===0?Bt.maximum:Math.min(Rl[Eo.column+Kl],Bt.maximum)):Math.max(Bt.minimum,isNaN(Bt.Hc)?Bt.maximum:Math.min(Bt.Hc,Bt.maximum)),vc.width+=us,iv+=Bt.minimum;Cs.width+=vc.width,Cs.height+=vc.height;var Ld=Eo.margin,Eh=Ld.right+Ld.left,eg=Ld.top+Ld.bottom;Eo.measure(Cs.width,Cs.height,iv,nl);for(var Md=Eo.measuredBounds,Bu=Math.max(Md.width+Eh,0),ef=Math.max(Md.height+eg,0),Ch=0,Dd=0;Dd<Eo.rowSpan&&!(Eo.row+Dd>=e.rowCount);Dd++)Bt=e.Fb(Eo.row+Dd),Ch+=Bt.total||0;if(Ch<ef){var Vc=ef-Ch,ic=ef-Ch;if(Eo.spanAllocation!==null)for(var Kc=Eo.spanAllocation,yc=0;yc<Eo.rowSpan&&!(0>=Vc)&&!(Eo.row+yc>=e.rowCount);yc++){Bt=e.Fb(Eo.row+yc);var Yc=Bt.oa||0,tf=Kc(Eo,Bt,ic);Bt.actual=Math.min(Bt.maximum,Yc+tf),Bt.oa!==Yc&&(Vc-=Bt.oa-Yc)}for(;0<Vc;){var ku=Bt.oa||0;if(isNaN(Bt.height)&&Bt.maximum>ku&&(Bt.actual=Math.min(Bt.maximum,ku+Vc),Bt.oa!==ku&&(Vc-=Bt.oa-ku)),Bt.index===0)break;Bt=e.Fb(Bt.index-1)}}for(var Of=0,$c=0;$c<Eo.columnSpan&&!(Eo.column+$c>=e.columnCount);$c++)Bt=e.Eb(Eo.column+$c),Of+=Bt.total||0;if(Of<Bu){var Lf=Bu-Of,e0=Bu-Of;if(Eo.spanAllocation!==null)for(var bc=Eo.spanAllocation,nf=0;nf<Eo.columnSpan&&!(0>=Lf)&&!(Eo.column+nf>=e.columnCount);nf++){Bt=e.Eb(Eo.column+nf);var tg=Bt.oa||0,t0=bc(Eo,Bt,e0);Bt.actual=Math.min(Bt.maximum,tg+t0),Bt.oa!==tg&&(Lf-=Bt.oa-tg)}for(;0<Lf;){var ov=Bt.oa||0;if(isNaN(Bt.width)&&Bt.maximum>ov&&(Bt.actual=Math.min(Bt.maximum,ov+Lf),Bt.oa!==ov&&(Lf-=Bt.oa-ov)),Bt.index===0)break;Bt=e.Eb(Bt.index-1)}}}}wn(Ze),mn.free(vc),mn.free(Cs),Au!==void 0&&wn(Au),Rl!==void 0&&wn(Rl);var Mf=0,Df=0,sv=e.desiredSize,k1=e.maxSize;na=Aa(e,!0);var ng=pc=nc=0,rg=0;o=e.columnCount;for(var av=0;av<o;av++)tn[av]!==void 0&&(Bt=e.Eb(av),isFinite(Bt.width)?(ng+=Bt.width,ng+=Bt.Wc()):Hg(Bt)===pp?(ng+=Bt.oa,ng+=Bt.Wc()):Bt.oa!==0&&(nc+=Bt.oa,nc+=Bt.Wc()));isFinite(sv.width)?Mf=Math.min(sv.width,k1.width):Mf=na!==Ut&&isFinite(t)?t:nc,Mf=Math.max(Mf,e.minSize.width),Mf=Math.max(Mf-ng,0);for(var pS=nc===0?1:Math.max(Mf/nc,1),lv=0;lv<o;lv++)tn[lv]!==void 0&&(Bt=e.Eb(lv),isFinite(Bt.width)||Hg(Bt)===pp||(Bt.actual=Bt.oa*pS),Bt.position=i.width,Bt.oa!==0&&(i.width+=Bt.oa,i.width+=Bt.Wc()));o=e.rowCount;for(var uv=0;uv<o;uv++)En[uv]!==void 0&&(Bt=e.Fb(uv),isFinite(Bt.height)?(rg+=Bt.height,rg+=Bt.Wc()):Hg(Bt)===pp?(rg+=Bt.oa,rg+=Bt.Wc()):Bt.oa!==0&&(pc+=Bt.oa,pc+=Bt.Wc()));isFinite(sv.height)?Df=Math.min(sv.height,k1.height):Df=na!==Ut&&isFinite(n)?n:pc,Df=Math.max(Df,e.minSize.height),Df=Math.max(Df-rg,0);for(var gS=pc===0?1:Math.max(Df/pc,1),cv=0;cv<o;cv++)En[cv]!==void 0&&(Bt=e.Fb(cv),isFinite(Bt.height)||Hg(Bt)===pp||(Bt.actual=Bt.oa*gS),Bt.position=i.height,Bt.oa!==0&&(i.height+=Bt.oa,i.height+=Bt.Wc()));o=d.length;for(var n0=0;n0<o;n0++){var ig=d[n0],r0=0,i0=0;ig.type===Xt.TableRow?(r0=i.width,Bt=e.Fb(ig.row),i0=Bt.actual):(Bt=e.Eb(ig.column),r0=Bt.actual,i0=i.height),ig.measuredBounds.h(0,0,r0,i0),Vo(ig,!1)}wn(d),e.inRowsCols=Te},Rg.prototype.arrange=function(e,t,n){var r=t.length,i=e.padding,o=i.left;i=i.top;var a=e.inRowsCols;if(a!==null){for(var d,x,O=a.length,M=0,Y=0;Y<O;Y++)a[Y]&&(M=Math.max(M,a[Y].length));x=e.rowDefs,d=e.colDefs;var ie=Y=0,ce=Math.min(e.topIndex,O-1);if(0<x.length){for(;ce!==O&&(x[ce]===void 0||x[ce].oa===0);)ce++;ce=Math.max(Math.min(ce,O-1),0),Y=-x[ce].position}var ge=Math.min(e.leftIndex,M-1);if(0<d.length){for(;ge!==M&&(d[ge]===void 0||d[ge].oa===0);)ge++;ge=Math.max(Math.min(ge,M-1),0),ie=-d[ge].position}for(var Te=0,Ve=0;Te!==O&&x[Te]===void 0;)Te++;for(;Ve!==O&&d[Ve]===void 0;)Ve++;M=e.part,e.Fb(Te),e.Eb(Ve);for(var He=0;He<t.length;He++){var Xe=t[He];if(Xe instanceof Xt&&Xe.visible&&Ic(Xe)){if(Xe.type===Xt.TableRow){d=e.Fb(Xe.row);var Ze=e.Eb(Ve)}else d=e.Fb(Te),Ze=e.Eb(Xe.column);x=d.position+Y+i,d.oa!==0&&(x+=d.Io(Math.max(Te,ce))),d=Ze.position+ie+o,Ze.oa!==0&&(d+=Ze.Io(Math.max(Ve,ge))),Ze=Xe.measuredBounds,Xe.Uk(),Xe.actualBounds.ka();var qe=Xe.actualBounds,st=xt.allocAt(qe.x,qe.y,qe.width,qe.height);qe.x=Xe.type===Xt.TableRow?o:d,qe.y=Xe.type===Xt.TableColumn?i:x,qe.width=Ze.width,qe.height=Ze.height,Xe.actualBounds.freeze(),Vu(Xe,!1),ii(st,qe)||M===null||(M.oh(),Xe.Pn(M)),xt.free(st)}}for(He=mn.alloc(),Xe=0;Xe<O;Xe++)if(a[Xe]){for(M=a[Xe].length,Ze=e.Fb(Xe),x=Ze.position+Y+i,Ze.oa!==0&&(x+=Ze.Io(Math.max(Te,ce))),qe=0;qe<M;qe++)if(a[Xe][qe]){st=e.Eb(qe),d=st.position+ie+o,st.oa!==0&&(d+=st.Io(Math.max(Ve,ge)));for(var yt=a[Xe][qe],un=yt.length,kn=0;kn<un;kn++){var En=yt[kn],tn=En.measuredBounds;He.h(0,0);for(var Bt=1;Bt<En.rowSpan&&!(Xe+Bt>=e.rowCount);Bt++){var ir=e.Fb(Xe+Bt);ir.oa!==0&&(He.height+=ir.total)}for(Bt=1;Bt<En.columnSpan&&!(qe+Bt>=e.columnCount);Bt++)ir=e.Eb(qe+Bt),ir.oa!==0&&(He.width+=ir.total);var Jn=st.oa+He.width,ni=Ze.oa+He.height;Bt=d,ir=x;var Hi=Jn,ls=ni,fs=d,ea=x,us=Jn,Uc=ni;d+Jn>n.width&&(us=Math.max(n.width-d,0)),x+ni>n.height&&(Uc=Math.max(n.height-x,0));var Po=En.alignment;if(Po.Xb()){Po=e.defaultAlignment,Po.sb()||(Po=Tr);var Cu=Po.x,ta=Po.y,Hc=Po.offsetX;Po=Po.offsetY;var ml=st.alignment,Wl=Ze.alignment;ml.sb()&&(Cu=ml.x,Hc=ml.offsetX),Wl.sb()&&(ta=Wl.y,Po=Wl.offsetY)}else Cu=Po.x,ta=Po.y,Hc=Po.offsetX,Po=Po.offsetY;(isNaN(Cu)||isNaN(ta))&&(ta=Cu=.5,Po=Hc=0),ml=tn.width,Wl=tn.height;var qa=En.margin,ja=qa.left+qa.right,vh=qa.top+qa.bottom,Tu=bu(En,Ze,st,!1);!isNaN(En.desiredSize.width)||Tu!==$t&&Tu!==Ln||(ml=Math.max(Jn-ja,0)),!isNaN(En.desiredSize.height)||Tu!==$t&&Tu!==Yn||(Wl=Math.max(ni-vh,0)),Jn=En.maxSize,ni=En.minSize,ml=Math.min(Jn.width,ml),Wl=Math.min(Jn.height,Wl),ml=Math.max(ni.width,ml),Wl=Math.max(ni.height,Wl),Jn=Wl+vh,Bt+=Hi*Cu-(ml+ja)*Cu+Hc+qa.left,ir+=ls*ta-Jn*ta+Po+qa.top,En.visible&&(Vi(fs,ea,us,Uc,Bt,ir,tn.width,tn.height)?En.arrange(Bt,ir,ml,Wl):En.arrange(Bt,ir,ml,Wl,new xt(fs,ea,us,Uc)))}}}for(mn.free(He),e=0;e<r;e++)n=t[e],o=n instanceof Xt?n:null,o!==null&&Ic(o)&&(o=n.actualBounds,n.naturalBounds.ka(),n.naturalBounds.h(0,0,o.width,o.height),n.naturalBounds.freeze())}};function Og(){this.xa="Base"}Kn(Og,Zo),Og.prototype.measure=function(){},Og.prototype.arrange=function(){};function Lg(){this.xa="Base"}Kn(Lg,Zo),Lg.prototype.measure=function(){},Lg.prototype.arrange=function(){};function Mg(){this.xa="Base"}Kn(Mg,Zo),Mg.prototype.measure=function(e,t,n,r,i,o,a){1<r.length&&ft("Viewbox Panel cannot contain more than one GraphObject."),r=r[0],r.Ca=1,r.Uj(),r.measure(1/0,1/0,o,a);var d=r.measuredBounds,x=r.margin,O=x.right+x.left;if(x=x.top+x.bottom,isFinite(t)||isFinite(n)){var M=r.scale,Y=d.width;d=d.height;var ie=Math.max(t-O,0),ce=Math.max(n-x,0),ge=1;e.viewboxStretch===Nn?Y!==0&&d!==0&&(ge=Math.min(ie/Y,ce/d)):Y!==0&&d!==0&&(ge=Math.max(ie/Y,ce/d)),ge===0&&(ge=1e-4),r.Ca*=ge,M!==r.scale&&(Vo(r,!0),r.measure(1/0,1/0,o,a))}d=r.measuredBounds,i.width=isFinite(t)?t:Math.max(d.width+O,0),i.height=isFinite(n)?n:Math.max(d.height+x,0)},Mg.prototype.arrange=function(e,t,n){t=t[0];var r=t.measuredBounds,i=t.margin,o=Math.max(r.width+(i.right+i.left),0);i=Math.max(r.height+(i.top+i.bottom),0);var a=t.alignment;a.Xb()&&(a=e.defaultAlignment),a.sb()||(a=Tr),t.arrange(n.width*a.x-o*a.x+a.offsetX,n.height*a.y-i*a.y+a.offsetY,r.width,r.height)};function hp(){this.xa="Base"}Kn(hp,Zo),hp.prototype.measure=function(){},hp.prototype.arrange=function(){},hp.prototype.gc=function(e,t,n){n=e.Df()*n.scale,0>=n&&(n=1);var r=e.gridCellSize,i=r.width;r=r.height;var o=e.naturalBounds,a=e.actualBounds,d=o.width,x=o.height,O=Math.ceil(d/i),M=Math.ceil(x/r),Y=e.gridOrigin,ie=Y.x;Y=Y.y,t.save(),t.beginPath(),t.rect(0,0,d,x),t.clip(),t.Se();for(var ce=[],ge=e.O.s,Te=ge.length,Ve=0;Ve<Te;Ve++){var He=ge[Ve],Xe=[];if(ce.push(Xe),He.visible){var Ze=He.interval;if(!(0>Ze)){He=Av(He.figure);for(var qe=0;qe<Te;qe++)if(qe!==Ve){var st=ge[qe];st.visible&&Av(st.figure)===He&&(st=st.interval,st>Ze&&Xe.push(st))}}}}for(ge=e.O.s,Te=ge.length,Ve=0;Ve<Te;Ve++){var yt=ge[Ve];if(yt.visible&&(Xe=yt.interval||1,He=Math.abs(Xe),!(2>i*He*n))){if(Ze=yt.segmentIndex,(!isFinite(Ze)||isNaN(Ze))&&(Ze=0),0>Ze&&(Ze=He-Math.min(-Ze,He)),Ze=Math.round(Ze%He),He=yt.opacity,qe=1,He!==1){if(He===0)continue;qe=t.globalAlpha,t.globalAlpha=qe*He}st=ce[Ve];var un=!1,kn=yt.strokeDashArray;if(kn!==null&&(un=!0,t.js(kn,yt.strokeDashOffset)),yt.figure==="LineV"&&yt.stroke!==null&&0<yt.strokeWidth){for(t.lineWidth=yt.strokeWidth,bo(e,t,yt.stroke,!1,!1,o,a),t.beginPath(),kn=yt=Math.floor((ie-i)/i);kn<=yt+O;kn++){var En=kn*i+ie;0<=En&&En<=d&&Dg(kn,Xe,Ze,st)&&(t.moveTo(En,0),t.lineTo(En,x))}t.stroke(),t.Se()}else if(yt.figure==="LineH"&&yt.stroke!==null&&0<yt.strokeWidth){for(t.lineWidth=yt.strokeWidth,bo(e,t,yt.stroke,!1,!1,o,a),t.beginPath(),kn=yt=Math.floor((Y-r)/r);kn<=yt+M;kn++)En=kn*r+Y,0<=En&&En<=x&&Dg(kn,Xe,Ze,st)&&(t.moveTo(0,En),t.lineTo(d,En));t.stroke(),t.Se()}else if(yt.figure==="BarV"&&yt.fill!==null)for(bo(e,t,yt.fill,!0,!1,o,a),yt=yt.width,isNaN(yt)&&(yt=i),En=kn=Math.floor((ie-i)/i);En<=kn+O;En++){var tn=En*i+ie;0<=tn+yt&&tn<=d&&Dg(En,Xe,Ze,st)&&t.fillRect(tn,0,yt,x)}else if(yt.figure==="BarH"&&yt.fill!==null)for(bo(e,t,yt.fill,!0,!1,o,a),yt=yt.height,isNaN(yt)&&(yt=r),En=kn=Math.floor((Y-r)/r);En<=kn+M;En++)tn=En*r+Y,0<=tn+yt&&tn<=x&&Dg(En,Xe,Ze,st)&&t.fillRect(0,tn,d,yt);un&&t.fs(),He!==1&&(t.globalAlpha=qe)}}t.restore(),t.Vc(!1)};function Dg(e,t,n,r){if(0>t)return e%t===n;if(e%t!==n)return!1;t=r.length;for(var i=0;i<t;i++)if(e%r[i]===n)return!1;return!0}function Pg(){this.xa="Base"}Kn(Pg,Zo),Pg.prototype.measure=function(e,t,n,r,i){var o=r.length;if(e instanceof Xr||e instanceof nn){var a=null,d=null;if(e instanceof nn&&(a=e),e instanceof Xr&&(d=e,a=d.adornedPart,e.j===null&&(e.j=[])),a instanceof nn){var x=a;if(o===0)ei(e.naturalBounds,0,0),e.measuredBounds.h(0,0,0,0);else{var O=e instanceof Xr?null:a.path;t=a.routeBounds,n=e.jg,n.h(0,0,t.width,t.height);var M=x.points,Y=a.pointsCount;d!==null?d.Ul(!1):a!==null&&a.Ul(!1),d=t.width;var ie=t.height,ce=e.j;if(ce.length=0,O!==null){v0(e,d,ie,O);var ge=O.measuredBounds;n.ed(ge),ce.push(ge)}ge=Zn.alloc();for(var Te=Ie.alloc(),Ve=Ie.alloc(),He=0;He<o;He++){var Xe=r[He];if(Xe!==O)if(Xe.isPanelMain&&Xe instanceof hr){v0(e,d,ie,Xe);var Ze=Xe.measuredBounds;n.ed(Ze),ce.push(Ze)}else if(2>Y)Xe.measure(1/0,1/0,0,0),Ze=Xe.measuredBounds,n.ed(Ze),ce.push(Ze);else{var qe=Xe.segmentIndex,st=Xe.segmentFraction,yt=Xe.alignmentFocus;yt.Mc()&&(yt=Tr);var un=Xe.segmentOrientation,kn=Xe.segmentOffset;if(isNaN(qe)){var En=x.ua;Ze=Bn(),En.Qu(st,Ze);var tn=Ie.allocAt(Ze[0],Ze[1]);if(tn.add(x.i(0)),En.type===qt.j?tn.offset(-En.startX,-En.startY):(En=En.figures.first(),En!==null&&tn.offset(-En.startX,-En.startY)),En=Ze[2],un!==da){var Bt=x.computeAngle(Xe,un,En);Xe.Kb=Bt}Bt=tn.x-t.x;var ir=tn.y-t.y;Ie.free(tn),wn(Ze)}else if(qe<-Y||qe>=Y)Ze=Ie.alloc(),x.vg(),x.computeMidPoint(Ze),En=x.midAngle,un!==da&&(Bt=x.computeAngle(Xe,un,En),Xe.Kb=Bt),Bt=Ze.x-t.x,ir=Ze.y-t.y,Ie.free(Ze);else{if(Bt=0,0<=qe?(ir=M.M(qe),Ze=qe<Y-1?M.M(qe+1):ir):(Bt=Y+qe,ir=M.M(Bt),Ze=0<Bt?M.M(Bt-1):ir),ir.Xa(Ze)){0<=qe?(En=0<qe?M.M(qe-1):ir,Bt=qe<Y-2?M.M(qe+2):Ze):(En=Bt<Y-1?M.M(Bt+1):ir,Bt=1<Bt?M.M(Bt-2):Ze),tn=En.Bf(ir);var Jn=Ze.Bf(Bt);En=tn>Jn+10?0<=qe?En.ab(ir):ir.ab(En):Jn>tn+10?0<=qe?Ze.ab(Bt):Bt.ab(Ze):0<=qe?En.ab(Bt):Bt.ab(En)}else En=0<=qe?ir.ab(Ze):Ze.ab(ir);un!==da&&(Bt=x.computeAngle(Xe,un,En),Xe.Kb=Bt),Bt=ir.x+(Ze.x-ir.x)*st-t.x,ir=ir.y+(Ze.y-ir.y)*st-t.y}Xe.measure(1/0,1/0,0,0),Ze=Xe.measuredBounds,tn=Xe.naturalBounds;var ni=0;Xe instanceof hr&&(ni=Xe.strokeWidth),Jn=tn.width+ni;var Hi=tn.height+ni;ge.reset(),ge.translate(-Ze.x,-Ze.y),ge.scale(Xe.scale,Xe.scale),ge.rotate(un===da?Xe.angle:En,Jn/2,Hi/2),un!==Cp&&un!==_p||ge.rotate(90,Jn/2,Hi/2),un!==Tp&&un!==Ap||ge.rotate(-90,Jn/2,Hi/2),un===fm&&(45<En&&135>En||225<En&&315>En)&&ge.rotate(-En,Jn/2,Hi/2),tn=new xt(0,0,Jn,Hi),Te.xi(tn,yt),ge.Ga(Te),yt=-Te.x+ni/2*Xe.scale,Xe=-Te.y+ni/2*Xe.scale,Ve.assign(kn),ni=isNaN(kn.x);var ls=isNaN(kn.y);if(ni||ls){Jn=Jn/2+3,Hi=Hi/2+3;var fs=45<=En&&135>=En,ea=225<=En&&315>=En;un===da&&(fs||ea)?(Ve.x=ls?Jn:kn.y,Ve.y=ni?Hi:kn.x,fs?0<=qe||isNaN(qe)&&.5>st||!ni||(Ve.y=-Hi):ea&&((0<=qe||isNaN(qe)&&.5>st)&&ni&&(Ve.y=-Hi),ls&&(Ve.x=-Jn))):(ni&&(Ve.x=0<=qe||isNaN(qe)&&.5>st?Jn:-Jn),ls&&(Ve.y=-Hi),Ve.rotate(En))}else Ve.rotate(En);Bt+=Ve.x,ir+=Ve.y,tn.set(Ze),tn.h(Bt+yt,ir+Xe,Ze.width,Ze.height),ce.push(tn),n.ed(tn)}}if(a!==null)for(r=a.labelNodes;r.next();)r.value.measure(1/0,1/0);e.jg=n,e.position.h(t.x+n.x,t.y+n.y),ei(i,n.width||0,n.height||0),Zn.free(ge),Ie.free(Te),Ie.free(Ve)}}}},Pg.prototype.arrange=function(e,t){var n=t.length;if(e instanceof Xr||e instanceof nn){var r=e,i=null;e instanceof Xr&&(i=e,r=i.adornedPart);var o=e instanceof Xr?null:r.path,a=e.j;if(a.length!==0){var d=0;if(o!==null&&d<a.length){var x=a[d];d++,o.arrange(x.x-e.jg.x,x.y-e.jg.y,x.width,x.height)}for(x=0;x<n;x++){var O=t[x];if(O!==o&&d<a.length){var M=a[d];d++,O.arrange(M.x-e.jg.x,M.y-e.jg.y,M.width,M.height)}}}if(t=r.points,n=t.count,2<=n&&e instanceof nn)for(o=e.labelNodes;o.next();){var Y=e;a=o.value,d=a.segmentIndex,x=a.segmentFraction;var ie=a.alignmentFocus;if(O=a.segmentOrientation,M=a.segmentOffset,isNaN(d)){var ce=Y.ua,ge=Bn();ce.Qu(x,ge);var Te=Ie.allocAt(ge[0],ge[1]);Te.add(Y.i(0)),ce.type===qt.j||(ce=ce.figures.first()),Te.offset(-ce.startX,-ce.startY),ce=ge[2],O!==da&&(Y=Y.computeAngle(a,O,ce),a.angle=Y),Y=Te.x;var Ve=Te.y;Ie.free(Te),wn(ge)}else if(d<-n||d>=n)ge=Ie.alloc(),ce=Y,Ve=ge,ce.vg(),ce.computeMidPoint(Ve),ce=Y.midAngle,O!==da&&(Y=Y.computeAngle(a,O,ce),a.angle=Y),Y=ge.x,Ve=ge.y,Ie.free(ge);else{if(Te=0,0<=d?(ge=t.s[d],Ve=d<n-1?t.s[d+1]:ge):(Te=n+d,ge=t.s[Te],Ve=0<Te?t.s[Te-1]:ge),ge.Xa(Ve)){0<=d?(ce=0<d?t.s[d-1]:ge,Te=d<n-2?t.s[d+2]:Ve):(ce=Te<n-1?t.s[Te+1]:ge,Te=1<Te?t.s[Te-2]:Ve);var He=ce.Bf(ge),Xe=Ve.Bf(Te);ce=He>Xe+10?0<=d?ce.ab(ge):ge.ab(ce):Xe>He+10?0<=d?Ve.ab(Te):Te.ab(Ve):0<=d?ce.ab(Te):Te.ab(ce)}else ce=0<=d?ge.ab(Ve):Ve.ab(ge);O!==da&&(Y=Y.computeAngle(a,O,ce),a.angle=Y),Y=ge.x+(Ve.x-ge.x)*x,Ve=ge.y+(Ve.y-ge.y)*x}if(ie.ys())a.location=new Ie(Y,Ve);else{ie.Mc()&&(ie=Tr),ge=Zn.alloc(),ge.reset(),ge.scale(a.scale,a.scale),ge.rotate(a.angle,0,0);var Ze=a.naturalBounds;Te=xt.allocAt(0,0,Ze.width,Ze.height),He=Ie.alloc(),He.xi(Te,ie),ge.Ga(He),ie=-He.x,Xe=-He.y;var qe=Ze.width,st=Ze.height;Ze=Ie.alloc(),Ze.assign(M);var yt=isNaN(M.x),un=isNaN(M.y);if(yt||un){qe=qe/2+3,st=st/2+3;var kn=45<=ce&&135>=ce,En=225<=ce&&315>=ce;O===da&&(kn||En)?(Ze.x=un?qe:M.y,Ze.y=yt?st:M.x,kn?0<=d||isNaN(d)&&.5>x||!yt||(Ze.y=-st):En&&((0<=d||isNaN(d)&&.5>x)&&yt&&(Ze.y=-st),un&&(Ze.x=-qe))):(yt&&(Ze.x=0<=d||isNaN(d)&&.5>x?qe:-qe),un&&(Ze.y=-st),Ze.rotate(ce))}else Ze.rotate(ce);Y+=Ze.x,Ve+=Ze.y,ge.pp(Te),ie+=Te.x,Xe+=Te.y,d=Ie.allocAt(Y+ie,Ve+Xe),a.move(d),Ie.free(d),Ie.free(Ze),Ie.free(He),xt.free(Te),Zn.free(ge)}}i!==null?i.Ul(!1):r.Ul(!1),r=K0(e),e.location.h(e.position.x+r.x,e.position.y+r.y),Ie.free(r)}};function v0(e,t,n,r){if(fl(r)!==!1){var i=r.strokeWidth;i===0&&e instanceof Xr&&e.type===Xt.Link&&e.adornedObject instanceof hr&&(i=e.adornedObject.strokeWidth),i*=r.Ca,e instanceof nn&&e.ua!==null?(e=e.geometry.bounds,r.Ge(e.x-i/2,e.y-i/2,e.width+i,e.height+i)):e instanceof Xr&&e.adornedPart.ua!==null?(e=e.adornedPart.ua.bounds,r.Ge(e.x-i/2,e.y-i/2,e.width+i,e.height+i)):r.Ge(-(i/2),-(i/2),t+i,n+i),i=r.desiredSize,i.w()||r.ua===null?r.dc.h(0,0,i.width,i.height):r.dc.assign(r.ua.bounds),Vo(r,!1)}}function fp(){this.xa="Base"}Kn(fp,Zo),fp.prototype.measure=function(e,t,n,r,i,o,a){var d=e.Pb();e.graduatedBounds=[];var x=d.margin,O=x.right+x.left,M=x.top+x.bottom;d.measure(t,n,o,a);var Y=d.measuredBounds,ie=new xt(-x.left,-x.top,Math.max(Y.width+O,0),Math.max(Y.height+M,0));e.graduatedBounds.push(ie),i.assign(ie);for(var ce=d.geometry,ge=d.strokeWidth,Te=ce.flattenedSegments,Ve=ce.flattenedLengths,He=ce.flattenedTotalLength,Xe=Te.length,Ze=0,qe=0,st=Bn(),yt=0;yt<Xe;yt++){var un=Te[yt],kn=[];qe=Ze=0;for(var En=un.length,tn=0;tn<En;tn+=2){var Bt=un[tn],ir=un[tn+1];if(tn!==0){var Jn=180*Math.atan2(ir-qe,Bt-Ze)/Math.PI;0>Jn&&(Jn+=360),kn.push(Jn)}Ze=Bt,qe=ir}st.push(kn)}if(e.graduatedIntervals===null){for(var ni=[],Hi=e.O.s,ls=Hi.length,fs=0;fs<ls;fs++){var ea=Hi[fs],us=[];if(ni.push(us),ea.visible){var Uc=ea.interval;if(!(0>Uc)){for(var Po=0;Po<ls;Po++)if(Po!==fs){var Cu=Hi[Po];if(Cu.visible&&ea.constructor===Cu.constructor){var ta=Cu.interval;ta>Uc&&us.push(ta)}}}}}e.graduatedIntervals=ni}var Hc=e.graduatedIntervals,ml=e.O.s,Wl=ml.length,qa=0,ja=0,vh=He;e.graduatedMarks=[];for(var Tu,_d=0;_d<Wl;_d++){var el=ml[_d];if(Tu=[],el.visible&&el!==d){var na=Math.abs(el.interval),Jp=e.graduatedTickUnit;if(!(2>Jp*na*He/e.graduatedRange&&el.graduatedSkip===null)){var kf=Ve[0][0],Du=0,Ua=0;ja=He*el.graduatedStart-1e-4,vh=He*el.graduatedEnd+1e-4;var Zh=Jp*na,tl=e.graduatedTickBase;if(tl<e.graduatedMin){var yh=(e.graduatedMin-tl)/Zh;yh=yh%1===0?yh:Math.floor(yh+1),tl+=yh*Zh}else tl>e.graduatedMin+Zh&&(tl-=Math.floor((tl-e.graduatedMin)/Zh)*Zh);for(var ev=Hc[_d],Qp=tl,Qy=1e-6*e.graduatedMax,nc=1;tl<=e.graduatedMax+Qy;nc++){e:{for(var pc=ev.length,Nf=0;Nf<pc;Nf++){var bh=(tl-e.graduatedTickBase)%(ev[Nf]*e.graduatedTickUnit),Ad=1e-6*e.graduatedTickUnit;if(bh<Ad&&bh>-Ad){var Sh=!1;break e}}Sh=!0}if(Sh&&(tl>e.graduatedMax&&(tl=e.graduatedMax),el.graduatedSkip===null||el instanceof zi&&!el.graduatedSkip(tl,el)||el instanceof hr&&!el.graduatedSkip(tl,el))&&(qa=(tl-e.graduatedMin)*He/e.graduatedRange,qa>He&&(qa=He),ja<=qa&&qa<=vh)){for(var rc=st[Du][Ua],zc=Ve[Du][Ua];Du<Ve.length;){for(;qa>kf&&Ua<Ve[Du].length-1;)Ua++,rc=st[Du][Ua],zc=Ve[Du][Ua],kf+=zc;if(qa<=kf)break;Du++,Ua=0,rc=st[Du][Ua],zc=Ve[Du][Ua],kf+=zc}var Ha=Te[Du],Pu=Ha[2*Ua],tv=Ha[2*Ua+1],gc=(qa-(kf-zc))/zc,kd=new Ie(Pu+(Ha[2*Ua+2]-Pu)*gc+ge/2-ce.bounds.x,tv+(Ha[2*Ua+3]-tv)*gc+ge/2-ce.bounds.y);kd.scale(d.scale,d.scale);e:{var _u=rc,Jh=st[Du];if(!(.5005>gc&&.4995<gc)){var Fu=_u;if(.5>gc?0<Ua?Fu=Jh[Ua-1]:ht.$(Ha[0],Ha[Ha.length-2])&&ht.$(Ha[1],Ha[Ha.length-1])&&(Fu=Jh[Jh.length-1]):.5<gc&&(Ua+1<Jh.length?Fu=Jh[Ua+1]:ht.$(Ha[0],Ha[Ha.length-2])&&ht.$(Ha[1],Ha[Ha.length-1])&&(Fu=Jh[0])),_u!==Fu){var If=Math.abs(_u-Fu);if(180<If&&(_u<Fu?_u+=360:Fu+=360,If=Math.abs(_u-Fu)),5e-4>gc||.9995<gc){rc=(_u+Fu)/2%360;break e}if(10>If){var Nd=1-Math.abs(.5-gc);rc=(_u*Nd+Fu*(1-Nd))%360;break e}}}rc=_u}if(el instanceof zi){var fu="";el.graduatedFunction!==null?(fu=el.graduatedFunction(tl,el),fu=fu!=null?fu.toString():""):fu=(+tl.toFixed(2)).toString(),fu!==""&&Tu.push({$l:kd,angle:rc,text:fu})}else Tu.push({$l:kd,angle:rc})}tl=Qp+nc*Zh}}}e.graduatedMarks.push(Tu)}wn(st);var Cs=e.graduatedMarks;if(Cs!==null)for(var qp=r.length,ya=0;ya<qp;ya++){var Fo=r[ya],ba=Cs[ya];if(Fo.visible&&Fo!==d&&ba.length!==0){if(Fo instanceof hr){var mc=e,Gc=i,Qh=Fo.alignmentFocus;Qh.Mc()&&(Qh=ro);var qy=Fo.angle;Fo.Kb=0,Fo.measure(1/0,1/0,0,0),Fo.Kb=qy;var nv=Fo.measuredBounds,Id=nv.width,qh=nv.height,Rf=xt.allocAt(0,0,Id,qh),za=Ie.alloc();za.xi(Rf,Qh),xt.free(Rf);for(var vc=-za.x,Au=-za.y,Rl=new xt,xh=ba.length,Rd=0;Rd<xh;Rd++)for(var wh=ba[Rd],rv=wh.$l.x,Od=wh.$l.y,Eo=wh.angle,du=0;4>du;du++){switch(du){case 0:za.h(vc,Au);break;case 1:za.h(vc+Id,Au);break;case 2:za.h(vc,Au+qh);break;case 3:za.h(vc+Id,Au+qh)}za.rotate(Eo+Fo.angle),za.offset(rv,Od),Rd===0&&du===0?Rl.h(za.x,za.y,0,0):Rl.Ye(za),za.offset(-rv,-Od),za.rotate(-Eo-Fo.angle)}Ie.free(za),mc.graduatedBounds!==null&&mc.graduatedBounds.push(Rl),Jr(Gc,Rl.x,Rl.y,Rl.width,Rl.height)}else if(Fo instanceof zi){var Vl=e,iv=i;Vl.temporaryTextBlock===null&&(Vl.temporaryTextBlock=new zi);var nl=Vl.temporaryTextBlock;O0(nl,Fo);var Wc=Fo.alignmentFocus;Wc.Mc()&&(Wc=ro);for(var Kl=Fo.segmentOrientation,Ld=Fo.segmentOffset,Eh=new xt,eg=0,Md=0,Bu=0,ef=0,Ch=0,Dd=ba.length,Vc=0;Vc<Dd;Vc++){var ic=ba[Vc];eg=ic.$l.x,Md=ic.$l.y,Bu=ic.angle,Ch=ef=Fo.angle,Kl!==da&&(Ch=Kl===Ep||Kl===hm?Bu+Fo.angle:Bu,ef=nn.computeAngle(Kl,Ch)),nl.Kb=ef,nl.text=ic.text||"",nl.measure(1/0,1/0,0,0);var Kc=nl.measuredBounds,yc=nl.naturalBounds,Yc=yc.width,tf=yc.height,ku=Zn.alloc();ku.reset(),ku.translate(-Kc.x,-Kc.y),ku.scale(nl.scale,nl.scale),ku.rotate(Ch,Yc/2,tf/2),Kl!==Cp&&Kl!==_p||ku.rotate(90,Yc/2,tf/2),Kl!==Tp&&Kl!==Ap||ku.rotate(-90,Yc/2,tf/2),Kl===fm&&(45<Bu&&135>Bu||225<Bu&&315>Bu)&&ku.rotate(-Bu,Yc/2,tf/2);var Of=xt.allocAt(0,0,Yc,tf),$c=Ie.alloc();$c.xi(Of,Wc),ku.Ga($c);var Lf=-$c.x,e0=-$c.y,bc=Ie.alloc();bc.assign(Ld),isNaN(bc.x)&&(bc.x=Yc/2+3),isNaN(bc.y)&&(bc.y=-(tf/2+3)),bc.rotate(Bu),eg+=bc.x+Lf,Md+=bc.y+e0;var nf=new xt(eg,Md,Kc.width,Kc.height),tg=new xt(Kc.x,Kc.y,Kc.width,Kc.height),t0=new xt(yc.x,yc.y,yc.width,yc.height);ic.Sz=ef,ic.lineCount=nl.lineCount,ic.lines=[nl.Cb,nl.Ih,nl.df,nl.Le,nl.Qc,nl.Qb,nl.ze],ic.actualBounds=nf,ic.measuredBounds=tg,ic.naturalBounds=t0,Vc===0?Eh.assign(nf):Eh.ed(nf),Ie.free(bc),Ie.free($c),xt.free(Of),Zn.free(ku)}Vl.graduatedBounds!==null&&Vl.graduatedBounds.push(Eh),Jr(iv,Eh.x,Eh.y,Eh.width,Eh.height)}Vo(Fo,!1)}}},fp.prototype.arrange=function(e,t,n){if(e.graduatedBounds!==null){var r=e.Pb(),i=e.graduatedMarks;if(i!==null){var o=e.graduatedBounds,a=0,d=o[a];a++,r!==null&&r.arrange(d.x-n.x,d.y-n.y,d.width,d.height);for(var x=t.length,O=0;O<x;O++){var M=t[O];d=i[O],M.visible&&M!==r&&d.length!==0&&(d=o[a],a++,M.arrange(d.x-n.x,d.y-n.y,d.width,d.height))}e.graduatedBounds=null}}},fp.prototype.gc=function(e,t,n){var r=n.$i;n.$i=!0;var i=e.naturalBounds,o=i.width,a=i.height;i=t instanceof Za,t.save(),t.beginPath(),t.rect(-1,-1,o+1,a+1),t.clip(),t.Se(),o=e.Pb(),o.gc(t,n),a=e.Df()*n.scale,0>=a&&(a=1);for(var d=o.actualBounds,x=e.O.s,O=e.graduatedMarks,M=x.length,Y=0;Y<M;Y++){var ie=x[Y],ce=O[Y],ge=ce.length;if(ie.visible&&ie!==o&&ce.length!==0){if(ie instanceof hr){if(!(2>e.graduatedTickUnit*ie.interval*o.geometry.flattenedTotalLength/e.graduatedRange*a&&ie.graduatedSkip===null)){var Te=ie.measuredBounds,Ve=ie.strokeWidth*ie.scale,He=ie.alignmentFocus;He.Mc()&&(He=ro);for(var Xe=0;Xe<ge;Xe++){var Ze=ce[Xe].$l,qe=ce[Xe].angle,st=He,yt=ie.Ab;yt.reset(),yt.translate(Ze.x+d.x,Ze.y+d.y),yt.rotate(qe+ie.angle,0,0),yt.translate(-Te.width*st.x+st.offsetX+Ve/2,-Te.height*st.y+st.offsetY+Ve/2),yt.scale(ie.scale,ie.scale),jl(ie,!1),ie.wh.set(ie.Ab),ie.Kk=ie.scale,Cl(ie,!1),ie.gc(t,n),i&&(e.svg.appendChild(ie.svg),ie.svg=null),ie.Ab.reset()}}}else if(ie instanceof zi)for(e.temporaryTextBlock===null&&(e.temporaryTextBlock=new zi),Te=e.temporaryTextBlock,O0(Te,ie),Ve=0;Ve<ge;Ve++)He=ce[Ve],He.actualBounds&&He.measuredBounds&&He.naturalBounds&&(Te.ec=He.text||"",Te.Kb=He.Sz||0,Te.Gc=He.lineCount||0,Xe=He.lines,Xe!==void 0&&(Te.Cb=Xe[0],Te.Ih=Xe[1],Te.df=Xe[2],Te.Le=Xe[3],Te.Qc=Xe[4],Te.Qb=Xe[5],Te.ze=Xe[6]),He.naturalBounds&&(Te.dc=He.naturalBounds),He.actualBounds&&(Xe=He.actualBounds,Te.arrange(Xe.x,Xe.y,Xe.width,Xe.height)),Xe=He.actualBounds,Te.arrange(Xe.x,Xe.y,Xe.width,Xe.height),Ze=He.measuredBounds,He=He.naturalBounds,qe=Te.Ab,qe.reset(),qe.translate(Xe.x+d.x,Xe.y+d.y),qe.translate(-Ze.x,-Ze.y),Te.no(qe,He.x,He.y,He.width,He.height),jl(Te,!1),Te.wh.set(Te.Ab),Te.Kk=Te.scale,Cl(Te,!1),Te.Ng=ie.part,Te.Me=ie.panel,Te.gc(t,n),Te.Me=null,Te.Ng=null,i&&(e.svg.appendChild(Te.svg),Te.svg=null))}}n.$i=r,t.restore(),t.Vc(!0)};function Xt(e,t){if(at.call(this),this.na=null,e===void 0)this.na=Xt.Position;else if(typeof e=="string"){var n=su.I(e);n!==null&&(this.na=n)}else e instanceof Zo?this.na=e:e&&(this.na=Xt.Position,t=e);this.na===null&&ft("Panel type not specified or PanelLayout not loaded: "+e),this.l=this.l|4194304|(this.na===Xt.Grid?1048576:0),this.O=new Gt,this.yb=Ho,this.Tm=Bo,this.Uf=sr,this.$g=null,this.$e="",this.jg=new xt(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Nn,this.jn=bi,this.kn=cn,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,t&&Object.assign(this,t)}Kn(Xt,at),Xt.prototype.cloneProtected=function(e){at.prototype.cloneProtected.call(this,e),e.na=this.na,e.yb=this.yb.J(),e.Tm=this.Tm.J(),e.Uf=this.Uf,e.$e=this.$e,e.jg.assign(this.jg),this.T!==null&&(e.T=this.T.copy(e)),e.xo=this.xo,e.jn=this.jn.J(),e.kn=this.kn.J(),this.ra!==null&&(e.ra=this.ra.copy()),e.ub=this.ub,e.zn=this.zn,e.Hh=this.Hh},Xt.prototype.Af=function(e){at.prototype.Af.call(this,e),e.O=this.O;for(var t=e.O.s,n=t.length,r=0;r<n;r++)t[r].Me=e;e.$g=null},Xt.prototype.copy=function(){var e=at.prototype.copy.call(this);if(e!==null){for(var t=this.O.s,n=t.length,r=0;r<n;r++){var i=t[r].copy();i.wi(e),i.Ng=null;var o=e.O,a=o.count;if(o.Gb(a,i),o=e.part,o!==null){o.Rh=null,i.portId!==null&&o instanceof hn&&(o.Te=!0);var d=e.diagram;d!==null&&d.undoManager.isUndoingRedoing||o.cb(uo,"elements",e,null,i,null,a)}}return e}return null},me=Xt.prototype,me.toString=function(){return"Panel("+this.type.name+")#"+rr(this)},me.Pn=function(e){at.prototype.Pn.call(this,e);for(var t=this.O.s,n=t.length,r=0;r<n;r++)t[r].Pn(e)},me.hh=function(e,t){if(this.na===Xt.Grid)e.yc(),this.na.gc(this,e,t);else if(this.na===Xt.Graduated)e.yc(),this.na.gc(this,e,t);else{if(this.na===Xt.Table)if(e.yc(),e instanceof Za){var n=e.yd;e.yd=Eg(e,"gojs-ts"),_v(this,e),e.nh.pop(),e.yd=n}else _v(this,e);(n=this.isClipping&&this.na===Xt.Spot)&&e.save();for(var r=this.Pb(),i=this.O.s,o=i.length,a=0;a<o;a++){var d=i[a];n&&d===r&&(e.clipInsteadOfFill=!0),d.gc(e,t),n&&d===r&&(e.clipInsteadOfFill=!1)}n&&(e.restore(),e.Vc(!0))}};function _v(e,t){t.lineCap="butt";var n=0<e.rowCount?e.rowDefs:null,r=0<e.columnCount?e.colDefs:null;n!==null&&Fg(e,t,!0,n,!0),r!==null&&Fg(e,t,!1,r,!0),n!==null&&y0(e,t,!0,n),r!==null&&y0(e,t,!1,r),n!==null&&Fg(e,t,!0,n,!1),r!==null&&Fg(e,t,!1,r,!1)}function y0(e,t,n,r){for(var i=r.length,o=e.actualBounds,a=e.naturalBounds,d=!0,x=0;x<i;x++){var O=r[x];if(O!==void 0&&O.actual!==0)if(d)d=!1;else{if(n){if(O.position>a.height)continue}else if(O.position>a.width)continue;var M=O.separatorStrokeWidth;isNaN(M)&&(M=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var Y=O.separatorStroke;if(Y===null&&(Y=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),M!==0&&Y!==null){bo(e,t,Y,!1,!1,a,o),Y=!1;var ie=O.separatorDashArray;ie===null&&(ie=n?e.defaultRowSeparatorDashArray:e.defaultColumnSeparatorDashArray),ie!==null&&(Y=!0,t.js(ie,0)),t.beginPath(),ie=O.position+M,n?ie>a.height&&(M-=ie-a.height):ie>a.width&&(M-=ie-a.width),O=O.position+M/2,t.lineWidth=M,M=e.yb,n?(O+=M.top,ie=a.width-M.right,t.moveTo(M.left,O),t.lineTo(ie,O)):(O+=M.left,ie=a.height-M.bottom,t.moveTo(O,M.top),t.lineTo(O,ie)),t.stroke(),t.Se(),Y&&t.fs()}}}}function Fg(e,t,n,r,i){for(var o=r.length,a=e.actualBounds,d=e.naturalBounds,x=b0(e,!0),O=b0(e,!1),M=0;M<o;M++){var Y=r[M];if(Y!==void 0&&Y.background!==null&&Y.coversSeparators!==i&&Y.actual!==0){var ie=n?a.height:a.width;if(!(Y.position>ie)){var ce=Y.Wc(),ge=Y.separatorStrokeWidth;isNaN(ge)&&(ge=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var Te=Y.separatorStroke;Te===null&&(Te=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),(Te===null||Y.index===(n?x:O))&&(ge=0),ce-=ge,ge=Y.position+ge,ce+=Y.actual,ge+ce>ie&&(ce=ie-ge),0>=ce||(ie=e.yb,bo(e,t,Y.background,!0,!1,d,a),n?t.fillRect(ie.left,ge+ie.top,a.width-(ie.left+ie.right),ce):t.fillRect(ge+ie.left,ie.top,ce,a.height-(ie.top+ie.bottom)))}}}}function b0(e,t){for(var n=t?e.rowCount:e.columnCount,r=0;r<n;r++){var i=t?e.rowDefs[r]:e.colDefs[r];if(i!==void 0)return i.index}return 0}function Av(e){return e==="LineV"||e==="BarV"}me.lv=function(){for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].lv();this.Uc=!0},me.kk=function(e,t,n){if(!at.prototype.kk.call(this,e,t,n))return!1;if(this.type===Xt.Table)n=this.svg.getElementsByClassName("gojs-ts"),n=n.length!==0?n[0]:null,n!==null&&(n.innerHTML=""),e.yd=n,_v(this,e),e.yd=null;else if(this.na===Xt.Grid||this.na===Xt.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;n=this.O.s;for(var r=n.length,i=0;i<r;i++)n[i].gc(e,t);return!0},me.nk=function(){return!0},me.$o=function(e,t,n,r){if(!this.isClipping)if(this.Dd()&&e.bk!==null){e=e.bk,t=this.O.s;for(var i=0,o=0,a=0;a<t.length;a++)if(t[a].Ed()){var d=t[a].actualBounds;i=a===0?d.x:Math.min(d.x,i),o=a===0?d.y:Math.min(d.y,o)}r.setAttributeNS(null,"clip-path","path('M "+(e.x-n.x-i)+","+(e.y-n.y-o)+" l "+e.width+" 0 l 0 "+e.height+" l -"+e.width+" 0 z')")}else at.prototype.$o.call(this,e,t,n,r)},me.Sj=function(e,t,n,r,i){var o=this.se(),a=this.transform,d=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*d,O=-a.m12*d,M=-a.m21*d,Y=a.m11*d,ie=d*(a.m21*a.dy-a.m22*a.dx),ce=d*(a.m12*a.dx-a.m11*a.dy);if(this.areaBackground!==null)return a=this.actualBounds,ht.Ff(a.left,a.top,a.right,a.bottom,e,t,n,r,i);if(this.background!==null)return o=e*x+t*M+ie,d=e*O+t*Y+ce,e=n*x+r*M+ie,x=n*O+r*Y+ce,i.h(0,0),n=this.naturalBounds,o=ht.Ff(0,0,n.width,n.height,o,d,e,x,i),i.transform(a),o;o||(x=1,M=O=0,Y=1,ce=ie=0),d=e*x+t*M+ie,e=e*O+t*Y+ce,x=n*x+r*M+ie,n=n*O+r*Y+ce,i.h(x,n),r=(x-d)*(x-d)+(n-e)*(n-e),O=!1,Y=this.O.s,ce=Y.length,M=Ie.alloc(),ie=null,t=1/0;var ge=null,Te=this.isClipping&&this.na===Xt.Spot;Te&&(ge=Ie.alloc(),ie=this.Pb(),(O=ie.Sj(d,e,x,n,ge))&&(t=(d-ge.x)*(d-ge.x)+(e-ge.y)*(e-ge.y)));for(var Ve=0;Ve<ce;Ve++){var He=Y[Ve];He.visible&&He!==ie&&He.Sj(d,e,x,n,M)&&(O=!0,He=(d-M.x)*(d-M.x)+(e-M.y)*(e-M.y),He<r&&(r=He,i.set(M)))}return Te&&(t>r&&i.set(ge),Ie.free(ge)),Ie.free(M),o&&i.transform(a),O},me.Gj=function(){for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Gj();at.prototype.Gj.call(this)},me.v=function(e){if(!fl(this)){at.prototype.v.call(this,e),e=null,(this.na===Xt.Auto||this.na===Xt.Link)&&(e=this.Pb());for(var t=this.O.s,n=t.length,r=0;r<n;r++){var i=t[r];if((i===e||i.isPanelMain)&&i.v(!0),!i.desiredSize.w()){var o=Aa(i,!1);(i instanceof fa||i instanceof Xt||i instanceof zi||o!==Ut)&&i.v(!0)}}}},me.Uj=function(){if(!fl(this)){Vo(this,!0),Vu(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Uj()}},me.Uk=function(){if(!(this.l&2048)){jl(this,!0),Cl(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Wu()}},me.Wu=function(){Cl(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Wu()},me.Wl=function(e,t,n,r){var i=this.jg;i.h(0,0,0,0);var o=this.desiredSize,a=this.minSize;n===void 0&&(n=a.width,r=a.height),n=Math.max(n,a.width),r=Math.max(r,a.height);var d=this.maxSize;isNaN(o.width)||(e=Math.min(o.width,d.width)),isNaN(o.height)||(t=Math.min(o.height,d.height)),e=Math.max(n,e),t=Math.max(r,t);var x=this.yb;e=Math.max(e-x.left-x.right,0),t=Math.max(t-x.top-x.bottom,0);var O=this.O.s;O.length!==0&&this.na.measure(this,e,t,O,i,n,r),e=i.width+x.left+x.right,x=i.height+x.top+x.bottom,isFinite(o.width)&&(e=o.width),isFinite(o.height)&&(x=o.height),e=Math.min(d.width,e),x=Math.min(d.height,x),e=Math.max(a.width,e),x=Math.max(a.height,x),e=Math.max(n,e),x=Math.max(r,x),ei(i,e,x),ei(this.naturalBounds,e,x),this.Ge(0,0,e,x)},me.Pb=function(){if(this.$g===null){var e=this.O.s,t=e.length;if(t===0)return null;for(var n=0;n<t;n++){var r=e[n];if(r.isPanelMain===!0)return this.$g=r}this.$g=e[0]}return this.$g};function hc(e){return e.part!==null?e.part.locationObject:null}me.eh=function(e,t,n,r){var i=this.O.s;if(this.actualBounds.h(e,t,n,r),i.length!==0){if(!this.desiredSize.w()){e=Aa(this,!0);var o=this.measuredBounds;t=o.width,o=o.height;var a=this.Kg,d=a.left+a.right;switch(a=a.top+a.bottom,t===n&&o===r&&(e=Ut),e){case Ut:(t>n||o>r)&&(this.v(),this.measure(t>n?n:t,o>r?r:o,0,0));break;case $t:this.v(!0),this.measure(n+d,r+a,0,0);break;case Ln:this.v(!0),this.measure(n+d,o+a,0,0);break;case Yn:this.v(!0),this.measure(t+d,r+a,0,0)}}this.na.arrange(this,i,this.jg)}},me.gh=function(e){var t=this.naturalBounds,n=hc(this);if(Vi(0,0,t.width,t.height,e.x,e.y)){t=this.O.s;for(var r=t.length,i=Ie.allocAt(0,0);r--;){var o=t[r];if((o.visible||o===n)&&(yn(i.set(e),o.transform),o.ca(i)))return Ie.free(i),!0}return Ie.free(i),!(this.Ma===null&&this.areaBackground===null)}return!1},me.ks=function(e){if(this.bindingId===e)return this;for(var t=this.O.s,n=t.length,r=0;r<n;r++){var i=t[r].ks(e);if(i!==null)return i}return null},me.qm=function(e,t){if(t(this,e),e instanceof Xt){e=e.O.s;for(var n=e.length,r=0;r<n;r++)this.qm(e[r],t)}};function zh(e,t){S0(e,e,t)}function S0(e,t,n){n(t),t=t.O.s;for(var r=t.length,i=0;i<r;i++){var o=t[i];o instanceof Xt&&S0(e,o,n)}}function M1(e,t){x0(e,e,t)}function x0(e,t,n){if(n(t),t instanceof Xt){t=t.O.s;for(var r=t.length,i=0;i<r;i++)x0(e,t[i],n)}}me.Nl=function(e){return w0(this,this,e)};function w0(e,t,n){if(n(t))return t;if(t instanceof Xt){t=t.O.s;for(var r=t.length,i=0;i<r;i++){var o=w0(e,t[i],n);if(o!==null)return o}}return null}me.fb=function(e){if(this.name===e)return this;var t=this.O.s,n=t.length;this.Hh===null&&this.itemTemplateMap===null||(n=dp(this));for(var r=0;r<n;r++){var i=t[r];if(i instanceof Xt){var o=i.fb(e);if(o!==null)return o}if(i.name===e)return i}return null};function E0(e){e=e.O.s;for(var t=e.length,n=0,r=0;r<t;r++){var i=e[r];i instanceof Xt?n=Math.max(n,E0(i)):i instanceof hr&&(n=Math.max(n,i.ig/2*i.strokeMiterLimit*i.Df()))}return n}me.se=function(){return!(this.type===Xt.TableRow||this.type===Xt.TableColumn)};function Ic(e){return e.type===Xt.TableRow||e.type===Xt.TableColumn}me.ic=function(e,t,n){if(this.pickable===!1||(t===void 0&&(t=null),n===void 0&&(n=null),ca(this)))return null;var r=this.naturalBounds,i=1/this.Df(),o=this.se(),a=o?e:yn(Ie.allocAt(e.x,e.y),this.transform),d=this.diagram,x=10,O=5;if(d!==null&&(x=d.Ql("extraTouchArea"),O=x/2),Vi(-(O*i),-(O*i),r.width+x*i,r.height+x*i,a.x,a.y)){if(!this.isAtomic){i=this.O.s;var M=i.length;if(d=Ie.alloc(),O=(x=this.isClipping&&this.na===Xt.Spot)?this.Pb():null,x&&(O.se()?yn(d.set(e),O.transform):d.set(e),!O.ca(d)))return Ie.free(d),o||Ie.free(a),null;for(var Y=hc(this);M--;){var ie=i[M];if((ie.visible||ie===Y)&&(ie.se()?yn(d.set(e),ie.transform):d.set(e),!x||ie!==O)){var ce=null;if(ie instanceof Xt?ce=ie.ic(d,t,n):ie.pickable===!0&&ie.ca(d)&&(ce=ie),ce!==null&&(t!==null&&(ce=t(ce)),ce!==null&&(n===null||n(ce))))return Ie.free(d),o||Ie.free(a),ce}}Ie.free(d)}return this.background===null&&this.areaBackground===null?(o||Ie.free(a),null):(e=Vi(0,0,r.width,r.height,a.x,a.y)?this:null,o||Ie.free(a),e)}return o||Ie.free(a),null},me.ji=function(e,t,n,r){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var i=this.naturalBounds,o=this.se(),a=o?e:yn(Ie.allocAt(e.x,e.y),this.transform);if(i=Vi(0,0,i.width,i.height,a.x,a.y),Ic(this)||i){if(!this.isAtomic){for(var d=this.O.s,x=d.length,O=Ie.alloc(),M=hc(this);x--;){var Y=d[x];if(Y.visible||Y===M){Y.se()?yn(O.set(e),Y.transform):O.set(e);var ie=Y;Y=Y instanceof Xt?Y:null,(Y!==null?Y.ji(O,t,n,r):ie.ca(O))&&ie.pickable!==!1&&(t!==null&&(ie=t(ie)),ie===null||n!==null&&!n(ie)||r.add(ie))}}Ie.free(O)}return o||Ie.free(a),i&&(this.background!==null||this.areaBackground!==null)}return o||Ie.free(a),!1},me.Cf=function(e,t,n,r,i,o){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var a=o;if(o===void 0&&(a=Zn.alloc(),a.reset()),a.multiply(this.transform),this.fh(e,a))return kv(this,t,n,i),o===void 0&&Zn.free(a),!0;if(this.Yc(e,a)){if(!this.isAtomic)for(var d=hc(this),x=this.O.s,O=x.length;O--;){var M=x[O];if(M.visible||M===d){var Y=M.actualBounds,ie=this.naturalBounds;Y.x>ie.width||Y.y>ie.height||0>Y.x+Y.width||0>Y.y+Y.height||(Y=M,M=M instanceof Xt?M:null,ie=Zn.alloc(),ie.set(a),(M!==null?M.Cf(e,t,n,r,i,ie):as(Y,e,r,ie))&&(t!==null&&(Y=t(Y)),Y===null||n!==null&&!n(Y)||i.add(Y)),Zn.free(ie))}}return o===void 0&&Zn.free(a),r}return o===void 0&&Zn.free(a),!1};function kv(e,t,n,r){for(var i=e.O.s,o=i.length;o--;){var a=i[o];if(a.visible){var d=a.actualBounds,x=e.naturalBounds;d.x>x.width||d.y>x.height||0>d.x+d.width||0>d.y+d.height||(a instanceof Xt&&kv(a,t,n,r),t!==null&&(a=t(a)),a===null||n!==null&&!n(a)||r.add(a))}}}me.og=function(e,t,n,r,i,o){if(this.pickable===!1)return!1;n===void 0&&(n=null),r===void 0&&(r=null);var a=this.naturalBounds,d=this.se(),x=d?e:yn(Ie.allocAt(e.x,e.y),this.transform),O=d?t:yn(Ie.allocAt(t.x,t.y),this.transform),M=x.Bf(O),Y=0<x.x&&x.x<a.width&&0<x.y&&x.y<a.height||Sn(x.x,x.y,0,0,0,a.height)<=M||Sn(x.x,x.y,0,a.height,a.width,a.height)<=M||Sn(x.x,x.y,a.width,a.height,a.width,0)<=M||Sn(x.x,x.y,a.width,0,0,0)<=M;if(a=x.zd(0,0)<=M&&x.zd(0,a.height)<=M&&x.zd(a.width,0)<=M&&x.zd(a.width,a.height)<=M,d||(Ie.free(x),Ie.free(O)),Y){if(!this.isAtomic){x=Ie.alloc(),O=Ie.alloc(),M=hc(this);for(var ie=this.O.s,ce=ie.length;ce--;){var ge=ie[ce];if(ge.visible||ge===M){var Te=ge.actualBounds,Ve=this.naturalBounds;(!d||!(Te.x>Ve.width||Te.y>Ve.height||0>Te.x+Te.width||0>Te.y+Te.height))&&(ge.se()?(Te=ge.transform,yn(x.set(e),Te),yn(O.set(t),Te)):(x.set(e),O.set(t)),Te=ge,ge=ge instanceof Xt?ge:null,(ge!==null?ge.og(x,O,n,r,i,o):Te.tx(x,O,i))&&(n!==null&&(Te=n(Te)),Te===null||r!==null&&!r(Te)||o.add(Te)))}}Ie.free(x),Ie.free(O)}return i?Y:a}return!1};function Nv(e){var t=null;return e instanceof hr&&(t=e.spot1,t===Bo&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot1)),t===null&&(t=Gr),t}function Iv(e){var t=null;return e instanceof hr&&(t=e.spot2,t===Bo&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot2)),t===null&&(t=Pi),t}me.add=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(n=0;n<t.length;n++)this.Gb(this.O.count,t[n]);return this},me.M=function(e){return this.O.M(e)},me.Gb=function(e,t){t instanceof Fn&&ft("Cannot add a Part to a Panel: "+t+"; use a Panel instead"),(this===t||this.rg(t))&&(this===t&&ft("Cannot make a Panel contain itself: "+this.toString()),ft("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+t.toString()));var n=t.panel;if(n!==null&&n!==this&&ft("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+t.toString()+", already contained by "+n.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==Xt.Grid||t instanceof hr||ft("Can only add Shapes to a Grid Panel, not: "+t),this.na!==Xt.Graduated||t instanceof hr||t instanceof zi||ft("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+t),t.wi(this),t.Ng=null,this.itemArray!==null){var r=t.data;r!==null&&typeof r=="object"&&(this.ge===null&&(this.ge=new Et),this.ge.add(r,t))}var i=this.O;if(r=-1,n===this){for(var o=-1,a=this.O.s,d=a.length,x=0;x<d;x++)if(a[x]===t){o=x;break}if(o!==-1){if(o===e||o+1>=i.count&&e>=i.count)return;i.mb(o),r=o}else ft("element "+t.toString()+" has panel "+n.toString()+" but is not contained by it.")}(0>e||e>i.count)&&(e=i.count),i.Gb(e,t),(e===0||t.isPanelMain)&&(this.$g=null),fl(this)||this.v(),t.v(!1),t.portId!==null?this.Te=!0:t instanceof Xt&&t.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||jg(this,t,!1),n=this.part,n!==null&&(n.Rh=null,n.ag=NaN,this.Te&&n instanceof hn&&(n.Te=!0),n.Te&&n instanceof hn&&(n.wc=null),i=this.diagram,i!==null&&i.undoManager.isUndoingRedoing||(r!==-1&&n.cb(po,"elements",this,t,null,r,null),n.cb(uo,"elements",this,null,t,null,e)))};function Rv(e,t){e.l=t?e.l|16777216:e.l&-16777217}me.remove=function(e){for(var t=this.O.s,n=t.length,r=-1,i=0;i<n;i++)if(t[i]===e){r=i;break}r!==-1&&this.pc(r,!0)},me.mb=function(e){0<=e&&this.pc(e,!0)},me.pc=function(e,t){var n=this.O,r=n.M(e);if(r.Ng=null,r.wi(null),this.ge!==null){var i=r.data;typeof i=="object"&&this.ge.remove(i)}n.mb(e),Vo(this,!1),this.v(),this.$g===r&&(this.$g=null),this.graduatedIntervals=null;var o=this.part;o!==null&&(o.Rh=null,o.ag=NaN,o.Wb(),o instanceof hn&&(r instanceof Xt?r.qm(r,function(a,d){ey(o,d,t)}):ey(o,r,t)),n=this.diagram,n!==null&&n.undoManager.isUndoingRedoing||o.cb(po,"elements",this,r,null,e,null))},me.Fb=function(e){0>e&&An(e,">= 0",Xt,"getRowDefinition:idx"),e=Math.round(e);var t=this.rowDefs;if(t[e]===void 0){var n=new Ko;n.wi(this),n.isRow=!0,n.index=e,t[e]=n,this.cb(uo,"rowdefs",this,null,n,null,e)}return t[e]},me.oA=function(e){if(0>e&&An(e,">= 0",Xt,"removeRowDefinition:idx"),this.rowCount!==0){e=Math.round(e);var t=this.rowDefs,n=t[e];if(n){t[e]=void 0;for(var r=t.length-1;0<=r&&t[r--]===void 0;)t.length--;this.cb(po,"rowdefs",this,n,null,e,null),this.v()}}};function C0(e,t,n){var r=e.rowDefs;if(!(0>t)){if(r[t]=n instanceof Ko?n:void 0,!n)for(t=r.length-1;0<=t&&r[t--]===void 0;)r.length--;e.v()}}me.Eb=function(e){0>e&&An(e,">= 0",Xt,"getColumnDefinition:idx"),e=Math.round(e);var t=this.colDefs;if(t[e]===void 0){var n=new Ko;n.wi(this),n.isRow=!1,n.index=e,t[e]=n,this.cb(uo,"coldefs",this,null,n,null,e)}return t[e]},me.jA=function(e){if(0>e&&An(e,">= 0",Xt,"removeColumnDefinition:idx"),this.columnCount!==0){e=Math.round(e);var t=this.colDefs,n=t[e];if(n){t[e]=void 0;for(var r=t.length-1;0<=r&&t[r--]===void 0;)t.length--;this.cb(po,"coldefs",this,n,null,e,null),this.v()}}};function T0(e,t,n){var r=e.colDefs;if(!(0>t)){if(r[t]=n instanceof Ko?n:void 0,!n)for(t=r.length-1;0<=t&&r[t--]===void 0;)r.length--;e.v()}}me.Gy=function(e){var t=null;return e.isRow?t=this.Fb(e.index):e.isRow||(t=this.Eb(e.index)),t&&Ug(t,e),this},me.Hy=function(e,t){return(e=this.Fb(e))&&Ug(e,new Ko(t)),this},me.By=function(e,t){return(e=this.Eb(e))&&Ug(e,new Ko(t)),this},me.nz=function(e){if(0>e||this.type!==Xt.Table||this.rowCount===0)return-1;for(var t=0,n=this.rowDefs,r=n.length,i=this.topIndex;i<r;i++){var o=n[i];if(o!==void 0&&(t+=o.total,e<t))break}return i},me.fz=function(e){if(0>e||this.type!==Xt.Table||this.columnCount===0)return-1;for(var t=0,n=this.colDefs,r=n.length,i=this.leftIndex;i<r;i++){var o=n[i];if(o!==void 0&&(t+=o.total,e<t))break}return i},me.Fz=function(e,t){if(t===void 0&&(t=new Ie(NaN,NaN)),this.type!==Xt.Graduated)return t.h(NaN,NaN),t;e=Math.min(Math.max(e,this.graduatedMin),this.graduatedMax);var n=this.Pb();return n.geometry.Pu((e-this.graduatedMin)/this.graduatedRange,t),n.transform.Ga(t)},me.Gz=function(e){if(this.type!==Xt.Graduated)return NaN;var t=this.Pb();return t.transform.Cd(e),t.geometry.xx(e)*this.graduatedRange+this.graduatedMin};function _0(e){return e=e.allBindings,e!==null&&e._isFrozen}function Hl(e){var t=e.allBindings;if(t===null)e.data!==null&&ft("Template cannot have .data be non-null: "+e),e.allBindings=t=new Gt;else if(t._isFrozen)return;var n=new Gt;Rv(e,!1),e.qm(e,function(O,M){M.th();var Y=M.localBindings;if(Y!==null)for(df(M,!1),Y=Y.iterator;Y.next();){var ie=Y.value;ie.mode===Dp&&df(M,!0);var ce=ie.sourceName;ce!==null&&(ce==="/"&&Rv(O,!0),ce=Ub(ie,O,M),ce!==null&&(n.add(ce),ce.srcBindings===null&&(ce.srcBindings=new Gt),ce.srcBindings.add(ie))),t.add(ie)}if(M instanceof Xt&&M.type===Xt.Table){if(0<M.rowCount){for(O=M.rowDefs,Y=O.length,ie=0;ie<Y;ie++)if(ce=O[ie],ce!==void 0&&ce.be!==null)for(var ge=ce.be.iterator;ge.next();){var Te=ge.value;Te.xd=ce,Te.to=2,Te.wl=ce.index,t.add(Te)}}if(0<M.columnCount){for(M=M.colDefs,O=M.length,Y=0;Y<O;Y++)if(ie=M[Y],ie!==void 0&&ie.be!==null)for(ce=ie.be.iterator;ce.next();)ge=ce.value,ge.xd=ie,ge.to=1,ge.wl=ie.index,t.add(ge)}}});for(var r=n.iterator;r.next();){var i=r.value;if(i.srcBindings!==null){df(i,!0);for(var o=i.srcBindings.iterator;o.next();){var a=o.value;i.localBindings===null&&(i.localBindings=new Gt),i.localBindings.add(a)}}i.srcBindings=null}for(r=t.iterator;r.next();)if(i=r.value,o=i.xd,o!==null){i.xd=null;var d=i.targetProperty,x=d.indexOf(".");0<x&&o instanceof Xt&&(a=d.substring(0,x),d=d.substr(x+1),x=o.fb(a),x!==null?(o=x,i.targetProperty=d):Un('Warning: unable to find GraphObject named "'+a+'" for Binding: '+i.toString())),o instanceof Ko?(a=rr(o.panel),i.Ai=a===void 0?-1:a,o.panel.bindingId=i.Ai):o instanceof at?(a=rr(o),i.Ai=a===void 0?-1:a,o.bindingId=i.Ai):ft("Unknown type of binding target: "+o)}t.freeze(),e instanceof Fn&&e.Zc()&&e.Va()}me.Uy=function(e){e===void 0&&(e=!1);var t=this.copy();return M1(t,function(n){n instanceof Xt&&(n.allBindings=null,n.ub=null);var r=n.localBindings;r!==null&&(n.localBindings=null,r.each(function(i){n.bind(i.copy())})),r=n.animationTriggers,r!==null&&(n.animationTriggers=null,r.each(function(i){n.Jv(i.value.copy())}))}),e&&Hl(t),t},me.La=function(e){var t=this.allBindings;if(t!==null)for(e===void 0&&(e=""),t=t.iterator;t.next();){var n=t.value,r=n.sourceProperty;if((e===""||r===""||r===e)&&(r=n.targetProperty,n.converter!==null||r!=="")){r=this.data;var i=n.sourceName;if(i!==null){if(i==="")r=this;else if(i==="/")r=this;else if(i===".")r=this;else if(i==="..")r=this;else if(r=this.fb(i),r===null)continue}else if(n.isToModel)if(r=this.diagram,r!==null)r=r.model.modelData;else continue;var o=this,a=n.Ai;if(a!==-1){if(o=this.ks(a),o===null)continue}else n.xd!==null&&(o=n.xd);if(i==="/"?r=o.part:i==="."?r=o:i===".."&&(r=o.panel),i=n.to,i!==0){if(!(o instanceof Xt))continue;i===1?o=o.Eb(n.wl):i===2&&(o=o.Fb(n.wl))}o!==void 0&&n.Mv(o,r)}}},me.sx=function(e){return e==null||this.ge===null?null:this.ge.I(e)};function D1(e,t){e=e.O.s;for(var n=e.length,r=t.length,i=0,o=null;i<n&&(o=e[i],!(o instanceof Xt&&o.data!==null));)i++,o=e[i];if(n-i!==r)return!0;if(o===null)return 0<r;for(var a=0;i<n&&a<r;){if(o=e[i],!(o instanceof Xt)||o.data!==t[a])return!0;i++,a++}return!1}function dp(e){if(e.type===Xt.Spot||e.type===Xt.Auto)return Math.min(e.O.length,1);if(e.type===Xt.Link){e=e.O;for(var t=e.length,n=0;n<t;n++){var r=e.M(n);if(!(r instanceof hr&&r.isPanelMain))break}return n}return e.type===Xt.Table&&0<e.O.length&&(e=e.O.M(0),e.isPanelMain&&e instanceof Xt&&Ic(e))?1:0}me.mv=function(){for(var e=dp(this);this.O.length>e;)this.pc(this.O.length-1,!1);A0(this,this.itemArray)};function A0(e,t){var n=dp(e);if(t===null||t.length===0)for(;e.O.length>n;)e.pc(e.O.length-1,!1);else if(e.O.length<=n){n=t.length;for(var r=0;r<n;r++)Bg(e,t[r],r,!0)}else{r=n;for(var i=0;i<t.length;i++,r++){var o=t[i],a=r<e.O.length?e.O.M(r):null;if(a instanceof Xt){if(a.data!==o){var d=Lv(e,a.data),x=Lv(e,o),O=x!==d;O||(d=Mv(e,d),O=Mv(e,x)!==d),O?(e.pc(r,!1),Bg(e,o,i,!1)):a.data=o}}else Bg(e,o,i,!1)}for(;r<e.O.length;)e.pc(r,!1);e.$g=null,Ov(e,n,0),fl(e)||e.v(),e.graduatedIntervals=null,e.If()||jg(e,e,!1),t=e.part,t!==null&&(t.Rh=null,t.ag=NaN,e.Te&&t instanceof hn&&(t.Te=!0),t.Te&&t instanceof hn&&(t.wc=null))}}function Bg(e,t,n,r){if(!(t==null||0>n)){var i=Lv(e,t);if(i=Mv(e,i),i!==null){if(Hl(i),i=i.copy(),i.l&16777216){var o=e.ih();o!==null&&Rv(o,!0)}typeof t=="object"&&(e.ge===null&&(e.ge=new Et),e.ge.add(t,i)),o=n+dp(e),e.Gb(o,i),r&&(i.ub=t,Ov(e,o,n),i.ub=null),i.data=t}}}function Ov(e,t,n){for(e=e.O;t<e.length;){var r=e.M(t);if(r instanceof Xt){var i=t,o=n;r.type===Xt.TableRow?r.row=i:r.type===Xt.TableColumn&&(r.column=i),r.itemIndex=o}t++,n++}}function Lv(e,t){if(t===null)return"";if(e=e.itemCategoryProperty,typeof e=="function")e=e(t);else if(typeof e=="string"&&typeof t=="object"){if(e==="")return"";e=Ro(t,e)}else return"";if(e===void 0)return"";if(typeof e=="string")return e;ft("Panel.getCategoryForItemData found a non-string category for "+t+": "+e)}function Mv(e,t){var n=e.itemTemplateMap,r=null;return n!==null&&(r=n.I(t)),r===null&&(n!==null&&(r=n.I("")),r===null&&(k0||(k0=!0,Un('No item template Panel found for category "'+t+'" on '+e),Un(" Using default item template."),e=new Xt,t=new zi,t.bind(new Do("text","",lr)),e.add(t),N0=e),r=N0)),r}function jg(e,t,n){var r=t.enabledChanged;if(r!==null&&r(t,n),t instanceof Xt){t=t.O.s,r=t.length;for(var i=0;i<r;i++){var o=t[i];n&&o instanceof Xt&&!o.isEnabled||jg(e,o,n)}}}function Lu(e,t){t.name=e,su.add(e,t)}Mn.Object.defineProperties(Xt.prototype,{type:{get:function(){return this.na},set:function(e){var t=this.na;t!==e&&(this.na=e,this.isAtomic=this.na===Xt.Grid,this.v(),this.g("type",t,e))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(e){typeof e=="number"?(0>e&&An(e,">= 0",Xt,"padding"),e=new ar(e)):(0>e.left&&An(e.left,">= 0",Xt,"padding:value.left"),0>e.right&&An(e.right,">= 0",Xt,"padding:value.right"),0>e.top&&An(e.top,">= 0",Xt,"padding:value.top"),0>e.bottom&&An(e.bottom,">= 0",Xt,"padding:value.bottom"));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.v(),this.g("padding",t,e))}},defaultAlignment:{get:function(){return this.Tm},set:function(e){var t=this.Tm;t.D(e)||(this.Tm=e=e.J(),this.v(),this.g("defaultAlignment",t,e))}},defaultStretch:{get:function(){return this.Uf},set:function(e){var t=this.Uf;t!==e&&(this.Uf=e,this.v(),this.g("defaultStretch",t,e))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Ho},set:function(e){typeof e=="number"&&(e=new ar(e));var t=this.defaultSeparatorPadding;t.D(e)||(e=e.J(),this.T===null&&(this.T=new Al),this.T.Qp=e,this.v(),this.g("defaultSeparatorPadding",t,e))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(e){var t=this.defaultRowSeparatorStroke;t!==e&&(e===null||typeof e=="string"||e instanceof di)&&(e instanceof di&&e.freeze(),this.T===null&&(this.T=new Al),this.T.ia=e,this.N(),this.g("defaultRowSeparatorStroke",t,e))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(e){var t=this.defaultRowSeparatorStrokeWidth;t!==e&&isFinite(e)&&0<=e&&(this.T===null&&(this.T=new Al),this.T.Ha=e,this.v(),this.g("defaultRowSeparatorStrokeWidth",t,e))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(e){var t=this.defaultRowSeparatorDashArray;if(t!==e){if(e!==null){for(var n=e.length,r=0,i=0;i<n;i++){var o=e[i];typeof o=="number"&&0<=o&&isFinite(o)||ft("defaultRowSeparatorDashArray value "+o+" at index "+i+" must be a positive number or zero."),r+=o}if(r===0){if(t===null)return;e=null}}this.T===null&&(this.T=new Al),this.T.V=e,this.N(),this.g("defaultRowSeparatorDashArray",t,e)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(e){var t=this.defaultColumnSeparatorStroke;t!==e&&(e===null||typeof e=="string"||e instanceof di)&&(e instanceof di&&e.freeze(),this.T===null&&(this.T=new Al),this.T.u=e,this.N(),this.g("defaultColumnSeparatorStroke",t,e))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(e){var t=this.defaultColumnSeparatorStrokeWidth;t!==e&&isFinite(e)&&0<=e&&(this.T===null&&(this.T=new Al),this.T.F=e,this.v(),this.g("defaultColumnSeparatorStrokeWidth",t,e))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(e){var t=this.defaultColumnSeparatorDashArray;if(t!==e){if(e!==null){for(var n=e.length,r=0,i=0;i<n;i++){var o=e[i];typeof o=="number"&&0<=o&&isFinite(o)||ft("defaultColumnSeparatorDashArray value "+o+" at index "+i+" must be a positive number or zero."),r+=o}if(r===0){if(t===null)return;e=null}}this.T===null&&(this.T=new Al),this.T.o=e,this.N(),this.g("defaultColumnSeparatorDashArray",t,e)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(e){this.T===null&&(this.T=new Al),this.T.nb=e}},viewboxStretch:{get:function(){return this.xo},set:function(e){var t=this.xo;t!==e&&(this.xo=e,this.v(),this.g("viewboxStretch",t,e))}},gridCellSize:{get:function(){return this.jn},set:function(e){var t=this.jn;if(!t.D(e)){e.w()&&e.width!==0&&e.height!==0||ft("Invalid Panel.gridCellSize: "+e),this.jn=e.J();var n=this.diagram;n!==null&&this===n.grid&&Iu(n),this.N(),this.g("gridCellSize",t,e)}}},gridOrigin:{get:function(){return this.kn},set:function(e){var t=this.kn;if(!t.D(e)){e.w()||ft("Invalid Panel.gridOrigin: "+e),this.kn=e.J();var n=this.diagram;n!==null&&this===n.grid&&Iu(n),this.N(),this.g("gridOrigin",t,e)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(e){var t=this.graduatedMin;t!==e&&(this.ra===null&&(this.ra=new fc),this.ra.lq=e,this.v(),this.g("graduatedMin",t,e),Ns(this)&&(e=this.part,e!==null&&qi(this,e,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(e){var t=this.graduatedMax;t!==e&&(this.ra===null&&(this.ra=new fc),this.ra.F=e,this.v(),this.g("graduatedMax",t,e),Ns(this)&&(e=this.part,e!==null&&qi(this,e,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(e){var t=this.graduatedTickUnit;t!==e&&0<e&&(this.ra===null&&(this.ra=new fc),this.ra.ia=e,this.v(),this.g("graduatedTickUnit",t,e))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(e){var t=this.graduatedTickBase;t!==e&&(this.ra===null&&(this.ra=new fc),this.ra.V=e,this.v(),this.g("graduatedTickBase",t,e))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(e){this.ra!==null?this.ra.u=e:e!==null&&(this.ra=new fc,this.ra.u=e)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(e){this.ra!==null?this.ra.j=e:e!==null&&(this.ra=new fc,this.ra.j=e)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(e){this.ra!==null?this.ra.o=e:e!==null&&(this.ra=new fc,this.ra.o=e)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(e){this.ra!==null?this.ra.Zh=e:e!==null&&(this.ra=new fc,this.ra.Zh=e)}},panelLayoutState:{get:function(){return this.F},set:function(e){this.F=e}},Te:{get:function(){return(this.l&8388608)!==0},set:function(e){(this.l&8388608)!==0!==e&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Al),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Al),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:zg},set:function(e){var t=this.rowSizing;t!==e&&(this.T===null&&(this.T=new Al),this.T.ob=e,this.v(),this.g("rowSizing",t,e))}},columnSizing:{get:function(){return this.T!==null?this.T.j:zg},set:function(e){var t=this.columnSizing;t!==e&&(this.T===null&&(this.T=new Al),this.T.j=e,this.v(),this.g("columnSizing",t,e))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(e){var t=this.topIndex;t!==e&&((!isFinite(e)||0>e)&&ft("Panel.topIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new Al),this.T.Hb=e,this.v(),this.g("topIndex",t,e))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(e){var t=this.leftIndex;t!==e&&((!isFinite(e)||0>e)&&ft("Panel.leftIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new Al),this.T.hb=e,this.v(),this.g("leftIndex",t,e))}},data:{get:function(){return this.ub},set:function(e){var t=this.ub;if(t!==e){var n=this instanceof Fn&&!(this instanceof Xr);Hl(this),this.ub=e;var r=this.diagram;r!==null&&(n?(n=r.partManager,this instanceof nn?(t!==null&&n.bf.remove(t),e!==null&&n.bf.add(e,this)):this instanceof Fn&&(t!==null&&n.cf.remove(t),e!==null&&n.cf.add(e,this))):(n=this.panel,n!==null&&n.ge!==null&&(t!==null&&n.ge.remove(t),e!==null&&n.ge.add(e,this)))),this.g("data",t,e),r!==null&&r.undoManager.isUndoingRedoing||e!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(e){var t=this.zn;t!==e&&(this.zn=e,this.g("itemIndex",t,e))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(e){this.localBindings!==e&&(this.A===null&&(this.A=new pf),this.A.nb=e)}},itemArray:{get:function(){return this.Hh},set:function(e){var t=this.Hh;if(t!==e||e!==null&&D1(this,e)){var n=this.diagram;t!==e&&(n!==null&&t!==null&&Sy(n.partManager,this,n),this.Hh=e,n!==null&&e!==null&&by(n.partManager,this)),this.g("itemArray",t,e),n!==null&&n.undoManager.isUndoingRedoing||A0(this,e)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(e){if(this.itemTemplateMap===null){if(e===null)return;this.itemTemplateMap=new Et}var t=this.itemTemplateMap.I("");t!==e&&((e instanceof Fn||e.isPanelMain)&&ft("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+e),this.itemTemplateMap.add("",e),this.g("itemTemplate",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(e){var t=this.itemTemplateMap;if(t!==e){for(var n=e.iterator;n.next(););vr(this),this.A.Pc=e,this.g("itemTemplateMap",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(e){var t=this.itemCategoryProperty;t!==e&&(vr(this),this.A.Oc=e,this.g("itemCategoryProperty",t,e))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.g("isAtomic",t,e))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(e){var t=(this.l&2097152)!==0;t!==e&&(this.l^=2097152,this instanceof or&&(this.tb=null),this.v(),this.g("isClipping",t,e))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(e){var t=(this.l&33554432)!==0;t!==e&&(this.l^=33554432,this.v(),this.g("isOpposite",t,e))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(e){var t=(this.l&4194304)!==0;if(t!==e){var n=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",t,e),t=this.diagram,t!==null&&t.undoManager.isUndoingRedoing||n&&jg(this,this,e)}}},alignmentFocusName:{get:function(){return this.$e},set:function(e){var t=this.$e;t!==e&&(this.$e=e,this.v(),this.g("alignmentFocusName",t,e))}}}),Mn.Object.defineProperties(Xt,{Position:{get:function(){return su.I("Position")}},Horizontal:{get:function(){return su.I("Horizontal")}},Vertical:{get:function(){return su.I("Vertical")}},Spot:{get:function(){return su.I("Spot")}},Auto:{get:function(){return su.I("Auto")}},Table:{get:function(){return su.I("Table")}},Viewbox:{get:function(){return su.I("Viewbox")}},TableRow:{get:function(){return su.I("TableRow")}},TableColumn:{get:function(){return su.I("TableColumn")}},Link:{get:function(){return su.I("Link")}},Grid:{get:function(){return su.I("Grid")}},Graduated:{get:function(){return su.I("Graduated")}}}),Xt.prototype.rebuildItemElements=Xt.prototype.mv,Xt.prototype.findItemPanelForData=Xt.prototype.sx,Xt.prototype.updateTargetBindings=Xt.prototype.La,Xt.prototype.copyTemplate=Xt.prototype.Uy,Xt.prototype.graduatedValueForPoint=Xt.prototype.Gz,Xt.prototype.graduatedPointForValue=Xt.prototype.Fz,Xt.prototype.findColumnForLocalX=Xt.prototype.fz,Xt.prototype.findRowForLocalY=Xt.prototype.nz,Xt.prototype.addColumnDefinition=Xt.prototype.By,Xt.prototype.addRowDefinition=Xt.prototype.Hy,Xt.prototype.addRowColumnDefinition=Xt.prototype.Gy,Xt.prototype.removeColumnDefinition=Xt.prototype.jA,Xt.prototype.getColumnDefinition=Xt.prototype.Eb,Xt.prototype.removeRowDefinition=Xt.prototype.oA,Xt.prototype.getRowDefinition=Xt.prototype.Fb,Xt.prototype.removeAt=Xt.prototype.mb,Xt.prototype.remove=Xt.prototype.remove,Xt.prototype.insertAt=Xt.prototype.Gb,Xt.prototype.elt=Xt.prototype.M,Xt.prototype.add=Xt.prototype.add,Xt.prototype.findObject=Xt.prototype.fb,Xt.prototype.findInVisualTree=Xt.prototype.Nl,Xt.prototype.walkVisualTreeFrom=Xt.prototype.qm,Xt.prototype.findMainElement=Xt.prototype.Pb;var k0=!1,N0=null,su=new Et;Xt.className="Panel",Xt.definePanelLayout=Lu,Lu("Position",new _g),Lu("Vertical",new kg),Lu("Auto",new Ig),Lu("Link",new Pg);function fc(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}fc.prototype.copy=function(){var e=new fc;return e.lq=this.lq,e.F=this.F,e.ia=this.ia,e.V=this.V,e.u=this.u,e.j=this.j,e.o=this.o,e.Zh=this.Zh,e},fc.className="GradPanelSettings";function Al(){this.Pc=[],this.Oc=[],this.j=this.ob=zg,this.hb=this.Hb=0,this.Qp=Ho,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Al.prototype.copy=function(e){for(var t=new Al,n=this.Pc,r=n.length,i=t.Pc,o=0;o<r;o++)if(n[o]!==void 0){var a=n[o].copy();a.wi(e),i[o]=a}for(n=this.Oc,r=n.length,i=t.Oc,o=0;o<r;o++)n[o]!==void 0&&(a=n[o].copy(),a.wi(e),i[o]=a);return t.ob=this.ob,t.j=this.j,t.Hb=this.Hb,t.hb=this.hb,t.Qp=this.Qp.J(),t.Ha=this.Ha,t.ia=this.ia,t.V=this.V,t.F=this.F,t.u=this.u,t.o=this.o,t.nb=this.nb,t},Al.className="TablePanelSettings";function Ko(e){Wn(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Bo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Dv,this.hg=sr,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,e&&(Object.assign(this,e),e.column!==void 0?(this.isRow=!1,this.index=e.column):e.row!==void 0&&(this.isRow=!0,this.index=e.row))}Ko.prototype.copy=function(){var e=new Ko;return e.uq=this.uq,e.Za=this.Za,e.Hc=this.Hc,e.jj=this.jj,e.hj=this.hj,e.Jb=this.Jb,e.oa=this.oa,e.oc=this.oc,e.pa=this.pa,e.hg=this.hg,e.oo=this.oo,this.dg===null?e.dg=null:e.dg=this.dg.J(),e.lo=this.lo,e.mo=this.mo,e.tj=null,this.tj!==null&&(e.separatorDashArray=Hn(this.separatorDashArray)),e.Ma=this.Ma,e.Pm=this.Pm,e.be=this.be,e};function Ug(e,t){t.isRow?e.height=t.height:e.width=t.width,e.minimum=t.minimum,e.maximum=t.maximum,e.alignment=t.alignment,e.stretch=t.stretch,e.sizing=t.sizing,e.dg=t.separatorPadding===null?null:t.separatorPadding.J(),e.separatorStroke=t.separatorStroke,e.separatorStrokeWidth=t.separatorStrokeWidth,e.tj=null,t.separatorDashArray&&(e.tj=Hn(t.separatorDashArray)),e.background=t.background,e.coversSeparators=t.coversSeparators,e.be=t.be}me=Ko.prototype,me.qb=function(e){e.classType===Ko&&(this.sizing=e)},me.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+rr(this)},me.wi=function(e){this.Me=e},me.Io=function(e){var t=0,n=this.Me;if(this.index!==e&&(e=this.separatorStroke,e===null&&n!==null&&(e=this.isRow?n.defaultRowSeparatorStroke:n.defaultColumnSeparatorStroke),e!==null&&(t=this.separatorStrokeWidth,isNaN(t)&&(n!==null?t=this.isRow?n.defaultRowSeparatorStrokeWidth:n.defaultColumnSeparatorStrokeWidth:t=0))),e=this.dg,e===null)if(n!==null)e=n.defaultSeparatorPadding;else return t;return t+(this.isRow?e.top:e.left)},me.Wc=function(){var e=0,t=this.Me,n=0,r=this.isRow;if(t!==null&&t.type===Xt.Table)for(var i=r?t.rowDefs.length:t.colDefs.length,o=0;o<i;o++){var a=r?t.rowDefs[o]:t.colDefs[o];if(a!==void 0&&a.oa!==0){n=a.index;break}}if(this.index!==n&&(n=this.separatorStroke,n===null&&t!==null&&(n=r?t.defaultRowSeparatorStroke:t.defaultColumnSeparatorStroke),n!==null&&(e=this.separatorStrokeWidth,isNaN(e)&&(t!==null?e=r?t.defaultRowSeparatorStrokeWidth:t.defaultColumnSeparatorStrokeWidth:e=0))),r=this.dg,r===null)if(t!==null)r=t.defaultSeparatorPadding;else return e;return e+(this.isRow?r.top+r.bottom:r.left+r.right)},me.Ob=function(e,t,n){var r=this.Me;if(r!==null&&(r.cb(ji,e,this,t,n,void 0,void 0),this.be!==null&&(t=r.diagram,t!==null&&!t.skipsModelSourceBindings&&(r=r.ih(),r!==null&&(t=r.data,t!==null)))))for(n=this.be.iterator;n.next();)n.value.sp(this,t,e,r)};function Hg(e){if(e.sizing===Dv){var t=e.Me;return e.isRow?t.rowSizing:t.columnSizing}return e.sizing}me.bind=function(e,t,n,r){var i=null;return typeof e=="string"?i=new Do(e,t,n,r):i=e,i.xd=this,e=this.panel,e!==null&&(t=e.ih(),t!==null&&_0(t)&&ft("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+i+" on "+e)),this.be===null&&(this.be=new Gt),this.be.add(i),this},Mn.Object.defineProperties(Ko.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(e){this.uq=e}},index:{get:function(){return this.Za},set:function(e){this.Za=e}},height:{get:function(){return this.Hc},set:function(e){var t=this.Hc;t!==e&&(0>e&&An(e,">= 0",Ko,"height"),this.Hc=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",t,e))}},width:{get:function(){return this.Hc},set:function(e){var t=this.Hc;t!==e&&(0>e&&An(e,">= 0",Ko,"width"),this.Hc=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",t,e))}},minimum:{get:function(){return this.jj},set:function(e){var t=this.jj;t!==e&&((0>e||!isFinite(e))&&An(e,">= 0",Ko,"minimum"),this.jj=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",t,e))}},maximum:{get:function(){return this.hj},set:function(e){var t=this.hj;t!==e&&(0>e&&An(e,">= 0",Ko,"maximum"),this.hj=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",t,e))}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(this.Jb=e.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",t,e))}},stretch:{get:function(){return this.hg},set:function(e){var t=this.hg;t!==e&&(this.hg=e,this.panel!==null&&this.panel.v(),this.Ob("stretch",t,e))}},separatorPadding:{get:function(){return this.dg},set:function(e){typeof e=="number"&&(e=new ar(e));var t=this.dg;e!==null&&t!==null&&t.D(e)||(e!==null&&(e=e.J()),this.dg=e,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",t,e))}},separatorStroke:{get:function(){return this.lo},set:function(e){var t=this.lo;t!==e&&(e!==null&&mf(e,"RowColumnDefinition.separatorStroke"),e instanceof di&&e.freeze(),this.lo=e,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",t,e))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(e){var t=this.mo;t!==e&&(this.mo=e,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",t,e))}},separatorDashArray:{get:function(){return this.tj},set:function(e){var t=this.tj;if(t!==e){if(e!==null){for(var n=e.length,r=0,i=0;i<n;i++){var o=e[i];typeof o=="number"&&0<=o&&isFinite(o)||ft("separatorDashArray value "+o+" at index "+i+" must be a positive number or zero."),r+=o}if(r===0){if(t===null)return;e=null}}this.tj=e,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",t,e)}}},background:{get:function(){return this.Ma},set:function(e){var t=this.Ma;t!==e&&(e!==null&&mf(e,"RowColumnDefinition.background"),e instanceof di&&e.freeze(),this.Ma=e,this.panel!==null&&this.panel.N(),this.Ob("background",t,e))}},coversSeparators:{get:function(){return this.Pm},set:function(e){var t=this.Pm;t!==e&&(this.Pm=e,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",t,e))}},sizing:{get:function(){return this.oo},set:function(e){var t=this.oo;t!==e&&(this.oo=e,this.panel!==null&&this.panel.v(),this.Ob("sizing",t,e))}},actual:{get:function(){return this.oa},set:function(e){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,e),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(e){this.oc=e}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(e){this.pa=e}}}),Ko.prototype.computeEffectiveSpacing=Ko.prototype.Wc,Ko.prototype.computeEffectiveSpacingTop=Ko.prototype.Io;var Dv=new Dt(Ko,"Default",0),pp=new Dt(Ko,"None",1),zg=new Dt(Ko,"ProportionalExtra",2);Ko.className="RowColumnDefinition",Ko.Default=Dv,Ko.None=pp,Ko.ProportionalExtra=zg;function hr(e,t){at.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof e=="string"?this.figure=e:e&&Object.assign(this,e),t&&Object.assign(this,t)}Kn(hr,at),hr.prototype.cloneProtected=function(e){at.prototype.cloneProtected.call(this,e),e.ua=this.ua,e.Rd=this.Rd,e.an=this.an,e.Ui=this.Ui,e.xc=this.xc,e.ig=this.ig,this.Yg!==null&&(e.Yg=Hn(this.Yg)),this.Na!==null&&(e.Na=this.Na.nc?this.Na:this.Na.copy()),e.Un=this.Un,e.Vn=this.Vn,this.fa!==null&&(e.fa=this.fa.copy())};function Gh(e){e.Na===null?e.Na=new Bv:e.Na.nc&&(e.Na=e.Na.copy())}me=hr.prototype,me.th=function(){at.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},me.qb=function(e){e===Ut||e===Nn||e===kr||e===sr?this.geometryStretch=e:at.prototype.qb.call(this,e)},me.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+rr(this)};function id(e,t,n,r){var i=n.length;if(!(4>i)){var o=r.measuredBounds,a=Math.max(1,o.width);o=o.height;for(var d=n[0],x=n[1],O,M,Y,ie,ce,ge,Te=0,Ve=Bn(),He=2;He<i;He+=2)O=n[He],M=n[He+1],Y=O-d,d=M-x,Y===0&&(Y=.001),ie=d/Y,ce=Math.atan2(d,Y),ge=Math.sqrt(Y*Y+d*d),Ve.push([Y,ce,ie,ge]),Te+=ge,d=O,x=M;d=n[0],x=n[1],Y=r.measuredBounds.width,r instanceof hr&&(Y-=r.strokeWidth),1>Y&&(Y=1),i=n=Y,O=a/2,M=O!==0,He=0,ge=Ve[He],Y=ge[0],ce=ge[1],ie=ge[2],ge=ge[3];for(var Xe=0;.1<=Te;){if(Xe===0&&(M?(i=n,i-=O,Te-=O,M=!1):i=n,i===0&&(i=1)),i>Te){wn(Ve);return}i>ge?(Xe=i-ge,i=ge):Xe=0;var Ze=Math.sqrt(i*i/(1+ie*ie));if(0>Y&&(Ze=-Ze),d+=Ze,x+=ie*Ze,e.translate(d,x),e.rotate(ce),e.translate(-(a/2),-(o/2)),Xe===0&&r.hh(e,t),e.translate(a/2,o/2),e.rotate(-ce),e.translate(-d,-x),Te-=i,ge-=i,Xe!==0){if(He++,He===Ve.length){wn(Ve);return}ge=Ve[He],Y=ge[0],ce=ge[1],ie=ge[2],ge=ge[3],i=Xe}}wn(Ve)}}me.hh=function(e,t){var n=this.xc,r=this.Ui;if(n!==null||r!==null){var i=this.ua;if(i!==null){e.yc();var o=this.actualBounds,a=this.naturalBounds;r!==null&&bo(this,e,r,!0,!1,a,o);var d=this.part,x=this.ig;if(n===null||x!==0||d===null||!this.isPanelMain&&d.Pb()!==this||(x=d.type===Xt.Link&&d instanceof Xr&&d.category==="Selection"&&d.adornedObject instanceof hr&&d.adornedPart.Pb()===d.adornedObject?d.adornedObject.strokeWidth:0),x===0&&(n=null),n!==null&&x!==0&&(bo(this,e,n,!1,!1,a,o),e.lineWidth=x,e.lineJoin=this.strokeJoin,e.lineCap=this.strokeCap,e.miterLimit=this.strokeMiterLimit),o=!1,d&&t.Gf("drawShadows")&&(o=d.isShadowed),e.Il===!1&&(o=!1),d=!0,n===null||r!==null&&r!=="transparent"||(d=!1),a=!1,x=this.strokeDashArray,x!==null&&(a=!0,e.js(x,this.strokeDashOffset)),i.type===qt.j)e.beginPath(),e.moveTo(i.startX,i.startY),e.lineTo(i.endX,i.endY),n!==null&&e.jk(),e.Se();else if(i.type===qt.u){var O=i.startX;x=i.startY;var M=i.endX,Y=i.endY;i=Math.min(O,M);var ie=Math.min(x,Y);O=Math.abs(M-O),x=Math.abs(Y-x),e.beginPath(),e.rect(i,ie,O,x),r!==null&&e.ng(r),n!==null&&(d&&o&&Ku(e),e.jk(),d&&o&&lc(e)),e.Se()}else if(i.type===qt.F)O=i.startX,x=i.startY,M=i.endX,Y=i.endY,i=Math.abs(M-O)/2,ie=Math.abs(Y-x)/2,O=Math.min(O,M)+i,x=Math.min(x,Y)+ie,e.beginPath(),e.moveTo(O,x-ie),e.bezierCurveTo(O+ht.wg*i,x-ie,O+i,x-ht.wg*ie,O+i,x),e.bezierCurveTo(O+i,x+ht.wg*ie,O+ht.wg*i,x+ie,O,x+ie),e.bezierCurveTo(O-ht.wg*i,x+ie,O-i,x+ht.wg*ie,O-i,x),e.bezierCurveTo(O-i,x-ht.wg*ie,O-ht.wg*i,x-ie,O,x-ie),e.closePath(),r!==null&&e.ng(r),n!==null&&(d&&o&&Ku(e),e.jk(),d&&o&&lc(e)),e.Se();else if(i.type===qt.o)for(i=i.figures,x=i.length,ie=0;ie<x;ie++){O=i.s[ie],e.beginPath(),e.moveTo(O.startX,O.startY),M=O.segments.s,Y=M.length;for(var ce=null,ge=0;ge<Y;ge++){var Te=M[ge];switch(Te.type){case Yi:e.moveTo(Te.endX,Te.endY);break;case xi:e.lineTo(Te.endX,Te.endY);break;case Ao:e.bezierCurveTo(Te.point1X,Te.point1Y,Te.point2X,Te.point2Y,Te.endX,Te.endY);break;case Hs:e.quadraticCurveTo(Te.point1X,Te.point1Y,Te.endX,Te.endY);break;case mo:if(Te.radiusX===Te.radiusY){var Ve=Math.PI/180;e.arc(Te.point1X,Te.point1Y,Te.radiusX,Te.startAngle*Ve,(Te.startAngle+Te.sweepAngle)*Ve,0>Te.sweepAngle,ce!==null?ce.endX:O.startX,ce!==null?ce.endY:O.startY)}else if(ce=ps(Te,O),Ve=ce.length,Ve===0)e.lineTo(Te.centerX,Te.centerY);else for(var He=0;He<Ve;He++){var Xe=ce[He];He===0&&e.lineTo(Xe[0],Xe[1]),e.bezierCurveTo(Xe[2],Xe[3],Xe[4],Xe[5],Xe[6],Xe[7])}break;case $s:if(He=Ve=0,ce!==null&&ce.type===mo){if(ce=ps(ce,O),Xe=ce.length,Xe===0){e.lineTo(Te.endX,Te.endY);break}ce=ce[Xe-1]||null,ce!==null&&(Ve=ce[6],He=ce[7])}else Ve=ce!==null?ce.endX:O.startX,He=ce!==null?ce.endY:O.startY;if(ce=Ps(Te,O,Ve,He),Ve=ce.length,Ve===0){e.lineTo(Te.endX,Te.endY);break}for(He=0;He<Ve;He++)Xe=ce[He],e.bezierCurveTo(Xe[2],Xe[3],Xe[4],Xe[5],Xe[6],Xe[7]);break;default:ft("Segment not of valid type: "+Te.type)}Te.isClosed&&e.closePath(),ce=Te}M=O.isFilled,o?O.isShadowed?(M===!0&&r!=="transparent"&&r!==null&&e.ng(r,O.isEvenOdd),n!==null&&(M&&d&&Ku(e),e.jk(),M&&d&&lc(e))):(Ku(e),M&&r!=="transparent"&&r!==null&&e.ng(r,O.isEvenOdd),n!==null&&e.jk(),lc(e)):(M&&r!==null&&e.ng(r,O.isEvenOdd),n!==null&&e.jk()),e.Se(ie)}if(a&&e.fs(),this.pathPattern!==null){if(n=this.pathPattern,n.measure(1/0,1/0),r=n.measuredBounds,n.arrange(0,0,r.width,r.height),o=this.geometry,e.save(),e.beginPath(),r=Bn(),o.type===qt.j)r.push(o.startX),r.push(o.startY),r.push(o.endX),r.push(o.endY),id(e,t,r,n);else if(o.type===qt.o)for(o=o.figures.iterator;o.next();){for(d=o.value,r.length=0,r.push(d.startX),r.push(d.startY),a=d.startX,i=d.startY,x=a,ie=i,O=d.segments.s,M=O.length,Y=0;Y<M;Y++){switch(ge=O[Y],ge.type){case Yi:id(e,t,r,n),r.length=0,r.push(ge.endX),r.push(ge.endY),a=ge.endX,i=ge.endY,x=a,ie=i;break;case xi:r.push(ge.endX),r.push(ge.endY),a=ge.endX,i=ge.endY;break;case Ao:ht.Qe(a,i,ge.point1X,ge.point1Y,ge.point2X,ge.point2Y,ge.endX,ge.endY,.5,r),a=ge.endX,i=ge.endY;break;case Hs:ht.ep(a,i,ge.point1X,ge.point1Y,ge.endX,ge.endY,.5,r),a=ge.endX,i=ge.endY;break;case mo:if(Te=ps(ge,d),ce=Te.length,ce===0){r.push(ge.centerX),r.push(ge.centerY),a=ge.centerX,i=ge.centerY;break}for(Ve=0;Ve<ce;Ve++)He=Te[Ve],ht.Qe(a,i,He[2],He[3],He[4],He[5],He[6],He[7],.5,r),a=He[6],i=He[7];break;case $s:if(Te=Ps(ge,d,a,i),ce=Te.length,ce===0){r.push(ge.endX),r.push(ge.endY),a=ge.endX,i=ge.endY;break}for(Ve=0;Ve<ce;Ve++)He=Te[Ve],ht.Qe(a,i,He[2],He[3],He[4],He[5],He[6],He[7],.5,r),a=He[6],i=He[7];break;default:ft("Segment not of valid type: "+ge.type)}ge.isClosed&&(r.push(x),r.push(ie),id(e,t,r,n))}id(e,t,r,n)}else if(o.type===qt.u)r.push(o.startX),r.push(o.startY),r.push(o.endX),r.push(o.startY),r.push(o.endX),r.push(o.endY),r.push(o.startX),r.push(o.endY),r.push(o.startX),r.push(o.startY),id(e,t,r,n);else if(o.type===qt.F){if(i=new To,i.startX=o.endX,i.startY=(o.startY+o.endY)/2,a=new Mr(mo),a.startAngle=0,a.sweepAngle=360,a.centerX=(o.startX+o.endX)/2,a.centerY=(o.startY+o.endY)/2,a.radiusX=Math.abs(o.startX-o.endX)/2,a.radiusY=Math.abs(o.startY-o.endY)/2,i.add(a),o=ps(a,i),d=o.length,d===0)r.push(a.centerX),r.push(a.centerY);else for(a=i.startX,i=i.startY,x=0;x<d;x++)ie=o[x],ht.Qe(a,i,ie[2],ie[3],ie[4],ie[5],ie[6],ie[7],.5,r),a=ie[6],i=ie[7];id(e,t,r,n)}wn(r),e.restore(),e.Vc(!1)}}}},me.kk=function(e,t,n){return!at.prototype.kk.call(this,e,t,n)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(e.Hl=this.svg,this.hh(e,t),e.Hl=null,!0)},me.nk=function(e){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:at.prototype.nk.call(this,e)},me.Dv=function(e,t){if(e.nodeName!=="g")e.setAttributeNS(null,"filter",t);else{e=e.getElementsByTagName("path");for(var n=0;n<e.length;n++)e[n].setAttributeNS(null,"filter",t)}},me.ga=function(e,t){if(t===void 0&&(t=new Ie),e instanceof an){e.Mc()&&ft("getDocumentPoint Spot must be a real, specific Spot, not: "+e.toString());var n=this.naturalBounds,r=this.strokeWidth;t.h(e.x*(n.width+r)-r/2+n.x+e.offsetX,e.y*(n.height+r)-r/2+n.y+e.offsetY)}else t.set(e);return this.oe.Ga(t),t},me.mi=function(e){e===void 0&&(e=new xt);var t=this.naturalBounds,n=this.oe;t=xt.allocAt(t.x,t.y,t.width,t.height);var r=this.strokeWidth;return t.Bc(r/2,r/2),r=Ie.allocAt(t.x,t.y).transform(n),e.h(r.x,r.y,0,0),r.h(t.right,t.y).transform(n),Jr(e,r.x,r.y,0,0),r.h(t.right,t.bottom).transform(n),Jr(e,r.x,r.y,0,0),r.h(t.x,t.bottom).transform(n),Jr(e,r.x,r.y,0,0),xt.free(t),Ie.free(r),e},me.gh=function(e,t){var n=this.geometry;if(n===null||this.fill===null&&this.stroke===null)return!1;var r=n.bounds,i=this.strokeWidth/2;n.type!==qt.j||t||(i+=2);var o=xt.alloc();if(o.assign(r),o.Bc(i+2,i+2),!o.ca(e))return xt.free(o),!1;if(r=i+1e-4,n.type===qt.j)return this.stroke===null||(r=(n.endX-n.startX)*(e.x-n.startX)+(n.endY-n.startY)*(e.y-n.startY),0>(n.startX-n.endX)*(e.x-n.endX)+(n.startY-n.endY)*(e.y-n.endY)||0>r)?!1:(xt.free(o),ht.Yb(n.startX,n.startY,n.endX,n.endY,i,e.x,e.y));if(n.type===qt.u){t=n.startX;var a=n.startY,d=n.endX;if(n=n.endY,o.x=Math.min(t,d),o.y=Math.min(a,n),o.width=Math.abs(d-t),o.height=Math.abs(n-a),this.fill===null){if(o.Bc(-r,-r),o.ca(e))return xt.free(o),!1;o.Bc(r,r)}return this.stroke!==null&&o.Bc(i,i),e=o.ca(e),xt.free(o),e}if(n.type===qt.F){a=n.startX,i=n.startY,d=n.endX;var x=n.endY;if(n=Math.min(a,d),t=Math.min(i,x),a=Math.abs(d-a)/2,i=Math.abs(x-i)/2,n=e.x-(n+a),t=e.y-(t+i),this.fill===null){if(a-=r,i-=r,0>=a||0>=i||1>=n*n/(a*a)+t*t/(i*i))return xt.free(o),!1;a+=r,i+=r}return this.stroke!==null&&(a+=r,i+=r),xt.free(o),0>=a||0>=i?!1:1>=n*n/(a*a)+t*t/(i*i)}if(n.type===qt.o)return xt.free(o),this.fill===null?vl(n,e.x,e.y,i):Xo(n,e,i,1<this.strokeWidth,t);ft("Unknown Geometry type: "+n.type)},me.Wl=function(e,t,n,r){var i=this.desiredSize,o=this.ig;if(e=Math.max(e,0),t=Math.max(t,0),this.Rd!==null)var a=this.geometry.bounds;else{var d=this.figure,x=Fv[d];if(x===void 0){var O=ht.Ze[d];typeof O=="string"&&(O=ht.Ze[O]),typeof O=="function"?(x=O(null,100,100),Fv[d]=x):ft("Unsupported Figure: "+d)}a=x.bounds}d=a.width,x=a.height,O=a.width;var M=a.height;switch(Aa(this,!0)){case Ut:r=n=0;break;case $t:O=Math.max(e-o,0),M=Math.max(t-o,0);break;case Ln:O=Math.max(e-o,0),r=0;break;case Yn:n=0,M=Math.max(t-o,0)}isFinite(i.width)&&(O=i.width),isFinite(i.height)&&(M=i.height);var Y=this.maxSize,ie=this.minSize;switch(n=Math.max(n-o,ie.width),r=Math.max(r-o,ie.height),O=Math.min(Y.width,O),M=Math.min(Y.height,M),O=isFinite(O)?Math.max(n,O):Math.max(d,n),M=isFinite(M)?Math.max(r,M):Math.max(x,r),n=Pv(this),n){case Ut:break;case $t:d=O,x=M;break;case Nn:n=Math.min(O/d,M/x),isFinite(n)||(n=1),d*=n,x*=n;break;default:ft(n+" is not a valid geometryStretch.")}this.Rd!==null?(d===0&&(d=.001),x===0&&(x=.001),n=this.Rd!==null?this.Rd:this.ua,a=n.bounds,r=d/a.width,a=x/a.height,isFinite(r)||(r=1),isFinite(a)||(a=1),this.ua=r===1&&a===1?n:n.copy().scale(r,a)):this.ua!==null&&ht.$(this.ua.Sk,e-o)&&ht.$(this.ua.Rk,t-o)||(this.ua=hr.makeGeometry(this,d,x)),a=this.ua.bounds,e===1/0||t===1/0?this.Ge(a.x-o/2,a.y-o/2,e===0&&d===0?0:a.width+o,t===0&&x===0?0:a.height+o):this.Ge(-(o/2),-(o/2),O+o,M+o),i.w()?(O=i.width,M=i.height,O=Math.min(Y.width,O),M=Math.min(Y.height,M),O=Math.max(ie.width,O),M=Math.max(ie.height,M),this.dc.h(0,0,O,M)):this.dc.assign(a)};function Pv(e){var t=e.geometryStretch;return e.Rd!==null?t===sr?$t:t:t===sr?Fv[e.figure].defaultStretch:t}me.eh=function(e,t,n,r){Qs(this,e,t,n,r)},me.rs=function(e,t,n){return this.Sj(e.x,e.y,t.x,t.y,n)},me.Sj=function(e,t,n,r,i){var o=this.transform,a=1/(o.m11*o.m22-o.m12*o.m21),d=o.m22*a,x=-o.m12*a,O=-o.m21*a,M=o.m11*a,Y=a*(o.m21*o.dy-o.m22*o.dx),ie=a*(o.m12*o.dx-o.m11*o.dy);o=e*d+t*O+Y,a=e*x+t*M+ie,d=n*d+r*O+Y,x=n*x+r*M+ie,Y=this.ig/2,O=this.ua,O===null&&(this.measure(1/0,1/0),O=this.ua);var ce=O.bounds;if(M=!1,O.type===qt.j)if(1.5>=this.strokeWidth)M=ht.Ve(O.startX,O.startY,O.endX,O.endY,o,a,d,x,i);else{if(O.startX===O.endX?(r=Y,M=0):(t=(O.endY-O.startY)/(O.endX-O.startX),M=Y/Math.sqrt(1+t*t),r=M*t),t=Bn(),e=new Ie,ht.Ve(O.startX+r,O.startY+M,O.endX+r,O.endY+M,o,a,d,x,e)&&t.push(e),e=new Ie,ht.Ve(O.startX-r,O.startY-M,O.endX-r,O.endY-M,o,a,d,x,e)&&t.push(e),e=new Ie,ht.Ve(O.startX+r,O.startY+M,O.startX-r,O.startY-M,o,a,d,x,e)&&t.push(e),e=new Ie,ht.Ve(O.endX+r,O.endY+M,O.endX-r,O.endY-M,o,a,d,x,e)&&t.push(e),d=t.length,d===0)return wn(t),!1;for(M=!0,x=1/0,r=0;r<d;r++)e=t[r],n=(e.x-o)*(e.x-o)+(e.y-a)*(e.y-a),n<x&&(x=n,i.x=e.x,i.y=e.y);wn(t)}else if(O.type===qt.u)M=ht.Ff(ce.x-Y,ce.y-Y,ce.x+ce.width+Y,ce.y+ce.height+Y,o,a,d,x,i);else if(O.type===qt.F){t=xt.allocAt(ce.x,ce.y,ce.width,ce.height).Bc(Y,Y);e:if(t.width===0)M=ht.Ve(t.x,t.y,t.x,t.y+t.height,o,a,d,x,i);else if(t.height===0)M=ht.Ve(t.x,t.y,t.x+t.width,t.y,o,a,d,x,i);else{if(e=t.width/2,O=t.height/2,r=t.x+e,M=t.y+O,n=9999,o!==d&&(n=(a-x)/(o-d)),9999>Math.abs(n)){if(x=a-M-n*(o-r),0>e*e*n*n+O*O-x*x){i.x=NaN,i.y=NaN,M=!1;break e}Y=Math.sqrt(e*e*n*n+O*O-x*x),d=(-(e*e*n*x)+e*O*Y)/(O*O+e*e*n*n)+r,e=(-(e*e*n*x)-e*O*Y)/(O*O+e*e*n*n)+r,O=n*(d-r)+x+M,x=n*(e-r)+x+M,Math.abs((o-d)*(o-d))+Math.abs((a-O)*(a-O))<Math.abs((o-e)*(o-e))+Math.abs((a-x)*(a-x))?(i.x=d,i.y=O):(i.x=e,i.y=x)}else{if(d=O*O,x=o-r,d-=d/(e*e)*x*x,0>d){i.x=NaN,i.y=NaN,M=!1;break e}x=Math.sqrt(d),d=M+x,x=M-x,Math.abs(d-a)<Math.abs(x-a)?(i.x=o,i.y=d):(i.x=o,i.y=x)}M=!0}xt.free(t)}else if(O.type===qt.o){ie=Ie.alloc();var ge=d-o,Te=x-a,Ve=ge*ge+Te*Te,He=o,Xe=a;if(0<Ve&&ce.contains(He,Xe)&&(ie.x=He,ie.y=Xe,this.ca(ie)))for(ge!==0&&.5>Math.abs(ge)?(Te*=.5/ge,ge=.5):Te!==0&&.5>Math.abs(Te)&&(ge*=.5/Te,Te=.5),He-=ge,Xe-=Te;ce.contains(He,Xe);)He-=ge,Xe-=Te;for(i.x=d,i.y=x,Te=0;Te<O.figures.count;Te++){var Ze=O.figures.s[Te],qe=Ze.isFilled?He:o,st=Ze.isFilled?Xe:a,yt=Ze.segments;ce=Ze.startX,ge=Ze.startY;for(var un=ce,kn=ge,En=0;En<yt.count;En++){var tn=yt.s[En],Bt=tn.type,ir=tn.endX,Jn=tn.endY,ni=!1;switch(Bt){case Yi:un=ir,kn=Jn;break;case xi:ni=Wg(ce,ge,ir,Jn,qe,st,d,x,ie);break;case Ao:ni=ht.Eo(ce,ge,tn.point1X,tn.point1Y,tn.point2X,tn.point2Y,ir,Jn,qe,st,d,x,.6,ie);break;case Hs:ni=ht.Eo(ce,ge,ce+2/3*(tn.point1X-ce),ge+2/3*(tn.point1Y-ge),ir+2/3*(tn.point1X-ir),Jn+2/3*(tn.point1Y-Jn),ir,Jn,qe,st,d,x,.6,ie);break;case mo:case $s:Bt=tn.type===mo?ps(tn,Ze):Ps(tn,Ze,ce,ge);var Hi=Bt.length;if(Hi===0){ni=Wg(ce,ge,tn.type===mo?tn.centerX:tn.endX,tn.type===mo?tn.centerY:tn.endY,qe,st,d,x,ie);break}for(Jn=null,ir=0;ir<Hi;ir++){if(Jn=Bt[ir],ir===0&&Wg(ce,ge,Jn[0],Jn[1],qe,st,d,x,ie)){var ls=Gg(qe,st,ie,Ve,i);ls<Ve&&(Ve=ls,M=!0)}ht.Eo(Jn[0],Jn[1],Jn[2],Jn[3],Jn[4],Jn[5],Jn[6],Jn[7],qe,st,d,x,.6,ie)&&(ls=Gg(qe,st,ie,Ve,i),ls<Ve&&(Ve=ls,M=!0))}ir=Jn[6],Jn=Jn[7];break;default:ft("Unknown Segment type: "+Bt)}ce=ir,ge=Jn,ni&&(ni=Gg(qe,st,ie,Ve,i),ni<Ve&&(Ve=ni,M=!0)),tn.isClosed&&(ir=un,Jn=kn,Wg(ce,ge,ir,Jn,qe,st,d,x,ie)&&(tn=Gg(qe,st,ie,Ve,i),tn<Ve&&(Ve=tn,M=!0)))}}o=n-e,a=r-t,d=Math.sqrt(o*o+a*a),d!==0&&(o/=d,a/=d),i.x-=o*Y,i.y-=a*Y,Ie.free(ie)}else ft("Unknown Geometry type: "+O.type);return M?(this.transform.Ga(i),!0):!1};function Gg(e,t,n,r,i){return e=n.x-e,t=n.y-t,t=e*e+t*t,t<r?(i.x=n.x,i.y=n.y,t):r}function Wg(e,t,n,r,i,o,a,d,x){if(ht.$(e,n)&&ht.$(t,r)||ht.$(i,a)&&ht.$(o,d))return!1;var O=!1,M=(i-a)*(t-r)-(o-d)*(e-n);return M===0?!1:(x.x=((i*d-o*a)*(e-n)-(i-a)*(e*r-t*n))/M,x.y=((i*d-o*a)*(t-r)-(o-d)*(e*r-t*n))/M,(e>n?e-n:n-e)<(t>r?t-r:r-t)?(e=t<r?t:r,t=t<r?r:t,(x.y>e||ht.$(x.y,e))&&(x.y<t||ht.$(x.y,t))&&(O=!0)):(t=e<n?e:n,e=e<n?n:e,(x.x>t||ht.$(x.x,t))&&(x.x<e||ht.$(x.x,e))&&(O=!0)),O)}me.fh=function(e,t){if(t===void 0)return e.Re(this.actualBounds);var n=this.ua;n===null&&(this.measure(1/0,1/0),n=this.ua),n=n.bounds;var r=this.strokeWidth/2,i=!1,o=Ie.alloc();return o.h(n.x-r,n.y-r),e.ca(t.Ga(o))&&(o.h(n.x-r,n.bottom+r),e.ca(t.Ga(o))&&(o.h(n.right+r,n.bottom+r),e.ca(t.Ga(o))&&(o.h(n.right+r,n.y-r),e.ca(t.Ga(o))&&(i=!0)))),Ie.free(o),i},me.Yc=function(e,t){if(this.fh(e,t)||t===void 0&&(t=this.transform,e.Re(this.actualBounds)))return!0;var n=Zn.alloc();n.set(t),n.Vj();var r=e.left,i=e.right,o=e.top;e=e.bottom;var a=Ie.alloc();if(a.h(r,o),n.Ga(a),this.gh(a,!0)||(a.h(i,o),n.Ga(a),this.gh(a,!0))||(a.h(r,e),n.Ga(a),this.gh(a,!0))||(a.h(i,e),n.Ga(a),this.gh(a,!0)))return Ie.free(a),!0;var d=Ie.alloc(),x=Ie.alloc();return n.set(t),n.bv(this.transform),n.Vj(),d.x=i,d.y=o,d.transform(n),a.x=r,a.y=o,a.transform(n),t=!1,Wh(this,a,d,x)?t=!0:(a.x=i,a.y=e,a.transform(n),Wh(this,a,d,x)?t=!0:(d.x=r,d.y=e,d.transform(n),Wh(this,a,d,x)?t=!0:(a.x=r,a.y=o,a.transform(n),Wh(this,a,d,x)&&(t=!0)))),Ie.free(a),Zn.free(n),Ie.free(d),Ie.free(x),t};function Wh(e,t,n,r){if(!e.rs(t,n,r))return!1;e=t.x,t=t.y;var i=n.x,o=n.y;return n=r.x,r=r.y,e===i?(t<o?(e=t,t=o):e=o,r>=e&&r<=t):(e<i?(r=e,e=i):r=i,n>=r&&n<=e)}me.tx=function(e,t,n){function r(Ve,He){for(var Xe=Ve.length,Ze=0;Ze<Xe;Ze+=2)if(He.zd(Ve[Ze],Ve[Ze+1])>i)return!0;return!1}if(n&&this.fill!==null&&this.gh(e,!0))return!0;var i=e.Bf(t),o=i;if(1.5<this.strokeWidth&&(i=this.strokeWidth/2+Math.sqrt(i),i*=i),t=this.ua,t===null&&(this.measure(1/0,1/0),t=this.ua,t===null))return!1;if(!n){var a=t.bounds,d=a.x,x=a.y,O=a.x+a.width;if(a=a.y+a.height,Xn(e.x,e.y,d,x)<=i&&Xn(e.x,e.y,O,x)<=i&&Xn(e.x,e.y,d,a)<=i&&Xn(e.x,e.y,O,a)<=i)return!0}if(d=t.startX,x=t.startY,O=t.endX,a=t.endY,t.type===qt.j){if(n=(d-O)*(e.x-O)+(x-a)*(e.y-a),Sn(e.x,e.y,d,x,O,a)<=(0<=(O-d)*(e.x-d)+(a-x)*(e.y-x)&&0<=n?i:o))return!0}else{if(t.type===qt.u)return t=!1,n&&(t=Sn(e.x,e.y,d,x,d,a)<=i||Sn(e.x,e.y,d,x,O,x)<=i||Sn(e.x,e.y,O,x,O,a)<=i||Sn(e.x,e.y,d,a,O,a)<=i),t;if(t.type===qt.F){t=e.x-(d+O)/2,o=e.y-(x+a)/2;var M=Math.abs(O-d)/2,Y=Math.abs(a-x)/2;if(M===0||Y===0)return Sn(e.x,e.y,d,x,O,a)<=i;if(n){if(e=ht.$y(M,Y,t,o),e*e<=i)return!0}else return!(Xn(t,o,-M,0)>=i||Xn(t,o,0,-Y)>=i||Xn(t,o,0,Y)>=i||Xn(t,o,M,0)>=i)}else if(t.type===qt.o){if(O=t.bounds,o=O.x,d=O.y,x=O.x+O.width,O=O.y+O.height,e.x>x&&e.x<o&&e.y>O&&e.y<d&&Sn(e.x,e.y,o,d,o,O)>i&&Sn(e.x,e.y,o,d,x,d)>i&&Sn(e.x,e.y,x,O,o,O)>i&&Sn(e.x,e.y,x,O,x,d)>i)return!1;if(o=Math.sqrt(i),n){if(this.fill===null?vl(t,e.x,e.y,o):Xo(t,e,o,!0,!1))return!0}else{for(n=t.figures,t=0;t<n.count;t++){if(o=n.s[t],a=o.startX,M=o.startY,e.zd(a,M)>i)return!1;for(d=o.segments.s,x=d.length,O=0;O<x;O++)switch(Y=d[O],Y.type){case Yi:case xi:if(a=Y.endX,M=Y.endY,e.zd(a,M)>i)return!1;break;case Ao:var ie=Bn();if(ht.Qe(a,M,Y.point1X,Y.point1Y,Y.point2X,Y.point2Y,Y.endX,Y.endY,.8,ie),a=r(ie,e),wn(ie),a||(a=Y.endX,M=Y.endY,e.zd(a,M)>i))return!1;break;case Hs:if(ie=Bn(),ht.ep(a,M,Y.point1X,Y.point1Y,Y.endX,Y.endY,.8,ie),a=r(ie,e),wn(ie),a||(a=Y.endX,M=Y.endY,e.zd(a,M)>i))return!1;break;case mo:case $s:ie=Y.type===mo?ps(Y,o):Ps(Y,o,a,M);var ce=ie.length;if(ce===0){if(a=Y.type===mo?Y.centerX:Y.endX,M=Y.type===mo?Y.centerY:Y.endY,e.zd(a,M)>i)return!1;break}Y=null;for(var ge=Bn(),Te=0;Te<ce;Te++)if(Y=ie[Te],ge.length=0,ht.Qe(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5],Y[6],Y[7],.8,ge),r(ge,e))return wn(ge),!1;wn(ge),Y!==null&&(a=Y[6],M=Y[7]);break;default:ft("Unknown Segment type: "+Y.type)}}return!0}}}return!1},me.qc=function(){this.ua=null},me.kq=function(){return this.ig};function I0(e){var t=e.diagram;t!==null&&t.undoManager.isUndoingRedoing||(e.segmentOrientation=Ep,e.toArrow!=="None"?(e.segmentIndex=-1,e.alignmentFocus=$o):e.fromArrow!=="None"&&(e.segmentIndex=0,e.alignmentFocus=new an(1-$o.x,$o.y)))}hr.makeGeometry=function(e,t,n){if(e.toArrow!=="None")var r=$u[e.toArrow];else e.fromArrow!=="None"?r=$u[e.fromArrow]:(r=ht.Ze[e.figure],typeof r=="string"&&(r=ht.Ze[r]),r===void 0&&ft("Unknown Shape.figure: "+e.figure),r=r(e,t,n),r.Sk=t,r.Rk=n);if(r===null){var i=ht.Ze.Rectangle;typeof i=="function"&&(r=i(e,t,n))}return r};function R0(e){var t=$u[e];if(t===void 0){var n=e.toLowerCase();if(n==="none")return"None";if(t=$u[n],t===void 0){var r=null,i;for(i in ht.um)if(i.toLowerCase()===n){r=i;break}if(r!==null)return e=qt.parse(ht.um[r],!1),$u[r]=e,n!==r&&($u[n]=r),r}}return typeof t=="string"?t:t instanceof qt?e:null}Mn.Object.defineProperties(hr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(e){var t=this.ua,n=this.Rd;if(t!==e){e!==null?this.Rd=this.ua=e.freeze():this.Rd=this.ua=null;var r=this.part;r!==null&&(r.ag=NaN),this.v(),this.g("geometry",t||n,e),Ns(this)&&(e=this.part,e!==null&&qi(this,e,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(e){e=qt.parse(e);var t=e.normalize();this.geometry=e,this.position=e=Ie.allocAt(-t.x,-t.y),Ie.free(e)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",t,e))}},fill:{get:function(){return this.Ui},set:function(e){var t=this.Ui;t!==e&&(e!==null&&mf(e,"Shape.fill"),e instanceof di&&e.freeze(),this.Ui=e,this.N(),this.g("fill",t,e))}},stroke:{get:function(){return this.xc},set:function(e){var t=this.xc;t!==e&&(e!==null&&mf(e,"Shape.stroke"),e instanceof di&&e.freeze(),this.xc=e,this.N(),this.g("stroke",t,e))}},strokeWidth:{get:function(){return this.ig},set:function(e){var t=this.ig;if(t!==e)if(0<=e){this.ig=e,this.v();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeWidth",t,e)}else An(e,"value >= 0",hr,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(e){var t=this.strokeCap;t!==e&&(typeof e!="string"||e!=="butt"&&e!=="round"&&e!=="square"?An(e,'"butt", "round", or "square"',hr,"strokeCap"):(Gh(this),this.Na.Hr=e,this.N(),this.g("strokeCap",t,e)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(e){var t=this.strokeJoin;t!==e&&(typeof e!="string"||e!=="miter"&&e!=="bevel"&&e!=="round"?An(e,'"miter", "bevel", or "round"',hr,"strokeJoin"):(Gh(this),this.Na.Ir=e,this.N(),this.g("strokeJoin",t,e)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(e){var t=this.strokeMiterLimit;if(t!==e&&1<=e){Gh(this),this.Na.Jr=e,this.N();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeMiterLimit",t,e)}}},strokeDashArray:{get:function(){return this.Yg},set:function(e){var t=this.Yg;if(t!==e){if(e!==null){for(var n=e.length,r=0,i=0;i<n;i++){var o=e[i];0<=o&&isFinite(o)||ft("strokeDashArray:value "+o+" at index "+i+" must be a positive number or zero."),r+=o}if(r===0){if(t===null)return;e=null}}this.Yg=e,this.N(),this.g("strokeDashArray",t,e)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(e){var t=this.strokeDashOffset;t!==e&&0<=e&&(Gh(this),this.Na.uj=e,this.N(),this.g("strokeDashOffset",t,e))}},figure:{get:function(){return this.an},set:function(e){var t=this.an;if(t!==e){var n=ht.Ze[e];typeof n=="function"?n=e:(n=ht.Ze[e.toLowerCase()])||ft("Unknown Shape.figure: "+e),t!==n&&(e=this.part,e!==null&&(e.ag=NaN),this.an=n,this.Rd=null,this.qc(),this.v(),this.g("figure",t,n))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(e){var t=this.toArrow;if(e===!0?e="Standard":e===!1&&(e=""),t!==e){var n=R0(e);n===null?ft("Unknown Shape.toArrow: "+e):t!==n&&(this.Ua===null&&(this.Ua=new rh),this.Ua.V=n,this.Rd=null,this.qc(),this.v(),I0(this),this.g("toArrow",t,n))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(e){var t=this.fromArrow;if(e===!0?e="Standard":e===!1&&(e=""),t!==e){var n=R0(e);n===null?ft("Unknown Shape.fromArrow: "+e):t!==n&&(this.Ua===null&&(this.Ua=new rh),this.Ua.j=n,this.Rd=null,this.qc(),this.v(),I0(this),this.g("fromArrow",t,n))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Bo},set:function(e){var t=this.spot1;t.D(e)||(e=e.J(),Gh(this),this.Na.fg=e,this.v(),this.g("spot1",t,e))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Bo},set:function(e){var t=this.spot2;t.D(e)||(e=e.J(),Gh(this),this.Na.gg=e,this.v(),this.g("spot2",t,e))}},parameter1:{get:function(){return this.Un},set:function(e){var t=this.Un;t!==e&&(this.Un=e,this.qc(),this.v(),this.g("parameter1",t,e))}},parameter2:{get:function(){return this.Vn},set:function(e){var t=this.Vn;t!==e&&(this.Vn=e,this.qc(),this.v(),this.g("parameter2",t,e))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(e){var t=this.pathPattern;t!==e&&(Gh(this),this.Na.br=e,this.N(),this.g("pathPattern",t,e))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:sr},set:function(e){var t=this.geometryStretch;t!==e&&(Gh(this),this.Na.jq=e,this.v(),this.g("geometryStretch",t,e))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(e){var t=this.interval;if(e=Math.round(e),t!==e&&e!==0&&isFinite(e)){this.fa===null&&(this.fa=new Xu),this.fa.Tk=e;var n=this.diagram;n!==null&&this.panel===n.grid&&Iu(n),this.v(),n=this.panel,n!==null&&(n.graduatedIntervals=null),this.g("interval",t,e)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(e){var t=this.graduatedStart;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Xu),this.fa.u=e,this.v(),this.g("graduatedStart",t,e))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(e){var t=this.graduatedEnd;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Xu),this.fa.j=e,this.v(),this.g("graduatedEnd",t,e))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(e){var t=this.graduatedSkip;t!==e&&(this.fa===null&&(this.fa=new Xu),this.fa.o=e,this.v(),this.g("graduatedSkip",t,e))}}}),hr.prototype.intersectsRect=hr.prototype.Yc,hr.prototype.containedInRect=hr.prototype.fh,hr.prototype.getNearestIntersectionPoint=hr.prototype.rs,hr.prototype.getDocumentBounds=hr.prototype.mi,hr.prototype.getDocumentPoint=hr.prototype.ga;var $u=new oi,Fv=new oi;hr.className="Shape",hr.getFigureGenerators=function(){var e=new Et,t;for(t in ht.Ze)t!==t.toLowerCase()&&e.add(t,ht.Ze[t]);return e.freeze(),e},hr.defineFigureGenerator=function(e,t){var n=e.toLowerCase(),r=ht.Ze;r[e]=t,r[n]=e},hr.getArrowheadGeometries=function(){var e=new Et;for(r in ht.um)if($u[r]===void 0){var t=qt.parse(ht.um[r],!1);$u[r]=t,t=r.toLowerCase(),t!==r&&($u[t]=r)}for(var n in $u)if(n!==n.toLowerCase()){var r=$u[n];r instanceof qt&&e.add(n,r)}return e.freeze(),e},hr.defineArrowheadGeometry=function(e,t){var n=null;typeof t=="string"?n=qt.parse(t,!1):n=t,t=e.toLowerCase(),t!=="none"&&e!==t||ft("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+e);var r=$u;r[e]=n,r[t]=e};function Bv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=sr,this.gg=this.fg=Bo}Bv.prototype.copy=function(){var e=new Bv;return e.Hr=this.Hr,e.Ir=this.Ir,e.Jr=this.Jr,e.uj=this.uj,e.br=this.br,e.jq=this.jq,e.fg=this.fg.J(),e.gg=this.gg.J(),e};function zi(e,t){return at.call(this),Xg||(ka=vo?new Ul(null).context:null,Xg=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof e=="string"?this.text=e:e&&Object.assign(this,e),t&&Object.assign(this,t),this}Kn(zi,at),zi.prototype.cloneProtected=function(e){at.prototype.cloneProtected.call(this,e),e.ec=this.ec,e.xc=this.xc,e.Ae=this.Ae,e.Gc=this.Gc,e.Cb=this.Cb,e.Lq=this.Lq,e.Gm=this.Gm,this.fa!==null&&(e.fa=this.fa.copy()),this.da!==null&&(e.da=this.da.nc?this.da:this.da.copy()),e.Ih=this.Ih,e.df=this.df,e.Le=this.Le,e.Qc=this.Qc,e.Qb=this.Qb,e.ze=this.ze};function Mu(e){e.da===null?e.da=new Vv:e.da.nc&&(e.da=e.da.copy())}me=zi.prototype,me.th=function(){at.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function O0(e,t){e.l=t.l|6144,e.pb=t.opacity,e.Ma=t.background,e.areaBackground=t.areaBackground,e.jd=t.desiredSize.J(),e.minSize=t.minSize.J(),e.maxSize=t.maxSize.J(),t.Lb!==null?e.Lb=t.Lb.copy():e.Lb=null,e.Ca=t.scale,e.Kb=t.angle,e.stretch=t.stretch,e.Kg=t.margin.J(),e.Jb=t.alignment.J(),e.sk=t.alignmentFocus.J(),e.segmentFraction=t.segmentFraction,e.segmentOffset=t.segmentOffset.J(),e.segmentOrientation=t.segmentOrientation,t.tb!==null&&(e.tb=t.tb.copy()),e.shadowVisible=t.shadowVisible,e.ec=t.ec,e.xc=t.xc,e.Ae=t.Ae,e.fa!==null&&(e.fa=t.fa.copy()),t.da!==null&&(e.da=t.da.nc?t.da:t.da.copy()),e.Ih=t.Ih}me.qb=function(e){e.classType===zi?this.wrap=e:at.prototype.qb.call(this,e)},me.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},me.v=function(){at.prototype.v.call(this)},me.hh=function(e,t){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var n=this.naturalBounds,r=this.actualBounds,i=n.width,o=n.height,a=mp(this),d=e.textAlign=this.textAlign,x=t.tn;d==="start"?d=x?"right":"left":d==="end"&&(d=x?"left":"right"),x=this.isUnderline;var O=this.isStrikethrough;bo(this,e,this.xc,!0,!1,n,r),(x||O)&&bo(this,e,this.xc,!1,!1,n,r),r=0,n=!1;var M=this.oe,Y=M.dx-(a*M.m21+M.dx);M=M.dy-(a*M.m22+M.dy);var ie=t.scale;switch(8>(Y*Y+M*M)*ie*ie&&(n=!0),t.ib!==e&&(n=!1),t.ib instanceof Za&&(n=!1),t.Gf("textGreeking")===!1&&(n=!1),t=this.spacingAbove,Y=this.spacingBelow,this.flip){case Hr:e.translate(i,0),e.scale(-1,1);break;case yr:e.translate(0,o),e.scale(1,-1);break;case Ci:e.translate(i,o),e.scale(-1,-1)}if(e.yc(),M=this.Gc,ie=(t+a+Y)*M,o>ie&&(r=this.verticalAlignment,r=r.y*o-r.y*ie+r.offsetY),M===1&&this.ze!==null)Y=this.Cb,Y>i&&(Y=i),this.Oj(this.ze,e,0,r+t,i,a,Y,n,d,x,O);else if(this.Qc!==null&&this.Qb!==null)for(ie=0;ie<M;ie++){var ce=this.Qc[ie];ce>i&&(ce=i),r+=t,this.Oj(this.Qb[ie],e,0,r,i,a,ce,n,d,x,O),r+=a+Y}switch(this.flip){case Hr:e.scale(-1,1),e.translate(-i,0);break;case yr:e.scale(1,-1),e.translate(0,-o);break;case Ci:e.scale(-1,-1),e.translate(-i,-o)}}},me.Oj=function(e,t,n,r,i,o,a,d,x,O,M){var Y=0;if(d)x==="left"?Y=0:x==="right"?Y=i-a:x==="center"&&(Y=(i-a)/2),t.fillRect(n+Y,r+.25*o,a,1);else{if(x==="left"?Y=0:x==="right"?Y=i:x==="center"&&(Y=i/2),i=Vg!==null?Vg(this,o):.75*o,t.fillText(e,n+Y,r+i),e=o/20|0,e===0&&(e=1),x==="right"?Y-=a:x==="center"&&(Y-=a/2),O){d=Kg!==null?Kg(this,o):.8*o,x=n+Y,O=r+d,i=n+Y+a,d=r+d;var ie=e;t.beginPath(),t.lineWidth=ie,t.moveTo(x,O),t.lineTo(i,d),t.stroke(),t.Se(),t instanceof Za&&t.ad.classList.add("gojs-td")}M&&(M=r+o-o/2.2|0,e%2!==0&&(M+=.5),r=n+Y,o=M,n=n+Y+a,a=M,Y=e,t.beginPath(),t.lineWidth=Y,t.moveTo(r,o),t.lineTo(n,a),t.stroke(),t.Se(),t instanceof Za&&t.ad.classList.add("gojs-td"))}},me.kk=function(e,t,n){if(!at.prototype.kk.call(this,e,t,n))return!1;if(bo(this,e,this.xc,!0,!1,this.naturalBounds,this.actualBounds),n){if(this.svg.getElementsByTagName("text").length===0)return!0;for(t=this.svg.getElementsByClassName("gojs-td"),n=0;n<t.length;n++)h0(e,t[n],!1)}else t=this.svg,t.innerHTML=this.text,h0(e,t,!0);return!0},me.nk=function(e){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:at.prototype.nk.call(this,e)},me.Dv=function(e,t){if(e.nodeName!=="g")e.setAttributeNS(null,"filter",t);else{e=e.getElementsByTagName("text");for(var n=0;n<e.length;n++)e[n].setAttributeNS(null,"filter",t)}},me.Wl=function(e,t,n,r){var i=this.Gc;this.Ih=e,this.l&=-16777217;var o=this.Ae;ka!==null&&j0!==o&&(j0=ka.font=o),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var a;if(isNaN(this.desiredSize.width)){if(o=this.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),o.length===0)o=8;else if(this.isMultiline){for(var d=a=0,x=!1;!x;){var O=o.indexOf(`
`,d);O===-1&&(O=o.length,x=!0),d=o.substr(d,O-d),this.formatting===vp&&(d=d.trim()),a=Math.max(a,au(d)),d=O+1}o=a}else a=o.indexOf(`
`,0),0<=a&&(o=o.substr(0,a)),o=au(o);o=Math.min(o,e/this.scale)}else o=this.desiredSize.width;if(this.panel!==null&&(o=Math.min(o,this.panel.maxSize.width)),a=M0(this,o),isNaN(this.desiredSize.height)?a=Math.min(a,t/this.scale):a=this.desiredSize.height,x=a,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Yg&&(t=this.Ae,t=this.overflow===Yg?L0(t):0,O=this.spacingAbove+this.spacingBelow,O=Math.max(0,mp(this)+O),x=Math.min(this.maxLines-1,Math.max(Math.floor(x/O+.01)-1,0)),!(x+1>=this.Qb.length))){for(this.l|=16777216,O=this.Qb[x],t=Math.max(1,e-t);au(O)>t&&1<O.length;)O=O.substr(0,O.length-1);O+=yp,t=au(O),this.Qb[x]=O,this.Qb=this.Qb.slice(0,x+1),this.Qc[x]=t,this.Qc=this.Qc.slice(0,x+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,t),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===D0||isNaN(this.desiredSize.width))&&(o=isNaN(e)?this.Cb:Math.min(e,this.Cb)),o=Math.max(n,o),a=Math.max(r,a),ei(this.dc,o,a),this.Ge(0,0,o,a),this.svg!==null&&i!==this.Gc&&(this.Uc=!0)},me.eh=function(e,t,n,r){Qs(this,e,t,n,r)};function gp(e,t,n){e.ze===null?(e.ze=t,e.Cb=n):((e.Qb===null||e.Qc===null)&&(e.Qb=[],e.Qc=[],e.Qb.push(e.ze),e.Qc.push(e.Cb)),e.Qb.push(t),e.Qc.push(n),e.Qb.length>e.maxLines&&(e.l|=16777216))}function jv(e,t,n,r){var i=e.formatting===vp;i&&(t=t.trim());var o=0,a=e.Ae,d=e.spacingAbove+e.spacingBelow;d=Math.max(0,mp(e)+d);var x=e.overflow===Yg?L0(a):0;if(e.Gc>=e.maxLines)r!==null&&r.h(0,d);else if(a=t,e.wrap===Uv){e.Le=1;var O=au(t);if(x===0||O<=n)e.Cb=Math.max(e.Cb,O),gp(e,t,e.Cb),r!==null&&r.h(O,d);else{for(o=od(e,a),a=a.substr(o.length),t=od(e,a),O=au(o+t);0<t.length&&O<=n;)o+=t,a=a.substr(t.length),t=od(e,a),O=o+t,i&&(O=O.trim()),O=au(O);for(i&&(t=t.trim()),o+=t,n=Math.max(1,n-x);au(o)>n&&1<o.length;)o=o.substr(0,o.length-1);e.l|=16777216,o+=yp;var M=au(o);e.Cb=M,gp(e,o,M),r!==null&&r.h(M,d)}}else{for(x=0,a.length===0&&(x=1,gp(e,a,0));0<a.length;){for(t=od(e,a),a=a.substr(t.length);au(t)>n;){var Y=1;for(O=au(t.substr(0,Y)),M=0;O<=n;)Y++,M=O,O=au(t.substr(0,Y));if(Y===1){var ie=O;o=Math.max(o,O)}else ie=M,o=Math.max(o,M);if(Y--,1>Y&&(Y=1),gp(e,t.substr(0,Y),ie),x++,t=t.substr(Y),e.Gc+x>e.maxLines)break}for(M=od(e,a),O=au(t+M);0<M.length&&O<=n;)t+=M,a=a.substr(M.length),M=od(e,a),O=t+M,i&&(O=O.trim()),O=au(O);if(i&&(t=t.trim()),t!==""&&(t[t.length-1]==="\xAD"&&(t=t.substring(0,t.length-1)+"\u2010"),M.length===0?(Y=O,o=Math.max(o,O)):(Y=M=au(t),o=Math.max(o,M)),gp(e,t,Y),x++,e.Gc+x>e.maxLines))break}e.Le=Math.min(e.maxLines,x),e.Cb=Math.max(e.Cb,o),r!==null&&r.h(e.Cb,d*e.Le)}}function od(e,t){if(e.wrap===P0)return t.substr(0,1);for(var n=t.length,r=0,i=P1;r<n&&!i.test(t.charAt(r));)r++;for(e.formatting===F0&&(n=Math.min(n,r+1));r<n&&i.test(t.charAt(r));)r++;return r>=t.length?t:t.substr(0,r)}function au(e){return ka===null?8*e.length:ka.measureText(e).width}function mp(e){if(e.df!==null)return e.df;var t=e.Ae;if(ka===null){var n=16;return e.df=n}return Gv[t]!==void 0&&5e3>B0?n=Gv[t]:(n=1.3*ka.measureText("M").width,Gv[t]=n,B0++),e.df=n}function L0(e){if(ka===null)return 6;if($g[e]!==void 0&&5e3>Wv)var t=$g[e];else t=ka.measureText(yp).width,$g[e]=t,Wv++;return t}function M0(e,t){var n=e.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),r=e.spacingAbove+e.spacingBelow;if(r=Math.max(0,mp(e)+r),n.length===0)return e.Cb=0,e.Gc=1,r;if(!e.isMultiline){var i=n.indexOf(`
`,0);0<=i&&(n=n.substr(0,i))}i=0;for(var o=e.Gc=0,a,d=!1;!d;){if(a=n.indexOf(`
`,o),a===-1&&(a=n.length,d=!0),o<=a){if(o=n.substr(o,a-o),e.wrap!==Uv){e.Le=0;var x=mn.alloc();jv(e,o,t,x),i+=x.height,mn.free(x),e.Gc+=e.Le}else jv(e,o,t,null),i+=r,e.Gc++;e.Gc===e.maxLines&&(d=!0)}o=a+1}return e.Lq=i}Mn.Object.defineProperties(zi.prototype,{font:{get:function(){return this.Ae},set:function(e){var t=this.Ae;t!==e&&(this.Ae=e,this.df=null,this.v(),this.g("font",t,e))}},text:{get:function(){return this.ec},set:function(e){var t=this.ec;e!=null?e=e.toString():e="",t!==e&&(this.ec=e,this.v(),this.g("text",t,e),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(e){var t=this.textAlign;t===e||e!=="start"&&e!=="end"&&e!=="left"&&e!=="right"&&e!=="center"||(Mu(this),this.da.Or=e,this.N(),this.g("textAlign",t,e))}},flip:{get:function(){return this.da!==null?this.da.Xf:Ut},set:function(e){var t=this.flip;t!==e&&(Mu(this),this.da.Xf=e,this.N(),this.g("flip",t,e))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Ol},set:function(e){var t=this.verticalAlignment;t.D(e)||(e=e.J(),Mu(this),this.da.Yr=e,ua(this),this.g("verticalAlignment",t,e))}},naturalBounds:{get:function(){if(!this.dc.w()){var e=mn.alloc();jv(this,this.ec,999999,e);var t=e.width;mn.free(e),e=M0(this,t);var n=this.desiredSize;isNaN(n.width)||(t=n.width),isNaN(n.height)||(e=n.height),ei(this.dc,t,e)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(e){var t=(this.l&2097152)!==0;t!==e&&(this.l^=2097152,this.v(),this.g("isMultiline",t,e))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(e){var t=(this.l&4194304)!==0;t!==e&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",t,e))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(e){var t=(this.l&8388608)!==0;t!==e&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",t,e))}},wrap:{get:function(){return this.da!==null?this.da.$r:Hv},set:function(e){var t=this.wrap;t!==e&&(Mu(this),this.da.$r=e,this.v(),this.g("wrap",t,e))}},overflow:{get:function(){return this.da!==null?this.da.$q:zv},set:function(e){var t=this.overflow;t!==e&&(Mu(this),this.da.$q=e,this.v(),this.g("overflow",t,e))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(e){var t=this.xc;t!==e&&(e!==null&&mf(e,"TextBlock.stroke"),e instanceof di&&e.freeze(),this.xc=e,this.N(),this.g("stroke",t,e))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return mp(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.g("editable",t,e))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(e){var t=this.textEditor;t!==e&&(Mu(this),this.da.Qr=e,this.g("textEditor",t,e))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(e){var t=this.errorFunction;t!==e&&(Mu(this),this.da.Hd=e,this.g("errorFunction",t,e))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(e){var t=this.interval;if(e=Math.round(e),t!==e&&e!==0&&isFinite(e)){this.fa===null&&(this.fa=new Xu),this.fa.Tk=e,this.v();var n=this.panel;n!==null&&(n.graduatedIntervals=null),this.g("interval",t,e)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(e){var t=this.graduatedStart;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Xu),this.fa.u=e,this.v(),this.g("graduatedStart",t,e))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(e){var t=this.graduatedEnd;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Xu),this.fa.j=e,this.v(),this.g("graduatedEnd",t,e))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(e){var t=this.graduatedFunction;t!==e&&(this.fa===null&&(this.fa=new Xu),this.fa.F=e,this.v(),this.g("graduatedFunction",t,e))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(e){var t=this.graduatedSkip;t!==e&&(this.fa===null&&(this.fa=new Xu),this.fa.o=e,this.v(),this.g("graduatedSkip",t,e))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(e){var t=this.textValidation;t!==e&&(Mu(this),this.da.vj=e,this.g("textValidation",t,e))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(e){var t=this.textEdited;t!==e&&(Mu(this),this.da.Pr=e,this.g("textEdited",t,e))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(e){var t=this.spacingAbove;t!==e&&(Mu(this),this.da.Dr=e,this.v(),this.g("spacingAbove",t,e))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(e){var t=this.spacingBelow;t!==e&&(Mu(this),this.da.Er=e,this.v(),this.g("spacingBelow",t,e))}},formatting:{get:function(){return this.da!==null?this.da.gq:vp},set:function(e){var t=this.formatting;t!==e&&(Mu(this),this.da.gq=e,this.v(),this.g("formatting",t,e))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(e){var t=this.maxLines;t!==e&&(e=Math.floor(e),0>=e&&An(e,"> 0",zi,"maxLines"),Mu(this),this.da.Jq=e,this.v(),this.g("maxLines",t,e))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(e){var t=this.Gm;t!==e&&(this.Gm=e,this.g("choices",t,e))}}});var Vg=null,Kg=null,Uv=new Dt(zi,"None",0),D0=new Dt(zi,"WrapFit",1),Hv=new Dt(zi,"WrapDesiredSize",2),P0=new Dt(zi,"WrapBreakAll",3),zv=new Dt(zi,"OverflowClip",0),Yg=new Dt(zi,"OverflowEllipsis",1),vp=new Dt(zi,"FormatTrim",0),F0=new Dt(zi,"FormatNone",0),P1=/[ \u200b\u00ad]/,Gv=new oi,B0=0,$g=new oi,Wv=0,yp="...",j0="",ka=null,Xg=!1;zi.className="TextBlock";function Vv(){this.nc=!1,this.Hd=null,this.Xf=Ut,this.gq=vp,this.Jq=1/0,this.$q=zv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Ol,this.$r=Hv}Vv.prototype.copy=function(){var e=new Vv;return e.Hd=this.Hd,e.Xf=this.Xf,e.gq=this.gq,e.Jq=this.Jq,e.$q=this.$q,e.Dr=this.Dr,e.Er=this.Er,e.Or=this.Or,e.Pr=this.Pr,e.Qr=this.Qr,e.vj=this.vj,e.Yr=this.Yr,e.$r=this.$r,e},zi.getEllipsis=function(){return yp},zi.setEllipsis=function(e){yp=e,$g=new oi,Wv=0},zi.getBaseline=function(){return Vg},zi.setBaseline=function(e){Vg=e},zi.getUnderline=function(){return Kg},zi.setUnderline=function(e){Kg=e},zi.isValidFont=function(e){if(Xg||(ka=vo?new Ul(null).context:null,Xg=!0),ka===null)return!0;var t=ka.font;if(e===t||e==="10px sans-serif")return!0;ka.font="10px sans-serif",ka.font=e;var n=ka.font;if(n!=="10px sans-serif")return ka.font=t,!0;ka.font="19px serif";var r=ka.font;return ka.font=e,n=ka.font,ka.font=t,n!==r},zi.FormatNone=F0,zi.FormatTrim=vp,zi.None=Uv,zi.OverflowClip=zv,zi.OverflowEllipsis=Yg,zi.WrapBreakAll=P0,zi.WrapDesiredSize=Hv,zi.WrapFit=D0;function Xu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Xu.prototype.copy=function(){var e=new Xu;return e.Tk=this.Tk,e.u=this.u,e.j=this.j,e.F=this.F,e.o=this.o,e},Xu.className="GradElementSettings";function Na(e,t){at.call(this),this.Eg=null,this.qo="",this.Xg=js,this.Nk=$t,this.Zg=this.Hd=null,this.Mk=Tr,this.Xf=Ut,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof e=="string"?this.source=e:e&&Object.assign(this,e),t&&Object.assign(this,t)}var sd;Kn(Na,at),Na.prototype.cloneProtected=function(e){at.prototype.cloneProtected.call(this,e),e.qo=this.qo,e.element=this.Eg,e.Xg=this.Xg.J(),e.Nk=this.Nk,e.Xf=this.Xf,e.Hd=this.Hd,e.Zg=this.Zg,e.Mk=this.Mk.J(),e.en=this.en,e.rl=this.rl},Na.prototype.qb=function(e){e===Ut||e===Nn||e===kr?this.imageStretch=e:at.prototype.qb.call(this,e)},Na.prototype.toString=function(){return"Picture("+this.source+")#"+rr(this)};function ad(e){e===void 0&&(e=""),e!==""?sd[e]&&(delete sd[e],Zg--):(sd=new oi,Zg=0)}function U0(e,t){t.qy||(t.Fq=function(n){t.sq=!0,t.ln=!1;var r=t.Bg.copy();if(r!=null){for(r=r.iterator;r.next();){var i=r.value;i.N();var o=t.getAttribute("src")||"",a=i.Og.I(o);if(a!==null)for(var d=a.length,x=0;x<d;x++)o=a[x],i.Xn.add(o),o.Uc=!0,i.$b(),t.hn&&(t.eu===void 0&&(t.eu=n),o.Zg!==null&&o.Zg(o,n))}t.Bg.clear()}e.desiredSize.w()||(Vo(e,!1),e.v())},t.Yp=function(n){t.ln=n;var r=t.Bg.copy();if(r!=null){for(r=r.iterator;r.next();){var i=r.value,o=t.getAttribute("src")||"",a=i.Og.I(o);if(a!==null){i=a.length,o=Bn();for(var d=0;d<i;d++)o.push(a[d]);if(t.hn)for(d=0;d<i;d++)a=o[d],a.Hd!==null&&a.Hd(a,n);wn(o)}}t.Bg.clear()}},t.addEventListener("load",t.Fq),t.addEventListener("error",t.Yp),t.qy=!0)}Na.prototype.hA=function(){if(this.source!==""){ad(this.source);var e=this.source;this.source="",this.source=e}},Na.prototype.redraw=function(){this.N(),this.Uc=!0},Na.prototype.hh=function(e,t){var n=this.Eg;if(n!==null){var r=n.getAttribute("src");if(!(n instanceof HTMLImageElement&&(r===null||r==="")||n.ln instanceof Event&&e instanceof Hh)){var i=e instanceof Za;r=this.naturalBounds;var o=0,a=0,d=this.qn,x=d?+n.width:n.naturalWidth;if(d=d?+n.height:n.naturalHeight,x===void 0&&n.videoWidth&&(x=n.videoWidth),d===void 0&&n.videoHeight&&(d=n.videoHeight),x=x||r.width,d=d||r.height,x!==0&&d!==0){var O=x,M=d;this.sourceRect.w()&&(o=this.Xg.x,a=this.Xg.y,x=this.Xg.width,d=this.Xg.height);var Y=x,ie=d,ce=this.Nk,ge=this.Mk;switch(ce){case Ut:if(this.sourceRect.w())break;Y>=r.width&&(o=o+ge.offsetX+(Y*ge.x-r.width*ge.x)),ie>=r.height&&(a=a+ge.offsetY+(ie*ge.y-r.height*ge.y)),x=Math.min(r.width,Y),d=Math.min(r.height,ie);break;case $t:Y=r.width,ie=r.height;break;case Nn:case kr:ce===Nn?(ce=Math.min(r.height/ie,r.width/Y),Y*=ce,ie*=ce):ce===kr&&(ce=Math.max(r.height/ie,r.width/Y),Y*=ce,ie*=ce,Y>=r.width&&(o=(o+ge.offsetX+(Y*ge.x-r.width*ge.x)/Y)*x),ie>=r.height&&(a=(a+ge.offsetY+(ie*ge.y-r.height*ge.y)/ie)*d),x*=1/(Y/r.width),d*=1/(ie/r.height),Y=r.width,ie=r.height)}ce=this.Df()*t.scale;var Te=Y*ce*ie*ce,Ve=x*d/Te,He=n.__goCache;ce=null;var Xe=F1;if(!i){if(n.sq&&He!==void 0&&4<Te&&Ve>Xe*Xe)for(He.gi===null&&(z0(He,4,O,M,n),z0(He,16,O,M,n)),i=He.gi,O=i.length,M=0;M<O&&i[M].ratio*i[M].ratio<Ve;M++)ce=i[M];if(!t.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{i=new Ul(null).context;try{i.drawImage(this.Eg,0,0)}catch(Ze){this.en=!1}try{i.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Ze){this.vl=!0}}if(this.vl)return}}switch(i=Y<r.width?ge.offsetX+(r.width*ge.x-Y*ge.x):0,ge=ie<r.height?ge.offsetY+(r.height*ge.y-ie*ge.y):0,this.flip){case Hr:e.translate(Math.min(r.width,Y),0),e.scale(-1,1);break;case yr:e.translate(0,Math.min(r.height,ie)),e.scale(1,-1);break;case Ci:e.translate(Math.min(r.width,Y),Math.min(r.height,ie)),e.scale(-1,-1)}if(e.yc(),t.Gf("pictureRatioOptimization")&&!t.$i&&He!==void 0&&ce!==null&&ce.ratio!==1){e.save(),t=ce.ratio;try{e.drawImage(ce.source,o/t,a/t,Math.min(ce.source.width,x/t),Math.min(ce.source.height,d/t),i,ge,Math.min(r.width,Y),Math.min(r.height,ie)),e instanceof Za&&(this.bt=[o/t,a/t,Math.min(ce.source.width,x/t),Math.min(ce.source.height,d/t),i,ge,Math.min(r.width,Y),Math.min(r.height,ie)])}catch(Ze){this.en=!1}e.restore()}else try{e.drawImage(n,o,a,x,d,i,ge,Math.min(r.width,Y),Math.min(r.height,ie)),e instanceof Za&&(this.bt=[o,a,x,d,i,ge,Math.min(r.width,Y),Math.min(r.height,ie)])}catch(Ze){this.en=!1}switch(this.flip){case Hr:e.scale(-1,1),e.translate(-Math.min(r.width,Y),0);break;case yr:e.scale(1,-1),e.translate(0,-Math.min(r.height,ie));break;case Ci:e.scale(-1,-1),e.translate(-Math.min(r.width,Y),-Math.min(r.height,ie))}}}}},Na.prototype.Wl=function(e,t,n,r){var i=this.desiredSize,o=Aa(this,!0),a=this.Eg,d=this.qn,x=0,O=0;(d||!this.al&&a&&a.complete)&&(this.al=!0),a===null?(isFinite(i.width)||(e=0),isFinite(i.height)||(t=0)):(x=d?+a.width:a.naturalWidth,O=d?+a.height:a.naturalHeight),isFinite(i.width)||o===$t||o===Ln?(isFinite(e)||(this.sourceRect.w()?e=this.sourceRect.width:a!==null&&(e=x)),n=0):a!==null&&this.al!==!1&&(e=this.sourceRect.w()?this.sourceRect.width:x),isFinite(i.height)||o===$t||o===Yn?(isFinite(t)||(this.sourceRect.w()?t=this.sourceRect.height:a!==null&&(t=O)),r=0):a!==null&&this.al!==!1&&(t=this.sourceRect.w()?this.sourceRect.height:O),isFinite(i.width)&&(e=i.width),isFinite(i.height)&&(t=i.height),i=this.maxSize,o=this.minSize,n=Math.max(n||0,o.width),r=Math.max(r||0,o.height),e=Math.min(i.width,e),t=Math.min(i.height,t),e=Math.max(n,e),t=Math.max(r,t),a===null||a.complete||(isFinite(e)||(e=0),isFinite(t)||(t=0)),ei(this.dc,e,t),this.Ge(0,0,e,t)},Na.prototype.eh=function(e,t,n,r){Qs(this,e,t,n,r)},Mn.Object.defineProperties(Na.prototype,{element:{get:function(){return this.Eg},set:function(e){var t=this.Eg;if(this.Uc=!0,t!==e){this.qn=e instanceof HTMLCanvasElement;var n=e instanceof HTMLImageElement;e===null||n||e instanceof HTMLVideoElement||this.qn||ft("Picture.element must be an instance of Image, Canvas, or Video, not: "+e);var r=this.diagram;r!==null&&Jd(r,this),this.Eg=e,e!==null&&n&&e.Bg===void 0&&(e.Bg=new Kt),r!==null&&n&&eh(r,this),e!==null&&(this.qn||e.complete===!0?(e.hn&&(e.ln instanceof Event&&this.Hd!==null?this.Hd(this,e.ln):e.sq===!0&&!e.ln&&this.Zg!==null&&e.eu&&this.Zg(this,e.eu)),e.sq=!0,this.desiredSize.w()||(Vo(this,!1),this.v())):n&&U0(this,e)),this.g("element",t,e),this.N()}}},source:{get:function(){return this.qo},set:function(e){var t=this.qo;if(t!==e){this.Uc=!0,this.qo=e;var n=sd;if(vo){var r=null;if(n[e]!==void 0)r=n[e];else if(e!==""){30<Zg&&(ad(),n=sd),r=On("img"),r.hn=!0,U0(this,r);var i=this.rl;i!==null&&(r.crossOrigin=i(this)),r.src=e,n[e]=r,Zg++}this.element=r,r!==null&&r.__goCache===void 0&&(r.__goCache=new H0),this.v(),this.N()}this.g("source",t,e)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(e){if(this.rl!==e&&(this.rl=e,this.element!==null)){var t=this.element.getAttribute("src");e===null&&typeof t=="string"?this.element.crossOrigin=null:e!==null&&(this.element.crossOrigin=e(this)),this.element.src=t}}},sourceRect:{get:function(){return this.Xg},set:function(e){var t=this.Xg;t.D(e)||(this.Xg=e=e.J(),this.N(),this.g("sourceRect",t,e))}},imageStretch:{get:function(){return this.Nk},set:function(e){var t=this.Nk;t!==e&&(this.Nk=e,this.N(),this.g("imageStretch",t,e))}},flip:{get:function(){return this.Xf},set:function(e){var t=this.Xf;t!==e&&(this.Xf=e,this.N(),this.g("flip",t,e))}},imageAlignment:{get:function(){return this.Mk},set:function(e){var t=this.Mk;t.D(e)||(this.Mk=e=e.J(),this.N(),this.g("imageAlignment",t,e))}},errorFunction:{get:function(){return this.Hd},set:function(e){var t=this.Hd;t!==e&&(this.Hd=e,this.g("errorFunction",t,e))}},successFunction:{get:function(){return this.Zg},set:function(e){var t=this.Zg;t!==e&&(this.Zg=e,this.g("successFunction",t,e))}},naturalBounds:{get:function(){return this.dc}}}),Na.prototype.redraw=Na.prototype.redraw,Na.prototype.reloadSource=Na.prototype.hA;var Zg=0,F1=4;Na.className="Picture",sd=new oi,Na.clearCache=ad;function H0(){this.gi=null}function z0(e,t,n,r,i){e.gi===null&&(e.gi=[]);var o=new Ul(null),a=o.context,d=1/t;o.width=n/t,o.height=r/t,o.width!==0&&o.height!==0&&(t=new G0(o.Oa,t),n=1,0<e.gi.length&&(n=e.gi[e.gi.length-1],i=n.source,n=n.ratio),a.setTransform(d*n,0,0,d*n,0,0),a.yc(),a.drawImage(i,0,0),e.gi.push(t))}H0.className="PictureCacheArray";function G0(e,t){this.source=e,this.ratio=t}G0.className="PictureCacheInstance";function ld(){this.os=new qt,this.mc=null}ld.prototype.reset=function(e){e!==null?(e.ka(),this.os=e,e.figures.clear()):this.os=new qt,this.mc=null};function ud(e,t,n,r,i,o){e.mc=new To,e.mc.startX=t,e.mc.startY=n,e.mc.isFilled=r,e.mc.isEvenOdd=o||!1,e.os.figures.add(e.mc),i!==void 0&&(e.mc.isShadowed=i)}function B1(e){var t=e.mc.segments.length;0<t&&e.mc.segments.M(t-1).close()}ld.prototype.moveTo=function(e,t,n){n===void 0&&(n=!1);var r=new Mr(Yi);r.endX=e,r.endY=t,n&&r.close(),this.mc.segments.add(r)},ld.prototype.lineTo=function(e,t,n){n===void 0&&(n=!1);var r=new Mr(xi);r.endX=e,r.endY=t,n&&r.close(),this.mc.segments.add(r)};function Rc(e,t,n,r,i,o,a){var d;d===void 0&&(d=!1);var x=new Mr(Ao);x.point1X=t,x.point1Y=n,x.point2X=r,x.point2Y=i,x.endX=o,x.endY=a,d&&x.close(),e.mc.segments.add(x)}function Jg(e,t,n,r,i){var o;o===void 0&&(o=!1);var a=new Mr(Hs);a.point1X=t,a.point1Y=n,a.endX=r,a.endY=i,o&&a.close(),e.mc.segments.add(a)}ld.prototype.arcTo=function(e,t,n,r,i,o,a){o===void 0&&(o=0),a===void 0&&(a=!1);var d=new Mr(mo);d.startAngle=e,d.sweepAngle=t,d.centerX=n,d.centerY=r,d.radiusX=i,d.radiusY=o!==0?o:i,a&&d.close(),this.mc.segments.add(d)};function j1(e,t,n,r,i,o,a,d){var x;x===void 0&&(x=!1),t=new Mr($s,a,d,t,n,r,i,o),x&&t.close(),e.mc.segments.add(t)}function W0(e){var t=Qg;return t!==null?(Qg=null,t.reset(e),t):(t=new ld,t.reset(e),t)}var Qg=null;ld.className="StreamGeometryContext";function Ks(e,t){var n=e.toLowerCase(),r=ht.Ze;r[e]=t,r[n]=e}Ks("Rectangle",function(e,t,n){e="r"+t+","+n;var r=ht.Mf[e];return r!==void 0||(r=new qt(qt.u),r.endX=t,r.endY=n,ht.Nf<ht.vm&&(ht.Mf[e]=r,ht.Nf++)),r}),Ks("Square",function(e,t,n){e="s"+t+","+n;var r=ht.Mf[e];return r!==void 0||(r=new qt(qt.u),r.endX=t,r.endY=n,r.defaultStretch=Nn,ht.Nf<ht.vm&&(ht.Mf[e]=r,ht.Nf++)),r}),Ks("RoundedRectangle",function(e,t,n){e=e?e.parameter1:NaN,(isNaN(e)||0>e)&&(e=5),e=Math.min(e,t/3),e=Math.min(e,n/3);var r="rr"+t+","+n+","+e,i=ht.Mf[r];if(i!==void 0)return i;var o=e*ht.wg;return i=new qt().add(new To(e,0,!0).add(new Mr(xi,t-e,0)).add(new Mr(Ao,t,e,t-o,0,t,o)).add(new Mr(xi,t,n-e)).add(new Mr(Ao,t-e,n,t,n-o,t-o,n)).add(new Mr(xi,e,n)).add(new Mr(Ao,0,n-e,o,n,0,n-o)).add(new Mr(xi,0,e)).add(new Mr(Ao,e,0,0,o,o,0).close())),1<o&&(i.spot1=new an(0,0,o,o),i.spot2=new an(1,1,-o,-o)),ht.Nf<ht.vm&&(ht.Mf[r]=i,ht.Nf++),i}),Ks("Border","RoundedRectangle"),Ks("Ellipse",function(e,t,n){e="e"+t+","+n;var r=ht.Mf[e];return r!==void 0||(r=new qt(qt.F),r.endX=t,r.endY=n,r.spot1=no,r.spot2=ci,ht.Nf<ht.vm&&(ht.Mf[e]=r,ht.Nf++)),r}),Ks("Circle",function(e,t,n){e="c"+t+","+n;var r=ht.Mf[e];return r!==void 0||(r=new qt(qt.F),r.endX=t,r.endY=n,r.spot1=no,r.spot2=ci,r.defaultStretch=Nn,ht.Nf<ht.vm&&(ht.Mf[e]=r,ht.Nf++)),r}),Ks("TriangleRight",function(e,t,n){return new qt().add(new To(0,0).add(new Mr(xi,t,.5*n)).add(new Mr(xi,0,n).close())).pm(0,.25,.5,.75)}),Ks("TriangleDown",function(e,t,n){return new qt().add(new To(0,0).add(new Mr(xi,t,0)).add(new Mr(xi,.5*t,n).close())).pm(.25,0,.75,.5)}),Ks("TriangleLeft",function(e,t,n){return new qt().add(new To(t,n).add(new Mr(xi,0,.5*n)).add(new Mr(xi,t,0).close())).pm(.5,.25,1,.75)}),Ks("TriangleUp",function(e,t,n){return new qt().add(new To(t,n).add(new Mr(xi,0,n)).add(new Mr(xi,.5*t,0).close())).pm(.25,.5,.75,1)}),Ks("Triangle","TriangleUp"),Ks("Diamond",function(e,t,n){return new qt().add(new To(.5*t,0).add(new Mr(xi,0,.5*n)).add(new Mr(xi,.5*t,n)).add(new Mr(xi,t,.5*n).close())).pm(.25,.25,.75,.75)}),Ks("LineH",function(e,t,n){return e=new qt(qt.j),e.startX=0,e.startY=n/2,e.endX=t,e.endY=n/2,e}),Ks("LineV",function(e,t,n){return e=new qt(qt.j),e.startX=t/2,e.startY=0,e.endX=t/2,e.endY=n,e}),Ks("None","Rectangle"),Ks("BarH","Rectangle"),Ks("BarV","Rectangle"),Ks("MinusLine","LineH"),Ks("PlusLine",function(e,t,n){return new qt().add(new To(0,n/2,!1).add(new Mr(xi,t,n/2)).add(new Mr(Yi,t/2,0)).add(new Mr(xi,t/2,n)))}),Ks("XLine",function(e,t,n){return new qt().add(new To(0,n,!1).add(new Mr(xi,t,0)).add(new Mr(Yi,0,0)).add(new Mr(xi,t,n)))}),Ks("LineRight",function(e,t,n){return new qt().add(new To(.25*t,0,!1).add(new Mr(xi,.75*t,.5*n)).add(new Mr(xi,.25*t,n)))}),Ks("LineDown",function(e,t,n){return new qt().add(new To(0,.25*n,!1).add(new Mr(xi,.5*t,.75*n)).add(new Mr(xi,t,.25*n)))}),Ks("LineLeft",function(e,t,n){return new qt().add(new To(.75*t,0,!1).add(new Mr(xi,.25*t,.5*n)).add(new Mr(xi,.75*t,n)))}),Ks("LineUp",function(e,t,n){return new qt().add(new To(0,.75*n,!1).add(new Mr(xi,.5*t,.25*n)).add(new Mr(xi,t,.75*n)))}),ht.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Kv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=hi,this.ir=null,this.jr="",this.lr=Bo,this.Gq="",this.Hq=Gr,this.Pq=sn,this.Kq=bn,this.Up=null,this.Cq=127,this.zr=_n,this.yr="gray",this.Vg=4}Kv.prototype.copy=function(){var e=new Kv;return e.zq=this.zq,e.Kp=this.Kp,e.tr=this.tr,e.vr=this.vr,e.ur=this.ur,e.oq=this.oq,e.fr=this.fr,e.hr=this.hr,e.gr=this.gr.J(),e.ir=this.ir,e.jr=this.jr,e.lr=this.lr.J(),e.Gq=this.Gq,e.Hq=this.Hq.J(),e.Pq=this.Pq.J(),e.Kq=this.Kq.J(),e.Up=this.Up,e.Cq=this.Cq,e.zr=this.zr.J(),e.yr=this.yr,e.Vg=this.Vg,e};function Fn(e,t){e===void 0||e instanceof Zo||typeof e=="string"?Xt.call(this,e):(Xt.call(this),e&&(t=e)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new Ie(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new xt,this.Rh=null,this.ag=NaN,t&&Object.assign(this,t)}Kn(Fn,Xt),Fn.prototype.cloneProtected=function(e){Xt.prototype.cloneProtected.call(this,e),e.G=this.G&-4097|49152,e.Tf=this.Tf,this.P!==null&&(e.P=this.P.nc?this.P:this.P.copy()),e.Jg=this.Jg,e.Qf=null,e.ec=this.ec,e.ke.assign(this.ke),e.Ao=this.Ao},me=Fn.prototype,me.Af=function(e){Xt.prototype.Af.call(this,e),e.oh(),e.Ug=null,e.nf=null,e.Rh=null},me.toString=function(){var e=Ht(this.constructor)+"#"+rr(this);return this.data!==null&&(e+="("+lr(this.data)+")"),e};function Ia(e){e.P===null?e.P=new Kv:e.P.nc&&(e.P=e.P.copy())}me.th=function(){Xt.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},me.gk=function(e,t,n,r,i,o,a){var d=this.diagram;d!==null&&(e===uo&&t==="elements"?i instanceof Xt?zh(i,function(x){by(d.partManager,x),Mh(d,x)}):eh(d,i):e===po&&t==="elements"&&(i instanceof Xt?zh(i,function(x){Sy(d.partManager,x,d)}):Jd(d,i)),d.cb(e,t,n,r,i,o,a))},me.La=function(e){if(Xt.prototype.La.call(this,e),this.data!==null){for(var t=this.O.s,n=t.length,r=0;r<n;r++){var i=t[r];i instanceof Xt&&zh(i,function(o){o.data!==null&&o.La()})}for(t=this.adornments;t.next();)t.value.La(e)}},Fn.prototype.updateRelationshipsFromData=function(){var e;this.data!==null&&((e=this.diagram)===null||e===void 0||e.partManager.updateRelationshipsFromData(this))},Fn.prototype.Pj=function(e){var t=this.Qf;return t===null?null:t.I(e)},Fn.prototype.bh=function(e,t){if(t!==null){var n=null,r=this.Qf;if(r!==null&&(n=r.I(e)),n!==t){if(n!==null){var i=n.diagram;i!==null&&i.remove(n)}r===null&&(this.Qf=r=new Et),t.Tf!==e&&(t.category=e),r.add(e,t),e=this.diagram,e!==null&&(e.add(t),e=t.adornedObject,e!==null&&(e=e.ih(),e!==null&&(t.data=e.data)))}}},Fn.prototype.Jf=function(e){var t=this.Qf;if(t!==null){var n=t.I(e);if(n!==null){var r=n.diagram;r!==null&&r.remove(n)}t.remove(e),t.count===0&&(this.Qf=null)}},Fn.prototype.Ej=function(){var e=this.Qf;if(e!==null){var t=Bn();for(e=e.iterator;e.next();)t.push(e.key);e=t.length;for(var n=0;n<e;n++)this.Jf(t[n]);wn(t)}},Fn.prototype.updateAdornments=function(){var e=this.diagram;if(e!==null){for(var t=this.adornments;t.next();){var n=t.value;n.v(),n.placeholder&&n.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(t=this.selectionObject,t!==null&&this.actualBounds.w()&&this.isVisible()&&t.Ed()&&t.actualBounds.w())){if(n=this.Pj("Selection"),n===null){if(n=this.selectionAdornmentTemplate,n===null&&(n=this.ph()?e.linkSelectionAdornmentTemplate:this instanceof or?e.groupSelectionAdornmentTemplate:e.nodeSelectionAdornmentTemplate),!(n instanceof Xr))break e;Hl(n),n=n.copy(),n!==null&&(this.ph()&&this.selectionObject===this.path&&(n.type=Xt.Link),n.adornedObject=t)}if(n!==null){n.type===Xt.Link&&n.v(),this.bh("Selection",n);break e}}this.Jf("Selection")}for(U1(this,e),t=this.adornments;t.next();)t.value.La()}},Fn.prototype.Wb=function(){var e=this.diagram;e!==null&&(e.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Yv(e){e.G&16384&&(e.updateAdornments(),e.G&=-16385)}function U1(e,t){t.toolManager.mouseDownTools.each(function(n){n.isEnabled&&n.updateAdornments(e)}),t.toolManager.updateAdornments(e)}function qg(e){if(ih(e)===!1){Xv(e,!0),e.Uk();var t=e.diagram;t!==null&&(t.De.add(e),t.$b())}}function V0(e){if(e.G|=2097152,ih(e)!==!1){var t=e.position,n=e.location;n.w()&&t.w()||$0(e,t,n),n=e.Ib;var r=xt.alloc().assign(n);n.ka(),n.x=t.x,n.y=t.y,n.freeze(),e.Xl(r,n),xt.free(r),Xv(e,!1)}}Fn.prototype.Ge=function(e,t,n,r){var i=this.uc;i.h(e,t,n,r),this.Lb===null&&(this.Lb=new Zn);var o=this.Lb;o.reset(),this.no(o,e,t,n,r),this.Lb=o,o.ws()||o.pp(i)},Fn.prototype.no=function(e,t,n,r,i){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=Tr;this.locationSpot.sb()&&(o=this.locationSpot);var a=Ie.alloc();if(this.locationObject!==this)for(t=this.locationObject,n=t.naturalBounds,a.yi(n.x,n.y,n.width,n.height,o),t.Lb!==null&&t.Lb.Ga(a),a.offset(-t.measuredBounds.x,-t.measuredBounds.y),o=t.panel;o!==null&&o!==this;)o.Lb!==null&&o.Lb.Ga(a),a.offset(-o.measuredBounds.x,-o.measuredBounds.y),o=o.panel;else a.yi(t,n,r,i,o);e.rotate(this.Kb,a.x,a.y),Ie.free(a)}},Fn.prototype.move=function(e,t){t===!0?this.location=e:this.position=e},Fn.prototype.moveTo=function(e,t,n){e=Ie.allocAt(e,t),this.move(e,n),Ie.free(e)},Fn.prototype.isVisible=function(){if(!this.visible)return!1;var e=this.layer;if(e!==null){if(!e.visible)return!1;if(e=e.diagram,e!==null&&e.animationManager.fv(this))return!0}return e=this.containingGroup,!!(e===null||e.isSubGraphExpanded&&e.isVisible())},Fn.prototype.Zb=function(e){var t=this.diagram;e?(this.C(4),this.Wb(),t!==null&&t.De.add(this)):(this.C(8),this.Ej()),this.oh(),t!==null&&(t.Ya(),t.N())},Fn.prototype.fb=function(e){if(this.name===e)return this;var t=this.Rh;if(t===null&&(this.Rh=t=new Et),t.I(e)!==null)return t.I(e);var n=Xt.prototype.fb.call(this,e);return n!==null?(t.set(e,n),n):(t.set(e,null),null)};function Oc(e,t,n,r){r===void 0&&(r=new Ie),n=n.Mc()?Tr:n;var i=t.naturalBounds;if(r.h(i.width*n.x+n.offsetX,i.height*n.y+n.offsetY),t===null||t===e)return r;for(t.transform.Ga(r),t=t.panel;t!==null&&t!==e;)t.transform.Ga(r),t=t.panel;return e.Lb!==null&&e.Lb.Ga(r),r.offset(-e.uc.x,-e.uc.y),r}Fn.prototype.mi=function(e){return e===void 0&&(e=new xt),e.assign(this.actualBounds)},Fn.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function K0(e){var t=Ie.alloc(),n=e.locationObject,r=n.naturalBounds,i=n instanceof hr?n.strokeWidth:0;if(t.yi(0,0,r.width+i,r.height+i,e.locationSpot),n!==e)for(t.offset(-i/2,-i/2),n.transform.Ga(t),n=n.panel;n!==null&&n!==e;)n.transform.Ga(t),n=n.panel;return e.Lb!==null&&e.Lb.Ga(t),t.offset(-e.uc.x,-e.uc.y),t}function Vh(e,t){var n=e.py;isNaN(e.ag)&&(e.ag=E0(e));var r=e.ag,i=2*r;if(!e.isShadowed)return n.h(t.x-1-r,t.y-1-r,t.width+2+i,t.height+2+i),n;r=t.x,i=t.y;var o=t.width;t=t.height;var a=e.shadowBlur;return e=e.shadowOffset,o+=a,t+=a,r-=a/2,i-=a/2,0<e.x?o+=e.x:(r+=e.x,o-=e.x),0<e.y?t+=e.y:(i+=e.y,t-=e.y),n.h(r-1,i-1,o+2,t+2),n}Fn.prototype.arrange=function(){if(ca(this)===!1)V0(this);else{Vu(this,!1);var e=this.Ib,t=xt.alloc();t.assign(e);var n=oh(this);this.eh(0,0,this.uc.width,this.uc.height);var r=this.position;$0(this,r,this.location),e.ka(),e.x=r.x,e.y=r.y,e.freeze(),this.Xl(t,e),t.D(e)?this.Fd(n):!this.Zc()||ht.B(t.width,e.width)&&ht.B(t.height,e.height)||0<=this.vw&&this.C(16),xt.free(t),Xv(this,!1)}},me=Fn.prototype,me.Xl=function(e,t){var n=this.diagram;if(n!==null){var r=!1;if(n.Zi===!1&&e.w()){var i=xt.alloc();i.assign(n.documentBounds),i.Fv(n.padding),e.x>i.x&&e.y>i.y&&e.right<i.right&&e.bottom<i.bottom&&t.x>i.x&&t.y>i.y&&t.right<i.right&&t.bottom<i.bottom&&(r=!0),xt.free(i)}!(this.G&65536)&&e.D(t)||J0(this,r,n),n.N(),!e.w()&&!t.w()||ii(e,t)||(this instanceof hn&&!n.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},me.zv=function(e,t,n){if(this.ph()||!e.w())return!1;var r=this.diagram;return r!==null&&Y0(this,r,e,t,n),this.pa=e,this.G&=-2097153,!this.ke.w()||r!==null&&!r.animationManager.isTicking&&r.undoManager.isUndoingRedoing||(r=this.ke,this.ke=new Ie(r.x+(e.x-t),r.y+(e.y-n)),this.g("location",r,this.ke.copy())),ih(this)===!1&&ca(this)===!1&&(qg(this),V0(this)),!0};function Y0(e,t,n,r,i){t===null||e instanceof Xr||(t=t.animationManager,t.zb&&Pl(t,e,new Ie(r,i),n))}me.mm=function(e,t,n){var r=this.ke,i=this.pa;if(n){if(r.x===e&&r.y===t)return;ih(this)||ca(this)?i.h(NaN,NaN):i.h(i.x+e-r.x,i.y+t-r.y),r.h(e,t)}else{if(i.x===e&&i.y===t)return;r.h(r.x+e-i.x,r.y+t-i.y),i.h(e,t)}qg(this)},me.Av=function(){this.G&=-2097153,qg(this)};function $0(e,t,n){var r=K0(e),i=e.diagram,o=n.w(),a=t.w();o&&a?e.G&2097152?X0(e,t,n,i,r):Z0(e,t,n,i,r):o?X0(e,t,n,i,r):a&&Z0(e,t,n,i,r),e.G|=2097152,Ie.free(r),e.Uk()}function X0(e,t,n,r,i){var o=t.x,a=t.y;t.h(n.x-i.x,n.y-i.y),r!==null&&(n=r.animationManager,(r=n.defaultAnimation.isAnimating)||!n.zb||e instanceof Xr||Pl(n,e,new Ie(o,a),t),r||t.x===o&&t.y===a||e.g("position",new Ie(o,a),t.copy()))}function Z0(e,t,n,r,i){var o=n.copy();n.h(t.x+i.x,t.y+i.y),n.D(o)||r===null||e.g("location",o,n.copy())}function J0(e,t,n){Zv(e,!1),e instanceof hn&&Tc(n,e),e.layer.isTemporary||t||n.Ya(),t=e.Ib;var r=n.viewportBounds;r.w()?oh(e)?(kt(t,r)||e.Fd(!1),e.updateAdornments()):e.isVisible()&&t.Yc(r)?(e.Fd(!0),e.updateAdornments()):e.Wb():n.vd=!0}me.si=function(){return!0},me.Zc=function(){return!0},me.ph=function(){return!1},me.Dd=function(){return!0};function $v(e,t,n,r){t.constructor===e.constructor||eb||(eb=!0,Un('Should not change the class of the Part when changing category from "'+n+'" to "'+r+'"'),Un(" Old class: "+Ht(e.constructor)+", new class: "+Ht(t.constructor)+", part: "+e.toString())),e.Ej();var i=e.data;n=e.layerName;var o=e.isSelected,a=e.isHighlighted,d=!0,x=!0,O=!1;e instanceof hn&&(d=e.isTreeLeaf,x=e.isTreeExpanded,O=e.wasTreeExpanded),t.Af(e),t.cloneProtected(e),e.Tf=r,e.svg!==null&&(e.svg.remove(),e.svg=null,e.Uc=!0),e.v(),e.N(),t=e.diagram,r=!0,t!==null&&(r=t.skipsUndoManager,t.skipsUndoManager=!0),e.ub=i,e.G=o?e.G|4096:e.G&-4097,e.G=a?e.G|524288:e.G&-524289,e instanceof hn&&(e.U=d?e.U|4:e.U&-5,e.U=x?e.U|1:e.U&-2,e.U=O?e.U|2:e.U&-3),i!==null&&e.La(),i=e.layerName,i!==n&&(e.Jg=n,e.layerName=i),t!==null&&(t.skipsUndoManager=r),e.Zc()&&e.C(64)}Fn.prototype.canCopy=function(){if(!this.copyable)return!1;var e=this.layer;return e===null?!0:e.allowCopy?(e=e.diagram,e===null?!0:!!e.allowCopy):!1},Fn.prototype.canDelete=function(){if(!this.deletable)return!1;var e=this.layer;return e===null?!0:e.allowDelete?(e=e.diagram,e===null?!0:!!e.allowDelete):!1},Fn.prototype.canEdit=function(){if(!this.textEditable)return!1;var e=this.layer;return e===null?!0:e.allowTextEdit?(e=e.diagram,e===null?!0:!!e.allowTextEdit):!1},Fn.prototype.canGroup=function(){if(!this.groupable)return!1;var e=this.layer;return e===null?!0:e.allowGroup?(e=e.diagram,e===null?!0:!!e.allowGroup):!1},Fn.prototype.canMove=function(){if(!this.movable)return!1;var e=this.layer;return e===null?!0:e.allowMove?(e=e.diagram,e===null?!0:!!e.allowMove):!1},Fn.prototype.canReshape=function(){if(!this.reshapable)return!1;var e=this.layer;return e===null?!0:e.allowReshape?(e=e.diagram,e===null?!0:!!e.allowReshape):!1},Fn.prototype.canResize=function(){if(!this.resizable)return!1;var e=this.layer;return e===null?!0:e.allowResize?(e=e.diagram,e===null?!0:!!e.allowResize):!1},Fn.prototype.canRotate=function(){if(!this.rotatable)return!1;var e=this.layer;return e===null?!0:e.allowRotate?(e=e.diagram,e===null?!0:!!e.allowRotate):!1},Fn.prototype.canSelect=function(){if(!this.selectable)return!1;var e=this.layer;return e===null?!0:e.allowSelect?(e=e.diagram,e===null?!0:!!e.allowSelect):!1};function ih(e){return(e.G&32768)!==0}function Xv(e,t){e.G=t?e.G|32768:e.G&-32769}function Zv(e,t){e.G=t?e.G|65536:e.G&-65537}function oh(e){return(e.G&131072)!==0}me=Fn.prototype,me.Fd=function(e){this.G=e?this.G|131072:this.G&-131073};function em(e,t){e.G=t?e.G|1048576:e.G&-1048577}me.oh=function(){var e=this.containingGroup;e!==null&&(e.v(),e.placeholder!==null&&e.placeholder.v(),e.Bd())},me.N=function(){var e=this.diagram;e!==null&&!ca(this)&&!ih(this)&&this.isVisible()&&this.Ib.w()&&e.N(Vh(this,this.Ib))},me.v=function(){Xt.prototype.v.call(this);var e=this.diagram;e!==null&&(e.De.add(this),this instanceof hn&&this.labeledLink!==null&&ua(this.labeledLink),e.$b(!0))},me.Vo=function(e){e||(e=this.Ah,e!==null&&ny(e,this))},me.Wo=function(e){e||(e=this.Ah,e!==null&&ry(e,this))},me.Lj=function(){var e=this.data;if(e!==null){var t=this.diagram;t!==null&&(t=t.model,t!==null&&t.cm(e))}},me.oz=function(){return Jv(this,this)};function Jv(e,t){var n=t.containingGroup;return n!==null?1+Jv(e,n):t instanceof hn&&(t=t.labeledLink,t!==null)?Jv(e,t):0}me.sz=function(){return Q0(this,this)};function Q0(e,t){var n=t.containingGroup;return n!==null||t instanceof hn&&(n=t.labeledLink,n!==null)?Q0(e,n):t}me.Td=function(e){return e instanceof or?Qv(this,this,e):!1};function Qv(e,t,n){if(t===n||n===null)return!1;var r=t.containingGroup;return r===null||r!==n&&!Qv(e,r,n)?t instanceof hn&&(t=t.labeledLink,t!==null)?Qv(e,t,n):!1:!0}me.px=function(e){if(e===null)return null;if(this===e)return this.containingGroup;for(var t=this;t!==null;){if(t instanceof or&&em(t,!0),t instanceof hn){var n=t.labeledLink;n!==null&&(t=n)}t=t.containingGroup}for(n=null,t=e;t!==null;){if(t.G&1048576){n=t;break}t instanceof hn&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup}for(t=this;t!==null;)t instanceof or&&em(t,!1),t instanceof hn&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup;return n},Fn.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var e=this.layer;return!(e!==null&&e.isTemporary||this instanceof hn&&this.isLinkLabel)},Fn.prototype.C=function(e){if(e===void 0&&(e=16777215),this.isLayoutPositioned&&e&this.layoutConditions){var t=this.layer;t!==null&&t.isTemporary||this instanceof hn&&this.isLinkLabel?t=!1:(t=this.diagram,t=!(t!==null&&t.undoManager.isUndoingRedoing))}else t=!1;if(t)if(t=this.Ah,t!==null){var n=t.layout;n!==null?n.C():t.C(e)}else e=this.diagram,e!==null&&(e=e.layout,e!==null&&e.C())};function q0(e){return e.isVisible()?(e=e.layer,!(e!==null&&e.isTemporary)):!1}function sh(e,t,n,r,i,o){if(o===void 0&&(o=null),!(e.contains(t)||o!==null&&!o(t)||t instanceof Xr)){if(e.add(t),t instanceof hn){if(n&&t instanceof or)for(var a=t.memberParts;a.next();)sh(e,a.value,n,r,i,o);if(i!==!1)for(a=t.linksConnected;a.next();){var d=a.value;if(!e.contains(d)){var x=d.fromNode,O=d.toNode;x=x===null||e.contains(x),O=O===null||e.contains(O),(i?x&&O:x||O)&&sh(e,d,n,r,i,o)}}if(1<r)for(t=t.Ou();t.next();)sh(e,t.value,n,r-1,i,o)}else if(t instanceof nn)for(t=t.labelNodes;t.next();)sh(e,t.value,n,r,i,o)}}Mn.Object.defineProperties(Fn.prototype,{key:{get:function(){var e=this.diagram;if(e!==null)return e.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?li:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var e=this.Ig;return e==null?null:e.diagram}},layerName:{get:function(){return this.Jg},set:function(e){var t=this.Jg;if(t!==e){var n=this.diagram;if((n===null||n.Qj(e)!==null&&!n.partManager.addsToTemporaryLayer)&&(this.Jg=e,n!==null&&n.Ya(),this.g("layerName",t,e),t=this.layer,t!==null&&t.name!==e&&(n=t.diagram,n!==null&&(e=n.Qj(e),e!==null&&e!==t)))){var r=t.pc(-1,this,!0);if(0<=r&&n.cb(po,"parts",t,this,null,r,!0),r=e.oi(99999999,this,!0),t.visible!==e.visible&&this.Zb(e.visible),0<=r&&n.cb(uo,"parts",e,null,this,!0,r),r=this.layerChanged,r!==null){var i=n.aa;n.aa=!0,r(this,t,e),n.aa=i}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(e){var t=this.layerChanged;t!==e&&(Ia(this),this.P.zq=e,this.g("layerChanged",t,e))}},zOrder:{get:function(){return this.Ao},set:function(e){var t=this.Ao;if(t!==e){this.Ao=e;var n=this.layer;n!==null&&Ff(n,-1,this),this.g("zOrder",t,e),e=this.diagram,e!==null&&e.N()}}},locationObject:{get:function(){if(this.nf===null){var e=this.locationObjectName;e!==""?(e=this.fb(e),e!==null?this.nf=e:this.nf=this):this instanceof Xr?this.type!==Xt.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:sn},set:function(e){var t=this.minLocation;t.D(e)||(e=e.J(),Ia(this),this.P.Pq=e,this.g("minLocation",t,e))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:bn},set:function(e){var t=this.maxLocation;t.D(e)||(e=e.J(),Ia(this),this.P.Kq=e,this.g("maxLocation",t,e))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(e){var t=this.locationObjectName;t!==e&&(Ia(this),this.P.Gq=e,this.nf=null,this.v(),this.g("locationObjectName",t,e))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Gr},set:function(e){var t=this.locationSpot;t.D(e)||(e=e.J(),Ia(this),this.P.Hq=e,this.v(),this.g("locationSpot",t,e))}},location:{get:function(){return this.ke},set:function(e){var t=e.x,n=e.y,r=this.ke;if(!(r.x===t||isNaN(r.x)&&isNaN(t))||!(r.y===n||isNaN(r.y)&&isNaN(n))){if(e=e.copy(),t=e,this.ph())t=!1;else{if(this.ke=t,this.G|=2097152,ca(this)===!1&&(qg(this),n=this.pa,n.w())){var i=this.diagram;if(i===null||i.animationManager.isTicking||!i.undoManager.isUndoingRedoing){var o=n.copy();n.h(n.x+(t.x-r.x),n.y+(t.y-r.y)),Y0(this,i,n,o.x,o.y),this.g("position",o,n.copy())}}t=!0}t&&this.g("location",r,e.copy())}}},category:{get:function(){return this.Tf},set:function(e){var t=this.Tf;if(t!==e){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var n=this.diagram,r=this.data,i=null;if(n!==null&&r!==null&&!(this instanceof Xr)){var o=n.model.undoManager;o.isEnabled&&!o.isUndoingRedoing&&(i=this.clone(),i.O.addAll(this.O))}this.Tf=e,this.g("category",t,e),n===null||r===null||this instanceof Xr?this instanceof Xr&&(i=this.adornedPart,i!==null&&(e=i.Qf,e!==null&&e.remove(t),i.bh(this.category,this))):(o=n.model,o.undoManager.isUndoingRedoing||(this.ph()?(n.partManager.setLinkCategoryForData(r,e),n=n.partManager.findLinkTemplateForCategory(e),n!==null&&(Hl(n),n=n.copy(),n!==null&&$v(this,n,t,e))):(o!==null&&o.jm(r,e),n=Tb(n.partManager,r,e),n!==null&&(Hl(n),n=n.copy(),n===null||n instanceof nn||(r=this.location.copy(),$v(this,n,t,e),this.location.w()||(this.location=r)))),i!==null&&(t=this.clone(),t.O.addAll(this.O),this.g("self",i,t))))}}},self:{get:function(){return this},set:function(e){$v(this,e,this.category,e.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(e){var t=(this.G&1)!==0;t!==e&&(this.G^=1,this.g("copyable",t,e))}},deletable:{get:function(){return(this.G&2)!==0},set:function(e){var t=(this.G&2)!==0;t!==e&&(this.G^=2,this.g("deletable",t,e))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(e){var t=(this.G&4)!==0;t!==e&&(this.G^=4,this.g("textEditable",t,e),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(e){var t=(this.G&8)!==0;t!==e&&(this.G^=8,this.g("groupable",t,e))}},movable:{get:function(){return(this.G&16)!==0},set:function(e){var t=(this.G&16)!==0;t!==e&&(this.G^=16,this.g("movable",t,e))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(e){var t=(this.G&32)!==0;t!==e&&(this.G^=32,this.g("selectionAdorned",t,e),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(e){var t=(this.G&64)!==0;if(t!==e){this.G^=64;var n=this.diagram;n!==null&&n.Ya(),this.g("isInDocumentBounds",t,e)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(e){var t=(this.G&128)!==0;t!==e&&(this.G^=128,this.g("isLayoutPositioned",t,e),this.C(e?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(e){var t=(this.G&256)!==0;t!==e&&(this.G^=256,this.g("selectable",t,e),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(e){var t=(this.G&512)!==0;t!==e&&(this.G^=512,this.g("reshapable",t,e),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(e){var t=(this.G&1024)!==0;t!==e&&(this.G^=1024,this.g("resizable",t,e),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(e){var t=(this.G&2048)!==0;t!==e&&(this.G^=2048,this.g("rotatable",t,e),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(e){var t=(this.G&4096)!==0;if(t!==e){var n=this.diagram;if(!e||this.canSelect()&&!(n!==null&&n.selection.count>=n.maxSelectionCount)){this.G^=4096;var r=!1;if(n!==null){r=n.skipsUndoManager,n.skipsUndoManager=!0;var i=n.selection;i.ka(),e?i.add(this):i.remove(this),i.freeze()}this.g("isSelected",t,e),this.Wb(),e=this.selectionChanged,e!==null&&e(this),n!==null&&(n.$b(),n.skipsUndoManager=r)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(e){var t=(this.G&524288)!==0;if(t!==e){this.G^=524288;var n=this.diagram;n!==null&&(n=n.highlighteds,n.ka(),e?n.add(this):n.remove(this),n.freeze()),this.g("isHighlighted",t,e),this.N(),e=this.highlightedChanged,e!==null&&e(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(e){var t=(this.G&8192)!==0;t!==e&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",t,e),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(e){var t=(this.G&262144)!==0;t!==e&&(this.G^=262144,this.g("isAnimated",t,e))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(e){var t=this.highlightedChanged;t!==e&&(Ia(this),this.P.oq=e,this.g("highlightedChanged",t,e))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(e){var t=this.selectionObjectName;t!==e&&(Ia(this),this.P.vr=e,this.Ug=null,this.g("selectionObjectName",t,e))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(e){var t=this.selectionAdornmentTemplate;t!==e&&(Ia(this),this.P.tr=e,this.g("selectionAdornmentTemplate",t,e))}},selectionObject:{get:function(){if(this.Ug===null){var e=this.selectionObjectName;e!==null&&e!==""?(e=this.fb(e),e!==null?this.Ug=e:this.Ug=this):this instanceof nn?(e=this.path,e!==null?this.Ug=e:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(e){var t=this.selectionChanged;t!==e&&(Ia(this),this.P.ur=e,this.g("selectionChanged",t,e))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(e){var t=this.resizeAdornmentTemplate;t!==e&&(Ia(this),this.P.fr=e,this.g("resizeAdornmentTemplate",t,e))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(e){var t=this.resizeObjectName;t!==e&&(Ia(this),this.P.hr=e,this.g("resizeObjectName",t,e))}},resizeObject:{get:function(){var e=this.resizeObjectName;return e!==""&&(e=this.fb(e),e!==null)?e:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:hi},set:function(e){var t=this.resizeCellSize;t.D(e)||(e=e.J(),Ia(this),this.P.gr=e,this.g("resizeCellSize",t,e))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(e){var t=this.rotateAdornmentTemplate;t!==e&&(Ia(this),this.P.ir=e,this.g("rotateAdornmentTemplate",t,e))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(e){var t=this.rotateObjectName;t!==e&&(Ia(this),this.P.jr=e,this.g("rotateObjectName",t,e))}},rotateObject:{get:function(){var e=this.rotateObjectName;return e!==""&&(e=this.fb(e),e!==null)?e:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Bo},set:function(e){var t=this.rotationSpot;t.D(e)||(e=e.J(),Ia(this),this.P.lr=e,this.g("rotationSpot",t,e))}},text:{get:function(){return this.ec},set:function(e){var t=this.ec;t!==e&&(this.ec=e,this.g("text",t,e))}},containingGroup:{get:function(){return this.Ah},set:function(e){if(this.Zc()){var t=this.Ah;if(t!==e){e===null||this!==e&&!e.Td(this)||(this===e&&ft("Cannot make a Group a member of itself: "+this.toString()),ft("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+e.toString())),this.C(2);var n=this.diagram;if(t!==null?ry(t,this):this instanceof or&&n!==null&&n.ai.remove(this),this.Ah=e,e!==null?ny(e,this):this instanceof or&&n!==null&&n.ai.add(this),this.C(1),n!==null&&n.aa){var r=this.data,i=n.model;if(r!==null&&i.Xj()){var o=i.wa(e!==null?e.data:null);i.mp(r,o)}}if(r=this.containingGroupChanged,r!==null&&(i=!0,n!==null&&(i=n.aa,n.aa=!0),r(this,t,e),n!==null&&(n.aa=i)),this instanceof or){for(n=new Kt,sh(n,this,!0,0,!0),n=n.iterator;n.next();)if(r=n.value,r instanceof hn)for(r=r.linksConnected;r.next();)cd(r.value)}if(this instanceof hn){for(n=this.linksConnected;n.next();)cd(n.value);n=this.labeledLink,n!==null&&cd(n)}this.g("containingGroup",t,e),e!==null&&(t=e.layer,t!==null&&Ff(t,-1,e))}}else ft("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(e){var t=this.containingGroupChanged;t!==e&&(Ia(this),this.P.Kp=e,this.g("containingGroupChanged",t,e))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof hn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(e){var t=this.layoutConditions;t!==e&&(Ia(this),this.P.Cq=e,this.g("layoutConditions",t,e))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(e){var t=this.dragComputation;t!==e&&(Ia(this),this.P.Up=e,this.g("dragComputation",t,e))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:_n},set:function(e){var t=this.shadowOffset;t.D(e)||(e=e.J(),Ia(this),this.P.zr=e,this.N(),this.g("shadowOffset",t,e))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(e){var t=this.shadowColor;t!==e&&(Ia(this),this.P.yr=e,this.N(),this.g("shadowColor",t,e))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(e){var t=this.shadowBlur;t!==e&&(Ia(this),this.P.Vg=e,this.N(),this.g("shadowBlur",t,e))}}}),Fn.prototype.invalidateLayout=Fn.prototype.C,Fn.prototype.findCommonContainingGroup=Fn.prototype.px,Fn.prototype.isMemberOf=Fn.prototype.Td,Fn.prototype.findTopLevelPart=Fn.prototype.sz,Fn.prototype.findSubGraphLevel=Fn.prototype.oz,Fn.prototype.ensureBounds=Fn.prototype.Va,Fn.prototype.getDocumentBounds=Fn.prototype.mi,Fn.prototype.findObject=Fn.prototype.fb,Fn.prototype.moveTo=Fn.prototype.moveTo,Fn.prototype.invalidateAdornments=Fn.prototype.Wb,Fn.prototype.clearAdornments=Fn.prototype.Ej,Fn.prototype.removeAdornment=Fn.prototype.Jf,Fn.prototype.addAdornment=Fn.prototype.bh,Fn.prototype.findAdornment=Fn.prototype.Pj,Fn.prototype.updateTargetBindings=Fn.prototype.La;var eb=!1;Fn.className="Part",Fn.LayoutNone=0,Fn.LayoutAdded=1,Fn.LayoutRemoved=2,Fn.LayoutShown=4,Fn.LayoutHidden=8,Fn.LayoutNodeSized=16,Fn.LayoutGroupLayout=32,Fn.LayoutNodeReplaced=64,Fn.LayoutStandard=127,Fn.LayoutAll=16777215;function Xr(e,t){e===void 0||e instanceof Zo||typeof e=="string"?Fn.call(this,e):(Fn.call(this),e&&(t=e)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,t&&Object.assign(this,t)}Kn(Xr,Fn),Xr.prototype.toString=function(){var e=this.adornedPart;return"Adornment("+this.category+")"+(e!==null?e.toString():"")},Xr.prototype.updateRelationshipsFromData=function(){},Xr.prototype.Ul=function(e){var t=this.adornedObject,n=t==null?void 0:t.part;if(n instanceof nn&&t instanceof hr){t=n.path,n.Ul(e),e=t.geometry,n=this.O.s,t=n.length;for(var r=0;r<t;r++){var i=n[r];i.isPanelMain&&i instanceof hr&&(i.ua=e)}}},Xr.prototype.si=function(){var e=this.ue;return e===null?!0:(e=e.part,e===null||!ca(e))},Xr.prototype.Zc=function(){return!1},Xr.prototype.gk=function(e,t,n,r,i,o,a){if(e===uo&&t==="elements"){if(i instanceof fa)this.$a===null&&(this.$a=i);else if(i instanceof Xt){var d=i.Nl(function(x){return x instanceof fa});d instanceof fa&&this.$a===null&&(this.$a=d)}}else e===po&&t==="elements"&&this.$a!==null&&(r===this.$a?this.$a=null:r instanceof Xt&&this.$a.rg(r)&&(this.$a=null));Fn.prototype.gk.call(this,e,t,n,r,i,o,a)},Xr.prototype.updateAdornments=function(){},Xr.prototype.Lj=function(){},Mn.Object.defineProperties(Xr.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(e){var t=this.adornedPart,n=null;e!==null&&(n=e.part),t===null||e!==null&&t===n||t.Jf(this.category),this.ue=e,n!==null&&n.bh(this.category,this)}},adornedPart:{get:function(){var e=this.ue;return e!==null?e.part:null}},containingGroup:{get:function(){return null}}}),Xr.className="Adornment";function qv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Yr,this.er=rm,this.Kr=this.ij=this.Nq=this.Mq=null}qv.prototype.copy=function(){var e=new qv;return e.Dq=this.Dq,e.Eq=this.Eq,e.gj=this.gj,e.Vr=this.Vr,e.yp=this.yp.J(),e.er=this.er,e.Mq=this.Mq,e.Nq=this.Nq,e.ij=this.ij,e.Kr=this.Kr,e};function hn(e,t){e===void 0||e instanceof Zo||typeof e=="string"?Fn.call(this,e):(Fn.call(this),e&&(t=e)),this.U=13,this.Ba=null,this.jb=new Gt,this.wc=this.af=this.Yk=null,this.ci=!1,t&&Object.assign(this,t)}Kn(hn,Fn),hn.prototype.cloneProtected=function(e){Fn.prototype.cloneProtected.call(this,e),e.U=this.U,this.Ba!==null&&(e.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},me=hn.prototype,me.Af=function(e){Fn.prototype.Af.call(this,e),e.Bd(),e.af=this.af,e.wc=null};function Lc(e){e.Ba===null?e.Ba=new qv:e.Ba.nc&&(e.Ba=e.Ba.copy())}me.th=function(){Fn.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function tb(e,t){t!==null&&(e.af===null&&(e.af=new Kt),e.af.add(t))}function nb(e,t,n,r){if(t===null||e.af===null)return null;for(var i=e.af.iterator;i.next();){var o=i.value;if(o.Ds===e&&o.cv===t&&o.Ox===n&&o.Px===r||o.Ds===t&&o.cv===e&&o.Ox===r&&o.Px===n)return o}return null}me.Lz=function(e,t,n){t==null&&(t=""),n==null&&(n=""),e=nb(this,e,t,n),e!==null&&e.Sl()},me.gk=function(e,t,n,r,i,o,a){e===uo&&t==="elements"?this.wc=null:e===po&&t==="elements"&&(this.wc=null),Fn.prototype.gk.call(this,e,t,n,r,i,o,a)},me.Bd=function(e){for(var t=this.linksConnected;t.next();){var n=t.value;e!==void 0&&e.contains(n)||(Ja(n.fromPort),Ja(n.toPort),n.bb())}};function rb(e,t){for(e=e.linksConnected;e.next();){var n=e.value;(n.fromPort===t||n.toPort===t)&&(Ja(n.fromPort),Ja(n.toPort),n.bb())}}function Ja(e){if(e!==null){var t=e.Zn;t!==null&&t.Sl(),e=e.part,t=e.containingGroup,t===null||e.isVisible()||Ja(t.port)}}me.si=function(){return!0},hn.prototype.getAvoidableRect=function(e){return e.set(this.actualBounds),e.Co(this.avoidableMargin),e},hn.prototype.findVisibleNode=function(){for(var e=this;e!==null&&!e.isVisible();)e=e.containingGroup;return e},hn.prototype.isVisible=function(){if(!Fn.prototype.isVisible.call(this))return!1;var e=!0,t=Ac,n=this.diagram;if(n!==null&&(e=n.isTreePathToChildren,t=n.treeCollapsePolicy),t===Ac){if(e=this.pg(),e!==null&&!e.isTreeExpanded)return!1}else if(t===Wo){if(e=e?this.Oo():this.Po(),0<e.count&&e.all(function(r){return!r.isTreeExpanded}))return!1}else if(t===Xf&&(e=e?this.Oo():this.Po(),0<e.count&&e.any(function(r){return!r.isTreeExpanded})))return!1;return e=this.labeledLink,e!==null?e.isVisible():!0},hn.prototype.Zb=function(e){Fn.prototype.Zb.call(this,e);for(var t=this.linksConnected;t.next();){var n=t.value;if(e&&this.containingGroup!==null){var r=n.To(this);r===null||r.Td(this.containingGroup)||n.bb()}n.Zb(e)}},hn.prototype.qx=function(){var e=new Kt,t=new Kt;return ib(this,this,e,t),t.iterator};function ib(e,t,n,r){if(t!==null&&!n.has(t)){n.add(t);var i=!0,o=e.diagram;o!==null&&(i=o.isTreePathToChildren),t.linksConnected.each(function(a){a.isTreeLink?(i?a.fromNode===t:a.toNode===t)&&ib(e,i?a.toNode:a.fromNode,n,r):r.add(a)})}}hn.prototype.findLinksConnected=function(e){if(e===void 0&&(e=null),e===null)return this.jb.iterator;var t=new qr(this.jb),n=this;return t.predicate=function(r){return r.fromNode===n&&r.fromPortId===e||r.toNode===n&&r.toPortId===e},t},me=hn.prototype,me.Mo=function(e){e===void 0&&(e=null);var t=new qr(this.jb),n=this;return t.predicate=function(r){return r.fromNode!==n?!1:e===null?!0:r.fromPortId===e},t},me.Sd=function(e){e===void 0&&(e=null);var t=new qr(this.jb),n=this;return t.predicate=function(r){return r.toNode!==n?!1:e===null?!0:r.toPortId===e},t},me.Mu=function(e){e===void 0&&(e=null);for(var t=null,n=null,r=this.jb.iterator;r.next();){var i=r.value;i.fromNode===this?(e===null||i.fromPortId===e)&&(i=i.toNode,t!==null?t.add(i):n!==null&&n!==i?(t=new Kt,t.add(n),t.add(i)):n=i):i.toNode!==this||e!==null&&i.toPortId!==e||(i=i.fromNode,t!==null?t.add(i):n!==null&&n!==i?(t=new Kt,t.add(n),t.add(i)):n=i)}return t!==null?t.iterator:n!==null?new Pr(n):li},me.Po=function(e){e===void 0&&(e=null);for(var t=null,n=null,r=this.jb.iterator;r.next();){var i=r.value;i.fromNode!==this||e!==null&&i.fromPortId!==e||(i=i.toNode,t!==null?t.add(i):n!==null&&n!==i?(t=new Kt,t.add(n),t.add(i)):n=i)}return t!==null?t.iterator:n!==null?new Pr(n):li},me.Oo=function(e){e===void 0&&(e=null);for(var t=null,n=null,r=this.jb.iterator;r.next();){var i=r.value;i.toNode!==this||e!==null&&i.toPortId!==e||(i=i.fromNode,t!==null?t.add(i):n!==null&&n!==i?(t=new Kt,t.add(n),t.add(i)):n=i)}return t!==null?t.iterator:n!==null?new Pr(n):li},me.jz=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);var r=new qr(this.jb),i=this;return r.predicate=function(o){return!((o.fromNode!==i||o.toNode!==e||t!==null&&o.fromPortId!==t||n!==null&&o.toPortId!==n)&&(o.fromNode!==e||o.toNode!==i||n!==null&&o.fromPortId!==n||t!==null&&o.toPortId!==t))},r},me.kz=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);var r=new qr(this.jb),i=this;return r.predicate=function(o){return!(o.fromNode!==i||o.toNode!==e||t!==null&&o.fromPortId!==t||n!==null&&o.toPortId!==n)},r};function tm(e,t,n){Ja(n);var r=e.jb.contains(t);if(r||e.jb.add(t),!r||t.fromNode===t.toNode){var i=e.linkConnected;if(i!==null){var o=!0,a=e.diagram;a!==null&&(o=a.aa,a.aa=!0),i(e,t,n),a!==null&&(a.aa=o)}}!r&&t.isTreeLink&&(n=t.fromNode,t=t.toNode,n!==null&&t!==null&&n!==t&&(r=!0,e=e.diagram,e!==null&&(r=e.isTreePathToChildren),i=r?t:n,o=r?n:t,i.ci||(i.ci=o),!o.isTreeLeaf||e!==null&&e.undoManager.isUndoingRedoing||(r?n===o&&(o.isTreeLeaf=!1):t===o&&(o.isTreeLeaf=!1))))}function nm(e,t,n){Ja(n);var r=e.jb.remove(t),i=null;if(r||t.toNode===t.fromNode){var o=e.linkDisconnected;if(i=e.diagram,o!==null){var a=!0;i!==null&&(a=i.aa,i.aa=!0),o(e,t,n),i!==null&&(i.aa=a)}}r&&t.isTreeLink&&(n=!0,i!==null&&(n=i.isTreePathToChildren),e=n?t.toNode:t.fromNode,t=n?t.fromNode:t.toNode,e!==null&&(e.ci=!1),t===null||t.isTreeLeaf||(t.jb.count===0?(t.ci=null,i!==null&&i.undoManager.isUndoingRedoing||(t.isTreeLeaf=!0)):bp(t)))}function bp(e){if(e.ci=!1,e.jb.count!==0){var t=!0,n=e.diagram;if(n===null||!n.undoManager.isUndoingRedoing){for(n!==null&&(t=n.isTreePathToChildren),n=e.jb.iterator;n.next();){var r=n.value;if(r.isTreeLink){if(t){if(r.fromNode===e){e.isTreeLeaf=!1;return}}else if(r.toNode===e){e.isTreeLeaf=!1;return}}}e.isTreeLeaf=!0}}}hn.prototype.updateRelationshipsFromData=function(){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)},me=hn.prototype,me.Vo=function(e){Fn.prototype.Vo.call(this,e),e||(bp(this),e=this.Yk,e!==null&&db(e,this))},me.Wo=function(e){Fn.prototype.Wo.call(this,e),e||(e=this.Yk,e!==null&&e.wd!==null&&(e.wd.remove(this),e.v()))},me.Lj=function(){if(0<this.jb.count){var e=this.diagram;if(e!==null)for(var t=e.commandHandler!==null?e.commandHandler.deletesConnectedLinks:!0,n=this.jb.copy().iterator;n.next();){var r=n.value;t?e.remove(r):(r.fromNode===this&&(r.fromNode=null),r.toNode===this&&(r.toNode=null))}}this.labeledLink=null,Fn.prototype.Lj.call(this)},me.ns=function(e){if(this.wc===null){if(e===""&&this.Te===!1)return this;ob(this)}var t=this.wc.I(e);return t!==null||e!==""&&(t=this.wc.I(""),t!==null)?t:this};function ob(e){e.wc===null?e.wc=new Et:e.wc.clear(),e.qm(e,function(t,n){sb(t,n)}),e.wc.count===0&&e.wc.add("",e)}function sb(e,t){var n=t.portId;n!==null&&e.wc!==null&&e.wc.add(n,t)}function ey(e,t,n){var r=t.portId;if(r!==null&&(e.wc!==null&&e.wc.remove(r),t=e.diagram,t!==null&&n)){for(n=null,e=e.findLinksConnected(r);e.next();)r=e.value,n===null&&(n=Bn()),n.push(r);if(n!==null){for(e=0;e<n.length;e++)t.remove(n[e]);wn(n)}}}me.Nz=function(e){if(e===null||e===this)return!1;var t=!0,n=this.diagram;if(n!==null&&(t=n.isTreePathToChildren),n=this,t)for(;n!==e;){t=null;for(var r=n.jb.iterator;r.next();){var i=r.value;if(i.isTreeLink&&(t=i.fromNode,t!==n&&t!==this))break}if(t===this||t===null||t===n)return!1;n=t}else for(;n!==e;){for(t=null,r=n.jb.iterator;r.next()&&(i=r.value,!i.isTreeLink||(t=i.toNode,t===n||t===this)););if(t===this||t===null||t===n)return!1;n=t}return!0},me.xz=function(){var e=!0,t=this.diagram;if(t!==null&&(e=t.isTreePathToChildren),t=this,e)for(;;){e=null;for(var n=t.jb.iterator;n.next();){var r=n.value;if(r.isTreeLink&&(e=r.fromNode,e!==t&&e!==this))break}if(e===this)return this;if(e===null||e===t)return t;t=e}else for(;;){for(e=null,n=t.jb.iterator;n.next()&&(r=n.value,!r.isTreeLink||(e=r.toNode,e===t||e===this)););if(e===this)return this;if(e===null||e===t)return t;t=e}},me.gz=function(e){if(e===null)return null;if(this===e)return this;for(var t=this;t!==null;)em(t,!0),t=t.pg();var n=null;for(t=e;t!==null;){if(t.G&1048576){n=t;break}t=t.pg()}for(t=this;t!==null;)em(t,!1),t=t.pg();return n},me.kh=function(){var e=!0,t=this.diagram;if(t!==null&&(e=t.isTreePathToChildren),t=this.jb.iterator,e){for(;t.next();)if(e=t.value,e.isTreeLink&&e.fromNode!==this)return e}else for(;t.next();)if(e=t.value,e.isTreeLink&&e.toNode!==this)return e;return null},me.pg=function(){var e=this.ci;if(e===null)return null;if(e instanceof hn)return e;e=this.diagram,e=e!==null?e.isTreePathToChildren:!0;for(var t=this.jb.iterator;t.next();){var n=t.value;if(n.isTreeLink&&(n=e?n.fromNode:n.toNode,n!==this))return this.ci=n}return this.ci=null},me.vz=function(){function e(n,r){r.add(n);var i=n.kh();i!==null&&(r.add(i),n=n.pg(),n!==null&&e(n,r))}var t=new Kt;return e(this,t),t},me.uz=function(){return ab(this,this)};function ab(e,t){return t=t.pg(),t===null?0:1+ab(e,t)}me.Qo=function(){var e=!0,t=this.diagram;t!==null&&(e=t.isTreePathToChildren),t=new qr(this.jb);var n=this;return t.predicate=e?function(r){return!!(r.isTreeLink&&r.fromNode===n)}:function(r){return!!(r.isTreeLink&&r.toNode===n)},t},me.Ou=function(){var e=!0,t=this.diagram;t!==null&&(e=t.isTreePathToChildren);var n=t=null,r=this.jb.iterator;if(e)for(;r.next();)e=r.value,e.isTreeLink&&e.fromNode===this&&(e=e.toNode,t!==null?t.add(e):n!==null&&n!==e?(t=new Gt,t.add(n),t.add(e)):n=e);else for(;r.next();)e=r.value,e.isTreeLink&&e.toNode===this&&(e=e.fromNode,t!==null?t.add(e):n!==null&&n!==e?(t=new Gt,t.add(n),t.add(e)):n=e);return t!==null?t.iterator:n!==null?new Pr(n):li},me.wz=function(e){e===void 0&&(e=1/0);var t=new Kt;return sh(t,this,!1,e,!0),t},hn.prototype.collapseTree=function(e){e===void 0&&(e=1),1>e&&(e=1);var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var n=new Kt;n.add(this),lb(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===Ac),t.Ue=!1}};function lb(e,t,n,r,i,o,a){if(1<r)for(var d=n?e.Mo():e.Sd();d.next();){var x=d.value;x.isTreeLink&&(x=x.To(e),x===null||x===e||t.contains(x)||(t.add(x),lb(x,t,n,r-1,i,o,a)))}else ub(e,t,n,i,o,a)}function ub(e,t,n,r,i,o){for(var a=i===e?!0:e.isTreeExpanded,d=n?e.Mo():e.Sd(),x={};d.next();){var O=d.value;if(O.isTreeLink&&(O=O.To(e),O!==null&&O!==e)){var M=t.contains(O);if(M||t.add(O),a){var Y=n?O.Oo():O.Po();x.uv=e,Y.all(function(ie){return function(ce){return ce===ie.uv||!ce.isTreeExpanded}}(x))&&r.Aj(O,i),O.oh(),O.Zb(!1)}O.isTreeExpanded&&(O.wasTreeExpanded=O.isTreeExpanded,M||ub(O,t,n,r,i,o))}x={uv:x.uv}}e.isTreeExpanded=!1}hn.prototype.expandTree=function(e){e===void 0&&(e=2),2>e&&(e=2);var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var n=new Kt;n.add(this),cb(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===Ac),t.Ue=!1}};function cb(e,t,n,r,i,o,a){for(var d=o===e?!1:e.isTreeExpanded,x=n?e.Mo():e.Sd(),O={};x.next();){var M=x.value;if(M.isTreeLink&&(d||M.fd||M.bb(),M=M.To(e),M!==null&&M!==e&&!t.contains(M))){if(t.add(M),!d){M.Zb(!0),M.oh();var Y=n?M.Oo():M.Po();O.vv=e,Y.all(function(ie){return function(ce){return ce===ie.vv||!ce.isTreeExpanded}}(O))&&i.Cj(M,o)}(2<r||M.wasTreeExpanded)&&(M.wasTreeExpanded=!1,cb(M,t,n,r-1,i,o,a))}O={vv:O.vv}}e.isTreeExpanded=!0}Mn.Object.defineProperties(hn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:rm},set:function(e){var t=this.portSpreading;t!==e&&(Lc(this),this.Ba.er=e,this.g("portSpreading",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(e){var t=(this.U&8)!==0;if(t!==e){this.U^=8;var n=this.diagram;n!==null&&Tc(n,this),this.g("avoidable",t,e)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Yr},set:function(e){typeof e=="number"&&(e=new ar(e));var t=this.avoidableMargin;if(!t.D(e)){e=e.J(),Lc(this),this.Ba.yp=e;var n=this.diagram;n!==null&&Tc(n,this),this.g("avoidableMargin",t,e)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(e){var t=this.linkConnected;t!==e&&(Lc(this),this.Ba.Dq=e,this.g("linkConnected",t,e))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(e){var t=this.linkDisconnected;t!==e&&(Lc(this),this.Ba.Eq=e,this.g("linkDisconnected",t,e))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(e){var t=this.linkValidation;t!==e&&(Lc(this),this.Ba.gj=e,this.g("linkValidation",t,e))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(e){var t=this.Yk;if(t!==e){var n=this.diagram,r=this.data;if(t!==null){if(t.wd!==null&&(t.wd.remove(this),t.v()),n!==null&&r!==null&&!n.undoManager.isUndoingRedoing){var i=t.data,o=n.model;if(i!==null&&o.ri()){var a=o.wa(r);a!==void 0&&o.Qx(i,a)}}this.containingGroup=null}this.Yk=e,e!==null&&(db(e,this),n===null||r===null||n.undoManager.isUndoingRedoing||(i=e.data,n=n.model,i!==null&&n.ri()&&(r=n.wa(r),r!==void 0&&n.Bu(i,r))),this.containingGroup=e.containingGroup),ua(this),this.g("labeledLink",t,e)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&ob(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(e){var t=(this.U&1)!==0;if(t!==e){this.U^=1;var n=this.diagram;if(this.g("isTreeExpanded",t,e),t=this.treeExpandedChanged,t!==null){var r=!0;n!==null&&(r=n.aa,n.aa=!0),t(this),n!==null&&(n.aa=r)}n!==null&&n.undoManager.isUndoingRedoing?this.Zb(e):e?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(e){var t=(this.U&2)!==0;t!==e&&(this.U^=2,this.g("wasTreeExpanded",t,e))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(e){var t=this.treeExpandedChanged;t!==e&&(Lc(this),this.Ba.Vr=e,this.g("treeExpandedChanged",t,e))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(e){var t=(this.U&4)!==0;t!==e&&(this.U^=4,this.g("isTreeLeaf",t,e))}}}),hn.prototype.expandTree=hn.prototype.expandTree,hn.prototype.collapseTree=hn.prototype.collapseTree,hn.prototype.findTreeParts=hn.prototype.wz,hn.prototype.findTreeChildrenNodes=hn.prototype.Ou,hn.prototype.findTreeChildrenLinks=hn.prototype.Qo,hn.prototype.findTreeLevel=hn.prototype.uz,hn.prototype.findTreeParentChain=hn.prototype.vz,hn.prototype.findTreeParentNode=hn.prototype.pg,hn.prototype.findTreeParentLink=hn.prototype.kh,hn.prototype.findCommonTreeParent=hn.prototype.gz,hn.prototype.findTreeRoot=hn.prototype.xz,hn.prototype.isInTreeOf=hn.prototype.Nz,hn.prototype.findPort=hn.prototype.ns,hn.prototype.findLinksTo=hn.prototype.kz,hn.prototype.findLinksBetween=hn.prototype.jz,hn.prototype.findNodesInto=hn.prototype.Oo,hn.prototype.findNodesOutOf=hn.prototype.Po,hn.prototype.findNodesConnected=hn.prototype.Mu,hn.prototype.findLinksInto=hn.prototype.Sd,hn.prototype.findLinksOutOf=hn.prototype.Mo,hn.prototype.findExternalTreeLinksConnected=hn.prototype.qx,hn.prototype.invalidateConnectedLinks=hn.prototype.Bd,hn.prototype.invalidateLinkBundle=hn.prototype.Lz;var H1=new Dt(hn,"SpreadingNone",10),rm=new Dt(hn,"SpreadingEvenly",11),ty=new Dt(hn,"SpreadingPacked",12);hn.className="Node",hn.SpreadingNone=H1,hn.SpreadingEvenly=rm,hn.SpreadingPacked=ty;function or(e,t){e===void 0||e instanceof Zo||typeof e=="string"?hn.call(this,e):(hn.call(this),e&&(t=e)),this.U|=4608,this.Gn=new Kt,this.$a=null,this.Sc=new ao,this.Sc.group=this,this.gl=new Kt,this.tb=this.$p=null,t&&Object.assign(this,t)}Kn(or,hn),or.prototype.cloneProtected=function(e){hn.prototype.cloneProtected.call(this,e),this.U=this.U&-32769;var t=e.Nl(function(n){return n instanceof fa});t instanceof fa?e.$a=t:e.$a=null,this.Sc!==null?(e.Sc=this.Sc.copy(),e.Sc.group=e):(e.Sc!==null&&(e.Sc.group=null),e.Sc=null),this.tb!==null&&(e.tb=this.tb.copy())},me=or.prototype,me.Af=function(e){hn.prototype.Af.call(this,e);var t=e.Rj();for(e=e.memberParts;e.next();){var n=e.value;if(n.v(),n.C(8),n.Ej(),n instanceof hn)n.Bd(t);else if(n instanceof nn)for(n=n.labelNodes;n.next();)n.value.Bd(t)}},me.gk=function(e,t,n,r,i,o,a){if(e===uo&&t==="elements"){if(i instanceof fa)this.$a===null?this.$a=i:this.$a!==i&&ft("Cannot insert a second Placeholder into the visual tree of a Group.");else if(i instanceof Xt){var d=i.Nl(function(x){return x instanceof fa});d instanceof fa&&(this.$a===null?this.$a=d:this.$a!==d&&ft("Cannot insert a second Placeholder into the visual tree of a Group."))}}else e===po&&t==="elements"&&this.$a!==null&&(r===this.$a?this.$a=null:r instanceof Xt&&this.$a.rg(r)&&(this.$a=null));hn.prototype.gk.call(this,e,t,n,r,i,o,a)},me.Xl=function(e,t){hn.prototype.Xl.call(this,e,t),this.isClipping&&this.type!==Xt.Spot&&this.isSubGraphExpanded&&(e=this.resizeObject,e instanceof Xt&&(e=e.Pb()),this.tb===null&&(this.tb=new xt),e.mi(this.tb),e instanceof hr&&this.tb.Bc(-e.strokeWidth,-e.strokeWidth))},me.eh=function(e,t,n,r){this.nf=this.$a,hn.prototype.eh.call(this,e,t,n,r)},me.Va=function(){var e=this;e.isSubGraphExpanded&&this.memberParts.each(function(t){!e.computesBoundsIncludingLinks&&t instanceof nn||t.Va()}),hn.prototype.Va.call(this)},me.si=function(){if(!hn.prototype.si.call(this))return!1;for(var e=this.memberParts;e.next();){var t=e.value;if(t instanceof hn){if(t.isVisible()&&ca(t))return!1}else if(t instanceof nn&&t.isVisible()&&ca(t)&&t.fromNode!==this&&t.toNode!==this)return!1}return!0};function ny(e,t){if(e.Gn.add(t)){t instanceof or&&e.gl.add(t);var n=e.memberAdded;if(n!==null){var r=!0,i=e.diagram;i!==null&&(r=i.aa,i.aa=!0),n(e,t),i!==null&&(i.aa=r)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!1)}t instanceof nn&&!e.computesBoundsIncludingLinks||(t=e.$a,t===null&&(t=e),t.v())}function ry(e,t){if(e.Gn.remove(t)){t instanceof or&&e.gl.remove(t);var n=e.memberRemoved;if(n!==null){var r=!0,i=e.diagram;i!==null&&(r=i.aa,i.aa=!0),n(e,t),i!==null&&(i.aa=r)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!0)}t instanceof nn&&!e.computesBoundsIncludingLinks||(t=e.$a,t===null&&(t=e),t.v())}me.Lj=function(){if(0<this.Gn.count){var e=this.diagram;if(e!==null)for(var t=this.Gn.copy().iterator;t.next();)e.remove(t.value)}hn.prototype.Lj.call(this)},or.prototype.canAddMembers=function(e){var t=this.diagram;if(t===null)return!1;for(t=t.commandHandler,e=Nt(e).iterator;e.next();)if(!t.isValidMember(this,e.value))return!1;return!0},or.prototype.addMembers=function(e,t){var n=this.diagram;if(n===null)return!1;n=n.commandHandler;var r=!0;for(e=Nt(e).iterator;e.next();){var i=e.value;!t||n.isValidMember(this,i)?i.containingGroup=this:r=!1}return r},or.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var e=this.layer;return e===null||!e.allowUngroup?!1:(e=e.diagram,!!(e===null||e.allowUngroup))},me=or.prototype,me.Bd=function(e){var t=(this.U&65536)!==0;if(hn.prototype.Bd.call(this,e),!t)for(!(this.U&65536)&&(this.U=this.U^65536),t=this.Lu();t.next();){var n=t.value;if(e===void 0||!e.contains(n)){var r=n.fromNode;r!==null&&r!==this&&r.Td(this)&&!r.isVisible()?(Ja(n.fromPort),Ja(n.toPort),n.bb()):(r=n.toNode,r!==null&&r!==this&&r.Td(this)&&!r.isVisible()&&(Ja(n.fromPort),Ja(n.toPort),n.bb()))}}},me.Lu=function(){var e=this.diagram!==null&&this.diagram.Pw;if(e&&this.$p!==null)return this.$p.iterator;var t=this.Rj();t.add(this);for(var n=new Kt,r=t.iterator;r.next();){var i=r.value;if(i instanceof hn)for(i=i.linksConnected;i.next();){var o=i.value;t.contains(o)||n.add(o)}}return e&&(this.$p=n),n.iterator},me.iz=function(){var e=this.Rj();e.add(this);for(var t=new Kt,n=e.iterator;n.next();){var r=n.value;if(r instanceof hn)for(r=r.linksConnected;r.next();){var i=r.value,o=i.fromNode;o===null||e.contains(o)&&o!==this||t.add(o),i=i.toNode,i===null||e.contains(i)&&i!==this||t.add(i)}}return t.iterator},me.hz=function(){function e(n,r){n!==null&&(r.add(n),e(n.containingGroup,r))}var t=new Kt;return e(this,t),t},me.Rj=function(){var e=new Kt;return sh(e,this,!0,0,!0),e.remove(this),e},me.Zb=function(e){hn.prototype.Zb.call(this,e);for(var t=this.memberParts;t.next();)t.value.Zb(e)},or.prototype.collapseSubGraph=function(){var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var t=this.Rj();hb(this,t,e,this),e.Ue=!1}};function hb(e,t,n,r){for(var i=e.memberParts;i.next();){var o=i.value;if(o.Zb(!1),o instanceof or&&o.isSubGraphExpanded&&(o.wasSubGraphExpanded=o.isSubGraphExpanded,hb(o,t,n,r)),o instanceof hn)o.Bd(t),n.Aj(o,r);else if(o instanceof nn)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!1}or.prototype.expandSubGraph=function(){var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var t=this.Rj();fb(this,t,e,this),e.Ue=!1}};function fb(e,t,n,r){for(var i=e.memberParts;i.next();){var o=i.value;if(o.Zb(!0),o instanceof or&&o.wasSubGraphExpanded&&(o.wasSubGraphExpanded=!1,fb(o,t,n,r)),o instanceof hn)o.Bd(t),n.Cj(o,r);else if(o instanceof nn)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!0}or.prototype.move=function(e,t){t===void 0&&(t=!1);var n=t?this.location:this.position,r=n.x;n=n.y;var i=e.x,o=e.y;if(!(r===i||isNaN(r)&&isNaN(i))||!(n===o||isNaN(n)&&isNaN(o))){for(r=i-(isNaN(r)?0:r),n=o-(isNaN(n)?0:n),o=Ie.alloc(),hn.prototype.move.call(this,e,t),e=new Kt,t=this.Rj().iterator;t.next();)i=t.value,i instanceof nn&&(i.suspendsRouting&&e.add(i),i.fd||i.fromNode!==this&&i.toNode!==this)&&(i.suspendsRouting=!0);for(t.reset();t.next();)if(i=t.value,!(i.ph()||i instanceof hn&&i.isLinkLabel)){var a=i.position,d=i.location;a.w()?(o.x=a.x+r,o.y=a.y+n,i.position=o):d.w()&&(o.x=d.x+r,o.y=d.y+n,i.location=o)}for(t.reset();t.next();)i=t.value,i instanceof nn&&(i.suspendsRouting=e.contains(i),i.fd||i.fromNode!==this&&i.toNode!==this)&&(a=i.position,o.x=a.x+r,o.y=a.y+n,o.w()?i.move(o):i.bb(),oy(i)&&i.bb());Ie.free(o)}},Mn.Object.defineProperties(or.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(e){var t=(this.U&2048)!==0;t!==e&&(this.U^=2048,this.g("computesBoundsAfterDrag",t,e))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(e){var t=(this.U&4096)!==0;t!==e&&(this.U^=4096,this.g("computesBoundsIncludingLinks",t,e))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(e){var t=(this.U&8192)!==0;t!==e&&(this.U^=8192,this.g("computesBoundsIncludingLocation",t,e))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(e){var t=(this.U&16384)!==0;t!==e&&(this.U^=16384,this.g("handlesDragDropForMembers",t,e))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(e){var t=this.Sc;if(t!==e){e!==null&&e.diagram!==null&&e.diagram.layout===e&&ft("A layout cannot be both the Diagram.layout and a Group.layout: "+e),t!==null&&(t.diagram=null,t.group=null),this.Sc=e;var n=this.diagram;e!==null&&(e.diagram=n,e.group=this),n!==null&&(n.xh=!0),this.g("layout",t,e),n!==null&&n.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(e){var t=this.memberAdded;t!==e&&(Lc(this),this.Ba.Mq=e,this.g("memberAdded",t,e))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(e){var t=this.memberRemoved;t!==e&&(Lc(this),this.Ba.Nq=e,this.g("memberRemoved",t,e))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(e){var t=this.memberValidation;t!==e&&(Lc(this),this.Ba.ij=e,this.g("memberValidation",t,e))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(e){var t=(this.U&256)!==0;t!==e&&(this.U^=256,this.g("ungroupable",t,e))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(e){var t=(this.U&512)!==0;if(t!==e){this.U^=512;var n=this.diagram;if(this.g("isSubGraphExpanded",t,e),t=this.subGraphExpandedChanged,t!==null){var r=!0;n!==null&&(r=n.aa,n.aa=!0),t(this),n!==null&&(n.aa=r)}n!==null&&n.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(i){i.updateAdornments()})):e?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(e){var t=(this.U&1024)!==0;t!==e&&(this.U^=1024,this.g("wasSubGraphExpanded",t,e))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(e){var t=this.subGraphExpandedChanged;t!==e&&(Lc(this),this.Ba.Kr=e,this.g("subGraphExpandedChanged",t,e))}},rh:{get:function(){return(this.U&32768)!==0},set:function(e){(this.U&32768)!==0!==e&&(this.U^=32768)}}}),or.prototype.expandSubGraph=or.prototype.expandSubGraph,or.prototype.collapseSubGraph=or.prototype.collapseSubGraph,or.prototype.findSubGraphParts=or.prototype.Rj,or.prototype.findContainingGroupChain=or.prototype.hz,or.prototype.findExternalNodesConnected=or.prototype.iz,or.prototype.findExternalLinksConnected=or.prototype.Lu,or.prototype.ensureBounds=or.prototype.Va,or.className="Group";function fa(e){at.call(this),this.yb=Ho,this.ko=new xt(NaN,NaN,NaN,NaN),e&&Object.assign(this,e)}Kn(fa,at),fa.prototype.cloneProtected=function(e){at.prototype.cloneProtected.call(this,e),e.yb=this.yb.J(),e.ko=this.ko.copy()},fa.prototype.gh=function(e){if(this.background===null&&this.areaBackground===null)return!1;var t=this.naturalBounds;return Vi(0,0,t.width,t.height,e.x,e.y)},fa.prototype.Wl=function(){var e=this.part;if(e!==null&&(e instanceof or||e instanceof Xr)||ft("Placeholder is not inside a Group or Adornment."),e instanceof or){var t=this.computeBorder(this.ko),n=this.minSize,r=this.dc;for(ei(r,(isFinite(n.width)?Math.max(n.width,t.width):t.width)||0,(isFinite(n.height)?Math.max(n.height,t.height):t.height)||0),this.Ge(0,0,r.width,r.height),r=e.memberParts,n=!1;r.next();)if(r.value.isVisible()){n=!0;break}r=e.diagram,!n||r===null||r.animationManager.Xu(e)||isNaN(t.x)||isNaN(t.y)||(n=Ie.alloc(),n.xi(t,e.locationSpot),n.D(e.location)||(e.location=n),Ie.free(n))}else{t=this.dc,n=this.yb,r=n.left+n.right;var i=n.top+n.bottom,o=e.adornedObject;e.angle=o.li();var a=0;o instanceof hr&&(a=o.strokeWidth);var d=o.Df(),x=o.naturalBounds,O=(x.width+a)*d;a=(x.height+a)*d,e.type!==Xt.Link&&(d=o.ga(e.category==="Selection"?Gr:e.locationSpot,Ie.alloc()),e.location=d,Ie.free(d)),isNaN(O)||isNaN(a)?(e=o.ga(Gr,Ie.alloc()),O=xt.allocAt(e.x,e.y,0,0),O.Ye(o.ga(Pi,e)),O.Ye(o.ga(zo,e)),O.Ye(o.ga(Oo,e)),ei(t,O.width+r||0,O.height+i||0),this.Ge(-n.left,-n.top,t.width,t.height),Ie.free(e),xt.free(O)):(ei(t,O+r||0,a+i||0),this.Ge(-n.left,-n.top,t.width,t.height))}},fa.prototype.eh=function(e,t,n,r){this.actualBounds.h(e,t,n,r)},fa.prototype.computeBorder=function(e){var t=this.part,n=t.diagram,r=n===null||!n.animationManager.isAnimating;if(n!==null&&t instanceof or&&!t.layer.isTemporary&&t.computesBoundsAfterDrag&&this.ko.w()){var i=n.toolManager.findTool("Dragging");if(i===n.currentTool&&(n=i.computeBorder(t,this.ko,e),n!==null))return n}n=xt.alloc(),i=this.computeMemberBounds(n);var o=this.yb;return t instanceof or&&!t.isSubGraphExpanded?e.h(i.x-o.left,i.y-o.top,0,0):e.h(i.x-o.left,i.y-o.top,Math.max(i.width+o.left+o.right,0),Math.max(i.height+o.top+o.bottom,0)),xt.free(n),r&&t instanceof or&&t.computesBoundsIncludingLocation&&t.location.w()&&e.Ye(t.location),e},fa.prototype.computeMemberBounds=function(e){if(!(this.part instanceof or))return e.h(0,0,0,0),e;for(var t=this.part,n=1/0,r=1/0,i=-1/0,o=-1/0,a=t.memberParts;a.next();){var d=a.value;if(d.isVisible()){if(d instanceof nn&&(!t.computesBoundsIncludingLinks||fl(d)||d.fromNode===t||d.toNode===t))continue;d=d.actualBounds,d.left<n&&(n=d.left),d.top<r&&(r=d.top),d.right>i&&(i=d.right),d.bottom>o&&(o=d.bottom)}}return isFinite(n)&&isFinite(r)?e.h(n,r,i-n,o-r):(t=t.location,e.h(t.x,t.y,0,0)),e},Mn.Object.defineProperties(fa.prototype,{padding:{get:function(){return this.yb},set:function(e){typeof e=="number"&&(e=new ar(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.g("padding",t,e),this.v())}}}),fa.className="Placeholder";function nn(e){Fn.call(this,Xt.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=da,this.Om=0,this.Qm=da,this.Rm=NaN,this.qj=ly,this.po=.5,this.wd=null,this.Nb=new Gt().freeze(),this.Tg=this.Mg=null,this.ml=new xt,this.ua=new qt,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ie,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],e&&Object.assign(this,e)}Kn(nn,Fn),nn.prototype.cloneProtected=function(e){Fn.prototype.cloneProtected.call(this,e),e.Qa=this.Qa&-113,e.ff=this.ff,e.gn=this.gn,e.vf=this.vf,e.uo=this.uo,e.qk=this.qk,e.Om=this.Om,e.Qm=this.Qm,e.Rm=this.Rm,e.qj=this.qj,e.po=this.po,this.ba!==null&&(e.ba=this.ba.copy())},me=nn.prototype,me.Af=function(e){Fn.prototype.Af.call(this,e),this.ff=e.ff,this.vf=e.vf,e.Mg=null,e.bb(),e.Sf=this.Sf;var t=e.fromPort;t!==null&&Ja(t),e=e.toPort,e!==null&&Ja(e)},me.qb=function(e){e.classType===nn?(e.value&2)===2?this.routing=e:e===pl||e===Dc||e===fd?this.curve=e:e===wp||e===um||e===cm?this.adjusting=e:e!==ly&&e!==da&&ft("Unknown Link enum value for a Link property: "+e):Fn.prototype.qb.call(this,e)},me.Xc=function(){this.ba===null&&(this.ba=new lp)},me.si=function(){var e=this.fromNode;if(e!==null){var t=e.findVisibleNode();if(t!==null&&(e=t),ca(e)||ih(e))return!1}return e=this.toNode,!(e!==null&&(t=e.findVisibleNode(),t!==null&&(e=t),ca(e)||ih(e)))},me.zv=function(){return!1},me.Av=function(){},me.Zc=function(){return!1},nn.prototype.computeAngle=function(e,t,n){return nn.computeAngle(t,n)},nn.computeAngle=function(e,t){switch(e){default:case da:e=0;break;case Ep:e=t;break;case Cp:e=t+90;break;case Tp:e=t-90;break;case uy:e=t+180;break;case hm:e=ht.bp(t),90<e&&270>e&&(e-=180);break;case _p:e=ht.bp(t+90),90<e&&270>e&&(e-=180);break;case Ap:e=ht.bp(t-90),90<e&&270>e&&(e-=180);break;case fm:if(e=ht.bp(t),45<e&&135>e||225<e&&315>e)return 0;90<e&&270>e&&(e-=180)}return ht.bp(e)};function cd(e){var t=e.fromNode,n=e.toNode,r=null;if(t!==null?r=n!==null?t.px(n):t.containingGroup:n!==null?r=n.containingGroup:r=null,t=r,n=e.Ah,n!==t){n!==null&&ry(n,e),e.Ah=t,t!==null&&ny(t,e);var i=e.containingGroupChanged;if(i!==null){var o=!0,a=e.diagram;a!==null&&(o=a.aa,a.aa=!0),i(e,n,t),a!==null&&(a.aa=o)}!e.fd||e.Lw!==n&&e.Mw!==n||e.bb()}if(e.isLabeledLink)for(e=e.labelNodes;e.next();)e.value.containingGroup=r}me=nn.prototype,me.oh=function(){var e=this.containingGroup;e!==null&&this.fromNode!==e&&this.toNode!==e&&e.computesBoundsIncludingLinks&&Fn.prototype.oh.call(this)},me.To=function(e){var t=this.fromNode;return e===t?this.toNode:t},me.Cz=function(e){var t=this.fromPort;return e===t?this.toPort:t};function db(e,t){e.wd===null&&(e.wd=new Kt),e.wd.add(t),e.v()}me.Vo=function(e){if(Fn.prototype.Vo.call(this,e),Kh(this)&&this.Xo(this.actualBounds),!e){e=this.ef;var t=null;e!==null&&(t=this.fromPort,tm(e,this,t));var n=this.uf;if(n!==null){var r=this.toPort;n===e&&r===t||tm(n,this,r)}Sp(this)}},me.Wo=function(e){if(Fn.prototype.Wo.call(this,e),Kh(this)&&this.Xo(this.actualBounds),!e){e=this.ef;var t=null;e!==null&&(t=this.fromPort,nm(e,this,t));var n=this.uf;if(n!==null){var r=this.toPort;n===e&&r===t||nm(n,this,r)}xp(this)}},me.Lj=function(){if(this.fd=!0,this.wd!==null){var e=this.diagram;if(e!==null)for(var t=this.wd.copy().iterator;t.next();)e.remove(t.value)}this.data!==null&&(e=this.diagram,e!==null&&e.partManager.removeDataForLink(this))},nn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)}},nn.prototype.move=function(e,t){var n=t?this.location:this.position,r=n.x;isNaN(r)&&(r=0);var i=n.y;for(isNaN(i)&&(i=0),r=e.x-r,i=e.y-i,t===!0?Fn.prototype.move.call(this,e,!1):(e=Ie.allocAt(n.x+r,n.y+i),Fn.prototype.move.call(this,e,!1),Ie.free(e)),Mc(this,r,i),e=this.labelNodes;e.next();)t=e.value,n=t.position,t.moveTo(n.x+r,n.y+i)},nn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var e=this.layer;return e===null?!0:e.allowRelink?(e=e.diagram,!!(e===null||e.allowRelink)):!1},nn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var e=this.layer;return e===null?!0:e.allowRelink?(e=e.diagram,!!(e===null||e.allowRelink)):!1},nn.prototype.computeMidPoint=function(e){var t=this.pointsCount;if(t===0)return e.assign(Rn),e;if(t===1)return e.assign(this.i(0)),e;if(t===2){var n=this.i(0),r=this.i(1);return e.h((n.x+r.x)/2,(n.y+r.y)/2),e}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===pl))return this.ua.Pu(.5,e),e.add(this.i(0)),n=this.ua.figures.first(),e.offset(-n.startX,-n.startY),e;if(this.computeCurve()===pl){if(t===3){n=this.i(0),r=this.i(1);var i=this.i(2);return ht.ax(n.x,n.y,r.x,r.y,r.x,r.y,i.x,i.y,e),e}if(r=(t-1)/3|0,n=3*(r/2|0),r%2===1){r=this.i(n),i=this.i(n+1);var o=this.i(n+2);n=this.i(n+3),ht.ax(r.x,r.y,i.x,i.y,o.x,o.y,n.x,n.y,e)}else e.assign(this.i(n));return e}var a=this.flattenedLengths;for(n=this.flattenedTotalLength,i=o=r=0;r<n/2&&o<t&&(i=a[o],!(r+i>n/2));)r+=i,o++;return t=this.i(o),o=this.i(o+1),1>Math.abs(t.x-o.x)?t.y>o.y?e.h(t.x,t.y-(n/2-r)):e.h(t.x,t.y+(n/2-r)):1>Math.abs(t.y-o.y)?t.x>o.x?e.h(t.x-(n/2-r),t.y):e.h(t.x+(n/2-r),t.y):(n=(n/2-r)/i,e.h(t.x+n*(o.x-t.x),t.y+n*(o.y-t.y))),e},nn.prototype.computeMidAngle=function(){var e=this.pointsCount;if(2>e)return NaN;if(e===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===pl))return this.ua.wx(.5);if(this.computeCurve()===pl&&4<=e){var t=(e-1)/3|0,n=3*(t/2|0);if(t%2===1){n=Math.floor(n),e=this.i(n),t=this.i(n+1);var r=this.i(n+2);return n=this.i(n+3),ht.My(e.x,e.y,t.x,t.y,r.x,r.y,n.x,n.y)}if(0<n&&n+1<e)return this.i(n-1).ab(this.i(n+1))}t=this.flattenedLengths,r=this.flattenedTotalLength;var i=0;n=0;for(var o;i<r/2&&n<e&&(o=t[n],!(i+o>r/2));)i+=o,n++;if(t=this.i(n),r=this.i(n+1),1>Math.abs(t.x-r.x)&&1>Math.abs(t.y-r.y)){if(0<n&&n+2<e)return this.i(n-1).ab(this.i(n+2))}else{if(1>Math.abs(t.x-r.x))return t.y>r.y?270:90;if(1>Math.abs(t.y-r.y))return t.x>r.x?180:0}return t.ab(r)},me=nn.prototype,me.i=function(e){return this.Nb.s[e]},me.dd=function(e,t){this.Nb.cd(e,t)},me.L=function(e,t,n){this.Nb.cd(e,new Ie(t,n))},me.Kz=function(e,t){this.Nb.Gb(e,t)},me.m=function(e,t,n){this.Nb.Gb(e,new Ie(t,n))},me.ne=function(e){this.Nb.add(e)},me.yf=function(e,t){this.Nb.add(new Ie(e,t))},me.pv=function(e){this.Nb.mb(e)},me.Fj=function(){this.Nb.clear()};function Mc(e,t,n){if(t!==0||n!==0)if(e.pointsCount===0)e.defaultFromPoint&&e.defaultFromPoint.offset(t,n),e.defaultToPoint&&e.defaultToPoint.offset(t,n);else{for(var r=e.fd,i=new Gt,o=e.Nb.iterator;o.next();){var a=o.value;i.add(new Ie(a.x+t,a.y+n).freeze())}i.freeze(),o=e.Nb,e.Nb=i,a=e.diagram,isNaN(t)||isNaN(n)||a!==null&&a.animationManager.zb?e.v():(e.ke.h(e.ke.x+t,e.ke.y+n),e.pa.h(e.pa.x+t,e.pa.y+n),ua(e)),r?im(e):(e.defaultFromPoint&&(e.defaultFromPoint=e.i(0)),e.defaultToPoint&&(e.defaultToPoint=e.i(e.pointsCount-1))),a!==null&&a.animationManager.zb&&_(a.animationManager,e,i),e.g("points",o,i)}}me.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},me.zf=function(){if(this.Mg!==null){for(var e=this.Mg,t=this.Nb,n=1/0,r=1/0,i=e.s,o=i.length,a=0;a<o;a++){var d=i[a];n=Math.min(d.x,n),r=Math.min(d.y,r)}d=a=1/0;for(var x=t.s,O=x.length,M=0;M<O;M++){var Y=x[M];a=Math.min(Y.x,a),d=Math.min(Y.y,d),Y.freeze()}if(t.freeze(),O===o){for(o=0;o<O;o++)if(M=i[o],Y=x[o],M.x-n!==Y.x-a||M.y-r!==Y.y-d){this.qc();break}}else this.qc();this.Mg=null,n=this.diagram,n!==null&&n.animationManager.zb&&_(n.animationManager,this,t),im(this),this.g("points",e,t)}},me.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function im(e){e.Nb.count===0?e.fd=!1:(e.fd=!0,e.cq=null,e.vt=NaN,e.defaultFromPoint=e.i(0),e.defaultToPoint=e.i(e.pointsCount-1),lm(e,!1))}me.bb=function(){if(!this.suspendsRouting){var e=this.diagram;if(e){if(e.As.contains(this)||e.undoManager.isUndoingRedoing||(e=e.animationManager,e.isTicking&&!e.isAnimating))return;this.Tg===null||e.isTicking||(this.Tg=null)}e=this.path,e!==null&&(this.fd=!1,this.v(),e.v())}},me.vg=function(){if(!this.fd&&!this.computingPoints){var e=!0;try{this.computingPoints=!0,this.uh(),e=this.computePoints()}catch(t){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,e?this.zf():this.rv()}}},nn.prototype.computePoints=function(){if(this.diagram===null)return!1;var e=this.fromNode,t=null;if(e===null?(bf||(bf=new hn,bf.desiredSize=Cr,bf.Va()),this.defaultFromPoint&&(bf.location=this.defaultFromPoint,bf.Va(),t=e=bf)):t=this.fromPort,t!==null&&!e.isVisible()){var n=e.findVisibleNode();n!==null&&n!==e?(e=n,t=n.port):e=n}if(this.Lw=e,e===null||!e.location.w())return!1;for(;!(t===null||t.actualBounds.w()&&t.Ed());)t=t.panel;if(t===null)return!1;var r=this.toNode,i=null;if(r===null?(Sf||(Sf=new hn,Sf.desiredSize=Cr,Sf.Va()),this.defaultToPoint&&(Sf.location=this.defaultToPoint,Sf.Va(),i=r=Sf)):i=this.toPort,i===null||r.isVisible()||(n=r.findVisibleNode(),n!==null&&n!==r?(r=n,i=n.port):r=n),this.Mw=r,r===null||!r.location.w())return!1;for(;!(i===null||i.actualBounds.w()&&i.Ed());)i=i.panel;if(i===null)return!1;var o=this.pointsCount,a=this.computeSpot(!0,t);n=this.computeSpot(!1,i);var d=hd(a),x=hd(n),O=t===i&&t!==null,M=this.isOrthogonal,Y=this.curve===pl;this.Wf=O&&!M?Y=!0:!1;var ie=this.computeAdjusting()===da||O;if(!M&&!O&&d&&x){if(d=!1,!ie&&3<=o&&(ie=this.getLinkPoint(e,t,a,!0,!1,r,i),x=this.getLinkPoint(r,i,n,!1,!1,e,t),d=this.adjustPoints(0,ie,o-1,x))&&(ie=this.getLinkPoint(e,t,a,!0,!1,r,i),x=this.getLinkPoint(r,i,n,!1,!1,e,t),this.adjustPoints(0,ie,o-1,x)),!d)if(this.Fj(),Y){o=this.getLinkPoint(e,t,a,!0,!1,r,i),ie=this.getLinkPoint(r,i,n,!1,!1,e,t),d=ie.x-o.x,x=ie.y-o.y,O=this.computeCurviness(),Y=M=0;var ce=o.x+d/3,ge=o.y+x/3,Te=ce,Ve=ge;ht.B(x,0)?Ve=0<d?Ve-O:Ve+O:(M=-d/x,Y=Math.sqrt(O*O/(M*M+1)),0>O&&(Y=-Y),Te=(0>x?-1:1)*Y+ce,Ve=M*(Te-ce)+ge),ce=o.x+2*d/3,ge=o.y+2*x/3;var He=ce,Xe=ge;ht.B(x,0)?Xe=0<d?Xe-O:Xe+O:(He=(0>x?-1:1)*Y+ce,Xe=M*(He-ce)+ge),this.Fj(),this.ne(o),this.yf(Te,Ve),this.yf(He,Xe),this.ne(ie),this.dd(0,this.getLinkPoint(e,t,a,!0,!1,r,i)),this.dd(3,this.getLinkPoint(r,i,n,!1,!1,e,t))}else o=r,ie=i,r=this.getLinkPoint(e,t,a,!0,!1,o,ie),i=this.getLinkPoint(o,ie,n,!1,!1,e,t),this.hasCurviness()?(ie=i.x-r.x,n=i.y-r.y,a=this.computeCurviness(),e=r.x+ie/2,t=r.y+n/2,o=e,d=t,ht.B(n,0)?d=0<ie?d-a:d+a:(ie=-ie/n,o=Math.sqrt(a*a/(ie*ie+1)),0>a&&(o=-o),o=(0>n?-1:1)*o+e,d=ie*(o-e)+t),this.ne(r),this.yf(o,d),this.ne(i)):(this.ne(r),this.ne(i),d=xt.alloc(),t.mi(d),x=d.ca(i),ie.mi(d),O=d.ca(r),(x||O)&&(a=t.ga(sm(a),new Ie),this.dd(0,this.getLinkPointFromPoint(e,t,a,i,!0,a)),n=ie.ga(sm(n),new Ie),this.dd(1,this.getLinkPointFromPoint(o,ie,n,r,!1,n))),xt.free(d))}else{Y=this.isAvoiding,ie&&(M&&Y||O)&&this.Fj();var Ze=O?this.computeCurviness():0;Y=this.getLinkPoint(e,t,a,!0,M,r,i),ce=Te=ge=0,(M||!d||O)&&(Ve=this.computeEndSegmentLength(e,t,a,!0),ce=this.getLinkDirection(e,t,Y,a,!0,M,r,i),O&&(d||a.D(n)||!M&&a.x+n.x===1&&a.y+n.y===1)&&(ce-=M?90:30,0>Ze&&(ce-=180)),0>ce?ce+=360:360<=ce&&(ce-=360),O&&(Ve+=Math.abs(Ze)*(M?1:2)),ce===0?ge=Ve:ce===90?Te=Ve:ce===180?ge=-Ve:ce===270?Te=-Ve:(ge=Ve*Math.cos(ce*Math.PI/180),Te=Ve*Math.sin(ce*Math.PI/180)),a.Mc()&&O&&(Ve=t.ga(Tr,Ie.alloc()),He=Ie.allocAt(Ve.x+1e3*ge,Ve.y+1e3*Te),this.getLinkPointFromPoint(e,t,Ve,He,!0,Y),Ie.free(Ve),Ie.free(He))),Ve=this.getLinkPoint(r,i,n,!1,M,e,t);var qe=Xe=He=0;if(M||!x||O){var st=this.computeEndSegmentLength(r,i,n,!1);qe=this.getLinkDirection(r,i,Ve,n,!1,M,e,t),O&&(x||a.D(n)||!M&&a.x+n.x===1&&a.y+n.y===1)&&(qe+=M?0:30,0>Ze&&(qe+=180)),0>qe?qe+=360:360<=qe&&(qe-=360),O&&(st+=Math.abs(Ze)*(M?1:2)),qe===0?He=st:qe===90?Xe=st:qe===180?He=-st:qe===270?Xe=-st:(He=st*Math.cos(qe*Math.PI/180),Xe=st*Math.sin(qe*Math.PI/180)),n.Mc()&&O&&(n=i.ga(Tr,Ie.alloc()),a=Ie.allocAt(n.x+1e3*He,n.y+1e3*Xe),this.getLinkPointFromPoint(r,i,n,a,!1,Ve),Ie.free(n),Ie.free(a))}n=Y,(M||!d||O)&&(n=new Ie(Y.x+ge,Y.y+Te)),a=Ve,(M||!x||O)&&(a=new Ie(Ve.x+He,Ve.y+Xe)),!ie&&!M&&d&&3<o&&this.adjustPoints(0,Y,o-2,a)?this.dd(o-1,Ve):!ie&&!M&&x&&3<o&&this.adjustPoints(1,n,o-1,Ve)?this.dd(0,Y):!ie&&(M?6<=o:4<o)&&this.adjustPoints(1,n,o-2,a)?(this.dd(0,Y),this.dd(o-1,Ve)):(this.Fj(),this.ne(Y),(M||!d||O)&&this.ne(n),M&&this.addOrthoPoints(n,ce,a,qe,e,r),(M||!x||O)&&this.ne(a),this.ne(Ve))}return!0};function iy(e,t){return Math.abs(t.x-e.x)>Math.abs(t.y-e.y)?(t.x>=e.x?t.x=e.x+9e9:t.x=e.x-9e9,t.y=e.y):(t.y>=e.y?t.y=e.y+9e9:t.y=e.y-9e9,t.x=e.x),t}nn.prototype.getLinkPointFromPoint=function(e,t,n,r,i,o){if(o===void 0&&(o=new Ie),e===null||t===null)return o.assign(n),o;if(e.isVisible()||(i=e.findVisibleNode(),i!==null&&i!==e&&(t=i.port)),e=null,i=t.panel,i===null||i.se()||(i=i.panel),i===null){i=r.x,r=r.y;var a=n.x;n=n.y}else{e=i.oe,i=1/(e.m11*e.m22-e.m12*e.m21),a=e.m22*i;var d=-e.m12*i,x=-e.m21*i,O=e.m11*i,M=i*(e.m21*e.dy-e.m22*e.dx),Y=i*(e.m12*e.dx-e.m11*e.dy);i=r.x*a+r.y*x+M,r=r.x*d+r.y*O+Y,a=n.x*a+n.y*x+M,n=n.x*d+n.y*O+Y}return t.Sj(i,r,a,n,o),e!==null&&o.transform(e),o};function om(e,t){var n=t.Zn;return n===null&&(n=new xf,n.port=t,n.node=t.part,t.Zn=n),xb(n,e)}nn.prototype.getLinkPoint=function(e,t,n,r,i,o,a,d){if(d===void 0&&(d=new Ie),n.sb()&&!hd(n))return t.ga(n,d),d;if(n.$c()){var x=om(this,t);if(x!==null){if(d.assign(x.Zo),i&&this.routing===gb){var O=om(this,a);if(O!==null&&x.Gl<O.Gl){x=Ie.alloc(),O=Ie.alloc();var M=new xt(t.ga(Gr,x),t.ga(Pi,O)),Y=this.computeSpot(!r,a);e=this.getLinkPoint(o,a,Y,!r,i,e,t,O),(n.Hf(Is)||n.Hf(Bi))&&e.y>=M.y&&e.y<=M.y+M.height?d.y=e.y:(n.Hf(lo)||n.Hf(cs))&&e.x>=M.x&&e.x<=M.x+M.width&&(d.x=e.x),Ie.free(x),Ie.free(O)}}return d}}return n=t.ga(sm(n),Ie.alloc()),this.pointsCount>(i?6:2)?(a=r?this.i(1):this.i(this.pointsCount-2),i&&(a=iy(n,a.copy()))):(x=this.computeSpot(!r,a),o=Ie.alloc(),a=a.ga(sm(x),o),i&&(a=iy(n,a)),Ie.free(o)),this.getLinkPointFromPoint(e,t,n,a,r,d),Ie.free(n),d},nn.prototype.getLinkDirection=function(e,t,n,r,i,o,a,d){e:if(r.sb())var x=r.x>r.y?r.x>1-r.y?0:r.x<1-r.y?270:315:r.x<r.y?r.x>1-r.y?90:r.x<1-r.y?180:135:.5>r.x?225:.5<r.x?45:0;else{if(r.$c()&&(x=om(this,t),x!==null))switch(x.Nc){case 1:x=270;break e;case 2:x=180;break e;default:case 4:x=0;break e;case 8:x=90;break e}x=t.ga(Tr,Ie.alloc()),this.pointsCount>(o?6:2)?(d=i?this.i(1):this.i(this.pointsCount-2),d=o?iy(x,d.copy()):n):(n=Ie.alloc(),d=d.ga(Tr,n),Ie.free(n)),n=Math.abs(d.x-x.x)>Math.abs(d.y-x.y)?d.x>=x.x?0:180:d.y>=x.y?90:270,Ie.free(x),x=n}return r.Mc()&&a.Td(e)&&(x+=180,360<=x&&(x-=360)),hd(r)||(e=t.li(),e===0)||(45<=e&&135>e?x+=90:135<=e&&225>e?x+=180:225<=e&&315>e&&(x+=270),360<=x&&(x-=360)),x},nn.prototype.computeEndSegmentLength=function(e,t,n,r){return t!==null&&n.$c()&&(e=om(this,t),e!==null)?e.Ju:(e=r?this.fromEndSegmentLength:this.toEndSegmentLength,t!==null&&isNaN(e)&&(e=r?t.fromEndSegmentLength:t.toEndSegmentLength),isNaN(e)&&(e=10),e)},nn.prototype.computeSpot=function(e,t){return t===void 0&&(t=null),e?(e=t||this.fromPort,e===null?e=Tr:(t=this.fromSpot,t.Xb()&&(t=e.fromSpot),e=t===Bo?cr:t)):(e=t||this.toPort,e===null?e=Tr:(t=this.toSpot,t.Xb()&&(t=e.toSpot),e=t===Bo?cr:t)),e};function hd(e){return e===cr||e.x===.5&&e.y===.5}function sm(e){return e.x===.5&&e.y===.5?e:Tr}nn.prototype.computeOtherPoint=function(e,t){return this.computeAdjusting()!==da&&4<this.pointsCount?this.computeMidPoint(new Ie):(e=t.Zn,e=e!==null?xb(e,this):null,e!==null?e.Zo:t.ga(Tr))},nn.prototype.computeShortLength=function(e){if(e){if(e=this.fromShortLength,isNaN(e)){var t=this.fromPort;t!==null&&(e=t.fromShortLength)}return isNaN(e)?0:e}return e=this.toShortLength,isNaN(e)&&(t=this.toPort,t!==null&&(e=t.toShortLength)),isNaN(e)?0:e},nn.prototype.Cf=function(e,t,n,r,i,o){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var a=o;if(o===void 0&&(a=Zn.alloc(),a.reset()),a.multiply(this.transform),this.fh(e,a))return kv(this,t,n,i),o===void 0&&Zn.free(a),!0;if(this.Yc(e,a)){var d=!1;if(!this.isAtomic)for(var x=this.O.s,O=x.length;O--;){var M=x[O];if(M.visible||M===this.locationObject){var Y=M.actualBounds,ie=this.naturalBounds;if(!(Y.x>ie.width||Y.y>ie.height||0>Y.x+Y.width||0>Y.y+Y.height)){if(Y=Zn.alloc(),Y.set(a),M instanceof Xt)d=M.Cf(e,t,n,r,i,Y);else if(this.path===M){if(M instanceof hr)if(d=e,ie=r,M.pickable===!1)d=!1;else if(Y.multiply(M.transform),ie)e:{var ce=d,ge=Y;if(M.fh(ce,ge))d=!0;else{if(ge===void 0&&(ge=M.transform,ce.Re(M.actualBounds))){d=!0;break e}d=ce.left,ie=ce.right;var Te=ce.top;ce=ce.bottom;var Ve=Ie.alloc(),He=Ie.alloc(),Xe=Ie.alloc(),Ze=Zn.alloc();Ze.set(ge),Ze.bv(M.transform),Ze.Vj(),He.x=ie,He.y=Te,He.transform(Ze),Ve.x=d,Ve.y=Te,Ve.transform(Ze),ge=!1,Wh(M,Ve,He,Xe)?ge=!0:(Ve.x=ie,Ve.y=ce,Ve.transform(Ze),Wh(M,Ve,He,Xe)?ge=!0:(He.x=d,He.y=ce,He.transform(Ze),Wh(M,Ve,He,Xe)?ge=!0:(Ve.x=d,Ve.y=Te,Ve.transform(Ze),Wh(M,Ve,He,Xe)&&(ge=!0)))),Zn.free(Ze),Ie.free(Ve),Ie.free(He),Ie.free(Xe),d=ge}}else d=M.fh(d,Y)}else d=as(M,e,r,Y);d&&(ie=M,t!==null&&(ie=t(M)),ie&&(n===null||n(ie))&&i.add(ie)),Zn.free(Y)}}}return o===void 0&&Zn.free(a),d||this.background!==null||this.areaBackground!==null}return o===void 0&&Zn.free(a),!1},nn.prototype.computeCurve=function(){if(this.Wf===null){var e=this.fromPort,t=this.isOrthogonal;this.Wf=e!==null&&e===this.toPort&&!t}return this.Wf?pl:this.curve},nn.prototype.computeCorner=function(){if(this.curve===pl)return 0;var e=this.corner;return(isNaN(e)||0>e)&&(e=10),e},nn.prototype.findMidLabel=function(){for(var e=this.path,t=this.O.s,n=t.length,r=0;r<n;r++){var i=t[r];if(i!==e&&!i.isPanelMain&&(i.segmentIndex===-1/0||isNaN(i.segmentIndex)))return i}for(e=this.labelNodes;e.next();)if(t=e.value,t.segmentIndex===-1/0||isNaN(t.segmentIndex))return t;return null},nn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var e=vb;e=Math.max(e,this.computeThickness());var t=this.fromPort,n=this.toPort;if(t!==null&&n!==null){var r=this.findMidLabel();if(r!==null){var i=r.naturalBounds,o=r.margin,a=isNaN(i.width)?30:i.width*r.scale+o.left+o.right;i=isNaN(i.height)?14:i.height*r.scale+o.top+o.bottom,r=r.segmentOrientation,r===Ep||r===hm||r===uy?e=Math.max(e,i):r===Tp||r===Ap||r===Cp||r===_p?e=Math.max(e,a):(t=t.ga(Tr).ab(n.ga(Tr))/180*Math.PI,e=Math.max(e,Math.abs(Math.sin(t)*a)+Math.abs(Math.cos(t)*i)+1)),this.curve===pl&&(e*=1.333)}}return e},nn.prototype.arrangeBundledLinks=function(e,t){if(t)for(t=0;t<e.length;t++){var n=e[t];n.computeAdjusting()===da&&n.bb()}},nn.prototype.computeCurviness=function(){var e=this.curviness;if(isNaN(e)){e=mb;var t=this.Sf;if(t!==null){for(var n=Bn(),r=0,i=t.links,o=0;o<i.length;o++){var a=i[o].computeSpacing();n.push(a),r+=a}for(r=-r/2,o=0;o<i.length;o++){if(i[o]===this){e=r+n[o]/2;break}r+=n[o]}t.Ds===this.fromNode&&(e=-e),wn(n)}}return e},nn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var e=this.path;return e!==null?Math.max(e.strokeWidth,1):1},nn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},nn.prototype.adjustPoints=function(e,t,n,r){var i=this.computeAdjusting();if(this.isOrthogonal){if(i===um)return!1;i===cm&&(i=wp)}switch(i){case um:var o=this.i(e),a=this.i(n);if(!o.Xa(t)||!a.Xa(r)){i=o.x,o=o.y;var d=a.x-i,x=a.y-o,O=Math.sqrt(d*d+x*x);if(!ht.$(O,0)){if(ht.$(d,0))var M=0>x?-Math.PI/2:Math.PI/2;else M=Math.atan(x/Math.abs(d)),0>d&&(M=Math.PI-M);a=t.x;var Y=t.y;d=r.x-a;var ie=r.y-Y;for(x=Math.sqrt(d*d+ie*ie),ht.$(d,0)?ie=0>ie?-Math.PI/2:Math.PI/2:(ie=Math.atan(ie/Math.abs(d)),0>d&&(ie=Math.PI-ie)),O=x/O,M=ie-M,this.dd(e,t),e+=1;e<n;e++)t=this.i(e),d=t.x-i,x=t.y-o,t=Math.sqrt(d*d+x*x),ht.$(t,0)||(ht.$(d,0)?x=0>x?-Math.PI/2:Math.PI/2:(x=Math.atan(x/Math.abs(d)),0>d&&(x=Math.PI-x)),d=x+M,t*=O,this.L(e,a+t*Math.cos(d),Y+t*Math.sin(d)));this.dd(n,r)}}return!0;case cm:if(o=this.i(e),Y=this.i(n),!o.Xa(t)||!Y.Xa(r)){i=o.x,o=o.y,a=Y.x,Y=Y.y,O=(a-i)*(a-i)+(Y-o)*(Y-o),d=t.x,M=t.y,x=r.x,ie=r.y;var ce=1;if(x-d!==0){var ge=(ie-M)/(x-d);ce=Math.sqrt(1+1/(ge*ge))}else ge=9e9;for(this.dd(e,t),e+=1;e<n;e++){t=this.i(e);var Te=t.x,Ve=t.y,He=.5;O!==0&&(He=((i-Te)*(i-a)+(o-Ve)*(o-Y))/O);var Xe=i+He*(a-i),Ze=o+He*(Y-o);t=Math.sqrt((Te-Xe)*(Te-Xe)+(Ve-Ze)*(Ve-Ze)),Ve<ge*(Te-Xe)+Ze&&(t=-t),0<ge&&(t=-t),Te=d+He*(x-d),He=M+He*(ie-M),ge!==0?(t=Te+t/ce,this.L(e,t,He-(t-Te)/ge)):this.L(e,Te,He+t)}this.dd(n,r)}return!0;case wp:e:{if(this.isOrthogonal&&(i=this.i(e),o=this.i(e+1),a=this.i(e+2),d=o.x,M=o.y,Y=d,O=M,ht.B(i.y,o.y)?ht.B(o.x,a.x)?M=t.y:ht.B(o.y,a.y)&&(d=t.x):ht.B(i.x,o.x)&&(ht.B(o.y,a.y)?d=t.x:ht.B(o.x,a.x)&&(M=t.y)),this.L(e+1,d,M),i=this.i(n),o=this.i(n-1),a=this.i(n-2),d=o.x,M=o.y,x=d,ie=M,ht.B(i.y,o.y)?ht.B(o.x,a.x)?M=r.y:ht.B(o.y,a.y)&&(d=r.x):ht.B(i.x,o.x)&&(ht.B(o.y,a.y)?d=r.x:ht.B(o.x,a.x)&&(M=r.y)),this.L(n-1,d,M),oy(this))){this.L(e+1,Y,O),this.L(n-1,x,ie),n=!1;break e}this.dd(e,t),this.dd(n,r),n=!0}return n;default:return!1}},nn.prototype.addOrthoPoints=function(e,t,n,r,i,o){0>t?t+=360:360<=t&&(t-=360),0>r?r+=360:360<=r&&(r-=360);var a=r;t=315<=t||45>t?0:45<=t&&135>t?90:135<=t&&225>t?180:270,r=315<=r||45>r?0:45<=r&&135>r?90:135<=r&&225>r?180:270;var d=i.actualBounds.copy(),x=o.actualBounds.copy();if(d.w()&&x.w()){d.Bc(kp,kp),x.Bc(kp,kp),d.Ye(e),x.Ye(n);var O=Ie.alloc(),M=Ie.alloc();t===0?n.x>e.x||r===270&&n.y<e.y&&x.right>e.x||r===90&&n.y>e.y&&x.right>e.x?(O.h(n.x,e.y),M.h(n.x,(e.y+n.y)/2),r===180?(O.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1),M.x=O.x,M.y=n.y):r===270&&n.y<e.y||r===90&&n.y>e.y?(O.x=e.x<x.left?this.computeMidOrthoPosition(e.x,e.y,x.left,n.y,!1):e.x<x.right&&(r===270&&e.y<x.top||r===90&&e.y>x.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):x.right,M.x=O.x,M.y=n.y):r===0&&e.x<x.left&&e.y>x.top&&e.y<x.bottom&&(O.x=e.x,O.y=e.y<n.y?Math.min(n.y,x.top):Math.max(n.y,x.bottom),M.y=O.y)):(O.h(e.x,n.y),M.h((e.x+n.x)/2,n.y),(r===180||r===90&&n.y<d.top||r===270&&n.y>d.bottom)&&(r===180&&(x.ca(e)||d.ca(n))?O.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.y<e.y&&(r===180||r===90)?O.y=this.computeMidOrthoPosition(e.x,d.top,n.x,Math.max(n.y,x.bottom),!0):n.y>e.y&&(r===180||r===270)&&(O.y=this.computeMidOrthoPosition(e.x,d.bottom,n.x,Math.min(n.y,x.top),!0)),M.x=n.x,M.y=O.y),O.y>d.top&&O.y<d.bottom&&(n.x>=d.left&&n.x<=e.x||e.x<=x.right&&e.x>=n.x?(r===90||r===270)&&(O.h(Math.max((e.x+n.x)/2,e.x),e.y),M.h(O.x,n.y)):(O.y=r===270||(r===0||r===180)&&n.y<e.y?Math.min(n.y,r===0?d.top:Math.min(d.top,x.top)):Math.max(n.y,r===0?d.bottom:Math.max(d.bottom,x.bottom)),M.x=n.x,M.y=O.y))):t===180?n.x<e.x||r===270&&n.y<e.y&&x.left<e.x||r===90&&n.y>e.y&&x.left<e.x?(O.h(n.x,e.y),M.h(n.x,(e.y+n.y)/2),r===0?(O.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1),M.x=O.x,M.y=n.y):r===270&&n.y<e.y||r===90&&n.y>e.y?(O.x=e.x>x.right?this.computeMidOrthoPosition(e.x,e.y,x.right,n.y,!1):e.x>x.left&&(r===270&&e.y<x.top||r===90&&e.y>x.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):x.left,M.x=O.x,M.y=n.y):r===180&&e.x>x.right&&e.y>x.top&&e.y<x.bottom&&(O.x=e.x,O.y=e.y<n.y?Math.min(n.y,x.top):Math.max(n.y,x.bottom),M.y=O.y)):(O.h(e.x,n.y),M.h((e.x+n.x)/2,n.y),(r===0||r===90&&n.y<d.top||r===270&&n.y>d.bottom)&&(r===0&&(x.ca(e)||d.ca(n))?O.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.y<e.y&&(r===0||r===90)?O.y=this.computeMidOrthoPosition(e.x,d.top,n.x,Math.max(n.y,x.bottom),!0):n.y>e.y&&(r===0||r===270)&&(O.y=this.computeMidOrthoPosition(e.x,d.bottom,n.x,Math.min(n.y,x.top),!0)),M.x=n.x,M.y=O.y),O.y>d.top&&O.y<d.bottom&&(n.x<=d.right&&n.x>=e.x||e.x>=x.left&&e.x<=n.x?(r===90||r===270)&&(O.h(Math.min((e.x+n.x)/2,e.x),e.y),M.h(O.x,n.y)):(O.y=r===270||(r===0||r===180)&&n.y<e.y?Math.min(n.y,r===180?d.top:Math.min(d.top,x.top)):Math.max(n.y,r===180?d.bottom:Math.max(d.bottom,x.bottom)),M.x=n.x,M.y=O.y))):t===90?n.y>e.y||r===180&&n.x<e.x&&x.bottom>e.y||r===0&&n.x>e.x&&x.bottom>e.y?(O.h(e.x,n.y),M.h((e.x+n.x)/2,n.y),r===270?(O.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0),M.x=n.x,M.y=O.y):r===180&&n.x<e.x||r===0&&n.x>e.x?(O.y=e.y<x.top?this.computeMidOrthoPosition(e.x,e.y,n.x,x.top,!0):e.y<x.bottom&&(r===180&&e.x<x.left||r===0&&e.x>x.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):x.bottom,M.x=n.x,M.y=O.y):r===90&&e.y<x.top&&e.x>x.left&&e.x<x.right&&(O.x=e.x<n.x?Math.min(n.x,x.left):Math.max(n.x,x.right),O.y=e.y,M.x=O.x)):(O.h(n.x,e.y),M.h(n.x,(e.y+n.y)/2),(r===270||r===0&&n.x<d.left||r===180&&n.x>d.right)&&(r===270&&(x.ca(e)||d.ca(n))?O.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.x<e.x&&(r===270||r===0)?O.x=this.computeMidOrthoPosition(d.left,e.y,Math.max(n.x,x.right),n.y,!1):n.x>e.x&&(r===270||r===180)&&(O.x=this.computeMidOrthoPosition(d.right,e.y,Math.min(n.x,x.left),n.y,!1)),M.x=O.x,M.y=n.y),O.x>d.left&&O.x<d.right&&(n.y>=d.top&&n.y<=e.y||e.y<=x.bottom&&e.y>=n.y?(r===0||r===180)&&(O.h(e.x,Math.max((e.y+n.y)/2,e.y)),M.h(n.x,O.y)):(O.x=r===180||(r===90||r===270)&&n.x<e.x?Math.min(n.x,r===90?d.left:Math.min(d.left,x.left)):Math.max(n.x,r===90?d.right:Math.max(d.right,x.right)),M.x=O.x,M.y=n.y))):n.y<e.y||r===180&&n.x<e.x&&x.top<e.y||r===0&&n.x>e.x&&x.top<e.y?(O.h(e.x,n.y),M.h((e.x+n.x)/2,n.y),r===90?(O.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0),M.x=n.x,M.y=O.y):r===180&&n.x<e.x||r===0&&n.x>=e.x?(O.y=e.y>x.bottom?this.computeMidOrthoPosition(e.x,e.y,n.x,x.bottom,!0):e.y>x.top&&(r===180&&e.x<x.left||r===0&&e.x>x.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):x.top,M.x=n.x,M.y=O.y):r===270&&e.y>x.bottom&&e.x>x.left&&e.x<x.right&&(O.x=e.x<n.x?Math.min(n.x,x.left):Math.max(n.x,x.right),O.y=e.y,M.x=O.x)):(O.h(n.x,e.y),M.h(n.x,(e.y+n.y)/2),(r===90||r===0&&n.x<d.left||r===180&&n.x>d.right)&&(r===90&&(x.ca(e)||d.ca(n))?O.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.x<e.x&&(r===90||r===0)?O.x=this.computeMidOrthoPosition(d.left,e.y,Math.max(n.x,x.right),n.y,!1):n.x>e.x&&(r===90||r===180)&&(O.x=this.computeMidOrthoPosition(d.right,e.y,Math.min(n.x,x.left),n.y,!1)),M.x=O.x,M.y=n.y),O.x>d.left&&O.x<d.right&&(n.y<=d.bottom&&n.y>=e.y||e.y>=x.top&&e.y<=n.y?(r===0||r===180)&&(O.h(e.x,Math.min((e.y+n.y)/2,e.y)),M.h(n.x,O.y)):(O.x=r===180||(r===90||r===270)&&n.x<e.x?Math.min(n.x,r===270?d.left:Math.min(d.left,x.left)):Math.max(n.x,r===270?d.right:Math.max(d.right,x.right)),M.x=O.x,M.y=n.y)));var Y=n;if(this.isAvoiding){var ie=this.diagram;if(ie===null||i===o||this.layer.isTemporary||!Vf(ie)||d.ca(Y)&&!o.Td(i)||x.ca(e)&&!i.Td(o))t=!1;else{var ce=Kf(ie,!0,this.containingGroup,null);if(this.segmentIndex!==17&&ce.Yj(Math.min(e.x,O.x),Math.min(e.y,O.y),Math.abs(e.x-O.x),Math.abs(e.y-O.y))&&ce.Yj(Math.min(O.x,M.x),Math.min(O.y,M.y),Math.abs(O.x-M.x),Math.abs(O.y-M.y))&&ce.Yj(Math.min(M.x,Y.x),Math.min(M.y,Y.y),Math.abs(M.x-Y.x),Math.abs(M.y-Y.y)))t=!1;else{i=e,o=Y;var ge=n=null;if(ie.isVirtualized){ie=ce.bounds.copy(),ie.Bc(-ce.Ho,-ce.Go);var Te=Ie.alloc();dd(ce,e.x,e.y)||(ht.Ff(ie.x,ie.y,ie.x+ie.width,ie.y+ie.height,e.x,e.y,O.x,O.y,Te)?(n=e=Te.copy(),t=Te.ab(O)):ht.Ff(ie.x,ie.y,ie.x+ie.width,ie.y+ie.height,O.x,O.y,M.x,M.y,Te)?(n=e=Te.copy(),t=Te.ab(M)):ht.Ff(ie.x,ie.y,ie.x+ie.width,ie.y+ie.height,M.x,M.y,Y.x,Y.y,Te)&&(n=e=Te.copy(),t=Te.ab(Y))),dd(ce,Y.x,Y.y)||(ht.Ff(ie.x,ie.y,ie.x+ie.width,ie.y+ie.height,Y.x,Y.y,M.x,M.y,Te)?(ge=Y=Te.copy(),r=M.ab(Te)):ht.Ff(ie.x,ie.y,ie.x+ie.width,ie.y+ie.height,M.x,M.y,O.x,O.y,Te)?(ge=Y=Te.copy(),r=O.ab(Te)):ht.Ff(ie.x,ie.y,ie.x+ie.width,ie.y+ie.height,O.x,O.y,e.x,e.y,Te)&&(ge=Y=Te.copy(),r=e.ab(Te))),Ie.free(Te)}d=d.copy().ed(x),d.Bc(ce.Ho*ce.Os,ce.Go*ce.Os),bb(ce,e,t,Y,r,d,!0),x=Zu(ce,Y.x,Y.y),!ce.abort&&x>=pd&&(yb(ce),d.Bc(ce.Ho*ce.Hx,ce.Go*ce.Ix),bb(ce,e,t,Y,r,d,!1),x=Zu(ce,Y.x,Y.y)),!ce.abort&&x<pd&&Zu(ce,Y.x,Y.y)!==Pc?(sy(this,ce,Y.x,Y.y,r,!0,a),d=this.i(2),4>this.pointsCount?(t===0||t===180?(d.x=e.x,d.y=Y.y):(d.x=Y.x,d.y=e.y),this.L(2,d.x,d.y),this.m(3,d.x,d.y)):(a=this.i(3),t===0||t===180?ht.B(d.x,a.x)?(d=t===0?Math.max(d.x,e.x):Math.min(d.x,e.x),this.L(2,d,e.y),this.L(3,d,a.y)):ht.B(d.y,a.y)?(Math.abs(e.y-d.y)<=ce.Go/2&&(this.L(2,d.x,e.y),this.L(3,a.x,e.y)),this.m(2,d.x,e.y)):this.L(2,e.x,d.y):(t===90||t===270)&&(ht.B(d.y,a.y)?(d=t===90?Math.max(d.y,e.y):Math.min(d.y,e.y),this.L(2,e.x,d),this.L(3,a.x,d)):ht.B(d.x,a.x)?(Math.abs(e.x-d.x)<=ce.Ho/2&&(this.L(2,e.x,d.y),this.L(3,e.x,a.y)),this.m(2,e.x,d.y)):this.L(2,d.x,e.y))),n!==null&&(e=this.i(1),a=this.i(2),e.x!==a.x&&e.y!==a.y?t===0||t===180?this.m(2,e.x,a.y):this.m(2,a.x,e.y):t===0||t===180?this.m(2,i.x,n.y):this.m(2,n.x,i.y)),ge!==null&&(r===0||r===180?this.yf(o.x,ge.y):this.yf(ge.x,o.y)),t=!0):t=!1}}}else t=!1;t||(this.ne(O.copy()),this.ne(M.copy())),Ie.free(O),Ie.free(M)}},nn.prototype.computeMidOrthoPosition=function(e,t,n,r,i){var o=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(o=this.computeCurviness()),i?(t+r)/2+o:(e+n)/2+o};function oy(e){if(e.diagram===null||!e.isAvoiding||!Vf(e.diagram))return!1;var t=e.points.s,n=t.length;if(4>n)return!1;e=Kf(e.diagram,!0,e.containingGroup,null);for(var r=1;r<n-2;r++){var i=t[r],o=t[r+1];if(!e.Yj(Math.min(i.x,o.x),Math.min(i.y,o.y),Math.abs(i.x-o.x),Math.abs(i.y-o.y)))return!0}return!1}function sy(e,t,n,r,i,o,a){var d=t.Ho,x=t.Go,O=Zu(t,n,r),M=n,Y=r;for(i===0?M+=d:i===90?Y+=x:i===180?M-=d:Y-=x,i!==a&&O>Yh&&Zu(t,M,Y)!==O-1&&(Zu(t,n-d,r)===O-1?(i=180,M=n-d,Y=r):Zu(t,n+d,r)===O-1?(i=0,M=n+d,Y=r):Zu(t,n,r-x)===O-1?(i=270,M=n,Y=r-x):Zu(t,n,r+x)===O-1&&(i=90,M=n,Y=r+x));O>Yh&&Zu(t,M,Y)===O-1;)n=M,r=Y,i===0?M+=d:i===90?Y+=x:i===180?M-=d:Y-=x,--O;o?O>Yh&&(i===180||i===0?n=Math.floor(n/d)*d+d/2:(i===90||i===270)&&(r=Math.floor(r/x)*x+x/2)):(n=Math.floor(n/d)*d+d/2,r=Math.floor(r/x)*x+x/2),O>Yh&&(o=i,a=n,M=r,i===0?(o=90,M+=x):i===90?(o=180,a-=d):i===180?(o=270,M-=x):i===270&&(o=0,a+=d),Zu(t,a,M)===O-1?sy(e,t,a,M,o,!1,o):(a=n,M=r,i===0?(o=270,M-=x):i===90?(o=0,a+=d):i===180?(o=90,M+=x):i===270&&(o=180,a-=d),Zu(t,a,M)===O-1&&sy(e,t,a,M,o,!1,o))),e.yf(n,r)}nn.prototype.ez=function(e){var t=e.x;e=e.y;for(var n=this.i(0),r=this.i(1),i=Sn(t,e,n.x,n.y,r.x,r.y),o=0,a=1;a<this.pointsCount-1;a++){n=this.i(a+1);var d=Sn(t,e,r.x,r.y,n.x,n.y);r=n,d<i&&(o=a,i=d)}return o},nn.prototype.qc=function(){this.lk=!1,this.v()},nn.prototype.Ul=function(e){if(!(!e&&(this.fd===!1||(e=this.Pb(),this.lk&&(e===null||e.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),e=this.path,e!==null)){e.ua=this.ua;for(var t=this.O.s,n=t.length,r=0;r<n;r++){var i=t[r];i!==e&&i.isPanelMain&&i instanceof hr&&(i.ua=this.ua)}}},nn.prototype.makeGeometry=function(){var e=this.ua,t=this.pointsCount,n=!1,r=this.diagram;r!==null&&Kh(this)&&r.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(r.animationManager.isAnimating||r.currentTool!==r.toolManager)&&(n=!0);var i=this.i(0).copy(),o=i.copy();r=this.Nb.s;var a=this.computeCurve();if(a===pl&&3<=t&&!ht.$(this.smoothness,0))if(t===3){var d=this.i(1);r=Math.min(i.x,d.x);var x=Math.min(i.y,d.y);d=this.i(2),r=Math.min(r,d.x),x=Math.min(x,d.y)}else{if(this.isOrthogonal)for(x=0;x<t;x++)d=r[x],o.x=Math.min(d.x,o.x),o.y=Math.min(d.y,o.y);else for(r=3;r<t;r+=3)r+3>=t&&(r=t-1),x=this.i(r),o.x=Math.min(x.x,o.x),o.y=Math.min(x.y,o.y);r=o.x,x=o.y}else{for(x=0;x<t;x++)d=r[x],o.x=Math.min(d.x,o.x),o.y=Math.min(d.y,o.y);r=o.x,x=o.y}if(r-=this.su.x,x-=this.su.y,i.x-=r,i.y-=x,t!==2||Kh(this)){if(e.type=qt.o,d=W0(e),this.computeShortLength(!0)!==0&&(i=vf(this,i,!0,o)),ud(d,i.x,i.y,!1),a===pl&&3<=t&&!ht.$(this.smoothness,0))if(t===3)n=this.i(1),t=n.x-r,n=n.y-x,i=this.i(2).copy(),i.x-=r,i.y-=x,this.computeShortLength(!1)!==0&&(i=vf(this,i,!1,o)),Rc(d,t,n,t,n,i.x,i.y);else if(this.isOrthogonal){t=Ie.allocAt(r,x),n=Ie.alloc(),n.assign(this.i(1)),o=Ie.allocAt(r,x),i=Ie.allocAt(r,x),a=this.i(0);for(var O,M=this.smoothness/3,Y=1;Y<this.pointsCount-1;Y++){O=this.i(Y);var ie=a,ce=O,ge=this.i(ay(this,O,Y,!1));if((!ht.$(ie.x,ce.x)||!ht.$(ce.x,ge.x))&&(!ht.$(ie.y,ce.y)||!ht.$(ce.y,ge.y))){var Te=M;isNaN(Te)&&(Te=this.smoothness/3);var Ve=ie.x;ie=ie.y;var He=ce.x;ce=ce.y;var Xe=ge.x;ge=ge.y;var Ze=Te*am(Ve,ie,He,ce);Te*=am(He,ce,Xe,ge),ht.$(ie,ce)&&ht.$(He,Xe)&&(He>Ve?ge>ce?(o.x=He-Ze,o.y=ce-Ze,i.x=He+Te,i.y=ce+Te):(o.x=He-Ze,o.y=ce+Ze,i.x=He+Te,i.y=ce-Te):ge>ce?(o.x=He+Ze,o.y=ce-Ze,i.x=He-Te,i.y=ce+Te):(o.x=He+Ze,o.y=ce+Ze,i.x=He-Te,i.y=ce-Te)),ht.$(Ve,He)&&ht.$(ce,ge)&&(ce>ie?(Xe>He?(o.x=He-Ze,o.y=ce-Ze,i.x=He+Te):(o.x=He+Ze,o.y=ce-Ze,i.x=He-Te),i.y=ce+Te):(Xe>He?(o.x=He-Ze,o.y=ce+Ze,i.x=He+Te):(o.x=He+Ze,o.y=ce+Ze,i.x=He-Te),i.y=ce-Te)),(ht.$(Ve,He)&&ht.$(He,Xe)||ht.$(ie,ce)&&ht.$(ce,ge))&&(Ve=.5*(Ve+Xe),ie=.5*(ie+ge),o.x=Ve,o.y=ie,i.x=Ve,i.y=ie),(Y===1||Y===2&&ht.$(a.x,this.i(0).x)&&ht.$(a.y,this.i(0).y))&&(n.x=.5*(a.x+O.x),n.y=.5*(a.y+O.y)),Rc(d,n.x-r,n.y-x,o.x-r,o.y-x,O.x-r,O.y-x),t.set(o),n.set(i),a=O}}O=a.x,a=a.y,M=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(M=vf(this,M.copy(),!1,cn)),O=.5*(O+M.x),a=.5*(a+M.y),Rc(d,i.x-r,i.y-x,O-r,a-x,M.x-r,M.y-x),Ie.free(t),Ie.free(n),Ie.free(o),Ie.free(i)}else for(n=3;n<t;n+=3)o=this.i(n-2),n+3>=t&&(n=t-1),i=this.i(n-1),a=this.i(n),n===t-1&&this.computeShortLength(!1)!==0&&(a=vf(this,a.copy(),!1,cn)),Rc(d,o.x-r,o.y-x,i.x-r,i.y-x,a.x-r,a.y-x);else{for(o=Ie.alloc(),o.assign(this.i(0)),i=Ie.alloc(),i.assign(o),a=this.computeCorner(),Y=1,O=0;Y<t;){if(Y=ay(this,o,Y,1<Y),M=this.i(Y),Y>=t-1){if(!o.D(M))this.computeShortLength(!1)!==0&&(M=vf(this,M.copy(),!1,cn)),yf(this,d,-r,-x,o,M,n);else if(O===0)for(Y=1;Y<t;)i.assign(o),M=this.i(Y++),yf(this,d,-r,-x,o,M,n),o.assign(M);break}if(O=ay(this,M,Y+1,Y<t-3),Y=-r,Ve=-x,ie=M,He=this.i(O),Te=n,ht.B(o.y,ie.y)&&ht.B(ie.x,He.x))if(ge=Math.min(a,Math.abs(ie.x-i.x)/2),ge=Ze=Math.min(ge,Math.abs(He.y-ie.y)/2),ht.B(ge,0))yf(this,d,Y,Ve,o,ie,Te),o.assign(ie);else{var qe=ie.x,st=ie.y;ce=qe,Xe=st,ie.x>o.x?qe=ie.x-ge:qe=ie.x+ge,He.y>ie.y?Xe=ie.y+Ze:Xe=ie.y-Ze,He=Ie.allocAt(qe,st),yf(this,d,Y,Ve,o,He,Te),Ie.free(He),Jg(d,ie.x+Y,ie.y+Ve,ce+Y,Xe+Ve),o.h(ce,Xe)}else ht.B(o.x,ie.x)&&ht.B(ie.y,He.y)?(ge=Math.min(a,Math.abs(ie.y-i.y)/2),ge=Ze=Math.min(ge,Math.abs(He.x-ie.x)/2),ht.B(Ze,0)?(yf(this,d,Y,Ve,o,ie,Te),o.assign(ie)):(qe=ie.x,st=ie.y,ce=qe,Xe=st,ie.y>o.y?st=ie.y-ge:st=ie.y+ge,He.x>ie.x?ce=ie.x+Ze:ce=ie.x-Ze,He=Ie.allocAt(qe,st),yf(this,d,Y,Ve,o,He,Te),Ie.free(He),Jg(d,ie.x+Y,ie.y+Ve,ce+Y,Xe+Ve),o.h(ce,Xe))):(yf(this,d,Y,Ve,o,ie,Te),o.assign(ie));i.assign(M),Y=O}Ie.free(o)}Qg=d}else d=this.i(1).copy(),d.x-=r,d.y-=x,this.computeShortLength(!0)!==0&&(i=vf(this,i,!0,o)),this.computeShortLength(!1)!==0&&(d=vf(this,d,!1,o)),e.type=qt.j,e.startX=i.x,e.startY=i.y,e.endX=d.x,e.endY=d.y;return this.lk=!0,e};function am(e,t,n,r){return e=n-e,isNaN(e)||e===1/0||e===-1/0?NaN:(0>e&&(e=-e),t=r-t,isNaN(t)||t===1/0||t===-1/0?NaN:(0>t&&(t=-t),ht.$(e,0)?t:ht.$(t,0)?e:Math.sqrt(e*e+t*t)))}function vf(e,t,n,r){var i=e.pointsCount;if(2>i)return t;if(n){var o=e.i(1);if(n=o.x-r.x,o=o.y-r.y,r=am(t.x,t.y,n,o),r===0)return t;i=i===2?.5*r:r,e=e.computeShortLength(!0),e>i&&(e=i),i=e*(o-t.y)/r,t.x+=e*(n-t.x)/r,t.y+=i}else{if(o=e.i(i-2),n=o.x-r.x,o=o.y-r.y,r=am(t.x,t.y,n,o),r===0)return t;i=i===2?.5*r:r,e=e.computeShortLength(!1),e>i&&(e=i),i=e*(t.y-o)/r,t.x-=e*(t.x-n)/r,t.y-=i}return t}function ay(e,t,n,r){for(var i=e.pointsCount,o=t;ht.$(t.x,o.x)&&ht.$(t.y,o.y);){if(n>=i)return i-1;o=e.i(n++)}if(!ht.$(t.x,o.x)&&!ht.$(t.y,o.y))return n-1;for(var a=o;ht.$(t.x,o.x)&&ht.$(o.x,a.x)&&(!r||(t.y>=o.y?o.y>=a.y:o.y<=a.y))||ht.$(t.y,o.y)&&ht.$(o.y,a.y)&&(!r||(t.x>=o.x?o.x>=a.x:o.x<=a.x));){if(n>=i)return i-1;a=e.i(n++)}return n-2}nn.prototype.computeJumpLength=function(){return 10};function yf(e,t,n,r,i,o,a){if(!a&&Kh(e)){a=e.computeJumpLength();var d=a/2,x=[],O=0;if(e.isVisible()&&(O=z1(e,i,o,x)),0<O){if(ht.B(i.y,o.y))if(i.x<o.x)for(var M=0;M<O;){var Y=Math.max(i.x,Math.min(x[M++]-d,o.x-a));t.lineTo(Y+n,o.y+r);for(var ie=Y+n,ce=Math.min(Y+a,o.x);M<O&&(Y=x[M],Y<ce+a);)M++,ce=Math.min(Y+d,o.x);Y=o.y-a+r,ce+=n;var ge=o.y+r;e.curve===Dc?ud(t,ce,ge,!1):Rc(t,ie,Y,ce,Y,ce,ge)}else for(--O;0<=O;){for(M=Math.min(i.x,Math.max(x[O--]+d,o.x+a)),t.lineTo(M+n,o.y+r),ie=M+n,Y=Math.max(M-a,o.x);0<=O&&(M=x[O],M>Y-a);)O--,Y=Math.max(M-d,o.x);M=o.y-a+r,Y+=n,ce=o.y+r,e.curve===Dc?ud(t,Y,ce,!1):Rc(t,ie,M,Y,M,Y,ce)}else if(ht.B(i.x,o.x))if(i.y<o.y)for(M=0;M<O;){for(Y=Math.max(i.y,Math.min(x[M++]-d,o.y-a)),t.lineTo(o.x+n,Y+r),ie=Y+r,Y=Math.min(Y+a,o.y);M<O&&(ce=x[M],ce<Y+a);)M++,Y=Math.min(ce+d,o.y);ce=o.x-a+n,ge=o.x+n,Y+=r,e.curve===Dc?ud(t,ge,Y,!1):Rc(t,ce,ie,ce,Y,ge,Y)}else for(--O;0<=O;){for(M=Math.min(i.y,Math.max(x[O--]+d,o.y+a)),t.lineTo(o.x+n,M+r),ie=M+r,M=Math.max(M-a,o.y);0<=O&&(Y=x[O],Y>M-a);)O--,M=Math.max(Y-d,o.y);Y=o.x-a+n,ce=o.x+n,M+=r,e.curve===Dc?ud(t,ce,M,!1):Rc(t,Y,ie,Y,M,ce,M)}}}t.lineTo(o.x+n,o.y+r)}function z1(e,t,n,r){var i=e.diagram;if(i===null||t.D(n))return 0;for(i=i.layers;i.next();){var o=i.value;if(o!==null&&o.visible){o=o.Pa.s;for(var a=o.length,d=0;d<a;d++){var x=o[d];if(x instanceof nn){if(x===e)return 0<r.length&&r.sort(function(M,Y){return M-Y}),r.length;if(x.isVisible()&&Kh(x)){var O=x.routeBounds;O.w()&&e.routeBounds.Yc(O)&&!e.usesSamePort(x)&&(O=x.path,O!==null&&O.Ed()&&G1(t,n,r,x))}}}}}return 0<r.length&&r.sort(function(M,Y){return M-Y}),r.length}function G1(e,t,n,r){for(var i=ht.B(e.y,t.y),o=r.pointsCount,a=r.i(0),d=Ie.alloc(),x=1;x<o;x++){var O=r.i(x);if(x<o-1){var M=r.i(x+1);if(a.y===O.y&&O.y===M.y){if(O.x>a.x&&M.x>=O.x||O.x<a.x&&M.x<=O.x)continue}else if(a.x===O.x&&O.x===M.x&&(O.y>a.y&&M.y>=O.y||O.y<a.y&&M.y<=O.y))continue}e:{M=e.x;var Y=e.y,ie=t.x,ce=t.y,ge=a.x;a=a.y;var Te=O.x,Ve=O.y;if(ht.B(M,ie)){if(!ht.B(Y,ce)&&ht.B(a,Ve)&&Math.min(Y,ce)<a&&Math.max(Y,ce)>a&&Math.min(ge,Te)<M&&Math.max(ge,Te)>M&&!ht.B(ge,Te)){d.x=M,d.y=a,M=!0;break e}}else if(ht.B(Y,ce)&&ht.B(ge,Te)&&Math.min(M,ie)<ge&&Math.max(M,ie)>ge&&Math.min(a,Ve)<Y&&Math.max(a,Ve)>Y&&!ht.B(a,Ve)){d.x=ge,d.y=Y,M=!0;break e}d.x=0,d.y=0,M=!1}M&&(i?n.push(d.x):n.push(d.y)),a=O}Ie.free(d)}function Kh(e){return e=e.curve,e===fd||e===Dc}function lm(e,t){(t||Kh(e))&&(t=e.diagram,t===null||t.animationManager.isTicking||t.Eh.contains(e)||e.ml.width===0&&e.ml.height===0||t.Eh.add(e,e.ml.copy()))}nn.prototype.Xo=function(e){var t=this.layer;if(t!==null&&t.visible&&!t.isTemporary){var n=t.diagram;if(n!==null&&!n.animationManager.isTicking){var r=!1;for(n=n.layers;n.next();){var i=n.value;if(i.visible){if(i===t){r=!0;var o=!1;i=i.Pa.s;for(var a=i.length,d=0;d<a;d++){var x=i[d];x instanceof nn&&(x===this?o=!0:o&&pb(this,x,e))}}else if(r)for(o=i.Pa.s,i=o.length,a=0;a<i;a++)d=o[a],d instanceof nn&&pb(this,d,e)}}}}};function pb(e,t,n){if(t!==null&&t.lk&&t.fd&&Kh(t)){var r=t.routeBounds;r.w()&&(e.routeBounds.Yc(r)||n.Yc(r))&&(e.usesSamePort(t)||t.qc())}}nn.prototype.usesSamePort=function(e){var t=this.pointsCount,n=e.pointsCount;if(0<t&&0<n){var r=this.i(0),i=e.i(0);if(r.Xa(i)||(t=this.i(t-1),e=e.i(n-1),t.Xa(e)||r.Xa(e)||t.Xa(i)))return!0}else if(this.fromNode===e.fromNode||this.toNode===e.toNode||this.fromNode===e.toNode||this.toNode===e.fromNode)return!0;return!1},nn.prototype.isVisible=function(){if(!Fn.prototype.isVisible.call(this))return!1;var e=this.containingGroup,t=!0,n=this.diagram;if(n!==null&&(t=n.isTreePathToChildren),n=this.fromNode,n!==null){if(this.isTreeLink&&t&&!n.isTreeExpanded)return!1;if(n===e)return!0;for(var r=n;r!==null;){if(r.labeledLink===this)return!0;r=r.containingGroup}if(n=n.findVisibleNode(),n===null||n===e)return!1}if(n=this.toNode,n!==null){if(this.isTreeLink&&!t&&!n.isTreeExpanded)return!1;if(n===e)return!0;for(t=n;t!==null;){if(t.labeledLink===this)return!0;t=t.containingGroup}if(t=n.findVisibleNode(),t===null||t===e)return!1}return!0},nn.prototype.Zb=function(e){if(Fn.prototype.Zb.call(this,e),e&&lm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var t=this.wd.iterator;t.next();)t.value.Zb(e)},nn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?wp:this.qk};function Sp(e){var t=e.ef;if(t!==null){var n=e.uf;if(n!==null&&isNaN(e.curviness)){for(var r=e.ff,i=e.vf,o=e=null,a=t.jb.s,d=a.length,x=0;x<d;x++){var O=a[x];(O.ef===t&&O.ff===r&&O.uf===n&&O.vf===i||O.ef===n&&O.ff===i&&O.uf===t&&O.vf===r)&&(o===null?o=O:(e===null&&(e=[],e.push(o)),e.push(O)))}if(e!==null){for(o=nb(t,n,r,i),o===null&&(o=new dm(t,r,n,i),tb(t,o),tb(n,o)),o.links=e,t=0;t<e.length;t++)e[t].Sf=o;o.Sl()}}}}function xp(e){var t=e.Sf;t!==null&&isNaN(e.curviness)&&(e.Sf=null,e=t.links.indexOf(e),0<=e&&(we(t.links,e),t.Sl()))}nn.prototype.ph=function(){return!0},Mn.Object.defineProperties(nn.prototype,{fromNode:{get:function(){return this.ef},set:function(e){var t=this.ef;if(t!==e){var n=this.fromPort;t!==null&&(this.uf!==t&&nm(t,this,n),xp(this),this.C(2)),this.ef=e,e!==null&&this.Zb(e.isVisible()),this.Wf=null,this.bb();var r=this.diagram;r!==null&&r.aa&&r.partManager.setFromNodeForLink(this,e,t);var i=this.fromPort,o=this.fromPortChanged;if(o!==null){var a=!0;r!==null&&(a=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=a)}e!==null&&(this.uf!==e&&tm(e,this,i),Sp(this),this.C(1)),this.g("fromNode",t,e),cd(this)}}},fromPortId:{get:function(){return this.ff},set:function(e){var t=this.ff;if(t!==e){var n=this.fromPort;n!==null&&Ja(n),xp(this),this.ff=e;var r=this.fromPort;r!==null&&Ja(r);var i=this.diagram;if(i!==null){var o=this.data,a=i.model;o!==null&&a.ri()&&a.xv(o,e)}n!==r&&(this.Wf=null,this.bb(),o=this.fromPortChanged,o!==null&&(a=!0,i!==null&&(a=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=a))),Sp(this),this.g("fromPortId",t,e)}}},fromPort:{get:function(){var e=this.ef;return e===null?null:e.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(e){var t=this.gn;t!==e&&(this.gn=e,this.g("fromPortChanged",t,e))}},toNode:{get:function(){return this.uf},set:function(e){var t=this.uf;if(t!==e){var n=this.toPort;t!==null&&(this.ef!==t&&nm(t,this,n),xp(this),this.C(2)),this.uf=e,e!==null&&this.Zb(e.isVisible()),this.Wf=null,this.bb();var r=this.diagram;r!==null&&r.aa&&r.partManager.setToNodeForLink(this,e,t);var i=this.toPort,o=this.toPortChanged;if(o!==null){var a=!0;r!==null&&(a=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=a)}e!==null&&(this.ef!==e&&tm(e,this,i),Sp(this),this.C(1)),this.g("toNode",t,e),cd(this)}}},toPortId:{get:function(){return this.vf},set:function(e){var t=this.vf;if(t!==e){var n=this.toPort;n!==null&&Ja(n),xp(this),this.vf=e;var r=this.toPort;r!==null&&Ja(r);var i=this.diagram;if(i!==null){var o=this.data,a=i.model;o!==null&&a.ri()&&a.Cv(o,e)}n!==r&&(this.Wf=null,this.bb(),o=this.toPortChanged,o!==null&&(a=!0,i!==null&&(a=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=a))),Sp(this),this.g("toPortId",t,e)}}},toPort:{get:function(){var e=this.uf;return e===null?null:e.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(e){var t=this.uo;t!==e&&(this.uo=e,this.g("toPortChanged",t,e))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Bo},set:function(e){var t=this.fromSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.Xi=e,this.g("fromSpot",t,e),(t.$c()||e.$c())&&this.fromNode!==null&&Ja(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(e){var t=this.fromEndSegmentLength;t!==e&&(0>e&&An(e,">= 0",nn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.qc(),this.g("fromShortLength",t,e))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Bo},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),(t.$c()||e.$c())&&this.toNode!==null&&Ja(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&An(e,">= 0",nn,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.qc(),this.g("toShortLength",t,e))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?li:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(e){var t=(this.Qa&1)!==0;t!==e&&(this.Qa^=1,this.g("relinkableFrom",t,e),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(e){var t=(this.Qa&2)!==0;t!==e&&(this.Qa^=2,this.g("relinkableTo",t,e),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(e){var t=(this.Qa&4)!==0;t!==e&&(this.Qa^=4,this.g("resegmentable",t,e),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(e){var t=(this.Qa&8)!==0;t!==e&&(this.Qa^=8,this.g("isTreeLink",t,e),this.fromNode!==null&&bp(this.fromNode),this.toNode!==null&&bp(this.toNode))}},path:{get:function(){var e=this.Pb();return e instanceof hr?e:null}},routeBounds:{get:function(){this.vg();var e=this.ml,t=1/0,n=1/0,r=this.pointsCount;if(r===0)e.h(NaN,NaN,0,0);else{if(r===1)r=this.i(0),t=Math.min(r.x,t),n=Math.min(r.y,n),e.h(r.x,r.y,0,0);else if(r===2){r=this.i(0);var i=this.i(1);t=Math.min(r.x,i.x),n=Math.min(r.y,i.y),e.h(r.x,r.y,0,0),e.Ye(i)}else if(this.computeCurve()===pl&&3<=r&&!this.isOrthogonal)if(i=this.i(0),t=i.x,n=i.y,e.h(t,n,0,0),r===3){r=this.i(1),t=Math.min(r.x,t),n=Math.min(r.y,n);var o=this.i(2);t=Math.min(o.x,t),n=Math.min(o.y,n),ht.Dl(i.x,i.y,r.x,r.y,r.x,r.y,o.x,o.y,.5,e)}else for(o=3;o<r;o+=3){var a=this.i(o-2);o+3>=r&&(o=r-1);var d=this.i(o-1),x=this.i(o);ht.Dl(i.x,i.y,a.x,a.y,d.x,d.y,x.x,x.y,.5,e),t=Math.min(x.x,t),n=Math.min(x.y,n),i=x}else for(i=this.i(0),o=this.i(1),t=Math.min(i.x,o.x),n=Math.min(i.y,o.y),e.h(i.x,i.y,0,0),e.Ye(o),i=2;i<r;i++)o=this.i(i),t=Math.min(o.x,t),n=Math.min(o.y,n),e.Ye(o);this.su.h(t-e.x,n-e.y)}return e}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Ie)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||im(this);for(var e=this.cq=[],t=this.pointsCount,n=0;n<t-1;n++){var r=this.i(n),i=this.i(n+1);ht.$(r.x,i.x)?(r=i.y-r.y,0>r&&(r=-r)):ht.$(r.y,i.y)?(r=i.x-r.x,0>r&&(r=-r)):r=Math.sqrt(r.Bf(i)),e.push(r)}}return this.cq}},flattenedTotalLength:{get:function(){var e=this.vt;if(isNaN(e)){for(var t=this.flattenedLengths,n=t.length,r=e=0;r<n;r++)e+=t[r];this.vt=e}return e}},points:{get:function(){return this.Nb},set:function(e){var t=this.Nb;if(t!==e){var n=null;if(Array.isArray(e)){var r=e.length%2===0;if(r){for(var i=0;i<e.length;i++)if(typeof e[i]!="number"||isNaN(e[i])){r=!1;break}}if(r)for(n=new Gt,r=0;r<e.length/2;r++)i=new Ie(e[2*r],e[2*r+1]).freeze(),n.add(i);else{for(r=!0,i=0;i<e.length;i++){var o=e[i];if(!gt(o)||typeof o.x!="number"||isNaN(o.x)||typeof o.y!="number"||isNaN(o.y)){r=!1;break}}if(r)for(n=new Gt,r=0;r<e.length;r++)i=e[r],n.add(new Ie(i.x,i.y).freeze())}}else if(e instanceof Gt)for(n=e.copy(),e=n.iterator;e.next();)e.value.freeze();else ft("Link.points value is not an instance of List or Array: "+e);n.freeze(),this.Nb=n,this.qc(),im(this),e=this.diagram,e!==null&&(e.pi||e.undoManager.isUndoingRedoing||e.As.add(this),e.animationManager.zb&&_(e.animationManager,this,n)),this.g("points",t,n)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(e){(this.Qa&16)!==0!==e&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(e){(this.Qa&32)!==0!==e&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(e){(this.Qa&64)!==0!==e&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(e){this.o=e.copy()}},defaultToPoint:{get:function(){return this.u},set:function(e){this.u=e.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(e){(this.Qa&128)!==0!==e&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!hd(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var e=this.pointsCount;return e===0?0:2>=e?e-1:this.isOrthogonal||!hd(this.computeSpot(!1))?e-2:e-1}},adjusting:{get:function(){return this.qk},set:function(e){var t=this.qk;t!==e&&(this.qk=e,this.g("adjusting",t,e))}},corner:{get:function(){return this.Om},set:function(e){var t=this.Om;t!==e&&(this.Om=e,this.qc(),this.g("corner",t,e))}},curve:{get:function(){return this.Qm},set:function(e){var t=this.Qm;t!==e&&(this.Qm=e,this.bb(),this.qc(),lm(this,t===Dc||t===fd||e===Dc||e===fd),this.g("curve",t,e))}},curviness:{get:function(){return this.Rm},set:function(e){var t=this.Rm;t!==e&&(this.Rm=e,this.bb(),this.qc(),this.g("curviness",t,e))}},routing:{get:function(){return this.qj},set:function(e){var t=this.qj;t!==e&&(this.qj=e,this.Wf=null,this.bb(),lm(this,(t.value&2)===2||(e.value&2)===2),this.g("routing",t,e))}},smoothness:{get:function(){return this.po},set:function(e){var t=this.po;t!==e&&(this.po=e,this.qc(),this.g("smoothness",t,e))}},key:{get:function(){var e=this.diagram;if(e!==null&&e.model.ri())return e.model.Ac(this.data)}}}),nn.prototype.invalidateOtherJumpOvers=nn.prototype.Xo,nn.prototype.findClosestSegment=nn.prototype.ez,nn.prototype.updateRoute=nn.prototype.vg,nn.prototype.invalidateRoute=nn.prototype.bb,nn.prototype.rollbackRoute=nn.prototype.rv,nn.prototype.commitRoute=nn.prototype.zf,nn.prototype.startRoute=nn.prototype.uh,nn.prototype.clearPoints=nn.prototype.Fj,nn.prototype.removePoint=nn.prototype.pv,nn.prototype.addPointAt=nn.prototype.yf,nn.prototype.addPoint=nn.prototype.ne,nn.prototype.insertPointAt=nn.prototype.m,nn.prototype.insertPoint=nn.prototype.Kz,nn.prototype.setPointAt=nn.prototype.L,nn.prototype.setPoint=nn.prototype.dd,nn.prototype.getPoint=nn.prototype.i,nn.prototype.getOtherPort=nn.prototype.Cz,nn.prototype.getOtherNode=nn.prototype.To;var bf=null,Sf=null,ly=new Dt(nn,"Normal",1),W1=new Dt(nn,"Orthogonal",2),V1=new Dt(nn,"AvoidsNodes",6),gb=new Dt(nn,"AvoidsNodesStraight",7),da=new Dt(nn,"None",0),pl=new Dt(nn,"Bezier",9),Dc=new Dt(nn,"JumpGap",10),fd=new Dt(nn,"JumpOver",11),wp=new Dt(nn,"End",17),um=new Dt(nn,"Scale",18),cm=new Dt(nn,"Stretch",19),Ep=new Dt(nn,"OrientAlong",21),Cp=new Dt(nn,"OrientPlus90",22),Tp=new Dt(nn,"OrientMinus90",23),uy=new Dt(nn,"OrientOpposite",24),hm=new Dt(nn,"OrientUpright",25),_p=new Dt(nn,"OrientPlus90Upright",26),Ap=new Dt(nn,"OrientMinus90Upright",27),fm=new Dt(nn,"OrientUpright45",28),mb=16,vb=14,kp=8;nn.className="Link",nn.Normal=ly,nn.Orthogonal=W1,nn.AvoidsNodes=V1,nn.AvoidsNodesStraight=gb,nn.None=da,nn.Bezier=pl,nn.JumpGap=Dc,nn.JumpOver=fd,nn.End=wp,nn.Scale=um,nn.Stretch=cm,nn.OrientAlong=Ep,nn.OrientPlus90=Cp,nn.OrientMinus90=Tp,nn.OrientOpposite=uy,nn.OrientUpright=hm,nn.OrientPlus90Upright=_p,nn.OrientMinus90Upright=Ap,nn.OrientUpright45=fm,nn.EndSegmentStep=8,nn.CurvinessStart=mb,nn.SpacingMin=vb,nn.OrthoShortCut=kp;function dm(e,t,n,r){Wn(this),this.Fe=this.qq=!1,this.Ds=e,this.Ox=t,this.cv=n,this.Px=r,this.links=[]}dm.prototype.Sl=function(){if(!this.qq){var e=this.links;0<e.length&&(e=e[0].diagram,e!==null&&(e.ow.add(this),this.Fe=e.undoManager.isUndoingRedoing))}this.qq=!0},dm.prototype.Nv=function(){if(this.qq){this.qq=!1;var e=this.links;if(0<e.length){var t=e[0],n=t.diagram;n=n===null||n.pi&&!this.Fe,this.Fe=!1,t.arrangeBundledLinks(e,n),e.length===1&&(t.Sf=null,e.length=0)}e.length===0&&(e=this.Ds,this!==null&&e.af!==null&&e.af.remove(this),e=this.cv,this!==null&&e.af!==null&&e.af.remove(this))}},dm.className="LinkBundle";function Np(e){Wn(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=e.width,this.sc=e.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}Np.prototype.initialize=function(e){if(!(0>=e.width||0>=e.height)){var t=e.y,n=e.x+e.width,r=e.y+e.height;if(this.Nd=Math.floor((e.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((t-this.sc)/this.sc)*this.sc,this.En=Math.ceil((n+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((r+2*this.sc)/this.sc)*this.sc,e=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),t=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<e-1||this.ei<t-1){for(n=[],r=0;r<=e;r++)n[r]=new Uint32Array(t);this.ac=n,this.di=e-1,this.ei=t-1}if(e=cy,this.ac!==null)for(t=0;t<=this.di;t++)if(n=this.ac[t],n.fill)n.fill(e);else for(r=0;r<=this.ei;r++)n[r]=e}};function dd(e,t,n){return e.Nd<=t&&t<=e.En&&e.Od<=n&&n<=e.Fn}function Zu(e,t,n){return dd(e,t,n)?(t-=e.Nd,t/=e.rc,n-=e.Od,n/=e.sc,e.ac[t|0][n|0]):cy}function yb(e){if(e.ac!==null)for(var t=0;t<=e.di;t++)for(var n=e.ac[t],r=0;r<=e.ei;r++)n[r]>=Yh&&(n[r]=cy)}Np.prototype.Yj=function(e,t,n,r){if(e>this.En||e+n<this.Nd||t>this.Fn||t+r<this.Od)return!0;e=(e-this.Nd)/this.rc|0,t=(t-this.Od)/this.sc|0,n=Math.max(0,n)/this.rc+1|0;var i=Math.max(0,r)/this.sc+1|0;if(0>e&&(n+=e,e=0),0>t&&(i+=t,t=0),0>n||0>i)return!0;for(r=Math.min(e+n-1,this.di)|0,n=Math.min(t+i-1,this.ei)|0;e<=r;e++){i=this.ac[e];for(var o=t;o<=n;o++)if(i[o]===Pc)return!1}return!0};function Ju(e,t,n,r,i,o,a,d,x){if(!(t<o||t>a||n<d||n>x)){var O=t|0,M=n|0,Y=e.ac[O][M];if(Y>=Yh&&Y<pd)for(i?M+=r:O+=r,Y+=1;o<=O&&O<=a&&d<=M&&M<=x&&!(Y>=e.ac[O][M]);)e.ac[O][M]=Y,Y+=1,i?M+=r:O+=r;if(O=i?M:O,i)if(0<r)for(n+=r;n<O;n+=r)Ju(e,t,n,1,!i,o,a,d,x),Ju(e,t,n,-1,!i,o,a,d,x);else for(n+=r;n>O;n+=r)Ju(e,t,n,1,!i,o,a,d,x),Ju(e,t,n,-1,!i,o,a,d,x);else if(0<r)for(t+=r;t<O;t+=r)Ju(e,t,n,1,!i,o,a,d,x),Ju(e,t,n,-1,!i,o,a,d,x);else for(t+=r;t>O;t+=r)Ju(e,t,n,1,!i,o,a,d,x),Ju(e,t,n,-1,!i,o,a,d,x)}}function pm(e,t,n,r,i,o,a,d,x){t|=0,n|=0;var O=Pc,M=Yh;for(e.ac[t][n]=M;O===Pc&&t>o&&t<a&&n>d&&n<x;)M+=1,e.ac[t][n]=M,i?n+=r:t+=r,O=e.ac[t][n]}function gm(e,t,n,r,i,o,a,d,x){t|=0,n|=0;var O=Pc,M=pd;for(e.ac[t][n]=M;O===Pc&&t>o&&t<a&&n>d&&n<x;)e.ac[t][n]=M,i?n+=r:t+=r,O=e.ac[t][n]}function bb(e,t,n,r,i,o,a){if(e.ac!==null){e.abort=!1;var d=t.x,x=t.y;if(dd(e,d,x)){d-=e.Nd,d/=e.rc,x-=e.Od,x/=e.sc;var O=r.x,M=r.y;if(dd(e,O,M))if(O-=e.Nd,O/=e.rc,M-=e.Od,M/=e.sc,1>=Math.abs(d-O)&&1>=Math.abs(x-M))e.abort=!0;else{var Y=o.x;r=o.y,t=o.x+o.width;var ie=o.y+o.height;Y-=e.Nd,Y/=e.rc,r-=e.Od,r/=e.sc,t-=e.Nd,t/=e.rc,ie-=e.Od,ie/=e.sc,o=Math.max(0,Math.min(e.di,Y|0)),t=Math.min(e.di,Math.max(0,t|0)),Y=Math.max(0,Math.min(e.ei,r|0)),ie=Math.min(e.ei,Math.max(0,ie|0)),r=e.ac,d|=0,x|=0,O|=0,M|=0;var ce=n===0||n===90?1:-1;if(n=n===90||n===270,r[d][x]===Pc?(pm(e,d,x,ce,n,o,t,Y,ie),pm(e,d,x,1,!n,o,t,Y,ie),pm(e,d,x,-1,!n,o,t,Y,ie)):pm(e,d,x,ce,n,d,x,d,x),r[O][M]===Pc?(gm(e,O,M,i===0||i===90?1:-1,i===90||i===270,o,t,Y,ie),gm(e,O,M,1,!(i===90||i===270),o,t,Y,ie),gm(e,O,M,-1,!(i===90||i===270),o,t,Y,ie)):gm(e,O,M,ce,n,O,M,O,M),n=Bn(),a&&Sb(e,O,M,i,d,x,n))for((n[0]!==O||n[1]!==M)&&(n.unshift(M),n.unshift(O)),(n[n.length-2]!==d||n[n.length-1]!==x)&&(n.push(d),n.push(x)),e=Yh,i=n[n.length-2],a=n[n.length-1],r[i][a]=e++,o=n.length-4;0<=o;o-=2)for(i=n[o+2],a=n[o+3],t=n[o],O=n[o+1];t>i?i++:t<i?i--:O>a?a++:O<a&&a--,r[i][a]=e++,i!==t||a!==O;);else Ju(e,d,x,1,!1,o,t,Y,ie),Ju(e,d,x,-1,!1,o,t,Y,ie),Ju(e,d,x,1,!0,o,t,Y,ie),Ju(e,d,x,-1,!0,o,t,Y,ie);wn(n)}}}}function Sb(e,t,n,r,i,o,a){for(var d=e.ac,x=t,O=n;;){if(x===i&&O===o)return!0;var M=x,Y=O;if(r===0)if(M<i)M++;else break;else if(r===90)if(Y<o)Y++;else break;else if(r===180)if(M>i)M--;else break;else if(Y>o)Y--;else break;var ie=d[M][Y];if(ie===0||ie===hy)break;x=M,O=Y}for(;;){if(M=r,Y=x,ie=O,r===0?ie<o?(M=90,ie++):ie>o&&(M=270,ie--):r===90?Y<i?(M=0,Y++):Y>i&&(M=180,Y--):r===180?ie<o?(M=90,ie++):ie>o&&(M=270,ie--):Y<i?(M=0,Y++):Y>i&&(M=180,Y--),Y=d[Y][ie],M!==r&&Y!==0&&Y!==hy){if(a.push(x),a.push(O),Sb(e,x,O,M,i,o,a))return!0;a.pop(),a.pop()}if(d[x][O]=hy,r===0){if(x===t)return!1;x--}else if(r===90){if(O===n)return!1;O--}else if(r===180){if(x===t)return!1;x++}else{if(O===n)return!1;O++}}}Mn.Object.defineProperties(Np.prototype,{bounds:{get:function(){return new xt(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(e){0<e&&e!==this.rc&&(this.rc=e,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(e){0<e&&e!==this.sc&&(this.sc=e,this.initialize(this.bounds))}}});var Pc=0,Yh=1,pd=999999,cy=pd+1,hy=pd+2;Np.className="PositionArray";function xf(){Wn(this),this.port=this.node=null,this.pe=[],this.ap=!1}xf.prototype.toString=function(){for(var e=this.pe,t=this.node.toString()+" "+e.length.toString()+":",n=0;n<e.length;n++){var r=e[n];r!==null&&(t+=`
`+r.toString())}return t};function K1(e,t,n,r){switch(t=t.offsetY,t){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(t){case 9:return 180<n?270:90;case 6:return 90<n&&270>=n?180:0}switch(e=180*Math.atan2(e.height,e.width)/Math.PI,t){case 3:return n>e&&n<=180+e?180:270;case 5:return n>180-e&&n<=360-e?270:0;case 12:return n>e&&n<=180+e?90:0;case 10:return n>180-e&&n<=360-e?180:90;case 7:return 90<n&&n<=180+e?180:n>180+e&&n<=360-e?270:0;case 13:return 180<n&&n<=360-e?270:n>e&&180>=n?90:0;case 14:return n>e&&n<=180-e?90:n>180-e&&270>=n?180:0;case 11:return n>180-e&&n<=180+e?180:n>180+e?270:90}return r&&t!==15&&(n-=15,0>n&&(n+=360)),n>e&&n<180-e?90:n>=180-e&&n<=180+e?180:n>180+e&&n<360-e?270:0}xf.prototype.Sl=function(){this.pe.length=0};function xb(e,t){var n=e.pe;if(n.length===0){e:if(!e.ap){n=e.ap,e.ap=!0;var r=null,i=e.node,o=i instanceof or?i:null;if(o===null||o.isSubGraphExpanded)var a=i.isTreeExpanded?i.findLinksConnected(e.port.portId):i.qx();else{if(!o.actualBounds.w()){e.ap=n;break e}r=o,a=r.Lu()}o=e.pe.length=0;var d=e.port.ga(Gr,Ie.alloc()),x=e.port.ga(Pi,Ie.alloc());for(i=xt.allocAt(d.x,d.y,0,0),i.Ye(x),Ie.free(d),Ie.free(x),d=Ie.allocAt(i.x+i.width/2,i.y+i.height/2),x=e.port.li(),a=a.iterator;a.next();){var O=a.value;if(O.isVisible()&&O.fromPort!==O.toPort){var M=O.fromPort===e.port||O.fromNode!==null&&O.fromNode.Td(r),Y=O.computeSpot(M,e.port);if(Y.$c()&&(M=M?O.toPort:O.fromPort,M!==null)){var ie=M.part;if(ie!==null){var ce=ie.findVisibleNode();ce!==null&&ce!==ie&&(ie=ce,M=ie.port),M=O.computeOtherPoint(ie,M),ie=d.ab(M),ie-=x,0>ie?ie+=360:360<=ie&&(ie-=360),Y=K1(i,Y,ie,O.isOrthogonal),Y===0?(Y=4,180<ie&&(ie-=360)):Y===90?(Y=8,270<ie&&(ie-=360)):Y===180?Y=2:(Y=1,90>ie&&(ie+=360)),ce=e.pe[o],ce===void 0?(ce=new fy(O,ie,Y),e.pe[o]=ce):(ce.link=O,ce.angle=ie,ce.Nc=Y),ce.hv.set(M),o++}}}}for(Ie.free(d),e.pe.sort(xf.prototype.j),x=e.pe.length,r=-1,o=d=0;o<x;o++)a=e.pe[o],a!==void 0&&(a.Nc!==r&&(r=a.Nc,d=0),a.Uo=d,d++);for(r=-1,d=0,o=x-1;0<=o;o--)x=e.pe[o],x!==void 0&&(x.Nc!==r&&(r=x.Nc,d=x.Uo+1),x.Gl=d);if(o=e.pe,Y=e.port,r=e.node.portSpreading,d=Ie.alloc(),x=Ie.alloc(),a=Ie.alloc(),O=Ie.alloc(),Y.ga(Gr,d),Y.ga(zo,x),Y.ga(Pi,a),Y.ga(Oo,O),ce=ie=M=Y=0,r===ty)for(var ge=0;ge<o.length;ge++){var Te=o[ge];if(Te!==null){var Ve=Te.link.computeThickness();switch(Te.Nc){case 8:ie+=Ve;break;case 2:ce+=Ve;break;case 1:Y+=Ve;break;default:case 4:M+=Ve}}}var He=ge=0,Xe=1,Ze=Te=0;for(Ve=0;Ve<o.length;Ve++){var qe=o[Ve];if(qe!==null){if(ge!==qe.Nc){switch(ge=qe.Nc,ge){case 8:var st=a;He=O;break;case 2:st=O,He=d;break;case 1:st=d,He=x;break;default:case 4:st=x,He=a}switch(Te=He.x-st.x,Ze=He.y-st.y,ge){case 8:ie>Math.abs(Te)?(Xe=Math.abs(Te)/ie,ie=Math.abs(Te)):Xe=1;break;case 2:ce>Math.abs(Ze)?(Xe=Math.abs(Ze)/ce,ce=Math.abs(Ze)):Xe=1;break;case 1:Y>Math.abs(Te)?(Xe=Math.abs(Te)/Y,Y=Math.abs(Te)):Xe=1;break;default:case 4:M>Math.abs(Ze)?(Xe=Math.abs(Ze)/M,M=Math.abs(Ze)):Xe=1}He=0}var yt=qe.Zo;if(r===ty){switch(qe=qe.link.computeThickness(),qe*=Xe,yt.set(st),ge){case 8:yt.x=st.x+Te/2+ie/2-He-qe/2;break;case 2:yt.y=st.y+Ze/2+ce/2-He-qe/2;break;case 1:yt.x=st.x+Te/2-Y/2+He+qe/2;break;default:case 4:yt.y=st.y+Ze/2-M/2+He+qe/2}He+=qe}else{var un=.5;r===rm&&(un=(qe.Uo+1)/(qe.Gl+1)),yt.x=st.x+Te*un,yt.y=st.y+Ze*un}}}for(Ie.free(d),Ie.free(x),Ie.free(a),Ie.free(O),st=e.pe,o=0;o<st.length;o++)r=st[o],r!==null&&(r.Ju=e.computeEndSegmentLength(r));e.ap=n,xt.free(i)}n=e.pe}for(e=0;e<n.length;e++)if(i=n[e],i!==null&&i.link===t)return i;return null}xf.prototype.j=function(e,t){return e===t?0:e===null?-1:t===null?1:e.Nc<t.Nc?-1:e.Nc>t.Nc?1:e.angle<t.angle?-1:e.angle>t.angle?1:0},xf.prototype.computeEndSegmentLength=function(e){var t=e.link,n=t.computeEndSegmentLength(this.node,this.port,cr,t.fromPort===this.port),r=e.Uo;if(0>r)return n;var i=e.Gl;if(1>=i||!t.isOrthogonal)return n;t=e.hv;var o=e.Zo;return(e.Nc===2||e.Nc===8)&&(r=i-1-r),((e=e.Nc===2||e.Nc===4)?t.y<o.y:t.x<o.x)?n+8*r:(e?t.y===o.y:t.x===o.x)?n:n+8*(i-1-r)},xf.className="Knot";function fy(e,t,n){this.link=e,this.angle=t,this.Nc=n,this.hv=new Ie,this.Gl=this.Uo=0,this.Zo=new Ie,this.Ju=0}fy.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},fy.className="LinkInfo";function ao(e){Wn(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Ie(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,e&&Object.assign(this,e)}ao.prototype.cloneProtected=function(e){e.sn=this.sn,e.Gh=this.Gh,e.yn=this.yn,e.Am.assign(this.Am),e.vn=this.vn,e.un=this.un,e.Em=this.Em,e.xn=!0},ao.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},ao.prototype.qb=function(){},ao.prototype.toString=function(){var e=Ht(this.constructor);return e+="(",this.group!==null&&(e+=" in "+this.group),this.diagram!==null&&(e+=" for "+this.diagram),e+")"},ao.prototype.C=function(){if(this.isValidLayout){var e=this.diagram;if(e!==null&&!e.undoManager.isUndoingRedoing){var t=e.animationManager;!t.isTicking&&(t.defaultAnimation.isAnimating&&t.Cc(),this.isOngoing&&e.pi||this.isInitial&&!e.pi)&&(this.isValidLayout=!1,e.$b())}}},ao.prototype.createNetwork=function(){return new Gi(this)},ao.prototype.makeNetwork=function(e){var t=this.createNetwork();return e instanceof bt?(t.lg(e.nodes,!0),t.lg(e.links,!0)):e instanceof or?t.lg(e.memberParts):t.lg(e.iterator),t},ao.prototype.updateParts=function(){this.isValidLayout=!0;var e=this.diagram;if(e===null&&this.network!==null)for(var t=this.network.vertexes.iterator;t.next();){var n=t.value.node;if(n!==null&&(e=n.diagram,e!==null))break}try{e!==null&&e.Ea("Layout"),this.commitLayout()}finally{e!==null&&e.eb("Layout")}},ao.prototype.commitLayout=function(){if(this.network!==null){for(var e=this.network.vertexes.iterator;e.next();)e.value.commit();if(this.isRouting)for(e=this.network.edges.iterator;e.next();)e.value.commit()}},ao.prototype.doLayout=function(e){var t=new Kt;e instanceof bt?(ah(this,t,e.nodes,!0,this.rh,!0,!1,!0),ah(this,t,e.parts,!0,this.rh,!0,!1,!0)):e instanceof or?ah(this,t,e.memberParts,!1,this.rh,!0,!1,!0):t.addAll(e.iterator),0<t.count&&(e=this.diagram,e!==null&&e.Ea("Layout"),this.doMinimalNoNetworkLayout(t),e!==null&&e.eb("Layout")),this.isValidLayout=!0},ao.prototype.doMinimalNoNetworkLayout=function(e){var t=Math.ceil(Math.sqrt(e.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var n=this.arrangementOrigin.x,r=n,i=this.arrangementOrigin.y,o=0,a=0;for(e=e.iterator;e.next();){var d=e.value;Ip(d);var x=d.measuredBounds,O=x.width;x=x.height,d.moveTo(r,i),d instanceof or&&(d.rh=!1),r+=Math.max(O,50)+20,a=Math.max(a,Math.max(x,50)),o>=t-1?(o=0,r=n,i+=a+20,a=0):o++}},ao.prototype.doMinimalNetworkLayout=function(){var e=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var t=this.arrangementOrigin.x,n=t,r=this.arrangementOrigin.y,i=0,o=0,a=this.network.vertexes.iterator;a.next();){var d=a.value.node;if(!(d===null||d instanceof nn)&&(Ip(d),this.rh(d))){var x=d.measuredBounds,O=x.width;x=x.height,d.moveTo(n,r),d instanceof or&&(d.rh=!1),n+=Math.max(O,50)+20,o=Math.max(o,Math.max(x,50)),i>=e-1?(i=0,n=t,r+=o+20,o=0):i++}}},ao.prototype.rh=function(e){return!!(!e.location.w()||e instanceof or&&e.rh)};function ah(e,t,n,r,i,o,a,d){for(n=n.iterator;n.next();){var x=n.value;r&&!x.isTopLevel||i!==null&&!i(x)||!x.canLayout()||(o&&x instanceof hn?x.isLinkLabel||(x instanceof or&&x.layout===null?ah(e,t,x.memberParts,!1,i,o,a,d):(Ip(x),t.add(x))):a&&x instanceof nn?t.add(x):!d||!x.Zc()||x instanceof hn||(Ip(x),t.add(x)))}}function Ip(e){var t=e.actualBounds;(t.width===0||t.height===0||isNaN(t.width)||isNaN(t.height))&&e.Va()}ao.prototype.ni=function(e,t){var n=this.boundsComputation;return n!==null?(t||(t=new xt),n(e,this,t)):t?(t.set(e.actualBounds),t):e.actualBounds},ao.prototype.ex=function(e){var t=new Kt;return e instanceof bt?(ah(this,t,e.nodes,!0,null,!0,!0,!0),ah(this,t,e.links,!0,null,!0,!0,!0),ah(this,t,e.parts,!0,null,!0,!0,!0)):e instanceof or?ah(this,t,e.memberParts,!1,null,!0,!0,!0):ah(this,t,e.iterator,!1,null,!0,!0,!0),t},ao.prototype.initialOrigin=function(e){var t=this.group;if(t!==null){var n=t.position.copy();return(isNaN(n.x)||isNaN(n.y))&&n.set(e),t=t.placeholder,t!==null&&(n=t.ga(Gr),(isNaN(n.x)||isNaN(n.y))&&n.set(e),e=t.padding,n.x+=e.left,n.y+=e.top),n}return e},Mn.Object.defineProperties(ao.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},group:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e,e!==null&&(this.H=e.diagram))}},isOngoing:{get:function(){return this.sn},set:function(e){this.sn!==e&&(this.sn=e)}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e,e||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(e){this.yn!==e&&(this.yn=e)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(e){this.vn!==e&&(this.vn=e)}},isRealtime:{get:function(){return this.un},set:function(e){this.un!==e&&(this.un=e)}},isValidLayout:{get:function(){return this.xn},set:function(e){this.xn!==e&&(this.xn=e,e||(e=this.diagram,e!==null&&(e.xh=!0)))}},network:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e,e!==null&&(e.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(e){this.Em!==e&&(this.Em=e,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(e){this.Am.D(e)||(this.Am.assign(e),this.C())}}}),ao.prototype.collectParts=ao.prototype.ex,ao.prototype.getLayoutBounds=ao.prototype.ni,ao.prototype.invalidateLayout=ao.prototype.C,ao.className="Layout";function Gi(e){Wn(this),this.Sc=e,this.wf=new Kt,this.ye=new Kt,this.Es=new Et,this.zs=new Et}Gi.prototype.clear=function(){if(this.wf)for(var e=this.wf.iterator;e.next();)e.value.clear();if(this.ye)for(e=this.ye.iterator;e.next();)e.value.clear();this.wf=new Kt,this.ye=new Kt,this.Es=new Et,this.zs=new Et},Gi.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=e)return t;if(t+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<e){for(var n=this.wf.iterator;n.next();)t+=`
`+n.value.toString(e-1);for(n=this.ye.iterator;n.next();)t+=`
`+n.value.toString(e-1)}return t},Gi.prototype.createVertex=function(){return new Jo(this)},Gi.prototype.createEdge=function(){return new Qa(this)},Gi.prototype.lg=function(e,t,n){if(e!==null){for(t===void 0&&(t=!1),n===void 0&&(n=null),n===null&&(n=function(a){if(a instanceof hn)return!a.isLinkLabel;if(a instanceof nn){var d=a.fromNode;return d===null||d.isLinkLabel?!1:(a=a.toNode,!(a===null||a.isLinkLabel))}return!1}),e=e.iterator;e.next();){var r=e.value;if(r instanceof hn&&(!t||r.isTopLevel)&&r.canLayout()&&n(r)){if(r instanceof or&&r.layout===null)this.lg(r.memberParts,!1);else if(this.ki(r)===null){var i=this.createVertex();i.node=r,this.dh(i)}}}for(e.reset();e.next();)if(r=e.value,r instanceof nn&&(!t||r.isTopLevel)&&r.canLayout()&&n(r)&&this.Lo(r)===null){var o=r.fromNode;i=r.toNode,o!==null&&i!==null&&o!==i&&(o=this.findGroupVertex(o),i=this.findGroupVertex(i),o!==null&&i!==null&&this.Zj(o,i,r))}}},Gi.prototype.findGroupVertex=function(e){if(e===null)return null;var t=e.findVisibleNode();if(t===null)return null;if(e=this.ki(t),e!==null)return e;for(t=t.containingGroup;t!==null;){if(e=this.ki(t),e!==null)return e;t=t.containingGroup}return null},me=Gi.prototype,me.dh=function(e){if(e!==null){this.wf.add(e);var t=e.node;t!==null&&this.Es.add(t,e),e.network=this}},me.Bl=function(e){if(e===null)return null;var t=this.ki(e);return t===null&&(t=this.createVertex(),t.node=e,this.dh(t)),t},me.Iu=function(e){if(e!==null&&wb(this,e)){for(var t=e.tg,n=t.count-1;0<=n;n--){var r=t.M(n);this.Mj(r)}for(t=e.mg,e=t.count-1;0<=e;e--)n=t.M(e),this.Mj(n)}};function wb(e,t){if(t===null)return!1;var n=e.wf.remove(t);return n&&(t=t.node,t!==null&&e.Es.remove(t)),n}me.Zy=function(e){e!==null&&(e=this.ki(e),e!==null&&this.Iu(e))},me.ki=function(e){return e===null?null:this.Es.I(e)},me.Bo=function(e){if(e!==null){dy(this,e);var t=e.toVertex;t!==null&&t.Cl(e),t=e.fromVertex,t!==null&&t.zl(e)}};function dy(e,t){if(t!==null){e.ye.add(t);var n=t.link;n!==null&&e.Lo(n)===null&&e.zs.add(n,t),t.network=e}}me.Dy=function(e){if(e===null)return null;var t=e.fromNode,n=e.toNode,r=this.Lo(e);return r===null?(r=this.createEdge(),r.link=e,t!==null&&(r.fromVertex=this.Bl(t)),n!==null&&(r.toVertex=this.Bl(n)),this.Bo(r)):(t!==null?r.fromVertex=this.Bl(t):r.fromVertex=null,n!==null?r.toVertex=this.Bl(n):r.toVertex=null),r},me.Mj=function(e){if(e!==null){var t=e.toVertex;t!==null&&t.Kl(e),t=e.fromVertex,t!==null&&t.Jl(e),py(this,e)}};function py(e,t){t!==null&&e.ye.remove(t)&&(t=t.link,t!==null&&e.zs.remove(t))}me.Yy=function(e){e!==null&&(e=this.Lo(e),e!==null&&this.Mj(e))},me.Lo=function(e){return e===null?null:this.zs.I(e)},me.Zj=function(e,t,n){if(e===null||t===null)return null;if(e.network===this&&t.network===this){var r=this.createEdge();return r.link=n,r.fromVertex=e,r.toVertex=t,this.Bo(r),r}return null},me.gm=function(e){if(e!==null){var t=e.fromVertex,n=e.toVertex;t!==null&&n!==null&&(t.Jl(e),n.Kl(e),e.gm(),t.Cl(e),n.zl(e))}},me.Ko=function(){for(var e=Bn(),t=this.ye.iterator;t.next();){var n=t.value;n.fromVertex===n.toVertex&&e.push(n)}for(t=e.length,n=0;n<t;n++)this.Mj(e[n]);wn(e)},Gi.prototype.deleteArtificialVertexes=function(){for(var e=Bn(),t=this.wf.iterator;t.next();){var n=t.value;n.node===null&&n.data===null&&e.push(n)}for(n=e.length,t=0;t<n;t++)this.Iu(e[t]);for(t=Bn(),n=this.ye.iterator;n.next();){var r=n.value;r.link===null&&r.data===null&&t.push(r)}for(n=t.length,r=0;r<n;r++)this.Mj(t[r]);wn(e),wn(t)};function Y1(e){for(var t=Bn(),n=e.ye.iterator;n.next();){var r=n.value;r.fromVertex!==null&&r.toVertex!==null||t.push(r)}for(n=t.length,r=0;r<n;r++)e.Mj(t[r]);wn(t)}Gi.prototype.Zx=function(e){e===void 0&&(e=!0),e&&(this.deleteArtificialVertexes(),Y1(this),this.Ko()),e=new Gt;for(var t=!0;t;){t=!1;for(var n=this.wf.iterator;n.next();){var r=n.value;if(0<r.tg.count||0<r.mg.count){t=this.layout.createNetwork(),e.add(t),gy(this,t,r),t=!0;break}}}return e.sort(function(i,o){return i===null||o===null||i===o?0:o.vertexes.count-i.vertexes.count}),e};function gy(e,t,n){if(n!==null&&n.network!==t){wb(e,n),t.dh(n);for(var r=n.sourceEdges;r.next();){var i=r.value;i.network!==t&&(py(e,i),dy(t,i),gy(e,t,i.fromVertex))}for(r=n.destinationEdges;r.next();)n=r.value,n.network!==t&&(py(e,n),dy(t,n),gy(e,t,n.toVertex))}}Gi.prototype.dz=function(){for(var e=new Kt,t=this.wf.iterator;t.next();)e.add(t.value.node);for(t=this.ye.iterator;t.next();)e.add(t.value.link);return e},Mn.Object.defineProperties(Gi.prototype,{layout:{get:function(){return this.Sc},set:function(e){e!==null&&(this.Sc=e)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Gi.prototype.findAllParts=Gi.prototype.dz,Gi.prototype.splitIntoSubNetworks=Gi.prototype.Zx,Gi.prototype.deleteSelfEdges=Gi.prototype.Ko,Gi.prototype.reverseEdge=Gi.prototype.gm,Gi.prototype.linkVertexes=Gi.prototype.Zj,Gi.prototype.findEdge=Gi.prototype.Lo,Gi.prototype.deleteLink=Gi.prototype.Yy,Gi.prototype.deleteEdge=Gi.prototype.Mj,Gi.prototype.addLink=Gi.prototype.Dy,Gi.prototype.addEdge=Gi.prototype.Bo,Gi.prototype.findVertex=Gi.prototype.ki,Gi.prototype.deleteNode=Gi.prototype.Zy,Gi.prototype.deleteVertex=Gi.prototype.Iu,Gi.prototype.addNode=Gi.prototype.Bl,Gi.prototype.addVertex=Gi.prototype.dh,Gi.prototype.addParts=Gi.prototype.lg,Gi.className="LayoutNetwork";function Jo(e){Wn(this),this.ob=e,this.j=new xt(0,0,10,10).freeze(),this.o=new Ie(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Gt,this.mg=new Gt}Jo.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Gt,this.mg=new Gt},Jo.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutVertex#"+rr(this);if(0<e&&(t+=this.node!==null?"("+this.node.toString()+")":"",1<e)){e="";for(var n=!0,r=this.tg.iterator;r.next();){var i=r.value;n?n=!1:e+=",",e+=i.toString(0)}for(i="",n=!0,r=this.mg.iterator;r.next();){var o=r.value;n?n=!1:i+=",",i+=o.toString(0)}t+=" sources: "+e+" destinations: "+i}return t},Jo.prototype.commit=function(){var e=this.ub;if(e!==null){var t=this.bounds,n=e.bounds;gt(n)?(n.x=t.x,n.y=t.y,n.width=t.width,n.height=t.height):e.bounds=t.copy()}else if(e=this.node,e!==null){if(t=this.bounds,!(e instanceof or)){n=xt.alloc(),e.Va();var r=this.network.layout.ni(e,n),i=e.locationObject.ga(Tr);if(r.w()&&i.w()){e.moveTo(t.x+this.focusX-(i.x-r.x),t.y+this.focusY-(i.y-r.y)),xt.free(n);return}xt.free(n)}e.moveTo(t.x,t.y)}},Jo.prototype.Cl=function(e){e!==null&&(this.tg.contains(e)||this.tg.add(e))},Jo.prototype.Kl=function(e){e!==null&&this.tg.remove(e)},Jo.prototype.zl=function(e){e!==null&&(this.mg.contains(e)||this.mg.add(e))},Jo.prototype.Jl=function(e){e!==null&&this.mg.remove(e)};function my(e,t){return e=e.Sh,t=t.Sh,e?t?(e=e.text,t=t.text,e<t?-1:e>t?1:0):1:t!==null?-1:0}Mn.Object.defineProperties(Jo.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(e){if(this.ub=e,e!==null&&e.bounds){var t=e.bounds;e=t.x;var n=t.y,r=t.width;t=t.height,this.o.h(r/2,t/2),this.j.h(e,n,r,t)}}},node:{get:function(){return this.Sh},set:function(e){if(this.Sh!==e){this.Sh=e,e.Va();var t=this.network.layout,n=xt.alloc(),r=t.ni(e,n);t=r.x;var i=r.y,o=r.width;if(r=r.height,isNaN(t)&&(t=0),isNaN(i)&&(i=0),this.j.h(t,i,o,r),xt.free(n),!(e instanceof or)&&(e=e.locationObject.ga(Tr),e.w())){this.o.h(e.x-t,e.y-i);return}this.o.h(o/2,r/2)}}},bounds:{get:function(){return this.j},set:function(e){this.j.D(e)||this.j.assign(e)}},focus:{get:function(){return this.o},set:function(e){this.o.D(e)||this.o.assign(e)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(e){var t=this.j;t.x+this.o.x!==e&&(t.ka(),t.x=e-this.o.x,t.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(e){var t=this.j;t.y+this.o.y!==e&&(t.ka(),t.y=e-this.o.y,t.freeze())}},focusX:{get:function(){return this.o.x},set:function(e){var t=this.o;t.x!==e&&(t.ka(),t.x=e,t.freeze())}},focusY:{get:function(){return this.o.y},set:function(e){var t=this.o;t.y!==e&&(t.ka(),t.y=e,t.freeze())}},x:{get:function(){return this.j.x},set:function(e){var t=this.j;t.x!==e&&(t.ka(),t.x=e,t.freeze())}},y:{get:function(){return this.j.y},set:function(e){var t=this.j;t.y!==e&&(t.ka(),t.y=e,t.freeze())}},width:{get:function(){return this.j.width},set:function(e){var t=this.j;t.width!==e&&(t.ka(),t.width=e,t.freeze())}},height:{get:function(){return this.j.height},set:function(e){var t=this.j;t.height!==e&&(t.ka(),t.height=e,t.freeze())}},network:{get:function(){return this.ob},set:function(e){this.ob=e}},sourceVertexes:{get:function(){for(var e=new Kt,t=this.sourceEdges;t.next();)e.add(t.value.fromVertex);return e.iterator}},destinationVertexes:{get:function(){for(var e=new Kt,t=this.destinationEdges;t.next();)e.add(t.value.toVertex);return e.iterator}},vertexes:{get:function(){for(var e=new Kt,t=this.sourceEdges;t.next();)e.add(t.value.fromVertex);for(t=this.destinationEdges;t.next();)e.add(t.value.toVertex);return e.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var e=new Gt,t=this.sourceEdges;t.next();)e.add(t.value);for(t=this.destinationEdges;t.next();)e.add(t.value);return e.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Jo.prototype.deleteDestinationEdge=Jo.prototype.Jl,Jo.prototype.addDestinationEdge=Jo.prototype.zl,Jo.prototype.deleteSourceEdge=Jo.prototype.Kl,Jo.prototype.addSourceEdge=Jo.prototype.Cl,Jo.className="LayoutVertex",Jo.standardComparer=my,Jo.smartComparer=function(e,t){if(e!==null){if(t!==null){e=e.Sh;var n=t.Sh;if(e!==null){if(n!==null){for(t=e.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),e=n.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),n=0;n<t.length;n++)if(e[n]!==""&&e[n]!==void 0){var r=parseFloat(t[n]),i=parseFloat(e[n]);if(isNaN(r))if(isNaN(i)){if(t[n].localeCompare(e[n])!==0)return t[n].localeCompare(e[n])}else return 1;else{if(isNaN(i))return-1;if(r-i!==0)return r-i}}else if(t[n]!=="")return 1;return e[n]!==""&&e[n]!==void 0?-1:0}return 1}return n!==null?-1:0}return 1}return t!==null?-1:0};function Qa(e){Wn(this),this.nb=e,this.qd=this.kd=this.$k=this.ub=null}Qa.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Qa.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutEdge#"+rr(this);return 0<e&&(t+=this.$k!==null?"("+this.$k.toString()+")":"",1<e&&(t+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),t},Qa.prototype.gm=function(){var e=this.kd;this.kd=this.qd,this.qd=e},Qa.prototype.commit=function(){},Qa.prototype.Ax=function(e){return this.qd===e?this.kd:this.kd===e?this.qd:null},Mn.Object.defineProperties(Qa.prototype,{network:{get:function(){return this.nb},set:function(e){this.nb=e}},data:{get:function(){return this.ub},set:function(e){this.ub!==e&&(this.ub=e)}},link:{get:function(){return this.$k},set:function(e){this.$k!==e&&(this.$k=e)}},fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}}}),Qa.prototype.getOtherVertex=Qa.prototype.Ax,Qa.className="LayoutEdge";function Es(e){ao.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new mn(NaN,NaN).freeze(),this.tf=new mn(10,10).freeze(),this.Jb=Rp,this.Rb=vm,this.nd=Op,this.hd=Eb,e&&Object.assign(this,e)}Kn(Es,ao),Es.prototype.cloneProtected=function(e){ao.prototype.cloneProtected.call(this,e),e.zo=this.zo,e.yo=this.yo,e.yg.assign(this.yg),e.tf.assign(this.tf),e.Jb=this.Jb,e.Rb=this.Rb,e.nd=this.nd,e.hd=this.hd},Es.prototype.qb=function(e){e.classType===Es?e===Op||e===bm||e===vy||e===ym?this.sorting=e:e===vm||e===Su?this.arrangement=e:e===Rp||e===mm?this.alignment=e:ft("Unknown enum value: "+e):ao.prototype.qb.call(this,e)},Es.prototype.doLayout=function(e){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var t=this.ex(e);e=this.diagram;for(var n=t.copy().iterator;n.next();){var r=n.value;if(!r.ph()||r.fromNode===null&&r.toNode===null){if(r.Va(),r instanceof or)for(r=r.memberParts;r.next();)t.remove(r.value)}else t.remove(r)}var i=t.Fa();if(i.length!==0){switch(this.sorting){case ym:i.reverse();break;case Op:i.sort(this.comparer);break;case bm:i.sort(this.comparer),i.reverse()}var o=this.wrappingColumn;isNaN(o)&&(o=0);var a=this.wrappingWidth;switch(isNaN(a)&&e!==null?(t=e.padding,a=Math.max(e.viewportBounds.width-t.left-t.right,0)):a=Math.max(this.wrappingWidth,0),0>=o&&0>=a&&(o=1),t=this.spacing.width,isFinite(t)||(t=0),n=this.spacing.height,isFinite(n)||(n=0),e!==null&&e.Ea("Layout"),r=[],this.alignment){case mm:var d=t,x=n,O=xt.alloc(),M=Math.max(this.cellSize.width,1);if(!isFinite(M))for(var Y=M=0;Y<i.length;Y++){var ie=this.ni(i[Y],O);M=Math.max(M,ie.width)}if(M=Math.max(M+d,1),Y=Math.max(this.cellSize.height,1),!isFinite(Y))for(ie=Y=0;ie<i.length;ie++){var ce=this.ni(i[ie],O);Y=Math.max(Y,ce.height)}Y=Math.max(Y+x,1),ie=this.arrangement;for(var ge=ce=this.arrangementOrigin.x,Te=this.arrangementOrigin.y,Ve=0,He=0,Xe=0;Xe<i.length;Xe++){var Ze=i[Xe],qe=this.ni(Ze,O),st=Math.ceil((qe.width+d)/M)*M,yt=Math.ceil((qe.height+x)/Y)*Y;switch(ie){case Su:var un=Math.abs(ge-qe.width);break;default:un=ge+qe.width}switch((0<o&&Ve>o-1||0<a&&0<Ve&&un-ce>a)&&(r.push(new xt(0,Te,a+d,He)),Ve=0,ge=ce,Te+=He,He=0),He=Math.max(He,yt),ie){case Su:qe=-qe.width;break;default:qe=0}switch(Ze.moveTo(ge+qe,Te),ie){case Su:ge-=st;break;default:ge+=st}Ve++}r.push(new xt(0,Te,a+d,He)),xt.free(O);break;case Rp:for(x=a,M=o,Y=t,ie=n,a=xt.alloc(),ce=Math.max(this.cellSize.width,1),o=Te=O=0,d=Ie.alloc(),ge=0;ge<i.length;ge++)He=i[ge],Ve=this.ni(He,a),He=Oc(He,He.locationObject,He.locationSpot,d),O=Math.max(O,He.x),Te=Math.max(Te,Ve.width-He.x),o=Math.max(o,He.y);switch(ge=this.arrangement,ge){case Su:O+=Y;break;default:Te+=Y}ce=isFinite(ce)?Math.max(ce+Y,1):Math.max(O+Te,1);var kn=He=this.arrangementOrigin.x;for(Xe=this.arrangementOrigin.y,Te=0,x>=O&&(x-=O),O=Ze=0,st=Math.max(this.cellSize.height,1),qe=o=0,yt=!0,Ve=Ie.alloc(),un=0;un<i.length;un++){var En=i[un],tn=this.ni(En,a),Bt=Oc(En,En.locationObject,En.locationSpot,d);if(0<Te)switch(ge){case Su:kn=(kn-He-(tn.width-Bt.x))/ce,kn=ht.$(Math.round(kn),kn)?Math.round(kn):Math.floor(kn),kn=kn*ce+He;break;default:kn=(kn-He+Bt.x)/ce,kn=ht.$(Math.round(kn),kn)?Math.round(kn):Math.ceil(kn),kn=kn*ce+He}else switch(ge){case Su:Ze=kn+Bt.x+tn.width;break;default:Ze=kn-Bt.x}switch(ge){case Su:var ir=-(kn+Bt.x)+Ze;break;default:ir=kn+tn.width-Bt.x-Ze}if(0<M&&Te>M-1||0<x&&0<Te&&ir>x){for(r.push(new xt(0,yt?Xe-o:Xe,x+Y,qe+o+ie)),kn=0;kn<Te&&un!==Te;kn++){ir=i[un-Te+kn];var Jn=Oc(ir,ir.locationObject,ir.locationSpot,Ve);ir.moveTo(ir.position.x,ir.position.y+o-Jn.y)}qe+=ie,Xe=yt?Xe+qe:Xe+(qe+o),Te=qe=o=0,kn=He,yt=!1}switch(kn===He&&(O=ge===Su?Math.max(O,tn.width-Bt.x):Math.min(O,-Bt.x)),o=Math.max(o,Bt.y),qe=Math.max(qe,tn.height-Bt.y),isFinite(st)&&(qe=Math.max(qe,Math.max(tn.height,st)-Bt.y)),yt?En.moveTo(kn-Bt.x,Xe-Bt.y):En.moveTo(kn-Bt.x,Xe),ge){case Su:kn-=Bt.x+Y;break;default:kn+=tn.width-Bt.x+Y}Te++}if(r.push(new xt(0,Xe,x+Y,(yt?qe:qe+o)+ie)),i.length!==Te)for(x=0;x<Te;x++)M=i[i.length-Te+x],Y=Oc(M,M.locationObject,M.locationSpot,d),M.moveTo(M.position.x,M.position.y+o-Y.y);if(Ie.free(d),Ie.free(Ve),ge===Su)for(i=0;i<r.length;i++)o=r[i],o.width+=O,o.x-=O;else for(i=0;i<r.length;i++)o=r[i],o.x>O&&(o.width+=o.x-O,o.x=O);xt.free(a)}for(d=o=a=i=0;d<r.length;d++)x=r[d],i=Math.min(i,x.x),a=Math.min(a,x.y),o=Math.max(o,x.x+x.width);this.arrangement===Su?this.commitLayers(r,new Ie(i+t/2-(o+i),a-n/2)):this.commitLayers(r,new Ie(i-t/2,a-n/2)),e!==null&&e.eb("Layout"),this.isValidLayout=!0}},Es.prototype.commitLayers=function(){};function Eb(e,t){return e=e.text,t=t.text,e<t?-1:e>t?1:0}Mn.Object.defineProperties(Es.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(e){this.zo!==e&&(0<e||isNaN(e))&&(this.zo=e,this.isViewportSized=isNaN(e),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(e){this.yo!==e&&(0<e||isNaN(e))&&(this.yo=e,this.C())}},cellSize:{get:function(){return this.yg},set:function(e){this.yg.D(e)||(this.yg.assign(e),this.C())}},spacing:{get:function(){return this.tf},set:function(e){this.tf.D(e)||(this.tf.assign(e),this.C())}},alignment:{get:function(){return this.Jb},set:function(e){this.Jb===e||e!==Rp&&e!==mm||(this.Jb=e,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==vm&&e!==Su||(this.Rb=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==vy&&e!==ym&&e!==Op&&e!==bm||(this.nd=e,this.C())}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e,this.C())}}});var mm=new Dt(Es,"Position",0),Rp=new Dt(Es,"Location",1),vm=new Dt(Es,"LeftToRight",2),Su=new Dt(Es,"RightToLeft",3),vy=new Dt(Es,"Forward",4),ym=new Dt(Es,"Reverse",5),Op=new Dt(Es,"Ascending",6),bm=new Dt(Es,"Descending",7);Es.className="GridLayout",Es.standardComparer=Eb,Es.smartComparer=function(e,t){if(e!==null){if(t!==null){e=e.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),t=t.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var n=0;n<e.length;n++)if(t[n]!==""&&t[n]!==void 0){var r=parseFloat(e[n]),i=parseFloat(t[n]);if(isNaN(r))if(isNaN(i)){if(e[n].localeCompare(t[n])!==0)return e[n].localeCompare(t[n])}else return 1;else{if(isNaN(i))return-1;if(r-i!==0)return r-i}}else if(e[n]!=="")return 1;return t[n]!==""&&t[n]!==void 0?-1:0}return 1}return t!==null?-1:0},Es.Position=mm,Es.Location=Rp,Es.LeftToRight=vm,Es.RightToLeft=Su,Es.Forward=vy,Es.Reverse=ym,Es.Ascending=Op,Es.Descending=bm;function gi(){this.On=new Kt,this.Dn=new Kt,this.Pa=new Kt,this.cf=new Et,this.bf=new Et,this.aj=new Et,this.H=null,this.tp=!1}me=gi.prototype,me.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},me.Xe=function(e){this.H=e},me.oi=function(e){if(e instanceof hn){if(this.On.add(e),e instanceof or){var t=e.containingGroup;t===null?this.H.ai.add(e):t.gl.add(e),t=e.layout,t!==null&&(t.diagram=this.H)}}else e instanceof nn?this.Dn.add(e):e instanceof Xr||this.Pa.add(e);t=e.data,t===null||e instanceof Xr||(e instanceof nn?this.bf.add(t,e):this.cf.add(t,e))},me.pc=function(e){if(e.Ej(),e instanceof hn){if(this.On.remove(e),e instanceof or){var t=e.containingGroup;t===null?this.H.ai.remove(e):t.gl.remove(e),t=e.layout,t!==null&&(t.diagram=null)}}else e instanceof nn?this.Dn.remove(e):e instanceof Xr||this.Pa.remove(e);t=e.data,t===null||e instanceof Xr||(e instanceof nn?this.bf.remove(t):this.cf.remove(t))},me.Wd=function(){var e=this.H;if(e!==null){for(var t=e.nodeTemplateMap.iterator;t.next();){var n=t.value,r=t.key;(!n.Zc()||n instanceof or)&&ft('Invalid node template in Diagram.nodeTemplateMap: template for "'+r+'" must be a Node or a simple Part, not a Group or Link: '+n)}for(t=e.groupTemplateMap.iterator;t.next();)n=t.value,r=t.key,n instanceof or||ft('Invalid group template in Diagram.groupTemplateMap: template for "'+r+'" must be a Group, not a normal Node or Link: '+n);for(t=e.linkTemplateMap.iterator;t.next();)n=t.value,r=t.key,n instanceof nn||ft('Invalid link template in Diagram.linkTemplateMap: template for "'+r+'" must be a Link, not a normal Node or simple Part: '+n);for(t=Bn(),n=e.selection.iterator;n.next();)(r=n.value.data)&&t.push(r);for(n=Bn(),e=e.highlighteds.iterator;e.next();)(r=e.value.data)&&n.push(r);for(e=Bn(),r=this.nodes.iterator;r.next();){var i=r.value;i.data!==null&&(e.push(i.data),e.push(i.location))}for(r=this.links.iterator;r.next();)i=r.value,i.data!==null&&(e.push(i.data),e.push(i.location));for(r=this.parts.iterator;r.next();)i=r.value,i.data!==null&&(e.push(i.data),e.push(i.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),r=0;r<t.length;r++)i=this.Lc(t[r]),i!==null&&(i.isSelected=!0);for(r=0;r<n.length;r++)i=this.Lc(n[r]),i!==null&&(i.isHighlighted=!0);for(r=0;r<e.length;r+=2)i=this.Lc(e[r]),i!==null&&(i.location=e[r+1]);wn(t),wn(n),wn(e)}},gi.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},gi.prototype.addModeledParts=function(e,t){var n=this,r=this.diagram.model;e.forEach(function(i){r.lb(i)&&Cb(n,i,!1)}),e.forEach(function(i){r.lb(i)&&n.resolveReferencesForData(i)}),t!==!1&&Gf(this.diagram,!1)};function Cb(e,t,n){if(t!=null&&!e.diagram.undoManager.isUndoingRedoing&&!e.cf.contains(t)){n===void 0&&(n=!0);e:{if(t!=null&&!e.H.undoManager.isUndoingRedoing&&!e.cf.contains(t)){var r=e.Ro(t),i=Tb(e,t,r);if(i!==null&&(Hl(i),i=i.copy(),i!==null)){var o=e.diagram.skipsModelSourceBindings;e.diagram.skipsModelSourceBindings=!0,i.Tf=r,i.ub=t,e.tp&&(i.Jg="Tool"),e.diagram.add(i),i.ub=null,i.data=t,e.diagram.skipsModelSourceBindings=o,r=i;break e}}r=null}r!==null&&n&&e.resolveReferencesForData(t)}}gi.prototype.insertLink=function(){return null},gi.prototype.resolveReferencesForData=function(){},gi.prototype.Ro=function(e){return this.H.model.Ro(e)};function Tb(e,t,n){e=e.H;var r=e.model;return r.Xj()&&r.Yu(t)?(t=e.groupTemplateMap.I(n),t===null&&(t=e.groupTemplateMap.I(""),t===null&&(kb||(kb=!0,Un('No Group template found for category "'+n+'"'),Un(" Using default group template")),t=e.ly))):(t=e.nodeTemplateMap.I(n),t===null&&(t=e.nodeTemplateMap.I(""),t===null&&(Ab||(Ab=!0,Un('No Node template found for category "'+n+'"'),Un(" Using default node template")),t=e.ny))),t}gi.prototype.getLinkCategoryForData=function(){return""},gi.prototype.setLinkCategoryForData=function(){},gi.prototype.setFromNodeForLink=function(){},gi.prototype.setToNodeForLink=function(){},gi.prototype.findLinkTemplateForCategory=function(e){var t=this.H,n=t.linkTemplateMap.I(e);return n===null&&(n=t.linkTemplateMap.I(""),n===null&&(Nb||(Nb=!0,Un('No Link template found for category "'+e+'"'),Un(" Using default link template")),n=t.my)),n},gi.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},gi.prototype.Gs=function(e){var t=this;e.forEach(function(n){t.ip(n)})},gi.prototype.ip=function(e){e=this.Lc(e),e!==null&&(Kd(this.diagram,e,!1),this.unresolveReferencesForPart(e))},gi.prototype.unresolveReferencesForPart=function(){},gi.prototype.removeDataForLink=function(){},gi.prototype.findPartForKey=function(e){return e==null?null:(e=this.H.model.hc(e),e!==null?this.cf.I(e):null)},gi.prototype.Vb=function(e){return e==null||(e=this.H.model.hc(e),e===null)?null:(e=this.cf.I(e),e instanceof hn?e:null)},gi.prototype.findLinkForKey=function(){return null},me=gi.prototype,me.Lc=function(e){if(e===null)return null;var t=this.cf.I(e);return t!==null?t:t=this.bf.I(e)},me.ii=function(e){return e===null?null:(e=this.cf.I(e),e instanceof hn?e:null)},me.Kc=function(e){return e===null?null:this.bf.I(e)},me.ms=function(e){for(var t=0;t<arguments.length;++t);t=new Kt;for(var n=this.On.iterator;n.next();){var r=n.value,i=r.data;if(i!==null)for(var o=0;o<arguments.length;o++){var a=arguments[o];if(gt(a)&&yy(this,i,a)){t.add(r);break}}}return t.iterator},me.ls=function(e){for(var t=0;t<arguments.length;++t);t=new Kt;for(var n=this.Dn.iterator;n.next();){var r=n.value,i=r.data;if(i!==null)for(var o=0;o<arguments.length;o++){var a=arguments[o];if(gt(a)&&yy(this,i,a)){t.add(r);break}}}return t.iterator};function yy(e,t,n){for(var r in n){var i=t[r],o=n[r];if(gn(o)){if(!gn(i)||i.length<o.length)return!1;for(var a=0;a<i.length;a++){var d=o[a];if(d!==void 0&&!_b(e,i[a],d))return!1}}else if(!_b(e,i,o))return!1}return!0}function _b(e,t,n){if(typeof n=="function"){if(!n(t))return!1}else if(n instanceof RegExp){if(!t||!n.test(t.toString()))return!1}else if(gt(t)&&gt(n)){if(!yy(e,t,n))return!1}else if(t!==n)return!1;return!0}gi.prototype.doModelChanged=function(e){if(this.H){var t=this.H;if(e.model===t.model){var n=e.change;if(t.doModelChanged(e),t.aa){t.aa=!1;try{var r=e.modelChange;if(r!=="")if(n===ji){if(r==="nodeCategory"){var i=this.Lc(e.object),o=e.newValue;i!==null&&typeof o=="string"&&(i.category=o)}else r==="nodeDataArray"&&(this.Gs(e.oldValue),this.addModeledParts(e.newValue));t.isModified=!0}else if(n===uo){var a=e.newValue;r==="nodeDataArray"&&gt(a)&&Cb(this,a),t.isModified=!0}else if(n===po){var d=e.oldValue;r==="nodeDataArray"&&gt(d)&&this.ip(d),t.isModified=!0}else n===gs&&(r==="SourceChanged"?e.object!==null?this.updateDataBindings(e.object,e.propertyName):(this.rp(),this.updateAllTargetBindings()):r==="ModelDisplaced"&&this.Wd());else if(n===ji){var x=e.propertyName,O=e.object;O===t.model?(x==="nodeKeyProperty"||x==="nodeCategoryProperty")&&(t.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(O,x),t.isModified=!0}else if(n===uo||n===po){var M=e.change===uo,Y=M?e.newParam:e.oldParam,ie=M?e.newValue:e.oldValue,ce=this.aj.I(e.object);if(Array.isArray(ce))for(e=0;e<ce.length;e++){var ge=ce[e];if(M)Bg(ge,ie,Y,!0);else if(!(0>Y)){var Te=Y+dp(ge);ge.pc(Te,!0),Ov(ge,Te,Y)}}t.isModified=!0}}finally{t.aa=!0}}}}},gi.prototype.updateAllTargetBindings=function(e){e===void 0&&(e="");for(var t=this.parts.iterator;t.next();)t.value.La(e);for(t=this.nodes.iterator;t.next();)t.value.La(e);for(t=this.links.iterator;t.next();)t.value.La(e)},gi.prototype.rp=function(){for(var e=this.H.model,t=new Kt,n=e.nodeDataArray,r=0;r<n.length;r++)t.add(n[r]);var i=[];for(this.nodes.each(function(a){a.data===null||t.contains(a.data)||i.push(a.data)}),this.parts.each(function(a){a.data===null||t.contains(a.data)||i.push(a.data)}),i.forEach(function(a){Bb(e,a,!1)}),r=0;r<n.length;r++){var o=n[r];this.Lc(o)===null&&Fb(e,o,!1)}for(this.refreshDataBoundLinks(),n=this.parts.iterator;n.next();)n.value.updateRelationshipsFromData();for(n=this.nodes.iterator;n.next();)n.value.updateRelationshipsFromData();for(n=this.links.iterator;n.next();)n.value.updateRelationshipsFromData()},gi.prototype.refreshDataBoundLinks=function(){},gi.prototype.updateRelationshipsFromData=function(){},gi.prototype.updateDataBindings=function(e,t){if(typeof t=="string"){var n=this.Lc(e);if(n!==null)n.La(t);else{n=null;for(var r=this.aj.iterator;r.next();){for(var i=r.value,o=0;o<i.length;o++){var a=i[o].sx(e);a!==null&&(n===null&&(n=Bn()),n.push(a))}if(n!==null)break}if(n!==null){for(r=0;r<n.length;r++)n[r].La(t);wn(n)}}e===this.diagram.model.modelData&&this.updateAllTargetBindings(t)}};function by(e,t){var n=t.Hh;if(gn(n)){var r=e.aj.I(n);if(r===null)r=[],r.push(t),e.aj.add(n,r);else{for(e=0;e<r.length;e++)if(r[e]===t)return;r.push(t)}}}function Sy(e,t,n){zh(t,function(a){a=a.O.s;for(var d=a.length,x=0;x<d;x++)Jd(n,a[x])});var r=t.Hh;if(gn(r)){var i=e.aj.I(r);if(i!==null){for(var o=0;o<i.length;o++)if(i[o]===t){i.splice(o,1),i.length===0&&e.aj.remove(r);break}}}}gi.prototype.Kj=function(e,t,n){n===void 0&&(n=!1);var r=new Et;if(gn(e))for(var i=0;i<e.length;i++)Sm(this,e[i],t,r,n);else for(e=e.iterator;e.next();)Sm(this,e.value,t,r,n);if(t!==null){n=t.model,e=t.toolManager.findTool("Dragging"),e=e!==null?e.dragOptions.dragsLink:t.Wm.dragsLink,i=new Kt;for(var o=new Et,a=r.iterator;a.next();){var d=a.value;if(d instanceof nn)e||d.fromNode!==null&&d.toNode!==null||i.add(d);else if(d instanceof hn&&d.data!==null&&n.Tl()){var x=d;d=a.key;var O=d.pg();O!==null&&(O=r.I(O),O!==null?(n.qe(x.data,n.wa(O.data)),x=t.Kc(x.data),d=d.kh(),d!==null&&x!==null&&o.add(d,x)):n.qe(x.data,void 0))}}if(0<i.count&&t.Is(i,!1),0<o.count)for(n=o.iterator;n.next();)r.add(n.key,n.value)}if(t!==null&&this.H!==null&&(t=t.model,n=t.afterCopyFunction,n!==null)){var M=new Et;r.each(function(Y){Y.key.data!==null&&M.add(Y.key.data,Y.value.data)}),n(M,t,this.H.model)}for(t=r.iterator;t.next();)t.value.La();return r};function Sm(e,t,n,r,i){if(t===null||i&&!t.canCopy())return null;if(r.contains(t))return r.I(t);var o=e.copyPartData(t,n);if(!(o instanceof Fn))return null;if(o.isSelected=!1,o.isHighlighted=!1,r.add(t,o),t instanceof hn){for(var a=t.linksConnected;a.next();){var d=a.value;if(d.fromNode===t){var x=r.I(d);x!==null&&(x.fromNode=o)}d.toNode===t&&(d=r.I(d),d!==null&&(d.toNode=o))}if(t instanceof or&&o instanceof or)for(t=t.memberParts;t.next();)a=Sm(e,t.value,n,r,i),a instanceof nn||a===null||(a.containingGroup=o)}else if(t instanceof nn&&o instanceof nn)for(a=t.fromNode,a!==null&&(a=r.I(a),a!==null&&(o.fromNode=a)),a=t.toNode,a!==null&&(a=r.I(a),a!==null&&(o.toNode=a)),t=t.labelNodes;t.next();)a=Sm(e,t.value,n,r,i),a!==null&&a instanceof hn&&(a.labeledLink=o);return o}gi.prototype.copyPartData=function(e,t){var n=null,r=e.data;if(r!==null&&t!==null){var i=t.model;e instanceof nn||(r=i.copyNodeData(r),gt(r)&&(i.xf(r),n=t.Lc(r)))}else Hl(e),n=e.copy(),n!==null&&(i=this.H,t!==null?t.add(n):r!==null&&i!==null&&i.commandHandler!==null&&i.commandHandler.copiesClipboardData&&(t=i.model,i=null,n instanceof nn||(i=t.copyNodeData(r)),gt(i)&&(n.data=i)));return n},Mn.Object.defineProperties(gi.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(e){this.tp=e}}}),gi.prototype.updateAllRelationshipsFromData=gi.prototype.rp,gi.prototype.findLinksByExample=gi.prototype.ls,gi.prototype.findNodesByExample=gi.prototype.ms,gi.prototype.findLinkForData=gi.prototype.Kc,gi.prototype.findNodeForData=gi.prototype.ii,gi.prototype.findPartForData=gi.prototype.Lc,gi.prototype.findNodeForKey=gi.prototype.Vb,gi.prototype.removeModeledPart=gi.prototype.ip,gi.prototype.removeModeledParts=gi.prototype.Gs,gi.prototype.rebuildParts=gi.prototype.Wd;var Ab=!1,kb=!1,Nb=!1;gi.className="PartManager";function hs(e){gi.apply(this,arguments)}Kn(hs,gi),hs.prototype.addAllModeledParts=function(){var e=this.diagram.model;this.addModeledParts(e.nodeDataArray),Ib(this,e.linkDataArray)},hs.prototype.addModeledParts=function(e){for(gi.prototype.addModeledParts.call(this,e,!1),e=this.links.iterator;e.next();)cd(e.value);Gf(this.diagram,!1)};function Ib(e,t){t.forEach(function(n){Rb(e,n)}),Gf(e.diagram,!1)}function Rb(e,t){if(t!=null&&!e.diagram.undoManager.isUndoingRedoing&&!e.bf.contains(t)){var n=e.getLinkCategoryForData(t),r=e.findLinkTemplateForCategory(n);if(r!==null){Hl(r);var i=r.copy();if(i!==null){r=e.diagram.skipsModelSourceBindings,e.diagram.skipsModelSourceBindings=!0,i.Tf=n,i.ub=t,n=e.diagram.model;var o=Cm(n,t,!0);o!==""&&(i.fromPortId=o),o=gl(n,t,!0),o!==void 0&&(o=e.Vb(o),o instanceof hn&&(i.fromNode=o)),o=Cm(n,t,!1),o!==""&&(i.toPortId=o),o=gl(n,t,!1),o!==void 0&&(o=e.Vb(o),o instanceof hn&&(i.toNode=o)),n=n.Ef(t),Array.isArray(n)&&n.forEach(function(a){a=e.Vb(a),a!==null&&(a.labeledLink=i)}),e.tp&&(i.Jg="Tool"),e.diagram.add(i),i.ub=null,i.data=t,e.diagram.skipsModelSourceBindings=r}}}}hs.prototype.removeAllModeledParts=function(){var e=this.diagram.model;Ob(this,e.linkDataArray),this.Gs(e.nodeDataArray)};function Ob(e,t){t.forEach(function(n){e.ip(n)})}hs.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ps(e)},hs.prototype.setLinkCategoryForData=function(e,t){return this.diagram.model.lp(e,t)},hs.prototype.setFromNodeForLink=function(e,t){var n=this.diagram.model;n.wv(e.data,n.wa(t!==null?t.data:null))},hs.prototype.setToNodeForLink=function(e,t){var n=this.diagram.model;n.Bv(e.data,n.wa(t!==null?t.data:null))},hs.prototype.removeDataForLink=function(e){this.diagram.model.bm(e.data)},hs.prototype.findPartForKey=function(e){var t=gi.prototype.findPartForKey.call(this,e);return t===null&&(e=this.diagram.model.jh(e),e!==null)?this.bf.I(e):t},hs.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.jh(e),e!==null?this.bf.I(e):null)},hs.prototype.doModelChanged=function(e){var t=this;if(gi.prototype.doModelChanged.call(this,e),this.diagram){var n=this.diagram;if(e.model===n.model){var r=e.change;if(n.aa){n.aa=!1;try{var i=e.modelChange;if(i!==""){if(r===ji){if(i==="linkFromKey"){var o=this.Kc(e.object);if(o!==null){var a=this.Vb(e.newValue);o.fromNode=a}}else if(i==="linkToKey"){var d=this.Kc(e.object);if(d!==null){var x=this.Vb(e.newValue);d.toNode=x}}else if(i==="linkFromPortId"){var O=this.Kc(e.object);if(O!==null){var M=e.newValue;typeof M=="string"&&(O.fromPortId=M)}}else if(i==="linkToPortId"){var Y=this.Kc(e.object);if(Y!==null){var ie=e.newValue;typeof ie=="string"&&(Y.toPortId=ie)}}else if(i==="nodeGroupKey"){var ce=this.Lc(e.object);if(ce!==null){var ge=e.newValue;if(ge!==void 0){var Te=this.Vb(ge);Te instanceof or?ce.containingGroup=Te:ce.containingGroup=null}else ce.containingGroup=null}}else if(i==="linkLabelKeys"){var Ve=this.Kc(e.object);if(Ve!==null){var He=e.oldValue,Xe=e.newValue;Array.isArray(He)&&He.forEach(function(Bt){0<=Xe.indexOf(Bt)||(Bt=t.Vb(Bt),Bt!==null&&(Bt.labeledLink=null))}),Array.isArray(Xe)&&Xe.forEach(function(Bt){Bt=t.Vb(Bt),Bt!==null&&(Bt.labeledLink=Ve)})}}else if(i==="linkCategory"){var Ze=this.Kc(e.object),qe=e.newValue;Ze!==null&&typeof qe=="string"&&(Ze.category=qe)}else i==="linkDataArray"&&(Ob(this,e.oldValue),Ib(this,e.newValue));n.isModified=!0}else if(r===uo){var st=e.newValue;if(i==="linkDataArray"&&typeof st=="object"&&st!==null)Rb(this,st);else if(i==="linkLabelKeys"&&uh(st)){var yt=this.Kc(e.object),un=this.Vb(st);yt!==null&&un!==null&&(un.labeledLink=yt)}n.isModified=!0}else if(r===po){var kn=e.oldValue;if(i==="linkDataArray"&&typeof kn=="object"&&kn!==null)this.ip(kn);else if(i==="linkLabelKeys"&&uh(kn)){var En=this.Vb(kn);En!==null&&(En.labeledLink=null)}n.isModified=!0}}else if(r===ji){var tn=e.propertyName;e.object!==n.model||tn!=="linkFromKeyProperty"&&tn!=="linkToKeyProperty"&&tn!=="linkFromPortIdProperty"&&tn!=="linkToPortIdProperty"&&tn!=="linkLabelKeysProperty"&&tn!=="nodeIsGroupProperty"&&tn!=="nodeGroupKeyProperty"&&tn!=="linkCategoryProperty"||n.undoManager.isUndoingRedoing||this.Wd(),n.isModified=!0}}finally{n.aa=!0}}}}},hs.prototype.refreshDataBoundLinks=function(){var e=this,t=this.diagram.model,n=new Kt,r=t.linkDataArray;r.forEach(function(o){n.add(o)});var i=[];this.links.each(function(o){o.data===null||n.contains(o.data)||i.push(o.data)}),i.forEach(function(o){Wb(t,o,!1)}),r.forEach(function(o){e.Kc(o)===null&&Gb(t,o,!1)})},hs.prototype.updateRelationshipsFromData=function(e){var t=e.data;if(t!==null){var n=e.diagram;if(n!==null){var r=n.model;if(e instanceof nn){var i=gl(r,t,!0);if(i=n.Vb(i),e.fromNode=i,i=gl(r,t,!1),i=n.Vb(i),e.toNode=i,t=r.Ef(t),0<t.length||0<e.labelNodes.count){if(t.length===1&&e.labelNodes.count===1){i=t[0];var o=e.labelNodes.first();if(r.wa(o.data)===i)return}i=new Kt().addAll(t);var a=new Kt;e.labelNodes.each(function(d){d.data!==null&&(d=r.wa(d.data),d!==void 0&&a.add(d))}),t=a.copy(),t.hp(i),i=i.copy(),i.hp(a),(0<t.count||0<i.count)&&(t.each(function(d){d=n.Vb(d),d!==null&&d.labeledLink===e&&(d.labeledLink=null)}),i.each(function(d){d=n.Vb(d),d!==null&&d.labeledLink!==e&&(d.labeledLink=e)}))}}else!(e instanceof Xr)&&(t=r.lh(t),t=n.findPartForKey(t),t===null||t instanceof or)&&(e.containingGroup=t)}}},hs.prototype.resolveReferencesForData=function(e){var t=this.diagram.model,n=t.wa(e);if(n!==void 0){var r=Lp(t,n),i=this.Lc(e);if(r!==null&&i!==null){r=r.iterator;for(var o={};r.next();){var a=r.value;t.lb(a)?i instanceof or&&t.lh(a)===n&&(a=this.Lc(a),a!==null&&(a.containingGroup=i)):(o.link=this.Kc(a),o.link!==null&&i instanceof hn&&(gl(t,a,!0)===n&&(o.link.fromNode=i),gl(t,a,!1)===n&&(o.link.toNode=i),a=t.Ef(a),Array.isArray(a)&&a.some(function(d){return function(x){return x===n?(i.labeledLink=d.link,!0):!1}}(o)))),o={link:o.link}}wu(t,n)}e=t.lh(e),e!==void 0&&(e=this.Vb(e),e instanceof or&&(i.containingGroup=e))}},hs.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof hn){var n=t.wa(e.data);if(n!==void 0){for(var r=e.linksConnected;r.next();)xu(t,n,r.value.data);if(e.isLinkLabel&&(r=e.labeledLink,r!==null&&xu(t,n,r.data)),e instanceof or)for(e=e.memberParts;e.next();)r=e.value.data,t.lb(r)&&xu(t,n,r)}}},hs.prototype.copyPartData=function(e,t){var n=gi.prototype.copyPartData.call(this,e,t);if(e instanceof nn)if(e=e.data,e!==null&&t!==null){var r=t.model;e=r.Jo(e),typeof e=="object"&&e!==null&&(r.fi(e),n=t.Kc(e))}else n!==null&&(t=this.diagram,e!==null&&t!==null&&t.commandHandler!==null&&t.commandHandler.copiesClipboardData&&(t=t.model.Jo(e),typeof t=="object"&&t!==null&&(n.data=t)));return n},hs.prototype.insertLink=function(e,t,n,r){var i=this.diagram,o=i.model,a=i.toolManager.findTool("Linking"),d="";if(e!==null&&(t===null&&(t=e),d=t.portId,d===null&&(d="")),t="",n!==null&&(r===null&&(r=n),t=r.portId,t===null&&(t="")),r=a.archetypeLinkData,r instanceof nn){if(Hl(r),o=r.copy(),o!==null)return o.fromNode=e,o.fromPortId=d,o.toNode=n,o.toPortId=t,i.add(o),e=a.archetypeLabelNodeData,e instanceof hn&&(Hl(e),e=e.copy(),e!==null&&(e.labeledLink=o,i.add(e))),o}else if(r!==null&&(r=o.Jo(r),typeof r=="object"&&r!==null))return e!==null&&md(o,r,o.wa(e.data),!0),vd(o,r,d,!0),n!==null&&md(o,r,o.wa(n.data),!1),vd(o,r,t,!1),o.fi(r),e=a.archetypeLabelNodeData,e===null||e instanceof hn||(e=o.copyNodeData(e),typeof e=="object"&&e!==null&&(o.xf(e),e=o.wa(e),e!==void 0&&o.Bu(r,e))),i.Kc(r);return null},hs.prototype.findLinkForKey=hs.prototype.findLinkForKey,hs.prototype.findPartForKey=hs.prototype.findPartForKey,hs.prototype.removeAllModeledParts=hs.prototype.removeAllModeledParts,hs.prototype.addModeledParts=hs.prototype.addModeledParts,hs.prototype.addAllModeledParts=hs.prototype.addAllModeledParts,hs.className="GraphLinksPartManager";function kl(){gi.apply(this,arguments),this.Sg=null}Kn(kl,gi);function xm(e,t,n){if(t!==null&&n!==null&&n.kh()===null){var r=e.diagram.toolManager.findTool("Linking"),i=t,o=n;if(e.diagram.isTreePathToChildren||(i=n,o=t),(r===null||!Os(r,i,o,null,!0))&&(t=e.getLinkCategoryForData(n.data),r=e.findLinkTemplateForCategory(t),r!==null&&(Hl(r),r=r.copy(),r!==null))){var a=e.diagram.skipsModelSourceBindings;e.diagram.skipsModelSourceBindings=!0,r.Tf=t,r.ub=n.data,r.fromNode=i,r.toNode=o,e.diagram.add(r),r.ub=null,r.data=n.data,e.diagram.skipsModelSourceBindings=a}}}kl.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ss(e)},kl.prototype.setLinkCategoryForData=function(e,t){this.diagram.model.Ms(e,t)},kl.prototype.setFromNodeForLink=function(e,t,n){var r=this.diagram.model;if(n===void 0&&(n=null),t=t!==null?t.data:null,this.diagram.isTreePathToChildren)r.qe(e.data,r.wa(t));else{var i=this.Sg;this.Sg=e,n!==null&&r.qe(n.data,void 0),r.qe(t,r.wa(e.toNode!==null?e.toNode.data:null)),this.Sg=i}},kl.prototype.setToNodeForLink=function(e,t,n){var r=this.diagram.model;if(n===void 0&&(n=null),t=t!==null?t.data:null,this.diagram.isTreePathToChildren){var i=this.Sg;this.Sg=e,n!==null&&r.qe(n.data,void 0),r.qe(t,r.wa(e.fromNode!==null?e.fromNode.data:null)),this.Sg=i}else r.qe(e.data,r.wa(t))},kl.prototype.removeDataForLink=function(e){this.diagram.model.qe(e.data,void 0)},kl.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.hc(e),e!==null?this.bf.I(e):null)},kl.prototype.doModelChanged=function(e){if(gi.prototype.doModelChanged.call(this,e),this.diagram){var t=this.diagram;if(e.model===t.model){var n=e.change;if(t.aa){t.aa=!1;try{var r=e.modelChange;if(r!==""){if(n===ji){if(r==="nodeParentKey"){var i=e.object,o=this.Vb(e.newValue),a=this.ii(i);if(this.Sg!==null)o!==null&&(this.Sg.data=i,this.Sg.category=this.getLinkCategoryForData(i));else if(a!==null){var d=a.kh();d!==null?o===null?t.remove(d):t.isTreePathToChildren?d.fromNode=o:d.toNode=o:xm(this,o,a)}}else if(r==="parentLinkCategory"){var x=this.ii(e.object),O=e.newValue;if(x!==null&&typeof O=="string"){var M=x.kh();M!==null&&(M.category=O)}}t.isModified=!0}}else if(n===ji){var Y=e.propertyName;e.object===t.model&&Y==="nodeParentKeyProperty"&&(t.undoManager.isUndoingRedoing||this.Wd()),t.isModified=!0}}finally{t.aa=!0}}}}},kl.prototype.updateRelationshipsFromData=function(e){var t=e.data;if(t!==null){var n=e.diagram;if(n!==null){var r=n.model;e instanceof hn&&(t=r.mh(t),t=n.Vb(t),r=e.pg(),t!==r&&(r=e.kh(),t!==null?r!==null?n.isTreePathToChildren?r.fromNode=t:r.toNode=t:xm(this,t,e):r!==null&&Kd(n,r,!1)))}}},kl.prototype.updateDataBindings=function(e,t){gi.prototype.updateDataBindings.call(this,e,t),typeof t=="string"&&this.Lc(e)!==null&&(e=this.Kc(e),e!==null&&e.La(t))},kl.prototype.resolveReferencesForData=function(e){var t=this.diagram.model,n=t.wa(e);if(n!==void 0){var r=Lp(t,n),i=this.Lc(e);if(r!==null&&i!==null){for(r=r.iterator;r.next();){var o=r.value;t.lb(o)&&i instanceof hn&&t.mh(o)===n&&xm(this,i,this.ii(o))}wu(t,n)}e=t.mh(e),e!==void 0&&i instanceof hn&&(e=this.Vb(e),xm(this,e,i))}},kl.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof hn){var n=t.wa(e.data),r=this.Kc(e.data);if(r!==null){r.isSelected=!1,r.isHighlighted=!1;var i=r.layer;if(i!==null){var o=i.pc(-1,r,!1);0<=o&&this.diagram.cb(po,"parts",i,r,null,o,null),o=r.layerChanged,o!==null&&o(r,i,null)}}for(r=this.diagram.isTreePathToChildren,e=e.linksConnected;e.next();)i=e.value,i=(r?i.toNode:i.fromNode).data,t.lb(i)&&xu(t,n,i)}},kl.prototype.insertLink=function(e,t,n){t=this.diagram.model;var r=e,i=n;return this.diagram.isTreePathToChildren||(r=n,i=e),r!==null&&i!==null?(t.qe(i.data,t.wa(r.data)),i.kh()):null},kl.prototype.findLinkForKey=kl.prototype.findLinkForKey,kl.className="TreePartManager";function In(e,t){this.kl=new Kt,this.il=new Kt,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,Wn(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Et,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new Et,this.Lt=new Gt,this.Wg=!1,this.o=null,this.undoManager=new Ai,e!==void 0&&(gn(e)?this.nodeDataArray=e:t=e),t&&(Object.assign(this,t),e=t.Changed)&&(delete this.Changed,this.Pe(e))}In.prototype.cloneProtected=function(e){e.xa=this.xa,e.Sm=this.Sm,e.Gg=this.Gg,e.Th=this.Th,e.bl=this.bl,e.Bk=this.Bk,e.Km=this.Km,e.Jm=this.Jm,e.Mm=this.Mm,e.xm=this.xm,e.lj=this.lj},In.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},In.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},In.prototype.toString=function(e){if(e===void 0&&(e=0),1<e)return this.np();var t=(this.name!==""?this.name:"")+" Model";if(0<e){t+=`
node data:`,e=this.nodeDataArray;for(var n=e.length,r=0;r<n;r++){var i=e[r];t+=" "+this.wa(i)+":"+lr(i)}}return t},In.prototype.xA=function(e){e.change!==gs&&ft("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+e.toString());var t=e.object;return e.isTransactionFinished&&t instanceof _o?(Mb(this,t),e=this.Qv(t,e.propertyName==="FinishedUndo"),this.vh=null,e):null},In.prototype.Qv=function(e,t){var n=this,r=!1,i=new Kt,o=new Kt,a=new Kt,d=this.vh;e.changes.each(function(Y){Y.model===n&&(Y.modelChange==="nodeDataArray"?Y.change===uo?i.add(Y.newValue):Y.change===po&&a.add(Y.oldValue):n.lb(Y.object)?o.add(Y.object):Y.change!==ji||n.modelData!==Y.object&&Y.propertyName!=="modelData"?Y.object!==null&&(d&&d.contains(Y.object)?d.get(Y.object).each(function(ie){n.lb(ie)&&o.add(ie)}):Y.object instanceof In||n.ri()&&n.Jc(Y.object)||Db(n,Y.object).each(function(ie){o.add(ie)})):r=!0)});var x=this.il;x.clear(),i.each(function(Y){x.add(n.wa(Y)),t||o.add(Y)});var O=this.kl;O.clear(),a.each(function(Y){O.add(n.wa(Y)),t&&o.add(Y)}),e=n.cloneDeep(o.Fa());var M=null;return r&&(M===null&&(M={}),M.modelData=this.cloneDeep(this.modelData)),0<x.count&&(M===null&&(M={}),t?M.removedNodeKeys=x.Fa():M.insertedNodeKeys=x.Fa()),0<e.length&&(M===null&&(M={}),M.modifiedNodeData=e),0<O.count&&(M===null&&(M={}),t?M.insertedNodeKeys=O.Fa():M.removedNodeKeys=O.Fa()),O.clear(),x.clear(),M},In.prototype.cloneDeep=function(e){return gd(this,e,!0)};function gd(e,t,n,r,i,o){function a(Y,ie){d?(Y.__gohashid===void 0&&o.push(Y),r.set(Y,ie)):(Y=Di++,r.set(Y,ie),i.set(Y,t))}if(!gt(t))return t;o||(o=[]);var d=Object.isExtensible(t);if(r||(r=new Et),d){var x=r.get(t);if(x)return x}else for(i||(i=new Et),x=i.iterator;x.next();){var O=x.key;if(x.value===t&&(O=r.get(O)))return O}if(Array.isArray(t)){x=[],a(t,x);for(var M=0;M<t.length;M++)x.push(gd(e,t[M],!1,r,i,o))}else if(t instanceof Ie||t instanceof mn||t instanceof xt||t instanceof ar||t instanceof an)x=t.copy(),a(t,x);else{if(t instanceof di||t instanceof qt||t instanceof Dt)return t;if(t instanceof Gt)x=new Gt().addAll(gd(e,t.Fa(),!1,r,i,o)),a(t,x);else if(t instanceof Kt)x=new Kt().addAll(gd(e,t.Fa(),!1,r,i,o)),a(t,x);else if(t instanceof Et)x=new Et().addAll(gd(e,t.Fa(),!1,r,i,o)),a(t,x);else if(t instanceof Date)x=new Date(t.getTime()),a(t,x);else if(t instanceof RegExp)x=new RegExp(t),a(t,x),x.lastIndex=t.lastIndex;else if(typeof t.copy=="function")x=t.copy(),a(t,x);else for(M in x={},a(t,x),t)M!=="__gohashid"&&(x[M]=gd(e,t[M],!1,r,i,o))}return n&&o.forEach(function(Y){delete Y.__gohashid}),x}me=In.prototype,me.quote=function(e){return JSON.stringify(e).replace(/[\u007F-\uFFFF]/g,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).substr(-4)})},me.rm=function(){var e="";return this.name!==""&&(e+=`,
"name": `+this.quote(this.name)),this.dataFormat!==""&&(e+=`,
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(e+=`,
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(e+=`,
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(e+=`,
"copiesArrays": true`),this.copiesArrayObjects&&(e+=`,
"copiesArrayObjects": true`),this.copiesKey||(e+=`,
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(e+=`,
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),e},me.gp=function(e){e.name&&(this.name=e.name),e.dataFormat&&(this.dataFormat=e.dataFormat),e.isReadOnly&&(this.isReadOnly=!0),e.nodeKeyProperty&&(this.nodeKeyProperty=e.nodeKeyProperty),e.copiesArrays&&(this.copiesArrays=!0),e.copiesArrayObjects&&(this.copiesArrayObjects=!0),e.copiesKey===!1&&(this.copiesKey=!1),e.nodeCategoryProperty&&(this.nodeCategoryProperty=e.nodeCategoryProperty)};function Lb(e,t){t=t.modelData,gt(t)&&(e.dm(t),e.modelData=t)}me.Rv=function(){var e=this.modelData,t=!1,n;for(n in e)if(!Pb(n,e[n])){t=!0;break}return e="",t&&(e=`,
"modelData": `+xy(this,this.modelData)),e+`,
"nodeDataArray": `+lh(this,this.nodeDataArray,!0)},me.kv=function(e){Lb(this,e),e=e.nodeDataArray,gn(e)&&(this.dm(e),this.nodeDataArray=e)};function Mb(e,t){function n(i,o){if((o=o.part)&&(o=o.data,i!==o)){var a=r.get(i);a===null?(a=new Kt,a.add(o),r.add(i,a)):a.add(o)}}var r=e.vh;r===null&&(r=new Et,t.changes.each(function(i){if(i.diagram!==null){var o=i.change;o===ji?(i=i.object.panel)&&(o=i.data)&&n(o,i):(o===uo||o===po)&&(i=i.object,(o=i.itemArray)&&n(o,i))}}),e.vh=r)}function Db(e,t){for(var n=new Kt,r=0;r<e.nodeDataArray.length;r++){var i=e.nodeDataArray[r];wm(e,t,i,i,n)}return n}function wm(e,t,n,r,i){if(Array.isArray(n))for(var o=0;o<n.length;o++){var a=n[o];if(a===t)return i.add(r),!0;if(wm(e,t,a,r,i))return!0}else if(gt(n)&&Object.getPrototypeOf(n)===Object.prototype)for(o in n){if(a=n[o],a===t)return i.add(r),!0;if(wm(e,t,a,r,i))return!0}return!1}me.Pv=function(e,t){var n=this,r=!1,i=new Kt,o=new Kt,a=new Kt,d=this.vh;e.changes.each(function(M){M.model===n&&(M.modelChange==="nodeDataArray"?M.change===uo?i.add(M.newValue):M.change===po&&a.add(M.oldValue):n.lb(M.object)?o.add(M.object):M.change!==ji||n.modelData!==M.object&&M.propertyName!=="modelData"?M.object!==null&&(d&&d.contains(M.object)?d.get(M.object).each(function(Y){n.lb(Y)&&o.add(Y)}):M.object instanceof In||n.ri()&&n.Jc(M.object)||Db(n,M.object).each(function(Y){o.add(Y)})):r=!0)});var x=this.il;x.clear(),i.each(function(M){x.add(n.wa(M)),t||o.add(M)});var O=this.kl;return O.clear(),a.each(function(M){O.add(n.wa(M)),t&&o.add(M)}),e="",r&&(e+=`,
"modelData": `+xy(this,this.modelData)),0<x.count&&(e+=(t?this.Yv:this.Wv)+lh(this,x.Fa(),!0)),0<o.count&&(e+=this.jy+lh(this,o.Fa(),!0)),0<O.count&&(e+=(t?this.Wv:this.Yv)+lh(this,O.Fa(),!0)),O.clear(),x.clear(),e},me.fp=function(e){(e.name!==void 0&&e.name!==this.name||e.dataFormat!==void 0&&e.dataFormat!==this.dataFormat||e.isReadOnly!==void 0&&e.isReadOnly!==this.isReadOnly||e.nodeKeyProperty!==void 0&&e.nodeKeyProperty!==this.nodeKeyProperty||e.copiesArrays!==void 0&&e.copiesArrays!==this.copiesArrays||e.copiesArrayObjects!==void 0&&e.copiesArrayObjects!==this.copiesArrayObjects||e.copiesKey!==void 0&&e.copiesKey!==this.copiesKey||e.nodeCategoryProperty!==void 0&&e.nodeCategoryProperty!==this.nodeCategoryProperty)&&ft("applyIncrementalJson cannot change Model properties"),Lb(this,e);var t=e.insertedNodeKeys,n=e.modifiedNodeData,r=new Et;if(Array.isArray(n))for(var i=0;i<n.length;i++){var o=n[i],a=this.wa(o);a!=null&&r.set(a,o)}if(Array.isArray(t))for(i=t.length,o=0;o<i;o++){a=t[o];var d=this.hc(a);d===null&&(d=(d=r.get(a))?d:this.copyNodeData({}),this.km(d,a),this.xf(d))}if(Array.isArray(n)){for(t=n.length,r=0;r<t;r++)if(i=n[r],o=this.wa(i),o=this.hc(o),o!==null){for(var x in i)x==="__gohashid"||x===this.nodeKeyProperty||this.Wj()&&x===this.nodeIsGroupProperty||this.setDataProperty(o,x,i[x]);this.lm(i,o)}}if(e=e.removedNodeKeys,Array.isArray(e))for(n=e.length,x=0;x<n;x++)t=this.hc(e[x]),t!==null&&this.cm(t)},me.$x=function(e,t){e.change!==gs&&ft("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+e.toString());var n=e.object;return e.isTransactionFinished&&n instanceof _o?(t===void 0&&(t=Mp(this,this)),Mb(this,n),e=this.Pv(n,e.propertyName==="FinishedUndo"),this.vh=null,t==="2"?'{ "incremental": 2'+e+"}":'{ "class": '+this.quote(t)+', "incremental": 1'+this.rm()+e+"}"):'{ "incremental": 0 }'},me.yA=function(e,t){return this.$x(e,t)},me.np=function(e){return e===void 0&&(e=Mp(this,this)),'{ "class": '+this.quote(e)+this.rm()+this.Rv()+"}"},me.toJSON=function(e){return this.np(e)},me.Zw=function(e){var t=null;if(typeof e=="string")try{t=pn.JSON.parse(e)}catch(r){}else typeof e=="object"?t=e:ft("Unable to modify a Model from: "+e);var n=t.incremental;typeof n!="number"&&ft("Unable to apply non-incremental changes to Model: "+e),n!==0&&(this.Ea("applyIncrementalJson"),this.fp(t),this.eb("applyIncrementalJson"))},me.Ky=function(e){return this.Zw(e)},In.constructGraphLinksModel=function(){return new In},me=In.prototype,me.dm=function(e){if(gn(e))for(var t=e.length,n=0;n<t;n++){var r=e[n];if(gt(r)){var i=n;r=this.dm(r),Array.isArray(e)?e[i]=r:ft("Cannot replace an object in an HTMLCollection or NodeList at "+i)}}else if(gt(e)){for(t in e)if(n=e[t],gt(n)&&(n=this.dm(n),e[t]=n,t==="points"&&Array.isArray(n))){for(i=n.length%2===0,r=0;r<n.length;r++)if(typeof n[r]!="number"){i=!1;break}if(i){for(i=new Gt,r=0;r<n.length/2;r++)i.add(new Ie(n[2*r],n[2*r+1]));i.freeze(),e[t]=i}}return $1(e)}return e},me.sm=function(e){return e===void 0?"undefined":e===null?"null":e===!0?"true":e===!1?"false":typeof e=="string"?this.quote(e):typeof e=="number"?e===1/0?"9e9999":e===-1/0?"-9e9999":isNaN(e)?'{"class":"NaN"}':e.toString():e instanceof Date?'{"class":"Date", "value":"'+e.toJSON()+'"}':e instanceof Number?this.sm(e.valueOf()):gn(e)?lh(this,e):gt(e)?xy(this,e):typeof e=="function"?"null":e.toString()};function lh(e,t,n){n===void 0&&(n=!1);var r=t.length;if(0>=r)return"[]";var i=new Ri;i.add("["),n&&1<r&&i.add(`
`);for(var o=0;o<r;o++){var a=t[o];a!==void 0&&(0<o&&(i.add(","),n&&i.add(`
`)),i.add(e.sm(a)))}return n&&1<r&&i.add(`
`),i.add("]"),i.toString()}function Pb(e,t){return t===void 0||e==="__gohashid"||e[0]==="_"||typeof t=="function"}function pa(e){return isNaN(e)?"NaN":e===1/0?"9e9999":e===-1/0?"-9e9999":e}function xy(e,t){var n=t;if(n instanceof Ie)t={class:"go.Point",x:pa(n.x),y:pa(n.y)};else if(n instanceof mn)t={class:"go.Size",width:pa(n.width),height:pa(n.height)};else if(n instanceof xt)t={class:"go.Rect",x:pa(n.x),y:pa(n.y),width:pa(n.width),height:pa(n.height)};else if(n instanceof ar)t={class:"go.Margin",top:pa(n.top),right:pa(n.right),bottom:pa(n.bottom),left:pa(n.left)};else if(n instanceof an)n.sb()?t={class:"go.Spot",x:pa(n.x),y:pa(n.y),offsetX:pa(n.offsetX),offsetY:pa(n.offsetY)}:t={class:"go.Spot",enum:n.toString()};else if(n instanceof di){if(t={class:"go.Brush",type:n.type.name},n.type===Nc?t.color=n.color:(n.type===cc||n.type===_l)&&(t.start=n.start,t.end=n.end,n.type===_l&&(n.startRadius!==0&&(t.startRadius=pa(n.startRadius)),isNaN(n.endRadius)||(t.endRadius=pa(n.endRadius)))),n.colorStops!==null){var r={};for(n=n.colorStops.iterator;n.next();)r[n.key]=n.value;t.colorStops=r}}else n instanceof qt?(t={class:"go.Geometry",type:n.type.name},n.startX!==0&&(t.startX=pa(n.startX)),n.startY!==0&&(t.startY=pa(n.startY)),n.endX!==0&&(t.endX=pa(n.endX)),n.endY!==0&&(t.endY=pa(n.endY)),n.spot1.D(Gr)||(t.spot1=n.spot1),n.spot2.D(Pi)||(t.spot2=n.spot2),n.type===qt.o&&(t.path=qt.ia(n))):n instanceof Dt&&(t={class:"go.EnumValue",classType:Mp(e,n.classType),name:n.name});r="{",n=!0;for(var i in t){var o=Ro(t,i);if(!Pb(i,o))if(n?n=!1:r+=",",r+=e.quote(i)+":",i==="points"&&o instanceof Gt){var a="[";for(o=o.iterator;o.next();){var d=o.value;1<a.length&&(a+=","),a+=e.sm(d.x),a+=",",a+=e.sm(d.y)}a+="]",r+=a}else r+=e.sm(o)}return r+"}"}function ga(e){return typeof e=="number"?e:e==="NaN"?NaN:e==="9e9999"?1/0:e==="-9e9999"?-1/0:parseFloat(e)}function $1(e){if(typeof e!="object")return e;var t=e.class||"";if(t==="NaN")return NaN;if(t==="Date")return new Date(e.value);if(t.indexOf("go.")!==0)return e;t=t.substr(3);var n=e;if(t==="Point")n=new Ie(ga(e.x),ga(e.y));else if(t==="Size")n=new mn(ga(e.width),ga(e.height));else if(t==="Rect")n=new xt(ga(e.x),ga(e.y),ga(e.width),ga(e.height));else if(t==="Margin")n=new ar(ga(e.top),ga(e.right),ga(e.bottom),ga(e.left));else if(t==="Spot")typeof e.enum=="string"?n=es(e.enum):n=new an(ga(e.x),ga(e.y),ga(e.offsetX),ga(e.offsetY));else if(t==="Brush"){if(n=new di,n.type=Ji(di,e.type),typeof e.color=="string"&&(n.color=e.color),e.start instanceof an&&(n.start=e.start),e.end instanceof an&&(n.end=e.end),typeof e.startRadius=="number"&&(n.startRadius=ga(e.startRadius)),typeof e.endRadius=="number"&&(n.endRadius=ga(e.endRadius)),e=e.colorStops,gt(e))for(var r in e)n.addColorStop(parseFloat(r),e[r])}else t==="Geometry"?(n=null,typeof e.path=="string"?n=qt.parse(e.path):n=new qt,n.type=Ji(qt,e.type),typeof e.startX=="number"&&(n.startX=ga(e.startX)),typeof e.startY=="number"&&(n.startY=ga(e.startY)),typeof e.endX=="number"&&(n.endX=ga(e.endX)),typeof e.endY=="number"&&(n.endY=ga(e.endY)),e.spot1 instanceof an&&(n.spot1=e.spot1),e.spot2 instanceof an&&(n.spot2=e.spot2)):t==="EnumValue"&&(r=e.classType,r.indexOf("go.")===0&&(r=r.substr(3)),r=Ey(r),typeof r=="function"&&(n=Ji(r,e.name)));return n}me.Pe=function(e){return this.Lt.add(e),this},me.ik=function(e){this.Lt.remove(e)},me.ds=function(e){this.skipsUndoManager||this.undoManager.Tu(e);for(var t=this.Lt,n=t.length,r=0;r<n;r++)t.M(r)(e)},me.cb=function(e,t,n,r,i,o,a){Yo(this,"",e,t,n,r,i,o,a)},me.g=function(e,t,n,r,i){Yo(this,"",ji,e,this,t,n,r,i)},me.Fs=function(e,t,n,r,i,o){Yo(this,"",ji,t,e,n,r,i,o)};function Yo(e,t,n,r,i,o,a,d,x){d===void 0&&(d=null),x===void 0&&(x=null);var O=new Xi;O.model=e,O.change=n,O.modelChange=t,O.propertyName=r,O.object=i,O.oldValue=o,O.oldParam=d,O.newValue=a,O.newParam=x,e.ds(O)}In.prototype.changeState=function(e,t){if(e!==null&&e.model===this)if(e.change===ji){var n=e.object,r=e.propertyName,i=e.I(t);r===this.nodeKeyProperty&&this.lb(n)&&(t=e.I(!t),t!==void 0&&this.kb.remove(t),i!==void 0&&this.kb.add(i,n)),io(n,r,i)}else e.change===uo?(n=e.newParam,e.modelChange==="nodeDataArray"?(e=e.newValue,gt(e)&&typeof n=="number"&&(r=this.wa(e),t?(this.Tc[n]===e&&we(this.Tc,n),r!==void 0&&this.kb.remove(r)):(this.Tc[n]!==e&&At(this.Tc,n,e),r!==void 0&&this.kb.add(r,e)))):e.modelChange===""?((r=e.object)&&!gn(r)&&e.propertyName&&(r=Ro(e.object,e.propertyName)),gn(r)&&typeof n=="number"&&(e=e.newValue,t?we(r,n):At(r,n,e))):ft("unknown ChangedEvent.Insert modelChange: "+e.toString())):e.change===po?(n=e.oldParam,e.modelChange==="nodeDataArray"?(e=e.oldValue,gt(e)&&typeof n=="number"&&(r=this.wa(e),t?(this.Tc[n]!==e&&At(this.Tc,n,e),r!==void 0&&this.kb.add(r,e)):(this.Tc[n]===e&&we(this.Tc,n),r!==void 0&&this.kb.remove(r)))):e.modelChange===""?((r=e.object)&&!gn(r)&&e.propertyName&&(r=Ro(e.object,e.propertyName)),gn(r)&&typeof n=="number"&&(e=e.oldValue,t?At(r,n,e):we(r,n))):ft("unknown ChangedEvent.Remove modelChange: "+e.toString())):e.change!==gs&&ft("unknown ChangedEvent: "+e.toString())},In.prototype.Ea=function(e){return this.undoManager.Ea(e)},In.prototype.eb=function(e){return this.undoManager.eb(e)},In.prototype.Kf=function(){return this.undoManager.Kf()},In.prototype.commit=function(e,t){t===void 0&&(t="");var n=this.skipsUndoManager;t===null&&(this.skipsUndoManager=!0,t=""),this.undoManager.Ea(t);var r=!1;try{e(this),r=!0}finally{r?this.undoManager.eb(t):this.undoManager.Kf(),this.skipsUndoManager=n}},me=In.prototype,me.La=function(e,t){t===void 0&&(t=""),Yo(this,"SourceChanged",gs,t,e,null,null)},me.wa=function(e){if(e!==null){var t=this.Th;if(t!==""&&(t=Ro(e,t),t!==void 0)){if(uh(t))return t;ft("Key value for node data "+e+" is not a number or a string: "+t)}}},me.km=function(e,t){if(e!==null){var n=this.Th;if(n!=="")if(this.lb(e)){var r=Ro(e,n);r!==t&&this.hc(t)===null&&(io(e,n,t),r!==void 0&&this.kb.remove(r),this.kb.add(t,e),Yo(this,"nodeKey",ji,n,e,r,t),typeof n=="string"&&this.La(e,n),this.jp(r,t))}else io(e,n,t)}};function uh(e){return typeof e=="number"||typeof e=="string"}me.lb=function(e){var t=this.wa(e);return t===void 0?!1:this.kb.I(t)===e},me.hc=function(e){return e===null&&ft("Model.findNodeDataForKey:key must not be null"),e!==void 0&&uh(e)?this.kb.I(e):null},me.$u=function(e){if(e!==null){var t=this.Th;if(t!==""){var n=this.wa(e);if(n===void 0||this.kb.contains(n)){var r=this.bl;if(r!==null&&(n=r(this,e),n!=null&&!this.kb.contains(n))){io(e,t,n);return}if(typeof n=="string"){for(r=2;this.kb.contains(n+r);)r++;io(e,t,n+r)}else if(n===void 0||typeof n=="number"){for(n=-this.kb.count-1;this.kb.contains(n);)n--;io(e,t,n)}}}}},me.xf=function(e){e!==null&&(er(e),this.lb(e)||Fb(this,e,!0))};function Fb(e,t,n){var r=e.wa(t);(r===void 0||e.kb.I(r)!==t)&&(e.$u(t),r=e.wa(t),r===void 0&&ft("Model.makeNodeDataKeyUnique failed on "+t+". Data not added to Model."),e.kb.add(r,t),r=null,n&&(r=e.Tc.length,At(e.Tc,r,t)),Yo(e,"nodeDataArray",uo,"nodeDataArray",e,null,t,null,r),e.fm(t),e.em(t))}me.Fy=function(e){if(gn(e))for(var t=e.length,n=0;n<t;n++)this.xf(e[n]);else for(e=e.iterator;e.next();)this.xf(e.value)},me.cm=function(e){e!==null&&Bb(this,e,!0)};function Bb(e,t,n){var r=e.wa(t);if(r!==void 0&&e.kb.remove(r),r=null,n){e:if(n=e.Tc,Array.isArray(n))r=n.indexOf(t);else{r=n.length;for(var i=0;i<r;i++)if(n[i]===t){r=i;break e}r=-1}if(0>r)return;we(e.Tc,r)}Yo(e,"nodeDataArray",po,"nodeDataArray",e,t,null,r,null),e.qp(t)}me.nA=function(e){if(gn(e))for(var t=e.length,n=0;n<t;n++)this.cm(e[n]);else for(e=e.iterator;e.next();)this.cm(e.value)},me.$z=function(e){if(e!==this.nodeDataArray&&gn(e)){var t=this.kl;t.clear(),t.addAll(this.kb.iteratorKeys);var n=this.il;n.clear();for(var r=e.length,i=0;i<r;i++){var o=e[i],a=this.wa(o);if(a!==void 0){n.add(a);var d=this.hc(a);d!==o&&(d!==null?(this.Do(d,o),this.lm(o,d)):(o=this.cloneDeep(o),this.km(o,a),this.xf(o)))}else a=this.cloneDeep(o),this.xf(a),n.add(this.wa(a))}for(e=t.iterator;e.next();)r=e.value,n.contains(r)||(r=this.hc(r))&&this.cm(r);t.clear(),n.clear()}},me.jp=function(e,t){t!==void 0&&(e=Lp(this,e),e instanceof Kt&&this.Vf.add(t,e))},me.Lv=function(){},me.fm=function(){},me.em=function(){},me.qp=function(){};function xu(e,t,n){if(t!==void 0){var r=e.Vf.I(t);r===null&&(r=new Kt,e.Vf.add(t,r)),r.add(n)}}function wu(e,t,n){if(t!==void 0){var r=e.Vf.I(t);r instanceof Kt&&(n==null?e.Vf.remove(t):(r.remove(n),r.count===0&&e.Vf.remove(t)))}}function Lp(e,t){return t===void 0?null:(e=e.Vf.I(t),e instanceof Kt?e:null)}me.Qy=function(e){e===void 0?this.Vf.clear():this.Vf.remove(e)},In.prototype.copyNodeData=function(e){if(e===null)return null;var t=this.Bk;return e=t!==null?t(e,this):Em(this,e,!0),gt(e)&&Wn(e),e};function Em(e,t,n){if(e.copiesArrays&&Array.isArray(t)){var r=[];for(n=0;n<t.length;n++){var i=Em(e,t[n],e.copiesArrayObjects);r.push(i)}return Wn(r),r}if(n&&gt(t)){n=(n=t.constructor)?new n:{},i=e.copiesKey||typeof e.nodeKeyProperty!="string"?null:e.nodeKeyProperty;for(r in t)if(r==="__gohashid")n.__gohashid=void 0;else if(r===i)n[i]=void 0;else{var o=Ro(t,r),a=Mp(e,o);a==="GraphObject"||a==="Diagram"||a==="Layer"||a==="RowColumnDefinition"||a==="AnimationManager"||a==="Tool"||a==="CommandHandler"||a==="Layout"||a==="InputEvent"||a==="DiagramEvent"||o instanceof In||o instanceof Ai||o instanceof _o||o instanceof Xi||(o=Em(e,o,!1)),io(n,r,o)}return Wn(n),n}return t instanceof Ie||t instanceof mn||t instanceof xt||t instanceof an||t instanceof ar?t.copy():t}In.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}}else!jb&&e instanceof at&&(jb=!0,Un('Model.setDataProperty is modifying a GraphObject, "'+e.toString()+'"'),Un(" Is that really your intent?"));var r=Ro(e,t);r!==n&&(io(e,t,n),this.Fs(e,t,r,n))},me=In.prototype,me.set=function(e,t,n){this.setDataProperty(e,t,n)},me.Do=function(e,t){if(t){var n=this.lb(e),r;for(r in t)r==="__gohashid"||n&&r===this.nodeKeyProperty||this.setDataProperty(e,r,t[r])}},me.Ay=function(e,t){this.ts(e,-1,t)},me.ts=function(e,t,n){0>t&&(t=e.length),At(e,t,n),Yo(this,"",uo,"",e,null,n,null,t)},me.ov=function(e,t){t===void 0&&(t=-1),e===this.Tc&&ft("Model.removeArrayItem should not be called on the Model.nodeDataArray"),t===-1&&(t=e.length-1);var n=e[t];we(e,t),Yo(this,"",po,"",e,n,null,t,null)},me.Ro=function(e){if(e===null)return"";var t=this.lj;if(t===""||(t=Ro(e,t),t===void 0))return"";if(typeof t=="string")return t;ft("getCategoryForNodeData found a non-string category for "+e+": "+t)},me.jm=function(e,t){if(e!==null){var n=this.lj;if(n!=="")if(this.lb(e)){var r=Ro(e,n);r===void 0&&(r=""),r!==t&&(io(e,n,t),Yo(this,"nodeCategory",ji,n,e,r,t))}else io(e,n,t)}},me.lm=function(e,t){this.jm(t,this.Ro(e))},me.Tl=function(){return!1},me.Wj=function(){return!1},me.ri=function(){return!1},me.xs=function(){return!1},me.Xj=function(){return!1};function wy(){return new In}function Mp(e,t){if(typeof t=="function"){if(t.className)return t.className;if(t.name)return t.name}else if(typeof t=="object"&&t!==null&&t.constructor)return Mp(e,t.constructor);return typeof t}function Ey(e){return lu[e]?lu[e]:pn.go!==void 0&&pn.go[e]?pn.go[e]:null}function Ro(e,t){if(!e||!t)return null;try{if(typeof t=="function")var n=t(e);else typeof e.getAttribute=="function"?(n=e.getAttribute(t),n===null&&(n=void 0)):n=e[t]}catch(r){}return n}function io(e,t,n){if(e&&t)try{typeof t=="function"?t(e,n):typeof e.setAttribute=="function"?e.setAttribute(t,n):e[t]=n}catch(r){}}Mn.Object.defineProperties(In.prototype,{name:{get:function(){return this.xa},set:function(e){var t=this.xa;t!==e&&(this.xa=e,this.g("name",t,e))}},dataFormat:{get:function(){return this.Sm},set:function(e){var t=this.Sm;t!==e&&(this.Sm=e,this.g("dataFormat",t,e))}},isReadOnly:{get:function(){return this.Gg},set:function(e){var t=this.Gg;t!==e&&(this.Gg=e,this.g("isReadOnly",t,e))}},modelData:{get:function(){return this.j},set:function(e){var t=this.j;t!==e&&(this.j=e,this.g("modelData",t,e),this.La(e))}},undoManager:{get:function(){return this.o},set:function(e){var t=this.o;t!==e&&(t!==null&&t.Rx(this),this.o=e,e!==null&&e.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e}},nodeKeyProperty:{get:function(){return this.Th},set:function(e){var t=this.Th;t!==e&&(e===""&&ft("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&ft("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=e,this.g("nodeKeyProperty",t,e))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(e){var t=this.bl;t!==e&&(this.bl=e,this.g("makeUniqueKeyFunction",t,e))}},nodeDataArray:{get:function(){return this.Tc},set:function(e){var t=this.Tc;if(t!==e){this.kb.clear(),this.Lv();for(var n=e.length,r=0;r<n;r++){var i=e[r];gt(i)||ft("Model.nodeDataArray must only contain Objects, not: "+i),er(i)}for(this.Tc=e,r=new Gt,i=0;i<n;i++){var o=e[i],a=this.wa(o);a===void 0||this.kb.I(a)!==null?r.add(o):this.kb.add(a,o)}for(r=r.iterator;r.next();)i=r.value,this.$u(i),o=this.wa(i),o!==void 0&&this.kb.add(o,i);for(Yo(this,"nodeDataArray",ji,"nodeDataArray",this,t,e),t=0;t<n;t++)r=e[t],this.fm(r),this.em(r);Array.isArray(e)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(e){var t=this.Bk;t!==e&&(this.Bk=e,this.g("copyNodeDataFunction",t,e))}},copiesArrays:{get:function(){return this.Km},set:function(e){var t=this.Km;t!==e&&(this.Km=e,this.g("copiesArrays",t,e))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(e){var t=this.Jm;t!==e&&(this.Jm=e,this.g("copiesArrayObjects",t,e))}},copiesKey:{get:function(){return this.Mm},set:function(e){var t=this.Mm;t!==e&&(this.Mm=e,this.g("copiesKey",t,e))}},afterCopyFunction:{get:function(){return this.xm},set:function(e){var t=this.xm;t!==e&&(this.xm=e,this.g("afterCopyFunction",t,e))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(e){var t=this.lj;t!==e&&(this.lj=e,this.g("nodeCategoryProperty",t,e))}},type:{get:function(){return"Model"}}}),In.prototype.setCategoryForNodeData=In.prototype.jm,In.prototype.getCategoryForNodeData=In.prototype.Ro,In.prototype.removeArrayItem=In.prototype.ov,In.prototype.insertArrayItem=In.prototype.ts,In.prototype.addArrayItem=In.prototype.Ay,In.prototype.assignAllDataProperties=In.prototype.Do,In.prototype.set=In.prototype.set,In.prototype.clearUnresolvedReferences=In.prototype.Qy,In.prototype.mergeNodeDataArray=In.prototype.$z,In.prototype.removeNodeDataCollection=In.prototype.nA,In.prototype.removeNodeData=In.prototype.cm,In.prototype.addNodeDataCollection=In.prototype.Fy,In.prototype.addNodeData=In.prototype.xf,In.prototype.makeNodeDataKeyUnique=In.prototype.$u,In.prototype.findNodeDataForKey=In.prototype.hc,In.prototype.containsNodeData=In.prototype.lb,In.prototype.setKeyForNodeData=In.prototype.km,In.prototype.getKeyForNodeData=In.prototype.wa,In.prototype.updateTargetBindings=In.prototype.La,In.prototype.commit=In.prototype.commit,In.prototype.rollbackTransaction=In.prototype.Kf,In.prototype.commitTransaction=In.prototype.eb,In.prototype.startTransaction=In.prototype.Ea,In.prototype.raiseDataChanged=In.prototype.Fs,In.prototype.raiseChanged=In.prototype.g,In.prototype.raiseChangedEvent=In.prototype.cb,In.prototype.removeChangedListener=In.prototype.ik,In.prototype.addChangedListener=In.prototype.Pe,In.prototype.writeJsonValue=In.prototype.sm,In.prototype.replaceJsonObjects=In.prototype.dm,In.prototype.applyIncrementalJSON=In.prototype.Ky,In.prototype.applyIncrementalJson=In.prototype.Zw,In.prototype.toJSON=In.prototype.toJSON,In.prototype.toJson=In.prototype.np,In.prototype.toIncrementalJSON=In.prototype.yA,In.prototype.toIncrementalJson=In.prototype.$x,In.prototype.toIncrementalData=In.prototype.xA,In.prototype.clear=In.prototype.clear;var jb=!1,lu={};In.className="Model",In.fromJSON=In.fromJson=function(e,t){t===void 0&&(t=null);var n=null;if(typeof e=="string")try{n=pn.JSON.parse(e)}catch(o){}else typeof e=="object"?n=e:ft("Unable to construct a Model from: "+e);if(t===null){e=null;var r=n.class;if(typeof r=="string")try{var i=null;r.indexOf("go.")===0?(r=r.substr(3),i=Ey(r)):(i=Ey(r),i===null&&(i=pn[r])),typeof i=="function"&&(e=new i)}catch(o){}e===null||e instanceof In?t=e:ft("Unable to construct a Model of declared class: "+n.class)}return t===null&&(t=In.constructGraphLinksModel()),t.gp(n),t.kv(n),t},In.safePropertyValue=Ro,In.safePropertySet=io,lu.Brush=di,lu.ChangedEvent=Xi,lu.Geometry=qt,lu.Margin=ar,lu.Panel=Xt,lu.Point=Ie,lu.Rect=xt,lu.Size=mn,lu.Spot=an,lu.Transaction=_o,lu.UndoManager=Ai;function Do(e,t,n,r){Wn(this),this._isFrozen=!1,e===void 0&&(e=""),t===void 0&&(t=e),n===void 0&&(n=null),this.j=-1,this.xd=null,this.xl=e,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=t,this.Im=n,r===void 0?(this.el=Hb,this.wk=null):(this.el=Dp,this.wk=r),this.st=new Kt}Do.prototype.copy=function(){var e=new Do;return e.xl=this.xl,e.to=this.to,e.wl=this.wl,e.Cr=this.Cr,e.wn=this.wn,e.sl=this.sl,e.Im=this.Im,e.el=this.el,e.wk=this.wk,e},me=Do.prototype,me.qb=function(e){e.classType===Do&&(this.mode=e)},me.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},me.freeze=function(){return this._isFrozen=!0,this},me.ka=function(){return this._isFrozen=!1,this},me.Kx=function(e){return e===void 0&&(e=null),this.mode=Dp,this.backConverter=e,this},me.cp=function(e){return e===void 0&&(e=""),this.sourceName=e,this.isToModel=!1,this},me.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function Ub(e,t,n){return e=e.sourceName,e===null||e===""?t:e==="/"?n.part:e==="."?n:e===".."?n.panel:t.fb(e)}me.Mv=function(e,t,n){var r=this.sl;if(n===void 0||r===""||r===n){n=this.xl;var i=this.Im;if(i===null&&n==="")Un("Binding error: target property is the empty string: "+this.toString());else{var o=t;if(r!==""&&(o=Ro(t,r)),o!==void 0)if(i===null)n!==""&&io(e,n,o);else try{if(n!==""){var a=i(o,e);io(e,n,a)}else i(o,e)}catch(d){}}}},me.sp=function(e,t,n,r){if(this.el===Dp){var i=this.xl;if(n===void 0||i===n){n=this.sl;var o=this.wk,a=e;if(i!==""&&(a=Ro(e,i)),a!==void 0&&!this.st.contains(e))try{this.st.add(e);var d=r!==null?r.diagram:null,x=d!==null?d.model:null;if(o===null){if(n!=="")x!==null?x.setDataProperty(t,n,a):io(t,n,a);else if(x!==null&&r!==null&&0<=r.itemIndex&&r.panel!==null&&Array.isArray(r.panel.itemArray)){var O=r.itemIndex,M=r.panel.itemArray;x.ov(M,O),x.ts(M,O,a)}}else try{if(n!==""){var Y=o(a,t,x);x!==null?x.setDataProperty(t,n,Y):io(t,n,Y)}else{var ie=o(a,t,x);if(ie!==void 0&&x!==null&&r!==null&&0<=r.itemIndex&&r.panel!==null&&Array.isArray(r.panel.itemArray)){var ce=r.itemIndex,ge=r.panel.itemArray;x.ov(ge,ce),x.ts(ge,ce,ie)}}}catch(Te){}}finally{this.st.remove(e)}}}},Mn.Object.defineProperties(Do.prototype,{Ai:{get:function(){return this.j},set:function(e){this._isFrozen&&en(this),this.j=e}},targetProperty:{get:function(){return this.xl},set:function(e){this._isFrozen&&en(this),this.xl=e}},sourceName:{get:function(){return this.Cr},set:function(e){this._isFrozen&&en(this),this.Cr=e,e!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(e){this._isFrozen&&en(this),this.wn=e}},sourceProperty:{get:function(){return this.sl},set:function(e){this._isFrozen&&en(this),this.sl=e}},converter:{get:function(){return this.Im},set:function(e){this._isFrozen&&en(this),this.Im=e}},backConverter:{get:function(){return this.wk},set:function(e){this._isFrozen&&en(this),this.wk=e}},mode:{get:function(){return this.el},set:function(e){this._isFrozen&&en(this),this.el=e}}}),Do.prototype.updateSource=Do.prototype.sp,Do.prototype.updateTarget=Do.prototype.Mv,Do.prototype.ofModel=Do.prototype.dA,Do.prototype.ofObject=Do.prototype.cp,Do.prototype.makeTwoWay=Do.prototype.Kx;var X1="Binding",Hb=new Dt(Do,"OneWay",1),Dp=new Dt(Do,"TwoWay",2);Do.className="Binding",Do.parseEnum=function(e,t){return function(n){return n=Ji(e,n),n===null?t:n}},Do.toString=lr,Do.OneWay=Hb,Do.TwoWay=Dp;function Lr(e,t,n){In.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new Kt,this.wb=new Et,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,t!==void 0&&(this.linkDataArray=t),e!==void 0&&(gn(e)?this.nodeDataArray=e:n=e),n&&(Object.assign(this,n),e=n.Changed)&&(delete this.Changed,this.Pe(e))}Kn(Lr,In),Lr.constructGraphLinksModel=In.constructGraphLinksModel,Lr.prototype.cloneProtected=function(e){In.prototype.cloneProtected.call(this,e),e.Jh=this.Jh,e.cl=this.cl,e.Ak=this.Ak,e.lf=this.lf,e.mf=this.mf,e.ej=this.ej,e.fj=this.fj,e.dj=this.dj,e.je=this.je,e.jl=this.jl,e.Je=this.Je,e.Lm=this.Lm},me=Lr.prototype,me.clear=function(){In.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},me.toString=function(e){if(e===void 0&&(e=0),2<=e)return this.np();var t=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<e){t+=`
node data:`,e=this.nodeDataArray;var n=e.length,r;for(r=0;r<n;r++){var i=e[r];t+=" "+this.wa(i)+":"+lr(i)}for(t+=`
link data:`,e=this.linkDataArray,n=e.length,r=0;r<n;r++)i=e[r],t+=" "+gl(this,i,!0)+"-->"+gl(this,i,!1)}return t},me.Qv=function(e,t){this.linkKeyProperty===""&&ft("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var n=In.prototype.Qv.call(this,e,t),r=this,i=new Kt,o=new Kt,a=new Kt,d=this.vh;e.changes.each(function(M){M.model===r&&(M.modelChange==="linkDataArray"?M.change===uo?i.add(M.newValue):M.change===po&&a.add(M.oldValue):r.Jc(M.object)?o.add(M.object):M.object!==null&&(M.object!==null&&d&&d.contains(M.object)?d.get(M.object).each(function(Y){r.Jc(Y)&&o.add(Y)}):M.object instanceof In||r.lb(M.object)||zb(r,M.object).each(function(Y){o.add(Y)})))});var x=this.il;x.clear(),i.each(function(M){x.add(r.Ac(M)),t||o.add(M)});var O=this.kl;return O.clear(),a.each(function(M){O.add(r.Ac(M)),t&&o.add(M)}),e=r.cloneDeep(o.Fa()),0<x.count&&(n===null&&(n={}),t?n.removedLinkKeys=x.Fa():n.insertedLinkKeys=x.Fa()),0<e.length&&(n===null&&(n={}),n.modifiedLinkData=e),0<O.count&&(n===null&&(n={}),t?n.insertedLinkKeys=O.Fa():n.removedLinkKeys=O.Fa()),O.clear(),x.clear(),n},me.rm=function(){var e=In.prototype.rm.call(this),t="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(t+=`,
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(t+=`,
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(t+=`,
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(t+=`,
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(t+=`,
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(t+=`,
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(t+=`,
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(t+=`,
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(t+=`,
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),e+t},me.gp=function(e){In.prototype.gp.call(this,e),e.linkKeyProperty&&(this.linkKeyProperty=e.linkKeyProperty),e.linkFromKeyProperty&&(this.linkFromKeyProperty=e.linkFromKeyProperty),e.linkToKeyProperty&&(this.linkToKeyProperty=e.linkToKeyProperty),e.linkFromPortIdProperty&&(this.linkFromPortIdProperty=e.linkFromPortIdProperty),e.linkToPortIdProperty&&(this.linkToPortIdProperty=e.linkToPortIdProperty),e.linkCategoryProperty&&(this.linkCategoryProperty=e.linkCategoryProperty),e.linkLabelKeysProperty&&(this.linkLabelKeysProperty=e.linkLabelKeysProperty),e.nodeIsGroupProperty&&(this.nodeIsGroupProperty=e.nodeIsGroupProperty),e.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=e.nodeGroupKeyProperty)},me.Rv=function(){var e=In.prototype.Rv.call(this),t=`,
"linkDataArray": `+lh(this,this.linkDataArray,!0);return e+t},me.kv=function(e){In.prototype.kv.call(this,e),e=e.linkDataArray,Array.isArray(e)&&(this.dm(e),this.linkDataArray=e)};function zb(e,t){for(var n=new Kt,r=0;r<e.linkDataArray.length;r++){var i=e.linkDataArray[r];wm(e,t,i,i,n)}return n}me.Pv=function(e,t){this.linkKeyProperty===""&&ft("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var n=In.prototype.Pv.call(this,e,t),r=this,i=new Kt,o=new Kt,a=new Kt,d=this.vh;e.changes.each(function(M){M.model===r&&(M.modelChange==="linkDataArray"?M.change===uo?i.add(M.newValue):M.change===po&&a.add(M.oldValue):r.Jc(M.object)?o.add(M.object):M.object!==null&&(M.object!==null&&d&&d.contains(M.object)?d.get(M.object).each(function(Y){r.Jc(Y)&&o.add(Y)}):M.object instanceof In||r.lb(M.object)||zb(r,M.object).each(function(Y){o.add(Y)})))});var x=this.il;x.clear(),i.each(function(M){x.add(r.Ac(M)),t||o.add(M)});var O=this.kl;return O.clear(),a.each(function(M){O.add(r.Ac(M)),t&&o.add(M)}),e=n,0<x.count&&(e+=(t?this.Xv:this.Vv)+lh(this,x.Fa(),!0)),0<o.count&&(e+=this.iy+lh(this,o.Fa(),!0)),0<O.count&&(e+=(t?this.Vv:this.Xv)+lh(this,O.Fa(),!0)),O.clear(),x.clear(),e},me.fp=function(e){(e.linkCategoryProperty!==void 0&&e.linkCategoryProperty!==this.linkCategoryProperty||e.linkKeyProperty!==void 0&&e.linkKeyProperty!==this.linkKeyProperty||e.linkFromKeyProperty!==void 0&&e.linkFromKeyProperty!==this.linkFromKeyProperty||e.linkToKeyProperty!==void 0&&e.linkToKeyProperty!==this.linkToKeyProperty||e.linkFromPortIdProperty!==void 0&&e.linkFromPortIdProperty!==this.linkFromPortIdProperty||e.linkToPortIdProperty!==void 0&&e.linkToPortIdProperty!==this.linkToPortIdProperty||e.linkLabelKeysProperty!==void 0&&e.linkLabelKeysProperty!==this.linkLabelKeysProperty||e.nodeIsGroupProperty!==void 0&&e.nodeIsGroupProperty!==this.nodeIsGroupProperty||e.nodeGroupKeyProperty!==void 0&&e.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&ft("applyIncrementalJson cannot change Model properties"),In.prototype.fp.call(this,e);var t=e.insertedLinkKeys;if(Array.isArray(t))for(var n=t.length,r=0;r<n;r++){var i=t[r],o=this.jh(i);o===null&&(o=this.Jo({}),this.Ks(o,i),this.fi(o))}if(t=e.modifiedLinkData,Array.isArray(t)){for(n=t.length,r=0;r<n;r++)if(i=t[r],o=this.Ac(i),o=this.jh(o),o!==null){for(var a in i)a!=="__gohashid"&&a!==this.linkKeyProperty&&this.setDataProperty(o,a,i[a]);Vb(this,i,o)}}if(e=e.removedLinkKeys,Array.isArray(e))for(a=e.length,t=0;t<a;t++)n=this.jh(e[t]),n!==null&&this.bm(n)},Lr.prototype.changeState=function(e,t){if(e!==null&&e.model===this){if(e.change===ji){var n=e.object,r=e.propertyName;if(r===this.linkKeyProperty&&this.Jc(n)){var i=e.I(t);t=e.I(!t),t!==void 0&&this.wb.remove(t),i!==void 0&&this.wb.add(i,n),io(n,r,i);return}}else if(e.change===uo){if(n=e.newParam,e.modelChange==="linkDataArray"){e=e.newValue,gt(e)&&typeof n=="number"&&(r=this.Ac(e),t?(this.$f.remove(e),this.md[n]===e&&this.md.splice(n,1),r!==void 0&&this.wb.remove(r)):(this.$f.add(e),this.md[n]!==e&&this.md.splice(n,0,e),r!==void 0&&this.wb.add(r,e)));return}if(e.modelChange==="linkLabelKeys"){r=this.Ef(e.object),Array.isArray(r)&&typeof n=="number"&&(t?(n=r.indexOf(e.newValue),0<=n&&r.splice(n,1)):0>r.indexOf(e.newValue)&&r.splice(n,0,e.newValue));return}}else if(e.change===po){if(n=e.oldParam,e.modelChange==="linkDataArray"){e=e.oldValue,gt(e)&&typeof n=="number"&&(r=this.Ac(e),t?(this.$f.add(e),this.md[n]!==e&&this.md.splice(n,0,e),r!==void 0&&this.wb.add(r,e)):(this.$f.remove(e),this.md[n]===e&&this.md.splice(n,1),r!==void 0&&this.wb.remove(r)));return}if(e.modelChange==="linkLabelKeys"){r=this.Ef(e.object),Array.isArray(r)&&typeof n=="number"&&(t?0>r.indexOf(e.newValue)&&r.splice(n,0,e.newValue):(n=r.indexOf(e.newValue),0<=n&&r.splice(n,1)));return}}In.prototype.changeState.call(this,e,t)}},me=Lr.prototype,me.Vl=function(e){if(e!==void 0){var t=this.Ri;if(t!==null){var n=this.hc(e);n===null&&(n=this.copyNodeData(t),io(n,this.nodeKeyProperty,e),this.xf(n))}return e}},me.yx=function(e){return gl(this,e,!0)},me.wv=function(e,t){md(this,e,t,!0)},me.Bx=function(e){return gl(this,e,!1)},me.Bv=function(e,t){md(this,e,t,!1)};function gl(e,t,n){if(t!==null&&(e=n?e.lf:e.mf,e!==""&&(e=Ro(t,e),e!==void 0))){if(uh(e))return e;ft((n?"FromKey":"ToKey")+" value for link data "+t+" is not a number or a string: "+e)}}function md(e,t,n,r){if(n===null&&(n=void 0),t!==null){var i=r?e.lf:e.mf;if(i!=="")if(n=e.Vl(n),e.Jc(t)){var o=Ro(t,i);o!==n&&(wu(e,o,t),io(t,i,n),e.hc(n)===null&&xu(e,n,t),Yo(e,r?"linkFromKey":"linkToKey",ji,i,t,o,n),typeof i=="string"&&e.La(t,i))}else io(t,i,n)}}me.zx=function(e){return Cm(this,e,!0)},me.xv=function(e,t){vd(this,e,t,!0)},me.Cx=function(e){return Cm(this,e,!1)},me.Cv=function(e,t){vd(this,e,t,!1)};function Cm(e,t,n){return t===null||(e=n?e.ej:e.fj,e==="")?"":(t=Ro(t,e),t===void 0?"":t)}function vd(e,t,n,r){if(t!==null){var i=r?e.ej:e.fj;if(i!=="")if(e.Jc(t)){var o=Ro(t,i);o===void 0&&(o=""),o!==n&&(io(t,i,n),Yo(e,r?"linkFromPortId":"linkToPortId",ji,i,t,o,n),typeof i=="string"&&e.La(t,i))}else io(t,i,n)}}me.Ef=function(e){if(e===null)return Tm;var t=this.je;return t===""?Tm:(e=Ro(e,t),e===void 0?Tm:e)},me.Ls=function(e,t){if(e!==null){var n=this.je;if(n!=="")if(this.Jc(e)){var r=Ro(e,n);if(r===void 0&&(r=Tm),r!==t){if(Array.isArray(r))for(var i=r.length,o=0;o<i;o++)wu(this,r[o],e);for(io(e,n,t),i=t.length,o=0;o<i;o++){var a=t[o];this.hc(a)===null&&xu(this,a,e)}Yo(this,"linkLabelKeys",ji,n,e,r,t),typeof n=="string"&&this.La(e,n)}}else io(e,n,t)}},me.Bu=function(e,t){if(t!=null&&e!==null){var n=this.je;if(n!==""){var r=Ro(e,n);if(r===void 0)n=[],n.push(t),this.Ls(e,n);else if(Array.isArray(r)){var i=r.indexOf(t);0<=i||(i=r.length,r.push(t),this.Jc(e)&&(this.hc(t)===null&&xu(this,t,e),Yo(this,"linkLabelKeys",uo,n,e,null,t,null,i)))}else ft(n+" property is not an Array; cannot addLabelKeyForLinkData: "+e)}}},me.Qx=function(e,t){if(t!=null&&e!==null){var n=this.je;if(n!==""){var r=Ro(e,n);if(Array.isArray(r)){var i=r.indexOf(t);0>i||(r.splice(i,1),this.Jc(e)&&(wu(this,t,e),Yo(this,"linkLabelKeys",po,n,e,t,null,i,null)))}else r!==void 0&&ft(n+" property is not an Array; cannot removeLabelKeyforLinkData: "+e)}}},me.Ac=function(e){if(e!==null){var t=this.Jh;if(t!==""&&(t=Ro(e,t),t!==void 0)){if(uh(t))return t;ft("Key value for link data "+e+" is not a number or a string: "+t)}}},me.Ks=function(e,t){if(e!==null){var n=this.Jh;if(n!=="")if(this.Jc(e)){var r=Ro(e,n);r!==t&&this.jh(t)===null&&(io(e,n,t),r!==void 0&&this.wb.remove(r),this.wb.add(t,e),Yo(this,"linkKey",ji,n,e,r,t),typeof n=="string"&&this.La(e,n))}else io(e,n,t)}},me.jh=function(e){return e===null&&ft("GraphLinksModel.findLinkDataForKey:key must not be null"),e!==void 0&&uh(e)?this.wb.I(e):null},me.Bs=function(e){if(e!==null){var t=this.Jh;if(t!==""){var n=this.Ac(e);if(n===void 0||this.wb.contains(n)){var r=this.cl;if(r!==null&&(n=r(this,e),n!=null&&!this.wb.contains(n))){io(e,t,n);return}if(typeof n=="string"){for(r=2;this.wb.contains(n+r);)r++;io(e,t,n+r)}else if(n===void 0||typeof n=="number"){for(n=-this.wb.count-1;this.wb.contains(n);)n--;io(e,t,n)}}}}},me.Jc=function(e){return e===null?!1:this.$f.contains(e)},me.fi=function(e){e!==null&&(er(e),this.Jc(e)||Gb(this,e,!0))};function Gb(e,t,n){if(e.linkKeyProperty!==""){var r=e.Ac(t);if(r!==void 0&&e.wb.I(r)===t)return;e.Bs(t),r=e.Ac(t),r===void 0&&ft("GraphLinksModel.makeLinkDataKeyUnique failed on "+t+". Data not added to model."),e.wb.add(r,t)}e.$f.add(t),r=null,n&&(r=e.md.length,e.md.splice(r,0,t)),Yo(e,"linkDataArray",uo,"linkDataArray",e,null,t,null,r),Cy(e,t)}me.Ey=function(e){if(Array.isArray(e))for(var t=e.length,n=0;n<t;n++)this.fi(e[n]);else for(e=e.iterator;e.next();)this.fi(e.value)},me.bm=function(e){e!==null&&Wb(this,e,!0)};function Wb(e,t,n){e.$f.remove(t);var r=e.Ac(t);if(r!==void 0&&e.wb.remove(r),r=null,n){if(r=e.md.indexOf(t),0>r)return;e.md.splice(r,1)}if(Yo(e,"linkDataArray",po,"linkDataArray",e,t,null,r,null),n=gl(e,t,!0),wu(e,n,t),n=gl(e,t,!1),wu(e,n,t),r=e.Ef(t),Array.isArray(r))for(var i=r.length,o=0;o<i;o++)n=r[o],wu(e,n,t)}me.lA=function(e){if(Array.isArray(e))for(var t=e.length,n=0;n<t;n++)this.bm(e[n]);else for(e=e.iterator;e.next();)this.bm(e.value)},me.Zz=function(e){if(this.linkKeyProperty===""&&ft("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),e!==this.linkDataArray&&gn(e)){var t=this.kl;t.clear(),t.addAll(this.wb.iteratorKeys);var n=this.il;n.clear();for(var r=e.length,i=0;i<r;i++){var o=e[i],a=this.Ac(o);if(a!==void 0){n.add(a);var d=this.jh(a);d!==o&&(d!==null?(this.Do(d,o),Vb(this,o,d)):(o=this.cloneDeep(o),this.Ks(o,a),this.fi(o)))}else a=this.cloneDeep(o),this.fi(a),n.add(this.Ac(a))}for(e=t.iterator;e.next();)r=e.value,n.contains(r)||(r=this.jh(r))&&this.bm(r);t.clear(),n.clear()}};function Cy(e,t){var n=gl(e,t,!0);n=e.Vl(n),e.hc(n)===null&&xu(e,n,t),n=gl(e,t,!1),n=e.Vl(n),e.hc(n)===null&&xu(e,n,t);var r=e.Ef(t);if(Array.isArray(r))for(var i=r.length,o=0;o<i;o++)n=r[o],e.hc(n)===null&&xu(e,n,t)}me.Jo=function(e){if(e===null)return null;var t=this.Ak;return e=t!==null?t(e,this):Em(this,e,!0),gt(e)&&(Wn(e),this.lf!==""&&io(e,this.lf,void 0),this.mf!==""&&io(e,this.mf,void 0),this.je!==""&&io(e,this.je,[])),e},me.Yu=function(e){if(e===null)return!1;var t=this.jl;return t===""?!1:!!Ro(e,t)},me.lh=function(e){if(e!==null){var t=this.Je;if(t!==""&&(t=Ro(e,t),t!==void 0)){if(uh(t))return t;ft("GroupKey value for node data "+e+" is not a number or a string: "+t)}}},me.mp=function(e,t){if(t===null&&(t=void 0),e!==null){var n=this.Je;if(n!=="")if(this.lb(e)){var r=Ro(e,n);r!==t&&(wu(this,r,e),io(e,n,t),this.hc(t)===null&&xu(this,t,e),Yo(this,"nodeGroupKey",ji,n,e,r,t),typeof n=="string"&&this.La(e,n))}else io(e,n,t)}},Lr.prototype.copyNodeData=function(e){return e===null?null:(e=In.prototype.copyNodeData.call(this,e),this.Ij||this.Je===""||Ro(e,this.Je)===void 0||io(e,this.Je,void 0),e)},Lr.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}if(t===this.nodeGroupKeyProperty){this.mp(e,n);return}}else if(this.Jc(e)){if(t===this.linkFromKeyProperty){md(this,e,n,!0);return}if(t===this.linkToKeyProperty){md(this,e,n,!1);return}if(t===this.linkFromPortIdProperty){vd(this,e,n,!0);return}if(t===this.linkToPortIdProperty){vd(this,e,n,!1);return}if(t===this.linkKeyProperty){this.Ks(e,n);return}if(t===this.linkCategoryProperty){this.lp(e,n);return}if(t===this.linkLabelKeysProperty){this.Ls(e,n);return}}var r=Ro(e,t);r!==n&&(io(e,t,n),this.Fs(e,t,r,n))},me=Lr.prototype,me.Do=function(e,t){if(t){var n=this.lb(e),r=this.Jc(e),i;for(i in t)i==="__gohashid"||n&&i===this.nodeKeyProperty||n&&i===this.nodeIsGroupProperty&&Ro(e,i)===t[i]||r&&i===this.linkKeyProperty||this.setDataProperty(e,i,t[i])}},me.jp=function(e,t){In.prototype.jp.call(this,e,t);for(var n=this.kb.iterator;n.next();)this.qv(n.value,e,t);for(n=this.$f.iterator;n.next();){var r=n.value,i=e,o=t;if(gl(this,r,!0)===i){var a=this.lf;io(r,a,o),Yo(this,"linkFromKey",ji,a,r,i,o),typeof a=="string"&&this.La(r,a)}if(gl(this,r,!1)===i&&(a=this.mf,io(r,a,o),Yo(this,"linkToKey",ji,a,r,i,o),typeof a=="string"&&this.La(r,a)),a=this.Ef(r),Array.isArray(a))for(var d=a.length,x=this.je,O=0;O<d;O++)a[O]===i&&(a[O]=o,Yo(this,"linkLabelKeys",uo,x,r,i,o,O,O))}},me.qv=function(e,t,n){if(this.lh(e)===t){var r=this.Je;io(e,r,n),Yo(this,"nodeGroupKey",ji,r,e,t,n),typeof r=="string"&&this.La(e,r)}},me.Lv=function(){In.prototype.Lv.call(this);for(var e=this.linkDataArray,t=e.length,n=0;n<t;n++)Cy(this,e[n])},me.fm=function(e){In.prototype.fm.call(this,e),e=this.wa(e);var t=Lp(this,e);if(t!==null){var n=Bn();for(t=t.iterator;t.next();){var r=t.value;if(this.lb(r)){if(this.lh(r)===e){var i=this.Je;Yo(this,"nodeGroupKey",ji,i,r,e,e),typeof i=="string"&&this.La(r,i),n.push(r)}}else if(gl(this,r,!0)===e&&(i=this.lf,Yo(this,"linkFromKey",ji,i,r,e,e),typeof i=="string"&&this.La(r,i),n.push(r)),gl(this,r,!1)===e&&(i=this.mf,Yo(this,"linkToKey",ji,i,r,e,e),typeof i=="string"&&this.La(r,i),n.push(r)),i=this.Ef(r),Array.isArray(i))for(var o=i.length,a=this.je,d=0;d<o;d++)i[d]===e&&(Yo(this,"linkLabelKeys",uo,a,r,e,e,d,d),n.push(r))}for(t=0;t<n.length;t++)wu(this,e,n[t]);wn(n)}},me.em=function(e){In.prototype.em.call(this,e);var t=this.lh(e);this.hc(t)===null&&xu(this,t,e)},me.qp=function(e){In.prototype.qp.call(this,e);var t=this.lh(e);wu(this,t,e)},me.ps=function(e){if(e===null)return"";var t=this.dj;if(t===""||(t=Ro(e,t),t===void 0))return"";if(typeof t=="string")return t;ft("getCategoryForLinkData found a non-string category for "+e+": "+t)},Lr.prototype.getLinkCategoryForData=function(e){return this.ps(e)},Lr.prototype.lp=function(e,t){if(e!==null){var n=this.dj;if(n!=="")if(this.Jc(e)){var r=Ro(e,n);r===void 0&&(r=""),r!==t&&(io(e,n,t),Yo(this,"linkCategory",ji,n,e,r,t),typeof n=="string"&&this.La(e,n))}else io(e,n,t)}},Lr.prototype.setLinkCategoryForData=function(e,t){this.lp(e,t)},me=Lr.prototype,me.lm=function(e,t){In.prototype.lm.call(this,e,t),this.mp(t,this.lh(e))};function Vb(e,t,n){e.lp(n,e.ps(t)),e.wv(n,e.yx(t)),e.Bv(n,e.Bx(t)),e.Ls(n,e.Ef(t)),e.xv(n,e.zx(t)),e.Cv(n,e.Cx(t))}me.Wj=function(){return!0},me.ri=function(){return!0},me.xs=function(){return!0},me.Xj=function(){return!0},Mn.Object.defineProperties(Lr.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(e){var t=this.Ri;t!==e&&(this.Ri=e,this.g("archetypeNodeData",t,e))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(e){var t=this.lf;t!==e&&(this.lf=e,this.g("linkFromKeyProperty",t,e))}},linkToKeyProperty:{get:function(){return this.mf},set:function(e){var t=this.mf;t!==e&&(this.mf=e,this.g("linkToKeyProperty",t,e))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(e){var t=this.ej;t!==e&&(this.ej=e,this.g("linkFromPortIdProperty",t,e))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(e){var t=this.fj;t!==e&&(this.fj=e,this.g("linkToPortIdProperty",t,e))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(e){var t=this.je;t!==e&&(this.je=e,this.g("linkLabelKeysProperty",t,e))}},linkDataArray:{get:function(){return this.md},set:function(e){var t=this.md;if(t!==e){this.wb.clear();for(var n=e.length,r=0;r<n;r++){var i=e[r];gt(i)||ft("GraphLinksModel.linkDataArray must only contain Objects, not: "+i),er(i)}if(this.md=e,this.linkKeyProperty!==""){for(r=new Gt,i=0;i<n;i++){var o=e[i],a=this.Ac(o);a===void 0||this.wb.I(a)!==null?r.add(o):this.wb.add(a,o)}for(r=r.iterator;r.next();)i=r.value,this.Bs(i),o=this.Ac(i),o!==void 0&&this.wb.add(o,i)}for(r=new Kt,i=0;i<n;i++)r.add(e[i]);for(this.$f=r,Yo(this,"linkDataArray",ji,"linkDataArray",this,t,e),t=0;t<n;t++)Cy(this,e[t])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(e){var t=this.Jh;if(t!==e){this.Jh=e,this.wb.clear();for(var n=this.linkDataArray.length,r=0;r<n;r++){var i=this.linkDataArray[r],o=this.Ac(i);o===void 0&&(this.Bs(i),o=this.Ac(i)),o!==void 0&&this.wb.add(o,i)}this.g("linkKeyProperty",t,e)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(e){var t=this.cl;t!==e&&(this.cl=e,this.g("makeUniqueLinkKeyFunction",t,e))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(e){var t=this.Ak;t!==e&&(this.Ak=e,this.g("copyLinkDataFunction",t,e))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(e){var t=this.jl;t!==e&&(this.jl=e,this.g("nodeIsGroupProperty",t,e))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(e){var t=this.Je;t!==e&&(this.Je=e,this.g("nodeGroupKeyProperty",t,e))}},Ij:{get:function(){return this.Lm},set:function(e){this.Lm!==e&&(this.Lm=e)}},linkCategoryProperty:{get:function(){return this.dj},set:function(e){var t=this.dj;t!==e&&(this.dj=e,this.g("linkCategoryProperty",t,e))}},type:{get:function(){return"GraphLinksModel"}}}),Lr.prototype.setCategoryForLinkData=Lr.prototype.lp,Lr.prototype.getCategoryForLinkData=Lr.prototype.ps,Lr.prototype.assignAllDataProperties=Lr.prototype.Do,Lr.prototype.setGroupKeyForNodeData=Lr.prototype.mp,Lr.prototype.getGroupKeyForNodeData=Lr.prototype.lh,Lr.prototype.isGroupForNodeData=Lr.prototype.Yu,Lr.prototype.copyLinkData=Lr.prototype.Jo,Lr.prototype.mergeLinkDataArray=Lr.prototype.Zz,Lr.prototype.removeLinkDataCollection=Lr.prototype.lA,Lr.prototype.removeLinkData=Lr.prototype.bm,Lr.prototype.addLinkDataCollection=Lr.prototype.Ey,Lr.prototype.addLinkData=Lr.prototype.fi,Lr.prototype.containsLinkData=Lr.prototype.Jc,Lr.prototype.makeLinkDataKeyUnique=Lr.prototype.Bs,Lr.prototype.findLinkDataForKey=Lr.prototype.jh,Lr.prototype.setKeyForLinkData=Lr.prototype.Ks,Lr.prototype.getKeyForLinkData=Lr.prototype.Ac,Lr.prototype.removeLabelKeyForLinkData=Lr.prototype.Qx,Lr.prototype.addLabelKeyForLinkData=Lr.prototype.Bu,Lr.prototype.setLabelKeysForLinkData=Lr.prototype.Ls,Lr.prototype.getLabelKeysForLinkData=Lr.prototype.Ef,Lr.prototype.setToPortIdForLinkData=Lr.prototype.Cv,Lr.prototype.getToPortIdForLinkData=Lr.prototype.Cx,Lr.prototype.setFromPortIdForLinkData=Lr.prototype.xv,Lr.prototype.getFromPortIdForLinkData=Lr.prototype.zx,Lr.prototype.setToKeyForLinkData=Lr.prototype.Bv,Lr.prototype.getToKeyForLinkData=Lr.prototype.Bx,Lr.prototype.setFromKeyForLinkData=Lr.prototype.wv,Lr.prototype.getFromKeyForLinkData=Lr.prototype.yx,Lr.prototype.clear=Lr.prototype.clear;var Tm=Object.freeze([]);Lr.className="GraphLinksModel",lu.GraphLinksModel=Lr,In.constructGraphLinksModel=In.constructGraphLinksModel=function(){return new Lr},In.initDiagramModel=wy=function(){return new Lr};function ma(e,t){In.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",e!==void 0&&(gn(e)?this.nodeDataArray=e:t=e),t&&(Object.assign(this,t),e=t.Changed)&&(delete this.Changed,this.Pe(e))}Kn(ma,In),ma.constructGraphLinksModel=In.constructGraphLinksModel,ma.prototype.cloneProtected=function(e){In.prototype.cloneProtected.call(this,e),e.Ke=this.Ke,e.Nm=this.Nm,e.nj=this.nj},me=ma.prototype,me.toString=function(e){if(e===void 0&&(e=0),2<=e)return this.np();var t=(this.name!==""?this.name:"")+" TreeModel";if(0<e){t+=`
node data:`,e=this.nodeDataArray;for(var n=e.length,r=0;r<n;r++){var i=e[r];t+=" "+this.wa(i)+":"+lr(i)}}return t},me.rm=function(){var e=In.prototype.rm.call(this),t="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(t+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),e+t},me.gp=function(e){In.prototype.gp.call(this,e),e.nodeParentKeyProperty&&(this.nodeParentKeyProperty=e.nodeParentKeyProperty)},me.fp=function(e){e.nodeParentKeyProperty!==void 0&&e.nodeParentKeyProperty!==this.nodeParentKeyProperty&&ft("applyIncrementalJson cannot change Model properties"),In.prototype.fp.call(this,e)},me.Vl=function(e){return e},me.mh=function(e){if(e!==null){var t=this.Ke;if(t!==""&&(t=Ro(e,t),t!==void 0)){if(uh(t))return t;ft("ParentKey value for node data "+e+" is not a number or a string: "+t)}}},me.qe=function(e,t){if(t===null&&(t=void 0),e!==null){var n=this.Ke;if(n!=="")if(t=this.Vl(t),this.lb(e)){var r=Ro(e,n);r!==t&&(wu(this,r,e),io(e,n,t),this.hc(t)===null&&xu(this,t,e),Yo(this,"nodeParentKey",ji,n,e,r,t),typeof n=="string"&&this.La(e,n))}else io(e,n,t)}},me.ss=function(e){if(e===null)return"";var t=this.nj;return t===""||(t=Ro(e,t),t===void 0)?"":typeof t=="string"?t:(ft("getParentLinkCategoryForNodeData found a non-string category for "+e+": "+t),"")},ma.prototype.getLinkCategoryForData=function(e){return this.ss(e)},ma.prototype.Ms=function(e,t){if(e!==null){var n=this.nj;if(n!=="")if(this.lb(e)){var r=Ro(e,n);r===void 0&&(r=""),r!==t&&(io(e,n,t),Yo(this,"parentLinkCategory",ji,n,e,r,t),typeof n=="string"&&this.La(e,n))}else io(e,n,t)}},ma.prototype.setLinkCategoryForData=function(e,t){this.Ms(e,t)},ma.prototype.copyNodeData=function(e){return e===null?null:(e=In.prototype.copyNodeData.call(this,e),this.Jj||this.Ke===""||Ro(e,this.Ke)===void 0||io(e,this.Ke,void 0),e)},ma.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}if(t===this.nodeParentKeyProperty){this.qe(e,n);return}}var r=Ro(e,t);r!==n&&(io(e,t,n),this.Fs(e,t,r,n))},me=ma.prototype,me.jp=function(e,t){In.prototype.jp.call(this,e,t);for(var n=this.kb.iterator;n.next();)this.qv(n.value,e,t)},me.qv=function(e,t,n){if(this.mh(e)===t){var r=this.Ke;io(e,r,n),Yo(this,"nodeParentKey",ji,r,e,t,n),typeof r=="string"&&this.La(e,r)}},me.fm=function(e){In.prototype.fm.call(this,e),e=this.wa(e);var t=Lp(this,e);if(t!==null){var n=Bn();for(t=t.iterator;t.next();){var r=t.value;if(this.lb(r)&&this.mh(r)===e){var i=this.Ke;Yo(this,"nodeParentKey",ji,i,r,e,e),typeof i=="string"&&this.La(r,i),n.push(r)}}for(t=0;t<n.length;t++)wu(this,e,n[t]);wn(n)}},me.em=function(e){In.prototype.em.call(this,e);var t=this.mh(e);t=this.Vl(t),this.hc(t)===null&&xu(this,t,e)},me.qp=function(e){In.prototype.qp.call(this,e);var t=this.mh(e);wu(this,t,e)},me.lm=function(e,t){In.prototype.lm.call(this,e,t),this.Ms(t,this.ss(e)),this.qe(t,this.mh(e))},me.Tl=function(){return!0},me.xs=function(){return!0},Mn.Object.defineProperties(ma.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(e){var t=this.Ke;t!==e&&(this.Ke=e,this.g("nodeParentKeyProperty",t,e))}},Jj:{get:function(){return this.Nm},set:function(e){this.Nm!==e&&(this.Nm=e)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(e){var t=this.nj;t!==e&&(this.nj=e,this.g("parentLinkCategoryProperty",t,e))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(e){this.parentLinkCategoryProperty=e}},type:{get:function(){return"TreeModel"}}}),ma.prototype.setParentLinkCategoryForNodeData=ma.prototype.Ms,ma.prototype.getParentLinkCategoryForNodeData=ma.prototype.ss,ma.prototype.setParentKeyForNodeData=ma.prototype.qe,ma.prototype.getParentKeyForNodeData=ma.prototype.mh,ma.className="TreeModel",lu.TreeModel=ma;function fo(e){ao.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=uu,this.Ti=0,this.Zv=new Ie,this.Jp=this.me=0,this.Xr=new jp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=uu,this.K=va,this.nd=bd,this.hd=my,this.tf=6,this.Nn=Om,e&&Object.assign(this,e)}Kn(fo,ao),fo.prototype.cloneProtected=function(e){ao.prototype.cloneProtected.call(this,e),e.eo=this.eo,e.Cm=this.Cm,e.ro=this.ro,e.ul=this.ul,e.Rb=this.Rb,e.K=this.K,e.nd=this.nd,e.hd=this.hd,e.tf=this.tf,e.Nn=this.Nn},fo.prototype.qb=function(e){e.classType===fo?e===Im||e===Rm||e===km||e===Nm||e===bd?this.sorting=e:e===$h||e===yd||e===va||e===hh?this.direction=e:e===Fc||e===ch||e===uu||e===cu?this.arrangement=e:(e===wf||e===Om)&&(this.nodeDiameterFormula=e):ao.prototype.qb.call(this,e)},fo.prototype.createNetwork=function(){return new Sd(this)},fo.prototype.doLayout=function(e){if(this.network===null&&(this.network=this.makeNetwork(e)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),e=this.network.vertexes,1>=e.count)e.count===1&&(e=e.first(),e.centerX=0,e.centerY=0);else{var t=new Gt;t.addAll(e.iterator),e=new Gt;var n=new Gt,r=this.sort(t),i,o,a=this.Jp,d=this.arrangement,x=this.nodeDiameterFormula,O=this.radius;(!isFinite(O)||0>=O)&&(O=NaN);var M=this.aspectRatio;(!isFinite(M)||0>=M)&&(M=1);var Y=this.startAngle;isFinite(Y)||(Y=0);var ie=this.sweepAngle;if((!isFinite(ie)||360<ie||1>ie)&&(ie=360),t=this.spacing,isFinite(t)||(t=NaN),d===cu&&x===wf?d=uu:d===cu&&x!==wf&&(d=this.arrangement),(this.direction===$h||this.direction===yd)&&this.sorting!==bd){for(x=0;!(x>=r.length)&&(e.add(r.M(x)),!(x+1>=r.length));x+=2)n.add(r.M(x+1));this.direction===$h?(this.arrangement===cu&&e.reverse(),r=new Gt,r.addAll(e),r.addAll(n)):(this.arrangement===cu&&n.reverse(),r=new Gt,r.addAll(n),r.addAll(e))}x=r.length;for(var ce=o=i=0;ce<r.length;ce++){var ge=Y+ie*o*(this.direction===va?1:-1)/x,Te=r.M(ce).diameter;isNaN(Te)&&(Te=fh(r.M(ce),ge)),360>ie&&(ce===0||ce===r.length-1)&&(Te/=2),i+=Te,o++}if(isNaN(O)||d===cu){if(isNaN(t)&&(t=6),d!==uu&&d!==cu){for(o=-1/0,a=0;a<x;a++)ce=r.M(a),i=r.M(a===x-1?0:a+1),isNaN(ce.diameter)&&fh(ce,0),isNaN(i.diameter)&&fh(i,0),o=Math.max(o,(ce.diameter+i.diameter)/2);a=o+t,d===Fc?O=(o+t)/(2*Math.PI/x):O=_m(this,a*(360<=ie?x:x-1),M,Y*Math.PI/180,ie*Math.PI/180)}else O=_m(this,i+(360<=ie?x:x-1)*(d!==cu?t:1.6*t),M,Y*Math.PI/180,ie*Math.PI/180);o=O*M}else if(o=O*M,ce=Ty(this,O,o,Y*Math.PI/180,ie*Math.PI/180),isNaN(t))(d===uu||d===cu)&&(t=(ce-i)/(360<=ie?x:x-1));else if(d===uu||d===cu)ce=(ce-i)/(360<=ie?x:x-1),ce<t?(O=_m(this,i+t*(360<=ie?x:x-1),M,Y*Math.PI/180,ie*Math.PI/180),o=O*M):t=ce;else{for(a=-1/0,i=0;i<x;i++)ge=r.M(i),Te=r.M(i===x-1?0:i+1),isNaN(ge.diameter)&&fh(ge,0),isNaN(Te.diameter)&&fh(Te,0),a=Math.max(a,(ge.diameter+Te.diameter)/2);a+=t,i=_m(this,a*(360<=ie?x:x-1),M,Y*Math.PI/180,ie*Math.PI/180),i>O?(O=i,o=O*M):a=ce/(360<=ie?x:x-1)}if(this.kw=d,this.lc=O,this.Zm=M,this.lw=Y,this.Wp=ie,this.Ti=t,this.me=o,this.Jp=a,t=r,r=this.kw,d=this.lc,O=this.lw,M=this.Wp,Y=this.Ti,ie=this.me,x=this.Jp,this.direction!==$h&&this.direction!==yd||r!==cu)if(this.direction===$h||this.direction===yd){switch(a=0,r){case ch:a=180*Am(this,d,ie,O,x)/Math.PI;break;case uu:x=t=0,a=e.first(),a!==null&&(t=fh(a,Math.PI/2)),a=n.first(),a!==null&&(x=fh(a,Math.PI/2)),a=180*Am(this,d,ie,O,Y+(t+x)/2)/Math.PI;break;case Fc:a=M/t.length}if(this.direction===$h){switch(r){case ch:Bp(this,e,O,hh);break;case uu:Fp(this,e,O,hh);break;case Fc:Pp(this,e,M/2,O,hh)}switch(r){case ch:Bp(this,n,O+a,va);break;case uu:Fp(this,n,O+a,va);break;case Fc:Pp(this,n,M/2,O+a,va)}}else{switch(r){case ch:Bp(this,n,O,hh);break;case uu:Fp(this,n,O,hh);break;case Fc:Pp(this,n,M/2,O,hh)}switch(r){case ch:Bp(this,e,O+a,va);break;case uu:Fp(this,e,O+a,va);break;case Fc:Pp(this,e,M/2,O+a,va)}}}else switch(r){case ch:Bp(this,t,O,this.direction);break;case uu:Fp(this,t,O,this.direction);break;case Fc:Pp(this,t,M,O,this.direction);break;case cu:Kb(this,t,M,O,this.direction)}else Kb(this,t,M,O-M/2,va)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Pp(e,t,n,r,i){var o=e.Wp,a=e.lc;e=e.me,r=r*Math.PI/180,n=n*Math.PI/180;for(var d=t.length,x=0;x<d;x++){var O=r+(i===va?x*n/(360<=o?d:d-1):-(x*n)/d),M=t.M(x),Y=a*Math.tan(O)/e;Y=Math.sqrt((a*a+e*e*Y*Y)/(1+Y*Y)),M.centerX=Y*Math.cos(O),M.centerY=Y*Math.sin(O),M.actualAngle=180*O/Math.PI}}function Fp(e,t,n,r){var i=e.lc,o=e.me,a=e.Ti;n=n*Math.PI/180;for(var d=t.length,x=0;x<d;x++){var O=t.M(x),M=t.M(x===d-1?0:x+1),Y=o*Math.sin(n);O.centerX=i*Math.cos(n),O.centerY=Y,O.actualAngle=180*n/Math.PI,isNaN(O.diameter)&&fh(O,0),isNaN(M.diameter)&&fh(M,0),O=Am(e,i,o,r===va?n:-n,(O.diameter+M.diameter)/2+a),n+=r===va?O:-O}}function Bp(e,t,n,r){var i=e.lc,o=e.me,a=e.Jp;n=n*Math.PI/180;for(var d=t.length,x=0;x<d;x++){var O=t.M(x);O.centerX=i*Math.cos(n),O.centerY=o*Math.sin(n),O.actualAngle=180*n/Math.PI,O=Am(e,i,o,r===va?n:-n,a),n+=r===va?O:-O}}function Kb(e,t,n,r,i){var o=e.Wp;if(e.mj=0,e.Xr=new jp,360>n){for(o=r+(i===va?o:-o);0>o;)o+=360;o%=360,180<o&&(o-=360),o*=Math.PI/180,e.gt=o,$b(e,t,n,r,i)}else Yb(e,t,n,r,i);e.Xr.commit(t)}function Yb(e,t,n,r,i){var o=e.lc,a=e.Ti,d=e.Zm,x=o*Math.cos(r*Math.PI/180),O=e.me*Math.sin(r*Math.PI/180),M=t.Fa();if(M.length===3)M[0].centerX=o,M[0].centerY=0,M[1].centerX=M[0].centerX-M[0].width/2-M[1].width/2-a,M[1].y=M[0].y,M[2].centerX=(M[0].centerX+M[1].centerX)/2,M[2].y=M[0].y-M[2].height-a;else if(M.length===4)M[0].centerX=o,M[0].centerY=0,M[2].centerX=-M[0].centerX,M[2].centerY=M[0].centerY,M[1].centerX=0,M[1].y=Math.min(M[0].y,M[2].y)-M[1].height-a,M[3].centerX=0,M[3].y=Math.max(M[0].y+M[0].height+a,M[2].y+M[2].height+a);else{o=Ie.alloc();for(var Y=0;Y<M.length&&(M[Y].centerX=x,M[Y].centerY=O,!(Y>=M.length-1));Y++)Xb(e,x,O,M,Y,i,o)||Zb(e,x,O,M,Y,i,o),x=o.x,O=o.y;if(Ie.free(o),e.mj++,!(23<e.mj)){x=M[0].centerX,O=M[0].centerY,o=M[M.length-1].centerX,Y=M[M.length-1].centerY;var ie=Math.abs(x-o)-((M[0].width+M[M.length-1].width)/2+a),ce=Math.abs(O-Y)-((M[0].height+M[M.length-1].height)/2+a);a=0,1>Math.abs(ce)?Math.abs(x-o)<(M[0].width+M[M.length-1].width)/2&&(a=0):a=0<ce?ce:1>Math.abs(ie)?0:ie,x=Math.abs(o)>Math.abs(Y)?0<o!=O>Y:0<Y!=x<o,(x=i===va?x:!x)&&(a=-Math.abs(a),a=Math.min(a,-M[M.length-1].width),a=Math.min(a,-M[M.length-1].height)),e.Xr.compare(a,M),1<Math.abs(a)&&(e.lc=8>e.mj?e.lc-a/(2*Math.PI):5>M.length&&10<a?e.lc/2:e.lc-(0<a?1.7:-2.3),e.me=e.lc*d,Yb(e,t,n,r,i))}}}function $b(e,t,n,r,i){for(var o=e.lc,a=e.me,d=e.Zm,x=o*Math.cos(r*Math.PI/180),O=a*Math.sin(r*Math.PI/180),M=Ie.alloc(),Y=t.Fa(),ie=0;ie<Y.length&&(Y[ie].centerX=x,Y[ie].centerY=O,!(ie>=Y.length-1));ie++)Xb(e,x,O,Y,ie,i,M)||Zb(e,x,O,Y,ie,i,M),x=M.x,O=M.y;if(Ie.free(M),e.mj++,!(23<e.mj)){if(x=Math.atan2(O,x),x=i===va?e.gt-x:x-e.gt,x=Math.abs(x)<Math.abs(x-2*Math.PI)?x:x-2*Math.PI,o=x*(o+a)/2,a=e.Xr,Math.abs(o)<Math.abs(a.Pl))for(a.Pl=o,a.mk=[],a.tm=[],x=0;x<Y.length;x++)a.mk[x]=Y[x].bounds.x,a.tm[x]=Y[x].bounds.y;1<Math.abs(o)&&(e.lc=8>e.mj?e.lc-o/(2*Math.PI):e.lc-(0<o?1.7:-2.3),e.me=e.lc*d,$b(e,t,n,r,i))}}function Xb(e,t,n,r,i,o,a){var d=e.lc,x=e.me,O=0;e=(r[i].width+r[i+1].width)/2+e.Ti;var M=!1;if(0<=n!=(o===va)){if(o=t+e,o>d){if(o=t-e,o<-d)return a.x=o,a.y=O,!1;M=!0}}else if(o=t-e,o<-d){if(o=t+e,o>d)return a.x=o,a.y=O,!1;M=!0}return O=Math.sqrt(1-Math.min(1,o*o/(d*d)))*x,0>n!==M&&(O=-O),Math.abs(n-O)>(r[i].height+r[i+1].height)/2?(a.x=o,a.y=O,!1):(a.x=o,a.y=O,!0)}function Zb(e,t,n,r,i,o,a){var d=e.lc,x=e.me,O=0;if(e=(r[i].height+r[i+1].height)/2+e.Ti,r=!1,0<=t!=(o===va)){if(o=n-e,o<-x){if(o=n+e,o>x){a.x=O,a.y=o;return}r=!0}}else if(o=n+e,o>x){if(o=n-e,o<-x){a.x=O,a.y=o;return}r=!0}O=Math.sqrt(1-Math.min(1,o*o/(x*x)))*d,0>t!==r&&(O=-O),a.x=O,a.y=o}fo.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},fo.prototype.commitNodes=function(){var e=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,t=e?this.group.location.copy():null,n=this.actualCenter;e?n=new Ie(0,0):(n.x=this.arrangementOrigin.x+this.lc,n.y=this.arrangementOrigin.y+this.me);for(var r=this.network.vertexes.iterator;r.next();){var i=r.value;i.x+=n.x,i.y+=n.y,i.commit()}e&&(this.group.Va(),e=this.group.position.copy(),n=this.group.location.copy(),t=t.re(n.re(e)),this.group.move(t),this.Zv=t.re(e))},fo.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()};function Ty(e,t,n,r,i){var o=e.ty;if(.001>Math.abs(e.Zm-1))return r!==void 0&&i!==void 0?i*t:2*Math.PI*t;e=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n;for(var a=0,d=r!==void 0&&i!==void 0?i/(o+1):Math.PI/(2*(o+1)),x=0,O=0;O<=o;O++){r!==void 0&&i!==void 0?x=r+O*i/o:x=O*Math.PI/(2*o);var M=Math.sin(x);a+=Math.sqrt(1-e*e*M*M)*d}return r!==void 0&&i!==void 0?(t>n?t:n)*a:4*(t>n?t:n)*a}function _m(e,t,n,r,i){return t/(r!==void 0&&i!==void 0?Ty(e,1,n,r,i):Ty(e,1,n))}function Am(e,t,n,r,i){if(.001>Math.abs(e.Zm-1))return i/t;var o=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n,a=0;e=2*Math.PI/(700*e.network.vertexes.count),t>n&&(r+=Math.PI/2);for(var d=0;;d++){var x=Math.sin(r+d*e);if(a+=(t>n?t:n)*Math.sqrt(1-o*o*x*x)*e,a>=i)return d*e}}fo.prototype.sort=function(e){switch(this.sorting){case km:break;case Nm:e.reverse();break;case Im:e.sort(this.comparer);break;case Rm:e.sort(this.comparer),e.reverse();break;case bd:return this.ak(Z1(e));default:ft("Invalid sorting type.")}return e};function Z1(e){for(var t=[],n=0;n<e.length;n++)t.push(0);n=new Gt;for(var r=0;r<e.length;r++){var i=-1,o=-1;if(r===0)for(var a=0;a<e.length;a++){var d=e.M(a).edgesCount;d>i&&(i=d,o=a)}else for(a=0;a<e.length;a++)d=t[a],d>i&&(i=d,o=a);for(n.add(e.M(o)),t[o]=-1,o=e.M(o),a=o.sourceEdges;a.next();)i=e.indexOf(a.value.fromVertex),0>i||0<=t[i]&&t[i]++;for(o=o.destinationEdges;o.next();)i=e.indexOf(o.value.toVertex),0>i||0<=t[i]&&t[i]++}return n}fo.prototype.ak=function(e){for(var t=[],n=0;n<e.length;n++){var r=e.M(n);t[n]=[];for(var i,o=r.destinationEdges;o.next();)i=e.indexOf(o.value.toVertex),i!==n&&0>t[n].indexOf(i)&&t[n].push(i);for(r=r.sourceEdges;r.next();)i=e.indexOf(r.value.fromVertex),i!==n&&0>t[n].indexOf(i)&&t[n].push(i)}for(o=[],n=0;n<t.length;n++)o[n]=0;n=[];var a=[],d=[];r=[],i=new Gt;for(var x=0,O=0;O<t.length;O++){var M=t[O].length;if(M===1)r.push(O);else if(M===0)i.add(e.M(O));else{if(x===0)n.push(O);else{for(var Y=M=1/0,ie=-1,ce=[],ge=0;ge<n.length;ge++)0>t[n[ge]].indexOf(n[ge===n.length-1?0:ge+1])&&ce.push(ge===n.length-1?0:ge+1);if(ce.length===0)for(ge=0;ge<n.length;ge++)ce.push(ge);for(ge=0;ge<ce.length;ge++){for(var Te=ce[ge],Ve=t[O],He=0,Xe=0;Xe<a.length;Xe++){var Ze=o[a[Xe]],qe=o[d[Xe]];if(Ze<qe){var st=Ze;Ze=qe}else st=qe;if(st<Te&&Te<=Ze)for(qe=0;qe<Ve.length;qe++){var yt=Ve[qe];0>n.indexOf(yt)||st<o[yt]&&o[yt]<Ze||st===o[yt]||Ze===o[yt]||He++}else for(qe=0;qe<Ve.length;qe++)yt=Ve[qe],0>n.indexOf(yt)||st<o[yt]&&o[yt]<Ze&&st!==o[yt]&&Ze!==o[yt]&&He++}for(Ve=He,Xe=He=0;Xe<t[O].length;Xe++)st=n.indexOf(t[O][Xe]),0<=st&&(st=Math.abs(Te-(st>=Te?st+1:st)),He+=st<n.length+1-st?st:n.length+1-st);for(Xe=0;Xe<a.length;Xe++)st=o[a[Xe]],Ze=o[d[Xe]],st>=Te&&st++,Ze>=Te&&Ze++,st>Ze&&(qe=Ze,Ze=st,st=qe),Ze-st<(n.length+2)/2==(st<Te&&Te<=Ze)&&He++;(Ve<M||Ve===M&&He<Y)&&(M=Ve,Y=He,ie=Te)}for(n.splice(ie,0,O),M=0;M<n.length;M++)o[n[M]]=M;for(M=0;M<t[O].length;M++)Y=t[O][M],0<=n.indexOf(Y)&&(a.push(O),d.push(Y))}x++}}for(a=n.length;;){for(o=!0,d=0;d<r.length;d++)if(x=r[d],O=t[x][0],M=n.indexOf(O),0<=M){for(ie=Y=0;ie<t[O].length;ie++)ce=n.indexOf(t[O][ie]),0>ce||ce===M||(ge=ce>M?ce-M:M-ce,Y+=ce<M!=ge>a-ge?1:-1);n.splice(0>Y?M:M+1,0,x),r.splice(d,1),d--}else o=!1;if(o)break;n.push(r[0]),r.splice(0,1)}for(t=0;t<n.length;t++)i.add(e.M(n[t]));return i},Mn.Object.defineProperties(fo.prototype,{radius:{get:function(){return this.eo},set:function(e){this.eo!==e&&(0<e||isNaN(e))&&(this.eo=e,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(e){this.Cm!==e&&0<e&&(this.Cm=e,this.C())}},startAngle:{get:function(){return this.ro},set:function(e){this.ro!==e&&(this.ro=e,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(e){this.ul!==e&&(0<e&&360>=e?this.ul=e:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==cu&&e!==uu&&e!==ch&&e!==Fc||(this.Rb=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K===e||e!==va&&e!==hh&&e!==$h&&e!==yd||(this.K=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==km&&e!==Nm&&e!==Im&&!Rm&&e!==bd||(this.nd=e,this.C())}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e,this.C())}},spacing:{get:function(){return this.tf},set:function(e){this.tf!==e&&(this.tf=e,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(e){this.Nn===e||e!==Om&&e!==wf||(this.Nn=e,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var uu=new Dt(fo,"ConstantSpacing",0),ch=new Dt(fo,"ConstantDistance",1),Fc=new Dt(fo,"ConstantAngle",2),cu=new Dt(fo,"Packed",3),va=new Dt(fo,"Clockwise",4),hh=new Dt(fo,"Counterclockwise",5),$h=new Dt(fo,"BidirectionalLeft",6),yd=new Dt(fo,"BidirectionalRight",7),km=new Dt(fo,"Forwards",8),Nm=new Dt(fo,"Reverse",9),Im=new Dt(fo,"Ascending",10),Rm=new Dt(fo,"Descending",11),bd=new Dt(fo,"Optimized",12),Om=new Dt(fo,"Pythagorean",13),wf=new Dt(fo,"Circular",14);fo.className="CircularLayout",fo.ConstantSpacing=uu,fo.ConstantDistance=ch,fo.ConstantAngle=Fc,fo.Packed=cu,fo.Clockwise=va,fo.Counterclockwise=hh,fo.BidirectionalLeft=$h,fo.BidirectionalRight=yd,fo.Forwards=km,fo.Reverse=Nm,fo.Ascending=Im,fo.Descending=Rm,fo.Optimized=bd,fo.Pythagorean=Om,fo.Circular=wf;function jp(){this.Pl=-1/0,this.tm=this.mk=null}jp.prototype.compare=function(e,t){if(0<e&&0>this.Pl||Math.abs(e)<Math.abs(this.Pl)&&!(0>e&&0<this.Pl))for(this.Pl=e,this.mk=[],this.tm=[],e=0;e<t.length;e++)this.mk[e]=t[e].bounds.x,this.tm[e]=t[e].bounds.y},jp.prototype.commit=function(e){if(this.mk!==null&&this.tm!==null)for(var t=0;t<this.mk.length;t++){var n=e.M(t);n.x=this.mk[t],n.y=this.tm[t]}},jp.className="VertexArrangement";function Sd(e){Gi.call(this,e)}Kn(Sd,Gi),Sd.prototype.createVertex=function(){return new Up(this)},Sd.prototype.createEdge=function(){return new Lm(this)},Sd.className="CircularNetwork";function Up(e){Jo.call(this,e),this.u=this.Si=NaN}Kn(Up,Jo);function fh(e,t){var n=e.network;if(n===null)return NaN;if(n=n.layout,n===null)return NaN;if(n.arrangement===cu)if(n.nodeDiameterFormula===wf)e.Si=Math.max(e.width,e.height);else{if(n=Math.abs(Math.sin(t)),t=Math.abs(Math.cos(t)),n===0)return e.width;if(t===0)return e.height;e.Si=Math.min(e.height/n,e.width/t)}else e.Si=n.nodeDiameterFormula===wf?Math.max(e.width,e.height):Math.sqrt(e.width*e.width+e.height*e.height);return e.Si}Mn.Object.defineProperties(Up.prototype,{diameter:{get:function(){return this.Si},set:function(e){this.Si!==e&&(this.Si=e)}},actualAngle:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}}}),Up.className="CircularVertex";function Lm(e){Qa.call(this,e)}Kn(Lm,Qa),Lm.className="CircularEdge";function Ds(e){ao.call(this),this.ah=null,this.An=0,this.$d=new mn(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,e&&Object.assign(this,e)}Kn(Ds,ao),Ds.prototype.cloneProtected=function(e){ao.prototype.cloneProtected.call(this,e),e.$d.assign(this.$d),e.Bm=this.Bm,e.sf=this.sf,e.td=this.td,e.dl=this.dl,e.$m=this.$m,e.Zf=this.Zf,e.In=this.In,e.fo=this.fo,e.Hk=this.Hk,e.Gk=this.Gk,e.Ek=this.Ek,e.Fk=this.Fk,e.Vm=this.Vm,e.Um=this.Um},Ds.prototype.createNetwork=function(){return new Ef(this)},Ds.prototype.doLayout=function(e){if(this.network===null&&(this.network=this.makeNetwork(e)),e=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var t=this.network.vertexes.iterator;t.next();){var n=t.value;n.charge=this.electricalCharge(n),n.mass=this.gravitationalMass(n)}for(t=this.network.edges.iterator;t.next();)n=t.value,n.stiffness=this.springStiffness(n),n.length=this.springLength(n);if(this.Cu(),this.An=0,this.needsClusterLayout()){t=this.network,n=t.Zx();for(var r=n.iterator;r.next();){this.network=r.value;for(var i=this.network.vertexes.iterator;i.next();){var o=i.value;o.Vd=o.vertexes.count,o.sh=1,o.Hj=null,o.We=null}Jb(this,0,e)}this.network=t;var a=r=n.iterator;r=this.arrangementSpacing;var d=a.count,x=!0;o=i=0;for(var O=Bn(),M=0;M<d+t.vertexes.count+2;M++)O[M]=null;d=0,a.reset();for(var Y=xt.alloc();a.next();)if(M=a.value,this.computeBounds(M,Y),x)x=!1,i=Y.x+Y.width/2,o=Y.y+Y.height/2,O[0]=new Ie(Y.x+Y.width+r.width,Y.y),O[1]=new Ie(Y.x,Y.y+Y.height+r.height),d=2;else{var ie=Qb(O,d,i,o,Y.width,Y.height,r),ce=O[ie],ge=new Ie(ce.x+Y.width+r.width,ce.y),Te=new Ie(ce.x,ce.y+Y.height+r.height);for(ie+1<d&&O.splice(ie+1,0,null),O[ie]=ge,O[ie+1]=Te,d++,ie=ce.x-Y.x,ce=ce.y-Y.y,M=M.vertexes.iterator;M.next();)ge=M.value,ge.centerX+=ie,ge.centerY+=ce}for(xt.free(Y),M=t.vertexes.iterator;M.next();)a=M.value,ie=a.bounds,2>d?(i=ie.x+ie.width/2,o=ie.y+ie.height/2,O[0]=new Ie(ie.x+ie.width+r.width,ie.y),O[1]=new Ie(ie.x,ie.y+ie.height+r.height),d=2):(x=Qb(O,d,i,o,ie.width,ie.height,r),Y=O[x],ce=new Ie(Y.x+ie.width+r.width,Y.y),ie=new Ie(Y.x,Y.y+ie.height+r.height),x+1<d&&O.splice(x+1,0,null),O[x]=ce,O[x+1]=ie,d++,a.centerX=Y.x+a.width/2,a.centerY=Y.y+a.height/2);for(wn(O),r=n.iterator;r.next();){for(n=r.value,i=n.vertexes.iterator;i.next();)t.dh(i.value);for(n=n.edges.iterator;n.next();)t.Bo(n.value)}}e1(this,e),this.updateParts()}this.dl=e,this.network=null,this.isValidLayout=!0},Ds.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var e=0,t=0,n=this.network.vertexes.first().bounds,r=this.network.vertexes.iterator;r.next();){if(r.value.bounds.Yc(n)&&(e++,2<e))return!0;if(10<t)break;t++}return!1},Ds.prototype.computeBounds=function(e,t){var n=!0;for(e=e.vertexes.iterator;e.next();){var r=e.value;n?(n=!1,t.set(r.bounds)):t.ed(r.bounds)}return t};function Jb(e,t,n){if(J1(e,t)){var r=e.Zf;e.Zf*=1+1/(t+1);var i=Q1(e,t),o=Math.max(0,Math.max(Math.min(e.network.vertexes.count,n*(t+1)/11),10));for(e.maxIterations+=o,Jb(e,t+1,n),e1(e,o),q1(e,i),t=i.vertexes.Fa(),t.sort(function(a,d){return a===null||d===null||a===d?0:d.Vd-a.Vd}),n=0;n<t.length;n++)eS(e,t[n]);e.Zf=r}}function J1(e,t){if(10<t||3>e.network.vertexes.count)return!1;for(e.ah=e.network.vertexes.Fa(),e=e.ah,e.sort(function(n,r){return n===null||r===null||n===r?0:r.Vd-n.Vd}),t=e.length-1;0<=t&&1>=e[t].Vd;)t--;return 1<e.length-t}function Q1(e,t){for(var n=e.network,r=new Ef(e),i=0;i<e.ah.length;i++){var o=e.ah[i];if(1<o.Vd){r.dh(o);var a=new t1;a.Rs=o.Vd,a.Ss=o.width,a.Qs=o.height,a.Sv=o.focus.x,a.Tv=o.focus.y,o.We===null&&(o.We=new Gt),o.We.add(a),o.sv=o.We.count-1}else break}for(o=n.edges.iterator;o.next();){var d=o.value;i=d.fromVertex,a=d.toVertex,i.network===r&&a.network===r?r.Bo(d):i.network===r?(d=i.Hj,d===null&&(d=new Gt,i.Hj=d),d.add(a),i.Vd--,i.sh+=a.sh):a.network===r&&(d=a.Hj,d===null&&(d=new Gt,a.Hj=d),d.add(i),a.Vd--,a.sh+=i.sh)}for(i=r.edges.iterator;i.next();)o=i.value,o.length*=Math.max(1,ht.sqrt((o.fromVertex.sh+o.toVertex.sh)/(4*t+1)));for(t=r.vertexes.iterator;t.next();){i=t.value;var x=i.Hj;if(x!==null&&0<x.count&&(a=i.We.M(i.We.count-1).Rs-i.Vd,!(0>=a))){for(var O=d=0,M=x.count-a;M<x.count;M++){var Y=x.M(M),ie=null;for(o=Y.edges.iterator;o.next();){var ce=o.value;if(ce.Ax(Y)===i){ie=ce;break}}ie!==null&&(O+=ie.length,d+=Y.width*Y.height)}o=i.centerX,x=i.centerY,M=i.width,Y=i.height,ie=i.focus,ce=M*Y,1>ce&&(ce=1),d=ht.sqrt((d+ce+O*O*4/(a*a))/ce),a=(d-1)*M/2,d=(d-1)*Y/2,i.bounds=new xt(o-ie.x-a,x-ie.y-d,M+2*a,Y+2*d),i.focus=new Ie(ie.x+a,ie.y+d)}}return e.network=r,n}function q1(e,t){for(var n=e.network.vertexes.iterator;n.next();){var r=n.value;if(r.network=t,r.We!==null){var i=r.We.M(r.sv);r.Vd=i.Rs;var o=i.Sv,a=i.Tv;r.bounds=new xt(r.centerX-o,r.centerY-a,i.Ss,i.Qs),r.focus=new Ie(o,a),r.sv--}}for(n=e.network.edges.iterator;n.next();)n.value.network=t;e.network=t}function eS(e,t){var n=t.Hj;if(n!==null&&n.count!==0){var r=t.centerX,i=t.centerY,o=t.width,a=t.height;t.We!==null&&0<t.We.count&&(a=t.We.M(0),o=a.Ss,a=a.Qs),o=ht.sqrt(o*o+a*a)/2;for(var d=!1,x=a=0,O=0,M=t.vertexes.iterator;M.next();){var Y=M.value;1>=Y.Vd?x++:(d=!0,O++,a+=Math.atan2(t.centerY-Y.centerY,t.centerX-Y.centerX))}if(x!==0){for(0<O&&(a/=O),O=t=0,t=d?2*Math.PI/(x+1):2*Math.PI/x,x%2===0&&(O=t/2),1<n.count&&n.sort(function(ce,ge){return ce===null||ge===null||ce===ge?0:ge.width*ge.height-ce.width*ce.height}),d=x%2===0?0:1,n=n.iterator;n.next();)if(x=n.value,!(1<x.Vd||e.isFixed(x))){for(M=null,Y=x.edges.iterator;Y.next();){M=Y.value;break}Y=x.width;var ie=x.height;Y=ht.sqrt(Y*Y+ie*ie)/2,M=o+M.length+Y,Y=a+(t*(d/2>>1)+O)*(d%2===0?1:-1),x.centerX=r+M*Math.cos(Y),x.centerY=i+M*Math.sin(Y),d++}}}}function Qb(e,t,n,r,i,o,a){var d=9e19,x=-1,O=0;e:for(;O<t;O++){var M=e[O],Y=M.x-n,ie=M.y-r;if(Y=Y*Y+ie*ie,Y<d){for(ie=O-1;0<=ie;ie--)if(e[ie].y>M.y&&e[ie].x-M.x<i+a.width)continue e;for(ie=O+1;ie<t;ie++)if(e[ie].x>M.x&&e[ie].y-M.y<o+a.height)continue e;x=O,d=Y}}return x}Ds.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},Ds.prototype.addComments=function(e){var t=e.node;if(t!==null)for(t=t.Mu();t.next();){var n=t.value;if(n.category==="Comment"&&n.isVisible()){var r=this.network.ki(n);r===null&&(r=this.network.Bl(n)),r.charge=this.defaultCommentElectricalCharge,n=null;for(var i=r.destinationEdges;i.next();){var o=i.value;if(o.toVertex===e){n=o;break}}if(n===null){for(i=r.sourceEdges;i.next();)if(o=i.value,o.fromVertex===e){n=o;break}}n===null&&(n=this.network.Zj(e,r,null)),n.length=this.defaultCommentSpringLength}}};function qb(e,t){var n=e.bounds,r=n.x;e=n.y;var i=n.width;n=n.height;var o=t.bounds,a=o.x;t=o.y;var d=o.width;return o=o.height,r+i<a?e>t+o?(n=r+i-a,e=e-t-o,ht.sqrt(n*n+e*e)):e+n<t?(r=r+i-a,e=e+n-t,ht.sqrt(r*r+e*e)):a-(r+i):r>a+d?e>t+o?(n=r-a-d,e=e-t-o,ht.sqrt(n*n+e*e)):e+n<t?(r=r-a-d,e=e+n-t,ht.sqrt(r*r+e*e)):r-(a+d):e>t+o?e-(t+o):e+n<t?t-(e+n):.1}function e1(e,t){for(e.ah=null,t=e.An+t;e.An<t&&(e.An++,tS(e)););e.ah=null}function tS(e){e.ah===null&&(e.ah=e.network.vertexes.Fa());var t=e.ah;if(0>=t.length)return!1;var n=t[0];n.forceX=0,n.forceY=0;for(var r=n.centerX,i=r,o=n=n.centerY,a=1;a<t.length;a++){var d=t[a];d.forceX=0,d.forceY=0;var x=d.centerX;d=d.centerY,r=Math.min(r,x),i=Math.max(i,x),n=Math.min(n,d),o=Math.max(o,d)}(i=i-r>o-n)?t.sort(function(Te,Ve){return Te===null||Ve===null||Te===Ve?0:Te.centerX-Ve.centerX}):t.sort(function(Te,Ve){return Te===null||Ve===null||Te===Ve?0:Te.centerY-Ve.centerY}),n=e.Zf;var O=r=d=0;for(o=0;o<t.length;o++){a=t[o],r=a.bounds,d=a.focus,x=r.x+d.x;var M=r.y+d.y;r=a.charge*e.electricalFieldX(x,M),O=a.charge*e.electricalFieldY(x,M),r+=a.mass*e.gravitationalFieldX(x,M),O+=a.mass*e.gravitationalFieldY(x,M),a.forceX+=r,a.forceY+=O;for(var Y=o+1;Y<t.length;Y++){var ie=t[Y];if(ie!==a){r=ie.bounds,d=ie.focus,O=r.x+d.x;var ce=r.y+d.y;if(x-O>n||O-x>n){if(i)break}else if(M-ce>n||ce-M>n){if(!i)break}else{var ge=qb(a,ie);1>ge?(r=e.randomNumberGenerator,r===null&&(e.randomNumberGenerator=r=new Mm),ge=r.random(),d=r.random(),x>O?(r=Math.abs(ie.bounds.right-a.bounds.x),r=(1+r)*ge):x<O?(r=Math.abs(ie.bounds.x-a.bounds.right),r=-(1+r)*ge):(r=Math.max(ie.width,a.width),r=(1+r)*ge-r/2),M>ce?(O=Math.abs(ie.bounds.bottom-a.bounds.y),O=(1+O)*d):x<O?(O=Math.abs(ie.bounds.y-a.bounds.bottom),O=-(1+O)*d):(O=Math.max(ie.height,a.height),O=(1+O)*d-O/2)):(d=-(a.charge*ie.charge)/(ge*ge),r=(O-x)/ge*d,O=(ce-M)/ge*d),a.forceX+=r,a.forceY+=O,ie.forceX-=r,ie.forceY-=O}}}}for(i=e.network.edges.iterator;i.next();)d=i.value,n=d.fromVertex,o=d.toVertex,a=n.bounds,x=n.focus,r=a.x+x.x,a=a.y+x.y,M=o.bounds,Y=o.focus,x=M.x+Y.x,M=M.y+Y.y,Y=qb(n,o),1>Y?(Y=e.randomNumberGenerator,Y===null&&(e.randomNumberGenerator=Y=new Mm),d=Y.random(),Y=Y.random(),r=(r>x?1:-1)*(1+(o.width>n.width?o.width:n.width))*d,O=(a>M?1:-1)*(1+(o.height>n.height?o.height:n.height))*Y):(d=d.stiffness*(Y-d.length),r=(x-r)/Y*d,O=(M-a)/Y*d),n.forceX+=r,n.forceY+=O,o.forceX-=r,o.forceY-=O;for(i=r=0;i<t.length;i++)n=t[i],e.isFixed(n)?e.moveFixedVertex(n):r=Math.max(r,e.moveVertex(n)||0);return r>e.epsilonDistance*e.epsilonDistance}Ds.prototype.moveVertex=function(e){var t=e.forceX,n=e.forceY,r=this.moveLimit;return t<-r?t=-r:t>r&&(t=r),n<-r?n=-r:n>r&&(n=r),e.centerX+=t,e.centerY+=n,t*t+n*n},Ds.prototype.moveFixedVertex=function(){},Ds.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Ds.prototype.yv=function(){if(this.setsPortSpots)for(var e=this.network.edges.iterator;e.next();){var t=e.value.link;t!==null&&(t.fromSpot=Bo,t.toSpot=Bo)}},Ds.prototype.commitNodes=function(){var e=0,t=0;if(this.arrangesToOrigin){var n=xt.alloc();this.computeBounds(this.network,n),t=this.arrangementOrigin,e=t.x-n.x,t=t.y-n.y,xt.free(n)}n=xt.alloc();for(var r=this.network.vertexes.iterator;r.next();){var i=r.value;(e!==0||t!==0)&&(n.assign(i.bounds),n.x+=e,n.y+=t,i.bounds=n),i.commit()}xt.free(n)},Ds.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},Ds.prototype.springStiffness=function(e){return e=e.stiffness,isNaN(e)?this.Hk:e},Ds.prototype.springLength=function(e){return e=e.length,isNaN(e)?this.Gk:e},Ds.prototype.electricalCharge=function(e){return e=e.charge,isNaN(e)?this.Ek:e},Ds.prototype.electricalFieldX=function(){return 0},Ds.prototype.electricalFieldY=function(){return 0},Ds.prototype.gravitationalMass=function(e){return e=e.mass,isNaN(e)?this.Fk:e},Ds.prototype.gravitationalFieldX=function(){return 0},Ds.prototype.gravitationalFieldY=function(){return 0},Ds.prototype.isFixed=function(e){return e.isFixed},Mn.Object.defineProperties(Ds.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(e){this.$d.D(e)||(this.$d.assign(e),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(e){this.Bm!==e&&(this.Bm=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},comments:{get:function(){return this.td},set:function(e){this.td!==e&&(this.td=e,this.C())}},maxIterations:{get:function(){return this.dl},set:function(e){this.dl!==e&&0<=e&&(this.dl=e,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(e){this.$m!==e&&0<e&&(this.$m=e,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(e){this.Zf!==e&&1<e&&(this.Zf=e,this.C())}},moveLimit:{get:function(){return this.In},set:function(e){this.In!==e&&1<e&&(this.In=e,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(e){this.fo!==e&&(e!==null&&typeof e.random!="function"&&ft('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+e),this.fo=e)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(e){this.Hk!==e&&(this.Hk=e,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(e){this.Gk!==e&&(this.Gk=e,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(e){this.Ek!==e&&(this.Ek=e,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(e){this.Fk!==e&&(this.Fk=e,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(e){this.Vm!==e&&(this.Vm=e,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(e){this.Um!==e&&(this.Um=e,this.C())}}}),Ds.className="ForceDirectedLayout";function t1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}t1.className="ForceDirectedSubnet";function Ef(e){Gi.call(this,e)}Kn(Ef,Gi),Ef.prototype.createVertex=function(){return new Hp(this)},Ef.prototype.createEdge=function(){return new zp(this)},Ef.className="ForceDirectedNetwork";function Hp(e){Jo.call(this,e),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}Kn(Hp,Jo),Mn.Object.defineProperties(Hp.prototype,{isFixed:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},charge:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},mass:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},forceX:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}},forceY:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}}}),Hp.className="ForceDirectedVertex";function zp(e){Qa.call(this,e),this.j=this.o=NaN}Kn(zp,Qa),Mn.Object.defineProperties(zp.prototype,{stiffness:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},length:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}}}),zp.className="ForceDirectedEdge";function Mm(){var e=0;e===void 0&&(e=42),this.seed=e,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}Mm.prototype.random=function(){var e=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<e?this.seed=e:this.seed=e+this.ey,this.seed*this.by},Mm.className="RandomNumberGenerator";function mi(e){ao.call(this),this.kc=this.ie=25,this.K=0,this.Dk=jm,this.Zk=Um,this.Qk=Hm,this.bj=4,this.rk=zm,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Ie,this.He=[],this.He.length=100,this.xw=this.ve=0,e&&Object.assign(this,e)}Kn(mi,ao),mi.prototype.cloneProtected=function(e){ao.prototype.cloneProtected.call(this,e),e.ie=this.ie,e.kc=this.kc,e.K=this.K,e.Dk=this.Dk,e.Zk=this.Zk,e.Qk=this.Qk,e.bj=this.bj,e.rk=this.rk,e.bg=this.bg,e.sf=this.sf,e.Cn=this.Cn,e.ve=this.ve},mi.prototype.qb=function(e){e.classType===mi?e.name.indexOf("Aggressive")===0?this.aggressiveOption=e:e.name.indexOf("Cycle")===0?this.cycleRemoveOption=e:e.name.indexOf("Init")===0?this.initializeOption=e:e.name.indexOf("Layer")===0?this.layeringOption=e:ft("Unknown enum value: "+e):ao.prototype.qb.call(this,e)},mi.prototype.createNetwork=function(){return new wd(this)},mi.prototype.doLayout=function(e){for(this.network===null&&(this.network=this.makeNetwork(e)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,e=0;e<this.He.length;e++)this.He[e]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Wp&&this.removeCycles(),e=this.network.vertexes.iterator;e.next();)e.value.layer=-1;for(this.Ia=-1,this.assignLayers(),e.reset();e.next();)this.Ia=Math.max(this.Ia,e.value.layer);this.cycleRemoveOption===Wp&&this.removeCycles(),e=this.network;for(var t=[],n=e.edges.iterator;n.next();){var r=n.value;r.valid=!1,t.push(r)}for(n=0;n<t.length;n++){r=t[n];var i=r.fromVertex,o=r.toVertex;if(!(r.valid||(i.node===null&&i.data===null||o.node===null&&o.data===null)&&i.layer===o.layer)){var a=0,d=0,x=0,O=0;if(r.link!==null){if(d=r.link,d===null)continue;var M=i.node;if(a=o.node,M===null||a===null)continue;var Y=d.fromNode;x=d.toNode;for(var ie=d.fromPort;ie!==null&&!ie.Ed();)ie=ie.panel;for(d=d.toPort;d!==null&&!d.Ed();)d=d.panel;if(r.rev){O=Y;var ce=ie;Y=x,ie=d,x=O,d=ce}var ge=i.focus;O=o.focus;var Te=r.rev?o.bounds:i.bounds;ce=Ie.alloc(),M!==Y?Te.w()&&Y.isVisible()?Y.actualBounds.w()?(Oc(Y,ie,Tr,ce),ce.x+=Y.actualBounds.x-Te.x,ce.y+=Y.actualBounds.y-Te.y):(Oc(Y,ie,Tr,ce),ce.w()||ce.assign(ge)):ce.assign(ge):Te.w()?(Oc(Y,ie,Tr,ce),ce.w()||ce.assign(ge)):ce.assign(ge),Y=r.rev?i.bounds:o.bounds,M=Ie.alloc(),a!==x?Y.w()&&x.isVisible()?x.actualBounds.w()?(Oc(x,d,Tr,M),M.x+=x.actualBounds.x-Y.x,M.y+=x.actualBounds.y-Y.y):(Oc(x,d,Tr,M),M.w()||M.assign(O)):M.assign(O):Y.w()?(Oc(x,d,Tr,M),M.w()||M.assign(O)):M.assign(O),this.K===90||this.K===270?(a=Math.round((ce.x-ge.x)/this.kc),x=ce.x,d=Math.round((M.x-O.x)/this.kc),O=M.x):(a=Math.round((ce.y-ge.y)/this.kc),x=ce.y,d=Math.round((M.y-O.y)/this.kc),O=M.y),Ie.free(ce),Ie.free(M),r.portFromColOffset=a,r.portFromPos=x,r.portToColOffset=d,r.portToPos=O}else r.portFromColOffset=0,r.portFromPos=0,r.portToColOffset=0,r.portToPos=0;if(ce=i.layer,M=o.layer,Y=0,Te=r.link,Te!==null){var Ve=Te.fromPort,He=Te.toPort;if(Ve!==null&&He!==null){var Xe=Te.fromNode;if(ie=Te.toNode,Xe!==null&&ie!==null){var Ze=Bm(this,!0),qe=Bm(this,!1),st=this.setsPortSpots?Ze:Te.computeSpot(!0,Ve);ge=this.setsPortSpots?qe:Te.computeSpot(!1,He);var yt=Te.isOrthogonal;st.$c()&&st.Hf(qe)&&ge.$c()&&ge.Hf(Ze)?Y=0:(Ze=Te.getLinkPoint(Xe,Ve,st,!0,yt,ie,He,Ie.alloc()),qe=Te.getLinkDirection(Xe,Ve,Ze,st,!0,yt,ie,He),Ie.free(Ze),st.ys()||qe!==c1(this,r,!0)?this.setsPortSpots&&Xe!==null&&Xe.ports.count===1&&r.rev&&(Y+=1):Y+=1,st=Te.getLinkPoint(ie,He,ge,!1,yt,Xe,Ve,Ie.alloc()),Te=Te.getLinkDirection(ie,He,st,ge,!1,yt,Xe,Ve),Ie.free(st),ge.ys()||Te!==c1(this,r,!1)?this.setsPortSpots&&ie!==null&&ie.ports.count===1&&r.rev&&(Y+=2):Y+=2)}}}if(ie=Y,Y=ie===1||ie===3,(ie=ie===2||ie===3)&&(ge=e.createVertex(),ge.node=null,ge.Dj=1,ge.layer=ce,ge.near=i,e.dh(ge),i=e.Zj(i,ge,r.link),i.valid=!1,i.rev=r.rev,i.portFromColOffset=a,i.portToColOffset=0,i.portFromPos=x,i.portToPos=0,i=ge),Te=1,Y&&Te--,ce-M>Te&&0<ce){for(r.valid=!1,ge=e.createVertex(),ge.node=null,ge.Dj=2,ge.layer=ce-1,e.dh(ge),i=e.Zj(i,ge,r.link),i.valid=!0,i.rev=r.rev,i.portFromColOffset=ie?0:a,i.portToColOffset=0,i.portFromPos=ie?0:x,i.portToPos=0,i=ge,ce--;ce-M>Te&&0<ce;)ge=e.createVertex(),ge.node=null,ge.Dj=3,ge.layer=ce-1,e.dh(ge),i=e.Zj(i,ge,r.link),i.valid=!0,i.rev=r.rev,i.portFromColOffset=0,i.portToColOffset=0,i.portFromPos=0,i.portToPos=0,i=ge,ce--;i=e.Zj(ge,o,r.link),i.valid=!Y,Y&&(ge.near=o),i.rev=r.rev,i.portFromColOffset=0,i.portToColOffset=d,i.portFromPos=0,i.portToPos=O}else r.valid=!0}}for(e=this.tc=[],t=0;t<=this.Ia;t++)e[t]=0;for(t=this.network.vertexes.iterator;t.next();)t.value.index=-1;for(this.initializeIndices(),this.Iq=-1,n=this.Md=this.Hn=0;n<=this.Ia;n++)e[n]>e[this.Md]&&(this.Iq=e[n]-1,this.Md=n),e[n]<e[this.Hn]&&(this.Hn=n);for(this.fl=[],n=0;n<e.length;n++)this.fl[n]=[];for(t.reset();t.next();)e=t.value,this.fl[e.layer][e.index]=e;for(this.Ra=-1,e=0;e<=this.Ia;e++){for(t=dh(this,e),n=0,r=this.tc[e],o=0;o<r;o++)i=t[o],n+=this.nodeMinColumnSpace(i,!0),i.column=n,n+=1,n+=this.nodeMinColumnSpace(i,!1);this.Ra=Math.max(this.Ra,n-1),ph(this,e,t)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},mi.prototype.linkMinLength=function(){return 1};function _y(e){var t=e.fromVertex.node||e.fromVertex.data;return e=e.toVertex.node||e.toVertex.data,t===null&&e===null?8:t===null||e===null?4:1}mi.prototype.nodeMinLayerSpace=function(e,t){return e.node===null&&e.data===null?0:this.K===90||this.K===270?t?e.focus.y+10:e.bounds.height-e.focus.y+10:t?e.focus.x+10:e.bounds.width-e.focus.x+10},mi.prototype.nodeMinColumnSpace=function(e,t){if(e.node===null&&e.data===null)return 0;var n=t?e.ev:e.dv;return n!==null?n:(n=this.K,n===90||n===270?t?e.ev=e.focus.x/this.kc+1|0:e.dv=(e.bounds.width-e.focus.x)/this.kc+1|0:t?e.ev=e.focus.y/this.kc+1|0:e.dv=(e.bounds.height-e.focus.y)/this.kc+1|0)};function Ra(e){e.kj===null&&(e.kj=[]);for(var t=0,n=e.network.vertexes.iterator;n.next();){var r=n.value;e.kj[t]=r.layer,t++,e.kj[t]=r.column,t++,e.kj[t]=r.index,t++}return e.kj}function Nl(e,t){var n=0;for(e=e.network.vertexes.iterator;e.next();){var r=e.value;r.layer=t[n],n++,r.column=t[n],n++,r.index=t[n],n++}}function n1(e,t,n){var r=dh(e,t),i=e.tc[t];(e.Jn===null||e.Jn.length<i*i)&&(e.Jn=[]);for(var o=e.Jn,a=0;a<i;a++){var d=0,x=r[a],O=x.near;if(O!==null&&O.layer===x.layer)if(x=O.index,x>a)for(var M=a+1;M<x;M++){var Y=r[M];Y.near===O&&Y.Dj===O.Dj||d++}else for(M=a-1;M>x;M--)Y=r[M],Y.near===O&&Y.Dj===O.Dj||d++;var ie;if(0<=n)for(x=r[a].sourceEdgesArrayAccess,O=0;O<x.length;O++){var ce=x[O];if(ce.valid&&ce.fromVertex.layer!==t)for(Y=ce.fromVertex.index,M=ce.portToPos,ce=ce.portFromPos,ie=O+1;ie<x.length;ie++){var ge=x[ie];if(ge.valid&&ge.fromVertex.layer!==t){var Te=ge.fromVertex.index,Ve=ge.portToPos;ge=ge.portFromPos,M<Ve&&(Y>Te||Y===Te&&ce>ge)&&d++,Ve<M&&(Te>Y||Te===Y&&ge>ce)&&d++}}}if(0>=n){for(x=r[a].destinationEdgesArrayAccess,O=0;O<x.length;O++)if(ce=x[O],ce.valid&&ce.toVertex.layer!==t)for(Y=ce.toVertex.index,M=ce.portToPos,ce=ce.portFromPos,ie=O+1;ie<x.length;ie++)ge=x[ie],ge.valid&&ge.toVertex.layer!==t&&(Te=ge.toVertex.index,Ve=ge.portToPos,ge=ge.portFromPos,ce<ge&&(Y>Te||Y===Te&&M>Ve)&&d++,ge<ce&&(Te>Y||Te===Y&&Ve>M)&&d++)}for(o[a*i+a]=d,x=a+1;x<i;x++){var He=0,Xe=0;if(0<=n){d=r[a].sourceEdgesArrayAccess;var Ze=r[x].sourceEdgesArrayAccess;for(O=0;O<d.length;O++)if(ce=d[O],ce.valid&&ce.fromVertex.layer!==t)for(Y=ce.fromVertex.index,ce=ce.portFromPos,ie=0;ie<Ze.length;ie++)ge=Ze[ie],ge.valid&&ge.fromVertex.layer!==t&&(Te=ge.fromVertex.index,ge=ge.portFromPos,(Y<Te||Y===Te&&ce<ge)&&Xe++,(Te<Y||Te===Y&&ge<ce)&&He++)}if(0>=n){for(d=r[a].destinationEdgesArrayAccess,Ze=r[x].destinationEdgesArrayAccess,O=0;O<d.length;O++)if(ce=d[O],ce.valid&&ce.toVertex.layer!==t)for(Y=ce.toVertex.index,M=ce.portToPos,ie=0;ie<Ze.length;ie++)ge=Ze[ie],ge.valid&&ge.toVertex.layer!==t&&(Te=ge.toVertex.index,Ve=ge.portToPos,(Y<Te||Y===Te&&M<Ve)&&Xe++,(Te<Y||Te===Y&&Ve<M)&&He++)}o[a*i+x]=He,o[x*i+a]=Xe}}return ph(e,t,r),o}mi.prototype.countCrossings=function(){for(var e=0,t=0;t<=this.Ia;t++)for(var n=n1(this,t,1),r=this.tc[t],i=0;i<r;i++)for(var o=i;o<r;o++)e+=n[i*r+o];return e};function Dm(e){for(var t=0,n=0;n<=e.Ia;n++){for(var r=e,i=n,o=dh(r,i),a=r.tc[i],d=0,x=0;x<a;x++){var O=o[x].destinationEdgesArrayAccess;if(O!==null)for(var M=0;M<O.length;M++){var Y=O[M];if(Y.valid&&Y.toVertex.layer!==i){var ie=Y.fromVertex.column+Y.portFromColOffset,ce=Y.toVertex.column+Y.portToColOffset;d+=(Math.abs(ie-ce)+1)*_y(Y)}}}ph(r,i,o),t+=d}return t}mi.prototype.normalize=function(){var e=1/0;this.Ra=-1;for(var t=this.network.vertexes.iterator;t.next();){var n=t.value;e=Math.min(e,n.column-this.nodeMinColumnSpace(n,!0)),this.Ra=Math.max(this.Ra,n.column+this.nodeMinColumnSpace(n,!1))}for(t.reset();t.next();)t.value.column-=e;this.Ra-=e};function Ay(e,t,n){for(var r=dh(e,t),i=e.tc[t],o=[],a=0;a<i;a++){var d=r[a],x=null;0>=n&&(x=d.sourceEdgesArrayAccess);var O=null;0<=n&&(O=d.destinationEdgesArrayAccess);var M=0,Y=0,ie=d.near;if(ie!==null&&ie.layer===d.layer&&(M+=ie.column-1,Y++),x!==null)for(ie=0;ie<x.length;ie++){d=x[ie];var ce=d.fromVertex;d.valid&&!d.rev&&ce.layer!==t&&(M+=ce.column,Y++)}if(O!==null)for(x=0;x<O.length;x++)d=O[x],ie=d.toVertex,d.valid&&!d.rev&&ie.layer!==t&&(M+=ie.column,Y++);o[a]=Y===0?-1:M/Y}return ph(e,t,r),o}function r1(e,t,n){for(var r=dh(e,t),i=e.tc[t],o=[],a=0;a<i;a++){var d=r[a],x=null;0>=n&&(x=d.sourceEdgesArrayAccess);var O=null;0<=n&&(O=d.destinationEdgesArrayAccess);var M=0,Y=[],ie=d.near;if(ie!==null&&ie.layer===d.layer&&(Y[M]=ie.column-1,M++),d=void 0,x!==null)for(ie=0;ie<x.length;ie++){d=x[ie];var ce=d.fromVertex;d.valid&&!d.rev&&ce.layer!==t&&(Y[M]=ce.column+d.portFromColOffset,M++)}if(O!==null)for(x=0;x<O.length;x++)d=O[x],ie=d.toVertex,d.valid&&!d.rev&&ie.layer!==t&&(Y[M]=ie.column+d.portToColOffset,M++);M===0?o[a]=-1:(Y.sort(function(ge,Te){return ge-Te}),O=M>>1,o[a]=M&1?Y[O]:Y[O-1]+Y[O]>>1)}return ph(e,t,r),o}function Gp(e,t,n,r,i,o){if(t.component===r){if(t.component=n,i)for(var a=t.destinationEdges;a.next();){var d=a.value,x=d.toVertex,O=t.layer-x.layer;d=e.linkMinLength(d),O===d&&Gp(e,x,n,r,i,o)}if(o)for(a=t.sourceEdges;a.next();)d=a.value,x=d.fromVertex,O=x.layer-t.layer,d=e.linkMinLength(d),O===d&&Gp(e,x,n,r,i,o)}}function ky(e,t,n,r,i,o){if(t.component===r){if(t.component=n,i)for(var a=t.destinationEdges;a.next();)ky(e,a.value.toVertex,n,r,i,o);if(o)for(t=t.sourceEdges;t.next();)ky(e,t.value.fromVertex,n,r,i,o)}}mi.prototype.removeCycles=function(){for(var e=this.network.edges.iterator;e.next();)e.value.rev=!1;switch(this.Dk){default:case Ry:e=this.network;var t=0,n=e.vertexes.count-1,r=[];r.length=n+1;for(var i=e.vertexes.iterator;i.next();)i.value.valid=!0;for(;nS(e)!==null;){for(i=i1(e);i!==null;)r[n]=i,n--,i.valid=!1,i=i1(e);for(i=o1(e);i!==null;)r[t]=i,t++,i.valid=!1,i=o1(e);i=null;for(var o=0,a=this.network.vertexes.iterator;a.next();){var d=a.value;if(d.valid){for(var x=0,O=d.destinationEdges;O.next();)O.value.toVertex.valid&&x++;O=0;for(var M=d.sourceEdges;M.next();)M.value.fromVertex.valid&&O++;(i===null||o<x-O)&&(i=d,o=x-O)}}i!==null&&(r[t]=i,t++,i.valid=!1)}for(t=0;t<e.vertexes.count;t++)r[t].index=t;for(r=e.edges.iterator;r.next();)t=r.value,t.fromVertex.index>t.toVertex.index&&(e.gm(t),t.rev=!0);break;case jm:for(r=this.network.vertexes.iterator;r.next();)e=r.value,e.Ll=-1,e.finish=-1;for(e=this.network.edges.iterator;e.next();)e.value.forest=!1;for(this.Kn=0,r.reset();r.next();)t=r.value,t.sourceEdges.count===0&&Ny(this,t);for(r.reset();r.next();)t=r.value,t.Ll===-1&&Ny(this,t);for(e.reset();e.next();)r=e.value,r.forest||(t=r.fromVertex,n=t.finish,i=r.toVertex,o=i.finish,i.Ll<t.Ll&&n<o&&(this.network.gm(r),r.rev=!0));break;case Wp:for(e=this.network,t=e.vertexes.iterator,r=1/0;t.next();)r=Math.min(r,t.value.layer);if(1/0>r){if(0>r)for(t.reset();t.next();)t.value.layer-=r;for(r=[],t.reset();t.next();)n=t.value,i=r[n.layer],i===void 0?r[n.layer]=[n]:i.push(n);for(n=t=0;n<r.length;n++)if(i=r[n],!i||i.length===0)t++;else if(0<n)for(o=0;o<i.length;o++)i[o].layer-=t;for(r=e.edges.iterator;r.next();)t=r.value,t.fromVertex.layer<t.toVertex.layer&&(e.gm(t),t.rev=!0)}}};function nS(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid)return t}return null}function i1(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,r=t.destinationEdges;r.next();)if(r.value.toVertex.valid){n=!1;break}if(n)return t}}return null}function o1(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,r=t.sourceEdges;r.next();)if(r.value.fromVertex.valid){n=!1;break}if(n)return t}}return null}function Ny(e,t){t.Ll=e.Kn,e.Kn++;for(var n=t.destinationEdges;n.next();){var r=n.value,i=r.toVertex;i.Ll===-1&&(r.forest=!0,Ny(e,i))}t.finish=e.Kn,e.Kn++}mi.prototype.assignLayers=function(){switch(this.Zk){case Oy:s1(this);break;case Ly:for(var e,t=this.network.vertexes.iterator;t.next();)e=l1(this,t.value),this.Ia=Math.max(e,this.Ia);for(t.reset();t.next();)e=t.value,e.layer=this.Ia-e.layer;break;default:case Um:for(s1(this),t=this.network.vertexes.iterator;t.next();)t.value.valid=!1;for(t.reset();t.next();)e=t.value,e.sourceEdges.count===0&&u1(this,e);for(e=1/0,t.reset();t.next();)e=Math.min(e,t.value.layer);for(this.Ia=-1,t.reset();t.next();){var n=t.value;n.layer-=e,this.Ia=Math.max(this.Ia,n.layer)}}};function s1(e){for(var t=e.network.vertexes.iterator;t.next();){var n=a1(e,t.value);e.Ia=Math.max(n,e.Ia)}}function a1(e,t){var n=0;if(t.layer===-1){for(var r=t.destinationEdges;r.next();){var i=r.value,o=i.toVertex;i=e.linkMinLength(i),n=Math.max(n,a1(e,o)+i)}t.layer=n}else n=t.layer;return n}function l1(e,t){var n=0;if(t.layer===-1){for(var r=t.sourceEdges;r.next();){var i=r.value,o=i.fromVertex;i=e.linkMinLength(i),n=Math.max(n,l1(e,o)+i)}t.layer=n}else n=t.layer;return n}function u1(e,t){if(!t.valid){t.valid=!0;for(var n=t.destinationEdges;n.next();)u1(e,n.value.toVertex);for(n=e.network.vertexes.iterator;n.next();)n.value.component=-1;for(var r=t.sourceEdgesArrayAccess,i=r.length,o=0;o<i;o++){var a=r[o],d=a.fromVertex,x=a.toVertex;a=e.linkMinLength(a),d.layer-x.layer>a&&Gp(e,d,0,-1,!0,!1)}for(Gp(e,t,1,-1,!0,!0);t.component!==0;){for(o=0,r=1/0,d=0,x=null,a=e.network.vertexes.iterator;a.next();){var O=a.value;if(O.component===1){var M=0,Y=!1,ie=O.sourceEdgesArrayAccess;i=ie.length;for(var ce=0;ce<i;ce++){var ge=ie[ce],Te=ge.fromVertex;M+=1,Te.component!==1&&(o+=1,Te=Te.layer-O.layer,ge=e.linkMinLength(ge),r=Math.min(r,Te-ge))}for(ie=O.destinationEdgesArrayAccess,i=ie.length,ce=0;ce<i;ce++)ge=ie[ce].toVertex,--M,ge.component!==1?--o:Y=!0;(x===null||M<d)&&!Y&&(x=O,d=M)}}if(0<o){for(n.reset();n.next();)i=n.value,i.component===1&&(i.layer+=r);t.component=0}else x.component=0}for(n=e.network.vertexes.iterator;n.next();)n.value.component=-1;for(Gp(e,t,1,-1,!0,!1);t.component!==0;){for(r=0,i=1/0,o=0,d=null,x=e.network.vertexes.iterator;x.next();)if(a=x.value,a.component===1){for(O=0,M=!1,ie=a.sourceEdgesArrayAccess,Y=ie.length,ce=0;ce<Y;ce++)ge=ie[ce].fromVertex,O+=1,ge.component!==1?r+=1:M=!0;for(ie=a.destinationEdgesArrayAccess,Y=ie.length,ce=0;ce<Y;ce++)ge=ie[ce],Te=ge.toVertex,--O,Te.component!==1&&(--r,Te=a.layer-Te.layer,ge=e.linkMinLength(ge),i=Math.min(i,Te-ge));(d===null||O>o)&&!M&&(d=a,o=O)}if(0>r){for(n.reset();n.next();)r=n.value,r.component===1&&(r.layer-=i);t.component=0}else d.component=0}}}function c1(e,t,n){return e.K===90?n&&!t.rev||!n&&t.rev?270:90:e.K===180?n&&!t.rev||!n&&t.rev?0:180:e.K===270?n&&!t.rev||!n&&t.rev?90:270:n&&!t.rev||!n&&t.rev?180:0}mi.prototype.initializeIndices=function(){switch(this.Qk){default:case Dy:for(var e=this.network.vertexes.iterator;e.next();){var t=e.value,n=t.layer;t.index=this.tc[n],this.tc[n]++}break;case Hm:for(e=this.network.vertexes.iterator,t=this.Ia;0<=t;t--)for(e.reset();e.next();)n=e.value,n.layer===t&&n.index===-1&&h1(this,n);break;case My:for(e=this.network.vertexes.iterator,t=0;t<=this.Ia;t++)for(e.reset();e.next();)n=e.value,n.layer===t&&n.index===-1&&f1(this,n)}};function h1(e,t){var n=t.layer;for(t.index=e.tc[n],e.tc[n]++,t=t.destinationEdgesArrayAccess,n=!0;n;){n=!1;for(var r=0;r<t.length-1;r++){var i=t[r],o=t[r+1];i.portFromColOffset>o.portFromColOffset&&(n=!0,t[r]=o,t[r+1]=i)}}for(n=0;n<t.length;n++)r=t[n],r.valid&&(r=r.toVertex,r.index===-1&&h1(e,r))}function f1(e,t){var n=t.layer;t.index=e.tc[n],e.tc[n]++,t=t.sourceEdgesArrayAccess;for(var r=!0;r;)for(r=!1,n=0;n<t.length-1;n++){var i=t[n],o=t[n+1];i.portToColOffset>o.portToColOffset&&(r=!0,t[n]=o,t[n+1]=i)}for(n=0;n<t.length;n++)r=t[n],r.valid&&(r=r.fromVertex,r.index===-1&&f1(e,r))}mi.prototype.reduceCrossings=function(){var e=this.countCrossings(),t=Ra(this),n,r;for(n=0;n<this.bj;n++){for(r=0;r<=this.Ia;r++)Pm(this,r,1),zl(this,r,1);var i=this.countCrossings();for(i<e&&(e=i,t=Ra(this)),r=this.Ia;0<=r;r--)Pm(this,r,-1),zl(this,r,-1);i=this.countCrossings(),i<e&&(e=i,t=Ra(this))}for(Nl(this,t),n=0;n<this.bj;n++){for(r=0;r<=this.Ia;r++)Pm(this,r,0),zl(this,r,0);for(i=this.countCrossings(),i<e&&(e=i,t=Ra(this)),r=this.Ia;0<=r;r--)Pm(this,r,0),zl(this,r,0);i=this.countCrossings(),i<e&&(e=i,t=Ra(this))}Nl(this,t);var o,a,d;switch(this.rk){case Py:break;case Fy:for(d=e+1;(r=this.countCrossings())<d;)for(d=r,n=this.Ia;0<=n;n--)for(a=0;a<=n;a++){for(o=!0;o;)for(o=!1,r=n;r>=a;r--)o=zl(this,r,-1)||o;for(i=this.countCrossings(),i>=e?Nl(this,t):(e=i,t=Ra(this)),o=!0;o;)for(o=!1,r=n;r>=a;r--)o=zl(this,r,1)||o;for(i=this.countCrossings(),i>=e?Nl(this,t):(e=i,t=Ra(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=zl(this,r,1)||o;for(i>=e?Nl(this,t):(e=i,t=Ra(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=zl(this,r,-1)||o;for(i>=e?Nl(this,t):(e=i,t=Ra(this)),o=!0;o;)for(o=!1,r=n;r>=a;r--)o=zl(this,r,0)||o;for(i>=e?Nl(this,t):(e=i,t=Ra(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=zl(this,r,0)||o;i>=e?Nl(this,t):(e=i,t=Ra(this))}break;default:case zm:for(n=this.Ia,a=0,d=e+1;(r=this.countCrossings())<d;){for(d=r,o=!0;o;)for(o=!1,r=n;r>=a;r--)o=zl(this,r,-1)||o;for(i=this.countCrossings(),i>=e?Nl(this,t):(e=i,t=Ra(this)),o=!0;o;)for(o=!1,r=n;r>=a;r--)o=zl(this,r,1)||o;for(i=this.countCrossings(),i>=e?Nl(this,t):(e=i,t=Ra(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=zl(this,r,1)||o;for(i>=e?Nl(this,t):(e=i,t=Ra(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=zl(this,r,-1)||o;for(i>=e?Nl(this,t):(e=i,t=Ra(this)),o=!0;o;)for(o=!1,r=n;r>=a;r--)o=zl(this,r,0)||o;for(i>=e?Nl(this,t):(e=i,t=Ra(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=zl(this,r,0)||o;i>=e?Nl(this,t):(e=i,t=Ra(this))}}Nl(this,t)};function Pm(e,t,n){var r=dh(e,t),i=e.tc[t],o=r1(e,t,n),a=Ay(e,t,n);for(n=0;n<i;n++)a[n]===-1&&(a[n]=r[n].column),o[n]===-1&&(o[n]=r[n].column);for(var d=!0,x;d;)for(d=!1,n=0;n<i-1;n++)(o[n+1]<o[n]||o[n+1]===o[n]&&a[n+1]<a[n])&&(d=!0,x=o[n],o[n]=o[n+1],o[n+1]=x,x=a[n],a[n]=a[n+1],a[n+1]=x,x=r[n],r[n]=r[n+1],r[n+1]=x);for(n=o=0;n<i;n++)x=r[n],x.index=n,o+=e.nodeMinColumnSpace(x,!0),x.column=o,o+=1,o+=e.nodeMinColumnSpace(x,!1);ph(e,t,r)}function zl(e,t,n){var r=dh(e,t),i=e.tc[t];n=n1(e,t,n);var o,a=[];for(o=0;o<i;o++)a[o]=-1;var d=[];for(o=0;o<i;o++)d[o]=-1;for(var x=!1,O=!0;O;)for(O=!1,o=0;o<i-1;o++){var M=n[r[o].index*i+r[o+1].index],Y=n[r[o+1].index*i+r[o].index],ie=0,ce=0,ge=r[o].column,Te=r[o+1].column,Ve=e.nodeMinColumnSpace(r[o],!0),He=e.nodeMinColumnSpace(r[o],!1),Xe=e.nodeMinColumnSpace(r[o+1],!0),Ze=e.nodeMinColumnSpace(r[o+1],!1);Ve=ge-Ve+Xe,He=Te-He+Ze;var qe=r[o].sourceEdges.iterator;for(qe.reset();qe.next();)if(Xe=qe.value,Ze=Xe.fromVertex,Xe.valid&&Ze.layer===t){for(Xe=0;r[Xe]!==Ze;)Xe++;Xe<o&&(ie+=2*(o-Xe),ce+=2*(o+1-Xe)),Xe===o+1&&(ie+=1),Xe>o+1&&(ie+=4*(Xe-o),ce+=4*(Xe-(o+1)))}for(qe=r[o].destinationEdges.iterator,qe.reset();qe.next();)if(Xe=qe.value,Ze=Xe.toVertex,Xe.valid&&Ze.layer===t){for(Xe=0;r[Xe]!==Ze;)Xe++;Xe===o+1&&(ce+=1)}for(qe=r[o+1].sourceEdges.iterator,qe.reset();qe.next();)if(Xe=qe.value,Ze=Xe.fromVertex,Xe.valid&&Ze.layer===t){for(Xe=0;r[Xe]!==Ze;)Xe++;Xe<o&&(ie+=2*(o+1-Xe),ce+=2*(o-Xe)),Xe===o&&(ce+=1),Xe>o+1&&(ie+=4*(Xe-(o+1)),ce+=4*(Xe-o))}for(qe=r[o+1].destinationEdges.iterator,qe.reset();qe.next();)if(Xe=qe.value,Ze=Xe.toVertex,Xe.valid&&Ze.layer===t){for(Xe=0;r[Xe]!==Ze;)Xe++;Xe===o&&(ie+=1)}Xe=Ze=0,qe=a[r[o].index];var st=d[r[o].index],yt=a[r[o+1].index],un=d[r[o+1].index];qe!==-1&&(Ze+=Math.abs(qe-ge),Xe+=Math.abs(qe-He)),st!==-1&&(Ze+=Math.abs(st-ge),Xe+=Math.abs(st-He)),yt!==-1&&(Ze+=Math.abs(yt-Te),Xe+=Math.abs(yt-Ve)),un!==-1&&(Ze+=Math.abs(un-Te),Xe+=Math.abs(un-Ve)),(ce<ie-.5||ce===ie&&Y<M-.5||ce===ie&&Y===M&&Xe<Ze-.5)&&(O=x=!0,r[o].column=He,r[o+1].column=Ve,M=r[o],r[o]=r[o+1],r[o+1]=M)}for(o=0;o<i;o++)r[o].index=o;return ph(e,t,r),x}mi.prototype.straightenAndPack=function(){if(this.ve===0){var e=(this.bg&1)!==0,t=(this.bg&cS)!==0;if(1e3<this.network.edges.count&&t&&(e=!1),e){var n=[];for(t=0;t<=this.Ia;t++)n[t]=0;for(var r,i=this.network.vertexes.iterator;i.next();){var o=i.value;t=o.layer,r=o.column,o=this.nodeMinColumnSpace(o,!1),n[t]=Math.max(n[t],r+o)}for(i.reset();i.next();)o=i.value,t=o.layer,r=o.column,o.column=(8*(this.Ra-n[t])>>1)+8*r;this.Ra*=8}if(this.bg&2)for(n=!0;n;){for(n=!1,t=this.Md+1;t<=this.Ia;t++)n=xd(this,t,1)||n;for(t=this.Md-1;0<=t;t--)n=xd(this,t,-1)||n;n=xd(this,this.Md,0)||n}if(this.bg&4){for(t=this.Md+1;t<=this.Ia;t++)Iy(this,t,1);for(t=this.Md-1;0<=t;t--)Iy(this,t,-1);Iy(this,this.Md,0)}if(e&&(d1(this,-1),d1(this,1)),this.bg&2)for(n=!0;n;){for(n=!1,n=xd(this,this.Md,0)||n,t=this.Md+1;t<=this.Ia;t++)n=xd(this,t,0)||n;for(t=this.Md-1;0<=t;t--)n=xd(this,t,0)||n}}else sS(this)};function xd(e,t,n){for(var r=!1;rS(e,t,n);)r=!0;return r}function rS(e,t,n){var r,i=dh(e,t),o=e.tc[t],a=Ay(e,t,-1);if(0<n)for(r=0;r<o;r++)a[r]=-1;var d=Ay(e,t,1);if(0>n)for(r=0;r<o;r++)d[r]=-1;for(var x=!1,O=!0;O;)for(O=!1,r=0;r<o;r++){var M=i[r].column,Y=e.nodeMinColumnSpace(i[r],!0),ie=e.nodeMinColumnSpace(i[r],!1),ce=0;0>r-1||M-i[r-1].column-1>Y+e.nodeMinColumnSpace(i[r-1],!1)?ce=M-1:ce=M,Y=r+1>=o||i[r+1].column-M-1>ie+e.nodeMinColumnSpace(i[r+1],!0)?M+1:M;var ge=ie=0,Te=0;if(0>=n)for(var Ve=i[r].sourceEdges.iterator;Ve.next();){var He=Ve.value,Xe=He.fromVertex;if(He.valid&&Xe.layer!==t){var Ze=_y(He),qe=He.portFromColOffset;He=He.portToColOffset,Xe=Xe.column,ie+=(Math.abs(M+He-(Xe+qe))+1)*Ze,ge+=(Math.abs(ce+He-(Xe+qe))+1)*Ze,Te+=(Math.abs(Y+He-(Xe+qe))+1)*Ze}}if(0<=n)for(Ve=i[r].destinationEdges.iterator;Ve.next();)He=Ve.value,Xe=He.toVertex,He.valid&&Xe.layer!==t&&(Ze=_y(He),qe=He.portFromColOffset,He=He.portToColOffset,Xe=Xe.column,ie+=(Math.abs(M+qe-(Xe+He))+1)*Ze,ge+=(Math.abs(ce+qe-(Xe+He))+1)*Ze,Te+=(Math.abs(Y+qe-(Xe+He))+1)*Ze);He=qe=Ze=0,Ve=a[i[r].index],Xe=d[i[r].index],Ve!==-1&&(Ze+=Math.abs(Ve-M),qe+=Math.abs(Ve-ce),He+=Math.abs(Ve-Y)),Xe!==-1&&(Ze+=Math.abs(Xe-M),qe+=Math.abs(Xe-ce),He+=Math.abs(Xe-Y)),ge<ie||ge===ie&&qe<Ze?(O=x=!0,i[r].column=ce):(Te<ie||Te===ie&&He<Ze)&&(O=x=!0,i[r].column=Y)}return ph(e,t,i),e.normalize(),x}function Iy(e,t,n){var r=dh(e,t),i=e.tc[t],o=r1(e,t,n),a=[];for(n=0;n<i;n++)a[n]=o[n];for(o=!0;o;)for(o=!1,n=0;n<i;n++){var d=r[n].column,x=e.nodeMinColumnSpace(r[n],!0),O=e.nodeMinColumnSpace(r[n],!1),M=0;if(a[n]===-1)if(n===0&&n===i-1)M=d;else if(n===0){var Y=r[n+1].column;Y-d===O+e.nodeMinColumnSpace(r[n+1],!0)?M=d-1:M=d}else n===i-1?(Y=r[n-1].column,M=d-Y===x+e.nodeMinColumnSpace(r[n-1],!1)?d+1:d):(Y=r[n-1].column,x=Y+e.nodeMinColumnSpace(r[n-1],!1)+x+1,Y=r[n+1].column,O=Y-e.nodeMinColumnSpace(r[n+1],!0)-O-1,M=(x+O)/2|0);else n===0&&n===i-1?M=a[n]:n===0?(Y=r[n+1].column,O=Y-e.nodeMinColumnSpace(r[n+1],!0)-O-1,M=Math.min(a[n],O)):n===i-1?(Y=r[n-1].column,x=Y+e.nodeMinColumnSpace(r[n-1],!1)+x+1,M=Math.max(a[n],x)):(Y=r[n-1].column,x=Y+e.nodeMinColumnSpace(r[n-1],!1)+x+1,Y=r[n+1].column,O=Y-e.nodeMinColumnSpace(r[n+1],!0)-O-1,x<a[n]&&a[n]<O?M=a[n]:x>=a[n]?M=x:O<=a[n]&&(M=O));M!==d&&(o=!0,r[n].column=M)}ph(e,t,r),e.normalize()}function iS(e,t){for(var n=!0,r=e.network.vertexes.iterator;r.next();){var i=r.value,o=e.nodeMinColumnSpace(i,!0),a=e.nodeMinColumnSpace(i,!1);if(i.column-o<=t&&i.column+a>=t){n=!1;break}}if(e=!1,n)for(r.reset();r.next();)n=r.value,n.column>t&&(--n.column,e=!0);return e}function oS(e,t){var n=t+1,r,i=[],o=[];for(r=0;r<=e.Ia;r++)i[r]=!1,o[r]=!1;for(var a=e.network.vertexes.iterator;a.next();){r=a.value;var d=r.column-e.nodeMinColumnSpace(r,!0),x=r.column+e.nodeMinColumnSpace(r,!1);d<=t&&x>=t&&(i[r.layer]=!0),d<=n&&x>=n&&(o[r.layer]=!0)}for(d=!0,n=!1,r=0;r<=e.Ia;r++)d=d&&!(i[r]&&o[r]);if(d)for(a.reset();a.next();)e=a.value,e.column>t&&(--e.column,n=!0);return n}function d1(e,t){for(var n=0;n<=e.Ra;n++)for(;iS(e,n););for(e.normalize(),n=0;n<e.Ra;n++)for(;oS(e,n););e.normalize();var r;if(0<t)for(n=0;n<=e.Ra;n++){var i=Ra(e),o=Dm(e);for(r=o+1;o<r;){r=o,p1(e,n,1);var a=Dm(e);a>o?Nl(e,i):a<o&&(o=a,i=Ra(e))}}if(0>t)for(n=e.Ra;0<=n;n--)for(i=Ra(e),o=Dm(e),r=o+1;o<r;)r=o,p1(e,n,-1),a=Dm(e),a>o?Nl(e,i):a<o&&(o=a,i=Ra(e));e.normalize()}function p1(e,t,n){e.le=0;for(var r=e.network.vertexes.iterator;r.next();)r.value.component=-1;if(0<n)for(r.reset();r.next();){var i=r.value;i.column-e.nodeMinColumnSpace(i,!0)<=t&&(i.component=e.le)}if(0>n)for(r.reset();r.next();)i=r.value,i.column+e.nodeMinColumnSpace(i,!1)>=t&&(i.component=e.le);for(e.le++,r.reset();r.next();)t=r.value,t.component===-1&&(ky(e,t,e.le,-1,!0,!0),e.le++);var o;for(t=[],o=0;o<e.le*e.le;o++)t[o]=!1;for(i=[],o=0;o<(e.Ia+1)*(e.Ra+1);o++)i[o]=-1;for(r.reset();r.next();){o=r.value;for(var a=o.layer,d=Math.max(0,o.column-e.nodeMinColumnSpace(o,!0)),x=Math.min(e.Ra,o.column+e.nodeMinColumnSpace(o,!1));d<=x;d++)i[a*(e.Ra+1)+d]=o.component}for(o=0;o<=e.Ia;o++){if(0<n)for(a=0;a<e.Ra;a++)i[o*(e.Ra+1)+a]!==-1&&i[o*(e.Ra+1)+a+1]!==-1&&i[o*(e.Ra+1)+a]!==i[o*(e.Ra+1)+a+1]&&(t[i[o*(e.Ra+1)+a]*e.le+i[o*(e.Ra+1)+a+1]]=!0);if(0>n)for(a=e.Ra;0<a;a--)i[o*(e.Ra+1)+a]!==-1&&i[o*(e.Ra+1)+a-1]!==-1&&i[o*(e.Ra+1)+a]!==i[o*(e.Ra+1)+a-1]&&(t[i[o*(e.Ra+1)+a]*e.le+i[o*(e.Ra+1)+a-1]]=!0)}for(i=[],o=0;o<e.le;o++)i[o]=!0;for(a=[],a.push(0);a.length!==0;)if(x=a[a.length-1],a.pop(),i[x])for(i[x]=!1,o=0;o<e.le;o++)t[x*e.le+o]&&a.splice(0,0,o);if(0<n)for(r.reset();r.next();)e=r.value,i[e.component]&&--e.column;if(0>n)for(r.reset();r.next();)n=r.value,i[n.component]&&(n.column+=1)}function sS(e){for(var t=Bn(),n=e.fl.length,r=0;r<=n;r++)t[r]=[];for(r=e.network.vertexes.iterator;r.next();){var i=r.value;t[n-i.layer][i.index]=i}n=new Kt,aS(t,n);var o=null,a=null,d=null,x=null,O=(e.ve&1)!==0,M=(e.ve&2)!==0,Y=(e.ve&4)!==0,ie=(e.ve&8)!==0;for(O&&(e.verticalAlignment(t,n,!0),o=Fm(e,t,!0,!1)),t.reverse(),Y&&(e.verticalAlignment(t,n,!1),d=Fm(e,t,!1,!1)),r=Cn(t),i=r.next();!i.done;i=r.next())i.value.reverse();ie&&(e.verticalAlignment(t,n,!1),x=Fm(e,t,!1,!0)),t.reverse(),M&&(e.verticalAlignment(t,n,!0),a=Fm(e,t,!0,!0)),wn(t),e.u(o,a,d,x),e.network.vertexes.each(function(ce){var ge=Bn();O&&ge.push(o.get(ce)),M&&ge.push(a.get(ce)),Y&&ge.push(d.get(ce)),ie&&ge.push(x.get(ce)),ge.sort(function(Ve,He){return Ve-He});var Te=ge.length;Te=(ge[Math.floor((Te-1)/2)]+ge[Math.ceil((Te-1)/2)])/2,wn(ge),ce.zc=Te})}function aS(e,t){for(var n=e.length,r=1;r<n-1;r++)for(var i=0,o=0,a=e[r],d=e[r+1],x=0;o<d.length;x++){var O=d[x];e:{if(O.node===null){var M=By(O);if(0<M.length){M=M[0].node===null;break e}}M=!1}var Y=M;if(x===d.length-1||Y){for(M=a.length-1,Y&&(M=By(O)[0].index);o<=x;){if(O=d[o],!O.bo){Y=[];for(var ie=Cn(O.sourceEdgesArrayAccess),ce=ie.next();!ce.done;ce=ie.next())ce=ce.value,ce.valid&&Y.push(ce);O.bo=Y}for(O=Cn(O.bo),Y=O.next();!Y.done;Y=O.next())Y=Y.value,ie=Y.fromVertex.index,(ie<i||ie>M)&&t.add(Y);o++}i=M}}}mi.prototype.verticalAlignment=function(e,t,n){lS(e),e=Cn(e);for(var r=e.next();!r.done;r=e.next()){var i=-1;r=Cn(r.value);for(var o=r.next();!o.done;o=r.next()){o=o.value;var a=n?By(o):hS(o),d=a.length;if(0<d){a.sort(function(Y,ie){return Y.vi-ie.vi});var x=(d-1)/2;for(d=Math.floor(x),x=Math.ceil(x);d<=x;d++)if(o.align===o){var O=a[d],M=void 0;M=n?Gm(O,o):Gm(o,O),!t.contains(M)&&i<O.vi&&(O.align=o,o.root=O.root,o.align=O.root,i=O.vi)}}}}};function lS(e){for(var t=0;t<e.length;t++)for(var n=e[t],r=0;r<n.length;r++){var i=n[r];i.root=i,i.align=i,i.Tz=t,i.vi=r}}function Fm(e,t,n,r){for(var i=e.K===90||e.K===270,o=Cn(t),a=o.next();!a.done;a=o.next()){var d=Cn(a.value);for(a=d.next();!a.done;a=d.next())a=a.value,a.sd=a,a.shift=1/0,a.zc=NaN,a.qg=0}for(a=e.K===90||e.K===270,o=Cn(t),d=o.next();!d.done;d=o.next()){d=Cn(d.value);for(var x=d.next();!x.done;x=d.next())if(x=x.value,x.root===x){for(var O=0,M=x;M.align!==x;){var Y=M.align,ie=a?M.width:M.height,ce=a?Y.width:Y.height;if(n){var ge=Gm(M,Y),Te=ge.portFromPos,Ve=ge.portToPos;ge.link!==null&&(M.node&&M.node!==ge.link.fromNode&&(Te=a?M.focusX:M.focusY),Y.node&&Y.node!==ge.link.toNode&&(Ve=a?Y.focusX:Y.focusY))}else ge=Gm(Y,M),Te=ge.portToPos,Ve=ge.portFromPos,ge.link!==null&&(M.node&&M.node!==ge.link.toNode&&(Te=a?M.focusX:M.focusY),Y.node&&Y.node!==ge.link.fromNode&&(Ve=a?Y.focusX:Y.focusY));ie=r?M.qg+(ie-Te)-(ce-Ve):M.qg+Te-Ve,Y.qg=ie,O=Math.min(O,ie),M=M.align}M=x;do M.qg=M.qg-O,M=M.align;while(M!==x)}}for(n=Cn(t),a=n.next();!a.done;a=n.next())for(o=Cn(a.value),a=o.next();!a.done;a=o.next())a=a.value,a.root===a&&g1(e,a,t);for(n=0;n<t.length;n++)if(!(0>=t[n].length)&&(a=t[n][0],a.sd===a)){a.sd.shift===1/0&&(a.sd.shift=0),a=n,d=0;do{for(o=t[a][d];o.align!==o.root;)o=o.align,a++,0<o.vi&&(d=m1(o,t),d.sd.shift=Math.min(d.sd.shift,o.sd.shift+o.zc+o.qg-(d.zc+d.qg+(i?d.width:d.height)+e.columnSpacing)));d=o.vi+1}while(a<t.length&&d<t[a].length&&o.sd===t[a][d].sd)}for(e=new Et,t=Cn(t),a=t.next();!a.done;a=t.next())for(n=Cn(a.value),a=n.next();!a.done;a=n.next())a=a.value,a.zc=a.zc+a.sd.shift+a.qg,o=i?a.width:a.height,e.add(a,r?-a.zc-o:a.zc);return e}function g1(e,t,n){if(isNaN(t.zc)){t.zc=0;var r=t;do{if(0<r.vi){var i=m1(r,n),o=i.root;g1(e,o,n),t.sd===t&&(t.sd=o.sd);var a=e.K===90||e.K===270?i.width:i.height;t.sd===o.sd&&(t.zc=Math.max(t.zc,o.zc+i.qg+a-r.qg+e.columnSpacing))}r=r.align}while(r!==t);for(;r.align!==t;)r=r.align,r.zc=t.zc,r.sd=t.sd}}function m1(e,t){var n=e.Tz;return e=e.vi,1>e&&ft("Could not determine previous vertex in layer"),t[n][e-1]}mi.prototype.u=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];n=-1;for(var r=Bn(),i=Bn(),o=1/0,a=0;4>a;a++)if(t[a]){var d=uS(this,t[a],r,i,a);d<o&&(n=a,o=d)}for(o={},a=0;4>a;o={delta:o.delta},a++)t[a]&&(o.delta=a===0||a===2?r[n]-r[a]:i[n]-i[a],o.delta!==0&&t[a].each(function(x){return function(O){O.value+=x.delta}}(o)));wn(r),wn(i)};function uS(e,t,n,r,i){if(!t||t.count===0)return n[i]=0,r[i]=0,1/0;var o=1/0,a=-1/0;return t.each(function(d){var x=d.key;d=d.value,x=e.K===90||e.K===270?x.width:x.height,d<o&&(o=d),d+x>a&&(a=d+x)}),n[i]=o,r[i]=a,a-o}mi.prototype.commitLayout=function(){if(this.setsPortSpots)for(var e=Bm(this,!0),t=Bm(this,!1),n=this.network.edges.iterator;n.next();){var r=n.value.link;r!==null&&(r.fromSpot=e,r.toSpot=t)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Bm(e,t){return e.K===270?t?Ss:qo:e.K===90?t?qo:Ss:e.K===180?t?As:$o:t?$o:As}mi.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var e=0;e<=this.Ia;e++)this.he[e]=0,this.Ld[e]=0,this.Kd[e]=0,this.Ta[e]=0;for(e=this.network.vertexes.iterator;e.next();){var t=e.value,n=t.layer;this.he[n]=Math.max(this.he[n],this.nodeMinLayerSpace(t,!0)),this.Ld[n]=Math.max(this.Ld[n],this.nodeMinLayerSpace(t,!1))}t=0,n=this.ie;for(var r=0;r<=this.Ia;r++){var i=n;0>=this.he[r]+this.Ld[r]&&(i=0),0<r&&(t+=i/2),this.K===90||this.K===0?(t+=this.Ld[r],this.Kd[r]=t,t+=this.he[r]):(t+=this.he[r],this.Kd[r]=t,t+=this.Ld[r]),r<this.Ia&&(t+=i/2),this.Ta[r]=t}for(n=t,t=this.arrangementOrigin,r=0;r<=this.Ia;r++)this.K===270?this.Kd[r]=t.y+this.Kd[r]:this.K===90?(this.Kd[r]=t.y+n-this.Kd[r],this.Ta[r]=n-this.Ta[r]):this.K===180?this.Kd[r]=t.x+this.Kd[r]:(this.Kd[r]=t.x+n-this.Kd[r],this.Ta[r]=n-this.Ta[r]);n=this.ve!==0,e.reset(),r=this.K===270||this.K===90;for(var o=1/0,a=i=1/0,d=-1/0;e.next();){var x=e.value,O=x.layer,M=x.column|0;r?(a=t.x+this.kc*M,O=this.Kd[O]):(a=this.Kd[O],O=t.y+this.kc*M),x.centerX=a,x.centerY=O,n&&isFinite(x.zc)&&(r?x.node?x.x=t.x+x.zc:x.centerX=t.x+x.zc:x.node?x.y=t.y+x.zc:x.centerY=t.y+x.zc),o=Math.min(x.x,o),i=Math.min(x.y,i),r?(a=o,d=Math.max(d,x.bounds.right)):(a=i,d=Math.max(d,x.bounds.bottom))}for(this.xw=d-a,o=t.x-o,t=t.y-i,this.Rf=new Ie(n&&r?0:o,n&&!r?0:t),e.reset();e.next();)n=e.value,n.x+=o,n.y+=t,n.commit()},mi.prototype.Gu=function(){for(var e=0,t=this.ie,n=0;n<=this.Ia;n++)e+=this.he[n],e+=this.Ld[n];e+=this.Ia*t,t=[],n=this.ve!==0?this.xw:this.kc*this.Ra;for(var r=this.maxLayer;0<=r;r--)this.K===270?r===0?t.push(new xt(0,0,n,Math.abs(this.Ta[0]))):t.push(new xt(0,this.Ta[r-1],n,Math.abs(this.Ta[r-1]-this.Ta[r]))):this.K===90?r===0?t.push(new xt(0,this.Ta[0],n,Math.abs(this.Ta[0]-e))):t.push(new xt(0,this.Ta[r],n,Math.abs(this.Ta[r-1]-this.Ta[r]))):this.K===180?r===0?t.push(new xt(0,0,Math.abs(this.Ta[0]),n)):t.push(new xt(this.Ta[r-1],0,Math.abs(this.Ta[r-1]-this.Ta[r]),n)):r===0?t.push(new xt(this.Ta[0],0,Math.abs(this.Ta[0]-e),n)):t.push(new xt(this.Ta[r],0,Math.abs(this.Ta[r-1]-this.Ta[r]),n));this.commitLayers(t,this.Rf)},mi.prototype.commitLayers=function(){},mi.prototype.commitLinks=function(){for(var e=this.network.edges.iterator,t;e.next();)t=e.value.link,t!==null&&(t.uh(),t.Fj(),t.zf());for(e.reset();e.next();)t=e.value.link,t!==null&&t.vg();for(e.reset();e.next();){var n=e.value;if(t=n.link,t!==null){t.uh();var r=t,i=r.fromNode,o=r.toNode,a=r.fromPort,d=r.toPort;if(i!==null){var x=i.findVisibleNode();x!==null&&x!==i&&(i=x,a=x.port)}o!==null&&(x=o.findVisibleNode(),x!==null&&x!==o&&(o=x,d=x.port));var O=t.computeSpot(!0,a);x=t.computeSpot(!1,d);var M=n.fromVertex,Y=n.toVertex;if(n.valid)t.curve===pl&&t.pointsCount===4&&(M.column===Y.column&&this.alignOption===0?(n=t.getLinkPoint(i,a,O,!0,!1,o,d),d=t.getLinkPoint(o,d,x,!1,!1,i,a),n.w()||n.set(i.actualBounds.center),d.w()||d.set(o.actualBounds.center),t.Fj(),t.yf(n.x,n.y),t.yf((2*n.x+d.x)/3,(2*n.y+d.y)/3),t.yf((n.x+2*d.x)/3,(n.y+2*d.y)/3),t.yf(d.x,d.y)):(n=r=!1,a!==null&&O===cr&&(r=!0),d!==null&&x===cr&&(n=!0),(r||n)&&(x=null,r&&(x=t.getLinkPointFromPoint(i,a,a.ga(Tr),t.i(3),!0),x.w()||x.set(i.actualBounds.center),t.L(0,x.x,x.y)),i=null,n&&(i=t.getLinkPointFromPoint(o,d,d.ga(Tr),t.i(0),!1),i.w()||i.set(o.actualBounds.center),t.L(3,i.x,i.y)),x&&(o=t.i(2),t.L(1,(2*x.x+o.x)/3,(2*x.y+o.y)/3)),i&&(o=t.i(1),t.L(2,(2*i.x+o.x)/3,(2*i.y+o.y)/3))))),t.zf();else if(M.layer===Y.layer)t.zf();else{var ie=!1,ce=!1,ge=this.ie,Te=t.firstPickIndex+1;if(t.isOrthogonal){ce=!0;var Ve=t.pointsCount;4<Ve&&t.points.removeRange(2,Ve-3)}else if(t.curve===pl)ie=!0,Ve=t.pointsCount,4<Ve&&t.points.removeRange(2,Ve-3),Ve===4&&(Te=2);else{Ve=t.pointsCount;var He=O===cr,Xe=x===cr;2<Ve&&He&&Xe?t.points.removeRange(1,Ve-2):3<Ve&&He&&!Xe?t.points.removeRange(1,Ve-3):3<Ve&&!He&&Xe?t.points.removeRange(2,Ve-2):4<Ve&&!He&&!Xe&&t.points.removeRange(2,Ve-3)}if(n.rev){for(;Y!==null&&M!==Y;){var Ze=Ve=null;for(He=Y.sourceEdges.iterator;He.next()&&(Xe=He.value,Xe.link!==n.link||(Ve=Xe.fromVertex,Ze=Xe.toVertex,Ve.node!==null)););if(Ve===null)break;if(Ve!==M){He=t.i(Te-1).x,Xe=t.i(Te-1).y;var qe=Ve.centerX,st=Ve.centerY;if(ce)this.K===180||this.K===0?Te===t.firstPickIndex+1?(t.m(Te++,He,Xe),t.m(Te++,He,st)):(Ze!==null?Ze.centerY:Xe)!==st&&(Ze=this.Ta[Ve.layer-1]+this.Rf.x,t.m(Te++,Ze,Xe),t.m(Te++,Ze,st)):Te===t.firstPickIndex+1?(t.m(Te++,He,Xe),t.m(Te++,qe,Xe)):(Ze!==null?Ze.centerX:He)!==qe&&(Ze=this.Ta[Ve.layer-1]+this.Rf.y,t.m(Te++,He,Ze),t.m(Te++,qe,Ze));else if(Te===t.firstPickIndex+1){Ze=Math.max(10,this.he[Y.layer]);var yt=Math.max(10,this.Ld[Y.layer]);if(ie)this.K===180?qe<=Y.bounds.x?(Y=Y.bounds.x,t.m(Te++,Y-Ze,st),t.m(Te++,Y,st),t.m(Te++,Y+yt,st)):(t.m(Te++,qe-Ze,st),t.m(Te++,qe,st),t.m(Te++,qe+yt,st)):this.K===90?st>=Y.bounds.bottom?(Y=Y.bounds.y+Y.bounds.height,t.m(Te++,qe,Y+yt),t.m(Te++,qe,Y),t.m(Te++,qe,Y-Ze)):(t.m(Te++,qe,st+yt),t.m(Te++,qe,st),t.m(Te++,qe,st-Ze)):this.K===270?st<=Y.bounds.y?(Y=Y.bounds.y,t.m(Te++,qe,Y-Ze),t.m(Te++,qe,Y),t.m(Te++,qe,Y+yt)):(t.m(Te++,qe,st-Ze),t.m(Te++,qe,st),t.m(Te++,qe,st+yt)):this.K===0&&(qe>=Y.bounds.right?(Y=Y.bounds.x+Y.bounds.width,t.m(Te++,Y+yt,st),t.m(Te++,Y,st),t.m(Te++,Y-Ze,st)):(t.m(Te++,qe+yt,st),t.m(Te++,qe,st),t.m(Te++,qe-Ze,st)));else{t.m(Te++,He,Xe);var un=0;this.K===180||this.K===0?((this.K===180?qe>=Y.bounds.right:qe<=Y.bounds.x)&&(un=(this.K===0?-Ze:yt)/2),t.m(Te++,He+un,st)):((this.K===270?st>=Y.bounds.bottom:st<=Y.bounds.y)&&(un=(this.K===90?-Ze:yt)/2),t.m(Te++,qe,Xe+un)),t.m(Te++,qe,st)}}else Ze=Math.max(10,this.he[Ve.layer]),yt=Math.max(10,this.Ld[Ve.layer]),ie?this.K===180?(t.m(Te++,qe-Ze-ge,st),t.m(Te++,Math.min(qe-Ze+ge/2,qe),st),t.m(Te++,qe,st),t.m(Te++,qe,st),t.m(Te++,Math.max(qe+yt-ge/2,qe),st),t.m(Te++,qe+yt+ge,st)):this.K===90?(t.m(Te++,qe,st+yt+ge),t.m(Te++,qe,Math.max(st+yt-ge/2,st)),t.m(Te++,qe,st),t.m(Te++,qe,st),t.m(Te++,qe,Math.min(st-Ze+ge/2,st)),t.m(Te++,qe,st-Ze-ge)):this.K===270?(t.m(Te++,qe,st-Ze-ge),t.m(Te++,qe,Math.min(st-Ze+ge/2,st)),t.m(Te++,qe,st),t.m(Te++,qe,st),t.m(Te++,qe,Math.max(st+yt-ge/2,st)),t.m(Te++,qe,st+yt+ge)):(t.m(Te++,qe+yt+ge,st),t.m(Te++,Math.max(qe+yt-ge/2,qe),st),t.m(Te++,qe,st),t.m(Te++,qe,st),t.m(Te++,Math.min(qe-Ze+ge/2,qe),st),t.m(Te++,qe-Ze-ge,st)):t.m(Te++,qe,st)}Y=Ve}(d===null||O!==cr||ce)&&(He=t.i(Te-1).x,Xe=t.i(Te-1).y,qe=t.i(Te).x,st=t.i(Te).y,ce?(ge=this.Ld[M.layer],this.K===180||this.K===0?(ce=Xe,ce>=M.bounds.y&&ce<=M.bounds.bottom&&(this.K===180?qe>=M.bounds.x:qe<=M.bounds.right)&&(Y=M.centerX+(this.K===180?-ge:ge),ce<M.bounds.y+M.bounds.height/2?ce=M.bounds.y-this.kc/2:ce=M.bounds.bottom+this.kc/2,t.m(Te++,Y,Xe),t.m(Te++,Y,ce)),t.m(Te++,qe,ce)):(ce=He,ce>=M.bounds.x&&ce<=M.bounds.right&&(this.K===270?st>=M.bounds.y:st<=M.bounds.bottom)&&(Y=M.centerY+(this.K===270?-ge:ge),ce<M.bounds.x+M.bounds.width/2?ce=M.bounds.x-this.kc/2:ce=M.bounds.right+this.kc/2,t.m(Te++,He,Y),t.m(Te++,ce,Y)),t.m(Te++,ce,st)),t.m(Te++,qe,st)):ie?(Ze=Math.max(10,this.he[M.layer]),yt=Math.max(10,this.Ld[M.layer]),this.K===180&&qe>=M.bounds.x?(Y=M.bounds.x+M.bounds.width,t.L(Te-2,Y,Xe),t.L(Te-1,Y+yt,Xe)):this.K===90&&st<=M.bounds.bottom?(Y=M.bounds.y,t.L(Te-2,He,Y),t.L(Te-1,He,Y-Ze)):this.K===270&&st>=M.bounds.y?(Y=M.bounds.y+M.bounds.height,t.L(Te-2,He,Y),t.L(Te-1,He,Y+yt)):this.K===0&&qe<=M.bounds.right&&(Y=M.bounds.x,t.L(Te-2,Y,Xe),t.L(Te-1,Y-Ze,Xe))):(Ze=Math.max(10,this.he[M.layer]),yt=Math.max(10,this.Ld[M.layer]),ce=0,this.K===180||this.K===0?((this.K===180?qe<=M.bounds.x:qe>=M.bounds.right)&&(ce=(this.K===0?yt:-Ze)/2),t.m(Te++,qe+ce,Xe)):((this.K===270?st<=M.bounds.y:st>=M.bounds.bottom)&&(ce=(this.K===90?yt:-Ze)/2),t.m(Te++,He,st+ce)),t.m(Te++,qe,st)))}else{for(;M!==null&&M!==Y;){for(Ze=Ve=null,M=M.destinationEdges.iterator;M.next()&&(He=M.value,He.link!==n.link||(Ve=He.toVertex,Ze=He.fromVertex,Ze.node!==null&&(Ze=null),Ve.node!==null)););if(Ve===null)break;Ve!==Y&&(He=t.i(Te-1).x,Xe=t.i(Te-1).y,qe=Ve.centerX,st=Ve.centerY,ce?this.K===180||this.K===0?(Ze!==null?Ze.centerY:Xe)!==st&&(Ze=this.Ta[Ve.layer]+this.Rf.x,Te===t.firstPickIndex+1&&(Ze=this.K===0?Math.max(Ze,He):Math.min(Ze,He)),t.m(Te++,Ze,Xe),t.m(Te++,Ze,st)):(Ze!==null?Ze.centerX:He)!==qe&&(Ze=this.Ta[Ve.layer]+this.Rf.y,Te===t.firstPickIndex+1&&(Ze=this.K===90?Math.max(Ze,Xe):Math.min(Ze,Xe)),t.m(Te++,He,Ze),t.m(Te++,qe,Ze)):(Ze=Math.max(10,this.he[Ve.layer]),yt=Math.max(10,this.Ld[Ve.layer]),ie?this.K===180?(t.m(Te++,qe+yt+ge,st),t.m(Te++,Math.max(qe+yt-ge/2,qe),st),t.m(Te++,qe,st),t.m(Te++,qe,st),t.m(Te++,Math.min(qe-Ze+ge/2,qe),st),t.m(Te++,qe-Ze-ge,st)):this.K===90?(t.m(Te++,qe,st-Ze-ge),t.m(Te++,qe,Math.min(st-Ze+ge/2,st)),t.m(Te++,qe,st),t.m(Te++,qe,st),t.m(Te++,qe,Math.max(st+yt-ge/2,st)),t.m(Te++,qe,st+yt+ge)):this.K===270?(t.m(Te++,qe,st+yt+ge),t.m(Te++,qe,Math.max(st+yt-ge/2,st)),t.m(Te++,qe,st),t.m(Te++,qe,st),t.m(Te++,qe,Math.min(st-Ze+ge/2,st)),t.m(Te++,qe,st-Ze-ge)):(t.m(Te++,qe-Ze-ge,st),t.m(Te++,Math.min(qe-Ze+ge/2,qe),st),t.m(Te++,qe,st),t.m(Te++,qe,st),t.m(Te++,Math.max(qe+yt-ge/2,qe),st),t.m(Te++,qe+yt+ge,st)):this.K===180?(t.m(Te++,qe+yt,st),t.m(Te++,qe-Ze,st)):this.K===90?(t.m(Te++,qe,st-Ze),t.m(Te++,qe,st+yt)):this.K===270?(t.m(Te++,qe,st+yt),t.m(Te++,qe,st-Ze)):(t.m(Te++,qe-Ze,st),t.m(Te++,qe+yt,st)))),M=Ve}ce&&(He=t.i(Te-1).x,Xe=t.i(Te-1).y,qe=t.i(Te).x,st=t.i(Te).y,this.K===180||this.K===0?Xe!==st&&(Ze=this.K===0?Math.min(Math.max((qe+He)/2,this.Ta[Y.layer]+this.Rf.x),qe):Math.max(Math.min((qe+He)/2,this.Ta[Y.layer]+this.Rf.x),qe),t.m(Te++,Ze,Xe),t.m(Te++,Ze,st)):He!==qe&&(Ze=this.K===90?Math.min(Math.max((st+Xe)/2,this.Ta[Y.layer]+this.Rf.y),st):Math.max(Math.min((st+Xe)/2,this.Ta[Y.layer]+this.Rf.y),st),t.m(Te++,He,Ze),t.m(Te++,qe,Ze)))}r!==null&&ie&&4<=t.pointsCount&&(a!==null&&(a=O===cr?t.getLinkPointFromPoint(i,a,a.ga(Tr),t.i(3),!0):t.i(0),O===cr&&(O=t.i(2),r=t.i(3),this.direction===90||this.direction===270?(t.L(1,(a.x+O.x)/2,O.y),t.L(2,r.x,(O.y+r.y)/2)):(t.L(1,O.x,(a.y+O.y)/2),t.L(2,(O.x+r.x)/2,r.y))),a.w()||a.set(i.actualBounds.center),t.L(0,a.x,a.y)),d!==null&&(i=x===cr?t.getLinkPointFromPoint(o,d,d.ga(Tr),t.i(t.pointsCount-4),!1):t.i(t.pointsCount-1),x===cr&&(d=t.i(t.pointsCount-3),x=t.i(t.pointsCount-4),this.direction===90||this.direction===270?(t.L(t.pointsCount-2,(i.x+d.x)/2,d.y),t.L(t.pointsCount-2,x.x,(d.y+x.y)/2)):(t.L(t.pointsCount-2,d.x,(i.y+d.y)/2),t.L(t.pointsCount-3,(d.x+x.x)/2,x.y))),i.w()||i.set(o.actualBounds.center),t.L(t.pointsCount-1,i.x,i.y))),t.zf(),n.commit()}}}this.avoidOrthogonalOverlaps()},mi.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var e=new Gt,t=this.network.edges.iterator;t.next();){var n=t.value.link;n!==null&&n.isOrthogonal&&!e.contains(n)&&e.add(n)}if(0<e.count)if(this.K===90||this.K===270){for(t=0,n=[],e=e.iterator;e.next();){var r=e.value;if(r!==null&&r.isOrthogonal)for(var i=2;i<r.pointsCount-3;i++){var o=r.i(i),a=r.i(i+1);if(this.B(o.y,a.y)&&!this.B(o.x,a.x)){var d=new gh;d.layer=Math.floor(o.y/2);var x=r.i(0),O=r.i(r.pointsCount-1);if(d.first=x.x*x.x+x.y,d.jc=O.x*O.x+O.y,d.rd=Math.min(o.x,a.x),d.Ic=Math.max(o.x,a.x),d.index=i,d.link=r,i+2<r.pointsCount){x=r.i(i-1),O=r.i(i+2);var M=0;x.y<o.y?M=O.y<o.y?3:o.x<a.x?2:1:x.y>o.y&&(M=O.y>o.y?0:a.x<o.x?2:1),d.j=M}n.push(d)}}}if(1<n.length)for(n.sort(this.Vx),e=0;e<n.length;){for(o=n[e].layer,r=e+1;r<n.length&&n[r].layer===o;)r++;if(1<r-e)for(o=e;o<r;){for(a=n[o].Ic,i=e+1;i<r&&n[i].rd<a;)a=Math.max(a,n[i].Ic),i++;if(a=i-o,1<a){for(this.zi(n,this.Js,o,o+a),M=1,d=n[o].jc,x=o;x<i;x++)O=n[x],O.jc!==d&&(M++,d=O.jc);this.zi(n,this.Ux,o,o+a);var Y=1;for(d=n[o].first,x=o;x<i;x++)O=n[x],O.first!==d&&(Y++,d=O.first);for(x=!0,O=Y,M<Y?(x=!1,O=M,d=n[o].jc,this.zi(n,this.Js,o,o+a)):d=n[o].first,M=0,Y=o;Y<i;Y++){var ie=n[Y];(x?ie.first:ie.jc)!==d&&(M++,d=x?ie.first:ie.jc);var ce=ie.link;o=ce.i(ie.index),a=ce.i(ie.index+1);var ge=this.linkSpacing*(M-(O-1)/2);t++,ce.uh(),ce.L(ie.index,o.x,o.y+ge),ce.L(ie.index+1,a.x,a.y+ge),ce.zf()}}o=i}e=r}}else{for(t=0,n=[],e=e.iterator;e.next();)if(r=e.value,r!==null&&r.isOrthogonal)for(i=2;i<r.pointsCount-3;i++)o=r.i(i),a=r.i(i+1),this.B(o.x,a.x)&&!this.B(o.y,a.y)&&(d=new gh,d.layer=Math.floor(o.x/2),x=r.i(0),O=r.i(r.pointsCount-1),d.first=x.x+x.y*x.y,d.jc=O.x+O.y*O.y,d.rd=Math.min(o.y,a.y),d.Ic=Math.max(o.y,a.y),d.index=i,d.link=r,i+2<r.pointsCount&&(x=r.i(i-1),O=r.i(i+2),M=0,x.x<o.x?M=O.x<o.x?3:o.y<a.y?2:1:x.x>o.x&&(M=O.x>o.x?0:a.y<o.y?2:1),d.j=M),n.push(d));if(1<n.length)for(n.sort(this.Vx),e=0;e<n.length;){for(o=n[e].layer,r=e+1;r<n.length&&n[r].layer===o;)r++;if(1<r-e)for(o=e;o<r;){for(a=n[o].Ic,i=e+1;i<r&&n[i].rd<a;)a=Math.max(a,n[i].Ic),i++;if(a=i-o,1<a){for(this.zi(n,this.Js,o,o+a),M=1,d=n[o].jc,x=o;x<i;x++)O=n[x],O.jc!==d&&(M++,d=O.jc);for(this.zi(n,this.Ux,o,o+a),Y=1,d=n[o].first,x=o;x<i;x++)O=n[x],O.first!==d&&(Y++,d=O.first);for(x=!0,O=Y,M<Y?(x=!1,O=M,d=n[o].jc,this.zi(n,this.Js,o,o+a)):d=n[o].first,M=0,Y=o;Y<i;Y++)ie=n[Y],(x?ie.first:ie.jc)!==d&&(M++,d=x?ie.first:ie.jc),ce=ie.link,o=ce.i(ie.index),a=ce.i(ie.index+1),ge=this.linkSpacing*(M-(O-1)/2),t++,ce.uh(),ce.L(ie.index,o.x+ge,o.y),ce.L(ie.index+1,a.x+ge,a.y),ce.zf()}o=i}e=r}}}},me=mi.prototype,me.Vx=function(e,t){return e instanceof gh&&t instanceof gh&&e!==t?e.layer<t.layer?-1:e.layer>t.layer?1:e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},me.Ux=function(e,t){return e instanceof gh&&t instanceof gh&&e!==t?e.first<t.first?-1:e.first>t.first||e.j<t.j?1:e.j>t.j||e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},me.Js=function(e,t){return e instanceof gh&&t instanceof gh&&e!==t?e.jc<t.jc?-1:e.jc>t.jc||e.j<t.j?1:e.j>t.j||e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},me.B=function(e,t){return e-=t,-1<e&&1>e},me.zi=function(e,t,n,r){var i=e.length,o=r-n;if(!(1>=o))if((0>n||n>=i-1)&&ft("not in range 0 <= from < length: "+n),o===2)r=e[n],i=e[n+1],0<t(r,i)&&(e[n]=i,e[n+1]=r);else if(n===0)if(r>=i)e.sort(t);else for(n=e.slice(0,r),n.sort(t),t=0;t<r;t++)e[t]=n[t];else if(r>=i)for(r=e.slice(n),r.sort(t),t=n;t<i;t++)e[t]=r[t-n];else for(i=e.slice(n,r),i.sort(t),t=n;t<r;t++)e[t]=i[t-n]};function dh(e,t){var n=e.tc[t];if(n>=e.He.length){for(var r=[],i=0;i<e.He.length;i++)r[i]=e.He[i];e.He=r}for(e.He[n]===void 0||e.He[n]===null?r=[]:(r=e.He[n],e.He[n]=null),e=e.fl[t],t=0;t<e.length;t++)n=e[t],r[n.index]=n;return r}function ph(e,t,n){e.He[e.tc[t]]=n}Mn.Object.defineProperties(mi.prototype,{layerSpacing:{get:function(){return this.ie},set:function(e){this.ie!==e&&0<=e&&(this.ie=e,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(e){this.kc!==e&&0<e&&(this.kc=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K!==e&&(e===0||e===90||e===180||e===270?(this.K=e,this.C()):ft("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(e){this.Dk===e||e!==Ry&&e!==jm&&e!==Wp||(this.Dk=e,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(e){this.Zk===e||e!==Um&&e!==Oy&&e!==Ly||(this.Zk=e,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(e){this.Qk===e||e!==Hm&&e!==My&&e!==Dy||(this.Qk=e,this.C())}},iterations:{get:function(){return this.bj},set:function(e){this.bj!==e&&0<=e&&(this.bj=e,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(e){this.rk===e||e!==Py&&e!==zm&&e!==Fy||(this.rk=e,this.C())}},packOption:{get:function(){return this.bg},set:function(e){this.bg!==e&&0<=e&&8>e&&(this.bg=e,this.C())}},alignOption:{get:function(){return this.ve},set:function(e){this.ve!==e&&0<=e&&16>e&&(this.ve=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(e){this.Cn!==e&&0<=e&&(this.Cn=e,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var jm=new Dt(mi,"CycleDepthFirst",0),Ry=new Dt(mi,"CycleGreedy",1),Wp=new Dt(mi,"CycleFromLayers",2),Um=new Dt(mi,"LayerOptimalLinkLength",0),Oy=new Dt(mi,"LayerLongestPathSink",1),Ly=new Dt(mi,"LayerLongestPathSource",2),Hm=new Dt(mi,"InitDepthFirstOut",0),My=new Dt(mi,"InitDepthFirstIn",1),Dy=new Dt(mi,"InitNaive",2),Py=new Dt(mi,"AggressiveNone",0),zm=new Dt(mi,"AggressiveLess",1),Fy=new Dt(mi,"AggressiveMore",2),cS=8;mi.className="LayeredDigraphLayout",mi.CycleDepthFirst=jm,mi.CycleGreedy=Ry,mi.CycleFromLayers=Wp,mi.LayerOptimalLinkLength=Um,mi.LayerLongestPathSink=Oy,mi.LayerLongestPathSource=Ly,mi.InitDepthFirstOut=Hm,mi.InitDepthFirstIn=My,mi.InitNaive=Dy,mi.AggressiveNone=Py,mi.AggressiveLess=zm,mi.AggressiveMore=Fy,mi.PackNone=0,mi.PackExpand=1,mi.PackStraighten=2,mi.PackMedian=4,mi.PackAll=15,mi.AlignNone=0,mi.AlignUpperLeft=1,mi.AlignUpperRight=2,mi.AlignLowerLeft=4,mi.AlignLowerRight=8,mi.AlignAll=15;function gh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}gh.className="SegInfo";function wd(e){Gi.call(this,e)}Kn(wd,Gi),wd.prototype.createVertex=function(){return new Il(this)},wd.prototype.createEdge=function(){return new Vp(this)},wd.className="LayeredDigraphNetwork";function Il(e){Jo.call(this,e),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Kn(Il,Jo);function v1(e,t){return e.index-t.index}function Gm(e,t){if(!e.$n){for(var n=[],r=Cn(e.destinationEdgesArrayAccess),i=r.next();!i.done;i=r.next())i=i.value,i.valid&&n.push(i);e.$n=n}for(e=Cn(e.$n),n=e.next();!n.done;n=e.next())if(n=n.value,n.toVertex===t)return n;ft("Unable to find destination edge to given vertex")}function By(e){if(!e.co){for(var t=[],n=Cn(e.sourceEdgesArrayAccess),r=n.next();!r.done;r=n.next())r=r.value,r.valid&&t.push(r.fromVertex);t.sort(v1),e.co=t}return e.co}function hS(e){if(!e.ao){for(var t=[],n=Cn(e.destinationEdgesArrayAccess),r=n.next();!r.done;r=n.next())r=r.value,r.valid&&t.push(r.toVertex);t.sort(v1),e.ao=t}return e.ao}Il.prototype.Cl=function(e){Jo.prototype.Cl.call(this,e),this.bo=this.co=null},Il.prototype.Kl=function(e){Jo.prototype.Kl.call(this,e),this.bo=this.co=null},Il.prototype.zl=function(e){Jo.prototype.zl.call(this,e),this.$n=this.ao=null},Il.prototype.Jl=function(e){Jo.prototype.Jl.call(this,e),this.$n=this.ao=null},Mn.Object.defineProperties(Il.prototype,{layer:{get:function(){return this.Ig},set:function(e){this.Ig!==e&&(this.Ig=e)}},column:{get:function(){return this.Ag},set:function(e){this.Ag!==e&&(this.Ag=e)}},index:{get:function(){return this.Za},set:function(e){this.Za!==e&&(this.Za=e)}},component:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},near:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),Il.prototype.deleteDestinationEdge=Il.prototype.Jl,Il.prototype.addDestinationEdge=Il.prototype.zl,Il.prototype.deleteSourceEdge=Il.prototype.Kl,Il.prototype.addSourceEdge=Il.prototype.Cl,Il.className="LayeredDigraphVertex";function Vp(e){Qa.call(this,e),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Kn(Vp,Qa),Mn.Object.defineProperties(Vp.prototype,{fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}},valid:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},rev:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},forest:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}},portFromPos:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},portToPos:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},portFromColOffset:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},portToColOffset:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),Vp.className="LayeredDigraphEdge";function wr(e){ao.call(this),this.Ub=new Kt,this.Wn=Ym,this.ud=Qu,this.vo=Xm,this.Bq=Xy,this.$v=[],this.td=!0,this.Rb=Zm,this.$d=new mn(10,10).freeze();var t=new Af(this);this.W=new Gl(t),this.Y=new Gl(t),this.ru=[],e&&Object.assign(this,e)}Kn(wr,ao),wr.prototype.cloneProtected=function(e){ao.prototype.cloneProtected.call(this,e),e.Wn=this.Wn,e.vo=this.vo,e.Bq=this.Bq,e.td=this.td,e.Rb=this.Rb,e.$d.assign(this.$d),e.W.copyInheritedPropertiesFrom(this.W),e.Y.copyInheritedPropertiesFrom(this.Y)},wr.prototype.qb=function(e){e.classType===wr?e.name.indexOf("Alignment")===0?this.alignment=e:e.name.indexOf("Arrangement")===0?this.arrangement=e:e.name.indexOf("Compaction")===0?this.compaction=e:e.name.indexOf("Path")===0?this.path=e:e.name.indexOf("Sorting")===0?this.sorting=e:e.name.indexOf("Style")===0?this.treeStyle=e:ft("Unknown enum value: "+e):ao.prototype.qb.call(this,e)},wr.prototype.createNetwork=function(){return new Af(this)},wr.prototype.makeNetwork=function(e){function t(r){if(r instanceof hn)return!r.isLinkLabel&&r.category!=="Comment";if(r instanceof nn){var i=r.fromNode;return i===null||i.isLinkLabel||i.category==="Comment"?!1:(r=r.toNode,!(r===null||r.isLinkLabel||r.category==="Comment"))}return!1}var n=this.createNetwork();return e instanceof bt?(n.lg(e.nodes,!0,t),n.lg(e.links,!0,t)):e instanceof or?n.lg(e.memberParts,!1,t):n.lg(e.iterator,!1,t),n},wr.prototype.doLayout=function(e){this.network===null&&(this.network=this.makeNetwork(e)),this.arrangement!==Jm&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var t=this.diagram;if(t===null&&e instanceof bt&&(t=e),this.path===Ym&&t!==null?this.ud=t.isTreePathToChildren?Qu:Tf:this.ud=this.path===Ym?Qu:this.path,0<this.network.vertexes.count){for(this.network.Ko(),e=this.network.vertexes.iterator;e.next();)t=e.value,t.initialized=!1,t.level=0,t.parent=null,t.children=[];if(0<this.Ub.count){for(e=new Kt,t=this.Ub.iterator;t.next();){var n=t.value;n instanceof hn?(n=this.network.ki(n),n!==null&&e.add(n)):n instanceof Gl&&e.add(n)}this.Ub=e}for(this.Ub.count===0&&this.findRoots(),e=this.Ub.copy().iterator;e.next();)t=e.value,t.initialized||(t.initialized=!0,jy(this,t));for(t=this.network.vertexes,e=null;e=fS(t),0<e.count;)t=y1(this,e),t!==null&&this.Ub.add(t),t.initialized=!0,jy(this,t),t=e;for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Gl&&S1(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Gl&&x1(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Gl&&w1(this,t);if(this.Cu(),this.layerStyle===Qm){for(e=[],t=this.network.vertexes.iterator;t.next();){n=t.value;var r=n.parent;r===null&&(r=n),r=r.angle===0||r.angle===180;var i=e[n.level];i===void 0&&(i=0),e[n.level]=Math.max(i,r?n.width:n.height)}for(t=0;t<e.length;t++)e[t]===void 0&&(e[t]=0);for(this.$v=e,t=this.network.vertexes.iterator;t.next();)n=t.value,r=n.parent,r===null&&(r=n),r.angle===0||r.angle===180?(r.angle===180&&(n.focusX+=e[n.level]-n.width),n.width=e[n.level]):(r.angle===270&&(n.focusY+=e[n.level]-n.height),n.height=e[n.level])}else if(this.layerStyle===Zy)for(e=this.network.vertexes.iterator;e.next();){for(t=e.value,n=t.angle===0||t.angle===180,r=-1,i=0;i<t.children.length;i++){var o=t.children[i];r=Math.max(r,n?o.width:o.height)}if(0<=r)for(i=0;i<t.children.length;i++)o=t.children[i],n?(t.angle===180&&(o.focusX+=r-o.width),o.width=r):(t.angle===270&&(o.focusY+=r-o.height),o.height=r)}for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Gl&&this.layoutTree(t);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Kt,this.isValidLayout=!0};function fS(e){var t=new Kt;for(e=e.iterator;e.next();){var n=e.value;n.initialized||t.add(n)}return t}wr.prototype.findRoots=function(){for(var e=this.network.vertexes,t=e.iterator;t.next();){var n=t.value;switch(this.ud){case Qu:n.sourceEdges.count===0&&this.Ub.add(n);break;case Tf:n.destinationEdges.count===0&&this.Ub.add(n);break;default:ft("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(e=y1(this,e),e!==null&&this.Ub.add(e))};function y1(e,t){var n=999999,r=null;for(t=t.iterator;t.next();){var i=t.value;switch(e.ud){case Qu:i.sourceEdges.count<n&&(n=i.sourceEdges.count,r=i);break;case Tf:i.destinationEdges.count<n&&(n=i.destinationEdges.count,r=i);break;default:ft("Unhandled path value "+e.ud.toString())}}return r}function jy(e,t){if(t!==null){switch(e.ud){case Qu:if(0<t.destinationEdges.count){for(var n=new Gt,r=t.destinationVertexes;r.next();){var i=r.value;b1(e,t,i)&&n.add(i)}0<n.count&&(t.children=n.Fa())}break;case Tf:if(0<t.sourceEdges.count){for(n=new Gt,r=t.sourceVertexes;r.next();)i=r.value,b1(e,t,i)&&n.add(i);0<n.count&&(t.children=n.Fa())}break;default:ft("Unhandled path value"+e.ud.toString())}for(n=t.children,r=n.length,i=0;i<r;i++){var o=n[i];o.initialized=!0,o.level=t.level+1,o.parent=t,e.Ub.remove(o)}for(t=0;t<r;t++)jy(e,n[t])}}function b1(e,t,n){if(n.initialized){if(t===null)var r=!1;else{for(r=t.parent;r!==null&&r!==n;)r=r.parent;r=r===n}if(r||n.level>t.level)return!1;e.removeChild(n.parent,n)}return!0}wr.prototype.removeChild=function(e,t){if(e!==null&&t!==null){for(var n=e.children,r=0,i=0;i<n.length;i++)n[i]===t&&r++;if(0<r){r=Array(n.length-r);for(var o=i=0;o<n.length;o++)n[o]!==t&&(r[i++]=n[o]);e.children=r}}};function S1(e,t){if(t!==null){e.initializeTreeVertexValues(t),t.alignment===tc&&e.sortTreeVertexChildren(t);for(var n=0,r=t.childrenCount,i=0,o=t.children,a=o.length,d=0;d<a;d++){var x=o[d];S1(e,x),n+=x.descendantCount+1,r=Math.max(r,x.maxChildrenCount),i=Math.max(i,x.maxGenerationCount)}t.descendantCount=n,t.maxChildrenCount=r,t.maxGenerationCount=0<r?i+1:0}}function dS(e,t){switch(e.vo){default:case Xm:return t.parent!==null?t.parent:e.W;case Yy:return t.parent===null?e.W:t.parent.parent===null?e.Y:t.parent;case Ky:return t.parent!==null?t.parent.parent!==null?t.parent.parent:e.Y:e.W;case Vy:var n=!0;if(t.childrenCount===0)n=!1;else for(var r=t.children,i=r.length,o=0;o<i;o++)if(0<r[o].childrenCount){n=!1;break}return n&&t.parent!==null?e.Y:t.parent!==null?t.parent:e.W}}wr.prototype.initializeTreeVertexValues=function(e){if(e.copyInheritedPropertiesFrom(dS(this,e)),e.parent!==null&&e.parent.alignment===tc){for(var t=e.angle,n=e.parent.children,r=0;r<n.length&&e!==n[r];)r++;r%2===0?r!==n.length-1&&(t=t===90?180:t===180?270:t===270?180:270):t=t===90?0:t===180?90:t===270?0:90,e.angle=t}e.initialized=!0};function x1(e,t){if(t!==null){e.assignTreeVertexValues(t),t=t.children;for(var n=t.length,r=0;r<n;r++)x1(e,t[r])}}wr.prototype.assignTreeVertexValues=function(){};function w1(e,t){if(t!==null){t.alignment!==tc&&e.sortTreeVertexChildren(t),t=t.children;for(var n=t.length,r=0;r<n;r++)w1(e,t[r])}}wr.prototype.sortTreeVertexChildren=function(e){switch(e.sorting){case Ed:break;case Yp:e.children.reverse();break;case $p:e.children.sort(e.comparer);break;case Xp:e.children.sort(e.comparer),e.children.reverse();break;default:ft("Unhandled sorting value "+e.sorting.toString())}},wr.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},wr.prototype.addComments=function(e){var t=e.angle,n=e.parent,r=0,i=!1;n!==null&&(r=n.angle,i=n.alignment,i=mh(i)),t=t===90||t===270,r=r===90||r===270,n=e.childrenCount===0;var o=0,a=0,d=0,x=e.commentSpacing;if(e.node!==null)for(var O=e.node.Mu();O.next();){var M=O.value;M.category==="Comment"&&M.canLayout()&&(e.comments===null&&(e.comments=[]),e.comments.push(M),M.Va(),M=M.measuredBounds,t&&!n||!i&&!r&&n||i&&r&&n?(o=Math.max(o,M.width),a+=M.height+Math.abs(d)):(o+=M.width+Math.abs(d),a=Math.max(a,M.height)),d=x)}e.comments!==null&&(t&&!n||!i&&!r&&n||i&&r&&n?(o+=Math.abs(e.commentMargin),a=Math.max(0,a-e.height)):(a+=Math.abs(e.commentMargin),o=Math.max(0,o-e.width)),i=xt.allocAt(0,0,e.bounds.width+o,e.bounds.height+a),e.bounds=i,xt.free(i))};function mh(e){return e===Bc||e===tc||e===jc||e===dc}function Kp(e){return e===Bc||e===tc}function Uy(e){var t=e.parent;if(t!==null){var n=t.alignment;if(mh(n)){if(Kp(n)){for(t=t.children,n=0;n<t.length&&e!==t[n];)n++;return n%2===0}if(n===jc)return!0}}return!1}wr.prototype.layoutComments=function(e){if(e.comments!==null){var t=e.node.measuredBounds,n=e.parent,r=e.angle,i=0,o=!1;n!==null&&(i=n.angle,o=n.alignment,o=mh(o)),r=r===90||r===270,n=i===90||i===270;for(var a=e.childrenCount===0,d=Uy(e),x=0,O=e.comments,M=O.length,Y=Ie.alloc(),ie=0;ie<M;ie++){var ce=O[ie],ge=ce.measuredBounds;if(r&&!a||!o&&!n&&a||o&&n&&a){if(135<i&&!o||n&&d)if(0<=e.commentMargin)for(Y.h(e.bounds.x-e.commentMargin-ge.width,e.bounds.y+x),ce.move(Y),ce=ce.Sd();ce.next();){var Te=ce.value;Te.fromSpot=As,Te.toSpot=$o}else for(Y.h(e.bounds.x+2*e.focus.x-e.commentMargin,e.bounds.y+x),ce.move(Y),ce=ce.Sd();ce.next();)Te=ce.value,Te.fromSpot=$o,Te.toSpot=As;else if(0<=e.commentMargin)for(Y.h(e.bounds.x+2*e.focus.x+e.commentMargin,e.bounds.y+x),ce.move(Y),ce=ce.Sd();ce.next();)Te=ce.value,Te.fromSpot=$o,Te.toSpot=As;else for(Y.h(e.bounds.x+e.commentMargin-ge.width,e.bounds.y+x),ce.move(Y),ce=ce.Sd();ce.next();)Te=ce.value,Te.fromSpot=As,Te.toSpot=$o;x=0<=e.commentSpacing?x+(ge.height+e.commentSpacing):x+(e.commentSpacing-ge.height)}else{if(135<i&&!o||!n&&d)if(0<=e.commentMargin)for(Y.h(e.bounds.x+x,e.bounds.y-e.commentMargin-ge.height),ce.move(Y),ce=ce.Sd();ce.next();)Te=ce.value,Te.fromSpot=Ss,Te.toSpot=qo;else for(Y.h(e.bounds.x+x,e.bounds.y+2*e.focus.y-e.commentMargin),ce.move(Y),ce=ce.Sd();ce.next();)Te=ce.value,Te.fromSpot=qo,Te.toSpot=Ss;else if(0<=e.commentMargin)for(Y.h(e.bounds.x+x,e.bounds.y+2*e.focus.y+e.commentMargin),ce.move(Y),ce=ce.Sd();ce.next();)Te=ce.value,Te.fromSpot=qo,Te.toSpot=Ss;else for(Y.h(e.bounds.x+x,e.bounds.y+e.commentMargin-ge.height),ce.move(Y),ce=ce.Sd();ce.next();)Te=ce.value,Te.fromSpot=Ss,Te.toSpot=qo;x=0<=e.commentSpacing?x+(ge.width+e.commentSpacing):x+(e.commentSpacing-ge.width)}}if(Ie.free(Y),t=x-e.commentSpacing-(r?t.height:t.width),this.ud===Qu)for(e=e.destinationEdges;e.next();)i=e.value.link,i===null||i.isAvoiding||(i.fromEndSegmentLength=0<t?t:NaN);else for(e=e.sourceEdges;e.next();)i=e.value.link,i===null||i.isAvoiding||(i.toEndSegmentLength=0<t?t:NaN)}},wr.prototype.layoutTree=function(e){if(e!==null){for(var t=e.children,n=t.length,r=0;r<n;r++)this.layoutTree(t[r]);switch(e.compaction){case $m:E1(this,e);break;case Zp:if(e.alignment===tc)E1(this,e);else if(e.childrenCount===0)r=e.parent,n=!1,t=0,r!==null&&(t=r.angle,n=r.alignment,n=mh(n)),r=Uy(e),e.S.h(0,0),e.Da.h(e.width,e.height),e.parent===null||e.comments===null||(t!==180&&t!==270||n)&&!r?e.la.h(0,0):t===180&&!n||(t===90||t===270)&&r?e.la.h(e.width-2*e.focus.x,0):e.la.h(0,e.height-2*e.focus.y),e.Yo=null,e.kp=null;else{var i=hu(e);t=i===90||i===270;var o=0,a=e.children,d=a.length;for(n=0;n<d;n++)r=a[n],o=Math.max(o,t?r.Da.width:r.Da.height);var x=e.alignment;r=x===qu;var O=x===ec,M=mh(x),Y=Math.max(0,e.breadthLimit);n=this.computeLayerSpacing(e);var ie=e.nodeSpacing,ce=this.computeNodeIndent(e),ge=e.rowSpacing,Te=0;(r||O||e.hm||e.im&&e.maxGenerationCount===1)&&(Te=Math.max(0,e.rowIndent)),r=e.width;var Ve=e.height,He=0,Xe=0,Ze=0,qe=null,st=null,yt=0,un=0,kn=0,En=0,tn=0,Bt=0,ir=0,Jn=0;if(M&&!Kp(x)&&135<i&&a.reverse(),Kp(x))if(1<d)for(var ni=0;ni<d;ni++)ni%2===0&&ni!==d-1&&(Jn=Math.max(Jn,t?a[ni].Da.width:a[ni].Da.height));else d===1&&(Jn=t?a[0].Da.width:a[0].Da.height);if(M){switch(x){case Bc:Xe=135>i?C1(this,e,a,Jn,He,Xe):T1(this,e,a,Jn,He,Xe),Jn=Xe.x,He=Xe.width,Xe=Xe.height;break;case jc:for(qe=0;qe<d;qe++)st=a[qe],Y=st.Da,Ze=Bt===0?0:ge,t?(st.S.h(o-Y.width,En+Ze),He=Math.max(He,Y.width),Xe=Math.max(Xe,En+Ze+Y.height),En+=Ze+Y.height):(st.S.h(kn+Ze,o-Y.height),He=Math.max(He,kn+Ze+Y.width),Xe=Math.max(Xe,Y.height),kn+=Ze+Y.width),Bt++;break;case dc:for(qe=0;qe<d;qe++)st=a[qe],o=st.Da,Y=Bt===0?0:ge,t?(st.S.h(ie/2+e.focus.x,En+Y),He=Math.max(He,o.width),Xe=Math.max(Xe,En+Y+o.height),En+=Y+o.height):(st.S.h(kn+Y,ie/2+e.focus.y),He=Math.max(He,kn+Y+o.width),Xe=Math.max(Xe,o.height),kn+=Y+o.width),Bt++}qe=Ba(this,2),st=Ba(this,2),t?(qe[0].h(0,0),qe[1].h(0,Xe),st[0].h(He,0)):(qe[0].h(0,0),qe[1].h(He,0),st[0].h(0,Xe)),st[1].h(He,Xe)}else for(ni=0;ni<d;ni++){var Hi=a[ni],ls=Hi.Da;if(t){0<Y&&0<Bt&&kn+ie+ls.width>Y&&(kn<o&&Xh(e,x,o-kn,0,ir,ni-1),tn++,Bt=0,ir=ni,Ze=Xe,kn=0,En=135<i?-Xe-ge:Xe+ge),Vm(this,Hi,0,En);var fs=0;if(Bt===0)qe=Hi.Yo,st=Hi.kp,yt=ls.width,un=ls.height,(qe===null||st===null||i!==hu(Hi))&&(qe=Ba(this,2),st=Ba(this,2),qe[0].h(0,0),qe[1].h(0,un),st[0].h(yt,0),st[1].h(yt,un));else{var ea=Bn();un=_1(this,e,Hi,qe,st,yt,un,ea),fs=un.x,qe=ea[0],st=ea[1],yt=un.width,un=un.height,wn(ea),kn<ls.width&&0>fs&&(Cf(e,-fs,0,ir,ni-1),Km(qe,-fs,0),Km(st,-fs,0),fs=0)}Hi.S.h(fs,En),He=Math.max(He,yt),Xe=Math.max(Xe,Ze+(tn===0?0:ge)+ls.height),kn=yt}else 0<Y&&0<Bt&&En+ie+ls.height>Y&&(En<o&&Xh(e,x,0,o-En,ir,ni-1),tn++,Bt=0,ir=ni,Ze=He,En=0,kn=135<i?-He-ge:He+ge),Vm(this,Hi,kn,0),fs=0,Bt===0?(qe=Hi.Yo,st=Hi.kp,yt=ls.width,un=ls.height,(qe===null||st===null||i!==hu(Hi))&&(qe=Ba(this,2),st=Ba(this,2),qe[0].h(0,0),qe[1].h(yt,0),st[0].h(0,un),st[1].h(yt,un))):(ea=Bn(),un=_1(this,e,Hi,qe,st,yt,un,ea),fs=un.x,qe=ea[0],st=ea[1],yt=un.width,un=un.height,wn(ea),En<ls.height&&0>fs&&(Cf(e,0,-fs,ir,ni-1),Km(qe,0,-fs),Km(st,0,-fs),fs=0)),Hi.S.h(kn,fs),Xe=Math.max(Xe,un),He=Math.max(He,Ze+(tn===0?0:ge)+ls.width),En=un;Bt++}switch(0<tn&&(t?(Xe+=Math.max(0,n),kn<He&&Xh(e,x,He-kn,0,ir,d-1),0<Te&&(O||Cf(e,Te,0,0,d-1),He+=Te)):(He+=Math.max(0,n),En<Xe&&Xh(e,x,0,Xe-En,ir,d-1),0<Te&&(O||Cf(e,0,Te,0,d-1),Xe+=Te))),Te=O=0,x){case Cd:t?O+=He/2-e.focus.x-ce/2:Te+=Xe/2-e.focus.y-ce/2;break;case _f:0<tn?t?O+=He/2-e.focus.x-ce/2:Te+=Xe/2-e.focus.y-ce/2:t?(Jn=a[0].S.x+a[0].la.x,O+=Jn+(a[d-1].S.x+a[d-1].la.x+2*a[d-1].focus.x-Jn)/2-e.focus.x-ce/2):(Jn=a[0].S.y+a[0].la.y,Te+=Jn+(a[d-1].S.y+a[d-1].la.y+2*a[d-1].focus.y-Jn)/2-e.focus.y-ce/2);break;case qu:t?(O-=ce,He+=ce):(Te-=ce,Xe+=ce);break;case ec:t?(O+=He-e.width+ce,He+=ce):(Te+=Xe-e.height+ce,Xe+=ce);break;case Bc:t?1<d?O+=Jn+ie/2-e.focus.x:O+=a[0].focus.x-e.focus.x+a[0].la.x:1<d?Te+=Jn+ie/2-e.focus.y:Te+=a[0].focus.y-e.focus.y+a[0].la.y;break;case jc:t?O+=He+ie/2-e.focus.x:Te+=Xe+ie/2-e.focus.y;break;case dc:break;default:Xe=this.customAlignment(e,O,Te,He,Xe),O=Xe[0],Te=Xe[1],He=Xe[2],Xe=Xe[3]}for(ce=0;ce<d;ce++)Jn=a[ce],t?Jn.S.h(Jn.S.x+Jn.la.x-O,Jn.S.y+(135<i?(M?-Xe:-Jn.Da.height)+Jn.la.y-n:Ve+n+Jn.la.y)):Jn.S.h(Jn.S.x+(135<i?(M?-He:-Jn.Da.width)+Jn.la.x-n:r+n+Jn.la.x),Jn.S.y+Jn.la.y-Te);if(d=a=0,M?t?(He=Hy(e,He,O),0>O&&(O=0),135<i&&(Te+=Xe+n),Xe+=Ve+n,x===dc&&(a+=ie/2+e.focus.x),d+=Ve+n):(135<i&&(O+=He+n),He+=r+n,Xe=zy(e,Xe,Te),0>Te&&(Te=0),x===dc&&(d+=ie/2+e.focus.y),a+=r+n):t?(e.comments===null?r>He&&(He=Gy(x,r-He,0),a=He.x,d=He.y,He=r,O=0):He=Hy(e,He,O),0>O&&(a-=O,O=0),135<i&&(Te+=Xe+n),Xe=Math.max(Math.max(Xe,Ve),Xe+Ve+n),d+=Ve+n):(135<i&&(O+=He+n),He=Math.max(Math.max(He,r),He+r+n),e.comments===null?Ve>Xe&&(Xe=Gy(x,0,Ve-Xe),a=Xe.x,d=Xe.y,Xe=Ve,Te=0):Xe=zy(e,Xe,Te),0>Te&&(d-=Te,Te=0),a+=r+n),0<tn)i=Ba(this,4),tn=Ba(this,4),t?(i[2].h(0,Ve+n),i[3].h(i[2].x,Xe),tn[2].h(He,i[2].y),tn[3].h(tn[2].x,i[3].y)):(i[2].h(r+n,0),i[3].h(He,i[2].y),tn[2].h(i[2].x,Xe),tn[3].h(i[3].x,tn[2].y));else{for(i=Ba(this,qe.length+2),tn=Ba(this,st.length+2),x=0;x<qe.length;x++)M=qe[x],i[x+2].h(M.x+a,M.y+d);for(x=0;x<st.length;x++)M=st[x],tn[x+2].h(M.x+a,M.y+d)}t?(i[0].h(O,0),i[1].h(i[0].x,Ve),i[2].y<i[1].y&&(i[2].x>i[0].x?i[2].assign(i[1]):i[1].assign(i[2])),i[3].y<i[2].y&&(i[3].x>i[0].x?i[3].assign(i[2]):i[2].assign(i[3])),tn[0].h(O+r,0),tn[1].h(tn[0].x,Ve),tn[2].y<tn[1].y&&(tn[2].x<tn[0].x?tn[2].assign(tn[1]):tn[1].assign(tn[2])),tn[3].y<tn[2].y&&(tn[3].x<tn[0].x?tn[3].assign(tn[2]):tn[2].assign(tn[3])),i[2].y-=n/2,tn[2].y-=n/2):(i[0].h(0,Te),i[1].h(r,i[0].y),i[2].x<i[1].x&&(i[2].y>i[0].y?i[2].assign(i[1]):i[1].assign(i[2])),i[3].x<i[2].x&&(i[3].y>i[0].y?i[3].assign(i[2]):i[2].assign(i[3])),tn[0].h(0,Te+Ve),tn[1].h(r,tn[0].y),tn[2].x<tn[1].x&&(tn[2].y<tn[0].y?tn[2].assign(tn[1]):tn[1].assign(tn[2])),tn[3].x<tn[2].x&&(tn[3].y<tn[0].y?tn[3].assign(tn[2]):tn[2].assign(tn[3])),i[2].x-=n/2,tn[2].x-=n/2),Eu(this,qe),Eu(this,st),e.Yo=i,e.kp=tn,e.la.h(O,Te),e.Da.h(He,Xe)}break;default:ft("Unhandled compaction value "+e.compaction.toString())}}};function E1(e,t){if(t.childrenCount===0){var n=!1,r=0;t.parent!==null&&(r=t.parent.angle,n=t.parent.alignment,n=mh(n));var i=Uy(t);t.S.h(0,0),t.Da.h(t.width,t.height),t.parent===null||t.comments===null||(r!==180&&r!==270||n)&&!i?t.la.h(0,0):r===180&&!n||(r===90||r===270)&&i?t.la.h(t.width-2*t.focus.x,0):t.la.h(0,t.height-2*t.focus.y)}else{r=hu(t),n=r===90||r===270;var o=0;i=t.children;for(var a=i.length,d=0;d<a;d++){var x=i[d];o=Math.max(o,n?x.Da.width:x.Da.height)}var O=t.alignment,M=O===qu,Y=O===ec;d=mh(O);var ie=Math.max(0,t.breadthLimit);x=e.computeLayerSpacing(t);var ce=t.nodeSpacing,ge=e.computeNodeIndent(t),Te=M||Y?0:ge/2,Ve=t.rowSpacing,He=0;(M||Y||t.hm||t.im&&t.maxGenerationCount===1)&&(He=Math.max(0,t.rowIndent)),M=t.width;var Xe=t.height,Ze=0,qe=0,st=0,yt=0,un=0,kn=0,En=0,tn=0,Bt=0,ir=0;if(d&&!Kp(O)&&135<r&&i.reverse(),Kp(O))if(1<a)for(var Jn=0;Jn<a;Jn++){var ni=i[Jn],Hi=ni.Da;Jn%2===0&&Jn!==a-1?Bt=Math.max(Bt,(n?Hi.width:Hi.height)+e.computeBusNodeSpacing(ni)-ce):Jn%2!==0&&(ir=Math.max(ir,(n?Hi.width:Hi.height)+e.computeBusNodeSpacing(ni)-ce))}else a===1&&(Bt=n?i[0].Da.width:i[0].Da.height);if(d)switch(O){case Bc:case tc:qe=135>r?C1(e,t,i,Bt,Ze,qe):T1(e,t,i,Bt,Ze,qe),Bt=qe.x,Ze=qe.width,qe=qe.height;break;case jc:for(ie=0;ie<a;ie++)Te=i[ie],st=Te.Da,ir=En===0?0:Ve,n?(Te.S.h(o-st.width,un+ir),Ze=Math.max(Ze,st.width),qe=Math.max(qe,un+ir+st.height),un+=ir+st.height):(Te.S.h(yt+ir,o-st.height),Ze=Math.max(Ze,yt+ir+st.width),qe=Math.max(qe,st.height),yt+=ir+st.width),En++;break;case dc:for(o=0;o<a;o++)ie=i[o],Te=ie.Da,st=En===0?0:Ve,n?(ie.S.h(ce/2+t.focus.x,un+st),Ze=Math.max(Ze,Te.width),qe=Math.max(qe,un+st+Te.height),un+=st+Te.height):(ie.S.h(yt+st,ce/2+t.focus.y),Ze=Math.max(Ze,yt+st+Te.width),qe=Math.max(qe,Te.height),yt+=st+Te.width),En++}else for(ir=0;ir<a;ir++)Jn=i[ir],ni=Jn.Da,n?(0<ie&&0<En&&yt+ce+ni.width>ie&&(yt<o&&Xh(t,O,o-yt,0,tn,ir-1),kn++,En=0,tn=ir,st=qe,yt=0,un=135<r?-qe-Ve:qe+Ve),Hi=En===0?Te:ce,Vm(e,Jn,0,un),Jn.S.h(yt+Hi,un),Ze=Math.max(Ze,yt+Hi+ni.width),qe=Math.max(qe,st+(kn===0?0:Ve)+ni.height),yt+=Hi+ni.width):(0<ie&&0<En&&un+ce+ni.height>ie&&(un<o&&Xh(t,O,0,o-un,tn,ir-1),kn++,En=0,tn=ir,st=Ze,un=0,yt=135<r?-Ze-Ve:Ze+Ve),Hi=En===0?Te:ce,Vm(e,Jn,yt,0),Jn.S.h(yt,un+Hi),qe=Math.max(qe,un+Hi+ni.height),Ze=Math.max(Ze,st+(kn===0?0:Ve)+ni.width),un+=Hi+ni.height),En++;switch(0<kn&&(n?(qe+=Math.max(0,x),yt<Ze&&Xh(t,O,Ze-yt,0,tn,a-1),0<He&&(Y||Cf(t,He,0,0,a-1),Ze+=He)):(Ze+=Math.max(0,x),un<qe&&Xh(t,O,0,qe-un,tn,a-1),0<He&&(Y||Cf(t,0,He,0,a-1),qe+=He))),He=Y=0,O){case Cd:n?Y+=Ze/2-t.focus.x-ge/2:He+=qe/2-t.focus.y-ge/2;break;case _f:0<kn?n?Y+=Ze/2-t.focus.x-ge/2:He+=qe/2-t.focus.y-ge/2:n?(e=i[0].S.x+i[0].la.x,Y+=e+(i[a-1].S.x+i[a-1].la.x+2*i[a-1].focus.x-e)/2-t.focus.x-ge/2):(e=i[0].S.y+i[0].la.y,He+=e+(i[a-1].S.y+i[a-1].la.y+2*i[a-1].focus.y-e)/2-t.focus.y-ge/2);break;case qu:n?(Y-=ge,Ze+=ge):(He-=ge,qe+=ge);break;case ec:n?(Y+=Ze-t.width+ge,Ze+=ge):(He+=qe-t.height+ge,qe+=ge);break;case Bc:case tc:n?1<a?Y+=Bt+ce/2-t.focus.x:Y+=i[0].focus.x-t.focus.x+i[0].la.x:1<a?He+=Bt+ce/2-t.focus.y:He+=i[0].focus.y-t.focus.y+i[0].la.y;break;case jc:n?Y+=Ze+ce/2-t.focus.x:He+=qe+ce/2-t.focus.y;break;case dc:break;default:e=e.customAlignment(t,Y,He,Ze,qe),Y=e[0],He=e[1],Ze=e[2],qe=e[3]}for(e=0;e<a;e++)ge=i[e],n?ge.S.h(ge.S.x+ge.la.x-Y,ge.S.y+(135<r?(d?-qe:-ge.Da.height)+ge.la.y-x:Xe+x+ge.la.y)):ge.S.h(ge.S.x+(135<r?(d?-Ze:-ge.Da.width)+ge.la.x-x:M+x+ge.la.x),ge.S.y+ge.la.y-He);n?(Ze=Hy(t,Ze,Y),0>Y&&(Y=0),135<r&&(He+=qe+x),qe=Math.max(Math.max(qe,Xe),qe+Xe+x)):(135<r&&(Y+=Ze+x),Ze=Math.max(Math.max(Ze,M),Ze+M+x),qe=zy(t,qe,He),0>He&&(He=0)),t.la.h(Y,He),t.Da.h(Ze,qe)}}wr.prototype.customAlignment=function(e,t,n,r,i){return[t,n,r,i]};function C1(e,t,n,r,i,o){var a=n.length;if(a===0)return new xt(r,0,i,o);if(a===1)return t=n[0],i=t.Da.width,o=t.Da.height,new xt(r,0,i,o);for(var d=t.nodeSpacing,x=t.rowSpacing,O=hu(t)===90,M=0,Y=0,ie=0,ce=0;ce<a;ce++)if(!(ce%2!==0||1<a&&ce===a-1)){var ge=n[ce],Te=ge.Da,Ve=M===0?0:x;if(O){var He=e.computeBusNodeSpacing(ge)-d;ge.S.h(r-(Te.width+He),ie+Ve),i=Math.max(i,Te.width+He),o=Math.max(o,ie+Ve+Te.height),ie+=Ve+Te.height}else He=e.computeBusNodeSpacing(ge)-d,ge.S.h(Y+Ve,r-(Te.height+He)),o=Math.max(o,Te.height+He),i=Math.max(i,Y+Ve+Te.width),Y+=Ve+Te.width;M++}for(M=0,ge=Y,ce=ie,O?(Y=r+d,ie=0):(Y=0,ie=r+d),Te=0;Te<a;Te++)if(Te%2!==0){Ve=n[Te],He=Ve.Da;var Xe=M===0?0:x;if(O){var Ze=e.computeBusNodeSpacing(Ve)-d;Ve.S.h(Y+Ze,ie+Xe),i=Math.max(i,Y+He.width+Ze),o=Math.max(o,ie+Xe+He.height),ie+=Xe+He.height}else Ze=e.computeBusNodeSpacing(Ve)-d,Ve.S.h(Y+Xe,ie+Ze),i=Math.max(i,Y+Xe+He.width),o=Math.max(o,ie+He.height+Ze),Y+=Xe+He.width;M++}return 1<a&&a%2===1&&(n=n[a-1],a=n.Da,e=e.computeBusLastRowSpacing(n,O?Math.max(Math.abs(ce),Math.abs(ie)):Math.max(Math.abs(ge),Math.abs(Y))),O?(n.S.h(r+d/2-n.focus.x-n.la.x,o+e),O=r+d/2-n.focus.x-n.la.x,i=Math.max(i,O+a.width),0>O&&(i-=O),o=Math.max(o,Math.max(ce,ie)+e+a.height),0>n.S.x&&(r=Wm(t,n.S.x,!1,r,d))):(n.S.h(i+e,r+d/2-n.focus.y-n.la.y),i=Math.max(i,Math.max(ge,Y)+e+a.width),ie=r+d/2-n.focus.y-n.la.y,o=Math.max(o,ie+a.height),0>ie&&(o-=ie),0>n.S.y&&(r=Wm(t,n.S.y,!0,r,d)))),new xt(r,0,i,o)}function T1(e,t,n,r,i,o){var a=n.length;if(a===0)return new xt(r,0,i,o);if(a===1)return n=n[0],i=n.Da.width,o=n.Da.height,new xt(r,0,i,o);for(var d=t.nodeSpacing,x=t.rowSpacing,O=hu(t)===270,M=0,Y=0,ie=0,ce=0;ce<a;ce++)if(!(ce%2!==0||1<a&&ce===a-1)){var ge=n[ce],Te=ge.Da,Ve=M===0?0:x;if(O){var He=e.computeBusNodeSpacing(ge)-d;ie-=Ve+Te.height,ge.S.h(r-(Te.width+He),ie),i=Math.max(i,Te.width+He),o=Math.max(o,Math.abs(ie))}else He=e.computeBusNodeSpacing(ge)-d,Y-=Ve+Te.width,ge.S.h(Y,r-(Te.height+He)),o=Math.max(o,Te.height+He),i=Math.max(i,Math.abs(Y));M++}for(M=0,ge=Y,ce=ie,O?(Y=r+d,ie=0):(Y=0,ie=r+d),Te=0;Te<a;Te++)if(Te%2!==0){Ve=n[Te],He=Ve.Da;var Xe=M===0?0:x;if(O){var Ze=e.computeBusNodeSpacing(Ve)-d;ie-=Xe+He.height,Ve.S.h(Y+Ze,ie),i=Math.max(i,Y+He.width+Ze),o=Math.max(o,Math.abs(ie))}else Ze=e.computeBusNodeSpacing(Ve)-d,Y-=Xe+He.width,Ve.S.h(Y,ie+Ze),o=Math.max(o,ie+He.height+Ze),i=Math.max(i,Math.abs(Y));M++}for(1<a&&a%2===1&&(x=n[a-1],M=x.Da,e=e.computeBusLastRowSpacing(x,O?Math.max(Math.abs(ce),Math.abs(ie)):Math.max(Math.abs(ge),Math.abs(Y))),O?(x.S.h(r+d/2-x.focus.x-x.la.x,-o-M.height-e),Y=r+d/2-x.focus.x-x.la.x,i=Math.max(i,Y+M.width),0>Y&&(i-=Y),o=Math.max(o,Math.abs(Math.min(ce,ie))+e+M.height),0>x.S.x&&(r=Wm(t,x.S.x,!1,r,d))):(x.S.h(-i-M.width-e,r+d/2-x.focus.y-x.la.y),i=Math.max(i,Math.abs(Math.min(ge,Y))+e+M.width),ie=r+d/2-x.focus.y-x.la.y,o=Math.max(o,ie+M.height),0>ie&&(o-=ie),0>x.S.y&&(r=Wm(t,x.S.y,!0,r,d)))),t=0;t<a;t++)d=n[t],O?d.S.h(d.S.x,d.S.y+o):d.S.h(d.S.x+i,d.S.y);return new xt(r,0,i,o)}wr.prototype.computeBusNodeSpacing=function(e){return e.parent===null?0:e.parent.nodeSpacing},wr.prototype.computeBusLastRowSpacing=function(e){return e.parent===null?0:e.parent.rowSpacing};function Wm(e,t,n,r,i){e=e.children;for(var o=e.length,a=0;a<o;a++)n?e[a].S.h(e[a].S.x,e[a].S.y-t):e[a].S.h(e[a].S.x-t,e[a].S.y);return t=e[o-1],Math.max(r,n?t.la.y+t.focus.y-i/2:t.la.x+t.focus.x-i/2)}function Hy(e,t,n){switch(e.alignment){case _f:case Cd:return n+e.width>t&&(t=n+e.width),0>n&&(t-=n),t;case qu:return e.width>t?e.width:t;case ec:return 2*e.focus.x>t?e.width:t+e.width-2*e.focus.x;case Bc:case tc:return Math.max(e.width,Math.max(t,n+e.width)-Math.min(0,n));case jc:return e.width-e.focus.x+e.nodeSpacing/2+t;case dc:return Math.max(e.width,e.focus.x+e.nodeSpacing/2+t);default:return t}}function zy(e,t,n){switch(e.alignment){case _f:case Cd:return n+e.height>t&&(t=n+e.height),0>n&&(t-=n),t;case qu:return e.height>t?e.height:t;case ec:return 2*e.focus.y>t?e.height:t+e.height-2*e.focus.y;case Bc:case tc:return Math.max(e.height,Math.max(t,n+e.height)-Math.min(0,n));case jc:return e.height-e.focus.y+e.nodeSpacing/2+t;case dc:return Math.max(e.height,e.focus.y+e.nodeSpacing/2+t);default:return t}}function Gy(e,t,n){switch(e){case Cd:t/=2,n/=2;break;case _f:t/=2,n/=2;break;case qu:n=t=0;break;case ec:break;default:ft("Unhandled alignment value "+e.toString())}return new Ie(t,n)}function Xh(e,t,n,r,i,o){t=Gy(t,n,r),Cf(e,t.x,t.y,i,o)}function Cf(e,t,n,r,i){if(t!==0||n!==0)for(e=e.children;r<=i;r++){var o=e[r].S;o.x+=t,o.y+=n}}function Vm(e,t,n,r){var i=t.parent;switch(e.ud){case Qu:for(e=t.sourceEdges;e.next();)t=e.value,t.fromVertex===i&&t.relativePoint.h(n,r);break;case Tf:for(e=t.destinationEdges;e.next();)t=e.value,t.toVertex===i&&t.relativePoint.h(n,r);break;default:ft("Unhandled path value "+e.ud.toString())}}function Km(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];i.x+=t,i.y+=n}}function _1(e,t,n,r,i,o,a,d){var x=hu(t),O=x===90||x===270,M=t.nodeSpacing;t=r;var Y=i;r=o;var ie=a,ce=n.Yo,ge=n.kp;a=n.Da;var Te=O?Math.max(ie,a.height):Math.max(r,a.width);if((ce===null||x!==hu(n))&&(ce=Ba(e,2),ge=Ba(e,2),O?(ce[0].h(0,0),ce[1].h(0,a.height),ge[0].h(a.width,0),ge[1].h(ge[0].x,ce[1].y)):(ce[0].h(0,0),ce[1].h(a.width,0),ge[0].h(0,a.height),ge[1].h(ce[1].x,ge[0].y))),O){if(ie=9999999,!(Y===null||2>Y.length||ce===null||2>ce.length))for(i=n=0;n<Y.length&&i<ce.length;){o=Y[n];var Ve=ce[i];x=Ve.x,O=Ve.y,x+=r;var He=o;n+1<Y.length&&(He=Y[n+1]);var Xe=Ve;Ve=Xe.x,Xe=Xe.y,i+1<ce.length&&(Xe=ce[i+1],Ve=Xe.x,Xe=Xe.y,Ve+=r);var Ze=ie;o.y===O?Ze=x-o.x:o.y>O&&o.y<Xe?Ze=x+(o.y-O)/(Xe-O)*(Ve-x)-o.x:O>o.y&&O<He.y&&(Ze=x-(o.x+(O-o.y)/(He.y-o.y)*(He.x-o.x))),Ze<ie&&(ie=Ze),He.y<=o.y?n++:Xe<=O?i++:(He.y<=Xe&&n++,Xe<=He.y&&i++)}if(ie=r-ie,ie+=M,n=ce,i=ie,t===null||2>t.length||n===null||2>n.length)r=null;else{for(M=Ba(e,t.length+n.length),r=o=x=0;o<n.length&&n[o].y<t[0].y;)O=n[o++],M[r++].h(O.x+i,O.y);for(;x<t.length;)O=t[x++],M[r++].h(O.x,O.y);for(x=t[t.length-1].y;o<n.length&&n[o].y<=x;)o++;for(;o<n.length&&n[o].y>x;)O=n[o++],M[r++].h(O.x+i,O.y);for(n=Ba(e,r),x=0;x<r;x++)n[x].assign(M[x]);Eu(e,M),r=n}if(o=ge,x=ie,Y===null||2>Y.length||o===null||2>o.length)i=null;else{for(M=Ba(e,Y.length+o.length),i=O=n=0;n<Y.length&&Y[n].y<o[0].y;)He=Y[n++],M[i++].h(He.x,He.y);for(;O<o.length;)He=o[O++],M[i++].h(He.x+x,He.y);for(o=o[o.length-1].y;n<Y.length&&Y[n].y<=o;)n++;for(;n<Y.length&&Y[n].y>o;)x=Y[n++],M[i++].h(x.x,x.y);for(o=Ba(e,i),n=0;n<i;n++)o[n].assign(M[n]);Eu(e,M),i=o}return o=Math.max(0,ie)+a.width,a=Te,Eu(e,t),Eu(e,ce),Eu(e,Y),Eu(e,ge),d[0]=r,d[1]=i,new xt(ie,0,o,a)}if(r=9999999,!(Y===null||2>Y.length||ce===null||2>ce.length))for(i=n=0;n<Y.length&&i<ce.length;)o=Y[n],Ve=ce[i],x=Ve.x,O=Ve.y,O+=ie,He=o,n+1<Y.length&&(He=Y[n+1]),Xe=Ve,Ve=Xe.x,Xe=Xe.y,i+1<ce.length&&(Xe=ce[i+1],Ve=Xe.x,Xe=Xe.y,Xe+=ie),Ze=r,o.x===x?Ze=O-o.y:o.x>x&&o.x<Ve?Ze=O+(o.x-x)/(Ve-x)*(Xe-O)-o.y:x>o.x&&x<He.x&&(Ze=O-(o.y+(x-o.x)/(He.x-o.x)*(He.y-o.y))),Ze<r&&(r=Ze),He.x<=o.x?n++:Ve<=x?i++:(He.x<=Ve&&n++,Ve<=He.x&&i++);if(ie-=r,ie+=M,n=ce,i=ie,t===null||2>t.length||n===null||2>n.length)r=null;else{for(M=Ba(e,t.length+n.length),r=o=x=0;o<n.length&&n[o].x<t[0].x;)O=n[o++],M[r++].h(O.x,O.y+i);for(;x<t.length;)O=t[x++],M[r++].h(O.x,O.y);for(x=t[t.length-1].x;o<n.length&&n[o].x<=x;)o++;for(;o<n.length&&n[o].x>x;)O=n[o++],M[r++].h(O.x,O.y+i);for(n=Ba(e,r),x=0;x<r;x++)n[x].assign(M[x]);Eu(e,M),r=n}if(o=ge,x=ie,Y===null||2>Y.length||o===null||2>o.length)i=null;else{for(M=Ba(e,Y.length+o.length),i=O=n=0;n<Y.length&&Y[n].x<o[0].x;)He=Y[n++],M[i++].h(He.x,He.y);for(;O<o.length;)He=o[O++],M[i++].h(He.x,He.y+x);for(o=o[o.length-1].x;n<Y.length&&Y[n].x<=o;)n++;for(;n<Y.length&&Y[n].x>o;)x=Y[n++],M[i++].h(x.x,x.y);for(o=Ba(e,i),n=0;n<i;n++)o[n].assign(M[n]);Eu(e,M),i=o}return o=Te,a=Math.max(0,ie)+a.height,Eu(e,t),Eu(e,ce),Eu(e,Y),Eu(e,ge),d[0]=r,d[1]=i,new xt(ie,0,o,a)}function Ba(e,t){if(e=e.ru[t],e!==void 0&&(e=e.pop(),e!==void 0))return e;e=[];for(var n=0;n<t;n++)e[n]=new Ie;return e}function Eu(e,t){var n=t.length,r=e.ru[n];r===void 0&&(r=[],e.ru[n]=r),r.push(t)}wr.prototype.arrangeTrees=function(){if(this.Rb===Jm)for(var e=this.Ub.iterator;e.next();){var t=e.value;if(t instanceof Gl){var n=t.node;if(n!==null){var r=n.position;n=r.x,r=r.y,isFinite(n)||(n=0),isFinite(r)||(r=0),Wy(this,t,n,r)}}}else{for(e=[],t=this.Ub.iterator;t.next();)n=t.value,n instanceof Gl&&e.push(n);switch(this.sorting){case Ed:break;case Yp:e.reverse();break;case $p:e.sort(this.comparer);break;case Xp:e.sort(this.comparer),e.reverse();break;default:ft("Unhandled sorting value "+this.sorting.toString())}for(n=this.arrangementOrigin,t=n.x,n=n.y,r=0;r<e.length;r++){var i=e[r];switch(Wy(this,i,t+i.la.x,n+i.la.y),this.Rb){case Zm:n+=i.Da.height+this.$d.height;break;case $y:t+=i.Da.width+this.$d.width;break;default:ft("Unhandled arrangement value "+this.Rb.toString())}}}};function Wy(e,t,n,r){if(t!==null){t.x=n,t.y=r,t=t.children;for(var i=t.length,o=0;o<i;o++){var a=t[o];Wy(e,a,n+a.S.x,r+a.S.y)}}}wr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},wr.prototype.commitNodes=function(){for(var e=this.network.vertexes.iterator;e.next();)e.value.commit();for(e.reset();e.next();)this.layoutComments(e.value)},wr.prototype.Gu=function(){if(this.layerStyle===Qm){for(var e=this.$v,t=[],n=null,r=this.network.vertexes.iterator;r.next();){var i=r.value;n===null?n=i.bounds.copy():n.ed(i.bounds);var o=t[i.level];o===void 0?o=this.computeLayerSpacing(i):o=Math.max(o,this.computeLayerSpacing(i)),t[i.level]=o}for(r=0;r<t.length;r++)t[r]===void 0&&(t[r]=0);if(this.angle===90||this.angle===270?(n.Bc(this.nodeSpacing/2,this.layerSpacing),r=new Ie(-this.nodeSpacing/2,-this.layerSpacing/2)):(n.Bc(this.layerSpacing,this.nodeSpacing/2),r=new Ie(-this.layerSpacing/2,-this.nodeSpacing/2)),i=[],n=this.angle===90||this.angle===270?n.width:n.height,o=0,this.angle===180||this.angle===270)for(var a=0;a<e.length;a++)o+=e[a]+t[a];for(a=0;a<e.length;a++){var d=e[a]+t[a];this.angle===270?(o-=d,i.push(new xt(0,o,n,d))):this.angle===90?(i.push(new xt(0,o,n,d)),o+=d):this.angle===180?(o-=d,i.push(new xt(o,0,d,n))):(i.push(new xt(o,0,d,n)),o+=d)}this.commitLayers(i,r)}},wr.prototype.commitLayers=function(){},wr.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},wr.prototype.yv=function(){for(var e=this.Ub.iterator;e.next();){var t=e.value;t instanceof Gl&&A1(this,t)}};function A1(e,t){if(t!==null){e.setPortSpots(t),t=t.children;for(var n=t.length,r=0;r<n;r++)A1(e,t[r])}}wr.prototype.setPortSpots=function(e){var t=e.alignment;if(mh(t)){var n=this.ud===Qu,r=hu(e);switch(r){case 0:var i=$o;break;case 90:i=qo;break;case 180:i=As;break;default:i=Ss}var o=e.children,a=o.length;switch(t){case Bc:case tc:for(t=0;t<a;t++){var d=o[t];if(d=(n?d.sourceEdges:d.destinationEdges).first(),d!==null&&(d=d.link,d!==null)){var x=r===90||r===270?As:Ss;if(a===1||t===a-1&&a%2===1)switch(r){case 0:x=As;break;case 90:x=Ss;break;case 180:x=$o;break;default:x=qo}else t%2===0&&(x=r===90||r===270?$o:qo);n?(e.setsPortSpot&&(d.fromSpot=i),e.setsChildPortSpot&&(d.toSpot=x)):(e.setsPortSpot&&(d.fromSpot=x),e.setsChildPortSpot&&(d.toSpot=i))}}break;case jc:for(r=r===90||r===270?$o:qo,o=n?e.destinationEdges:e.sourceEdges;o.next();)a=o.value.link,a!==null&&(n?(e.setsPortSpot&&(a.fromSpot=i),e.setsChildPortSpot&&(a.toSpot=r)):(e.setsPortSpot&&(a.fromSpot=r),e.setsChildPortSpot&&(a.toSpot=i)));break;case dc:for(r=r===90||r===270?As:Ss,o=n?e.destinationEdges:e.sourceEdges;o.next();)a=o.value.link,a!==null&&(n?(e.setsPortSpot&&(a.fromSpot=i),e.setsChildPortSpot&&(a.toSpot=r)):(e.setsPortSpot&&(a.fromSpot=r),e.setsChildPortSpot&&(a.toSpot=i)))}}else if(n=hu(e),this.ud===Qu){for(i=e.destinationEdges;i.next();)if(r=i.value.link,r!==null){if(e.setsPortSpot)if(e.portSpot.Xb())switch(n){case 0:r.fromSpot=$o;break;case 90:r.fromSpot=qo;break;case 180:r.fromSpot=As;break;default:r.fromSpot=Ss}else r.fromSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:r.toSpot=As;break;case 90:r.toSpot=Ss;break;case 180:r.toSpot=$o;break;default:r.toSpot=qo}else r.toSpot=e.childPortSpot}}else for(i=e.sourceEdges;i.next();)if(r=i.value.link,r!==null){if(e.setsPortSpot)if(e.portSpot.Xb())switch(n){case 0:r.toSpot=$o;break;case 90:r.toSpot=qo;break;case 180:r.toSpot=As;break;default:r.toSpot=Ss}else r.toSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:r.fromSpot=As;break;case 90:r.fromSpot=Ss;break;case 180:r.fromSpot=$o;break;default:r.fromSpot=qo}else r.fromSpot=e.childPortSpot}};function hu(e){return e=e.angle,45>=e?0:135>=e?90:225>=e?180:315>=e?270:0}wr.prototype.computeLayerSpacing=function(e){var t=hu(e);t=t===90||t===270;var n=e.layerSpacing;if(0<e.layerSpacingParentOverlap){var r=Math.min(1,e.layerSpacingParentOverlap);n-=t?e.height*r:e.width*r}return n<(t?-e.height:-e.width)&&(n=t?-e.height:-e.width),n},wr.prototype.computeNodeIndent=function(e){var t=hu(e),n=e.nodeIndent;if(0<e.nodeIndentPastParent){var r=Math.min(1,e.nodeIndentPastParent);n+=t===90||t===270?e.width*r:e.height*r}return n=Math.max(0,n)},Mn.Object.defineProperties(wr.prototype,{roots:{get:function(){return this.Ub},set:function(e){this.Ub!==e&&(this.Ub=e,this.C())}},path:{get:function(){return this.Wn},set:function(e){this.Wn!==e&&(this.Wn=e,this.C())}},treeStyle:{get:function(){return this.vo},set:function(e){this.Rb===e||e!==Xm&&e!==Ky&&e!==Vy&&e!==Yy||(this.vo=e,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(e){this.Rb===e||e!==Xy&&e!==Zy&&e!==Qm||(this.Bq=e,this.C())}},comments:{get:function(){return this.td},set:function(e){this.td!==e&&(this.td=e,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==Zm&&e!==$y&&e!==Jm||(this.Rb=e,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(e){this.$d.D(e)||(this.$d.assign(e),this.C())}},rootDefaults:{get:function(){return this.W},set:function(e){this.W!==e&&(this.W=e,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(e){this.Y!==e&&(this.Y=e,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(e){this.W.sorting===e||e!==Ed&&e!==Yp&&e!==$p&&!Xp||(this.W.sorting=e,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(e){this.W.comparer!==e&&(this.W.comparer=e,this.C())}},angle:{get:function(){return this.W.angle},set:function(e){this.W.angle!==e&&(e===0||e===90||e===180||e===270?(this.W.angle=e,this.C()):ft("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(e){this.W.alignment!==e&&(this.W.alignment=e,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(e){this.W.nodeIndent!==e&&0<=e&&(this.W.nodeIndent=e,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(e){this.W.nodeIndentPastParent!==e&&0<=e&&1>=e&&(this.W.nodeIndentPastParent=e,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(e){this.W.nodeSpacing!==e&&(this.W.nodeSpacing=e,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(e){this.W.layerSpacing!==e&&(this.W.layerSpacing=e,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(e){this.W.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.W.layerSpacingParentOverlap=e,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(e){this.W.compaction===e||e!==$m&&e!==Zp||(this.W.compaction=e,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(e){this.W.breadthLimit!==e&&0<=e&&(this.W.breadthLimit=e,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(e){this.W.rowSpacing!==e&&(this.W.rowSpacing=e,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(e){this.W.rowIndent!==e&&0<=e&&(this.W.rowIndent=e,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(e){this.W.commentSpacing!==e&&(this.W.commentSpacing=e,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(e){this.W.commentMargin!==e&&(this.W.commentMargin=e,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(e){this.W.setsPortSpot!==e&&(this.W.setsPortSpot=e,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(e){this.W.portSpot.D(e)||(this.W.portSpot=e,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(e){this.W.setsChildPortSpot!==e&&(this.W.setsChildPortSpot=e,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(e){this.W.childPortSpot.D(e)||(this.W.childPortSpot=e,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(e){this.Y.sorting===e||e!==Ed&&e!==Yp&&e!==$p&&!Xp||(this.Y.sorting=e,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(e){this.Y.comparer!==e&&(this.Y.comparer=e,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(e){this.Y.angle===e||e!==0&&e!==90&&e!==180&&e!==270||(this.Y.angle=e,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(e){this.Y.alignment!==e&&(this.Y.alignment=e,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(e){this.Y.nodeIndent!==e&&0<=e&&(this.Y.nodeIndent=e,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(e){this.Y.nodeIndentPastParent!==e&&0<=e&&1>=e&&(this.Y.nodeIndentPastParent=e,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(e){this.Y.nodeSpacing!==e&&(this.Y.nodeSpacing=e,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(e){this.Y.layerSpacing!==e&&(this.Y.layerSpacing=e,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(e){this.Y.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.Y.layerSpacingParentOverlap=e,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(e){this.Y.compaction===e||e!==$m&&e!==Zp||(this.Y.compaction=e,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(e){this.Y.breadthLimit!==e&&0<=e&&(this.Y.breadthLimit=e,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(e){this.Y.rowSpacing!==e&&(this.Y.rowSpacing=e,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(e){this.Y.rowIndent!==e&&0<=e&&(this.Y.rowIndent=e,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(e){this.Y.commentSpacing!==e&&(this.Y.commentSpacing=e,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(e){this.Y.commentMargin!==e&&(this.Y.commentMargin=e,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(e){this.Y.setsPortSpot!==e&&(this.Y.setsPortSpot=e,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(e){this.Y.portSpot.D(e)||(this.Y.portSpot=e,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(e){this.Y.setsChildPortSpot!==e&&(this.Y.setsChildPortSpot=e,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(e){this.Y.childPortSpot.D(e)||(this.Y.childPortSpot=e,this.C())}}});var Ym=new Dt(wr,"PathDefault",-1),Qu=new Dt(wr,"PathDestination",0),Tf=new Dt(wr,"PathSource",1),Ed=new Dt(wr,"SortingForwards",10),Yp=new Dt(wr,"SortingReverse",11),$p=new Dt(wr,"SortingAscending",12),Xp=new Dt(wr,"SortingDescending",13),Cd=new Dt(wr,"AlignmentCenterSubtrees",20),_f=new Dt(wr,"AlignmentCenterChildren",21),qu=new Dt(wr,"AlignmentStart",22),ec=new Dt(wr,"AlignmentEnd",23),Bc=new Dt(wr,"AlignmentBus",24),tc=new Dt(wr,"AlignmentBusBranching",25),jc=new Dt(wr,"AlignmentTopLeftBus",26),dc=new Dt(wr,"AlignmentBottomRightBus",27),$m=new Dt(wr,"CompactionNone",30),Zp=new Dt(wr,"CompactionBlock",31),Xm=new Dt(wr,"StyleLayered",40),Vy=new Dt(wr,"StyleLastParents",41),Ky=new Dt(wr,"StyleAlternating",42),Yy=new Dt(wr,"StyleRootOnly",43),Zm=new Dt(wr,"ArrangementVertical",50),$y=new Dt(wr,"ArrangementHorizontal",51),Jm=new Dt(wr,"ArrangementFixedRoots",52),Xy=new Dt(wr,"LayerIndividual",60),Zy=new Dt(wr,"LayerSiblings",61),Qm=new Dt(wr,"LayerUniform",62);wr.className="TreeLayout",wr.PathDefault=Ym,wr.PathDestination=Qu,wr.PathSource=Tf,wr.SortingForwards=Ed,wr.SortingReverse=Yp,wr.SortingAscending=$p,wr.SortingDescending=Xp,wr.AlignmentCenterSubtrees=Cd,wr.AlignmentCenterChildren=_f,wr.AlignmentStart=qu,wr.AlignmentEnd=ec,wr.AlignmentBus=Bc,wr.AlignmentBusBranching=tc,wr.AlignmentTopLeftBus=jc,wr.AlignmentBottomRightBus=dc,wr.CompactionNone=$m,wr.CompactionBlock=Zp,wr.StyleLayered=Xm,wr.StyleLastParents=Vy,wr.StyleAlternating=Ky,wr.StyleRootOnly=Yy,wr.ArrangementVertical=Zm,wr.ArrangementHorizontal=$y,wr.ArrangementFixedRoots=Jm,wr.LayerIndividual=Xy,wr.LayerSiblings=Zy,wr.LayerUniform=Qm;function Af(e){Gi.call(this,e)}Kn(Af,Gi),Af.prototype.createVertex=function(){return new Gl(this)},Af.prototype.createEdge=function(){return new Td(this)},Af.className="TreeNetwork";function Gl(e){Jo.call(this,e),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Ie(0,0),this.Da=new mn(0,0),this.la=new Ie(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Ed,this.hd=my,this.Kb=0,this.Jb=_f,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Zp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Bo,this.wr=!0,this.Dp=Bo}Kn(Gl,Jo),Gl.prototype.copyInheritedPropertiesFrom=function(e){e!==null&&(this.nd=e.sorting,this.hd=e.comparer,this.Kb=e.angle,this.Jb=e.alignment,this.Uq=e.nodeIndent,this.Vq=e.nodeIndentPastParent,this.Wq=e.nodeSpacing,this.ie=e.layerSpacing,this.Aq=e.layerSpacingParentOverlap,this.Hp=e.compaction,this.Ap=e.breadthLimit,this.nr=e.rowSpacing,this.mr=e.rowIndent,this.Gp=e.commentSpacing,this.Fp=e.commentMargin,this.xr=e.setsPortSpot,this.dr=e.portSpot,this.wr=e.setsChildPortSpot,this.Dp=e.childPortSpot)},Mn.Object.defineProperties(Gl.prototype,{initialized:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},parent:{get:function(){return this.hb},set:function(e){this.hb!==e&&(this.hb=e)}},children:{get:function(){return this.u},set:function(e){if(this.u!==e){if(e!==null)for(var t=e.length,n=0;n<t;n++);this.u=e}}},level:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},descendantCount:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}},maxChildrenCount:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},maxGenerationCount:{get:function(){return this.nb},set:function(e){this.nb!==e&&(this.nb=e)}},comments:{get:function(){return this.td},set:function(e){if(this.td!==e){if(e!==null)for(var t=e.length,n=0;n<t;n++);this.td=e}}},sorting:{get:function(){return this.nd},set:function(e){this.nd!==e&&(this.nd=e)}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e)}},angle:{get:function(){return this.Kb},set:function(e){this.Kb!==e&&(this.Kb=e)}},alignment:{get:function(){return this.Jb},set:function(e){this.Jb!==e&&(this.Jb=e)}},nodeIndent:{get:function(){return this.Uq},set:function(e){this.Uq!==e&&(this.Uq=e)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(e){this.Vq!==e&&(this.Vq=e)}},nodeSpacing:{get:function(){return this.Wq},set:function(e){this.Wq!==e&&(this.Wq=e)}},layerSpacing:{get:function(){return this.ie},set:function(e){this.ie!==e&&(this.ie=e)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(e){this.Aq!==e&&(this.Aq=e)}},compaction:{get:function(){return this.Hp},set:function(e){this.Hp!==e&&(this.Hp=e)}},breadthLimit:{get:function(){return this.Ap},set:function(e){this.Ap!==e&&(this.Ap=e)}},rowSpacing:{get:function(){return this.nr},set:function(e){this.nr!==e&&(this.nr=e)}},rowIndent:{get:function(){return this.mr},set:function(e){this.mr!==e&&(this.mr=e)}},commentSpacing:{get:function(){return this.Gp},set:function(e){this.Gp!==e&&(this.Gp=e)}},commentMargin:{get:function(){return this.Fp},set:function(e){this.Fp!==e&&(this.Fp=e)}},setsPortSpot:{get:function(){return this.xr},set:function(e){this.xr!==e&&(this.xr=e)}},portSpot:{get:function(){return this.dr},set:function(e){this.dr.D(e)||(this.dr=e)}},setsChildPortSpot:{get:function(){return this.wr},set:function(e){this.wr!==e&&(this.wr=e)}},childPortSpot:{get:function(){return this.Dp},set:function(e){this.Dp.D(e)||(this.Dp=e)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(e){this.S.set(e)}},subtreeSize:{get:function(){return this.Da},set:function(e){this.Da.set(e)}},subtreeOffset:{get:function(){return this.la},set:function(e){this.la.set(e)}}}),Gl.className="TreeVertex";function Td(e){Qa.call(this,e),this.$t=new Ie(0,0)}Kn(Td,Qa),Td.prototype.commit=function(){var e=this.link;if(e!==null&&!e.isAvoiding){var t=this.network.layout,n=null,r=null;switch(t.ud){case Qu:n=this.fromVertex,r=this.toVertex;break;case Tf:n=this.toVertex,r=this.fromVertex;break;default:ft("Unhandled path value "+t.ud.toString())}if(n!==null&&r!==null){var i=this.$t;if(i.x!==0||i.y!==0||n.qA){r=n.bounds;var o=hu(n),a=t.computeLayerSpacing(n),d=n.rowSpacing;e.vg();var x=e.curve===pl,O=e.isOrthogonal,M;if(e.uh(),O||x){for(M=2;4<e.pointsCount;)e.pv(2);var Y=e.i(1),ie=e.i(2)}else{for(M=1;3<e.pointsCount;)e.pv(1);Y=e.i(0),ie=e.i(e.pointsCount-1)}var ce=e.i(e.pointsCount-1);o===0?(n.alignment===ec?(o=r.bottom+i.y,i.y===0&&Y.y>ce.y+n.rowIndent&&(o=Math.min(o,Math.max(Y.y,o-t.computeNodeIndent(n))))):n.alignment===qu?(o=r.top+i.y,i.y===0&&Y.y<ce.y-n.rowIndent&&(o=Math.max(o,Math.min(Y.y,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?r.top-n.la.y+i.y:r.y+r.height/2+i.y,x?(e.m(M,Y.x,o),M++,e.m(M,r.right+a,o),M++,e.m(M,r.right+a+(i.x-d)/3,o),M++,e.m(M,r.right+a+2*(i.x-d)/3,o),M++,e.m(M,r.right+a+(i.x-d),o),M++,e.m(M,ie.x,o)):(O&&(e.m(M,r.right+a/2,Y.y),M++),e.m(M,r.right+a/2,o),M++,e.m(M,r.right+a+i.x-(O?d/2:d),o),M++,O&&e.m(M,e.i(M-1).x,ie.y))):o===90?(n.alignment===ec?(o=r.right+i.x,i.x===0&&Y.x>ce.x+n.rowIndent&&(o=Math.min(o,Math.max(Y.x,o-t.computeNodeIndent(n))))):n.alignment===qu?(o=r.left+i.x,i.x===0&&Y.x<ce.x-n.rowIndent&&(o=Math.max(o,Math.min(Y.x,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?r.left-n.la.x+i.x:r.x+r.width/2+i.x,x?(e.m(M,o,Y.y),M++,e.m(M,o,r.bottom+a),M++,e.m(M,o,r.bottom+a+(i.y-d)/3),M++,e.m(M,o,r.bottom+a+2*(i.y-d)/3),M++,e.m(M,o,r.bottom+a+(i.y-d)),M++,e.m(M,o,ie.y)):(O&&(e.m(M,Y.x,r.bottom+a/2),M++),e.m(M,o,r.bottom+a/2),M++,e.m(M,o,r.bottom+a+i.y-(O?d/2:d)),M++,O&&e.m(M,ie.x,e.i(M-1).y))):o===180?(n.alignment===ec?(o=r.bottom+i.y,i.y===0&&Y.y>ce.y+n.rowIndent&&(o=Math.min(o,Math.max(Y.y,o-t.computeNodeIndent(n))))):n.alignment===qu?(o=r.top+i.y,i.y===0&&Y.y<ce.y-n.rowIndent&&(o=Math.max(o,Math.min(Y.y,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?r.top-n.la.y+i.y:r.y+r.height/2+i.y,x?(e.m(M,Y.x,o),M++,e.m(M,r.left-a,o),M++,e.m(M,r.left-a+(i.x+d)/3,o),M++,e.m(M,r.left-a+2*(i.x+d)/3,o),M++,e.m(M,r.left-a+(i.x+d),o),M++,e.m(M,ie.x,o)):(O&&(e.m(M,r.left-a/2,Y.y),M++),e.m(M,r.left-a/2,o),M++,e.m(M,r.left-a+i.x+(O?d/2:d),o),M++,O&&e.m(M,e.i(M-1).x,ie.y))):o===270?(n.alignment===ec?(o=r.right+i.x,i.x===0&&Y.x>ce.x+n.rowIndent&&(o=Math.min(o,Math.max(Y.x,o-t.computeNodeIndent(n))))):n.alignment===qu?(o=r.left+i.x,i.x===0&&Y.x<ce.x-n.rowIndent&&(o=Math.max(o,Math.min(Y.x,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?r.left-n.la.x+i.x:r.x+r.width/2+i.x,x?(e.m(M,o,Y.y),M++,e.m(M,o,r.top-a),M++,e.m(M,o,r.top-a+(i.y+d)/3),M++,e.m(M,o,r.top-a+2*(i.y+d)/3),M++,e.m(M,o,r.top-a+(i.y+d)),M++,e.m(M,o,ie.y)):(O&&(e.m(M,Y.x,r.top-a/2),M++),e.m(M,o,r.top-a/2),M++,e.m(M,o,r.top-a+i.y+(O?d/2:d)),M++,O&&e.m(M,ie.x,e.i(M-1).y))):ft("Invalid angle "+o),e.zf()}else i=r,e=this.link,r=this.network.layout,t=hu(n),t!==hu(i)&&(a=r.computeLayerSpacing(n),d=n.bounds,n=i.bounds,t===0&&n.left-d.right<a+1||t===90&&n.top-d.bottom<a+1||t===180&&d.left-n.right<a+1||t===270&&d.top-n.bottom<a+1||(e.vg(),n=e.curve===pl,i=e.isOrthogonal,r=mh(this.fromVertex.alignment),e.uh(),t===0?(t=d.right+a/2,n?e.pointsCount===4&&(n=e.i(3).y,e.L(1,t-20,e.i(1).y),e.m(2,t-20,n),e.m(3,t,n),e.m(4,t+20,n),e.L(5,e.i(5).x,n)):i?r?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,t,e.i(2).y),e.L(3,t,e.i(3).y)):e.pointsCount===4?e.m(2,t,e.i(2).y):e.pointsCount===3?e.L(1,t,e.i(2).y):e.pointsCount===2&&e.m(1,t,e.i(1).y)):t===90?(t=d.bottom+a/2,n?e.pointsCount===4&&(n=e.i(3).x,e.L(1,e.i(1).x,t-20),e.m(2,n,t-20),e.m(3,n,t),e.m(4,n,t+20),e.L(5,n,e.i(5).y)):i?r?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,e.i(2).x,t),e.L(3,e.i(3).x,t)):e.pointsCount===4?e.m(2,e.i(2).x,t):e.pointsCount===3?e.L(1,e.i(2).x,t):e.pointsCount===2&&e.m(1,e.i(1).x,t)):t===180?(t=d.left-a/2,n?e.pointsCount===4&&(n=e.i(3).y,e.L(1,t+20,e.i(1).y),e.m(2,t+20,n),e.m(3,t,n),e.m(4,t-20,n),e.L(5,e.i(5).x,n)):i?r?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,t,e.i(2).y),e.L(3,t,e.i(3).y)):e.pointsCount===4?e.m(2,t,e.i(2).y):e.pointsCount===3?e.L(1,t,e.i(2).y):e.pointsCount===2&&e.m(1,t,e.i(1).y)):t===270&&(t=d.top-a/2,n?e.pointsCount===4&&(n=e.i(3).x,e.L(1,e.i(1).x,t+20),e.m(2,n,t+20),e.m(3,n,t),e.m(4,n,t-20),e.L(5,n,e.i(5).y)):i?r?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,e.i(2).x,t),e.L(3,e.i(3).x,t)):e.pointsCount===4?e.m(2,e.i(2).x,t):e.pointsCount===3?e.L(1,e.i(2).x,t):e.pointsCount===2&&e.m(1,e.i(1).x,t)),e.zf()))}}},Mn.Object.defineProperties(Td.prototype,{fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}},relativePoint:{get:function(){return this.$t},set:function(e){this.$t.set(e)}}}),Td.className="TreeEdge",Fi.prototype.initializeStandardTools=function(){this.gb("Action",new Lt,this.mouseDownTools),this.gb("Relinking",new sa,this.mouseDownTools),this.gb("LinkReshaping",new Se,this.mouseDownTools),this.gb("Rotating",new zt,this.mouseDownTools),this.gb("Resizing",new mt,this.mouseDownTools),this.gb("Linking",new Fs,this.mouseMoveTools),this.gb("Dragging",new Ui,this.mouseMoveTools),this.gb("DragSelecting",new on,this.mouseMoveTools),this.gb("Panning",new Pt,this.mouseMoveTools),this.gb("ContextMenu",new Ni,this.mouseUpTools),this.gb("TextEditing",new Dr,this.mouseUpTools),this.gb("ClickCreating",new ln,this.mouseUpTools),this.gb("ClickSelecting",new Yt,this.mouseUpTools)},Lu("Horizontal",new Ag),Lu("Spot",new Ng),Lu("Table",new Rg),Lu("Viewbox",new Mg),Lu("TableRow",new Og),Lu("TableColumn",new Lg),Lu("Graduated",new fp),Lu("Grid",new hp),$f.add("GraphLinksModel",hs),$f.add("TreeModel",kl);var qm=pn.go,Jy={get licenseKey(){return bt.licenseKey},set licenseKey(e){bt.licenseKey=e},get version(){return bt.version},Group:or,EnumValue:Dt,List:Gt,Set:Kt,Map:Et,Point:Ie,Size:mn,Rect:xt,Margin:ar,Spot:an,Geometry:qt,PathFigure:To,PathSegment:Mr,InputEvent:is,DiagramEvent:yl,ChangedEvent:Xi,Model:In,GraphLinksModel:Lr,TreeModel:ma,Binding:Do,Transaction:_o,UndoManager:Ai,CommandHandler:We,Tool:Ar,DraggingTool:Ui,DraggingInfo:ac,DraggingOptions:w,LinkingBaseTool:ho,LinkingTool:Fs,RelinkingTool:sa,LinkReshapingTool:Se,ResizingTool:mt,RotatingTool:zt,ClickSelectingTool:Yt,ActionTool:Lt,ClickCreatingTool:ln,HTMLInfo:Ur,ContextMenuTool:Ni,DragSelectingTool:on,PanningTool:Pt,TextEditingTool:Dr,ToolManager:Fi,Animation:xn,AnimationManager:Ls,AnimationTrigger:Ca,Layer:vs,Diagram:bt,Palette:K,Overview:q,Brush:di,GraphObject:at,Panel:Xt,RowColumnDefinition:Ko,Shape:hr,TextBlock:zi,Picture:Na,Part:Fn,Adornment:Xr,Node:hn,Link:nn,Placeholder:fa,Layout:ao,LayoutNetwork:Gi,LayoutVertex:Jo,LayoutEdge:Qa,GridLayout:Es,PanelLayout:Zo,CircularLayout:fo,CircularNetwork:Sd,CircularVertex:Up,CircularEdge:Lm,ForceDirectedLayout:Ds,ForceDirectedNetwork:Ef,ForceDirectedVertex:Hp,ForceDirectedEdge:zp,LayeredDigraphLayout:mi,LayeredDigraphNetwork:wd,LayeredDigraphVertex:Il,LayeredDigraphEdge:Vp,TreeLayout:wr,TreeNetwork:Af,TreeVertex:Gl,TreeEdge:Td};typeof qm=="object"&&qm.version&&Un("WARNING: a `go` object on the root object is already defined. "+("Debug"in qm?"debug ":"")+"version: "+qm.version+", replaced with version: "+Jy.version),bt.prototype.go=Jy,pn.go=Jy,typeof Ne.exports=="object"&&(Ne.exports=typeof S.g!="undefined"?S.g.go:self.go)}();var B=typeof S.g!="undefined"?S.g.go:self.go;const Z=typeof S.g!="undefined"?S.g.go:self.go,s=Z.Group,C=Z.EnumValue,A=Z.List,u=Z.Set,p=Z.Map,b=Z.Point,g=Z.Size,y=Z.Rect,v=Z.Margin,c=Z.Spot,h=Z.Geometry,m=Z.PathFigure,E=Z.PathSegment,T=Z.InputEvent,I=Z.DiagramEvent,R=Z.ChangedEvent,N=Z.Model,k=Z.GraphLinksModel,L=Z.TreeModel,H=Z.Binding,D=Z.Transaction,V=Z.UndoManager,P=Z.CommandHandler,U=Z.Tool,G=Z.DraggingTool,J=Z.DraggingInfo,ee=Z.LinkingBaseTool,ae=Z.LinkingTool,oe=Z.RelinkingTool,ue=Z.LinkReshapingTool,se=Z.ResizingTool,ye=Z.RotatingTool,ve=Z.ClickSelectingTool,Re=Z.ActionTool,le=Z.ClickCreatingTool,xe=Z.HTMLInfo,pe=Z.ContextMenuTool,Me=Z.DragSelectingTool,Oe=Z.PanningTool,Le=Z.TextEditingTool,Pe=Z.ToolManager,De=Z.Animation,Ke=Z.AnimationManager,ze=Z.AnimationTrigger,it=Z.Layer,ot=Z.Diagram,Ge=Z.Palette,Ee=Z.Overview,fe=Z.Brush,z=Z.GraphObject,X=Z.Panel,de=Z.RowColumnDefinition,Ce=Z.Shape,ne=Z.TextBlock,re=Z.TextBlockMetrics,he=Z.Picture,_e=Z.Part,Be=Z.Adornment,Ue=Z.Node,rt=Z.Link,et=Z.Placeholder,dt=Z.Layout,Ot=Z.LayoutNetwork,pt=Z.LayoutVertex,nt=Z.LayoutEdge,ut=Z.GridLayout,Tt=Z.PanelLayout,vt=Z.CircularLayout,Ct=Z.CircularNetwork,Ft=Z.CircularVertex,Rt=Z.CircularEdge,$e=Z.ForceDirectedLayout,Zt=Z.ForceDirectedNetwork,vn=Z.ForceDirectedVertex,wt=Z.ForceDirectedEdge,Dn=Z.LayeredDigraphLayout,nr=Z.LayeredDigraphNetwork,Qn=Z.LayeredDigraphVertex,jt=Z.LayeredDigraphEdge,br=Z.TreeLayout,dr=Z.TreeNetwork,zn=Z.TreeVertex,$n=Z.TreeEdge,Er=Z.version},46963:function(Ne){"use strict";Ne.exports=S;var Q=/[#.]/g;function S(B,Z){for(var s=B||"",C=Z||"div",A={},u=0,p,b,g;u<s.length;)Q.lastIndex=u,g=Q.exec(s),p=s.slice(u,g?g.index:s.length),p&&(b?b==="#"?A.id=p:A.className?A.className.push(p):A.className=[p]:C=p,u+=p.length),g&&(b=g[0],u++);return{type:"element",tagName:C,properties:A,children:[]}}},5641:function(Ne,Q,S){"use strict";var B=S(88914),Z=S(47178),s=S(46963),C=S(92848).Q,A=S(58951).Q;Ne.exports=p;var u={}.hasOwnProperty;function p(E,T,I){var R=I?m(I):null;return N;function N(L,H){var D=s(L,T),V=Array.prototype.slice.call(arguments,2),P=D.tagName.toLowerCase(),U;if(D.tagName=R&&u.call(R,P)?R[P]:P,H&&b(H,D)&&(V.unshift(H),H=null),H)for(U in H)k(D.properties,U,H[U]);return y(D.children,V),D.tagName==="template"&&(D.content={type:"root",children:D.children},D.children=[]),D}function k(L,H,D){var V,P,U;D==null||D!==D||(V=B(E,H),P=V.property,U=D,typeof U=="string"&&(V.spaceSeparated?U=C(U):V.commaSeparated?U=A(U):V.commaOrSpaceSeparated&&(U=C(A(U).join(" ")))),P==="style"&&typeof D!="string"&&(U=h(U)),P==="className"&&L.className&&(U=L.className.concat(U)),L[P]=v(V,P,U))}}function b(E,T){return typeof E=="string"||"length"in E||g(T.tagName,E)}function g(E,T){var I=T.type;return E==="input"||!I||typeof I!="string"?!1:typeof T.children=="object"&&"length"in T.children?!0:(I=I.toLowerCase(),E==="button"?I!=="menu"&&I!=="submit"&&I!=="reset"&&I!=="button":"value"in T)}function y(E,T){var I,R;if(typeof T=="string"||typeof T=="number"){E.push({type:"text",value:String(T)});return}if(typeof T=="object"&&"length"in T){for(I=-1,R=T.length;++I<R;)y(E,T[I]);return}if(typeof T!="object"||!("type"in T))throw new Error("Expected node, nodes, or string, got `"+T+"`");E.push(T)}function v(E,T,I){var R,N,k;if(typeof I!="object"||!("length"in I))return c(E,T,I);for(N=I.length,R=-1,k=[];++R<N;)k[R]=c(E,T,I[R]);return k}function c(E,T,I){var R=I;return E.number||E.positiveNumber?!isNaN(R)&&R!==""&&(R=Number(R)):(E.boolean||E.overloadedBoolean)&&typeof R=="string"&&(R===""||Z(I)===Z(T))&&(R=!0),R}function h(E){var T=[],I;for(I in E)T.push([I,E[I]].join(": "));return T.join("; ")}function m(E){for(var T=E.length,I=-1,R={},N;++I<T;)N=E[I],R[N.toLowerCase()]=N;return R}},82073:function(Ne,Q,S){"use strict";var B=S(18795),Z=S(5641),s=Z(B,"div");s.displayName="html",Ne.exports=s},43621:function(Ne,Q,S){"use strict";Ne.exports=S(82073)},93193:function(Ne){var Q=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,S=/\n/g,B=/^\s*/,Z=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,C=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,A=/^[;\s]*/,u=/^\s+|\s+$/g,p=`
`,b="/",g="*",y="",v="comment",c="declaration";Ne.exports=function(m,E){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];E=E||{};var T=1,I=1;function R(ee){var ae=ee.match(S);ae&&(T+=ae.length);var oe=ee.lastIndexOf(p);I=~oe?ee.length-oe:I+ee.length}function N(){var ee={line:T,column:I};return function(ae){return ae.position=new k(ee),V(),ae}}function k(ee){this.start=ee,this.end={line:T,column:I},this.source=E.source}k.prototype.content=m;var L=[];function H(ee){var ae=new Error(E.source+":"+T+":"+I+": "+ee);if(ae.reason=ee,ae.filename=E.source,ae.line=T,ae.column=I,ae.source=m,E.silent)L.push(ae);else throw ae}function D(ee){var ae=ee.exec(m);if(ae){var oe=ae[0];return R(oe),m=m.slice(oe.length),ae}}function V(){D(B)}function P(ee){var ae;for(ee=ee||[];ae=U();)ae!==!1&&ee.push(ae);return ee}function U(){var ee=N();if(!(b!=m.charAt(0)||g!=m.charAt(1))){for(var ae=2;y!=m.charAt(ae)&&(g!=m.charAt(ae)||b!=m.charAt(ae+1));)++ae;if(ae+=2,y===m.charAt(ae-1))return H("End of comment missing");var oe=m.slice(2,ae-2);return I+=2,R(oe),m=m.slice(ae),I+=2,ee({type:v,comment:oe})}}function G(){var ee=N(),ae=D(Z);if(ae){if(U(),!D(s))return H("property missing ':'");var oe=D(C),ue=ee({type:c,property:h(ae[0].replace(Q,y)),value:oe?h(oe[0].replace(Q,y)):y});return D(A),ue}}function J(){var ee=[];P(ee);for(var ae;ae=G();)ae!==!1&&(ee.push(ae),P(ee));return ee}return V(),J()};function h(m){return m?m.replace(u,y):y}},91241:function(Ne){"use strict";Ne.exports=Q;function Q(S){var B=typeof S=="string"?S.charCodeAt(0):S;return B>=97&&B<=122||B>=65&&B<=90}},21127:function(Ne,Q,S){"use strict";var B=S(91241),Z=S(22347);Ne.exports=s;function s(C){return B(C)||Z(C)}},22347:function(Ne){"use strict";Ne.exports=Q;function Q(S){var B=typeof S=="string"?S.charCodeAt(0):S;return B>=48&&B<=57}},65207:function(Ne){"use strict";Ne.exports=Q;function Q(S){var B=typeof S=="string"?S.charCodeAt(0):S;return B>=97&&B<=102||B>=65&&B<=70||B>=48&&B<=57}},24334:function(Ne,Q,S){var B,Z;(function(s,C){Ne.exports=C(s)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof S.g!="undefined"?S.g:this,function(s){"use strict";s=s||{};var C=s.Base64,A="2.6.4",u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=function(oe){for(var ue={},se=0,ye=oe.length;se<ye;se++)ue[oe.charAt(se)]=se;return ue}(u),b=String.fromCharCode,g=function(oe){if(oe.length<2){var ue=oe.charCodeAt(0);return ue<128?oe:ue<2048?b(192|ue>>>6)+b(128|ue&63):b(224|ue>>>12&15)+b(128|ue>>>6&63)+b(128|ue&63)}else{var ue=65536+(oe.charCodeAt(0)-55296)*1024+(oe.charCodeAt(1)-56320);return b(240|ue>>>18&7)+b(128|ue>>>12&63)+b(128|ue>>>6&63)+b(128|ue&63)}},y=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=function(oe){return oe.replace(y,g)},c=function(oe){var ue=[0,2,1][oe.length%3],se=oe.charCodeAt(0)<<16|(oe.length>1?oe.charCodeAt(1):0)<<8|(oe.length>2?oe.charCodeAt(2):0),ye=[u.charAt(se>>>18),u.charAt(se>>>12&63),ue>=2?"=":u.charAt(se>>>6&63),ue>=1?"=":u.charAt(se&63)];return ye.join("")},h=s.btoa&&typeof s.btoa=="function"?function(oe){return s.btoa(oe)}:function(oe){if(oe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return oe.replace(/[\s\S]{1,3}/g,c)},m=function(oe){return h(v(String(oe)))},E=function(oe){return oe.replace(/[+\/]/g,function(ue){return ue=="+"?"-":"_"}).replace(/=/g,"")},T=function(oe,ue){return ue?E(m(oe)):m(oe)},I=function(oe){return T(oe,!0)},R;s.Uint8Array&&(R=function(oe,ue){for(var se="",ye=0,ve=oe.length;ye<ve;ye+=3){var Re=oe[ye],le=oe[ye+1],xe=oe[ye+2],pe=Re<<16|le<<8|xe;se+=u.charAt(pe>>>18)+u.charAt(pe>>>12&63)+(typeof le!="undefined"?u.charAt(pe>>>6&63):"=")+(typeof xe!="undefined"?u.charAt(pe&63):"=")}return ue?E(se):se});var N=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,k=function(oe){switch(oe.length){case 4:var ue=(7&oe.charCodeAt(0))<<18|(63&oe.charCodeAt(1))<<12|(63&oe.charCodeAt(2))<<6|63&oe.charCodeAt(3),se=ue-65536;return b((se>>>10)+55296)+b((se&1023)+56320);case 3:return b((15&oe.charCodeAt(0))<<12|(63&oe.charCodeAt(1))<<6|63&oe.charCodeAt(2));default:return b((31&oe.charCodeAt(0))<<6|63&oe.charCodeAt(1))}},L=function(oe){return oe.replace(N,k)},H=function(oe){var ue=oe.length,se=ue%4,ye=(ue>0?p[oe.charAt(0)]<<18:0)|(ue>1?p[oe.charAt(1)]<<12:0)|(ue>2?p[oe.charAt(2)]<<6:0)|(ue>3?p[oe.charAt(3)]:0),ve=[b(ye>>>16),b(ye>>>8&255),b(ye&255)];return ve.length-=[0,0,2,1][se],ve.join("")},D=s.atob&&typeof s.atob=="function"?function(oe){return s.atob(oe)}:function(oe){return oe.replace(/\S{1,4}/g,H)},V=function(oe){return D(String(oe).replace(/[^A-Za-z0-9\+\/]/g,""))},P=function(oe){return L(D(oe))},U=function(oe){return String(oe).replace(/[-_]/g,function(ue){return ue=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},G=function(oe){return P(U(oe))},J;s.Uint8Array&&(J=function(oe){return Uint8Array.from(V(U(oe)),function(ue){return ue.charCodeAt(0)})});var ee=function(){var oe=s.Base64;return s.Base64=C,oe};if(s.Base64={VERSION:A,atob:V,btoa:h,fromBase64:G,toBase64:T,utob:v,encode:T,encodeURI:I,btou:L,decode:G,noConflict:ee,fromUint8Array:R,toUint8Array:J},typeof Object.defineProperty=="function"){var ae=function(oe){return{value:oe,enumerable:!1,writable:!0,configurable:!0}};s.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ae(function(){return G(this)})),Object.defineProperty(String.prototype,"toBase64",ae(function(oe){return T(this,oe)})),Object.defineProperty(String.prototype,"toBase64URI",ae(function(){return T(this,!0)}))}}return s.Meteor&&(Base64=s.Base64),Ne.exports?Ne.exports.Base64=s.Base64:(B=[],Z=function(){return s.Base64}.apply(Q,B),Z!==void 0&&(Ne.exports=Z)),{Base64:s.Base64}})},2859:function(Ne,Q,S){"use strict";S.d(Q,{hP:function(){return Ee}});var B=function(fe,z){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,de){X.__proto__=de}||function(X,de){for(var Ce in de)Object.prototype.hasOwnProperty.call(de,Ce)&&(X[Ce]=de[Ce])})(fe,z)};function Z(fe,z){function X(){this.constructor=fe}B(fe,z),fe.prototype=z===null?Object.create(z):(X.prototype=z.prototype,new X)}function s(fe,z,X,de){return new(X||(X=Promise))(function(Ce,ne){function re(Be){try{_e(de.next(Be))}catch(Ue){ne(Ue)}}function he(Be){try{_e(de.throw(Be))}catch(Ue){ne(Ue)}}function _e(Be){var Ue;Be.done?Ce(Be.value):(Ue=Be.value,Ue instanceof X?Ue:new X(function(rt){rt(Ue)})).then(re,he)}_e((de=de.apply(fe,z||[])).next())})}function C(fe,z){var X,de,Ce,ne,re={label:0,sent:function(){if(1&Ce[0])throw Ce[1];return Ce[1]},trys:[],ops:[]};return ne={next:he(0),throw:he(1),return:he(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function he(_e){return function(Be){return function(Ue){if(X)throw new TypeError("Generator is already executing.");for(;re;)try{if(X=1,de&&(Ce=2&Ue[0]?de.return:Ue[0]?de.throw||((Ce=de.return)&&Ce.call(de),0):de.next)&&!(Ce=Ce.call(de,Ue[1])).done)return Ce;switch(de=0,Ce&&(Ue=[2&Ue[0],Ce.value]),Ue[0]){case 0:case 1:Ce=Ue;break;case 4:return re.label++,{value:Ue[1],done:!1};case 5:re.label++,de=Ue[1],Ue=[0];continue;case 7:Ue=re.ops.pop(),re.trys.pop();continue;default:if(Ce=re.trys,!((Ce=Ce.length>0&&Ce[Ce.length-1])||Ue[0]!==6&&Ue[0]!==2)){re=0;continue}if(Ue[0]===3&&(!Ce||Ue[1]>Ce[0]&&Ue[1]<Ce[3])){re.label=Ue[1];break}if(Ue[0]===6&&re.label<Ce[1]){re.label=Ce[1],Ce=Ue;break}if(Ce&&re.label<Ce[2]){re.label=Ce[2],re.ops.push(Ue);break}Ce[2]&&re.ops.pop(),re.trys.pop();continue}Ue=z.call(fe,re)}catch(rt){Ue=[6,rt],de=0}finally{X=Ce=0}if(5&Ue[0])throw Ue[1];return{value:Ue[0]?Ue[1]:void 0,done:!0}}([_e,Be])}}}function A(){for(var fe=0,z=0,X=arguments.length;z<X;z++)fe+=arguments[z].length;var de=Array(fe),Ce=0;for(z=0;z<X;z++)for(var ne=arguments[z],re=0,he=ne.length;re<he;re++,Ce++)de[Ce]=ne[re];return de}var u=function(){function fe(){}return fe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},fe.setAttributes=function(z,X){for(var de=0,Ce=X;de<Ce.length;de++){var ne=Ce[de],re=ne[0],he=ne[1];z.setAttribute(re,he)}},fe.createRect=function(z,X,de){var Ce=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ce.setAttribute("width",z.toString()),Ce.setAttribute("height",X.toString()),de&&fe.setAttributes(Ce,de),Ce},fe.createLine=function(z,X,de,Ce,ne){var re=document.createElementNS("http://www.w3.org/2000/svg","line");return re.setAttribute("x1",z.toString()),re.setAttribute("y1",X.toString()),re.setAttribute("x2",de.toString()),re.setAttribute("y2",Ce.toString()),ne&&fe.setAttributes(re,ne),re},fe.createPolygon=function(z,X){var de=document.createElementNS("http://www.w3.org/2000/svg","polygon");return de.setAttribute("points",z),X&&fe.setAttributes(de,X),de},fe.createCircle=function(z,X){var de=document.createElementNS("http://www.w3.org/2000/svg","circle");return de.setAttribute("cx",(z/2).toString()),de.setAttribute("cy",(z/2).toString()),de.setAttribute("r",z.toString()),X&&fe.setAttributes(de,X),de},fe.createEllipse=function(z,X,de){var Ce=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ce.setAttribute("cx",(z/2).toString()),Ce.setAttribute("cy",(X/2).toString()),Ce.setAttribute("rx",(z/2).toString()),Ce.setAttribute("ry",(X/2).toString()),de&&fe.setAttributes(Ce,de),Ce},fe.createGroup=function(z){var X=document.createElementNS("http://www.w3.org/2000/svg","g");return z&&fe.setAttributes(X,z),X},fe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},fe.createMarker=function(z,X,de,Ce,ne,re,he){var _e=document.createElementNS("http://www.w3.org/2000/svg","marker");return fe.setAttributes(_e,[["id",z],["orient",X],["markerWidth",de.toString()],["markerHeight",Ce.toString()],["refX",ne.toString()],["refY",re.toString()]]),_e.appendChild(he),_e},fe.createText=function(z){var X=document.createElementNS("http://www.w3.org/2000/svg","text");return X.setAttribute("x","0"),X.setAttribute("y","0"),z&&fe.setAttributes(X,z),X},fe.createTSpan=function(z,X){var de=document.createElementNS("http://www.w3.org/2000/svg","tspan");return de.textContent=z,X&&fe.setAttributes(de,X),de},fe.createImage=function(z){var X=document.createElementNS("http://www.w3.org/2000/svg","image");return z&&fe.setAttributes(X,z),X},fe.createPoint=function(z,X){var de=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return de.x=z,de.y=X,de},fe.createPath=function(z,X){var de=document.createElementNS("http://www.w3.org/2000/svg","path");return de.setAttribute("d",z),X&&fe.setAttributes(de,X),de},fe}(),p=function(){function fe(){}return fe.addKey=function(z){fe.key=z},Object.defineProperty(fe,"isLicensed",{get:function(){return!!fe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(fe.key)},enumerable:!1,configurable:!0}),fe}(),b=function(){function fe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return fe.prototype.rasterize=function(z,X,de){var Ce=this;return new Promise(function(ne){var re=de!==void 0?de:document.createElement("canvas");z===null&&(Ce.markersOnly=!0,Ce.naturalSize=!1);var he=document.createElementNS("http://www.w3.org/2000/svg","svg");he.setAttribute("xmlns","http://www.w3.org/2000/svg"),he.setAttribute("width",X.width.baseVal.valueAsString),he.setAttribute("height",X.height.baseVal.valueAsString),he.setAttribute("viewBox","0 0 "+X.viewBox.baseVal.width.toString()+" "+X.viewBox.baseVal.height.toString()),he.innerHTML=X.innerHTML,Ce.naturalSize===!0?(he.width.baseVal.value=z.naturalWidth,he.height.baseVal.value=z.naturalHeight):Ce.width!==void 0&&Ce.height!==void 0&&(he.width.baseVal.value=Ce.width,he.height.baseVal.value=Ce.height),re.width=he.width.baseVal.value,re.height=he.height.baseVal.value;var _e=he.outerHTML,Be=re.getContext("2d");Ce.markersOnly!==!0&&Be.drawImage(z,0,0,re.width,re.height);var Ue=window.URL,rt=new Image(re.width,re.height);rt.setAttribute("crossOrigin","anonymous");var et=new Blob([_e],{type:"image/svg+xml"}),dt=Ue.createObjectURL(et);rt.onload=function(){Be.drawImage(rt,0,0),Ue.revokeObjectURL(dt);var Ot=re.toDataURL(Ce.imageType,Ce.imageQuality);ne(Ot)},rt.src=dt})},fe}(),g=function(){},y=function(){function fe(z){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+z+"_"}return Object.defineProperty(fe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(fe.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(fe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),fe.prototype.addClass=function(z){return this.styleSheet===void 0&&this.addStyleSheet(),z.name=""+this.classNamePrefix+z.localName,this.classes.push(z),this.styleSheet.sheet.insertRule("."+z.name+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length),z},fe.prototype.addRule=function(z){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(z),this.styleSheet.sheet.insertRule(z.selector+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length)},fe.prototype.addStyleSheet=function(){var z;this.styleSheet=document.createElement("style"),((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).appendChild(this.styleSheet),this.addRule(new v("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new v("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new v("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new c("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new c("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},fe.prototype.removeStyleSheet=function(){var z;this.styleSheet&&(((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},fe}(),v=function(fe,z){this.selector=fe,this.style=z},c=function(fe,z){this.localName=fe,this.style=z},h=function(){function fe(z,X,de,Ce,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=z,this.displayMode=X,this.markerItems=de,this.uiStyleSettings=Ce,this.styles=ne,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return fe.prototype.show=function(z){var X=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var de=document.createElement("div");de.className=this.toolbarBlockStyleClass.name,de.style.whiteSpace="nowrap",this.uiContainer.appendChild(de),this.addActionButton(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(de,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ne){var re=document.createElement("div");re.className=""+X.toolbarButtonStyleClass.name,re.setAttribute("data-type-name",ne.typeName),re.innerHTML=ne.icon,re.addEventListener("click",function(){X.markerToolbarButtonClicked(re,ne)}),X.buttons.push(re),X.markerButtons.push(re)}),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 Ce=document.createElement("div");Ce.className=this.toolbarBlockStyleClass.name,Ce.style.whiteSpace="nowrap",Ce.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ce),this.addActionButton(Ce,'<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(Ce,'<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()},fe.prototype.addButtonClickListener=function(z){this.buttonClickListeners.push(z)},fe.prototype.removeButtonClickListener=function(z){this.buttonClickListeners.indexOf(z)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(z),1)},fe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},fe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var z=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var X=0;X<this.markerButtons.length;X++)X<z||X===z&&this.markerButtons.length-1===z?this.markerButtonBlock.appendChild(this.markerButtons[X]):(X===z&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[X]))}},fe.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")},fe.prototype.resetButtonStyles=function(){var z=this;this.buttons.forEach(function(X){X.className=X.className.replace(z.uiStyleSettings.toolbarButtonStyleColorsClassName?z.uiStyleSettings.toolbarButtonStyleColorsClassName:z.toolbarButtonStyleColorsClass.name,"").trim(),X.className=X.className.replace(z.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?z.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:z.toolbarActiveButtonStyleColorsClass.name,"").trim(),X.className+=" "+(z.uiStyleSettings.toolbarButtonStyleColorsClassName?z.uiStyleSettings.toolbarButtonStyleColorsClassName:z.toolbarButtonStyleColorsClass.name)})},fe.prototype.addActionButton=function(z,X,de){var Ce=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=X,ne.setAttribute("data-action",de),ne.addEventListener("click",function(){Ce.actionToolbarButtonClicked(ne,de)}),de){case"select":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ne.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ne.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ne.style.fill=this.uiStyleSettings.closeButtonColor}z.appendChild(ne),this.buttons.push(ne)},fe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new c("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 c("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new c("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new c("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 c("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var z=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new c("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
padding: `+z+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new c("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new c("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new v("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new v("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},fe.prototype.markerToolbarButtonClicked=function(z,X){this.setActiveButton(z),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(de){return de("marker",X)}),this.markerButtonOverflowBlock.style.display="none"},fe.prototype.actionToolbarButtonClicked=function(z,X){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(de){return de("action",X)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},fe.prototype.setActiveButton=function(z){this.resetButtonStyles(),z.className=z.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),z.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},fe.prototype.setActiveMarkerButton=function(z){var X=this.markerButtons.find(function(de){return de.getAttribute("data-type-name")===z});X&&this.setActiveButton(X)},fe.prototype.setCurrentMarker=function(z){var X=this;this.currentMarker=z,this.buttons.filter(function(de){return/delete|notes/.test(de.getAttribute("data-action"))}).forEach(function(de){X.currentMarker===void 0?(de.style.fillOpacity="0.4",de.style.pointerEvents="none"):(de.style.fillOpacity="1",de.style.pointerEvents="all")})},fe}(),m=function(){function fe(z,X,de,Ce){this.panels=[],this.panelButtons=[],this.markerjsContainer=z,this.displayMode=X,this.uiStyleSettings=de,this.styles=Ce,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return fe.prototype.addStyles=function(){var z;this.toolboxStyleClass=this.styles.addClass(new c("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 c("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var X=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new c("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new c("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new c("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 c("toolbox-panel-row_colors",`
background-color: `+((z=this.uiStyleSettings.toolboxBackgroundColor)!==null&&z!==void 0?z:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new c("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*X)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*X)+`px;
padding: `+X+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new c("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new c("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new v("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new v("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},fe.prototype.show=function(z){var X;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,this.uiContainer.className=this.toolboxStyleClass.name+" "+((X=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&X!==void 0?X:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},fe.prototype.setPanelButtons=function(z){var X,de,Ce=this;this.panels=z,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((X=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&X!==void 0?X:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((de=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&de!==void 0?de:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var re;ne.uiStyleSettings=Ce.uiStyleSettings;var he=document.createElement("div");he.className=Ce.toolboxButtonStyleClass.name+" "+((re=Ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&re!==void 0?re:Ce.toolboxButtonStyleColorsClass.name),he.innerHTML=ne.icon,he.title=ne.title,he.addEventListener("click",function(){Ce.panelButtonClick(ne)}),Ce.panelButtons.push(he),Ce.buttonRow.appendChild(he)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},fe.prototype.panelButtonClick=function(z){var X=this,de=-1;if(z!==this.activePanel){de=this.panels.indexOf(z),this.panelRow.innerHTML="";var Ce=z.getUi();Ce.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ce),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=z}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){X.displayMode==="inline"?X.panelRow.style.display="none":X.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,re){var he,_e;ne.className=X.toolboxButtonStyleClass.name+" "+(re===de?""+((he=X.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&he!==void 0?he:X.toolboxActiveButtonStyleColorsClass.name):""+((_e=X.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&_e!==void 0?_e:X.toolboxButtonStyleColorsClass.name))})},fe}(),E=function(fe,z){this.title=fe,this.icon=z},T=function(fe){function z(X,de,Ce,ne){var re=fe.call(this,X,ne||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return re.colors=[],re.addTransparent=!1,re.colorBoxes=[],re.colors=de,re.currentColor=Ce,re.setCurrentColor=re.setCurrentColor.bind(re),re.getColorBox=re.getColorBox.bind(re),re}return Z(z,fe),z.prototype.getUi=function(){var X=this,de=document.createElement("div");return de.style.overflow="hidden",de.style.whiteSpace="nowrap",this.colors.forEach(function(Ce){var ne=X.getColorBox(Ce);de.appendChild(ne),X.colorBoxes.push(ne)}),de},z.prototype.getColorBox=function(X){var de=this,Ce=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-Ce,re=document.createElement("div");re.style.display="inline-block",re.style.boxSizing="content-box",re.style.width=ne-2+"px",re.style.height=ne-2+"px",re.style.padding="1px",re.style.marginRight="2px",re.style.marginBottom="2px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderRadius=(ne+2)/2+"px",re.style.borderColor=X===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){de.setCurrentColor(X,re)});var he=document.createElement("div");return he.style.display="inline-block",he.style.width=ne-2+"px",he.style.height=ne-2+"px",he.style.backgroundColor=X,he.style.borderRadius=ne/2+"px",X==="transparent"&&(he.style.fill=this.uiStyleSettings.toolboxAccentColor,he.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>`),re.appendChild(he),re},z.prototype.setCurrentColor=function(X,de){var Ce=this;this.currentColor=X,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===de?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(X)},z}(E),I=function(){function fe(z,X,de){this._state="new",this._isSelected=!1,this._container=z,this._overlayContainer=X,this.globalSettings=de,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(fe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(z){return!1},Object.defineProperty(fe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),fe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},fe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},fe.prototype.pointerDown=function(z,X){},fe.prototype.dblClick=function(z,X){},fe.prototype.manipulate=function(z){},fe.prototype.pointerUp=function(z){this.stateChanged()},fe.prototype.dispose=function(){},fe.prototype.addMarkerVisualToContainer=function(z){this.container.childNodes.length>0?this.container.insertBefore(z,this.container.childNodes[0]):this.container.appendChild(z)},fe.prototype.getState=function(){return{typeName:fe.typeName,state:this.state,notes:this.notes}},fe.prototype.restoreState=function(z){this._state=z.state,this.notes=z.notes},fe.prototype.scale=function(z,X){},fe.prototype.colorChanged=function(z){this.onColorChanged&&this.onColorChanged(z),this.stateChanged()},fe.prototype.fillColorChanged=function(z){this.onFillColorChanged&&this.onFillColorChanged(z),this.stateChanged()},fe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var z=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),z.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(z)&&this.onStateChanged(this)}},fe.typeName="MarkerBase",fe}(),R=function(){function fe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return fe.prototype.findGripByVisual=function(z){return this.topLeft.ownsTarget(z)?this.topLeft:this.topCenter.ownsTarget(z)?this.topCenter:this.topRight.ownsTarget(z)?this.topRight:this.centerLeft.ownsTarget(z)?this.centerLeft:this.centerRight.ownsTarget(z)?this.centerRight:this.bottomLeft.ownsTarget(z)?this.bottomLeft:this.bottomCenter.ownsTarget(z)?this.bottomCenter:this.bottomRight.ownsTarget(z)?this.bottomRight:void 0},fe}(),N=function(){function fe(){this.GRIP_SIZE=10,this.visual=u.createGroup(),this.visual.appendChild(u.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(u.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return fe.prototype.ownsTarget=function(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},fe}(),k=function(){function fe(){}return fe.toITransformMatrix=function(z){return{a:z.a,b:z.b,c:z.c,d:z.d,e:z.e,f:z.f}},fe.toSVGMatrix=function(z,X){return z.a=X.a,z.b=X.b,z.c=X.c,z.d=X.d,z.e=X.e,z.f=X.f,z},fe}(),L=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(u.createTransform()),ne.setupControlBox(),ne}return Z(z,fe),Object.defineProperty(z.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"visual",{get:function(){return this._visual},set:function(X){this._visual=X;var de=u.createTransform();this._visual.transform.baseVal.appendItem(de)},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function(X){return!!fe.prototype.ownsTarget.call(this,X)||!!(this.controlGrips.findGripByVisual(X)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(X))},z.prototype.pointerDown=function(X,de){fe.prototype.pointerDown.call(this,X,de),this.state==="new"&&(this.left=X.x,this.top=X.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ce=this.unrotatePoint(X);if(this.manipulationStartX=Ce.x,this.manipulationStartY=Ce.y,this.offsetX=Ce.x-this.left,this.offsetY=Ce.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(de),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(de)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var re=this.container.transform.baseVal.getItem(0);re.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(re,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},z.prototype.pointerUp=function(X){var de=this.state;fe.prototype.pointerUp.call(this,X),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(X),this._state="select",de==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},z.prototype.moveVisual=function(X){this.visual.style.transform="translate("+X.x+"px, "+X.y+"px)"},z.prototype.manipulate=function(X){var de=this.unrotatePoint(X);this.state==="creating"?this.resize(X):this.state==="move"?(this.left=this.manipulationStartLeft+(de.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(de.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(de):this.state==="rotate"&&this.rotate(X)},z.prototype.resize=function(X){var de=this.manipulationStartLeft,Ce=this.manipulationStartWidth,ne=this.manipulationStartTop,re=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:de=this.manipulationStartLeft+X.x-this.manipulationStartX,Ce=this.manipulationStartWidth+this.manipulationStartLeft-de;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ce=this.manipulationStartWidth+X.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+X.y-this.manipulationStartY,re=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:re=this.manipulationStartHeight+X.y-this.manipulationStartY}Ce>=0?(this.left=de,this.width=Ce):(this.left=de+Ce,this.width=-Ce),re>=0?(this.top=ne,this.height=re):(this.top=ne+re,this.height=-re),this.setSize()},z.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},z.prototype.rotate=function(X){if(Math.abs(X.x-this.centerX)>.1){var de=Math.sign(X.x-this.centerX);this.rotationAngle=180*Math.atan((X.y-this.centerY)/(X.x-this.centerX))/Math.PI+90*de,this.applyRotation()}},z.prototype.applyRotation=function(){var X=this.container.transform.baseVal.getItem(0);X.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(X,0)},z.prototype.rotatePoint=function(X){if(this.rotationAngle===0)return X;var de=this.container.getCTM(),Ce=u.createPoint(X.x,X.y);return{x:(Ce=Ce.matrixTransform(de)).x,y:Ce.y}},z.prototype.unrotatePoint=function(X){if(this.rotationAngle===0)return X;var de=this.container.getCTM();de=de.inverse();var Ce=u.createPoint(X.x,X.y);return{x:(Ce=Ce.matrixTransform(de)).x,y:Ce.y}},z.prototype.select=function(){fe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){fe.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=u.createGroup();var X=u.createTransform();X.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(X),this.container.appendChild(this.controlBox),this.controlRect=u.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=u.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 R,this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){var X=this.controlBox.transform.baseVal.getItem(0);X.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(X,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()},z.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()},z.prototype.createGrip=function(){var X=new N;return X.visual.transform.baseVal.appendItem(u.createTransform()),this.controlBox.appendChild(X.visual),X},z.prototype.positionGrips=function(){var X=this.controlGrips.topLeft.GRIP_SIZE,de=-X/2,Ce=de,ne=(this.width+this.CB_DISTANCE)/2-X/2,re=(this.height+this.CB_DISTANCE)/2-X/2,he=this.height+this.CB_DISTANCE-X/2,_e=this.width+this.CB_DISTANCE-X/2;this.positionGrip(this.controlGrips.topLeft.visual,de,Ce),this.positionGrip(this.controlGrips.topCenter.visual,ne,Ce),this.positionGrip(this.controlGrips.topRight.visual,_e,Ce),this.positionGrip(this.controlGrips.centerLeft.visual,de,re),this.positionGrip(this.controlGrips.centerRight.visual,_e,re),this.positionGrip(this.controlGrips.bottomLeft.visual,de,he),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,he),this.positionGrip(this.controlGrips.bottomRight.visual,_e,he),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,Ce-3*this.CB_DISTANCE)},z.prototype.positionGrip=function(X,de,Ce){var ne=X.transform.baseVal.getItem(0);ne.setTranslate(de,Ce),X.transform.baseVal.replaceItem(ne,0)},z.prototype.hideControlBox=function(){this.controlBox.style.display="none"},z.prototype.showControlBox=function(){this.controlBox.style.display=""},z.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:k.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:k.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},fe.prototype.getState.call(this))},z.prototype.restoreState=function(X){fe.prototype.restoreState.call(this,X);var de=X;this.left=de.left,this.top=de.top,this.width=de.width,this.height=de.height,this.rotationAngle=de.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(k.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,de.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(k.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,de.containerTransformMatrix))},z.prototype.scale=function(X,de){fe.prototype.scale.call(this,X,de);var Ce=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:Ce.x*X,y:Ce.y*de});this.left=ne.x,this.top=ne.y,this.width=this.width*X,this.height=this.height*de,this.adjustControlBox()},z}(I),H=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return Z(z,fe),z.prototype.ownsTarget=function(X){return!(!fe.prototype.ownsTarget.call(this,X)&&X!==this.visual)},z.prototype.createVisual=function(){this.visual=u.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)},z.prototype.pointerDown=function(X,de){fe.prototype.pointerDown.call(this,X,de),this.state==="new"&&(this.createVisual(),this.moveVisual(X),this._state="creating")},z.prototype.manipulate=function(X){fe.prototype.manipulate.call(this,X)},z.prototype.resize=function(X){fe.prototype.resize.call(this,X),this.setSize()},z.prototype.setSize=function(){fe.prototype.setSize.call(this),u.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(X){fe.prototype.pointerUp.call(this,X),this.setSize()},z.prototype.setStrokeColor=function(X){this.strokeColor=X,this.visual&&u.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(X),this.stateChanged()},z.prototype.setFillColor=function(X){this.fillColor=X,this.visual&&u.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},z.prototype.setStrokeWidth=function(X){this.strokeWidth=X,this.visual&&u.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(X){this.strokeDasharray=X,this.visual&&u.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},fe.prototype.getState.call(this))},z.prototype.restoreState=function(X){var de=X;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.opacity=de.opacity,this.createVisual(),fe.prototype.restoreState.call(this,X),this.setSize()},z.prototype.scale=function(X,de){fe.prototype.scale.call(this,X,de),this.setSize()},z.title="Rectangle marker",z}(L),D=function(fe){function z(X,de,Ce,ne){var re=fe.call(this,X,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return re.widths=[],re.widthBoxes=[],re.widths=de,re.currentWidth=Ce,re.setCurrentWidth=re.setCurrentWidth.bind(re),re}return Z(z,fe),z.prototype.getUi=function(){var X=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",this.widths.forEach(function(Ce){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=Ce===X.currentWidth?X.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){X.setCurrentWidth(Ce,ne)}),de.appendChild(ne);var re=document.createElement("div");re.innerText=Ce.toString(),re.style.marginRight="5px",ne.appendChild(re);var he=document.createElement("div");he.style.minHeight="20px",he.style.flexGrow="2",he.style.display="flex",he.style.alignItems="center";var _e=document.createElement("hr");_e.style.minWidth="20px",_e.style.border="0px",_e.style.borderTop=Ce+"px solid "+X.uiStyleSettings.toolboxColor,_e.style.flexGrow="2",he.appendChild(_e),ne.appendChild(he),X.widthBoxes.push(ne)}),de},z.prototype.setCurrentWidth=function(X,de){var Ce=this;this.currentWidth=X,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===de?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},z}(E),V=function(fe){function z(X,de,Ce,ne){var re=fe.call(this,X,ne||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return re.styles=[],re.styleBoxes=[],re.styles=de,re.currentStyle=Ce,re.setCurrentStyle=re.setCurrentStyle.bind(re),re}return Z(z,fe),z.prototype.getUi=function(){var X=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",this.styles.forEach(function(Ce){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/X.styles.length-5+"%",ne.style.borderColor=Ce===X.currentStyle?X.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){X.setCurrentStyle(Ce,ne)}),de.appendChild(ne);var re=document.createElement("div");re.style.minHeight="20px",re.style.flexGrow="2",re.style.overflow="hidden";var he=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+X.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ce!==""?'stroke-dasharray="'+Ce+'"':"")+` />
</svg>`;re.innerHTML=he,ne.appendChild(re),X.styleBoxes.push(ne)}),de},z.prototype.setCurrentStyle=function(X,de){var Ce=this;this.currentStyle=X,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===de?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},z}(E),P=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.strokeColor=Ce.defaultColor,ne.strokeWidth=Ce.defaultStrokeWidth,ne.strokeDasharray=Ce.defaultStrokeDasharray,ne.strokePanel=new T("Line color",Ce.defaultColorSet,Ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new D("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new V("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Z(z,fe),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var X=fe.prototype.getState.call(this);return X.typeName=z.typeName,X},z.typeName="FrameMarker",z.title="Frame marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',z}(H),U=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"},G=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return Z(z,fe),z.prototype.ownsTarget=function(X){return!!fe.prototype.ownsTarget.call(this,X)||!(!this.grip1.ownsTarget(X)&&!this.grip2.ownsTarget(X))},z.prototype.pointerDown=function(X,de){fe.prototype.pointerDown.call(this,X,de),this.manipulationStartX=X.x,this.manipulationStartY=X.y,this.state==="new"&&(this.x1=X.x,this.y1=X.y,this.x2=X.x,this.y2=X.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(de)?this.activeGrip=this.grip1:this.grip2.ownsTarget(de)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},z.prototype.pointerUp=function(X){var de=this.state;fe.prototype.pointerUp.call(this,X),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(X),this._state="select",de==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},z.prototype.adjustVisual=function(){},z.prototype.manipulate=function(X){this.state==="creating"?this.resize(X):this.state==="move"?(this.x1=this.manipulationStartX1+X.x-this.manipulationStartX,this.y1=this.manipulationStartY1+X.y-this.manipulationStartY,this.x2=this.manipulationStartX2+X.x-this.manipulationStartX,this.y2=this.manipulationStartY2+X.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(X)},z.prototype.resize=function(X){switch(this.activeGrip){case this.grip1:this.x1=X.x,this.y1=X.y;break;case this.grip2:case void 0:this.x2=X.x,this.y2=X.y}this.adjustVisual(),this.adjustControlBox()},z.prototype.select=function(){fe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){fe.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=u.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){this.positionGrips()},z.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},z.prototype.createGrip=function(){var X=new N;return X.visual.transform.baseVal.appendItem(u.createTransform()),this.controlBox.appendChild(X.visual),X},z.prototype.positionGrips=function(){var X=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-X/2,this.y1-X/2),this.positionGrip(this.grip2.visual,this.x2-X/2,this.y2-X/2)},z.prototype.positionGrip=function(X,de,Ce){var ne=X.transform.baseVal.getItem(0);ne.setTranslate(de,Ce),X.transform.baseVal.replaceItem(ne,0)},z.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},fe.prototype.getState.call(this))},z.prototype.restoreState=function(X){fe.prototype.restoreState.call(this,X);var de=X;this.x1=de.x1,this.y1=de.y1,this.x2=de.x2,this.y2=de.y2},z.prototype.scale=function(X,de){fe.prototype.scale.call(this,X,de),this.x1=this.x1*X,this.y1=this.y1*de,this.x2=this.x2*X,this.y2=this.y2*de,this.adjustVisual(),this.adjustControlBox()},z}(I),J=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=Ce.defaultColor,ne.strokeWidth=Ce.defaultStrokeWidth,ne.strokeDasharray=Ce.defaultStrokeDasharray,ne.strokePanel=new T("Line color",Ce.defaultColorSet,Ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new D("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new V("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Z(z,fe),z.prototype.ownsTarget=function(X){return!(!fe.prototype.ownsTarget.call(this,X)&&X!==this.visual&&X!==this.selectorLine&&X!==this.visibleLine)},z.prototype.createVisual=function(){this.visual=u.createGroup(),this.selectorLine=u.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=u.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)},z.prototype.pointerDown=function(X,de){fe.prototype.pointerDown.call(this,X,de),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},z.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()),u.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),u.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),u.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setStrokeColor=function(X){this.strokeColor=X,this.adjustVisual(),this.colorChanged(X)},z.prototype.setStrokeWidth=function(X){this.strokeWidth=X,this.adjustVisual()},z.prototype.setStrokeDasharray=function(X){this.strokeDasharray=X,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var X=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},fe.prototype.getState.call(this));return X.typeName=z.typeName,X},z.prototype.restoreState=function(X){fe.prototype.restoreState.call(this,X);var de=X;this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.createVisual(),this.adjustVisual()},z.typeName="LineMarker",z.title="Line marker",z.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',z}(G),ee=function(fe){function z(X,de,Ce,ne){var re=fe.call(this,X,ne||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return re.fonts=[],re.fontBoxes=[],re.fonts=de,re.currentFont=Ce,re.setCurrentFont=re.setCurrentFont.bind(re),re}return Z(z,fe),z.prototype.getUi=function(){var X=this,de=document.createElement("div");return de.style.overflow="hidden",de.style.flexGrow="2",this.fonts.forEach(function(Ce){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/X.fonts.length-5+"%",ne.style.borderColor=Ce===X.currentFont?X.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){X.setCurrentFont(Ce,ne)}),de.appendChild(ne);var re=document.createElement("div");re.style.display="flex",re.style.minHeight="20px",re.style.flexGrow="2",re.style.fontFamily=Ce,re.style.overflow="hidden";var he=document.createElement("div");he.style.whiteSpace="nowrap",he.style.overflow="hidden",he.style.textOverflow="ellipsis",he.innerHTML="The quick brown fox jumps over the lazy dog",re.appendChild(he),ne.appendChild(re),X.fontBoxes.push(ne)}),de},z.prototype.setCurrentFont=function(X,de){var Ce=this;this.currentFont=X,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===de?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},z}(E),ae=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=Ce.defaultColor,ne.fontFamily=Ce.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new T("Color",Ce.defaultColorSet,Ce.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new ee("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return Z(z,fe),z.prototype.ownsTarget=function(X){if(fe.prototype.ownsTarget.call(this,X)||X===this.visual||X===this.textElement||X===this.bgRectangle)return!0;var de=!1;return this.textElement.childNodes.forEach(function(Ce){Ce===X&&(de=!0)}),de},z.prototype.createVisual=function(){this.visual=u.createGroup(),this.bgRectangle=u.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=u.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(u.createTransform()),this.textElement.transform.baseVal.appendItem(u.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},z.prototype.pointerDown=function(X,de){fe.prototype.pointerDown.call(this,X,de),this.isMoved=!1,this.pointerDownPoint=X,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(X),this._state="creating")},z.prototype.renderText=function(){var X=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(de){X.textElement.appendChild(u.createTSpan(de.trim()===""?" ":de.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},z.prototype.getTextScale=function(){var X=this.textElement.getBBox(),de=1;if(X.width>0&&X.height>0){var Ce=(1*this.width-this.width*this.padding*2/100)/X.width,ne=(1*this.height-this.height*this.padding*2/100)/X.height;de=Math.min(Ce,ne)}return de},z.prototype.getTextPosition=function(X){var de=this.textElement.getBBox(),Ce=0,ne=0;return de.width>0&&de.height>0&&(Ce=(this.width-de.width*X)/2,ne=this.height/2-de.height*X/2),{x:Ce,y:ne}},z.prototype.sizeText=function(){var X=this.textElement.getBBox(),de=this.getTextScale(),Ce=this.getTextPosition(de);Ce.y-=X.y*de,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ce.x+"px, "+Ce.y+"px) scale("+de+", "+de+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ce.x,Ce.y),this.textElement.transform.baseVal.getItem(1).setScale(de,de))},z.prototype.manipulate=function(X){fe.prototype.manipulate.call(this,X),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(X.x-this.pointerDownPoint.x)>5||Math.abs(X.y-this.pointerDownPoint.y)>5)},z.prototype.resize=function(X){fe.prototype.resize.call(this,X),this.isMoved=!0,this.setSize(),this.sizeText()},z.prototype.setSize=function(){fe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(u.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),u.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},z.prototype.pointerUp=function(X){var de=this.state;de==="creating"&&(this._suppressMarkerCreateEvent=!0),fe.prototype.pointerUp.call(this,X),this.setSize(),(de==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},z.prototype.showTextEditor=function(){var X=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(de){de.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var de=Number.parseFloat(X.textEditor.style.fontSize);X.textEditor.clientWidth>=Number.parseInt(X.textEditor.style.maxWidth)&&de>.9;)de-=.1,X.textEditor.style.fontSize=Math.max(de,.9)+"em"}),this.textEditor.addEventListener("keyup",function(de){de.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(de){if(de.clipboardData){var Ce=de.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(Ce)),de.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){X.textEditDivClicked(X.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},z.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var X=this.getTextScale(),de=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ce=this.textElement.getBBox(),ne={x:Ce.width*X,y:Ce.height*X};de.x-=ne.x/2,de.y-=ne.y/2,this.textEditor.style.top=de.y+"px",this.textEditor.style.left=de.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-de.x+"px",this.textEditor.style.fontSize=Math.max(16*X,12)+"px",this.textElement.style.display="none"}},z.prototype.textEditDivClicked=function(X){this.text=X.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},z.prototype.select=function(){fe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},z.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),fe.prototype.deselect.call(this)},z.prototype.dblClick=function(X,de){fe.prototype.dblClick.call(this,X,de),this.showTextEditor()},z.prototype.setColor=function(X){this.textElement&&u.setAttributes(this.textElement,[["fill",X]]),this.color=X,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(X)},z.prototype.setFont=function(X){this.textElement&&u.setAttributes(this.textElement,[["font-family",X]]),this.fontFamily=X,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},z.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},z.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var X=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},fe.prototype.getState.call(this));return X.typeName=z.typeName,X},z.prototype.restoreState=function(X){var de=X;this.color=de.color,this.fontFamily=de.fontFamily,this.padding=de.padding,this.text=de.text,this.createVisual(),fe.prototype.restoreState.call(this,X),this.setSize()},z.prototype.scale=function(X,de){fe.prototype.scale.call(this,X,de),this.setSize(),this.sizeText(),this.positionTextEditor()},z.typeName="TextMarker",z.title="Text marker",z.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>',z}(L),oe=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=Ce.defaultColor,ne.lineWidth=Ce.defaultStrokeWidth,ne.pixelRatio=Ce.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new T("Color",Ce.defaultColorSet,Ce.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new D("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return Z(z,fe),z.prototype.ownsTarget=function(X){return!(!fe.prototype.ownsTarget.call(this,X)&&X!==this.visual&&X!==this.drawingImage)},z.prototype.createVisual=function(){this.visual=u.createGroup(),this.drawingImage=u.createImage(),this.visual.appendChild(this.drawingImage);var X=u.createTransform();this.visual.transform.baseVal.appendItem(X),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(X,de){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(X.x,X.y),this.drawing=!0):fe.prototype.pointerDown.call(this,X,de)},z.prototype.manipulate=function(X){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(X.x,X.y),this.canvasContext.stroke()):fe.prototype.manipulate.call(this,X)},z.prototype.resize=function(X){fe.prototype.resize.call(this,X),u.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),u.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(X){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):fe.prototype.pointerUp.call(this,X)},z.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)},z.prototype.select=function(){this.state==="creating"&&this.finishCreation(),fe.prototype.select.call(this)},z.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),fe.prototype.deselect.call(this)},z.prototype.finishCreation=function(){for(var X=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),de=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ce=de[0],ne=de[1],re=de[2],he=de[3],_e=!1,Be=0;Be<this.canvasElement.height;Be++)for(var Ue=0;Ue<this.canvasElement.width;Ue++)X.data[Be*this.canvasElement.width*4+4*Ue+3]>0&&(_e=!0,Be<ne&&(ne=Be),Ue<Ce&&(Ce=Ue),Be>he&&(he=Be),Ue>re&&(re=Ue));if(_e){this.left=Ce/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(re-Ce)/this.pixelRatio,this.height=(he-ne)/this.pixelRatio;var rt=document.createElement("canvas");rt.width=re-Ce,rt.height=he-ne,rt.getContext("2d").putImageData(this.canvasContext.getImageData(Ce,ne,re-Ce,he-ne),0,0),this.drawingImgUrl=rt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},z.prototype.setDrawingImage=function(){u.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),u.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},z.prototype.setColor=function(X){this.color=X,this.colorChanged(X)},z.prototype.setLineWidth=function(X){this.lineWidth=X},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var X=Object.assign({drawingImgUrl:this.drawingImgUrl},fe.prototype.getState.call(this));return X.typeName=z.typeName,X},z.prototype.restoreState=function(X){this.createVisual(),fe.prototype.restoreState.call(this,X),this.drawingImgUrl=X.drawingImgUrl,this.setDrawingImage()},z.prototype.scale=function(X,de){fe.prototype.scale.call(this,X,de),this.setDrawingImage()},z.typeName="FreehandMarker",z.title="Freehand marker",z.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>',z}(L),ue=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,Ce||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ne.typeBoxes=[],ne.currentType=de,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return Z(z,fe),z.prototype.getUi=function(){var X=this,de=document.createElement("div");de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2";for(var Ce=function(he){var _e="both";switch(he){case 0:_e="both";break;case 1:_e="start";break;case 2:_e="end";break;case 3:_e="none"}var Be=document.createElement("div");if(Be.style.display="flex",Be.style.flexGrow="2",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=_e===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){X.setCurrentType(_e,Be)}),de.appendChild(Be),_e==="both"||_e==="start"){var Ue=document.createElement("div");Ue.style.display="flex",Ue.style.alignItems="center",Ue.style.minHeight="20px",Ue.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ue.style.marginLeft="5px",Be.appendChild(Ue)}var rt=document.createElement("div");rt.style.display="flex",rt.style.alignItems="center",rt.style.minHeight="20px",rt.style.flexGrow="2";var et=document.createElement("hr");if(et.style.minWidth="20px",et.style.border="0px",et.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),et.style.flexGrow="2",rt.appendChild(et),Be.appendChild(rt),_e==="both"||_e==="end"){var dt=document.createElement("div");dt.style.display="flex",dt.style.alignItems="center",dt.style.minHeight="20px",dt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,dt.style.marginRight="5px",Be.appendChild(dt)}ne.typeBoxes.push(Be)},ne=this,re=0;re<4;re++)Ce(re);return de},z.prototype.setCurrentType=function(X,de){var Ce=this;this.currentType=X,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===de?Ce.uiStyleSettings!==void 0?Ce.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},z}(E),se=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new ue("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return Z(z,fe),z.prototype.ownsTarget=function(X){return!(!fe.prototype.ownsTarget.call(this,X)&&X!==this.arrow1&&X!==this.arrow2)},z.prototype.getArrowPoints=function(X,de){var Ce=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return X-Ce/2+","+(de+ne/2)+" "+X+","+(de-ne/2)+" "+(X+Ce/2)+","+(de+ne/2)},z.prototype.createTips=function(){this.arrow1=u.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(u.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=u.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(u.createTransform()),this.visual.appendChild(this.arrow2)},z.prototype.pointerDown=function(X,de){fe.prototype.pointerDown.call(this,X,de),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(fe.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",u.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),u.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var X=0;Math.abs(this.x1-this.x2)>.1&&(X=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var de=this.arrow1.transform.baseVal.getItem(0);de.setRotate(X,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(de,0);var Ce=this.arrow2.transform.baseVal.getItem(0);Ce.setRotate(X+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ce,0)}},z.prototype.setArrowType=function(X){this.arrowType=X,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var X=Object.assign({arrowType:this.arrowType},fe.prototype.getState.call(this));return X.typeName=z.typeName,X},z.prototype.restoreState=function(X){fe.prototype.restoreState.call(this,X);var de=X;this.arrowType=de.arrowType,this.createTips(),this.adjustVisual()},z.typeName="ArrowMarker",z.title="Arrow marker",z.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',z}(J),ye=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.fillColor=Ce.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new T("Color",Ce.defaultColorSet,Ce.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return Z(z,fe),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var X=fe.prototype.getState.call(this);return X.typeName=z.typeName,X},z.typeName="CoverMarker",z.title="Cover marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',z}(H),ve=function(fe){function z(X,de,Ce,ne){var re=fe.call(this,X,ne||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return re.opacities=[],re.opacityBoxes=[],re.opacities=de,re.currentOpacity=Ce,re.setCurrentOpacity=re.setCurrentOpacity.bind(re),re}return Z(z,fe),z.prototype.getUi=function(){var X=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",de.style.justifyContent="space-between",this.opacities.forEach(function(Ce){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=Ce===X.currentOpacity?X.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){X.setCurrentOpacity(Ce,ne)}),de.appendChild(ne);var re=document.createElement("div");re.innerText=100*Ce+"%",ne.appendChild(re),X.opacityBoxes.push(ne)}),de},z.prototype.setCurrentOpacity=function(X,de){var Ce=this;this.currentOpacity=X,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===de?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},z}(E),Re=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=Ce.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=Ce.defaultHighlightOpacity,ne.fillPanel=new T("Color",Ce.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new ve("Opacity",Ce.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return Z(z,fe),z.prototype.setOpacity=function(X){this.opacity=X,this.visual&&u.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var X=fe.prototype.getState.call(this);return X.typeName=z.typeName,X},z.typeName="HighlightMarker",z.title="Highlight marker",z.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>',z}(ye),le='<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>',xe='<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>',pe=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=Ce.defaultStrokeColor,ne.bgColor=Ce.defaultFillColor,ne.fontFamily=Ce.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new T("Text color",Ce.defaultColorSet,ne.color,le),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new T("Fill color",Ce.defaultColorSet,ne.bgColor,xe),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new ee("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new N,ne.tipGrip.visual.transform.baseVal.appendItem(u.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return Z(z,fe),z.prototype.ownsTarget=function(X){return fe.prototype.ownsTarget.call(this,X)||this.tipGrip.ownsTarget(X)||this.tip===X},z.prototype.createTip=function(){u.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=u.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},z.prototype.pointerDown=function(X,de){this.state==="new"&&fe.prototype.pointerDown.call(this,X,de),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(de)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):fe.prototype.pointerDown.call(this,X,de)},z.prototype.pointerUp=function(X){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,fe.prototype.pointerUp.call(this,X);else{var de=this.state==="creating";fe.prototype.pointerUp.call(this,X),this.setTipPoints(de),this.positionTip()}},z.prototype.manipulate=function(X){if(this.tipMoving){var de=this.unrotatePoint(X);this.tipPosition={x:de.x-this.manipulationStartLeft,y:de.y-this.manipulationStartTop},this.positionTip()}else fe.prototype.manipulate.call(this,X)},z.prototype.setBgColor=function(X){this.bgRectangle&&this.tip&&(u.setAttributes(this.bgRectangle,[["fill",X]]),u.setAttributes(this.tip,[["fill",X]])),this.bgColor=X,this.fillColorChanged(X)},z.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},z.prototype.setTipPoints=function(X){X===void 0&&(X=!1);var de=Math.min(this.height/2,15),Ce=this.height/5;X&&(this.tipPosition={x:de+Ce/2,y:this.height+20});var ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ce=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:de,y:0},this.tipBase2Position={x:de+Ce,y:0}):(this.tipBase1Position={x:0,y:de},this.tipBase2Position={x:0,y:de+Ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ce=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-de-Ce,y:0},this.tipBase2Position={x:this.width-de,y:0}):(this.tipBase1Position={x:this.width,y:de},this.tipBase2Position={x:this.width,y:de+Ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ne<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ce=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-de-Ce,y:this.height},this.tipBase2Position={x:this.width-de,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-de-Ce},this.tipBase2Position={x:this.width,y:this.height-de}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ce=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:de,y:this.height},this.tipBase2Position={x:de+Ce,y:this.height}):(this.tipBase1Position={x:0,y:this.height-de},this.tipBase2Position={x:0,y:this.height-de-Ce})},z.prototype.resize=function(X){fe.prototype.resize.call(this,X),this.positionTip()},z.prototype.positionTip=function(){u.setAttributes(this.tip,[["points",this.getTipPoints()]]);var X=this.tipGrip.visual.transform.baseVal.getItem(0);X.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(X,0)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.select=function(){this.positionTip(),fe.prototype.select.call(this)},z.prototype.getState=function(){var X=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},fe.prototype.getState.call(this));return X.typeName=z.typeName,X},z.prototype.restoreState=function(X){var de=X;this.bgColor=de.bgColor,this.tipPosition=de.tipPosition,fe.prototype.restoreState.call(this,X),this.createTip(),this.setTipPoints()},z.prototype.scale=function(X,de){fe.prototype.scale.call(this,X,de),this.tipPosition={x:this.tipPosition.x*X,y:this.tipPosition.y*de},this.positionTip()},z.typeName="CalloutMarker",z.title="Callout marker",z.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>',z}(ae),Me=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=Ce.defaultColor,ne.strokeWidth=Ce.defaultStrokeWidth,ne.strokeDasharray=Ce.defaultStrokeDasharray,ne.fillColor=Ce.defaultFillColor,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.setOpacity=ne.setOpacity.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.strokePanel=new T("Line color",A(Ce.defaultColorSet,["transparent"]),Ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new T("Fill color",A(Ce.defaultColorSet,["transparent"]),ne.fillColor,xe),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new D("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new V("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new ve("Opacity",Ce.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return Z(z,fe),z.prototype.ownsTarget=function(X){return!(!fe.prototype.ownsTarget.call(this,X)&&X!==this.visual)},z.prototype.createVisual=function(){this.visual=u.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)},z.prototype.pointerDown=function(X,de){fe.prototype.pointerDown.call(this,X,de),this.state==="new"&&(this.createVisual(),this.moveVisual(X),this._state="creating")},z.prototype.manipulate=function(X){fe.prototype.manipulate.call(this,X)},z.prototype.resize=function(X){fe.prototype.resize.call(this,X),this.setSize()},z.prototype.setSize=function(){fe.prototype.setSize.call(this),u.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},z.prototype.pointerUp=function(X){fe.prototype.pointerUp.call(this,X),this.setSize()},z.prototype.setStrokeColor=function(X){this.strokeColor=X,this.visual&&u.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(X),this.stateChanged()},z.prototype.setFillColor=function(X){this.fillColor=X,this.visual&&u.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(X),this.stateChanged()},z.prototype.setStrokeWidth=function(X){this.strokeWidth=X,this.visual&&u.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(X){this.strokeDasharray=X,this.visual&&u.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.setOpacity=function(X){this.opacity=X,this.visual&&u.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var X=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},fe.prototype.getState.call(this));return X.typeName=z.typeName,X},z.prototype.restoreState=function(X){var de=X;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.opacity=de.opacity,this.createVisual(),fe.prototype.restoreState.call(this,X),this.setSize()},z.prototype.scale=function(X,de){fe.prototype.scale.call(this,X,de),this.setSize()},z.typeName="EllipseMarker",z.title="Ellipse marker",z.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>',z}(L),Oe=function(fe){function z(X,de,Ce){return fe.call(this,X,de,Ce)||this}return Z(z,fe),Object.defineProperty(z.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function(X){return!(!fe.prototype.ownsTarget.call(this,X)&&X!==this.tip1&&X!==this.tip2)},z.prototype.createTips=function(){this.tip1=u.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(u.createTransform()),this.visual.appendChild(this.tip1),this.tip2=u.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(u.createTransform()),this.visual.appendChild(this.tip2)},z.prototype.pointerDown=function(X,de){fe.prototype.pointerDown.call(this,X,de),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(fe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(u.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()]]),u.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 X=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),de=this.tip1.transform.baseVal.getItem(0);de.setRotate(X,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(de,0);var Ce=this.tip2.transform.baseVal.getItem(0);Ce.setRotate(X+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ce,0)}},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var X=fe.prototype.getState.call(this);return X.typeName=z.typeName,X},z.prototype.restoreState=function(X){fe.prototype.restoreState.call(this,X),this.createTips(),this.adjustVisual()},z.typeName="MeasurementMarker",z.title="Measurement marker",z.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>',z}(J),Le=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.strokePanel.colors=Ce.defaultColorSet,ne.fillColor="transparent",ne}return Z(z,fe),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var X=fe.prototype.getState.call(this);return X.typeName=z.typeName,X},z.typeName="EllipseFrameMarker",z.title="Ellipse frame marker",z.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>',z}(Me),Pe=function(){function fe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(fe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),fe.prototype.addUndoStep=function(z){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(z)||(this.undoStack.push(z),JSON.stringify(this.lastRedoStep)!==JSON.stringify(z)&&this.redoStack.splice(0,this.redoStack.length))},fe.prototype.replaceLastUndoStep=function(z){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=z)},fe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},fe.prototype.undo=function(){if(this.undoStack.length>1){var z=this.undoStack.pop();return z!==void 0&&this.redoStack.push(z),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},fe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},fe}(),De=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=Ce.defaultColor,ne.strokeWidth=Ce.defaultStrokeWidth,ne.strokeDasharray=Ce.defaultStrokeDasharray,ne.strokePanel=new T("Line color",Ce.defaultColorSet,Ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new D("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new V("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Z(z,fe),z.prototype.ownsTarget=function(X){return!(!fe.prototype.ownsTarget.call(this,X)&&X!==this.visual&&X!==this.selectorCurve&&X!==this.visibleCurve&&!this.curveGrip.ownsTarget(X))},z.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},z.prototype.createVisual=function(){this.visual=u.createGroup(),this.selectorCurve=u.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=u.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)},z.prototype.pointerDown=function(X,de){fe.prototype.pointerDown.call(this,X,de),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=X.x,this.curveY=X.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(de)&&(this.activeGrip=this.curveGrip,this._state="resize")},z.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),u.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),u.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),u.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setupControlBox=function(){fe.prototype.setupControlBox.call(this),this.curveControlLine1=u.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=u.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)},z.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,fe.prototype.addControlGrips.call(this)},z.prototype.positionGrips=function(){fe.prototype.positionGrips.call(this);var X=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-X/2,this.curveY-X/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()))},z.prototype.manipulate=function(X){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+X.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+X.y-this.manipulationStartY),fe.prototype.manipulate.call(this,X)},z.prototype.resize=function(X){this.activeGrip===this.curveGrip&&(this.curveX=X.x,this.curveY=X.y),fe.prototype.resize.call(this,X),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},z.prototype.setStrokeColor=function(X){this.strokeColor=X,this.adjustVisual(),this.colorChanged(X)},z.prototype.setStrokeWidth=function(X){this.strokeWidth=X,this.adjustVisual()},z.prototype.setStrokeDasharray=function(X){this.strokeDasharray=X,this.adjustVisual()},z.prototype.scale=function(X,de){this.curveX=this.curveX*X,this.curveY=this.curveY*de,fe.prototype.scale.call(this,X,de)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var X=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},fe.prototype.getState.call(this));return X.typeName=z.typeName,X},z.prototype.restoreState=function(X){fe.prototype.restoreState.call(this,X);var de=X;this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.curveX=de.curveX,this.curveY=de.curveY,this.createVisual(),this.adjustVisual()},z.typeName="CurveMarker",z.title="Curve marker",z.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>',z}(G),Ke=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,de,Ce)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=Ce.defaultColor,ne.strokeWidth=Ce.defaultStrokeWidth,ne.strokeDasharray=Ce.defaultStrokeDasharray,ne.fillColor=Ce.defaultFillColor,ne.textColor=Ce.defaultStrokeColor,ne.fontFamily=Ce.defaultFontFamily,ne.fontSize=Ce.defaultCaptionFontSize,ne.captionText=Ce.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new T("Line color",A(Ce.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new T("Fill color",A(Ce.defaultColorSet,["transparent"]),ne.fillColor,xe),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new D("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new V("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new ee("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new T("Text color",Ce.defaultColorSet,ne.textColor,le),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return Z(z,fe),z.prototype.ownsTarget=function(X){return!(!fe.prototype.ownsTarget.call(this,X)&&X!==this.visual&&X!==this.frame&&X!==this.captionBg&&X!==this.captionElement)},z.prototype.createVisual=function(){this.visual=u.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=u.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=u.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=u.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()},z.prototype.setCaptionText=function(X){this.captionText=X,this.captionElement.textContent=this.captionText,this.sizeCaption()},z.prototype.pointerDown=function(X,de){fe.prototype.pointerDown.call(this,X,de),this.isMoved=!1,this.pointerDownPoint=X,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(X),this._state="creating")},z.prototype.manipulate=function(X){fe.prototype.manipulate.call(this,X),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(X.x-this.pointerDownPoint.x)>5||Math.abs(X.y-this.pointerDownPoint.y)>5)},z.prototype.resize=function(X){fe.prototype.resize.call(this,X),this.setSize()},z.prototype.sizeCaption=function(){var X=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=X.width+2*this.PADDING,this.captionBoxHeight=X.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),u.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')"]]),u.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')"]])},z.prototype.showTextEditor=function(){var X=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(de){de.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(de){de.key==="Enter"&&X.finishTextEditing(X.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(de){de.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){X.finishTextEditing(X.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){X.finishTextEditing(X.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},z.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"))},z.prototype.finishTextEditing=function(X){this.setCaptionText(X.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},z.prototype.setFont=function(X){this.captionElement&&u.setAttributes(this.captionElement,[["font-family",X]]),this.fontFamily=X,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},z.prototype.setTextColor=function(X){this.captionElement&&u.setAttributes(this.captionElement,[["fill",X]]),this.textColor=X,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},z.prototype.setSize=function(){fe.prototype.setSize.call(this),u.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},z.prototype.pointerUp=function(X){fe.prototype.pointerUp.call(this,X),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},z.prototype.dblClick=function(X,de){fe.prototype.dblClick.call(this,X,de),this.showTextEditor()},z.prototype.setStrokeColor=function(X){this.strokeColor=X,this.frame&&u.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(X),this.stateChanged()},z.prototype.setFillColor=function(X){this.fillColor=X,this.captionBg&&u.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(X),this.stateChanged()},z.prototype.setStrokeWidth=function(X){this.strokeWidth=X,this.frame&&u.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(X){this.strokeDasharray=X,this.frame&&u.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var X=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},fe.prototype.getState.call(this));return X.typeName=this.typeName,X},z.prototype.restoreState=function(X){var de=X;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.textColor=de.textColor,this.fontFamily=de.fontFamily,this.captionText=de.captionText,this.fontSize=de.fontSize,this.createVisual(),fe.prototype.restoreState.call(this,X),this.setSize()},z.prototype.scale=function(X,de){fe.prototype.scale.call(this,X,de),this.setSize()},z.typeName="CaptionFrameMarker",z.title="Caption frame marker",z.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>',z}(L),ze=function(){function fe(z,X){X===void 0&&(X=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=z,this.cancelable=X}return Object.defineProperty(fe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),fe.prototype.preventDefault=function(){this._defaultPrevented=!0},fe}(),it=function(fe){function z(X,de,Ce){var ne=fe.call(this,X,!1)||this;return ne.dataUrl=de,ne.state=Ce,ne}return Z(z,fe),z}(ze),ot=function(fe){function z(X,de,Ce){Ce===void 0&&(Ce=!1);var ne=fe.call(this,X,Ce)||this;return ne.marker=de,ne}return Z(z,fe),z}(ze),Ge=function(){function fe(){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 fe.prototype.addEventListener=function(z,X){this[z].push(X)},fe.prototype.removeEventListener=function(z,X){var de=this[z].indexOf(X);de>-1&&this[z].splice(de,1)},fe}(),Ee=function(){function fe(z){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new U,this._isOpen=!1,this.undoRedoManager=new Pe,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 Ge,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=fe.instanceCounter++,this.styles=new y(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=z,this.targetRoot=document.body,this.width=z.clientWidth,this.height=z.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(fe.prototype,"ALL_MARKER_TYPES",{get:function(){return[P,oe,se,ae,Le,Me,Re,pe,Oe,ye,J,De,Ke]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[P,oe,se,ae,Me,Re,pe]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[P,oe,se,ae,Re]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(z){var X=this;this._availableMarkerTypes.splice(0),z.forEach(function(de){if(typeof de=="string"){var Ce=X.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===de});Ce!==void 0&&X._availableMarkerTypes.push(Ce)}else X._availableMarkerTypes.push(de)})},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(z){this._zoomLevel=z,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(fe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),fe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),p.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},fe.prototype.show=function(){var z=this;this.styles.styleSheetRoot===void 0&&g.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=g.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(X){return X(new ze(z))})},fe.prototype.render=function(){return s(this,void 0,void 0,function(){var z;return C(this,function(X){switch(X.label){case 0:return this.setCurrentMarker(),(z=new b).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.markersOnly=this.renderMarkersOnly,z.width=this.renderWidth,z.height=this.renderHeight,[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return X.sent(),[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,X.sent()]}})})},fe.prototype.close=function(z){var X=this;if(z===void 0&&(z=!1),this.isOpen){var de=!1;z||this.eventListeners.beforeclose.forEach(function(Ce){var ne=new ze(X,!0);Ce(ne),ne.defaultPrevented&&(de=!0)}),de||(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(Ce){return Ce(new ze(X))}),this.detachEvents(),this._isOpen=!1)}},fe.prototype.addMarkersToToolbar=function(){for(var z,X=[],de=0;de<arguments.length;de++)X[de]=arguments[de];(z=this._availableMarkerTypes).push.apply(z,X)},fe.prototype.addRenderEventListener=function(z){this.addEventListener("render",function(X){z(X.dataUrl,X.state)})},fe.prototype.removeRenderEventListener=function(z){},fe.prototype.addCloseEventListener=function(z){this.addEventListener("close",function(){z()})},fe.prototype.removeCloseEventListener=function(z){},fe.prototype.setupResizeObserver=function(){var z=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){z.resize(z.target.clientWidth,z.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return z.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},fe.prototype.onPopupTargetResize=function(){var z=1*this.target.clientWidth/this.target.clientHeight,X=this.editorCanvas.clientWidth/z>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*z:this.editorCanvas.clientWidth,de=X<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/z;this.resize(X,de)},fe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},fe.prototype.resize=function(z,X){this._isResizing=!0;var de=z/this.imageWidth,Ce=X/this.imageHeight;this.imageWidth=Math.round(z),this.imageHeight=Math.round(X),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(de,Ce),this._isResizing=!1},fe.prototype.scaleMarkers=function(z,X){var de,Ce=this;this._currentMarker&&this._currentMarker instanceof ae?this._currentMarker.scale(z,X):(de=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==Ce._currentMarker&&ne.scale(z,X)}),de!==void 0&&this.setCurrentMarker(de)},fe.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"},fe.prototype.setTopLeft=function(){var z=this.editingTarget.getBoundingClientRect(),X=this.editorCanvas.getBoundingClientRect();this.left=z.left-X.left,this.top=z.top-X.top},fe.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)},fe.prototype.addDefs=function(){for(var z,X=[],de=0;de<arguments.length;de++)X[de]=arguments[de];this.defs=u.createDefs(),this.addDefsToImage(),(z=this.defs).append.apply(z,X)},fe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},fe.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)},fe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},fe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},fe.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)},fe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},fe.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)},fe.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 z=document.createElement("a");z.href="https://markerjs.com/",z.target="_blank",z.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>',z.title="Powered by marker.js",z.style.display="grid",z.style.alignItems="center",z.style.justifyItems="center",z.style.padding="3px",z.style.width="20px",z.style.height="20px",this.logoUI.appendChild(z),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},fe.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")},fe.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"},fe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},fe.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 z=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=z+"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 h(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 m(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},fe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},fe.prototype.removeMarker=function(z){this.markerImage.removeChild(z.container),this.markers.indexOf(z)>-1&&this.markers.splice(this.markers.indexOf(z),1),z.dispose()},fe.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())},fe.prototype.toolbarButtonClicked=function(z,X){if(z==="marker"&&X!==void 0)this.createNewMarker(X);else if(z==="action")switch(X){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()}},fe.prototype.deleteSelectedMarker=function(){var z=this;if(this._currentMarker!==void 0){var X=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ce){var ne=new ot(z,z._currentMarker,!0);Ce(ne),ne.defaultPrevented&&(X=!0)}),!X){var de=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(Ce){return Ce(new ot(z,de))})}}},fe.prototype.clear=function(){var z=this,X=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(re){var he=new ot(z,void 0,!0);re(he),he.defaultPrevented&&(X=!0)}),!X)){this.setCurrentMarker();for(var de=function(re){var he=Ce.markers[re];Ce.setCurrentMarker(Ce.markers[re]),Ce._currentMarker.dispose(),Ce.markerImage.removeChild(Ce._currentMarker.container),Ce.markers.splice(Ce.markers.indexOf(Ce._currentMarker),1),Ce.eventListeners.markerdelete.forEach(function(_e){return _e(new ot(z,he))})},Ce=this,ne=this.markers.length-1;ne>=0;ne--)de(ne);this.addUndoStep()}},Object.defineProperty(fe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),fe.prototype.showNotesEditor=function(){var z;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=(z=this._currentMarker.notes)!==null&&z!==void 0?z:"",this.overlayContainer.appendChild(this.notesArea))},fe.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)},fe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},fe.prototype.addUndoStep=function(){var z=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var X=this.getState(),de=this.undoRedoManager.getLastUndoStep();if(!de||de.width===X.width&&de.height===X.height){var Ce=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(X),Ce<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new ze(z))})}else this.undoRedoManager.replaceLastUndoStep(X),this.eventListeners.statechange.forEach(function(ne){return ne(new ze(z))})}},fe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},fe.prototype.undoStep=function(){var z=this,X=this.undoRedoManager.undo();X!==void 0&&(this.restoreState(X),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(de){return de(new ze(z))}))},fe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},fe.prototype.redoStep=function(){var z=this,X=this.undoRedoManager.redo();X!==void 0&&(this.restoreState(X),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(de){return de(new ze(z))}))},fe.prototype.stepZoom=function(){var z=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=z<this.zoomSteps.length-1?this.zoomSteps[z+1]:this.zoomSteps[0]},fe.prototype.panTo=function(z){this.contentDiv.scrollBy({left:this.prevPanPoint.x-z.x,top:this.prevPanPoint.y-z.y}),this.prevPanPoint=z},fe.prototype.startRenderAndClose=function(){return s(this,void 0,void 0,function(){var z,X,de=this;return C(this,function(Ce){switch(Ce.label){case 0:return[4,this.render()];case 1:return z=Ce.sent(),X=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new it(de,z,X))}),this.close(!0),[2]}})})},fe.prototype.getState=function(z){z===!0&&this.setCurrentMarker();var X={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(de){return X.markers.push(de.getState())}),X},fe.prototype.restoreState=function(z){var X=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);z.markers.forEach(function(de){var Ce=X._availableMarkerTypes.find(function(re){return re.typeName===de.typeName});if(Ce!==void 0){var ne=X.addNewMarker(Ce);ne.restoreState(de),X.markers.push(ne)}}),z.width&&z.height&&(z.width!==this.imageWidth||z.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/z.width,this.imageHeight/z.height),this.eventListeners.restorestate.forEach(function(de){return de(new ze(X))})},fe.prototype.addNewMarker=function(z){var X=u.createGroup();return this.markerImage.appendChild(X),new z(X,this.overlayContainer,this.settings)},fe.prototype.createNewMarker=function(z){var X,de=this;(X=typeof z=="string"?this._availableMarkerTypes.find(function(Ce){return Ce.typeName===z}):z)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(X),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(X.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ce){return Ce(new ot(de,de._currentMarker))}))},fe.prototype.markerCreated=function(z){var X=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(z),this.setCurrentMarker(z),z instanceof oe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(oe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(de){return de(new ot(X,X._currentMarker))})},fe.prototype.colorChanged=function(z){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=z,this.settings.defaultStrokeColor=z)},fe.prototype.fillColorChanged=function(z){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=z)},fe.prototype.markerStateChanged=function(z){var X=this;this.eventListeners.markerchange.forEach(function(de){return de(new ot(X,z))})},fe.prototype.setCurrentMarker=function(z){var X=this;this._currentMarker!==z&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(de){return de(new ot(X,X._currentMarker))})),this._currentMarker=z,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(de){return de(new ot(X,X._currentMarker))}))},fe.prototype.onPointerDown=function(z){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||z.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var X=this.markers.find(function(de){return de.ownsTarget(z.target)});X!==void 0?(this.setCurrentMarker(X),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(z.clientX,z.clientY),z.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:z.clientX,y:z.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(z.clientX,z.clientY))},fe.prototype.onDblClick=function(z){if(this._isFocused||this.focus(),this.mode==="select"){var X=this.markers.find(function(de){return de.ownsTarget(z.target)});X!==void 0&&X!==this._currentMarker&&this.setCurrentMarker(X),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(z.clientX,z.clientY),z.target):this.setCurrentMarker()}},fe.prototype.onPointerMove=function(z){this.touchPoints!==1&&z.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||z.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(z.clientX,z.clientY)):this.zoomLevel>1&&this.panTo({x:z.clientX,y:z.clientY}))},fe.prototype.onPointerUp=function(z){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(z.clientX,z.clientY)),this.isDragging=!1,this.addUndoStep()},fe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},fe.prototype.onKeyUp=function(z){this._currentMarker===void 0||this.notesArea!==void 0||z.key!=="Delete"&&z.key!=="Backspace"||this.deleteSelectedMarker()},fe.prototype.clientToLocalCoordinates=function(z,X){var de=this.markerImage.getBoundingClientRect();return{x:(z-de.left)/this.zoomLevel,y:(X-de.top)/this.zoomLevel}},fe.prototype.onWindowResize=function(){this.positionUI()},fe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"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()},fe.prototype.addLicenseKey=function(z){p.addKey(z)},fe.prototype.addEventListener=function(z,X){this.eventListeners.addEventListener(z,X)},fe.prototype.removeEventListener=function(z,X){this.eventListeners.removeEventListener(z,X)},fe.prototype.renderState=function(z){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(z),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(fe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),fe.prototype.focus=function(){var z=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(X){return X(new ze(z))}))},fe.prototype.blur=function(){var z=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(X){return X(new ze(z))}))},fe.instanceCounter=0,fe}()},67842:function(Ne){"use strict";var Q,S=59;Ne.exports=B;function B(Z){var s="&"+Z+";",C;return Q=Q||document.createElement("i"),Q.innerHTML=s,C=Q.textContent,C.charCodeAt(C.length-1)===S&&Z!=="semi"||C===s?!1:C}},12256:function(Ne,Q,S){"use strict";var B=S(47854),Z=S(80501),s=S(22347),C=S(65207),A=S(21127),u=S(67842);Ne.exports=Re;var p={}.hasOwnProperty,b=String.fromCharCode,g=Function.prototype,y={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},v=9,c=10,h=12,m=32,E=38,T=59,I=60,R=61,N=35,k=88,L=120,H=65533,D="named",V="hexadecimal",P="decimal",U={};U[V]=16,U[P]=10;var G={};G[D]=A,G[P]=s,G[V]=C;var J=1,ee=2,ae=3,oe=4,ue=5,se=6,ye=7,ve={};ve[J]="Named character references must be terminated by a semicolon",ve[ee]="Numeric character references must be terminated by a semicolon",ve[ae]="Named character references cannot be empty",ve[oe]="Numeric character references cannot be empty",ve[ue]="Named character references must be known",ve[se]="Numeric character references cannot be disallowed",ve[ye]="Numeric character references cannot be outside the permissible Unicode range";function Re(Me,Oe){var Le={},Pe,De;Oe||(Oe={});for(De in y)Pe=Oe[De],Le[De]=Pe==null?y[De]:Pe;return(Le.position.indent||Le.position.start)&&(Le.indent=Le.position.indent||[],Le.position=Le.position.start),le(Me,Le)}function le(Me,Oe){var Le=Oe.additional,Pe=Oe.nonTerminated,De=Oe.text,Ke=Oe.reference,ze=Oe.warning,it=Oe.textContext,ot=Oe.referenceContext,Ge=Oe.warningContext,Ee=Oe.position,fe=Oe.indent||[],z=Me.length,X=0,de=-1,Ce=Ee.column||1,ne=Ee.line||1,re="",he=[],_e,Be,Ue,rt,et,dt,Ot,pt,nt,ut,Tt,vt,Ct,Ft,Rt,$e,Zt,vn,wt;for(typeof Le=="string"&&(Le=Le.charCodeAt(0)),$e=Dn(),pt=ze?nr:g,X--,z++;++X<z;)if(et===c&&(Ce=fe[de]||1),et=Me.charCodeAt(X),et===E){if(Ot=Me.charCodeAt(X+1),Ot===v||Ot===c||Ot===h||Ot===m||Ot===E||Ot===I||Ot!==Ot||Le&&Ot===Le){re+=b(et),Ce++;continue}for(Ct=X+1,vt=Ct,wt=Ct,Ot===N?(wt=++vt,Ot=Me.charCodeAt(wt),Ot===k||Ot===L?(Ft=V,wt=++vt):Ft=P):Ft=D,_e="",Tt="",rt="",Rt=G[Ft],wt--;++wt<z&&(Ot=Me.charCodeAt(wt),!!Rt(Ot));)rt+=b(Ot),Ft===D&&p.call(B,rt)&&(_e=rt,Tt=B[rt]);Ue=Me.charCodeAt(wt)===T,Ue&&(wt++,Be=Ft===D?u(rt):!1,Be&&(_e=rt,Tt=Be)),vn=1+wt-Ct,!Ue&&!Pe||(rt?Ft===D?(Ue&&!Tt?pt(ue,1):(_e!==rt&&(wt=vt+_e.length,vn=1+wt-vt,Ue=!1),Ue||(nt=_e?J:ae,Oe.attribute?(Ot=Me.charCodeAt(wt),Ot===R?(pt(nt,vn),Tt=null):A(Ot)?Tt=null:pt(nt,vn)):pt(nt,vn))),dt=Tt):(Ue||pt(ee,vn),dt=parseInt(rt,U[Ft]),xe(dt)?(pt(ye,vn),dt=b(H)):dt in Z?(pt(se,vn),dt=Z[dt]):(ut="",pe(dt)&&pt(se,vn),dt>65535&&(dt-=65536,ut+=b(dt>>>10|55296),dt=56320|dt&1023),dt=ut+b(dt))):Ft!==D&&pt(oe,vn)),dt?(Qn(),$e=Dn(),X=wt-1,Ce+=wt-Ct+1,he.push(dt),Zt=Dn(),Zt.offset++,Ke&&Ke.call(ot,dt,{start:$e,end:Zt},Me.slice(Ct-1,wt)),$e=Zt):(rt=Me.slice(Ct-1,wt),re+=rt,Ce+=rt.length,X=wt-1)}else et===10&&(ne++,de++,Ce=0),et===et?(re+=b(et),Ce++):Qn();return he.join("");function Dn(){return{line:ne,column:Ce,offset:X+(Ee.offset||0)}}function nr(jt,br){var dr=Dn();dr.column+=br,dr.offset+=br,ze.call(Ge,ve[jt],dr,jt)}function Qn(){re&&(he.push(re),De&&De.call(it,re,{start:$e,end:Dn()}),re="")}}function xe(Me){return Me>=55296&&Me<=57343||Me>1114111}function pe(Me){return Me>=1&&Me<=8||Me===11||Me>=13&&Me<=31||Me>=127&&Me<=159||Me>=64976&&Me<=65007||(Me&65535)===65535||(Me&65535)===65534}},68398:function(Ne,Q,S){var B=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Z=function(s){var C=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,A=0,u={},p={manual:s.Prism&&s.Prism.manual,disableWorkerMessageHandler:s.Prism&&s.Prism.disableWorkerMessageHandler,util:{encode:function R(N){return N instanceof b?new b(N.type,R(N.content),N.alias):Array.isArray(N)?N.map(R):N.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(R){return Object.prototype.toString.call(R).slice(8,-1)},objId:function(R){return R.__id||Object.defineProperty(R,"__id",{value:++A}),R.__id},clone:function R(N,k){k=k||{};var L,H;switch(p.util.type(N)){case"Object":if(H=p.util.objId(N),k[H])return k[H];L={},k[H]=L;for(var D in N)N.hasOwnProperty(D)&&(L[D]=R(N[D],k));return L;case"Array":return H=p.util.objId(N),k[H]?k[H]:(L=[],k[H]=L,N.forEach(function(V,P){L[P]=R(V,k)}),L);default:return N}},getLanguage:function(R){for(;R;){var N=C.exec(R.className);if(N)return N[1].toLowerCase();R=R.parentElement}return"none"},setLanguage:function(R,N){R.className=R.className.replace(RegExp(C,"gi"),""),R.classList.add("language-"+N)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(L){var R=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(L.stack)||[])[1];if(R){var N=document.getElementsByTagName("script");for(var k in N)if(N[k].src==R)return N[k]}return null}},isActive:function(R,N,k){for(var L="no-"+N;R;){var H=R.classList;if(H.contains(N))return!0;if(H.contains(L))return!1;R=R.parentElement}return!!k}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(R,N){var k=p.util.clone(p.languages[R]);for(var L in N)k[L]=N[L];return k},insertBefore:function(R,N,k,L){L=L||p.languages;var H=L[R],D={};for(var V in H)if(H.hasOwnProperty(V)){if(V==N)for(var P in k)k.hasOwnProperty(P)&&(D[P]=k[P]);k.hasOwnProperty(V)||(D[V]=H[V])}var U=L[R];return L[R]=D,p.languages.DFS(p.languages,function(G,J){J===U&&G!=R&&(this[G]=D)}),D},DFS:function R(N,k,L,H){H=H||{};var D=p.util.objId;for(var V in N)if(N.hasOwnProperty(V)){k.call(N,V,N[V],L||V);var P=N[V],U=p.util.type(P);U==="Object"&&!H[D(P)]?(H[D(P)]=!0,R(P,k,null,H)):U==="Array"&&!H[D(P)]&&(H[D(P)]=!0,R(P,k,V,H))}}},plugins:{},highlightAll:function(R,N){p.highlightAllUnder(document,R,N)},highlightAllUnder:function(R,N,k){var L={callback:k,container:R,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};p.hooks.run("before-highlightall",L),L.elements=Array.prototype.slice.apply(L.container.querySelectorAll(L.selector)),p.hooks.run("before-all-elements-highlight",L);for(var H=0,D;D=L.elements[H++];)p.highlightElement(D,N===!0,L.callback)},highlightElement:function(R,N,k){var L=p.util.getLanguage(R),H=p.languages[L];p.util.setLanguage(R,L);var D=R.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&p.util.setLanguage(D,L);var V=R.textContent,P={element:R,language:L,grammar:H,code:V};function U(J){P.highlightedCode=J,p.hooks.run("before-insert",P),P.element.innerHTML=P.highlightedCode,p.hooks.run("after-highlight",P),p.hooks.run("complete",P),k&&k.call(P.element)}if(p.hooks.run("before-sanity-check",P),D=P.element.parentElement,D&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!P.code){p.hooks.run("complete",P),k&&k.call(P.element);return}if(p.hooks.run("before-highlight",P),!P.grammar){U(p.util.encode(P.code));return}if(N&&s.Worker){var G=new Worker(p.filename);G.onmessage=function(J){U(J.data)},G.postMessage(JSON.stringify({language:P.language,code:P.code,immediateClose:!0}))}else U(p.highlight(P.code,P.grammar,P.language))},highlight:function(R,N,k){var L={code:R,grammar:N,language:k};if(p.hooks.run("before-tokenize",L),!L.grammar)throw new Error('The language "'+L.language+'" has no grammar.');return L.tokens=p.tokenize(L.code,L.grammar),p.hooks.run("after-tokenize",L),b.stringify(p.util.encode(L.tokens),L.language)},tokenize:function(R,N){var k=N.rest;if(k){for(var L in k)N[L]=k[L];delete N.rest}var H=new v;return c(H,H.head,R),y(R,H,N,H.head,0),m(H)},hooks:{all:{},add:function(R,N){var k=p.hooks.all;k[R]=k[R]||[],k[R].push(N)},run:function(R,N){var k=p.hooks.all[R];if(!(!k||!k.length))for(var L=0,H;H=k[L++];)H(N)}},Token:b};s.Prism=p;function b(R,N,k,L){this.type=R,this.content=N,this.alias=k,this.length=(L||"").length|0}b.stringify=function R(N,k){if(typeof N=="string")return N;if(Array.isArray(N)){var L="";return N.forEach(function(U){L+=R(U,k)}),L}var H={type:N.type,content:R(N.content,k),tag:"span",classes:["token",N.type],attributes:{},language:k},D=N.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(H.classes,D):H.classes.push(D)),p.hooks.run("wrap",H);var V="";for(var P in H.attributes)V+=" "+P+'="'+(H.attributes[P]||"").replace(/"/g,"&quot;")+'"';return"<"+H.tag+' class="'+H.classes.join(" ")+'"'+V+">"+H.content+"</"+H.tag+">"};function g(R,N,k,L){R.lastIndex=N;var H=R.exec(k);if(H&&L&&H[1]){var D=H[1].length;H.index+=D,H[0]=H[0].slice(D)}return H}function y(R,N,k,L,H,D){for(var V in k)if(!(!k.hasOwnProperty(V)||!k[V])){var P=k[V];P=Array.isArray(P)?P:[P];for(var U=0;U<P.length;++U){if(D&&D.cause==V+","+U)return;var G=P[U],J=G.inside,ee=!!G.lookbehind,ae=!!G.greedy,oe=G.alias;if(ae&&!G.pattern.global){var ue=G.pattern.toString().match(/[imsuy]*$/)[0];G.pattern=RegExp(G.pattern.source,ue+"g")}for(var se=G.pattern||G,ye=L.next,ve=H;ye!==N.tail&&!(D&&ve>=D.reach);ve+=ye.value.length,ye=ye.next){var Re=ye.value;if(N.length>R.length)return;if(!(Re instanceof b)){var le=1,xe;if(ae){if(xe=g(se,ve,R,ee),!xe||xe.index>=R.length)break;var Le=xe.index,pe=xe.index+xe[0].length,Me=ve;for(Me+=ye.value.length;Le>=Me;)ye=ye.next,Me+=ye.value.length;if(Me-=ye.value.length,ve=Me,ye.value instanceof b)continue;for(var Oe=ye;Oe!==N.tail&&(Me<pe||typeof Oe.value=="string");Oe=Oe.next)le++,Me+=Oe.value.length;le--,Re=R.slice(ve,Me),xe.index-=ve}else if(xe=g(se,0,Re,ee),!xe)continue;var Le=xe.index,Pe=xe[0],De=Re.slice(0,Le),Ke=Re.slice(Le+Pe.length),ze=ve+Re.length;D&&ze>D.reach&&(D.reach=ze);var it=ye.prev;De&&(it=c(N,it,De),ve+=De.length),h(N,it,le);var ot=new b(V,J?p.tokenize(Pe,J):Pe,oe,Pe);if(ye=c(N,it,ot),Ke&&c(N,ye,Ke),le>1){var Ge={cause:V+","+U,reach:ze};y(R,N,k,ye.prev,ve,Ge),D&&Ge.reach>D.reach&&(D.reach=Ge.reach)}}}}}}function v(){var R={value:null,prev:null,next:null},N={value:null,prev:R,next:null};R.next=N,this.head=R,this.tail=N,this.length=0}function c(R,N,k){var L=N.next,H={value:k,prev:N,next:L};return N.next=H,L.prev=H,R.length++,H}function h(R,N,k){for(var L=N.next,H=0;H<k&&L!==R.tail;H++)L=L.next;N.next=L,L.prev=N,R.length-=H}function m(R){for(var N=[],k=R.head.next;k!==R.tail;)N.push(k.value),k=k.next;return N}if(!s.document)return s.addEventListener&&(p.disableWorkerMessageHandler||s.addEventListener("message",function(R){var N=JSON.parse(R.data),k=N.language,L=N.code,H=N.immediateClose;s.postMessage(p.highlight(L,p.languages[k],k)),H&&s.close()},!1)),p;var E=p.util.currentScript();E&&(p.filename=E.src,E.hasAttribute("data-manual")&&(p.manual=!0));function T(){p.manual||p.highlightAll()}if(!p.manual){var I=document.readyState;I==="loading"||I==="interactive"&&E&&E.defer?document.addEventListener("DOMContentLoaded",T):window.requestAnimationFrame?window.requestAnimationFrame(T):window.setTimeout(T,16)}return p}(B);Ne.exports&&(Ne.exports=Z),typeof S.g!="undefined"&&(S.g.Prism=Z)},88914:function(Ne,Q,S){"use strict";var B=S(47178),Z=S(19095),s=S(1969),C="data";Ne.exports=b;var A=/^data[-\w.:]+$/i,u=/-[a-z]/g,p=/[A-Z]/g;function b(h,m){var E=B(m),T=m,I=s;return E in h.normal?h.property[h.normal[E]]:(E.length>4&&E.slice(0,4)===C&&A.test(m)&&(m.charAt(4)==="-"?T=g(m):m=y(m),I=Z),new I(T,m))}function g(h){var m=h.slice(5).replace(u,c);return C+m.charAt(0).toUpperCase()+m.slice(1)}function y(h){var m=h.slice(4);return u.test(m)?h:(m=m.replace(p,v),m.charAt(0)!=="-"&&(m="-"+m),C+m)}function v(h){return"-"+h.toLowerCase()}function c(h){return h.charAt(1).toUpperCase()}},18795:function(Ne,Q,S){"use strict";var B=S(83576),Z=S(8179),s=S(59780),C=S(68244),A=S(20019),u=S(38567);Ne.exports=B([s,Z,C,A,u])},20019:function(Ne,Q,S){"use strict";var B=S(70167),Z=S(79318),s=B.booleanish,C=B.number,A=B.spaceSeparated;Ne.exports=Z({transform:u,properties:{ariaActiveDescendant:null,ariaAtomic:s,ariaAutoComplete:null,ariaBusy:s,ariaChecked:s,ariaColCount:C,ariaColIndex:C,ariaColSpan:C,ariaControls:A,ariaCurrent:null,ariaDescribedBy:A,ariaDetails:null,ariaDisabled:s,ariaDropEffect:A,ariaErrorMessage:null,ariaExpanded:s,ariaFlowTo:A,ariaGrabbed:s,ariaHasPopup:null,ariaHidden:s,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:A,ariaLevel:C,ariaLive:null,ariaModal:s,ariaMultiLine:s,ariaMultiSelectable:s,ariaOrientation:null,ariaOwns:A,ariaPlaceholder:null,ariaPosInSet:C,ariaPressed:s,ariaReadOnly:s,ariaRelevant:null,ariaRequired:s,ariaRoleDescription:A,ariaRowCount:C,ariaRowIndex:C,ariaRowSpan:C,ariaSelected:s,ariaSetSize:C,ariaSort:null,ariaValueMax:C,ariaValueMin:C,ariaValueNow:C,ariaValueText:null,role:null}});function u(p,b){return b==="role"?b:"aria-"+b.slice(4).toLowerCase()}},38567:function(Ne,Q,S){"use strict";var B=S(70167),Z=S(79318),s=S(85804),C=B.boolean,A=B.overloadedBoolean,u=B.booleanish,p=B.number,b=B.spaceSeparated,g=B.commaSeparated;Ne.exports=Z({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:s,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:g,acceptCharset:b,accessKey:b,action:null,allow:null,allowFullScreen:C,allowPaymentRequest:C,allowUserMedia:C,alt:null,as:null,async:C,autoCapitalize:null,autoComplete:b,autoFocus:C,autoPlay:C,capture:C,charSet:null,checked:C,cite:null,className:b,cols:p,colSpan:null,content:null,contentEditable:u,controls:C,controlsList:b,coords:p|g,crossOrigin:null,data:null,dateTime:null,decoding:null,default:C,defer:C,dir:null,dirName:null,disabled:C,download:A,draggable:u,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:C,formTarget:null,headers:b,height:p,hidden:C,high:p,href:null,hrefLang:null,htmlFor:b,httpEquiv:b,id:null,imageSizes:null,imageSrcSet:g,inputMode:null,integrity:null,is:null,isMap:C,itemId:null,itemProp:b,itemRef:b,itemScope:C,itemType:b,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:C,low:p,manifest:null,max:null,maxLength:p,media:null,method:null,min:null,minLength:p,multiple:C,muted:C,name:null,nonce:null,noModule:C,noValidate:C,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:C,optimum:p,pattern:null,ping:b,placeholder:null,playsInline:C,poster:null,preload:null,readOnly:C,referrerPolicy:null,rel:b,required:C,reversed:C,rows:p,rowSpan:p,sandbox:b,scope:null,scoped:C,seamless:C,selected:C,shape:null,size:p,sizes:null,slot:null,span:p,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:g,start:p,step:null,style:null,tabIndex:p,target:null,title:null,translate:null,type:null,typeMustMatch:C,useMap:null,value:u,width:p,wrap:null,align:null,aLink:null,archive:b,axis:null,background:null,bgColor:null,border:p,borderColor:null,bottomMargin:p,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:C,declare:C,event:null,face:null,frame:null,frameBorder:null,hSpace:p,leftMargin:p,link:null,longDesc:null,lowSrc:null,marginHeight:p,marginWidth:p,noResize:C,noHref:C,noShade:C,noWrap:C,object:null,profile:null,prompt:null,rev:null,rightMargin:p,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:p,valueType:null,version:null,vAlign:null,vLink:null,vSpace:p,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:C,disableRemotePlayback:C,prefix:null,property:null,results:p,security:null,unselectable:null}})},85804:function(Ne,Q,S){"use strict";var B=S(56432);Ne.exports=Z;function Z(s,C){return B(s,C.toLowerCase())}},56432:function(Ne){"use strict";Ne.exports=Q;function Q(S,B){return B in S?S[B]:B}},79318:function(Ne,Q,S){"use strict";var B=S(47178),Z=S(44347),s=S(19095);Ne.exports=C;function C(A){var u=A.space,p=A.mustUseProperty||[],b=A.attributes||{},g=A.properties,y=A.transform,v={},c={},h,m;for(h in g)m=new s(h,y(b,h),g[h],u),p.indexOf(h)!==-1&&(m.mustUseProperty=!0),v[h]=m,c[B(h)]=h,c[B(m.attribute)]=h;return new Z(v,c,u)}},19095:function(Ne,Q,S){"use strict";var B=S(1969),Z=S(70167);Ne.exports=A,A.prototype=new B,A.prototype.defined=!0;var s=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],C=s.length;function A(p,b,g,y){var v=-1,c;for(u(this,"space",y),B.call(this,p,b);++v<C;)c=s[v],u(this,c,(g&Z[c])===Z[c])}function u(p,b,g){g&&(p[b]=g)}},1969:function(Ne){"use strict";Ne.exports=S;var Q=S.prototype;Q.space=null,Q.attribute=null,Q.property=null,Q.boolean=!1,Q.booleanish=!1,Q.overloadedBoolean=!1,Q.number=!1,Q.commaSeparated=!1,Q.spaceSeparated=!1,Q.commaOrSpaceSeparated=!1,Q.mustUseProperty=!1,Q.defined=!1;function S(B,Z){this.property=B,this.attribute=Z}},83576:function(Ne,Q,S){"use strict";var B=S(97270),Z=S(44347);Ne.exports=s;function s(C){for(var A=C.length,u=[],p=[],b=-1,g,y;++b<A;)g=C[b],u.push(g.property),p.push(g.normal),y=g.space;return new Z(B.apply(null,u),B.apply(null,p),y)}},44347:function(Ne){"use strict";Ne.exports=S;var Q=S.prototype;Q.space=null,Q.normal={},Q.property={};function S(B,Z,s){this.property=B,this.normal=Z,s&&(this.space=s)}},70167:function(Ne,Q){"use strict";var S=0;Q.boolean=B(),Q.booleanish=B(),Q.overloadedBoolean=B(),Q.number=B(),Q.spaceSeparated=B(),Q.commaSeparated=B(),Q.commaOrSpaceSeparated=B();function B(){return Math.pow(2,++S)}},8179:function(Ne,Q,S){"use strict";var B=S(79318);Ne.exports=B({space:"xlink",transform:Z,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Z(s,C){return"xlink:"+C.slice(5).toLowerCase()}},59780:function(Ne,Q,S){"use strict";var B=S(79318);Ne.exports=B({space:"xml",transform:Z,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Z(s,C){return"xml:"+C.slice(3).toLowerCase()}},68244:function(Ne,Q,S){"use strict";var B=S(79318),Z=S(85804);Ne.exports=B({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Z,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(Ne){"use strict";Ne.exports=Q;function Q(S){return S.toLowerCase()}},66042:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return ae}});var B=S(77321),Z=S(52487),s=S(43403),C=S(34280),A=S(59301),u=A.createContext(null),p=A.createContext({}),b=u,g=S(49618),y=S(72308),v=S(92310),c=S.n(v),h=S(77900),m=S(10228),E=S(26112),T=S(74416),I=S(8654),R=["prefixCls","className","containerRef"],N=function(ue){var se=ue.prefixCls,ye=ue.className,ve=ue.containerRef,Re=(0,T.Z)(ue,R),le=A.useContext(p),xe=le.panel,pe=(0,I.x1)(xe,ve);return A.createElement("div",(0,y.Z)({className:c()("".concat(se,"-content"),ye),role:"dialog",ref:pe},(0,E.Z)(ue,{aria:!0}),{"aria-modal":"true"},Re))},k=N,L=S(48736);function H(oe){return typeof oe=="string"&&String(Number(oe))===oe?((0,L.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(oe)):oe}function D(oe){warning(!("wrapperClassName"in oe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!oe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var V={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function P(oe,ue){var se,ye,ve,Re=oe.prefixCls,le=oe.open,xe=oe.placement,pe=oe.inline,Me=oe.push,Oe=oe.forceRender,Le=oe.autoFocus,Pe=oe.keyboard,De=oe.classNames,Ke=oe.rootClassName,ze=oe.rootStyle,it=oe.zIndex,ot=oe.className,Ge=oe.id,Ee=oe.style,fe=oe.motion,z=oe.width,X=oe.height,de=oe.children,Ce=oe.mask,ne=oe.maskClosable,re=oe.maskMotion,he=oe.maskClassName,_e=oe.maskStyle,Be=oe.afterOpenChange,Ue=oe.onClose,rt=oe.onMouseEnter,et=oe.onMouseOver,dt=oe.onMouseLeave,Ot=oe.onClick,pt=oe.onKeyDown,nt=oe.onKeyUp,ut=oe.styles,Tt=oe.drawerRender,vt=A.useRef(),Ct=A.useRef(),Ft=A.useRef();A.useImperativeHandle(ue,function(){return vt.current});var Rt=function(Cn){var qn=Cn.keyCode,Ir=Cn.shiftKey;switch(qn){case m.Z.TAB:{if(qn===m.Z.TAB){if(!Ir&&document.activeElement===Ft.current){var Vr;(Vr=Ct.current)===null||Vr===void 0||Vr.focus({preventScroll:!0})}else if(Ir&&document.activeElement===Ct.current){var fr;(fr=Ft.current)===null||fr===void 0||fr.focus({preventScroll:!0})}}break}case m.Z.ESC:{Ue&&Pe&&(Cn.stopPropagation(),Ue(Cn));break}}};A.useEffect(function(){if(le&&Le){var jn;(jn=vt.current)===null||jn===void 0||jn.focus({preventScroll:!0})}},[le]);var $e=A.useState(!1),Zt=(0,Z.Z)($e,2),vn=Zt[0],wt=Zt[1],Dn=A.useContext(b),nr;typeof Me=="boolean"?nr=Me?{}:{distance:0}:nr=Me||{};var Qn=(se=(ye=(ve=nr)===null||ve===void 0?void 0:ve.distance)!==null&&ye!==void 0?ye:Dn==null?void 0:Dn.pushDistance)!==null&&se!==void 0?se:180,jt=A.useMemo(function(){return{pushDistance:Qn,push:function(){wt(!0)},pull:function(){wt(!1)}}},[Qn]);A.useEffect(function(){if(le){var jn;Dn==null||(jn=Dn.push)===null||jn===void 0||jn.call(Dn)}else{var Cn;Dn==null||(Cn=Dn.pull)===null||Cn===void 0||Cn.call(Dn)}},[le]),A.useEffect(function(){return function(){var jn;Dn==null||(jn=Dn.pull)===null||jn===void 0||jn.call(Dn)}},[]);var br=Ce&&A.createElement(h.default,(0,y.Z)({key:"mask"},re,{visible:le}),function(jn,Cn){var qn=jn.className,Ir=jn.style;return A.createElement("div",{className:c()("".concat(Re,"-mask"),qn,De==null?void 0:De.mask,he),style:(0,B.Z)((0,B.Z)((0,B.Z)({},Ir),_e),ut==null?void 0:ut.mask),onClick:ne&&le?Ue:void 0,ref:Cn})}),dr=typeof fe=="function"?fe(xe):fe,zn={};if(vn&&Qn)switch(xe){case"top":zn.transform="translateY(".concat(Qn,"px)");break;case"bottom":zn.transform="translateY(".concat(-Qn,"px)");break;case"left":zn.transform="translateX(".concat(Qn,"px)");break;default:zn.transform="translateX(".concat(-Qn,"px)");break}xe==="left"||xe==="right"?zn.width=H(z):zn.height=H(X);var $n={onMouseEnter:rt,onMouseOver:et,onMouseLeave:dt,onClick:Ot,onKeyDown:pt,onKeyUp:nt},Er=A.createElement(h.default,(0,y.Z)({key:"panel"},dr,{visible:le,forceRender:Oe,onVisibleChanged:function(Cn){Be==null||Be(Cn)},removeOnLeave:!1,leavedClassName:"".concat(Re,"-content-wrapper-hidden")}),function(jn,Cn){var qn=jn.className,Ir=jn.style,Vr=A.createElement(k,(0,y.Z)({id:Ge,containerRef:Cn,prefixCls:Re,className:c()(ot,De==null?void 0:De.content),style:(0,B.Z)((0,B.Z)({},Ee),ut==null?void 0:ut.content)},(0,E.Z)(oe,{aria:!0}),$n),de);return A.createElement("div",(0,y.Z)({className:c()("".concat(Re,"-content-wrapper"),De==null?void 0:De.wrapper,qn),style:(0,B.Z)((0,B.Z)((0,B.Z)({},zn),Ir),ut==null?void 0:ut.wrapper)},(0,E.Z)(oe,{data:!0})),Tt?Tt(Vr):Vr)}),me=(0,B.Z)({},ze);return it&&(me.zIndex=it),A.createElement(b.Provider,{value:jt},A.createElement("div",{className:c()(Re,"".concat(Re,"-").concat(xe),Ke,(0,g.Z)((0,g.Z)({},"".concat(Re,"-open"),le),"".concat(Re,"-inline"),pe)),style:me,tabIndex:-1,ref:vt,onKeyDown:Rt},br,A.createElement("div",{tabIndex:0,ref:Ct,style:V,"aria-hidden":"true","data-sentinel":"start"}),Er,A.createElement("div",{tabIndex:0,ref:Ft,style:V,"aria-hidden":"true","data-sentinel":"end"})))}var U=A.forwardRef(P),G=U,J=function(ue){var se=ue.open,ye=se===void 0?!1:se,ve=ue.prefixCls,Re=ve===void 0?"rc-drawer":ve,le=ue.placement,xe=le===void 0?"right":le,pe=ue.autoFocus,Me=pe===void 0?!0:pe,Oe=ue.keyboard,Le=Oe===void 0?!0:Oe,Pe=ue.width,De=Pe===void 0?378:Pe,Ke=ue.mask,ze=Ke===void 0?!0:Ke,it=ue.maskClosable,ot=it===void 0?!0:it,Ge=ue.getContainer,Ee=ue.forceRender,fe=ue.afterOpenChange,z=ue.destroyOnClose,X=ue.onMouseEnter,de=ue.onMouseOver,Ce=ue.onMouseLeave,ne=ue.onClick,re=ue.onKeyDown,he=ue.onKeyUp,_e=ue.panelRef,Be=A.useState(!1),Ue=(0,Z.Z)(Be,2),rt=Ue[0],et=Ue[1],dt=A.useState(!1),Ot=(0,Z.Z)(dt,2),pt=Ot[0],nt=Ot[1];(0,C.Z)(function(){nt(!0)},[]);var ut=pt?ye:!1,Tt=A.useRef(),vt=A.useRef();(0,C.Z)(function(){ut&&(vt.current=document.activeElement)},[ut]);var Ct=function(vn){var wt;if(et(vn),fe==null||fe(vn),!vn&&vt.current&&!((wt=Tt.current)!==null&&wt!==void 0&&wt.contains(vt.current))){var Dn;(Dn=vt.current)===null||Dn===void 0||Dn.focus({preventScroll:!0})}},Ft=A.useMemo(function(){return{panel:_e}},[_e]);if(!Ee&&!rt&&!ut&&z)return null;var Rt={onMouseEnter:X,onMouseOver:de,onMouseLeave:Ce,onClick:ne,onKeyDown:re,onKeyUp:he},$e=(0,B.Z)((0,B.Z)({},ue),{},{open:ut,prefixCls:Re,placement:xe,autoFocus:Me,keyboard:Le,width:De,mask:ze,maskClosable:ot,inline:Ge===!1,afterOpenChange:Ct,ref:Tt},Rt);return A.createElement(p.Provider,{value:Ft},A.createElement(s.Z,{open:ut||Ee||rt,autoDestroy:!1,getContainer:Ge,autoLock:ze&&(ut||rt)},A.createElement(G,$e)))},ee=J,ae=ee},91574:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return Ot}});var B=S(72308),Z=S(77321),s=S(49618),C=S(52487),A=S(62853),u=S(74416),p=S(92310),b=S.n(p),g=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},v={cssFloat:1,styleFloat:1,float:1};function c(pt){return pt.nodeType===1?pt.ownerDocument.defaultView.getComputedStyle(pt,null):{}}function h(pt,nt,ut){if(nt=nt.toLowerCase(),ut==="auto"){if(nt==="height")return pt.offsetHeight;if(nt==="width")return pt.offsetWidth}return nt in y||(y[nt]=g.test(nt)),y[nt]?parseFloat(ut)||0:ut}function m(pt,nt){var ut=arguments.length,Tt=c(pt);return nt=v[nt]?"cssFloat"in pt.style?"cssFloat":"styleFloat":nt,ut===1?Tt:h(pt,nt,Tt[nt]||pt.style[nt])}function E(pt,nt,ut){var Tt=arguments.length;if(nt=v[nt]?"cssFloat"in pt.style?"cssFloat":"styleFloat":nt,Tt===3)return typeof ut=="number"&&g.test(nt)&&(ut="".concat(ut,"px")),pt.style[nt]=ut,ut;for(var vt in nt)nt.hasOwnProperty(vt)&&E(pt,vt,nt[vt]);return c(pt)}function T(pt){return pt===document.body?document.documentElement.clientWidth:pt.offsetWidth}function I(pt){return pt===document.body?window.innerHeight||document.documentElement.clientHeight:pt.offsetHeight}function R(){var pt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),nt=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:pt,height:nt}}function N(){var pt=document.documentElement.clientWidth,nt=window.innerHeight||document.documentElement.clientHeight;return{width:pt,height:nt}}function k(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function L(pt){var nt=pt.getBoundingClientRect(),ut=document.documentElement;return{left:nt.left+(window.pageXOffset||ut.scrollLeft)-(ut.clientLeft||document.body.clientLeft||0),top:nt.top+(window.pageYOffset||ut.scrollTop)-(ut.clientTop||document.body.clientTop||0)}}var H=S(18929),D=S(59301),V=S(55311),P=S(8224),U=S(10228),G=S(43403),J=S(77900),ee=D.createContext(null),ae=function(nt){var ut=nt.visible,Tt=nt.maskTransitionName,vt=nt.getContainer,Ct=nt.prefixCls,Ft=nt.rootClassName,Rt=nt.icons,$e=nt.countRender,Zt=nt.showSwitch,vn=nt.showProgress,wt=nt.current,Dn=nt.transform,nr=nt.count,Qn=nt.scale,jt=nt.minScale,br=nt.maxScale,dr=nt.closeIcon,zn=nt.onActive,$n=nt.onClose,Er=nt.onZoomIn,me=nt.onZoomOut,jn=nt.onRotateRight,Cn=nt.onRotateLeft,qn=nt.onFlipX,Ir=nt.onFlipY,Vr=nt.onReset,fr=nt.toolbarRender,oo=nt.zIndex,Zr=nt.image,Qr=(0,D.useContext)(ee),Kn=Rt.rotateLeft,Mn=Rt.rotateRight,ai=Rt.zoomIn,Nr=Rt.zoomOut,zr=Rt.close,pn=Rt.left,Vn=Rt.right,Mt=Rt.flipX,It=Rt.flipY,On="".concat(Ct,"-operations-operation");D.useEffect(function(){var Ht=function(pr){pr.keyCode===U.Z.ESC&&$n()};return ut&&window.addEventListener("keydown",Ht),function(){window.removeEventListener("keydown",Ht)}},[ut]);var ft=function(lr,pr){lr.preventDefault(),lr.stopPropagation(),zn(pr)},en=D.useCallback(function(Ht){var lr=Ht.type,pr=Ht.disabled,xr=Ht.onClick,Pn=Ht.icon;return D.createElement("div",{key:lr,className:b()(On,"".concat(Ct,"-operations-operation-").concat(lr),(0,s.Z)({},"".concat(Ct,"-operations-operation-disabled"),!!pr)),onClick:xr},Pn)},[On,Ct]),An=Zt?en({icon:pn,onClick:function(lr){return ft(lr,-1)},type:"prev",disabled:wt===0}):void 0,Un=Zt?en({icon:Vn,onClick:function(lr){return ft(lr,1)},type:"next",disabled:wt===nr-1}):void 0,gt=en({icon:It,onClick:Ir,type:"flipY"}),gn=en({icon:Mt,onClick:qn,type:"flipX"}),Hn=en({icon:Kn,onClick:Cn,type:"rotateLeft"}),At=en({icon:Mn,onClick:jn,type:"rotateRight"}),we=en({icon:Nr,onClick:me,type:"zoomOut",disabled:Qn<=jt}),Bn=en({icon:ai,onClick:Er,type:"zoomIn",disabled:Qn===br}),wn=D.createElement("div",{className:"".concat(Ct,"-operations")},gt,gn,Hn,At,we,Bn);return D.createElement(J.default,{visible:ut,motionName:Tt},function(Ht){var lr=Ht.className,pr=Ht.style;return D.createElement(G.Z,{open:!0,getContainer:vt!=null?vt:document.body},D.createElement("div",{className:b()("".concat(Ct,"-operations-wrapper"),lr,Ft),style:(0,Z.Z)((0,Z.Z)({},pr),{},{zIndex:oo})},dr===null?null:D.createElement("button",{className:"".concat(Ct,"-close"),onClick:$n},dr||zr),Zt&&D.createElement(D.Fragment,null,D.createElement("div",{className:b()("".concat(Ct,"-switch-left"),(0,s.Z)({},"".concat(Ct,"-switch-left-disabled"),wt===0)),onClick:function(Pn){return ft(Pn,-1)}},pn),D.createElement("div",{className:b()("".concat(Ct,"-switch-right"),(0,s.Z)({},"".concat(Ct,"-switch-right-disabled"),wt===nr-1)),onClick:function(Pn){return ft(Pn,1)}},Vn)),D.createElement("div",{className:"".concat(Ct,"-footer")},vn&&D.createElement("div",{className:"".concat(Ct,"-progress")},$e?$e(wt+1,nr):"".concat(wt+1," / ").concat(nr)),fr?fr(wn,(0,Z.Z)((0,Z.Z)({icons:{prevIcon:An,nextIcon:Un,flipYIcon:gt,flipXIcon:gn,rotateLeftIcon:Hn,rotateRightIcon:At,zoomOutIcon:we,zoomInIcon:Bn},actions:{onActive:zn,onFlipY:Ir,onFlipX:qn,onRotateLeft:Cn,onRotateRight:jn,onZoomOut:me,onZoomIn:Er,onReset:Vr,onClose:$n},transform:Dn},Qr?{current:wt,total:nr}:{}),{},{image:Zr})):wn)))})},oe=ae,ue=S(13697),se=S(16089),ye={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function ve(pt,nt,ut,Tt){var vt=(0,D.useRef)(null),Ct=(0,D.useRef)([]),Ft=(0,D.useState)(ye),Rt=(0,C.Z)(Ft,2),$e=Rt[0],Zt=Rt[1],vn=function(Qn){Zt(ye),(0,ue.Z)(ye,$e)||Tt==null||Tt({transform:ye,action:Qn})},wt=function(Qn,jt){vt.current===null&&(Ct.current=[],vt.current=(0,se.Z)(function(){Zt(function(br){var dr=br;return Ct.current.forEach(function(zn){dr=(0,Z.Z)((0,Z.Z)({},dr),zn)}),vt.current=null,Tt==null||Tt({transform:dr,action:jt}),dr})})),Ct.current.push((0,Z.Z)((0,Z.Z)({},$e),Qn))},Dn=function(Qn,jt,br,dr,zn){var $n=pt.current,Er=$n.width,me=$n.height,jn=$n.offsetWidth,Cn=$n.offsetHeight,qn=$n.offsetLeft,Ir=$n.offsetTop,Vr=Qn,fr=$e.scale*Qn;fr>ut?(fr=ut,Vr=ut/$e.scale):fr<nt&&(fr=zn?fr:nt,Vr=fr/$e.scale);var oo=br!=null?br:innerWidth/2,Zr=dr!=null?dr:innerHeight/2,Qr=Vr-1,Kn=Qr*Er*.5,Mn=Qr*me*.5,ai=Qr*(oo-$e.x-qn),Nr=Qr*(Zr-$e.y-Ir),zr=$e.x-(ai-Kn),pn=$e.y-(Nr-Mn);if(Qn<1&&fr===1){var Vn=jn*fr,Mt=Cn*fr,It=N(),On=It.width,ft=It.height;Vn<=On&&Mt<=ft&&(zr=0,pn=0)}wt({x:zr,y:pn,scale:fr},jt)};return{transform:$e,resetTransform:vn,updateTransform:wt,dispatchZoomChange:Dn}}var Re=S(48736);function le(pt,nt,ut,Tt){var vt=nt+ut,Ct=(ut-Tt)/2;if(ut>Tt){if(nt>0)return(0,s.Z)({},pt,Ct);if(nt<0&&vt<Tt)return(0,s.Z)({},pt,-Ct)}else if(nt<0||vt>Tt)return(0,s.Z)({},pt,nt<0?Ct:-Ct);return{}}function xe(pt,nt,ut,Tt){var vt=N(),Ct=vt.width,Ft=vt.height,Rt=null;return pt<=Ct&&nt<=Ft?Rt={x:0,y:0}:(pt>Ct||nt>Ft)&&(Rt=(0,Z.Z)((0,Z.Z)({},le("x",ut,pt,Ct)),le("y",Tt,nt,Ft))),Rt}var pe=1,Me=1;function Oe(pt,nt,ut,Tt,vt,Ct,Ft){var Rt=vt.rotate,$e=vt.scale,Zt=vt.x,vn=vt.y,wt=(0,D.useState)(!1),Dn=(0,C.Z)(wt,2),nr=Dn[0],Qn=Dn[1],jt=(0,D.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),br=function(me){!nt||me.button!==0||(me.preventDefault(),me.stopPropagation(),jt.current={diffX:me.pageX-Zt,diffY:me.pageY-vn,transformX:Zt,transformY:vn},Qn(!0))},dr=function(me){ut&&nr&&Ct({x:me.pageX-jt.current.diffX,y:me.pageY-jt.current.diffY},"move")},zn=function(){if(ut&&nr){Qn(!1);var me=jt.current,jn=me.transformX,Cn=me.transformY,qn=Zt!==jn&&vn!==Cn;if(!qn)return;var Ir=pt.current.offsetWidth*$e,Vr=pt.current.offsetHeight*$e,fr=pt.current.getBoundingClientRect(),oo=fr.left,Zr=fr.top,Qr=Rt%180!==0,Kn=xe(Qr?Vr:Ir,Qr?Ir:Vr,oo,Zr);Kn&&Ct((0,Z.Z)({},Kn),"dragRebound")}},$n=function(me){if(!(!ut||me.deltaY==0)){var jn=Math.abs(me.deltaY/100),Cn=Math.min(jn,Me),qn=pe+Cn*Tt;me.deltaY>0&&(qn=pe/qn),Ft(qn,"wheel",me.clientX,me.clientY)}};return(0,D.useEffect)(function(){var Er,me,jn,Cn;if(nt){jn=(0,P.Z)(window,"mouseup",zn,!1),Cn=(0,P.Z)(window,"mousemove",dr,!1);try{window.top!==window.self&&(Er=(0,P.Z)(window.top,"mouseup",zn,!1),me=(0,P.Z)(window.top,"mousemove",dr,!1))}catch(qn){(0,Re.Kp)(!1,"[rc-image] ".concat(qn))}}return function(){var qn,Ir,Vr,fr;(qn=jn)===null||qn===void 0||qn.remove(),(Ir=Cn)===null||Ir===void 0||Ir.remove(),(Vr=Er)===null||Vr===void 0||Vr.remove(),(fr=me)===null||fr===void 0||fr.remove()}},[ut,nr,Zt,vn,Rt,nt]),{isMoving:nr,onMouseDown:br,onMouseMove:dr,onMouseUp:zn,onWheel:$n}}function Le(pt){return new Promise(function(nt){if(!pt){nt(!1);return}var ut=document.createElement("img");ut.onerror=function(){return nt(!1)},ut.onload=function(){return nt(!0)},ut.src=pt})}function Pe(pt){var nt=pt.src,ut=pt.isCustomPlaceholder,Tt=pt.fallback,vt=(0,D.useState)(ut?"loading":"normal"),Ct=(0,C.Z)(vt,2),Ft=Ct[0],Rt=Ct[1],$e=(0,D.useRef)(!1),Zt=Ft==="error";(0,D.useEffect)(function(){var nr=!0;return Le(nt).then(function(Qn){!Qn&&nr&&Rt("error")}),function(){nr=!1}},[nt]),(0,D.useEffect)(function(){ut&&!$e.current?Rt("loading"):Zt&&Rt("normal")},[nt]);var vn=function(){Rt("normal")},wt=function(Qn){$e.current=!1,Ft==="loading"&&Qn!==null&&Qn!==void 0&&Qn.complete&&(Qn.naturalWidth||Qn.naturalHeight)&&($e.current=!0,vn())},Dn=Zt&&Tt?{src:Tt}:{onLoad:vn,src:nt};return[wt,Dn,Ft]}function De(pt,nt){var ut=pt.x-nt.x,Tt=pt.y-nt.y;return Math.hypot(ut,Tt)}function Ke(pt,nt,ut,Tt){var vt=De(pt,ut),Ct=De(nt,Tt);if(vt===0&&Ct===0)return[pt.x,pt.y];var Ft=vt/(vt+Ct),Rt=pt.x+Ft*(nt.x-pt.x),$e=pt.y+Ft*(nt.y-pt.y);return[Rt,$e]}function ze(pt,nt,ut,Tt,vt,Ct,Ft){var Rt=vt.rotate,$e=vt.scale,Zt=vt.x,vn=vt.y,wt=(0,D.useState)(!1),Dn=(0,C.Z)(wt,2),nr=Dn[0],Qn=Dn[1],jt=(0,D.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),br=function(me){jt.current=(0,Z.Z)((0,Z.Z)({},jt.current),me)},dr=function(me){if(nt){me.stopPropagation(),Qn(!0);var jn=me.touches,Cn=jn===void 0?[]:jn;Cn.length>1?br({point1:{x:Cn[0].clientX,y:Cn[0].clientY},point2:{x:Cn[1].clientX,y:Cn[1].clientY},eventType:"touchZoom"}):br({point1:{x:Cn[0].clientX-Zt,y:Cn[0].clientY-vn},eventType:"move"})}},zn=function(me){var jn=me.touches,Cn=jn===void 0?[]:jn,qn=jt.current,Ir=qn.point1,Vr=qn.point2,fr=qn.eventType;if(Cn.length>1&&fr==="touchZoom"){var oo={x:Cn[0].clientX,y:Cn[0].clientY},Zr={x:Cn[1].clientX,y:Cn[1].clientY},Qr=Ke(Ir,Vr,oo,Zr),Kn=(0,C.Z)(Qr,2),Mn=Kn[0],ai=Kn[1],Nr=De(oo,Zr)/De(Ir,Vr);Ft(Nr,"touchZoom",Mn,ai,!0),br({point1:oo,point2:Zr,eventType:"touchZoom"})}else fr==="move"&&(Ct({x:Cn[0].clientX-Ir.x,y:Cn[0].clientY-Ir.y},"move"),br({eventType:"move"}))},$n=function(){if(ut){if(nr&&Qn(!1),br({eventType:"none"}),Tt>$e)return Ct({x:0,y:0,scale:Tt},"touchZoom");var me=pt.current.offsetWidth*$e,jn=pt.current.offsetHeight*$e,Cn=pt.current.getBoundingClientRect(),qn=Cn.left,Ir=Cn.top,Vr=Rt%180!==0,fr=xe(Vr?jn:me,Vr?me:jn,qn,Ir);fr&&Ct((0,Z.Z)({},fr),"dragRebound")}};return(0,D.useEffect)(function(){var Er;return ut&&nt&&(Er=(0,P.Z)(window,"touchmove",function(me){return me.preventDefault()},{passive:!1})),function(){var me;(me=Er)===null||me===void 0||me.remove()}},[ut,nt]),{isTouching:nr,onTouchStart:dr,onTouchMove:zn,onTouchEnd:$n}}var it=["fallback","src","imgRef"],ot=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Ge=function(nt){var ut=nt.fallback,Tt=nt.src,vt=nt.imgRef,Ct=(0,u.Z)(nt,it),Ft=Pe({src:Tt,fallback:ut}),Rt=(0,C.Z)(Ft,2),$e=Rt[0],Zt=Rt[1];return D.createElement("img",(0,B.Z)({ref:function(wt){vt.current=wt,$e(wt)}},Ct,Zt))},Ee=function(nt){var ut=nt.prefixCls,Tt=nt.src,vt=nt.alt,Ct=nt.imageInfo,Ft=nt.fallback,Rt=nt.movable,$e=Rt===void 0?!0:Rt,Zt=nt.onClose,vn=nt.visible,wt=nt.icons,Dn=wt===void 0?{}:wt,nr=nt.rootClassName,Qn=nt.closeIcon,jt=nt.getContainer,br=nt.current,dr=br===void 0?0:br,zn=nt.count,$n=zn===void 0?1:zn,Er=nt.countRender,me=nt.scaleStep,jn=me===void 0?.5:me,Cn=nt.minScale,qn=Cn===void 0?1:Cn,Ir=nt.maxScale,Vr=Ir===void 0?50:Ir,fr=nt.transitionName,oo=fr===void 0?"zoom":fr,Zr=nt.maskTransitionName,Qr=Zr===void 0?"fade":Zr,Kn=nt.imageRender,Mn=nt.imgCommonProps,ai=nt.toolbarRender,Nr=nt.onTransform,zr=nt.onChange,pn=(0,u.Z)(nt,ot),Vn=(0,D.useRef)(),Mt=(0,D.useContext)(ee),It=Mt&&$n>1,On=Mt&&$n>=1,ft=(0,D.useState)(!0),en=(0,C.Z)(ft,2),An=en[0],Un=en[1],gt=ve(Vn,qn,Vr,Nr),gn=gt.transform,Hn=gt.resetTransform,At=gt.updateTransform,we=gt.dispatchZoomChange,Bn=Oe(Vn,$e,vn,jn,gn,At,we),wn=Bn.isMoving,Ht=Bn.onMouseDown,lr=Bn.onWheel,pr=ze(Vn,$e,vn,qn,gn,At,we),xr=pr.isTouching,Pn=pr.onTouchStart,St=pr.onTouchMove,gr=pr.onTouchEnd,vi=gn.rotate,Dt=gn.scale,Ji=b()((0,s.Z)({},"".concat(ut,"-moving"),wn));(0,D.useEffect)(function(){An||Un(!0)},[An]);var Ri=function(){Hn("close")},oi=function(){we(pe+jn,"zoomIn")},Oi=function(){we(pe/(pe+jn),"zoomOut")},Rr=function(){At({rotate:vi+90},"rotateRight")},li=function(){At({rotate:vi-90},"rotateLeft")},Pr=function(){At({flipX:!gn.flipX},"flipX")},qr=function(){At({flipY:!gn.flipY},"flipY")},ri=function(){Hn("reset")},Gt=function(Di){var Li=dr+Di;!Number.isInteger(Li)||Li<0||Li>$n-1||(Un(!1),Hn(Di<0?"prev":"next"),zr==null||zr(Li,dr))},ui=function(Di){!vn||!It||(Di.keyCode===U.Z.LEFT?Gt(-1):Di.keyCode===U.Z.RIGHT&&Gt(1))},Kt=function(Di){vn&&(Dt!==1?At({x:0,y:0,scale:1},"doubleClick"):we(pe+jn,"doubleClick",Di.clientX,Di.clientY))};(0,D.useEffect)(function(){var rr=(0,P.Z)(window,"keydown",ui,!1);return function(){rr.remove()}},[vn,It,dr]);var Wn=D.createElement(Ge,(0,B.Z)({},Mn,{width:nt.width,height:nt.height,imgRef:Vn,className:"".concat(ut,"-img"),alt:vt,style:{transform:"translate3d(".concat(gn.x,"px, ").concat(gn.y,"px, 0) scale3d(").concat(gn.flipX?"-":"").concat(Dt,", ").concat(gn.flipY?"-":"").concat(Dt,", 1) rotate(").concat(vi,"deg)"),transitionDuration:(!An||xr)&&"0s"},fallback:Ft,src:Tt,onWheel:lr,onMouseDown:Ht,onDoubleClick:Kt,onTouchStart:Pn,onTouchMove:St,onTouchEnd:gr,onTouchCancel:gr})),er=(0,Z.Z)({url:Tt,alt:vt},Ct);return D.createElement(D.Fragment,null,D.createElement(V.Z,(0,B.Z)({transitionName:oo,maskTransitionName:Qr,closable:!1,keyboard:!0,prefixCls:ut,onClose:Zt,visible:vn,classNames:{wrapper:Ji},rootClassName:nr,getContainer:jt},pn,{afterClose:Ri}),D.createElement("div",{className:"".concat(ut,"-img-wrapper")},Kn?Kn(Wn,(0,Z.Z)({transform:gn,image:er},Mt?{current:dr}:{})):Wn)),D.createElement(oe,{visible:vn,transform:gn,maskTransitionName:Qr,closeIcon:Qn,getContainer:jt,prefixCls:ut,rootClassName:nr,icons:Dn,countRender:Er,showSwitch:It,showProgress:On,current:dr,count:$n,scale:Dt,minScale:qn,maxScale:Vr,toolbarRender:ai,onActive:Gt,onZoomIn:oi,onZoomOut:Oi,onRotateRight:Rr,onRotateLeft:li,onFlipX:Pr,onFlipY:qr,onClose:Zt,onReset:ri,zIndex:pn.zIndex!==void 0?pn.zIndex+1:void 0,image:er}))},fe=Ee,z=S(80702),X=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function de(pt){var nt=D.useState({}),ut=(0,C.Z)(nt,2),Tt=ut[0],vt=ut[1],Ct=D.useCallback(function(Rt,$e){return vt(function(Zt){return(0,Z.Z)((0,Z.Z)({},Zt),{},(0,s.Z)({},Rt,$e))}),function(){vt(function(Zt){var vn=(0,Z.Z)({},Zt);return delete vn[Rt],vn})}},[]),Ft=D.useMemo(function(){return pt?pt.map(function(Rt){if(typeof Rt=="string")return{data:{src:Rt}};var $e={};return Object.keys(Rt).forEach(function(Zt){["src"].concat((0,z.Z)(X)).includes(Zt)&&($e[Zt]=Rt[Zt])}),{data:$e}}):Object.keys(Tt).reduce(function(Rt,$e){var Zt=Tt[$e],vn=Zt.canPreview,wt=Zt.data;return vn&&Rt.push({data:wt,id:$e}),Rt},[])},[pt,Tt]);return[Ft,Ct,!!pt]}var Ce=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],ne=["src"],re=function(nt){var ut,Tt=nt.previewPrefixCls,vt=Tt===void 0?"rc-image-preview":Tt,Ct=nt.children,Ft=nt.icons,Rt=Ft===void 0?{}:Ft,$e=nt.items,Zt=nt.preview,vn=nt.fallback,wt=(0,A.Z)(Zt)==="object"?Zt:{},Dn=wt.visible,nr=wt.onVisibleChange,Qn=wt.getContainer,jt=wt.current,br=wt.movable,dr=wt.minScale,zn=wt.maxScale,$n=wt.countRender,Er=wt.closeIcon,me=wt.onChange,jn=wt.onTransform,Cn=wt.toolbarRender,qn=wt.imageRender,Ir=(0,u.Z)(wt,Ce),Vr=de($e),fr=(0,C.Z)(Vr,3),oo=fr[0],Zr=fr[1],Qr=fr[2],Kn=(0,H.Z)(0,{value:jt}),Mn=(0,C.Z)(Kn,2),ai=Mn[0],Nr=Mn[1],zr=(0,D.useState)(!1),pn=(0,C.Z)(zr,2),Vn=pn[0],Mt=pn[1],It=((ut=oo[ai])===null||ut===void 0?void 0:ut.data)||{},On=It.src,ft=(0,u.Z)(It,ne),en=(0,H.Z)(!!Dn,{value:Dn,onChange:function(xr,Pn){nr==null||nr(xr,Pn,ai)}}),An=(0,C.Z)(en,2),Un=An[0],gt=An[1],gn=(0,D.useState)(null),Hn=(0,C.Z)(gn,2),At=Hn[0],we=Hn[1],Bn=D.useCallback(function(pr,xr,Pn,St){var gr=Qr?oo.findIndex(function(vi){return vi.data.src===xr}):oo.findIndex(function(vi){return vi.id===pr});Nr(gr<0?0:gr),gt(!0),we({x:Pn,y:St}),Mt(!0)},[oo,Qr]);D.useEffect(function(){Un?Vn||Nr(0):Mt(!1)},[Un]);var wn=function(xr,Pn){Nr(xr),me==null||me(xr,Pn)},Ht=function(){gt(!1),we(null)},lr=D.useMemo(function(){return{register:Zr,onPreview:Bn}},[Zr,Bn]);return D.createElement(ee.Provider,{value:lr},Ct,D.createElement(fe,(0,B.Z)({"aria-hidden":!Un,movable:br,visible:Un,prefixCls:vt,closeIcon:Er,onClose:Ht,mousePosition:At,imgCommonProps:ft,src:On,fallback:vn,icons:Rt,minScale:dr,maxScale:zn,getContainer:Qn,current:ai,count:oo.length,countRender:$n,onTransform:jn,toolbarRender:Cn,imageRender:qn,onChange:wn},Ir)))},he=re,_e=0;function Be(pt,nt){var ut=D.useState(function(){return _e+=1,String(_e)}),Tt=(0,C.Z)(ut,1),vt=Tt[0],Ct=D.useContext(ee),Ft={data:nt,canPreview:pt};return D.useEffect(function(){if(Ct)return Ct.register(vt,Ft)},[]),D.useEffect(function(){Ct&&Ct.register(vt,Ft)},[pt,nt]),vt}var Ue=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],rt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],et=function(nt){var ut=nt.src,Tt=nt.alt,vt=nt.onPreviewClose,Ct=nt.prefixCls,Ft=Ct===void 0?"rc-image":Ct,Rt=nt.previewPrefixCls,$e=Rt===void 0?"".concat(Ft,"-preview"):Rt,Zt=nt.placeholder,vn=nt.fallback,wt=nt.width,Dn=nt.height,nr=nt.style,Qn=nt.preview,jt=Qn===void 0?!0:Qn,br=nt.className,dr=nt.onClick,zn=nt.onError,$n=nt.wrapperClassName,Er=nt.wrapperStyle,me=nt.rootClassName,jn=(0,u.Z)(nt,Ue),Cn=Zt&&Zt!==!0,qn=(0,A.Z)(jt)==="object"?jt:{},Ir=qn.src,Vr=qn.visible,fr=Vr===void 0?void 0:Vr,oo=qn.onVisibleChange,Zr=oo===void 0?vt:oo,Qr=qn.getContainer,Kn=Qr===void 0?void 0:Qr,Mn=qn.mask,ai=qn.maskClassName,Nr=qn.movable,zr=qn.icons,pn=qn.scaleStep,Vn=qn.minScale,Mt=qn.maxScale,It=qn.imageRender,On=qn.toolbarRender,ft=(0,u.Z)(qn,rt),en=Ir!=null?Ir:ut,An=(0,H.Z)(!!fr,{value:fr,onChange:Zr}),Un=(0,C.Z)(An,2),gt=Un[0],gn=Un[1],Hn=Pe({src:ut,isCustomPlaceholder:Cn,fallback:vn}),At=(0,C.Z)(Hn,3),we=At[0],Bn=At[1],wn=At[2],Ht=(0,D.useState)(null),lr=(0,C.Z)(Ht,2),pr=lr[0],xr=lr[1],Pn=(0,D.useContext)(ee),St=!!jt,gr=function(){gn(!1),xr(null)},vi=b()(Ft,$n,me,(0,s.Z)({},"".concat(Ft,"-error"),wn==="error")),Dt=(0,D.useMemo)(function(){var Oi={};return X.forEach(function(Rr){nt[Rr]!==void 0&&(Oi[Rr]=nt[Rr])}),Oi},X.map(function(Oi){return nt[Oi]})),Ji=(0,D.useMemo)(function(){return(0,Z.Z)((0,Z.Z)({},Dt),{},{src:en})},[en,Dt]),Ri=Be(St,Ji),oi=function(Rr){var li=L(Rr.target),Pr=li.left,qr=li.top;Pn?Pn.onPreview(Ri,en,Pr,qr):(xr({x:Pr,y:qr}),gn(!0)),dr==null||dr(Rr)};return D.createElement(D.Fragment,null,D.createElement("div",(0,B.Z)({},jn,{className:vi,onClick:St?oi:dr,style:(0,Z.Z)({width:wt,height:Dn},Er)}),D.createElement("img",(0,B.Z)({},Dt,{className:b()("".concat(Ft,"-img"),(0,s.Z)({},"".concat(Ft,"-img-placeholder"),Zt===!0),br),style:(0,Z.Z)({height:Dn},nr),ref:we},Bn,{width:wt,height:Dn,onError:zn})),wn==="loading"&&D.createElement("div",{"aria-hidden":"true",className:"".concat(Ft,"-placeholder")},Zt),Mn&&St&&D.createElement("div",{className:b()("".concat(Ft,"-mask"),ai),style:{display:(nr==null?void 0:nr.display)==="none"?"none":void 0}},Mn)),!Pn&&St&&D.createElement(fe,(0,B.Z)({"aria-hidden":!gt,visible:gt,prefixCls:$e,onClose:gr,mousePosition:pr,src:en,alt:Tt,imageInfo:{width:wt,height:Dn},fallback:vn,getContainer:Kn,icons:zr,movable:Nr,scaleStep:pn,minScale:Vn,maxScale:Mt,rootClassName:me,imageRender:It,imgCommonProps:Dt,toolbarRender:On},ft)))};et.PreviewGroup=he;var dt=et,Ot=dt},23425:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return V}});var B=S(49618),Z=S(72308),s=S(62853),C=S(77321),A=S(52487),u=S(92310),p=S.n(u),b=S(18929),g=S(10228),y=S(26112),v=S(48736),c=S(59301),h=S(17119),m=[10,20,50,100],E=function(U){var G=U.pageSizeOptions,J=G===void 0?m:G,ee=U.locale,ae=U.changeSize,oe=U.pageSize,ue=U.goButton,se=U.quickGo,ye=U.rootPrefixCls,ve=U.disabled,Re=U.buildOptionText,le=U.showSizeChanger,xe=U.sizeChangerRender,pe=c.useState(""),Me=(0,A.Z)(pe,2),Oe=Me[0],Le=Me[1],Pe=function(){return!Oe||Number.isNaN(Oe)?void 0:Number(Oe)},De=typeof Re=="function"?Re:function(X){return"".concat(X," ").concat(ee.items_per_page)},Ke=function(de){Le(de.target.value)},ze=function(de){ue||Oe===""||(Le(""),!(de.relatedTarget&&(de.relatedTarget.className.indexOf("".concat(ye,"-item-link"))>=0||de.relatedTarget.className.indexOf("".concat(ye,"-item"))>=0))&&(se==null||se(Pe())))},it=function(de){Oe!==""&&(de.keyCode===g.Z.ENTER||de.type==="click")&&(Le(""),se==null||se(Pe()))},ot=function(){return J.some(function(de){return de.toString()===oe.toString()})?J:J.concat([oe]).sort(function(de,Ce){var ne=Number.isNaN(Number(de))?0:Number(de),re=Number.isNaN(Number(Ce))?0:Number(Ce);return ne-re})},Ge="".concat(ye,"-options");if(!le&&!se)return null;var Ee=null,fe=null,z=null;return le&&xe&&(Ee=xe({disabled:ve,size:oe,onSizeChange:function(de){ae==null||ae(Number(de))},"aria-label":ee.page_size,className:"".concat(Ge,"-size-changer"),options:ot().map(function(X){return{label:De(X),value:X}})})),se&&(ue&&(z=typeof ue=="boolean"?c.createElement("button",{type:"button",onClick:it,onKeyUp:it,disabled:ve,className:"".concat(Ge,"-quick-jumper-button")},ee.jump_to_confirm):c.createElement("span",{onClick:it,onKeyUp:it},ue)),fe=c.createElement("div",{className:"".concat(Ge,"-quick-jumper")},ee.jump_to,c.createElement("input",{disabled:ve,type:"text",value:Oe,onChange:Ke,onKeyUp:it,onBlur:ze,"aria-label":ee.page}),ee.page,z)),c.createElement("li",{className:Ge},Ee,fe)},T=E,I=function(U){var G=U.rootPrefixCls,J=U.page,ee=U.active,ae=U.className,oe=U.showTitle,ue=U.onClick,se=U.onKeyPress,ye=U.itemRender,ve="".concat(G,"-item"),Re=p()(ve,"".concat(ve,"-").concat(J),(0,B.Z)((0,B.Z)({},"".concat(ve,"-active"),ee),"".concat(ve,"-disabled"),!J),ae),le=function(){ue(J)},xe=function(Oe){se(Oe,ue,J)},pe=ye(J,"page",c.createElement("a",{rel:"nofollow"},J));return pe?c.createElement("li",{title:oe?String(J):null,className:Re,onClick:le,onKeyDown:xe,tabIndex:0},pe):null},R=I,N=function(U,G,J){return J};function k(){}function L(P){var U=Number(P);return typeof U=="number"&&!Number.isNaN(U)&&isFinite(U)&&Math.floor(U)===U}function H(P,U,G){var J=typeof P=="undefined"?U:P;return Math.floor((G-1)/J)+1}var D=function(U){var G=U.prefixCls,J=G===void 0?"rc-pagination":G,ee=U.selectPrefixCls,ae=ee===void 0?"rc-select":ee,oe=U.className,ue=U.current,se=U.defaultCurrent,ye=se===void 0?1:se,ve=U.total,Re=ve===void 0?0:ve,le=U.pageSize,xe=U.defaultPageSize,pe=xe===void 0?10:xe,Me=U.onChange,Oe=Me===void 0?k:Me,Le=U.hideOnSinglePage,Pe=U.align,De=U.showPrevNextJumpers,Ke=De===void 0?!0:De,ze=U.showQuickJumper,it=U.showLessItems,ot=U.showTitle,Ge=ot===void 0?!0:ot,Ee=U.onShowSizeChange,fe=Ee===void 0?k:Ee,z=U.locale,X=z===void 0?h.Z:z,de=U.style,Ce=U.totalBoundaryShowSizeChanger,ne=Ce===void 0?50:Ce,re=U.disabled,he=U.simple,_e=U.showTotal,Be=U.showSizeChanger,Ue=Be===void 0?Re>ne:Be,rt=U.sizeChangerRender,et=U.pageSizeOptions,dt=U.itemRender,Ot=dt===void 0?N:dt,pt=U.jumpPrevIcon,nt=U.jumpNextIcon,ut=U.prevIcon,Tt=U.nextIcon,vt=c.useRef(null),Ct=(0,b.Z)(10,{value:le,defaultValue:pe}),Ft=(0,A.Z)(Ct,2),Rt=Ft[0],$e=Ft[1],Zt=(0,b.Z)(1,{value:ue,defaultValue:ye,postState:function(er){return Math.max(1,Math.min(er,H(void 0,Rt,Re)))}}),vn=(0,A.Z)(Zt,2),wt=vn[0],Dn=vn[1],nr=c.useState(wt),Qn=(0,A.Z)(nr,2),jt=Qn[0],br=Qn[1];(0,c.useEffect)(function(){br(wt)},[wt]);var dr=Oe!==k,zn="current"in U,$n=Math.max(1,wt-(it?3:5)),Er=Math.min(H(void 0,Rt,Re),wt+(it?3:5));function me(Wn,er){var rr=Wn||c.createElement("button",{type:"button","aria-label":er,className:"".concat(J,"-item-link")});return typeof Wn=="function"&&(rr=c.createElement(Wn,(0,C.Z)({},U))),rr}function jn(Wn){var er=Wn.target.value,rr=H(void 0,Rt,Re),Di;return er===""?Di=er:Number.isNaN(Number(er))?Di=jt:er>=rr?Di=rr:Di=Number(er),Di}function Cn(Wn){return L(Wn)&&Wn!==wt&&L(Re)&&Re>0}var qn=Re>Rt?ze:!1;function Ir(Wn){(Wn.keyCode===g.Z.UP||Wn.keyCode===g.Z.DOWN)&&Wn.preventDefault()}function Vr(Wn){var er=jn(Wn);switch(er!==jt&&br(er),Wn.keyCode){case g.Z.ENTER:Zr(er);break;case g.Z.UP:Zr(er-1);break;case g.Z.DOWN:Zr(er+1);break;default:break}}function fr(Wn){Zr(jn(Wn))}function oo(Wn){var er=H(Wn,Rt,Re),rr=wt>er&&er!==0?er:wt;$e(Wn),br(rr),fe==null||fe(wt,Wn),Dn(rr),Oe==null||Oe(rr,Wn)}function Zr(Wn){if(Cn(Wn)&&!re){var er=H(void 0,Rt,Re),rr=Wn;return Wn>er?rr=er:Wn<1&&(rr=1),rr!==jt&&br(rr),Dn(rr),Oe==null||Oe(rr,Rt),rr}return wt}var Qr=wt>1,Kn=wt<H(void 0,Rt,Re);function Mn(){Qr&&Zr(wt-1)}function ai(){Kn&&Zr(wt+1)}function Nr(){Zr($n)}function zr(){Zr(Er)}function pn(Wn,er){if(Wn.key==="Enter"||Wn.charCode===g.Z.ENTER||Wn.keyCode===g.Z.ENTER){for(var rr=arguments.length,Di=new Array(rr>2?rr-2:0),Li=2;Li<rr;Li++)Di[Li-2]=arguments[Li];er.apply(void 0,Di)}}function Vn(Wn){pn(Wn,Mn)}function Mt(Wn){pn(Wn,ai)}function It(Wn){pn(Wn,Nr)}function On(Wn){pn(Wn,zr)}function ft(Wn){var er=Ot(Wn,"prev",me(ut,"prev page"));return c.isValidElement(er)?c.cloneElement(er,{disabled:!Qr}):er}function en(Wn){var er=Ot(Wn,"next",me(Tt,"next page"));return c.isValidElement(er)?c.cloneElement(er,{disabled:!Kn}):er}function An(Wn){(Wn.type==="click"||Wn.keyCode===g.Z.ENTER)&&Zr(jt)}var Un=null,gt=(0,y.Z)(U,{aria:!0,data:!0}),gn=_e&&c.createElement("li",{className:"".concat(J,"-total-text")},_e(Re,[Re===0?0:(wt-1)*Rt+1,wt*Rt>Re?Re:wt*Rt])),Hn=null,At=H(void 0,Rt,Re);if(Le&&Re<=Rt)return null;var we=[],Bn={rootPrefixCls:J,onClick:Zr,onKeyPress:pn,showTitle:Ge,itemRender:Ot,page:-1},wn=wt-1>0?wt-1:0,Ht=wt+1<At?wt+1:At,lr=ze&&ze.goButton,pr=(0,s.Z)(he)==="object"?he.readOnly:!he,xr=lr,Pn=null;he&&(lr&&(typeof lr=="boolean"?xr=c.createElement("button",{type:"button",onClick:An,onKeyUp:An},X.jump_to_confirm):xr=c.createElement("span",{onClick:An,onKeyUp:An},lr),xr=c.createElement("li",{title:Ge?"".concat(X.jump_to).concat(wt,"/").concat(At):null,className:"".concat(J,"-simple-pager")},xr)),Pn=c.createElement("li",{title:Ge?"".concat(wt,"/").concat(At):null,className:"".concat(J,"-simple-pager")},pr?jt:c.createElement("input",{type:"text","aria-label":X.jump_to,value:jt,disabled:re,onKeyDown:Ir,onKeyUp:Vr,onChange:Vr,onBlur:fr,size:3}),c.createElement("span",{className:"".concat(J,"-slash")},"/"),At));var St=it?1:2;if(At<=3+St*2){At||we.push(c.createElement(R,(0,Z.Z)({},Bn,{key:"noPager",page:1,className:"".concat(J,"-item-disabled")})));for(var gr=1;gr<=At;gr+=1)we.push(c.createElement(R,(0,Z.Z)({},Bn,{key:gr,page:gr,active:wt===gr})))}else{var vi=it?X.prev_3:X.prev_5,Dt=it?X.next_3:X.next_5,Ji=Ot($n,"jump-prev",me(pt,"prev page")),Ri=Ot(Er,"jump-next",me(nt,"next page"));Ke&&(Un=Ji?c.createElement("li",{title:Ge?vi:null,key:"prev",onClick:Nr,tabIndex:0,onKeyDown:It,className:p()("".concat(J,"-jump-prev"),(0,B.Z)({},"".concat(J,"-jump-prev-custom-icon"),!!pt))},Ji):null,Hn=Ri?c.createElement("li",{title:Ge?Dt:null,key:"next",onClick:zr,tabIndex:0,onKeyDown:On,className:p()("".concat(J,"-jump-next"),(0,B.Z)({},"".concat(J,"-jump-next-custom-icon"),!!nt))},Ri):null);var oi=Math.max(1,wt-St),Oi=Math.min(wt+St,At);wt-1<=St&&(Oi=1+St*2),At-wt<=St&&(oi=At-St*2);for(var Rr=oi;Rr<=Oi;Rr+=1)we.push(c.createElement(R,(0,Z.Z)({},Bn,{key:Rr,page:Rr,active:wt===Rr})));if(wt-1>=St*2&&wt!==3&&(we[0]=c.cloneElement(we[0],{className:p()("".concat(J,"-item-after-jump-prev"),we[0].props.className)}),we.unshift(Un)),At-wt>=St*2&&wt!==At-2){var li=we[we.length-1];we[we.length-1]=c.cloneElement(li,{className:p()("".concat(J,"-item-before-jump-next"),li.props.className)}),we.push(Hn)}oi!==1&&we.unshift(c.createElement(R,(0,Z.Z)({},Bn,{key:1,page:1}))),Oi!==At&&we.push(c.createElement(R,(0,Z.Z)({},Bn,{key:At,page:At})))}var Pr=ft(wn);if(Pr){var qr=!Qr||!At;Pr=c.createElement("li",{title:Ge?X.prev_page:null,onClick:Mn,tabIndex:qr?null:0,onKeyDown:Vn,className:p()("".concat(J,"-prev"),(0,B.Z)({},"".concat(J,"-disabled"),qr)),"aria-disabled":qr},Pr)}var ri=en(Ht);if(ri){var Gt,ui;he?(Gt=!Kn,ui=Qr?0:null):(Gt=!Kn||!At,ui=Gt?null:0),ri=c.createElement("li",{title:Ge?X.next_page:null,onClick:ai,tabIndex:ui,onKeyDown:Mt,className:p()("".concat(J,"-next"),(0,B.Z)({},"".concat(J,"-disabled"),Gt)),"aria-disabled":Gt},ri)}var Kt=p()(J,oe,(0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)({},"".concat(J,"-start"),Pe==="start"),"".concat(J,"-center"),Pe==="center"),"".concat(J,"-end"),Pe==="end"),"".concat(J,"-simple"),he),"".concat(J,"-disabled"),re));return c.createElement("ul",(0,Z.Z)({className:Kt,style:de,ref:vt},gt),gn,Pr,he?Pn:we,ri,c.createElement(T,{locale:X,rootPrefixCls:J,disabled:re,selectPrefixCls:ae,changeSize:oo,pageSize:Rt,pageSizeOptions:et,quickGo:qn?Zr:null,goButton:xr,showSizeChanger:Ue,sizeChangerRender:rt}))},V=D},25930:function(Ne,Q,S){"use strict";S.d(Q,{Cd:function(){return J}});var B=S(72308),Z=S(77321),s=S(74416),C=S(59301),A=S(92310),u=S.n(A),p={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},b=function(){var oe=(0,C.useRef)([]),ue=(0,C.useRef)(null);return(0,C.useEffect)(function(){var se=Date.now(),ye=!1;oe.current.forEach(function(ve){if(ve){ye=!0;var Re=ve.style;Re.transitionDuration=".3s, .3s, .3s, .06s",ue.current&&se-ue.current<100&&(Re.transitionDuration="0s, 0s")}}),ye&&(ue.current=Date.now())}),oe.current},g=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(oe){var ue=(0,Z.Z)((0,Z.Z)({},p),oe),se=ue.className,ye=ue.percent,ve=ue.prefixCls,Re=ue.strokeColor,le=ue.strokeLinecap,xe=ue.strokeWidth,pe=ue.style,Me=ue.trailColor,Oe=ue.trailWidth,Le=ue.transition,Pe=(0,s.Z)(ue,g);delete Pe.gapPosition;var De=Array.isArray(ye)?ye:[ye],Ke=Array.isArray(Re)?Re:[Re],ze=b(),it=xe/2,ot=100-xe/2,Ge="M ".concat(le==="round"?it:0,",").concat(it,`
L `).concat(le==="round"?ot:100,",").concat(it),Ee="0 0 100 ".concat(xe),fe=0;return C.createElement("svg",(0,B.Z)({className:u()("".concat(ve,"-line"),se),viewBox:Ee,preserveAspectRatio:"none",style:pe},Pe),C.createElement("path",{className:"".concat(ve,"-line-trail"),d:Ge,strokeLinecap:le,stroke:Me,strokeWidth:Oe||xe,fillOpacity:"0"}),De.map(function(z,X){var de=1;switch(le){case"round":de=1-xe/100;break;case"square":de=1-xe/2/100;break;default:de=1;break}var Ce={strokeDasharray:"".concat(z*de,"px, 100px"),strokeDashoffset:"-".concat(fe,"px"),transition:Le||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ne=Ke[X]||Ke[Ke.length-1];return fe+=z,C.createElement("path",{key:X,className:"".concat(ve,"-line-path"),d:Ge,strokeLinecap:le,stroke:ne,strokeWidth:xe,fillOpacity:"0",ref:function(he){ze[X]=he},style:Ce})}))},v=y,c=S(62853),h=S(52487),m=S(47273),E=0,T=(0,m.Z)();function I(){var ae;return T?(ae=E,E+=1):ae="TEST_OR_SSR",ae}var R=function(ae){var oe=C.useState(),ue=(0,h.Z)(oe,2),se=ue[0],ye=ue[1];return C.useEffect(function(){ye("rc_progress_".concat(I()))},[]),ae||se},N=function(oe){var ue=oe.bg,se=oe.children;return C.createElement("div",{style:{width:"100%",height:"100%",background:ue}},se)};function k(ae,oe){return Object.keys(ae).map(function(ue){var se=parseFloat(ue),ye="".concat(Math.floor(se*oe),"%");return"".concat(ae[ue]," ").concat(ye)})}var L=C.forwardRef(function(ae,oe){var ue=ae.prefixCls,se=ae.color,ye=ae.gradientId,ve=ae.radius,Re=ae.style,le=ae.ptg,xe=ae.strokeLinecap,pe=ae.strokeWidth,Me=ae.size,Oe=ae.gapDegree,Le=se&&(0,c.Z)(se)==="object",Pe=Le?"#FFF":void 0,De=Me/2,Ke=C.createElement("circle",{className:"".concat(ue,"-circle-path"),r:ve,cx:De,cy:De,stroke:Pe,strokeLinecap:xe,strokeWidth:pe,opacity:le===0?0:1,style:Re,ref:oe});if(!Le)return Ke;var ze="".concat(ye,"-conic"),it=Oe?"".concat(180+Oe/2,"deg"):"0deg",ot=k(se,(360-Oe)/360),Ge=k(se,1),Ee="conic-gradient(from ".concat(it,", ").concat(ot.join(", "),")"),fe="linear-gradient(to ".concat(Oe?"bottom":"top",", ").concat(Ge.join(", "),")");return C.createElement(C.Fragment,null,C.createElement("mask",{id:ze},Ke),C.createElement("foreignObject",{x:0,y:0,width:Me,height:Me,mask:"url(#".concat(ze,")")},C.createElement(N,{bg:fe},C.createElement(N,{bg:Ee}))))}),H=L,D=100,V=function(oe,ue,se,ye,ve,Re,le,xe,pe,Me){var Oe=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Le=se/100*360*((360-Re)/360),Pe=Re===0?0:{bottom:0,top:180,left:90,right:-90}[le],De=(100-ye)/100*ue;pe==="round"&&ye!==100&&(De+=Me/2,De>=ue&&(De=ue-.01));var Ke=D/2;return{stroke:typeof xe=="string"?xe:void 0,strokeDasharray:"".concat(ue,"px ").concat(oe),strokeDashoffset:De+Oe,transform:"rotate(".concat(ve+Le+Pe,"deg)"),transformOrigin:"".concat(Ke,"px ").concat(Ke,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},P=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function U(ae){var oe=ae!=null?ae:[];return Array.isArray(oe)?oe:[oe]}var G=function(oe){var ue=(0,Z.Z)((0,Z.Z)({},p),oe),se=ue.id,ye=ue.prefixCls,ve=ue.steps,Re=ue.strokeWidth,le=ue.trailWidth,xe=ue.gapDegree,pe=xe===void 0?0:xe,Me=ue.gapPosition,Oe=ue.trailColor,Le=ue.strokeLinecap,Pe=ue.style,De=ue.className,Ke=ue.strokeColor,ze=ue.percent,it=(0,s.Z)(ue,P),ot=D/2,Ge=R(se),Ee="".concat(Ge,"-gradient"),fe=ot-Re/2,z=Math.PI*2*fe,X=pe>0?90+pe/2:-90,de=z*((360-pe)/360),Ce=(0,c.Z)(ve)==="object"?ve:{count:ve,gap:2},ne=Ce.count,re=Ce.gap,he=U(ze),_e=U(Ke),Be=_e.find(function(nt){return nt&&(0,c.Z)(nt)==="object"}),Ue=Be&&(0,c.Z)(Be)==="object",rt=Ue?"butt":Le,et=V(z,de,0,100,X,pe,Me,Oe,rt,Re),dt=b(),Ot=function(){var ut=0;return he.map(function(Tt,vt){var Ct=_e[vt]||_e[_e.length-1],Ft=V(z,de,ut,Tt,X,pe,Me,Ct,rt,Re);return ut+=Tt,C.createElement(H,{key:vt,color:Ct,ptg:Tt,radius:fe,prefixCls:ye,gradientId:Ee,style:Ft,strokeLinecap:rt,strokeWidth:Re,gapDegree:pe,ref:function($e){dt[vt]=$e},size:D})}).reverse()},pt=function(){var ut=Math.round(ne*(he[0]/100)),Tt=100/ne,vt=0;return new Array(ne).fill(null).map(function(Ct,Ft){var Rt=Ft<=ut-1?_e[0]:Oe,$e=Rt&&(0,c.Z)(Rt)==="object"?"url(#".concat(Ee,")"):void 0,Zt=V(z,de,vt,Tt,X,pe,Me,Rt,"butt",Re,re);return vt+=(de-Zt.strokeDashoffset+re)*100/de,C.createElement("circle",{key:Ft,className:"".concat(ye,"-circle-path"),r:fe,cx:ot,cy:ot,stroke:$e,strokeWidth:Re,opacity:1,style:Zt,ref:function(wt){dt[Ft]=wt}})})};return C.createElement("svg",(0,B.Z)({className:u()("".concat(ye,"-circle"),De),viewBox:"0 0 ".concat(D," ").concat(D),style:Pe,id:se,role:"presentation"},it),!ne&&C.createElement("circle",{className:"".concat(ye,"-circle-trail"),r:fe,cx:ot,cy:ot,stroke:Oe,strokeLinecap:rt,strokeWidth:le||Re,style:et}),ne?pt():Ot())},J=G,ee={Line:v,Circle:J}},738:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return k}});var B=S(72308),Z=S(49618),s=S(52487),C=S(74416),A=S(92310),u=S.n(A),p=S(18929),b=S(10228),g=S(26112),y=S(59301);function v(L,H){var D=L.disabled,V=L.prefixCls,P=L.character,U=L.characterRender,G=L.index,J=L.count,ee=L.value,ae=L.allowHalf,oe=L.focused,ue=L.onHover,se=L.onClick,ye=function(Le){ue(Le,G)},ve=function(Le){se(Le,G)},Re=function(Le){Le.keyCode===b.Z.ENTER&&se(Le,G)},le=G+1,xe=new Set([V]);ee===0&&G===0&&oe?xe.add("".concat(V,"-focused")):ae&&ee+.5>=le&&ee<le?(xe.add("".concat(V,"-half")),xe.add("".concat(V,"-active")),oe&&xe.add("".concat(V,"-focused"))):(le<=ee?xe.add("".concat(V,"-full")):xe.add("".concat(V,"-zero")),le===ee&&oe&&xe.add("".concat(V,"-focused")));var pe=typeof P=="function"?P(L):P,Me=y.createElement("li",{className:u()(Array.from(xe)),ref:H},y.createElement("div",{onClick:D?null:ve,onKeyDown:D?null:Re,onMouseMove:D?null:ye,role:"radio","aria-checked":ee>G?"true":"false","aria-posinset":G+1,"aria-setsize":J,tabIndex:D?-1:0},y.createElement("div",{className:"".concat(V,"-first")},pe),y.createElement("div",{className:"".concat(V,"-second")},pe)));return U&&(Me=U(Me,L)),Me}var c=y.forwardRef(v);function h(){var L=y.useRef({});function H(V){return L.current[V]}function D(V){return function(P){L.current[V]=P}}return[H,D]}function m(L){var H=L.pageXOffset,D="scrollLeft";if(typeof H!="number"){var V=L.document;H=V.documentElement[D],typeof H!="number"&&(H=V.body[D])}return H}function E(L){var H,D,V=L.ownerDocument,P=V.body,U=V&&V.documentElement,G=L.getBoundingClientRect();return H=G.left,D=G.top,H-=U.clientLeft||P.clientLeft||0,D-=U.clientTop||P.clientTop||0,{left:H,top:D}}function T(L){var H=E(L),D=L.ownerDocument,V=D.defaultView||D.parentWindow;return H.left+=m(V),H.left}var I=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function R(L,H){var D=L.prefixCls,V=D===void 0?"rc-rate":D,P=L.className,U=L.defaultValue,G=L.value,J=L.count,ee=J===void 0?5:J,ae=L.allowHalf,oe=ae===void 0?!1:ae,ue=L.allowClear,se=ue===void 0?!0:ue,ye=L.keyboard,ve=ye===void 0?!0:ye,Re=L.character,le=Re===void 0?"\u2605":Re,xe=L.characterRender,pe=L.disabled,Me=L.direction,Oe=Me===void 0?"ltr":Me,Le=L.tabIndex,Pe=Le===void 0?0:Le,De=L.autoFocus,Ke=L.onHoverChange,ze=L.onChange,it=L.onFocus,ot=L.onBlur,Ge=L.onKeyDown,Ee=L.onMouseLeave,fe=(0,C.Z)(L,I),z=h(),X=(0,s.Z)(z,2),de=X[0],Ce=X[1],ne=y.useRef(null),re=function(){if(!pe){var $n;($n=ne.current)===null||$n===void 0||$n.focus()}};y.useImperativeHandle(H,function(){return{focus:re,blur:function(){if(!pe){var $n;($n=ne.current)===null||$n===void 0||$n.blur()}}}});var he=(0,p.Z)(U||0,{value:G}),_e=(0,s.Z)(he,2),Be=_e[0],Ue=_e[1],rt=(0,p.Z)(null),et=(0,s.Z)(rt,2),dt=et[0],Ot=et[1],pt=function($n,Er){var me=Oe==="rtl",jn=$n+1;if(oe){var Cn=de($n),qn=T(Cn),Ir=Cn.clientWidth;(me&&Er-qn>Ir/2||!me&&Er-qn<Ir/2)&&(jn-=.5)}return jn},nt=function($n){Ue($n),ze==null||ze($n)},ut=y.useState(!1),Tt=(0,s.Z)(ut,2),vt=Tt[0],Ct=Tt[1],Ft=function(){Ct(!0),it==null||it()},Rt=function(){Ct(!1),ot==null||ot()},$e=y.useState(null),Zt=(0,s.Z)($e,2),vn=Zt[0],wt=Zt[1],Dn=function($n,Er){var me=pt(Er,$n.pageX);me!==dt&&(wt(me),Ot(null)),Ke==null||Ke(me)},nr=function($n){pe||(wt(null),Ot(null),Ke==null||Ke(void 0)),$n&&(Ee==null||Ee($n))},Qn=function($n,Er){var me=pt(Er,$n.pageX),jn=!1;se&&(jn=me===Be),nr(),nt(jn?0:me),Ot(jn?me:null)},jt=function($n){var Er=$n.keyCode,me=Oe==="rtl",jn=oe?.5:1;ve&&(Er===b.Z.RIGHT&&Be<ee&&!me?(nt(Be+jn),$n.preventDefault()):Er===b.Z.LEFT&&Be>0&&!me||Er===b.Z.RIGHT&&Be>0&&me?(nt(Be-jn),$n.preventDefault()):Er===b.Z.LEFT&&Be<ee&&me&&(nt(Be+jn),$n.preventDefault())),Ge==null||Ge($n)};y.useEffect(function(){De&&!pe&&re()},[]);var br=new Array(ee).fill(0).map(function(zn,$n){return y.createElement(c,{ref:Ce($n),index:$n,count:ee,disabled:pe,prefixCls:"".concat(V,"-star"),allowHalf:oe,value:vn===null?Be:vn,onClick:Qn,onHover:Dn,key:zn||$n,character:le,characterRender:xe,focused:vt})}),dr=u()(V,P,(0,Z.Z)((0,Z.Z)({},"".concat(V,"-disabled"),pe),"".concat(V,"-rtl"),Oe==="rtl"));return y.createElement("ul",(0,B.Z)({className:dr,onMouseLeave:nr,tabIndex:pe?-1:Pe,onFocus:pe?null:Ft,onBlur:pe?null:Rt,onKeyDown:pe?null:jt,ref:ne},(0,g.Z)(fe,{aria:!0,data:!0,attr:!0})),br)}var N=y.forwardRef(R),k=N},69582:function(Ne,Q,S){"use strict";S.d(Q,{ZP:function(){return p}});var B=S(52487),Z=S(59301),s=S(47273),C=0,A=(0,s.Z)();function u(){var b;return A?(b=C,C+=1):b="TEST_OR_SSR",b}function p(b){var g=Z.useState(),y=(0,B.Z)(g,2),v=y[0],c=y[1];return Z.useEffect(function(){c("rc_select_".concat(u()))},[]),b||v}},45560:function(Ne,Q,S){"use strict";S.d(Q,{Ac:function(){return ut},Xo:function(){return vt},Wx:function(){return Ft},ZP:function(){return Vn},lk:function(){return k}});var B=S(72308),Z=S(80702),s=S(49618),C=S(77321),A=S(52487),u=S(74416),p=S(62853),b=S(18929),g=S(48736),y=S(59301),v=S(92310),c=S.n(v),h=S(34280),m=S(49658),E=S(8654),T=function(It){var On=It.className,ft=It.customizeIcon,en=It.customizeIconProps,An=It.children,Un=It.onMouseDown,gt=It.onClick,gn=typeof ft=="function"?ft(en):ft;return y.createElement("span",{className:On,onMouseDown:function(At){At.preventDefault(),Un==null||Un(At)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:gt,"aria-hidden":!0},gn!==void 0?gn:y.createElement("span",{className:c()(On.split(/\s+/).map(function(Hn){return"".concat(Hn,"-icon")}))},An))},I=T,R=function(It,On,ft,en,An){var Un=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,gt=arguments.length>6?arguments[6]:void 0,gn=arguments.length>7?arguments[7]:void 0,Hn=y.useMemo(function(){if((0,p.Z)(en)==="object")return en.clearIcon;if(An)return An},[en,An]),At=y.useMemo(function(){return!!(!Un&&en&&(ft.length||gt)&&!(gn==="combobox"&&gt===""))},[en,Un,ft.length,gt,gn]);return{allowClear:At,clearIcon:y.createElement(I,{className:"".concat(It,"-clear"),onMouseDown:On,customizeIcon:Hn},"\xD7")}},N=y.createContext(null);function k(){return y.useContext(N)}function L(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,It=y.useState(!1),On=(0,A.Z)(It,2),ft=On[0],en=On[1],An=y.useRef(null),Un=function(){window.clearTimeout(An.current)};y.useEffect(function(){return Un},[]);var gt=function(Hn,At){Un(),An.current=window.setTimeout(function(){en(Hn),At&&At()},Mt)};return[ft,gt,Un]}function H(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,It=y.useRef(null),On=y.useRef(null);y.useEffect(function(){return function(){window.clearTimeout(On.current)}},[]);function ft(en){(en||It.current===null)&&(It.current=en),window.clearTimeout(On.current),On.current=window.setTimeout(function(){It.current=null},Mt)}return[function(){return It.current},ft]}function D(Mt,It,On,ft){var en=y.useRef(null);en.current={open:It,triggerOpen:On,customizedTrigger:ft},y.useEffect(function(){function An(Un){var gt;if(!((gt=en.current)!==null&&gt!==void 0&&gt.customizedTrigger)){var gn=Un.target;gn.shadowRoot&&Un.composed&&(gn=Un.composedPath()[0]||gn),en.current.open&&Mt().filter(function(Hn){return Hn}).every(function(Hn){return!Hn.contains(gn)&&Hn!==gn})&&en.current.triggerOpen(!1)}}return window.addEventListener("mousedown",An),function(){return window.removeEventListener("mousedown",An)}},[])}var V=S(10228);function P(Mt){return Mt&&![V.Z.ESC,V.Z.SHIFT,V.Z.BACKSPACE,V.Z.TAB,V.Z.WIN_KEY,V.Z.ALT,V.Z.META,V.Z.WIN_KEY_RIGHT,V.Z.CTRL,V.Z.SEMICOLON,V.Z.EQUALS,V.Z.CAPS_LOCK,V.Z.CONTEXT_MENU,V.Z.F1,V.Z.F2,V.Z.F3,V.Z.F4,V.Z.F5,V.Z.F6,V.Z.F7,V.Z.F8,V.Z.F9,V.Z.F10,V.Z.F11,V.Z.F12].includes(Mt)}var U=S(26112),G=S(11780),J=function(It,On){var ft,en=It.prefixCls,An=It.id,Un=It.inputElement,gt=It.disabled,gn=It.tabIndex,Hn=It.autoFocus,At=It.autoComplete,we=It.editable,Bn=It.activeDescendantId,wn=It.value,Ht=It.maxLength,lr=It.onKeyDown,pr=It.onMouseDown,xr=It.onChange,Pn=It.onPaste,St=It.onCompositionStart,gr=It.onCompositionEnd,vi=It.onBlur,Dt=It.open,Ji=It.attrs,Ri=Un||y.createElement("input",null),oi=Ri,Oi=oi.ref,Rr=oi.props,li=Rr.onKeyDown,Pr=Rr.onChange,qr=Rr.onMouseDown,ri=Rr.onCompositionStart,Gt=Rr.onCompositionEnd,ui=Rr.onBlur,Kt=Rr.style;return(0,g.Kp)(!("maxLength"in Ri.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ri=y.cloneElement(Ri,(0,C.Z)((0,C.Z)((0,C.Z)({type:"search"},Rr),{},{id:An,ref:(0,E.sQ)(On,Oi),disabled:gt,tabIndex:gn,autoComplete:At||"off",autoFocus:Hn,className:c()("".concat(en,"-selection-search-input"),(ft=Ri)===null||ft===void 0||(ft=ft.props)===null||ft===void 0?void 0:ft.className),role:"combobox","aria-expanded":Dt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(An,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(An,"_list"),"aria-activedescendant":Dt?Bn:void 0},Ji),{},{value:we?wn:"",maxLength:Ht,readOnly:!we,unselectable:we?null:"on",style:(0,C.Z)((0,C.Z)({},Kt),{},{opacity:we?null:0}),onKeyDown:function(er){lr(er),li&&li(er)},onMouseDown:function(er){pr(er),qr&&qr(er)},onChange:function(er){xr(er),Pr&&Pr(er)},onCompositionStart:function(er){St(er),ri&&ri(er)},onCompositionEnd:function(er){gr(er),Gt&&Gt(er)},onPaste:Pn,onBlur:function(er){vi(er),ui&&ui(er)}})),Ri},ee=y.forwardRef(J),ae=ee;function oe(Mt){return Array.isArray(Mt)?Mt:Mt!==void 0?[Mt]:[]}var ue=typeof window!="undefined"&&window.document&&window.document.documentElement,se=ue;function ye(Mt){return Mt!=null}function ve(Mt){return!Mt&&Mt!==0}function Re(Mt){return["string","number"].includes((0,p.Z)(Mt))}function le(Mt){var It=void 0;return Mt&&(Re(Mt.title)?It=Mt.title.toString():Re(Mt.label)&&(It=Mt.label.toString())),It}function xe(Mt,It){se?y.useLayoutEffect(Mt,It):y.useEffect(Mt,It)}function pe(Mt){var It;return(It=Mt.key)!==null&&It!==void 0?It:Mt.value}var Me=function(It){It.preventDefault(),It.stopPropagation()},Oe=function(It){var On=It.id,ft=It.prefixCls,en=It.values,An=It.open,Un=It.searchValue,gt=It.autoClearSearchValue,gn=It.inputRef,Hn=It.placeholder,At=It.disabled,we=It.mode,Bn=It.showSearch,wn=It.autoFocus,Ht=It.autoComplete,lr=It.activeDescendantId,pr=It.tabIndex,xr=It.removeIcon,Pn=It.maxTagCount,St=It.maxTagTextLength,gr=It.maxTagPlaceholder,vi=gr===void 0?function(Rn){return"+ ".concat(Rn.length," ...")}:gr,Dt=It.tagRender,Ji=It.onToggleOpen,Ri=It.onRemove,oi=It.onInputChange,Oi=It.onInputPaste,Rr=It.onInputKeyDown,li=It.onInputMouseDown,Pr=It.onInputCompositionStart,qr=It.onInputCompositionEnd,ri=It.onInputBlur,Gt=y.useRef(null),ui=(0,y.useState)(0),Kt=(0,A.Z)(ui,2),Wn=Kt[0],er=Kt[1],rr=(0,y.useState)(!1),Di=(0,A.Z)(rr,2),Li=Di[0],pi=Di[1],Mi="".concat(ft,"-selection"),_t=An||we==="multiple"&&gt===!1||we==="tags"?Un:"",Vt=we==="tags"||we==="multiple"&&gt===!1||Bn&&(An||Li);xe(function(){er(Gt.current.scrollWidth)},[_t]);var Et=function(Jt,fn,dn,yn,Sn){return y.createElement("span",{title:le(Jt),className:c()("".concat(Mi,"-item"),(0,s.Z)({},"".concat(Mi,"-item-disabled"),dn))},y.createElement("span",{className:"".concat(Mi,"-item-content")},fn),yn&&y.createElement(I,{className:"".concat(Mi,"-item-remove"),onMouseDown:Me,onClick:Sn,customizeIcon:xr},"\xD7"))},Ie=function(Jt,fn,dn,yn,Sn,Xn){var _r=function(mn){Me(mn),Ji(!An)};return y.createElement("span",{onMouseDown:_r},Dt({label:fn,value:Jt,disabled:dn,closable:yn,onClose:Sn,isMaxTag:!!Xn}))},cn=function(Jt){var fn=Jt.disabled,dn=Jt.label,yn=Jt.value,Sn=!At&&!fn,Xn=dn;if(typeof St=="number"&&(typeof dn=="string"||typeof dn=="number")){var _r=String(Xn);_r.length>St&&(Xn="".concat(_r.slice(0,St),"..."))}var Fr=function(Cr){Cr&&Cr.stopPropagation(),Ri(Jt)};return typeof Dt=="function"?Ie(yn,Xn,fn,Sn,Fr):Et(Jt,Xn,fn,Sn,Fr)},sn=function(Jt){if(!en.length)return null;var fn=typeof vi=="function"?vi(Jt):vi;return typeof Dt=="function"?Ie(void 0,fn,!1,!1,void 0,!0):Et({title:fn},fn,!1)},bn=y.createElement("div",{className:"".concat(Mi,"-search"),style:{width:Wn},onFocus:function(){pi(!0)},onBlur:function(){pi(!1)}},y.createElement(ae,{ref:gn,open:An,prefixCls:ft,id:On,inputElement:null,disabled:At,autoFocus:wn,autoComplete:Ht,editable:Vt,activeDescendantId:lr,value:_t,onKeyDown:Rr,onMouseDown:li,onChange:oi,onPaste:Oi,onCompositionStart:Pr,onCompositionEnd:qr,onBlur:ri,tabIndex:pr,attrs:(0,U.Z)(It,!0)}),y.createElement("span",{ref:Gt,className:"".concat(Mi,"-search-mirror"),"aria-hidden":!0},_t,"\xA0")),_n=y.createElement(G.Z,{prefixCls:"".concat(Mi,"-overflow"),data:en,renderItem:cn,renderRest:sn,suffix:bn,itemKey:pe,maxCount:Pn});return y.createElement("span",{className:"".concat(Mi,"-wrap")},_n,!en.length&&!_t&&y.createElement("span",{className:"".concat(Mi,"-placeholder")},Hn))},Le=Oe,Pe=function(It){var On=It.inputElement,ft=It.prefixCls,en=It.id,An=It.inputRef,Un=It.disabled,gt=It.autoFocus,gn=It.autoComplete,Hn=It.activeDescendantId,At=It.mode,we=It.open,Bn=It.values,wn=It.placeholder,Ht=It.tabIndex,lr=It.showSearch,pr=It.searchValue,xr=It.activeValue,Pn=It.maxLength,St=It.onInputKeyDown,gr=It.onInputMouseDown,vi=It.onInputChange,Dt=It.onInputPaste,Ji=It.onInputCompositionStart,Ri=It.onInputCompositionEnd,oi=It.onInputBlur,Oi=It.title,Rr=y.useState(!1),li=(0,A.Z)(Rr,2),Pr=li[0],qr=li[1],ri=At==="combobox",Gt=ri||lr,ui=Bn[0],Kt=pr||"";ri&&xr&&!Pr&&(Kt=xr),y.useEffect(function(){ri&&qr(!1)},[ri,xr]);var Wn=At!=="combobox"&&!we&&!lr?!1:!!Kt,er=Oi===void 0?le(ui):Oi,rr=y.useMemo(function(){return ui?null:y.createElement("span",{className:"".concat(ft,"-selection-placeholder"),style:Wn?{visibility:"hidden"}:void 0},wn)},[ui,Wn,wn,ft]);return y.createElement("span",{className:"".concat(ft,"-selection-wrap")},y.createElement("span",{className:"".concat(ft,"-selection-search")},y.createElement(ae,{ref:An,prefixCls:ft,id:en,open:we,inputElement:On,disabled:Un,autoFocus:gt,autoComplete:gn,editable:Gt,activeDescendantId:Hn,value:Kt,onKeyDown:St,onMouseDown:gr,onChange:function(Li){qr(!0),vi(Li)},onPaste:Dt,onCompositionStart:Ji,onCompositionEnd:Ri,onBlur:oi,tabIndex:Ht,attrs:(0,U.Z)(It,!0),maxLength:ri?Pn:void 0})),!ri&&ui?y.createElement("span",{className:"".concat(ft,"-selection-item"),title:er,style:Wn?{visibility:"hidden"}:void 0},ui.label):null,rr)},De=Pe,Ke=function(It,On){var ft=(0,y.useRef)(null),en=(0,y.useRef)(!1),An=It.prefixCls,Un=It.open,gt=It.mode,gn=It.showSearch,Hn=It.tokenWithEnter,At=It.disabled,we=It.prefix,Bn=It.autoClearSearchValue,wn=It.onSearch,Ht=It.onSearchSubmit,lr=It.onToggleOpen,pr=It.onInputKeyDown,xr=It.onInputBlur,Pn=It.domRef;y.useImperativeHandle(On,function(){return{focus:function(er){ft.current.focus(er)},blur:function(){ft.current.blur()}}});var St=H(0),gr=(0,A.Z)(St,2),vi=gr[0],Dt=gr[1],Ji=function(er){var rr=er.which,Di=ft.current instanceof HTMLTextAreaElement;!Di&&Un&&(rr===V.Z.UP||rr===V.Z.DOWN)&&er.preventDefault(),pr&&pr(er),rr===V.Z.ENTER&&gt==="tags"&&!en.current&&!Un&&(Ht==null||Ht(er.target.value)),!(Di&&!Un&&~[V.Z.UP,V.Z.DOWN,V.Z.LEFT,V.Z.RIGHT].indexOf(rr))&&P(rr)&&lr(!0)},Ri=function(){Dt(!0)},oi=(0,y.useRef)(null),Oi=function(er){wn(er,!0,en.current)!==!1&&lr(!0)},Rr=function(){en.current=!0},li=function(er){en.current=!1,gt!=="combobox"&&Oi(er.target.value)},Pr=function(er){var rr=er.target.value;if(Hn&&oi.current&&/[\r\n]/.test(oi.current)){var Di=oi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");rr=rr.replace(Di,oi.current)}oi.current=null,Oi(rr)},qr=function(er){var rr=er.clipboardData,Di=rr==null?void 0:rr.getData("text");oi.current=Di||""},ri=function(er){var rr=er.target;if(rr!==ft.current){var Di=document.body.style.msTouchAction!==void 0;Di?setTimeout(function(){ft.current.focus()}):ft.current.focus()}},Gt=function(er){var rr=vi();er.target!==ft.current&&!rr&&!(gt==="combobox"&&At)&&er.preventDefault(),(gt!=="combobox"&&(!gn||!rr)||!Un)&&(Un&&Bn!==!1&&wn("",!0,!1),lr())},ui={inputRef:ft,onInputKeyDown:Ji,onInputMouseDown:Ri,onInputChange:Pr,onInputPaste:qr,onInputCompositionStart:Rr,onInputCompositionEnd:li,onInputBlur:xr},Kt=gt==="multiple"||gt==="tags"?y.createElement(Le,(0,B.Z)({},It,ui)):y.createElement(De,(0,B.Z)({},It,ui));return y.createElement("div",{ref:Pn,className:"".concat(An,"-selector"),onClick:ri,onMouseDown:Gt},we&&y.createElement("div",{className:"".concat(An,"-prefix")},we),Kt)},ze=y.forwardRef(Ke),it=ze,ot=S(65352),Ge=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ee=function(It){var On=It===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:On,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:On,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:On,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:On,adjustY:1},htmlRegion:"scroll"}}},fe=function(It,On){var ft=It.prefixCls,en=It.disabled,An=It.visible,Un=It.children,gt=It.popupElement,gn=It.animation,Hn=It.transitionName,At=It.dropdownStyle,we=It.dropdownClassName,Bn=It.direction,wn=Bn===void 0?"ltr":Bn,Ht=It.placement,lr=It.builtinPlacements,pr=It.dropdownMatchSelectWidth,xr=It.dropdownRender,Pn=It.dropdownAlign,St=It.getPopupContainer,gr=It.empty,vi=It.getTriggerDOMNode,Dt=It.onPopupVisibleChange,Ji=It.onPopupMouseEnter,Ri=(0,u.Z)(It,Ge),oi="".concat(ft,"-dropdown"),Oi=gt;xr&&(Oi=xr(gt));var Rr=y.useMemo(function(){return lr||Ee(pr)},[lr,pr]),li=gn?"".concat(oi,"-").concat(gn):Hn,Pr=typeof pr=="number",qr=y.useMemo(function(){return Pr?null:pr===!1?"minWidth":"width"},[pr,Pr]),ri=At;Pr&&(ri=(0,C.Z)((0,C.Z)({},ri),{},{width:pr}));var Gt=y.useRef(null);return y.useImperativeHandle(On,function(){return{getPopupElement:function(){var Kt;return(Kt=Gt.current)===null||Kt===void 0?void 0:Kt.popupElement}}}),y.createElement(ot.Z,(0,B.Z)({},Ri,{showAction:Dt?["click"]:[],hideAction:Dt?["click"]:[],popupPlacement:Ht||(wn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Rr,prefixCls:oi,popupTransitionName:li,popup:y.createElement("div",{onMouseEnter:Ji},Oi),ref:Gt,stretch:qr,popupAlign:Pn,popupVisible:An,getPopupContainer:St,popupClassName:c()(we,(0,s.Z)({},"".concat(oi,"-empty"),gr)),popupStyle:ri,getTriggerDOMNode:vi,onPopupVisibleChange:Dt}),Un)},z=y.forwardRef(fe),X=z,de=S(68413);function Ce(Mt,It){var On=Mt.key,ft;return"value"in Mt&&(ft=Mt.value),On!=null?On:ft!==void 0?ft:"rc-index-key-".concat(It)}function ne(Mt){return typeof Mt!="undefined"&&!Number.isNaN(Mt)}function re(Mt,It){var On=Mt||{},ft=On.label,en=On.value,An=On.options,Un=On.groupLabel,gt=ft||(It?"children":"label");return{label:gt,value:en||"value",options:An||"options",groupLabel:Un||gt}}function he(Mt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},On=It.fieldNames,ft=It.childrenAsData,en=[],An=re(On,!1),Un=An.label,gt=An.value,gn=An.options,Hn=An.groupLabel;function At(we,Bn){Array.isArray(we)&&we.forEach(function(wn){if(Bn||!(gn in wn)){var Ht=wn[gt];en.push({key:Ce(wn,en.length),groupOption:Bn,data:wn,label:wn[Un],value:Ht})}else{var lr=wn[Hn];lr===void 0&&ft&&(lr=wn.label),en.push({key:Ce(wn,en.length),group:!0,data:wn,label:lr}),At(wn[gn],!0)}})}return At(Mt,!1),en}function _e(Mt){var It=(0,C.Z)({},Mt);return"props"in It||Object.defineProperty(It,"props",{get:function(){return(0,g.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),It}}),It}var Be=function(It,On,ft){if(!On||!On.length)return null;var en=!1,An=function gt(gn,Hn){var At=(0,de.Z)(Hn),we=At[0],Bn=At.slice(1);if(!we)return[gn];var wn=gn.split(we);return en=en||wn.length>1,wn.reduce(function(Ht,lr){return[].concat((0,Z.Z)(Ht),(0,Z.Z)(gt(lr,Bn)))},[]).filter(Boolean)},Un=An(It,On);return en?typeof ft!="undefined"?Un.slice(0,ft):Un:null},Ue=y.createContext(null),rt=Ue;function et(Mt){var It=Mt.visible,On=Mt.values;if(!It)return null;var ft=50;return y.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(On.slice(0,ft).map(function(en){var An=en.label,Un=en.value;return["number","string"].includes((0,p.Z)(An))?An:Un}).join(", ")),On.length>ft?", ...":null)}var dt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ot=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],pt=function(It){return It==="tags"||It==="multiple"},nt=y.forwardRef(function(Mt,It){var On,ft=Mt.id,en=Mt.prefixCls,An=Mt.className,Un=Mt.showSearch,gt=Mt.tagRender,gn=Mt.direction,Hn=Mt.omitDomProps,At=Mt.displayValues,we=Mt.onDisplayValuesChange,Bn=Mt.emptyOptions,wn=Mt.notFoundContent,Ht=wn===void 0?"Not Found":wn,lr=Mt.onClear,pr=Mt.mode,xr=Mt.disabled,Pn=Mt.loading,St=Mt.getInputElement,gr=Mt.getRawInputElement,vi=Mt.open,Dt=Mt.defaultOpen,Ji=Mt.onDropdownVisibleChange,Ri=Mt.activeValue,oi=Mt.onActiveValueChange,Oi=Mt.activeDescendantId,Rr=Mt.searchValue,li=Mt.autoClearSearchValue,Pr=Mt.onSearch,qr=Mt.onSearchSplit,ri=Mt.tokenSeparators,Gt=Mt.allowClear,ui=Mt.prefix,Kt=Mt.suffixIcon,Wn=Mt.clearIcon,er=Mt.OptionList,rr=Mt.animation,Di=Mt.transitionName,Li=Mt.dropdownStyle,pi=Mt.dropdownClassName,Mi=Mt.dropdownMatchSelectWidth,_t=Mt.dropdownRender,Vt=Mt.dropdownAlign,Et=Mt.placement,Ie=Mt.builtinPlacements,cn=Mt.getPopupContainer,sn=Mt.showAction,bn=sn===void 0?[]:sn,_n=Mt.onFocus,Rn=Mt.onBlur,Jt=Mt.onKeyUp,fn=Mt.onKeyDown,dn=Mt.onMouseDown,yn=(0,u.Z)(Mt,dt),Sn=pt(pr),Xn=(Un!==void 0?Un:Sn)||pr==="combobox",_r=(0,C.Z)({},yn);Ot.forEach(function(no){delete _r[no]}),Hn==null||Hn.forEach(function(no){delete _r[no]});var Fr=y.useState(!1),mn=(0,A.Z)(Fr,2),Cr=mn[0],Or=mn[1];y.useEffect(function(){Or((0,m.Z)())},[]);var yi=y.useRef(null),Kr=y.useRef(null),bi=y.useRef(null),Si=y.useRef(null),hi=y.useRef(null),Wi=y.useRef(!1),to=L(),go=(0,A.Z)(to,3),xt=go[0],ei=go[1],si=go[2];y.useImperativeHandle(It,function(){var no,ci;return{focus:(no=Si.current)===null||no===void 0?void 0:no.focus,blur:(ci=Si.current)===null||ci===void 0?void 0:ci.blur,scrollTo:function(es){var Lo;return(Lo=hi.current)===null||Lo===void 0?void 0:Lo.scrollTo(es)},nativeElement:yi.current||Kr.current}});var Sr=y.useMemo(function(){var no;if(pr!=="combobox")return Rr;var ci=(no=At[0])===null||no===void 0?void 0:no.value;return typeof ci=="string"||typeof ci=="number"?String(ci):""},[Rr,pr,At]),ii=pr==="combobox"&&typeof St=="function"&&St()||null,Br=typeof gr=="function"&&gr(),Qi=(0,E.x1)(Kr,Br==null||(On=Br.props)===null||On===void 0?void 0:On.ref),kt=y.useState(!1),Jr=(0,A.Z)(kt,2),Vi=Jr[0],Ts=Jr[1];(0,h.Z)(function(){Ts(!0)},[]);var ds=(0,b.Z)(!1,{defaultValue:Dt,value:vi}),js=(0,A.Z)(ds,2),_s=js[0],ar=js[1],Ki=Vi?_s:!1,yo=!Ht&&Bn;(xr||yo&&Ki&&pr==="combobox")&&(Ki=!1);var Ho=yo?!1:Ki,Yr=y.useCallback(function(no){var ci=no!==void 0?no:!Ki;xr||(ar(ci),Ki!==ci&&(Ji==null||Ji(ci)))},[xr,Ki,ar,Ji]),jr=y.useMemo(function(){return(ri||[]).some(function(no){return[`
`,`\r
`].includes(no)})},[ri]),an=y.useContext(rt)||{},cr=an.maxCount,Gr=an.rawValues,ro=function(ci,_i,es){if(!(Sn&&ne(cr)&&(Gr==null?void 0:Gr.size)>=cr)){var Lo=!0,jo=ci;oi==null||oi(null);var Zn=Be(ci,ri,ne(cr)?cr-Gr.size:void 0),ia=es?null:Zn;return pr!=="combobox"&&ia&&(jo="",qr==null||qr(ia),Yr(!1),Lo=!1),Pr&&Sr!==jo&&Pr(jo,{source:_i?"typing":"effect"}),Lo}},zo=function(ci){!ci||!ci.trim()||Pr(ci,{source:"submit"})};y.useEffect(function(){!Ki&&!Sn&&pr!=="combobox"&&ro("",!1,!1)},[Ki]),y.useEffect(function(){_s&&xr&&ar(!1),xr&&!Wi.current&&ei(!1)},[xr]);var Qo=H(),Tr=(0,A.Z)(Qo,2),So=Tr[0],Oo=Tr[1],Co=y.useRef(!1),Pi=function(ci){var _i=So(),es=ci.key,Lo=es==="Enter";if(Lo&&(pr!=="combobox"&&ci.preventDefault(),Ki||Yr(!0)),Oo(!!Sr),es==="Backspace"&&!_i&&Sn&&!Sr&&At.length){for(var jo=(0,Z.Z)(At),Zn=null,ia=jo.length-1;ia>=0;ia-=1){var ht=jo[ia];if(!ht.disabled){jo.splice(ia,1),Zn=ht;break}}Zn&&we(jo,{type:"remove",values:[Zn]})}for(var qt=arguments.length,il=new Array(qt>1?qt-1:0),Zl=1;Zl<qt;Zl++)il[Zl-1]=arguments[Zl];if(Ki&&(!Lo||!Co.current)){var Xo;Lo&&(Co.current=!0),(Xo=hi.current)===null||Xo===void 0||Xo.onKeyDown.apply(Xo,[ci].concat(il))}fn==null||fn.apply(void 0,[ci].concat(il))},lo=function(ci){for(var _i=arguments.length,es=new Array(_i>1?_i-1:0),Lo=1;Lo<_i;Lo++)es[Lo-1]=arguments[Lo];if(Ki){var jo;(jo=hi.current)===null||jo===void 0||jo.onKeyUp.apply(jo,[ci].concat(es))}ci.key==="Enter"&&(Co.current=!1),Jt==null||Jt.apply(void 0,[ci].concat(es))},Is=function(ci){var _i=At.filter(function(es){return es!==ci});we(_i,{type:"remove",values:[ci]})},Bi=function(){Co.current=!1},cs=y.useRef(!1),Sa=function(){ei(!0),xr||(_n&&!cs.current&&_n.apply(void 0,arguments),bn.includes("focus")&&Yr(!0)),cs.current=!0},rl=function(){Wi.current=!0,ei(!1,function(){cs.current=!1,Wi.current=!1,Yr(!1)}),!xr&&(Sr&&(pr==="tags"?Pr(Sr,{source:"submit"}):pr==="multiple"&&Pr("",{source:"blur"})),Rn&&Rn.apply(void 0,arguments))},xo=[];y.useEffect(function(){return function(){xo.forEach(function(no){return clearTimeout(no)}),xo.splice(0,xo.length)}},[]);var Oa=function(ci){var _i,es=ci.target,Lo=(_i=bi.current)===null||_i===void 0?void 0:_i.getPopupElement();if(Lo&&Lo.contains(es)){var jo=setTimeout(function(){var qt=xo.indexOf(jo);if(qt!==-1&&xo.splice(qt,1),si(),!Cr&&!Lo.contains(document.activeElement)){var il;(il=Si.current)===null||il===void 0||il.focus()}});xo.push(jo)}for(var Zn=arguments.length,ia=new Array(Zn>1?Zn-1:0),ht=1;ht<Zn;ht++)ia[ht-1]=arguments[ht];dn==null||dn.apply(void 0,[ci].concat(ia))},Yl=y.useState({}),Ga=(0,A.Z)(Yl,2),ra=Ga[1];function Us(){ra({})}var Wa;Br&&(Wa=function(ci){Yr(ci)}),D(function(){var no;return[yi.current,(no=bi.current)===null||no===void 0?void 0:no.getPopupElement()]},Ho,Yr,!!Br);var pu=y.useMemo(function(){return(0,C.Z)((0,C.Z)({},Mt),{},{notFoundContent:Ht,open:Ki,triggerOpen:Ho,id:ft,showSearch:Xn,multiple:Sn,toggleOpen:Yr})},[Mt,Ht,Ho,Ki,ft,Xn,Sn,Yr]),$l=!!Kt||Pn,Bo;$l&&(Bo=y.createElement(I,{className:c()("".concat(en,"-arrow"),(0,s.Z)({},"".concat(en,"-arrow-loading"),Pn)),customizeIcon:Kt,customizeIconProps:{loading:Pn,searchValue:Sr,open:Ki,focused:xt,showSearch:Xn}}));var Xl=function(){var ci;lr==null||lr(),(ci=Si.current)===null||ci===void 0||ci.focus(),we([],{type:"clear",values:At}),ro("",!1,!1)},gu=R(en,Xl,At,Gt,Wn,xr,Sr,pr),Ol=gu.allowClear,Ll=gu.clearIcon,Ss=y.createElement(er,{ref:hi}),As=c()(en,An,(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},"".concat(en,"-focused"),xt),"".concat(en,"-multiple"),Sn),"".concat(en,"-single"),!Sn),"".concat(en,"-allow-clear"),Gt),"".concat(en,"-show-arrow"),$l),"".concat(en,"-disabled"),xr),"".concat(en,"-loading"),Pn),"".concat(en,"-open"),Ki),"".concat(en,"-customize-input"),ii),"".concat(en,"-show-search"),Xn)),$o=y.createElement(X,{ref:bi,disabled:xr,prefixCls:en,visible:Ho,popupElement:Ss,animation:rr,transitionName:Di,dropdownStyle:Li,dropdownClassName:pi,direction:gn,dropdownMatchSelectWidth:Mi,dropdownRender:_t,dropdownAlign:Vt,placement:Et,builtinPlacements:Ie,getPopupContainer:cn,empty:Bn,getTriggerDOMNode:function(ci){return Kr.current||ci},onPopupVisibleChange:Wa,onPopupMouseEnter:Us},Br?y.cloneElement(Br,{ref:Qi}):y.createElement(it,(0,B.Z)({},Mt,{domRef:Kr,prefixCls:en,inputElement:ii,ref:Si,id:ft,prefix:ui,showSearch:Xn,autoClearSearchValue:li,mode:pr,activeDescendantId:Oi,tagRender:gt,values:At,open:Ki,onToggleOpen:Yr,activeValue:Ri,searchValue:Sr,onSearch:ro,onSearchSubmit:zo,onRemove:Is,tokenWithEnter:jr,onInputBlur:Bi}))),qo;return Br?qo=$o:qo=y.createElement("div",(0,B.Z)({className:As},_r,{ref:yi,onMouseDown:Oa,onKeyDown:Pi,onKeyUp:lo,onFocus:Sa,onBlur:rl}),y.createElement(et,{visible:xt&&!Ki,values:At}),$o,Bo,Ol&&Ll),y.createElement(N.Provider,{value:pu},qo)}),ut=nt,Tt=function(){return null};Tt.isSelectOptGroup=!0;var vt=Tt,Ct=function(){return null};Ct.isSelectOption=!0;var Ft=Ct,Rt=S(80547),$e=S(2738),Zt=S(45680);function vn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var wt=["disabled","title","children","style","className"];function Dn(Mt){return typeof Mt=="string"||typeof Mt=="number"}var nr=function(It,On){var ft=k(),en=ft.prefixCls,An=ft.id,Un=ft.open,gt=ft.multiple,gn=ft.mode,Hn=ft.searchValue,At=ft.toggleOpen,we=ft.notFoundContent,Bn=ft.onPopupScroll,wn=y.useContext(rt),Ht=wn.maxCount,lr=wn.flattenOptions,pr=wn.onActiveValue,xr=wn.defaultActiveFirstOption,Pn=wn.onSelect,St=wn.menuItemSelectedIcon,gr=wn.rawValues,vi=wn.fieldNames,Dt=wn.virtual,Ji=wn.direction,Ri=wn.listHeight,oi=wn.listItemHeight,Oi=wn.optionRender,Rr="".concat(en,"-item"),li=(0,Rt.Z)(function(){return lr},[Un,lr],function(sn,bn){return bn[0]&&sn[1]!==bn[1]}),Pr=y.useRef(null),qr=y.useMemo(function(){return gt&&ne(Ht)&&(gr==null?void 0:gr.size)>=Ht},[gt,Ht,gr==null?void 0:gr.size]),ri=function(bn){bn.preventDefault()},Gt=function(bn){var _n;(_n=Pr.current)===null||_n===void 0||_n.scrollTo(typeof bn=="number"?{index:bn}:bn)},ui=y.useCallback(function(sn){return gn==="combobox"?!1:gr.has(sn)},[gn,(0,Z.Z)(gr).toString(),gr.size]),Kt=function(bn){for(var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Rn=li.length,Jt=0;Jt<Rn;Jt+=1){var fn=(bn+Jt*_n+Rn)%Rn,dn=li[fn]||{},yn=dn.group,Sn=dn.data;if(!yn&&!(Sn!=null&&Sn.disabled)&&(ui(Sn.value)||!qr))return fn}return-1},Wn=y.useState(function(){return Kt(0)}),er=(0,A.Z)(Wn,2),rr=er[0],Di=er[1],Li=function(bn){var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Di(bn);var Rn={source:_n?"keyboard":"mouse"},Jt=li[bn];if(!Jt){pr(null,-1,Rn);return}pr(Jt.value,bn,Rn)};(0,y.useEffect)(function(){Li(xr!==!1?Kt(0):-1)},[li.length,Hn]);var pi=y.useCallback(function(sn){return gn==="combobox"?String(sn).toLowerCase()===Hn.toLowerCase():gr.has(sn)},[gn,Hn,(0,Z.Z)(gr).toString(),gr.size]);(0,y.useEffect)(function(){var sn=setTimeout(function(){if(!gt&&Un&&gr.size===1){var _n=Array.from(gr)[0],Rn=li.findIndex(function(Jt){var fn=Jt.data;return fn.value===_n});Rn!==-1&&(Li(Rn),Gt(Rn))}});if(Un){var bn;(bn=Pr.current)===null||bn===void 0||bn.scrollTo(void 0)}return function(){return clearTimeout(sn)}},[Un,Hn]);var Mi=function(bn){bn!==void 0&&Pn(bn,{selected:!gr.has(bn)}),gt||At(!1)};if(y.useImperativeHandle(On,function(){return{onKeyDown:function(bn){var _n=bn.which,Rn=bn.ctrlKey;switch(_n){case V.Z.N:case V.Z.P:case V.Z.UP:case V.Z.DOWN:{var Jt=0;if(_n===V.Z.UP?Jt=-1:_n===V.Z.DOWN?Jt=1:vn()&&Rn&&(_n===V.Z.N?Jt=1:_n===V.Z.P&&(Jt=-1)),Jt!==0){var fn=Kt(rr+Jt,Jt);Gt(fn),Li(fn,!0)}break}case V.Z.TAB:case V.Z.ENTER:{var dn,yn=li[rr];yn&&!(yn!=null&&(dn=yn.data)!==null&&dn!==void 0&&dn.disabled)&&!qr?Mi(yn.value):Mi(void 0),Un&&bn.preventDefault();break}case V.Z.ESC:At(!1),Un&&bn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(bn){Gt(bn)}}}),li.length===0)return y.createElement("div",{role:"listbox",id:"".concat(An,"_list"),className:"".concat(Rr,"-empty"),onMouseDown:ri},we);var _t=Object.keys(vi).map(function(sn){return vi[sn]}),Vt=function(bn){return bn.label};function Et(sn,bn){var _n=sn.group;return{role:_n?"presentation":"option",id:"".concat(An,"_list_").concat(bn)}}var Ie=function(bn){var _n=li[bn];if(!_n)return null;var Rn=_n.data||{},Jt=Rn.value,fn=_n.group,dn=(0,U.Z)(Rn,!0),yn=Vt(_n);return _n?y.createElement("div",(0,B.Z)({"aria-label":typeof yn=="string"&&!fn?yn:null},dn,{key:bn},Et(_n,bn),{"aria-selected":pi(Jt)}),Jt):null},cn={role:"listbox",id:"".concat(An,"_list")};return y.createElement(y.Fragment,null,Dt&&y.createElement("div",(0,B.Z)({},cn,{style:{height:0,width:0,overflow:"hidden"}}),Ie(rr-1),Ie(rr),Ie(rr+1)),y.createElement(Zt.Z,{itemKey:"key",ref:Pr,data:li,height:Ri,itemHeight:oi,fullHeight:!1,onMouseDown:ri,onScroll:Bn,virtual:Dt,direction:Ji,innerProps:Dt?null:cn},function(sn,bn){var _n=sn.group,Rn=sn.groupOption,Jt=sn.data,fn=sn.label,dn=sn.value,yn=Jt.key;if(_n){var Sn,Xn=(Sn=Jt.title)!==null&&Sn!==void 0?Sn:Dn(fn)?fn.toString():void 0;return y.createElement("div",{className:c()(Rr,"".concat(Rr,"-group"),Jt.className),title:Xn},fn!==void 0?fn:yn)}var _r=Jt.disabled,Fr=Jt.title,mn=Jt.children,Cr=Jt.style,Or=Jt.className,yi=(0,u.Z)(Jt,wt),Kr=(0,$e.Z)(yi,_t),bi=ui(dn),Si=_r||!bi&&qr,hi="".concat(Rr,"-option"),Wi=c()(Rr,hi,Or,(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},"".concat(hi,"-grouped"),Rn),"".concat(hi,"-active"),rr===bn&&!Si),"".concat(hi,"-disabled"),Si),"".concat(hi,"-selected"),bi)),to=Vt(sn),go=!St||typeof St=="function"||bi,xt=typeof to=="number"?to:to||dn,ei=Dn(xt)?xt.toString():void 0;return Fr!==void 0&&(ei=Fr),y.createElement("div",(0,B.Z)({},(0,U.Z)(Kr),Dt?{}:Et(sn,bn),{"aria-selected":pi(dn),className:Wi,title:ei,onMouseMove:function(){rr===bn||Si||Li(bn)},onClick:function(){Si||Mi(dn)},style:Cr}),y.createElement("div",{className:"".concat(hi,"-content")},typeof Oi=="function"?Oi(sn,{index:bn}):xt),y.isValidElement(St)||bi,go&&y.createElement(I,{className:"".concat(Rr,"-option-state"),customizeIcon:St,customizeIconProps:{value:dn,disabled:Si,isSelected:bi}},bi?"\u2713":null))}))},Qn=y.forwardRef(nr),jt=Qn,br=function(Mt,It){var On=y.useRef({values:new Map,options:new Map}),ft=y.useMemo(function(){var An=On.current,Un=An.values,gt=An.options,gn=Mt.map(function(we){if(we.label===void 0){var Bn;return(0,C.Z)((0,C.Z)({},we),{},{label:(Bn=Un.get(we.value))===null||Bn===void 0?void 0:Bn.label})}return we}),Hn=new Map,At=new Map;return gn.forEach(function(we){Hn.set(we.value,we),At.set(we.value,It.get(we.value)||gt.get(we.value))}),On.current.values=Hn,On.current.options=At,gn},[Mt,It]),en=y.useCallback(function(An){return It.get(An)||On.current.options.get(An)},[It]);return[ft,en]};function dr(Mt,It){return oe(Mt).join("").toUpperCase().includes(It)}var zn=function(Mt,It,On,ft,en){return y.useMemo(function(){if(!On||ft===!1)return Mt;var An=It.options,Un=It.label,gt=It.value,gn=[],Hn=typeof ft=="function",At=On.toUpperCase(),we=Hn?ft:function(wn,Ht){return en?dr(Ht[en],At):Ht[An]?dr(Ht[Un!=="children"?Un:"label"],At):dr(Ht[gt],At)},Bn=Hn?function(wn){return _e(wn)}:function(wn){return wn};return Mt.forEach(function(wn){if(wn[An]){var Ht=we(On,Bn(wn));if(Ht)gn.push(wn);else{var lr=wn[An].filter(function(pr){return we(On,Bn(pr))});lr.length&&gn.push((0,C.Z)((0,C.Z)({},wn),{},(0,s.Z)({},An,lr)))}return}we(On,Bn(wn))&&gn.push(wn)}),gn},[Mt,ft,en,On,It])},$n=S(69582),Er=S(11592),me=["children","value"],jn=["children"];function Cn(Mt){var It=Mt,On=It.key,ft=It.props,en=ft.children,An=ft.value,Un=(0,u.Z)(ft,me);return(0,C.Z)({key:On,value:An!==void 0?An:On,children:en},Un)}function qn(Mt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Er.Z)(Mt).map(function(On,ft){if(!y.isValidElement(On)||!On.type)return null;var en=On,An=en.type.isSelectOptGroup,Un=en.key,gt=en.props,gn=gt.children,Hn=(0,u.Z)(gt,jn);return It||!An?Cn(On):(0,C.Z)((0,C.Z)({key:"__RC_SELECT_GRP__".concat(Un===null?ft:Un,"__"),label:Un},Hn),{},{options:qn(gn)})}).filter(function(On){return On})}var Ir=function(It,On,ft,en,An){return y.useMemo(function(){var Un=It,gt=!It;gt&&(Un=qn(On));var gn=new Map,Hn=new Map,At=function(wn,Ht,lr){lr&&typeof lr=="string"&&wn.set(Ht[lr],Ht)},we=function Bn(wn){for(var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lr=0;lr<wn.length;lr+=1){var pr=wn[lr];!pr[ft.options]||Ht?(gn.set(pr[ft.value],pr),At(Hn,pr,ft.label),At(Hn,pr,en),At(Hn,pr,An)):Bn(pr[ft.options],!0)}};return we(Un),{options:Un,valueOptions:gn,labelOptions:Hn}},[It,On,ft,en,An])},Vr=Ir;function fr(Mt){var It=y.useRef();It.current=Mt;var On=y.useCallback(function(){return It.current.apply(It,arguments)},[]);return On}function oo(Mt){var It=Mt.mode,On=Mt.options,ft=Mt.children,en=Mt.backfill,An=Mt.allowClear,Un=Mt.placeholder,gt=Mt.getInputElement,gn=Mt.showSearch,Hn=Mt.onSearch,At=Mt.defaultOpen,we=Mt.autoFocus,Bn=Mt.labelInValue,wn=Mt.value,Ht=Mt.inputValue,lr=Mt.optionLabelProp,pr=isMultiple(It),xr=gn!==void 0?gn:pr||It==="combobox",Pn=On||convertChildrenToData(ft);if(warning(It!=="tags"||Pn.every(function(Dt){return!Dt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),It==="tags"||It==="combobox"){var St=Pn.some(function(Dt){return Dt.options?Dt.options.some(function(Ji){return typeof("value"in Ji?Ji.value:Ji.key)=="number"}):typeof("value"in Dt?Dt.value:Dt.key)=="number"});warning(!St,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(It!=="combobox"||!lr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(It==="combobox"||!en,"`backfill` only works with `combobox` mode."),warning(It==="combobox"||!gt,"`getInputElement` only work with `combobox` mode."),noteOnce(It!=="combobox"||!gt||!An||!Un,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Hn&&!xr&&It!=="combobox"&&It!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!At||we,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),wn!=null){var gr=toArray(wn);warning(!Bn||gr.every(function(Dt){return _typeof(Dt)==="object"&&("key"in Dt||"value"in Dt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!pr||Array.isArray(wn),"`value` should be array when `mode` is `multiple` or `tags`")}if(ft){var vi=null;toNodeArray(ft).some(function(Dt){if(!React.isValidElement(Dt)||!Dt.type)return!1;var Ji=Dt,Ri=Ji.type;if(Ri.isSelectOption)return!1;if(Ri.isSelectOptGroup){var oi=toNodeArray(Dt.props.children).every(function(Oi){return!React.isValidElement(Oi)||!Dt.type||Oi.type.isSelectOption?!0:(vi=Oi.type,!1)});return!oi}return vi=Ri,!0}),vi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(vi.displayName||vi.name||vi,"`.")),warning(Ht===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Zr(Mt,It){if(Mt){var On=function ft(en){for(var An=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Un=0;Un<en.length;Un++){var gt=en[Un];if(gt[It==null?void 0:It.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!An&&Array.isArray(gt[It==null?void 0:It.options])&&ft(gt[It==null?void 0:It.options],!0))break}};On(Mt)}}var Qr=null,Kn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Mn=["inputValue"];function ai(Mt){return!Mt||(0,p.Z)(Mt)!=="object"}var Nr=y.forwardRef(function(Mt,It){var On=Mt.id,ft=Mt.mode,en=Mt.prefixCls,An=en===void 0?"rc-select":en,Un=Mt.backfill,gt=Mt.fieldNames,gn=Mt.inputValue,Hn=Mt.searchValue,At=Mt.onSearch,we=Mt.autoClearSearchValue,Bn=we===void 0?!0:we,wn=Mt.onSelect,Ht=Mt.onDeselect,lr=Mt.dropdownMatchSelectWidth,pr=lr===void 0?!0:lr,xr=Mt.filterOption,Pn=Mt.filterSort,St=Mt.optionFilterProp,gr=Mt.optionLabelProp,vi=Mt.options,Dt=Mt.optionRender,Ji=Mt.children,Ri=Mt.defaultActiveFirstOption,oi=Mt.menuItemSelectedIcon,Oi=Mt.virtual,Rr=Mt.direction,li=Mt.listHeight,Pr=li===void 0?200:li,qr=Mt.listItemHeight,ri=qr===void 0?20:qr,Gt=Mt.labelRender,ui=Mt.value,Kt=Mt.defaultValue,Wn=Mt.labelInValue,er=Mt.onChange,rr=Mt.maxCount,Di=(0,u.Z)(Mt,Kn),Li=(0,$n.ZP)(On),pi=pt(ft),Mi=!!(!vi&&Ji),_t=y.useMemo(function(){return xr===void 0&&ft==="combobox"?!1:xr},[xr,ft]),Vt=y.useMemo(function(){return re(gt,Mi)},[JSON.stringify(gt),Mi]),Et=(0,b.Z)("",{value:Hn!==void 0?Hn:gn,postState:function(jr){return jr||""}}),Ie=(0,A.Z)(Et,2),cn=Ie[0],sn=Ie[1],bn=Vr(vi,Ji,Vt,St,gr),_n=bn.valueOptions,Rn=bn.labelOptions,Jt=bn.options,fn=y.useCallback(function(Yr){var jr=oe(Yr);return jr.map(function(an){var cr,Gr,ro,zo,Qo;if(ai(an))cr=an;else{var Tr;ro=an.key,Gr=an.label,cr=(Tr=an.value)!==null&&Tr!==void 0?Tr:ro}var So=_n.get(cr);if(So){var Oo;if(Gr===void 0&&(Gr=So==null?void 0:So[gr||Vt.label]),ro===void 0&&(ro=(Oo=So==null?void 0:So.key)!==null&&Oo!==void 0?Oo:cr),zo=So==null?void 0:So.disabled,Qo=So==null?void 0:So.title,0)var Co}return{label:Gr,value:cr,key:ro,disabled:zo,title:Qo}})},[Vt,gr,_n]),dn=(0,b.Z)(Kt,{value:ui}),yn=(0,A.Z)(dn,2),Sn=yn[0],Xn=yn[1],_r=y.useMemo(function(){var Yr,jr=pi&&Sn===null?[]:Sn,an=fn(jr);return ft==="combobox"&&ve((Yr=an[0])===null||Yr===void 0?void 0:Yr.value)?[]:an},[Sn,fn,ft,pi]),Fr=br(_r,_n),mn=(0,A.Z)(Fr,2),Cr=mn[0],Or=mn[1],yi=y.useMemo(function(){if(!ft&&Cr.length===1){var Yr=Cr[0];if(Yr.value===null&&(Yr.label===null||Yr.label===void 0))return[]}return Cr.map(function(jr){var an;return(0,C.Z)((0,C.Z)({},jr),{},{label:(an=typeof Gt=="function"?Gt(jr):jr.label)!==null&&an!==void 0?an:jr.value})})},[ft,Cr,Gt]),Kr=y.useMemo(function(){return new Set(Cr.map(function(Yr){return Yr.value}))},[Cr]);y.useEffect(function(){if(ft==="combobox"){var Yr,jr=(Yr=Cr[0])===null||Yr===void 0?void 0:Yr.value;sn(ye(jr)?String(jr):"")}},[Cr]);var bi=fr(function(Yr,jr){var an=jr!=null?jr:Yr;return(0,s.Z)((0,s.Z)({},Vt.value,Yr),Vt.label,an)}),Si=y.useMemo(function(){if(ft!=="tags")return Jt;var Yr=(0,Z.Z)(Jt),jr=function(cr){return _n.has(cr)};return(0,Z.Z)(Cr).sort(function(an,cr){return an.value<cr.value?-1:1}).forEach(function(an){var cr=an.value;jr(cr)||Yr.push(bi(cr,an.label))}),Yr},[bi,Jt,_n,Cr,ft]),hi=zn(Si,Vt,cn,_t,St),Wi=y.useMemo(function(){return ft!=="tags"||!cn||hi.some(function(Yr){return Yr[St||"value"]===cn})||hi.some(function(Yr){return Yr[Vt.value]===cn})?hi:[bi(cn)].concat((0,Z.Z)(hi))},[bi,St,ft,hi,cn,Vt]),to=function Yr(jr){var an=(0,Z.Z)(jr).sort(function(cr,Gr){return Pn(cr,Gr,{searchValue:cn})});return an.map(function(cr){return Array.isArray(cr.options)?(0,C.Z)((0,C.Z)({},cr),{},{options:cr.options.length>0?Yr(cr.options):cr.options}):cr})},go=y.useMemo(function(){return Pn?to(Wi):Wi},[Wi,Pn,cn]),xt=y.useMemo(function(){return he(go,{fieldNames:Vt,childrenAsData:Mi})},[go,Vt,Mi]),ei=function(jr){var an=fn(jr);if(Xn(an),er&&(an.length!==Cr.length||an.some(function(ro,zo){var Qo;return((Qo=Cr[zo])===null||Qo===void 0?void 0:Qo.value)!==(ro==null?void 0:ro.value)}))){var cr=Wn?an:an.map(function(ro){return ro.value}),Gr=an.map(function(ro){return _e(Or(ro.value))});er(pi?cr:cr[0],pi?Gr:Gr[0])}},si=y.useState(null),Sr=(0,A.Z)(si,2),ii=Sr[0],Br=Sr[1],Qi=y.useState(0),kt=(0,A.Z)(Qi,2),Jr=kt[0],Vi=kt[1],Ts=Ri!==void 0?Ri:ft!=="combobox",ds=y.useCallback(function(Yr,jr){var an=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},cr=an.source,Gr=cr===void 0?"keyboard":cr;Vi(jr),Un&&ft==="combobox"&&Yr!==null&&Gr==="keyboard"&&Br(String(Yr))},[Un,ft]),js=function(jr,an,cr){var Gr=function(){var Is,Bi=Or(jr);return[Wn?{label:Bi==null?void 0:Bi[Vt.label],value:jr,key:(Is=Bi==null?void 0:Bi.key)!==null&&Is!==void 0?Is:jr}:jr,_e(Bi)]};if(an&&wn){var ro=Gr(),zo=(0,A.Z)(ro,2),Qo=zo[0],Tr=zo[1];wn(Qo,Tr)}else if(!an&&Ht&&cr!=="clear"){var So=Gr(),Oo=(0,A.Z)(So,2),Co=Oo[0],Pi=Oo[1];Ht(Co,Pi)}},_s=fr(function(Yr,jr){var an,cr=pi?jr.selected:!0;cr?an=pi?[].concat((0,Z.Z)(Cr),[Yr]):[Yr]:an=Cr.filter(function(Gr){return Gr.value!==Yr}),ei(an),js(Yr,cr),ft==="combobox"?Br(""):(!pt||Bn)&&(sn(""),Br(""))}),ar=function(jr,an){ei(jr);var cr=an.type,Gr=an.values;(cr==="remove"||cr==="clear")&&Gr.forEach(function(ro){js(ro.value,!1,cr)})},Ki=function(jr,an){if(sn(jr),Br(null),an.source==="submit"){var cr=(jr||"").trim();if(cr){var Gr=Array.from(new Set([].concat((0,Z.Z)(Kr),[cr])));ei(Gr),js(cr,!0),sn("")}return}an.source!=="blur"&&(ft==="combobox"&&ei(jr),At==null||At(jr))},yo=function(jr){var an=jr;ft!=="tags"&&(an=jr.map(function(Gr){var ro=Rn.get(Gr);return ro==null?void 0:ro.value}).filter(function(Gr){return Gr!==void 0}));var cr=Array.from(new Set([].concat((0,Z.Z)(Kr),(0,Z.Z)(an))));ei(cr),cr.forEach(function(Gr){js(Gr,!0)})},Ho=y.useMemo(function(){var Yr=Oi!==!1&&pr!==!1;return(0,C.Z)((0,C.Z)({},bn),{},{flattenOptions:xt,onActiveValue:ds,defaultActiveFirstOption:Ts,onSelect:_s,menuItemSelectedIcon:oi,rawValues:Kr,fieldNames:Vt,virtual:Yr,direction:Rr,listHeight:Pr,listItemHeight:ri,childrenAsData:Mi,maxCount:rr,optionRender:Dt})},[rr,bn,xt,ds,Ts,_s,oi,Kr,Vt,Oi,pr,Rr,Pr,ri,Mi,Dt]);return y.createElement(rt.Provider,{value:Ho},y.createElement(ut,(0,B.Z)({},Di,{id:Li,prefixCls:An,ref:It,omitDomProps:Mn,mode:ft,displayValues:yi,onDisplayValuesChange:ar,direction:Rr,searchValue:cn,onSearch:Ki,autoClearSearchValue:Bn,onSearchSplit:yo,dropdownMatchSelectWidth:pr,OptionList:jt,emptyOptions:!xt.length,activeValue:ii,activeDescendantId:"".concat(Li,"_list_").concat(Jr)})))}),zr=Nr;zr.Option=Ft,zr.OptGroup=vt;var pn=zr,Vn=pn},63158:function(Ne,Q,S){"use strict";var B=S(72308),Z=S(49618),s=S(52487),C=S(74416),A=S(59301),u=S(92310),p=S.n(u),b=S(18929),g=S(10228),y=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],v=A.forwardRef(function(c,h){var m,E=c.prefixCls,T=E===void 0?"rc-switch":E,I=c.className,R=c.checked,N=c.defaultChecked,k=c.disabled,L=c.loadingIcon,H=c.checkedChildren,D=c.unCheckedChildren,V=c.onClick,P=c.onChange,U=c.onKeyDown,G=(0,C.Z)(c,y),J=(0,b.Z)(!1,{value:R,defaultValue:N}),ee=(0,s.Z)(J,2),ae=ee[0],oe=ee[1];function ue(Re,le){var xe=ae;return k||(xe=Re,oe(xe),P==null||P(xe,le)),xe}function se(Re){Re.which===g.Z.LEFT?ue(!1,Re):Re.which===g.Z.RIGHT&&ue(!0,Re),U==null||U(Re)}function ye(Re){var le=ue(!ae,Re);V==null||V(le,Re)}var ve=p()(T,I,(m={},(0,Z.Z)(m,"".concat(T,"-checked"),ae),(0,Z.Z)(m,"".concat(T,"-disabled"),k),m));return A.createElement("button",(0,B.Z)({},G,{type:"button",role:"switch","aria-checked":ae,disabled:k,className:ve,ref:h,onKeyDown:se,onClick:ye}),L,A.createElement("span",{className:"".concat(T,"-inner")},A.createElement("span",{className:"".concat(T,"-inner-checked")},H),A.createElement("span",{className:"".concat(T,"-inner-unchecked")},D)))});v.displayName="Switch",Q.Z=v},67204:function(Ne,Q,S){"use strict";S.d(Q,{R:function(){return Z},w:function(){return B}});var B={},Z="rc-table-internal-hook"},78612:function(Ne,Q,S){"use strict";S.d(Q,{L:function(){return T},Z:function(){return L}});var B=S(52487),Z=S(49618),s=S(80702),C=S(62853),A=S(77321),u=S(74416),p=S(11592),b=S(48736),g=S(59301),y=S(67204),v=S(90494);function c(H){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof D=="number"?D:D.endsWith("%")?H*parseFloat(D)/100:null}function h(H,D,V){return g.useMemo(function(){if(D&&D>0){var P=0,U=0;H.forEach(function(ye){var ve=c(D,ye.width);ve?P+=ve:U+=1});var G=Math.max(D,V),J=Math.max(G-P,U),ee=U,ae=J/U,oe=0,ue=H.map(function(ye){var ve=(0,A.Z)({},ye),Re=c(D,ve.width);if(Re)ve.width=Re;else{var le=Math.floor(ae);ve.width=ee===1?J:le,J-=le,ee-=1}return oe+=ve.width,ve});if(oe<G){var se=G/oe;J=G,ue.forEach(function(ye,ve){var Re=Math.floor(ye.width*se);ye.width=ve===ue.length-1?J:Re,J-=Re})}return[ue,Math.max(oe,G)]}return[H,D]},[H,D,V])}var m=["children"],E=["fixed"];function T(H){return(0,p.Z)(H).filter(function(D){return g.isValidElement(D)}).map(function(D){var V=D.key,P=D.props,U=P.children,G=(0,u.Z)(P,m),J=(0,A.Z)({key:V},G);return U&&(J.children=T(U)),J})}function I(H){return H.filter(function(D){return D&&(0,C.Z)(D)==="object"&&!D.hidden}).map(function(D){var V=D.children;return V&&V.length>0?(0,A.Z)((0,A.Z)({},D),{},{children:I(V)}):D})}function R(H){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return H.filter(function(V){return V&&(0,C.Z)(V)==="object"}).reduce(function(V,P,U){var G=P.fixed,J=G===!0?"left":G,ee="".concat(D,"-").concat(U),ae=P.children;return ae&&ae.length>0?[].concat((0,s.Z)(V),(0,s.Z)(R(ae,ee).map(function(oe){return(0,A.Z)({fixed:J},oe)}))):[].concat((0,s.Z)(V),[(0,A.Z)((0,A.Z)({key:ee},P),{},{fixed:J})])},[])}function N(H){return H.map(function(D){var V=D.fixed,P=(0,u.Z)(D,E),U=V;return V==="left"?U="right":V==="right"&&(U="left"),(0,A.Z)({fixed:U},P)})}function k(H,D){var V=H.prefixCls,P=H.columns,U=H.children,G=H.expandable,J=H.expandedKeys,ee=H.columnTitle,ae=H.getRowKey,oe=H.onTriggerExpand,ue=H.expandIcon,se=H.rowExpandable,ye=H.expandIconColumnIndex,ve=H.direction,Re=H.expandRowByClick,le=H.columnWidth,xe=H.fixed,pe=H.scrollWidth,Me=H.clientWidth,Oe=g.useMemo(function(){var Ee=P||T(U)||[];return I(Ee.slice())},[P,U]),Le=g.useMemo(function(){if(G){var Ee=Oe.slice();if(!Ee.includes(y.w)){var fe=ye||0;fe>=0&&(fe||xe==="left"||!xe)&&Ee.splice(fe,0,y.w),xe==="right"&&Ee.splice(Oe.length,0,y.w)}var z=Ee.indexOf(y.w);Ee=Ee.filter(function(ne,re){return ne!==y.w||re===z});var X=Oe[z],de;xe?de=xe:de=X?X.fixed:null;var Ce=(0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)({},v.v,{className:"".concat(V,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",ee),"fixed",de),"className","".concat(V,"-row-expand-icon-cell")),"width",le),"render",function(re,he,_e){var Be=ae(he,_e),Ue=J.has(Be),rt=se?se(he):!0,et=ue({prefixCls:V,expanded:Ue,expandable:rt,record:he,onExpand:oe});return Re?g.createElement("span",{onClick:function(Ot){return Ot.stopPropagation()}},et):et});return Ee.map(function(ne){return ne===y.w?Ce:ne})}return Oe.filter(function(ne){return ne!==y.w})},[G,Oe,ae,J,ue,ve]),Pe=g.useMemo(function(){var Ee=Le;return D&&(Ee=D(Ee)),Ee.length||(Ee=[{render:function(){return null}}]),Ee},[D,Le,ve]),De=g.useMemo(function(){return ve==="rtl"?N(R(Pe)):R(Pe)},[Pe,ve,pe]),Ke=g.useMemo(function(){for(var Ee=-1,fe=De.length-1;fe>=0;fe-=1){var z=De[fe].fixed;if(z==="left"||z===!0){Ee=fe;break}}if(Ee>=0)for(var X=0;X<=Ee;X+=1){var de=De[X].fixed;if(de!=="left"&&de!==!0)return!0}var Ce=De.findIndex(function(he){var _e=he.fixed;return _e==="right"});if(Ce>=0)for(var ne=Ce;ne<De.length;ne+=1){var re=De[ne].fixed;if(re!=="right")return!0}return!1},[De]),ze=h(De,pe,Me),it=(0,B.Z)(ze,2),ot=it[0],Ge=it[1];return[Pe,ot,Ge,Ke]}var L=k},16596:function(Ne,Q,S){"use strict";S.d(Q,{w2:function(){return B.w},vP:function(){return jt.v},RQ:function(){return B.R},ER:function(){return Be},Q$:function(){return gr},TN:function(){return Li}});var B=S(67204),Z=S(52487),s=S(6089),C=S(34280),A=S(13697),u=S(59301),p=S(4676);function b(_t){var Vt=u.createContext(void 0),Et=function(cn){var sn=cn.value,bn=cn.children,_n=u.useRef(sn);_n.current=sn;var Rn=u.useState(function(){return{getValue:function(){return _n.current},listeners:new Set}}),Jt=(0,Z.Z)(Rn,1),fn=Jt[0];return(0,C.Z)(function(){(0,p.unstable_batchedUpdates)(function(){fn.listeners.forEach(function(dn){dn(sn)})})},[sn]),u.createElement(Vt.Provider,{value:fn},bn)};return{Context:Vt,Provider:Et,defaultValue:_t}}function g(_t,Vt){var Et=(0,s.Z)(typeof Vt=="function"?Vt:function(dn){if(Vt===void 0)return dn;if(!Array.isArray(Vt))return dn[Vt];var yn={};return Vt.forEach(function(Sn){yn[Sn]=dn[Sn]}),yn}),Ie=u.useContext(_t==null?void 0:_t.Context),cn=Ie||{},sn=cn.listeners,bn=cn.getValue,_n=u.useRef();_n.current=Et(Ie?bn():_t==null?void 0:_t.defaultValue);var Rn=u.useState({}),Jt=(0,Z.Z)(Rn,2),fn=Jt[1];return(0,C.Z)(function(){if(!Ie)return;function dn(yn){var Sn=Et(yn);(0,A.Z)(_n.current,Sn,!0)||fn({})}return sn.add(dn),function(){sn.delete(dn)}},[Ie]),_n.current}var y=S(72308),v=S(8654);function c(){var _t=u.createContext(null);function Vt(){return u.useContext(_t)}function Et(cn,sn){var bn=(0,v.Yr)(cn),_n=function(Jt,fn){var dn=bn?{ref:fn}:{},yn=u.useRef(0),Sn=u.useRef(Jt),Xn=Vt();return Xn!==null?u.createElement(cn,(0,y.Z)({},Jt,dn)):((!sn||sn(Sn.current,Jt))&&(yn.current+=1),Sn.current=Jt,u.createElement(_t.Provider,{value:yn.current},u.createElement(cn,(0,y.Z)({},Jt,dn))))};return bn?u.forwardRef(_n):_n}function Ie(cn,sn){var bn=(0,v.Yr)(cn),_n=function(Jt,fn){var dn=bn?{ref:fn}:{};return Vt(),u.createElement(cn,(0,y.Z)({},Jt,dn))};return bn?u.memo(u.forwardRef(_n),sn):u.memo(_n,sn)}return{makeImmutable:Et,responseImmutable:Ie,useImmutableMark:Vt}}var h=c(),m=h.makeImmutable,E=h.responseImmutable,T=h.useImmutableMark,I=c(),R=I.makeImmutable,N=I.responseImmutable,k=I.useImmutableMark,L=b(),H=L;function D(_t,Vt){var Et=React.useRef(0);Et.current+=1;var Ie=React.useRef(_t),cn=[];Object.keys(_t||{}).map(function(bn){var _n;(_t==null?void 0:_t[bn])!==((_n=Ie.current)===null||_n===void 0?void 0:_n[bn])&&cn.push(bn)}),Ie.current=_t;var sn=React.useRef([]);return cn.length&&(sn.current=cn),React.useDebugValue(Et.current),React.useDebugValue(sn.current.join(", ")),Vt&&console.log("".concat(Vt,":"),Et.current,sn.current),Et.current}var V=null,P=null,U=S(62853),G=S(77321),J=S(49618),ee=S(92310),ae=S.n(ee),oe=S(80547),ue=S(97938),se=S(48736),ye=u.createContext({renderWithProps:!1}),ve=ye,Re="RC_TABLE_KEY";function le(_t){return _t==null?[]:Array.isArray(_t)?_t:[_t]}function xe(_t){var Vt=[],Et={};return _t.forEach(function(Ie){for(var cn=Ie||{},sn=cn.key,bn=cn.dataIndex,_n=sn||le(bn).join("-")||Re;Et[_n];)_n="".concat(_n,"_next");Et[_n]=!0,Vt.push(_n)}),Vt}function pe(_t){return _t!=null}function Me(_t){return typeof _t=="number"&&!Number.isNaN(_t)}function Oe(_t){return _t&&(0,U.Z)(_t)==="object"&&!Array.isArray(_t)&&!u.isValidElement(_t)}function Le(_t,Vt,Et,Ie,cn,sn){var bn=u.useContext(ve),_n=k(),Rn=(0,oe.Z)(function(){if(pe(Ie))return[Ie];var Jt=Vt==null||Vt===""?[]:Array.isArray(Vt)?Vt:[Vt],fn=(0,ue.Z)(_t,Jt),dn=fn,yn=void 0;if(cn){var Sn=cn(fn,_t,Et);Oe(Sn)?(dn=Sn.children,yn=Sn.props,bn.renderWithProps=!0):dn=Sn}return[dn,yn]},[_n,_t,Ie,Vt,cn,Et],function(Jt,fn){if(sn){var dn=(0,Z.Z)(Jt,2),yn=dn[1],Sn=(0,Z.Z)(fn,2),Xn=Sn[1];return sn(Xn,yn)}return bn.renderWithProps?!0:!(0,A.Z)(Jt,fn,!0)});return Rn}function Pe(_t,Vt,Et,Ie){var cn=_t+Vt-1;return _t<=Ie&&cn>=Et}function De(_t,Vt){return g(H,function(Et){var Ie=Pe(_t,Vt||1,Et.hoverStartRow,Et.hoverEndRow);return[Ie,Et.onHover]})}var Ke=S(70425),ze=function(Vt){var Et=Vt.ellipsis,Ie=Vt.rowType,cn=Vt.children,sn,bn=Et===!0?{showTitle:!0}:Et;return bn&&(bn.showTitle||Ie==="header")&&(typeof cn=="string"||typeof cn=="number"?sn=cn.toString():u.isValidElement(cn)&&typeof cn.props.children=="string"&&(sn=cn.props.children)),sn};function it(_t){var Vt,Et,Ie,cn,sn,bn,_n,Rn,Jt=_t.component,fn=_t.children,dn=_t.ellipsis,yn=_t.scope,Sn=_t.prefixCls,Xn=_t.className,_r=_t.align,Fr=_t.record,mn=_t.render,Cr=_t.dataIndex,Or=_t.renderIndex,yi=_t.shouldCellUpdate,Kr=_t.index,bi=_t.rowType,Si=_t.colSpan,hi=_t.rowSpan,Wi=_t.fixLeft,to=_t.fixRight,go=_t.firstFixLeft,xt=_t.lastFixLeft,ei=_t.firstFixRight,si=_t.lastFixRight,Sr=_t.appendNode,ii=_t.additionalProps,Br=ii===void 0?{}:ii,Qi=_t.isSticky,kt="".concat(Sn,"-cell"),Jr=g(H,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Vi=Jr.supportSticky,Ts=Jr.allColumnsFixedLeft,ds=Jr.rowHoverable,js=Le(Fr,Cr,Or,fn,mn,yi),_s=(0,Z.Z)(js,2),ar=_s[0],Ki=_s[1],yo={},Ho=typeof Wi=="number"&&Vi,Yr=typeof to=="number"&&Vi;Ho&&(yo.position="sticky",yo.left=Wi),Yr&&(yo.position="sticky",yo.right=to);var jr=(Vt=(Et=(Ie=Ki==null?void 0:Ki.colSpan)!==null&&Ie!==void 0?Ie:Br.colSpan)!==null&&Et!==void 0?Et:Si)!==null&&Vt!==void 0?Vt:1,an=(cn=(sn=(bn=Ki==null?void 0:Ki.rowSpan)!==null&&bn!==void 0?bn:Br.rowSpan)!==null&&sn!==void 0?sn:hi)!==null&&cn!==void 0?cn:1,cr=De(Kr,an),Gr=(0,Z.Z)(cr,2),ro=Gr[0],zo=Gr[1],Qo=(0,Ke.zX)(function(Is){var Bi;Fr&&zo(Kr,Kr+an-1),Br==null||(Bi=Br.onMouseEnter)===null||Bi===void 0||Bi.call(Br,Is)}),Tr=(0,Ke.zX)(function(Is){var Bi;Fr&&zo(-1,-1),Br==null||(Bi=Br.onMouseLeave)===null||Bi===void 0||Bi.call(Br,Is)});if(jr===0||an===0)return null;var So=(_n=Br.title)!==null&&_n!==void 0?_n:ze({rowType:bi,ellipsis:dn,children:ar}),Oo=ae()(kt,Xn,(Rn={},(0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)(Rn,"".concat(kt,"-fix-left"),Ho&&Vi),"".concat(kt,"-fix-left-first"),go&&Vi),"".concat(kt,"-fix-left-last"),xt&&Vi),"".concat(kt,"-fix-left-all"),xt&&Ts&&Vi),"".concat(kt,"-fix-right"),Yr&&Vi),"".concat(kt,"-fix-right-first"),ei&&Vi),"".concat(kt,"-fix-right-last"),si&&Vi),"".concat(kt,"-ellipsis"),dn),"".concat(kt,"-with-append"),Sr),"".concat(kt,"-fix-sticky"),(Ho||Yr)&&Qi&&Vi),(0,J.Z)(Rn,"".concat(kt,"-row-hover"),!Ki&&ro)),Br.className,Ki==null?void 0:Ki.className),Co={};_r&&(Co.textAlign=_r);var Pi=(0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)({},Ki==null?void 0:Ki.style),yo),Co),Br.style),lo=ar;return(0,U.Z)(lo)==="object"&&!Array.isArray(lo)&&!u.isValidElement(lo)&&(lo=null),dn&&(xt||ei)&&(lo=u.createElement("span",{className:"".concat(kt,"-content")},lo)),u.createElement(Jt,(0,y.Z)({},Ki,Br,{className:Oo,style:Pi,title:So,scope:yn,onMouseEnter:ds?Qo:void 0,onMouseLeave:ds?Tr:void 0,colSpan:jr!==1?jr:null,rowSpan:an!==1?an:null}),Sr,lo)}var ot=u.memo(it);function Ge(_t,Vt,Et,Ie,cn){var sn=Et[_t]||{},bn=Et[Vt]||{},_n,Rn;sn.fixed==="left"?_n=Ie.left[cn==="rtl"?Vt:_t]:bn.fixed==="right"&&(Rn=Ie.right[cn==="rtl"?_t:Vt]);var Jt=!1,fn=!1,dn=!1,yn=!1,Sn=Et[Vt+1],Xn=Et[_t-1],_r=Sn&&!Sn.fixed||Xn&&!Xn.fixed||Et.every(function(yi){return yi.fixed==="left"});if(cn==="rtl"){if(_n!==void 0){var Fr=Xn&&Xn.fixed==="left";yn=!Fr&&_r}else if(Rn!==void 0){var mn=Sn&&Sn.fixed==="right";dn=!mn&&_r}}else if(_n!==void 0){var Cr=Sn&&Sn.fixed==="left";Jt=!Cr&&_r}else if(Rn!==void 0){var Or=Xn&&Xn.fixed==="right";fn=!Or&&_r}return{fixLeft:_n,fixRight:Rn,lastFixLeft:Jt,firstFixRight:fn,lastFixRight:dn,firstFixLeft:yn,isSticky:Ie.isSticky}}var Ee=u.createContext({}),fe=Ee;function z(_t){var Vt=_t.className,Et=_t.index,Ie=_t.children,cn=_t.colSpan,sn=cn===void 0?1:cn,bn=_t.rowSpan,_n=_t.align,Rn=g(H,["prefixCls","direction"]),Jt=Rn.prefixCls,fn=Rn.direction,dn=u.useContext(fe),yn=dn.scrollColumnIndex,Sn=dn.stickyOffsets,Xn=dn.flattenColumns,_r=Et+sn-1,Fr=_r+1===yn?sn+1:sn,mn=Ge(Et,Et+Fr-1,Xn,Sn,fn);return u.createElement(ot,(0,y.Z)({className:Vt,index:Et,component:"td",prefixCls:Jt,record:null,dataIndex:null,align:_n,colSpan:Fr,rowSpan:bn,render:function(){return Ie}},mn))}var X=S(74416),de=["children"];function Ce(_t){var Vt=_t.children,Et=(0,X.Z)(_t,de);return u.createElement("tr",Et,Vt)}function ne(_t){var Vt=_t.children;return Vt}ne.Row=Ce,ne.Cell=z;var re=ne;function he(_t){var Vt=_t.children,Et=_t.stickyOffsets,Ie=_t.flattenColumns,cn=g(H,"prefixCls"),sn=Ie.length-1,bn=Ie[sn],_n=u.useMemo(function(){return{stickyOffsets:Et,flattenColumns:Ie,scrollColumnIndex:bn!=null&&bn.scrollbar?sn:null}},[bn,Ie,sn,Et]);return u.createElement(fe.Provider,{value:_n},u.createElement("tfoot",{className:"".concat(cn,"-summary")},Vt))}var _e=N(he),Be=re,Ue=S(29301),rt=S(29194),et=S(24514),dt=S(75152),Ot=S(26112);function pt(_t,Vt,Et,Ie,cn,sn,bn){_t.push({record:Vt,indent:Et,index:bn});var _n=sn(Vt),Rn=cn==null?void 0:cn.has(_n);if(Vt&&Array.isArray(Vt[Ie])&&Rn)for(var Jt=0;Jt<Vt[Ie].length;Jt+=1)pt(_t,Vt[Ie][Jt],Et+1,Ie,cn,sn,Jt)}function nt(_t,Vt,Et,Ie){var cn=u.useMemo(function(){if(Et!=null&&Et.size){for(var sn=[],bn=0;bn<(_t==null?void 0:_t.length);bn+=1){var _n=_t[bn];pt(sn,_n,0,Vt,Et,Ie,bn)}return sn}return _t==null?void 0:_t.map(function(Rn,Jt){return{record:Rn,indent:0,index:Jt}})},[_t,Vt,Et,Ie]);return cn}function ut(_t,Vt,Et,Ie){var cn=g(H,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),sn=cn.flattenColumns,bn=cn.expandableType,_n=cn.expandedKeys,Rn=cn.childrenColumnName,Jt=cn.onTriggerExpand,fn=cn.rowExpandable,dn=cn.onRow,yn=cn.expandRowByClick,Sn=cn.rowClassName,Xn=bn==="nest",_r=bn==="row"&&(!fn||fn(_t)),Fr=_r||Xn,mn=_n&&_n.has(Vt),Cr=Rn&&_t&&_t[Rn],Or=(0,Ke.zX)(Jt),yi=dn==null?void 0:dn(_t,Et),Kr=yi==null?void 0:yi.onClick,bi=function(to){yn&&Fr&&Jt(_t,to);for(var go=arguments.length,xt=new Array(go>1?go-1:0),ei=1;ei<go;ei++)xt[ei-1]=arguments[ei];Kr==null||Kr.apply(void 0,[to].concat(xt))},Si;typeof Sn=="string"?Si=Sn:typeof Sn=="function"&&(Si=Sn(_t,Et,Ie));var hi=xe(sn);return(0,G.Z)((0,G.Z)({},cn),{},{columnsKey:hi,nestExpandable:Xn,expanded:mn,hasNestChildren:Cr,record:_t,onTriggerExpand:Or,rowSupportExpand:_r,expandable:Fr,rowProps:(0,G.Z)((0,G.Z)({},yi),{},{className:ae()(Si,yi==null?void 0:yi.className),onClick:bi})})}function Tt(_t){var Vt=_t.prefixCls,Et=_t.children,Ie=_t.component,cn=_t.cellComponent,sn=_t.className,bn=_t.expanded,_n=_t.colSpan,Rn=_t.isEmpty,Jt=g(H,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),fn=Jt.scrollbarSize,dn=Jt.fixHeader,yn=Jt.fixColumn,Sn=Jt.componentWidth,Xn=Jt.horizonScroll,_r=Et;return(Rn?Xn&&Sn:yn)&&(_r=u.createElement("div",{style:{width:Sn-(dn&&!Rn?fn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Vt,"-expanded-row-fixed")},_r)),u.createElement(Ie,{className:sn,style:{display:bn?null:"none"}},u.createElement(ot,{component:cn,prefixCls:Vt,colSpan:_n},_r))}var vt=Tt;function Ct(_t){var Vt=_t.prefixCls,Et=_t.record,Ie=_t.onExpand,cn=_t.expanded,sn=_t.expandable,bn="".concat(Vt,"-row-expand-icon");if(!sn)return u.createElement("span",{className:ae()(bn,"".concat(Vt,"-row-spaced"))});var _n=function(Jt){Ie(Et,Jt),Jt.stopPropagation()};return u.createElement("span",{className:ae()(bn,(0,J.Z)((0,J.Z)({},"".concat(Vt,"-row-expanded"),cn),"".concat(Vt,"-row-collapsed"),!cn)),onClick:_n})}function Ft(_t,Vt,Et){var Ie=[];function cn(sn){(sn||[]).forEach(function(bn,_n){Ie.push(Vt(bn,_n)),cn(bn[Et])})}return cn(_t),Ie}function Rt(_t,Vt,Et,Ie){return typeof _t=="string"?_t:typeof _t=="function"?_t(Vt,Et,Ie):""}function $e(_t,Vt,Et,Ie,cn){var sn=_t.record,bn=_t.prefixCls,_n=_t.columnsKey,Rn=_t.fixedInfoList,Jt=_t.expandIconColumnIndex,fn=_t.nestExpandable,dn=_t.indentSize,yn=_t.expandIcon,Sn=_t.expanded,Xn=_t.hasNestChildren,_r=_t.onTriggerExpand,Fr=_n[Et],mn=Rn[Et],Cr;Et===(Jt||0)&&fn&&(Cr=u.createElement(u.Fragment,null,u.createElement("span",{style:{paddingLeft:"".concat(dn*Ie,"px")},className:"".concat(bn,"-row-indent indent-level-").concat(Ie)}),yn({prefixCls:bn,expanded:Sn,expandable:Xn,record:sn,onExpand:_r})));var Or;return Vt.onCell&&(Or=Vt.onCell(sn,cn)),{key:Fr,fixedInfo:mn,appendCellNode:Cr,additionalCellProps:Or||{}}}function Zt(_t){var Vt=_t.className,Et=_t.style,Ie=_t.record,cn=_t.index,sn=_t.renderIndex,bn=_t.rowKey,_n=_t.indent,Rn=_n===void 0?0:_n,Jt=_t.rowComponent,fn=_t.cellComponent,dn=_t.scopeCellComponent,yn=ut(Ie,bn,cn,Rn),Sn=yn.prefixCls,Xn=yn.flattenColumns,_r=yn.expandedRowClassName,Fr=yn.expandedRowRender,mn=yn.rowProps,Cr=yn.expanded,Or=yn.rowSupportExpand,yi=u.useRef(!1);yi.current||(yi.current=Cr);var Kr=Rt(_r,Ie,cn,Rn),bi=u.createElement(Jt,(0,y.Z)({},mn,{"data-row-key":bn,className:ae()(Vt,"".concat(Sn,"-row"),"".concat(Sn,"-row-level-").concat(Rn),mn==null?void 0:mn.className,(0,J.Z)({},Kr,Rn>=1)),style:(0,G.Z)((0,G.Z)({},Et),mn==null?void 0:mn.style)}),Xn.map(function(Wi,to){var go=Wi.render,xt=Wi.dataIndex,ei=Wi.className,si=$e(yn,Wi,to,Rn,cn),Sr=si.key,ii=si.fixedInfo,Br=si.appendCellNode,Qi=si.additionalCellProps;return u.createElement(ot,(0,y.Z)({className:ei,ellipsis:Wi.ellipsis,align:Wi.align,scope:Wi.rowScope,component:Wi.rowScope?dn:fn,prefixCls:Sn,key:Sr,record:Ie,index:cn,renderIndex:sn,dataIndex:xt,render:go,shouldCellUpdate:Wi.shouldCellUpdate},ii,{appendNode:Br,additionalProps:Qi}))})),Si;if(Or&&(yi.current||Cr)){var hi=Fr(Ie,cn,Rn+1,Cr);Si=u.createElement(vt,{expanded:Cr,className:ae()("".concat(Sn,"-expanded-row"),"".concat(Sn,"-expanded-row-level-").concat(Rn+1),Kr),prefixCls:Sn,component:Jt,cellComponent:fn,colSpan:Xn.length,isEmpty:!1},hi)}return u.createElement(u.Fragment,null,bi,Si)}var vn=N(Zt);function wt(_t){var Vt=_t.columnKey,Et=_t.onColumnResize,Ie=u.useRef();return u.useEffect(function(){Ie.current&&Et(Vt,Ie.current.offsetWidth)},[]),u.createElement(Ue.Z,{data:Vt},u.createElement("td",{ref:Ie,style:{padding:0,border:0,height:0}},u.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Dn(_t){var Vt=_t.prefixCls,Et=_t.columnsKey,Ie=_t.onColumnResize;return u.createElement("tr",{"aria-hidden":"true",className:"".concat(Vt,"-measure-row"),style:{height:0,fontSize:0}},u.createElement(Ue.Z.Collection,{onBatchResize:function(sn){sn.forEach(function(bn){var _n=bn.data,Rn=bn.size;Ie(_n,Rn.offsetWidth)})}},Et.map(function(cn){return u.createElement(wt,{key:cn,columnKey:cn,onColumnResize:Ie})})))}function nr(_t){var Vt=_t.data,Et=_t.measureColumnWidth,Ie=g(H,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),cn=Ie.prefixCls,sn=Ie.getComponent,bn=Ie.onColumnResize,_n=Ie.flattenColumns,Rn=Ie.getRowKey,Jt=Ie.expandedKeys,fn=Ie.childrenColumnName,dn=Ie.emptyNode,yn=nt(Vt,fn,Jt,Rn),Sn=u.useRef({renderWithProps:!1}),Xn=sn(["body","wrapper"],"tbody"),_r=sn(["body","row"],"tr"),Fr=sn(["body","cell"],"td"),mn=sn(["body","cell"],"th"),Cr;Vt.length?Cr=yn.map(function(yi,Kr){var bi=yi.record,Si=yi.indent,hi=yi.index,Wi=Rn(bi,Kr);return u.createElement(vn,{key:Wi,rowKey:Wi,record:bi,index:Kr,renderIndex:hi,rowComponent:_r,cellComponent:Fr,scopeCellComponent:mn,indent:Si})}):Cr=u.createElement(vt,{expanded:!0,className:"".concat(cn,"-placeholder"),prefixCls:cn,component:_r,cellComponent:Fr,colSpan:_n.length,isEmpty:!0},dn);var Or=xe(_n);return u.createElement(ve.Provider,{value:Sn.current},u.createElement(Xn,{className:"".concat(cn,"-tbody")},Et&&u.createElement(Dn,{prefixCls:cn,columnsKey:Or,onColumnResize:bn}),Cr))}var Qn=N(nr),jt=S(90494),br=["columnType"];function dr(_t){for(var Vt=_t.colWidths,Et=_t.columns,Ie=_t.columCount,cn=g(H,["tableLayout"]),sn=cn.tableLayout,bn=[],_n=Ie||Et.length,Rn=!1,Jt=_n-1;Jt>=0;Jt-=1){var fn=Vt[Jt],dn=Et&&Et[Jt],yn=void 0,Sn=void 0;if(dn&&(yn=dn[jt.v],sn==="auto"&&(Sn=dn.minWidth)),fn||Sn||yn||Rn){var Xn=yn||{},_r=Xn.columnType,Fr=(0,X.Z)(Xn,br);bn.unshift(u.createElement("col",(0,y.Z)({key:Jt,style:{width:fn,minWidth:Sn}},Fr))),Rn=!0}}return u.createElement("colgroup",null,bn)}var zn=dr,$n=S(80702),Er=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function me(_t,Vt){return(0,u.useMemo)(function(){for(var Et=[],Ie=0;Ie<Vt;Ie+=1){var cn=_t[Ie];if(cn!==void 0)Et[Ie]=cn;else return null}return Et},[_t.join("_"),Vt])}var jn=u.forwardRef(function(_t,Vt){var Et=_t.className,Ie=_t.noData,cn=_t.columns,sn=_t.flattenColumns,bn=_t.colWidths,_n=_t.columCount,Rn=_t.stickyOffsets,Jt=_t.direction,fn=_t.fixHeader,dn=_t.stickyTopOffset,yn=_t.stickyBottomOffset,Sn=_t.stickyClassName,Xn=_t.onScroll,_r=_t.maxContentScroll,Fr=_t.children,mn=(0,X.Z)(_t,Er),Cr=g(H,["prefixCls","scrollbarSize","isSticky","getComponent"]),Or=Cr.prefixCls,yi=Cr.scrollbarSize,Kr=Cr.isSticky,bi=Cr.getComponent,Si=bi(["header","table"],"table"),hi=Kr&&!fn?0:yi,Wi=u.useRef(null),to=u.useCallback(function(Qi){(0,v.mH)(Vt,Qi),(0,v.mH)(Wi,Qi)},[]);u.useEffect(function(){var Qi;function kt(Jr){var Vi=Jr,Ts=Vi.currentTarget,ds=Vi.deltaX;ds&&(Xn({currentTarget:Ts,scrollLeft:Ts.scrollLeft+ds}),Jr.preventDefault())}return(Qi=Wi.current)===null||Qi===void 0||Qi.addEventListener("wheel",kt,{passive:!1}),function(){var Jr;(Jr=Wi.current)===null||Jr===void 0||Jr.removeEventListener("wheel",kt)}},[]);var go=u.useMemo(function(){return sn.every(function(Qi){return Qi.width})},[sn]),xt=sn[sn.length-1],ei={fixed:xt?xt.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Or,"-cell-scrollbar")}}},si=(0,u.useMemo)(function(){return hi?[].concat((0,$n.Z)(cn),[ei]):cn},[hi,cn]),Sr=(0,u.useMemo)(function(){return hi?[].concat((0,$n.Z)(sn),[ei]):sn},[hi,sn]),ii=(0,u.useMemo)(function(){var Qi=Rn.right,kt=Rn.left;return(0,G.Z)((0,G.Z)({},Rn),{},{left:Jt==="rtl"?[].concat((0,$n.Z)(kt.map(function(Jr){return Jr+hi})),[0]):kt,right:Jt==="rtl"?Qi:[].concat((0,$n.Z)(Qi.map(function(Jr){return Jr+hi})),[0]),isSticky:Kr})},[hi,Rn,Kr]),Br=me(bn,_n);return u.createElement("div",{style:(0,G.Z)({overflow:"hidden"},Kr?{top:dn,bottom:yn}:{}),ref:to,className:ae()(Et,(0,J.Z)({},Sn,!!Sn))},u.createElement(Si,{style:{tableLayout:"fixed",visibility:Ie||Br?null:"hidden"}},(!Ie||!_r||go)&&u.createElement(zn,{colWidths:Br?[].concat((0,$n.Z)(Br),[hi]):[],columCount:_n+1,columns:Sr}),Fr((0,G.Z)((0,G.Z)({},mn),{},{stickyOffsets:ii,columns:si,flattenColumns:Sr}))))}),Cn=u.memo(jn),qn=function(Vt){var Et=Vt.cells,Ie=Vt.stickyOffsets,cn=Vt.flattenColumns,sn=Vt.rowComponent,bn=Vt.cellComponent,_n=Vt.onHeaderRow,Rn=Vt.index,Jt=g(H,["prefixCls","direction"]),fn=Jt.prefixCls,dn=Jt.direction,yn;_n&&(yn=_n(Et.map(function(Xn){return Xn.column}),Rn));var Sn=xe(Et.map(function(Xn){return Xn.column}));return u.createElement(sn,yn,Et.map(function(Xn,_r){var Fr=Xn.column,mn=Ge(Xn.colStart,Xn.colEnd,cn,Ie,dn),Cr;return Fr&&Fr.onHeaderCell&&(Cr=Xn.column.onHeaderCell(Fr)),u.createElement(ot,(0,y.Z)({},Xn,{scope:Fr.title?Xn.colSpan>1?"colgroup":"col":null,ellipsis:Fr.ellipsis,align:Fr.align,component:bn,prefixCls:fn,key:Sn[_r]},mn,{additionalProps:Cr,rowType:"header"}))}))},Ir=qn;function Vr(_t){var Vt=[];function Et(bn,_n){var Rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Vt[Rn]=Vt[Rn]||[];var Jt=_n,fn=bn.filter(Boolean).map(function(dn){var yn={key:dn.key,className:dn.className||"",children:dn.title,column:dn,colStart:Jt},Sn=1,Xn=dn.children;return Xn&&Xn.length>0&&(Sn=Et(Xn,Jt,Rn+1).reduce(function(_r,Fr){return _r+Fr},0),yn.hasSubColumns=!0),"colSpan"in dn&&(Sn=dn.colSpan),"rowSpan"in dn&&(yn.rowSpan=dn.rowSpan),yn.colSpan=Sn,yn.colEnd=yn.colStart+Sn-1,Vt[Rn].push(yn),Jt+=Sn,Sn});return fn}Et(_t,0);for(var Ie=Vt.length,cn=function(_n){Vt[_n].forEach(function(Rn){!("rowSpan"in Rn)&&!Rn.hasSubColumns&&(Rn.rowSpan=Ie-_n)})},sn=0;sn<Ie;sn+=1)cn(sn);return Vt}var fr=function(Vt){var Et=Vt.stickyOffsets,Ie=Vt.columns,cn=Vt.flattenColumns,sn=Vt.onHeaderRow,bn=g(H,["prefixCls","getComponent"]),_n=bn.prefixCls,Rn=bn.getComponent,Jt=u.useMemo(function(){return Vr(Ie)},[Ie]),fn=Rn(["header","wrapper"],"thead"),dn=Rn(["header","row"],"tr"),yn=Rn(["header","cell"],"th");return u.createElement(fn,{className:"".concat(_n,"-thead")},Jt.map(function(Sn,Xn){var _r=u.createElement(Ir,{key:Xn,flattenColumns:cn,cells:Sn,stickyOffsets:Et,rowComponent:dn,cellComponent:yn,onHeaderRow:sn,index:Xn});return _r}))},oo=N(fr),Zr=S(78612);function Qr(_t,Vt,Et){var Ie=(0,jt.g)(_t),cn=Ie.expandIcon,sn=Ie.expandedRowKeys,bn=Ie.defaultExpandedRowKeys,_n=Ie.defaultExpandAllRows,Rn=Ie.expandedRowRender,Jt=Ie.onExpand,fn=Ie.onExpandedRowsChange,dn=Ie.childrenColumnName,yn=cn||Ct,Sn=dn||"children",Xn=u.useMemo(function(){return Rn?"row":_t.expandable&&_t.internalHooks===B.R&&_t.expandable.__PARENT_RENDER_ICON__||Vt.some(function(Kr){return Kr&&(0,U.Z)(Kr)==="object"&&Kr[Sn]})?"nest":!1},[!!Rn,Vt]),_r=u.useState(function(){return bn||(_n?Ft(Vt,Et,Sn):[])}),Fr=(0,Z.Z)(_r,2),mn=Fr[0],Cr=Fr[1],Or=u.useMemo(function(){return new Set(sn||mn||[])},[sn,mn]),yi=u.useCallback(function(Kr){var bi=Et(Kr,Vt.indexOf(Kr)),Si,hi=Or.has(bi);hi?(Or.delete(bi),Si=(0,$n.Z)(Or)):Si=[].concat((0,$n.Z)(Or),[bi]),Cr(Si),Jt&&Jt(!hi,Kr),fn&&fn(Si)},[Et,Or,Vt,Jt,fn]);return[Ie,Xn,Or,yn,Sn,yi]}function Kn(_t,Vt,Et){var Ie=_t.map(function(cn,sn){return Ge(sn,sn,_t,Vt,Et)});return(0,oe.Z)(function(){return Ie},[Ie],function(cn,sn){return!(0,A.Z)(cn,sn)})}function Mn(_t){var Vt=(0,u.useRef)(_t),Et=(0,u.useState)({}),Ie=(0,Z.Z)(Et,2),cn=Ie[1],sn=(0,u.useRef)(null),bn=(0,u.useRef)([]);function _n(Rn){bn.current.push(Rn);var Jt=Promise.resolve();sn.current=Jt,Jt.then(function(){if(sn.current===Jt){var fn=bn.current,dn=Vt.current;bn.current=[],fn.forEach(function(yn){Vt.current=yn(Vt.current)}),sn.current=null,dn!==Vt.current&&cn({})}})}return(0,u.useEffect)(function(){return function(){sn.current=null}},[]),[Vt.current,_n]}function ai(_t){var Vt=(0,u.useRef)(_t||null),Et=(0,u.useRef)();function Ie(){window.clearTimeout(Et.current)}function cn(bn){Vt.current=bn,Ie(),Et.current=window.setTimeout(function(){Vt.current=null,Et.current=void 0},100)}function sn(){return Vt.current}return(0,u.useEffect)(function(){return Ie},[]),[cn,sn]}function Nr(){var _t=u.useState(-1),Vt=(0,Z.Z)(_t,2),Et=Vt[0],Ie=Vt[1],cn=u.useState(-1),sn=(0,Z.Z)(cn,2),bn=sn[0],_n=sn[1],Rn=u.useCallback(function(Jt,fn){Ie(Jt),_n(fn)},[]);return[Et,bn,Rn]}var zr=S(47273),pn=(0,zr.Z)()?window:null;function Vn(_t,Vt){var Et=(0,U.Z)(_t)==="object"?_t:{},Ie=Et.offsetHeader,cn=Ie===void 0?0:Ie,sn=Et.offsetSummary,bn=sn===void 0?0:sn,_n=Et.offsetScroll,Rn=_n===void 0?0:_n,Jt=Et.getContainer,fn=Jt===void 0?function(){return pn}:Jt,dn=fn()||pn,yn=!!_t;return u.useMemo(function(){return{isSticky:yn,stickyClassName:yn?"".concat(Vt,"-sticky-holder"):"",offsetHeader:cn,offsetSummary:bn,offsetScroll:Rn,container:dn}},[yn,Rn,cn,bn,Vt,dn])}function Mt(_t,Vt,Et){var Ie=(0,u.useMemo)(function(){var cn=Vt.length,sn=function(Jt,fn,dn){for(var yn=[],Sn=0,Xn=Jt;Xn!==fn;Xn+=dn)yn.push(Sn),Vt[Xn].fixed&&(Sn+=_t[Xn]||0);return yn},bn=sn(0,cn,1),_n=sn(cn-1,-1,-1).reverse();return Et==="rtl"?{left:_n,right:bn}:{left:bn,right:_n}},[_t,Vt,Et]);return Ie}var It=Mt;function On(_t){var Vt=_t.className,Et=_t.children;return u.createElement("div",{className:Vt},Et)}var ft=On,en=S(8224),An=S(16089),Un=S(76846);function gt(_t){var Vt=(0,Un.bn)(_t),Et=Vt.getBoundingClientRect(),Ie=document.documentElement;return{left:Et.left+(window.pageXOffset||Ie.scrollLeft)-(Ie.clientLeft||document.body.clientLeft||0),top:Et.top+(window.pageYOffset||Ie.scrollTop)-(Ie.clientTop||document.body.clientTop||0)}}var gn=function(Vt,Et){var Ie,cn,sn=Vt.scrollBodyRef,bn=Vt.onScroll,_n=Vt.offsetScroll,Rn=Vt.container,Jt=Vt.direction,fn=g(H,"prefixCls"),dn=((Ie=sn.current)===null||Ie===void 0?void 0:Ie.scrollWidth)||0,yn=((cn=sn.current)===null||cn===void 0?void 0:cn.clientWidth)||0,Sn=dn&&yn*(yn/dn),Xn=u.useRef(),_r=Mn({scrollLeft:0,isHiddenScrollBar:!0}),Fr=(0,Z.Z)(_r,2),mn=Fr[0],Cr=Fr[1],Or=u.useRef({delta:0,x:0}),yi=u.useState(!1),Kr=(0,Z.Z)(yi,2),bi=Kr[0],Si=Kr[1],hi=u.useRef(null);u.useEffect(function(){return function(){An.Z.cancel(hi.current)}},[]);var Wi=function(){Si(!1)},to=function(Sr){Sr.persist(),Or.current.delta=Sr.pageX-mn.scrollLeft,Or.current.x=0,Si(!0),Sr.preventDefault()},go=function(Sr){var ii,Br=Sr||((ii=window)===null||ii===void 0?void 0:ii.event),Qi=Br.buttons;if(!bi||Qi===0){bi&&Si(!1);return}var kt=Or.current.x+Sr.pageX-Or.current.x-Or.current.delta,Jr=Jt==="rtl";kt=Math.max(Jr?Sn-yn:0,Math.min(Jr?0:yn-Sn,kt));var Vi=!Jr||Math.abs(kt)+Math.abs(Sn)<yn;Vi&&(bn({scrollLeft:kt/yn*(dn+2)}),Or.current.x=Sr.pageX)},xt=function(){An.Z.cancel(hi.current),hi.current=(0,An.Z)(function(){if(sn.current){var Sr=gt(sn.current).top,ii=Sr+sn.current.offsetHeight,Br=Rn===window?document.documentElement.scrollTop+window.innerHeight:gt(Rn).top+Rn.clientHeight;ii-(0,dt.Z)()<=Br||Sr>=Br-_n?Cr(function(Qi){return(0,G.Z)((0,G.Z)({},Qi),{},{isHiddenScrollBar:!0})}):Cr(function(Qi){return(0,G.Z)((0,G.Z)({},Qi),{},{isHiddenScrollBar:!1})})}})},ei=function(Sr){Cr(function(ii){return(0,G.Z)((0,G.Z)({},ii),{},{scrollLeft:Sr/dn*yn||0})})};return u.useImperativeHandle(Et,function(){return{setScrollLeft:ei,checkScrollBarVisible:xt}}),u.useEffect(function(){var si=(0,en.Z)(document.body,"mouseup",Wi,!1),Sr=(0,en.Z)(document.body,"mousemove",go,!1);return xt(),function(){si.remove(),Sr.remove()}},[Sn,bi]),u.useEffect(function(){if(sn.current){for(var si=[],Sr=(0,Un.bn)(sn.current);Sr;)si.push(Sr),Sr=Sr.parentElement;return si.forEach(function(ii){return ii.addEventListener("scroll",xt,!1)}),window.addEventListener("resize",xt,!1),window.addEventListener("scroll",xt,!1),Rn.addEventListener("scroll",xt,!1),function(){si.forEach(function(ii){return ii.removeEventListener("scroll",xt)}),window.removeEventListener("resize",xt),window.removeEventListener("scroll",xt),Rn.removeEventListener("scroll",xt)}}},[Rn]),u.useEffect(function(){mn.isHiddenScrollBar||Cr(function(si){var Sr=sn.current;return Sr?(0,G.Z)((0,G.Z)({},si),{},{scrollLeft:Sr.scrollLeft/Sr.scrollWidth*Sr.clientWidth}):si})},[mn.isHiddenScrollBar]),dn<=yn||!Sn||mn.isHiddenScrollBar?null:u.createElement("div",{style:{height:(0,dt.Z)(),width:yn,bottom:_n},className:"".concat(fn,"-sticky-scroll")},u.createElement("div",{onMouseDown:to,ref:Xn,className:ae()("".concat(fn,"-sticky-scroll-bar"),(0,J.Z)({},"".concat(fn,"-sticky-scroll-bar-active"),bi)),style:{width:"".concat(Sn,"px"),transform:"translate3d(".concat(mn.scrollLeft,"px, 0, 0)")}}))},Hn=u.forwardRef(gn);function At(_t){return null}var we=At;function Bn(_t){return null}var wn=Bn,Ht="rc-table",lr=[],pr={};function xr(){return"No Data"}function Pn(_t,Vt){var Et=(0,G.Z)({rowKey:"key",prefixCls:Ht,emptyText:xr},_t),Ie=Et.prefixCls,cn=Et.className,sn=Et.rowClassName,bn=Et.style,_n=Et.data,Rn=Et.rowKey,Jt=Et.scroll,fn=Et.tableLayout,dn=Et.direction,yn=Et.title,Sn=Et.footer,Xn=Et.summary,_r=Et.caption,Fr=Et.id,mn=Et.showHeader,Cr=Et.components,Or=Et.emptyText,yi=Et.onRow,Kr=Et.onHeaderRow,bi=Et.onScroll,Si=Et.internalHooks,hi=Et.transformColumns,Wi=Et.internalRefs,to=Et.tailor,go=Et.getContainerWidth,xt=Et.sticky,ei=Et.rowHoverable,si=ei===void 0?!0:ei,Sr=_n||lr,ii=!!Sr.length,Br=Si===B.R,Qi=u.useCallback(function(ki,Zi){return(0,ue.Z)(Cr,ki)||Zi},[Cr]),kt=u.useMemo(function(){return typeof Rn=="function"?Rn:function(ki){var Zi=ki&&ki[Rn];return Zi}},[Rn]),Jr=Qi(["body"]),Vi=Nr(),Ts=(0,Z.Z)(Vi,3),ds=Ts[0],js=Ts[1],_s=Ts[2],ar=Qr(Et,Sr,kt),Ki=(0,Z.Z)(ar,6),yo=Ki[0],Ho=Ki[1],Yr=Ki[2],jr=Ki[3],an=Ki[4],cr=Ki[5],Gr=Jt==null?void 0:Jt.x,ro=u.useState(0),zo=(0,Z.Z)(ro,2),Qo=zo[0],Tr=zo[1],So=(0,Zr.Z)((0,G.Z)((0,G.Z)((0,G.Z)({},Et),yo),{},{expandable:!!yo.expandedRowRender,columnTitle:yo.columnTitle,expandedKeys:Yr,getRowKey:kt,onTriggerExpand:cr,expandIcon:jr,expandIconColumnIndex:yo.expandIconColumnIndex,direction:dn,scrollWidth:Br&&to&&typeof Gr=="number"?Gr:null,clientWidth:Qo}),Br?hi:null),Oo=(0,Z.Z)(So,4),Co=Oo[0],Pi=Oo[1],lo=Oo[2],Is=Oo[3],Bi=lo!=null?lo:Gr,cs=u.useMemo(function(){return{columns:Co,flattenColumns:Pi}},[Co,Pi]),Sa=u.useRef(),rl=u.useRef(),xo=u.useRef(),Oa=u.useRef();u.useImperativeHandle(Vt,function(){return{nativeElement:Sa.current,scrollTo:function(Zi){var ko;if(xo.current instanceof HTMLElement){var ms=Zi.index,os=Zi.top,xa=Zi.key;if(Me(os)){var wa;(wa=xo.current)===null||wa===void 0||wa.scrollTo({top:os})}else{var Ea,oa=xa!=null?xa:kt(Sr[ms]);(Ea=xo.current.querySelector('[data-row-key="'.concat(oa,'"]')))===null||Ea===void 0||Ea.scrollIntoView()}}else(ko=xo.current)!==null&&ko!==void 0&&ko.scrollTo&&xo.current.scrollTo(Zi)}}});var Yl=u.useRef(),Ga=u.useState(!1),ra=(0,Z.Z)(Ga,2),Us=ra[0],Wa=ra[1],pu=u.useState(!1),$l=(0,Z.Z)(pu,2),Bo=$l[0],Xl=$l[1],gu=Mn(new Map),Ol=(0,Z.Z)(gu,2),Ll=Ol[0],Ss=Ol[1],As=xe(Pi),$o=As.map(function(ki){return Ll.get(ki)}),qo=u.useMemo(function(){return $o},[$o.join("_")]),no=It(qo,Pi,dn),ci=Jt&&pe(Jt.y),_i=Jt&&pe(Bi)||!!yo.fixed,es=_i&&Pi.some(function(ki){var Zi=ki.fixed;return Zi}),Lo=u.useRef(),jo=Vn(xt,Ie),Zn=jo.isSticky,ia=jo.offsetHeader,ht=jo.offsetSummary,qt=jo.offsetScroll,il=jo.stickyClassName,Zl=jo.container,Xo=u.useMemo(function(){return Xn==null?void 0:Xn(Sr)},[Xn,Sr]),Ys=(ci||Zn)&&u.isValidElement(Xo)&&Xo.type===re&&Xo.props.fixed,vl,Ml,Jl;ci&&(Ml={overflowY:ii?"scroll":"auto",maxHeight:Jt.y}),_i&&(vl={overflowX:"auto"},ci||(Ml={overflowY:"hidden"}),Jl={width:Bi===!0?"auto":Bi,minWidth:"100%"});var To=u.useCallback(function(ki,Zi){(0,rt.Z)(Sa.current)&&Ss(function(ko){if(ko.get(ki)!==Zi){var ms=new Map(ko);return ms.set(ki,Zi),ms}return ko})},[]),Mr=ai(null),ps=(0,Z.Z)(Mr,2),Ps=ps[0],Yi=ps[1];function xi(ki,Zi){Zi&&(typeof Zi=="function"?Zi(ki):Zi.scrollLeft!==ki&&(Zi.scrollLeft=ki,Zi.scrollLeft!==ki&&setTimeout(function(){Zi.scrollLeft=ki},0)))}var Ao=(0,s.Z)(function(ki){var Zi=ki.currentTarget,ko=ki.scrollLeft,ms=dn==="rtl",os=typeof ko=="number"?ko:Zi.scrollLeft,xa=Zi||pr;if(!Yi()||Yi()===xa){var wa;Ps(xa),xi(os,rl.current),xi(os,xo.current),xi(os,Yl.current),xi(os,(wa=Lo.current)===null||wa===void 0?void 0:wa.setScrollLeft)}var Ea=Zi||rl.current;if(Ea){var oa=Br&&to&&typeof Bi=="number"?Bi:Ea.scrollWidth,Ka=Ea.clientWidth;if(oa===Ka){Wa(!1),Xl(!1);return}ms?(Wa(-os<oa-Ka),Xl(-os>0)):(Wa(os>0),Xl(os<oa-Ka))}}),Hs=(0,s.Z)(function(ki){Ao(ki),bi==null||bi(ki)}),mo=function(){if(_i&&xo.current){var Zi;Ao({currentTarget:(0,Un.bn)(xo.current),scrollLeft:(Zi=xo.current)===null||Zi===void 0?void 0:Zi.scrollLeft})}else Wa(!1),Xl(!1)},$s=function(Zi){var ko,ms=Zi.width;(ko=Lo.current)===null||ko===void 0||ko.checkScrollBarVisible();var os=Sa.current?Sa.current.offsetWidth:ms;Br&&go&&Sa.current&&(os=go(Sa.current,os)||os),os!==Qo&&(mo(),Tr(os))},is=u.useRef(!1);u.useEffect(function(){is.current&&mo()},[_i,_n,Co.length]),u.useEffect(function(){is.current=!0},[]);var yl=u.useState(0),Xi=(0,Z.Z)(yl,2),gs=Xi[0],ji=Xi[1],uo=u.useState(!0),po=(0,Z.Z)(uo,2),_o=po[0],Ai=po[1];u.useEffect(function(){(!to||!Br)&&(xo.current instanceof Element?ji((0,dt.o)(xo.current).width):ji((0,dt.o)(Oa.current).width)),Ai((0,et.G)("position","sticky"))},[]),u.useEffect(function(){Br&&Wi&&(Wi.body.current=xo.current)});var Ql=u.useCallback(function(ki){return u.createElement(u.Fragment,null,u.createElement(oo,ki),Ys==="top"&&u.createElement(_e,ki,Xo))},[Ys,Xo]),Ar=u.useCallback(function(ki){return u.createElement(_e,ki,Xo)},[Xo]),oc=Qi(["table"],"table"),Fi=u.useMemo(function(){return fn||(es?Bi==="max-content"?"auto":"fixed":ci||Zn||Pi.some(function(ki){var Zi=ki.ellipsis;return Zi})?"fixed":"auto")},[ci,es,Pi,fn,Zn]),ju,Dl={colWidths:qo,columCount:Pi.length,stickyOffsets:no,onHeaderRow:Kr,fixHeader:ci,scroll:Jt},ol=u.useMemo(function(){return ii?null:typeof Or=="function"?Or():Or},[ii,Or]),Uu=u.createElement(Qn,{data:Sr,measureColumnWidth:ci||_i||Zn}),Nu=u.createElement(zn,{colWidths:Pi.map(function(ki){var Zi=ki.width;return Zi}),columns:Pi}),La=_r!=null?u.createElement("caption",{className:"".concat(Ie,"-caption")},_r):void 0,Ma=(0,Ot.Z)(Et,{data:!0}),Ui=(0,Ot.Z)(Et,{aria:!0});if(ci||Zn){var Rs;typeof Jr=="function"?(Rs=Jr(Sr,{scrollbarSize:gs,ref:xo,onScroll:Ao}),Dl.colWidths=Pi.map(function(ki,Zi){var ko=ki.width,ms=Zi===Pi.length-1?ko-gs:ko;return typeof ms=="number"&&!Number.isNaN(ms)?ms:0})):Rs=u.createElement("div",{style:(0,G.Z)((0,G.Z)({},vl),Ml),onScroll:Hs,ref:xo,className:ae()("".concat(Ie,"-body"))},u.createElement(oc,(0,y.Z)({style:(0,G.Z)((0,G.Z)({},Jl),{},{tableLayout:Fi})},Ui),La,Nu,Uu,!Ys&&Xo&&u.createElement(_e,{stickyOffsets:no,flattenColumns:Pi},Xo)));var ql=(0,G.Z)((0,G.Z)((0,G.Z)({noData:!Sr.length,maxContentScroll:_i&&Bi==="max-content"},Dl),cs),{},{direction:dn,stickyClassName:il,onScroll:Ao});ju=u.createElement(u.Fragment,null,mn!==!1&&u.createElement(Cn,(0,y.Z)({},ql,{stickyTopOffset:ia,className:"".concat(Ie,"-header"),ref:rl}),Ql),Rs,Ys&&Ys!=="top"&&u.createElement(Cn,(0,y.Z)({},ql,{stickyBottomOffset:ht,className:"".concat(Ie,"-summary"),ref:Yl}),Ar),Zn&&xo.current&&xo.current instanceof Element&&u.createElement(Hn,{ref:Lo,offsetScroll:qt,scrollBodyRef:xo,onScroll:Ao,container:Zl,direction:dn}))}else ju=u.createElement("div",{style:(0,G.Z)((0,G.Z)({},vl),Ml),className:ae()("".concat(Ie,"-content")),onScroll:Ao,ref:xo},u.createElement(oc,(0,y.Z)({style:(0,G.Z)((0,G.Z)({},Jl),{},{tableLayout:Fi})},Ui),La,Nu,mn!==!1&&u.createElement(oo,(0,y.Z)({},Dl,cs)),Uu,Xo&&u.createElement(_e,{stickyOffsets:no,flattenColumns:Pi},Xo)));var Da=u.createElement("div",(0,y.Z)({className:ae()(Ie,cn,(0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)({},"".concat(Ie,"-rtl"),dn==="rtl"),"".concat(Ie,"-ping-left"),Us),"".concat(Ie,"-ping-right"),Bo),"".concat(Ie,"-layout-fixed"),fn==="fixed"),"".concat(Ie,"-fixed-header"),ci),"".concat(Ie,"-fixed-column"),es),"".concat(Ie,"-fixed-column-gapped"),es&&Is),"".concat(Ie,"-scroll-horizontal"),_i),"".concat(Ie,"-has-fix-left"),Pi[0]&&Pi[0].fixed),"".concat(Ie,"-has-fix-right"),Pi[Pi.length-1]&&Pi[Pi.length-1].fixed==="right")),style:bn,id:Fr,ref:Sa},Ma),yn&&u.createElement(ft,{className:"".concat(Ie,"-title")},yn(Sr)),u.createElement("div",{ref:Oa,className:"".concat(Ie,"-container")},ju),Sn&&u.createElement(ft,{className:"".concat(Ie,"-footer")},Sn(Sr)));_i&&(Da=u.createElement(Ue.Z,{onResize:$s},Da));var sl=Kn(Pi,no,dn),Va=u.useMemo(function(){return{scrollX:Bi,prefixCls:Ie,getComponent:Qi,scrollbarSize:gs,direction:dn,fixedInfoList:sl,isSticky:Zn,supportSticky:_o,componentWidth:Qo,fixHeader:ci,fixColumn:es,horizonScroll:_i,tableLayout:Fi,rowClassName:sn,expandedRowClassName:yo.expandedRowClassName,expandIcon:jr,expandableType:Ho,expandRowByClick:yo.expandRowByClick,expandedRowRender:yo.expandedRowRender,onTriggerExpand:cr,expandIconColumnIndex:yo.expandIconColumnIndex,indentSize:yo.indentSize,allColumnsFixedLeft:Pi.every(function(ki){return ki.fixed==="left"}),emptyNode:ol,columns:Co,flattenColumns:Pi,onColumnResize:To,hoverStartRow:ds,hoverEndRow:js,onHover:_s,rowExpandable:yo.rowExpandable,onRow:yi,getRowKey:kt,expandedKeys:Yr,childrenColumnName:an,rowHoverable:si}},[Bi,Ie,Qi,gs,dn,sl,Zn,_o,Qo,ci,es,_i,Fi,sn,yo.expandedRowClassName,jr,Ho,yo.expandRowByClick,yo.expandedRowRender,cr,yo.expandIconColumnIndex,yo.indentSize,ol,Co,Pi,To,ds,js,_s,yo.rowExpandable,yi,kt,Yr,an,si]);return u.createElement(H.Provider,{value:Va},Da)}var St=u.forwardRef(Pn);function gr(_t){return R(St,_t)}var vi=gr();vi.EXPAND_COLUMN=B.w,vi.INTERNAL_HOOKS=B.R,vi.Column=we,vi.ColumnGroup=wn,vi.Summary=Be;var Dt=vi,Ji=S(45680),Ri=b(null),oi=b(null);function Oi(_t,Vt,Et){var Ie=Vt||1;return Et[_t+Ie]-(Et[_t]||0)}function Rr(_t){var Vt=_t.rowInfo,Et=_t.column,Ie=_t.colIndex,cn=_t.indent,sn=_t.index,bn=_t.component,_n=_t.renderIndex,Rn=_t.record,Jt=_t.style,fn=_t.className,dn=_t.inverse,yn=_t.getHeight,Sn=Et.render,Xn=Et.dataIndex,_r=Et.className,Fr=Et.width,mn=g(oi,["columnsOffset"]),Cr=mn.columnsOffset,Or=$e(Vt,Et,Ie,cn,sn),yi=Or.key,Kr=Or.fixedInfo,bi=Or.appendCellNode,Si=Or.additionalCellProps,hi=Si.style,Wi=Si.colSpan,to=Wi===void 0?1:Wi,go=Si.rowSpan,xt=go===void 0?1:go,ei=Ie-1,si=Oi(ei,to,Cr),Sr=to>1?Fr-si:0,ii=(0,G.Z)((0,G.Z)((0,G.Z)({},hi),Jt),{},{flex:"0 0 ".concat(si,"px"),width:"".concat(si,"px"),marginRight:Sr,pointerEvents:"auto"}),Br=u.useMemo(function(){return dn?xt<=1:to===0||xt===0||xt>1},[xt,to,dn]);Br?ii.visibility="hidden":dn&&(ii.height=yn==null?void 0:yn(xt));var Qi=Br?function(){return null}:Sn,kt={};return(xt===0||to===0)&&(kt.rowSpan=1,kt.colSpan=1),u.createElement(ot,(0,y.Z)({className:ae()(_r,fn),ellipsis:Et.ellipsis,align:Et.align,scope:Et.rowScope,component:bn,prefixCls:Vt.prefixCls,key:yi,record:Rn,index:sn,renderIndex:_n,dataIndex:Xn,render:Qi,shouldCellUpdate:Et.shouldCellUpdate},Kr,{appendNode:bi,additionalProps:(0,G.Z)((0,G.Z)({},Si),{},{style:ii},kt)}))}var li=Rr,Pr=["data","index","className","rowKey","style","extra","getHeight"],qr=u.forwardRef(function(_t,Vt){var Et=_t.data,Ie=_t.index,cn=_t.className,sn=_t.rowKey,bn=_t.style,_n=_t.extra,Rn=_t.getHeight,Jt=(0,X.Z)(_t,Pr),fn=Et.record,dn=Et.indent,yn=Et.index,Sn=g(H,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Xn=Sn.scrollX,_r=Sn.flattenColumns,Fr=Sn.prefixCls,mn=Sn.fixColumn,Cr=Sn.componentWidth,Or=g(Ri,["getComponent"]),yi=Or.getComponent,Kr=ut(fn,sn,Ie,dn),bi=yi(["body","row"],"div"),Si=yi(["body","cell"],"div"),hi=Kr.rowSupportExpand,Wi=Kr.expanded,to=Kr.rowProps,go=Kr.expandedRowRender,xt=Kr.expandedRowClassName,ei;if(hi&&Wi){var si=go(fn,Ie,dn+1,Wi),Sr=Rt(xt,fn,Ie,dn),ii={};mn&&(ii={style:(0,J.Z)({},"--virtual-width","".concat(Cr,"px"))});var Br="".concat(Fr,"-expanded-row-cell");ei=u.createElement(bi,{className:ae()("".concat(Fr,"-expanded-row"),"".concat(Fr,"-expanded-row-level-").concat(dn+1),Sr)},u.createElement(ot,{component:Si,prefixCls:Fr,className:ae()(Br,(0,J.Z)({},"".concat(Br,"-fixed"),mn)),additionalProps:ii},si))}var Qi=(0,G.Z)((0,G.Z)({},bn),{},{width:Xn});_n&&(Qi.position="absolute",Qi.pointerEvents="none");var kt=u.createElement(bi,(0,y.Z)({},to,Jt,{"data-row-key":sn,ref:hi?null:Vt,className:ae()(cn,"".concat(Fr,"-row"),to==null?void 0:to.className,(0,J.Z)({},"".concat(Fr,"-row-extra"),_n)),style:(0,G.Z)((0,G.Z)({},Qi),to==null?void 0:to.style)}),_r.map(function(Jr,Vi){return u.createElement(li,{key:Vi,component:Si,rowInfo:Kr,column:Jr,colIndex:Vi,indent:dn,index:Ie,renderIndex:yn,record:fn,inverse:_n,getHeight:Rn})}));return hi?u.createElement("div",{ref:Vt},kt,ei):kt}),ri=N(qr),Gt=ri,ui=u.forwardRef(function(_t,Vt){var Et=_t.data,Ie=_t.onScroll,cn=g(H,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),sn=cn.flattenColumns,bn=cn.onColumnResize,_n=cn.getRowKey,Rn=cn.expandedKeys,Jt=cn.prefixCls,fn=cn.childrenColumnName,dn=cn.scrollX,yn=cn.direction,Sn=g(Ri),Xn=Sn.sticky,_r=Sn.scrollY,Fr=Sn.listItemHeight,mn=Sn.getComponent,Cr=Sn.onScroll,Or=u.useRef(),yi=nt(Et,fn,Rn,_n),Kr=u.useMemo(function(){var ei=0;return sn.map(function(si){var Sr=si.width,ii=si.key;return ei+=Sr,[ii,Sr,ei]})},[sn]),bi=u.useMemo(function(){return Kr.map(function(ei){return ei[2]})},[Kr]);u.useEffect(function(){Kr.forEach(function(ei){var si=(0,Z.Z)(ei,2),Sr=si[0],ii=si[1];bn(Sr,ii)})},[Kr]),u.useImperativeHandle(Vt,function(){var ei,si={scrollTo:function(ii){var Br;(Br=Or.current)===null||Br===void 0||Br.scrollTo(ii)},nativeElement:(ei=Or.current)===null||ei===void 0?void 0:ei.nativeElement};return Object.defineProperty(si,"scrollLeft",{get:function(){var ii;return((ii=Or.current)===null||ii===void 0?void 0:ii.getScrollInfo().x)||0},set:function(ii){var Br;(Br=Or.current)===null||Br===void 0||Br.scrollTo({left:ii})}}),si});var Si=function(si,Sr){var ii,Br=(ii=yi[Sr])===null||ii===void 0?void 0:ii.record,Qi=si.onCell;if(Qi){var kt,Jr=Qi(Br,Sr);return(kt=Jr==null?void 0:Jr.rowSpan)!==null&&kt!==void 0?kt:1}return 1},hi=function(si){var Sr=si.start,ii=si.end,Br=si.getSize,Qi=si.offsetY;if(ii<0)return null;for(var kt=sn.filter(function(jr){return Si(jr,Sr)===0}),Jr=Sr,Vi=function(an){if(kt=kt.filter(function(cr){return Si(cr,an)===0}),!kt.length)return Jr=an,1},Ts=Sr;Ts>=0&&!Vi(Ts);Ts-=1);for(var ds=sn.filter(function(jr){return Si(jr,ii)!==1}),js=ii,_s=function(an){if(ds=ds.filter(function(cr){return Si(cr,an)!==1}),!ds.length)return js=Math.max(an-1,ii),1},ar=ii;ar<yi.length&&!_s(ar);ar+=1);for(var Ki=[],yo=function(an){var cr=yi[an];if(!cr)return 1;sn.some(function(Gr){return Si(Gr,an)>1})&&Ki.push(an)},Ho=Jr;Ho<=js;Ho+=1)yo(Ho);var Yr=Ki.map(function(jr){var an=yi[jr],cr=_n(an.record,jr),Gr=function(Qo){var Tr=jr+Qo-1,So=_n(yi[Tr].record,Tr),Oo=Br(cr,So);return Oo.bottom-Oo.top},ro=Br(cr);return u.createElement(Gt,{key:jr,data:an,rowKey:cr,index:jr,style:{top:-Qi+ro.top},extra:!0,getHeight:Gr})});return Yr},Wi=u.useMemo(function(){return{columnsOffset:bi}},[bi]),to="".concat(Jt,"-tbody"),go=mn(["body","wrapper"]),xt={};return Xn&&(xt.position="sticky",xt.bottom=0,(0,U.Z)(Xn)==="object"&&Xn.offsetScroll&&(xt.bottom=Xn.offsetScroll)),u.createElement(oi.Provider,{value:Wi},u.createElement(Ji.Z,{fullHeight:!1,ref:Or,prefixCls:"".concat(to,"-virtual"),styles:{horizontalScrollBar:xt},className:to,height:_r,itemHeight:Fr||24,data:yi,itemKey:function(si){return _n(si.record)},component:go,scrollWidth:dn,direction:yn,onVirtualScroll:function(si){var Sr,ii=si.x;Ie({currentTarget:(Sr=Or.current)===null||Sr===void 0?void 0:Sr.nativeElement,scrollLeft:ii})},onScroll:Cr,extraRender:hi},function(ei,si,Sr){var ii=_n(ei.record,si);return u.createElement(Gt,{data:ei,rowKey:ii,index:si,style:Sr.style})}))}),Kt=N(ui),Wn=Kt,er=function(Vt,Et){var Ie=Et.ref,cn=Et.onScroll;return u.createElement(Wn,{ref:Ie,data:Vt,onScroll:cn})};function rr(_t,Vt){var Et=_t.data,Ie=_t.columns,cn=_t.scroll,sn=_t.sticky,bn=_t.prefixCls,_n=bn===void 0?Ht:bn,Rn=_t.className,Jt=_t.listItemHeight,fn=_t.components,dn=_t.onScroll,yn=cn||{},Sn=yn.x,Xn=yn.y;typeof Sn!="number"&&(Sn=1),typeof Xn!="number"&&(Xn=500);var _r=(0,Ke.zX)(function(Cr,Or){return(0,ue.Z)(fn,Cr)||Or}),Fr=(0,Ke.zX)(dn),mn=u.useMemo(function(){return{sticky:sn,scrollY:Xn,listItemHeight:Jt,getComponent:_r,onScroll:Fr}},[sn,Xn,Jt,_r,Fr]);return u.createElement(Ri.Provider,{value:mn},u.createElement(Dt,(0,y.Z)({},_t,{className:ae()(Rn,"".concat(_n,"-virtual")),scroll:(0,G.Z)((0,G.Z)({},cn),{},{x:Sn}),components:(0,G.Z)((0,G.Z)({},fn),{},{body:Et!=null&&Et.length?er:void 0}),columns:Ie,internalHooks:B.R,tailor:!0,ref:Vt})))}var Di=u.forwardRef(rr);function Li(_t){return R(Di,_t)}var pi=Li(),Mi=null},90494:function(Ne,Q,S){"use strict";S.d(Q,{g:function(){return u},v:function(){return A}});var B=S(77321),Z=S(74416),s=S(48736),C=["expandable"],A="RC_TABLE_INTERNAL_COL_DEFINE";function u(p){var b=p.expandable,g=(0,Z.Z)(p,C),y;return"expandable"in p?y=(0,B.Z)((0,B.Z)({},g),b):y=g,y.showExpandColumn===!1&&(y.expandIconColumnIndex=-1),y}},22711:function(Ne,Q,S){"use strict";S.r(Q),S.d(Q,{ResizableTextArea:function(){return ee},default:function(){return se}});var B=S(72308),Z=S(49618),s=S(77321),C=S(80702),A=S(52487),u=S(74416),p=S(92310),b=S.n(p),g=S(36901),y=S(66003),v=S(30292),c=S(18929),h=S(59301),m=S(62853),E=S(29301),T=S(34280),I=S(16089),R=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,N=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],k={},L;function H(ye){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=ye.getAttribute("id")||ye.getAttribute("data-reactid")||ye.getAttribute("name");if(ve&&k[Re])return k[Re];var le=window.getComputedStyle(ye),xe=le.getPropertyValue("box-sizing")||le.getPropertyValue("-moz-box-sizing")||le.getPropertyValue("-webkit-box-sizing"),pe=parseFloat(le.getPropertyValue("padding-bottom"))+parseFloat(le.getPropertyValue("padding-top")),Me=parseFloat(le.getPropertyValue("border-bottom-width"))+parseFloat(le.getPropertyValue("border-top-width")),Oe=N.map(function(Pe){return"".concat(Pe,":").concat(le.getPropertyValue(Pe))}).join(";"),Le={sizingStyle:Oe,paddingSize:pe,borderSize:Me,boxSizing:xe};return ve&&Re&&(k[Re]=Le),Le}function D(ye){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;L||(L=document.createElement("textarea"),L.setAttribute("tab-index","-1"),L.setAttribute("aria-hidden","true"),L.setAttribute("name","hiddenTextarea"),document.body.appendChild(L)),ye.getAttribute("wrap")?L.setAttribute("wrap",ye.getAttribute("wrap")):L.removeAttribute("wrap");var xe=H(ye,ve),pe=xe.paddingSize,Me=xe.borderSize,Oe=xe.boxSizing,Le=xe.sizingStyle;L.setAttribute("style","".concat(Le,";").concat(R)),L.value=ye.value||ye.placeholder||"";var Pe=void 0,De=void 0,Ke,ze=L.scrollHeight;if(Oe==="border-box"?ze+=Me:Oe==="content-box"&&(ze-=pe),Re!==null||le!==null){L.value=" ";var it=L.scrollHeight-pe;Re!==null&&(Pe=it*Re,Oe==="border-box"&&(Pe=Pe+pe+Me),ze=Math.max(Pe,ze)),le!==null&&(De=it*le,Oe==="border-box"&&(De=De+pe+Me),Ke=ze>De?"":"hidden",ze=Math.min(De,ze))}var ot={height:ze,overflowY:Ke,resize:"none"};return Pe&&(ot.minHeight=Pe),De&&(ot.maxHeight=De),ot}var V=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],P=0,U=1,G=2,J=h.forwardRef(function(ye,ve){var Re=ye,le=Re.prefixCls,xe=Re.defaultValue,pe=Re.value,Me=Re.autoSize,Oe=Re.onResize,Le=Re.className,Pe=Re.style,De=Re.disabled,Ke=Re.onChange,ze=Re.onInternalAutoSize,it=(0,u.Z)(Re,V),ot=(0,c.Z)(xe,{value:pe,postState:function(Zt){return Zt!=null?Zt:""}}),Ge=(0,A.Z)(ot,2),Ee=Ge[0],fe=Ge[1],z=function(Zt){fe(Zt.target.value),Ke==null||Ke(Zt)},X=h.useRef();h.useImperativeHandle(ve,function(){return{textArea:X.current}});var de=h.useMemo(function(){return Me&&(0,m.Z)(Me)==="object"?[Me.minRows,Me.maxRows]:[]},[Me]),Ce=(0,A.Z)(de,2),ne=Ce[0],re=Ce[1],he=!!Me,_e=function(){try{if(document.activeElement===X.current){var Zt=X.current,vn=Zt.selectionStart,wt=Zt.selectionEnd,Dn=Zt.scrollTop;X.current.setSelectionRange(vn,wt),X.current.scrollTop=Dn}}catch(nr){}},Be=h.useState(G),Ue=(0,A.Z)(Be,2),rt=Ue[0],et=Ue[1],dt=h.useState(),Ot=(0,A.Z)(dt,2),pt=Ot[0],nt=Ot[1],ut=function(){et(P)};(0,T.Z)(function(){he&&ut()},[pe,ne,re,he]),(0,T.Z)(function(){if(rt===P)et(U);else if(rt===U){var $e=D(X.current,!1,ne,re);et(G),nt($e)}else _e()},[rt]);var Tt=h.useRef(),vt=function(){I.Z.cancel(Tt.current)},Ct=function(Zt){rt===G&&(Oe==null||Oe(Zt),Me&&(vt(),Tt.current=(0,I.Z)(function(){ut()})))};h.useEffect(function(){return vt},[]);var Ft=he?pt:null,Rt=(0,s.Z)((0,s.Z)({},Pe),Ft);return(rt===P||rt===U)&&(Rt.overflowY="hidden",Rt.overflowX="hidden"),h.createElement(E.Z,{onResize:Ct,disabled:!(Me||Oe)},h.createElement("textarea",(0,B.Z)({},it,{ref:X,style:Rt,className:b()(le,Le,(0,Z.Z)({},"".concat(le,"-disabled"),De)),disabled:De,value:Ee,onChange:z})))}),ee=J,ae=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],oe=h.forwardRef(function(ye,ve){var Re,le=ye.defaultValue,xe=ye.value,pe=ye.onFocus,Me=ye.onBlur,Oe=ye.onChange,Le=ye.allowClear,Pe=ye.maxLength,De=ye.onCompositionStart,Ke=ye.onCompositionEnd,ze=ye.suffix,it=ye.prefixCls,ot=it===void 0?"rc-textarea":it,Ge=ye.showCount,Ee=ye.count,fe=ye.className,z=ye.style,X=ye.disabled,de=ye.hidden,Ce=ye.classNames,ne=ye.styles,re=ye.onResize,he=ye.onClear,_e=ye.onPressEnter,Be=ye.readOnly,Ue=ye.autoSize,rt=ye.onKeyDown,et=(0,u.Z)(ye,ae),dt=(0,c.Z)(le,{value:xe,defaultValue:le}),Ot=(0,A.Z)(dt,2),pt=Ot[0],nt=Ot[1],ut=pt==null?"":String(pt),Tt=h.useState(!1),vt=(0,A.Z)(Tt,2),Ct=vt[0],Ft=vt[1],Rt=h.useRef(!1),$e=h.useState(null),Zt=(0,A.Z)($e,2),vn=Zt[0],wt=Zt[1],Dn=(0,h.useRef)(null),nr=(0,h.useRef)(null),Qn=function(){var Mt;return(Mt=nr.current)===null||Mt===void 0?void 0:Mt.textArea},jt=function(){Qn().focus()};(0,h.useImperativeHandle)(ve,function(){var Vn;return{resizableTextArea:nr.current,focus:jt,blur:function(){Qn().blur()},nativeElement:((Vn=Dn.current)===null||Vn===void 0?void 0:Vn.nativeElement)||Qn()}}),(0,h.useEffect)(function(){Ft(function(Vn){return!X&&Vn})},[X]);var br=h.useState(null),dr=(0,A.Z)(br,2),zn=dr[0],$n=dr[1];h.useEffect(function(){if(zn){var Vn;(Vn=Qn()).setSelectionRange.apply(Vn,(0,C.Z)(zn))}},[zn]);var Er=(0,y.Z)(Ee,Ge),me=(Re=Er.max)!==null&&Re!==void 0?Re:Pe,jn=Number(me)>0,Cn=Er.strategy(ut),qn=!!me&&Cn>me,Ir=function(Mt,It){var On=It;!Rt.current&&Er.exceedFormatter&&Er.max&&Er.strategy(It)>Er.max&&(On=Er.exceedFormatter(It,{max:Er.max}),It!==On&&$n([Qn().selectionStart||0,Qn().selectionEnd||0])),nt(On),(0,v.rJ)(Mt.currentTarget,Mt,Oe,On)},Vr=function(Mt){Rt.current=!0,De==null||De(Mt)},fr=function(Mt){Rt.current=!1,Ir(Mt,Mt.currentTarget.value),Ke==null||Ke(Mt)},oo=function(Mt){Ir(Mt,Mt.target.value)},Zr=function(Mt){Mt.key==="Enter"&&_e&&_e(Mt),rt==null||rt(Mt)},Qr=function(Mt){Ft(!0),pe==null||pe(Mt)},Kn=function(Mt){Ft(!1),Me==null||Me(Mt)},Mn=function(Mt){nt(""),jt(),(0,v.rJ)(Qn(),Mt,Oe)},ai=ze,Nr;Er.show&&(Er.showFormatter?Nr=Er.showFormatter({value:ut,count:Cn,maxLength:me}):Nr="".concat(Cn).concat(jn?" / ".concat(me):""),ai=h.createElement(h.Fragment,null,ai,h.createElement("span",{className:b()("".concat(ot,"-data-count"),Ce==null?void 0:Ce.count),style:ne==null?void 0:ne.count},Nr)));var zr=function(Mt){var It;re==null||re(Mt),(It=Qn())!==null&&It!==void 0&&It.style.height&&wt(!0)},pn=!Ue&&!Ge&&!Le;return h.createElement(g.BaseInput,{ref:Dn,value:ut,allowClear:Le,handleReset:Mn,suffix:ai,prefixCls:ot,classNames:(0,s.Z)((0,s.Z)({},Ce),{},{affixWrapper:b()(Ce==null?void 0:Ce.affixWrapper,(0,Z.Z)((0,Z.Z)({},"".concat(ot,"-show-count"),Ge),"".concat(ot,"-textarea-allow-clear"),Le))}),disabled:X,focused:Ct,className:b()(fe,qn&&"".concat(ot,"-out-of-range")),style:(0,s.Z)((0,s.Z)({},z),vn&&!pn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Nr=="string"?Nr:void 0}},hidden:de,readOnly:Be,onClear:he},h.createElement(ee,(0,B.Z)({},et,{autoSize:Ue,maxLength:Pe,onKeyDown:Zr,onChange:oo,onFocus:Qr,onBlur:Kn,onCompositionStart:Vr,onCompositionEnd:fr,className:b()(Ce==null?void 0:Ce.textarea),style:(0,s.Z)((0,s.Z)({},ne==null?void 0:ne.textarea),{},{resize:z==null?void 0:z.resize}),disabled:X,prefixCls:ot,onResize:zr,ref:nr,readOnly:Be})))}),ue=oe,se=ue},639:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return k}});var B=S(72308),Z=S(49618),s=S(77321),C=S(52487),A=S(74416),u=S(59301),p=S(92310),b=S.n(p),g=S(26112),y=S(30699),v=function(H){for(var D=H.prefixCls,V=H.level,P=H.isStart,U=H.isEnd,G="".concat(D,"-indent-unit"),J=[],ee=0;ee<V;ee+=1)J.push(u.createElement("span",{key:ee,className:b()(G,(0,Z.Z)((0,Z.Z)({},"".concat(G,"-start"),P[ee]),"".concat(G,"-end"),U[ee]))}));return u.createElement("span",{"aria-hidden":"true",className:"".concat(D,"-indent")},J)},c=u.memo(v),h=S(65065),m=S(34061),E=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],T="open",I="close",R="---",N=function(H){var D,V,P,U=H.eventKey,G=H.className,J=H.style,ee=H.dragOver,ae=H.dragOverGapTop,oe=H.dragOverGapBottom,ue=H.isLeaf,se=H.isStart,ye=H.isEnd,ve=H.expanded,Re=H.selected,le=H.checked,xe=H.halfChecked,pe=H.loading,Me=H.domRef,Oe=H.active,Le=H.data,Pe=H.onMouseMove,De=H.selectable,Ke=(0,A.Z)(H,E),ze=u.useContext(y.k),it=u.useContext(y.y),ot=u.useRef(null),Ge=u.useState(!1),Ee=(0,C.Z)(Ge,2),fe=Ee[0],z=Ee[1],X=!!(ze.disabled||H.disabled||(D=it.nodeDisabled)!==null&&D!==void 0&&D.call(it,Le)),de=u.useMemo(function(){return!ze.checkable||H.checkable===!1?!1:ze.checkable},[ze.checkable,H.checkable]),Ce=function(Cn){X||ze.onNodeSelect(Cn,(0,m.F)(H))},ne=function(Cn){X||!de||H.disableCheckbox||ze.onNodeCheck(Cn,(0,m.F)(H),!le)},re=u.useMemo(function(){return typeof De=="boolean"?De:ze.selectable},[De,ze.selectable]),he=function(Cn){ze.onNodeClick(Cn,(0,m.F)(H)),re?Ce(Cn):ne(Cn)},_e=function(Cn){ze.onNodeDoubleClick(Cn,(0,m.F)(H))},Be=function(Cn){ze.onNodeMouseEnter(Cn,(0,m.F)(H))},Ue=function(Cn){ze.onNodeMouseLeave(Cn,(0,m.F)(H))},rt=function(Cn){ze.onNodeContextMenu(Cn,(0,m.F)(H))},et=u.useMemo(function(){return!!(ze.draggable&&(!ze.draggable.nodeDraggable||ze.draggable.nodeDraggable(Le)))},[ze.draggable,Le]),dt=function(Cn){Cn.stopPropagation(),z(!0),ze.onNodeDragStart(Cn,H);try{Cn.dataTransfer.setData("text/plain","")}catch(qn){}},Ot=function(Cn){Cn.preventDefault(),Cn.stopPropagation(),ze.onNodeDragEnter(Cn,H)},pt=function(Cn){Cn.preventDefault(),Cn.stopPropagation(),ze.onNodeDragOver(Cn,H)},nt=function(Cn){Cn.stopPropagation(),ze.onNodeDragLeave(Cn,H)},ut=function(Cn){Cn.stopPropagation(),z(!1),ze.onNodeDragEnd(Cn,H)},Tt=function(Cn){Cn.preventDefault(),Cn.stopPropagation(),z(!1),ze.onNodeDrop(Cn,H)},vt=function(Cn){pe||ze.onNodeExpand(Cn,(0,m.F)(H))},Ct=u.useMemo(function(){var jn=(0,h.Z)(ze.keyEntities,U)||{},Cn=jn.children;return!!(Cn||[]).length},[ze.keyEntities,U]),Ft=u.useMemo(function(){return ue===!1?!1:ue||!ze.loadData&&!Ct||ze.loadData&&H.loaded&&!Ct},[ue,ze.loadData,Ct,H.loaded]);u.useEffect(function(){pe||typeof ze.loadData=="function"&&ve&&!Ft&&!H.loaded&&ze.onNodeLoad((0,m.F)(H))},[pe,ze.loadData,ze.onNodeLoad,ve,Ft,H]);var Rt=u.useMemo(function(){var jn;return(jn=ze.draggable)!==null&&jn!==void 0&&jn.icon?u.createElement("span",{className:"".concat(ze.prefixCls,"-draggable-icon")},ze.draggable.icon):null},[ze.draggable]),$e=function(Cn){var qn=H.switcherIcon||ze.switcherIcon;return typeof qn=="function"?qn((0,s.Z)((0,s.Z)({},H),{},{isLeaf:Cn})):qn},Zt=function(){if(Ft){var Cn=$e(!0);return Cn!==!1?u.createElement("span",{className:b()("".concat(ze.prefixCls,"-switcher"),"".concat(ze.prefixCls,"-switcher-noop"))},Cn):null}var qn=$e(!1);return qn!==!1?u.createElement("span",{onClick:vt,className:b()("".concat(ze.prefixCls,"-switcher"),"".concat(ze.prefixCls,"-switcher_").concat(ve?T:I))},qn):null},vn=u.useMemo(function(){if(!de)return null;var jn=typeof de!="boolean"?de:null;return u.createElement("span",{className:b()("".concat(ze.prefixCls,"-checkbox"),(0,Z.Z)((0,Z.Z)((0,Z.Z)({},"".concat(ze.prefixCls,"-checkbox-checked"),le),"".concat(ze.prefixCls,"-checkbox-indeterminate"),!le&&xe),"".concat(ze.prefixCls,"-checkbox-disabled"),X||H.disableCheckbox)),onClick:ne,role:"checkbox","aria-checked":xe?"mixed":le,"aria-disabled":X||H.disableCheckbox,"aria-label":"Select ".concat(typeof H.title=="string"?H.title:"tree node")},jn)},[de,le,xe,X,H.disableCheckbox,H.title]),wt=u.useMemo(function(){return Ft?null:ve?T:I},[Ft,ve]),Dn=u.useMemo(function(){return u.createElement("span",{className:b()("".concat(ze.prefixCls,"-iconEle"),"".concat(ze.prefixCls,"-icon__").concat(wt||"docu"),(0,Z.Z)({},"".concat(ze.prefixCls,"-icon_loading"),pe))})},[ze.prefixCls,wt,pe]),nr=u.useMemo(function(){var jn=!!ze.draggable,Cn=!H.disabled&&jn&&ze.dragOverNodeKey===U;return Cn?ze.dropIndicatorRender({dropPosition:ze.dropPosition,dropLevelOffset:ze.dropLevelOffset,indent:ze.indent,prefixCls:ze.prefixCls,direction:ze.direction}):null},[ze.dropPosition,ze.dropLevelOffset,ze.indent,ze.prefixCls,ze.direction,ze.draggable,ze.dragOverNodeKey,ze.dropIndicatorRender]),Qn=u.useMemo(function(){var jn=H.title,Cn=jn===void 0?R:jn,qn="".concat(ze.prefixCls,"-node-content-wrapper"),Ir;if(ze.showIcon){var Vr=H.icon||ze.icon;Ir=Vr?u.createElement("span",{className:b()("".concat(ze.prefixCls,"-iconEle"),"".concat(ze.prefixCls,"-icon__customize"))},typeof Vr=="function"?Vr(H):Vr):Dn}else ze.loadData&&pe&&(Ir=Dn);var fr;return typeof Cn=="function"?fr=Cn(Le):ze.titleRender?fr=ze.titleRender(Le):fr=Cn,u.createElement("span",{ref:ot,title:typeof Cn=="string"?Cn:"",className:b()(qn,"".concat(qn,"-").concat(wt||"normal"),(0,Z.Z)({},"".concat(ze.prefixCls,"-node-selected"),!X&&(Re||fe))),onMouseEnter:Be,onMouseLeave:Ue,onContextMenu:rt,onClick:he,onDoubleClick:_e},Ir,u.createElement("span",{className:"".concat(ze.prefixCls,"-title")},fr),nr)},[ze.prefixCls,ze.showIcon,H,ze.icon,Dn,ze.titleRender,Le,wt,Be,Ue,rt,he,_e]),jt=(0,g.Z)(Ke,{aria:!0,data:!0}),br=(0,h.Z)(ze.keyEntities,U)||{},dr=br.level,zn=ye[ye.length-1],$n=!X&&et,Er=ze.draggingNodeKey===U,me=De!==void 0?{"aria-selected":!!De}:void 0;return u.createElement("div",(0,B.Z)({ref:Me,role:"treeitem","aria-expanded":ue?void 0:ve,className:b()(G,"".concat(ze.prefixCls,"-treenode"),(P={},(0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)(P,"".concat(ze.prefixCls,"-treenode-disabled"),X),"".concat(ze.prefixCls,"-treenode-switcher-").concat(ve?"open":"close"),!ue),"".concat(ze.prefixCls,"-treenode-checkbox-checked"),le),"".concat(ze.prefixCls,"-treenode-checkbox-indeterminate"),xe),"".concat(ze.prefixCls,"-treenode-selected"),Re),"".concat(ze.prefixCls,"-treenode-loading"),pe),"".concat(ze.prefixCls,"-treenode-active"),Oe),"".concat(ze.prefixCls,"-treenode-leaf-last"),zn),"".concat(ze.prefixCls,"-treenode-draggable"),et),"dragging",Er),(0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)(P,"drop-target",ze.dropTargetKey===U),"drop-container",ze.dropContainerKey===U),"drag-over",!X&&ee),"drag-over-gap-top",!X&&ae),"drag-over-gap-bottom",!X&&oe),"filter-node",(V=ze.filterTreeNode)===null||V===void 0?void 0:V.call(ze,(0,m.F)(H))),"".concat(ze.prefixCls,"-treenode-leaf"),Ft))),style:J,draggable:$n,onDragStart:$n?dt:void 0,onDragEnter:et?Ot:void 0,onDragOver:et?pt:void 0,onDragLeave:et?nt:void 0,onDrop:et?Tt:void 0,onDragEnd:et?ut:void 0,onMouseMove:Pe},me,jt),u.createElement(c,{prefixCls:ze.prefixCls,level:dr,isStart:se,isEnd:ye}),Rt,Zt(),vn,Qn)};N.isTreeNode=1;var k=N},30699:function(Ne,Q,S){"use strict";S.d(Q,{k:function(){return Z},y:function(){return s}});var B=S(59301),Z=B.createContext(null),s=B.createContext({})},15018:function(Ne,Q,S){"use strict";S.d(Q,{OF:function(){return U.Z},y6:function(){return I.y},ZP:function(){return X}});var B=S(72308),Z=S(62853),s=S(77321),C=S(80702),A=S(96949),u=S(55090),p=S(80237),b=S(77205),g=S(38793),y=S(49618),v=S(92310),c=S.n(v),h=S(10228),m=S(26112),E=S(48736),T=S(59301),I=S(30699),R=function(Ce){var ne=Ce.dropPosition,re=Ce.dropLevelOffset,he=Ce.indent,_e={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ne){case-1:_e.top=0,_e.left=-re*he;break;case 1:_e.bottom=0,_e.left=-re*he;break;case 0:_e.bottom=0,_e.left=he;break}return T.createElement("div",{style:_e})},N=R;function k(de){if(de==null)throw new TypeError("Cannot destructure "+de)}var L=S(52487),H=S(74416),D=S(34280),V=S(45680),P=S(77900),U=S(639);function G(de,Ce){var ne=T.useState(!1),re=(0,L.Z)(ne,2),he=re[0],_e=re[1];(0,D.Z)(function(){if(he)return de(),function(){Ce()}},[he]),(0,D.Z)(function(){return _e(!0),function(){_e(!1)}},[])}var J=G,ee=S(34061),ae=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],oe=T.forwardRef(function(de,Ce){var ne=de.className,re=de.style,he=de.motion,_e=de.motionNodes,Be=de.motionType,Ue=de.onMotionStart,rt=de.onMotionEnd,et=de.active,dt=de.treeNodeRequiredProps,Ot=(0,H.Z)(de,ae),pt=T.useState(!0),nt=(0,L.Z)(pt,2),ut=nt[0],Tt=nt[1],vt=T.useContext(I.k),Ct=vt.prefixCls,Ft=_e&&Be!=="hide";(0,D.Z)(function(){_e&&Ft!==ut&&Tt(Ft)},[_e]);var Rt=function(){_e&&Ue()},$e=T.useRef(!1),Zt=function(){_e&&!$e.current&&($e.current=!0,rt())};J(Rt,Zt);var vn=function(Dn){Ft===Dn&&Zt()};return _e?T.createElement(P.default,(0,B.Z)({ref:Ce,visible:ut},he,{motionAppear:Be==="show",onVisibleChanged:vn}),function(wt,Dn){var nr=wt.className,Qn=wt.style;return T.createElement("div",{ref:Dn,className:c()("".concat(Ct,"-treenode-motion"),nr),style:Qn},_e.map(function(jt){var br=Object.assign({},(k(jt.data),jt.data)),dr=jt.title,zn=jt.key,$n=jt.isStart,Er=jt.isEnd;delete br.children;var me=(0,ee.H8)(zn,dt);return T.createElement(U.Z,(0,B.Z)({},br,me,{title:dr,active:et,data:jt.data,key:zn,isStart:$n,isEnd:Er}))}))}):T.createElement(U.Z,(0,B.Z)({domRef:Ce,className:ne,style:re},Ot,{active:et}))}),ue=oe;function se(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ne=de.length,re=Ce.length;if(Math.abs(ne-re)!==1)return{add:!1,key:null};function he(_e,Be){var Ue=new Map;_e.forEach(function(et){Ue.set(et,!0)});var rt=Be.filter(function(et){return!Ue.has(et)});return rt.length===1?rt[0]:null}return ne<re?{add:!0,key:he(de,Ce)}:{add:!1,key:he(Ce,de)}}function ye(de,Ce,ne){var re=de.findIndex(function(Ue){return Ue.key===ne}),he=de[re+1],_e=Ce.findIndex(function(Ue){return Ue.key===ne});if(he){var Be=Ce.findIndex(function(Ue){return Ue.key===he.key});return Ce.slice(_e+1,Be)}return Ce.slice(_e+1)}var ve=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Re={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},le=function(){},xe="RC_TREE_MOTION_".concat(Math.random()),pe={key:xe},Me={key:xe,level:0,index:0,pos:"0",node:pe,nodes:[pe]},Oe={parent:null,children:[],pos:Me.pos,data:pe,title:null,key:xe,isStart:[],isEnd:[]};function Le(de,Ce,ne,re){return Ce===!1||!ne?de:de.slice(0,Math.ceil(ne/re)+1)}function Pe(de){var Ce=de.key,ne=de.pos;return(0,ee.km)(Ce,ne)}function De(de){for(var Ce=String(de.data.key),ne=de;ne.parent;)ne=ne.parent,Ce="".concat(ne.data.key," > ").concat(Ce);return Ce}var Ke=T.forwardRef(function(de,Ce){var ne=de.prefixCls,re=de.data,he=de.selectable,_e=de.checkable,Be=de.expandedKeys,Ue=de.selectedKeys,rt=de.checkedKeys,et=de.loadedKeys,dt=de.loadingKeys,Ot=de.halfCheckedKeys,pt=de.keyEntities,nt=de.disabled,ut=de.dragging,Tt=de.dragOverNodeKey,vt=de.dropPosition,Ct=de.motion,Ft=de.height,Rt=de.itemHeight,$e=de.virtual,Zt=de.scrollWidth,vn=de.focusable,wt=de.activeItem,Dn=de.focused,nr=de.tabIndex,Qn=de.onKeyDown,jt=de.onFocus,br=de.onBlur,dr=de.onActiveChange,zn=de.onListChangeStart,$n=de.onListChangeEnd,Er=(0,H.Z)(de,ve),me=T.useRef(null),jn=T.useRef(null);T.useImperativeHandle(Ce,function(){return{scrollTo:function(At){me.current.scrollTo(At)},getIndentWidth:function(){return jn.current.offsetWidth}}});var Cn=T.useState(Be),qn=(0,L.Z)(Cn,2),Ir=qn[0],Vr=qn[1],fr=T.useState(re),oo=(0,L.Z)(fr,2),Zr=oo[0],Qr=oo[1],Kn=T.useState(re),Mn=(0,L.Z)(Kn,2),ai=Mn[0],Nr=Mn[1],zr=T.useState([]),pn=(0,L.Z)(zr,2),Vn=pn[0],Mt=pn[1],It=T.useState(null),On=(0,L.Z)(It,2),ft=On[0],en=On[1],An=T.useRef(re);An.current=re;function Un(){var Hn=An.current;Qr(Hn),Nr(Hn),Mt([]),en(null),$n()}(0,D.Z)(function(){Vr(Be);var Hn=se(Ir,Be);if(Hn.key!==null)if(Hn.add){var At=Zr.findIndex(function(pr){var xr=pr.key;return xr===Hn.key}),we=Le(ye(Zr,re,Hn.key),$e,Ft,Rt),Bn=Zr.slice();Bn.splice(At+1,0,Oe),Nr(Bn),Mt(we),en("show")}else{var wn=re.findIndex(function(pr){var xr=pr.key;return xr===Hn.key}),Ht=Le(ye(re,Zr,Hn.key),$e,Ft,Rt),lr=re.slice();lr.splice(wn+1,0,Oe),Nr(lr),Mt(Ht),en("hide")}else Zr!==re&&(Qr(re),Nr(re))},[Be,re]),T.useEffect(function(){ut||Un()},[ut]);var gt=Ct?ai:re,gn={expandedKeys:Be,selectedKeys:Ue,loadedKeys:et,loadingKeys:dt,checkedKeys:rt,halfCheckedKeys:Ot,dragOverNodeKey:Tt,dropPosition:vt,keyEntities:pt};return T.createElement(T.Fragment,null,Dn&&wt&&T.createElement("span",{style:Re,"aria-live":"assertive"},De(wt)),T.createElement("div",null,T.createElement("input",{style:Re,disabled:vn===!1||nt,tabIndex:vn!==!1?nr:null,onKeyDown:Qn,onFocus:jt,onBlur:br,value:"",onChange:le,"aria-label":"for screen reader"})),T.createElement("div",{className:"".concat(ne,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},T.createElement("div",{className:"".concat(ne,"-indent")},T.createElement("div",{ref:jn,className:"".concat(ne,"-indent-unit")}))),T.createElement(V.Z,(0,B.Z)({},Er,{data:gt,itemKey:Pe,height:Ft,fullHeight:!1,virtual:$e,itemHeight:Rt,scrollWidth:Zt,prefixCls:"".concat(ne,"-list"),ref:me,role:"tree",onVisibleChange:function(At){At.every(function(we){return Pe(we)!==xe})&&Un()}}),function(Hn){var At=Hn.pos,we=Object.assign({},(k(Hn.data),Hn.data)),Bn=Hn.title,wn=Hn.key,Ht=Hn.isStart,lr=Hn.isEnd,pr=(0,ee.km)(wn,At);delete we.key,delete we.children;var xr=(0,ee.H8)(pr,gn);return T.createElement(ue,(0,B.Z)({},we,xr,{title:Bn,active:!!wt&&wn===wt.key,pos:At,data:Hn.data,isStart:Ht,isEnd:lr,motion:Ct,motionNodes:wn===xe?Vn:null,motionType:ft,onMotionStart:zn,onMotionEnd:Un,treeNodeRequiredProps:gn,onMouseMove:function(){dr(null)}}))}))}),ze=Ke,it=S(82661),ot=S(34643),Ge=S(65065),Ee=10,fe=function(de){(0,b.Z)(ne,de);var Ce=(0,g.Z)(ne);function ne(){var re;(0,A.Z)(this,ne);for(var he=arguments.length,_e=new Array(he),Be=0;Be<he;Be++)_e[Be]=arguments[Be];return re=Ce.call.apply(Ce,[this].concat(_e)),(0,y.Z)((0,p.Z)(re),"destroyed",!1),(0,y.Z)((0,p.Z)(re),"delayedDragEnterLogic",void 0),(0,y.Z)((0,p.Z)(re),"loadingRetryTimes",{}),(0,y.Z)((0,p.Z)(re),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,ee.w$)()}),(0,y.Z)((0,p.Z)(re),"dragStartMousePosition",null),(0,y.Z)((0,p.Z)(re),"dragNodeProps",null),(0,y.Z)((0,p.Z)(re),"currentMouseOverDroppableNodeKey",null),(0,y.Z)((0,p.Z)(re),"listRef",T.createRef()),(0,y.Z)((0,p.Z)(re),"onNodeDragStart",function(Ue,rt){var et=re.state,dt=et.expandedKeys,Ot=et.keyEntities,pt=re.props.onDragStart,nt=rt.eventKey;re.dragNodeProps=rt,re.dragStartMousePosition={x:Ue.clientX,y:Ue.clientY};var ut=(0,it._5)(dt,nt);re.setState({draggingNodeKey:nt,dragChildrenKeys:(0,it.wA)(nt,Ot),indent:re.listRef.current.getIndentWidth()}),re.setExpandedKeys(ut),window.addEventListener("dragend",re.onWindowDragEnd),pt==null||pt({event:Ue,node:(0,ee.F)(rt)})}),(0,y.Z)((0,p.Z)(re),"onNodeDragEnter",function(Ue,rt){var et=re.state,dt=et.expandedKeys,Ot=et.keyEntities,pt=et.dragChildrenKeys,nt=et.flattenNodes,ut=et.indent,Tt=re.props,vt=Tt.onDragEnter,Ct=Tt.onExpand,Ft=Tt.allowDrop,Rt=Tt.direction,$e=rt.pos,Zt=rt.eventKey;if(re.currentMouseOverDroppableNodeKey!==Zt&&(re.currentMouseOverDroppableNodeKey=Zt),!re.dragNodeProps){re.resetDragState();return}var vn=(0,it.OM)(Ue,re.dragNodeProps,rt,ut,re.dragStartMousePosition,Ft,nt,Ot,dt,Rt),wt=vn.dropPosition,Dn=vn.dropLevelOffset,nr=vn.dropTargetKey,Qn=vn.dropContainerKey,jt=vn.dropTargetPos,br=vn.dropAllowed,dr=vn.dragOverNodeKey;if(pt.includes(nr)||!br){re.resetDragState();return}if(re.delayedDragEnterLogic||(re.delayedDragEnterLogic={}),Object.keys(re.delayedDragEnterLogic).forEach(function(zn){clearTimeout(re.delayedDragEnterLogic[zn])}),re.dragNodeProps.eventKey!==rt.eventKey&&(Ue.persist(),re.delayedDragEnterLogic[$e]=window.setTimeout(function(){if(re.state.draggingNodeKey!==null){var zn=(0,C.Z)(dt),$n=(0,Ge.Z)(Ot,rt.eventKey);$n&&($n.children||[]).length&&(zn=(0,it.L0)(dt,rt.eventKey)),re.props.hasOwnProperty("expandedKeys")||re.setExpandedKeys(zn),Ct==null||Ct(zn,{node:(0,ee.F)(rt),expanded:!0,nativeEvent:Ue.nativeEvent})}},800)),re.dragNodeProps.eventKey===nr&&Dn===0){re.resetDragState();return}re.setState({dragOverNodeKey:dr,dropPosition:wt,dropLevelOffset:Dn,dropTargetKey:nr,dropContainerKey:Qn,dropTargetPos:jt,dropAllowed:br}),vt==null||vt({event:Ue,node:(0,ee.F)(rt),expandedKeys:dt})}),(0,y.Z)((0,p.Z)(re),"onNodeDragOver",function(Ue,rt){var et=re.state,dt=et.dragChildrenKeys,Ot=et.flattenNodes,pt=et.keyEntities,nt=et.expandedKeys,ut=et.indent,Tt=re.props,vt=Tt.onDragOver,Ct=Tt.allowDrop,Ft=Tt.direction;if(re.dragNodeProps){var Rt=(0,it.OM)(Ue,re.dragNodeProps,rt,ut,re.dragStartMousePosition,Ct,Ot,pt,nt,Ft),$e=Rt.dropPosition,Zt=Rt.dropLevelOffset,vn=Rt.dropTargetKey,wt=Rt.dropContainerKey,Dn=Rt.dropTargetPos,nr=Rt.dropAllowed,Qn=Rt.dragOverNodeKey;dt.includes(vn)||!nr||(re.dragNodeProps.eventKey===vn&&Zt===0?re.state.dropPosition===null&&re.state.dropLevelOffset===null&&re.state.dropTargetKey===null&&re.state.dropContainerKey===null&&re.state.dropTargetPos===null&&re.state.dropAllowed===!1&&re.state.dragOverNodeKey===null||re.resetDragState():$e===re.state.dropPosition&&Zt===re.state.dropLevelOffset&&vn===re.state.dropTargetKey&&wt===re.state.dropContainerKey&&Dn===re.state.dropTargetPos&&nr===re.state.dropAllowed&&Qn===re.state.dragOverNodeKey||re.setState({dropPosition:$e,dropLevelOffset:Zt,dropTargetKey:vn,dropContainerKey:wt,dropTargetPos:Dn,dropAllowed:nr,dragOverNodeKey:Qn}),vt==null||vt({event:Ue,node:(0,ee.F)(rt)}))}}),(0,y.Z)((0,p.Z)(re),"onNodeDragLeave",function(Ue,rt){re.currentMouseOverDroppableNodeKey===rt.eventKey&&!Ue.currentTarget.contains(Ue.relatedTarget)&&(re.resetDragState(),re.currentMouseOverDroppableNodeKey=null);var et=re.props.onDragLeave;et==null||et({event:Ue,node:(0,ee.F)(rt)})}),(0,y.Z)((0,p.Z)(re),"onWindowDragEnd",function(Ue){re.onNodeDragEnd(Ue,null,!0),window.removeEventListener("dragend",re.onWindowDragEnd)}),(0,y.Z)((0,p.Z)(re),"onNodeDragEnd",function(Ue,rt){var et=re.props.onDragEnd;re.setState({dragOverNodeKey:null}),re.cleanDragState(),et==null||et({event:Ue,node:(0,ee.F)(rt)}),re.dragNodeProps=null,window.removeEventListener("dragend",re.onWindowDragEnd)}),(0,y.Z)((0,p.Z)(re),"onNodeDrop",function(Ue,rt){var et,dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ot=re.state,pt=Ot.dragChildrenKeys,nt=Ot.dropPosition,ut=Ot.dropTargetKey,Tt=Ot.dropTargetPos,vt=Ot.dropAllowed;if(vt){var Ct=re.props.onDrop;if(re.setState({dragOverNodeKey:null}),re.cleanDragState(),ut!==null){var Ft=(0,s.Z)((0,s.Z)({},(0,ee.H8)(ut,re.getTreeNodeRequiredProps())),{},{active:((et=re.getActiveItem())===null||et===void 0?void 0:et.key)===ut,data:(0,Ge.Z)(re.state.keyEntities,ut).node}),Rt=pt.includes(ut);(0,E.ZP)(!Rt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var $e=(0,it.yx)(Tt),Zt={event:Ue,node:(0,ee.F)(Ft),dragNode:re.dragNodeProps?(0,ee.F)(re.dragNodeProps):null,dragNodesKeys:[re.dragNodeProps.eventKey].concat(pt),dropToGap:nt!==0,dropPosition:nt+Number($e[$e.length-1])};dt||Ct==null||Ct(Zt),re.dragNodeProps=null}}}),(0,y.Z)((0,p.Z)(re),"cleanDragState",function(){var Ue=re.state.draggingNodeKey;Ue!==null&&re.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),re.dragStartMousePosition=null,re.currentMouseOverDroppableNodeKey=null}),(0,y.Z)((0,p.Z)(re),"triggerExpandActionExpand",function(Ue,rt){var et=re.state,dt=et.expandedKeys,Ot=et.flattenNodes,pt=rt.expanded,nt=rt.key,ut=rt.isLeaf;if(!(ut||Ue.shiftKey||Ue.metaKey||Ue.ctrlKey)){var Tt=Ot.filter(function(Ct){return Ct.key===nt})[0],vt=(0,ee.F)((0,s.Z)((0,s.Z)({},(0,ee.H8)(nt,re.getTreeNodeRequiredProps())),{},{data:Tt.data}));re.setExpandedKeys(pt?(0,it._5)(dt,nt):(0,it.L0)(dt,nt)),re.onNodeExpand(Ue,vt)}}),(0,y.Z)((0,p.Z)(re),"onNodeClick",function(Ue,rt){var et=re.props,dt=et.onClick,Ot=et.expandAction;Ot==="click"&&re.triggerExpandActionExpand(Ue,rt),dt==null||dt(Ue,rt)}),(0,y.Z)((0,p.Z)(re),"onNodeDoubleClick",function(Ue,rt){var et=re.props,dt=et.onDoubleClick,Ot=et.expandAction;Ot==="doubleClick"&&re.triggerExpandActionExpand(Ue,rt),dt==null||dt(Ue,rt)}),(0,y.Z)((0,p.Z)(re),"onNodeSelect",function(Ue,rt){var et=re.state.selectedKeys,dt=re.state,Ot=dt.keyEntities,pt=dt.fieldNames,nt=re.props,ut=nt.onSelect,Tt=nt.multiple,vt=rt.selected,Ct=rt[pt.key],Ft=!vt;Ft?Tt?et=(0,it.L0)(et,Ct):et=[Ct]:et=(0,it._5)(et,Ct);var Rt=et.map(function($e){var Zt=(0,Ge.Z)(Ot,$e);return Zt?Zt.node:null}).filter(Boolean);re.setUncontrolledState({selectedKeys:et}),ut==null||ut(et,{event:"select",selected:Ft,node:rt,selectedNodes:Rt,nativeEvent:Ue.nativeEvent})}),(0,y.Z)((0,p.Z)(re),"onNodeCheck",function(Ue,rt,et){var dt=re.state,Ot=dt.keyEntities,pt=dt.checkedKeys,nt=dt.halfCheckedKeys,ut=re.props,Tt=ut.checkStrictly,vt=ut.onCheck,Ct=rt.key,Ft,Rt={event:"check",node:rt,checked:et,nativeEvent:Ue.nativeEvent};if(Tt){var $e=et?(0,it.L0)(pt,Ct):(0,it._5)(pt,Ct),Zt=(0,it._5)(nt,Ct);Ft={checked:$e,halfChecked:Zt},Rt.checkedNodes=$e.map(function(jt){return(0,Ge.Z)(Ot,jt)}).filter(Boolean).map(function(jt){return jt.node}),re.setUncontrolledState({checkedKeys:$e})}else{var vn=(0,ot.S)([].concat((0,C.Z)(pt),[Ct]),!0,Ot),wt=vn.checkedKeys,Dn=vn.halfCheckedKeys;if(!et){var nr=new Set(wt);nr.delete(Ct);var Qn=(0,ot.S)(Array.from(nr),{checked:!1,halfCheckedKeys:Dn},Ot);wt=Qn.checkedKeys,Dn=Qn.halfCheckedKeys}Ft=wt,Rt.checkedNodes=[],Rt.checkedNodesPositions=[],Rt.halfCheckedKeys=Dn,wt.forEach(function(jt){var br=(0,Ge.Z)(Ot,jt);if(br){var dr=br.node,zn=br.pos;Rt.checkedNodes.push(dr),Rt.checkedNodesPositions.push({node:dr,pos:zn})}}),re.setUncontrolledState({checkedKeys:wt},!1,{halfCheckedKeys:Dn})}vt==null||vt(Ft,Rt)}),(0,y.Z)((0,p.Z)(re),"onNodeLoad",function(Ue){var rt,et=Ue.key,dt=re.state.keyEntities,Ot=(0,Ge.Z)(dt,et);if(!(Ot!=null&&(rt=Ot.children)!==null&&rt!==void 0&&rt.length)){var pt=new Promise(function(nt,ut){re.setState(function(Tt){var vt=Tt.loadedKeys,Ct=vt===void 0?[]:vt,Ft=Tt.loadingKeys,Rt=Ft===void 0?[]:Ft,$e=re.props,Zt=$e.loadData,vn=$e.onLoad;if(!Zt||Ct.includes(et)||Rt.includes(et))return null;var wt=Zt(Ue);return wt.then(function(){var Dn=re.state.loadedKeys,nr=(0,it.L0)(Dn,et);vn==null||vn(nr,{event:"load",node:Ue}),re.setUncontrolledState({loadedKeys:nr}),re.setState(function(Qn){return{loadingKeys:(0,it._5)(Qn.loadingKeys,et)}}),nt()}).catch(function(Dn){if(re.setState(function(Qn){return{loadingKeys:(0,it._5)(Qn.loadingKeys,et)}}),re.loadingRetryTimes[et]=(re.loadingRetryTimes[et]||0)+1,re.loadingRetryTimes[et]>=Ee){var nr=re.state.loadedKeys;(0,E.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),re.setUncontrolledState({loadedKeys:(0,it.L0)(nr,et)}),nt()}ut(Dn)}),{loadingKeys:(0,it.L0)(Rt,et)}})});return pt.catch(function(){}),pt}}),(0,y.Z)((0,p.Z)(re),"onNodeMouseEnter",function(Ue,rt){var et=re.props.onMouseEnter;et==null||et({event:Ue,node:rt})}),(0,y.Z)((0,p.Z)(re),"onNodeMouseLeave",function(Ue,rt){var et=re.props.onMouseLeave;et==null||et({event:Ue,node:rt})}),(0,y.Z)((0,p.Z)(re),"onNodeContextMenu",function(Ue,rt){var et=re.props.onRightClick;et&&(Ue.preventDefault(),et({event:Ue,node:rt}))}),(0,y.Z)((0,p.Z)(re),"onFocus",function(){var Ue=re.props.onFocus;re.setState({focused:!0});for(var rt=arguments.length,et=new Array(rt),dt=0;dt<rt;dt++)et[dt]=arguments[dt];Ue==null||Ue.apply(void 0,et)}),(0,y.Z)((0,p.Z)(re),"onBlur",function(){var Ue=re.props.onBlur;re.setState({focused:!1}),re.onActiveChange(null);for(var rt=arguments.length,et=new Array(rt),dt=0;dt<rt;dt++)et[dt]=arguments[dt];Ue==null||Ue.apply(void 0,et)}),(0,y.Z)((0,p.Z)(re),"getTreeNodeRequiredProps",function(){var Ue=re.state,rt=Ue.expandedKeys,et=Ue.selectedKeys,dt=Ue.loadedKeys,Ot=Ue.loadingKeys,pt=Ue.checkedKeys,nt=Ue.halfCheckedKeys,ut=Ue.dragOverNodeKey,Tt=Ue.dropPosition,vt=Ue.keyEntities;return{expandedKeys:rt||[],selectedKeys:et||[],loadedKeys:dt||[],loadingKeys:Ot||[],checkedKeys:pt||[],halfCheckedKeys:nt||[],dragOverNodeKey:ut,dropPosition:Tt,keyEntities:vt}}),(0,y.Z)((0,p.Z)(re),"setExpandedKeys",function(Ue){var rt=re.state,et=rt.treeData,dt=rt.fieldNames,Ot=(0,ee.oH)(et,Ue,dt);re.setUncontrolledState({expandedKeys:Ue,flattenNodes:Ot},!0)}),(0,y.Z)((0,p.Z)(re),"onNodeExpand",function(Ue,rt){var et=re.state.expandedKeys,dt=re.state,Ot=dt.listChanging,pt=dt.fieldNames,nt=re.props,ut=nt.onExpand,Tt=nt.loadData,vt=rt.expanded,Ct=rt[pt.key];if(!Ot){var Ft=et.includes(Ct),Rt=!vt;if((0,E.ZP)(vt&&Ft||!vt&&!Ft,"Expand state not sync with index check"),et=Rt?(0,it.L0)(et,Ct):(0,it._5)(et,Ct),re.setExpandedKeys(et),ut==null||ut(et,{node:rt,expanded:Rt,nativeEvent:Ue.nativeEvent}),Rt&&Tt){var $e=re.onNodeLoad(rt);$e&&$e.then(function(){var Zt=(0,ee.oH)(re.state.treeData,et,pt);re.setUncontrolledState({flattenNodes:Zt})}).catch(function(){var Zt=re.state.expandedKeys,vn=(0,it._5)(Zt,Ct);re.setExpandedKeys(vn)})}}}),(0,y.Z)((0,p.Z)(re),"onListChangeStart",function(){re.setUncontrolledState({listChanging:!0})}),(0,y.Z)((0,p.Z)(re),"onListChangeEnd",function(){setTimeout(function(){re.setUncontrolledState({listChanging:!1})})}),(0,y.Z)((0,p.Z)(re),"onActiveChange",function(Ue){var rt=re.state.activeKey,et=re.props,dt=et.onActiveChange,Ot=et.itemScrollOffset,pt=Ot===void 0?0:Ot;rt!==Ue&&(re.setState({activeKey:Ue}),Ue!==null&&re.scrollTo({key:Ue,offset:pt}),dt==null||dt(Ue))}),(0,y.Z)((0,p.Z)(re),"getActiveItem",function(){var Ue=re.state,rt=Ue.activeKey,et=Ue.flattenNodes;return rt===null?null:et.find(function(dt){var Ot=dt.key;return Ot===rt})||null}),(0,y.Z)((0,p.Z)(re),"offsetActiveKey",function(Ue){var rt=re.state,et=rt.flattenNodes,dt=rt.activeKey,Ot=et.findIndex(function(ut){var Tt=ut.key;return Tt===dt});Ot===-1&&Ue<0&&(Ot=et.length),Ot=(Ot+Ue+et.length)%et.length;var pt=et[Ot];if(pt){var nt=pt.key;re.onActiveChange(nt)}else re.onActiveChange(null)}),(0,y.Z)((0,p.Z)(re),"onKeyDown",function(Ue){var rt=re.state,et=rt.activeKey,dt=rt.expandedKeys,Ot=rt.checkedKeys,pt=rt.fieldNames,nt=re.props,ut=nt.onKeyDown,Tt=nt.checkable,vt=nt.selectable;switch(Ue.which){case h.Z.UP:{re.offsetActiveKey(-1),Ue.preventDefault();break}case h.Z.DOWN:{re.offsetActiveKey(1),Ue.preventDefault();break}}var Ct=re.getActiveItem();if(Ct&&Ct.data){var Ft=re.getTreeNodeRequiredProps(),Rt=Ct.data.isLeaf===!1||!!(Ct.data[pt.children]||[]).length,$e=(0,ee.F)((0,s.Z)((0,s.Z)({},(0,ee.H8)(et,Ft)),{},{data:Ct.data,active:!0}));switch(Ue.which){case h.Z.LEFT:{Rt&&dt.includes(et)?re.onNodeExpand({},$e):Ct.parent&&re.onActiveChange(Ct.parent.key),Ue.preventDefault();break}case h.Z.RIGHT:{Rt&&!dt.includes(et)?re.onNodeExpand({},$e):Ct.children&&Ct.children.length&&re.onActiveChange(Ct.children[0].key),Ue.preventDefault();break}case h.Z.ENTER:case h.Z.SPACE:{Tt&&!$e.disabled&&$e.checkable!==!1&&!$e.disableCheckbox?re.onNodeCheck({},$e,!Ot.includes(et)):!Tt&&vt&&!$e.disabled&&$e.selectable!==!1&&re.onNodeSelect({},$e);break}}}ut==null||ut(Ue)}),(0,y.Z)((0,p.Z)(re),"setUncontrolledState",function(Ue){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!re.destroyed){var dt=!1,Ot=!0,pt={};Object.keys(Ue).forEach(function(nt){if(re.props.hasOwnProperty(nt)){Ot=!1;return}dt=!0,pt[nt]=Ue[nt]}),dt&&(!rt||Ot)&&re.setState((0,s.Z)((0,s.Z)({},pt),et))}}),(0,y.Z)((0,p.Z)(re),"scrollTo",function(Ue){re.listRef.current.scrollTo(Ue)}),re}return(0,u.Z)(ne,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var he=this.props,_e=he.activeKey,Be=he.itemScrollOffset,Ue=Be===void 0?0:Be;_e!==void 0&&_e!==this.state.activeKey&&(this.setState({activeKey:_e}),_e!==null&&this.scrollTo({key:_e,offset:Ue}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var he=this.state,_e=he.focused,Be=he.flattenNodes,Ue=he.keyEntities,rt=he.draggingNodeKey,et=he.activeKey,dt=he.dropLevelOffset,Ot=he.dropContainerKey,pt=he.dropTargetKey,nt=he.dropPosition,ut=he.dragOverNodeKey,Tt=he.indent,vt=this.props,Ct=vt.prefixCls,Ft=vt.className,Rt=vt.style,$e=vt.showLine,Zt=vt.focusable,vn=vt.tabIndex,wt=vn===void 0?0:vn,Dn=vt.selectable,nr=vt.showIcon,Qn=vt.icon,jt=vt.switcherIcon,br=vt.draggable,dr=vt.checkable,zn=vt.checkStrictly,$n=vt.disabled,Er=vt.motion,me=vt.loadData,jn=vt.filterTreeNode,Cn=vt.height,qn=vt.itemHeight,Ir=vt.scrollWidth,Vr=vt.virtual,fr=vt.titleRender,oo=vt.dropIndicatorRender,Zr=vt.onContextMenu,Qr=vt.onScroll,Kn=vt.direction,Mn=vt.rootClassName,ai=vt.rootStyle,Nr=(0,m.Z)(this.props,{aria:!0,data:!0}),zr;br&&((0,Z.Z)(br)==="object"?zr=br:typeof br=="function"?zr={nodeDraggable:br}:zr={});var pn={prefixCls:Ct,selectable:Dn,showIcon:nr,icon:Qn,switcherIcon:jt,draggable:zr,draggingNodeKey:rt,checkable:dr,checkStrictly:zn,disabled:$n,keyEntities:Ue,dropLevelOffset:dt,dropContainerKey:Ot,dropTargetKey:pt,dropPosition:nt,dragOverNodeKey:ut,indent:Tt,direction:Kn,dropIndicatorRender:oo,loadData:me,filterTreeNode:jn,titleRender:fr,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return T.createElement(I.k.Provider,{value:pn},T.createElement("div",{className:c()(Ct,Ft,Mn,(0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(Ct,"-show-line"),$e),"".concat(Ct,"-focused"),_e),"".concat(Ct,"-active-focused"),et!==null)),style:ai},T.createElement(ze,(0,B.Z)({ref:this.listRef,prefixCls:Ct,style:Rt,data:Be,disabled:$n,selectable:Dn,checkable:!!dr,motion:Er,dragging:rt!==null,height:Cn,itemHeight:qn,virtual:Vr,focusable:Zt,focused:_e,tabIndex:wt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Zr,onScroll:Qr,scrollWidth:Ir},this.getTreeNodeRequiredProps(),Nr))))}}],[{key:"getDerivedStateFromProps",value:function(he,_e){var Be=_e.prevProps,Ue={prevProps:he};function rt(wt){return!Be&&he.hasOwnProperty(wt)||Be&&Be[wt]!==he[wt]}var et,dt=_e.fieldNames;if(rt("fieldNames")&&(dt=(0,ee.w$)(he.fieldNames),Ue.fieldNames=dt),rt("treeData")?et=he.treeData:rt("children")&&((0,E.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),et=(0,ee.zn)(he.children)),et){Ue.treeData=et;var Ot=(0,ee.I8)(et,{fieldNames:dt});Ue.keyEntities=(0,s.Z)((0,y.Z)({},xe,Me),Ot.keyEntities)}var pt=Ue.keyEntities||_e.keyEntities;if(rt("expandedKeys")||Be&&rt("autoExpandParent"))Ue.expandedKeys=he.autoExpandParent||!Be&&he.defaultExpandParent?(0,it.r7)(he.expandedKeys,pt):he.expandedKeys;else if(!Be&&he.defaultExpandAll){var nt=(0,s.Z)({},pt);delete nt[xe];var ut=[];Object.keys(nt).forEach(function(wt){var Dn=nt[wt];Dn.children&&Dn.children.length&&ut.push(Dn.key)}),Ue.expandedKeys=ut}else!Be&&he.defaultExpandedKeys&&(Ue.expandedKeys=he.autoExpandParent||he.defaultExpandParent?(0,it.r7)(he.defaultExpandedKeys,pt):he.defaultExpandedKeys);if(Ue.expandedKeys||delete Ue.expandedKeys,et||Ue.expandedKeys){var Tt=(0,ee.oH)(et||_e.treeData,Ue.expandedKeys||_e.expandedKeys,dt);Ue.flattenNodes=Tt}if(he.selectable&&(rt("selectedKeys")?Ue.selectedKeys=(0,it.BT)(he.selectedKeys,he):!Be&&he.defaultSelectedKeys&&(Ue.selectedKeys=(0,it.BT)(he.defaultSelectedKeys,he))),he.checkable){var vt;if(rt("checkedKeys")?vt=(0,it.E6)(he.checkedKeys)||{}:!Be&&he.defaultCheckedKeys?vt=(0,it.E6)(he.defaultCheckedKeys)||{}:et&&(vt=(0,it.E6)(he.checkedKeys)||{checkedKeys:_e.checkedKeys,halfCheckedKeys:_e.halfCheckedKeys}),vt){var Ct=vt,Ft=Ct.checkedKeys,Rt=Ft===void 0?[]:Ft,$e=Ct.halfCheckedKeys,Zt=$e===void 0?[]:$e;if(!he.checkStrictly){var vn=(0,ot.S)(Rt,!0,pt);Rt=vn.checkedKeys,Zt=vn.halfCheckedKeys}Ue.checkedKeys=Rt,Ue.halfCheckedKeys=Zt}}return rt("loadedKeys")&&(Ue.loadedKeys=he.loadedKeys),Ue}}]),ne}(T.Component);(0,y.Z)(fe,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:N,allowDrop:function(){return!0},expandAction:!1}),(0,y.Z)(fe,"TreeNode",U.Z);var z=fe,X=z},82661:function(Ne,Q,S){"use strict";S.d(Q,{BT:function(){return T},E6:function(){return N},L0:function(){return y},OM:function(){return E},_5:function(){return g},r7:function(){return k},wA:function(){return c},yx:function(){return v}});var B=S(80702),Z=S(62853),s=S(48736),C=S(59301),A=S(639),u=S(65065),p=S(34061),b=null;function g(L,H){if(!L)return[];var D=L.slice(),V=D.indexOf(H);return V>=0&&D.splice(V,1),D}function y(L,H){var D=(L||[]).slice();return D.indexOf(H)===-1&&D.push(H),D}function v(L){return L.split("-")}function c(L,H){var D=[],V=(0,u.Z)(H,L);function P(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];U.forEach(function(G){var J=G.key,ee=G.children;D.push(J),P(ee)})}return P(V.children),D}function h(L){if(L.parent){var H=v(L.pos);return Number(H[H.length-1])===L.parent.children.length-1}return!1}function m(L){var H=v(L.pos);return Number(H[H.length-1])===0}function E(L,H,D,V,P,U,G,J,ee,ae){var oe,ue=L.clientX,se=L.clientY,ye=L.target.getBoundingClientRect(),ve=ye.top,Re=ye.height,le=(ae==="rtl"?-1:1)*(((P==null?void 0:P.x)||0)-ue),xe=(le-12)/V,pe=ee.filter(function(X){var de;return(de=J[X])===null||de===void 0||(de=de.children)===null||de===void 0?void 0:de.length}),Me=(0,u.Z)(J,D.eventKey);if(se<ve+Re/2){var Oe=G.findIndex(function(X){return X.key===Me.key}),Le=Oe<=0?0:Oe-1,Pe=G[Le].key;Me=(0,u.Z)(J,Pe)}var De=Me.key,Ke=Me,ze=Me.key,it=0,ot=0;if(!pe.includes(De))for(var Ge=0;Ge<xe&&h(Me);Ge+=1)Me=Me.parent,ot+=1;var Ee=H.data,fe=Me.node,z=!0;return m(Me)&&Me.level===0&&se<ve+Re/2&&U({dragNode:Ee,dropNode:fe,dropPosition:-1})&&Me.key===D.eventKey?it=-1:(Ke.children||[]).length&&pe.includes(ze)?U({dragNode:Ee,dropNode:fe,dropPosition:0})?it=0:z=!1:ot===0?xe>-1.5?U({dragNode:Ee,dropNode:fe,dropPosition:1})?it=1:z=!1:U({dragNode:Ee,dropNode:fe,dropPosition:0})?it=0:U({dragNode:Ee,dropNode:fe,dropPosition:1})?it=1:z=!1:U({dragNode:Ee,dropNode:fe,dropPosition:1})?it=1:z=!1,{dropPosition:it,dropLevelOffset:ot,dropTargetKey:Me.key,dropTargetPos:Me.pos,dragOverNodeKey:ze,dropContainerKey:it===0?null:((oe=Me.parent)===null||oe===void 0?void 0:oe.key)||null,dropAllowed:z}}function T(L,H){if(L){var D=H.multiple;return D?L.slice():L.length?[L[0]]:L}}var I=function(H){return H};function R(L,H){if(!L)return[];var D=H||{},V=D.processProps,P=V===void 0?I:V,U=Array.isArray(L)?L:[L];return U.map(function(G){var J=G.children,ee=_objectWithoutProperties(G,b),ae=R(J,H);return React.createElement(TreeNode,_extends({key:ee.key},P(ee)),ae)})}function N(L){if(!L)return null;var H;if(Array.isArray(L))H={checkedKeys:L,halfCheckedKeys:void 0};else if((0,Z.Z)(L)==="object")H={checkedKeys:L.checked||void 0,halfCheckedKeys:L.halfChecked||void 0};else return(0,s.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return H}function k(L,H){var D=new Set;function V(P){if(!D.has(P)){var U=(0,u.Z)(H,P);if(U){D.add(P);var G=U.parent,J=U.node;J.disabled||G&&V(G.key)}}}return(L||[]).forEach(function(P){V(P)}),(0,B.Z)(D)}},34643:function(Ne,Q,S){"use strict";S.d(Q,{S:function(){return p}});var B=S(48736),Z=S(65065);function s(b,g){var y=new Set;return b.forEach(function(v){g.has(v)||y.add(v)}),y}function C(b){var g=b||{},y=g.disabled,v=g.disableCheckbox,c=g.checkable;return!!(y||v)||c===!1}function A(b,g,y,v){for(var c=new Set(b),h=new Set,m=0;m<=y;m+=1){var E=g.get(m)||new Set;E.forEach(function(N){var k=N.key,L=N.node,H=N.children,D=H===void 0?[]:H;c.has(k)&&!v(L)&&D.filter(function(V){return!v(V.node)}).forEach(function(V){c.add(V.key)})})}for(var T=new Set,I=y;I>=0;I-=1){var R=g.get(I)||new Set;R.forEach(function(N){var k=N.parent,L=N.node;if(!(v(L)||!N.parent||T.has(N.parent.key))){if(v(N.parent.node)){T.add(k.key);return}var H=!0,D=!1;(k.children||[]).filter(function(V){return!v(V.node)}).forEach(function(V){var P=V.key,U=c.has(P);H&&!U&&(H=!1),!D&&(U||h.has(P))&&(D=!0)}),H&&c.add(k.key),D&&h.add(k.key),T.add(k.key)}})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(s(h,c))}}function u(b,g,y,v,c){for(var h=new Set(b),m=new Set(g),E=0;E<=v;E+=1){var T=y.get(E)||new Set;T.forEach(function(k){var L=k.key,H=k.node,D=k.children,V=D===void 0?[]:D;!h.has(L)&&!m.has(L)&&!c(H)&&V.filter(function(P){return!c(P.node)}).forEach(function(P){h.delete(P.key)})})}m=new Set;for(var I=new Set,R=v;R>=0;R-=1){var N=y.get(R)||new Set;N.forEach(function(k){var L=k.parent,H=k.node;if(!(c(H)||!k.parent||I.has(k.parent.key))){if(c(k.parent.node)){I.add(L.key);return}var D=!0,V=!1;(L.children||[]).filter(function(P){return!c(P.node)}).forEach(function(P){var U=P.key,G=h.has(U);D&&!G&&(D=!1),!V&&(G||m.has(U))&&(V=!0)}),D||h.delete(L.key),V&&m.add(L.key),I.add(L.key)}})}return{checkedKeys:Array.from(h),halfCheckedKeys:Array.from(s(m,h))}}function p(b,g,y,v){var c=[],h;v?h=v:h=C;var m=new Set(b.filter(function(R){var N=!!(0,Z.Z)(y,R);return N||c.push(R),N})),E=new Map,T=0;Object.keys(y).forEach(function(R){var N=y[R],k=N.level,L=E.get(k);L||(L=new Set,E.set(k,L)),L.add(N),T=Math.max(T,k)}),(0,B.ZP)(!c.length,"Tree missing follow keys: ".concat(c.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var I;return g===!0?I=A(m,E,T,h):I=u(m,g.halfCheckedKeys,E,T,h),I}},65065:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return B}});function B(Z,s){return Z[s]}},34061:function(Ne,Q,S){"use strict";S.d(Q,{F:function(){return k},H8:function(){return N},I8:function(){return R},km:function(){return c},oH:function(){return T},w$:function(){return h},zn:function(){return E}});var B=S(62853),Z=S(80702),s=S(77321),C=S(74416),A=S(11592),u=S(2738),p=S(48736),b=S(65065),g=["children"];function y(L,H){return"".concat(L,"-").concat(H)}function v(L){return L&&L.type&&L.type.isTreeNode}function c(L,H){return L!=null?L:H}function h(L){var H=L||{},D=H.title,V=H._title,P=H.key,U=H.children,G=D||"title";return{title:G,_title:V||[G],key:P||"key",children:U||"children"}}function m(L,H){var D=new Map;function V(P){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(P||[]).forEach(function(G){var J=G[H.key],ee=G[H.children];warning(J!=null,"Tree node must have a certain key: [".concat(U).concat(J,"]"));var ae=String(J);warning(!D.has(ae)||J===null||J===void 0,"Same 'key' exist in the Tree: ".concat(ae)),D.set(ae,!0),V(ee,"".concat(U).concat(ae," > "))})}V(L)}function E(L){function H(D){var V=(0,A.Z)(D);return V.map(function(P){if(!v(P))return(0,p.ZP)(!P,"Tree/TreeNode can only accept TreeNode as children."),null;var U=P.key,G=P.props,J=G.children,ee=(0,C.Z)(G,g),ae=(0,s.Z)({key:U},ee),oe=H(J);return oe.length&&(ae.children=oe),ae}).filter(function(P){return P})}return H(L)}function T(L,H,D){var V=h(D),P=V._title,U=V.key,G=V.children,J=new Set(H===!0?[]:H),ee=[];function ae(oe){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return oe.map(function(se,ye){for(var ve=y(ue?ue.pos:"0",ye),Re=c(se[U],ve),le,xe=0;xe<P.length;xe+=1){var pe=P[xe];if(se[pe]!==void 0){le=se[pe];break}}var Me=Object.assign((0,u.Z)(se,[].concat((0,Z.Z)(P),[U,G])),{title:le,key:Re,parent:ue,pos:ve,children:null,data:se,isStart:[].concat((0,Z.Z)(ue?ue.isStart:[]),[ye===0]),isEnd:[].concat((0,Z.Z)(ue?ue.isEnd:[]),[ye===oe.length-1])});return ee.push(Me),H===!0||J.has(Re)?Me.children=ae(se[G]||[],Me):Me.children=[],Me})}return ae(L),ee}function I(L,H,D){var V={};(0,B.Z)(D)==="object"?V=D:V={externalGetKey:D},V=V||{};var P=V,U=P.childrenPropName,G=P.externalGetKey,J=P.fieldNames,ee=h(J),ae=ee.key,oe=ee.children,ue=U||oe,se;G?typeof G=="string"?se=function(Re){return Re[G]}:typeof G=="function"&&(se=function(Re){return G(Re)}):se=function(Re,le){return c(Re[ae],le)};function ye(ve,Re,le,xe){var pe=ve?ve[ue]:L,Me=ve?y(le.pos,Re):"0",Oe=ve?[].concat((0,Z.Z)(xe),[ve]):[];if(ve){var Le=se(ve,Me),Pe={node:ve,index:Re,pos:Me,key:Le,parentPos:le.node?le.pos:null,level:le.level+1,nodes:Oe};H(Pe)}pe&&pe.forEach(function(De,Ke){ye(De,Ke,{node:ve,pos:Me,level:le?le.level+1:-1},Oe)})}ye(null)}function R(L){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=H.initWrapper,V=H.processEntity,P=H.onProcessFinished,U=H.externalGetKey,G=H.childrenPropName,J=H.fieldNames,ee=arguments.length>2?arguments[2]:void 0,ae=U||ee,oe={},ue={},se={posEntities:oe,keyEntities:ue};return D&&(se=D(se)||se),I(L,function(ye){var ve=ye.node,Re=ye.index,le=ye.pos,xe=ye.key,pe=ye.parentPos,Me=ye.level,Oe=ye.nodes,Le={node:ve,nodes:Oe,index:Re,key:xe,pos:le,level:Me},Pe=c(xe,le);oe[le]=Le,ue[Pe]=Le,Le.parent=oe[pe],Le.parent&&(Le.parent.children=Le.parent.children||[],Le.parent.children.push(Le)),V&&V(Le,se)},{externalGetKey:ae,childrenPropName:G,fieldNames:J}),P&&P(se),se}function N(L,H){var D=H.expandedKeys,V=H.selectedKeys,P=H.loadedKeys,U=H.loadingKeys,G=H.checkedKeys,J=H.halfCheckedKeys,ee=H.dragOverNodeKey,ae=H.dropPosition,oe=H.keyEntities,ue=(0,b.Z)(oe,L),se={eventKey:L,expanded:D.indexOf(L)!==-1,selected:V.indexOf(L)!==-1,loaded:P.indexOf(L)!==-1,loading:U.indexOf(L)!==-1,checked:G.indexOf(L)!==-1,halfChecked:J.indexOf(L)!==-1,pos:String(ue?ue.pos:""),dragOver:ee===L&&ae===0,dragOverGapTop:ee===L&&ae===-1,dragOverGapBottom:ee===L&&ae===1};return se}function k(L){var H=L.data,D=L.expanded,V=L.selected,P=L.checked,U=L.loaded,G=L.loading,J=L.halfChecked,ee=L.dragOver,ae=L.dragOverGapTop,oe=L.dragOverGapBottom,ue=L.pos,se=L.active,ye=L.eventKey,ve=(0,s.Z)((0,s.Z)({},H),{},{expanded:D,selected:V,checked:P,loaded:U,loading:G,halfChecked:J,dragOver:ee,dragOverGapTop:ae,dragOverGapBottom:oe,pos:ue,active:se,key:ye});return"props"in ve||Object.defineProperty(ve,"props",{get:function(){return(0,p.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),L}}),ve}},90472:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return ye}});var B=S(72308),Z=S(96949),s=S(55090),C=S(80237),A=S(77205),u=S(38793),p=S(49618),b=S(59301),g=S(77321),y=S(74416),v=S(62853),c=S(65736),h=S(72633),m=S(80702),E=S(92310),T=S.n(E),I=S(26112),R=S(48736),N=function(ve,Re){if(ve&&Re){var le=Array.isArray(Re)?Re:Re.split(","),xe=ve.name||"",pe=ve.type||"",Me=pe.replace(/\/.*$/,"");return le.some(function(Oe){var Le=Oe.trim();if(/^\*(\/\*)?$/.test(Oe))return!0;if(Le.charAt(0)==="."){var Pe=xe.toLowerCase(),De=Le.toLowerCase(),Ke=[De];return(De===".jpg"||De===".jpeg")&&(Ke=[".jpg",".jpeg"]),Ke.some(function(ze){return Pe.endsWith(ze)})}return/\/\*$/.test(Le)?Me===Le.replace(/\/.*$/,""):pe===Le?!0:/^\w+$/.test(Le)?((0,R.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Le,"'.Skip for check.")),!0):!1})}return!0};function k(ve,Re){var le="cannot ".concat(ve.method," ").concat(ve.action," ").concat(Re.status,"'"),xe=new Error(le);return xe.status=Re.status,xe.method=ve.method,xe.url=ve.action,xe}function L(ve){var Re=ve.responseText||ve.response;if(!Re)return Re;try{return JSON.parse(Re)}catch(le){return Re}}function H(ve){var Re=new XMLHttpRequest;ve.onProgress&&Re.upload&&(Re.upload.onprogress=function(Me){Me.total>0&&(Me.percent=Me.loaded/Me.total*100),ve.onProgress(Me)});var le=new FormData;ve.data&&Object.keys(ve.data).forEach(function(pe){var Me=ve.data[pe];if(Array.isArray(Me)){Me.forEach(function(Oe){le.append("".concat(pe,"[]"),Oe)});return}le.append(pe,Me)}),ve.file instanceof Blob?le.append(ve.filename,ve.file,ve.file.name):le.append(ve.filename,ve.file),Re.onerror=function(Me){ve.onError(Me)},Re.onload=function(){return Re.status<200||Re.status>=300?ve.onError(k(ve,Re),L(Re)):ve.onSuccess(L(Re),Re)},Re.open(ve.method,ve.action,!0),ve.withCredentials&&"withCredentials"in Re&&(Re.withCredentials=!0);var xe=ve.headers||{};return xe["X-Requested-With"]!==null&&Re.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(xe).forEach(function(pe){xe[pe]!==null&&Re.setRequestHeader(pe,xe[pe])}),Re.send(le),{abort:function(){Re.abort()}}}var D=function(){var ve=(0,h.Z)((0,c.Z)().mark(function Re(le,xe){var pe,Me,Oe,Le,Pe,De,Ke,ze;return(0,c.Z)().wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:De=function(){return De=(0,h.Z)((0,c.Z)().mark(function Ee(fe){return(0,c.Z)().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.abrupt("return",new Promise(function(de){fe.file(function(Ce){xe(Ce)?(fe.fullPath&&!Ce.webkitRelativePath&&(Object.defineProperties(Ce,{webkitRelativePath:{writable:!0}}),Ce.webkitRelativePath=fe.fullPath.replace(/^\//,""),Object.defineProperties(Ce,{webkitRelativePath:{writable:!1}})),de(Ce)):de(null)})}));case 1:case"end":return X.stop()}},Ee)})),De.apply(this,arguments)},Pe=function(Ee){return De.apply(this,arguments)},Le=function(){return Le=(0,h.Z)((0,c.Z)().mark(function Ee(fe){var z,X,de,Ce,ne;return(0,c.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:z=fe.createReader(),X=[];case 2:return he.next=5,new Promise(function(_e){z.readEntries(_e,function(){return _e([])})});case 5:if(de=he.sent,Ce=de.length,Ce){he.next=9;break}return he.abrupt("break",12);case 9:for(ne=0;ne<Ce;ne++)X.push(de[ne]);he.next=2;break;case 12:return he.abrupt("return",X);case 13:case"end":return he.stop()}},Ee)})),Le.apply(this,arguments)},Oe=function(Ee){return Le.apply(this,arguments)},pe=[],Me=[],le.forEach(function(Ge){return Me.push(Ge.webkitGetAsEntry())}),Ke=function(){var Ge=(0,h.Z)((0,c.Z)().mark(function Ee(fe,z){var X,de;return(0,c.Z)().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(fe){ne.next=2;break}return ne.abrupt("return");case 2:if(fe.path=z||"",!fe.isFile){ne.next=10;break}return ne.next=6,Pe(fe);case 6:X=ne.sent,X&&pe.push(X),ne.next=15;break;case 10:if(!fe.isDirectory){ne.next=15;break}return ne.next=13,Oe(fe);case 13:de=ne.sent,Me.push.apply(Me,(0,m.Z)(de));case 15:case"end":return ne.stop()}},Ee)}));return function(fe,z){return Ge.apply(this,arguments)}}(),ze=0;case 9:if(!(ze<Me.length)){ot.next=15;break}return ot.next=12,Ke(Me[ze]);case 12:ze++,ot.next=9;break;case 15:return ot.abrupt("return",pe);case 16:case"end":return ot.stop()}},Re)}));return function(le,xe){return ve.apply(this,arguments)}}(),V=D,P=+new Date,U=0;function G(){return"rc-upload-".concat(P,"-").concat(++U)}var J=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],ee=function(ve){(0,A.Z)(le,ve);var Re=(0,u.Z)(le);function le(){var xe;(0,Z.Z)(this,le);for(var pe=arguments.length,Me=new Array(pe),Oe=0;Oe<pe;Oe++)Me[Oe]=arguments[Oe];return xe=Re.call.apply(Re,[this].concat(Me)),(0,p.Z)((0,C.Z)(xe),"state",{uid:G()}),(0,p.Z)((0,C.Z)(xe),"reqs",{}),(0,p.Z)((0,C.Z)(xe),"fileInput",void 0),(0,p.Z)((0,C.Z)(xe),"_isMounted",void 0),(0,p.Z)((0,C.Z)(xe),"onChange",function(Le){var Pe=xe.props,De=Pe.accept,Ke=Pe.directory,ze=Le.target.files,it=(0,m.Z)(ze).filter(function(ot){return!Ke||N(ot,De)});xe.uploadFiles(it),xe.reset()}),(0,p.Z)((0,C.Z)(xe),"onClick",function(Le){var Pe=xe.fileInput;if(Pe){var De=Le.target,Ke=xe.props.onClick;if(De&&De.tagName==="BUTTON"){var ze=Pe.parentNode;ze.focus(),De.blur()}Pe.click(),Ke&&Ke(Le)}}),(0,p.Z)((0,C.Z)(xe),"onKeyDown",function(Le){Le.key==="Enter"&&xe.onClick(Le)}),(0,p.Z)((0,C.Z)(xe),"onFileDrop",function(){var Le=(0,h.Z)((0,c.Z)().mark(function Pe(De){var Ke,ze,it;return(0,c.Z)().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(Ke=xe.props.multiple,De.preventDefault(),De.type!=="dragover"){Ge.next=4;break}return Ge.abrupt("return");case 4:if(!xe.props.directory){Ge.next=11;break}return Ge.next=7,V(Array.prototype.slice.call(De.dataTransfer.items),function(Ee){return N(Ee,xe.props.accept)});case 7:ze=Ge.sent,xe.uploadFiles(ze),Ge.next=14;break;case 11:it=(0,m.Z)(De.dataTransfer.files).filter(function(Ee){return N(Ee,xe.props.accept)}),Ke===!1&&(it=it.slice(0,1)),xe.uploadFiles(it);case 14:case"end":return Ge.stop()}},Pe)}));return function(Pe){return Le.apply(this,arguments)}}()),(0,p.Z)((0,C.Z)(xe),"uploadFiles",function(Le){var Pe=(0,m.Z)(Le),De=Pe.map(function(Ke){return Ke.uid=G(),xe.processFile(Ke,Pe)});Promise.all(De).then(function(Ke){var ze=xe.props.onBatchStart;ze==null||ze(Ke.map(function(it){var ot=it.origin,Ge=it.parsedFile;return{file:ot,parsedFile:Ge}})),Ke.filter(function(it){return it.parsedFile!==null}).forEach(function(it){xe.post(it)})})}),(0,p.Z)((0,C.Z)(xe),"processFile",function(){var Le=(0,h.Z)((0,c.Z)().mark(function Pe(De,Ke){var ze,it,ot,Ge,Ee,fe,z,X,de;return(0,c.Z)().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(ze=xe.props.beforeUpload,it=De,!ze){ne.next=14;break}return ne.prev=3,ne.next=6,ze(De,Ke);case 6:it=ne.sent,ne.next=12;break;case 9:ne.prev=9,ne.t0=ne.catch(3),it=!1;case 12:if(it!==!1){ne.next=14;break}return ne.abrupt("return",{origin:De,parsedFile:null,action:null,data:null});case 14:if(ot=xe.props.action,typeof ot!="function"){ne.next=21;break}return ne.next=18,ot(De);case 18:Ge=ne.sent,ne.next=22;break;case 21:Ge=ot;case 22:if(Ee=xe.props.data,typeof Ee!="function"){ne.next=29;break}return ne.next=26,Ee(De);case 26:fe=ne.sent,ne.next=30;break;case 29:fe=Ee;case 30:return z=((0,v.Z)(it)==="object"||typeof it=="string")&&it?it:De,z instanceof File?X=z:X=new File([z],De.name,{type:De.type}),de=X,de.uid=De.uid,ne.abrupt("return",{origin:De,data:fe,parsedFile:de,action:Ge});case 35:case"end":return ne.stop()}},Pe,null,[[3,9]])}));return function(Pe,De){return Le.apply(this,arguments)}}()),(0,p.Z)((0,C.Z)(xe),"saveFileInput",function(Le){xe.fileInput=Le}),xe}return(0,s.Z)(le,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(pe){var Me=this,Oe=pe.data,Le=pe.origin,Pe=pe.action,De=pe.parsedFile;if(this._isMounted){var Ke=this.props,ze=Ke.onStart,it=Ke.customRequest,ot=Ke.name,Ge=Ke.headers,Ee=Ke.withCredentials,fe=Ke.method,z=Le.uid,X=it||H,de={action:Pe,filename:ot,data:Oe,file:De,headers:Ge,withCredentials:Ee,method:fe||"post",onProgress:function(ne){var re=Me.props.onProgress;re==null||re(ne,De)},onSuccess:function(ne,re){var he=Me.props.onSuccess;he==null||he(ne,De,re),delete Me.reqs[z]},onError:function(ne,re){var he=Me.props.onError;he==null||he(ne,re,De),delete Me.reqs[z]}};ze(Le),this.reqs[z]=X(de)}}},{key:"reset",value:function(){this.setState({uid:G()})}},{key:"abort",value:function(pe){var Me=this.reqs;if(pe){var Oe=pe.uid?pe.uid:pe;Me[Oe]&&Me[Oe].abort&&Me[Oe].abort(),delete Me[Oe]}else Object.keys(Me).forEach(function(Le){Me[Le]&&Me[Le].abort&&Me[Le].abort(),delete Me[Le]})}},{key:"render",value:function(){var pe=this.props,Me=pe.component,Oe=pe.prefixCls,Le=pe.className,Pe=pe.classNames,De=Pe===void 0?{}:Pe,Ke=pe.disabled,ze=pe.id,it=pe.name,ot=pe.style,Ge=pe.styles,Ee=Ge===void 0?{}:Ge,fe=pe.multiple,z=pe.accept,X=pe.capture,de=pe.children,Ce=pe.directory,ne=pe.openFileDialogOnClick,re=pe.onMouseEnter,he=pe.onMouseLeave,_e=pe.hasControlInside,Be=(0,y.Z)(pe,J),Ue=T()((0,p.Z)((0,p.Z)((0,p.Z)({},Oe,!0),"".concat(Oe,"-disabled"),Ke),Le,Le)),rt=Ce?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},et=Ke?{}:{onClick:ne?this.onClick:function(){},onKeyDown:ne?this.onKeyDown:function(){},onMouseEnter:re,onMouseLeave:he,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:_e?void 0:"0"};return b.createElement(Me,(0,B.Z)({},et,{className:Ue,role:_e?void 0:"button",style:ot}),b.createElement("input",(0,B.Z)({},(0,I.Z)(Be,{aria:!0,data:!0}),{id:ze,name:it,disabled:Ke,type:"file",ref:this.saveFileInput,onClick:function(Ot){return Ot.stopPropagation()},key:this.state.uid,style:(0,g.Z)({display:"none"},Ee.input),className:De.input,accept:z},rt,{multiple:fe,onChange:this.onChange},X!=null?{capture:X}:{})),de)}}]),le}(b.Component),ae=ee;function oe(){}var ue=function(ve){(0,A.Z)(le,ve);var Re=(0,u.Z)(le);function le(){var xe;(0,Z.Z)(this,le);for(var pe=arguments.length,Me=new Array(pe),Oe=0;Oe<pe;Oe++)Me[Oe]=arguments[Oe];return xe=Re.call.apply(Re,[this].concat(Me)),(0,p.Z)((0,C.Z)(xe),"uploader",void 0),(0,p.Z)((0,C.Z)(xe),"saveUploader",function(Le){xe.uploader=Le}),xe}return(0,s.Z)(le,[{key:"abort",value:function(pe){this.uploader.abort(pe)}},{key:"render",value:function(){return b.createElement(ae,(0,B.Z)({},this.props,{ref:this.saveUploader}))}}]),le}(b.Component);(0,p.Z)(ue,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:oe,onError:oe,onSuccess:oe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var se=ue,ye=se},8224:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return Z}});var B=S(4676);function Z(s,C,A,u){var p=B.unstable_batchedUpdates?function(g){B.unstable_batchedUpdates(A,g)}:A;return s!=null&&s.addEventListener&&s.addEventListener(C,p,u),{remove:function(){s!=null&&s.removeEventListener&&s.removeEventListener(C,p,u)}}}},24514:function(Ne,Q,S){"use strict";S.d(Q,{G:function(){return C}});var B=S(47273),Z=function(u){if((0,B.Z)()&&window.document.documentElement){var p=Array.isArray(u)?u:[u],b=window.document.documentElement;return p.some(function(g){return g in b.style})}return!1},s=function(u,p){if(!Z(u))return!1;var b=document.createElement("div"),g=b.style[u];return b.style[u]=p,b.style[u]!==g};function C(A,u){return!Array.isArray(A)&&u!==void 0?s(A,u):Z(A)}},45680:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return Ee}});var B=S(72308),Z=S(62853),s=S(77321),C=S(49618),A=S(52487),u=S(74416),p=S(92310),b=S.n(p),g=S(29301),y=S(70425),v=S(34280),c=S(59301),h=S(4676),m=c.forwardRef(function(fe,z){var X=fe.height,de=fe.offsetY,Ce=fe.offsetX,ne=fe.children,re=fe.prefixCls,he=fe.onInnerResize,_e=fe.innerProps,Be=fe.rtl,Ue=fe.extra,rt={},et={display:"flex",flexDirection:"column"};return de!==void 0&&(rt={height:X,position:"relative",overflow:"hidden"},et=(0,s.Z)((0,s.Z)({},et),{},(0,C.Z)((0,C.Z)((0,C.Z)((0,C.Z)((0,C.Z)({transform:"translateY(".concat(de,"px)")},Be?"marginRight":"marginLeft",-Ce),"position","absolute"),"left",0),"right",0),"top",0))),c.createElement("div",{style:rt},c.createElement(g.Z,{onResize:function(Ot){var pt=Ot.offsetHeight;pt&&he&&he()}},c.createElement("div",(0,B.Z)({style:et,className:b()((0,C.Z)({},"".concat(re,"-holder-inner"),re)),ref:z},_e),ne,Ue)))});m.displayName="Filler";var E=m;function T(fe){var z=fe.children,X=fe.setRef,de=c.useCallback(function(Ce){X(Ce)},[]);return c.cloneElement(z,{ref:de})}function I(fe,z,X,de,Ce,ne,re,he){var _e=he.getKey;return fe.slice(z,X+1).map(function(Be,Ue){var rt=z+Ue,et=re(Be,rt,{style:{width:de},offsetX:Ce}),dt=_e(Be);return c.createElement(T,{key:dt,setRef:function(pt){return ne(Be,pt)}},et)})}function R(fe,z,X,de){var Ce=X-fe,ne=z-X,re=Math.min(Ce,ne)*2;if(de<=re){var he=Math.floor(de/2);return de%2?X+he+1:X-he}return Ce>ne?X-(de-ne):X+(de-Ce)}function N(fe,z,X){var de=fe.length,Ce=z.length,ne,re;if(de===0&&Ce===0)return null;de<Ce?(ne=fe,re=z):(ne=z,re=fe);var he={__EMPTY_ITEM__:!0};function _e(Ot){return Ot!==void 0?X(Ot):he}for(var Be=null,Ue=Math.abs(de-Ce)!==1,rt=0;rt<re.length;rt+=1){var et=_e(ne[rt]),dt=_e(re[rt]);if(et!==dt){Be=rt,Ue=Ue||et!==_e(re[rt+1]);break}}return Be===null?null:{index:Be,multiple:Ue}}function k(fe,z,X){var de=c.useState(fe),Ce=(0,A.Z)(de,2),ne=Ce[0],re=Ce[1],he=c.useState(null),_e=(0,A.Z)(he,2),Be=_e[0],Ue=_e[1];return c.useEffect(function(){var rt=N(ne||[],fe||[],z);(rt==null?void 0:rt.index)!==void 0&&(X==null||X(rt.index),Ue(fe[rt.index])),re(fe)},[fe]),[Be]}var L=S(16089),H=(typeof navigator=="undefined"?"undefined":(0,Z.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),D=H,V=function(fe,z,X,de){var Ce=(0,c.useRef)(!1),ne=(0,c.useRef)(null);function re(){clearTimeout(ne.current),Ce.current=!0,ne.current=setTimeout(function(){Ce.current=!1},50)}var he=(0,c.useRef)({top:fe,bottom:z,left:X,right:de});return he.current.top=fe,he.current.bottom=z,he.current.left=X,he.current.right=de,function(_e,Be){var Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,rt=_e?Be<0&&he.current.left||Be>0&&he.current.right:Be<0&&he.current.top||Be>0&&he.current.bottom;return Ue&&rt?(clearTimeout(ne.current),Ce.current=!1):(!rt||Ce.current)&&re(),!Ce.current&&rt}};function P(fe,z,X,de,Ce,ne,re){var he=(0,c.useRef)(0),_e=(0,c.useRef)(null),Be=(0,c.useRef)(null),Ue=(0,c.useRef)(!1),rt=V(z,X,de,Ce);function et(Tt,vt){if(L.Z.cancel(_e.current),!rt(!1,vt)){var Ct=Tt;if(!Ct._virtualHandled)Ct._virtualHandled=!0;else return;he.current+=vt,Be.current=vt,D||Ct.preventDefault(),_e.current=(0,L.Z)(function(){var Ft=Ue.current?10:1;re(he.current*Ft,!1),he.current=0})}}function dt(Tt,vt){re(vt,!0),D||Tt.preventDefault()}var Ot=(0,c.useRef)(null),pt=(0,c.useRef)(null);function nt(Tt){if(fe){L.Z.cancel(pt.current),pt.current=(0,L.Z)(function(){Ot.current=null},2);var vt=Tt.deltaX,Ct=Tt.deltaY,Ft=Tt.shiftKey,Rt=vt,$e=Ct;(Ot.current==="sx"||!Ot.current&&Ft&&Ct&&!vt)&&(Rt=Ct,$e=0,Ot.current="sx");var Zt=Math.abs(Rt),vn=Math.abs($e);Ot.current===null&&(Ot.current=ne&&Zt>vn?"x":"y"),Ot.current==="y"?et(Tt,$e):dt(Tt,Rt)}}function ut(Tt){fe&&(Ue.current=Tt.detail===Be.current)}return[nt,ut]}function U(fe,z,X,de){var Ce=c.useMemo(function(){return[new Map,[]]},[fe,X.id,de]),ne=(0,A.Z)(Ce,2),re=ne[0],he=ne[1],_e=function(Ue){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue,et=re.get(Ue),dt=re.get(rt);if(et===void 0||dt===void 0)for(var Ot=fe.length,pt=he.length;pt<Ot;pt+=1){var nt,ut=fe[pt],Tt=z(ut);re.set(Tt,pt);var vt=(nt=X.get(Tt))!==null&&nt!==void 0?nt:de;if(he[pt]=(he[pt-1]||0)+vt,Tt===Ue&&(et=pt),Tt===rt&&(dt=pt),et!==void 0&&dt!==void 0)break}return{top:he[et-1]||0,bottom:he[dt]}};return _e}var G=S(96949),J=S(55090),ee=function(){function fe(){(0,G.Z)(this,fe),(0,C.Z)(this,"maps",void 0),(0,C.Z)(this,"id",0),(0,C.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,J.Z)(fe,[{key:"set",value:function(X,de){this.maps[X]=de,this.id+=1,this.diffKeys.add(X)}},{key:"get",value:function(X){return this.maps[X]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),fe}(),ae=ee;function oe(fe){var z=parseFloat(fe);return isNaN(z)?0:z}function ue(fe,z,X){var de=c.useState(0),Ce=(0,A.Z)(de,2),ne=Ce[0],re=Ce[1],he=(0,c.useRef)(new Map),_e=(0,c.useRef)(new ae),Be=(0,c.useRef)(0);function Ue(){Be.current+=1}function rt(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ue();var Ot=function(){var ut=!1;he.current.forEach(function(Tt,vt){if(Tt&&Tt.offsetParent){var Ct=Tt.offsetHeight,Ft=getComputedStyle(Tt),Rt=Ft.marginTop,$e=Ft.marginBottom,Zt=oe(Rt),vn=oe($e),wt=Ct+Zt+vn;_e.current.get(vt)!==wt&&(_e.current.set(vt,wt),ut=!0)}}),ut&&re(function(Tt){return Tt+1})};if(dt)Ot();else{Be.current+=1;var pt=Be.current;Promise.resolve().then(function(){pt===Be.current&&Ot()})}}function et(dt,Ot){var pt=fe(dt),nt=he.current.get(pt);Ot?(he.current.set(pt,Ot),rt()):he.current.delete(pt),!nt!=!Ot&&(Ot?z==null||z(dt):X==null||X(dt))}return(0,c.useEffect)(function(){return Ue},[]),[et,rt,_e.current,ne]}var se=14/15;function ye(fe,z,X){var de=(0,c.useRef)(!1),Ce=(0,c.useRef)(0),ne=(0,c.useRef)(0),re=(0,c.useRef)(null),he=(0,c.useRef)(null),_e,Be=function(dt){if(de.current){var Ot=Math.ceil(dt.touches[0].pageX),pt=Math.ceil(dt.touches[0].pageY),nt=Ce.current-Ot,ut=ne.current-pt,Tt=Math.abs(nt)>Math.abs(ut);Tt?Ce.current=Ot:ne.current=pt;var vt=X(Tt,Tt?nt:ut,!1,dt);vt&&dt.preventDefault(),clearInterval(he.current),vt&&(he.current=setInterval(function(){Tt?nt*=se:ut*=se;var Ct=Math.floor(Tt?nt:ut);(!X(Tt,Ct,!0)||Math.abs(Ct)<=.1)&&clearInterval(he.current)},16))}},Ue=function(){de.current=!1,_e()},rt=function(dt){_e(),dt.touches.length===1&&!de.current&&(de.current=!0,Ce.current=Math.ceil(dt.touches[0].pageX),ne.current=Math.ceil(dt.touches[0].pageY),re.current=dt.target,re.current.addEventListener("touchmove",Be,{passive:!1}),re.current.addEventListener("touchend",Ue,{passive:!0}))};_e=function(){re.current&&(re.current.removeEventListener("touchmove",Be),re.current.removeEventListener("touchend",Ue))},(0,v.Z)(function(){return fe&&z.current.addEventListener("touchstart",rt,{passive:!0}),function(){var et;(et=z.current)===null||et===void 0||et.removeEventListener("touchstart",rt),_e(),clearInterval(he.current)}},[fe])}function ve(fe){return Math.floor(Math.pow(fe,.5))}function Re(fe,z){var X="touches"in fe?fe.touches[0]:fe;return X[z?"pageX":"pageY"]-window[z?"scrollX":"scrollY"]}function le(fe,z,X){c.useEffect(function(){var de=z.current;if(fe&&de){var Ce=!1,ne,re,he=function(){L.Z.cancel(ne)},_e=function et(){he(),ne=(0,L.Z)(function(){X(re),et()})},Be=function(dt){if(!(dt.target.draggable||dt.button!==0)){var Ot=dt;Ot._virtualHandled||(Ot._virtualHandled=!0,Ce=!0)}},Ue=function(){Ce=!1,he()},rt=function(dt){if(Ce){var Ot=Re(dt,!1),pt=de.getBoundingClientRect(),nt=pt.top,ut=pt.bottom;if(Ot<=nt){var Tt=nt-Ot;re=-ve(Tt),_e()}else if(Ot>=ut){var vt=Ot-ut;re=ve(vt),_e()}else he()}};return de.addEventListener("mousedown",Be),de.ownerDocument.addEventListener("mouseup",Ue),de.ownerDocument.addEventListener("mousemove",rt),function(){de.removeEventListener("mousedown",Be),de.ownerDocument.removeEventListener("mouseup",Ue),de.ownerDocument.removeEventListener("mousemove",rt),he()}}},[fe])}var xe=10;function pe(fe,z,X,de,Ce,ne,re,he){var _e=c.useRef(),Be=c.useState(null),Ue=(0,A.Z)(Be,2),rt=Ue[0],et=Ue[1];return(0,v.Z)(function(){if(rt&&rt.times<xe){if(!fe.current){et(function(Er){return(0,s.Z)({},Er)});return}ne();var dt=rt.targetAlign,Ot=rt.originAlign,pt=rt.index,nt=rt.offset,ut=fe.current.clientHeight,Tt=!1,vt=dt,Ct=null;if(ut){for(var Ft=dt||Ot,Rt=0,$e=0,Zt=0,vn=Math.min(z.length-1,pt),wt=0;wt<=vn;wt+=1){var Dn=Ce(z[wt]);$e=Rt;var nr=X.get(Dn);Zt=$e+(nr===void 0?de:nr),Rt=Zt}for(var Qn=Ft==="top"?nt:ut-nt,jt=vn;jt>=0;jt-=1){var br=Ce(z[jt]),dr=X.get(br);if(dr===void 0){Tt=!0;break}if(Qn-=dr,Qn<=0)break}switch(Ft){case"top":Ct=$e-nt;break;case"bottom":Ct=Zt-ut+nt;break;default:{var zn=fe.current.scrollTop,$n=zn+ut;$e<zn?vt="top":Zt>$n&&(vt="bottom")}}Ct!==null&&re(Ct),Ct!==rt.lastTop&&(Tt=!0)}Tt&&et((0,s.Z)((0,s.Z)({},rt),{},{times:rt.times+1,targetAlign:vt,lastTop:Ct}))}},[rt,fe.current]),function(dt){if(dt==null){he();return}if(L.Z.cancel(_e.current),typeof dt=="number")re(dt);else if(dt&&(0,Z.Z)(dt)==="object"){var Ot,pt=dt.align;"index"in dt?Ot=dt.index:Ot=z.findIndex(function(Tt){return Ce(Tt)===dt.key});var nt=dt.offset,ut=nt===void 0?0:nt;et({times:0,index:Ot,offset:ut,originAlign:pt})}}}var Me=c.forwardRef(function(fe,z){var X=fe.prefixCls,de=fe.rtl,Ce=fe.scrollOffset,ne=fe.scrollRange,re=fe.onStartMove,he=fe.onStopMove,_e=fe.onScroll,Be=fe.horizontal,Ue=fe.spinSize,rt=fe.containerSize,et=fe.style,dt=fe.thumbStyle,Ot=fe.showScrollBar,pt=c.useState(!1),nt=(0,A.Z)(pt,2),ut=nt[0],Tt=nt[1],vt=c.useState(null),Ct=(0,A.Z)(vt,2),Ft=Ct[0],Rt=Ct[1],$e=c.useState(null),Zt=(0,A.Z)($e,2),vn=Zt[0],wt=Zt[1],Dn=!de,nr=c.useRef(),Qn=c.useRef(),jt=c.useState(Ot),br=(0,A.Z)(jt,2),dr=br[0],zn=br[1],$n=c.useRef(),Er=function(){Ot===!0||Ot===!1||(clearTimeout($n.current),zn(!0),$n.current=setTimeout(function(){zn(!1)},3e3))},me=ne-rt||0,jn=rt-Ue||0,Cn=c.useMemo(function(){if(Ce===0||me===0)return 0;var Mn=Ce/me;return Mn*jn},[Ce,me,jn]),qn=function(ai){ai.stopPropagation(),ai.preventDefault()},Ir=c.useRef({top:Cn,dragging:ut,pageY:Ft,startTop:vn});Ir.current={top:Cn,dragging:ut,pageY:Ft,startTop:vn};var Vr=function(ai){Tt(!0),Rt(Re(ai,Be)),wt(Ir.current.top),re(),ai.stopPropagation(),ai.preventDefault()};c.useEffect(function(){var Mn=function(pn){pn.preventDefault()},ai=nr.current,Nr=Qn.current;return ai.addEventListener("touchstart",Mn,{passive:!1}),Nr.addEventListener("touchstart",Vr,{passive:!1}),function(){ai.removeEventListener("touchstart",Mn),Nr.removeEventListener("touchstart",Vr)}},[]);var fr=c.useRef();fr.current=me;var oo=c.useRef();oo.current=jn,c.useEffect(function(){if(ut){var Mn,ai=function(pn){var Vn=Ir.current,Mt=Vn.dragging,It=Vn.pageY,On=Vn.startTop;L.Z.cancel(Mn);var ft=nr.current.getBoundingClientRect(),en=rt/(Be?ft.width:ft.height);if(Mt){var An=(Re(pn,Be)-It)*en,Un=On;!Dn&&Be?Un-=An:Un+=An;var gt=fr.current,gn=oo.current,Hn=gn?Un/gn:0,At=Math.ceil(Hn*gt);At=Math.max(At,0),At=Math.min(At,gt),Mn=(0,L.Z)(function(){_e(At,Be)})}},Nr=function(){Tt(!1),he()};return window.addEventListener("mousemove",ai,{passive:!0}),window.addEventListener("touchmove",ai,{passive:!0}),window.addEventListener("mouseup",Nr,{passive:!0}),window.addEventListener("touchend",Nr,{passive:!0}),function(){window.removeEventListener("mousemove",ai),window.removeEventListener("touchmove",ai),window.removeEventListener("mouseup",Nr),window.removeEventListener("touchend",Nr),L.Z.cancel(Mn)}}},[ut]),c.useEffect(function(){return Er(),function(){clearTimeout($n.current)}},[Ce]),c.useImperativeHandle(z,function(){return{delayHidden:Er}});var Zr="".concat(X,"-scrollbar"),Qr={position:"absolute",visibility:dr?null:"hidden"},Kn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Be?(Qr.height=8,Qr.left=0,Qr.right=0,Qr.bottom=0,Kn.height="100%",Kn.width=Ue,Dn?Kn.left=Cn:Kn.right=Cn):(Qr.width=8,Qr.top=0,Qr.bottom=0,Dn?Qr.right=0:Qr.left=0,Kn.width="100%",Kn.height=Ue,Kn.top=Cn),c.createElement("div",{ref:nr,className:b()(Zr,(0,C.Z)((0,C.Z)((0,C.Z)({},"".concat(Zr,"-horizontal"),Be),"".concat(Zr,"-vertical"),!Be),"".concat(Zr,"-visible"),dr)),style:(0,s.Z)((0,s.Z)({},Qr),et),onMouseDown:qn,onMouseMove:Er},c.createElement("div",{ref:Qn,className:b()("".concat(Zr,"-thumb"),(0,C.Z)({},"".concat(Zr,"-thumb-moving"),ut)),style:(0,s.Z)((0,s.Z)({},Kn),dt),onMouseDown:Vr}))}),Oe=Me,Le=20;function Pe(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,X=fe/z*fe;return isNaN(X)&&(X=0),X=Math.max(X,Le),Math.floor(X)}var De=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ke=[],ze={overflowY:"auto",overflowAnchor:"none"};function it(fe,z){var X=fe.prefixCls,de=X===void 0?"rc-virtual-list":X,Ce=fe.className,ne=fe.height,re=fe.itemHeight,he=fe.fullHeight,_e=he===void 0?!0:he,Be=fe.style,Ue=fe.data,rt=fe.children,et=fe.itemKey,dt=fe.virtual,Ot=fe.direction,pt=fe.scrollWidth,nt=fe.component,ut=nt===void 0?"div":nt,Tt=fe.onScroll,vt=fe.onVirtualScroll,Ct=fe.onVisibleChange,Ft=fe.innerProps,Rt=fe.extraRender,$e=fe.styles,Zt=fe.showScrollBar,vn=Zt===void 0?"optional":Zt,wt=(0,u.Z)(fe,De),Dn=c.useCallback(function(Jt){return typeof et=="function"?et(Jt):Jt==null?void 0:Jt[et]},[et]),nr=ue(Dn,null,null),Qn=(0,A.Z)(nr,4),jt=Qn[0],br=Qn[1],dr=Qn[2],zn=Qn[3],$n=!!(dt!==!1&&ne&&re),Er=c.useMemo(function(){return Object.values(dr.maps).reduce(function(Jt,fn){return Jt+fn},0)},[dr.id,dr.maps]),me=$n&&Ue&&(Math.max(re*Ue.length,Er)>ne||!!pt),jn=Ot==="rtl",Cn=b()(de,(0,C.Z)({},"".concat(de,"-rtl"),jn),Ce),qn=Ue||Ke,Ir=(0,c.useRef)(),Vr=(0,c.useRef)(),fr=(0,c.useRef)(),oo=(0,c.useState)(0),Zr=(0,A.Z)(oo,2),Qr=Zr[0],Kn=Zr[1],Mn=(0,c.useState)(0),ai=(0,A.Z)(Mn,2),Nr=ai[0],zr=ai[1],pn=(0,c.useState)(!1),Vn=(0,A.Z)(pn,2),Mt=Vn[0],It=Vn[1],On=function(){It(!0)},ft=function(){It(!1)},en={getKey:Dn};function An(Jt){Kn(function(fn){var dn;typeof Jt=="function"?dn=Jt(fn):dn=Jt;var yn=Rr(dn);return Ir.current.scrollTop=yn,yn})}var Un=(0,c.useRef)({start:0,end:qn.length}),gt=(0,c.useRef)(),gn=k(qn,Dn),Hn=(0,A.Z)(gn,1),At=Hn[0];gt.current=At;var we=c.useMemo(function(){if(!$n)return{scrollHeight:void 0,start:0,end:qn.length-1,offset:void 0};if(!me){var Jt;return{scrollHeight:((Jt=Vr.current)===null||Jt===void 0?void 0:Jt.offsetHeight)||0,start:0,end:qn.length-1,offset:void 0}}for(var fn=0,dn,yn,Sn,Xn=qn.length,_r=0;_r<Xn;_r+=1){var Fr=qn[_r],mn=Dn(Fr),Cr=dr.get(mn),Or=fn+(Cr===void 0?re:Cr);Or>=Qr&&dn===void 0&&(dn=_r,yn=fn),Or>Qr+ne&&Sn===void 0&&(Sn=_r),fn=Or}return dn===void 0&&(dn=0,yn=0,Sn=Math.ceil(ne/re)),Sn===void 0&&(Sn=qn.length-1),Sn=Math.min(Sn+1,qn.length-1),{scrollHeight:fn,start:dn,end:Sn,offset:yn}},[me,$n,Qr,qn,zn,ne]),Bn=we.scrollHeight,wn=we.start,Ht=we.end,lr=we.offset;Un.current.start=wn,Un.current.end=Ht,c.useLayoutEffect(function(){var Jt=dr.getRecord();if(Jt.size===1){var fn=Array.from(Jt)[0],dn=qn[wn];if(dn){var yn=Dn(dn);if(yn===fn){var Sn=dr.get(fn),Xn=Sn-re;An(function(_r){return _r+Xn})}}}dr.resetRecord()},[Bn]);var pr=c.useState({width:0,height:ne}),xr=(0,A.Z)(pr,2),Pn=xr[0],St=xr[1],gr=function(fn){St({width:fn.offsetWidth,height:fn.offsetHeight})},vi=(0,c.useRef)(),Dt=(0,c.useRef)(),Ji=c.useMemo(function(){return Pe(Pn.width,pt)},[Pn.width,pt]),Ri=c.useMemo(function(){return Pe(Pn.height,Bn)},[Pn.height,Bn]),oi=Bn-ne,Oi=(0,c.useRef)(oi);Oi.current=oi;function Rr(Jt){var fn=Jt;return Number.isNaN(Oi.current)||(fn=Math.min(fn,Oi.current)),fn=Math.max(fn,0),fn}var li=Qr<=0,Pr=Qr>=oi,qr=Nr<=0,ri=Nr>=pt,Gt=V(li,Pr,qr,ri),ui=function(){return{x:jn?-Nr:Nr,y:Qr}},Kt=(0,c.useRef)(ui()),Wn=(0,y.zX)(function(Jt){if(vt){var fn=(0,s.Z)((0,s.Z)({},ui()),Jt);(Kt.current.x!==fn.x||Kt.current.y!==fn.y)&&(vt(fn),Kt.current=fn)}});function er(Jt,fn){var dn=Jt;fn?((0,h.flushSync)(function(){zr(dn)}),Wn()):An(dn)}function rr(Jt){var fn=Jt.currentTarget.scrollTop;fn!==Qr&&An(fn),Tt==null||Tt(Jt),Wn()}var Di=function(fn){var dn=fn,yn=pt?pt-Pn.width:0;return dn=Math.max(dn,0),dn=Math.min(dn,yn),dn},Li=(0,y.zX)(function(Jt,fn){fn?((0,h.flushSync)(function(){zr(function(dn){var yn=dn+(jn?-Jt:Jt);return Di(yn)})}),Wn()):An(function(dn){var yn=dn+Jt;return yn})}),pi=P($n,li,Pr,qr,ri,!!pt,Li),Mi=(0,A.Z)(pi,2),_t=Mi[0],Vt=Mi[1];ye($n,Ir,function(Jt,fn,dn,yn){var Sn=yn;return Gt(Jt,fn,dn)?!1:!Sn||!Sn._virtualHandled?(Sn&&(Sn._virtualHandled=!0),_t({preventDefault:function(){},deltaX:Jt?fn:0,deltaY:Jt?0:fn}),!0):!1}),le(me,Ir,function(Jt){An(function(fn){return fn+Jt})}),(0,v.Z)(function(){function Jt(dn){var yn=li&&dn.detail<0,Sn=Pr&&dn.detail>0;$n&&!yn&&!Sn&&dn.preventDefault()}var fn=Ir.current;return fn.addEventListener("wheel",_t,{passive:!1}),fn.addEventListener("DOMMouseScroll",Vt,{passive:!0}),fn.addEventListener("MozMousePixelScroll",Jt,{passive:!1}),function(){fn.removeEventListener("wheel",_t),fn.removeEventListener("DOMMouseScroll",Vt),fn.removeEventListener("MozMousePixelScroll",Jt)}},[$n,li,Pr]),(0,v.Z)(function(){if(pt){var Jt=Di(Nr);zr(Jt),Wn({x:Jt})}},[Pn.width,pt]);var Et=function(){var fn,dn;(fn=vi.current)===null||fn===void 0||fn.delayHidden(),(dn=Dt.current)===null||dn===void 0||dn.delayHidden()},Ie=pe(Ir,qn,dr,re,Dn,function(){return br(!0)},An,Et);c.useImperativeHandle(z,function(){return{nativeElement:fr.current,getScrollInfo:ui,scrollTo:function(fn){function dn(yn){return yn&&(0,Z.Z)(yn)==="object"&&("left"in yn||"top"in yn)}dn(fn)?(fn.left!==void 0&&zr(Di(fn.left)),Ie(fn.top)):Ie(fn)}}}),(0,v.Z)(function(){if(Ct){var Jt=qn.slice(wn,Ht+1);Ct(Jt,qn)}},[wn,Ht,qn]);var cn=U(qn,Dn,dr,re),sn=Rt==null?void 0:Rt({start:wn,end:Ht,virtual:me,offsetX:Nr,offsetY:lr,rtl:jn,getSize:cn}),bn=I(qn,wn,Ht,pt,Nr,jt,rt,en),_n=null;ne&&(_n=(0,s.Z)((0,C.Z)({},_e?"height":"maxHeight",ne),ze),$n&&(_n.overflowY="hidden",pt&&(_n.overflowX="hidden"),Mt&&(_n.pointerEvents="none")));var Rn={};return jn&&(Rn.dir="rtl"),c.createElement("div",(0,B.Z)({ref:fr,style:(0,s.Z)((0,s.Z)({},Be),{},{position:"relative"}),className:Cn},Rn,wt),c.createElement(g.Z,{onResize:gr},c.createElement(ut,{className:"".concat(de,"-holder"),style:_n,ref:Ir,onScroll:rr,onMouseEnter:Et},c.createElement(E,{prefixCls:de,height:Bn,offsetX:Nr,offsetY:lr,scrollWidth:pt,onInnerResize:br,ref:Vr,innerProps:Ft,rtl:jn,extra:sn},bn))),me&&Bn>ne&&c.createElement(Oe,{ref:vi,prefixCls:de,scrollOffset:Qr,scrollRange:Bn,rtl:jn,onScroll:er,onStartMove:On,onStopMove:ft,spinSize:Ri,containerSize:Pn.height,style:$e==null?void 0:$e.verticalScrollBar,thumbStyle:$e==null?void 0:$e.verticalScrollBarThumb,showScrollBar:vn}),me&&pt>Pn.width&&c.createElement(Oe,{ref:Dt,prefixCls:de,scrollOffset:Nr,scrollRange:pt,rtl:jn,onScroll:er,onStartMove:On,onStopMove:ft,spinSize:Ji,containerSize:Pn.width,horizontal:!0,style:$e==null?void 0:$e.horizontalScrollBar,thumbStyle:$e==null?void 0:$e.horizontalScrollBarThumb,showScrollBar:vn}))}var ot=c.forwardRef(it);ot.displayName="List";var Ge=ot,Ee=Ge},77596:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return xe}});var B=S(74416),Z=S(80702),s=S(49618),C=S(59301),A=S(72308);function u(pe,Me){var Oe=Object.keys(pe);if(Object.getOwnPropertySymbols){var Le=Object.getOwnPropertySymbols(pe);Me&&(Le=Le.filter(function(Pe){return Object.getOwnPropertyDescriptor(pe,Pe).enumerable})),Oe.push.apply(Oe,Le)}return Oe}function p(pe){for(var Me=1;Me<arguments.length;Me++){var Oe=arguments[Me]!=null?arguments[Me]:{};Me%2?u(Object(Oe),!0).forEach(function(Le){(0,s.Z)(pe,Le,Oe[Le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(pe,Object.getOwnPropertyDescriptors(Oe)):u(Object(Oe)).forEach(function(Le){Object.defineProperty(pe,Le,Object.getOwnPropertyDescriptor(Oe,Le))})}return pe}function b(pe){var Me=pe.length;if(Me===0||Me===1)return pe;if(Me===2)return[pe[0],pe[1],"".concat(pe[0],".").concat(pe[1]),"".concat(pe[1],".").concat(pe[0])];if(Me===3)return[pe[0],pe[1],pe[2],"".concat(pe[0],".").concat(pe[1]),"".concat(pe[0],".").concat(pe[2]),"".concat(pe[1],".").concat(pe[0]),"".concat(pe[1],".").concat(pe[2]),"".concat(pe[2],".").concat(pe[0]),"".concat(pe[2],".").concat(pe[1]),"".concat(pe[0],".").concat(pe[1],".").concat(pe[2]),"".concat(pe[0],".").concat(pe[2],".").concat(pe[1]),"".concat(pe[1],".").concat(pe[0],".").concat(pe[2]),"".concat(pe[1],".").concat(pe[2],".").concat(pe[0]),"".concat(pe[2],".").concat(pe[0],".").concat(pe[1]),"".concat(pe[2],".").concat(pe[1],".").concat(pe[0])];if(Me>=4)return[pe[0],pe[1],pe[2],pe[3],"".concat(pe[0],".").concat(pe[1]),"".concat(pe[0],".").concat(pe[2]),"".concat(pe[0],".").concat(pe[3]),"".concat(pe[1],".").concat(pe[0]),"".concat(pe[1],".").concat(pe[2]),"".concat(pe[1],".").concat(pe[3]),"".concat(pe[2],".").concat(pe[0]),"".concat(pe[2],".").concat(pe[1]),"".concat(pe[2],".").concat(pe[3]),"".concat(pe[3],".").concat(pe[0]),"".concat(pe[3],".").concat(pe[1]),"".concat(pe[3],".").concat(pe[2]),"".concat(pe[0],".").concat(pe[1],".").concat(pe[2]),"".concat(pe[0],".").concat(pe[1],".").concat(pe[3]),"".concat(pe[0],".").concat(pe[2],".").concat(pe[1]),"".concat(pe[0],".").concat(pe[2],".").concat(pe[3]),"".concat(pe[0],".").concat(pe[3],".").concat(pe[1]),"".concat(pe[0],".").concat(pe[3],".").concat(pe[2]),"".concat(pe[1],".").concat(pe[0],".").concat(pe[2]),"".concat(pe[1],".").concat(pe[0],".").concat(pe[3]),"".concat(pe[1],".").concat(pe[2],".").concat(pe[0]),"".concat(pe[1],".").concat(pe[2],".").concat(pe[3]),"".concat(pe[1],".").concat(pe[3],".").concat(pe[0]),"".concat(pe[1],".").concat(pe[3],".").concat(pe[2]),"".concat(pe[2],".").concat(pe[0],".").concat(pe[1]),"".concat(pe[2],".").concat(pe[0],".").concat(pe[3]),"".concat(pe[2],".").concat(pe[1],".").concat(pe[0]),"".concat(pe[2],".").concat(pe[1],".").concat(pe[3]),"".concat(pe[2],".").concat(pe[3],".").concat(pe[0]),"".concat(pe[2],".").concat(pe[3],".").concat(pe[1]),"".concat(pe[3],".").concat(pe[0],".").concat(pe[1]),"".concat(pe[3],".").concat(pe[0],".").concat(pe[2]),"".concat(pe[3],".").concat(pe[1],".").concat(pe[0]),"".concat(pe[3],".").concat(pe[1],".").concat(pe[2]),"".concat(pe[3],".").concat(pe[2],".").concat(pe[0]),"".concat(pe[3],".").concat(pe[2],".").concat(pe[1]),"".concat(pe[0],".").concat(pe[1],".").concat(pe[2],".").concat(pe[3]),"".concat(pe[0],".").concat(pe[1],".").concat(pe[3],".").concat(pe[2]),"".concat(pe[0],".").concat(pe[2],".").concat(pe[1],".").concat(pe[3]),"".concat(pe[0],".").concat(pe[2],".").concat(pe[3],".").concat(pe[1]),"".concat(pe[0],".").concat(pe[3],".").concat(pe[1],".").concat(pe[2]),"".concat(pe[0],".").concat(pe[3],".").concat(pe[2],".").concat(pe[1]),"".concat(pe[1],".").concat(pe[0],".").concat(pe[2],".").concat(pe[3]),"".concat(pe[1],".").concat(pe[0],".").concat(pe[3],".").concat(pe[2]),"".concat(pe[1],".").concat(pe[2],".").concat(pe[0],".").concat(pe[3]),"".concat(pe[1],".").concat(pe[2],".").concat(pe[3],".").concat(pe[0]),"".concat(pe[1],".").concat(pe[3],".").concat(pe[0],".").concat(pe[2]),"".concat(pe[1],".").concat(pe[3],".").concat(pe[2],".").concat(pe[0]),"".concat(pe[2],".").concat(pe[0],".").concat(pe[1],".").concat(pe[3]),"".concat(pe[2],".").concat(pe[0],".").concat(pe[3],".").concat(pe[1]),"".concat(pe[2],".").concat(pe[1],".").concat(pe[0],".").concat(pe[3]),"".concat(pe[2],".").concat(pe[1],".").concat(pe[3],".").concat(pe[0]),"".concat(pe[2],".").concat(pe[3],".").concat(pe[0],".").concat(pe[1]),"".concat(pe[2],".").concat(pe[3],".").concat(pe[1],".").concat(pe[0]),"".concat(pe[3],".").concat(pe[0],".").concat(pe[1],".").concat(pe[2]),"".concat(pe[3],".").concat(pe[0],".").concat(pe[2],".").concat(pe[1]),"".concat(pe[3],".").concat(pe[1],".").concat(pe[0],".").concat(pe[2]),"".concat(pe[3],".").concat(pe[1],".").concat(pe[2],".").concat(pe[0]),"".concat(pe[3],".").concat(pe[2],".").concat(pe[0],".").concat(pe[1]),"".concat(pe[3],".").concat(pe[2],".").concat(pe[1],".").concat(pe[0])]}var g={};function y(pe){if(pe.length===0||pe.length===1)return pe;var Me=pe.join(".");return g[Me]||(g[Me]=b(pe)),g[Me]}function v(pe){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=arguments.length>2?arguments[2]:void 0,Le=pe.filter(function(De){return De!=="token"}),Pe=y(Le);return Pe.reduce(function(De,Ke){return p(p({},De),Oe[Ke])},Me)}function c(pe){return pe.join(" ")}function h(pe,Me){var Oe=0;return function(Le){return Oe+=1,Le.map(function(Pe,De){return m({node:Pe,stylesheet:pe,useInlineStyles:Me,key:"code-segment-".concat(Oe,"-").concat(De)})})}}function m(pe){var Me=pe.node,Oe=pe.stylesheet,Le=pe.style,Pe=Le===void 0?{}:Le,De=pe.useInlineStyles,Ke=pe.key,ze=Me.properties,it=Me.type,ot=Me.tagName,Ge=Me.value;if(it==="text")return Ge;if(ot){var Ee=h(Oe,De),fe;if(!De)fe=p(p({},ze),{},{className:c(ze.className)});else{var z=Object.keys(Oe).reduce(function(ne,re){return re.split(".").forEach(function(he){ne.includes(he)||ne.push(he)}),ne},[]),X=ze.className&&ze.className.includes("token")?["token"]:[],de=ze.className&&X.concat(ze.className.filter(function(ne){return!z.includes(ne)}));fe=p(p({},ze),{},{className:c(de)||void 0,style:v(ze.className,Object.assign({},ze.style,Pe),Oe)})}var Ce=Ee(Me.children);return C.createElement(ot,(0,A.Z)({key:Ke},fe),Ce)}}var E=function(pe,Me){var Oe=pe.listLanguages();return Oe.indexOf(Me)!==-1},T=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function I(pe,Me){var Oe=Object.keys(pe);if(Object.getOwnPropertySymbols){var Le=Object.getOwnPropertySymbols(pe);Me&&(Le=Le.filter(function(Pe){return Object.getOwnPropertyDescriptor(pe,Pe).enumerable})),Oe.push.apply(Oe,Le)}return Oe}function R(pe){for(var Me=1;Me<arguments.length;Me++){var Oe=arguments[Me]!=null?arguments[Me]:{};Me%2?I(Object(Oe),!0).forEach(function(Le){(0,s.Z)(pe,Le,Oe[Le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(pe,Object.getOwnPropertyDescriptors(Oe)):I(Object(Oe)).forEach(function(Le){Object.defineProperty(pe,Le,Object.getOwnPropertyDescriptor(Oe,Le))})}return pe}var N=/\n/g;function k(pe){return pe.match(N)}function L(pe){var Me=pe.lines,Oe=pe.startingLineNumber,Le=pe.style;return Me.map(function(Pe,De){var Ke=De+Oe;return C.createElement("span",{key:"line-".concat(De),className:"react-syntax-highlighter-line-number",style:typeof Le=="function"?Le(Ke):Le},"".concat(Ke,`
`))})}function H(pe){var Me=pe.codeString,Oe=pe.codeStyle,Le=pe.containerStyle,Pe=Le===void 0?{float:"left",paddingRight:"10px"}:Le,De=pe.numberStyle,Ke=De===void 0?{}:De,ze=pe.startingLineNumber;return C.createElement("code",{style:Object.assign({},Oe,Pe)},L({lines:Me.replace(/\n$/,"").split(`
`),style:Ke,startingLineNumber:ze}))}function D(pe){return"".concat(pe.toString().length,".25em")}function V(pe,Me){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(pe),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:Me},children:[{type:"text",value:pe}]}}function P(pe,Me,Oe){var Le={display:"inline-block",minWidth:D(Oe),paddingRight:"1em",textAlign:"right",userSelect:"none"},Pe=typeof pe=="function"?pe(Me):pe,De=R(R({},Le),Pe);return De}function U(pe){var Me=pe.children,Oe=pe.lineNumber,Le=pe.lineNumberStyle,Pe=pe.largestLineNumber,De=pe.showInlineLineNumbers,Ke=pe.lineProps,ze=Ke===void 0?{}:Ke,it=pe.className,ot=it===void 0?[]:it,Ge=pe.showLineNumbers,Ee=pe.wrapLongLines,fe=pe.wrapLines,z=fe===void 0?!1:fe,X=z?R({},typeof ze=="function"?ze(Oe):ze):{};if(X.className=X.className?[].concat((0,Z.Z)(X.className.trim().split(/\s+/)),(0,Z.Z)(ot)):ot,Oe&&De){var de=P(Le,Oe,Pe);Me.unshift(V(Oe,de))}return Ee&Ge&&(X.style=R({display:"flex"},X.style)),{type:"element",tagName:"span",properties:X,children:Me}}function G(pe){for(var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Le=0;Le<pe.length;Le++){var Pe=pe[Le];if(Pe.type==="text")Oe.push(U({children:[Pe],className:(0,Z.Z)(new Set(Me))}));else if(Pe.children){var De=Me.concat(Pe.properties.className);G(Pe.children,De).forEach(function(Ke){return Oe.push(Ke)})}}return Oe}function J(pe,Me,Oe,Le,Pe,De,Ke,ze,it){var ot,Ge=G(pe.value),Ee=[],fe=-1,z=0;function X(Be,Ue){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return U({children:Be,lineNumber:Ue,lineNumberStyle:ze,largestLineNumber:Ke,showInlineLineNumbers:Pe,lineProps:Oe,className:rt,showLineNumbers:Le,wrapLongLines:it,wrapLines:Me})}function de(Be,Ue){if(Le&&Ue&&Pe){var rt=P(ze,Ue,Ke);Be.unshift(V(Ue,rt))}return Be}function Ce(Be,Ue){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Me||rt.length>0?X(Be,Ue,rt):de(Be,Ue)}for(var ne=function(){var Ue=Ge[z],rt=Ue.children[0].value,et=k(rt);if(et){var dt=rt.split(`
`);dt.forEach(function(Ot,pt){var nt=Le&&Ee.length+De,ut={type:"text",value:"".concat(Ot,`
`)};if(pt===0){var Tt=Ge.slice(fe+1,z).concat(U({children:[ut],className:Ue.properties.className})),vt=Ce(Tt,nt);Ee.push(vt)}else if(pt===dt.length-1){var Ct=Ge[z+1]&&Ge[z+1].children&&Ge[z+1].children[0],Ft={type:"text",value:"".concat(Ot)};if(Ct){var Rt=U({children:[Ft],className:Ue.properties.className});Ge.splice(z+1,0,Rt)}else{var $e=[Ft],Zt=Ce($e,nt,Ue.properties.className);Ee.push(Zt)}}else{var vn=[ut],wt=Ce(vn,nt,Ue.properties.className);Ee.push(wt)}}),fe=z}z++};z<Ge.length;)ne();if(fe!==Ge.length-1){var re=Ge.slice(fe+1,Ge.length);if(re&&re.length){var he=Le&&Ee.length+De,_e=Ce(re,he);Ee.push(_e)}}return Me?Ee:(ot=[]).concat.apply(ot,Ee)}function ee(pe){var Me=pe.rows,Oe=pe.stylesheet,Le=pe.useInlineStyles;return Me.map(function(Pe,De){return m({node:Pe,stylesheet:Oe,useInlineStyles:Le,key:"code-segement".concat(De)})})}function ae(pe){return pe&&typeof pe.highlightAuto!="undefined"}function oe(pe){var Me=pe.astGenerator,Oe=pe.language,Le=pe.code,Pe=pe.defaultCodeValue;if(ae(Me)){var De=E(Me,Oe);return Oe==="text"?{value:Pe,language:"text"}:De?Me.highlight(Oe,Le):Me.highlightAuto(Le)}try{return Oe&&Oe!=="text"?{value:Me.highlight(Le,Oe)}:{value:Pe}}catch(Ke){return{value:Pe}}}function ue(pe,Me){return function(Le){var Pe=Le.language,De=Le.children,Ke=Le.style,ze=Ke===void 0?Me:Ke,it=Le.customStyle,ot=it===void 0?{}:it,Ge=Le.codeTagProps,Ee=Ge===void 0?{className:Pe?"language-".concat(Pe):void 0,style:R(R({},ze['code[class*="language-"]']),ze['code[class*="language-'.concat(Pe,'"]')])}:Ge,fe=Le.useInlineStyles,z=fe===void 0?!0:fe,X=Le.showLineNumbers,de=X===void 0?!1:X,Ce=Le.showInlineLineNumbers,ne=Ce===void 0?!0:Ce,re=Le.startingLineNumber,he=re===void 0?1:re,_e=Le.lineNumberContainerStyle,Be=Le.lineNumberStyle,Ue=Be===void 0?{}:Be,rt=Le.wrapLines,et=Le.wrapLongLines,dt=et===void 0?!1:et,Ot=Le.lineProps,pt=Ot===void 0?{}:Ot,nt=Le.renderer,ut=Le.PreTag,Tt=ut===void 0?"pre":ut,vt=Le.CodeTag,Ct=vt===void 0?"code":vt,Ft=Le.code,Rt=Ft===void 0?(Array.isArray(De)?De[0]:De)||"":Ft,$e=Le.astGenerator,Zt=(0,B.Z)(Le,T);$e=$e||pe;var vn=de?C.createElement(H,{containerStyle:_e,codeStyle:Ee.style||{},numberStyle:Ue,startingLineNumber:he,codeString:Rt}):null,wt=ze.hljs||ze['pre[class*="language-"]']||{backgroundColor:"#fff"},Dn=ae($e)?"hljs":"prismjs",nr=z?Object.assign({},Zt,{style:Object.assign({},wt,ot)}):Object.assign({},Zt,{className:Zt.className?"".concat(Dn," ").concat(Zt.className):Dn,style:Object.assign({},ot)});if(dt?Ee.style=R({whiteSpace:"pre-wrap"},Ee.style):Ee.style=R({whiteSpace:"pre"},Ee.style),!$e)return C.createElement(Tt,nr,vn,C.createElement(Ct,Ee,Rt));(rt===void 0&&nt||dt)&&(rt=!0),nt=nt||ee;var Qn=[{type:"text",value:Rt}],jt=oe({astGenerator:$e,language:Pe,code:Rt,defaultCodeValue:Qn});jt.language===null&&(jt.value=Qn);var br=jt.value.length;br===1&&jt.value[0].type==="text"&&(br=jt.value[0].value.split(`
`).length);var dr=br+he,zn=J(jt,rt,pt,de,ne,he,dr,Ue,dt);return C.createElement(Tt,nr,C.createElement(Ct,Ee,!ne&&vn,nt({rows:zn,stylesheet:ze,useInlineStyles:z})))}}var se={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},ye=S(11594),ve=S.n(ye),Re=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],le=ue(ve(),se);le.supportedLanguages=Re;var xe=le},14179:function(Ne,Q){"use strict";Q.Z={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},19524:function(Ne,Q,S){"use strict";S(84126);var B=S(59301),Z=60103;if(Q.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var s=Symbol.for;Z=s("react.element"),Q.Fragment=s("react.fragment")}var C=B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function p(b,g,y){var v,c={},h=null,m=null;y!==void 0&&(h=""+y),g.key!==void 0&&(h=""+g.key),g.ref!==void 0&&(m=g.ref);for(v in g)A.call(g,v)&&!u.hasOwnProperty(v)&&(c[v]=g[v]);if(b&&b.defaultProps)for(v in g=b.defaultProps,g)c[v]===void 0&&(c[v]=g[v]);return{$$typeof:Z,type:b,key:h,ref:m,props:c,_owner:C.current}}Q.jsx=p,Q.jsxs=p},37712:function(Ne,Q,S){"use strict";Ne.exports=S(19524)},95489:function(Ne,Q,S){"use strict";var B=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof S.g=="object"?S.g:{},Z=H();B.Prism={manual:!0,disableWorkerMessageHandler:!0};var s=S(43621),C=S(12256),A=S(68398),u=S(70614),p=S(54212),b=S(9720),g=S(88786);Z();var y={}.hasOwnProperty;function v(){}v.prototype=A;var c=new v;Ne.exports=c,c.highlight=E,c.register=h,c.alias=m,c.registered=T,c.listLanguages=I,h(u),h(p),h(b),h(g),c.util.encode=k,c.Token.stringify=R;function h(D){if(typeof D!="function"||!D.displayName)throw new Error("Expected `function` for `grammar`, got `"+D+"`");c.languages[D.displayName]===void 0&&D(c)}function m(D,V){var P=c.languages,U=D,G,J,ee,ae;V&&(U={},U[D]=V);for(G in U)for(J=U[G],J=typeof J=="string"?[J]:J,ee=J.length,ae=-1;++ae<ee;)P[J[ae]]=P[G]}function E(D,V){var P=A.highlight,U;if(typeof D!="string")throw new Error("Expected `string` for `value`, got `"+D+"`");if(c.util.type(V)==="Object")U=V,V=null;else{if(typeof V!="string")throw new Error("Expected `string` for `name`, got `"+V+"`");if(y.call(c.languages,V))U=c.languages[V];else throw new Error("Unknown language: `"+V+"` is not registered")}return P.call(this,D,U,V)}function T(D){if(typeof D!="string")throw new Error("Expected `string` for `language`, got `"+D+"`");return y.call(c.languages,D)}function I(){var D=c.languages,V=[],P;for(P in D)y.call(D,P)&&typeof D[P]=="object"&&V.push(P);return V}function R(D,V,P){var U;return typeof D=="string"?{type:"text",value:D}:c.util.type(D)==="Array"?N(D,V):(U={type:D.type,content:c.Token.stringify(D.content,V,P),tag:"span",classes:["token",D.type],attributes:{},language:V,parent:P},D.alias&&(U.classes=U.classes.concat(D.alias)),c.hooks.run("wrap",U),s(U.tag+"."+U.classes.join("."),L(U.attributes),U.content))}function N(D,V){for(var P=[],U=D.length,G=-1,J;++G<U;)J=D[G],J!==""&&J!==null&&J!==void 0&&P.push(J);for(G=-1,U=P.length;++G<U;)J=P[G],P[G]=c.Token.stringify(J,V,P);return P}function k(D){return D}function L(D){var V;for(V in D)D[V]=C(D[V]);return D}function H(){var D="Prism"in B,V=D?B.Prism:void 0;return P;function P(){D?B.Prism=V:delete B.Prism,D=void 0,V=void 0}}},11594:function(Ne,Q,S){"use strict";var B=S(95489);Ne.exports=B,B.register(S(79007)),B.register(S(15465)),B.register(S(42746)),B.register(S(93281)),B.register(S(95143)),B.register(S(65924)),B.register(S(65043)),B.register(S(43556)),B.register(S(14901)),B.register(S(4248)),B.register(S(17758)),B.register(S(33335)),B.register(S(17427)),B.register(S(22956)),B.register(S(56007)),B.register(S(45652)),B.register(S(33819)),B.register(S(84230)),B.register(S(20803)),B.register(S(65235)),B.register(S(52406)),B.register(S(79571)),B.register(S(3058)),B.register(S(51422)),B.register(S(1618)),B.register(S(2505)),B.register(S(51274)),B.register(S(23796)),B.register(S(13979)),B.register(S(87994)),B.register(S(47035)),B.register(S(36142)),B.register(S(85290)),B.register(S(7407)),B.register(S(79440)),B.register(S(7110)),B.register(S(73435)),B.register(S(91372)),B.register(S(63663)),B.register(S(92987)),B.register(S(91657)),B.register(S(34367)),B.register(S(35348)),B.register(S(26841)),B.register(S(87071)),B.register(S(13652)),B.register(S(87648)),B.register(S(10617)),B.register(S(5348)),B.register(S(71053)),B.register(S(69820)),B.register(S(41929)),B.register(S(51837)),B.register(S(4182)),B.register(S(22117)),B.register(S(95627)),B.register(S(34265)),B.register(S(50618)),B.register(S(32126)),B.register(S(26737)),B.register(S(90134)),B.register(S(51348)),B.register(S(60841)),B.register(S(42857)),B.register(S(81269)),B.register(S(31134)),B.register(S(83125)),B.register(S(9438)),B.register(S(27771)),B.register(S(86549)),B.register(S(37079)),B.register(S(59250)),B.register(S(81226)),B.register(S(65245)),B.register(S(25040)),B.register(S(40284)),B.register(S(39187)),B.register(S(34302)),B.register(S(90515)),B.register(S(33534)),B.register(S(9885)),B.register(S(76364)),B.register(S(56452)),B.register(S(8477)),B.register(S(58230)),B.register(S(66192)),B.register(S(81084)),B.register(S(50318)),B.register(S(95769)),B.register(S(14155)),B.register(S(92823)),B.register(S(63092)),B.register(S(21550)),B.register(S(29710)),B.register(S(2050)),B.register(S(67967)),B.register(S(29138)),B.register(S(67915)),B.register(S(54853)),B.register(S(68330)),B.register(S(76823)),B.register(S(86712)),B.register(S(72252)),B.register(S(78634)),B.register(S(43583)),B.register(S(23328)),B.register(S(74494)),B.register(S(46745)),B.register(S(22152)),B.register(S(83698)),B.register(S(26619)),B.register(S(53990)),B.register(S(7093)),B.register(S(4005)),B.register(S(53510)),B.register(S(24799)),B.register(S(97443)),B.register(S(80746)),B.register(S(17015)),B.register(S(89246)),B.register(S(487)),B.register(S(79539)),B.register(S(15628)),B.register(S(14320)),B.register(S(73222)),B.register(S(92486)),B.register(S(24103)),B.register(S(40604)),B.register(S(23109)),B.register(S(32082)),B.register(S(77674)),B.register(S(37524)),B.register(S(6658)),B.register(S(24824)),B.register(S(22776)),B.register(S(89700)),B.register(S(99296)),B.register(S(39940)),B.register(S(34973)),B.register(S(98135)),B.register(S(36907)),B.register(S(3567)),B.register(S(23763)),B.register(S(33978)),B.register(S(40472)),B.register(S(44695)),B.register(S(53885)),B.register(S(51478)),B.register(S(16928)),B.register(S(13586)),B.register(S(37164)),B.register(S(25153)),B.register(S(33245)),B.register(S(32218)),B.register(S(65626)),B.register(S(60090)),B.register(S(40722)),B.register(S(37783)),B.register(S(41224)),B.register(S(71365)),B.register(S(42846)),B.register(S(32964)),B.register(S(78830)),B.register(S(88799)),B.register(S(66791)),B.register(S(41735)),B.register(S(13490)),B.register(S(7383)),B.register(S(66894)),B.register(S(45779)),B.register(S(27734)),B.register(S(91889)),B.register(S(55965)),B.register(S(37326)),B.register(S(92949)),B.register(S(5681)),B.register(S(70696)),B.register(S(35790)),B.register(S(25777)),B.register(S(65889)),B.register(S(53852)),B.register(S(97719)),B.register(S(63839)),B.register(S(67623)),B.register(S(32530)),B.register(S(8938)),B.register(S(55259)),B.register(S(67411)),B.register(S(15375)),B.register(S(12093)),B.register(S(83588)),B.register(S(94127)),B.register(S(21294)),B.register(S(38709)),B.register(S(15008)),B.register(S(96549)),B.register(S(5221)),B.register(S(27447)),B.register(S(73191)),B.register(S(75542)),B.register(S(50323)),B.register(S(44298)),B.register(S(9634)),B.register(S(75266)),B.register(S(48139)),B.register(S(97534)),B.register(S(90826)),B.register(S(63919)),B.register(S(68862)),B.register(S(39523)),B.register(S(31207)),B.register(S(75308)),B.register(S(45315)),B.register(S(13794)),B.register(S(41299)),B.register(S(98177)),B.register(S(48780)),B.register(S(79793)),B.register(S(52085)),B.register(S(65411)),B.register(S(84750)),B.register(S(88216)),B.register(S(66433)),B.register(S(34855)),B.register(S(12998)),B.register(S(10202)),B.register(S(41186)),B.register(S(68963)),B.register(S(5569)),B.register(S(69435)),B.register(S(42766)),B.register(S(46449)),B.register(S(89032)),B.register(S(40241)),B.register(S(24812)),B.register(S(16747)),B.register(S(73584)),B.register(S(79243)),B.register(S(31788)),B.register(S(60871)),B.register(S(21023)),B.register(S(14693)),B.register(S(8743)),B.register(S(1689)),B.register(S(69210)),B.register(S(58710)),B.register(S(60452)),B.register(S(92784)),B.register(S(36489)),B.register(S(78380)),B.register(S(10409)),B.register(S(6539)),B.register(S(82028)),B.register(S(62282)),B.register(S(55686)),B.register(S(70889)),B.register(S(37116)),B.register(S(66963)),B.register(S(21078)),B.register(S(96198)),B.register(S(17723)),B.register(S(67771)),B.register(S(30307)),B.register(S(8921)),B.register(S(13429)),B.register(S(65197)),B.register(S(88904)),B.register(S(35)),B.register(S(86095)),B.register(S(76998)),B.register(S(14409)),B.register(S(33460)),B.register(S(28108))},79007:function(Ne){"use strict";Ne.exports=Q,Q.displayName="abap",Q.aliases=[];function Q(S){S.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}},15465:function(Ne){"use strict";Ne.exports=Q,Q.displayName="abnf",Q.aliases=[];function Q(S){(function(B){var Z="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";B.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+Z+"|<"+Z+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(S)}},42746:function(Ne){"use strict";Ne.exports=Q,Q.displayName="actionscript",Q.aliases=[];function Q(S){S.languages.actionscript=S.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),S.languages.actionscript["class-name"].alias="function",delete S.languages.actionscript.parameter,delete S.languages.actionscript["literal-property"],S.languages.markup&&S.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:S.languages.markup}})}},93281:function(Ne){"use strict";Ne.exports=Q,Q.displayName="ada",Q.aliases=[];function Q(S){S.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}},95143:function(Ne){"use strict";Ne.exports=Q,Q.displayName="agda",Q.aliases=[];function Q(S){(function(B){B.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(S)}},65924:function(Ne){"use strict";Ne.exports=Q,Q.displayName="al",Q.aliases=[];function Q(S){S.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}},65043:function(Ne){"use strict";Ne.exports=Q,Q.displayName="antlr4",Q.aliases=["g4"];function Q(S){S.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},S.languages.g4=S.languages.antlr4}},43556:function(Ne){"use strict";Ne.exports=Q,Q.displayName="apacheconf",Q.aliases=[];function Q(S){S.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}},14901:function(Ne,Q,S){"use strict";var B=S(69435);Ne.exports=Z,Z.displayName="apex",Z.aliases=[];function Z(s){s.register(B),function(C){var A=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,u=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return A.source});function p(g){return RegExp(g.replace(/<CLASS-NAME>/g,function(){return u}),"i")}var b={keyword:A,punctuation:/[()\[\]{};,:.<>]/};C.languages.apex={comment:C.languages.clike.comment,string:C.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:C.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:p(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:b},{pattern:p(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:b},{pattern:p(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:b}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:A,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(s)}},4248:function(Ne){"use strict";Ne.exports=Q,Q.displayName="apl",Q.aliases=[];function Q(S){S.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}},17758:function(Ne){"use strict";Ne.exports=Q,Q.displayName="applescript",Q.aliases=[];function Q(S){S.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}},33335:function(Ne){"use strict";Ne.exports=Q,Q.displayName="aql",Q.aliases=[];function Q(S){S.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}},17427:function(Ne,Q,S){"use strict";var B=S(87071);Ne.exports=Z,Z.displayName="arduino",Z.aliases=["ino"];function Z(s){s.register(B),s.languages.arduino=s.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),s.languages.ino=s.languages.arduino}},22956:function(Ne){"use strict";Ne.exports=Q,Q.displayName="arff",Q.aliases=[];function Q(S){S.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}},56007:function(Ne){"use strict";Ne.exports=Q,Q.displayName="asciidoc",Q.aliases=["adoc"];function Q(S){(function(B){var Z={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},s=B.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:Z,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:Z.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:Z,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function C(A){A=A.split(" ");for(var u={},p=0,b=A.length;p<b;p++)u[A[p]]=s[A[p]];return u}Z.inside.interpreted.inside.rest=C("macro inline replacement entity"),s["passthrough-block"].inside.rest=C("macro"),s["literal-block"].inside.rest=C("callout"),s.table.inside.rest=C("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),s["other-block"].inside.rest=C("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),s.title.inside.rest=C("macro inline replacement entity"),B.hooks.add("wrap",function(A){A.type==="entity"&&(A.attributes.title=A.content.value.replace(/&amp;/,"&"))}),B.languages.adoc=B.languages.asciidoc})(S)}},45652:function(Ne){"use strict";Ne.exports=Q,Q.displayName="asm6502",Q.aliases=[];function Q(S){S.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}},33819:function(Ne){"use strict";Ne.exports=Q,Q.displayName="asmatmel",Q.aliases=[];function Q(S){S.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}},84230:function(Ne,Q,S){"use strict";var B=S(87648);Ne.exports=Z,Z.displayName="aspnet",Z.aliases=[];function Z(s){s.register(B),s.languages.aspnet=s.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:s.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:s.languages.csharp}}}),s.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,s.languages.insertBefore("inside","punctuation",{directive:s.languages.aspnet.directive},s.languages.aspnet.tag.inside["attr-value"]),s.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),s.languages.insertBefore("aspnet",s.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:s.languages.csharp||{}}})}},20803:function(Ne){"use strict";Ne.exports=Q,Q.displayName="autohotkey",Q.aliases=[];function Q(S){S.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}},65235:function(Ne){"use strict";Ne.exports=Q,Q.displayName="autoit",Q.aliases=[];function Q(S){S.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}},52406:function(Ne){"use strict";Ne.exports=Q,Q.displayName="avisynth",Q.aliases=["avs"];function Q(S){(function(B){function Z(g,y){return g.replace(/<<(\d+)>>/g,function(v,c){return y[+c]})}function s(g,y,v){return RegExp(Z(g,y),v||"")}var C=/bool|clip|float|int|string|val/.source,A=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),u=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),p=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),b=[A,u,p].join("|");B.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:s(/\b(?:<<0>>)\s+("?)\w+\1/.source,[C],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:s(/\b(?:<<0>>)\b/.source,[b],"i"),alias:"function"},"type-cast":{pattern:s(/\b(?:<<0>>)(?=\s*\()/.source,[C],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},B.languages.avs=B.languages.avisynth})(S)}},79571:function(Ne){"use strict";Ne.exports=Q,Q.displayName="avroIdl",Q.aliases=[];function Q(S){S.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},S.languages.avdl=S.languages["avro-idl"]}},3058:function(Ne){"use strict";Ne.exports=Q,Q.displayName="bash",Q.aliases=["shell"];function Q(S){(function(B){var Z="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",s={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},C={bash:s,environment:{pattern:RegExp("\\$"+Z),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Z),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};B.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Z),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:C},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:s}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:C},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:C.entity}}],environment:{pattern:RegExp("\\$?"+Z),alias:"constant"},variable:C.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},s.inside=B.languages.bash;for(var A=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],u=C.variable[1].inside,p=0;p<A.length;p++)u[A[p]]=B.languages.bash[A[p]];B.languages.shell=B.languages.bash})(S)}},51422:function(Ne){"use strict";Ne.exports=Q,Q.displayName="basic",Q.aliases=[];function Q(S){S.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}},1618:function(Ne){"use strict";Ne.exports=Q,Q.displayName="batch",Q.aliases=[];function Q(S){(function(B){var Z=/%%?[~:\w]+%?|!\S+!/,s={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},C=/"(?:[\\"]"|[^"])*"(?!")/,A=/(?:\b|-)\d+\b/;B.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:C,parameter:s,variable:Z,number:A,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:C,parameter:s,variable:Z,number:A,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:C,parameter:s,variable:[Z,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:A,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:C,parameter:s,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Z,number:A,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(S)}},2505:function(Ne){"use strict";Ne.exports=Q,Q.displayName="bbcode",Q.aliases=["shortcode"];function Q(S){S.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},S.languages.shortcode=S.languages.bbcode}},51274:function(Ne){"use strict";Ne.exports=Q,Q.displayName="bicep",Q.aliases=[];function Q(S){S.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},S.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=S.languages.bicep}},23796:function(Ne){"use strict";Ne.exports=Q,Q.displayName="birb",Q.aliases=[];function Q(S){S.languages.birb=S.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),S.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(Ne,Q,S){"use strict";var B=S(79440);Ne.exports=Z,Z.displayName="bison",Z.aliases=[];function Z(s){s.register(B),s.languages.bison=s.languages.extend("c",{}),s.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:s.languages.c}},comment:s.languages.c.comment,string:s.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(Ne){"use strict";Ne.exports=Q,Q.displayName="bnf",Q.aliases=["rbnf"];function Q(S){S.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},S.languages.rbnf=S.languages.bnf}},47035:function(Ne){"use strict";Ne.exports=Q,Q.displayName="brainfuck",Q.aliases=[];function Q(S){S.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(Ne){"use strict";Ne.exports=Q,Q.displayName="brightscript",Q.aliases=[];function Q(S){S.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},S.languages.brightscript["directive-statement"].inside.expression.inside=S.languages.brightscript}},85290:function(Ne){"use strict";Ne.exports=Q,Q.displayName="bro",Q.aliases=[];function Q(S){S.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}},7407:function(Ne){"use strict";Ne.exports=Q,Q.displayName="bsl",Q.aliases=[];function Q(S){S.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},S.languages.oscript=S.languages.bsl}},79440:function(Ne){"use strict";Ne.exports=Q,Q.displayName="c",Q.aliases=[];function Q(S){S.languages.c=S.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),S.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),S.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},S.languages.c.string],char:S.languages.c.char,comment:S.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:S.languages.c}}}}),S.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete S.languages.c.boolean}},7110:function(Ne){"use strict";Ne.exports=Q,Q.displayName="cfscript",Q.aliases=[];function Q(S){S.languages.cfscript=S.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),S.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete S.languages.cfscript["class-name"],S.languages.cfc=S.languages.cfscript}},73435:function(Ne,Q,S){"use strict";var B=S(87071);Ne.exports=Z,Z.displayName="chaiscript",Z.aliases=[];function Z(s){s.register(B),s.languages.chaiscript=s.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[s.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),s.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),s.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:s.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(Ne){"use strict";Ne.exports=Q,Q.displayName="cil",Q.aliases=[];function Q(S){S.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}},9720:function(Ne){"use strict";Ne.exports=Q,Q.displayName="clike",Q.aliases=[];function Q(S){S.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}},63663:function(Ne){"use strict";Ne.exports=Q,Q.displayName="clojure",Q.aliases=[];function Q(S){S.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}},92987:function(Ne){"use strict";Ne.exports=Q,Q.displayName="cmake",Q.aliases=[];function Q(S){S.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}},91657:function(Ne){"use strict";Ne.exports=Q,Q.displayName="cobol",Q.aliases=[];function Q(S){S.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}},34367:function(Ne){"use strict";Ne.exports=Q,Q.displayName="coffeescript",Q.aliases=["coffee"];function Q(S){(function(B){var Z=/#(?!\{).+/,s={pattern:/#\{[^}]+\}/,alias:"variable"};B.languages.coffeescript=B.languages.extend("javascript",{comment:Z,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:s}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),B.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Z,interpolation:s}}}),B.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:B.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:s}}]}),B.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete B.languages.coffeescript["template-string"],B.languages.coffee=B.languages.coffeescript})(S)}},35348:function(Ne){"use strict";Ne.exports=Q,Q.displayName="concurnas",Q.aliases=["conc"];function Q(S){S.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},S.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:S.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:S.languages.concurnas},string:/[\s\S]+/}}}),S.languages.conc=S.languages.concurnas}},26841:function(Ne){"use strict";Ne.exports=Q,Q.displayName="coq",Q.aliases=[];function Q(S){(function(B){for(var Z=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,s=0;s<2;s++)Z=Z.replace(/<self>/g,function(){return Z});Z=Z.replace(/<self>/g,"[]"),B.languages.coq={comment:RegExp(Z),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Z})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Z),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(S)}},87071:function(Ne,Q,S){"use strict";var B=S(79440);Ne.exports=Z,Z.displayName="cpp",Z.aliases=[];function Z(s){s.register(B),function(C){var A=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,u=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return A.source});C.languages.cpp=C.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return A.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:A,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),C.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return u})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),C.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:C.languages.cpp}}}}),C.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),C.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:C.languages.extend("cpp",{})}}),C.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},C.languages.cpp["base-clause"])}(s)}},13652:function(Ne,Q,S){"use strict";var B=S(75308);Ne.exports=Z,Z.displayName="crystal",Z.aliases=[];function Z(s){s.register(B),function(C){C.languages.crystal=C.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,C.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),C.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:C.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:C.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(s)}},87648:function(Ne){"use strict";Ne.exports=Q,Q.displayName="csharp",Q.aliases=["dotnet","cs"];function Q(S){(function(B){function Z(Re,le){return Re.replace(/<<(\d+)>>/g,function(xe,pe){return"(?:"+le[+pe]+")"})}function s(Re,le,xe){return RegExp(Z(Re,le),xe||"")}function C(Re,le){for(var xe=0;xe<le;xe++)Re=Re.replace(/<<self>>/g,function(){return"(?:"+Re+")"});return Re.replace(/<<self>>/g,"[^\\s\\S]")}var A={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function u(Re){return"\\b(?:"+Re.trim().replace(/ /g,"|")+")\\b"}var p=u(A.typeDeclaration),b=RegExp(u(A.type+" "+A.typeDeclaration+" "+A.contextual+" "+A.other)),g=u(A.typeDeclaration+" "+A.contextual+" "+A.other),y=u(A.type+" "+A.typeDeclaration+" "+A.other),v=C(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),c=C(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,m=Z(/<<0>>(?:\s*<<1>>)?/.source,[h,v]),E=Z(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[g,m]),T=/\[\s*(?:,\s*)*\]/.source,I=Z(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[E,T]),R=Z(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[v,c,T]),N=Z(/\(<<0>>+(?:,<<0>>+)+\)/.source,[R]),k=Z(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[N,E,T]),L={keyword:b,punctuation:/[<>()?,.:[\]]/},H=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,D=/"(?:\\.|[^\\"\r\n])*"/.source,V=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;B.languages.csharp=B.languages.extend("clike",{string:[{pattern:s(/(^|[^$\\])<<0>>/.source,[V]),lookbehind:!0,greedy:!0},{pattern:s(/(^|[^@$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:s(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[E]),lookbehind:!0,inside:L},{pattern:s(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,k]),lookbehind:!0,inside:L},{pattern:s(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:s(/(\b<<0>>\s+)<<1>>/.source,[p,m]),lookbehind:!0,inside:L},{pattern:s(/(\bcatch\s*\(\s*)<<0>>/.source,[E]),lookbehind:!0,inside:L},{pattern:s(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:s(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[I]),lookbehind:!0,inside:L},{pattern:s(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,y,h]),inside:L}],keyword:b,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),B.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),B.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:s(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),B.languages.insertBefore("csharp","class-name",{namespace:{pattern:s(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:s(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[c]),lookbehind:!0,alias:"class-name",inside:L},"return-type":{pattern:s(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,E]),inside:L,alias:"class-name"},"constructor-invocation":{pattern:s(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:L,alias:"class-name"},"generic-method":{pattern:s(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,v]),inside:{function:s(/^<<0>>/.source,[h]),generic:{pattern:RegExp(v),alias:"class-name",inside:L}}},"type-list":{pattern:s(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[p,m,h,k,b.source,c,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:s(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,c]),lookbehind:!0,greedy:!0,inside:B.languages.csharp},keyword:b,"class-name":{pattern:RegExp(k),greedy:!0,inside:L},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var P=D+"|"+H,U=Z(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[P]),G=C(Z(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[U]),2),J=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ee=Z(/<<0>>(?:\s*\(<<1>>*\))?/.source,[E,G]);B.languages.insertBefore("csharp","class-name",{attribute:{pattern:s(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[J,ee]),lookbehind:!0,greedy:!0,inside:{target:{pattern:s(/^<<0>>(?=\s*:)/.source,[J]),alias:"keyword"},"attribute-arguments":{pattern:s(/\(<<0>>*\)/.source,[G]),inside:B.languages.csharp},"class-name":{pattern:RegExp(E),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ae=/:[^}\r\n]+/.source,oe=C(Z(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[U]),2),ue=Z(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[oe,ae]),se=C(Z(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[P]),2),ye=Z(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[se,ae]);function ve(Re,le){return{interpolation:{pattern:s(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[Re]),lookbehind:!0,inside:{"format-string":{pattern:s(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[le,ae]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:B.languages.csharp}}},string:/[\s\S]+/}}B.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:s(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ue]),lookbehind:!0,greedy:!0,inside:ve(ue,oe)},{pattern:s(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ye]),lookbehind:!0,greedy:!0,inside:ve(ye,se)}],char:{pattern:RegExp(H),greedy:!0}}),B.languages.dotnet=B.languages.cs=B.languages.csharp})(S)}},10617:function(Ne,Q,S){"use strict";var B=S(87648);Ne.exports=Z,Z.displayName="cshtml",Z.aliases=["razor"];function Z(s){s.register(B),function(C){var A=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,u=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function p(I,R){for(var N=0;N<R;N++)I=I.replace(/<self>/g,function(){return"(?:"+I+")"});return I.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+u+")").replace(/<comment>/g,"(?:"+A+")")}var b=p(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),g=p(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),y=p(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),v=p(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),c=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,h=/(?!\d)[^\s>\/=$<%]+/.source+c+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+c+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|"+p(/<\1/.source+c+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+h+")";C.languages.cshtml=C.languages.extend("markup",{});var E=C.languages.insertBefore("csharp","string",{html:{pattern:RegExp(m),greedy:!0,inside:C.languages.cshtml}},{csharp:C.languages.extend("csharp",{})}),T={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:E};C.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[y,/(?:code|functions)\s*/.source+y,/(?:for|foreach|lock|switch|using|while)\s*/.source+b+/\s*/.source+y,/do\s*/.source+y+/\s*while\s*/.source+b+/(?:\s*;)?/.source,/try\s*/.source+y+/\s*catch\s*/.source+b+/\s*/.source+y+/\s*finally\s*/.source+y,/if\s*/.source+b+/\s*/.source+y+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+b+")?"+/\s*/.source+y+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:T}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:T}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+b+")(?:"+/[?!]?\.\w+\b/.source+"|"+b+"|"+g+"|"+v+b+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:T}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),C.languages.razor=C.languages.cshtml}(s)}},5348:function(Ne){"use strict";Ne.exports=Q,Q.displayName="csp",Q.aliases=[];function Q(S){(function(B){function Z(s){return RegExp(/([ \t])/.source+"(?:"+s+")"+/(?=[\s;]|$)/.source,"i")}B.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:Z(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Z(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Z(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Z(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Z(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:Z(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Z(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(S)}},71053:function(Ne){"use strict";Ne.exports=Q,Q.displayName="cssExtras",Q.aliases=[];function Q(S){(function(B){var Z=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,s;B.languages.css.selector={pattern:B.languages.css.selector.pattern,lookbehind:!0,inside:s={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+Z.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[Z,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},B.languages.css.atrule.inside["selector-function-argument"].inside=s,B.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var C={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},A={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};B.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:C,number:A,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:C,number:A})})(S)}},54212:function(Ne){"use strict";Ne.exports=Q,Q.displayName="css",Q.aliases=[];function Q(S){(function(B){var Z=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;B.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Z.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Z.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Z.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Z,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},B.languages.css.atrule.inside.rest=B.languages.css;var s=B.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))})(S)}},69820:function(Ne){"use strict";Ne.exports=Q,Q.displayName="csv",Q.aliases=[];function Q(S){S.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(Ne){"use strict";Ne.exports=Q,Q.displayName="cypher",Q.aliases=[];function Q(S){S.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}},51837:function(Ne){"use strict";Ne.exports=Q,Q.displayName="d",Q.aliases=[];function Q(S){S.languages.d=S.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),S.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),S.languages.insertBefore("d","keyword",{property:/\B@\w*/}),S.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}},4182:function(Ne){"use strict";Ne.exports=Q,Q.displayName="dart",Q.aliases=[];function Q(S){(function(B){var Z=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],s=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,C={pattern:RegExp(s+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};B.languages.dart=B.languages.extend("clike",{"class-name":[C,{pattern:RegExp(s+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:C.inside}],keyword:Z,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),B.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:B.languages.dart}}},string:/[\s\S]+/}},string:void 0}),B.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),B.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":C,keyword:Z,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(S)}},22117:function(Ne){"use strict";Ne.exports=Q,Q.displayName="dataweave",Q.aliases=[];function Q(S){(function(B){B.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(S)}},95627:function(Ne){"use strict";Ne.exports=Q,Q.displayName="dax",Q.aliases=[];function Q(S){S.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}},34265:function(Ne){"use strict";Ne.exports=Q,Q.displayName="dhall",Q.aliases=[];function Q(S){S.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},S.languages.dhall.string.inside.interpolation.inside.expression.inside=S.languages.dhall}},50618:function(Ne){"use strict";Ne.exports=Q,Q.displayName="diff",Q.aliases=[];function Q(S){(function(B){B.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var Z={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Z).forEach(function(s){var C=Z[s],A=[];/^\w+$/.test(s)||A.push(/\w+/.exec(s)[0]),s==="diff"&&A.push("bold"),B.languages.diff[s]={pattern:RegExp("^(?:["+C+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:A,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(s)[0]}}}}),Object.defineProperty(B.languages.diff,"PREFIXES",{value:Z})})(S)}},32126:function(Ne,Q,S){"use strict";var B=S(51478);Ne.exports=Z,Z.displayName="django",Z.aliases=["jinja2"];function Z(s){s.register(B),function(C){C.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var A=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,u=C.languages["markup-templating"];C.hooks.add("before-tokenize",function(p){u.buildPlaceholders(p,"django",A)}),C.hooks.add("after-tokenize",function(p){u.tokenizePlaceholders(p,"django")}),C.languages.jinja2=C.languages.django,C.hooks.add("before-tokenize",function(p){u.buildPlaceholders(p,"jinja2",A)}),C.hooks.add("after-tokenize",function(p){u.tokenizePlaceholders(p,"jinja2")})}(s)}},26737:function(Ne){"use strict";Ne.exports=Q,Q.displayName="dnsZoneFile",Q.aliases=[];function Q(S){S.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},S.languages["dns-zone"]=S.languages["dns-zone-file"]}},90134:function(Ne){"use strict";Ne.exports=Q,Q.displayName="docker",Q.aliases=["dockerfile"];function Q(S){(function(B){var Z=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,s=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Z}),C=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,A=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return C}),u={pattern:RegExp(C),greedy:!0},p={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function b(g,y){return g=g.replace(/<OPT>/g,function(){return A}).replace(/<SP>/g,function(){return s}),RegExp(g,y)}B.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:b(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[u,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:b(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:b(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:b(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:p,string:u,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:p},B.languages.dockerfile=B.languages.docker})(S)}},51348:function(Ne){"use strict";Ne.exports=Q,Q.displayName="dot",Q.aliases=["gv"];function Q(S){(function(B){var Z="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",s={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:B.languages.markup}};function C(A,u){return RegExp(A.replace(/<ID>/g,function(){return Z}),u)}B.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:C(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:s},"attr-value":{pattern:C(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:s},"attr-name":{pattern:C(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:s},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:C(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:s},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},B.languages.gv=B.languages.dot})(S)}},60841:function(Ne){"use strict";Ne.exports=Q,Q.displayName="ebnf",Q.aliases=[];function Q(S){S.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}},42857:function(Ne){"use strict";Ne.exports=Q,Q.displayName="editorconfig",Q.aliases=[];function Q(S){S.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}},81269:function(Ne){"use strict";Ne.exports=Q,Q.displayName="eiffel",Q.aliases=[];function Q(S){S.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}},31134:function(Ne,Q,S){"use strict";var B=S(51478);Ne.exports=Z,Z.displayName="ejs",Z.aliases=["eta"];function Z(s){s.register(B),function(C){C.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:C.languages.javascript}},C.hooks.add("before-tokenize",function(A){var u=/<%(?!%)[\s\S]+?%>/g;C.languages["markup-templating"].buildPlaceholders(A,"ejs",u)}),C.hooks.add("after-tokenize",function(A){C.languages["markup-templating"].tokenizePlaceholders(A,"ejs")}),C.languages.eta=C.languages.ejs}(s)}},83125:function(Ne){"use strict";Ne.exports=Q,Q.displayName="elixir",Q.aliases=[];function Q(S){S.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},S.languages.elixir.string.forEach(function(B){B.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:S.languages.elixir}}}})}},9438:function(Ne){"use strict";Ne.exports=Q,Q.displayName="elm",Q.aliases=[];function Q(S){S.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}},27771:function(Ne,Q,S){"use strict";var B=S(75308),Z=S(51478);Ne.exports=s,s.displayName="erb",s.aliases=[];function s(C){C.register(B),C.register(Z),function(A){A.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:A.languages.ruby}},A.hooks.add("before-tokenize",function(u){var p=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;A.languages["markup-templating"].buildPlaceholders(u,"erb",p)}),A.hooks.add("after-tokenize",function(u){A.languages["markup-templating"].tokenizePlaceholders(u,"erb")})}(C)}},86549:function(Ne){"use strict";Ne.exports=Q,Q.displayName="erlang",Q.aliases=[];function Q(S){S.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}},37079:function(Ne,Q,S){"use strict";var B=S(33978),Z=S(51478);Ne.exports=s,s.displayName="etlua",s.aliases=[];function s(C){C.register(B),C.register(Z),function(A){A.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:A.languages.lua}},A.hooks.add("before-tokenize",function(u){var p=/<%[\s\S]+?%>/g;A.languages["markup-templating"].buildPlaceholders(u,"etlua",p)}),A.hooks.add("after-tokenize",function(u){A.languages["markup-templating"].tokenizePlaceholders(u,"etlua")})}(C)}},59250:function(Ne){"use strict";Ne.exports=Q,Q.displayName="excelFormula",Q.aliases=[];function Q(S){S.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},S.languages.xlsx=S.languages.xls=S.languages["excel-formula"]}},81226:function(Ne){"use strict";Ne.exports=Q,Q.displayName="factor",Q.aliases=[];function Q(S){(function(B){var Z={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},s={number:/\\[^\s']|%\w/},C={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Z},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Z},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Z}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:s.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:s},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:s}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:s}},A=function(g){return(g+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},u=function(g){return new RegExp("(^|\\s)(?:"+g.map(A).join("|")+")(?=\\s|$)")},p={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(p).forEach(function(g){C[g].pattern=u(p[g])});var b=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];C.combinators.pattern=u(b),B.languages.factor=C})(S)}},65245:function(Ne){"use strict";Ne.exports=Q,Q.displayName="$false",Q.aliases=[];function Q(S){(function(B){B.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(S)}},25040:function(Ne){"use strict";Ne.exports=Q,Q.displayName="firestoreSecurityRules",Q.aliases=[];function Q(S){S.languages["firestore-security-rules"]=S.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete S.languages["firestore-security-rules"]["class-name"],S.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}},40284:function(Ne){"use strict";Ne.exports=Q,Q.displayName="flow",Q.aliases=[];function Q(S){(function(B){B.languages.flow=B.languages.extend("javascript",{}),B.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),B.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete B.languages.flow.parameter,B.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(B.languages.flow.keyword)||(B.languages.flow.keyword=[B.languages.flow.keyword]),B.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(S)}},39187:function(Ne){"use strict";Ne.exports=Q,Q.displayName="fortran",Q.aliases=[];function Q(S){S.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}},34302:function(Ne){"use strict";Ne.exports=Q,Q.displayName="fsharp",Q.aliases=[];function Q(S){S.languages.fsharp=S.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),S.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),S.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),S.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:S.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}},90515:function(Ne,Q,S){"use strict";var B=S(51478);Ne.exports=Z,Z.displayName="ftl",Z.aliases=[];function Z(s){s.register(B),function(C){for(var A=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,u=0;u<2;u++)A=A.replace(/<expr>/g,function(){return A});A=A.replace(/<expr>/g,/[^\s\S]/.source);var p={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return A})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return A})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};p.string[1].inside.interpolation.inside.rest=p,C.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:p}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:p}}}},C.hooks.add("before-tokenize",function(b){var g=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return A}),"gi");C.languages["markup-templating"].buildPlaceholders(b,"ftl",g)}),C.hooks.add("after-tokenize",function(b){C.languages["markup-templating"].tokenizePlaceholders(b,"ftl")})}(s)}},33534:function(Ne){"use strict";Ne.exports=Q,Q.displayName="gap",Q.aliases=[];function Q(S){S.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},S.languages.gap.shell.inside.gap.inside=S.languages.gap}},9885:function(Ne){"use strict";Ne.exports=Q,Q.displayName="gcode",Q.aliases=[];function Q(S){S.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}},76364:function(Ne){"use strict";Ne.exports=Q,Q.displayName="gdscript",Q.aliases=[];function Q(S){S.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}},56452:function(Ne){"use strict";Ne.exports=Q,Q.displayName="gedcom",Q.aliases=[];function Q(S){S.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}},8477:function(Ne){"use strict";Ne.exports=Q,Q.displayName="gherkin",Q.aliases=[];function Q(S){(function(B){var Z=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;B.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+Z+")(?:"+Z+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Z),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(S)}},58230:function(Ne){"use strict";Ne.exports=Q,Q.displayName="git",Q.aliases=[];function Q(S){S.languages.git={comment:/^#.*/m,deleted:/^[-].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}},66192:function(Ne,Q,S){"use strict";var B=S(79440);Ne.exports=Z,Z.displayName="glsl",Z.aliases=[];function Z(s){s.register(B),s.languages.glsl=s.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}},81084:function(Ne){"use strict";Ne.exports=Q,Q.displayName="gml",Q.aliases=[];function Q(S){S.languages.gamemakerlanguage=S.languages.gml=S.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}},50318:function(Ne){"use strict";Ne.exports=Q,Q.displayName="gn",Q.aliases=["gni"];function Q(S){S.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},S.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=S.languages.gn,S.languages.gni=S.languages.gn}},95769:function(Ne){"use strict";Ne.exports=Q,Q.displayName="goModule",Q.aliases=[];function Q(S){S.languages["go-mod"]=S.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}},14155:function(Ne){"use strict";Ne.exports=Q,Q.displayName="go",Q.aliases=[];function Q(S){S.languages.go=S.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),S.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete S.languages.go["class-name"]}},92823:function(Ne){"use strict";Ne.exports=Q,Q.displayName="graphql",Q.aliases=[];function Q(S){S.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:S.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},S.hooks.add("after-tokenize",function(Z){if(Z.language!=="graphql")return;var s=Z.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),C=0;function A(T){return s[C+T]}function u(T,I){I=I||0;for(var R=0;R<T.length;R++){var N=A(R+I);if(!N||N.type!==T[R])return!1}return!0}function p(T,I){for(var R=1,N=C;N<s.length;N++){var k=s[N],L=k.content;if(k.type==="punctuation"&&typeof L=="string"){if(T.test(L))R++;else if(I.test(L)&&(R--,R===0))return N}}return-1}function b(T,I){var R=T.alias;R?Array.isArray(R)||(T.alias=R=[R]):T.alias=R=[],R.push(I)}for(;C<s.length;){var g=s[C++];if(g.type==="keyword"&&g.content==="mutation"){var y=[];if(u(["definition-mutation","punctuation"])&&A(1).content==="("){C+=2;var v=p(/^\($/,/^\)$/);if(v===-1)continue;for(;C<v;C++){var c=A(0);c.type==="variable"&&(b(c,"variable-input"),y.push(c.content))}C=v+1}if(u(["punctuation","property-query"])&&A(0).content==="{"&&(C++,b(A(0),"property-mutation"),y.length>0)){var h=p(/^\{$/,/^\}$/);if(h===-1)continue;for(var m=C;m<h;m++){var E=s[m];E.type==="variable"&&y.indexOf(E.content)>=0&&b(E,"variable-input")}}}}})}},63092:function(Ne){"use strict";Ne.exports=Q,Q.displayName="groovy",Q.aliases=[];function Q(S){S.languages.groovy=S.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),S.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),S.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),S.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),S.hooks.add("wrap",function(B){if(B.language==="groovy"&&B.type==="string"){var Z=B.content.value[0];if(Z!="'"){var s=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Z==="$"&&(s=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),B.content.value=B.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),B.content=S.highlight(B.content.value,{expression:{pattern:s,lookbehind:!0,inside:S.languages.groovy}}),B.classes.push(Z==="/"?"regex":"gstring")}}})}},21550:function(Ne,Q,S){"use strict";var B=S(75308);Ne.exports=Z,Z.displayName="haml",Z.aliases=[];function Z(s){s.register(B),function(C){C.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:C.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:C.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:C.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:C.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:C.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:C.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:C.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var A="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",u=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],p={},b=0,g=u.length;b<g;b++){var y=u[b];y=typeof y=="string"?{filter:y,language:y}:y,C.languages[y.language]&&(p["filter-"+y.filter]={pattern:RegExp(A.replace("{{filter_name}}",function(){return y.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[y.language,"language-"+y.language],inside:C.languages[y.language]}}})}C.languages.insertBefore("haml","filter",p)}(s)}},29710:function(Ne,Q,S){"use strict";var B=S(51478);Ne.exports=Z,Z.displayName="handlebars",Z.aliases=["hbs"];function Z(s){s.register(B),function(C){C.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},C.hooks.add("before-tokenize",function(A){var u=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;C.languages["markup-templating"].buildPlaceholders(A,"handlebars",u)}),C.hooks.add("after-tokenize",function(A){C.languages["markup-templating"].tokenizePlaceholders(A,"handlebars")}),C.languages.hbs=C.languages.handlebars}(s)}},2050:function(Ne){"use strict";Ne.exports=Q,Q.displayName="haskell",Q.aliases=["hs"];function Q(S){S.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},S.languages.hs=S.languages.haskell}},67967:function(Ne){"use strict";Ne.exports=Q,Q.displayName="haxe",Q.aliases=[];function Q(S){S.languages.haxe=S.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),S.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:S.languages.haxe}}},string:/[\s\S]+/}}}),S.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:S.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),S.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}},29138:function(Ne){"use strict";Ne.exports=Q,Q.displayName="hcl",Q.aliases=[];function Q(S){S.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}},67915:function(Ne,Q,S){"use strict";var B=S(79440);Ne.exports=Z,Z.displayName="hlsl",Z.aliases=[];function Z(s){s.register(B),s.languages.hlsl=s.languages.extend("c",{"class-name":[s.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}},54853:function(Ne){"use strict";Ne.exports=Q,Q.displayName="hoon",Q.aliases=[];function Q(S){S.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}},68330:function(Ne){"use strict";Ne.exports=Q,Q.displayName="hpkp",Q.aliases=[];function Q(S){S.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(Ne){"use strict";Ne.exports=Q,Q.displayName="hsts",Q.aliases=[];function Q(S){S.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(Ne){"use strict";Ne.exports=Q,Q.displayName="http",Q.aliases=[];function Q(S){(function(B){function Z(y){return RegExp("(^(?:"+y+"):[ ]*(?![ ]))[^]+","i")}B.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:B.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:Z(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:B.languages.csp},{pattern:Z(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:B.languages.hpkp},{pattern:Z(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:B.languages.hsts},{pattern:Z(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var s=B.languages,C={"application/javascript":s.javascript,"application/json":s.json||s.javascript,"application/xml":s.xml,"text/xml":s.xml,"text/html":s.html,"text/css":s.css,"text/plain":s.plain},A={"application/json":!0,"application/xml":!0};function u(y){var v=y.replace(/^[a-z]+\//,""),c="\\w+/(?:[\\w.-]+\\+)+"+v+"(?![+\\w.-])";return"(?:"+y+"|"+c+")"}var p;for(var b in C)if(C[b]){p=p||{};var g=A[b]?u(b):b;p[b.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+g+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:C[b]}}p&&B.languages.insertBefore("http","header",p)})(S)}},72252:function(Ne){"use strict";Ne.exports=Q,Q.displayName="ichigojam",Q.aliases=[];function Q(S){S.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}},78634:function(Ne){"use strict";Ne.exports=Q,Q.displayName="icon",Q.aliases=[];function Q(S){S.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}},43583:function(Ne){"use strict";Ne.exports=Q,Q.displayName="icuMessageFormat",Q.aliases=[];function Q(S){(function(B){function Z(b,g){return g<=0?/[]/.source:b.replace(/<SELF>/g,function(){return Z(b,g-1)})}var s=/'[{}:=,](?:[^']|'')*'(?!')/,C={pattern:/''/,greedy:!0,alias:"operator"},A={pattern:s,greedy:!0,inside:{escape:C}},u=Z(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return s.source}),8),p={pattern:RegExp(u),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};B.languages["icu-message-format"]={argument:{pattern:RegExp(u),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":p,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":p,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+Z(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:C,string:A},p.inside.message.inside=B.languages["icu-message-format"],B.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=B.languages["icu-message-format"]})(S)}},23328:function(Ne,Q,S){"use strict";var B=S(2050);Ne.exports=Z,Z.displayName="idris",Z.aliases=["idr"];function Z(s){s.register(B),s.languages.idris=s.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),s.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),s.languages.idr=s.languages.idris}},74494:function(Ne){"use strict";Ne.exports=Q,Q.displayName="iecst",Q.aliases=[];function Q(S){S.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}},46745:function(Ne){"use strict";Ne.exports=Q,Q.displayName="ignore",Q.aliases=["gitignore","hgignore","npmignore"];function Q(S){(function(B){B.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},B.languages.gitignore=B.languages.ignore,B.languages.hgignore=B.languages.ignore,B.languages.npmignore=B.languages.ignore})(S)}},22152:function(Ne){"use strict";Ne.exports=Q,Q.displayName="inform7",Q.aliases=[];function Q(S){S.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},S.languages.inform7.string.inside.substitution.inside.rest=S.languages.inform7,S.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(Ne){"use strict";Ne.exports=Q,Q.displayName="ini",Q.aliases=[];function Q(S){S.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}},26619:function(Ne){"use strict";Ne.exports=Q,Q.displayName="io",Q.aliases=[];function Q(S){S.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}},53990:function(Ne){"use strict";Ne.exports=Q,Q.displayName="j",Q.aliases=[];function Q(S){S.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}},7093:function(Ne){"use strict";Ne.exports=Q,Q.displayName="java",Q.aliases=[];function Q(S){(function(B){var Z=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,s=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,C={pattern:RegExp(s+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};B.languages.java=B.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[C,{pattern:RegExp(s+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:C.inside}],keyword:Z,function:[B.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),B.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),B.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":C,keyword:Z,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return Z.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(S)}},4005:function(Ne,Q,S){"use strict";var B=S(7093),Z=S(53510);Ne.exports=s,s.displayName="javadoc",s.aliases=[];function s(C){C.register(B),C.register(Z),function(A){var u=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,p=/#\s*\w+(?:\s*\([^()]*\))?/.source,b=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return p});A.languages.javadoc=A.languages.extend("javadoclike",{}),A.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+b+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:A.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:u,lookbehind:!0,inside:A.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:u,lookbehind:!0,inside:{tag:A.languages.markup.tag,entity:A.languages.markup.entity,code:{pattern:/.+/,inside:A.languages.java,alias:"language-java"}}}}}],tag:A.languages.markup.tag,entity:A.languages.markup.entity}),A.languages.javadoclike.addSupport("java",A.languages.javadoc)}(C)}},53510:function(Ne){"use strict";Ne.exports=Q,Q.displayName="javadoclike",Q.aliases=[];function Q(S){(function(B){var Z=B.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function s(A,u){var p="doc-comment",b=B.languages[A];if(b){var g=b[p];if(!g){var y={};y[p]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},b=B.languages.insertBefore(A,"comment",y),g=b[p]}if(g instanceof RegExp&&(g=b[p]={pattern:g}),Array.isArray(g))for(var v=0,c=g.length;v<c;v++)g[v]instanceof RegExp&&(g[v]={pattern:g[v]}),u(g[v]);else u(g)}}function C(A,u){typeof A=="string"&&(A=[A]),A.forEach(function(p){s(p,function(b){b.inside||(b.inside={}),b.inside.rest=u})})}Object.defineProperty(Z,"addSupport",{value:C}),Z.addSupport(["java","javascript","php"],Z)})(S)}},88786:function(Ne){"use strict";Ne.exports=Q,Q.displayName="javascript",Q.aliases=["js"];function Q(S){S.languages.javascript=S.languages.extend("clike",{"class-name":[S.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),S.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,S.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:S.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:S.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:S.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:S.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:S.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),S.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:S.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),S.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),S.languages.markup&&(S.languages.markup.tag.addInlined("script","javascript"),S.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),S.languages.js=S.languages.javascript}},24799:function(Ne){"use strict";Ne.exports=Q,Q.displayName="javastacktrace",Q.aliases=[];function Q(S){S.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}},97443:function(Ne){"use strict";Ne.exports=Q,Q.displayName="jexl",Q.aliases=[];function Q(S){S.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}},80746:function(Ne){"use strict";Ne.exports=Q,Q.displayName="jolie",Q.aliases=[];function Q(S){S.languages.jolie=S.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),S.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}},17015:function(Ne){"use strict";Ne.exports=Q,Q.displayName="jq",Q.aliases=[];function Q(S){(function(B){var Z=/\\\((?:[^()]|\([^()]*\))*\)/.source,s=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Z})),C={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Z),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},A=B.languages.jq={comment:/#.*/,property:{pattern:RegExp(s.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:C},string:{pattern:s,lookbehind:!0,greedy:!0,inside:C},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};C.interpolation.inside.content.inside=A})(S)}},89246:function(Ne){"use strict";Ne.exports=Q,Q.displayName="jsExtras",Q.aliases=[];function Q(S){(function(B){B.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+B.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),B.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+B.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),B.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function Z(b,g){return RegExp(b.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),g)}B.languages.insertBefore("javascript","keyword",{imports:{pattern:Z(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:B.languages.javascript},exports:{pattern:Z(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:B.languages.javascript}}),B.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),B.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),B.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:Z(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var s=["function","function-variable","method","method-variable","property-access"],C=0;C<s.length;C++){var A=s[C],u=B.languages.javascript[A];B.util.type(u)==="RegExp"&&(u=B.languages.javascript[A]={pattern:u});var p=u.inside||{};u.inside=p,p["maybe-class-name"]=/^[A-Z][\s\S]*/}})(S)}},487:function(Ne){"use strict";Ne.exports=Q,Q.displayName="jsTemplates",Q.aliases=[];function Q(S){(function(B){var Z=B.languages.javascript["template-string"],s=Z.pattern.source,C=Z.inside.interpolation,A=C.inside["interpolation-punctuation"],u=C.pattern.source;function p(m,E){if(B.languages[m])return{pattern:RegExp("((?:"+E+")\\s*)"+s),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}B.languages.javascript["template-string"]=[p("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),p("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),p("svg",/\bsvg/.source),p("markdown",/\b(?:markdown|md)/.source),p("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),p("sql",/\bsql/.source),Z].filter(Boolean);function b(m,E){return"___"+E.toUpperCase()+"_"+m+"___"}function g(m,E,T){var I={code:m,grammar:E,language:T};return B.hooks.run("before-tokenize",I),I.tokens=B.tokenize(I.code,I.grammar),B.hooks.run("after-tokenize",I),I.tokens}function y(m){var E={};E["interpolation-punctuation"]=A;var T=B.tokenize(m,E);if(T.length===3){var I=[1,1];I.push.apply(I,g(T[1],B.languages.javascript,"javascript")),T.splice.apply(T,I)}return new B.Token("interpolation",T,C.alias,m)}function v(m,E,T){var I=B.tokenize(m,{interpolation:{pattern:RegExp(u),lookbehind:!0}}),R=0,N={},k=I.map(function(V){if(typeof V=="string")return V;for(var P=V.content,U;m.indexOf(U=b(R++,T))!==-1;);return N[U]=P,U}).join(""),L=g(k,E,T),H=Object.keys(N);R=0;function D(V){for(var P=0;P<V.length;P++){if(R>=H.length)return;var U=V[P];if(typeof U=="string"||typeof U.content=="string"){var G=H[R],J=typeof U=="string"?U:U.content,ee=J.indexOf(G);if(ee!==-1){++R;var ae=J.substring(0,ee),oe=y(N[G]),ue=J.substring(ee+G.length),se=[];if(ae&&se.push(ae),se.push(oe),ue){var ye=[ue];D(ye),se.push.apply(se,ye)}typeof U=="string"?(V.splice.apply(V,[P,1].concat(se)),P+=se.length-1):U.content=se}}else{var ve=U.content;Array.isArray(ve)?D(ve):D([ve])}}}return D(L),new B.Token(T,L,"language-"+T,m)}var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};B.hooks.add("after-tokenize",function(m){if(!(m.language in c))return;function E(T){for(var I=0,R=T.length;I<R;I++){var N=T[I];if(typeof N!="string"){var k=N.content;if(!Array.isArray(k)){typeof k!="string"&&E([k]);continue}if(N.type==="template-string"){var L=k[1];if(k.length===3&&typeof L!="string"&&L.type==="embedded-code"){var H=h(L),D=L.alias,V=Array.isArray(D)?D[0]:D,P=B.languages[V];if(!P)continue;k[1]=v(H,P,V)}}else E(k)}}}E(m.tokens)});function h(m){return typeof m=="string"?m:Array.isArray(m)?m.map(h).join(""):h(m.content)}})(S)}},79539:function(Ne,Q,S){"use strict";var B=S(53510),Z=S(92784);Ne.exports=s,s.displayName="jsdoc",s.aliases=[];function s(C){C.register(B),C.register(Z),function(A){var u=A.languages.javascript,p=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,b="(@(?:arg|argument|param|property)\\s+(?:"+p+"\\s+)?)";A.languages.jsdoc=A.languages.extend("javadoclike",{parameter:{pattern:RegExp(b+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),A.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(b+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:u,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return p})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+p),lookbehind:!0,inside:{string:u.string,number:u.number,boolean:u.boolean,keyword:A.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:u,alias:"language-javascript"}}}}),A.languages.javadoclike.addSupport("javascript",A.languages.jsdoc)}(C)}},15628:function(Ne){"use strict";Ne.exports=Q,Q.displayName="json",Q.aliases=["webmanifest"];function Q(S){S.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},S.languages.webmanifest=S.languages.json}},14320:function(Ne,Q,S){"use strict";var B=S(15628);Ne.exports=Z,Z.displayName="json5",Z.aliases=[];function Z(s){s.register(B),function(C){var A=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;C.languages.json5=C.languages.extend("json",{property:[{pattern:RegExp(A.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:A,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(s)}},73222:function(Ne,Q,S){"use strict";var B=S(15628);Ne.exports=Z,Z.displayName="jsonp",Z.aliases=[];function Z(s){s.register(B),s.languages.jsonp=s.languages.extend("json",{punctuation:/[{}[\]();,.]/}),s.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(Ne){"use strict";Ne.exports=Q,Q.displayName="jsstacktrace",Q.aliases=[];function Q(S){S.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}},24103:function(Ne){"use strict";Ne.exports=Q,Q.displayName="jsx",Q.aliases=[];function Q(S){(function(B){var Z=B.util.clone(B.languages.javascript),s=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,C=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,A=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(g,y){return g=g.replace(/<S>/g,function(){return s}).replace(/<BRACES>/g,function(){return C}).replace(/<SPREAD>/g,function(){return A}),RegExp(g,y)}A=u(A).source,B.languages.jsx=B.languages.extend("markup",Z),B.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),B.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,B.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,B.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,B.languages.jsx.tag.inside.comment=Z.comment,B.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:B.languages.jsx}},B.languages.jsx.tag),B.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:B.languages.jsx}}},B.languages.jsx.tag);var p=function(g){return g?typeof g=="string"?g:typeof g.content=="string"?g.content:g.content.map(p).join(""):""},b=function(g){for(var y=[],v=0;v<g.length;v++){var c=g[v],h=!1;if(typeof c!="string"&&(c.type==="tag"&&c.content[0]&&c.content[0].type==="tag"?c.content[0].content[0].content==="</"?y.length>0&&y[y.length-1].tagName===p(c.content[0].content[1])&&y.pop():c.content[c.content.length-1].content==="/>"||y.push({tagName:p(c.content[0].content[1]),openedBraces:0}):y.length>0&&c.type==="punctuation"&&c.content==="{"?y[y.length-1].openedBraces++:y.length>0&&y[y.length-1].openedBraces>0&&c.type==="punctuation"&&c.content==="}"?y[y.length-1].openedBraces--:h=!0),(h||typeof c=="string")&&y.length>0&&y[y.length-1].openedBraces===0){var m=p(c);v<g.length-1&&(typeof g[v+1]=="string"||g[v+1].type==="plain-text")&&(m+=p(g[v+1]),g.splice(v+1,1)),v>0&&(typeof g[v-1]=="string"||g[v-1].type==="plain-text")&&(m=p(g[v-1])+m,g.splice(v-1,1),v--),g[v]=new B.Token("plain-text",m,null,m)}c.content&&typeof c.content!="string"&&b(c.content)}};B.hooks.add("after-tokenize",function(g){g.language!=="jsx"&&g.language!=="tsx"||b(g.tokens)})})(S)}},40604:function(Ne){"use strict";Ne.exports=Q,Q.displayName="julia",Q.aliases=[];function Q(S){S.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}},23109:function(Ne){"use strict";Ne.exports=Q,Q.displayName="keepalived",Q.aliases=[];function Q(S){S.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}},32082:function(Ne){"use strict";Ne.exports=Q,Q.displayName="keyman",Q.aliases=[];function Q(S){S.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}},77674:function(Ne){"use strict";Ne.exports=Q,Q.displayName="kotlin",Q.aliases=["kt","kts"];function Q(S){(function(B){B.languages.kotlin=B.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete B.languages.kotlin["class-name"];var Z={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:B.languages.kotlin}};B.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:Z},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Z},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete B.languages.kotlin.string,B.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),B.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),B.languages.kt=B.languages.kotlin,B.languages.kts=B.languages.kotlin})(S)}},37524:function(Ne){"use strict";Ne.exports=Q,Q.displayName="kumir",Q.aliases=["kum"];function Q(S){(function(B){var Z=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function s(C,A){return RegExp(C.replace(/<nonId>/g,Z),A)}B.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:s(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:s(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:s(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:s(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:s(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:s(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:s(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:s(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},B.languages.kum=B.languages.kumir})(S)}},6658:function(Ne){"use strict";Ne.exports=Q,Q.displayName="kusto",Q.aliases=[];function Q(S){S.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}},24824:function(Ne){"use strict";Ne.exports=Q,Q.displayName="latex",Q.aliases=["tex","context"];function Q(S){(function(B){var Z=/\\(?:[^a-z()[\]]|[a-z*]+)/i,s={"equation-command":{pattern:Z,alias:"regex"}};B.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:s,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:s,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:Z,alias:"selector"},punctuation:/[[\]{}&]/},B.languages.tex=B.languages.latex,B.languages.context=B.languages.latex})(S)}},22776:function(Ne,Q,S){"use strict";var B=S(51478),Z=S(53852);Ne.exports=s,s.displayName="latte",s.aliases=[];function s(C){C.register(B),C.register(Z),function(A){A.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:A.languages.php}};var u=A.languages.extend("markup",{});A.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:A.languages.php}}}}}},u.tag),A.hooks.add("before-tokenize",function(p){if(p.language==="latte"){var b=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;A.languages["markup-templating"].buildPlaceholders(p,"latte",b),p.grammar=u}}),A.hooks.add("after-tokenize",function(p){A.languages["markup-templating"].tokenizePlaceholders(p,"latte")})}(C)}},89700:function(Ne){"use strict";Ne.exports=Q,Q.displayName="less",Q.aliases=[];function Q(S){S.languages.less=S.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),S.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(Ne,Q,S){"use strict";var B=S(48780);Ne.exports=Z,Z.displayName="lilypond",Z.aliases=[];function Z(s){s.register(B),function(C){for(var A=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,u=5,p=0;p<u;p++)A=A.replace(/<expr>/g,function(){return A});A=A.replace(/<expr>/g,/[^\s\S]/.source);var b=C.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return A}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:C.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};b["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=b,C.languages.ly=b}(s)}},39940:function(Ne,Q,S){"use strict";var B=S(51478);Ne.exports=Z,Z.displayName="liquid",Z.aliases=[];function Z(s){s.register(B),s.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},s.hooks.add("before-tokenize",function(C){var A=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,u=!1;s.languages["markup-templating"].buildPlaceholders(C,"liquid",A,function(p){var b=/^\{%-?\s*(\w+)/.exec(p);if(b){var g=b[1];if(g==="raw"&&!u)return u=!0,!0;if(g==="endraw")return u=!1,!0}return!u})}),s.hooks.add("after-tokenize",function(C){s.languages["markup-templating"].tokenizePlaceholders(C,"liquid")})}},34973:function(Ne){"use strict";Ne.exports=Q,Q.displayName="lisp",Q.aliases=[];function Q(S){(function(B){function Z(m){return RegExp(/(\()/.source+"(?:"+m+")"+/(?=[\s\)])/.source)}function s(m){return RegExp(/([\s([])/.source+"(?:"+m+")"+/(?=[\s)])/.source)}var C=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,A="&"+C,u="(\\()",p="(?=\\))",b="(?=\\s)",g=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,y={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+C+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+C),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+C),alias:"property"},splice:{pattern:RegExp(",@?"+C),alias:["symbol","variable"]},keyword:[{pattern:RegExp(u+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+b),lookbehind:!0},{pattern:RegExp(u+"(?:append|by|collect|concat|do|finally|for|in|return)"+b),lookbehind:!0}],declare:{pattern:Z(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Z(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:s(/nil|t/.source),lookbehind:!0},number:{pattern:s(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(u+"def(?:const|custom|group|var)\\s+"+C),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(C)}},defun:{pattern:RegExp(u+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+C+/\s+\(/.source+g+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+C),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(u+"lambda\\s+\\(\\s*(?:&?"+C+"(?:\\s+&?"+C+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(u+C),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},v={"lisp-marker":RegExp(A),varform:{pattern:RegExp(/\(/.source+C+/\s+(?=\S)/.source+g+/\)/.source),inside:y},argument:{pattern:RegExp(/(^|[\s(])/.source+C),lookbehind:!0,alias:"variable"},rest:y},c="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(u+g+p),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+c),inside:v},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+c),inside:v},keys:{pattern:RegExp("&key\\s+"+c+"(?:\\s+&allow-other-keys)?"),inside:v},argument:{pattern:RegExp(C),alias:"variable"},punctuation:/[()]/}};y.lambda.inside.arguments=h,y.defun.inside.arguments=B.util.clone(h),y.defun.inside.arguments.inside.sublist=h,B.languages.lisp=y,B.languages.elisp=y,B.languages.emacs=y,B.languages["emacs-lisp"]=y})(S)}},98135:function(Ne){"use strict";Ne.exports=Q,Q.displayName="livescript",Q.aliases=[];function Q(S){S.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},S.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=S.languages.livescript}},36907:function(Ne){"use strict";Ne.exports=Q,Q.displayName="llvm",Q.aliases=[];function Q(S){(function(B){B.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(S)}},3567:function(Ne){"use strict";Ne.exports=Q,Q.displayName="log",Q.aliases=[];function Q(S){S.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:S.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}},23763:function(Ne){"use strict";Ne.exports=Q,Q.displayName="lolcode",Q.aliases=[];function Q(S){S.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}},33978:function(Ne){"use strict";Ne.exports=Q,Q.displayName="lua",Q.aliases=[];function Q(S){S.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}},40472:function(Ne){"use strict";Ne.exports=Q,Q.displayName="magma",Q.aliases=[];function Q(S){S.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}},44695:function(Ne){"use strict";Ne.exports=Q,Q.displayName="makefile",Q.aliases=[];function Q(S){S.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}},53885:function(Ne){"use strict";Ne.exports=Q,Q.displayName="markdown",Q.aliases=["md"];function Q(S){(function(B){var Z=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(v){return v=v.replace(/<inner>/g,function(){return Z}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+v+")")}var C=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,A=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return C}),u=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;B.languages.markdown=B.languages.extend("markup",{}),B.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:B.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+A+u+"(?:"+A+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+A+u+")(?:"+A+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(C),inside:B.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+A+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+A+"$"),inside:{"table-header":{pattern:RegExp(C),alias:"important",inside:B.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(v){["url","bold","italic","strike","code-snippet"].forEach(function(c){v!==c&&(B.languages.markdown[v].inside.content.inside[c]=B.languages.markdown[c])})}),B.hooks.add("after-tokenize",function(v){if(v.language!=="markdown"&&v.language!=="md")return;function c(h){if(!(!h||typeof h=="string"))for(var m=0,E=h.length;m<E;m++){var T=h[m];if(T.type!=="code"){c(T.content);continue}var I=T.content[1],R=T.content[3];if(I&&R&&I.type==="code-language"&&R.type==="code-block"&&typeof I.content=="string"){var N=I.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");N=(/[a-z][\w-]*/i.exec(N)||[""])[0].toLowerCase();var k="language-"+N;R.alias?typeof R.alias=="string"?R.alias=[R.alias,k]:R.alias.push(k):R.alias=[k]}}}c(v.tokens)}),B.hooks.add("wrap",function(v){if(v.type==="code-block"){for(var c="",h=0,m=v.classes.length;h<m;h++){var E=v.classes[h],T=/language-(.+)/.exec(E);if(T){c=T[1];break}}var I=B.languages[c];if(I)v.content=B.highlight(y(v.content.value),I,c);else if(c&&c!=="none"&&B.plugins.autoloader){var R="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);v.attributes.id=R,B.plugins.autoloader.loadLanguages(c,function(){var N=document.getElementById(R);N&&(N.innerHTML=B.highlight(N.textContent,B.languages[c],c))})}}});var p=RegExp(B.languages.markup.tag.pattern.source,"gi"),b={amp:"&",lt:"<",gt:">",quot:'"'},g=String.fromCodePoint||String.fromCharCode;function y(v){var c=v.replace(p,"");return c=c.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(h,m){if(m=m.toLowerCase(),m[0]==="#"){var E;return m[1]==="x"?E=parseInt(m.slice(2),16):E=Number(m.slice(1)),g(E)}else{var T=b[m];return T||h}}),c}B.languages.md=B.languages.markdown})(S)}},51478:function(Ne){"use strict";Ne.exports=Q,Q.displayName="markupTemplating",Q.aliases=[];function Q(S){(function(B){function Z(s,C){return"___"+s.toUpperCase()+C+"___"}Object.defineProperties(B.languages["markup-templating"]={},{buildPlaceholders:{value:function(s,C,A,u){if(s.language===C){var p=s.tokenStack=[];s.code=s.code.replace(A,function(b){if(typeof u=="function"&&!u(b))return b;for(var g=p.length,y;s.code.indexOf(y=Z(C,g))!==-1;)++g;return p[g]=b,y}),s.grammar=B.languages.markup}}},tokenizePlaceholders:{value:function(s,C){if(s.language!==C||!s.tokenStack)return;s.grammar=B.languages[C];var A=0,u=Object.keys(s.tokenStack);function p(b){for(var g=0;g<b.length&&!(A>=u.length);g++){var y=b[g];if(typeof y=="string"||y.content&&typeof y.content=="string"){var v=u[A],c=s.tokenStack[v],h=typeof y=="string"?y:y.content,m=Z(C,v),E=h.indexOf(m);if(E>-1){++A;var T=h.substring(0,E),I=new B.Token(C,B.tokenize(c,s.grammar),"language-"+C,c),R=h.substring(E+m.length),N=[];T&&N.push.apply(N,p([T])),N.push(I),R&&N.push.apply(N,p([R])),typeof y=="string"?b.splice.apply(b,[g,1].concat(N)):y.content=N}}else y.content&&p(y.content)}return b}p(s.tokens)}}})})(S)}},70614:function(Ne){"use strict";Ne.exports=Q,Q.displayName="markup",Q.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function Q(S){S.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},S.languages.markup.tag.inside["attr-value"].inside.entity=S.languages.markup.entity,S.languages.markup.doctype.inside["internal-subset"].inside=S.languages.markup,S.hooks.add("wrap",function(B){B.type==="entity"&&(B.attributes.title=B.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(S.languages.markup.tag,"addInlined",{value:function(Z,s){var C={};C["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:S.languages[s]},C.cdata=/^<!\[CDATA\[|\]\]>$/i;var A={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:C}};A["language-"+s]={pattern:/[\s\S]+/,inside:S.languages[s]};var u={};u[Z]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Z}),"i"),lookbehind:!0,greedy:!0,inside:A},S.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(S.languages.markup.tag,"addAttribute",{value:function(B,Z){S.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+B+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[Z,"language-"+Z],inside:S.languages[Z]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),S.languages.html=S.languages.markup,S.languages.mathml=S.languages.markup,S.languages.svg=S.languages.markup,S.languages.xml=S.languages.extend("markup",{}),S.languages.ssml=S.languages.xml,S.languages.atom=S.languages.xml,S.languages.rss=S.languages.xml}},16928:function(Ne){"use strict";Ne.exports=Q,Q.displayName="matlab",Q.aliases=[];function Q(S){S.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}},13586:function(Ne){"use strict";Ne.exports=Q,Q.displayName="maxscript",Q.aliases=[];function Q(S){(function(B){var Z=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;B.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+Z.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Z.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:Z,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(S)}},37164:function(Ne){"use strict";Ne.exports=Q,Q.displayName="mel",Q.aliases=[];function Q(S){S.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},S.languages.mel.code.inside.rest=S.languages.mel}},25153:function(Ne){"use strict";Ne.exports=Q,Q.displayName="mermaid",Q.aliases=[];function Q(S){S.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}},33245:function(Ne){"use strict";Ne.exports=Q,Q.displayName="mizar",Q.aliases=[];function Q(S){S.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}},32218:function(Ne){"use strict";Ne.exports=Q,Q.displayName="mongodb",Q.aliases=[];function Q(S){(function(B){var Z=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],s=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Z=Z.map(function(A){return A.replace("$","\\$")});var C="(?:"+Z.join("|")+")\\b";B.languages.mongodb=B.languages.extend("javascript",{}),B.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+C+"(?:\\1)?$")}}}),B.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},B.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+s.join("|")+")\\b"),alias:"keyword"}})})(S)}},65626:function(Ne){"use strict";Ne.exports=Q,Q.displayName="monkey",Q.aliases=[];function Q(S){S.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}},60090:function(Ne){"use strict";Ne.exports=Q,Q.displayName="moonscript",Q.aliases=["moon"];function Q(S){S.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},S.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=S.languages.moonscript,S.languages.moon=S.languages.moonscript}},40722:function(Ne){"use strict";Ne.exports=Q,Q.displayName="n1ql",Q.aliases=[];function Q(S){S.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}},37783:function(Ne){"use strict";Ne.exports=Q,Q.displayName="n4js",Q.aliases=["n4jsd"];function Q(S){S.languages.n4js=S.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),S.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),S.languages.n4jsd=S.languages.n4js}},41224:function(Ne){"use strict";Ne.exports=Q,Q.displayName="nand2tetrisHdl",Q.aliases=[];function Q(S){S.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}},71365:function(Ne){"use strict";Ne.exports=Q,Q.displayName="naniscript",Q.aliases=[];function Q(S){(function(B){var Z=/\{[^\r\n\[\]{}]*\}/,s={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Z,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};B.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:Z,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:s}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:Z,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:s},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},B.languages.nani=B.languages.naniscript,B.hooks.add("after-tokenize",function(u){var p=u.tokens;p.forEach(function(b){if(typeof b!="string"&&b.type==="generic-text"){var g=A(b);C(g)||(b.type="bad-line",b.content=g)}})});function C(u){for(var p="[]{}",b=[],g=0;g<u.length;g++){var y=u[g],v=p.indexOf(y);if(v!==-1){if(v%2===0)b.push(v+1);else if(b.pop()!==v)return!1}}return b.length===0}function A(u){return typeof u=="string"?u:Array.isArray(u)?u.map(A).join(""):A(u.content)}})(S)}},42846:function(Ne){"use strict";Ne.exports=Q,Q.displayName="nasm",Q.aliases=[];function Q(S){S.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}},32964:function(Ne){"use strict";Ne.exports=Q,Q.displayName="neon",Q.aliases=[];function Q(S){S.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}},78830:function(Ne){"use strict";Ne.exports=Q,Q.displayName="nevod",Q.aliases=[];function Q(S){S.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}},88799:function(Ne){"use strict";Ne.exports=Q,Q.displayName="nginx",Q.aliases=[];function Q(S){(function(B){var Z=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;B.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:Z}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:Z}},punctuation:/[{};]/}})(S)}},66791:function(Ne){"use strict";Ne.exports=Q,Q.displayName="nim",Q.aliases=[];function Q(S){S.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}},41735:function(Ne){"use strict";Ne.exports=Q,Q.displayName="nix",Q.aliases=[];function Q(S){S.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},S.languages.nix.string.inside.interpolation.inside=S.languages.nix}},13490:function(Ne){"use strict";Ne.exports=Q,Q.displayName="nsis",Q.aliases=[];function Q(S){S.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}},7383:function(Ne,Q,S){"use strict";var B=S(79440);Ne.exports=Z,Z.displayName="objectivec",Z.aliases=["objc"];function Z(s){s.register(B),s.languages.objectivec=s.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete s.languages.objectivec["class-name"],s.languages.objc=s.languages.objectivec}},66894:function(Ne){"use strict";Ne.exports=Q,Q.displayName="ocaml",Q.aliases=[];function Q(S){S.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}},45779:function(Ne,Q,S){"use strict";var B=S(79440);Ne.exports=Z,Z.displayName="opencl",Z.aliases=[];function Z(s){s.register(B),function(C){C.languages.opencl=C.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),C.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var A={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};C.languages.insertBefore("c","keyword",A),C.languages.cpp&&(A["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},C.languages.insertBefore("cpp","keyword",A))}(s)}},27734:function(Ne){"use strict";Ne.exports=Q,Q.displayName="openqasm",Q.aliases=["qasm"];function Q(S){S.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},S.languages.qasm=S.languages.openqasm}},91889:function(Ne){"use strict";Ne.exports=Q,Q.displayName="oz",Q.aliases=[];function Q(S){S.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}},55965:function(Ne){"use strict";Ne.exports=Q,Q.displayName="parigp",Q.aliases=[];function Q(S){S.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var B=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return B=B.map(function(Z){return Z.split("").join(" *")}).join("|"),RegExp("\\b(?:"+B+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}},37326:function(Ne){"use strict";Ne.exports=Q,Q.displayName="parser",Q.aliases=[];function Q(S){(function(B){var Z=B.languages.parser=B.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});Z=B.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:Z.keyword,variable:Z.variable,function:Z.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Z.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Z.punctuation}}}),B.languages.insertBefore("inside","punctuation",{expression:Z.expression,keyword:Z.keyword,variable:Z.variable,function:Z.function,escape:Z.escape,"parser-punctuation":{pattern:Z.punctuation,alias:"punctuation"}},Z.tag.inside["attr-value"])})(S)}},92949:function(Ne){"use strict";Ne.exports=Q,Q.displayName="pascal",Q.aliases=["objectpascal"];function Q(S){S.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},S.languages.pascal.asm.inside=S.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),S.languages.objectpascal=S.languages.pascal}},5681:function(Ne){"use strict";Ne.exports=Q,Q.displayName="pascaligo",Q.aliases=[];function Q(S){(function(B){var Z=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,s=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Z}),C=B.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return s}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return s}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return s})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},A=["comment","keyword","builtin","operator","punctuation"].reduce(function(u,p){return u[p]=C[p],u},{});C["class-name"].forEach(function(u){u.inside=A})})(S)}},70696:function(Ne){"use strict";Ne.exports=Q,Q.displayName="pcaxis",Q.aliases=["px"];function Q(S){S.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},S.languages.px=S.languages.pcaxis}},35790:function(Ne){"use strict";Ne.exports=Q,Q.displayName="peoplecode",Q.aliases=["pcode"];function Q(S){S.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},S.languages.pcode=S.languages.peoplecode}},25777:function(Ne){"use strict";Ne.exports=Q,Q.displayName="perl",Q.aliases=[];function Q(S){(function(B){var Z=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;B.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Z].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Z].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,Z+/\s*/.source+Z].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(S)}},65889:function(Ne,Q,S){"use strict";var B=S(53852);Ne.exports=Z,Z.displayName="phpExtras",Z.aliases=[];function Z(s){s.register(B),s.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}},53852:function(Ne,Q,S){"use strict";var B=S(51478);Ne.exports=Z,Z.displayName="php",Z.aliases=[];function Z(s){s.register(B),function(C){var A=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,u=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],p=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,b=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,g=/[{}\[\](),:;]/;C.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:A,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:u,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:p,operator:b,punctuation:g};var y={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:C.languages.php},v=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:y}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:y}}];C.languages.insertBefore("php","variable",{string:v,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:A,string:v,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:u,number:p,operator:b,punctuation:g}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),C.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var h=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;C.languages["markup-templating"].buildPlaceholders(c,"php",h)}}),C.hooks.add("after-tokenize",function(c){C.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(s)}},97719:function(Ne,Q,S){"use strict";var B=S(53852),Z=S(53510);Ne.exports=s,s.displayName="phpdoc",s.aliases=[];function s(C){C.register(B),C.register(Z),function(A){var u=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;A.languages.phpdoc=A.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+u+"\\s+)?)\\$\\w+"),lookbehind:!0}}),A.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+u),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),A.languages.javadoclike.addSupport("php",A.languages.phpdoc)}(C)}},63839:function(Ne,Q,S){"use strict";var B=S(69435);Ne.exports=Z,Z.displayName="plsql",Z.aliases=[];function Z(s){s.register(B),s.languages.plsql=s.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),s.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(Ne){"use strict";Ne.exports=Q,Q.displayName="powerquery",Q.aliases=[];function Q(S){S.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},S.languages.pq=S.languages.powerquery,S.languages.mscript=S.languages.powerquery}},32530:function(Ne){"use strict";Ne.exports=Q,Q.displayName="powershell",Q.aliases=[];function Q(S){(function(B){var Z=B.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};Z.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Z},boolean:Z.boolean,variable:Z.variable}})(S)}},8938:function(Ne){"use strict";Ne.exports=Q,Q.displayName="processing",Q.aliases=[];function Q(S){S.languages.processing=S.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),S.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}},55259:function(Ne){"use strict";Ne.exports=Q,Q.displayName="prolog",Q.aliases=[];function Q(S){S.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}},67411:function(Ne){"use strict";Ne.exports=Q,Q.displayName="promql",Q.aliases=[];function Q(S){(function(B){var Z=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],s=["on","ignoring","group_right","group_left","by","without"],C=["offset"],A=Z.concat(s,C);B.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+s.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+A.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(S)}},15375:function(Ne){"use strict";Ne.exports=Q,Q.displayName="properties",Q.aliases=[];function Q(S){S.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}},12093:function(Ne){"use strict";Ne.exports=Q,Q.displayName="protobuf",Q.aliases=[];function Q(S){(function(B){var Z=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;B.languages.protobuf=B.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),B.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:Z}},builtin:Z,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(S)}},83588:function(Ne){"use strict";Ne.exports=Q,Q.displayName="psl",Q.aliases=[];function Q(S){S.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}},94127:function(Ne){"use strict";Ne.exports=Q,Q.displayName="pug",Q.aliases=[];function Q(S){(function(B){B.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:B.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:B.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:B.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:B.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:B.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:B.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:B.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:B.languages.javascript}],punctuation:/[.\-!=|]+/};for(var Z=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,s=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],C={},A=0,u=s.length;A<u;A++){var p=s[A];p=typeof p=="string"?{filter:p,language:p}:p,B.languages[p.language]&&(C["filter-"+p.filter]={pattern:RegExp(Z.replace("<filter_name>",function(){return p.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[p.language,"language-"+p.language],inside:B.languages[p.language]}}})}B.languages.insertBefore("pug","filter",C)})(S)}},21294:function(Ne){"use strict";Ne.exports=Q,Q.displayName="puppet",Q.aliases=[];function Q(S){(function(B){B.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var Z=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:B.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];B.languages.puppet.heredoc[0].inside.interpolation=Z,B.languages.puppet.string.inside["double-quoted"].inside.interpolation=Z})(S)}},38709:function(Ne){"use strict";Ne.exports=Q,Q.displayName="pure",Q.aliases=[];function Q(S){(function(B){B.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var Z=["c",{lang:"c++",alias:"cpp"},"fortran"],s=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Z.forEach(function(C){var A=C;if(typeof C!="string"&&(A=C.alias,C=C.lang),B.languages[A]){var u={};u["inline-lang-"+A]={pattern:RegExp(s.replace("<lang>",C.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:B.util.clone(B.languages.pure["inline-lang"].inside)},u["inline-lang-"+A].inside.rest=B.util.clone(B.languages[A]),B.languages.insertBefore("pure","inline-lang",u)}}),B.languages.c&&(B.languages.pure["inline-lang"].inside.rest=B.util.clone(B.languages.c))})(S)}},15008:function(Ne){"use strict";Ne.exports=Q,Q.displayName="purebasic",Q.aliases=[];function Q(S){S.languages.purebasic=S.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),S.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete S.languages.purebasic["class-name"],delete S.languages.purebasic.boolean,S.languages.pbfasm=S.languages.purebasic}},96549:function(Ne,Q,S){"use strict";var B=S(2050);Ne.exports=Z,Z.displayName="purescript",Z.aliases=["purs"];function Z(s){s.register(B),s.languages.purescript=s.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[s.languages.haskell.operator[0],s.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),s.languages.purs=s.languages.purescript}},5221:function(Ne){"use strict";Ne.exports=Q,Q.displayName="python",Q.aliases=["py"];function Q(S){S.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},S.languages.python["string-interpolation"].inside.interpolation.inside.rest=S.languages.python,S.languages.py=S.languages.python}},27447:function(Ne){"use strict";Ne.exports=Q,Q.displayName="q",Q.aliases=[];function Q(S){S.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}},73191:function(Ne){"use strict";Ne.exports=Q,Q.displayName="qml",Q.aliases=[];function Q(S){(function(B){for(var Z=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,s=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,C=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Z}).replace(/<comment>/g,function(){return s}),A=0;A<2;A++)C=C.replace(/<expr>/g,function(){return C});C=C.replace(/<expr>/g,"[^\\s\\S]"),B.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return C}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:B.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return C}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:B.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(S)}},75542:function(Ne){"use strict";Ne.exports=Q,Q.displayName="qore",Q.aliases=[];function Q(S){S.languages.qore=S.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}},50323:function(Ne){"use strict";Ne.exports=Q,Q.displayName="qsharp",Q.aliases=["qs"];function Q(S){(function(B){function Z(h,m){return h.replace(/<<(\d+)>>/g,function(E,T){return"(?:"+m[+T]+")"})}function s(h,m,E){return RegExp(Z(h,m),E||"")}function C(h,m){for(var E=0;E<m;E++)h=h.replace(/<<self>>/g,function(){return"(?:"+h+")"});return h.replace(/<<self>>/g,"[^\\s\\S]")}var A={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function u(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var p=RegExp(u(A.type+" "+A.other)),b=/\b[A-Za-z_]\w*\b/.source,g=Z(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[b]),y={keyword:p,punctuation:/[<>()?,.:[\]]/},v=/"(?:\\.|[^\\"])*"/.source;B.languages.qsharp=B.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:s(/(^|[^$\\])<<0>>/.source,[v]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:s(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[g]),lookbehind:!0,inside:y},{pattern:s(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[g]),lookbehind:!0,inside:y}],keyword:p,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),B.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var c=C(Z(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[v]),2);B.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:s(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[c]),greedy:!0,inside:{interpolation:{pattern:s(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[c]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:B.languages.qsharp}}},string:/[\s\S]+/}}})})(S),S.languages.qs=S.languages.qsharp}},44298:function(Ne){"use strict";Ne.exports=Q,Q.displayName="r",Q.aliases=[];function Q(S){S.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}},9634:function(Ne,Q,S){"use strict";var B=S(48780);Ne.exports=Z,Z.displayName="racket",Z.aliases=["rkt"];function Z(s){s.register(B),s.languages.racket=s.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),s.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),s.languages.rkt=s.languages.racket}},75266:function(Ne){"use strict";Ne.exports=Q,Q.displayName="reason",Q.aliases=[];function Q(S){S.languages.reason=S.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),S.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete S.languages.reason.function}},48139:function(Ne){"use strict";Ne.exports=Q,Q.displayName="regex",Q.aliases=[];function Q(S){(function(B){var Z={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,C={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},A={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},u="(?:[^\\\\-]|"+s.source+")",p=RegExp(u+"-"+u),b={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};B.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:p,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Z,"char-set":A,escape:s}},"special-escape":Z,"char-set":C,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":b}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":b}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(S)}},97534:function(Ne){"use strict";Ne.exports=Q,Q.displayName="rego",Q.aliases=[];function Q(S){S.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}},90826:function(Ne){"use strict";Ne.exports=Q,Q.displayName="renpy",Q.aliases=["rpy"];function Q(S){S.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},S.languages.rpy=S.languages.renpy}},63919:function(Ne){"use strict";Ne.exports=Q,Q.displayName="rest",Q.aliases=[];function Q(S){S.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}},68862:function(Ne){"use strict";Ne.exports=Q,Q.displayName="rip",Q.aliases=[];function Q(S){S.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}},39523:function(Ne){"use strict";Ne.exports=Q,Q.displayName="roboconf",Q.aliases=[];function Q(S){S.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}},31207:function(Ne){"use strict";Ne.exports=Q,Q.displayName="robotframework",Q.aliases=[];function Q(S){(function(B){var Z={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},s={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function C(b,g){var y={};y["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var v in g)y[v]=g[v];return y.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},y.variable=s,y.comment=Z,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return b}),"im"),alias:"section",inside:y}}var A={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},u={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:s}},p={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:s}};B.languages.robotframework={settings:C("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:C("Variables"),"test-cases":C("Test Cases",{"test-name":u,documentation:A,property:p}),keywords:C("Keywords",{"keyword-name":u,documentation:A,property:p}),tasks:C("Tasks",{"task-name":u,documentation:A,property:p}),comment:Z},B.languages.robot=B.languages.robotframework})(S)}},75308:function(Ne){"use strict";Ne.exports=Q,Q.displayName="ruby",Q.aliases=["rb"];function Q(S){(function(B){B.languages.ruby=B.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),B.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var Z={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:B.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete B.languages.ruby.function;var s="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",C=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;B.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+s+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:Z,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Z,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+C),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+C+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),B.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+s),greedy:!0,inside:{interpolation:Z,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Z,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:Z,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+s),greedy:!0,inside:{interpolation:Z,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Z,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete B.languages.ruby.string,B.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),B.languages.rb=B.languages.ruby})(S)}},45315:function(Ne){"use strict";Ne.exports=Q,Q.displayName="rust",Q.aliases=[];function Q(S){(function(B){for(var Z=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)Z=Z.replace(/<self>/g,function(){return Z});Z=Z.replace(/<self>/g,function(){return/[^\s\S]/.source}),B.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Z),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},B.languages.rust["closure-params"].inside.rest=B.languages.rust,B.languages.rust.attribute.inside.string=B.languages.rust.string})(S)}},13794:function(Ne){"use strict";Ne.exports=Q,Q.displayName="sas",Q.aliases=[];function Q(S){(function(B){var Z=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,s=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,C={pattern:RegExp(Z+"[bx]"),alias:"number"},A={pattern:/&[a-z_]\w*/i},u={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},p={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},b=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],g={pattern:RegExp(Z),greedy:!0},y=/[$%@.(){}\[\];,\\]/,v={pattern:/%?\b\w+(?=\()/,alias:"keyword"},c={function:v,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":A,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:s,"numeric-constant":C,punctuation:y,string:g},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},m={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},E={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},I=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,R={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return I}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return I}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:b,function:v,"arg-value":c["arg-value"],operator:c.operator,argument:c.arg,number:s,"numeric-constant":C,punctuation:y,string:g}},N={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};B.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return Z}),"im"),alias:"language-sql",inside:B.languages.sql},"global-statements":E,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:s,"numeric-constant":C,punctuation:y,string:g}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:b,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Z}),"im"),lookbehind:!0,alias:"language-groovy",inside:B.languages.groovy},keyword:N,"submit-statement":T,"global-statements":E,number:s,"numeric-constant":C,punctuation:y,string:g}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:b,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Z}),"im"),lookbehind:!0,alias:"language-lua",inside:B.languages.lua},keyword:N,"submit-statement":T,"global-statements":E,number:s,"numeric-constant":C,punctuation:y,string:g}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:b,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:c}},"cas-actions":R,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:c},step:p,keyword:N,function:v,format:h,altformat:m,"global-statements":E,number:s,"numeric-constant":C,punctuation:y,string:g}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Z}),"im"),lookbehind:!0,inside:c},"macro-keyword":u,"macro-variable":A,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":u,"macro-variable":A,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:y}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:b,number:s,"numeric-constant":C}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:c},"cas-actions":R,comment:b,function:v,format:h,altformat:m,"numeric-constant":C,datetime:{pattern:RegExp(Z+"(?:dt?|t)"),alias:"number"},string:g,step:p,keyword:N,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:s,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:y}})(S)}},41299:function(Ne){"use strict";Ne.exports=Q,Q.displayName="sass",Q.aliases=[];function Q(S){(function(B){B.languages.sass=B.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),B.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete B.languages.sass.atrule;var Z=/\$[-\w]+|#\{\$[-\w]+\}/,s=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];B.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:Z,operator:s}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Z,operator:s,important:B.languages.sass.important}}}),delete B.languages.sass.property,delete B.languages.sass.important,B.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(S)}},98177:function(Ne,Q,S){"use strict";var B=S(7093);Ne.exports=Z,Z.displayName="scala",Z.aliases=[];function Z(s){s.register(B),s.languages.scala=s.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),s.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:s.languages.scala}}},string:/[\s\S]+/}}}),delete s.languages.scala["class-name"],delete s.languages.scala.function}},48780:function(Ne){"use strict";Ne.exports=Q,Q.displayName="scheme",Q.aliases=[];function Q(S){(function(B){B.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(Z({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function Z(s){for(var C in s)s[C]=s[C].replace(/<[\w\s]+>/g,function(A){return"(?:"+s[A].trim()+")"});return s[C]}})(S)}},79793:function(Ne){"use strict";Ne.exports=Q,Q.displayName="scss",Q.aliases=[];function Q(S){S.languages.scss=S.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),S.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),S.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),S.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),S.languages.scss.atrule.inside.rest=S.languages.scss}},52085:function(Ne,Q,S){"use strict";var B=S(3058);Ne.exports=Z,Z.displayName="shellSession",Z.aliases=[];function Z(s){s.register(B),function(C){var A=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");C.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return A}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:C.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},C.languages["sh-session"]=C.languages.shellsession=C.languages["shell-session"]}(s)}},65411:function(Ne){"use strict";Ne.exports=Q,Q.displayName="smali",Q.aliases=[];function Q(S){S.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}},84750:function(Ne){"use strict";Ne.exports=Q,Q.displayName="smalltalk",Q.aliases=[];function Q(S){S.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}},88216:function(Ne,Q,S){"use strict";var B=S(51478);Ne.exports=Z,Z.displayName="smarty",Z.aliases=[];function Z(s){s.register(B),function(C){C.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:C.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},C.languages.smarty["embedded-php"].inside.smarty.inside=C.languages.smarty,C.languages.smarty.string[0].inside.interpolation.inside.expression.inside=C.languages.smarty;var A=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,u=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return A.source}),"g");C.hooks.add("before-tokenize",function(p){var b="{literal}",g="{/literal}",y=!1;C.languages["markup-templating"].buildPlaceholders(p,"smarty",u,function(v){return v===g&&(y=!1),y?!1:(v===b&&(y=!0),!0)})}),C.hooks.add("after-tokenize",function(p){C.languages["markup-templating"].tokenizePlaceholders(p,"smarty")})}(s)}},66433:function(Ne){"use strict";Ne.exports=Q,Q.displayName="sml",Q.aliases=["smlnj"];function Q(S){(function(B){var Z=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;B.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return Z.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:Z,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},B.languages.sml["class-name"][0].inside=B.languages.sml,B.languages.smlnj=B.languages.sml})(S)}},34855:function(Ne){"use strict";Ne.exports=Q,Q.displayName="solidity",Q.aliases=["sol"];function Q(S){S.languages.solidity=S.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),S.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),S.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),S.languages.sol=S.languages.solidity}},12998:function(Ne){"use strict";Ne.exports=Q,Q.displayName="solutionFile",Q.aliases=[];function Q(S){(function(B){var Z={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};B.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:Z}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:Z}},guid:Z,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},B.languages.sln=B.languages["solution-file"]})(S)}},10202:function(Ne,Q,S){"use strict";var B=S(51478);Ne.exports=Z,Z.displayName="soy",Z.aliases=[];function Z(s){s.register(B),function(C){var A=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,u=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;C.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:A,greedy:!0},number:u,punctuation:/[\[\].?]/}},string:{pattern:A,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:u,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},C.hooks.add("before-tokenize",function(p){var b=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,g="{literal}",y="{/literal}",v=!1;C.languages["markup-templating"].buildPlaceholders(p,"soy",b,function(c){return c===y&&(v=!1),v?!1:(c===g&&(v=!0),!0)})}),C.hooks.add("after-tokenize",function(p){C.languages["markup-templating"].tokenizePlaceholders(p,"soy")})}(s)}},41186:function(Ne,Q,S){"use strict";var B=S(58710);Ne.exports=Z,Z.displayName="sparql",Z.aliases=["rq"];function Z(s){s.register(B),s.languages.sparql=s.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),s.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),s.languages.rq=s.languages.sparql}},68963:function(Ne){"use strict";Ne.exports=Q,Q.displayName="splunkSpl",Q.aliases=[];function Q(S){S.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}},5569:function(Ne){"use strict";Ne.exports=Q,Q.displayName="sqf",Q.aliases=[];function Q(S){S.languages.sqf=S.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),S.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:S.languages.sqf.comment}}}),delete S.languages.sqf["class-name"]}},69435:function(Ne){"use strict";Ne.exports=Q,Q.displayName="sql",Q.aliases=[];function Q(S){S.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}},42766:function(Ne){"use strict";Ne.exports=Q,Q.displayName="squirrel",Q.aliases=[];function Q(S){S.languages.squirrel=S.languages.extend("clike",{comment:[S.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),S.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),S.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(Ne){"use strict";Ne.exports=Q,Q.displayName="stan",Q.aliases=[];function Q(S){(function(B){var Z=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;B.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+Z.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,Z],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},B.languages.stan.constraint.inside.expression.inside=B.languages.stan})(S)}},89032:function(Ne){"use strict";Ne.exports=Q,Q.displayName="stylus",Q.aliases=[];function Q(S){(function(B){var Z={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},s={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},C={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Z,number:s,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Z,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:s,punctuation:/[{}()\[\];:,]/};C.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:C}},C.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:C}},B.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:C}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:C}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:C}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:C.interpolation}},rest:C}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:C.interpolation,comment:C.comment,punctuation:/[{},]/}},func:C.func,string:C.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:C.interpolation,punctuation:/[{}()\[\];:.]/}})(S)}},40241:function(Ne){"use strict";Ne.exports=Q,Q.displayName="swift",Q.aliases=[];function Q(S){S.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},S.languages.swift["string-literal"].forEach(function(B){B.inside.interpolation.inside=S.languages.swift})}},24812:function(Ne){"use strict";Ne.exports=Q,Q.displayName="systemd",Q.aliases=[];function Q(S){(function(B){var Z={pattern:/^[;#].*/m,greedy:!0},s=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;B.languages.systemd={comment:Z,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+s+`|(?=[^"\r
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+s+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Z,quoted:{pattern:RegExp(/(^|\s)/.source+s),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(S)}},16747:function(Ne,Q,S){"use strict";var B=S(73584),Z=S(87648);Ne.exports=s,s.displayName="t4Cs",s.aliases=[];function s(C){C.register(B),C.register(Z),C.languages.t4=C.languages["t4-cs"]=C.languages["t4-templating"].createT4("csharp")}},73584:function(Ne){"use strict";Ne.exports=Q,Q.displayName="t4Templating",Q.aliases=[];function Q(S){(function(B){function Z(C,A,u){return{pattern:RegExp("<#"+C+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+C+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:A,alias:u}}}}function s(C){var A=B.languages[C],u="language-"+C;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Z("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Z("=",A,u),"class-feature":Z("\\+",A,u),standard:Z("",A,u)}}}}B.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:s})})(S)}},79243:function(Ne,Q,S){"use strict";var B=S(73584),Z=S(55686);Ne.exports=s,s.displayName="t4Vb",s.aliases=[];function s(C){C.register(B),C.register(Z),C.languages["t4-vb"]=C.languages["t4-templating"].createT4("vbnet")}},31788:function(Ne,Q,S){"use strict";var B=S(14409);Ne.exports=Z,Z.displayName="tap",Z.aliases=[];function Z(s){s.register(B),s.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:s.languages.yaml,alias:"language-yaml"}}}},60871:function(Ne){"use strict";Ne.exports=Q,Q.displayName="tcl",Q.aliases=[];function Q(S){S.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}},21023:function(Ne){"use strict";Ne.exports=Q,Q.displayName="textile",Q.aliases=[];function Q(S){(function(B){var Z=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,s=/\)|\((?![^|()\n]+\))/.source;function C(v,c){return RegExp(v.replace(/<MOD>/g,function(){return"(?:"+Z+")"}).replace(/<PAR>/g,function(){return"(?:"+s+")"}),c||"")}var A={css:{pattern:/\{[^{}]+\}/,inside:{rest:B.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},u=B.languages.textile=B.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:C(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:C(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:A},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:C(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:C(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:A},punctuation:/^[*#]+/}},table:{pattern:C(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:C(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:A},punctuation:/\||^\./}},inline:{pattern:C(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:C(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:C(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:C(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:C(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:C(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:C(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:C(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:C(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:A},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:C(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:C(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:C(/(^")<MOD>+/.source),lookbehind:!0,inside:A},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:C(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:C(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:C(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:A},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),p=u.phrase.inside,b={inline:p.inline,link:p.link,image:p.image,footnote:p.footnote,acronym:p.acronym,mark:p.mark};u.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var g=p.inline.inside;g.bold.inside=b,g.italic.inside=b,g.inserted.inside=b,g.deleted.inside=b,g.span.inside=b;var y=p.table.inside;y.inline=b.inline,y.link=b.link,y.image=b.image,y.footnote=b.footnote,y.acronym=b.acronym,y.mark=b.mark})(S)}},14693:function(Ne){"use strict";Ne.exports=Q,Q.displayName="toml",Q.aliases=[];function Q(S){(function(B){var Z=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function s(C){return C.replace(/__/g,function(){return Z})}B.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(s(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(s(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(S)}},8743:function(Ne){"use strict";Ne.exports=Q,Q.displayName="tremor",Q.aliases=[];function Q(S){(function(B){B.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var Z=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;B.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Z+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Z+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Z),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:B.languages.tremor}}},string:/[\s\S]+/}},B.languages.troy=B.languages.tremor,B.languages.trickle=B.languages.tremor})(S)}},1689:function(Ne,Q,S){"use strict";var B=S(24103),Z=S(92784);Ne.exports=s,s.displayName="tsx",s.aliases=[];function s(C){C.register(B),C.register(Z),function(A){var u=A.util.clone(A.languages.typescript);A.languages.tsx=A.languages.extend("jsx",u),delete A.languages.tsx.parameter,delete A.languages.tsx["literal-property"];var p=A.languages.tsx.tag;p.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+p.pattern.source+")",p.pattern.flags),p.lookbehind=!0}(C)}},69210:function(Ne,Q,S){"use strict";var B=S(51478);Ne.exports=Z,Z.displayName="tt2",Z.aliases=[];function Z(s){s.register(B),function(C){C.languages.tt2=C.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),C.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),C.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),C.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete C.languages.tt2.string,C.hooks.add("before-tokenize",function(A){var u=/\[%[\s\S]+?%\]/g;C.languages["markup-templating"].buildPlaceholders(A,"tt2",u)}),C.hooks.add("after-tokenize",function(A){C.languages["markup-templating"].tokenizePlaceholders(A,"tt2")})}(s)}},58710:function(Ne){"use strict";Ne.exports=Q,Q.displayName="turtle",Q.aliases=[];function Q(S){S.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},S.languages.trig=S.languages.turtle}},60452:function(Ne,Q,S){"use strict";var B=S(51478);Ne.exports=Z,Z.displayName="twig",Z.aliases=[];function Z(s){s.register(B),s.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},s.hooks.add("before-tokenize",function(C){if(C.language==="twig"){var A=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;s.languages["markup-templating"].buildPlaceholders(C,"twig",A)}}),s.hooks.add("after-tokenize",function(C){s.languages["markup-templating"].tokenizePlaceholders(C,"twig")})}},92784:function(Ne){"use strict";Ne.exports=Q,Q.displayName="typescript",Q.aliases=["ts"];function Q(S){(function(B){B.languages.typescript=B.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),B.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete B.languages.typescript.parameter,delete B.languages.typescript["literal-property"];var Z=B.languages.extend("typescript",{});delete Z["class-name"],B.languages.typescript["class-name"].inside=Z,B.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Z}}}}),B.languages.ts=B.languages.typescript})(S)}},36489:function(Ne){"use strict";Ne.exports=Q,Q.displayName="typoscript",Q.aliases=["tsconfig"];function Q(S){(function(B){var Z=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;B.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:Z}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:Z,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Z,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},B.languages.tsconfig=B.languages.typoscript})(S)}},78380:function(Ne){"use strict";Ne.exports=Q,Q.displayName="unrealscript",Q.aliases=["uc","uscript"];function Q(S){S.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},S.languages.uc=S.languages.uscript=S.languages.unrealscript}},10409:function(Ne){"use strict";Ne.exports=Q,Q.displayName="uorazor",Q.aliases=[];function Q(S){S.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}},6539:function(Ne){"use strict";Ne.exports=Q,Q.displayName="uri",Q.aliases=["url"];function Q(S){S.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},S.languages.url=S.languages.uri}},82028:function(Ne){"use strict";Ne.exports=Q,Q.displayName="v",Q.aliases=[];function Q(S){(function(B){var Z={pattern:/[\s\S]+/,inside:null};B.languages.v=B.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":Z}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),Z.inside=B.languages.v,B.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),B.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),B.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:B.languages.v.generic.inside}}}})})(S)}},62282:function(Ne){"use strict";Ne.exports=Q,Q.displayName="vala",Q.aliases=[];function Q(S){S.languages.vala=S.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),S.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:S.languages.vala}},string:/[\s\S]+/}}}),S.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:S.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(Ne,Q,S){"use strict";var B=S(51422);Ne.exports=Z,Z.displayName="vbnet",Z.aliases=[];function Z(s){s.register(B),s.languages.vbnet=s.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}},70889:function(Ne){"use strict";Ne.exports=Q,Q.displayName="velocity",Q.aliases=[];function Q(S){(function(B){B.languages.velocity=B.languages.extend("markup",{});var Z={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};Z.variable.inside={string:Z.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Z.number,boolean:Z.boolean,punctuation:Z.punctuation},B.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:Z}},variable:Z.variable}),B.languages.velocity.tag.inside["attr-value"].inside.rest=B.languages.velocity})(S)}},37116:function(Ne){"use strict";Ne.exports=Q,Q.displayName="verilog",Q.aliases=[];function Q(S){S.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}},66963:function(Ne){"use strict";Ne.exports=Q,Q.displayName="vhdl",Q.aliases=[];function Q(S){S.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}},21078:function(Ne){"use strict";Ne.exports=Q,Q.displayName="vim",Q.aliases=[];function Q(S){S.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}},96198:function(Ne){"use strict";Ne.exports=Q,Q.displayName="visualBasic",Q.aliases=[];function Q(S){S.languages["visual-basic"]={comment:{pattern:/(?:[']|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},S.languages.vb=S.languages["visual-basic"],S.languages.vba=S.languages["visual-basic"]}},17723:function(Ne){"use strict";Ne.exports=Q,Q.displayName="warpscript",Q.aliases=[];function Q(S){S.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}},67771:function(Ne){"use strict";Ne.exports=Q,Q.displayName="wasm",Q.aliases=[];function Q(S){S.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}},30307:function(Ne){"use strict";Ne.exports=Q,Q.displayName="webIdl",Q.aliases=[];function Q(S){(function(B){var Z=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,s="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+Z+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,C={};B.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Z),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:C},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+s),lookbehind:!0,inside:C},{pattern:RegExp("("+/\bcallback\s+/.source+Z+/\s*=\s*/.source+")"+s),lookbehind:!0,inside:C},{pattern:RegExp(/(\btypedef\b\s*)/.source+s),lookbehind:!0,inside:C},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Z),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Z),lookbehind:!0},RegExp(Z+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Z),lookbehind:!0},{pattern:RegExp(s+"(?="+/\s*(?:\.{3}\s*)?/.source+Z+/\s*[(),;=]/.source+")"),inside:C}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var A in B.languages["web-idl"])A!=="class-name"&&(C[A]=B.languages["web-idl"][A]);B.languages.webidl=B.languages["web-idl"]})(S)}},8921:function(Ne){"use strict";Ne.exports=Q,Q.displayName="wiki",Q.aliases=[];function Q(S){S.languages.wiki=S.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:S.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),S.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:S.languages.markup.tag.inside}}}})}},13429:function(Ne){"use strict";Ne.exports=Q,Q.displayName="wolfram",Q.aliases=["mathematica","wl","nb"];function Q(S){S.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},S.languages.mathematica=S.languages.wolfram,S.languages.wl=S.languages.wolfram,S.languages.nb=S.languages.wolfram}},65197:function(Ne){"use strict";Ne.exports=Q,Q.displayName="wren",Q.aliases=[];function Q(S){S.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},S.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:S.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(Ne){"use strict";Ne.exports=Q,Q.displayName="xeora",Q.aliases=["xeoracube"];function Q(S){(function(B){B.languages.xeora=B.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),B.languages.insertBefore("inside","punctuation",{variable:B.languages.xeora["function-inline"].inside.variable},B.languages.xeora["function-block"]),B.languages.xeoracube=B.languages.xeora})(S)}},35:function(Ne){"use strict";Ne.exports=Q,Q.displayName="xmlDoc",Q.aliases=[];function Q(S){(function(B){function Z(u,p){B.languages[u]&&B.languages.insertBefore(u,"comment",{"doc-comment":p})}var s=B.languages.markup.tag,C={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:s}},A={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:s}};Z("csharp",C),Z("fsharp",C),Z("vbnet",A)})(S)}},86095:function(Ne){"use strict";Ne.exports=Q,Q.displayName="xojo",Q.aliases=[];function Q(S){S.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}},76998:function(Ne){"use strict";Ne.exports=Q,Q.displayName="xquery",Q.aliases=[];function Q(S){(function(B){B.languages.xquery=B.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),B.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,B.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,B.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,B.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:B.languages.xquery,alias:"language-xquery"};var Z=function(C){return typeof C=="string"?C:typeof C.content=="string"?C.content:C.content.map(Z).join("")},s=function(C){for(var A=[],u=0;u<C.length;u++){var p=C[u],b=!1;if(typeof p!="string"&&(p.type==="tag"&&p.content[0]&&p.content[0].type==="tag"?p.content[0].content[0].content==="</"?A.length>0&&A[A.length-1].tagName===Z(p.content[0].content[1])&&A.pop():p.content[p.content.length-1].content==="/>"||A.push({tagName:Z(p.content[0].content[1]),openedBraces:0}):A.length>0&&p.type==="punctuation"&&p.content==="{"&&(!C[u+1]||C[u+1].type!=="punctuation"||C[u+1].content!=="{")&&(!C[u-1]||C[u-1].type!=="plain-text"||C[u-1].content!=="{")?A[A.length-1].openedBraces++:A.length>0&&A[A.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?A[A.length-1].openedBraces--:p.type!=="comment"&&(b=!0)),(b||typeof p=="string")&&A.length>0&&A[A.length-1].openedBraces===0){var g=Z(p);u<C.length-1&&(typeof C[u+1]=="string"||C[u+1].type==="plain-text")&&(g+=Z(C[u+1]),C.splice(u+1,1)),u>0&&(typeof C[u-1]=="string"||C[u-1].type==="plain-text")&&(g=Z(C[u-1])+g,C.splice(u-1,1),u--),/^\s+$/.test(g)?C[u]=g:C[u]=new B.Token("plain-text",g,null,g)}p.content&&typeof p.content!="string"&&s(p.content)}};B.hooks.add("after-tokenize",function(C){C.language==="xquery"&&s(C.tokens)})})(S)}},14409:function(Ne){"use strict";Ne.exports=Q,Q.displayName="yaml",Q.aliases=["yml"];function Q(S){(function(B){var Z=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,C="(?:"+s.source+"(?:[ ]+"+Z.source+")?|"+Z.source+"(?:[ ]+"+s.source+")?)",A=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function p(b,g){g=(g||"").replace(/m/g,"")+"m";var y=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return C}).replace(/<<value>>/g,function(){return b});return RegExp(y,g)}B.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return C})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return C}).replace(/<<key>>/g,function(){return"(?:"+A+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:p(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:p(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:p(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:p(u),lookbehind:!0,greedy:!0},number:{pattern:p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:Z,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},B.languages.yml=B.languages.yaml})(S)}},33460:function(Ne){"use strict";Ne.exports=Q,Q.displayName="yang",Q.aliases=[];function Q(S){S.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}},28108:function(Ne){"use strict";Ne.exports=Q,Q.displayName="zig",Q.aliases=[];function Q(S){(function(B){function Z(g){return function(){return g}}var s=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,C="\\b(?!"+s.source+")(?!\\d)\\w+\\b",A=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,u=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Z(A)),p=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Z(C)),b="(?!\\s)(?:!?\\s*(?:"+u+"\\s*)*"+p+")+";B.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,Z(b)).replace(/<ALIGN>/g,Z(A))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Z(b)).replace(/<ALIGN>/g,Z(A))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:s,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},B.languages.zig["class-name"].forEach(function(g){g.inside===null&&(g.inside=B.languages.zig)})})(S)}},92848:function(Ne,Q){"use strict";var S;Q.Q=C,S=A;var B="",Z=" ",s=/[ \t\n\r\f]+/g;function C(u){var p=String(u||B).trim();return p===B?[]:p.split(s)}function A(u){return u.join(Z).trim()}},7062:function(Ne,Q,S){var B=S(19637),Z=S(97573),s=[S(96627)];Ne.exports=B.createStore(Z,s)},96627:function(Ne,Q,S){Ne.exports=B;function B(){return S(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(Ne){return Ne<10?"0"+Ne:Ne}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(Ne){return rx_escapable.lastIndex=0,rx_escapable.test(Ne)?'"'+Ne.replace(rx_escapable,function(Q){var S=meta[Q];return typeof S=="string"?S:"\\u"+("0000"+Q.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Ne+'"'}function str(Ne,Q){var S,B,Z,s,C=gap,A,u=Q[Ne];switch(u&&typeof u=="object"&&typeof u.toJSON=="function"&&(u=u.toJSON(Ne)),typeof rep=="function"&&(u=rep.call(Q,Ne,u)),typeof u){case"string":return quote(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(gap+=indent,A=[],Object.prototype.toString.apply(u)==="[object Array]"){for(s=u.length,S=0;S<s;S+=1)A[S]=str(S,u)||"null";return Z=A.length===0?"[]":gap?`[
`+gap+A.join(`,
`+gap)+`
`+C+"]":"["+A.join(",")+"]",gap=C,Z}if(rep&&typeof rep=="object")for(s=rep.length,S=0;S<s;S+=1)typeof rep[S]=="string"&&(B=rep[S],Z=str(B,u),Z&&A.push(quote(B)+(gap?": ":":")+Z));else for(B in u)Object.prototype.hasOwnProperty.call(u,B)&&(Z=str(B,u),Z&&A.push(quote(B)+(gap?": ":":")+Z));return Z=A.length===0?"{}":gap?`{
`+gap+A.join(`,
`+gap)+`
`+C+"}":"{"+A.join(",")+"}",gap=C,Z}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(Ne,Q,S){var B;if(gap="",indent="",typeof S=="number")for(B=0;B<S;B+=1)indent+=" ";else typeof S=="string"&&(indent=S);if(rep=Q,Q&&typeof Q!="function"&&(typeof Q!="object"||typeof Q.length!="number"))throw new Error("JSON.stringify");return str("",{"":Ne})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(Ne,Q){var S,B,Z=Ne[Q];if(Z&&typeof Z=="object")for(S in Z)Object.prototype.hasOwnProperty.call(Z,S)&&(B=walk(Z,S),B!==void 0?Z[S]=B:delete Z[S]);return reviver.call(Ne,Q,Z)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(Ne){return"\\u"+("0000"+Ne.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(Ne,Q,S){var B=S(67039),Z=B.slice,s=B.pluck,C=B.each,A=B.bind,u=B.create,p=B.isList,b=B.isFunction,g=B.isObject;Ne.exports={createStore:c};var y={version:"2.0.12",enabled:!1,get:function(h,m){var E=this.storage.read(this._namespacePrefix+h);return this._deserialize(E,m)},set:function(h,m){return m===void 0?this.remove(h):(this.storage.write(this._namespacePrefix+h,this._serialize(m)),m)},remove:function(h){this.storage.remove(this._namespacePrefix+h)},each:function(h){var m=this;this.storage.each(function(E,T){h.call(m,m._deserialize(E),(T||"").replace(m._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(h){return this._namespacePrefix=="__storejs_"+h+"_"},createStore:function(){return c.apply(this,arguments)},addPlugin:function(h){this._addPlugin(h)},namespace:function(h){return c(this.storage,this.plugins,h)}};function v(){var h=typeof console=="undefined"?null:console;if(h){var m=h.warn?h.warn:h.log;m.apply(h,arguments)}}function c(h,m,E){E||(E=""),h&&!p(h)&&(h=[h]),m&&!p(m)&&(m=[m]);var T=E?"__storejs_"+E+"_":"",I=E?new RegExp("^"+T):null,R=/^[a-zA-Z0-9_\-]*$/;if(!R.test(E))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var N={_namespacePrefix:T,_namespaceRegexp:I,_testStorage:function(L){try{var H="__storejs__test__";L.write(H,H);var D=L.read(H)===H;return L.remove(H),D}catch(V){return!1}},_assignPluginFnProp:function(L,H){var D=this[H];this[H]=function(){var P=Z(arguments,0),U=this;function G(){if(D)return C(arguments,function(ee,ae){P[ae]=ee}),D.apply(U,P)}var J=[G].concat(P);return L.apply(U,J)}},_serialize:function(L){return JSON.stringify(L)},_deserialize:function(L,H){if(!L)return H;var D="";try{D=JSON.parse(L)}catch(V){D=L}return D!==void 0?D:H},_addStorage:function(L){this.enabled||this._testStorage(L)&&(this.storage=L,this.enabled=!0)},_addPlugin:function(L){var H=this;if(p(L)){C(L,function(P){H._addPlugin(P)});return}var D=s(this.plugins,function(P){return L===P});if(!D){if(this.plugins.push(L),!b(L))throw new Error("Plugins must be function values that return objects");var V=L.call(this);if(!g(V))throw new Error("Plugins must return an object of function properties");C(V,function(P,U){if(!b(P))throw new Error("Bad plugin property: "+U+" from plugin "+L.name+". Plugins should only return functions.");H._assignPluginFnProp(P,U)})}},addStorage:function(L){v("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(L)}},k=u(N,y,{plugins:[]});return k.raw={},C(k,function(L,H){b(L)&&(k.raw[H]=A(k,L))}),C(h,function(L){k._addStorage(L)}),C(m,function(L){k._addPlugin(L)}),k}},67039:function(Ne,Q,S){var B=A(),Z=u(),s=p(),C=typeof window!="undefined"?window:S.g;Ne.exports={assign:B,create:Z,trim:s,bind:b,slice:g,each:y,map:v,pluck:c,isList:h,isFunction:m,isObject:E,Global:C};function A(){return Object.assign?Object.assign:function(I,R,N,k){for(var L=1;L<arguments.length;L++)y(Object(arguments[L]),function(H,D){I[D]=H});return I}}function u(){if(Object.create)return function(R,N,k,L){var H=g(arguments,1);return B.apply(this,[Object.create(R)].concat(H))};{let I=function(){};var T=I;return function(N,k,L,H){var D=g(arguments,1);return I.prototype=N,B.apply(this,[new I].concat(D))}}}function p(){return String.prototype.trim?function(I){return String.prototype.trim.call(I)}:function(I){return I.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function b(T,I){return function(){return I.apply(T,Array.prototype.slice.call(arguments,0))}}function g(T,I){return Array.prototype.slice.call(T,I||0)}function y(T,I){c(T,function(R,N){return I(R,N),!1})}function v(T,I){var R=h(T)?[]:{};return c(T,function(N,k){return R[k]=I(N,k),!1}),R}function c(T,I){if(h(T)){for(var R=0;R<T.length;R++)if(I(T[R],R))return T[R]}else for(var N in T)if(T.hasOwnProperty(N)&&I(T[N],N))return T[N]}function h(T){return T!=null&&typeof T!="function"&&typeof T.length=="number"}function m(T){return T&&{}.toString.call(T)==="[object Function]"}function E(T){return T&&{}.toString.call(T)==="[object Object]"}},97573:function(Ne,Q,S){Ne.exports=[S(52496),S(16436),S(76673),S(35701),S(65578),S(65300)]},35701:function(Ne,Q,S){var B=S(67039),Z=B.Global,s=B.trim;Ne.exports={name:"cookieStorage",read:A,write:p,each:u,remove:b,clearAll:g};var C=Z.document;function A(v){if(!v||!y(v))return null;var c="(?:^|.*;\\s*)"+escape(v).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(C.cookie.replace(new RegExp(c),"$1"))}function u(v){for(var c=C.cookie.split(/; ?/g),h=c.length-1;h>=0;h--)if(s(c[h])){var m=c[h].split("="),E=unescape(m[0]),T=unescape(m[1]);v(T,E)}}function p(v,c){v&&(C.cookie=escape(v)+"="+escape(c)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function b(v){!v||!y(v)||(C.cookie=escape(v)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function g(){u(function(v,c){b(c)})}function y(v){return new RegExp("(?:^|;\\s*)"+escape(v).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(C.cookie)}},52496:function(Ne,Q,S){var B=S(67039),Z=B.Global;Ne.exports={name:"localStorage",read:C,write:A,each:u,remove:p,clearAll:b};function s(){return Z.localStorage}function C(g){return s().getItem(g)}function A(g,y){return s().setItem(g,y)}function u(g){for(var y=s().length-1;y>=0;y--){var v=s().key(y);g(C(v),v)}}function p(g){return s().removeItem(g)}function b(){return s().clear()}},65300:function(Ne){Ne.exports={name:"memoryStorage",read:S,write:B,each:Z,remove:s,clearAll:C};var Q={};function S(A){return Q[A]}function B(A,u){Q[A]=u}function Z(A){for(var u in Q)Q.hasOwnProperty(u)&&A(Q[u],u)}function s(A){delete Q[A]}function C(A){Q={}}},16436:function(Ne,Q,S){var B=S(67039),Z=B.Global;Ne.exports={name:"oldFF-globalStorage",read:C,write:A,each:u,remove:p,clearAll:b};var s=Z.globalStorage;function C(g){return s[g]}function A(g,y){s[g]=y}function u(g){for(var y=s.length-1;y>=0;y--){var v=s.key(y);g(s[v],v)}}function p(g){return s.removeItem(g)}function b(){u(function(g,y){delete s[g]})}},76673:function(Ne,Q,S){var B=S(67039),Z=B.Global;Ne.exports={name:"oldIE-userDataStorage",write:p,read:b,each:g,remove:y,clearAll:v};var s="storejs",C=Z.document,A=m(),u=(Z.navigator?Z.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function p(E,T){if(!u){var I=h(E);A(function(R){R.setAttribute(I,T),R.save(s)})}}function b(E){if(!u){var T=h(E),I=null;return A(function(R){I=R.getAttribute(T)}),I}}function g(E){A(function(T){for(var I=T.XMLDocument.documentElement.attributes,R=I.length-1;R>=0;R--){var N=I[R];E(T.getAttribute(N.name),N.name)}})}function y(E){var T=h(E);A(function(I){I.removeAttribute(T),I.save(s)})}function v(){A(function(E){var T=E.XMLDocument.documentElement.attributes;E.load(s);for(var I=T.length-1;I>=0;I--)E.removeAttribute(T[I].name);E.save(s)})}var c=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function h(E){return E.replace(/^\d/,"___$&").replace(c,"___")}function m(){if(!C||!C.documentElement||!C.documentElement.addBehavior)return null;var E="script",T,I,R;try{I=new ActiveXObject("htmlfile"),I.open(),I.write("<"+E+">document.w=window</"+E+'><iframe src="/favicon.ico"></iframe>'),I.close(),T=I.w.frames[0].document,R=T.createElement("div")}catch(N){R=C.createElement("div"),T=C.body}return function(N){var k=[].slice.call(arguments,0);k.unshift(R),T.appendChild(R),R.addBehavior("#default#userData"),R.load(s),N.apply(this,k),T.removeChild(R)}}},65578:function(Ne,Q,S){var B=S(67039),Z=B.Global;Ne.exports={name:"sessionStorage",read:C,write:A,each:u,remove:p,clearAll:b};function s(){return Z.sessionStorage}function C(g){return s().getItem(g)}function A(g,y){return s().setItem(g,y)}function u(g){for(var y=s().length-1;y>=0;y--){var v=s().key(y);g(C(v),v)}}function p(g){return s().removeItem(g)}function b(){return s().clear()}},77179:function(Ne,Q,S){"use strict";var B=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}},Z=B(S(58970)),s=S(39159);function C(A,u){var p={};return!A||typeof A!="string"||(0,Z.default)(A,function(b,g){b&&g&&(p[(0,s.camelCase)(b,u)]=g)}),p}C.default=C,Ne.exports=C},39159:function(Ne,Q){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.camelCase=void 0;var S=/^--[a-zA-Z0-9_-]+$/,B=/-([a-z])/g,Z=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,C=/^-(ms)-/,A=function(g){return!g||Z.test(g)||S.test(g)},u=function(g,y){return y.toUpperCase()},p=function(g,y){return"".concat(y,"-")},b=function(g,y){return y===void 0&&(y={}),A(g)?g:(g=g.toLowerCase(),y.reactCompat?g=g.replace(C,p):g=g.replace(s,p),g.replace(B,u))};Q.camelCase=b},58970:function(Ne,Q,S){"use strict";var B=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(Q,"__esModule",{value:!0}),Q.default=s;var Z=B(S(93193));function s(C,A){var u=null;if(!C||typeof C!="string")return u;var p=(0,Z.default)(C),b=typeof A=="function";return p.forEach(function(g){if(g.type==="declaration"){var y=g.property,v=g.value;b?A(y,v,g):v&&(u=u||{},u[y]=v)}}),u}},97270:function(Ne){Ne.exports=S;var Q=Object.prototype.hasOwnProperty;function S(){for(var B={},Z=0;Z<arguments.length;Z++){var s=arguments[Z];for(var C in s)Q.call(s,C)&&(B[C]=s[C])}return B}},34376:function(Ne){(function(Q,S){if(1)Ne.exports=S();else var B,Z})(window,function(){return function(Q){var S={};function B(Z){if(S[Z])return S[Z].exports;var s=S[Z]={i:Z,l:!1,exports:{}};return Q[Z].call(s.exports,s,s.exports,B),s.l=!0,s.exports}return B.m=Q,B.c=S,B.d=function(Z,s,C){B.o(Z,s)||Object.defineProperty(Z,s,{enumerable:!0,get:C})},B.r=function(Z){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Z,"__esModule",{value:!0})},B.t=function(Z,s){if(1&s&&(Z=B(Z)),8&s||4&s&&typeof Z=="object"&&Z&&Z.__esModule)return Z;var C=Object.create(null);if(B.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:Z}),2&s&&typeof Z!="string")for(var A in Z)B.d(C,A,function(u){return Z[u]}.bind(null,A));return C},B.n=function(Z){var s=Z&&Z.__esModule?function(){return Z.default}:function(){return Z};return B.d(s,"a",s),s},B.o=function(Z,s){return Object.prototype.hasOwnProperty.call(Z,s)},B.p="",B(B.s=34)}([function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.forwardEvent=S.EventEmitter=void 0;var Z=function(){function s(){this._listeners=[],this._disposed=!1}return Object.defineProperty(s.prototype,"event",{get:function(){var C=this;return this._event||(this._event=function(A){return C._listeners.push(A),{dispose:function(){if(!C._disposed){for(var u=0;u<C._listeners.length;u++)if(C._listeners[u]===A)return void C._listeners.splice(u,1)}}}}),this._event},enumerable:!1,configurable:!0}),s.prototype.fire=function(C,A){for(var u=[],p=0;p<this._listeners.length;p++)u.push(this._listeners[p]);for(p=0;p<u.length;p++)u[p].call(void 0,C,A)},s.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},s}();S.EventEmitter=Z,S.forwardEvent=function(s,C){return s(function(A){return C.fire(A)})}},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.IUnicodeService=S.IOptionsService=S.ILogService=S.IInstantiationService=S.IDirtyRowService=S.ICharsetService=S.ICoreService=S.ICoreMouseService=S.IBufferService=void 0;var Z=B(14);S.IBufferService=Z.createDecorator("BufferService"),S.ICoreMouseService=Z.createDecorator("CoreMouseService"),S.ICoreService=Z.createDecorator("CoreService"),S.ICharsetService=Z.createDecorator("CharsetService"),S.IDirtyRowService=Z.createDecorator("DirtyRowService"),S.IInstantiationService=Z.createDecorator("InstantiationService"),S.ILogService=Z.createDecorator("LogService"),S.IOptionsService=Z.createDecorator("OptionsService"),S.IUnicodeService=Z.createDecorator("UnicodeService")},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.getDisposeArrayDisposable=S.disposeArray=S.Disposable=void 0;var Z=function(){function C(){this._disposables=[],this._isDisposed=!1}return C.prototype.dispose=function(){this._isDisposed=!0;for(var A=0,u=this._disposables;A<u.length;A++)u[A].dispose();this._disposables.length=0},C.prototype.register=function(A){return this._disposables.push(A),A},C.prototype.unregister=function(A){var u=this._disposables.indexOf(A);u!==-1&&this._disposables.splice(u,1)},C}();function s(C){for(var A=0,u=C;A<u.length;A++)u[A].dispose();C.length=0}S.Disposable=Z,S.disposeArray=s,S.getDisposeArrayDisposable=function(C){return{dispose:function(){return s(C)}}}},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.WHITESPACE_CELL_CODE=S.WHITESPACE_CELL_WIDTH=S.WHITESPACE_CELL_CHAR=S.NULL_CELL_CODE=S.NULL_CELL_WIDTH=S.NULL_CELL_CHAR=S.CHAR_DATA_CODE_INDEX=S.CHAR_DATA_WIDTH_INDEX=S.CHAR_DATA_CHAR_INDEX=S.CHAR_DATA_ATTR_INDEX=S.DEFAULT_ATTR=S.DEFAULT_COLOR=void 0,S.DEFAULT_COLOR=256,S.DEFAULT_ATTR=256|S.DEFAULT_COLOR<<9,S.CHAR_DATA_ATTR_INDEX=0,S.CHAR_DATA_CHAR_INDEX=1,S.CHAR_DATA_WIDTH_INDEX=2,S.CHAR_DATA_CODE_INDEX=3,S.NULL_CELL_CHAR="",S.NULL_CELL_WIDTH=1,S.NULL_CELL_CODE=0,S.WHITESPACE_CELL_CHAR=" ",S.WHITESPACE_CELL_WIDTH=1,S.WHITESPACE_CELL_CODE=32},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(b,g){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,v){y.__proto__=v}||function(y,v){for(var c in v)v.hasOwnProperty(c)&&(y[c]=v[c])})(b,g)},function(b,g){function y(){this.constructor=b}Z(b,g),b.prototype=g===null?Object.create(g):(y.prototype=g.prototype,new y)});Object.defineProperty(S,"__esModule",{value:!0}),S.CellData=void 0;var C=B(8),A=B(3),u=B(6),p=function(b){function g(){var y=b!==null&&b.apply(this,arguments)||this;return y.content=0,y.fg=0,y.bg=0,y.extended=new u.ExtendedAttrs,y.combinedData="",y}return s(g,b),g.fromCharData=function(y){var v=new g;return v.setFromCharData(y),v},g.prototype.isCombined=function(){return 2097152&this.content},g.prototype.getWidth=function(){return this.content>>22},g.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?C.stringFromCodePoint(2097151&this.content):""},g.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},g.prototype.setFromCharData=function(y){this.fg=y[A.CHAR_DATA_ATTR_INDEX],this.bg=0;var v=!1;if(y[A.CHAR_DATA_CHAR_INDEX].length>2)v=!0;else if(y[A.CHAR_DATA_CHAR_INDEX].length===2){var c=y[A.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=c&&c<=56319){var h=y[A.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=h&&h<=57343?this.content=1024*(c-55296)+h-56320+65536|y[A.CHAR_DATA_WIDTH_INDEX]<<22:v=!0}else v=!0}else this.content=y[A.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|y[A.CHAR_DATA_WIDTH_INDEX]<<22;v&&(this.combinedData=y[A.CHAR_DATA_CHAR_INDEX],this.content=2097152|y[A.CHAR_DATA_WIDTH_INDEX]<<22)},g.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},g}(u.AttributeData);S.CellData=p},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.ISoundService=S.ISelectionService=S.IRenderService=S.IMouseService=S.ICoreBrowserService=S.ICharSizeService=void 0;var Z=B(14);S.ICharSizeService=Z.createDecorator("CharSizeService"),S.ICoreBrowserService=Z.createDecorator("CoreBrowserService"),S.IMouseService=Z.createDecorator("MouseService"),S.IRenderService=Z.createDecorator("RenderService"),S.ISelectionService=Z.createDecorator("SelectionService"),S.ISoundService=Z.createDecorator("SoundService")},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.ExtendedAttrs=S.AttributeData=void 0;var Z=function(){function C(){this.fg=0,this.bg=0,this.extended=new s}return C.toColorRGB=function(A){return[A>>>16&255,A>>>8&255,255&A]},C.fromColorRGB=function(A){return(255&A[0])<<16|(255&A[1])<<8|255&A[2]},C.prototype.clone=function(){var A=new C;return A.fg=this.fg,A.bg=this.bg,A.extended=this.extended.clone(),A},C.prototype.isInverse=function(){return 67108864&this.fg},C.prototype.isBold=function(){return 134217728&this.fg},C.prototype.isUnderline=function(){return 268435456&this.fg},C.prototype.isBlink=function(){return 536870912&this.fg},C.prototype.isInvisible=function(){return 1073741824&this.fg},C.prototype.isItalic=function(){return 67108864&this.bg},C.prototype.isDim=function(){return 134217728&this.bg},C.prototype.getFgColorMode=function(){return 50331648&this.fg},C.prototype.getBgColorMode=function(){return 50331648&this.bg},C.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},C.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},C.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},C.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},C.prototype.isFgDefault=function(){return(50331648&this.fg)==0},C.prototype.isBgDefault=function(){return(50331648&this.bg)==0},C.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},C.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},C.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},C.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},C.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},C.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()},C.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},C.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},C.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},C.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},C.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},C}();S.AttributeData=Z;var s=function(){function C(A,u){A===void 0&&(A=0),u===void 0&&(u=-1),this.underlineStyle=A,this.underlineColor=u}return C.prototype.clone=function(){return new C(this.underlineStyle,this.underlineColor)},C.prototype.isEmpty=function(){return this.underlineStyle===0},C}();S.ExtendedAttrs=s},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.addDisposableDomListener=void 0,S.addDisposableDomListener=function(Z,s,C,A){Z.addEventListener(s,C,A);var u=!1;return{dispose:function(){u||(u=!0,Z.removeEventListener(s,C,A))}}}},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Utf8ToUtf32=S.StringToUtf32=S.utf32ToString=S.stringFromCodePoint=void 0,S.stringFromCodePoint=function(C){return C>65535?(C-=65536,String.fromCharCode(55296+(C>>10))+String.fromCharCode(C%1024+56320)):String.fromCharCode(C)},S.utf32ToString=function(C,A,u){A===void 0&&(A=0),u===void 0&&(u=C.length);for(var p="",b=A;b<u;++b){var g=C[b];g>65535?(g-=65536,p+=String.fromCharCode(55296+(g>>10))+String.fromCharCode(g%1024+56320)):p+=String.fromCharCode(g)}return p};var Z=function(){function C(){this._interim=0}return C.prototype.clear=function(){this._interim=0},C.prototype.decode=function(A,u){var p=A.length;if(!p)return 0;var b=0,g=0;this._interim&&(56320<=(c=A.charCodeAt(g++))&&c<=57343?u[b++]=1024*(this._interim-55296)+c-56320+65536:(u[b++]=this._interim,u[b++]=c),this._interim=0);for(var y=g;y<p;++y){var v=A.charCodeAt(y);if(55296<=v&&v<=56319){if(++y>=p)return this._interim=v,b;var c;56320<=(c=A.charCodeAt(y))&&c<=57343?u[b++]=1024*(v-55296)+c-56320+65536:(u[b++]=v,u[b++]=c)}else u[b++]=v}return b},C}();S.StringToUtf32=Z;var s=function(){function C(){this.interim=new Uint8Array(3)}return C.prototype.clear=function(){this.interim.fill(0)},C.prototype.decode=function(A,u){var p=A.length;if(!p)return 0;var b,g,y,v,c=0,h=0,m=0;if(this.interim[0]){var E=!1,T=this.interim[0];T&=(224&T)==192?31:(240&T)==224?15:7;for(var I=0,R=void 0;(R=63&this.interim[++I])&&I<4;)T<<=6,T|=R;for(var N=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,k=N-I;m<k;){if(m>=p)return 0;if((192&(R=A[m++]))!=128){m--,E=!0;break}this.interim[I++]=R,T<<=6,T|=63&R}E||(N===2?T<128?m--:u[c++]=T:N===3?T<2048||T>=55296&&T<=57343||(u[c++]=T):T<65536||T>1114111||(u[c++]=T)),this.interim.fill(0)}for(var L=p-4,H=m;H<p;){for(;!(!(H<L)||128&(b=A[H])||128&(g=A[H+1])||128&(y=A[H+2])||128&(v=A[H+3]));)u[c++]=b,u[c++]=g,u[c++]=y,u[c++]=v,H+=4;if((b=A[H++])<128)u[c++]=b;else if((224&b)==192){if(H>=p)return this.interim[0]=b,c;if((192&(g=A[H++]))!=128){H--;continue}if((h=(31&b)<<6|63&g)<128){H--;continue}u[c++]=h}else if((240&b)==224){if(H>=p)return this.interim[0]=b,c;if((192&(g=A[H++]))!=128){H--;continue}if(H>=p)return this.interim[0]=b,this.interim[1]=g,c;if((192&(y=A[H++]))!=128){H--;continue}if((h=(15&b)<<12|(63&g)<<6|63&y)<2048||h>=55296&&h<=57343)continue;u[c++]=h}else if((248&b)==240){if(H>=p)return this.interim[0]=b,c;if((192&(g=A[H++]))!=128){H--;continue}if(H>=p)return this.interim[0]=b,this.interim[1]=g,c;if((192&(y=A[H++]))!=128){H--;continue}if(H>=p)return this.interim[0]=b,this.interim[1]=g,this.interim[2]=y,c;if((192&(v=A[H++]))!=128){H--;continue}if((h=(7&b)<<18|(63&g)<<12|(63&y)<<6|63&v)<65536||h>1114111)continue;u[c++]=h}}return c},C}();S.Utf8ToUtf32=s},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.CHAR_ATLAS_CELL_SPACING=S.DIM_OPACITY=S.INVERTED_DEFAULT_COLOR=void 0,S.INVERTED_DEFAULT_COLOR=257,S.DIM_OPACITY=.5,S.CHAR_ATLAS_CELL_SPACING=1},function(Q,S,B){"use strict";var Z,s,C,A;function u(b){var g=b.toString(16);return g.length<2?"0"+g:g}function p(b,g){return b<g?(g+.05)/(b+.05):(b+.05)/(g+.05)}Object.defineProperty(S,"__esModule",{value:!0}),S.contrastRatio=S.toPaddedHex=S.rgba=S.rgb=S.css=S.color=S.channels=void 0,function(b){b.toCss=function(g,y,v,c){return c!==void 0?"#"+u(g)+u(y)+u(v)+u(c):"#"+u(g)+u(y)+u(v)},b.toRgba=function(g,y,v,c){return c===void 0&&(c=255),(g<<24|y<<16|v<<8|c)>>>0}}(Z=S.channels||(S.channels={})),(s=S.color||(S.color={})).blend=function(b,g){var y=(255&g.rgba)/255;if(y===1)return{css:g.css,rgba:g.rgba};var v=g.rgba>>24&255,c=g.rgba>>16&255,h=g.rgba>>8&255,m=b.rgba>>24&255,E=b.rgba>>16&255,T=b.rgba>>8&255,I=m+Math.round((v-m)*y),R=E+Math.round((c-E)*y),N=T+Math.round((h-T)*y);return{css:Z.toCss(I,R,N),rgba:Z.toRgba(I,R,N)}},s.isOpaque=function(b){return(255&b.rgba)==255},s.ensureContrastRatio=function(b,g,y){var v=A.ensureContrastRatio(b.rgba,g.rgba,y);if(v)return A.toColor(v>>24&255,v>>16&255,v>>8&255)},s.opaque=function(b){var g=(255|b.rgba)>>>0,y=A.toChannels(g),v=y[0],c=y[1],h=y[2];return{css:Z.toCss(v,c,h),rgba:g}},s.opacity=function(b,g){var y=Math.round(255*g),v=A.toChannels(b.rgba),c=v[0],h=v[1],m=v[2];return{css:Z.toCss(c,h,m,y),rgba:Z.toRgba(c,h,m,y)}},(S.css||(S.css={})).toColor=function(b){switch(b.length){case 7:return{css:b,rgba:(parseInt(b.slice(1),16)<<8|255)>>>0};case 9:return{css:b,rgba:parseInt(b.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(b){function g(y,v,c){var h=y/255,m=v/255,E=c/255;return .2126*(h<=.03928?h/12.92:Math.pow((h+.055)/1.055,2.4))+.7152*(m<=.03928?m/12.92:Math.pow((m+.055)/1.055,2.4))+.0722*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))}b.relativeLuminance=function(y){return g(y>>16&255,y>>8&255,255&y)},b.relativeLuminance2=g}(C=S.rgb||(S.rgb={})),function(b){function g(v,c,h){for(var m=v>>24&255,E=v>>16&255,T=v>>8&255,I=c>>24&255,R=c>>16&255,N=c>>8&255,k=p(C.relativeLuminance2(I,N,R),C.relativeLuminance2(m,E,T));k<h&&(I>0||R>0||N>0);)I-=Math.max(0,Math.ceil(.1*I)),R-=Math.max(0,Math.ceil(.1*R)),N-=Math.max(0,Math.ceil(.1*N)),k=p(C.relativeLuminance2(I,N,R),C.relativeLuminance2(m,E,T));return(I<<24|R<<16|N<<8|255)>>>0}function y(v,c,h){for(var m=v>>24&255,E=v>>16&255,T=v>>8&255,I=c>>24&255,R=c>>16&255,N=c>>8&255,k=p(C.relativeLuminance2(I,N,R),C.relativeLuminance2(m,E,T));k<h&&(I<255||R<255||N<255);)I=Math.min(255,I+Math.ceil(.1*(255-I))),R=Math.min(255,R+Math.ceil(.1*(255-R))),N=Math.min(255,N+Math.ceil(.1*(255-N))),k=p(C.relativeLuminance2(I,N,R),C.relativeLuminance2(m,E,T));return(I<<24|R<<16|N<<8|255)>>>0}b.ensureContrastRatio=function(v,c,h){var m=C.relativeLuminance(v>>8),E=C.relativeLuminance(c>>8);if(p(m,E)<h)return E<m?g(v,c,h):y(v,c,h)},b.reduceLuminance=g,b.increaseLuminance=y,b.toChannels=function(v){return[v>>24&255,v>>16&255,v>>8&255,255&v]},b.toColor=function(v,c,h){return{css:Z.toCss(v,c,h),rgba:Z.toRgba(v,c,h)}}}(A=S.rgba||(S.rgba={})),S.toPaddedHex=u,S.contrastRatio=p},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.isLinux=S.isWindows=S.isIphone=S.isIpad=S.isMac=S.isSafari=S.isFirefox=void 0;var Z=typeof navigator=="undefined",s=Z?"node":navigator.userAgent,C=Z?"node":navigator.platform;function A(u,p){return u.indexOf(p)>=0}S.isFirefox=!!~s.indexOf("Firefox"),S.isSafari=/^((?!chrome|android).)*safari/i.test(s),S.isMac=A(["Macintosh","MacIntel","MacPPC","Mac68K"],C),S.isIpad=C==="iPad",S.isIphone=C==="iPhone",S.isWindows=A(["Windows","Win16","Win32","WinCE"],C),S.isLinux=C.indexOf("Linux")>=0},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.C1=S.C0=void 0,function(Z){Z.NUL="\0",Z.SOH="",Z.STX="",Z.ETX="",Z.EOT="",Z.ENQ="",Z.ACK="",Z.BEL="\x07",Z.BS="\b",Z.HT=" ",Z.LF=`
`,Z.VT="\v",Z.FF="\f",Z.CR="\r",Z.SO="",Z.SI="",Z.DLE="",Z.DC1="",Z.DC2="",Z.DC3="",Z.DC4="",Z.NAK="",Z.SYN="",Z.ETB="",Z.CAN="",Z.EM="",Z.SUB="",Z.ESC="\x1B",Z.FS="",Z.GS="",Z.RS="",Z.US="",Z.SP=" ",Z.DEL="\x7F"}(S.C0||(S.C0={})),function(Z){Z.PAD="\x80",Z.HOP="\x81",Z.BPH="\x82",Z.NBH="\x83",Z.IND="\x84",Z.NEL="\x85",Z.SSA="\x86",Z.ESA="\x87",Z.HTS="\x88",Z.HTJ="\x89",Z.VTS="\x8A",Z.PLD="\x8B",Z.PLU="\x8C",Z.RI="\x8D",Z.SS2="\x8E",Z.SS3="\x8F",Z.DCS="\x90",Z.PU1="\x91",Z.PU2="\x92",Z.STS="\x93",Z.CCH="\x94",Z.MW="\x95",Z.SPA="\x96",Z.EPA="\x97",Z.SOS="\x98",Z.SGCI="\x99",Z.SCI="\x9A",Z.CSI="\x9B",Z.ST="\x9C",Z.OSC="\x9D",Z.PM="\x9E",Z.APC="\x9F"}(S.C1||(S.C1={}))},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.BaseRenderLayer=void 0;var Z=B(3),s=B(9),C=B(25),A=B(6),u=B(28),p=B(10),b=B(17),g=function(){function y(v,c,h,m,E,T,I,R){this._container=v,this._alpha=m,this._colors=E,this._rendererId=T,this._bufferService=I,this._optionsService=R,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-"+c+"-layer"),this._canvas.style.zIndex=h.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return y.prototype.dispose=function(){var v;b.removeElementFromParent(this._canvas),(v=this._charAtlas)===null||v===void 0||v.dispose()},y.prototype._initCanvas=function(){this._ctx=u.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},y.prototype.onOptionsChanged=function(){},y.prototype.onBlur=function(){},y.prototype.onFocus=function(){},y.prototype.onCursorMove=function(){},y.prototype.onGridChanged=function(v,c){},y.prototype.onSelectionChanged=function(v,c,h){h===void 0&&(h=!1)},y.prototype.setColors=function(v){this._refreshCharAtlas(v)},y.prototype._setTransparency=function(v){if(v!==this._alpha){var c=this._canvas;this._alpha=v,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,c),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},y.prototype._refreshCharAtlas=function(v){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=C.acquireCharAtlas(this._optionsService.options,this._rendererId,v,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},y.prototype.resize=function(v){this._scaledCellWidth=v.scaledCellWidth,this._scaledCellHeight=v.scaledCellHeight,this._scaledCharWidth=v.scaledCharWidth,this._scaledCharHeight=v.scaledCharHeight,this._scaledCharLeft=v.scaledCharLeft,this._scaledCharTop=v.scaledCharTop,this._canvas.width=v.scaledCanvasWidth,this._canvas.height=v.scaledCanvasHeight,this._canvas.style.width=v.canvasWidth+"px",this._canvas.style.height=v.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},y.prototype._fillCells=function(v,c,h,m){this._ctx.fillRect(v*this._scaledCellWidth,c*this._scaledCellHeight,h*this._scaledCellWidth,m*this._scaledCellHeight)},y.prototype._fillBottomLineAtCells=function(v,c,h){h===void 0&&(h=1),this._ctx.fillRect(v*this._scaledCellWidth,(c+1)*this._scaledCellHeight-window.devicePixelRatio-1,h*this._scaledCellWidth,window.devicePixelRatio)},y.prototype._fillLeftLineAtCell=function(v,c,h){this._ctx.fillRect(v*this._scaledCellWidth,c*this._scaledCellHeight,window.devicePixelRatio*h,this._scaledCellHeight)},y.prototype._strokeRectAtCell=function(v,c,h,m){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(v*this._scaledCellWidth+window.devicePixelRatio/2,c*this._scaledCellHeight+window.devicePixelRatio/2,h*this._scaledCellWidth-window.devicePixelRatio,m*this._scaledCellHeight-window.devicePixelRatio)},y.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))},y.prototype._clearCells=function(v,c,h,m){this._alpha?this._ctx.clearRect(v*this._scaledCellWidth,c*this._scaledCellHeight,h*this._scaledCellWidth,m*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(v*this._scaledCellWidth,c*this._scaledCellHeight,h*this._scaledCellWidth,m*this._scaledCellHeight))},y.prototype._fillCharTrueColor=function(v,c,h){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(h),this._ctx.fillText(v.getChars(),c*this._scaledCellWidth+this._scaledCharLeft,h*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},y.prototype._drawChars=function(v,c,h){var m,E,T=this._getContrastColor(v);T||v.isFgRGB()||v.isBgRGB()?this._drawUncachedChars(v,c,h,T):(v.isInverse()?(m=v.isBgDefault()?s.INVERTED_DEFAULT_COLOR:v.getBgColor(),E=v.isFgDefault()?s.INVERTED_DEFAULT_COLOR:v.getFgColor()):(E=v.isBgDefault()?Z.DEFAULT_COLOR:v.getBgColor(),m=v.isFgDefault()?Z.DEFAULT_COLOR:v.getFgColor()),m+=this._optionsService.options.drawBoldTextInBrightColors&&v.isBold()&&m<8?8:0,this._currentGlyphIdentifier.chars=v.getChars()||Z.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=v.getCode()||Z.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=E,this._currentGlyphIdentifier.fg=m,this._currentGlyphIdentifier.bold=!!v.isBold(),this._currentGlyphIdentifier.dim=!!v.isDim(),this._currentGlyphIdentifier.italic=!!v.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,c*this._scaledCellWidth+this._scaledCharLeft,h*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(v,c,h))},y.prototype._drawUncachedChars=function(v,c,h,m){if(this._ctx.save(),this._ctx.font=this._getFont(!!v.isBold(),!!v.isItalic()),this._ctx.textBaseline="middle",v.isInverse())if(m)this._ctx.fillStyle=m.css;else if(v.isBgDefault())this._ctx.fillStyle=p.color.opaque(this._colors.background).css;else if(v.isBgRGB())this._ctx.fillStyle="rgb("+A.AttributeData.toColorRGB(v.getBgColor()).join(",")+")";else{var E=v.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&v.isBold()&&E<8&&(E+=8),this._ctx.fillStyle=this._colors.ansi[E].css}else if(m)this._ctx.fillStyle=m.css;else if(v.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(v.isFgRGB())this._ctx.fillStyle="rgb("+A.AttributeData.toColorRGB(v.getFgColor()).join(",")+")";else{var T=v.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&v.isBold()&&T<8&&(T+=8),this._ctx.fillStyle=this._colors.ansi[T].css}this._clipRow(h),v.isDim()&&(this._ctx.globalAlpha=s.DIM_OPACITY),this._ctx.fillText(v.getChars(),c*this._scaledCellWidth+this._scaledCharLeft,h*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},y.prototype._clipRow=function(v){this._ctx.beginPath(),this._ctx.rect(0,v*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},y.prototype._getFont=function(v,c){return(c?"italic":"")+" "+(v?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},y.prototype._getContrastColor=function(v){if(this._optionsService.options.minimumContrastRatio!==1){var c=this._colors.contrastCache.getColor(v.bg,v.fg);if(c!==void 0)return c||void 0;var h=v.getFgColor(),m=v.getFgColorMode(),E=v.getBgColor(),T=v.getBgColorMode(),I=!!v.isInverse(),R=!!v.isInverse();if(I){var N=h;h=E,E=N;var k=m;m=T,T=k}var L=this._resolveBackgroundRgba(T,E,I),H=this._resolveForegroundRgba(m,h,I,R),D=p.rgba.ensureContrastRatio(L,H,this._optionsService.options.minimumContrastRatio);if(D){var V={css:p.channels.toCss(D>>24&255,D>>16&255,D>>8&255),rgba:D};return this._colors.contrastCache.setColor(v.bg,v.fg,V),V}this._colors.contrastCache.setColor(v.bg,v.fg,null)}},y.prototype._resolveBackgroundRgba=function(v,c,h){switch(v){case 16777216:case 33554432:return this._colors.ansi[c].rgba;case 50331648:return c<<8;case 0:default:return h?this._colors.foreground.rgba:this._colors.background.rgba}},y.prototype._resolveForegroundRgba=function(v,c,h,m){switch(v){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&m&&c<8&&(c+=8),this._colors.ansi[c].rgba;case 50331648:return c<<8;case 0:default:return h?this._colors.background.rgba:this._colors.foreground.rgba}},y}();S.BaseRenderLayer=g},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.createDecorator=S.getServiceDependencies=S.serviceRegistry=void 0;function Z(s,C,A){C.di$target===C?C.di$dependencies.push({id:s,index:A}):(C.di$dependencies=[{id:s,index:A}],C.di$target=C)}S.serviceRegistry=new Map,S.getServiceDependencies=function(s){return s.di$dependencies||[]},S.createDecorator=function(s){if(S.serviceRegistry.has(s))return S.serviceRegistry.get(s);var C=function(A,u,p){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Z(C,A,p)};return C.toString=function(){return s},S.serviceRegistry.set(s,C),C}},function(Q,S,B){"use strict";function Z(s,C,A,u){if(A===void 0&&(A=0),u===void 0&&(u=s.length),A>=s.length)return s;A=(s.length+A)%s.length,u=u>=s.length?s.length:(s.length+u)%s.length;for(var p=A;p<u;++p)s[p]=C;return s}Object.defineProperty(S,"__esModule",{value:!0}),S.concat=S.fillFallback=S.fill=void 0,S.fill=function(s,C,A,u){return s.fill?s.fill(C,A,u):Z(s,C,A,u)},S.fillFallback=Z,S.concat=function(s,C){var A=new s.constructor(s.length+C.length);return A.set(s),A.set(C,s.length),A}},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.BufferLine=S.DEFAULT_ATTR_DATA=void 0;var Z=B(8),s=B(3),C=B(4),A=B(6);S.DEFAULT_ATTR_DATA=Object.freeze(new A.AttributeData);var u=function(){function p(b,g,y){y===void 0&&(y=!1),this.isWrapped=y,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*b);for(var v=g||C.CellData.fromCharData([0,s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]),c=0;c<b;++c)this.setCell(c,v);this.length=b}return p.prototype.get=function(b){var g=this._data[3*b+0],y=2097151&g;return[this._data[3*b+1],2097152&g?this._combined[b]:y?Z.stringFromCodePoint(y):"",g>>22,2097152&g?this._combined[b].charCodeAt(this._combined[b].length-1):y]},p.prototype.set=function(b,g){this._data[3*b+1]=g[s.CHAR_DATA_ATTR_INDEX],g[s.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[b]=g[1],this._data[3*b+0]=2097152|b|g[s.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*b+0]=g[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|g[s.CHAR_DATA_WIDTH_INDEX]<<22},p.prototype.getWidth=function(b){return this._data[3*b+0]>>22},p.prototype.hasWidth=function(b){return 12582912&this._data[3*b+0]},p.prototype.getFg=function(b){return this._data[3*b+1]},p.prototype.getBg=function(b){return this._data[3*b+2]},p.prototype.hasContent=function(b){return 4194303&this._data[3*b+0]},p.prototype.getCodePoint=function(b){var g=this._data[3*b+0];return 2097152&g?this._combined[b].charCodeAt(this._combined[b].length-1):2097151&g},p.prototype.isCombined=function(b){return 2097152&this._data[3*b+0]},p.prototype.getString=function(b){var g=this._data[3*b+0];return 2097152&g?this._combined[b]:2097151&g?Z.stringFromCodePoint(2097151&g):""},p.prototype.loadCell=function(b,g){var y=3*b;return g.content=this._data[y+0],g.fg=this._data[y+1],g.bg=this._data[y+2],2097152&g.content&&(g.combinedData=this._combined[b]),268435456&g.bg&&(g.extended=this._extendedAttrs[b]),g},p.prototype.setCell=function(b,g){2097152&g.content&&(this._combined[b]=g.combinedData),268435456&g.bg&&(this._extendedAttrs[b]=g.extended),this._data[3*b+0]=g.content,this._data[3*b+1]=g.fg,this._data[3*b+2]=g.bg},p.prototype.setCellFromCodePoint=function(b,g,y,v,c,h){268435456&c&&(this._extendedAttrs[b]=h),this._data[3*b+0]=g|y<<22,this._data[3*b+1]=v,this._data[3*b+2]=c},p.prototype.addCodepointToCell=function(b,g){var y=this._data[3*b+0];2097152&y?this._combined[b]+=Z.stringFromCodePoint(g):(2097151&y?(this._combined[b]=Z.stringFromCodePoint(2097151&y)+Z.stringFromCodePoint(g),y&=-2097152,y|=2097152):y=g|1<<22,this._data[3*b+0]=y)},p.prototype.insertCells=function(b,g,y,v){if((b%=this.length)&&this.getWidth(b-1)===2&&this.setCellFromCodePoint(b-1,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new A.ExtendedAttrs),g<this.length-b){for(var c=new C.CellData,h=this.length-b-g-1;h>=0;--h)this.setCell(b+g+h,this.loadCell(b+h,c));for(h=0;h<g;++h)this.setCell(b+h,y)}else for(h=b;h<this.length;++h)this.setCell(h,y);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new A.ExtendedAttrs)},p.prototype.deleteCells=function(b,g,y,v){if(b%=this.length,g<this.length-b){for(var c=new C.CellData,h=0;h<this.length-b-g;++h)this.setCell(b+h,this.loadCell(b+g+h,c));for(h=this.length-g;h<this.length;++h)this.setCell(h,y)}else for(h=b;h<this.length;++h)this.setCell(h,y);b&&this.getWidth(b-1)===2&&this.setCellFromCodePoint(b-1,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new A.ExtendedAttrs),this.getWidth(b)!==0||this.hasContent(b)||this.setCellFromCodePoint(b,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new A.ExtendedAttrs)},p.prototype.replaceCells=function(b,g,y,v){for(b&&this.getWidth(b-1)===2&&this.setCellFromCodePoint(b-1,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new A.ExtendedAttrs),g<this.length&&this.getWidth(g-1)===2&&this.setCellFromCodePoint(g,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new A.ExtendedAttrs);b<g&&b<this.length;)this.setCell(b++,y)},p.prototype.resize=function(b,g){if(b!==this.length){if(b>this.length){var y=new Uint32Array(3*b);this.length&&(3*b<this._data.length?y.set(this._data.subarray(0,3*b)):y.set(this._data)),this._data=y;for(var v=this.length;v<b;++v)this.setCell(v,g)}else if(b){(y=new Uint32Array(3*b)).set(this._data.subarray(0,3*b)),this._data=y;var c=Object.keys(this._combined);for(v=0;v<c.length;v++){var h=parseInt(c[v],10);h>=b&&delete this._combined[h]}}else this._data=new Uint32Array(0),this._combined={};this.length=b}},p.prototype.fill=function(b){this._combined={},this._extendedAttrs={};for(var g=0;g<this.length;++g)this.setCell(g,b)},p.prototype.copyFrom=function(b){for(var g in this.length!==b.length?this._data=new Uint32Array(b._data):this._data.set(b._data),this.length=b.length,this._combined={},b._combined)this._combined[g]=b._combined[g];for(var g in this._extendedAttrs={},b._extendedAttrs)this._extendedAttrs[g]=b._extendedAttrs[g];this.isWrapped=b.isWrapped},p.prototype.clone=function(){var b=new p(0);for(var g in b._data=new Uint32Array(this._data),b.length=this.length,this._combined)b._combined[g]=this._combined[g];for(var g in this._extendedAttrs)b._extendedAttrs[g]=this._extendedAttrs[g];return b.isWrapped=this.isWrapped,b},p.prototype.getTrimmedLength=function(){for(var b=this.length-1;b>=0;--b)if(4194303&this._data[3*b+0])return b+(this._data[3*b+0]>>22);return 0},p.prototype.copyCellsFrom=function(b,g,y,v,c){var h=b._data;if(c)for(var m=v-1;m>=0;m--)for(var E=0;E<3;E++)this._data[3*(y+m)+E]=h[3*(g+m)+E];else for(m=0;m<v;m++)for(E=0;E<3;E++)this._data[3*(y+m)+E]=h[3*(g+m)+E];var T=Object.keys(b._combined);for(E=0;E<T.length;E++){var I=parseInt(T[E],10);I>=g&&(this._combined[I-g+y]=b._combined[I])}},p.prototype.translateToString=function(b,g,y){b===void 0&&(b=!1),g===void 0&&(g=0),y===void 0&&(y=this.length),b&&(y=Math.min(y,this.getTrimmedLength()));for(var v="";g<y;){var c=this._data[3*g+0],h=2097151&c;v+=2097152&c?this._combined[g]:h?Z.stringFromCodePoint(h):s.WHITESPACE_CELL_CHAR,g+=c>>22||1}return v},p}();S.BufferLine=u},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.removeElementFromParent=void 0,S.removeElementFromParent=function(){for(var Z,s=[],C=0;C<arguments.length;C++)s[C]=arguments[C];for(var A=0,u=s;A<u.length;A++){var p=u[A];(Z=p==null?void 0:p.parentElement)===null||Z===void 0||Z.removeChild(p)}}},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.tooMuchOutput=S.promptLabel=void 0,S.promptLabel="Terminal input",S.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(H,D){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,P){V.__proto__=P}||function(V,P){for(var U in P)P.hasOwnProperty(U)&&(V[U]=P[U])})(H,D)},function(H,D){function V(){this.constructor=H}Z(H,D),H.prototype=D===null?Object.create(D):(V.prototype=D.prototype,new V)});Object.defineProperty(S,"__esModule",{value:!0}),S.InputHandler=S.WindowsOptionsReportType=void 0;var C,A=B(12),u=B(20),p=B(39),b=B(2),g=B(15),y=B(8),v=B(16),c=B(0),h=B(3),m=B(4),E=B(6),T=B(22),I=B(24),R={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function N(H,D){if(H>24)return D.setWinLines||!1;switch(H){case 1:return!!D.restoreWin;case 2:return!!D.minimizeWin;case 3:return!!D.setWinPosition;case 4:return!!D.setWinSizePixels;case 5:return!!D.raiseWin;case 6:return!!D.lowerWin;case 7:return!!D.refreshWin;case 8:return!!D.setWinSizeChars;case 9:return!!D.maximizeWin;case 10:return!!D.fullscreenWin;case 11:return!!D.getWinState;case 13:return!!D.getWinPosition;case 14:return!!D.getWinSizePixels;case 15:return!!D.getScreenSizePixels;case 16:return!!D.getCellSizePixels;case 18:return!!D.getWinSizeChars;case 19:return!!D.getScreenSizeChars;case 20:return!!D.getIconTitle;case 21:return!!D.getWinTitle;case 22:return!!D.pushTitle;case 23:return!!D.popTitle;case 24:return!!D.setWinLines}return!1}(function(H){H[H.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",H[H.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(C=S.WindowsOptionsReportType||(S.WindowsOptionsReportType={}));var k=function(){function H(D,V,P,U){this._bufferService=D,this._coreService=V,this._logService=P,this._optionsService=U,this._data=new Uint32Array(0)}return H.prototype.hook=function(D){this._data=new Uint32Array(0)},H.prototype.put=function(D,V,P){this._data=g.concat(this._data,D.subarray(V,P))},H.prototype.unhook=function(D){if(D){var V=y.utf32ToString(this._data);switch(this._data=new Uint32Array(0),V){case'"q':return this._coreService.triggerDataEvent(A.C0.ESC+'P1$r0"q'+A.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(A.C0.ESC+'P1$r61;1"p'+A.C0.ESC+"\\");case"r":var P=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(A.C0.ESC+"P1$r"+P+A.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(A.C0.ESC+"P1$r0m"+A.C0.ESC+"\\");case" q":var U={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return U-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(A.C0.ESC+"P1$r"+U+" q"+A.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",V),this._coreService.triggerDataEvent(A.C0.ESC+"P0$r"+A.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},H}(),L=function(H){function D(V,P,U,G,J,ee,ae,oe,ue){ue===void 0&&(ue=new p.EscapeSequenceParser);var se=H.call(this)||this;se._bufferService=V,se._charsetService=P,se._coreService=U,se._dirtyRowService=G,se._logService=J,se._optionsService=ee,se._coreMouseService=ae,se._unicodeService=oe,se._parser=ue,se._parseBuffer=new Uint32Array(4096),se._stringDecoder=new y.StringToUtf32,se._utf8Decoder=new y.Utf8ToUtf32,se._workCell=new m.CellData,se._windowTitle="",se._iconName="",se._windowTitleStack=[],se._iconNameStack=[],se._curAttrData=v.DEFAULT_ATTR_DATA.clone(),se._eraseAttrDataInternal=v.DEFAULT_ATTR_DATA.clone(),se._onRequestBell=new c.EventEmitter,se._onRequestRefreshRows=new c.EventEmitter,se._onRequestReset=new c.EventEmitter,se._onRequestScroll=new c.EventEmitter,se._onRequestSyncScrollBar=new c.EventEmitter,se._onRequestWindowsOptionsReport=new c.EventEmitter,se._onA11yChar=new c.EventEmitter,se._onA11yTab=new c.EventEmitter,se._onCursorMove=new c.EventEmitter,se._onLineFeed=new c.EventEmitter,se._onScroll=new c.EventEmitter,se._onTitleChange=new c.EventEmitter,se.register(se._parser),se._parser.setCsiHandlerFallback(function(le,xe){se._logService.debug("Unknown CSI code: ",{identifier:se._parser.identToString(le),params:xe.toArray()})}),se._parser.setEscHandlerFallback(function(le){se._logService.debug("Unknown ESC code: ",{identifier:se._parser.identToString(le)})}),se._parser.setExecuteHandlerFallback(function(le){se._logService.debug("Unknown EXECUTE code: ",{code:le})}),se._parser.setOscHandlerFallback(function(le,xe,pe){se._logService.debug("Unknown OSC code: ",{identifier:le,action:xe,data:pe})}),se._parser.setDcsHandlerFallback(function(le,xe,pe){xe==="HOOK"&&(pe=pe.toArray()),se._logService.debug("Unknown DCS code: ",{identifier:se._parser.identToString(le),action:xe,payload:pe})}),se._parser.setPrintHandler(function(le,xe,pe){return se.print(le,xe,pe)}),se._parser.setCsiHandler({final:"@"},function(le){return se.insertChars(le)}),se._parser.setCsiHandler({intermediates:" ",final:"@"},function(le){return se.scrollLeft(le)}),se._parser.setCsiHandler({final:"A"},function(le){return se.cursorUp(le)}),se._parser.setCsiHandler({intermediates:" ",final:"A"},function(le){return se.scrollRight(le)}),se._parser.setCsiHandler({final:"B"},function(le){return se.cursorDown(le)}),se._parser.setCsiHandler({final:"C"},function(le){return se.cursorForward(le)}),se._parser.setCsiHandler({final:"D"},function(le){return se.cursorBackward(le)}),se._parser.setCsiHandler({final:"E"},function(le){return se.cursorNextLine(le)}),se._parser.setCsiHandler({final:"F"},function(le){return se.cursorPrecedingLine(le)}),se._parser.setCsiHandler({final:"G"},function(le){return se.cursorCharAbsolute(le)}),se._parser.setCsiHandler({final:"H"},function(le){return se.cursorPosition(le)}),se._parser.setCsiHandler({final:"I"},function(le){return se.cursorForwardTab(le)}),se._parser.setCsiHandler({final:"J"},function(le){return se.eraseInDisplay(le)}),se._parser.setCsiHandler({prefix:"?",final:"J"},function(le){return se.eraseInDisplay(le)}),se._parser.setCsiHandler({final:"K"},function(le){return se.eraseInLine(le)}),se._parser.setCsiHandler({prefix:"?",final:"K"},function(le){return se.eraseInLine(le)}),se._parser.setCsiHandler({final:"L"},function(le){return se.insertLines(le)}),se._parser.setCsiHandler({final:"M"},function(le){return se.deleteLines(le)}),se._parser.setCsiHandler({final:"P"},function(le){return se.deleteChars(le)}),se._parser.setCsiHandler({final:"S"},function(le){return se.scrollUp(le)}),se._parser.setCsiHandler({final:"T"},function(le){return se.scrollDown(le)}),se._parser.setCsiHandler({final:"X"},function(le){return se.eraseChars(le)}),se._parser.setCsiHandler({final:"Z"},function(le){return se.cursorBackwardTab(le)}),se._parser.setCsiHandler({final:"`"},function(le){return se.charPosAbsolute(le)}),se._parser.setCsiHandler({final:"a"},function(le){return se.hPositionRelative(le)}),se._parser.setCsiHandler({final:"b"},function(le){return se.repeatPrecedingCharacter(le)}),se._parser.setCsiHandler({final:"c"},function(le){return se.sendDeviceAttributesPrimary(le)}),se._parser.setCsiHandler({prefix:">",final:"c"},function(le){return se.sendDeviceAttributesSecondary(le)}),se._parser.setCsiHandler({final:"d"},function(le){return se.linePosAbsolute(le)}),se._parser.setCsiHandler({final:"e"},function(le){return se.vPositionRelative(le)}),se._parser.setCsiHandler({final:"f"},function(le){return se.hVPosition(le)}),se._parser.setCsiHandler({final:"g"},function(le){return se.tabClear(le)}),se._parser.setCsiHandler({final:"h"},function(le){return se.setMode(le)}),se._parser.setCsiHandler({prefix:"?",final:"h"},function(le){return se.setModePrivate(le)}),se._parser.setCsiHandler({final:"l"},function(le){return se.resetMode(le)}),se._parser.setCsiHandler({prefix:"?",final:"l"},function(le){return se.resetModePrivate(le)}),se._parser.setCsiHandler({final:"m"},function(le){return se.charAttributes(le)}),se._parser.setCsiHandler({final:"n"},function(le){return se.deviceStatus(le)}),se._parser.setCsiHandler({prefix:"?",final:"n"},function(le){return se.deviceStatusPrivate(le)}),se._parser.setCsiHandler({intermediates:"!",final:"p"},function(le){return se.softReset(le)}),se._parser.setCsiHandler({intermediates:" ",final:"q"},function(le){return se.setCursorStyle(le)}),se._parser.setCsiHandler({final:"r"},function(le){return se.setScrollRegion(le)}),se._parser.setCsiHandler({final:"s"},function(le){return se.saveCursor(le)}),se._parser.setCsiHandler({final:"t"},function(le){return se.windowOptions(le)}),se._parser.setCsiHandler({final:"u"},function(le){return se.restoreCursor(le)}),se._parser.setCsiHandler({intermediates:"'",final:"}"},function(le){return se.insertColumns(le)}),se._parser.setCsiHandler({intermediates:"'",final:"~"},function(le){return se.deleteColumns(le)}),se._parser.setExecuteHandler(A.C0.BEL,function(){return se.bell()}),se._parser.setExecuteHandler(A.C0.LF,function(){return se.lineFeed()}),se._parser.setExecuteHandler(A.C0.VT,function(){return se.lineFeed()}),se._parser.setExecuteHandler(A.C0.FF,function(){return se.lineFeed()}),se._parser.setExecuteHandler(A.C0.CR,function(){return se.carriageReturn()}),se._parser.setExecuteHandler(A.C0.BS,function(){return se.backspace()}),se._parser.setExecuteHandler(A.C0.HT,function(){return se.tab()}),se._parser.setExecuteHandler(A.C0.SO,function(){return se.shiftOut()}),se._parser.setExecuteHandler(A.C0.SI,function(){return se.shiftIn()}),se._parser.setExecuteHandler(A.C1.IND,function(){return se.index()}),se._parser.setExecuteHandler(A.C1.NEL,function(){return se.nextLine()}),se._parser.setExecuteHandler(A.C1.HTS,function(){return se.tabSet()}),se._parser.setOscHandler(0,new T.OscHandler(function(le){se.setTitle(le),se.setIconName(le)})),se._parser.setOscHandler(1,new T.OscHandler(function(le){return se.setIconName(le)})),se._parser.setOscHandler(2,new T.OscHandler(function(le){return se.setTitle(le)})),se._parser.setEscHandler({final:"7"},function(){return se.saveCursor()}),se._parser.setEscHandler({final:"8"},function(){return se.restoreCursor()}),se._parser.setEscHandler({final:"D"},function(){return se.index()}),se._parser.setEscHandler({final:"E"},function(){return se.nextLine()}),se._parser.setEscHandler({final:"H"},function(){return se.tabSet()}),se._parser.setEscHandler({final:"M"},function(){return se.reverseIndex()}),se._parser.setEscHandler({final:"="},function(){return se.keypadApplicationMode()}),se._parser.setEscHandler({final:">"},function(){return se.keypadNumericMode()}),se._parser.setEscHandler({final:"c"},function(){return se.fullReset()}),se._parser.setEscHandler({final:"n"},function(){return se.setgLevel(2)}),se._parser.setEscHandler({final:"o"},function(){return se.setgLevel(3)}),se._parser.setEscHandler({final:"|"},function(){return se.setgLevel(3)}),se._parser.setEscHandler({final:"}"},function(){return se.setgLevel(2)}),se._parser.setEscHandler({final:"~"},function(){return se.setgLevel(1)}),se._parser.setEscHandler({intermediates:"%",final:"@"},function(){return se.selectDefaultCharset()}),se._parser.setEscHandler({intermediates:"%",final:"G"},function(){return se.selectDefaultCharset()});var ye=function(le){ve._parser.setEscHandler({intermediates:"(",final:le},function(){return se.selectCharset("("+le)}),ve._parser.setEscHandler({intermediates:")",final:le},function(){return se.selectCharset(")"+le)}),ve._parser.setEscHandler({intermediates:"*",final:le},function(){return se.selectCharset("*"+le)}),ve._parser.setEscHandler({intermediates:"+",final:le},function(){return se.selectCharset("+"+le)}),ve._parser.setEscHandler({intermediates:"-",final:le},function(){return se.selectCharset("-"+le)}),ve._parser.setEscHandler({intermediates:".",final:le},function(){return se.selectCharset("."+le)}),ve._parser.setEscHandler({intermediates:"/",final:le},function(){return se.selectCharset("/"+le)})},ve=this;for(var Re in u.CHARSETS)ye(Re);return se._parser.setEscHandler({intermediates:"#",final:"8"},function(){return se.screenAlignmentPattern()}),se._parser.setErrorHandler(function(le){return se._logService.error("Parsing error: ",le),le}),se._parser.setDcsHandler({intermediates:"$",final:"q"},new k(se._bufferService,se._coreService,se._logService,se._optionsService)),se}return s(D,H),Object.defineProperty(D.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),D.prototype.dispose=function(){H.prototype.dispose.call(this)},D.prototype.parse=function(V){var P=this._bufferService.buffer,U=P.x,G=P.y;if(this._logService.debug("parsing data",V),this._parseBuffer.length<V.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(V.length,131072))),this._dirtyRowService.clearRange(),V.length>131072)for(var J=0;J<V.length;J+=131072){var ee=J+131072<V.length?J+131072:V.length,ae=typeof V=="string"?this._stringDecoder.decode(V.substring(J,ee),this._parseBuffer):this._utf8Decoder.decode(V.subarray(J,ee),this._parseBuffer);this._parser.parse(this._parseBuffer,ae)}else ae=typeof V=="string"?this._stringDecoder.decode(V,this._parseBuffer):this._utf8Decoder.decode(V,this._parseBuffer),this._parser.parse(this._parseBuffer,ae);(P=this._bufferService.buffer).x===U&&P.y===G||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},D.prototype.print=function(V,P,U){var G,J,ee=this._bufferService.buffer,ae=this._charsetService.charset,oe=this._optionsService.options.screenReaderMode,ue=this._bufferService.cols,se=this._coreService.decPrivateModes.wraparound,ye=this._coreService.modes.insertMode,ve=this._curAttrData,Re=ee.lines.get(ee.ybase+ee.y);this._dirtyRowService.markDirty(ee.y),ee.x&&U-P>0&&Re.getWidth(ee.x-1)===2&&Re.setCellFromCodePoint(ee.x-1,0,1,ve.fg,ve.bg,ve.extended);for(var le=P;le<U;++le){if(G=V[le],J=this._unicodeService.wcwidth(G),G<127&&ae){var xe=ae[String.fromCharCode(G)];xe&&(G=xe.charCodeAt(0))}if(oe&&this._onA11yChar.fire(y.stringFromCodePoint(G)),J||!ee.x){if(ee.x+J-1>=ue){if(se){for(;ee.x<ue;)Re.setCellFromCodePoint(ee.x++,0,1,ve.fg,ve.bg,ve.extended);ee.x=0,ee.y++,ee.y===ee.scrollBottom+1?(ee.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(ee.y>=this._bufferService.rows&&(ee.y=this._bufferService.rows-1),ee.lines.get(ee.ybase+ee.y).isWrapped=!0),Re=ee.lines.get(ee.ybase+ee.y)}else if(ee.x=ue-1,J===2)continue}if(ye&&(Re.insertCells(ee.x,J,ee.getNullCell(ve),ve),Re.getWidth(ue-1)===2&&Re.setCellFromCodePoint(ue-1,h.NULL_CELL_CODE,h.NULL_CELL_WIDTH,ve.fg,ve.bg,ve.extended)),Re.setCellFromCodePoint(ee.x++,G,J,ve.fg,ve.bg,ve.extended),J>0)for(;--J;)Re.setCellFromCodePoint(ee.x++,0,0,ve.fg,ve.bg,ve.extended)}else Re.getWidth(ee.x-1)?Re.addCodepointToCell(ee.x-1,G):Re.addCodepointToCell(ee.x-2,G)}U-P>0&&(Re.loadCell(ee.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),ee.x<ue&&U-P>0&&Re.getWidth(ee.x)===0&&!Re.hasContent(ee.x)&&Re.setCellFromCodePoint(ee.x,0,1,ve.fg,ve.bg,ve.extended),this._dirtyRowService.markDirty(ee.y)},D.prototype.addCsiHandler=function(V,P){var U=this;return V.final!=="t"||V.prefix||V.intermediates?this._parser.addCsiHandler(V,P):this._parser.addCsiHandler(V,function(G){return!N(G.params[0],U._optionsService.options.windowOptions)||P(G)})},D.prototype.addDcsHandler=function(V,P){return this._parser.addDcsHandler(V,new I.DcsHandler(P))},D.prototype.addEscHandler=function(V,P){return this._parser.addEscHandler(V,P)},D.prototype.addOscHandler=function(V,P){return this._parser.addOscHandler(V,new T.OscHandler(P))},D.prototype.bell=function(){this._onRequestBell.fire()},D.prototype.lineFeed=function(){var V=this._bufferService.buffer;this._dirtyRowService.markDirty(V.y),this._optionsService.options.convertEol&&(V.x=0),V.y++,V.y===V.scrollBottom+1?(V.y--,this._onRequestScroll.fire(this._eraseAttrData())):V.y>=this._bufferService.rows&&(V.y=this._bufferService.rows-1),V.x>=this._bufferService.cols&&V.x--,this._dirtyRowService.markDirty(V.y),this._onLineFeed.fire()},D.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},D.prototype.backspace=function(){var V,P=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(P.x>0&&P.x--);if(this._restrictCursor(this._bufferService.cols),P.x>0)P.x--;else if(P.x===0&&P.y>P.scrollTop&&P.y<=P.scrollBottom&&(!((V=P.lines.get(P.ybase+P.y))===null||V===void 0)&&V.isWrapped)){P.lines.get(P.ybase+P.y).isWrapped=!1,P.y--,P.x=this._bufferService.cols-1;var U=P.lines.get(P.ybase+P.y);U.hasWidth(P.x)&&!U.hasContent(P.x)&&P.x--}this._restrictCursor()},D.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var V=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-V)}},D.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},D.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},D.prototype._restrictCursor=function(V){V===void 0&&(V=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(V,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)},D.prototype._setCursor=function(V,P){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=V,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+P):(this._bufferService.buffer.x=V,this._bufferService.buffer.y=P),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},D.prototype._moveCursor=function(V,P){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+V,this._bufferService.buffer.y+P)},D.prototype.cursorUp=function(V){var P=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;P>=0?this._moveCursor(0,-Math.min(P,V.params[0]||1)):this._moveCursor(0,-(V.params[0]||1))},D.prototype.cursorDown=function(V){var P=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;P>=0?this._moveCursor(0,Math.min(P,V.params[0]||1)):this._moveCursor(0,V.params[0]||1)},D.prototype.cursorForward=function(V){this._moveCursor(V.params[0]||1,0)},D.prototype.cursorBackward=function(V){this._moveCursor(-(V.params[0]||1),0)},D.prototype.cursorNextLine=function(V){this.cursorDown(V),this._bufferService.buffer.x=0},D.prototype.cursorPrecedingLine=function(V){this.cursorUp(V),this._bufferService.buffer.x=0},D.prototype.cursorCharAbsolute=function(V){this._setCursor((V.params[0]||1)-1,this._bufferService.buffer.y)},D.prototype.cursorPosition=function(V){this._setCursor(V.length>=2?(V.params[1]||1)-1:0,(V.params[0]||1)-1)},D.prototype.charPosAbsolute=function(V){this._setCursor((V.params[0]||1)-1,this._bufferService.buffer.y)},D.prototype.hPositionRelative=function(V){this._moveCursor(V.params[0]||1,0)},D.prototype.linePosAbsolute=function(V){this._setCursor(this._bufferService.buffer.x,(V.params[0]||1)-1)},D.prototype.vPositionRelative=function(V){this._moveCursor(0,V.params[0]||1)},D.prototype.hVPosition=function(V){this.cursorPosition(V)},D.prototype.tabClear=function(V){var P=V.params[0];P===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:P===3&&(this._bufferService.buffer.tabs={})},D.prototype.cursorForwardTab=function(V){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var P=V.params[0]||1;P--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},D.prototype.cursorBackwardTab=function(V){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var P=V.params[0]||1,U=this._bufferService.buffer;P--;)U.x=U.prevStop()},D.prototype._eraseInBufferLine=function(V,P,U,G){G===void 0&&(G=!1);var J=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+V);J.replaceCells(P,U,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),G&&(J.isWrapped=!1)},D.prototype._resetBufferLine=function(V){var P=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+V);P.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),P.isWrapped=!1},D.prototype.eraseInDisplay=function(V){var P;switch(this._restrictCursor(),V.params[0]){case 0:for(P=this._bufferService.buffer.y,this._dirtyRowService.markDirty(P),this._eraseInBufferLine(P++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);P<this._bufferService.rows;P++)this._resetBufferLine(P);this._dirtyRowService.markDirty(P);break;case 1:for(P=this._bufferService.buffer.y,this._dirtyRowService.markDirty(P),this._eraseInBufferLine(P,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(P+1).isWrapped=!1);P--;)this._resetBufferLine(P);this._dirtyRowService.markDirty(0);break;case 2:for(P=this._bufferService.rows,this._dirtyRowService.markDirty(P-1);P--;)this._resetBufferLine(P);this._dirtyRowService.markDirty(0);break;case 3:var U=this._bufferService.buffer.lines.length-this._bufferService.rows;U>0&&(this._bufferService.buffer.lines.trimStart(U),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-U,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-U,0),this._onScroll.fire(0))}},D.prototype.eraseInLine=function(V){switch(this._restrictCursor(),V.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)},D.prototype.insertLines=function(V){this._restrictCursor();var P=V.params[0]||1,U=this._bufferService.buffer;if(!(U.y>U.scrollBottom||U.y<U.scrollTop)){for(var G=U.ybase+U.y,J=this._bufferService.rows-1-U.scrollBottom,ee=this._bufferService.rows-1+U.ybase-J+1;P--;)U.lines.splice(ee-1,1),U.lines.splice(G,0,U.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(U.y,U.scrollBottom),U.x=0}},D.prototype.deleteLines=function(V){this._restrictCursor();var P=V.params[0]||1,U=this._bufferService.buffer;if(!(U.y>U.scrollBottom||U.y<U.scrollTop)){var G,J=U.ybase+U.y;for(G=this._bufferService.rows-1-U.scrollBottom,G=this._bufferService.rows-1+U.ybase-G;P--;)U.lines.splice(J,1),U.lines.splice(G,0,U.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(U.y,U.scrollBottom),U.x=0}},D.prototype.insertChars=function(V){this._restrictCursor();var P=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);P&&(P.insertCells(this._bufferService.buffer.x,V.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},D.prototype.deleteChars=function(V){this._restrictCursor();var P=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);P&&(P.deleteCells(this._bufferService.buffer.x,V.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},D.prototype.scrollUp=function(V){for(var P=V.params[0]||1,U=this._bufferService.buffer;P--;)U.lines.splice(U.ybase+U.scrollTop,1),U.lines.splice(U.ybase+U.scrollBottom,0,U.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(U.scrollTop,U.scrollBottom)},D.prototype.scrollDown=function(V){for(var P=V.params[0]||1,U=this._bufferService.buffer;P--;)U.lines.splice(U.ybase+U.scrollBottom,1),U.lines.splice(U.ybase+U.scrollTop,0,U.getBlankLine(v.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(U.scrollTop,U.scrollBottom)},D.prototype.scrollLeft=function(V){var P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){for(var U=V.params[0]||1,G=P.scrollTop;G<=P.scrollBottom;++G){var J=P.lines.get(P.ybase+G);J.deleteCells(0,U,P.getNullCell(this._eraseAttrData()),this._eraseAttrData()),J.isWrapped=!1}this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)}},D.prototype.scrollRight=function(V){var P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){for(var U=V.params[0]||1,G=P.scrollTop;G<=P.scrollBottom;++G){var J=P.lines.get(P.ybase+G);J.insertCells(0,U,P.getNullCell(this._eraseAttrData()),this._eraseAttrData()),J.isWrapped=!1}this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)}},D.prototype.insertColumns=function(V){var P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){for(var U=V.params[0]||1,G=P.scrollTop;G<=P.scrollBottom;++G){var J=this._bufferService.buffer.lines.get(P.ybase+G);J.insertCells(P.x,U,P.getNullCell(this._eraseAttrData()),this._eraseAttrData()),J.isWrapped=!1}this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)}},D.prototype.deleteColumns=function(V){var P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){for(var U=V.params[0]||1,G=P.scrollTop;G<=P.scrollBottom;++G){var J=P.lines.get(P.ybase+G);J.deleteCells(P.x,U,P.getNullCell(this._eraseAttrData()),this._eraseAttrData()),J.isWrapped=!1}this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)}},D.prototype.eraseChars=function(V){this._restrictCursor();var P=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);P&&(P.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(V.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},D.prototype.repeatPrecedingCharacter=function(V){if(this._parser.precedingCodepoint){for(var P=V.params[0]||1,U=new Uint32Array(P),G=0;G<P;++G)U[G]=this._parser.precedingCodepoint;this.print(U,0,U.length)}},D.prototype.sendDeviceAttributesPrimary=function(V){V.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(A.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(A.C0.ESC+"[?6c"))},D.prototype.sendDeviceAttributesSecondary=function(V){V.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(A.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(A.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(V.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(A.C0.ESC+"[>83;40003;0c"))},D.prototype._is=function(V){return(this._optionsService.options.termName+"").indexOf(V)===0},D.prototype.setMode=function(V){for(var P=0;P<V.length;P++)switch(V.params[P]){case 4:this._coreService.modes.insertMode=!0}},D.prototype.setModePrivate=function(V){for(var P=0;P<V.length;P++)switch(V.params[P]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,u.DEFAULT_CHARSET),this._charsetService.setgCharset(1,u.DEFAULT_CHARSET),this._charsetService.setgCharset(2,u.DEFAULT_CHARSET),this._charsetService.setgCharset(3,u.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}},D.prototype.resetMode=function(V){for(var P=0;P<V.length;P++)switch(V.params[P]){case 4:this._coreService.modes.insertMode=!1}},D.prototype.resetModePrivate=function(V){for(var P=0;P<V.length;P++)switch(V.params[P]){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(),V.params[P]===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}},D.prototype._updateAttrColor=function(V,P,U,G,J){return P===2?(V|=50331648,V&=-16777216,V|=E.AttributeData.fromColorRGB([U,G,J])):P===5&&(V&=-50331904,V|=33554432|255&U),V},D.prototype._extractColor=function(V,P,U){var G=[0,0,-1,0,0,0],J=0,ee=0;do{if(G[ee+J]=V.params[P+ee],V.hasSubParams(P+ee)){var ae=V.getSubParams(P+ee),oe=0;do G[1]===5&&(J=1),G[ee+oe+1+J]=ae[oe];while(++oe<ae.length&&oe+ee+1+J<G.length);break}if(G[1]===5&&ee+J>=2||G[1]===2&&ee+J>=5)break;G[1]&&(J=1)}while(++ee+P<V.length&&ee+J<G.length);for(oe=2;oe<G.length;++oe)G[oe]===-1&&(G[oe]=0);switch(G[0]){case 38:U.fg=this._updateAttrColor(U.fg,G[1],G[3],G[4],G[5]);break;case 48:U.bg=this._updateAttrColor(U.bg,G[1],G[3],G[4],G[5]);break;case 58:U.extended=U.extended.clone(),U.extended.underlineColor=this._updateAttrColor(U.extended.underlineColor,G[1],G[3],G[4],G[5])}return ee},D.prototype._processUnderline=function(V,P){P.extended=P.extended.clone(),(!~V||V>5)&&(V=1),P.extended.underlineStyle=V,P.fg|=268435456,V===0&&(P.fg&=-268435457),P.updateExtended()},D.prototype.charAttributes=function(V){if(V.length===1&&V.params[0]===0)return this._curAttrData.fg=v.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=v.DEFAULT_ATTR_DATA.bg);for(var P,U=V.length,G=this._curAttrData,J=0;J<U;J++)(P=V.params[J])>=30&&P<=37?(G.fg&=-50331904,G.fg|=16777216|P-30):P>=40&&P<=47?(G.bg&=-50331904,G.bg|=16777216|P-40):P>=90&&P<=97?(G.fg&=-50331904,G.fg|=16777224|P-90):P>=100&&P<=107?(G.bg&=-50331904,G.bg|=16777224|P-100):P===0?(G.fg=v.DEFAULT_ATTR_DATA.fg,G.bg=v.DEFAULT_ATTR_DATA.bg):P===1?G.fg|=134217728:P===3?G.bg|=67108864:P===4?(G.fg|=268435456,this._processUnderline(V.hasSubParams(J)?V.getSubParams(J)[0]:1,G)):P===5?G.fg|=536870912:P===7?G.fg|=67108864:P===8?G.fg|=1073741824:P===2?G.bg|=134217728:P===21?this._processUnderline(2,G):P===22?(G.fg&=-134217729,G.bg&=-134217729):P===23?G.bg&=-67108865:P===24?G.fg&=-268435457:P===25?G.fg&=-536870913:P===27?G.fg&=-67108865:P===28?G.fg&=-1073741825:P===39?(G.fg&=-67108864,G.fg|=16777215&v.DEFAULT_ATTR_DATA.fg):P===49?(G.bg&=-67108864,G.bg|=16777215&v.DEFAULT_ATTR_DATA.bg):P===38||P===48||P===58?J+=this._extractColor(V,J,G):P===59?(G.extended=G.extended.clone(),G.extended.underlineColor=-1,G.updateExtended()):P===100?(G.fg&=-67108864,G.fg|=16777215&v.DEFAULT_ATTR_DATA.fg,G.bg&=-67108864,G.bg|=16777215&v.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",P)},D.prototype.deviceStatus=function(V){switch(V.params[0]){case 5:this._coreService.triggerDataEvent(A.C0.ESC+"[0n");break;case 6:var P=this._bufferService.buffer.y+1,U=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(A.C0.ESC+"["+P+";"+U+"R")}},D.prototype.deviceStatusPrivate=function(V){switch(V.params[0]){case 6:var P=this._bufferService.buffer.y+1,U=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(A.C0.ESC+"[?"+P+";"+U+"R")}},D.prototype.softReset=function(V){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=v.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},D.prototype.setCursorStyle=function(V){var P=V.params[0]||1;switch(P){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 U=P%2==1;this._optionsService.options.cursorBlink=U},D.prototype.setScrollRegion=function(V){var P,U=V.params[0]||1;(V.length<2||(P=V.params[1])>this._bufferService.rows||P===0)&&(P=this._bufferService.rows),P>U&&(this._bufferService.buffer.scrollTop=U-1,this._bufferService.buffer.scrollBottom=P-1,this._setCursor(0,0))},D.prototype.windowOptions=function(V){if(N(V.params[0],this._optionsService.options.windowOptions)){var P=V.length>1?V.params[1]:0;switch(V.params[0]){case 14:P!==2&&this._onRequestWindowsOptionsReport.fire(C.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(C.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(A.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:P!==0&&P!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),P!==0&&P!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:P!==0&&P!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),P!==0&&P!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},D.prototype.saveCursor=function(V){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},D.prototype.restoreCursor=function(V){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()},D.prototype.setTitle=function(V){this._windowTitle=V,this._onTitleChange.fire(V)},D.prototype.setIconName=function(V){this._iconName=V},D.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},D.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},D.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},D.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,u.DEFAULT_CHARSET)},D.prototype.selectCharset=function(V){V.length===2?V[0]!=="/"&&this._charsetService.setgCharset(R[V[0]],u.CHARSETS[V[1]]||u.DEFAULT_CHARSET):this.selectDefaultCharset()},D.prototype.index=function(){this._restrictCursor();var V=this._bufferService.buffer;this._bufferService.buffer.y++,V.y===V.scrollBottom+1?(V.y--,this._onRequestScroll.fire(this._eraseAttrData())):V.y>=this._bufferService.rows&&(V.y=this._bufferService.rows-1),this._restrictCursor()},D.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},D.prototype.reverseIndex=function(){this._restrictCursor();var V=this._bufferService.buffer;if(V.y===V.scrollTop){var P=V.scrollBottom-V.scrollTop;V.lines.shiftElements(V.ybase+V.y,P,1),V.lines.set(V.ybase+V.y,V.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(V.scrollTop,V.scrollBottom)}else V.y--,this._restrictCursor()},D.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},D.prototype.reset=function(){this._curAttrData=v.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=v.DEFAULT_ATTR_DATA.clone()},D.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},D.prototype.setgLevel=function(V){this._charsetService.setgLevel(V)},D.prototype.screenAlignmentPattern=function(){var V=new m.CellData;V.content=1<<22|69,V.fg=this._curAttrData.fg,V.bg=this._curAttrData.bg;var P=this._bufferService.buffer;this._setCursor(0,0);for(var U=0;U<this._bufferService.rows;++U){var G=P.ybase+P.y+U,J=P.lines.get(G);J&&(J.fill(V),J.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},D}(b.Disposable);S.InputHandler=L},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.DEFAULT_CHARSET=S.CHARSETS=void 0,S.CHARSETS={},S.DEFAULT_CHARSET=S.CHARSETS.B,S.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"},S.CHARSETS.A={"#":"\xA3"},S.CHARSETS.B=void 0,S.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},S.CHARSETS.C=S.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},S.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},S.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},S.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},S.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},S.CHARSETS.E=S.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},S.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},S.CHARSETS.H=S.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},S.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Params=void 0;var Z=function(){function s(C,A){if(C===void 0&&(C=32),A===void 0&&(A=32),this.maxLength=C,this.maxSubParamsLength=A,A>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(C),this.length=0,this._subParams=new Int32Array(A),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(C),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return s.fromArray=function(C){var A=new s;if(!C.length)return A;for(var u=C[0]instanceof Array?1:0;u<C.length;++u){var p=C[u];if(p instanceof Array)for(var b=0;b<p.length;++b)A.addSubParam(p[b]);else A.addParam(p)}return A},s.prototype.clone=function(){var C=new s(this.maxLength,this.maxSubParamsLength);return C.params.set(this.params),C.length=this.length,C._subParams.set(this._subParams),C._subParamsLength=this._subParamsLength,C._subParamsIdx.set(this._subParamsIdx),C._rejectDigits=this._rejectDigits,C._rejectSubDigits=this._rejectSubDigits,C._digitIsSub=this._digitIsSub,C},s.prototype.toArray=function(){for(var C=[],A=0;A<this.length;++A){C.push(this.params[A]);var u=this._subParamsIdx[A]>>8,p=255&this._subParamsIdx[A];p-u>0&&C.push(Array.prototype.slice.call(this._subParams,u,p))}return C},s.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},s.prototype.addParam=function(C){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(C<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=C>2147483647?2147483647:C}},s.prototype.addSubParam=function(C){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(C<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=C>2147483647?2147483647:C,this._subParamsIdx[this.length-1]++}},s.prototype.hasSubParams=function(C){return(255&this._subParamsIdx[C])-(this._subParamsIdx[C]>>8)>0},s.prototype.getSubParams=function(C){var A=this._subParamsIdx[C]>>8,u=255&this._subParamsIdx[C];return u-A>0?this._subParams.subarray(A,u):null},s.prototype.getSubParamsAll=function(){for(var C={},A=0;A<this.length;++A){var u=this._subParamsIdx[A]>>8,p=255&this._subParamsIdx[A];p-u>0&&(C[A]=this._subParams.slice(u,p))}return C},s.prototype.addDigit=function(C){var A;if(!(this._rejectDigits||!(A=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var u=this._digitIsSub?this._subParams:this.params,p=u[A-1];u[A-1]=~p?Math.min(10*p+C,2147483647):C}},s}();S.Params=Z},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.OscHandler=S.OscParser=void 0;var Z=B(23),s=B(8),C=function(){function u(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return u.prototype.addHandler=function(p,b){this._handlers[p]===void 0&&(this._handlers[p]=[]);var g=this._handlers[p];return g.push(b),{dispose:function(){var y=g.indexOf(b);y!==-1&&g.splice(y,1)}}},u.prototype.setHandler=function(p,b){this._handlers[p]=[b]},u.prototype.clearHandler=function(p){this._handlers[p]&&delete this._handlers[p]},u.prototype.setHandlerFallback=function(p){this._handlerFb=p},u.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},u.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},u.prototype._start=function(){var p=this._handlers[this._id];if(p)for(var b=p.length-1;b>=0;b--)p[b].start();else this._handlerFb(this._id,"START")},u.prototype._put=function(p,b,g){var y=this._handlers[this._id];if(y)for(var v=y.length-1;v>=0;v--)y[v].put(p,b,g);else this._handlerFb(this._id,"PUT",s.utf32ToString(p,b,g))},u.prototype._end=function(p){var b=this._handlers[this._id];if(b){for(var g=b.length-1;g>=0&&b[g].end(p)===!1;g--);for(g--;g>=0;g--)b[g].end(!1)}else this._handlerFb(this._id,"END",p)},u.prototype.start=function(){this.reset(),this._id=-1,this._state=1},u.prototype.put=function(p,b,g){if(this._state!==3){if(this._state===1)for(;b<g;){var y=p[b++];if(y===59){this._state=2,this._start();break}if(y<48||57<y)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+y-48}this._state===2&&g-b>0&&this._put(p,b,g)}},u.prototype.end=function(p){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(p)),this._id=-1,this._state=0)},u}();S.OscParser=C;var A=function(){function u(p){this._handler=p,this._data="",this._hitLimit=!1}return u.prototype.start=function(){this._data="",this._hitLimit=!1},u.prototype.put=function(p,b,g){this._hitLimit||(this._data+=s.utf32ToString(p,b,g),this._data.length>Z.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},u.prototype.end=function(p){var b;return this._hitLimit?b=!1:p&&(b=this._handler(this._data)),this._data="",this._hitLimit=!1,b},u}();S.OscHandler=A},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.PAYLOAD_LIMIT=void 0,S.PAYLOAD_LIMIT=1e7},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.DcsHandler=S.DcsParser=void 0;var Z=B(8),s=B(21),C=B(23),A=[],u=function(){function b(){this._handlers=Object.create(null),this._active=A,this._ident=0,this._handlerFb=function(){}}return b.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},b.prototype.addHandler=function(g,y){this._handlers[g]===void 0&&(this._handlers[g]=[]);var v=this._handlers[g];return v.push(y),{dispose:function(){var c=v.indexOf(y);c!==-1&&v.splice(c,1)}}},b.prototype.setHandler=function(g,y){this._handlers[g]=[y]},b.prototype.clearHandler=function(g){this._handlers[g]&&delete this._handlers[g]},b.prototype.setHandlerFallback=function(g){this._handlerFb=g},b.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=A,this._ident=0},b.prototype.hook=function(g,y){if(this.reset(),this._ident=g,this._active=this._handlers[g]||A,this._active.length)for(var v=this._active.length-1;v>=0;v--)this._active[v].hook(y);else this._handlerFb(this._ident,"HOOK",y)},b.prototype.put=function(g,y,v){if(this._active.length)for(var c=this._active.length-1;c>=0;c--)this._active[c].put(g,y,v);else this._handlerFb(this._ident,"PUT",Z.utf32ToString(g,y,v))},b.prototype.unhook=function(g){if(this._active.length){for(var y=this._active.length-1;y>=0&&this._active[y].unhook(g)===!1;y--);for(y--;y>=0;y--)this._active[y].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",g);this._active=A,this._ident=0},b}();S.DcsParser=u;var p=function(){function b(g){this._handler=g,this._data="",this._hitLimit=!1}return b.prototype.hook=function(g){this._params=g.clone(),this._data="",this._hitLimit=!1},b.prototype.put=function(g,y,v){this._hitLimit||(this._data+=Z.utf32ToString(g,y,v),this._data.length>C.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},b.prototype.unhook=function(g){var y;return this._hitLimit?y=!1:g&&(y=this._handler(this._data,this._params||new s.Params)),this._params=void 0,this._data="",this._hitLimit=!1,y},b}();S.DcsHandler=p},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.removeTerminalFromCache=S.acquireCharAtlas=void 0;var Z=B(26),s=B(43),C=[];S.acquireCharAtlas=function(A,u,p,b,g){for(var y=Z.generateConfig(b,g,A,p),v=0;v<C.length;v++){var c=(h=C[v]).ownedBy.indexOf(u);if(c>=0){if(Z.configEquals(h.config,y))return h.atlas;h.ownedBy.length===1?(h.atlas.dispose(),C.splice(v,1)):h.ownedBy.splice(c,1);break}}for(v=0;v<C.length;v++){var h=C[v];if(Z.configEquals(h.config,y))return h.ownedBy.push(u),h.atlas}var m={atlas:new s.DynamicCharAtlas(document,y),config:y,ownedBy:[u]};return C.push(m),m.atlas},S.removeTerminalFromCache=function(A){for(var u=0;u<C.length;u++){var p=C[u].ownedBy.indexOf(A);if(p!==-1){C[u].ownedBy.length===1?(C[u].atlas.dispose(),C.splice(u,1)):C[u].ownedBy.splice(p,1);break}}}},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.is256Color=S.configEquals=S.generateConfig=void 0;var Z=B(3);S.generateConfig=function(s,C,A,u){var p={foreground:u.foreground,background:u.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:u.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:s,scaledCharHeight:C,fontFamily:A.fontFamily,fontSize:A.fontSize,fontWeight:A.fontWeight,fontWeightBold:A.fontWeightBold,allowTransparency:A.allowTransparency,colors:p}},S.configEquals=function(s,C){for(var A=0;A<s.colors.ansi.length;A++)if(s.colors.ansi[A].rgba!==C.colors.ansi[A].rgba)return!1;return s.devicePixelRatio===C.devicePixelRatio&&s.fontFamily===C.fontFamily&&s.fontSize===C.fontSize&&s.fontWeight===C.fontWeight&&s.fontWeightBold===C.fontWeightBold&&s.allowTransparency===C.allowTransparency&&s.scaledCharWidth===C.scaledCharWidth&&s.scaledCharHeight===C.scaledCharHeight&&s.colors.foreground===C.colors.foreground&&s.colors.background===C.colors.background},S.is256Color=function(s){return s<Z.DEFAULT_COLOR}},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.ColorManager=S.DEFAULT_ANSI_COLORS=void 0;var Z=B(10),s=B(45),C=Z.css.toColor("#ffffff"),A=Z.css.toColor("#000000"),u=Z.css.toColor("#ffffff"),p=Z.css.toColor("#000000"),b={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};S.DEFAULT_ANSI_COLORS=function(){for(var y=[Z.css.toColor("#2e3436"),Z.css.toColor("#cc0000"),Z.css.toColor("#4e9a06"),Z.css.toColor("#c4a000"),Z.css.toColor("#3465a4"),Z.css.toColor("#75507b"),Z.css.toColor("#06989a"),Z.css.toColor("#d3d7cf"),Z.css.toColor("#555753"),Z.css.toColor("#ef2929"),Z.css.toColor("#8ae234"),Z.css.toColor("#fce94f"),Z.css.toColor("#729fcf"),Z.css.toColor("#ad7fa8"),Z.css.toColor("#34e2e2"),Z.css.toColor("#eeeeec")],v=[0,95,135,175,215,255],c=0;c<216;c++){var h=v[c/36%6|0],m=v[c/6%6|0],E=v[c%6];y.push({css:Z.channels.toCss(h,m,E),rgba:Z.channels.toRgba(h,m,E)})}for(c=0;c<24;c++){var T=8+10*c;y.push({css:Z.channels.toCss(T,T,T),rgba:Z.channels.toRgba(T,T,T)})}return y}();var g=function(){function y(v,c){this.allowTransparency=c;var h=v.createElement("canvas");h.width=1,h.height=1;var m=h.getContext("2d");if(!m)throw new Error("Could not get rendering context");this._ctx=m,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new s.ColorContrastCache,this.colors={foreground:C,background:A,cursor:u,cursorAccent:p,selectionTransparent:b,selectionOpaque:Z.color.blend(A,b),ansi:S.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return y.prototype.onOptionsChange=function(v){v==="minimumContrastRatio"&&this._contrastCache.clear()},y.prototype.setTheme=function(v){v===void 0&&(v={}),this.colors.foreground=this._parseColor(v.foreground,C),this.colors.background=this._parseColor(v.background,A),this.colors.cursor=this._parseColor(v.cursor,u,!0),this.colors.cursorAccent=this._parseColor(v.cursorAccent,p,!0),this.colors.selectionTransparent=this._parseColor(v.selection,b,!0),this.colors.selectionOpaque=Z.color.blend(this.colors.background,this.colors.selectionTransparent),Z.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=Z.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(v.black,S.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(v.red,S.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(v.green,S.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(v.yellow,S.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(v.blue,S.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(v.magenta,S.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(v.cyan,S.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(v.white,S.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(v.brightBlack,S.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(v.brightRed,S.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(v.brightGreen,S.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(v.brightYellow,S.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(v.brightBlue,S.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(v.brightMagenta,S.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(v.brightCyan,S.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(v.brightWhite,S.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},y.prototype._parseColor=function(v,c,h){if(h===void 0&&(h=this.allowTransparency),v===void 0)return c;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=v,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+v+" is invalid using fallback "+c.css),c;this._ctx.fillRect(0,0,1,1);var m=this._ctx.getImageData(0,0,1,1).data;if(m[3]!==255){if(!h)return console.warn("Color: "+v+" is using transparency, but allowTransparency is false. Using fallback "+c.css+"."),c;var E=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(L){return Number(L)}),T=E[0],I=E[1],R=E[2],N=E[3],k=Math.round(255*N);return{rgba:Z.channels.toRgba(T,I,R,k),css:v}}return{css:this._ctx.fillStyle,rgba:Z.channels.toRgba(m[0],m[1],m[2],m[3])}},y}();S.ColorManager=g},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.throwIfFalsy=void 0,S.throwIfFalsy=function(Z){if(!Z)throw new Error("value must not be falsy");return Z}},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(g,y){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,c){v.__proto__=c}||function(v,c){for(var h in c)c.hasOwnProperty(h)&&(v[h]=c[h])})(g,y)},function(g,y){function v(){this.constructor=g}Z(g,y),g.prototype=y===null?Object.create(y):(v.prototype=y.prototype,new v)});Object.defineProperty(S,"__esModule",{value:!0}),S.CharacterJoinerRegistry=S.JoinedCellData=void 0;var C=B(6),A=B(3),u=B(4),p=function(g){function y(v,c,h){var m=g.call(this)||this;return m.content=0,m.combinedData="",m.fg=v.fg,m.bg=v.bg,m.combinedData=c,m._width=h,m}return s(y,g),y.prototype.isCombined=function(){return 2097152},y.prototype.getWidth=function(){return this._width},y.prototype.getChars=function(){return this.combinedData},y.prototype.getCode=function(){return 2097151},y.prototype.setFromCharData=function(v){throw new Error("not implemented")},y.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},y}(C.AttributeData);S.JoinedCellData=p;var b=function(){function g(y){this._bufferService=y,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new u.CellData}return g.prototype.registerCharacterJoiner=function(y){var v={id:this._nextCharacterJoinerId++,handler:y};return this._characterJoiners.push(v),v.id},g.prototype.deregisterCharacterJoiner=function(y){for(var v=0;v<this._characterJoiners.length;v++)if(this._characterJoiners[v].id===y)return this._characterJoiners.splice(v,1),!0;return!1},g.prototype.getJoinedCharacters=function(y){if(this._characterJoiners.length===0)return[];var v=this._bufferService.buffer.lines.get(y);if(!v||v.length===0)return[];for(var c=[],h=v.translateToString(!0),m=0,E=0,T=0,I=v.getFg(0),R=v.getBg(0),N=0;N<v.getTrimmedLength();N++)if(v.loadCell(N,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==I||this._workCell.bg!==R){if(N-m>1)for(var k=this._getJoinedRanges(h,T,E,v,m),L=0;L<k.length;L++)c.push(k[L]);m=N,T=E,I=this._workCell.fg,R=this._workCell.bg}E+=this._workCell.getChars().length||A.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-m>1)for(k=this._getJoinedRanges(h,T,E,v,m),L=0;L<k.length;L++)c.push(k[L]);return c},g.prototype._getJoinedRanges=function(y,v,c,h,m){for(var E=y.substring(v,c),T=this._characterJoiners[0].handler(E),I=1;I<this._characterJoiners.length;I++)for(var R=this._characterJoiners[I].handler(E),N=0;N<R.length;N++)g._mergeRanges(T,R[N]);return this._stringRangesToCellRanges(T,h,m),T},g.prototype._stringRangesToCellRanges=function(y,v,c){var h=0,m=!1,E=0,T=y[h];if(T){for(var I=c;I<this._bufferService.cols;I++){var R=v.getWidth(I),N=v.getString(I).length||A.WHITESPACE_CELL_CHAR.length;if(R!==0){if(!m&&T[0]<=E&&(T[0]=I,m=!0),T[1]<=E){if(T[1]=I,!(T=y[++h]))break;T[0]<=E?(T[0]=I,m=!0):m=!1}E+=N}}T&&(T[1]=this._bufferService.cols)}},g._mergeRanges=function(y,v){for(var c=!1,h=0;h<y.length;h++){var m=y[h];if(c){if(v[1]<=m[0])return y[h-1][1]=v[1],y;if(v[1]<=m[1])return y[h-1][1]=Math.max(v[1],m[1]),y.splice(h,1),y;y.splice(h,1),h--}else{if(v[1]<=m[0])return y.splice(h,0,v),y;if(v[1]<=m[1])return m[0]=Math.min(v[0],m[0]),y;v[0]<m[1]&&(m[0]=Math.min(v[0],m[0]),c=!0)}}return c?y[y.length-1][1]=v[1]:y.push(v),y},g}();S.CharacterJoinerRegistry=b},function(Q,S,B){"use strict";function Z(s,C){var A=C.getBoundingClientRect();return[s.clientX-A.left,s.clientY-A.top]}Object.defineProperty(S,"__esModule",{value:!0}),S.getRawByteCoords=S.getCoords=S.getCoordsRelativeToElement=void 0,S.getCoordsRelativeToElement=Z,S.getCoords=function(s,C,A,u,p,b,g,y){if(p){var v=Z(s,C);if(v)return v[0]=Math.ceil((v[0]+(y?b/2:0))/b),v[1]=Math.ceil(v[1]/g),v[0]=Math.min(Math.max(v[0],1),A+(y?1:0)),v[1]=Math.min(Math.max(v[1],1),u),v}},S.getRawByteCoords=function(s){if(s)return{x:s[0]+32,y:s[1]+32}}},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.RenderDebouncer=void 0;var Z=function(){function s(C){this._renderCallback=C}return s.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},s.prototype.refresh=function(C,A,u){var p=this;this._rowCount=u,C=C!==void 0?C:0,A=A!==void 0?A:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,C):C,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,A):A,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return p._innerRefresh()}))},s.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var C=Math.max(this._rowStart,0),A=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(C,A)}},s}();S.RenderDebouncer=Z},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(A,u){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,b){p.__proto__=b}||function(p,b){for(var g in b)b.hasOwnProperty(g)&&(p[g]=b[g])})(A,u)},function(A,u){function p(){this.constructor=A}Z(A,u),A.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)});Object.defineProperty(S,"__esModule",{value:!0}),S.ScreenDprMonitor=void 0;var C=function(A){function u(){var p=A!==null&&A.apply(this,arguments)||this;return p._currentDevicePixelRatio=window.devicePixelRatio,p}return s(u,A),u.prototype.setListener=function(p){var b=this;this._listener&&this.clearListener(),this._listener=p,this._outerListener=function(){b._listener&&(b._listener(window.devicePixelRatio,b._currentDevicePixelRatio),b._updateDpr())},this._updateDpr()},u.prototype.dispose=function(){A.prototype.dispose.call(this),this.clearListener()},u.prototype._updateDpr=function(){var p;this._outerListener&&((p=this._resolutionMediaMatchList)===null||p===void 0||p.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},u.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)},u}(B(2).Disposable);S.ScreenDprMonitor=C},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.clone=void 0,S.clone=function Z(s,C){if(C===void 0&&(C=5),typeof s!="object")return s;var A=Array.isArray(s)?[]:{};for(var u in s)A[u]=C<=1?s[u]:s[u]?Z(s[u],C-1):s[u];return A}},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Terminal=void 0;var Z=B(4),s=B(35),C=B(18),A=B(0),u=B(83),p=function(){function h(m){this._core=new s.Terminal(m),this._addonManager=new u.AddonManager}return h.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(h.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new v(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"unicode",{get:function(){return this._checkProposedApi(),new c(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"buffer",{get:function(){return this._checkProposedApi(),new g(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),h.prototype.blur=function(){this._core.blur()},h.prototype.focus=function(){this._core.focus()},h.prototype.resize=function(m,E){this._verifyIntegers(m,E),this._core.resize(m,E)},h.prototype.open=function(m){this._core.open(m)},h.prototype.attachCustomKeyEventHandler=function(m){this._core.attachCustomKeyEventHandler(m)},h.prototype.registerLinkMatcher=function(m,E,T){return this._checkProposedApi(),this._core.registerLinkMatcher(m,E,T)},h.prototype.deregisterLinkMatcher=function(m){this._checkProposedApi(),this._core.deregisterLinkMatcher(m)},h.prototype.registerLinkProvider=function(m){return this._checkProposedApi(),this._core.registerLinkProvider(m)},h.prototype.registerCharacterJoiner=function(m){return this._checkProposedApi(),this._core.registerCharacterJoiner(m)},h.prototype.deregisterCharacterJoiner=function(m){this._checkProposedApi(),this._core.deregisterCharacterJoiner(m)},h.prototype.registerMarker=function(m){return this._checkProposedApi(),this._verifyIntegers(m),this._core.addMarker(m)},h.prototype.addMarker=function(m){return this.registerMarker(m)},h.prototype.hasSelection=function(){return this._core.hasSelection()},h.prototype.select=function(m,E,T){this._verifyIntegers(m,E,T),this._core.select(m,E,T)},h.prototype.getSelection=function(){return this._core.getSelection()},h.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},h.prototype.clearSelection=function(){this._core.clearSelection()},h.prototype.selectAll=function(){this._core.selectAll()},h.prototype.selectLines=function(m,E){this._verifyIntegers(m,E),this._core.selectLines(m,E)},h.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},h.prototype.scrollLines=function(m){this._verifyIntegers(m),this._core.scrollLines(m)},h.prototype.scrollPages=function(m){this._verifyIntegers(m),this._core.scrollPages(m)},h.prototype.scrollToTop=function(){this._core.scrollToTop()},h.prototype.scrollToBottom=function(){this._core.scrollToBottom()},h.prototype.scrollToLine=function(m){this._verifyIntegers(m),this._core.scrollToLine(m)},h.prototype.clear=function(){this._core.clear()},h.prototype.write=function(m,E){this._core.write(m,E)},h.prototype.writeUtf8=function(m,E){this._core.write(m,E)},h.prototype.writeln=function(m,E){this._core.write(m),this._core.write(`\r
`,E)},h.prototype.paste=function(m){this._core.paste(m)},h.prototype.getOption=function(m){return this._core.optionsService.getOption(m)},h.prototype.setOption=function(m,E){this._core.optionsService.setOption(m,E)},h.prototype.refresh=function(m,E){this._verifyIntegers(m,E),this._core.refresh(m,E)},h.prototype.reset=function(){this._core.reset()},h.prototype.loadAddon=function(m){return this._addonManager.loadAddon(this,m)},Object.defineProperty(h,"strings",{get:function(){return C},enumerable:!1,configurable:!0}),h.prototype._verifyIntegers=function(){for(var m=[],E=0;E<arguments.length;E++)m[E]=arguments[E];for(var T=0,I=m;T<I.length;T++){var R=I[T];if(R===1/0||isNaN(R)||R%1!=0)throw new Error("This API only accepts integers")}},h}();S.Terminal=p;var b=function(){function h(m,E){this._buffer=m,this.type=E}return h.prototype.init=function(m){return this._buffer=m,this},Object.defineProperty(h.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),h.prototype.getLine=function(m){var E=this._buffer.lines.get(m);if(E)return new y(E)},h.prototype.getNullCell=function(){return new Z.CellData},h}(),g=function(){function h(m){var E=this;this._buffers=m,this._onBufferChange=new A.EventEmitter,this._normal=new b(this._buffers.normal,"normal"),this._alternate=new b(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return E._onBufferChange.fire(E.active)})}return Object.defineProperty(h.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.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(h.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),h}(),y=function(){function h(m){this._line=m}return Object.defineProperty(h.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),h.prototype.getCell=function(m,E){if(!(m<0||m>=this._line.length))return E?(this._line.loadCell(m,E),E):this._line.loadCell(m,new Z.CellData)},h.prototype.translateToString=function(m,E,T){return this._line.translateToString(m,E,T)},h}(),v=function(){function h(m){this._core=m}return h.prototype.registerCsiHandler=function(m,E){return this._core.addCsiHandler(m,function(T){return E(T.toArray())})},h.prototype.addCsiHandler=function(m,E){return this.registerCsiHandler(m,E)},h.prototype.registerDcsHandler=function(m,E){return this._core.addDcsHandler(m,function(T,I){return E(T,I.toArray())})},h.prototype.addDcsHandler=function(m,E){return this.registerDcsHandler(m,E)},h.prototype.registerEscHandler=function(m,E){return this._core.addEscHandler(m,E)},h.prototype.addEscHandler=function(m,E){return this.registerEscHandler(m,E)},h.prototype.registerOscHandler=function(m,E){return this._core.addOscHandler(m,E)},h.prototype.addOscHandler=function(m,E){return this.registerOscHandler(m,E)},h}(),c=function(){function h(m){this._core=m}return h.prototype.register=function(m){this._core.unicodeService.register(m)},Object.defineProperty(h.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(m){this._core.unicodeService.activeVersion=m},enumerable:!1,configurable:!0}),h}()},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(ue,se){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ye,ve){ye.__proto__=ve}||function(ye,ve){for(var Re in ve)ve.hasOwnProperty(Re)&&(ye[Re]=ve[Re])})(ue,se)},function(ue,se){function ye(){this.constructor=ue}Z(ue,se),ue.prototype=se===null?Object.create(se):(ye.prototype=se.prototype,new ye)});Object.defineProperty(S,"__esModule",{value:!0}),S.Terminal=void 0;var C=B(36),A=B(37),u=B(38),p=B(12),b=B(19),g=B(40),y=B(50),v=B(51),c=B(11),h=B(7),m=B(18),E=B(54),T=B(55),I=B(56),R=B(57),N=B(59),k=B(0),L=B(16),H=B(27),D=B(60),V=B(5),P=B(61),U=B(62),G=B(63),J=B(64),ee=B(65),ae=typeof window!="undefined"?window.document:null,oe=function(ue){function se(ye){ye===void 0&&(ye={});var ve=ue.call(this,ye)||this;return ve.browser=c,ve._keyDownHandled=!1,ve._onCursorMove=new k.EventEmitter,ve._onKey=new k.EventEmitter,ve._onRender=new k.EventEmitter,ve._onSelectionChange=new k.EventEmitter,ve._onTitleChange=new k.EventEmitter,ve._onFocus=new k.EventEmitter,ve._onBlur=new k.EventEmitter,ve._onA11yCharEmitter=new k.EventEmitter,ve._onA11yTabEmitter=new k.EventEmitter,ve._setup(),ve.linkifier=ve._instantiationService.createInstance(y.Linkifier),ve.linkifier2=ve.register(ve._instantiationService.createInstance(G.Linkifier2)),ve.register(ve._inputHandler.onRequestBell(function(){return ve.bell()})),ve.register(ve._inputHandler.onRequestRefreshRows(function(Re,le){return ve.refresh(Re,le)})),ve.register(ve._inputHandler.onRequestReset(function(){return ve.reset()})),ve.register(ve._inputHandler.onRequestScroll(function(Re,le){return ve.scroll(Re,le||void 0)})),ve.register(ve._inputHandler.onRequestWindowsOptionsReport(function(Re){return ve._reportWindowsOptions(Re)})),ve.register(k.forwardEvent(ve._inputHandler.onCursorMove,ve._onCursorMove)),ve.register(k.forwardEvent(ve._inputHandler.onTitleChange,ve._onTitleChange)),ve.register(k.forwardEvent(ve._inputHandler.onA11yChar,ve._onA11yCharEmitter)),ve.register(k.forwardEvent(ve._inputHandler.onA11yTab,ve._onA11yTabEmitter)),ve.register(ve._bufferService.onResize(function(Re){return ve._afterResize(Re.cols,Re.rows)})),ve}return s(se,ue),Object.defineProperty(se.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),se.prototype.dispose=function(){var ye,ve,Re;this._isDisposed||(ue.prototype.dispose.call(this),(ye=this._renderService)===null||ye===void 0||ye.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(Re=(ve=this.element)===null||ve===void 0?void 0:ve.parentNode)===null||Re===void 0||Re.removeChild(this.element))},se.prototype._setup=function(){ue.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(se.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),se.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},se.prototype._updateOptions=function(ye){var ve,Re,le,xe;switch(ue.prototype._updateOptions.call(this,ye),ye){case"fontFamily":case"fontSize":(ve=this._renderService)===null||ve===void 0||ve.clear(),(Re=this._charSizeService)===null||Re===void 0||Re.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":(le=this.viewport)===null||le===void 0||le.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new I.AccessibilityManager(this,this._renderService)):((xe=this._accessibilityManager)===null||xe===void 0||xe.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},se.prototype._onTextAreaFocus=function(ye){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(p.C0.ESC+"[I"),this.updateCursorStyle(ye),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},se.prototype.blur=function(){var ye;return(ye=this.textarea)===null||ye===void 0?void 0:ye.blur()},se.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(p.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},se.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var ye=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),ve=this._bufferService.buffer.y*ye,Re=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=Re+"px",this.textarea.style.top=ve+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=ye+"px",this.textarea.style.lineHeight=ye+"px",this.textarea.style.zIndex="-5"}},se.prototype._initGlobal=function(){var ye=this;this._bindKeys(),this.register(h.addDisposableDomListener(this.element,"copy",function(Re){ye.hasSelection()&&u.copyHandler(Re,ye._selectionService)}));var ve=function(Re){return u.handlePasteEvent(Re,ye.textarea,ye._coreService)};this.register(h.addDisposableDomListener(this.textarea,"paste",ve)),this.register(h.addDisposableDomListener(this.element,"paste",ve)),c.isFirefox?this.register(h.addDisposableDomListener(this.element,"mousedown",function(Re){Re.button===2&&u.rightClickHandler(Re,ye.textarea,ye.screenElement,ye._selectionService,ye.options.rightClickSelectsWord)})):this.register(h.addDisposableDomListener(this.element,"contextmenu",function(Re){u.rightClickHandler(Re,ye.textarea,ye.screenElement,ye._selectionService,ye.options.rightClickSelectsWord)})),c.isLinux&&this.register(h.addDisposableDomListener(this.element,"auxclick",function(Re){Re.button===1&&u.moveTextAreaUnderMouseCursor(Re,ye.textarea,ye.screenElement)}))},se.prototype._bindKeys=function(){var ye=this;this.register(h.addDisposableDomListener(this.textarea,"keyup",function(ve){return ye._keyUp(ve)},!0)),this.register(h.addDisposableDomListener(this.textarea,"keydown",function(ve){return ye._keyDown(ve)},!0)),this.register(h.addDisposableDomListener(this.textarea,"keypress",function(ve){return ye._keyPress(ve)},!0)),this.register(h.addDisposableDomListener(this.textarea,"compositionstart",function(){return ye._compositionHelper.compositionstart()})),this.register(h.addDisposableDomListener(this.textarea,"compositionupdate",function(ve){return ye._compositionHelper.compositionupdate(ve)})),this.register(h.addDisposableDomListener(this.textarea,"compositionend",function(){return ye._compositionHelper.compositionend()})),this.register(this.onRender(function(){return ye._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(ve){return ye._queueLinkification(ve.start,ve.end)}))},se.prototype.open=function(ye){var ve=this;if(!ye)throw new Error("Terminal requires a parent element.");ae.body.contains(ye)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=ye.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"),ye.appendChild(this.element);var Re=ae.createDocumentFragment();this._viewportElement=ae.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),Re.appendChild(this._viewportElement),this._viewportScrollArea=ae.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=ae.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=ae.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),Re.appendChild(this.screenElement),this.textarea=ae.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",m.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(h.addDisposableDomListener(this.textarea,"focus",function(pe){return ve._onTextAreaFocus(pe)})),this.register(h.addDisposableDomListener(this.textarea,"blur",function(){return ve._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var le=this._instantiationService.createInstance(J.CoreBrowserService,this.textarea);this._instantiationService.setService(V.ICoreBrowserService,le),this._charSizeService=this._instantiationService.createInstance(P.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(V.ICharSizeService,this._charSizeService),this._compositionView=ae.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(C.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(Re),this._theme=this.options.theme||this._theme,this._colorManager=new H.ColorManager(ae,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(pe){return ve._colorManager.onOptionsChange(pe)})),this._colorManager.setTheme(this._theme);var xe=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(D.RenderService,xe,this.rows,this.screenElement)),this._instantiationService.setService(V.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(pe){return ve._onRender.fire(pe)})),this.onResize(function(pe){return ve._renderService.resize(pe.cols,pe.rows)}),this._soundService=this._instantiationService.createInstance(E.SoundService),this._instantiationService.setService(V.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(U.MouseService),this._instantiationService.setService(V.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(A.Viewport,function(pe,Me){return ve.scrollLines(pe,Me)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return ve.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){ve._renderService.onCursorMove(),ve._syncTextArea()})),this.register(this.onResize(function(){return ve._renderService.onResize(ve.cols,ve.rows)})),this.register(this.onBlur(function(){return ve._renderService.onBlur()})),this.register(this.onFocus(function(){return ve._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return ve.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(v.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(V.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(pe){return ve.scrollLines(pe.amount,pe.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return ve._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(pe){return ve._renderService.onSelectionChanged(pe.start,pe.end,pe.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(pe){ve.textarea.value=pe,ve.textarea.focus(),ve.textarea.select()})),this.register(this.onScroll(function(){ve.viewport.syncScrollArea(),ve._selectionService.refresh()})),this.register(h.addDisposableDomListener(this._viewportElement,"scroll",function(){return ve._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(T.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return ve._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(h.addDisposableDomListener(this.element,"mousedown",function(pe){return ve._selectionService.onMouseDown(pe)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new I.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},se.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(g.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(R.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},se.prototype._setTheme=function(ye){var ve,Re,le;this._theme=ye,(ve=this._colorManager)===null||ve===void 0||ve.setTheme(ye),(Re=this._renderService)===null||Re===void 0||Re.setColors(this._colorManager.colors),(le=this.viewport)===null||le===void 0||le.onThemeChange(this._colorManager.colors)},se.prototype.bindMouse=function(){var ye=this,ve=this,Re=this.element;function le(Pe){var De,Ke,ze=ve._mouseService.getRawByteCoords(Pe,ve.screenElement,ve.cols,ve.rows);if(!ze)return!1;switch(Pe.overrideType||Pe.type){case"mousemove":Ke=32,Pe.buttons===void 0?(De=3,Pe.button!==void 0&&(De=Pe.button<3?Pe.button:3)):De=1&Pe.buttons?0:4&Pe.buttons?1:2&Pe.buttons?2:3;break;case"mouseup":Ke=0,De=Pe.button<3?Pe.button:3;break;case"mousedown":Ke=1,De=Pe.button<3?Pe.button:3;break;case"wheel":Pe.deltaY!==0&&(Ke=Pe.deltaY<0?0:1),De=4;break;default:return!1}return!(Ke===void 0||De===void 0||De>4)&&ve._coreMouseService.triggerMouseEvent({col:ze.x-33,row:ze.y-33,button:De,action:Ke,ctrl:Pe.ctrlKey,alt:Pe.altKey,shift:Pe.shiftKey})}var xe={mouseup:null,wheel:null,mousedrag:null,mousemove:null},pe=function(Pe){return le(Pe),Pe.buttons||(ye._document.removeEventListener("mouseup",xe.mouseup),xe.mousedrag&&ye._document.removeEventListener("mousemove",xe.mousedrag)),ye.cancel(Pe)},Me=function(Pe){return le(Pe),Pe.preventDefault(),ye.cancel(Pe)},Oe=function(Pe){Pe.buttons&&le(Pe)},Le=function(Pe){Pe.buttons||le(Pe)};this.register(this._coreMouseService.onProtocolChange(function(Pe){Pe?(ye.optionsService.options.logLevel==="debug"&&ye._logService.debug("Binding to mouse events:",ye._coreMouseService.explainEvents(Pe)),ye.element.classList.add("enable-mouse-events"),ye._selectionService.disable()):(ye._logService.debug("Unbinding from mouse events."),ye.element.classList.remove("enable-mouse-events"),ye._selectionService.enable()),8&Pe?xe.mousemove||(Re.addEventListener("mousemove",Le),xe.mousemove=Le):(Re.removeEventListener("mousemove",xe.mousemove),xe.mousemove=null),16&Pe?xe.wheel||(Re.addEventListener("wheel",Me,{passive:!1}),xe.wheel=Me):(Re.removeEventListener("wheel",xe.wheel),xe.wheel=null),2&Pe?xe.mouseup||(xe.mouseup=pe):(ye._document.removeEventListener("mouseup",xe.mouseup),xe.mouseup=null),4&Pe?xe.mousedrag||(xe.mousedrag=Oe):(ye._document.removeEventListener("mousemove",xe.mousedrag),xe.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(h.addDisposableDomListener(Re,"mousedown",function(Pe){if(Pe.preventDefault(),ye.focus(),ye._coreMouseService.areMouseEventsActive&&!ye._selectionService.shouldForceSelection(Pe))return le(Pe),xe.mouseup&&ye._document.addEventListener("mouseup",xe.mouseup),xe.mousedrag&&ye._document.addEventListener("mousemove",xe.mousedrag),ye.cancel(Pe)})),this.register(h.addDisposableDomListener(Re,"wheel",function(Pe){if(!xe.wheel){if(!ye.buffer.hasScrollback){var De=ye.viewport.getLinesScrolled(Pe);if(De===0)return;for(var Ke=p.C0.ESC+(ye._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Pe.deltaY<0?"A":"B"),ze="",it=0;it<Math.abs(De);it++)ze+=Ke;ye._coreService.triggerDataEvent(ze,!0)}}},{passive:!0})),this.register(h.addDisposableDomListener(Re,"wheel",function(Pe){if(!xe.wheel)return ye.viewport.onWheel(Pe)?void 0:ye.cancel(Pe)},{passive:!1})),this.register(h.addDisposableDomListener(Re,"touchstart",function(Pe){if(!ye._coreMouseService.areMouseEventsActive)return ye.viewport.onTouchStart(Pe),ye.cancel(Pe)},{passive:!0})),this.register(h.addDisposableDomListener(Re,"touchmove",function(Pe){if(!ye._coreMouseService.areMouseEventsActive)return ye.viewport.onTouchMove(Pe)?void 0:ye.cancel(Pe)},{passive:!1}))},se.prototype.refresh=function(ye,ve){var Re;(Re=this._renderService)===null||Re===void 0||Re.refreshRows(ye,ve)},se.prototype._queueLinkification=function(ye,ve){var Re;(Re=this.linkifier)===null||Re===void 0||Re.linkifyRows(ye,ve)},se.prototype.updateCursorStyle=function(ye){this._selectionService&&this._selectionService.shouldColumnSelect(ye)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},se.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},se.prototype.scrollLines=function(ye,ve){ue.prototype.scrollLines.call(this,ye,ve),this.refresh(0,this.rows-1)},se.prototype.paste=function(ye){u.paste(ye,this.textarea,this._coreService)},se.prototype.attachCustomKeyEventHandler=function(ye){this._customKeyEventHandler=ye},se.prototype.registerLinkMatcher=function(ye,ve,Re){var le=this.linkifier.registerLinkMatcher(ye,ve,Re);return this.refresh(0,this.rows-1),le},se.prototype.deregisterLinkMatcher=function(ye){this.linkifier.deregisterLinkMatcher(ye)&&this.refresh(0,this.rows-1)},se.prototype.registerLinkProvider=function(ye){return this.linkifier2.registerLinkProvider(ye)},se.prototype.registerCharacterJoiner=function(ye){var ve=this._renderService.registerCharacterJoiner(ye);return this.refresh(0,this.rows-1),ve},se.prototype.deregisterCharacterJoiner=function(ye){this._renderService.deregisterCharacterJoiner(ye)&&this.refresh(0,this.rows-1)},Object.defineProperty(se.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),se.prototype.addMarker=function(ye){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+ye)},se.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},se.prototype.select=function(ye,ve,Re){this._selectionService.setSelection(ye,ve,Re)},se.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},se.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]}},se.prototype.clearSelection=function(){var ye;(ye=this._selectionService)===null||ye===void 0||ye.clearSelection()},se.prototype.selectAll=function(){var ye;(ye=this._selectionService)===null||ye===void 0||ye.selectAll()},se.prototype.selectLines=function(ye,ve){var Re;(Re=this._selectionService)===null||Re===void 0||Re.selectLines(ye,ve)},se.prototype._keyDown=function(ye){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(ye)===!1)return!1;if(!this._compositionHelper.keydown(ye))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var ve=N.evaluateKeyboardEvent(ye,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(ye),ve.type===3||ve.type===2){var Re=this.rows-1;return this.scrollLines(ve.type===2?-Re:Re),this.cancel(ye,!0)}return ve.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,ye)||(ve.cancel&&this.cancel(ye,!0),!ve.key||(ve.key!==p.C0.ETX&&ve.key!==p.C0.CR||(this.textarea.value=""),this._onKey.fire({key:ve.key,domEvent:ye}),this._showCursor(),this._coreService.triggerDataEvent(ve.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(ye,!0)))},se.prototype._isThirdLevelShift=function(ye,ve){var Re=ye.isMac&&!this.options.macOptionIsMeta&&ve.altKey&&!ve.ctrlKey&&!ve.metaKey||ye.isWindows&&ve.altKey&&ve.ctrlKey&&!ve.metaKey;return ve.type==="keypress"?Re:Re&&(!ve.keyCode||ve.keyCode>47)},se.prototype._keyUp=function(ye){this._customKeyEventHandler&&this._customKeyEventHandler(ye)===!1||(function(ve){return ve.keyCode===16||ve.keyCode===17||ve.keyCode===18}(ye)||this.focus(),this.updateCursorStyle(ye))},se.prototype._keyPress=function(ye){var ve;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(ye)===!1)return!1;if(this.cancel(ye),ye.charCode)ve=ye.charCode;else if(ye.which===null||ye.which===void 0)ve=ye.keyCode;else{if(ye.which===0||ye.charCode===0)return!1;ve=ye.which}return!(!ve||(ye.altKey||ye.ctrlKey||ye.metaKey)&&!this._isThirdLevelShift(this.browser,ye))&&(ve=String.fromCharCode(ve),this._onKey.fire({key:ve,domEvent:ye}),this._showCursor(),this._coreService.triggerDataEvent(ve,!0),!0)},se.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},se.prototype.resize=function(ye,ve){ye!==this.cols||ve!==this.rows?ue.prototype.resize.call(this,ye,ve):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},se.prototype._afterResize=function(ye,ve){var Re,le;(Re=this._charSizeService)===null||Re===void 0||Re.measure(),(le=this.viewport)===null||le===void 0||le.syncScrollArea(!0)},se.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 ye=1;ye<this.rows;ye++)this.buffer.lines.push(this.buffer.getBlankLine(L.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},se.prototype.reset=function(){var ye,ve;this.options.rows=this.rows,this.options.cols=this.cols;var Re=this._customKeyEventHandler;this._setup(),ue.prototype.reset.call(this),(ye=this._selectionService)===null||ye===void 0||ye.reset(),this._customKeyEventHandler=Re,this.refresh(0,this.rows-1),(ve=this.viewport)===null||ve===void 0||ve.syncScrollArea()},se.prototype._reportWindowsOptions=function(ye){if(this._renderService)switch(ye){case b.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var ve=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),Re=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(p.C0.ESC+"[4;"+Re+";"+ve+"t");break;case b.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var le=this._renderService.dimensions.scaledCellWidth.toFixed(0),xe=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(p.C0.ESC+"[6;"+xe+";"+le+"t")}},se.prototype.cancel=function(ye,ve){if(this.options.cancelEvents||ve)return ye.preventDefault(),ye.stopPropagation(),!1},se.prototype._visualBell=function(){return!1},se.prototype._soundBell=function(){return this.options.bellStyle==="sound"},se}(ee.CoreTerminal);S.Terminal=oe},function(Q,S,B){"use strict";var Z=this&&this.__decorate||function(p,b,g,y){var v,c=arguments.length,h=c<3?b:y===null?y=Object.getOwnPropertyDescriptor(b,g):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(p,b,g,y);else for(var m=p.length-1;m>=0;m--)(v=p[m])&&(h=(c<3?v(h):c>3?v(b,g,h):v(b,g))||h);return c>3&&h&&Object.defineProperty(b,g,h),h},s=this&&this.__param||function(p,b){return function(g,y){b(g,y,p)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CompositionHelper=void 0;var C=B(5),A=B(1),u=function(){function p(b,g,y,v,c,h){this._textarea=b,this._compositionView=g,this._bufferService=y,this._optionsService=v,this._charSizeService=c,this._coreService=h,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(p.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),p.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},p.prototype.compositionupdate=function(b){var g=this;this._compositionView.textContent=b.data,this.updateCompositionElements(),setTimeout(function(){g._compositionPosition.end=g._textarea.value.length},0)},p.prototype.compositionend=function(){this._finalizeComposition(!0)},p.prototype.keydown=function(b){if(this._isComposing||this._isSendingComposition){if(b.keyCode===229||b.keyCode===16||b.keyCode===17||b.keyCode===18)return!1;this._finalizeComposition(!1)}return b.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},p.prototype._finalizeComposition=function(b){var g=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,b){var y={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(g._isSendingComposition){g._isSendingComposition=!1;var c=void 0;c=g._isComposing?g._textarea.value.substring(y.start,y.end):g._textarea.value.substring(y.start),g._coreService.triggerDataEvent(c,!0)}},0)}else{this._isSendingComposition=!1;var v=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(v,!0)}},p.prototype._handleAnyTextareaChanges=function(){var b=this,g=this._textarea.value;setTimeout(function(){if(!b._isComposing){var y=b._textarea.value.replace(g,"");y.length>0&&b._coreService.triggerDataEvent(y,!0)}},0)},p.prototype.updateCompositionElements=function(b){var g=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var y=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),v=this._bufferService.buffer.y*y,c=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=c+"px",this._compositionView.style.top=v+"px",this._compositionView.style.height=y+"px",this._compositionView.style.lineHeight=y+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var h=this._compositionView.getBoundingClientRect();this._textarea.style.left=c+"px",this._textarea.style.top=v+"px",this._textarea.style.width=h.width+"px",this._textarea.style.height=h.height+"px",this._textarea.style.lineHeight=h.height+"px"}b||setTimeout(function(){return g.updateCompositionElements(!0)},0)}},p=Z([s(2,A.IBufferService),s(3,A.IOptionsService),s(4,C.ICharSizeService),s(5,A.ICoreService)],p)}();S.CompositionHelper=u},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(v,c){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var E in m)m.hasOwnProperty(E)&&(h[E]=m[E])})(v,c)},function(v,c){function h(){this.constructor=v}Z(v,c),v.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),C=this&&this.__decorate||function(v,c,h,m){var E,T=arguments.length,I=T<3?c:m===null?m=Object.getOwnPropertyDescriptor(c,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(v,c,h,m);else for(var R=v.length-1;R>=0;R--)(E=v[R])&&(I=(T<3?E(I):T>3?E(c,h,I):E(c,h))||I);return T>3&&I&&Object.defineProperty(c,h,I),I},A=this&&this.__param||function(v,c){return function(h,m){c(h,m,v)}};Object.defineProperty(S,"__esModule",{value:!0}),S.Viewport=void 0;var u=B(2),p=B(7),b=B(5),g=B(1),y=function(v){function c(h,m,E,T,I,R,N){var k=v.call(this)||this;return k._scrollLines=h,k._viewportElement=m,k._scrollArea=E,k._bufferService=T,k._optionsService=I,k._charSizeService=R,k._renderService=N,k.scrollBarWidth=0,k._currentRowHeight=0,k._lastRecordedBufferLength=0,k._lastRecordedViewportHeight=0,k._lastRecordedBufferHeight=0,k._lastTouchY=0,k._lastScrollTop=0,k._wheelPartialScroll=0,k._refreshAnimationFrame=null,k._ignoreNextScrollEvent=!1,k.scrollBarWidth=k._viewportElement.offsetWidth-k._scrollArea.offsetWidth||15,k.register(p.addDisposableDomListener(k._viewportElement,"scroll",k._onScroll.bind(k))),setTimeout(function(){return k.syncScrollArea()},0),k}return s(c,v),c.prototype.onThemeChange=function(h){this._viewportElement.style.backgroundColor=h.background.css},c.prototype._refresh=function(h){var m=this;if(h)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return m._innerRefresh()}))},c.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var h=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==h&&(this._lastRecordedBufferHeight=h,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var m=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==m&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=m),this._refreshAnimationFrame=null},c.prototype.syncScrollArea=function(h){if(h===void 0&&(h=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(h);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var m=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===m&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(h)}else this._refresh(h)},c.prototype._onScroll=function(h){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var m=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(m,!0)}},c.prototype._bubbleScroll=function(h,m){var E=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(m<0&&this._viewportElement.scrollTop!==0||m>0&&E<this._lastRecordedBufferHeight)||(h.cancelable&&h.preventDefault(),!1)},c.prototype.onWheel=function(h){var m=this._getPixelsScrolled(h);return m!==0&&(this._viewportElement.scrollTop+=m,this._bubbleScroll(h,m))},c.prototype._getPixelsScrolled=function(h){if(h.deltaY===0)return 0;var m=this._applyScrollModifier(h.deltaY,h);return h.deltaMode===WheelEvent.DOM_DELTA_LINE?m*=this._currentRowHeight:h.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(m*=this._currentRowHeight*this._bufferService.rows),m},c.prototype.getLinesScrolled=function(h){if(h.deltaY===0)return 0;var m=this._applyScrollModifier(h.deltaY,h);return h.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(m/=this._currentRowHeight+0,this._wheelPartialScroll+=m,m=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):h.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(m*=this._bufferService.rows),m},c.prototype._applyScrollModifier=function(h,m){var E=this._optionsService.options.fastScrollModifier;return E==="alt"&&m.altKey||E==="ctrl"&&m.ctrlKey||E==="shift"&&m.shiftKey?h*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:h*this._optionsService.options.scrollSensitivity},c.prototype.onTouchStart=function(h){this._lastTouchY=h.touches[0].pageY},c.prototype.onTouchMove=function(h){var m=this._lastTouchY-h.touches[0].pageY;return this._lastTouchY=h.touches[0].pageY,m!==0&&(this._viewportElement.scrollTop+=m,this._bubbleScroll(h,m))},c=C([A(3,g.IBufferService),A(4,g.IOptionsService),A(5,b.ICharSizeService),A(6,b.IRenderService)],c)}(u.Disposable);S.Viewport=y},function(Q,S,B){"use strict";function Z(u){return u.replace(/\r?\n/g,"\r")}function s(u,p){return p?"\x1B[200~"+u+"\x1B[201~":u}function C(u,p,b){u=s(u=Z(u),b.decPrivateModes.bracketedPasteMode),b.triggerDataEvent(u,!0),p.value=""}function A(u,p,b){var g=b.getBoundingClientRect(),y=u.clientX-g.left-10,v=u.clientY-g.top-10;p.style.width="20px",p.style.height="20px",p.style.left=y+"px",p.style.top=v+"px",p.style.zIndex="1000",p.focus()}Object.defineProperty(S,"__esModule",{value:!0}),S.rightClickHandler=S.moveTextAreaUnderMouseCursor=S.paste=S.handlePasteEvent=S.copyHandler=S.bracketTextForPaste=S.prepareTextForTerminal=void 0,S.prepareTextForTerminal=Z,S.bracketTextForPaste=s,S.copyHandler=function(u,p){u.clipboardData&&u.clipboardData.setData("text/plain",p.selectionText),u.preventDefault()},S.handlePasteEvent=function(u,p,b){u.stopPropagation(),u.clipboardData&&C(u.clipboardData.getData("text/plain"),p,b)},S.paste=C,S.moveTextAreaUnderMouseCursor=A,S.rightClickHandler=function(u,p,b,g,y){A(u,p,b),y&&!g.isClickInSelection(u)&&g.selectWordAtCursor(u),p.value=g.selectionText,p.select()}},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(v,c){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var E in m)m.hasOwnProperty(E)&&(h[E]=m[E])})(v,c)},function(v,c){function h(){this.constructor=v}Z(v,c),v.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(S,"__esModule",{value:!0}),S.EscapeSequenceParser=S.VT500_TRANSITION_TABLE=S.TransitionTable=void 0;var C=B(2),A=B(15),u=B(21),p=B(22),b=B(24),g=function(){function v(c){this.table=new Uint8Array(c)}return v.prototype.setDefault=function(c,h){A.fill(this.table,c<<4|h)},v.prototype.add=function(c,h,m,E){this.table[h<<8|c]=m<<4|E},v.prototype.addMany=function(c,h,m,E){for(var T=0;T<c.length;T++)this.table[h<<8|c[T]]=m<<4|E},v}();S.TransitionTable=g,S.VT500_TRANSITION_TABLE=function(){var v=new g(4095),c=Array.apply(null,Array(256)).map(function(R,N){return N}),h=function(R,N){return c.slice(R,N)},m=h(32,127),E=h(0,24);E.push(25),E.push.apply(E,h(28,32));var T,I=h(0,14);for(T in v.setDefault(1,0),v.addMany(m,0,2,0),I)v.addMany([24,26,153,154],T,3,0),v.addMany(h(128,144),T,3,0),v.addMany(h(144,152),T,3,0),v.add(156,T,0,0),v.add(27,T,11,1),v.add(157,T,4,8),v.addMany([152,158,159],T,0,7),v.add(155,T,11,3),v.add(144,T,11,9);return v.addMany(E,0,3,0),v.addMany(E,1,3,1),v.add(127,1,0,1),v.addMany(E,8,0,8),v.addMany(E,3,3,3),v.add(127,3,0,3),v.addMany(E,4,3,4),v.add(127,4,0,4),v.addMany(E,6,3,6),v.addMany(E,5,3,5),v.add(127,5,0,5),v.addMany(E,2,3,2),v.add(127,2,0,2),v.add(93,1,4,8),v.addMany(m,8,5,8),v.add(127,8,5,8),v.addMany([156,27,24,26,7],8,6,0),v.addMany(h(28,32),8,0,8),v.addMany([88,94,95],1,0,7),v.addMany(m,7,0,7),v.addMany(E,7,0,7),v.add(156,7,0,0),v.add(127,7,0,7),v.add(91,1,11,3),v.addMany(h(64,127),3,7,0),v.addMany(h(48,60),3,8,4),v.addMany([60,61,62,63],3,9,4),v.addMany(h(48,60),4,8,4),v.addMany(h(64,127),4,7,0),v.addMany([60,61,62,63],4,0,6),v.addMany(h(32,64),6,0,6),v.add(127,6,0,6),v.addMany(h(64,127),6,0,0),v.addMany(h(32,48),3,9,5),v.addMany(h(32,48),5,9,5),v.addMany(h(48,64),5,0,6),v.addMany(h(64,127),5,7,0),v.addMany(h(32,48),4,9,5),v.addMany(h(32,48),1,9,2),v.addMany(h(32,48),2,9,2),v.addMany(h(48,127),2,10,0),v.addMany(h(48,80),1,10,0),v.addMany(h(81,88),1,10,0),v.addMany([89,90,92],1,10,0),v.addMany(h(96,127),1,10,0),v.add(80,1,11,9),v.addMany(E,9,0,9),v.add(127,9,0,9),v.addMany(h(28,32),9,0,9),v.addMany(h(32,48),9,9,12),v.addMany(h(48,60),9,8,10),v.addMany([60,61,62,63],9,9,10),v.addMany(E,11,0,11),v.addMany(h(32,128),11,0,11),v.addMany(h(28,32),11,0,11),v.addMany(E,10,0,10),v.add(127,10,0,10),v.addMany(h(28,32),10,0,10),v.addMany(h(48,60),10,8,10),v.addMany([60,61,62,63],10,0,11),v.addMany(h(32,48),10,9,12),v.addMany(E,12,0,12),v.add(127,12,0,12),v.addMany(h(28,32),12,0,12),v.addMany(h(32,48),12,9,12),v.addMany(h(48,64),12,0,11),v.addMany(h(64,127),12,12,13),v.addMany(h(64,127),10,12,13),v.addMany(h(64,127),9,12,13),v.addMany(E,13,13,13),v.addMany(m,13,13,13),v.add(127,13,0,13),v.addMany([27,156,24,26],13,14,0),v.add(160,0,2,0),v.add(160,8,5,8),v.add(160,6,0,6),v.add(160,11,0,11),v.add(160,13,13,13),v}();var y=function(v){function c(h){h===void 0&&(h=S.VT500_TRANSITION_TABLE);var m=v.call(this)||this;return m._transitions=h,m.initialState=0,m.currentState=m.initialState,m._params=new u.Params,m._params.addParam(0),m._collect=0,m.precedingCodepoint=0,m._printHandlerFb=function(E,T,I){},m._executeHandlerFb=function(E){},m._csiHandlerFb=function(E,T){},m._escHandlerFb=function(E){},m._errorHandlerFb=function(E){return E},m._printHandler=m._printHandlerFb,m._executeHandlers=Object.create(null),m._csiHandlers=Object.create(null),m._escHandlers=Object.create(null),m._oscParser=new p.OscParser,m._dcsParser=new b.DcsParser,m._errorHandler=m._errorHandlerFb,m.setEscHandler({final:"\\"},function(){}),m}return s(c,v),c.prototype._identifier=function(h,m){m===void 0&&(m=[64,126]);var E=0;if(h.prefix){if(h.prefix.length>1)throw new Error("only one byte as prefix supported");if((E=h.prefix.charCodeAt(0))&&60>E||E>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(h.intermediates){if(h.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var T=0;T<h.intermediates.length;++T){var I=h.intermediates.charCodeAt(T);if(32>I||I>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");E<<=8,E|=I}}if(h.final.length!==1)throw new Error("final must be a single byte");var R=h.final.charCodeAt(0);if(m[0]>R||R>m[1])throw new Error("final must be in range "+m[0]+" .. "+m[1]);return E<<=8,E|=R},c.prototype.identToString=function(h){for(var m=[];h;)m.push(String.fromCharCode(255&h)),h>>=8;return m.reverse().join("")},c.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},c.prototype.setPrintHandler=function(h){this._printHandler=h},c.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},c.prototype.addEscHandler=function(h,m){var E=this._identifier(h,[48,126]);this._escHandlers[E]===void 0&&(this._escHandlers[E]=[]);var T=this._escHandlers[E];return T.push(m),{dispose:function(){var I=T.indexOf(m);I!==-1&&T.splice(I,1)}}},c.prototype.setEscHandler=function(h,m){this._escHandlers[this._identifier(h,[48,126])]=[m]},c.prototype.clearEscHandler=function(h){this._escHandlers[this._identifier(h,[48,126])]&&delete this._escHandlers[this._identifier(h,[48,126])]},c.prototype.setEscHandlerFallback=function(h){this._escHandlerFb=h},c.prototype.setExecuteHandler=function(h,m){this._executeHandlers[h.charCodeAt(0)]=m},c.prototype.clearExecuteHandler=function(h){this._executeHandlers[h.charCodeAt(0)]&&delete this._executeHandlers[h.charCodeAt(0)]},c.prototype.setExecuteHandlerFallback=function(h){this._executeHandlerFb=h},c.prototype.addCsiHandler=function(h,m){var E=this._identifier(h);this._csiHandlers[E]===void 0&&(this._csiHandlers[E]=[]);var T=this._csiHandlers[E];return T.push(m),{dispose:function(){var I=T.indexOf(m);I!==-1&&T.splice(I,1)}}},c.prototype.setCsiHandler=function(h,m){this._csiHandlers[this._identifier(h)]=[m]},c.prototype.clearCsiHandler=function(h){this._csiHandlers[this._identifier(h)]&&delete this._csiHandlers[this._identifier(h)]},c.prototype.setCsiHandlerFallback=function(h){this._csiHandlerFb=h},c.prototype.addDcsHandler=function(h,m){return this._dcsParser.addHandler(this._identifier(h),m)},c.prototype.setDcsHandler=function(h,m){this._dcsParser.setHandler(this._identifier(h),m)},c.prototype.clearDcsHandler=function(h){this._dcsParser.clearHandler(this._identifier(h))},c.prototype.setDcsHandlerFallback=function(h){this._dcsParser.setHandlerFallback(h)},c.prototype.addOscHandler=function(h,m){return this._oscParser.addHandler(h,m)},c.prototype.setOscHandler=function(h,m){this._oscParser.setHandler(h,m)},c.prototype.clearOscHandler=function(h){this._oscParser.clearHandler(h)},c.prototype.setOscHandlerFallback=function(h){this._oscParser.setHandlerFallback(h)},c.prototype.setErrorHandler=function(h){this._errorHandler=h},c.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},c.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},c.prototype.parse=function(h,m){for(var E=0,T=0,I=this.currentState,R=this._oscParser,N=this._dcsParser,k=this._collect,L=this._params,H=this._transitions.table,D=0;D<m;++D){switch((T=H[I<<8|((E=h[D])<160?E:160)])>>4){case 2:for(var V=D+1;;++V){if(V>=m||(E=h[V])<32||E>126&&E<160){this._printHandler(h,D,V),D=V-1;break}if(++V>=m||(E=h[V])<32||E>126&&E<160){this._printHandler(h,D,V),D=V-1;break}if(++V>=m||(E=h[V])<32||E>126&&E<160){this._printHandler(h,D,V),D=V-1;break}if(++V>=m||(E=h[V])<32||E>126&&E<160){this._printHandler(h,D,V),D=V-1;break}}break;case 3:this._executeHandlers[E]?this._executeHandlers[E]():this._executeHandlerFb(E),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:D,code:E,currentState:I,collect:k,params:L,abort:!1}).abort)return;break;case 7:for(var P=this._csiHandlers[k<<8|E],U=P?P.length-1:-1;U>=0&&P[U](L)===!1;U--);U<0&&this._csiHandlerFb(k<<8|E,L),this.precedingCodepoint=0;break;case 8:do switch(E){case 59:L.addParam(0);break;case 58:L.addSubParam(-1);break;default:L.addDigit(E-48)}while(++D<m&&(E=h[D])>47&&E<60);D--;break;case 9:k<<=8,k|=E;break;case 10:for(var G=this._escHandlers[k<<8|E],J=G?G.length-1:-1;J>=0&&G[J]()===!1;J--);J<0&&this._escHandlerFb(k<<8|E),this.precedingCodepoint=0;break;case 11:L.reset(),L.addParam(0),k=0;break;case 12:N.hook(k<<8|E,L);break;case 13:for(var ee=D+1;;++ee)if(ee>=m||(E=h[ee])===24||E===26||E===27||E>127&&E<160){N.put(h,D,ee),D=ee-1;break}break;case 14:N.unhook(E!==24&&E!==26),E===27&&(T|=1),L.reset(),L.addParam(0),k=0,this.precedingCodepoint=0;break;case 4:R.start();break;case 5:for(var ae=D+1;;ae++)if(ae>=m||(E=h[ae])<32||E>127&&E<=159){R.put(h,D,ae),D=ae-1;break}break;case 6:R.end(E!==24&&E!==26),E===27&&(T|=1),L.reset(),L.addParam(0),k=0,this.precedingCodepoint=0}I=15&T}this._collect=k,this.currentState=I},c}(C.Disposable);S.EscapeSequenceParser=y},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(R,N){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,L){k.__proto__=L}||function(k,L){for(var H in L)L.hasOwnProperty(H)&&(k[H]=L[H])})(R,N)},function(R,N){function k(){this.constructor=R}Z(R,N),R.prototype=N===null?Object.create(N):(k.prototype=N.prototype,new k)}),C=this&&this.__decorate||function(R,N,k,L){var H,D=arguments.length,V=D<3?N:L===null?L=Object.getOwnPropertyDescriptor(N,k):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")V=Reflect.decorate(R,N,k,L);else for(var P=R.length-1;P>=0;P--)(H=R[P])&&(V=(D<3?H(V):D>3?H(N,k,V):H(N,k))||V);return D>3&&V&&Object.defineProperty(N,k,V),V},A=this&&this.__param||function(R,N){return function(k,L){N(k,L,R)}};Object.defineProperty(S,"__esModule",{value:!0}),S.Renderer=void 0;var u=B(41),p=B(47),b=B(48),g=B(49),y=B(29),v=B(2),c=B(5),h=B(1),m=B(25),E=B(0),T=1,I=function(R){function N(k,L,H,D,V,P,U,G,J){var ee=R.call(this)||this;ee._colors=k,ee._screenElement=L,ee._bufferService=V,ee._charSizeService=P,ee._optionsService=U,ee._id=T++,ee._onRequestRedraw=new E.EventEmitter;var ae=ee._optionsService.options.allowTransparency;return ee._characterJoinerRegistry=new y.CharacterJoinerRegistry(ee._bufferService),ee._renderLayers=[new u.TextRenderLayer(ee._screenElement,0,ee._colors,ee._characterJoinerRegistry,ae,ee._id,ee._bufferService,U),new p.SelectionRenderLayer(ee._screenElement,1,ee._colors,ee._id,ee._bufferService,U),new g.LinkRenderLayer(ee._screenElement,2,ee._colors,ee._id,H,D,ee._bufferService,U),new b.CursorRenderLayer(ee._screenElement,3,ee._colors,ee._id,ee._onRequestRedraw,ee._bufferService,U,G,J)],ee.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},ee._devicePixelRatio=window.devicePixelRatio,ee._updateDimensions(),ee.onOptionsChanged(),ee}return s(N,R),Object.defineProperty(N.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),N.prototype.dispose=function(){for(var k=0,L=this._renderLayers;k<L.length;k++)L[k].dispose();R.prototype.dispose.call(this),m.removeTerminalFromCache(this._id)},N.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},N.prototype.setColors=function(k){this._colors=k;for(var L=0,H=this._renderLayers;L<H.length;L++){var D=H[L];D.setColors(this._colors),D.reset()}},N.prototype.onResize=function(k,L){this._updateDimensions();for(var H=0,D=this._renderLayers;H<D.length;H++)D[H].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},N.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},N.prototype.onBlur=function(){this._runOperation(function(k){return k.onBlur()})},N.prototype.onFocus=function(){this._runOperation(function(k){return k.onFocus()})},N.prototype.onSelectionChanged=function(k,L,H){H===void 0&&(H=!1),this._runOperation(function(D){return D.onSelectionChanged(k,L,H)})},N.prototype.onCursorMove=function(){this._runOperation(function(k){return k.onCursorMove()})},N.prototype.onOptionsChanged=function(){this._runOperation(function(k){return k.onOptionsChanged()})},N.prototype.clear=function(){this._runOperation(function(k){return k.reset()})},N.prototype._runOperation=function(k){for(var L=0,H=this._renderLayers;L<H.length;L++)k(H[L])},N.prototype.renderRows=function(k,L){for(var H=0,D=this._renderLayers;H<D.length;H++)D[H].onGridChanged(k,L)},N.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)},N.prototype.registerCharacterJoiner=function(k){return this._characterJoinerRegistry.registerCharacterJoiner(k)},N.prototype.deregisterCharacterJoiner=function(k){return this._characterJoinerRegistry.deregisterCharacterJoiner(k)},N=C([A(4,h.IBufferService),A(5,c.ICharSizeService),A(6,h.IOptionsService),A(7,h.ICoreService),A(8,c.ICoreBrowserService)],N)}(v.Disposable);S.Renderer=I},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(v,c){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var E in m)m.hasOwnProperty(E)&&(h[E]=m[E])})(v,c)},function(v,c){function h(){this.constructor=v}Z(v,c),v.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(S,"__esModule",{value:!0}),S.TextRenderLayer=void 0;var C=B(42),A=B(13),u=B(6),p=B(3),b=B(29),g=B(4),y=function(v){function c(h,m,E,T,I,R,N,k){var L=v.call(this,h,"text",m,I,E,R,N,k)||this;return L._characterWidth=0,L._characterFont="",L._characterOverlapCache={},L._workCell=new g.CellData,L._state=new C.GridCache,L._characterJoinerRegistry=T,L}return s(c,v),c.prototype.resize=function(h){v.prototype.resize.call(this,h);var m=this._getFont(!1,!1);this._characterWidth===h.scaledCharWidth&&this._characterFont===m||(this._characterWidth=h.scaledCharWidth,this._characterFont=m,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},c.prototype.reset=function(){this._state.clear(),this._clearAll()},c.prototype._forEachCell=function(h,m,E,T){for(var I=h;I<=m;I++)for(var R=I+this._bufferService.buffer.ydisp,N=this._bufferService.buffer.lines.get(R),k=E?E.getJoinedCharacters(R):[],L=0;L<this._bufferService.cols;L++){N.loadCell(L,this._workCell);var H=this._workCell,D=!1,V=L;if(H.getWidth()!==0){if(k.length>0&&L===k[0][0]){D=!0;var P=k.shift();H=new b.JoinedCellData(this._workCell,N.translateToString(!0,P[0],P[1]),P[1]-P[0]),V=P[1]-1}!D&&this._isOverlapping(H)&&V<N.length-1&&N.getCodePoint(V+1)===p.NULL_CELL_CODE&&(H.content&=-12582913,H.content|=2<<22),T(H,L,I),L=V}}},c.prototype._drawBackground=function(h,m){var E=this,T=this._ctx,I=this._bufferService.cols,R=0,N=0,k=null;T.save(),this._forEachCell(h,m,null,function(L,H,D){var V=null;L.isInverse()?V=L.isFgDefault()?E._colors.foreground.css:L.isFgRGB()?"rgb("+u.AttributeData.toColorRGB(L.getFgColor()).join(",")+")":E._colors.ansi[L.getFgColor()].css:L.isBgRGB()?V="rgb("+u.AttributeData.toColorRGB(L.getBgColor()).join(",")+")":L.isBgPalette()&&(V=E._colors.ansi[L.getBgColor()].css),k===null&&(R=H,N=D),D!==N?(T.fillStyle=k||"",E._fillCells(R,N,I-R,1),R=H,N=D):k!==V&&(T.fillStyle=k||"",E._fillCells(R,N,H-R,1),R=H,N=D),k=V}),k!==null&&(T.fillStyle=k,this._fillCells(R,N,I-R,1)),T.restore()},c.prototype._drawForeground=function(h,m){var E=this;this._forEachCell(h,m,this._characterJoinerRegistry,function(T,I,R){if(!T.isInvisible()&&(E._drawChars(T,I,R),T.isUnderline())){if(E._ctx.save(),T.isInverse())if(T.isBgDefault())E._ctx.fillStyle=E._colors.background.css;else if(T.isBgRGB())E._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(T.getBgColor()).join(",")+")";else{var N=T.getBgColor();E._optionsService.options.drawBoldTextInBrightColors&&T.isBold()&&N<8&&(N+=8),E._ctx.fillStyle=E._colors.ansi[N].css}else if(T.isFgDefault())E._ctx.fillStyle=E._colors.foreground.css;else if(T.isFgRGB())E._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(T.getFgColor()).join(",")+")";else{var k=T.getFgColor();E._optionsService.options.drawBoldTextInBrightColors&&T.isBold()&&k<8&&(k+=8),E._ctx.fillStyle=E._colors.ansi[k].css}E._fillBottomLineAtCells(I,R,T.getWidth()),E._ctx.restore()}})},c.prototype.onGridChanged=function(h,m){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,h,this._bufferService.cols,m-h+1),this._drawBackground(h,m),this._drawForeground(h,m))},c.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},c.prototype._isOverlapping=function(h){if(h.getWidth()!==1||h.getCode()<256)return!1;var m=h.getChars();if(this._characterOverlapCache.hasOwnProperty(m))return this._characterOverlapCache[m];this._ctx.save(),this._ctx.font=this._characterFont;var E=Math.floor(this._ctx.measureText(m).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[m]=E,E},c}(A.BaseRenderLayer);S.TextRenderLayer=y},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.GridCache=void 0;var Z=function(){function s(){this.cache=[]}return s.prototype.resize=function(C,A){for(var u=0;u<C;u++){this.cache.length<=u&&this.cache.push([]);for(var p=this.cache[u].length;p<A;p++)this.cache[u].push(void 0);this.cache[u].length=A}this.cache.length=C},s.prototype.clear=function(){for(var C=0;C<this.cache.length;C++)for(var A=0;A<this.cache[C].length;A++)this.cache[C][A]=void 0},s}();S.GridCache=Z},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(E,T){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,R){I.__proto__=R}||function(I,R){for(var N in R)R.hasOwnProperty(N)&&(I[N]=R[N])})(E,T)},function(E,T){function I(){this.constructor=E}Z(E,T),E.prototype=T===null?Object.create(T):(I.prototype=T.prototype,new I)});Object.defineProperty(S,"__esModule",{value:!0}),S.NoneCharAtlas=S.DynamicCharAtlas=S.getGlyphCacheKey=void 0;var C=B(9),A=B(44),u=B(27),p=B(46),b=B(11),g=B(28),y=B(10),v={css:"rgba(0, 0, 0, 0)",rgba:0};function c(E){return E.code<<21|E.bg<<12|E.fg<<3|(E.bold?0:4)+(E.dim?0:2)+(E.italic?0:1)}S.getGlyphCacheKey=c;var h=function(E){function T(I,R){var N=E.call(this)||this;N._config=R,N._drawToCacheCount=0,N._glyphsWaitingOnBitmap=[],N._bitmapCommitTimeout=null,N._bitmap=null,N._cacheCanvas=I.createElement("canvas"),N._cacheCanvas.width=1024,N._cacheCanvas.height=1024,N._cacheCtx=g.throwIfFalsy(N._cacheCanvas.getContext("2d",{alpha:!0}));var k=I.createElement("canvas");k.width=N._config.scaledCharWidth,k.height=N._config.scaledCharHeight,N._tmpCtx=g.throwIfFalsy(k.getContext("2d",{alpha:N._config.allowTransparency})),N._width=Math.floor(1024/N._config.scaledCharWidth),N._height=Math.floor(1024/N._config.scaledCharHeight);var L=N._width*N._height;return N._cacheMap=new p.LRUMap(L),N._cacheMap.prealloc(L),N}return s(T,E),T.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},T.prototype.beginFrame=function(){this._drawToCacheCount=0},T.prototype.draw=function(I,R,N,k){if(R.code===32)return!0;if(!this._canCache(R))return!1;var L=c(R),H=this._cacheMap.get(L);if(H!=null)return this._drawFromCache(I,H,N,k),!0;if(this._drawToCacheCount<100){var D=void 0;D=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var V=this._drawToCache(R,D);return this._cacheMap.set(L,V),this._drawFromCache(I,V,N,k),!0}return!1},T.prototype._canCache=function(I){return I.code<256},T.prototype._toCoordinateX=function(I){return I%this._width*this._config.scaledCharWidth},T.prototype._toCoordinateY=function(I){return Math.floor(I/this._width)*this._config.scaledCharHeight},T.prototype._drawFromCache=function(I,R,N,k){if(!R.isEmpty){var L=this._toCoordinateX(R.index),H=this._toCoordinateY(R.index);I.drawImage(R.inBitmap?this._bitmap:this._cacheCanvas,L,H,this._config.scaledCharWidth,this._config.scaledCharHeight,N,k,this._config.scaledCharWidth,this._config.scaledCharHeight)}},T.prototype._getColorFromAnsiIndex=function(I){return I<this._config.colors.ansi.length?this._config.colors.ansi[I]:u.DEFAULT_ANSI_COLORS[I]},T.prototype._getBackgroundColor=function(I){return this._config.allowTransparency?v:I.bg===C.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:I.bg<256?this._getColorFromAnsiIndex(I.bg):this._config.colors.background},T.prototype._getForegroundColor=function(I){return I.fg===C.INVERTED_DEFAULT_COLOR?y.color.opaque(this._config.colors.background):I.fg<256?this._getColorFromAnsiIndex(I.fg):this._config.colors.foreground},T.prototype._drawToCache=function(I,R){this._drawToCacheCount++,this._tmpCtx.save();var N=this._getBackgroundColor(I);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=N.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var k=I.bold?this._config.fontWeightBold:this._config.fontWeight,L=I.italic?"italic":"";this._tmpCtx.font=L+" "+k+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(I).css,I.dim&&(this._tmpCtx.globalAlpha=C.DIM_OPACITY),this._tmpCtx.fillText(I.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var H=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),D=!1;this._config.allowTransparency||(D=function(G,J){for(var ee=!0,ae=J.rgba>>>24,oe=J.rgba>>>16&255,ue=J.rgba>>>8&255,se=0;se<G.data.length;se+=4)G.data[se]===ae&&G.data[se+1]===oe&&G.data[se+2]===ue?G.data[se+3]=0:ee=!1;return ee}(H,N));var V=this._toCoordinateX(R),P=this._toCoordinateY(R);this._cacheCtx.putImageData(H,V,P);var U={index:R,isEmpty:D,inBitmap:!1};return this._addGlyphToBitmap(U),U},T.prototype._addGlyphToBitmap=function(I){var R=this;!("createImageBitmap"in window)||b.isFirefox||b.isSafari||(this._glyphsWaitingOnBitmap.push(I),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return R._generateBitmap()},100)))},T.prototype._generateBitmap=function(){var I=this,R=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(N){I._bitmap=N;for(var k=0;k<R.length;k++)R[k].inBitmap=!0}),this._bitmapCommitTimeout=null},T}(A.BaseCharAtlas);S.DynamicCharAtlas=h;var m=function(E){function T(I,R){return E.call(this)||this}return s(T,E),T.prototype.draw=function(I,R,N,k){return!1},T}(A.BaseCharAtlas);S.NoneCharAtlas=m},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.BaseCharAtlas=void 0;var Z=function(){function s(){this._didWarmUp=!1}return s.prototype.dispose=function(){},s.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},s.prototype._doWarmUp=function(){},s.prototype.beginFrame=function(){},s}();S.BaseCharAtlas=Z},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.ColorContrastCache=void 0;var Z=function(){function s(){this._color={},this._rgba={}}return s.prototype.clear=function(){this._color={},this._rgba={}},s.prototype.setCss=function(C,A,u){this._rgba[C]||(this._rgba[C]={}),this._rgba[C][A]=u},s.prototype.getCss=function(C,A){return this._rgba[C]?this._rgba[C][A]:void 0},s.prototype.setColor=function(C,A,u){this._color[C]||(this._color[C]={}),this._color[C][A]=u},s.prototype.getColor=function(C,A){return this._color[C]?this._color[C][A]:void 0},s}();S.ColorContrastCache=Z},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.LRUMap=void 0;var Z=function(){function s(C){this.capacity=C,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return s.prototype._unlinkNode=function(C){var A=C.prev,u=C.next;C===this._head&&(this._head=u),C===this._tail&&(this._tail=A),A!==null&&(A.next=u),u!==null&&(u.prev=A)},s.prototype._appendNode=function(C){var A=this._tail;A!==null&&(A.next=C),C.prev=A,C.next=null,this._tail=C,this._head===null&&(this._head=C)},s.prototype.prealloc=function(C){for(var A=this._nodePool,u=0;u<C;u++)A.push({prev:null,next:null,key:null,value:null})},s.prototype.get=function(C){var A=this._map[C];return A!==void 0?(this._unlinkNode(A),this._appendNode(A),A.value):null},s.prototype.peekValue=function(C){var A=this._map[C];return A!==void 0?A.value:null},s.prototype.peek=function(){var C=this._head;return C===null?null:C.value},s.prototype.set=function(C,A){var u=this._map[C];if(u!==void 0)u=this._map[C],this._unlinkNode(u),u.value=A;else if(this.size>=this.capacity)u=this._head,this._unlinkNode(u),delete this._map[u.key],u.key=C,u.value=A,this._map[C]=u;else{var p=this._nodePool;p.length>0?((u=p.pop()).key=C,u.value=A):u={prev:null,next:null,key:C,value:A},this._map[C]=u,this.size++}this._appendNode(u)},s}();S.LRUMap=Z},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(A,u){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,b){p.__proto__=b}||function(p,b){for(var g in b)b.hasOwnProperty(g)&&(p[g]=b[g])})(A,u)},function(A,u){function p(){this.constructor=A}Z(A,u),A.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)});Object.defineProperty(S,"__esModule",{value:!0}),S.SelectionRenderLayer=void 0;var C=function(A){function u(p,b,g,y,v,c){var h=A.call(this,p,"selection",b,!0,g,y,v,c)||this;return h._clearState(),h}return s(u,A),u.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},u.prototype.resize=function(p){A.prototype.resize.call(this,p),this._clearState()},u.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},u.prototype.onSelectionChanged=function(p,b,g){if(this._didStateChange(p,b,g,this._bufferService.buffer.ydisp))if(this._clearAll(),p&&b){var y=p[1]-this._bufferService.buffer.ydisp,v=b[1]-this._bufferService.buffer.ydisp,c=Math.max(y,0),h=Math.min(v,this._bufferService.rows-1);if(!(c>=this._bufferService.rows||h<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,g){var m=p[0],E=b[0]-m,T=h-c+1;this._fillCells(m,c,E,T)}else{m=y===c?p[0]:0;var I=c===h?b[0]:this._bufferService.cols;this._fillCells(m,c,I-m,1);var R=Math.max(h-c-1,0);if(this._fillCells(0,c+1,this._bufferService.cols,R),c!==h){var N=v===h?b[0]:this._bufferService.cols;this._fillCells(0,h,N,1)}}this._state.start=[p[0],p[1]],this._state.end=[b[0],b[1]],this._state.columnSelectMode=g,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},u.prototype._didStateChange=function(p,b,g,y){return!this._areCoordinatesEqual(p,this._state.start)||!this._areCoordinatesEqual(b,this._state.end)||g!==this._state.columnSelectMode||y!==this._state.ydisp},u.prototype._areCoordinatesEqual=function(p,b){return!(!p||!b)&&p[0]===b[0]&&p[1]===b[1]},u}(B(13).BaseRenderLayer);S.SelectionRenderLayer=C},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(b,g){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,v){y.__proto__=v}||function(y,v){for(var c in v)v.hasOwnProperty(c)&&(y[c]=v[c])})(b,g)},function(b,g){function y(){this.constructor=b}Z(b,g),b.prototype=g===null?Object.create(g):(y.prototype=g.prototype,new y)});Object.defineProperty(S,"__esModule",{value:!0}),S.CursorRenderLayer=void 0;var C=B(13),A=B(4),u=function(b){function g(y,v,c,h,m,E,T,I,R){var N=b.call(this,y,"cursor",v,!0,c,h,E,T)||this;return N._onRequestRedraw=m,N._coreService=I,N._coreBrowserService=R,N._cell=new A.CellData,N._state={x:0,y:0,isFocused:!1,style:"",width:0},N._cursorRenderers={bar:N._renderBarCursor.bind(N),block:N._renderBlockCursor.bind(N),underline:N._renderUnderlineCursor.bind(N)},N}return s(g,b),g.prototype.resize=function(y){b.prototype.resize.call(this,y),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},g.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},g.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},g.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},g.prototype.onOptionsChanged=function(){var y,v=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new p(this._coreBrowserService.isFocused,function(){v._render(!0)})):((y=this._cursorBlinkStateManager)===null||y===void 0||y.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},g.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},g.prototype.onGridChanged=function(y,v){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},g.prototype._render=function(y){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var v=this._bufferService.buffer.ybase+this._bufferService.buffer.y,c=v-this._bufferService.buffer.ydisp;if(c<0||c>=this._bufferService.rows)this._clearCursor();else{var h=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(v).loadCell(h,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var m=this._optionsService.options.cursorStyle;return m&&m!=="block"?this._cursorRenderers[m](h,c,this._cell):this._renderBlurCursor(h,c,this._cell),this._ctx.restore(),this._state.x=h,this._state.y=c,this._state.isFocused=!1,this._state.style=m,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===h&&this._state.y===c&&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"](h,c,this._cell),this._ctx.restore(),this._state.x=h,this._state.y=c,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},g.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})},g.prototype._renderBarCursor=function(y,v,c){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(y,v,this._optionsService.options.cursorWidth),this._ctx.restore()},g.prototype._renderBlockCursor=function(y,v,c){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(y,v,c.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(c,y,v),this._ctx.restore()},g.prototype._renderUnderlineCursor=function(y,v,c){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(y,v),this._ctx.restore()},g.prototype._renderBlurCursor=function(y,v,c){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(y,v,c.getWidth(),1),this._ctx.restore()},g}(C.BaseRenderLayer);S.CursorRenderLayer=u;var p=function(){function b(g,y){this._renderCallback=y,this.isCursorVisible=!0,g&&this._restartInterval()}return Object.defineProperty(b.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),b.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)},b.prototype.restartBlinkAnimation=function(){var g=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){g._renderCallback(),g._animationFrame=void 0})))},b.prototype._restartInterval=function(g){var y=this;g===void 0&&(g=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(y._animationTimeRestarted){var v=600-(Date.now()-y._animationTimeRestarted);if(y._animationTimeRestarted=void 0,v>0)return void y._restartInterval(v)}y.isCursorVisible=!1,y._animationFrame=window.requestAnimationFrame(function(){y._renderCallback(),y._animationFrame=void 0}),y._blinkInterval=window.setInterval(function(){if(y._animationTimeRestarted){var c=600-(Date.now()-y._animationTimeRestarted);return y._animationTimeRestarted=void 0,void y._restartInterval(c)}y.isCursorVisible=!y.isCursorVisible,y._animationFrame=window.requestAnimationFrame(function(){y._renderCallback(),y._animationFrame=void 0})},600)},g)},b.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)},b.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},b}()},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(b,g){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,v){y.__proto__=v}||function(y,v){for(var c in v)v.hasOwnProperty(c)&&(y[c]=v[c])})(b,g)},function(b,g){function y(){this.constructor=b}Z(b,g),b.prototype=g===null?Object.create(g):(y.prototype=g.prototype,new y)});Object.defineProperty(S,"__esModule",{value:!0}),S.LinkRenderLayer=void 0;var C=B(13),A=B(9),u=B(26),p=function(b){function g(y,v,c,h,m,E,T,I){var R=b.call(this,y,"link",v,!0,c,h,T,I)||this;return m.onShowLinkUnderline(function(N){return R._onShowLinkUnderline(N)}),m.onHideLinkUnderline(function(N){return R._onHideLinkUnderline(N)}),E.onShowLinkUnderline(function(N){return R._onShowLinkUnderline(N)}),E.onHideLinkUnderline(function(N){return R._onHideLinkUnderline(N)}),R}return s(g,b),g.prototype.resize=function(y){b.prototype.resize.call(this,y),this._state=void 0},g.prototype.reset=function(){this._clearCurrentLink()},g.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var y=this._state.y2-this._state.y1-1;y>0&&this._clearCells(0,this._state.y1+1,this._state.cols,y),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},g.prototype._onShowLinkUnderline=function(y){if(y.fg===A.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:y.fg&&u.is256Color(y.fg)?this._ctx.fillStyle=this._colors.ansi[y.fg].css:this._ctx.fillStyle=this._colors.foreground.css,y.y1===y.y2)this._fillBottomLineAtCells(y.x1,y.y1,y.x2-y.x1);else{this._fillBottomLineAtCells(y.x1,y.y1,y.cols-y.x1);for(var v=y.y1+1;v<y.y2;v++)this._fillBottomLineAtCells(0,v,y.cols);this._fillBottomLineAtCells(0,y.y2,y.x2)}this._state=y},g.prototype._onHideLinkUnderline=function(y){this._clearCurrentLink()},g}(C.BaseRenderLayer);S.LinkRenderLayer=p},function(Q,S,B){"use strict";var Z=this&&this.__decorate||function(b,g,y,v){var c,h=arguments.length,m=h<3?g:v===null?v=Object.getOwnPropertyDescriptor(g,y):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(b,g,y,v);else for(var E=b.length-1;E>=0;E--)(c=b[E])&&(m=(h<3?c(m):h>3?c(g,y,m):c(g,y))||m);return h>3&&m&&Object.defineProperty(g,y,m),m},s=this&&this.__param||function(b,g){return function(y,v){g(y,v,b)}};Object.defineProperty(S,"__esModule",{value:!0}),S.MouseZone=S.Linkifier=void 0;var C=B(0),A=B(1),u=function(){function b(g,y,v){this._bufferService=g,this._logService=y,this._unicodeService=v,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new C.EventEmitter,this._onHideLinkUnderline=new C.EventEmitter,this._onLinkTooltip=new C.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(b.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),b.prototype.attachToDom=function(g,y){this._element=g,this._mouseZoneManager=y},b.prototype.linkifyRows=function(g,y){var v=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=g,this._rowsToLinkify.end=y):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,g),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,y)),this._mouseZoneManager.clearAll(g,y),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return v._linkifyRows()},b._timeBeforeLatency))},b.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var g=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var y=g.ydisp+this._rowsToLinkify.start;if(!(y>=g.lines.length)){for(var v=g.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,c=Math.ceil(2e3/this._bufferService.cols),h=this._bufferService.buffer.iterator(!1,y,v,c,c);h.hasNext();)for(var m=h.next(),E=0;E<this._linkMatchers.length;E++)this._doLinkifyRow(m.range.first,m.content,this._linkMatchers[E]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},b.prototype.registerLinkMatcher=function(g,y,v){if(v===void 0&&(v={}),!y)throw new Error("handler must be defined");var c={id:this._nextLinkMatcherId++,regex:g,handler:y,matchIndex:v.matchIndex,validationCallback:v.validationCallback,hoverTooltipCallback:v.tooltipCallback,hoverLeaveCallback:v.leaveCallback,willLinkActivate:v.willLinkActivate,priority:v.priority||0};return this._addLinkMatcherToList(c),c.id},b.prototype._addLinkMatcherToList=function(g){if(this._linkMatchers.length!==0){for(var y=this._linkMatchers.length-1;y>=0;y--)if(g.priority<=this._linkMatchers[y].priority)return void this._linkMatchers.splice(y+1,0,g);this._linkMatchers.splice(0,0,g)}else this._linkMatchers.push(g)},b.prototype.deregisterLinkMatcher=function(g){for(var y=0;y<this._linkMatchers.length;y++)if(this._linkMatchers[y].id===g)return this._linkMatchers.splice(y,1),!0;return!1},b.prototype._doLinkifyRow=function(g,y,v){for(var c,h=this,m=new RegExp(v.regex.source,(v.regex.flags||"")+"g"),E=-1,T=function(){var R=c[typeof v.matchIndex!="number"?0:v.matchIndex];if(!R)return I._logService.debug("match found without corresponding matchIndex",c,v),"break";if(E=y.indexOf(R,E+1),m.lastIndex=E+R.length,E<0)return"break";var N=I._bufferService.buffer.stringIndexToBufferIndex(g,E);if(N[0]<0)return"break";var k=I._bufferService.buffer.lines.get(N[0]);if(!k)return"break";var L=k.getFg(N[1]),H=L?L>>9&511:void 0;v.validationCallback?v.validationCallback(R,function(D){h._rowsTimeoutId||D&&h._addLink(N[1],N[0]-h._bufferService.buffer.ydisp,R,v,H)}):I._addLink(N[1],N[0]-I._bufferService.buffer.ydisp,R,v,H)},I=this;(c=m.exec(y))!==null&&T()!=="break";);},b.prototype._addLink=function(g,y,v,c,h){var m=this;if(this._mouseZoneManager&&this._element){var E=this._unicodeService.getStringCellWidth(v),T=g%this._bufferService.cols,I=y+Math.floor(g/this._bufferService.cols),R=(T+E)%this._bufferService.cols,N=I+Math.floor((T+E)/this._bufferService.cols);R===0&&(R=this._bufferService.cols,N--),this._mouseZoneManager.add(new p(T+1,I+1,R+1,N+1,function(k){if(c.handler)return c.handler(k,v);var L=window.open();L?(L.opener=null,L.location.href=v):console.warn("Opening link blocked as opener could not be cleared")},function(){m._onShowLinkUnderline.fire(m._createLinkHoverEvent(T,I,R,N,h)),m._element.classList.add("xterm-cursor-pointer")},function(k){m._onLinkTooltip.fire(m._createLinkHoverEvent(T,I,R,N,h)),c.hoverTooltipCallback&&c.hoverTooltipCallback(k,v,{start:{x:T,y:I},end:{x:R,y:N}})},function(){m._onHideLinkUnderline.fire(m._createLinkHoverEvent(T,I,R,N,h)),m._element.classList.remove("xterm-cursor-pointer"),c.hoverLeaveCallback&&c.hoverLeaveCallback()},function(k){return!c.willLinkActivate||c.willLinkActivate(k,v)}))}},b.prototype._createLinkHoverEvent=function(g,y,v,c,h){return{x1:g,y1:y,x2:v,y2:c,cols:this._bufferService.cols,fg:h}},b._timeBeforeLatency=200,b=Z([s(0,A.IBufferService),s(1,A.ILogService),s(2,A.IUnicodeService)],b)}();S.Linkifier=u;var p=function(b,g,y,v,c,h,m,E,T){this.x1=b,this.y1=g,this.x2=y,this.y2=v,this.clickCallback=c,this.hoverCallback=h,this.tooltipCallback=m,this.leaveCallback=E,this.willLinkActivate=T};S.MouseZone=p},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(R,N){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,L){k.__proto__=L}||function(k,L){for(var H in L)L.hasOwnProperty(H)&&(k[H]=L[H])})(R,N)},function(R,N){function k(){this.constructor=R}Z(R,N),R.prototype=N===null?Object.create(N):(k.prototype=N.prototype,new k)}),C=this&&this.__decorate||function(R,N,k,L){var H,D=arguments.length,V=D<3?N:L===null?L=Object.getOwnPropertyDescriptor(N,k):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")V=Reflect.decorate(R,N,k,L);else for(var P=R.length-1;P>=0;P--)(H=R[P])&&(V=(D<3?H(V):D>3?H(N,k,V):H(N,k))||V);return D>3&&V&&Object.defineProperty(N,k,V),V},A=this&&this.__param||function(R,N){return function(k,L){N(k,L,R)}};Object.defineProperty(S,"__esModule",{value:!0}),S.SelectionService=void 0;var u=B(11),p=B(52),b=B(4),g=B(0),y=B(5),v=B(1),c=B(30),h=B(53),m=B(2),E="\xA0",T=new RegExp(E,"g"),I=function(R){function N(k,L,H,D,V,P,U){var G=R.call(this)||this;return G._element=k,G._screenElement=L,G._bufferService=H,G._coreService=D,G._mouseService=V,G._optionsService=P,G._renderService=U,G._dragScrollAmount=0,G._enabled=!0,G._workCell=new b.CellData,G._mouseDownTimeStamp=0,G._onLinuxMouseSelection=G.register(new g.EventEmitter),G._onRedrawRequest=G.register(new g.EventEmitter),G._onSelectionChange=G.register(new g.EventEmitter),G._onRequestScrollLines=G.register(new g.EventEmitter),G._mouseMoveListener=function(J){return G._onMouseMove(J)},G._mouseUpListener=function(J){return G._onMouseUp(J)},G._coreService.onUserInput(function(){G.hasSelection&&G.clearSelection()}),G._trimListener=G._bufferService.buffer.lines.onTrim(function(J){return G._onTrim(J)}),G.register(G._bufferService.buffers.onBufferActivate(function(J){return G._onBufferActivate(J)})),G.enable(),G._model=new p.SelectionModel(G._bufferService),G._activeSelectionMode=0,G}return s(N,R),Object.defineProperty(N.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),N.prototype.dispose=function(){this._removeMouseDownListeners()},N.prototype.reset=function(){this.clearSelection()},N.prototype.disable=function(){this.clearSelection(),this._enabled=!1},N.prototype.enable=function(){this._enabled=!0},Object.defineProperty(N.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"hasSelection",{get:function(){var k=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!(!k||!L)&&(k[0]!==L[0]||k[1]!==L[1])},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"selectionText",{get:function(){var k=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;if(!k||!L)return"";var H=this._bufferService.buffer,D=[];if(this._activeSelectionMode===3){if(k[0]===L[0])return"";for(var V=k[1];V<=L[1];V++){var P=H.translateBufferLineToString(V,!0,k[0],L[0]);D.push(P)}}else{var U=k[1]===L[1]?L[0]:void 0;for(D.push(H.translateBufferLineToString(k[1],!0,k[0],U)),V=k[1]+1;V<=L[1]-1;V++){var G=H.lines.get(V);P=H.translateBufferLineToString(V,!0),G&&G.isWrapped?D[D.length-1]+=P:D.push(P)}k[1]!==L[1]&&(G=H.lines.get(L[1]),P=H.translateBufferLineToString(L[1],!0,0,L[0]),G&&G.isWrapped?D[D.length-1]+=P:D.push(P))}return D.map(function(J){return J.replace(T," ")}).join(u.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),N.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},N.prototype.refresh=function(k){var L=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return L._refresh()})),u.isLinux&&k&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},N.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},N.prototype.isClickInSelection=function(k){var L=this._getMouseBufferCoords(k),H=this._model.finalSelectionStart,D=this._model.finalSelectionEnd;return!!(H&&D&&L)&&this._areCoordsInSelection(L,H,D)},N.prototype._areCoordsInSelection=function(k,L,H){return k[1]>L[1]&&k[1]<H[1]||L[1]===H[1]&&k[1]===L[1]&&k[0]>=L[0]&&k[0]<H[0]||L[1]<H[1]&&k[1]===H[1]&&k[0]<H[0]||L[1]<H[1]&&k[1]===L[1]&&k[0]>=L[0]},N.prototype.selectWordAtCursor=function(k){var L=this._getMouseBufferCoords(k);L&&(this._selectWordAt(L,!1),this._model.selectionEnd=void 0,this.refresh(!0))},N.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},N.prototype.selectLines=function(k,L){this._model.clearSelection(),k=Math.max(k,0),L=Math.min(L,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,k],this._model.selectionEnd=[this._bufferService.cols,L],this.refresh(),this._onSelectionChange.fire()},N.prototype._onTrim=function(k){this._model.onTrim(k)&&this.refresh()},N.prototype._getMouseBufferCoords=function(k){var L=this._mouseService.getCoords(k,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(L)return L[0]--,L[1]--,L[1]+=this._bufferService.buffer.ydisp,L},N.prototype._getMouseEventScrollAmount=function(k){var L=c.getCoordsRelativeToElement(k,this._screenElement)[1],H=this._renderService.dimensions.canvasHeight;return L>=0&&L<=H?0:(L>H&&(L-=H),L=Math.min(Math.max(L,-50),50),(L/=50)/Math.abs(L)+Math.round(14*L))},N.prototype.shouldForceSelection=function(k){return u.isMac?k.altKey&&this._optionsService.options.macOptionClickForcesSelection:k.shiftKey},N.prototype.onMouseDown=function(k){if(this._mouseDownTimeStamp=k.timeStamp,(k.button!==2||!this.hasSelection)&&k.button===0){if(!this._enabled){if(!this.shouldForceSelection(k))return;k.stopPropagation()}k.preventDefault(),this._dragScrollAmount=0,this._enabled&&k.shiftKey?this._onIncrementalClick(k):k.detail===1?this._onSingleClick(k):k.detail===2?this._onDoubleClick(k):k.detail===3&&this._onTripleClick(k),this._addMouseDownListeners(),this.refresh(!0)}},N.prototype._addMouseDownListeners=function(){var k=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return k._dragScroll()},50)},N.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},N.prototype._onIncrementalClick=function(k){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(k))},N.prototype._onSingleClick=function(k){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(k)?3:0,this._model.selectionStart=this._getMouseBufferCoords(k),this._model.selectionStart){this._model.selectionEnd=void 0;var L=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);L&&L.length!==this._model.selectionStart[0]&&L.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},N.prototype._onDoubleClick=function(k){var L=this._getMouseBufferCoords(k);L&&(this._activeSelectionMode=1,this._selectWordAt(L,!0))},N.prototype._onTripleClick=function(k){var L=this._getMouseBufferCoords(k);L&&(this._activeSelectionMode=2,this._selectLineAt(L[1]))},N.prototype.shouldColumnSelect=function(k){return k.altKey&&!(u.isMac&&this._optionsService.options.macOptionClickForcesSelection)},N.prototype._onMouseMove=function(k){if(k.stopImmediatePropagation(),this._model.selectionStart){var L=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(k),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(k),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var H=this._bufferService.buffer;if(this._model.selectionEnd[1]<H.lines.length){var D=H.lines.get(this._model.selectionEnd[1]);D&&D.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}L&&L[0]===this._model.selectionEnd[0]&&L[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},N.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var k=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(k.ydisp+this._bufferService.rows,k.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=k.ydisp),this.refresh()}},N.prototype._onMouseUp=function(k){var L=k.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&L<500&&k.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var H=this._mouseService.getCoords(k,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(H&&H[0]!==void 0&&H[1]!==void 0){var D=h.moveToCellSequence(H[0]-1,H[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(D,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},N.prototype._onBufferActivate=function(k){var L=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=k.activeBuffer.lines.onTrim(function(H){return L._onTrim(H)})},N.prototype._convertViewportColToCharacterIndex=function(k,L){for(var H=L[0],D=0;L[0]>=D;D++){var V=k.loadCell(D,this._workCell).getChars().length;this._workCell.getWidth()===0?H--:V>1&&L[0]!==D&&(H+=V-1)}return H},N.prototype.setSelection=function(k,L,H){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[k,L],this._model.selectionStartLength=H,this.refresh()},N.prototype._getWordAt=function(k,L,H,D){if(H===void 0&&(H=!0),D===void 0&&(D=!0),!(k[0]>=this._bufferService.cols)){var V=this._bufferService.buffer,P=V.lines.get(k[1]);if(P){var U=V.translateBufferLineToString(k[1],!1),G=this._convertViewportColToCharacterIndex(P,k),J=G,ee=k[0]-G,ae=0,oe=0,ue=0,se=0;if(U.charAt(G)===" "){for(;G>0&&U.charAt(G-1)===" ";)G--;for(;J<U.length&&U.charAt(J+1)===" ";)J++}else{var ye=k[0],ve=k[0];P.getWidth(ye)===0&&(ae++,ye--),P.getWidth(ve)===2&&(oe++,ve++);var Re=P.getString(ve).length;for(Re>1&&(se+=Re-1,J+=Re-1);ye>0&&G>0&&!this._isCharWordSeparator(P.loadCell(ye-1,this._workCell));){P.loadCell(ye-1,this._workCell);var le=this._workCell.getChars().length;this._workCell.getWidth()===0?(ae++,ye--):le>1&&(ue+=le-1,G-=le-1),G--,ye--}for(;ve<P.length&&J+1<U.length&&!this._isCharWordSeparator(P.loadCell(ve+1,this._workCell));){P.loadCell(ve+1,this._workCell);var xe=this._workCell.getChars().length;this._workCell.getWidth()===2?(oe++,ve++):xe>1&&(se+=xe-1,J+=xe-1),J++,ve++}}J++;var pe=G+ee-ae+ue,Me=Math.min(this._bufferService.cols,J-G+ae+oe-ue-se);if(L||U.slice(G,J).trim()!==""){if(H&&pe===0&&P.getCodePoint(0)!==32){var Oe=V.lines.get(k[1]-1);if(Oe&&P.isWrapped&&Oe.getCodePoint(this._bufferService.cols-1)!==32){var Le=this._getWordAt([this._bufferService.cols-1,k[1]-1],!1,!0,!1);if(Le){var Pe=this._bufferService.cols-Le.start;pe-=Pe,Me+=Pe}}}if(D&&pe+Me===this._bufferService.cols&&P.getCodePoint(this._bufferService.cols-1)!==32){var De=V.lines.get(k[1]+1);if(De&&De.isWrapped&&De.getCodePoint(0)!==32){var Ke=this._getWordAt([0,k[1]+1],!1,!1,!0);Ke&&(Me+=Ke.length)}}return{start:pe,length:Me}}}}},N.prototype._selectWordAt=function(k,L){var H=this._getWordAt(k,L);if(H){for(;H.start<0;)H.start+=this._bufferService.cols,k[1]--;this._model.selectionStart=[H.start,k[1]],this._model.selectionStartLength=H.length}},N.prototype._selectToWordAt=function(k){var L=this._getWordAt(k,!0);if(L){for(var H=k[1];L.start<0;)L.start+=this._bufferService.cols,H--;if(!this._model.areSelectionValuesReversed())for(;L.start+L.length>this._bufferService.cols;)L.length-=this._bufferService.cols,H++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?L.start:L.start+L.length,H]}},N.prototype._isCharWordSeparator=function(k){return k.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(k.getChars())>=0},N.prototype._selectLineAt=function(k){var L=this._bufferService.buffer.getWrappedRangeForLine(k);this._model.selectionStart=[0,L.first],this._model.selectionEnd=[this._bufferService.cols,L.last],this._model.selectionStartLength=0},N=C([A(2,v.IBufferService),A(3,v.ICoreService),A(4,y.IMouseService),A(5,v.IOptionsService),A(6,y.IRenderService)],N)}(m.Disposable);S.SelectionService=I},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.SelectionModel=void 0;var Z=function(){function s(C){this._bufferService=C,this.isSelectAllActive=!1,this.selectionStartLength=0}return s.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(s.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(s.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 C=this.selectionStart[0]+this.selectionStartLength;return C>this._bufferService.cols?[C%this._bufferService.cols,this.selectionStart[1]+Math.floor(C/this._bufferService.cols)]:[C,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}),s.prototype.areSelectionValuesReversed=function(){var C=this.selectionStart,A=this.selectionEnd;return!(!C||!A)&&(C[1]>A[1]||C[1]===A[1]&&C[0]>A[0])},s.prototype.onTrim=function(C){return this.selectionStart&&(this.selectionStart[1]-=C),this.selectionEnd&&(this.selectionEnd[1]-=C),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},s}();S.SelectionModel=Z},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.moveToCellSequence=void 0;var Z=B(12);function s(g,y,v,c){var h=g-C(v,g),m=y-C(v,y);return b(Math.abs(h-m)-function(E,T,I){for(var R=0,N=E-C(I,E),k=T-C(I,T),L=0;L<Math.abs(N-k);L++){var H=A(E,T)==="A"?-1:1,D=I.buffer.lines.get(N+H*L);D&&D.isWrapped&&R++}return R}(g,y,v),p(A(g,y),c))}function C(g,y){for(var v=0,c=g.buffer.lines.get(y),h=c&&c.isWrapped;h&&y>=0&&y<g.rows;)v++,h=(c=g.buffer.lines.get(--y))&&c.isWrapped;return v}function A(g,y){return g>y?"A":"B"}function u(g,y,v,c,h,m){for(var E=g,T=y,I="";E!==v||T!==c;)E+=h?1:-1,h&&E>m.cols-1?(I+=m.buffer.translateBufferLineToString(T,!1,g,E),E=0,g=0,T++):!h&&E<0&&(I+=m.buffer.translateBufferLineToString(T,!1,0,g+1),g=E=m.cols-1,T--);return I+m.buffer.translateBufferLineToString(T,!1,g,E)}function p(g,y){var v=y?"O":"[";return Z.C0.ESC+v+g}function b(g,y){g=Math.floor(g);for(var v="",c=0;c<g;c++)v+=y;return v}S.moveToCellSequence=function(g,y,v,c){var h,m=v.buffer.x,E=v.buffer.y;if(!v.buffer.hasScrollback)return function(I,R,N,k,L,H){return s(R,k,L,H).length===0?"":b(u(I,R,I,R-C(L,R),!1,L).length,p("D",H))}(m,E,0,y,v,c)+s(E,y,v,c)+function(I,R,N,k,L,H){var D;D=s(R,k,L,H).length>0?k-C(L,k):R;var V=k,P=function(U,G,J,ee,ae,oe){var ue;return ue=s(J,ee,ae,oe).length>0?ee-C(ae,ee):G,U<J&&ue<=ee||U>=J&&ue<ee?"C":"D"}(I,R,N,k,L,H);return b(u(I,D,N,V,P==="C",L).length,p(P,H))}(m,E,g,y,v,c);if(E===y)return h=m>g?"D":"C",b(Math.abs(m-g),p(h,c));h=E>y?"D":"C";var T=Math.abs(E-y);return b(function(I,R){return R.cols-I}(E>y?g:m,v)+(T-1)*v.cols+1+((E>y?m:g)-1),p(h,c))}},function(Q,S,B){"use strict";var Z=this&&this.__decorate||function(u,p,b,g){var y,v=arguments.length,c=v<3?p:g===null?g=Object.getOwnPropertyDescriptor(p,b):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(u,p,b,g);else for(var h=u.length-1;h>=0;h--)(y=u[h])&&(c=(v<3?y(c):v>3?y(p,b,c):y(p,b))||c);return v>3&&c&&Object.defineProperty(p,b,c),c},s=this&&this.__param||function(u,p){return function(b,g){p(b,g,u)}};Object.defineProperty(S,"__esModule",{value:!0}),S.SoundService=void 0;var C=B(1),A=function(){function u(p){this._optionsService=p}return Object.defineProperty(u,"audioContext",{get:function(){if(!u._audioContext){var p=window.AudioContext||window.webkitAudioContext;if(!p)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;u._audioContext=new p}return u._audioContext},enumerable:!1,configurable:!0}),u.prototype.playBellSound=function(){var p=u.audioContext;if(p){var b=p.createBufferSource();p.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(g){b.buffer=g,b.connect(p.destination),b.start(0)})}},u.prototype._base64ToArrayBuffer=function(p){for(var b=window.atob(p),g=b.length,y=new Uint8Array(g),v=0;v<g;v++)y[v]=b.charCodeAt(v);return y.buffer},u.prototype._removeMimeType=function(p){return p.split(",")[1]},u=Z([s(0,C.IOptionsService)],u)}();S.SoundService=A},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(v,c){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var E in m)m.hasOwnProperty(E)&&(h[E]=m[E])})(v,c)},function(v,c){function h(){this.constructor=v}Z(v,c),v.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),C=this&&this.__decorate||function(v,c,h,m){var E,T=arguments.length,I=T<3?c:m===null?m=Object.getOwnPropertyDescriptor(c,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(v,c,h,m);else for(var R=v.length-1;R>=0;R--)(E=v[R])&&(I=(T<3?E(I):T>3?E(c,h,I):E(c,h))||I);return T>3&&I&&Object.defineProperty(c,h,I),I},A=this&&this.__param||function(v,c){return function(h,m){c(h,m,v)}};Object.defineProperty(S,"__esModule",{value:!0}),S.MouseZoneManager=void 0;var u=B(2),p=B(7),b=B(5),g=B(1),y=function(v){function c(h,m,E,T,I,R){var N=v.call(this)||this;return N._element=h,N._screenElement=m,N._bufferService=E,N._mouseService=T,N._selectionService=I,N._optionsService=R,N._zones=[],N._areZonesActive=!1,N._lastHoverCoords=[void 0,void 0],N._initialSelectionLength=0,N.register(p.addDisposableDomListener(N._element,"mousedown",function(k){return N._onMouseDown(k)})),N._mouseMoveListener=function(k){return N._onMouseMove(k)},N._mouseLeaveListener=function(k){return N._onMouseLeave(k)},N._clickListener=function(k){return N._onClick(k)},N}return s(c,v),c.prototype.dispose=function(){v.prototype.dispose.call(this),this._deactivate()},c.prototype.add=function(h){this._zones.push(h),this._zones.length===1&&this._activate()},c.prototype.clearAll=function(h,m){if(this._zones.length!==0){h&&m||(h=0,m=this._bufferService.rows-1);for(var E=0;E<this._zones.length;E++){var T=this._zones[E];(T.y1>h&&T.y1<=m+1||T.y2>h&&T.y2<=m+1||T.y1<h&&T.y2>m+1)&&(this._currentZone&&this._currentZone===T&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(E--,1))}this._zones.length===0&&this._deactivate()}},c.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))},c.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))},c.prototype._onMouseMove=function(h){this._lastHoverCoords[0]===h.pageX&&this._lastHoverCoords[1]===h.pageY||(this._onHover(h),this._lastHoverCoords=[h.pageX,h.pageY])},c.prototype._onHover=function(h){var m=this,E=this._findZoneEventAt(h);E!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),E&&(this._currentZone=E,E.hoverCallback&&E.hoverCallback(h),this._tooltipTimeout=window.setTimeout(function(){return m._onTooltip(h)},this._optionsService.options.linkTooltipHoverDuration)))},c.prototype._onTooltip=function(h){this._tooltipTimeout=void 0;var m=this._findZoneEventAt(h);m&&m.tooltipCallback&&m.tooltipCallback(h)},c.prototype._onMouseDown=function(h){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var m=this._findZoneEventAt(h);m!=null&&m.willLinkActivate(h)&&(h.preventDefault(),h.stopImmediatePropagation())}},c.prototype._onMouseLeave=function(h){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},c.prototype._onClick=function(h){var m=this._findZoneEventAt(h),E=this._getSelectionLength();m&&E===this._initialSelectionLength&&(m.clickCallback(h),h.preventDefault(),h.stopImmediatePropagation())},c.prototype._getSelectionLength=function(){var h=this._selectionService.selectionText;return h?h.length:0},c.prototype._findZoneEventAt=function(h){var m=this._mouseService.getCoords(h,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(m)for(var E=m[0],T=m[1],I=0;I<this._zones.length;I++){var R=this._zones[I];if(R.y1===R.y2){if(T===R.y1&&E>=R.x1&&E<R.x2)return R}else if(T===R.y1&&E>=R.x1||T===R.y2&&E<R.x2||T>R.y1&&T<R.y2)return R}},c=C([A(2,g.IBufferService),A(3,b.IMouseService),A(4,b.ISelectionService),A(5,g.IOptionsService)],c)}(u.Disposable);S.MouseZoneManager=y},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(c,h){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,E){m.__proto__=E}||function(m,E){for(var T in E)E.hasOwnProperty(T)&&(m[T]=E[T])})(c,h)},function(c,h){function m(){this.constructor=c}Z(c,h),c.prototype=h===null?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(S,"__esModule",{value:!0}),S.AccessibilityManager=void 0;var C=B(18),A=B(11),u=B(31),p=B(7),b=B(2),g=B(32),y=B(17),v=function(c){function h(m,E){var T=c.call(this)||this;T._terminal=m,T._renderService=E,T._liveRegionLineCount=0,T._charsToConsume=[],T._charsToAnnounce="",T._accessibilityTreeRoot=document.createElement("div"),T._accessibilityTreeRoot.classList.add("xterm-accessibility"),T._rowContainer=document.createElement("div"),T._rowContainer.classList.add("xterm-accessibility-tree"),T._rowContainer.setAttribute("role","list"),T._rowElements=[];for(var I=0;I<T._terminal.rows;I++)T._rowElements[I]=T._createAccessibilityTreeNode(),T._rowContainer.appendChild(T._rowElements[I]);if(T._topBoundaryFocusListener=function(R){return T._onBoundaryFocus(R,0)},T._bottomBoundaryFocusListener=function(R){return T._onBoundaryFocus(R,1)},T._rowElements[0].addEventListener("focus",T._topBoundaryFocusListener),T._rowElements[T._rowElements.length-1].addEventListener("focus",T._bottomBoundaryFocusListener),T._refreshRowsDimensions(),T._accessibilityTreeRoot.appendChild(T._rowContainer),T._renderRowsDebouncer=new u.RenderDebouncer(T._renderRows.bind(T)),T._refreshRows(),T._liveRegion=document.createElement("div"),T._liveRegion.classList.add("live-region"),T._liveRegion.setAttribute("aria-live","assertive"),T._accessibilityTreeRoot.appendChild(T._liveRegion),!T._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return T._terminal.element.insertAdjacentElement("afterbegin",T._accessibilityTreeRoot),T.register(T._renderRowsDebouncer),T.register(T._terminal.onResize(function(R){return T._onResize(R.rows)})),T.register(T._terminal.onRender(function(R){return T._refreshRows(R.start,R.end)})),T.register(T._terminal.onScroll(function(){return T._refreshRows()})),T.register(T._terminal.onA11yChar(function(R){return T._onChar(R)})),T.register(T._terminal.onLineFeed(function(){return T._onChar(`
`)})),T.register(T._terminal.onA11yTab(function(R){return T._onTab(R)})),T.register(T._terminal.onKey(function(R){return T._onKey(R.key)})),T.register(T._terminal.onBlur(function(){return T._clearLiveRegion()})),T.register(T._renderService.onDimensionsChange(function(){return T._refreshRowsDimensions()})),T._screenDprMonitor=new g.ScreenDprMonitor,T.register(T._screenDprMonitor),T._screenDprMonitor.setListener(function(){return T._refreshRowsDimensions()}),T.register(p.addDisposableDomListener(window,"resize",function(){return T._refreshRowsDimensions()})),T}return s(h,c),h.prototype.dispose=function(){c.prototype.dispose.call(this),y.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},h.prototype._onBoundaryFocus=function(m,E){var T=m.target,I=this._rowElements[E===0?1:this._rowElements.length-2];if(T.getAttribute("aria-posinset")!==(E===0?"1":""+this._terminal.buffer.lines.length)&&m.relatedTarget===I){var R,N;if(E===0?(R=T,N=this._rowElements.pop(),this._rowContainer.removeChild(N)):(R=this._rowElements.shift(),N=T,this._rowContainer.removeChild(R)),R.removeEventListener("focus",this._topBoundaryFocusListener),N.removeEventListener("focus",this._bottomBoundaryFocusListener),E===0){var k=this._createAccessibilityTreeNode();this._rowElements.unshift(k),this._rowContainer.insertAdjacentElement("afterbegin",k)}else k=this._createAccessibilityTreeNode(),this._rowElements.push(k),this._rowContainer.appendChild(k);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(E===0?-1:1),this._rowElements[E===0?1:this._rowElements.length-2].focus(),m.preventDefault(),m.stopImmediatePropagation()}},h.prototype._onResize=function(m){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var E=this._rowContainer.children.length;E<this._terminal.rows;E++)this._rowElements[E]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[E]);for(;this._rowElements.length>m;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},h.prototype._createAccessibilityTreeNode=function(){var m=document.createElement("div");return m.setAttribute("role","listitem"),m.tabIndex=-1,this._refreshRowDimensions(m),m},h.prototype._onTab=function(m){for(var E=0;E<m;E++)this._onChar(" ")},h.prototype._onChar=function(m){var E=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==m&&(this._charsToAnnounce+=m):this._charsToAnnounce+=m,m===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=C.tooMuchOutput)),A.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){E._accessibilityTreeRoot.appendChild(E._liveRegion)},0))},h.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,A.isMac&&y.removeElementFromParent(this._liveRegion)},h.prototype._onKey=function(m){this._clearLiveRegion(),this._charsToConsume.push(m)},h.prototype._refreshRows=function(m,E){this._renderRowsDebouncer.refresh(m,E,this._terminal.rows)},h.prototype._renderRows=function(m,E){for(var T=this._terminal.buffer,I=T.lines.length.toString(),R=m;R<=E;R++){var N=T.translateBufferLineToString(T.ydisp+R,!0),k=(T.ydisp+R+1).toString(),L=this._rowElements[R];L&&(N.length===0?L.innerHTML="&nbsp;":L.textContent=N,L.setAttribute("aria-posinset",k),L.setAttribute("aria-setsize",I))}this._announceCharacters()},h.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var m=0;m<this._terminal.rows;m++)this._refreshRowDimensions(this._rowElements[m])}},h.prototype._refreshRowDimensions=function(m){m.style.height=this._renderService.dimensions.actualCellHeight+"px"},h.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},h}(b.Disposable);S.AccessibilityManager=v},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(T,I){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,N){R.__proto__=N}||function(R,N){for(var k in N)N.hasOwnProperty(k)&&(R[k]=N[k])})(T,I)},function(T,I){function R(){this.constructor=T}Z(T,I),T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}),C=this&&this.__decorate||function(T,I,R,N){var k,L=arguments.length,H=L<3?I:N===null?N=Object.getOwnPropertyDescriptor(I,R):N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")H=Reflect.decorate(T,I,R,N);else for(var D=T.length-1;D>=0;D--)(k=T[D])&&(H=(L<3?k(H):L>3?k(I,R,H):k(I,R))||H);return L>3&&H&&Object.defineProperty(I,R,H),H},A=this&&this.__param||function(T,I){return function(R,N){I(R,N,T)}};Object.defineProperty(S,"__esModule",{value:!0}),S.DomRenderer=void 0;var u=B(58),p=B(9),b=B(2),g=B(5),y=B(1),v=B(0),c=B(10),h=B(17),m=1,E=function(T){function I(R,N,k,L,H,D,V,P,U){var G=T.call(this)||this;return G._colors=R,G._element=N,G._screenElement=k,G._viewportElement=L,G._linkifier=H,G._linkifier2=D,G._charSizeService=V,G._optionsService=P,G._bufferService=U,G._terminalClass=m++,G._rowElements=[],G._rowContainer=document.createElement("div"),G._rowContainer.classList.add("xterm-rows"),G._rowContainer.style.lineHeight="normal",G._rowContainer.setAttribute("aria-hidden","true"),G._refreshRowElements(G._bufferService.cols,G._bufferService.rows),G._selectionContainer=document.createElement("div"),G._selectionContainer.classList.add("xterm-selection"),G._selectionContainer.setAttribute("aria-hidden","true"),G.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},G._updateDimensions(),G._injectCss(),G._rowFactory=new u.DomRendererRowFactory(document,G._optionsService,G._colors),G._element.classList.add("xterm-dom-renderer-owner-"+G._terminalClass),G._screenElement.appendChild(G._rowContainer),G._screenElement.appendChild(G._selectionContainer),G._linkifier.onShowLinkUnderline(function(J){return G._onLinkHover(J)}),G._linkifier.onHideLinkUnderline(function(J){return G._onLinkLeave(J)}),G._linkifier2.onShowLinkUnderline(function(J){return G._onLinkHover(J)}),G._linkifier2.onHideLinkUnderline(function(J){return G._onLinkLeave(J)}),G}return s(I,T),Object.defineProperty(I.prototype,"onRequestRedraw",{get:function(){return new v.EventEmitter().event},enumerable:!1,configurable:!0}),I.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),h.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),T.prototype.dispose.call(this)},I.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 R=0,N=this._rowElements;R<N.length;R++){var k=N[R];k.style.width=this.dimensions.canvasWidth+"px",k.style.height=this.dimensions.actualCellHeight+"px",k.style.lineHeight=this.dimensions.actualCellHeight+"px",k.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var L=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=L,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},I.prototype.setColors=function(R){this._colors=R,this._injectCss()},I.prototype._injectCss=function(){var R=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var N=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";N+=this._terminalSelector+" span:not(."+u.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+u.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+u.ITALIC_CLASS+" { font-style: italic;}",N+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",N+="@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+"; }}",N+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+":not(."+u.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",N+=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(k,L){N+=R._terminalSelector+" .xterm-fg-"+L+" { color: "+k.css+"; }"+R._terminalSelector+" .xterm-bg-"+L+" { background-color: "+k.css+"; }"}),N+=this._terminalSelector+" .xterm-fg-"+p.INVERTED_DEFAULT_COLOR+" { color: "+c.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+p.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=N},I.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},I.prototype._refreshRowElements=function(R,N){for(var k=this._rowElements.length;k<=N;k++){var L=document.createElement("div");this._rowContainer.appendChild(L),this._rowElements.push(L)}for(;this._rowElements.length>N;)this._rowContainer.removeChild(this._rowElements.pop())},I.prototype.onResize=function(R,N){this._refreshRowElements(R,N),this._updateDimensions()},I.prototype.onCharSizeChanged=function(){this._updateDimensions()},I.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},I.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},I.prototype.onSelectionChanged=function(R,N,k){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(R&&N){var L=R[1]-this._bufferService.buffer.ydisp,H=N[1]-this._bufferService.buffer.ydisp,D=Math.max(L,0),V=Math.min(H,this._bufferService.rows-1);if(!(D>=this._bufferService.rows||V<0)){var P=document.createDocumentFragment();if(k)P.appendChild(this._createSelectionElement(D,R[0],N[0],V-D+1));else{var U=L===D?R[0]:0,G=D===V?N[0]:this._bufferService.cols;P.appendChild(this._createSelectionElement(D,U,G));var J=V-D-1;if(P.appendChild(this._createSelectionElement(D+1,0,this._bufferService.cols,J)),D!==V){var ee=H===V?N[0]:this._bufferService.cols;P.appendChild(this._createSelectionElement(V,0,ee))}}this._selectionContainer.appendChild(P)}}},I.prototype._createSelectionElement=function(R,N,k,L){L===void 0&&(L=1);var H=document.createElement("div");return H.style.height=L*this.dimensions.actualCellHeight+"px",H.style.top=R*this.dimensions.actualCellHeight+"px",H.style.left=N*this.dimensions.actualCellWidth+"px",H.style.width=this.dimensions.actualCellWidth*(k-N)+"px",H},I.prototype.onCursorMove=function(){},I.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},I.prototype.clear=function(){for(var R=0,N=this._rowElements;R<N.length;R++)N[R].innerHTML=""},I.prototype.renderRows=function(R,N){for(var k=this._bufferService.buffer.ybase+this._bufferService.buffer.y,L=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),H=this._optionsService.options.cursorBlink,D=R;D<=N;D++){var V=this._rowElements[D];V.innerHTML="";var P=D+this._bufferService.buffer.ydisp,U=this._bufferService.buffer.lines.get(P),G=this._optionsService.options.cursorStyle;V.appendChild(this._rowFactory.createRow(U,P===k,G,L,H,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(I.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),I.prototype.registerCharacterJoiner=function(R){return-1},I.prototype.deregisterCharacterJoiner=function(R){return!1},I.prototype._onLinkHover=function(R){this._setCellUnderline(R.x1,R.x2,R.y1,R.y2,R.cols,!0)},I.prototype._onLinkLeave=function(R){this._setCellUnderline(R.x1,R.x2,R.y1,R.y2,R.cols,!1)},I.prototype._setCellUnderline=function(R,N,k,L,H,D){for(;R!==N||k!==L;){var V=this._rowElements[k];if(!V)return;var P=V.children[R];P&&(P.style.textDecoration=D?"underline":"none"),++R>=H&&(R=0,k++)}},I=C([A(6,g.ICharSizeService),A(7,y.IOptionsService),A(8,y.IBufferService)],I)}(b.Disposable);S.DomRenderer=E},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.DomRendererRowFactory=S.CURSOR_STYLE_UNDERLINE_CLASS=S.CURSOR_STYLE_BAR_CLASS=S.CURSOR_STYLE_BLOCK_CLASS=S.CURSOR_BLINK_CLASS=S.CURSOR_CLASS=S.UNDERLINE_CLASS=S.ITALIC_CLASS=S.DIM_CLASS=S.BOLD_CLASS=void 0;var Z=B(9),s=B(3),C=B(4),A=B(10);S.BOLD_CLASS="xterm-bold",S.DIM_CLASS="xterm-dim",S.ITALIC_CLASS="xterm-italic",S.UNDERLINE_CLASS="xterm-underline",S.CURSOR_CLASS="xterm-cursor",S.CURSOR_BLINK_CLASS="xterm-cursor-blink",S.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",S.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",S.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var u=function(){function b(g,y,v){this._document=g,this._optionsService=y,this._colors=v,this._workCell=new C.CellData}return b.prototype.setColors=function(g){this._colors=g},b.prototype.createRow=function(g,y,v,c,h,m,E){for(var T=this._document.createDocumentFragment(),I=0,R=Math.min(g.length,E)-1;R>=0;R--)if(g.loadCell(R,this._workCell).getCode()!==s.NULL_CELL_CODE||y&&R===c){I=R+1;break}for(R=0;R<I;R++){g.loadCell(R,this._workCell);var N=this._workCell.getWidth();if(N!==0){var k=this._document.createElement("span");if(N>1&&(k.style.width=m*N+"px"),y&&R===c)switch(k.classList.add(S.CURSOR_CLASS),h&&k.classList.add(S.CURSOR_BLINK_CLASS),v){case"bar":k.classList.add(S.CURSOR_STYLE_BAR_CLASS);break;case"underline":k.classList.add(S.CURSOR_STYLE_UNDERLINE_CLASS);break;default:k.classList.add(S.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&k.classList.add(S.BOLD_CLASS),this._workCell.isItalic()&&k.classList.add(S.ITALIC_CLASS),this._workCell.isDim()&&k.classList.add(S.DIM_CLASS),this._workCell.isUnderline()&&k.classList.add(S.UNDERLINE_CLASS),this._workCell.isInvisible()?k.textContent=s.WHITESPACE_CELL_CHAR:k.textContent=this._workCell.getChars()||s.WHITESPACE_CELL_CHAR;var L=this._workCell.getFgColor(),H=this._workCell.getFgColorMode(),D=this._workCell.getBgColor(),V=this._workCell.getBgColorMode(),P=!!this._workCell.isInverse();if(P){var U=L;L=D,D=U;var G=H;H=V,V=G}switch(H){case 16777216:case 33554432:this._workCell.isBold()&&L<8&&this._optionsService.options.drawBoldTextInBrightColors&&(L+=8),this._applyMinimumContrast(k,this._colors.background,this._colors.ansi[L])||k.classList.add("xterm-fg-"+L);break;case 50331648:var J=A.rgba.toColor(L>>16&255,L>>8&255,255&L);this._applyMinimumContrast(k,this._colors.background,J)||this._addStyle(k,"color:#"+p(L.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(k,this._colors.background,this._colors.foreground)||P&&k.classList.add("xterm-fg-"+Z.INVERTED_DEFAULT_COLOR)}switch(V){case 16777216:case 33554432:k.classList.add("xterm-bg-"+D);break;case 50331648:this._addStyle(k,"background-color:#"+p(D.toString(16),"0",6));break;case 0:default:P&&k.classList.add("xterm-bg-"+Z.INVERTED_DEFAULT_COLOR)}T.appendChild(k)}}return T},b.prototype._applyMinimumContrast=function(g,y,v){if(this._optionsService.options.minimumContrastRatio===1)return!1;var c=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return c===void 0&&(c=A.color.ensureContrastRatio(y,v,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,c!=null?c:null)),!!c&&(this._addStyle(g,"color:"+c.css),!0)},b.prototype._addStyle=function(g,y){g.setAttribute("style",""+(g.getAttribute("style")||"")+y+";")},b}();function p(b,g,y){for(;b.length<y;)b=g+b;return b}S.DomRendererRowFactory=u},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.evaluateKeyboardEvent=void 0;var Z=B(12),s={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:["'",'"']};S.evaluateKeyboardEvent=function(C,A,u,p){var b={type:0,cancel:!1,key:void 0},g=(C.shiftKey?1:0)|(C.altKey?2:0)|(C.ctrlKey?4:0)|(C.metaKey?8:0);switch(C.keyCode){case 0:C.key==="UIKeyInputUpArrow"?b.key=A?Z.C0.ESC+"OA":Z.C0.ESC+"[A":C.key==="UIKeyInputLeftArrow"?b.key=A?Z.C0.ESC+"OD":Z.C0.ESC+"[D":C.key==="UIKeyInputRightArrow"?b.key=A?Z.C0.ESC+"OC":Z.C0.ESC+"[C":C.key==="UIKeyInputDownArrow"&&(b.key=A?Z.C0.ESC+"OB":Z.C0.ESC+"[B");break;case 8:if(C.shiftKey){b.key=Z.C0.BS;break}if(C.altKey){b.key=Z.C0.ESC+Z.C0.DEL;break}b.key=Z.C0.DEL;break;case 9:if(C.shiftKey){b.key=Z.C0.ESC+"[Z";break}b.key=Z.C0.HT,b.cancel=!0;break;case 13:b.key=C.altKey?Z.C0.ESC+Z.C0.CR:Z.C0.CR,b.cancel=!0;break;case 27:b.key=Z.C0.ESC,C.altKey&&(b.key=Z.C0.ESC+Z.C0.ESC),b.cancel=!0;break;case 37:if(C.metaKey)break;g?(b.key=Z.C0.ESC+"[1;"+(g+1)+"D",b.key===Z.C0.ESC+"[1;3D"&&(b.key=Z.C0.ESC+(u?"b":"[1;5D"))):b.key=A?Z.C0.ESC+"OD":Z.C0.ESC+"[D";break;case 39:if(C.metaKey)break;g?(b.key=Z.C0.ESC+"[1;"+(g+1)+"C",b.key===Z.C0.ESC+"[1;3C"&&(b.key=Z.C0.ESC+(u?"f":"[1;5C"))):b.key=A?Z.C0.ESC+"OC":Z.C0.ESC+"[C";break;case 38:if(C.metaKey)break;g?(b.key=Z.C0.ESC+"[1;"+(g+1)+"A",u||b.key!==Z.C0.ESC+"[1;3A"||(b.key=Z.C0.ESC+"[1;5A")):b.key=A?Z.C0.ESC+"OA":Z.C0.ESC+"[A";break;case 40:if(C.metaKey)break;g?(b.key=Z.C0.ESC+"[1;"+(g+1)+"B",u||b.key!==Z.C0.ESC+"[1;3B"||(b.key=Z.C0.ESC+"[1;5B")):b.key=A?Z.C0.ESC+"OB":Z.C0.ESC+"[B";break;case 45:C.shiftKey||C.ctrlKey||(b.key=Z.C0.ESC+"[2~");break;case 46:b.key=g?Z.C0.ESC+"[3;"+(g+1)+"~":Z.C0.ESC+"[3~";break;case 36:b.key=g?Z.C0.ESC+"[1;"+(g+1)+"H":A?Z.C0.ESC+"OH":Z.C0.ESC+"[H";break;case 35:b.key=g?Z.C0.ESC+"[1;"+(g+1)+"F":A?Z.C0.ESC+"OF":Z.C0.ESC+"[F";break;case 33:C.shiftKey?b.type=2:b.key=Z.C0.ESC+"[5~";break;case 34:C.shiftKey?b.type=3:b.key=Z.C0.ESC+"[6~";break;case 112:b.key=g?Z.C0.ESC+"[1;"+(g+1)+"P":Z.C0.ESC+"OP";break;case 113:b.key=g?Z.C0.ESC+"[1;"+(g+1)+"Q":Z.C0.ESC+"OQ";break;case 114:b.key=g?Z.C0.ESC+"[1;"+(g+1)+"R":Z.C0.ESC+"OR";break;case 115:b.key=g?Z.C0.ESC+"[1;"+(g+1)+"S":Z.C0.ESC+"OS";break;case 116:b.key=g?Z.C0.ESC+"[15;"+(g+1)+"~":Z.C0.ESC+"[15~";break;case 117:b.key=g?Z.C0.ESC+"[17;"+(g+1)+"~":Z.C0.ESC+"[17~";break;case 118:b.key=g?Z.C0.ESC+"[18;"+(g+1)+"~":Z.C0.ESC+"[18~";break;case 119:b.key=g?Z.C0.ESC+"[19;"+(g+1)+"~":Z.C0.ESC+"[19~";break;case 120:b.key=g?Z.C0.ESC+"[20;"+(g+1)+"~":Z.C0.ESC+"[20~";break;case 121:b.key=g?Z.C0.ESC+"[21;"+(g+1)+"~":Z.C0.ESC+"[21~";break;case 122:b.key=g?Z.C0.ESC+"[23;"+(g+1)+"~":Z.C0.ESC+"[23~";break;case 123:b.key=g?Z.C0.ESC+"[24;"+(g+1)+"~":Z.C0.ESC+"[24~";break;default:if(!C.ctrlKey||C.shiftKey||C.altKey||C.metaKey)if(u&&!p||!C.altKey||C.metaKey)u&&!C.altKey&&!C.ctrlKey&&C.metaKey?C.keyCode===65&&(b.type=1):C.key&&!C.ctrlKey&&!C.altKey&&!C.metaKey&&C.keyCode>=48&&C.key.length===1?b.key=C.key:C.key&&C.ctrlKey&&C.key==="_"&&(b.key=Z.C0.US);else{var y=s[C.keyCode],v=y&&y[C.shiftKey?1:0];if(v)b.key=Z.C0.ESC+v;else if(C.keyCode>=65&&C.keyCode<=90){var c=C.ctrlKey?C.keyCode-64:C.keyCode+32;b.key=Z.C0.ESC+String.fromCharCode(c)}}else C.keyCode>=65&&C.keyCode<=90?b.key=String.fromCharCode(C.keyCode-64):C.keyCode===32?b.key=Z.C0.NUL:C.keyCode>=51&&C.keyCode<=55?b.key=String.fromCharCode(C.keyCode-51+27):C.keyCode===56?b.key=Z.C0.DEL:C.keyCode===219?b.key=Z.C0.ESC:C.keyCode===220?b.key=Z.C0.FS:C.keyCode===221&&(b.key=Z.C0.GS)}return b}},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(m,E){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,I){T.__proto__=I}||function(T,I){for(var R in I)I.hasOwnProperty(R)&&(T[R]=I[R])})(m,E)},function(m,E){function T(){this.constructor=m}Z(m,E),m.prototype=E===null?Object.create(E):(T.prototype=E.prototype,new T)}),C=this&&this.__decorate||function(m,E,T,I){var R,N=arguments.length,k=N<3?E:I===null?I=Object.getOwnPropertyDescriptor(E,T):I;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(m,E,T,I);else for(var L=m.length-1;L>=0;L--)(R=m[L])&&(k=(N<3?R(k):N>3?R(E,T,k):R(E,T))||k);return N>3&&k&&Object.defineProperty(E,T,k),k},A=this&&this.__param||function(m,E){return function(T,I){E(T,I,m)}};Object.defineProperty(S,"__esModule",{value:!0}),S.RenderService=void 0;var u=B(31),p=B(0),b=B(2),g=B(32),y=B(7),v=B(1),c=B(5),h=function(m){function E(T,I,R,N,k,L){var H=m.call(this)||this;if(H._renderer=T,H._rowCount=I,H._isPaused=!1,H._needsFullRefresh=!1,H._isNextRenderRedrawOnly=!0,H._needsSelectionRefresh=!1,H._canvasWidth=0,H._canvasHeight=0,H._selectionState={start:void 0,end:void 0,columnSelectMode:!1},H._onDimensionsChange=new p.EventEmitter,H._onRender=new p.EventEmitter,H._onRefreshRequest=new p.EventEmitter,H.register({dispose:function(){return H._renderer.dispose()}}),H._renderDebouncer=new u.RenderDebouncer(function(V,P){return H._renderRows(V,P)}),H.register(H._renderDebouncer),H._screenDprMonitor=new g.ScreenDprMonitor,H._screenDprMonitor.setListener(function(){return H.onDevicePixelRatioChange()}),H.register(H._screenDprMonitor),H.register(L.onResize(function(V){return H._fullRefresh()})),H.register(N.onOptionChange(function(){return H._renderer.onOptionsChanged()})),H.register(k.onCharSizeChange(function(){return H.onCharSizeChanged()})),H._renderer.onRequestRedraw(function(V){return H.refreshRows(V.start,V.end,!0)}),H.register(y.addDisposableDomListener(window,"resize",function(){return H.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var D=new IntersectionObserver(function(V){return H._onIntersectionChange(V[V.length-1])},{threshold:0});D.observe(R),H.register({dispose:function(){return D.disconnect()}})}return H}return s(E,m),Object.defineProperty(E.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),E.prototype._onIntersectionChange=function(T){this._isPaused=T.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},E.prototype.refreshRows=function(T,I,R){R===void 0&&(R=!1),this._isPaused?this._needsFullRefresh=!0:(R||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(T,I,this._rowCount))},E.prototype._renderRows=function(T,I){this._renderer.renderRows(T,I),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:T,end:I}),this._isNextRenderRedrawOnly=!0},E.prototype.resize=function(T,I){this._rowCount=I,this._fireOnCanvasResize()},E.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},E.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},E.prototype.dispose=function(){m.prototype.dispose.call(this)},E.prototype.setRenderer=function(T){var I=this;this._renderer.dispose(),this._renderer=T,this._renderer.onRequestRedraw(function(R){return I.refreshRows(R.start,R.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},E.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},E.prototype.setColors=function(T){this._renderer.setColors(T),this._fullRefresh()},E.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},E.prototype.onResize=function(T,I){this._renderer.onResize(T,I),this._fullRefresh()},E.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},E.prototype.onBlur=function(){this._renderer.onBlur()},E.prototype.onFocus=function(){this._renderer.onFocus()},E.prototype.onSelectionChanged=function(T,I,R){this._selectionState.start=T,this._selectionState.end=I,this._selectionState.columnSelectMode=R,this._renderer.onSelectionChanged(T,I,R)},E.prototype.onCursorMove=function(){this._renderer.onCursorMove()},E.prototype.clear=function(){this._renderer.clear()},E.prototype.registerCharacterJoiner=function(T){return this._renderer.registerCharacterJoiner(T)},E.prototype.deregisterCharacterJoiner=function(T){return this._renderer.deregisterCharacterJoiner(T)},E=C([A(3,v.IOptionsService),A(4,c.ICharSizeService),A(5,v.IBufferService)],E)}(b.Disposable);S.RenderService=h},function(Q,S,B){"use strict";var Z=this&&this.__decorate||function(b,g,y,v){var c,h=arguments.length,m=h<3?g:v===null?v=Object.getOwnPropertyDescriptor(g,y):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(b,g,y,v);else for(var E=b.length-1;E>=0;E--)(c=b[E])&&(m=(h<3?c(m):h>3?c(g,y,m):c(g,y))||m);return h>3&&m&&Object.defineProperty(g,y,m),m},s=this&&this.__param||function(b,g){return function(y,v){g(y,v,b)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CharSizeService=void 0;var C=B(1),A=B(0),u=function(){function b(g,y,v){this._optionsService=v,this.width=0,this.height=0,this._onCharSizeChange=new A.EventEmitter,this._measureStrategy=new p(g,y,this._optionsService)}return Object.defineProperty(b.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),b.prototype.measure=function(){var g=this._measureStrategy.measure();g.width===this.width&&g.height===this.height||(this.width=g.width,this.height=g.height,this._onCharSizeChange.fire())},b=Z([s(2,C.IOptionsService)],b)}();S.CharSizeService=u;var p=function(){function b(g,y,v){this._document=g,this._parentElement=y,this._optionsService=v,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 b.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var g=this._measureElement.getBoundingClientRect();return g.width!==0&&g.height!==0&&(this._result.width=g.width,this._result.height=Math.ceil(g.height)),this._result},b}()},function(Q,S,B){"use strict";var Z=this&&this.__decorate||function(p,b,g,y){var v,c=arguments.length,h=c<3?b:y===null?y=Object.getOwnPropertyDescriptor(b,g):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(p,b,g,y);else for(var m=p.length-1;m>=0;m--)(v=p[m])&&(h=(c<3?v(h):c>3?v(b,g,h):v(b,g))||h);return c>3&&h&&Object.defineProperty(b,g,h),h},s=this&&this.__param||function(p,b){return function(g,y){b(g,y,p)}};Object.defineProperty(S,"__esModule",{value:!0}),S.MouseService=void 0;var C=B(5),A=B(30),u=function(){function p(b,g){this._renderService=b,this._charSizeService=g}return p.prototype.getCoords=function(b,g,y,v,c){return A.getCoords(b,g,y,v,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,c)},p.prototype.getRawByteCoords=function(b,g,y,v){var c=this.getCoords(b,g,y,v);return A.getRawByteCoords(c)},p=Z([s(0,C.IRenderService),s(1,C.ICharSizeService)],p)}();S.MouseService=u},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(v,c){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var E in m)m.hasOwnProperty(E)&&(h[E]=m[E])})(v,c)},function(v,c){function h(){this.constructor=v}Z(v,c),v.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),C=this&&this.__decorate||function(v,c,h,m){var E,T=arguments.length,I=T<3?c:m===null?m=Object.getOwnPropertyDescriptor(c,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(v,c,h,m);else for(var R=v.length-1;R>=0;R--)(E=v[R])&&(I=(T<3?E(I):T>3?E(c,h,I):E(c,h))||I);return T>3&&I&&Object.defineProperty(c,h,I),I},A=this&&this.__param||function(v,c){return function(h,m){c(h,m,v)}};Object.defineProperty(S,"__esModule",{value:!0}),S.Linkifier2=void 0;var u=B(1),p=B(0),b=B(2),g=B(7),y=function(v){function c(h){var m=v.call(this)||this;return m._bufferService=h,m._linkProviders=[],m._linkCacheDisposables=[],m._isMouseOut=!0,m._activeLine=-1,m._onShowLinkUnderline=m.register(new p.EventEmitter),m._onHideLinkUnderline=m.register(new p.EventEmitter),m.register(b.getDisposeArrayDisposable(m._linkCacheDisposables)),m}return s(c,v),Object.defineProperty(c.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),c.prototype.registerLinkProvider=function(h){var m=this;return this._linkProviders.push(h),{dispose:function(){var E=m._linkProviders.indexOf(h);E!==-1&&m._linkProviders.splice(E,1)}}},c.prototype.attachToDom=function(h,m,E){var T=this;this._element=h,this._mouseService=m,this._renderService=E,this.register(g.addDisposableDomListener(this._element,"mouseleave",function(){T._isMouseOut=!0,T._clearCurrentLink()})),this.register(g.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(g.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},c.prototype._onMouseMove=function(h){if(this._lastMouseEvent=h,this._element&&this._mouseService){var m=this._positionFromMouseEvent(h,this._element,this._mouseService);if(m){this._isMouseOut=!1;for(var E=h.composedPath(),T=0;T<E.length;T++){var I=E[T];if(I.classList.contains("xterm"))break;if(I.classList.contains("xterm-hover"))return}this._lastBufferCell&&m.x===this._lastBufferCell.x&&m.y===this._lastBufferCell.y||(this._onHover(m),this._lastBufferCell=m)}}},c.prototype._onHover=function(h){if(this._activeLine!==h.y)return this._clearCurrentLink(),void this._askForLink(h,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,h)||(this._clearCurrentLink(),this._askForLink(h,!0))},c.prototype._askForLink=function(h,m){var E=this;this._activeProviderReplies&&m||(this._activeProviderReplies=new Map,this._activeLine=h.y);var T=!1;this._linkProviders.forEach(function(I,R){var N;m?!((N=E._activeProviderReplies)===null||N===void 0)&&N.get(R)&&(T=E._checkLinkProviderResult(R,h,T)):I.provideLinks(h.y,function(k){var L,H;if(!E._isMouseOut){var D=k==null?void 0:k.map(function(V){return{link:V}});(L=E._activeProviderReplies)===null||L===void 0||L.set(R,D),T=E._checkLinkProviderResult(R,h,T),((H=E._activeProviderReplies)===null||H===void 0?void 0:H.size)===E._linkProviders.length&&E._removeIntersectingLinks(h.y,E._activeProviderReplies)}})})},c.prototype._removeIntersectingLinks=function(h,m){for(var E=new Set,T=0;T<m.size;T++){var I=m.get(T);if(I)for(var R=0;R<I.length;R++)for(var N=I[R],k=N.link.range.start.y<h?0:N.link.range.start.x,L=N.link.range.end.y>h?this._bufferService.cols:N.link.range.end.x,H=k;H<=L;H++){if(E.has(H)){I.splice(R--,1);break}E.add(H)}}},c.prototype._checkLinkProviderResult=function(h,m,E){var T,I=this;if(!this._activeProviderReplies)return E;for(var R=this._activeProviderReplies.get(h),N=!1,k=0;k<h;k++)this._activeProviderReplies.has(k)&&!this._activeProviderReplies.get(k)||(N=!0);if(!N&&R){var L=R.find(function(D){return I._linkAtPosition(D.link,m)});L&&(E=!0,this._handleNewLink(L))}if(this._activeProviderReplies.size===this._linkProviders.length&&!E)for(k=0;k<this._activeProviderReplies.size;k++){var H=(T=this._activeProviderReplies.get(k))===null||T===void 0?void 0:T.find(function(D){return I._linkAtPosition(D.link,m)});if(H){E=!0,this._handleNewLink(H);break}}return E},c.prototype._onClick=function(h){if(this._element&&this._mouseService&&this._currentLink){var m=this._positionFromMouseEvent(h,this._element,this._mouseService);m&&this._linkAtPosition(this._currentLink.link,m)&&this._currentLink.link.activate(h,this._currentLink.link.text)}},c.prototype._clearCurrentLink=function(h,m){this._element&&this._currentLink&&this._lastMouseEvent&&(!h||!m||this._currentLink.link.range.start.y>=h&&this._currentLink.link.range.end.y<=m)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,b.disposeArray(this._linkCacheDisposables))},c.prototype._handleNewLink=function(h){var m=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var E=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);E&&this._linkAtPosition(h.link,E)&&(this._currentLink=h,this._currentLink.state={decorations:{underline:h.link.decorations===void 0||h.link.decorations.underline,pointerCursor:h.link.decorations===void 0||h.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,h.link,this._lastMouseEvent),h.link.decorations={},Object.defineProperties(h.link.decorations,{pointerCursor:{get:function(){var T,I;return(I=(T=m._currentLink)===null||T===void 0?void 0:T.state)===null||I===void 0?void 0:I.decorations.pointerCursor},set:function(T){var I,R;!((I=m._currentLink)===null||I===void 0)&&I.state&&m._currentLink.state.decorations.pointerCursor!==T&&(m._currentLink.state.decorations.pointerCursor=T,m._currentLink.state.isHovered&&((R=m._element)===null||R===void 0||R.classList.toggle("xterm-cursor-pointer",T)))}},underline:{get:function(){var T,I;return(I=(T=m._currentLink)===null||T===void 0?void 0:T.state)===null||I===void 0?void 0:I.decorations.underline},set:function(T){var I,R,N;!((I=m._currentLink)===null||I===void 0)&&I.state&&((N=(R=m._currentLink)===null||R===void 0?void 0:R.state)===null||N===void 0?void 0:N.decorations.underline)!==T&&(m._currentLink.state.decorations.underline=T,m._currentLink.state.isHovered&&m._fireUnderlineEvent(h.link,T))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(T){var I=T.start===0?0:T.start+1+m._bufferService.buffer.ydisp;m._clearCurrentLink(I,T.end+1+m._bufferService.buffer.ydisp)})))}},c.prototype._linkHover=function(h,m,E){var T;!((T=this._currentLink)===null||T===void 0)&&T.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(m,!0),this._currentLink.state.decorations.pointerCursor&&h.classList.add("xterm-cursor-pointer")),m.hover&&m.hover(E,m.text)},c.prototype._fireUnderlineEvent=function(h,m){var E=h.range,T=this._bufferService.buffer.ydisp,I=this._createLinkUnderlineEvent(E.start.x-1,E.start.y-T-1,E.end.x,E.end.y-T-1,void 0);(m?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(I)},c.prototype._linkLeave=function(h,m,E){var T;!((T=this._currentLink)===null||T===void 0)&&T.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(m,!1),this._currentLink.state.decorations.pointerCursor&&h.classList.remove("xterm-cursor-pointer")),m.leave&&m.leave(E,m.text)},c.prototype._linkAtPosition=function(h,m){var E=h.range.start.y===h.range.end.y,T=h.range.start.y<m.y,I=h.range.end.y>m.y;return(E&&h.range.start.x<=m.x&&h.range.end.x>=m.x||T&&h.range.end.x>=m.x||I&&h.range.start.x<=m.x||T&&I)&&h.range.start.y<=m.y&&h.range.end.y>=m.y},c.prototype._positionFromMouseEvent=function(h,m,E){var T=E.getCoords(h,m,this._bufferService.cols,this._bufferService.rows);if(T)return{x:T[0],y:T[1]+this._bufferService.buffer.ydisp}},c.prototype._createLinkUnderlineEvent=function(h,m,E,T,I){return{x1:h,y1:m,x2:E,y2:T,cols:this._bufferService.cols,fg:I}},c=C([A(0,u.IBufferService)],c)}(b.Disposable);S.Linkifier2=y},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.CoreBrowserService=void 0;var Z=function(){function s(C){this._textarea=C}return Object.defineProperty(s.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),s}();S.CoreBrowserService=Z},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(k,L){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,D){H.__proto__=D}||function(H,D){for(var V in D)D.hasOwnProperty(V)&&(H[V]=D[V])})(k,L)},function(k,L){function H(){this.constructor=k}Z(k,L),k.prototype=L===null?Object.create(L):(H.prototype=L.prototype,new H)});Object.defineProperty(S,"__esModule",{value:!0}),S.CoreTerminal=void 0;var C=B(2),A=B(1),u=B(66),p=B(67),b=B(68),g=B(74),y=B(75),v=B(0),c=B(76),h=B(77),m=B(78),E=B(80),T=B(81),I=B(19),R=B(82),N=function(k){function L(H){var D=k.call(this)||this;return D._onBinary=new v.EventEmitter,D._onData=new v.EventEmitter,D._onLineFeed=new v.EventEmitter,D._onResize=new v.EventEmitter,D._onScroll=new v.EventEmitter,D._instantiationService=new u.InstantiationService,D.optionsService=new g.OptionsService(H),D._instantiationService.setService(A.IOptionsService,D.optionsService),D._bufferService=D.register(D._instantiationService.createInstance(b.BufferService)),D._instantiationService.setService(A.IBufferService,D._bufferService),D._logService=D._instantiationService.createInstance(p.LogService),D._instantiationService.setService(A.ILogService,D._logService),D._coreService=D.register(D._instantiationService.createInstance(y.CoreService,function(){return D.scrollToBottom()})),D._instantiationService.setService(A.ICoreService,D._coreService),D._coreMouseService=D._instantiationService.createInstance(c.CoreMouseService),D._instantiationService.setService(A.ICoreMouseService,D._coreMouseService),D._dirtyRowService=D._instantiationService.createInstance(h.DirtyRowService),D._instantiationService.setService(A.IDirtyRowService,D._dirtyRowService),D.unicodeService=D._instantiationService.createInstance(m.UnicodeService),D._instantiationService.setService(A.IUnicodeService,D.unicodeService),D._charsetService=D._instantiationService.createInstance(E.CharsetService),D._instantiationService.setService(A.ICharsetService,D._charsetService),D._inputHandler=new I.InputHandler(D._bufferService,D._charsetService,D._coreService,D._dirtyRowService,D._logService,D.optionsService,D._coreMouseService,D.unicodeService),D.register(v.forwardEvent(D._inputHandler.onLineFeed,D._onLineFeed)),D.register(D._inputHandler),D.register(v.forwardEvent(D._bufferService.onResize,D._onResize)),D.register(v.forwardEvent(D._coreService.onData,D._onData)),D.register(v.forwardEvent(D._coreService.onBinary,D._onBinary)),D.register(D.optionsService.onOptionChange(function(V){return D._updateOptions(V)})),D._writeBuffer=new R.WriteBuffer(function(V){return D._inputHandler.parse(V)}),D}return s(L,k),Object.defineProperty(L.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),L.prototype.dispose=function(){var H;this._isDisposed||(k.prototype.dispose.call(this),(H=this._windowsMode)===null||H===void 0||H.dispose(),this._windowsMode=void 0)},L.prototype.write=function(H,D){this._writeBuffer.write(H,D)},L.prototype.writeSync=function(H){this._writeBuffer.writeSync(H)},L.prototype.resize=function(H,D){isNaN(H)||isNaN(D)||(H=Math.max(H,b.MINIMUM_COLS),D=Math.max(D,b.MINIMUM_ROWS),this._bufferService.resize(H,D))},L.prototype.scroll=function(H,D){D===void 0&&(D=!1);var V,P=this._bufferService.buffer;(V=this._cachedBlankLine)&&V.length===this.cols&&V.getFg(0)===H.fg&&V.getBg(0)===H.bg||(V=P.getBlankLine(H,D),this._cachedBlankLine=V),V.isWrapped=D;var U=P.ybase+P.scrollTop,G=P.ybase+P.scrollBottom;if(P.scrollTop===0){var J=P.lines.isFull;G===P.lines.length-1?J?P.lines.recycle().copyFrom(V):P.lines.push(V.clone()):P.lines.splice(G+1,0,V.clone()),J?this._bufferService.isUserScrolling&&(P.ydisp=Math.max(P.ydisp-1,0)):(P.ybase++,this._bufferService.isUserScrolling||P.ydisp++)}else{var ee=G-U+1;P.lines.shiftElements(U+1,ee-1,-1),P.lines.set(G,V.clone())}this._bufferService.isUserScrolling||(P.ydisp=P.ybase),this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom),this._onScroll.fire(P.ydisp)},L.prototype.scrollLines=function(H,D){var V=this._bufferService.buffer;if(H<0){if(V.ydisp===0)return;this._bufferService.isUserScrolling=!0}else H+V.ydisp>=V.ybase&&(this._bufferService.isUserScrolling=!1);var P=V.ydisp;V.ydisp=Math.max(Math.min(V.ydisp+H,V.ybase),0),P!==V.ydisp&&(D||this._onScroll.fire(V.ydisp))},L.prototype.scrollPages=function(H){this.scrollLines(H*(this.rows-1))},L.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},L.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},L.prototype.scrollToLine=function(H){var D=H-this._bufferService.buffer.ydisp;D!==0&&this.scrollLines(D)},L.prototype.addEscHandler=function(H,D){return this._inputHandler.addEscHandler(H,D)},L.prototype.addDcsHandler=function(H,D){return this._inputHandler.addDcsHandler(H,D)},L.prototype.addCsiHandler=function(H,D){return this._inputHandler.addCsiHandler(H,D)},L.prototype.addOscHandler=function(H,D){return this._inputHandler.addOscHandler(H,D)},L.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},L.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},L.prototype._updateOptions=function(H){var D;switch(H){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((D=this._windowsMode)===null||D===void 0||D.dispose(),this._windowsMode=void 0)}},L.prototype._enableWindowsMode=function(){var H=this;if(!this._windowsMode){var D=[];D.push(this.onLineFeed(T.updateWindowsModeWrappedState.bind(null,this._bufferService))),D.push(this.addCsiHandler({final:"H"},function(){return T.updateWindowsModeWrappedState(H._bufferService),!1})),this._windowsMode={dispose:function(){for(var V=0,P=D;V<P.length;V++)P[V].dispose()}}}},L}(C.Disposable);S.CoreTerminal=N},function(Q,S,B){"use strict";var Z=this&&this.__spreadArrays||function(){for(var p=0,b=0,g=arguments.length;b<g;b++)p+=arguments[b].length;var y=Array(p),v=0;for(b=0;b<g;b++)for(var c=arguments[b],h=0,m=c.length;h<m;h++,v++)y[v]=c[h];return y};Object.defineProperty(S,"__esModule",{value:!0}),S.InstantiationService=S.ServiceCollection=void 0;var s=B(1),C=B(14),A=function(){function p(){for(var b=[],g=0;g<arguments.length;g++)b[g]=arguments[g];this._entries=new Map;for(var y=0,v=b;y<v.length;y++){var c=v[y],h=c[0],m=c[1];this.set(h,m)}}return p.prototype.set=function(b,g){var y=this._entries.get(b);return this._entries.set(b,g),y},p.prototype.forEach=function(b){this._entries.forEach(function(g,y){return b(y,g)})},p.prototype.has=function(b){return this._entries.has(b)},p.prototype.get=function(b){return this._entries.get(b)},p}();S.ServiceCollection=A;var u=function(){function p(){this._services=new A,this._services.set(s.IInstantiationService,this)}return p.prototype.setService=function(b,g){this._services.set(b,g)},p.prototype.getService=function(b){return this._services.get(b)},p.prototype.createInstance=function(b){for(var g=[],y=1;y<arguments.length;y++)g[y-1]=arguments[y];for(var v=C.getServiceDependencies(b).sort(function(R,N){return R.index-N.index}),c=[],h=0,m=v;h<m.length;h++){var E=m[h],T=this._services.get(E.id);if(!T)throw new Error("[createInstance] "+b.name+" depends on UNKNOWN service "+E.id+".");c.push(T)}var I=v.length>0?v[0].index:g.length;if(g.length!==I)throw new Error("[createInstance] First service dependency of "+b.name+" at position "+(I+1)+" conflicts with "+g.length+" static arguments");return new(b.bind.apply(b,Z([void 0],Z(g,c))))},p}();S.InstantiationService=u},function(Q,S,B){"use strict";var Z=this&&this.__decorate||function(g,y,v,c){var h,m=arguments.length,E=m<3?y:c===null?c=Object.getOwnPropertyDescriptor(y,v):c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(g,y,v,c);else for(var T=g.length-1;T>=0;T--)(h=g[T])&&(E=(m<3?h(E):m>3?h(y,v,E):h(y,v))||E);return m>3&&E&&Object.defineProperty(y,v,E),E},s=this&&this.__param||function(g,y){return function(v,c){y(v,c,g)}},C=this&&this.__spreadArrays||function(){for(var g=0,y=0,v=arguments.length;y<v;y++)g+=arguments[y].length;var c=Array(g),h=0;for(y=0;y<v;y++)for(var m=arguments[y],E=0,T=m.length;E<T;E++,h++)c[h]=m[E];return c};Object.defineProperty(S,"__esModule",{value:!0}),S.LogService=S.LogLevel=void 0;var A,u=B(1);(function(g){g[g.DEBUG=0]="DEBUG",g[g.INFO=1]="INFO",g[g.WARN=2]="WARN",g[g.ERROR=3]="ERROR",g[g.OFF=4]="OFF"})(A=S.LogLevel||(S.LogLevel={}));var p={debug:A.DEBUG,info:A.INFO,warn:A.WARN,error:A.ERROR,off:A.OFF},b=function(){function g(y){var v=this;this._optionsService=y,this._updateLogLevel(),this._optionsService.onOptionChange(function(c){c==="logLevel"&&v._updateLogLevel()})}return g.prototype._updateLogLevel=function(){this._logLevel=p[this._optionsService.options.logLevel]},g.prototype._evalLazyOptionalParams=function(y){for(var v=0;v<y.length;v++)typeof y[v]=="function"&&(y[v]=y[v]())},g.prototype._log=function(y,v,c){this._evalLazyOptionalParams(c),y.call.apply(y,C([console,"xterm.js: "+v],c))},g.prototype.debug=function(y){for(var v=[],c=1;c<arguments.length;c++)v[c-1]=arguments[c];this._logLevel<=A.DEBUG&&this._log(console.log,y,v)},g.prototype.info=function(y){for(var v=[],c=1;c<arguments.length;c++)v[c-1]=arguments[c];this._logLevel<=A.INFO&&this._log(console.info,y,v)},g.prototype.warn=function(y){for(var v=[],c=1;c<arguments.length;c++)v[c-1]=arguments[c];this._logLevel<=A.WARN&&this._log(console.warn,y,v)},g.prototype.error=function(y){for(var v=[],c=1;c<arguments.length;c++)v[c-1]=arguments[c];this._logLevel<=A.ERROR&&this._log(console.error,y,v)},g=Z([s(0,u.IOptionsService)],g)}();S.LogService=b},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(v,c){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var E in m)m.hasOwnProperty(E)&&(h[E]=m[E])})(v,c)},function(v,c){function h(){this.constructor=v}Z(v,c),v.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),C=this&&this.__decorate||function(v,c,h,m){var E,T=arguments.length,I=T<3?c:m===null?m=Object.getOwnPropertyDescriptor(c,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(v,c,h,m);else for(var R=v.length-1;R>=0;R--)(E=v[R])&&(I=(T<3?E(I):T>3?E(c,h,I):E(c,h))||I);return T>3&&I&&Object.defineProperty(c,h,I),I},A=this&&this.__param||function(v,c){return function(h,m){c(h,m,v)}};Object.defineProperty(S,"__esModule",{value:!0}),S.BufferService=S.MINIMUM_ROWS=S.MINIMUM_COLS=void 0;var u=B(1),p=B(69),b=B(0),g=B(2);S.MINIMUM_COLS=2,S.MINIMUM_ROWS=1;var y=function(v){function c(h){var m=v.call(this)||this;return m._optionsService=h,m.isUserScrolling=!1,m._onResize=new b.EventEmitter,m.cols=Math.max(h.options.cols,S.MINIMUM_COLS),m.rows=Math.max(h.options.rows,S.MINIMUM_ROWS),m.buffers=new p.BufferSet(h,m),m}return s(c,v),Object.defineProperty(c.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),c.prototype.dispose=function(){v.prototype.dispose.call(this),this.buffers.dispose()},c.prototype.resize=function(h,m){this.cols=h,this.rows=m,this.buffers.resize(h,m),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:h,rows:m})},c.prototype.reset=function(){this.buffers.dispose(),this.buffers=new p.BufferSet(this._optionsService,this),this.isUserScrolling=!1},c=C([A(0,u.IOptionsService)],c)}(g.Disposable);S.BufferService=y},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(p,b){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var v in y)y.hasOwnProperty(v)&&(g[v]=y[v])})(p,b)},function(p,b){function g(){this.constructor=p}Z(p,b),p.prototype=b===null?Object.create(b):(g.prototype=b.prototype,new g)});Object.defineProperty(S,"__esModule",{value:!0}),S.BufferSet=void 0;var C=B(70),A=B(0),u=function(p){function b(g,y){var v=p.call(this)||this;return v._onBufferActivate=v.register(new A.EventEmitter),v._normal=new C.Buffer(!0,g,y),v._normal.fillViewportRows(),v._alt=new C.Buffer(!1,g,y),v._activeBuffer=v._normal,v.setupTabStops(),v}return s(b,p),Object.defineProperty(b.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),b.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}))},b.prototype.activateAltBuffer=function(g){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(g),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}))},b.prototype.resize=function(g,y){this._normal.resize(g,y),this._alt.resize(g,y)},b.prototype.setupTabStops=function(g){this._normal.setupTabStops(g),this._alt.setupTabStops(g)},b}(B(2).Disposable);S.BufferSet=u},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.BufferStringIterator=S.Buffer=S.MAX_BUFFER_SIZE=void 0;var Z=B(71),s=B(16),C=B(4),A=B(3),u=B(72),p=B(73),b=B(20),g=B(6);S.MAX_BUFFER_SIZE=4294967295;var y=function(){function c(h,m,E){this._hasScrollback=h,this._optionsService=m,this._bufferService=E,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=s.DEFAULT_ATTR_DATA.clone(),this.savedCharset=b.DEFAULT_CHARSET,this.markers=[],this._nullCell=C.CellData.fromCharData([0,A.NULL_CELL_CHAR,A.NULL_CELL_WIDTH,A.NULL_CELL_CODE]),this._whitespaceCell=C.CellData.fromCharData([0,A.WHITESPACE_CELL_CHAR,A.WHITESPACE_CELL_WIDTH,A.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new Z.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return c.prototype.getNullCell=function(h){return h?(this._nullCell.fg=h.fg,this._nullCell.bg=h.bg,this._nullCell.extended=h.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new g.ExtendedAttrs),this._nullCell},c.prototype.getWhitespaceCell=function(h){return h?(this._whitespaceCell.fg=h.fg,this._whitespaceCell.bg=h.bg,this._whitespaceCell.extended=h.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new g.ExtendedAttrs),this._whitespaceCell},c.prototype.getBlankLine=function(h,m){return new s.BufferLine(this._bufferService.cols,this.getNullCell(h),m)},Object.defineProperty(c.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isCursorInViewport",{get:function(){var h=this.ybase+this.y-this.ydisp;return h>=0&&h<this._rows},enumerable:!1,configurable:!0}),c.prototype._getCorrectBufferLength=function(h){if(!this._hasScrollback)return h;var m=h+this._optionsService.options.scrollback;return m>S.MAX_BUFFER_SIZE?S.MAX_BUFFER_SIZE:m},c.prototype.fillViewportRows=function(h){if(this.lines.length===0){h===void 0&&(h=s.DEFAULT_ATTR_DATA);for(var m=this._rows;m--;)this.lines.push(this.getBlankLine(h))}},c.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new Z.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},c.prototype.resize=function(h,m){var E=this.getNullCell(s.DEFAULT_ATTR_DATA),T=this._getCorrectBufferLength(m);if(T>this.lines.maxLength&&(this.lines.maxLength=T),this.lines.length>0){if(this._cols<h)for(var I=0;I<this.lines.length;I++)this.lines.get(I).resize(h,E);var R=0;if(this._rows<m)for(var N=this._rows;N<m;N++)this.lines.length<m+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new s.BufferLine(h,E)):this.ybase>0&&this.lines.length<=this.ybase+this.y+R+1?(this.ybase--,R++,this.ydisp>0&&this.ydisp--):this.lines.push(new s.BufferLine(h,E)));else for(N=this._rows;N>m;N--)this.lines.length>m+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(T<this.lines.maxLength){var k=this.lines.length-T;k>0&&(this.lines.trimStart(k),this.ybase=Math.max(this.ybase-k,0),this.ydisp=Math.max(this.ydisp-k,0),this.savedY=Math.max(this.savedY-k,0)),this.lines.maxLength=T}this.x=Math.min(this.x,h-1),this.y=Math.min(this.y,m-1),R&&(this.y+=R),this.savedX=Math.min(this.savedX,h-1),this.scrollTop=0}if(this.scrollBottom=m-1,this._isReflowEnabled&&(this._reflow(h,m),this._cols>h))for(I=0;I<this.lines.length;I++)this.lines.get(I).resize(h,E);this._cols=h,this._rows=m},Object.defineProperty(c.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),c.prototype._reflow=function(h,m){this._cols!==h&&(h>this._cols?this._reflowLarger(h,m):this._reflowSmaller(h,m))},c.prototype._reflowLarger=function(h,m){var E=u.reflowLargerGetLinesToRemove(this.lines,this._cols,h,this.ybase+this.y,this.getNullCell(s.DEFAULT_ATTR_DATA));if(E.length>0){var T=u.reflowLargerCreateNewLayout(this.lines,E);u.reflowLargerApplyNewLayout(this.lines,T.layout),this._reflowLargerAdjustViewport(h,m,T.countRemoved)}},c.prototype._reflowLargerAdjustViewport=function(h,m,E){for(var T=this.getNullCell(s.DEFAULT_ATTR_DATA),I=E;I-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<m&&this.lines.push(new s.BufferLine(h,T))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-E,0)},c.prototype._reflowSmaller=function(h,m){for(var E=this.getNullCell(s.DEFAULT_ATTR_DATA),T=[],I=0,R=this.lines.length-1;R>=0;R--){var N=this.lines.get(R);if(!(!N||!N.isWrapped&&N.getTrimmedLength()<=h)){for(var k=[N];N.isWrapped&&R>0;)N=this.lines.get(--R),k.unshift(N);var L=this.ybase+this.y;if(!(L>=R&&L<R+k.length)){var H=k[k.length-1].getTrimmedLength(),D=u.reflowSmallerGetNewLineLengths(k,this._cols,h),V=D.length-k.length,P=void 0;P=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+V):Math.max(0,this.lines.length-this.lines.maxLength+V);for(var U=[],G=0;G<V;G++){var J=this.getBlankLine(s.DEFAULT_ATTR_DATA,!0);U.push(J)}U.length>0&&(T.push({start:R+k.length+I,newLines:U}),I+=U.length),k.push.apply(k,U);var ee=D.length-1,ae=D[ee];ae===0&&(ae=D[--ee]);for(var oe=k.length-V-1,ue=H;oe>=0;){var se=Math.min(ue,ae);if(k[ee].copyCellsFrom(k[oe],ue-se,ae-se,se,!0),(ae-=se)===0&&(ae=D[--ee]),(ue-=se)===0){oe--;var ye=Math.max(oe,0);ue=u.getWrappedLineTrimmedLength(k,ye,this._cols)}}for(G=0;G<k.length;G++)D[G]<h&&k[G].setCell(D[G],E);for(var ve=V-P;ve-- >0;)this.ybase===0?this.y<m-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+I)-m&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+V,this.ybase+m-1)}}}if(T.length>0){var Re=[],le=[];for(G=0;G<this.lines.length;G++)le.push(this.lines.get(G));var xe=this.lines.length,pe=xe-1,Me=0,Oe=T[Me];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+I);var Le=0;for(G=Math.min(this.lines.maxLength-1,xe+I-1);G>=0;G--)if(Oe&&Oe.start>pe+Le){for(var Pe=Oe.newLines.length-1;Pe>=0;Pe--)this.lines.set(G--,Oe.newLines[Pe]);G++,Re.push({index:pe+1,amount:Oe.newLines.length}),Le+=Oe.newLines.length,Oe=T[++Me]}else this.lines.set(G,le[pe--]);var De=0;for(G=Re.length-1;G>=0;G--)Re[G].index+=De,this.lines.onInsertEmitter.fire(Re[G]),De+=Re[G].amount;var Ke=Math.max(0,xe+I-this.lines.maxLength);Ke>0&&this.lines.onTrimEmitter.fire(Ke)}},c.prototype.stringIndexToBufferIndex=function(h,m,E){for(E===void 0&&(E=!1);m;){var T=this.lines.get(h);if(!T)return[-1,-1];for(var I=E?T.getTrimmedLength():T.length,R=0;R<I;++R)if(T.get(R)[A.CHAR_DATA_WIDTH_INDEX]&&(m-=T.get(R)[A.CHAR_DATA_CHAR_INDEX].length||1),m<0)return[h,R];h++}return[h,0]},c.prototype.translateBufferLineToString=function(h,m,E,T){E===void 0&&(E=0);var I=this.lines.get(h);return I?I.translateToString(m,E,T):""},c.prototype.getWrappedRangeForLine=function(h){for(var m=h,E=h;m>0&&this.lines.get(m).isWrapped;)m--;for(;E+1<this.lines.length&&this.lines.get(E+1).isWrapped;)E++;return{first:m,last:E}},c.prototype.setupTabStops=function(h){for(h!=null?this.tabs[h]||(h=this.prevStop(h)):(this.tabs={},h=0);h<this._cols;h+=this._optionsService.options.tabStopWidth)this.tabs[h]=!0},c.prototype.prevStop=function(h){for(h==null&&(h=this.x);!this.tabs[--h]&&h>0;);return h>=this._cols?this._cols-1:h<0?0:h},c.prototype.nextStop=function(h){for(h==null&&(h=this.x);!this.tabs[++h]&&h<this._cols;);return h>=this._cols?this._cols-1:h<0?0:h},c.prototype.addMarker=function(h){var m=this,E=new p.Marker(h);return this.markers.push(E),E.register(this.lines.onTrim(function(T){E.line-=T,E.line<0&&E.dispose()})),E.register(this.lines.onInsert(function(T){E.line>=T.index&&(E.line+=T.amount)})),E.register(this.lines.onDelete(function(T){E.line>=T.index&&E.line<T.index+T.amount&&E.dispose(),E.line>T.index&&(E.line-=T.amount)})),E.register(E.onDispose(function(){return m._removeMarker(E)})),E},c.prototype._removeMarker=function(h){this.markers.splice(this.markers.indexOf(h),1)},c.prototype.iterator=function(h,m,E,T,I){return new v(this,h,m,E,T,I)},c}();S.Buffer=y;var v=function(){function c(h,m,E,T,I,R){E===void 0&&(E=0),T===void 0&&(T=h.lines.length),I===void 0&&(I=0),R===void 0&&(R=0),this._buffer=h,this._trimRight=m,this._startIndex=E,this._endIndex=T,this._startOverscan=I,this._endOverscan=R,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return c.prototype.hasNext=function(){return this._current<this._endIndex},c.prototype.next=function(){var h=this._buffer.getWrappedRangeForLine(this._current);h.first<this._startIndex-this._startOverscan&&(h.first=this._startIndex-this._startOverscan),h.last>this._endIndex+this._endOverscan&&(h.last=this._endIndex+this._endOverscan),h.first=Math.max(h.first,0),h.last=Math.min(h.last,this._buffer.lines.length);for(var m="",E=h.first;E<=h.last;++E)m+=this._buffer.translateBufferLineToString(E,this._trimRight);return this._current=h.last+1,{range:h,content:m}},c}();S.BufferStringIterator=v},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.CircularList=void 0;var Z=B(0),s=function(){function C(A){this._maxLength=A,this.onDeleteEmitter=new Z.EventEmitter,this.onInsertEmitter=new Z.EventEmitter,this.onTrimEmitter=new Z.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(C.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"maxLength",{get:function(){return this._maxLength},set:function(A){if(this._maxLength!==A){for(var u=new Array(A),p=0;p<Math.min(A,this.length);p++)u[p]=this._array[this._getCyclicIndex(p)];this._array=u,this._maxLength=A,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"length",{get:function(){return this._length},set:function(A){if(A>this._length)for(var u=this._length;u<A;u++)this._array[u]=void 0;this._length=A},enumerable:!1,configurable:!0}),C.prototype.get=function(A){return this._array[this._getCyclicIndex(A)]},C.prototype.set=function(A,u){this._array[this._getCyclicIndex(A)]=u},C.prototype.push=function(A){this._array[this._getCyclicIndex(this._length)]=A,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},C.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(C.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),C.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},C.prototype.splice=function(A,u){for(var p=[],b=2;b<arguments.length;b++)p[b-2]=arguments[b];if(u){for(var g=A;g<this._length-u;g++)this._array[this._getCyclicIndex(g)]=this._array[this._getCyclicIndex(g+u)];this._length-=u}for(g=this._length-1;g>=A;g--)this._array[this._getCyclicIndex(g+p.length)]=this._array[this._getCyclicIndex(g)];for(g=0;g<p.length;g++)this._array[this._getCyclicIndex(A+g)]=p[g];if(this._length+p.length>this._maxLength){var y=this._length+p.length-this._maxLength;this._startIndex+=y,this._length=this._maxLength,this.onTrimEmitter.fire(y)}else this._length+=p.length},C.prototype.trimStart=function(A){A>this._length&&(A=this._length),this._startIndex+=A,this._length-=A,this.onTrimEmitter.fire(A)},C.prototype.shiftElements=function(A,u,p){if(!(u<=0)){if(A<0||A>=this._length)throw new Error("start argument out of range");if(A+p<0)throw new Error("Cannot shift elements in list beyond index 0");if(p>0){for(var b=u-1;b>=0;b--)this.set(A+b+p,this.get(A+b));var g=A+u+p-this._length;if(g>0)for(this._length+=g;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(b=0;b<u;b++)this.set(A+b+p,this.get(A+b))}},C.prototype._getCyclicIndex=function(A){return(this._startIndex+A)%this._maxLength},C}();S.CircularList=s},function(Q,S,B){"use strict";function Z(s,C,A){if(C===s.length-1)return s[C].getTrimmedLength();var u=!s[C].hasContent(A-1)&&s[C].getWidth(A-1)===1,p=s[C+1].getWidth(0)===2;return u&&p?A-1:A}Object.defineProperty(S,"__esModule",{value:!0}),S.getWrappedLineTrimmedLength=S.reflowSmallerGetNewLineLengths=S.reflowLargerApplyNewLayout=S.reflowLargerCreateNewLayout=S.reflowLargerGetLinesToRemove=void 0,S.reflowLargerGetLinesToRemove=function(s,C,A,u,p){for(var b=[],g=0;g<s.length-1;g++){var y=g,v=s.get(++y);if(v.isWrapped){for(var c=[s.get(g)];y<s.length&&v.isWrapped;)c.push(v),v=s.get(++y);if(u>=g&&u<y)g+=c.length-1;else{for(var h=0,m=Z(c,h,C),E=1,T=0;E<c.length;){var I=Z(c,E,C),R=I-T,N=A-m,k=Math.min(R,N);c[h].copyCellsFrom(c[E],T,m,k,!1),(m+=k)===A&&(h++,m=0),(T+=k)===I&&(E++,T=0),m===0&&h!==0&&c[h-1].getWidth(A-1)===2&&(c[h].copyCellsFrom(c[h-1],A-1,m++,1,!1),c[h-1].setCell(A-1,p))}c[h].replaceCells(m,A,p);for(var L=0,H=c.length-1;H>0&&(H>h||c[H].getTrimmedLength()===0);H--)L++;L>0&&(b.push(g+c.length-L),b.push(L)),g+=c.length-1}}}return b},S.reflowLargerCreateNewLayout=function(s,C){for(var A=[],u=0,p=C[u],b=0,g=0;g<s.length;g++)if(p===g){var y=C[++u];s.onDeleteEmitter.fire({index:g-b,amount:y}),g+=y-1,b+=y,p=C[++u]}else A.push(g);return{layout:A,countRemoved:b}},S.reflowLargerApplyNewLayout=function(s,C){for(var A=[],u=0;u<C.length;u++)A.push(s.get(C[u]));for(u=0;u<A.length;u++)s.set(u,A[u]);s.length=C.length},S.reflowSmallerGetNewLineLengths=function(s,C,A){for(var u=[],p=s.map(function(m,E){return Z(s,E,C)}).reduce(function(m,E){return m+E}),b=0,g=0,y=0;y<p;){if(p-y<A){u.push(p-y);break}b+=A;var v=Z(s,g,C);b>v&&(b-=v,g++);var c=s[g].getWidth(b-1)===2;c&&b--;var h=c?A-1:A;u.push(h),y+=h}return u},S.getWrappedLineTrimmedLength=Z},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(u,p){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,g){b.__proto__=g}||function(b,g){for(var y in g)g.hasOwnProperty(y)&&(b[y]=g[y])})(u,p)},function(u,p){function b(){this.constructor=u}Z(u,p),u.prototype=p===null?Object.create(p):(b.prototype=p.prototype,new b)});Object.defineProperty(S,"__esModule",{value:!0}),S.Marker=void 0;var C=B(0),A=function(u){function p(b){var g=u.call(this)||this;return g.line=b,g._id=p._nextId++,g.isDisposed=!1,g._onDispose=new C.EventEmitter,g}return s(p,u),Object.defineProperty(p.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),p.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},p._nextId=1,p}(B(2).Disposable);S.Marker=A},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.OptionsService=S.DEFAULT_OPTIONS=S.DEFAULT_BELL_SOUND=void 0;var Z=B(0),s=B(11),C=B(33);S.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",S.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:S.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:s.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var A=["cols","rows"],u=function(){function p(b){this._onOptionChange=new Z.EventEmitter,this.options=C.clone(S.DEFAULT_OPTIONS);for(var g=0,y=Object.keys(b);g<y.length;g++){var v=y[g];if(v in this.options){var c=b[v];this.options[v]=c}}}return Object.defineProperty(p.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),p.prototype.setOption=function(b,g){if(!(b in S.DEFAULT_OPTIONS))throw new Error('No option with key "'+b+'"');if(A.indexOf(b)!==-1)throw new Error('Option "'+b+'" can only be set in the constructor');this.options[b]!==g&&(g=this._sanitizeAndValidateOption(b,g),this.options[b]!==g&&(this.options[b]=g,this._onOptionChange.fire(b)))},p.prototype._sanitizeAndValidateOption=function(b,g){switch(b){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":g||(g=S.DEFAULT_OPTIONS[b]);break;case"cursorWidth":g=Math.floor(g);case"lineHeight":case"tabStopWidth":if(g<1)throw new Error(b+" cannot be less than 1, value: "+g);break;case"minimumContrastRatio":g=Math.max(1,Math.min(21,Math.round(10*g)/10));break;case"scrollback":if((g=Math.min(g,4294967295))<0)throw new Error(b+" cannot be less than 0, value: "+g);break;case"fastScrollSensitivity":case"scrollSensitivity":if(g<=0)throw new Error(b+" cannot be less than or equal to 0, value: "+g)}return g},p.prototype.getOption=function(b){if(!(b in S.DEFAULT_OPTIONS))throw new Error('No option with key "'+b+'"');return this.options[b]},p}();S.OptionsService=u},function(Q,S,B){"use strict";var Z,s=this&&this.__extends||(Z=function(h,m){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,T){E.__proto__=T}||function(E,T){for(var I in T)T.hasOwnProperty(I)&&(E[I]=T[I])})(h,m)},function(h,m){function E(){this.constructor=h}Z(h,m),h.prototype=m===null?Object.create(m):(E.prototype=m.prototype,new E)}),C=this&&this.__decorate||function(h,m,E,T){var I,R=arguments.length,N=R<3?m:T===null?T=Object.getOwnPropertyDescriptor(m,E):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(h,m,E,T);else for(var k=h.length-1;k>=0;k--)(I=h[k])&&(N=(R<3?I(N):R>3?I(m,E,N):I(m,E))||N);return R>3&&N&&Object.defineProperty(m,E,N),N},A=this&&this.__param||function(h,m){return function(E,T){m(E,T,h)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CoreService=void 0;var u=B(1),p=B(0),b=B(33),g=B(2),y=Object.freeze({insertMode:!1}),v=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),c=function(h){function m(E,T,I,R){var N=h.call(this)||this;return N._bufferService=T,N._logService=I,N._optionsService=R,N.isCursorInitialized=!1,N.isCursorHidden=!1,N._onData=N.register(new p.EventEmitter),N._onUserInput=N.register(new p.EventEmitter),N._onBinary=N.register(new p.EventEmitter),N._scrollToBottom=E,N.register({dispose:function(){return N._scrollToBottom=void 0}}),N.modes=b.clone(y),N.decPrivateModes=b.clone(v),N}return s(m,h),Object.defineProperty(m.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),m.prototype.reset=function(){this.modes=b.clone(y),this.decPrivateModes=b.clone(v)},m.prototype.triggerDataEvent=function(E,T){if(T===void 0&&(T=!1),!this._optionsService.options.disableStdin){var I=this._bufferService.buffer;I.ybase!==I.ydisp&&this._scrollToBottom(),T&&this._onUserInput.fire(),this._logService.debug('sending data "'+E+'"',function(){return E.split("").map(function(R){return R.charCodeAt(0)})}),this._onData.fire(E)}},m.prototype.triggerBinaryEvent=function(E){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+E+'"',function(){return E.split("").map(function(T){return T.charCodeAt(0)})}),this._onBinary.fire(E))},m=C([A(1,u.IBufferService),A(2,u.ILogService),A(3,u.IOptionsService)],m)}(g.Disposable);S.CoreService=c},function(Q,S,B){"use strict";var Z=this&&this.__decorate||function(v,c,h,m){var E,T=arguments.length,I=T<3?c:m===null?m=Object.getOwnPropertyDescriptor(c,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(v,c,h,m);else for(var R=v.length-1;R>=0;R--)(E=v[R])&&(I=(T<3?E(I):T>3?E(c,h,I):E(c,h))||I);return T>3&&I&&Object.defineProperty(c,h,I),I},s=this&&this.__param||function(v,c){return function(h,m){c(h,m,v)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CoreMouseService=void 0;var C=B(1),A=B(0),u={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(v){return v.button!==4&&v.action===1&&(v.ctrl=!1,v.alt=!1,v.shift=!1,!0)}},VT200:{events:19,restrict:function(v){return v.action!==32}},DRAG:{events:23,restrict:function(v){return v.action!==32||v.button!==3}},ANY:{events:31,restrict:function(v){return!0}}};function p(v,c){var h=(v.ctrl?16:0)|(v.shift?4:0)|(v.alt?8:0);return v.button===4?(h|=64,h|=v.action):(h|=3&v.button,4&v.button&&(h|=64),8&v.button&&(h|=128),v.action===32?h|=32:v.action!==0||c||(h|=3)),h}var b=String.fromCharCode,g={DEFAULT:function(v){var c=[p(v,!1)+32,v.col+32,v.row+32];return c[0]>255||c[1]>255||c[2]>255?"":"\x1B[M"+b(c[0])+b(c[1])+b(c[2])},SGR:function(v){var c=v.action===0&&v.button!==4?"m":"M";return"\x1B[<"+p(v,!0)+";"+v.col+";"+v.row+c}},y=function(){function v(c,h){this._bufferService=c,this._coreService=h,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new A.EventEmitter,this._lastEvent=null;for(var m=0,E=Object.keys(u);m<E.length;m++){var T=E[m];this.addProtocol(T,u[T])}for(var I=0,R=Object.keys(g);I<R.length;I++){var N=R[I];this.addEncoding(N,g[N])}this.reset()}return v.prototype.addProtocol=function(c,h){this._protocols[c]=h},v.prototype.addEncoding=function(c,h){this._encodings[c]=h},Object.defineProperty(v.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(c){if(!this._protocols[c])throw new Error('unknown protocol "'+c+'"');this._activeProtocol=c,this._onProtocolChange.fire(this._protocols[c].events)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(c){if(!this._encodings[c])throw new Error('unknown encoding "'+c+'"');this._activeEncoding=c},enumerable:!1,configurable:!0}),v.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(v.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),v.prototype.triggerMouseEvent=function(c){if(c.col<0||c.col>=this._bufferService.cols||c.row<0||c.row>=this._bufferService.rows||c.button===4&&c.action===32||c.button===3&&c.action!==32||c.button!==4&&(c.action===2||c.action===3)||(c.col++,c.row++,c.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,c))||!this._protocols[this._activeProtocol].restrict(c))return!1;var h=this._encodings[this._activeEncoding](c);return h&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(h):this._coreService.triggerDataEvent(h,!0)),this._lastEvent=c,!0},v.prototype.explainEvents=function(c){return{down:!!(1&c),up:!!(2&c),drag:!!(4&c),move:!!(8&c),wheel:!!(16&c)}},v.prototype._compareEvents=function(c,h){return c.col===h.col&&c.row===h.row&&c.button===h.button&&c.action===h.action&&c.ctrl===h.ctrl&&c.alt===h.alt&&c.shift===h.shift},v=Z([s(0,C.IBufferService),s(1,C.ICoreService)],v)}();S.CoreMouseService=y},function(Q,S,B){"use strict";var Z=this&&this.__decorate||function(u,p,b,g){var y,v=arguments.length,c=v<3?p:g===null?g=Object.getOwnPropertyDescriptor(p,b):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(u,p,b,g);else for(var h=u.length-1;h>=0;h--)(y=u[h])&&(c=(v<3?y(c):v>3?y(p,b,c):y(p,b))||c);return v>3&&c&&Object.defineProperty(p,b,c),c},s=this&&this.__param||function(u,p){return function(b,g){p(b,g,u)}};Object.defineProperty(S,"__esModule",{value:!0}),S.DirtyRowService=void 0;var C=B(1),A=function(){function u(p){this._bufferService=p,this.clearRange()}return Object.defineProperty(u.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),u.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},u.prototype.markDirty=function(p){p<this._start?this._start=p:p>this._end&&(this._end=p)},u.prototype.markRangeDirty=function(p,b){if(p>b){var g=p;p=b,b=g}p<this._start&&(this._start=p),b>this._end&&(this._end=b)},u.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},u=Z([s(0,C.IBufferService)],u)}();S.DirtyRowService=A},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.UnicodeService=void 0;var Z=B(0),s=B(79),C=function(){function A(){this._providers=Object.create(null),this._active="",this._onChange=new Z.EventEmitter;var u=new s.UnicodeV6;this.register(u),this._active=u.version,this._activeProvider=u}return Object.defineProperty(A.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"activeVersion",{get:function(){return this._active},set:function(u){if(!this._providers[u])throw new Error('unknown Unicode version "'+u+'"');this._active=u,this._activeProvider=this._providers[u],this._onChange.fire(u)},enumerable:!1,configurable:!0}),A.prototype.register=function(u){this._providers[u.version]=u},A.prototype.wcwidth=function(u){return this._activeProvider.wcwidth(u)},A.prototype.getStringCellWidth=function(u){for(var p=0,b=u.length,g=0;g<b;++g){var y=u.charCodeAt(g);if(55296<=y&&y<=56319){if(++g>=b)return p+this.wcwidth(y);var v=u.charCodeAt(g);56320<=v&&v<=57343?y=1024*(y-55296)+v-56320+65536:p+=this.wcwidth(v)}p+=this.wcwidth(y)}return p},A}();S.UnicodeService=C},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.UnicodeV6=void 0;var Z,s=B(15),C=[[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]],A=[[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]],u=function(){function p(){if(this.version="6",!Z){Z=new Uint8Array(65536),s.fill(Z,1),Z[0]=0,s.fill(Z,0,1,32),s.fill(Z,0,127,160),s.fill(Z,2,4352,4448),Z[9001]=2,Z[9002]=2,s.fill(Z,2,11904,42192),Z[12351]=1,s.fill(Z,2,44032,55204),s.fill(Z,2,63744,64256),s.fill(Z,2,65040,65050),s.fill(Z,2,65072,65136),s.fill(Z,2,65280,65377),s.fill(Z,2,65504,65511);for(var b=0;b<C.length;++b)s.fill(Z,0,C[b][0],C[b][1]+1)}}return p.prototype.wcwidth=function(b){return b<32?0:b<127?1:b<65536?Z[b]:function(g,y){var v,c=0,h=y.length-1;if(g<y[0][0]||g>y[h][1])return!1;for(;h>=c;)if(g>y[v=c+h>>1][1])c=v+1;else{if(!(g<y[v][0]))return!0;h=v-1}return!1}(b,A)?0:b>=131072&&b<=196605||b>=196608&&b<=262141?2:1},p}();S.UnicodeV6=u},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.CharsetService=void 0;var Z=function(){function s(){this.glevel=0,this._charsets=[]}return s.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},s.prototype.setgLevel=function(C){this.glevel=C,this.charset=this._charsets[C]},s.prototype.setgCharset=function(C,A){this._charsets[C]=A,this.glevel===C&&(this.charset=A)},s}();S.CharsetService=Z},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.updateWindowsModeWrappedState=void 0;var Z=B(3);S.updateWindowsModeWrappedState=function(s){var C=s.buffer.lines.get(s.buffer.ybase+s.buffer.y-1),A=C==null?void 0:C.get(s.cols-1),u=s.buffer.lines.get(s.buffer.ybase+s.buffer.y);u&&A&&(u.isWrapped=A[Z.CHAR_DATA_CODE_INDEX]!==Z.NULL_CELL_CODE&&A[Z.CHAR_DATA_CODE_INDEX]!==Z.WHITESPACE_CELL_CODE)}},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.WriteBuffer=void 0;var Z=function(){function s(C){this._action=C,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return s.prototype.writeSync=function(C){if(this._writeBuffer.length){for(var A=this._bufferOffset;A<this._writeBuffer.length;++A){var u=this._writeBuffer[A],p=this._callbacks[A];this._action(u),p&&p()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(C)},s.prototype.write=function(C,A){var u=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 u._innerWrite()})),this._pendingData+=C.length,this._writeBuffer.push(C),this._callbacks.push(A)},s.prototype._innerWrite=function(){for(var C=this,A=Date.now();this._writeBuffer.length>this._bufferOffset;){var u=this._writeBuffer[this._bufferOffset],p=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(u),this._pendingData-=u.length,p&&p(),Date.now()-A>=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 C._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},s}();S.WriteBuffer=Z},function(Q,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.AddonManager=void 0;var Z=function(){function s(){this._addons=[]}return s.prototype.dispose=function(){for(var C=this._addons.length-1;C>=0;C--)this._addons[C].instance.dispose()},s.prototype.loadAddon=function(C,A){var u=this,p={instance:A,dispose:A.dispose,isDisposed:!1};this._addons.push(p),A.dispose=function(){return u._wrappedAddonDispose(p)},A.activate(C)},s.prototype._wrappedAddonDispose=function(C){if(!C.isDisposed){for(var A=-1,u=0;u<this._addons.length;u++)if(this._addons[u]===C){A=u;break}if(A===-1)throw new Error("Could not dispose an addon that has not been loaded");C.isDisposed=!0,C.dispose.apply(C.instance),this._addons.splice(A,1)}},s}();S.AddonManager=Z}])})},90302:function(Ne,Q,S){"use strict";S.d(Q,{ZP:function(){return L}});const B=-1,Z=0,s=1,C=2,A=3,u=4,p=5,b=6,g=7,y=8,v=typeof self=="object"?self:globalThis,c=(H,D)=>{const V=(U,G)=>(H.set(G,U),U),P=U=>{if(H.has(U))return H.get(U);const[G,J]=D[U];switch(G){case Z:case B:return V(J,U);case s:{const ee=V([],U);for(const ae of J)ee.push(P(ae));return ee}case C:{const ee=V({},U);for(const[ae,oe]of J)ee[P(ae)]=P(oe);return ee}case A:return V(new Date(J),U);case u:{const{source:ee,flags:ae}=J;return V(new RegExp(ee,ae),U)}case p:{const ee=V(new Map,U);for(const[ae,oe]of J)ee.set(P(ae),P(oe));return ee}case b:{const ee=V(new Set,U);for(const ae of J)ee.add(P(ae));return ee}case g:{const{name:ee,message:ae}=J;return V(new v[ee](ae),U)}case y:return V(BigInt(J),U);case"BigInt":return V(Object(BigInt(J)),U);case"ArrayBuffer":return V(new Uint8Array(J).buffer,J);case"DataView":{const{buffer:ee}=new Uint8Array(J);return V(new DataView(ee),J)}}return V(new v[G](J),U)};return P},h=H=>c(new Map,H)(0),m="",{toString:E}={},{keys:T}=Object,I=H=>{const D=typeof H;if(D!=="object"||!H)return[Z,D];const V=E.call(H).slice(8,-1);switch(V){case"Array":return[s,m];case"Object":return[C,m];case"Date":return[A,m];case"RegExp":return[u,m];case"Map":return[p,m];case"Set":return[b,m];case"DataView":return[s,V]}return V.includes("Array")?[s,V]:V.includes("Error")?[g,V]:[C,V]},R=([H,D])=>H===Z&&(D==="function"||D==="symbol"),N=(H,D,V,P)=>{const U=(J,ee)=>{const ae=P.push(J)-1;return V.set(ee,ae),ae},G=J=>{if(V.has(J))return V.get(J);let[ee,ae]=I(J);switch(ee){case Z:{let ue=J;switch(ae){case"bigint":ee=y,ue=J.toString();break;case"function":case"symbol":if(H)throw new TypeError("unable to serialize "+ae);ue=null;break;case"undefined":return U([B],J)}return U([ee,ue],J)}case s:{if(ae){let ye=J;return ae==="DataView"?ye=new Uint8Array(J.buffer):ae==="ArrayBuffer"&&(ye=new Uint8Array(J)),U([ae,[...ye]],J)}const ue=[],se=U([ee,ue],J);for(const ye of J)ue.push(G(ye));return se}case C:{if(ae)switch(ae){case"BigInt":return U([ae,J.toString()],J);case"Boolean":case"Number":case"String":return U([ae,J.valueOf()],J)}if(D&&"toJSON"in J)return G(J.toJSON());const ue=[],se=U([ee,ue],J);for(const ye of T(J))(H||!R(I(J[ye])))&&ue.push([G(ye),G(J[ye])]);return se}case A:return U([ee,J.toISOString()],J);case u:{const{source:ue,flags:se}=J;return U([ee,{source:ue,flags:se}],J)}case p:{const ue=[],se=U([ee,ue],J);for(const[ye,ve]of J)(H||!(R(I(ye))||R(I(ve))))&&ue.push([G(ye),G(ve)]);return se}case b:{const ue=[],se=U([ee,ue],J);for(const ye of J)(H||!R(I(ye)))&&ue.push(G(ye));return se}}const{message:oe}=J;return U([ee,{name:ae,message:oe}],J)};return G},k=(H,{json:D,lossy:V}={})=>{const P=[];return N(!(D||V),!!D,new Map,P)(H),P};var L=typeof structuredClone=="function"?(H,D)=>D&&("json"in D||"lossy"in D)?h(k(H,D)):structuredClone(H):(H,D)=>h(k(H,D))},11630:function(Ne,Q,S){"use strict";S.d(Q,{P:function(){return Z},Q:function(){return B}});function B(s){const C=[],A=String(s||"");let u=A.indexOf(","),p=0,b=!1;for(;!b;){u===-1&&(u=A.length,b=!0);const g=A.slice(p,u).trim();(g||!b)&&C.push(g),p=u+1,u=A.indexOf(",",p)}return C}function Z(s,C){const A=C||{};return(s[s.length-1]===""?[...s,""]:s).join((A.padRight?" ":"")+","+(A.padLeft===!1?"":" ")).trim()}},87342:function(Ne,Q,S){"use strict";S.d(Q,{ok:function(){return s},t1:function(){return C}});function B(A){return A}function Z(){}function s(){}function C(){}},40797:function(Ne,Q,S){"use strict";S.d(Q,{N:function(){return h}});var B=S(81994),Z=S(43309);function s(E,T){return C(E,T||{})||{type:"root",children:[]}}function C(E,T){const I=A(E,T);return I&&T.afterTransform&&T.afterTransform(E,I),I}function A(E,T){switch(E.nodeType){case 1:return y(E,T);case 3:return b(E);case 8:return g(E);case 9:return u(E,T);case 10:return p();case 11:return u(E,T);default:return}}function u(E,T){return{type:"root",children:v(E,T)}}function p(){return{type:"doctype"}}function b(E){return{type:"text",value:E.nodeValue||""}}function g(E){return{type:"comment",value:E.nodeValue||""}}function y(E,T){const I=E.namespaceURI,R=I===Z.t.svg?B.s:B.h,N=I===Z.t.html?E.tagName.toLowerCase():E.tagName,k=I===Z.t.html&&N==="template"?E.content:E,L=E.getAttributeNames(),H={};let D=-1;for(;++D<L.length;)H[L[D]]=E.getAttribute(L[D])||"";return R(N,H,v(k,T))}function v(E,T){const I=E.childNodes,R=[];let N=-1;for(;++N<I.length;){const k=C(I[N],T);k!==void 0&&R.push(k)}return R}const c=new DOMParser;function h(E,T){const I=T!=null&&T.fragment?m(E):c.parseFromString(E,"text/html");return s(I)}function m(E){const T=document.createElement("template");return T.innerHTML=E,T.content}},91378:function(Ne,Q,S){"use strict";S.d(Q,{l:function(){return R}});var B=S(10502);const Z=function(J,ee,ae){const oe=(0,B.O)(ae);if(!J||!J.type||!J.children)throw new Error("Expected parent node");if(typeof ee=="number"){if(ee<0||ee===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(ee=J.children.indexOf(ee),ee<0)throw new Error("Expected child node or index");for(;++ee<J.children.length;)if(oe(J.children[ee],ee,J))return J.children[ee]},s=function(J,ee,ae,oe,ue){const se=C(ee);if(ae!=null&&(typeof ae!="number"||ae<0||ae===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(oe!=null&&(!oe.type||!oe.children))throw new Error("Expected valid `parent`");if(ae==null!=(oe==null))throw new Error("Expected both `index` and `parent`");return g(J)?se.call(ue,J,ae,oe):!1},C=function(J){if(J==null)return b;if(typeof J=="string")return u(J);if(typeof J=="object")return A(J);if(typeof J=="function")return p(J);throw new Error("Expected function, string, or array as `test`")};function A(J){const ee=[];let ae=-1;for(;++ae<J.length;)ee[ae]=C(J[ae]);return p(oe);function oe(...ue){let se=-1;for(;++se<ee.length;)if(ee[se].apply(this,ue))return!0;return!1}}function u(J){return p(ee);function ee(ae){return ae.tagName===J}}function p(J){return ee;function ee(ae,oe,ue){return!!(g(ae)&&J.call(this,ae,typeof oe=="number"?oe:void 0,ue||void 0))}}function b(J){return!!(J&&typeof J=="object"&&"type"in J&&J.type==="element"&&"tagName"in J&&typeof J.tagName=="string")}function g(J){return J!==null&&typeof J=="object"&&"type"in J&&"tagName"in J}const y=/\n/g,v=/[\t ]+/g,c=C("br"),h=C(U),m=C("p"),E=C("tr"),T=C(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",P,G]),I=C(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function R(J,ee){const ae=ee||{},oe="children"in J?J.children:[],ue=I(J),se=V(J,{whitespace:ae.whitespace||"normal",breakBefore:!1,breakAfter:!1}),ye=[];(J.type==="text"||J.type==="comment")&&ye.push(...L(J,{whitespace:se,breakBefore:!0,breakAfter:!0}));let ve=-1;for(;++ve<oe.length;)ye.push(...N(oe[ve],J,{whitespace:se,breakBefore:ve?void 0:ue,breakAfter:ve<oe.length-1?c(oe[ve+1]):ue}));const Re=[];let le;for(ve=-1;++ve<ye.length;){const xe=ye[ve];typeof xe=="number"?le!==void 0&&xe>le&&(le=xe):xe&&(le!==void 0&&le>-1&&Re.push(`
`.repeat(le)||" "),le=-1,Re.push(xe))}return Re.join("")}function N(J,ee,ae){return J.type==="element"?k(J,ee,ae):J.type==="text"?ae.whitespace==="normal"?L(J,ae):H(J):[]}function k(J,ee,ae){const oe=V(J,ae),ue=J.children||[];let se=-1,ye=[];if(T(J))return ye;let ve,Re;for(c(J)||E(J)&&Z(ee,J,E)?Re=`
`:m(J)?(ve=2,Re=2):I(J)&&(ve=1,Re=1);++se<ue.length;)ye=ye.concat(N(ue[se],J,{whitespace:oe,breakBefore:se?void 0:ve,breakAfter:se<ue.length-1?c(ue[se+1]):Re}));return h(J)&&Z(ee,J,h)&&ye.push(" "),ve&&ye.unshift(ve),Re&&ye.push(Re),ye}function L(J,ee){const ae=String(J.value),oe=[],ue=[];let se=0;for(;se<=ae.length;){y.lastIndex=se;const Re=y.exec(ae),le=Re&&"index"in Re?Re.index:ae.length;oe.push(D(ae.slice(se,le).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),se===0?ee.breakBefore:!0,le===ae.length?ee.breakAfter:!0)),se=le+1}let ye=-1,ve;for(;++ye<oe.length;)oe[ye].charCodeAt(oe[ye].length-1)===8203||ye<oe.length-1&&oe[ye+1].charCodeAt(0)===8203?(ue.push(oe[ye]),ve=void 0):oe[ye]?(typeof ve=="number"&&ue.push(ve),ue.push(oe[ye]),ve=0):(ye===0||ye===oe.length-1)&&ue.push(0);return ue}function H(J){return[String(J.value)]}function D(J,ee,ae){const oe=[];let ue=0,se;for(;ue<J.length;){v.lastIndex=ue;const ye=v.exec(J);se=ye?ye.index:J.length,!ue&&!se&&ye&&!ee&&oe.push(""),ue!==se&&oe.push(J.slice(ue,se)),ue=ye?se+ye[0].length:se}return ue!==se&&!ae&&oe.push(""),oe.join(" ")}function V(J,ee){if(J.type==="element"){const ae=J.properties||{};switch(J.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return ae.wrap?"pre-wrap":"pre";case"td":case"th":return ae.noWrap?"nowrap":ee.whitespace;case"textarea":return"pre-wrap";default:}}return ee.whitespace}function P(J){return!!(J.properties||{}).hidden}function U(J){return J.tagName==="td"||J.tagName==="th"}function G(J){return J.tagName==="dialog"&&!(J.properties||{}).open}},81994:function(Ne,Q,S){"use strict";S.d(Q,{h:function(){return T},s:function(){return I}});var B=S(58222),Z=S(11630);const s=/[#.]/g;function C(R,N){const k=R||"",L={};let H=0,D,V;for(;H<k.length;){s.lastIndex=H;const P=s.exec(k),U=k.slice(H,P?P.index:k.length);U&&(D?D==="#"?L.id=U:Array.isArray(L.className)?L.className.push(U):L.className=[U]:V=U,H+=U.length),P&&(D=P[0],H++)}return{type:"element",tagName:V||N||"div",properties:L,children:[]}}var A=S(84837),u=S(64326),p=S(71523);function b(R,N,k){const L=k?m(k):void 0;function H(D,V,...P){let U;if(D==null){U={type:"root",children:[]};const G=V;P.unshift(G)}else{U=C(D,N);const G=U.tagName.toLowerCase(),J=L?L.get(G):void 0;if(U.tagName=J||G,g(V))P.unshift(V);else for(const[ee,ae]of Object.entries(V))y(R,U.properties,ee,ae)}for(const G of P)v(U.children,G);return U.type==="element"&&U.tagName==="template"&&(U.content={type:"root",children:U.children},U.children=[]),U}return H}function g(R){if(R===null||typeof R!="object"||Array.isArray(R))return!0;if(typeof R.type!="string")return!1;const N=R,k=Object.keys(R);for(const L of k){const H=N[L];if(H&&typeof H=="object"){if(!Array.isArray(H))return!0;const D=H;for(const V of D)if(typeof V!="number"&&typeof V!="string")return!0}}return!!("children"in R&&Array.isArray(R.children))}function y(R,N,k,L){const H=(0,A.s)(R,k);let D;if(L!=null){if(typeof L=="number"){if(Number.isNaN(L))return;D=L}else typeof L=="boolean"?D=L:typeof L=="string"?H.spaceSeparated?D=(0,p.Q)(L):H.commaSeparated?D=(0,Z.Q)(L):H.commaOrSpaceSeparated?D=(0,p.Q)((0,Z.Q)(L).join(" ")):D=c(H,H.property,L):Array.isArray(L)?D=[...L]:D=H.property==="style"?h(L):String(L);if(Array.isArray(D)){const V=[];for(const P of D)V.push(c(H,H.property,P));D=V}H.property==="className"&&Array.isArray(N.className)&&(D=N.className.concat(D)),N[H.property]=D}}function v(R,N){if(N!=null)if(typeof N=="number"||typeof N=="string")R.push({type:"text",value:String(N)});else if(Array.isArray(N))for(const k of N)v(R,k);else if(typeof N=="object"&&"type"in N)N.type==="root"?v(R,N.children):R.push(N);else throw new Error("Expected node, nodes, or string, got `"+N+"`")}function c(R,N,k){if(typeof k=="string"){if(R.number&&k&&!Number.isNaN(Number(k)))return Number(k);if((R.boolean||R.overloadedBoolean)&&(k===""||(0,u.F)(k)===(0,u.F)(N)))return!0}return k}function h(R){const N=[];for(const[k,L]of Object.entries(R))N.push([k,L].join(": "));return N.join("; ")}function m(R){const N=new Map;for(const k of R)N.set(k.toLowerCase(),k);return N}const E=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],T=b(B.dy,"div"),I=b(B.YP,"g",E)},26735:function(Ne,Q,S){"use strict";S.d(Q,{f:function(){return Z}});var B=S(80722);function Z(s,C,A,u){const p=u?u-1:Number.POSITIVE_INFINITY;let b=0;return g;function g(v){return(0,B.xz)(v)?(s.enter(A),y(v)):C(v)}function y(v){return(0,B.xz)(v)&&b++<p?(s.consume(v),y):(s.exit(A),C(v))}}},80722:function(Ne,Q,S){"use strict";S.d(Q,{AF:function(){return u},Av:function(){return C},B8:function(){return c},Ch:function(){return b},H$:function(){return Z},Xh:function(){return v},jv:function(){return B},n9:function(){return s},pY:function(){return A},sR:function(){return p},xz:function(){return y},z3:function(){return g}});const B=h(/[A-Za-z]/),Z=h(/[\dA-Za-z]/),s=h(/[#-'*+\--9=?A-Z^-~]/);function C(m){return m!==null&&(m<32||m===127)}const A=h(/\d/),u=h(/[\dA-Fa-f]/),p=h(/[!-/:-@[-`{-~]/);function b(m){return m!==null&&m<-2}function g(m){return m!==null&&(m<0||m===32)}function y(m){return m===-2||m===-1||m===32}const v=h(new RegExp("\\p{P}|\\p{S}","u")),c=h(/\s/);function h(m){return E;function E(T){return T!==null&&T>-1&&m.test(String.fromCharCode(T))}}},58222:function(Ne,Q,S){"use strict";S.d(Q,{dy:function(){return E},YP:function(){return T}});class B{constructor(R,N,k){this.normal=N,this.property=R,k&&(this.space=k)}}B.prototype.normal={},B.prototype.property={},B.prototype.space=void 0;function Z(I,R){const N={},k={};for(const L of I)Object.assign(N,L.property),Object.assign(k,L.normal);return new B(N,k,R)}var s=S(64326),C=S(95516);function A(I){const R={},N={};for(const[k,L]of Object.entries(I.properties)){const H=new C.I(k,I.transform(I.attributes||{},k),L,I.space);I.mustUseProperty&&I.mustUseProperty.includes(k)&&(H.mustUseProperty=!0),R[k]=H,N[(0,s.F)(k)]=k,N[(0,s.F)(H.attribute)]=k}return new B(R,N,I.space)}var u=S(56488);const p=A({properties:{ariaActiveDescendant:null,ariaAtomic:u.booleanish,ariaAutoComplete:null,ariaBusy:u.booleanish,ariaChecked:u.booleanish,ariaColCount:u.number,ariaColIndex:u.number,ariaColSpan:u.number,ariaControls:u.spaceSeparated,ariaCurrent:null,ariaDescribedBy:u.spaceSeparated,ariaDetails:null,ariaDisabled:u.booleanish,ariaDropEffect:u.spaceSeparated,ariaErrorMessage:null,ariaExpanded:u.booleanish,ariaFlowTo:u.spaceSeparated,ariaGrabbed:u.booleanish,ariaHasPopup:null,ariaHidden:u.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u.spaceSeparated,ariaLevel:u.number,ariaLive:null,ariaModal:u.booleanish,ariaMultiLine:u.booleanish,ariaMultiSelectable:u.booleanish,ariaOrientation:null,ariaOwns:u.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:u.number,ariaPressed:u.booleanish,ariaReadOnly:u.booleanish,ariaRelevant:null,ariaRequired:u.booleanish,ariaRoleDescription:u.spaceSeparated,ariaRowCount:u.number,ariaRowIndex:u.number,ariaRowSpan:u.number,ariaSelected:u.booleanish,ariaSetSize:u.number,ariaSort:null,ariaValueMax:u.number,ariaValueMin:u.number,ariaValueNow:u.number,ariaValueText:null,role:null},transform(I,R){return R==="role"?R:"aria-"+R.slice(4).toLowerCase()}});function b(I,R){return R in I?I[R]:R}function g(I,R){return b(I,R.toLowerCase())}const y=A({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:u.commaSeparated,acceptCharset:u.spaceSeparated,accessKey:u.spaceSeparated,action:null,allow:null,allowFullScreen:u.boolean,allowPaymentRequest:u.boolean,allowUserMedia:u.boolean,alt:null,as:null,async:u.boolean,autoCapitalize:null,autoComplete:u.spaceSeparated,autoFocus:u.boolean,autoPlay:u.boolean,blocking:u.spaceSeparated,capture:null,charSet:null,checked:u.boolean,cite:null,className:u.spaceSeparated,cols:u.number,colSpan:null,content:null,contentEditable:u.booleanish,controls:u.boolean,controlsList:u.spaceSeparated,coords:u.number|u.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:u.boolean,defer:u.boolean,dir:null,dirName:null,disabled:u.boolean,download:u.overloadedBoolean,draggable:u.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:u.boolean,formTarget:null,headers:u.spaceSeparated,height:u.number,hidden:u.boolean,high:u.number,href:null,hrefLang:null,htmlFor:u.spaceSeparated,httpEquiv:u.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:u.boolean,inputMode:null,integrity:null,is:null,isMap:u.boolean,itemId:null,itemProp:u.spaceSeparated,itemRef:u.spaceSeparated,itemScope:u.boolean,itemType:u.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:u.boolean,low:u.number,manifest:null,max:null,maxLength:u.number,media:null,method:null,min:null,minLength:u.number,multiple:u.boolean,muted:u.boolean,name:null,nonce:null,noModule:u.boolean,noValidate:u.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:u.boolean,optimum:u.number,pattern:null,ping:u.spaceSeparated,placeholder:null,playsInline:u.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:u.boolean,referrerPolicy:null,rel:u.spaceSeparated,required:u.boolean,reversed:u.boolean,rows:u.number,rowSpan:u.number,sandbox:u.spaceSeparated,scope:null,scoped:u.boolean,seamless:u.boolean,selected:u.boolean,shadowRootClonable:u.boolean,shadowRootDelegatesFocus:u.boolean,shadowRootMode:null,shape:null,size:u.number,sizes:null,slot:null,span:u.number,spellCheck:u.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:u.number,step:null,style:null,tabIndex:u.number,target:null,title:null,translate:null,type:null,typeMustMatch:u.boolean,useMap:null,value:u.booleanish,width:u.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:u.spaceSeparated,axis:null,background:null,bgColor:null,border:u.number,borderColor:null,bottomMargin:u.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:u.boolean,declare:u.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:u.number,leftMargin:u.number,link:null,longDesc:null,lowSrc:null,marginHeight:u.number,marginWidth:u.number,noResize:u.boolean,noHref:u.boolean,noShade:u.boolean,noWrap:u.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:u.number,rules:null,scheme:null,scrolling:u.booleanish,standby:null,summary:null,text:null,topMargin:u.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:u.boolean,disableRemotePlayback:u.boolean,prefix:null,property:null,results:u.number,security:null,unselectable:null},space:"html",transform:g}),v=A({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:u.commaOrSpaceSeparated,accentHeight:u.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:u.number,amplitude:u.number,arabicForm:null,ascent:u.number,attributeName:null,attributeType:null,azimuth:u.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:u.number,by:null,calcMode:null,capHeight:u.number,className:u.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:u.number,diffuseConstant:u.number,direction:null,display:null,dur:null,divisor:u.number,dominantBaseline:null,download:u.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:u.number,enableBackground:null,end:null,event:null,exponent:u.number,externalResourcesRequired:null,fill:null,fillOpacity:u.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:u.commaSeparated,g2:u.commaSeparated,glyphName:u.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:u.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:u.number,horizOriginX:u.number,horizOriginY:u.number,id:null,ideographic:u.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:u.number,k:u.number,k1:u.number,k2:u.number,k3:u.number,k4:u.number,kernelMatrix:u.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:u.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:u.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:u.number,overlineThickness:u.number,paintOrder:null,panose1:null,path:null,pathLength:u.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:u.number,pointsAtY:u.number,pointsAtZ:u.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:u.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:u.commaOrSpaceSeparated,rev:u.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:u.commaOrSpaceSeparated,requiredFeatures:u.commaOrSpaceSeparated,requiredFonts:u.commaOrSpaceSeparated,requiredFormats:u.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:u.number,specularExponent:u.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:u.number,strikethroughThickness:u.number,string:null,stroke:null,strokeDashArray:u.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:u.number,strokeOpacity:u.number,strokeWidth:null,style:null,surfaceScale:u.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:u.commaOrSpaceSeparated,tabIndex:u.number,tableValues:null,target:null,targetX:u.number,targetY:u.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:u.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:u.number,underlineThickness:u.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:u.number,values:null,vAlphabetic:u.number,vMathematical:u.number,vectorEffect:null,vHanging:u.number,vIdeographic:u.number,version:null,vertAdvY:u.number,vertOriginX:u.number,vertOriginY:u.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:u.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:b}),c=A({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(I,R){return"xlink:"+R.slice(5).toLowerCase()}}),h=A({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:g}),m=A({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(I,R){return"xml:"+R.slice(3).toLowerCase()}}),E=Z([p,y,c,h,m],"html"),T=Z([p,v,c,h,m],"svg")},84837:function(Ne,Q,S){"use strict";S.d(Q,{s:function(){return p}});var B=S(95516),Z=S(56038),s=S(64326);const C=/[A-Z]/g,A=/-[a-z]/g,u=/^data[-\w.:]+$/i;function p(y,v){const c=(0,s.F)(v);let h=v,m=Z.k;if(c in y.normal)return y.property[y.normal[c]];if(c.length>4&&c.slice(0,4)==="data"&&u.test(v)){if(v.charAt(4)==="-"){const E=v.slice(5).replace(A,g);h="data"+E.charAt(0).toUpperCase()+E.slice(1)}else{const E=v.slice(4);if(!A.test(E)){let T=E.replace(C,b);T.charAt(0)!=="-"&&(T="-"+T),v="data"+T}}m=B.I}return new m(h,v)}function b(y){return"-"+y.toLowerCase()}function g(y){return y.charAt(1).toUpperCase()}},64326:function(Ne,Q,S){"use strict";S.d(Q,{F:function(){return B}});function B(Z){return Z.toLowerCase()}},95516:function(Ne,Q,S){"use strict";S.d(Q,{I:function(){return C}});var B=S(56038),Z=S(56488);const s=Object.keys(Z);class C extends B.k{constructor(p,b,g,y){let v=-1;if(super(p,b),A(this,"space",y),typeof g=="number")for(;++v<s.length;){const c=s[v];A(this,s[v],(g&Z[c])===Z[c])}}}C.prototype.defined=!0;function A(u,p,b){b&&(u[p]=b)}},56038:function(Ne,Q,S){"use strict";S.d(Q,{k:function(){return B}});class B{constructor(s,C){this.attribute=C,this.property=s}}B.prototype.attribute="",B.prototype.booleanish=!1,B.prototype.boolean=!1,B.prototype.commaOrSpaceSeparated=!1,B.prototype.commaSeparated=!1,B.prototype.defined=!1,B.prototype.mustUseProperty=!1,B.prototype.number=!1,B.prototype.overloadedBoolean=!1,B.prototype.property="",B.prototype.spaceSeparated=!1,B.prototype.space=void 0},56488:function(Ne,Q,S){"use strict";S.r(Q),S.d(Q,{boolean:function(){return Z},booleanish:function(){return s},commaOrSpaceSeparated:function(){return b},commaSeparated:function(){return p},number:function(){return A},overloadedBoolean:function(){return C},spaceSeparated:function(){return u}});let B=0;const Z=g(),s=g(),C=g(),A=g(),u=g(),p=g(),b=g();function g(){return o0(2,++B)}},96536:function(Ne,Q,S){"use strict";S.d(Q,{UG:function(){return ks}});var B={};S.r(B),S.d(B,{attentionMarkers:function(){return yo},contentInitial:function(){return Ts},disable:function(){return Ho},document:function(){return Vi},flow:function(){return js},flowInitial:function(){return ds},insideSpan:function(){return Ki},string:function(){return _s},text:function(){return ar}});var Z=S(87342),s=S(11630);const C=/[$_\p{ID_Start}]/u,A=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,u=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,p=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,b=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,g={};function y(te){return te?C.test(String.fromCodePoint(te)):!1}function v(te,Se){const je=(Se||g).jsx?u:A;return te?je.test(String.fromCodePoint(te)):!1}function c(te,Se){return((Se||g).jsx?b:p).test(te)}const h=/[ \t\n\f\r]/g;function m(te){return typeof te=="object"?te.type==="text"?E(te.value):!1:E(te)}function E(te){return te.replace(h,"")===""}var T=S(58222),I=S(84837);const R={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var N=S(71523),k=S(77179),L=S(17970);function H(te){return!te||typeof te!="object"?"":"position"in te||"type"in te?V(te.position):"start"in te||"end"in te?V(te):"line"in te||"column"in te?D(te):""}function D(te){return P(te&&te.line)+":"+P(te&&te.column)}function V(te){return D(te&&te.start)+"-"+D(te&&te.end)}function P(te){return te&&typeof te=="number"?te:1}class U extends Error{constructor(Se,ke,je){super(),typeof ke=="string"&&(je=ke,ke=void 0);let Je="",Qe={},ct=!1;if(ke&&("line"in ke&&"column"in ke?Qe={place:ke}:"start"in ke&&"end"in ke?Qe={place:ke}:"type"in ke?Qe={ancestors:[ke],place:ke.position}:Qe=eo({},ke)),typeof Se=="string"?Je=Se:!Qe.cause&&Se&&(ct=!0,Je=Se.message,Qe.cause=Se),!Qe.ruleId&&!Qe.source&&typeof je=="string"){const zt=je.indexOf(":");zt===-1?Qe.ruleId=je:(Qe.source=je.slice(0,zt),Qe.ruleId=je.slice(zt+1))}if(!Qe.place&&Qe.ancestors&&Qe.ancestors){const zt=Qe.ancestors[Qe.ancestors.length-1];zt&&(Qe.place=zt.position)}const mt=Qe.place&&"start"in Qe.place?Qe.place.start:Qe.place;this.ancestors=Qe.ancestors||void 0,this.cause=Qe.cause||void 0,this.column=mt?mt.column:void 0,this.fatal=void 0,this.file,this.message=Je,this.line=mt?mt.line:void 0,this.name=H(Qe.place)||"1:1",this.place=Qe.place||void 0,this.reason=this.message,this.ruleId=Qe.ruleId||void 0,this.source=Qe.source||void 0,this.stack=ct&&Qe.cause&&typeof Qe.cause.stack=="string"?Qe.cause.stack:"",this.actual,this.expected,this.note,this.url}}U.prototype.file="",U.prototype.name="",U.prototype.reason="",U.prototype.message="",U.prototype.stack="",U.prototype.column=void 0,U.prototype.line=void 0,U.prototype.ancestors=void 0,U.prototype.cause=void 0,U.prototype.fatal=void 0,U.prototype.place=void 0,U.prototype.ruleId=void 0,U.prototype.source=void 0;const G={}.hasOwnProperty,J=new Map,ee=/[A-Z]/g,ae=new Set(["table","tbody","thead","tfoot","tr"]),oe=new Set(["td","th"]),ue="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function se(te,Se){if(!Se||Se.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const ke=Se.filePath||void 0;let je;if(Se.development){if(typeof Se.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");je=De(ke,Se.jsxDEV)}else{if(typeof Se.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof Se.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");je=Pe(ke,Se.jsx,Se.jsxs)}const Je={Fragment:Se.Fragment,ancestors:[],components:Se.components||{},create:je,elementAttributeNameCase:Se.elementAttributeNameCase||"react",evaluater:Se.createEvaluater?Se.createEvaluater():void 0,filePath:ke,ignoreInvalidStyle:Se.ignoreInvalidStyle||!1,passKeys:Se.passKeys!==!1,passNode:Se.passNode||!1,schema:Se.space==="svg"?T.YP:T.dy,stylePropertyNameCase:Se.stylePropertyNameCase||"dom",tableCellAlignToStyle:Se.tableCellAlignToStyle!==!1},Qe=ye(Je,te,void 0);return Qe&&typeof Qe!="string"?Qe:Je.create(te,Je.Fragment,{children:Qe||void 0},void 0)}function ye(te,Se,ke){if(Se.type==="element")return ve(te,Se,ke);if(Se.type==="mdxFlowExpression"||Se.type==="mdxTextExpression")return Re(te,Se);if(Se.type==="mdxJsxFlowElement"||Se.type==="mdxJsxTextElement")return xe(te,Se,ke);if(Se.type==="mdxjsEsm")return le(te,Se);if(Se.type==="root")return pe(te,Se,ke);if(Se.type==="text")return Me(te,Se)}function ve(te,Se,ke){const je=te.schema;let Je=je;Se.tagName.toLowerCase()==="svg"&&je.space==="html"&&(Je=T.YP,te.schema=Je),te.ancestors.push(Se);const Qe=Ee(te,Se.tagName,!1),ct=Ke(te,Se);let mt=it(te,Se);return ae.has(Se.tagName)&&(mt=mt.filter(function(zt){return typeof zt=="string"?!m(zt):!0})),Oe(te,ct,Qe,Se),Le(ct,mt),te.ancestors.pop(),te.schema=je,te.create(Se,Qe,ct,ke)}function Re(te,Se){if(Se.data&&Se.data.estree&&te.evaluater){const je=Se.data.estree.body[0];return(0,Z.ok)(je.type==="ExpressionStatement"),te.evaluater.evaluateExpression(je.expression)}fe(te,Se.position)}function le(te,Se){if(Se.data&&Se.data.estree&&te.evaluater)return te.evaluater.evaluateProgram(Se.data.estree);fe(te,Se.position)}function xe(te,Se,ke){const je=te.schema;let Je=je;Se.name==="svg"&&je.space==="html"&&(Je=T.YP,te.schema=Je),te.ancestors.push(Se);const Qe=Se.name===null?te.Fragment:Ee(te,Se.name,!0),ct=ze(te,Se),mt=it(te,Se);return Oe(te,ct,Qe,Se),Le(ct,mt),te.ancestors.pop(),te.schema=je,te.create(Se,Qe,ct,ke)}function pe(te,Se,ke){const je={};return Le(je,it(te,Se)),te.create(Se,te.Fragment,je,ke)}function Me(te,Se){return Se.value}function Oe(te,Se,ke,je){typeof ke!="string"&&ke!==te.Fragment&&te.passNode&&(Se.node=je)}function Le(te,Se){if(Se.length>0){const ke=Se.length>1?Se:Se[0];ke&&(te.children=ke)}}function Pe(te,Se,ke){return je;function je(Je,Qe,ct,mt){const Yt=Array.isArray(ct.children)?ke:Se;return mt?Yt(Qe,ct,mt):Yt(Qe,ct)}}function De(te,Se){return ke;function ke(je,Je,Qe,ct){const mt=Array.isArray(Qe.children),zt=(0,L.Pk)(je);return Se(Je,Qe,ct,mt,{columnNumber:zt?zt.column-1:void 0,fileName:te,lineNumber:zt?zt.line:void 0},void 0)}}function Ke(te,Se){const ke={};let je,Je;for(Je in Se.properties)if(Je!=="children"&&G.call(Se.properties,Je)){const Qe=ot(te,Je,Se.properties[Je]);if(Qe){const[ct,mt]=Qe;te.tableCellAlignToStyle&&ct==="align"&&typeof mt=="string"&&oe.has(Se.tagName)?je=mt:ke[ct]=mt}}if(je){const Qe=ke.style||(ke.style={});Qe[te.stylePropertyNameCase==="css"?"text-align":"textAlign"]=je}return ke}function ze(te,Se){const ke={};for(const je of Se.attributes)if(je.type==="mdxJsxExpressionAttribute")if(je.data&&je.data.estree&&te.evaluater){const Qe=je.data.estree.body[0];(0,Z.ok)(Qe.type==="ExpressionStatement");const ct=Qe.expression;(0,Z.ok)(ct.type==="ObjectExpression");const mt=ct.properties[0];(0,Z.ok)(mt.type==="SpreadElement"),Object.assign(ke,te.evaluater.evaluateExpression(mt.argument))}else fe(te,Se.position);else{const Je=je.name;let Qe;if(je.value&&typeof je.value=="object")if(je.value.data&&je.value.data.estree&&te.evaluater){const mt=je.value.data.estree.body[0];(0,Z.ok)(mt.type==="ExpressionStatement"),Qe=te.evaluater.evaluateExpression(mt.expression)}else fe(te,Se.position);else Qe=je.value===null?!0:je.value;ke[Je]=Qe}return ke}function it(te,Se){const ke=[];let je=-1;const Je=te.passKeys?new Map:J;for(;++je<Se.children.length;){const Qe=Se.children[je];let ct;if(te.passKeys){const zt=Qe.type==="element"?Qe.tagName:Qe.type==="mdxJsxFlowElement"||Qe.type==="mdxJsxTextElement"?Qe.name:void 0;if(zt){const Yt=Je.get(zt)||0;ct=zt+"-"+Yt,Je.set(zt,Yt+1)}}const mt=ye(te,Qe,ct);mt!==void 0&&ke.push(mt)}return ke}function ot(te,Se,ke){const je=(0,I.s)(te.schema,Se);if(!(ke==null||typeof ke=="number"&&Number.isNaN(ke))){if(Array.isArray(ke)&&(ke=je.commaSeparated?(0,s.P)(ke):(0,N.P)(ke)),je.property==="style"){let Je=typeof ke=="object"?ke:Ge(te,String(ke));return te.stylePropertyNameCase==="css"&&(Je=z(Je)),["style",Je]}return[te.elementAttributeNameCase==="react"&&je.space?R[je.property]||je.property:je.attribute,ke]}}function Ge(te,Se){try{return k(Se,{reactCompat:!0})}catch(ke){if(te.ignoreInvalidStyle)return{};const je=ke,Je=new U("Cannot parse `style` attribute",{ancestors:te.ancestors,cause:je,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw Je.file=te.filePath||void 0,Je.url=ue+"#cannot-parse-style-attribute",Je}}function Ee(te,Se,ke){let je;if(!ke)je={type:"Literal",value:Se};else if(Se.includes(".")){const Je=Se.split(".");let Qe=-1,ct;for(;++Qe<Je.length;){const mt=c(Je[Qe])?{type:"Identifier",name:Je[Qe]}:{type:"Literal",value:Je[Qe]};ct=ct?{type:"MemberExpression",object:ct,property:mt,computed:!!(Qe&&mt.type==="Literal"),optional:!1}:mt}(0,Z.ok)(ct,"always a result"),je=ct}else je=c(Se)&&!/^[a-z]/.test(Se)?{type:"Identifier",name:Se}:{type:"Literal",value:Se};if(je.type==="Literal"){const Je=je.value;return G.call(te.components,Je)?te.components[Je]:Je}if(te.evaluater)return te.evaluater.evaluateExpression(je);fe(te)}function fe(te,Se){const ke=new U("Cannot handle MDX estrees without `createEvaluater`",{ancestors:te.ancestors,place:Se,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw ke.file=te.filePath||void 0,ke.url=ue+"#cannot-handle-mdx-estrees-without-createevaluater",ke}function z(te){const Se={};let ke;for(ke in te)G.call(te,ke)&&(Se[X(ke)]=te[ke]);return Se}function X(te){let Se=te.replace(ee,de);return Se.slice(0,3)==="ms-"&&(Se="-"+Se),Se}function de(te){return"-"+te.toLowerCase()}const Ce={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ne=S(37712),re=S(59301);const he={};function _e(te,Se){const ke=Se||he,je=typeof ke.includeImageAlt=="boolean"?ke.includeImageAlt:!0,Je=typeof ke.includeHtml=="boolean"?ke.includeHtml:!0;return Be(te,je,Je)}function Be(te,Se,ke){if(rt(te)){if("value"in te)return te.type==="html"&&!ke?"":te.value;if(Se&&"alt"in te&&te.alt)return te.alt;if("children"in te)return Ue(te.children,Se,ke)}return Array.isArray(te)?Ue(te,Se,ke):""}function Ue(te,Se,ke){const je=[];let Je=-1;for(;++Je<te.length;)je[Je]=Be(te[Je],Se,ke);return je.join("")}function rt(te){return!!(te&&typeof te=="object")}function et(te,Se,ke,je){const Je=te.length;let Qe=0,ct;if(Se<0?Se=-Se>Je?0:Je+Se:Se=Se>Je?Je:Se,ke=ke>0?ke:0,je.length<1e4)ct=Array.from(je),ct.unshift(Se,ke),te.splice(...ct);else for(ke&&te.splice(Se,ke);Qe<je.length;)ct=je.slice(Qe,Qe+1e4),ct.unshift(Se,0),te.splice(...ct),Qe+=1e4,Se+=1e4}function dt(te,Se){return te.length>0?(et(te,te.length,0,Se),te):Se}class Ot{constructor(Se){this.left=Se?[...Se]:[],this.right=[]}get(Se){if(Se<0||Se>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+Se+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return Se<this.left.length?this.left[Se]:this.right[this.right.length-Se+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(Se,ke){const je=ke==null?Number.POSITIVE_INFINITY:ke;return je<this.left.length?this.left.slice(Se,je):Se>this.left.length?this.right.slice(this.right.length-je+this.left.length,this.right.length-Se+this.left.length).reverse():this.left.slice(Se).concat(this.right.slice(this.right.length-je+this.left.length).reverse())}splice(Se,ke,je){const Je=ke||0;this.setCursor(Math.trunc(Se));const Qe=this.right.splice(this.right.length-Je,Number.POSITIVE_INFINITY);return je&&pt(this.left,je),Qe.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(Se){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(Se)}pushMany(Se){this.setCursor(Number.POSITIVE_INFINITY),pt(this.left,Se)}unshift(Se){this.setCursor(0),this.right.push(Se)}unshiftMany(Se){this.setCursor(0),pt(this.right,Se.reverse())}setCursor(Se){if(!(Se===this.left.length||Se>this.left.length&&this.right.length===0||Se<0&&this.left.length===0))if(Se<this.left.length){const ke=this.left.splice(Se,Number.POSITIVE_INFINITY);pt(this.right,ke.reverse())}else{const ke=this.right.splice(this.left.length+this.right.length-Se,Number.POSITIVE_INFINITY);pt(this.left,ke.reverse())}}}function pt(te,Se){let ke=0;if(Se.length<1e4)te.push(...Se);else for(;ke<Se.length;)te.push(...Se.slice(ke,ke+1e4)),ke+=1e4}function nt(te){const Se={};let ke=-1,je,Je,Qe,ct,mt,zt,Yt;const Lt=new Ot(te);for(;++ke<Lt.length;){for(;ke in Se;)ke=Se[ke];if(je=Lt.get(ke),ke&&je[1].type==="chunkFlow"&&Lt.get(ke-1)[1].type==="listItemPrefix"&&(zt=je[1]._tokenizer.events,Qe=0,Qe<zt.length&&zt[Qe][1].type==="lineEndingBlank"&&(Qe+=2),Qe<zt.length&&zt[Qe][1].type==="content"))for(;++Qe<zt.length&&zt[Qe][1].type!=="content";)zt[Qe][1].type==="chunkText"&&(zt[Qe][1]._isInFirstContentOfListItem=!0,Qe++);if(je[0]==="enter")je[1].contentType&&(Object.assign(Se,ut(Lt,ke)),ke=Se[ke],Yt=!0);else if(je[1]._container){for(Qe=ke,Je=void 0;Qe--;)if(ct=Lt.get(Qe),ct[1].type==="lineEnding"||ct[1].type==="lineEndingBlank")ct[0]==="enter"&&(Je&&(Lt.get(Je)[1].type="lineEndingBlank"),ct[1].type="lineEnding",Je=Qe);else if(!(ct[1].type==="linePrefix"||ct[1].type==="listItemIndent"))break;Je&&(je[1].end=eo({},Lt.get(Je)[1].start),mt=Lt.slice(Je,ke),mt.unshift(je),Lt.splice(Je,ke-Je+1,mt))}}return et(te,0,Number.POSITIVE_INFINITY,Lt.slice(0)),!Yt}function ut(te,Se){const ke=te.get(Se)[1],je=te.get(Se)[2];let Je=Se-1;const Qe=[];let ct=ke._tokenizer;ct||(ct=je.parser[ke.contentType](ke.start),ke._contentTypeTextTrailing&&(ct._contentTypeTextTrailing=!0));const mt=ct.events,zt=[],Yt={};let Lt,ln,on=-1,Pt=ke,Ur=0,fi=0;const Ni=[fi];for(;Pt;){for(;te.get(++Je)[1]!==Pt;);Qe.push(Je),Pt._tokenizer||(Lt=je.sliceStream(Pt),Pt.next||Lt.push(null),ln&&ct.defineSkip(Pt.start),Pt._isInFirstContentOfListItem&&(ct._gfmTasklistFirstContentOfListItem=!0),ct.write(Lt),Pt._isInFirstContentOfListItem&&(ct._gfmTasklistFirstContentOfListItem=void 0)),ln=Pt,Pt=Pt.next}for(Pt=ke;++on<mt.length;)mt[on][0]==="exit"&&mt[on-1][0]==="enter"&&mt[on][1].type===mt[on-1][1].type&&mt[on][1].start.line!==mt[on][1].end.line&&(fi=on+1,Ni.push(fi),Pt._tokenizer=void 0,Pt.previous=void 0,Pt=Pt.next);for(ct.events=[],Pt?(Pt._tokenizer=void 0,Pt.previous=void 0):Ni.pop(),on=Ni.length;on--;){const mr=mt.slice(Ni[on],Ni[on+1]),Wr=Qe.pop();zt.push([Wr,Wr+mr.length-1]),te.splice(Wr,2,mr)}for(zt.reverse(),on=-1;++on<zt.length;)Yt[Ur+zt[on][0]]=Ur+zt[on][1],Ur+=zt[on][1]-zt[on][0]-1;return Yt}function Tt(te){for(;!nt(te););return te}const vt={}.hasOwnProperty;function Ct(te){const Se={};let ke=-1;for(;++ke<te.length;)Ft(Se,te[ke]);return Se}function Ft(te,Se){let ke;for(ke in Se){const Je=(vt.call(te,ke)?te[ke]:void 0)||(te[ke]={}),Qe=Se[ke];let ct;if(Qe)for(ct in Qe){vt.call(Je,ct)||(Je[ct]=[]);const mt=Qe[ct];Rt(Je[ct],Array.isArray(mt)?mt:mt?[mt]:[])}}}function Rt(te,Se){let ke=-1;const je=[];for(;++ke<Se.length;)(Se[ke].add==="after"?te:je).push(Se[ke]);et(te,0,0,je)}function $e(te){const Se={};let ke=-1;for(;++ke<te.length;)Zt(Se,te[ke]);return Se}function Zt(te,Se){let ke;for(ke in Se){const Je=(vt.call(te,ke)?te[ke]:void 0)||(te[ke]={}),Qe=Se[ke];let ct;if(Qe)for(ct in Qe)Je[ct]=Qe[ct]}}var vn=S(26735),wt=S(80722);const Dn={tokenize:nr};function nr(te){const Se=te.attempt(this.parser.constructs.contentInitial,je,Je);let ke;return Se;function je(mt){if(mt===null){te.consume(mt);return}return te.enter("lineEnding"),te.consume(mt),te.exit("lineEnding"),(0,vn.f)(te,Se,"linePrefix")}function Je(mt){return te.enter("paragraph"),Qe(mt)}function Qe(mt){const zt=te.enter("chunkText",{contentType:"text",previous:ke});return ke&&(ke.next=zt),ke=zt,ct(mt)}function ct(mt){if(mt===null){te.exit("chunkText"),te.exit("paragraph"),te.consume(mt);return}return(0,wt.Ch)(mt)?(te.consume(mt),te.exit("chunkText"),Qe):(te.consume(mt),ct)}}const Qn={tokenize:br},jt={tokenize:dr};function br(te){const Se=this,ke=[];let je=0,Je,Qe,ct;return mt;function mt(ti){if(je<ke.length){const No=ke[je];return Se.containerState=No[1],te.attempt(No[0].continuation,zt,Yt)(ti)}return Yt(ti)}function zt(ti){if(je++,Se.containerState._closeFlow){Se.containerState._closeFlow=void 0,Je&&Wr();const No=Se.events.length;let Io=No,tr;for(;Io--;)if(Se.events[Io][0]==="exit"&&Se.events[Io][1].type==="chunkFlow"){tr=Se.events[Io][1].end;break}mr(je);let Mo=No;for(;Mo<Se.events.length;)Se.events[Mo][1].end=eo({},tr),Mo++;return et(Se.events,Io+1,0,Se.events.slice(No)),Se.events.length=Mo,Yt(ti)}return mt(ti)}function Yt(ti){if(je===ke.length){if(!Je)return on(ti);if(Je.currentConstruct&&Je.currentConstruct.concrete)return Ur(ti);Se.interrupt=!!(Je.currentConstruct&&!Je._gfmTableDynamicInterruptHack)}return Se.containerState={},te.check(jt,Lt,ln)(ti)}function Lt(ti){return Je&&Wr(),mr(je),on(ti)}function ln(ti){return Se.parser.lazy[Se.now().line]=je!==ke.length,ct=Se.now().offset,Ur(ti)}function on(ti){return Se.containerState={},te.attempt(jt,Pt,Ur)(ti)}function Pt(ti){return je++,ke.push([Se.currentConstruct,Se.containerState]),on(ti)}function Ur(ti){if(ti===null){Je&&Wr(),mr(0),te.consume(ti);return}return Je=Je||Se.parser.flow(Se.now()),te.enter("chunkFlow",{_tokenizer:Je,contentType:"flow",previous:Qe}),fi(ti)}function fi(ti){if(ti===null){Ni(te.exit("chunkFlow"),!0),mr(0),te.consume(ti);return}return(0,wt.Ch)(ti)?(te.consume(ti),Ni(te.exit("chunkFlow")),je=0,Se.interrupt=void 0,mt):(te.consume(ti),fi)}function Ni(ti,No){const Io=Se.sliceStream(ti);if(No&&Io.push(null),ti.previous=Qe,Qe&&(Qe.next=ti),Qe=ti,Je.defineSkip(ti.start),Je.write(Io),Se.parser.lazy[ti.start.line]){let tr=Je.events.length;for(;tr--;)if(Je.events[tr][1].start.offset<ct&&(!Je.events[tr][1].end||Je.events[tr][1].end.offset>ct))return;const Mo=Se.events.length;let ss=Mo,wo,Dr;for(;ss--;)if(Se.events[ss][0]==="exit"&&Se.events[ss][1].type==="chunkFlow"){if(wo){Dr=Se.events[ss][1].end;break}wo=!0}for(mr(je),tr=Mo;tr<Se.events.length;)Se.events[tr][1].end=eo({},Dr),tr++;et(Se.events,ss+1,0,Se.events.slice(Mo)),Se.events.length=tr}}function mr(ti){let No=ke.length;for(;No-- >ti;){const Io=ke[No];Se.containerState=Io[1],Io[0].exit.call(Se,te)}ke.length=ti}function Wr(){Je.write([null]),Qe=void 0,Je=void 0,Se.containerState._closeFlow=void 0}}function dr(te,Se,ke){return(0,vn.f)(te,te.attempt(this.parser.constructs.document,Se,ke),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const zn={partial:!0,tokenize:$n};function $n(te,Se,ke){return je;function je(Qe){return(0,wt.xz)(Qe)?(0,vn.f)(te,Je,"linePrefix")(Qe):Je(Qe)}function Je(Qe){return Qe===null||(0,wt.Ch)(Qe)?Se(Qe):ke(Qe)}}const Er={resolve:jn,tokenize:Cn},me={partial:!0,tokenize:qn};function jn(te){return nt(te),te}function Cn(te,Se){let ke;return je;function je(mt){return te.enter("content"),ke=te.enter("chunkContent",{contentType:"content"}),Je(mt)}function Je(mt){return mt===null?Qe(mt):(0,wt.Ch)(mt)?te.check(me,ct,Qe)(mt):(te.consume(mt),Je)}function Qe(mt){return te.exit("chunkContent"),te.exit("content"),Se(mt)}function ct(mt){return te.consume(mt),te.exit("chunkContent"),ke.next=te.enter("chunkContent",{contentType:"content",previous:ke}),ke=ke.next,Je}}function qn(te,Se,ke){const je=this;return Je;function Je(ct){return te.exit("chunkContent"),te.enter("lineEnding"),te.consume(ct),te.exit("lineEnding"),(0,vn.f)(te,Qe,"linePrefix")}function Qe(ct){if(ct===null||(0,wt.Ch)(ct))return ke(ct);const mt=je.events[je.events.length-1];return!je.parser.constructs.disable.null.includes("codeIndented")&&mt&&mt[1].type==="linePrefix"&&mt[2].sliceSerialize(mt[1],!0).length>=4?Se(ct):te.interrupt(je.parser.constructs.flow,ke,Se)(ct)}}const Ir={tokenize:Vr};function Vr(te){const Se=this,ke=te.attempt(zn,je,te.attempt(this.parser.constructs.flowInitial,Je,(0,vn.f)(te,te.attempt(this.parser.constructs.flow,Je,te.attempt(Er,Je)),"linePrefix")));return ke;function je(Qe){if(Qe===null){te.consume(Qe);return}return te.enter("lineEndingBlank"),te.consume(Qe),te.exit("lineEndingBlank"),Se.currentConstruct=void 0,ke}function Je(Qe){if(Qe===null){te.consume(Qe);return}return te.enter("lineEnding"),te.consume(Qe),te.exit("lineEnding"),Se.currentConstruct=void 0,ke}}const fr={resolveAll:Kn()},oo=Qr("string"),Zr=Qr("text");function Qr(te){return{resolveAll:Kn(te==="text"?Mn:void 0),tokenize:Se};function Se(ke){const je=this,Je=this.parser.constructs[te],Qe=ke.attempt(Je,ct,mt);return ct;function ct(Lt){return Yt(Lt)?Qe(Lt):mt(Lt)}function mt(Lt){if(Lt===null){ke.consume(Lt);return}return ke.enter("data"),ke.consume(Lt),zt}function zt(Lt){return Yt(Lt)?(ke.exit("data"),Qe(Lt)):(ke.consume(Lt),zt)}function Yt(Lt){if(Lt===null)return!0;const ln=Je[Lt];let on=-1;if(ln)for(;++on<ln.length;){const Pt=ln[on];if(!Pt.previous||Pt.previous.call(je,je.previous))return!0}return!1}}}function Kn(te){return Se;function Se(ke,je){let Je=-1,Qe;for(;++Je<=ke.length;)Qe===void 0?ke[Je]&&ke[Je][1].type==="data"&&(Qe=Je,Je++):(!ke[Je]||ke[Je][1].type!=="data")&&(Je!==Qe+2&&(ke[Qe][1].end=ke[Je-1][1].end,ke.splice(Qe+2,Je-Qe-2),Je=Qe+2),Qe=void 0);return te?te(ke,je):ke}}function Mn(te,Se){let ke=0;for(;++ke<=te.length;)if((ke===te.length||te[ke][1].type==="lineEnding")&&te[ke-1][1].type==="data"){const je=te[ke-1][1],Je=Se.sliceStream(je);let Qe=Je.length,ct=-1,mt=0,zt;for(;Qe--;){const Yt=Je[Qe];if(typeof Yt=="string"){for(ct=Yt.length;Yt.charCodeAt(ct-1)===32;)mt++,ct--;if(ct)break;ct=-1}else if(Yt===-2)zt=!0,mt++;else if(Yt!==-1){Qe++;break}}if(Se._contentTypeTextTrailing&&ke===te.length&&(mt=0),mt){const Yt={type:ke===te.length||zt||mt<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:Qe?ct:je.start._bufferIndex+ct,_index:je.start._index+Qe,line:je.end.line,column:je.end.column-mt,offset:je.end.offset-mt},end:eo({},je.end)};je.end=eo({},Yt.start),je.start.offset===je.end.offset?Object.assign(je,Yt):(te.splice(ke,0,["enter",Yt,Se],["exit",Yt,Se]),ke+=2)}ke++}return te}const ai={name:"thematicBreak",tokenize:Nr};function Nr(te,Se,ke){let je=0,Je;return Qe;function Qe(Yt){return te.enter("thematicBreak"),ct(Yt)}function ct(Yt){return Je=Yt,mt(Yt)}function mt(Yt){return Yt===Je?(te.enter("thematicBreakSequence"),zt(Yt)):je>=3&&(Yt===null||(0,wt.Ch)(Yt))?(te.exit("thematicBreak"),Se(Yt)):ke(Yt)}function zt(Yt){return Yt===Je?(te.consume(Yt),je++,zt):(te.exit("thematicBreakSequence"),(0,wt.xz)(Yt)?(0,vn.f)(te,mt,"whitespace")(Yt):mt(Yt))}}const zr={continuation:{tokenize:It},exit:ft,name:"list",tokenize:Mt},pn={partial:!0,tokenize:en},Vn={partial:!0,tokenize:On};function Mt(te,Se,ke){const je=this,Je=je.events[je.events.length-1];let Qe=Je&&Je[1].type==="linePrefix"?Je[2].sliceSerialize(Je[1],!0).length:0,ct=0;return mt;function mt(Pt){const Ur=je.containerState.type||(Pt===42||Pt===43||Pt===45?"listUnordered":"listOrdered");if(Ur==="listUnordered"?!je.containerState.marker||Pt===je.containerState.marker:(0,wt.pY)(Pt)){if(je.containerState.type||(je.containerState.type=Ur,te.enter(Ur,{_container:!0})),Ur==="listUnordered")return te.enter("listItemPrefix"),Pt===42||Pt===45?te.check(ai,ke,Yt)(Pt):Yt(Pt);if(!je.interrupt||Pt===49)return te.enter("listItemPrefix"),te.enter("listItemValue"),zt(Pt)}return ke(Pt)}function zt(Pt){return(0,wt.pY)(Pt)&&++ct<10?(te.consume(Pt),zt):(!je.interrupt||ct<2)&&(je.containerState.marker?Pt===je.containerState.marker:Pt===41||Pt===46)?(te.exit("listItemValue"),Yt(Pt)):ke(Pt)}function Yt(Pt){return te.enter("listItemMarker"),te.consume(Pt),te.exit("listItemMarker"),je.containerState.marker=je.containerState.marker||Pt,te.check(zn,je.interrupt?ke:Lt,te.attempt(pn,on,ln))}function Lt(Pt){return je.containerState.initialBlankLine=!0,Qe++,on(Pt)}function ln(Pt){return(0,wt.xz)(Pt)?(te.enter("listItemPrefixWhitespace"),te.consume(Pt),te.exit("listItemPrefixWhitespace"),on):ke(Pt)}function on(Pt){return je.containerState.size=Qe+je.sliceSerialize(te.exit("listItemPrefix"),!0).length,Se(Pt)}}function It(te,Se,ke){const je=this;return je.containerState._closeFlow=void 0,te.check(zn,Je,Qe);function Je(mt){return je.containerState.furtherBlankLines=je.containerState.furtherBlankLines||je.containerState.initialBlankLine,(0,vn.f)(te,Se,"listItemIndent",je.containerState.size+1)(mt)}function Qe(mt){return je.containerState.furtherBlankLines||!(0,wt.xz)(mt)?(je.containerState.furtherBlankLines=void 0,je.containerState.initialBlankLine=void 0,ct(mt)):(je.containerState.furtherBlankLines=void 0,je.containerState.initialBlankLine=void 0,te.attempt(Vn,Se,ct)(mt))}function ct(mt){return je.containerState._closeFlow=!0,je.interrupt=void 0,(0,vn.f)(te,te.attempt(zr,Se,ke),"linePrefix",je.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(mt)}}function On(te,Se,ke){const je=this;return(0,vn.f)(te,Je,"listItemIndent",je.containerState.size+1);function Je(Qe){const ct=je.events[je.events.length-1];return ct&&ct[1].type==="listItemIndent"&&ct[2].sliceSerialize(ct[1],!0).length===je.containerState.size?Se(Qe):ke(Qe)}}function ft(te){te.exit(this.containerState.type)}function en(te,Se,ke){const je=this;return(0,vn.f)(te,Je,"listItemPrefixWhitespace",je.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function Je(Qe){const ct=je.events[je.events.length-1];return!(0,wt.xz)(Qe)&&ct&&ct[1].type==="listItemPrefixWhitespace"?Se(Qe):ke(Qe)}}const An={continuation:{tokenize:gt},exit:gn,name:"blockQuote",tokenize:Un};function Un(te,Se,ke){const je=this;return Je;function Je(ct){if(ct===62){const mt=je.containerState;return mt.open||(te.enter("blockQuote",{_container:!0}),mt.open=!0),te.enter("blockQuotePrefix"),te.enter("blockQuoteMarker"),te.consume(ct),te.exit("blockQuoteMarker"),Qe}return ke(ct)}function Qe(ct){return(0,wt.xz)(ct)?(te.enter("blockQuotePrefixWhitespace"),te.consume(ct),te.exit("blockQuotePrefixWhitespace"),te.exit("blockQuotePrefix"),Se):(te.exit("blockQuotePrefix"),Se(ct))}}function gt(te,Se,ke){const je=this;return Je;function Je(ct){return(0,wt.xz)(ct)?(0,vn.f)(te,Qe,"linePrefix",je.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ct):Qe(ct)}function Qe(ct){return te.attempt(An,Se,ke)(ct)}}function gn(te){te.exit("blockQuote")}function Hn(te,Se,ke,je,Je,Qe,ct,mt,zt){const Yt=zt||Number.POSITIVE_INFINITY;let Lt=0;return ln;function ln(mr){return mr===60?(te.enter(je),te.enter(Je),te.enter(Qe),te.consume(mr),te.exit(Qe),on):mr===null||mr===32||mr===41||(0,wt.Av)(mr)?ke(mr):(te.enter(je),te.enter(ct),te.enter(mt),te.enter("chunkString",{contentType:"string"}),fi(mr))}function on(mr){return mr===62?(te.enter(Qe),te.consume(mr),te.exit(Qe),te.exit(Je),te.exit(je),Se):(te.enter(mt),te.enter("chunkString",{contentType:"string"}),Pt(mr))}function Pt(mr){return mr===62?(te.exit("chunkString"),te.exit(mt),on(mr)):mr===null||mr===60||(0,wt.Ch)(mr)?ke(mr):(te.consume(mr),mr===92?Ur:Pt)}function Ur(mr){return mr===60||mr===62||mr===92?(te.consume(mr),Pt):Pt(mr)}function fi(mr){return!Lt&&(mr===null||mr===41||(0,wt.z3)(mr))?(te.exit("chunkString"),te.exit(mt),te.exit(ct),te.exit(je),Se(mr)):Lt<Yt&&mr===40?(te.consume(mr),Lt++,fi):mr===41?(te.consume(mr),Lt--,fi):mr===null||mr===32||mr===40||(0,wt.Av)(mr)?ke(mr):(te.consume(mr),mr===92?Ni:fi)}function Ni(mr){return mr===40||mr===41||mr===92?(te.consume(mr),fi):fi(mr)}}function At(te,Se,ke,je,Je,Qe){const ct=this;let mt=0,zt;return Yt;function Yt(Pt){return te.enter(je),te.enter(Je),te.consume(Pt),te.exit(Je),te.enter(Qe),Lt}function Lt(Pt){return mt>999||Pt===null||Pt===91||Pt===93&&!zt||Pt===94&&!mt&&"_hiddenFootnoteSupport"in ct.parser.constructs?ke(Pt):Pt===93?(te.exit(Qe),te.enter(Je),te.consume(Pt),te.exit(Je),te.exit(je),Se):(0,wt.Ch)(Pt)?(te.enter("lineEnding"),te.consume(Pt),te.exit("lineEnding"),Lt):(te.enter("chunkString",{contentType:"string"}),ln(Pt))}function ln(Pt){return Pt===null||Pt===91||Pt===93||(0,wt.Ch)(Pt)||mt++>999?(te.exit("chunkString"),Lt(Pt)):(te.consume(Pt),zt||(zt=!(0,wt.xz)(Pt)),Pt===92?on:ln)}function on(Pt){return Pt===91||Pt===92||Pt===93?(te.consume(Pt),mt++,ln):ln(Pt)}}function we(te,Se,ke,je,Je,Qe){let ct;return mt;function mt(on){return on===34||on===39||on===40?(te.enter(je),te.enter(Je),te.consume(on),te.exit(Je),ct=on===40?41:on,zt):ke(on)}function zt(on){return on===ct?(te.enter(Je),te.consume(on),te.exit(Je),te.exit(je),Se):(te.enter(Qe),Yt(on))}function Yt(on){return on===ct?(te.exit(Qe),zt(ct)):on===null?ke(on):(0,wt.Ch)(on)?(te.enter("lineEnding"),te.consume(on),te.exit("lineEnding"),(0,vn.f)(te,Yt,"linePrefix")):(te.enter("chunkString",{contentType:"string"}),Lt(on))}function Lt(on){return on===ct||on===null||(0,wt.Ch)(on)?(te.exit("chunkString"),Yt(on)):(te.consume(on),on===92?ln:Lt)}function ln(on){return on===ct||on===92?(te.consume(on),Lt):Lt(on)}}function Bn(te,Se){let ke;return je;function je(Je){return(0,wt.Ch)(Je)?(te.enter("lineEnding"),te.consume(Je),te.exit("lineEnding"),ke=!0,je):(0,wt.xz)(Je)?(0,vn.f)(te,je,ke?"linePrefix":"lineSuffix")(Je):Se(Je)}}function wn(te){return te.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ht={name:"definition",tokenize:pr},lr={partial:!0,tokenize:xr};function pr(te,Se,ke){const je=this;let Je;return Qe;function Qe(Pt){return te.enter("definition"),ct(Pt)}function ct(Pt){return At.call(je,te,mt,ke,"definitionLabel","definitionLabelMarker","definitionLabelString")(Pt)}function mt(Pt){return Je=wn(je.sliceSerialize(je.events[je.events.length-1][1]).slice(1,-1)),Pt===58?(te.enter("definitionMarker"),te.consume(Pt),te.exit("definitionMarker"),zt):ke(Pt)}function zt(Pt){return(0,wt.z3)(Pt)?Bn(te,Yt)(Pt):Yt(Pt)}function Yt(Pt){return Hn(te,Lt,ke,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(Pt)}function Lt(Pt){return te.attempt(lr,ln,ln)(Pt)}function ln(Pt){return(0,wt.xz)(Pt)?(0,vn.f)(te,on,"whitespace")(Pt):on(Pt)}function on(Pt){return Pt===null||(0,wt.Ch)(Pt)?(te.exit("definition"),je.parser.defined.push(Je),Se(Pt)):ke(Pt)}}function xr(te,Se,ke){return je;function je(mt){return(0,wt.z3)(mt)?Bn(te,Je)(mt):ke(mt)}function Je(mt){return we(te,Qe,ke,"definitionTitle","definitionTitleMarker","definitionTitleString")(mt)}function Qe(mt){return(0,wt.xz)(mt)?(0,vn.f)(te,ct,"whitespace")(mt):ct(mt)}function ct(mt){return mt===null||(0,wt.Ch)(mt)?Se(mt):ke(mt)}}const Pn={name:"codeIndented",tokenize:gr},St={partial:!0,tokenize:vi};function gr(te,Se,ke){const je=this;return Je;function Je(Yt){return te.enter("codeIndented"),(0,vn.f)(te,Qe,"linePrefix",5)(Yt)}function Qe(Yt){const Lt=je.events[je.events.length-1];return Lt&&Lt[1].type==="linePrefix"&&Lt[2].sliceSerialize(Lt[1],!0).length>=4?ct(Yt):ke(Yt)}function ct(Yt){return Yt===null?zt(Yt):(0,wt.Ch)(Yt)?te.attempt(St,ct,zt)(Yt):(te.enter("codeFlowValue"),mt(Yt))}function mt(Yt){return Yt===null||(0,wt.Ch)(Yt)?(te.exit("codeFlowValue"),ct(Yt)):(te.consume(Yt),mt)}function zt(Yt){return te.exit("codeIndented"),Se(Yt)}}function vi(te,Se,ke){const je=this;return Je;function Je(ct){return je.parser.lazy[je.now().line]?ke(ct):(0,wt.Ch)(ct)?(te.enter("lineEnding"),te.consume(ct),te.exit("lineEnding"),Je):(0,vn.f)(te,Qe,"linePrefix",5)(ct)}function Qe(ct){const mt=je.events[je.events.length-1];return mt&&mt[1].type==="linePrefix"&&mt[2].sliceSerialize(mt[1],!0).length>=4?Se(ct):(0,wt.Ch)(ct)?Je(ct):ke(ct)}}const Dt={name:"headingAtx",resolve:Ji,tokenize:Ri};function Ji(te,Se){let ke=te.length-2,je=3,Je,Qe;return te[je][1].type==="whitespace"&&(je+=2),ke-2>je&&te[ke][1].type==="whitespace"&&(ke-=2),te[ke][1].type==="atxHeadingSequence"&&(je===ke-1||ke-4>je&&te[ke-2][1].type==="whitespace")&&(ke-=je+1===ke?2:4),ke>je&&(Je={type:"atxHeadingText",start:te[je][1].start,end:te[ke][1].end},Qe={type:"chunkText",start:te[je][1].start,end:te[ke][1].end,contentType:"text"},et(te,je,ke-je+1,[["enter",Je,Se],["enter",Qe,Se],["exit",Qe,Se],["exit",Je,Se]])),te}function Ri(te,Se,ke){let je=0;return Je;function Je(Lt){return te.enter("atxHeading"),Qe(Lt)}function Qe(Lt){return te.enter("atxHeadingSequence"),ct(Lt)}function ct(Lt){return Lt===35&&je++<6?(te.consume(Lt),ct):Lt===null||(0,wt.z3)(Lt)?(te.exit("atxHeadingSequence"),mt(Lt)):ke(Lt)}function mt(Lt){return Lt===35?(te.enter("atxHeadingSequence"),zt(Lt)):Lt===null||(0,wt.Ch)(Lt)?(te.exit("atxHeading"),Se(Lt)):(0,wt.xz)(Lt)?(0,vn.f)(te,mt,"whitespace")(Lt):(te.enter("atxHeadingText"),Yt(Lt))}function zt(Lt){return Lt===35?(te.consume(Lt),zt):(te.exit("atxHeadingSequence"),mt(Lt))}function Yt(Lt){return Lt===null||Lt===35||(0,wt.z3)(Lt)?(te.exit("atxHeadingText"),mt(Lt)):(te.consume(Lt),Yt)}}const oi={name:"setextUnderline",resolveTo:Oi,tokenize:Rr};function Oi(te,Se){let ke=te.length,je,Je,Qe;for(;ke--;)if(te[ke][0]==="enter"){if(te[ke][1].type==="content"){je=ke;break}te[ke][1].type==="paragraph"&&(Je=ke)}else te[ke][1].type==="content"&&te.splice(ke,1),!Qe&&te[ke][1].type==="definition"&&(Qe=ke);const ct={type:"setextHeading",start:eo({},te[je][1].start),end:eo({},te[te.length-1][1].end)};return te[Je][1].type="setextHeadingText",Qe?(te.splice(Je,0,["enter",ct,Se]),te.splice(Qe+1,0,["exit",te[je][1],Se]),te[je][1].end=eo({},te[Qe][1].end)):te[je][1]=ct,te.push(["exit",ct,Se]),te}function Rr(te,Se,ke){const je=this;let Je;return Qe;function Qe(Yt){let Lt=je.events.length,ln;for(;Lt--;)if(je.events[Lt][1].type!=="lineEnding"&&je.events[Lt][1].type!=="linePrefix"&&je.events[Lt][1].type!=="content"){ln=je.events[Lt][1].type==="paragraph";break}return!je.parser.lazy[je.now().line]&&(je.interrupt||ln)?(te.enter("setextHeadingLine"),Je=Yt,ct(Yt)):ke(Yt)}function ct(Yt){return te.enter("setextHeadingLineSequence"),mt(Yt)}function mt(Yt){return Yt===Je?(te.consume(Yt),mt):(te.exit("setextHeadingLineSequence"),(0,wt.xz)(Yt)?(0,vn.f)(te,zt,"lineSuffix")(Yt):zt(Yt))}function zt(Yt){return Yt===null||(0,wt.Ch)(Yt)?(te.exit("setextHeadingLine"),Se(Yt)):ke(Yt)}}const li=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Pr=["pre","script","style","textarea"],qr={concrete:!0,name:"htmlFlow",resolveTo:ui,tokenize:Kt},ri={partial:!0,tokenize:er},Gt={partial:!0,tokenize:Wn};function ui(te){let Se=te.length;for(;Se--&&!(te[Se][0]==="enter"&&te[Se][1].type==="htmlFlow"););return Se>1&&te[Se-2][1].type==="linePrefix"&&(te[Se][1].start=te[Se-2][1].start,te[Se+1][1].start=te[Se-2][1].start,te.splice(Se-2,2)),te}function Kt(te,Se,ke){const je=this;let Je,Qe,ct,mt,zt;return Yt;function Yt(rn){return Lt(rn)}function Lt(rn){return te.enter("htmlFlow"),te.enter("htmlFlowData"),te.consume(rn),ln}function ln(rn){return rn===33?(te.consume(rn),on):rn===47?(te.consume(rn),Qe=!0,fi):rn===63?(te.consume(rn),Je=3,je.interrupt?Se:Qt):(0,wt.jv)(rn)?(te.consume(rn),ct=String.fromCharCode(rn),Ni):ke(rn)}function on(rn){return rn===45?(te.consume(rn),Je=2,Pt):rn===91?(te.consume(rn),Je=5,mt=0,Ur):(0,wt.jv)(rn)?(te.consume(rn),Je=4,je.interrupt?Se:Qt):ke(rn)}function Pt(rn){return rn===45?(te.consume(rn),je.interrupt?Se:Qt):ke(rn)}function Ur(rn){const Zs="CDATA[";return rn===Zs.charCodeAt(mt++)?(te.consume(rn),mt===Zs.length?je.interrupt?Se:Go:Ur):ke(rn)}function fi(rn){return(0,wt.jv)(rn)?(te.consume(rn),ct=String.fromCharCode(rn),Ni):ke(rn)}function Ni(rn){if(rn===null||rn===47||rn===62||(0,wt.z3)(rn)){const Zs=rn===47,al=ct.toLowerCase();return!Zs&&!Qe&&Pr.includes(al)?(Je=1,je.interrupt?Se(rn):Go(rn)):li.includes(ct.toLowerCase())?(Je=6,Zs?(te.consume(rn),mr):je.interrupt?Se(rn):Go(rn)):(Je=7,je.interrupt&&!je.parser.lazy[je.now().line]?ke(rn):Qe?Wr(rn):ti(rn))}return rn===45||(0,wt.H$)(rn)?(te.consume(rn),ct+=String.fromCharCode(rn),Ni):ke(rn)}function mr(rn){return rn===62?(te.consume(rn),je.interrupt?Se:Go):ke(rn)}function Wr(rn){return(0,wt.xz)(rn)?(te.consume(rn),Wr):Dr(rn)}function ti(rn){return rn===47?(te.consume(rn),Dr):rn===58||rn===95||(0,wt.jv)(rn)?(te.consume(rn),No):(0,wt.xz)(rn)?(te.consume(rn),ti):Dr(rn)}function No(rn){return rn===45||rn===46||rn===58||rn===95||(0,wt.H$)(rn)?(te.consume(rn),No):Io(rn)}function Io(rn){return rn===61?(te.consume(rn),tr):(0,wt.xz)(rn)?(te.consume(rn),Io):ti(rn)}function tr(rn){return rn===null||rn===60||rn===61||rn===62||rn===96?ke(rn):rn===34||rn===39?(te.consume(rn),zt=rn,Mo):(0,wt.xz)(rn)?(te.consume(rn),tr):ss(rn)}function Mo(rn){return rn===zt?(te.consume(rn),zt=null,wo):rn===null||(0,wt.Ch)(rn)?ke(rn):(te.consume(rn),Mo)}function ss(rn){return rn===null||rn===34||rn===39||rn===47||rn===60||rn===61||rn===62||rn===96||(0,wt.z3)(rn)?Io(rn):(te.consume(rn),ss)}function wo(rn){return rn===47||rn===62||(0,wt.xz)(rn)?ti(rn):ke(rn)}function Dr(rn){return rn===62?(te.consume(rn),aa):ke(rn)}function aa(rn){return rn===null||(0,wt.Ch)(rn)?Go(rn):(0,wt.xz)(rn)?(te.consume(rn),aa):ke(rn)}function Go(rn){return rn===45&&Je===2?(te.consume(rn),ns):rn===60&&Je===1?(te.consume(rn),Bs):rn===62&&Je===4?(te.consume(rn),la):rn===63&&Je===3?(te.consume(rn),Qt):rn===93&&Je===5?(te.consume(rn),Pa):(0,wt.Ch)(rn)&&(Je===6||Je===7)?(te.exit("htmlFlowData"),te.check(ri,Ya,Ti)(rn)):rn===null||(0,wt.Ch)(rn)?(te.exit("htmlFlowData"),Ti(rn)):(te.consume(rn),Go)}function Ti(rn){return te.check(Gt,wi,Ya)(rn)}function wi(rn){return te.enter("lineEnding"),te.consume(rn),te.exit("lineEnding"),so}function so(rn){return rn===null||(0,wt.Ch)(rn)?Ti(rn):(te.enter("htmlFlowData"),Go(rn))}function ns(rn){return rn===45?(te.consume(rn),Qt):Go(rn)}function Bs(rn){return rn===47?(te.consume(rn),ct="",Xs):Go(rn)}function Xs(rn){if(rn===62){const Zs=ct.toLowerCase();return Pr.includes(Zs)?(te.consume(rn),la):Go(rn)}return(0,wt.jv)(rn)&&ct.length<8?(te.consume(rn),ct+=String.fromCharCode(rn),Xs):Go(rn)}function Pa(rn){return rn===93?(te.consume(rn),Qt):Go(rn)}function Qt(rn){return rn===62?(te.consume(rn),la):rn===45&&Je===2?(te.consume(rn),Qt):Go(rn)}function la(rn){return rn===null||(0,wt.Ch)(rn)?(te.exit("htmlFlowData"),Ya(rn)):(te.consume(rn),la)}function Ya(rn){return te.exit("htmlFlow"),Se(rn)}}function Wn(te,Se,ke){const je=this;return Je;function Je(ct){return(0,wt.Ch)(ct)?(te.enter("lineEnding"),te.consume(ct),te.exit("lineEnding"),Qe):ke(ct)}function Qe(ct){return je.parser.lazy[je.now().line]?ke(ct):Se(ct)}}function er(te,Se,ke){return je;function je(Je){return te.enter("lineEnding"),te.consume(Je),te.exit("lineEnding"),te.attempt(zn,Se,ke)}}const rr={partial:!0,tokenize:pi},Di={concrete:!0,name:"codeFenced",tokenize:Li};function Li(te,Se,ke){const je=this,Je={partial:!0,tokenize:Io};let Qe=0,ct=0,mt;return zt;function zt(tr){return Yt(tr)}function Yt(tr){const Mo=je.events[je.events.length-1];return Qe=Mo&&Mo[1].type==="linePrefix"?Mo[2].sliceSerialize(Mo[1],!0).length:0,mt=tr,te.enter("codeFenced"),te.enter("codeFencedFence"),te.enter("codeFencedFenceSequence"),Lt(tr)}function Lt(tr){return tr===mt?(ct++,te.consume(tr),Lt):ct<3?ke(tr):(te.exit("codeFencedFenceSequence"),(0,wt.xz)(tr)?(0,vn.f)(te,ln,"whitespace")(tr):ln(tr))}function ln(tr){return tr===null||(0,wt.Ch)(tr)?(te.exit("codeFencedFence"),je.interrupt?Se(tr):te.check(rr,fi,No)(tr)):(te.enter("codeFencedFenceInfo"),te.enter("chunkString",{contentType:"string"}),on(tr))}function on(tr){return tr===null||(0,wt.Ch)(tr)?(te.exit("chunkString"),te.exit("codeFencedFenceInfo"),ln(tr)):(0,wt.xz)(tr)?(te.exit("chunkString"),te.exit("codeFencedFenceInfo"),(0,vn.f)(te,Pt,"whitespace")(tr)):tr===96&&tr===mt?ke(tr):(te.consume(tr),on)}function Pt(tr){return tr===null||(0,wt.Ch)(tr)?ln(tr):(te.enter("codeFencedFenceMeta"),te.enter("chunkString",{contentType:"string"}),Ur(tr))}function Ur(tr){return tr===null||(0,wt.Ch)(tr)?(te.exit("chunkString"),te.exit("codeFencedFenceMeta"),ln(tr)):tr===96&&tr===mt?ke(tr):(te.consume(tr),Ur)}function fi(tr){return te.attempt(Je,No,Ni)(tr)}function Ni(tr){return te.enter("lineEnding"),te.consume(tr),te.exit("lineEnding"),mr}function mr(tr){return Qe>0&&(0,wt.xz)(tr)?(0,vn.f)(te,Wr,"linePrefix",Qe+1)(tr):Wr(tr)}function Wr(tr){return tr===null||(0,wt.Ch)(tr)?te.check(rr,fi,No)(tr):(te.enter("codeFlowValue"),ti(tr))}function ti(tr){return tr===null||(0,wt.Ch)(tr)?(te.exit("codeFlowValue"),Wr(tr)):(te.consume(tr),ti)}function No(tr){return te.exit("codeFenced"),Se(tr)}function Io(tr,Mo,ss){let wo=0;return Dr;function Dr(so){return tr.enter("lineEnding"),tr.consume(so),tr.exit("lineEnding"),aa}function aa(so){return tr.enter("codeFencedFence"),(0,wt.xz)(so)?(0,vn.f)(tr,Go,"linePrefix",je.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(so):Go(so)}function Go(so){return so===mt?(tr.enter("codeFencedFenceSequence"),Ti(so)):ss(so)}function Ti(so){return so===mt?(wo++,tr.consume(so),Ti):wo>=ct?(tr.exit("codeFencedFenceSequence"),(0,wt.xz)(so)?(0,vn.f)(tr,wi,"whitespace")(so):wi(so)):ss(so)}function wi(so){return so===null||(0,wt.Ch)(so)?(tr.exit("codeFencedFence"),Mo(so)):ss(so)}}}function pi(te,Se,ke){const je=this;return Je;function Je(ct){return ct===null?ke(ct):(te.enter("lineEnding"),te.consume(ct),te.exit("lineEnding"),Qe)}function Qe(ct){return je.parser.lazy[je.now().line]?ke(ct):Se(ct)}}const Mi=document.createElement("i");function _t(te){const Se="&"+te+";";Mi.innerHTML=Se;const ke=Mi.textContent;return ke.charCodeAt(ke.length-1)===59&&te!=="semi"||ke===Se?!1:ke}const Vt={name:"characterReference",tokenize:Et};function Et(te,Se,ke){const je=this;let Je=0,Qe,ct;return mt;function mt(ln){return te.enter("characterReference"),te.enter("characterReferenceMarker"),te.consume(ln),te.exit("characterReferenceMarker"),zt}function zt(ln){return ln===35?(te.enter("characterReferenceMarkerNumeric"),te.consume(ln),te.exit("characterReferenceMarkerNumeric"),Yt):(te.enter("characterReferenceValue"),Qe=31,ct=wt.H$,Lt(ln))}function Yt(ln){return ln===88||ln===120?(te.enter("characterReferenceMarkerHexadecimal"),te.consume(ln),te.exit("characterReferenceMarkerHexadecimal"),te.enter("characterReferenceValue"),Qe=6,ct=wt.AF,Lt):(te.enter("characterReferenceValue"),Qe=7,ct=wt.pY,Lt(ln))}function Lt(ln){if(ln===59&&Je){const on=te.exit("characterReferenceValue");return ct===wt.H$&&!_t(je.sliceSerialize(on))?ke(ln):(te.enter("characterReferenceMarker"),te.consume(ln),te.exit("characterReferenceMarker"),te.exit("characterReference"),Se)}return ct(ln)&&Je++<Qe?(te.consume(ln),Lt):ke(ln)}}const Ie={name:"characterEscape",tokenize:cn};function cn(te,Se,ke){return je;function je(Qe){return te.enter("characterEscape"),te.enter("escapeMarker"),te.consume(Qe),te.exit("escapeMarker"),Je}function Je(Qe){return(0,wt.sR)(Qe)?(te.enter("characterEscapeValue"),te.consume(Qe),te.exit("characterEscapeValue"),te.exit("characterEscape"),Se):ke(Qe)}}const sn={name:"lineEnding",tokenize:bn};function bn(te,Se){return ke;function ke(je){return te.enter("lineEnding"),te.consume(je),te.exit("lineEnding"),(0,vn.f)(te,Se,"linePrefix")}}function _n(te,Se,ke){const je=[];let Je=-1;for(;++Je<te.length;){const Qe=te[Je].resolveAll;Qe&&!je.includes(Qe)&&(Se=Qe(Se,ke),je.push(Qe))}return Se}const Rn={name:"labelEnd",resolveAll:yn,resolveTo:Sn,tokenize:Xn},Jt={tokenize:_r},fn={tokenize:Fr},dn={tokenize:mn};function yn(te){let Se=-1;const ke=[];for(;++Se<te.length;){const je=te[Se][1];if(ke.push(te[Se]),je.type==="labelImage"||je.type==="labelLink"||je.type==="labelEnd"){const Je=je.type==="labelImage"?4:2;je.type="data",Se+=Je}}return te.length!==ke.length&&et(te,0,te.length,ke),te}function Sn(te,Se){let ke=te.length,je=0,Je,Qe,ct,mt;for(;ke--;)if(Je=te[ke][1],Qe){if(Je.type==="link"||Je.type==="labelLink"&&Je._inactive)break;te[ke][0]==="enter"&&Je.type==="labelLink"&&(Je._inactive=!0)}else if(ct){if(te[ke][0]==="enter"&&(Je.type==="labelImage"||Je.type==="labelLink")&&!Je._balanced&&(Qe=ke,Je.type!=="labelLink")){je=2;break}}else Je.type==="labelEnd"&&(ct=ke);const zt={type:te[Qe][1].type==="labelLink"?"link":"image",start:eo({},te[Qe][1].start),end:eo({},te[te.length-1][1].end)},Yt={type:"label",start:eo({},te[Qe][1].start),end:eo({},te[ct][1].end)},Lt={type:"labelText",start:eo({},te[Qe+je+2][1].end),end:eo({},te[ct-2][1].start)};return mt=[["enter",zt,Se],["enter",Yt,Se]],mt=dt(mt,te.slice(Qe+1,Qe+je+3)),mt=dt(mt,[["enter",Lt,Se]]),mt=dt(mt,_n(Se.parser.constructs.insideSpan.null,te.slice(Qe+je+4,ct-3),Se)),mt=dt(mt,[["exit",Lt,Se],te[ct-2],te[ct-1],["exit",Yt,Se]]),mt=dt(mt,te.slice(ct+1)),mt=dt(mt,[["exit",zt,Se]]),et(te,Qe,te.length,mt),te}function Xn(te,Se,ke){const je=this;let Je=je.events.length,Qe,ct;for(;Je--;)if((je.events[Je][1].type==="labelImage"||je.events[Je][1].type==="labelLink")&&!je.events[Je][1]._balanced){Qe=je.events[Je][1];break}return mt;function mt(on){return Qe?Qe._inactive?ln(on):(ct=je.parser.defined.includes(wn(je.sliceSerialize({start:Qe.end,end:je.now()}))),te.enter("labelEnd"),te.enter("labelMarker"),te.consume(on),te.exit("labelMarker"),te.exit("labelEnd"),zt):ke(on)}function zt(on){return on===40?te.attempt(Jt,Lt,ct?Lt:ln)(on):on===91?te.attempt(fn,Lt,ct?Yt:ln)(on):ct?Lt(on):ln(on)}function Yt(on){return te.attempt(dn,Lt,ln)(on)}function Lt(on){return Se(on)}function ln(on){return Qe._balanced=!0,ke(on)}}function _r(te,Se,ke){return je;function je(ln){return te.enter("resource"),te.enter("resourceMarker"),te.consume(ln),te.exit("resourceMarker"),Je}function Je(ln){return(0,wt.z3)(ln)?Bn(te,Qe)(ln):Qe(ln)}function Qe(ln){return ln===41?Lt(ln):Hn(te,ct,mt,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(ln)}function ct(ln){return(0,wt.z3)(ln)?Bn(te,zt)(ln):Lt(ln)}function mt(ln){return ke(ln)}function zt(ln){return ln===34||ln===39||ln===40?we(te,Yt,ke,"resourceTitle","resourceTitleMarker","resourceTitleString")(ln):Lt(ln)}function Yt(ln){return(0,wt.z3)(ln)?Bn(te,Lt)(ln):Lt(ln)}function Lt(ln){return ln===41?(te.enter("resourceMarker"),te.consume(ln),te.exit("resourceMarker"),te.exit("resource"),Se):ke(ln)}}function Fr(te,Se,ke){const je=this;return Je;function Je(mt){return At.call(je,te,Qe,ct,"reference","referenceMarker","referenceString")(mt)}function Qe(mt){return je.parser.defined.includes(wn(je.sliceSerialize(je.events[je.events.length-1][1]).slice(1,-1)))?Se(mt):ke(mt)}function ct(mt){return ke(mt)}}function mn(te,Se,ke){return je;function je(Qe){return te.enter("reference"),te.enter("referenceMarker"),te.consume(Qe),te.exit("referenceMarker"),Je}function Je(Qe){return Qe===93?(te.enter("referenceMarker"),te.consume(Qe),te.exit("referenceMarker"),te.exit("reference"),Se):ke(Qe)}}const Cr={name:"labelStartImage",resolveAll:Rn.resolveAll,tokenize:Or};function Or(te,Se,ke){const je=this;return Je;function Je(mt){return te.enter("labelImage"),te.enter("labelImageMarker"),te.consume(mt),te.exit("labelImageMarker"),Qe}function Qe(mt){return mt===91?(te.enter("labelMarker"),te.consume(mt),te.exit("labelMarker"),te.exit("labelImage"),ct):ke(mt)}function ct(mt){return mt===94&&"_hiddenFootnoteSupport"in je.parser.constructs?ke(mt):Se(mt)}}function yi(te){if(te===null||(0,wt.z3)(te)||(0,wt.B8)(te))return 1;if((0,wt.Xh)(te))return 2}const Kr={name:"attention",resolveAll:bi,tokenize:Si};function bi(te,Se){let ke=-1,je,Je,Qe,ct,mt,zt,Yt,Lt;for(;++ke<te.length;)if(te[ke][0]==="enter"&&te[ke][1].type==="attentionSequence"&&te[ke][1]._close){for(je=ke;je--;)if(te[je][0]==="exit"&&te[je][1].type==="attentionSequence"&&te[je][1]._open&&Se.sliceSerialize(te[je][1]).charCodeAt(0)===Se.sliceSerialize(te[ke][1]).charCodeAt(0)){if((te[je][1]._close||te[ke][1]._open)&&(te[ke][1].end.offset-te[ke][1].start.offset)%3&&!((te[je][1].end.offset-te[je][1].start.offset+te[ke][1].end.offset-te[ke][1].start.offset)%3))continue;zt=te[je][1].end.offset-te[je][1].start.offset>1&&te[ke][1].end.offset-te[ke][1].start.offset>1?2:1;const ln=eo({},te[je][1].end),on=eo({},te[ke][1].start);hi(ln,-zt),hi(on,zt),ct={type:zt>1?"strongSequence":"emphasisSequence",start:ln,end:eo({},te[je][1].end)},mt={type:zt>1?"strongSequence":"emphasisSequence",start:eo({},te[ke][1].start),end:on},Qe={type:zt>1?"strongText":"emphasisText",start:eo({},te[je][1].end),end:eo({},te[ke][1].start)},Je={type:zt>1?"strong":"emphasis",start:eo({},ct.start),end:eo({},mt.end)},te[je][1].end=eo({},ct.start),te[ke][1].start=eo({},mt.end),Yt=[],te[je][1].end.offset-te[je][1].start.offset&&(Yt=dt(Yt,[["enter",te[je][1],Se],["exit",te[je][1],Se]])),Yt=dt(Yt,[["enter",Je,Se],["enter",ct,Se],["exit",ct,Se],["enter",Qe,Se]]),Yt=dt(Yt,_n(Se.parser.constructs.insideSpan.null,te.slice(je+1,ke),Se)),Yt=dt(Yt,[["exit",Qe,Se],["enter",mt,Se],["exit",mt,Se],["exit",Je,Se]]),te[ke][1].end.offset-te[ke][1].start.offset?(Lt=2,Yt=dt(Yt,[["enter",te[ke][1],Se],["exit",te[ke][1],Se]])):Lt=0,et(te,je-1,ke-je+3,Yt),ke=je+Yt.length-Lt-2;break}}for(ke=-1;++ke<te.length;)te[ke][1].type==="attentionSequence"&&(te[ke][1].type="data");return te}function Si(te,Se){const ke=this.parser.constructs.attentionMarkers.null,je=this.previous,Je=yi(je);let Qe;return ct;function ct(zt){return Qe=zt,te.enter("attentionSequence"),mt(zt)}function mt(zt){if(zt===Qe)return te.consume(zt),mt;const Yt=te.exit("attentionSequence"),Lt=yi(zt),ln=!Lt||Lt===2&&Je||ke.includes(zt),on=!Je||Je===2&&Lt||ke.includes(je);return Yt._open=!!(Qe===42?ln:ln&&(Je||!on)),Yt._close=!!(Qe===42?on:on&&(Lt||!ln)),Se(zt)}}function hi(te,Se){te.column+=Se,te.offset+=Se,te._bufferIndex+=Se}const Wi={name:"autolink",tokenize:to};function to(te,Se,ke){let je=0;return Je;function Je(Pt){return te.enter("autolink"),te.enter("autolinkMarker"),te.consume(Pt),te.exit("autolinkMarker"),te.enter("autolinkProtocol"),Qe}function Qe(Pt){return(0,wt.jv)(Pt)?(te.consume(Pt),ct):Pt===64?ke(Pt):Yt(Pt)}function ct(Pt){return Pt===43||Pt===45||Pt===46||(0,wt.H$)(Pt)?(je=1,mt(Pt)):Yt(Pt)}function mt(Pt){return Pt===58?(te.consume(Pt),je=0,zt):(Pt===43||Pt===45||Pt===46||(0,wt.H$)(Pt))&&je++<32?(te.consume(Pt),mt):(je=0,Yt(Pt))}function zt(Pt){return Pt===62?(te.exit("autolinkProtocol"),te.enter("autolinkMarker"),te.consume(Pt),te.exit("autolinkMarker"),te.exit("autolink"),Se):Pt===null||Pt===32||Pt===60||(0,wt.Av)(Pt)?ke(Pt):(te.consume(Pt),zt)}function Yt(Pt){return Pt===64?(te.consume(Pt),Lt):(0,wt.n9)(Pt)?(te.consume(Pt),Yt):ke(Pt)}function Lt(Pt){return(0,wt.H$)(Pt)?ln(Pt):ke(Pt)}function ln(Pt){return Pt===46?(te.consume(Pt),je=0,Lt):Pt===62?(te.exit("autolinkProtocol").type="autolinkEmail",te.enter("autolinkMarker"),te.consume(Pt),te.exit("autolinkMarker"),te.exit("autolink"),Se):on(Pt)}function on(Pt){if((Pt===45||(0,wt.H$)(Pt))&&je++<63){const Ur=Pt===45?on:ln;return te.consume(Pt),Ur}return ke(Pt)}}const go={name:"htmlText",tokenize:xt};function xt(te,Se,ke){const je=this;let Je,Qe,ct;return mt;function mt(Qt){return te.enter("htmlText"),te.enter("htmlTextData"),te.consume(Qt),zt}function zt(Qt){return Qt===33?(te.consume(Qt),Yt):Qt===47?(te.consume(Qt),Io):Qt===63?(te.consume(Qt),ti):(0,wt.jv)(Qt)?(te.consume(Qt),ss):ke(Qt)}function Yt(Qt){return Qt===45?(te.consume(Qt),Lt):Qt===91?(te.consume(Qt),Qe=0,Ur):(0,wt.jv)(Qt)?(te.consume(Qt),Wr):ke(Qt)}function Lt(Qt){return Qt===45?(te.consume(Qt),Pt):ke(Qt)}function ln(Qt){return Qt===null?ke(Qt):Qt===45?(te.consume(Qt),on):(0,wt.Ch)(Qt)?(ct=ln,Bs(Qt)):(te.consume(Qt),ln)}function on(Qt){return Qt===45?(te.consume(Qt),Pt):ln(Qt)}function Pt(Qt){return Qt===62?ns(Qt):Qt===45?on(Qt):ln(Qt)}function Ur(Qt){const la="CDATA[";return Qt===la.charCodeAt(Qe++)?(te.consume(Qt),Qe===la.length?fi:Ur):ke(Qt)}function fi(Qt){return Qt===null?ke(Qt):Qt===93?(te.consume(Qt),Ni):(0,wt.Ch)(Qt)?(ct=fi,Bs(Qt)):(te.consume(Qt),fi)}function Ni(Qt){return Qt===93?(te.consume(Qt),mr):fi(Qt)}function mr(Qt){return Qt===62?ns(Qt):Qt===93?(te.consume(Qt),mr):fi(Qt)}function Wr(Qt){return Qt===null||Qt===62?ns(Qt):(0,wt.Ch)(Qt)?(ct=Wr,Bs(Qt)):(te.consume(Qt),Wr)}function ti(Qt){return Qt===null?ke(Qt):Qt===63?(te.consume(Qt),No):(0,wt.Ch)(Qt)?(ct=ti,Bs(Qt)):(te.consume(Qt),ti)}function No(Qt){return Qt===62?ns(Qt):ti(Qt)}function Io(Qt){return(0,wt.jv)(Qt)?(te.consume(Qt),tr):ke(Qt)}function tr(Qt){return Qt===45||(0,wt.H$)(Qt)?(te.consume(Qt),tr):Mo(Qt)}function Mo(Qt){return(0,wt.Ch)(Qt)?(ct=Mo,Bs(Qt)):(0,wt.xz)(Qt)?(te.consume(Qt),Mo):ns(Qt)}function ss(Qt){return Qt===45||(0,wt.H$)(Qt)?(te.consume(Qt),ss):Qt===47||Qt===62||(0,wt.z3)(Qt)?wo(Qt):ke(Qt)}function wo(Qt){return Qt===47?(te.consume(Qt),ns):Qt===58||Qt===95||(0,wt.jv)(Qt)?(te.consume(Qt),Dr):(0,wt.Ch)(Qt)?(ct=wo,Bs(Qt)):(0,wt.xz)(Qt)?(te.consume(Qt),wo):ns(Qt)}function Dr(Qt){return Qt===45||Qt===46||Qt===58||Qt===95||(0,wt.H$)(Qt)?(te.consume(Qt),Dr):aa(Qt)}function aa(Qt){return Qt===61?(te.consume(Qt),Go):(0,wt.Ch)(Qt)?(ct=aa,Bs(Qt)):(0,wt.xz)(Qt)?(te.consume(Qt),aa):wo(Qt)}function Go(Qt){return Qt===null||Qt===60||Qt===61||Qt===62||Qt===96?ke(Qt):Qt===34||Qt===39?(te.consume(Qt),Je=Qt,Ti):(0,wt.Ch)(Qt)?(ct=Go,Bs(Qt)):(0,wt.xz)(Qt)?(te.consume(Qt),Go):(te.consume(Qt),wi)}function Ti(Qt){return Qt===Je?(te.consume(Qt),Je=void 0,so):Qt===null?ke(Qt):(0,wt.Ch)(Qt)?(ct=Ti,Bs(Qt)):(te.consume(Qt),Ti)}function wi(Qt){return Qt===null||Qt===34||Qt===39||Qt===60||Qt===61||Qt===96?ke(Qt):Qt===47||Qt===62||(0,wt.z3)(Qt)?wo(Qt):(te.consume(Qt),wi)}function so(Qt){return Qt===47||Qt===62||(0,wt.z3)(Qt)?wo(Qt):ke(Qt)}function ns(Qt){return Qt===62?(te.consume(Qt),te.exit("htmlTextData"),te.exit("htmlText"),Se):ke(Qt)}function Bs(Qt){return te.exit("htmlTextData"),te.enter("lineEnding"),te.consume(Qt),te.exit("lineEnding"),Xs}function Xs(Qt){return(0,wt.xz)(Qt)?(0,vn.f)(te,Pa,"linePrefix",je.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Qt):Pa(Qt)}function Pa(Qt){return te.enter("htmlTextData"),ct(Qt)}}const ei={name:"labelStartLink",resolveAll:Rn.resolveAll,tokenize:si};function si(te,Se,ke){const je=this;return Je;function Je(ct){return te.enter("labelLink"),te.enter("labelMarker"),te.consume(ct),te.exit("labelMarker"),te.exit("labelLink"),Qe}function Qe(ct){return ct===94&&"_hiddenFootnoteSupport"in je.parser.constructs?ke(ct):Se(ct)}}const Sr={name:"hardBreakEscape",tokenize:ii};function ii(te,Se,ke){return je;function je(Qe){return te.enter("hardBreakEscape"),te.consume(Qe),Je}function Je(Qe){return(0,wt.Ch)(Qe)?(te.exit("hardBreakEscape"),Se(Qe)):ke(Qe)}}const Br={name:"codeText",previous:kt,resolve:Qi,tokenize:Jr};function Qi(te){let Se=te.length-4,ke=3,je,Je;if((te[ke][1].type==="lineEnding"||te[ke][1].type==="space")&&(te[Se][1].type==="lineEnding"||te[Se][1].type==="space")){for(je=ke;++je<Se;)if(te[je][1].type==="codeTextData"){te[ke][1].type="codeTextPadding",te[Se][1].type="codeTextPadding",ke+=2,Se-=2;break}}for(je=ke-1,Se++;++je<=Se;)Je===void 0?je!==Se&&te[je][1].type!=="lineEnding"&&(Je=je):(je===Se||te[je][1].type==="lineEnding")&&(te[Je][1].type="codeTextData",je!==Je+2&&(te[Je][1].end=te[je-1][1].end,te.splice(Je+2,je-Je-2),Se-=je-Je-2,je=Je+2),Je=void 0);return te}function kt(te){return te!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Jr(te,Se,ke){const je=this;let Je=0,Qe,ct;return mt;function mt(on){return te.enter("codeText"),te.enter("codeTextSequence"),zt(on)}function zt(on){return on===96?(te.consume(on),Je++,zt):(te.exit("codeTextSequence"),Yt(on))}function Yt(on){return on===null?ke(on):on===32?(te.enter("space"),te.consume(on),te.exit("space"),Yt):on===96?(ct=te.enter("codeTextSequence"),Qe=0,ln(on)):(0,wt.Ch)(on)?(te.enter("lineEnding"),te.consume(on),te.exit("lineEnding"),Yt):(te.enter("codeTextData"),Lt(on))}function Lt(on){return on===null||on===32||on===96||(0,wt.Ch)(on)?(te.exit("codeTextData"),Yt(on)):(te.consume(on),Lt)}function ln(on){return on===96?(te.consume(on),Qe++,ln):Qe===Je?(te.exit("codeTextSequence"),te.exit("codeText"),Se(on)):(ct.type="codeTextData",Lt(on))}}const Vi={42:zr,43:zr,45:zr,48:zr,49:zr,50:zr,51:zr,52:zr,53:zr,54:zr,55:zr,56:zr,57:zr,62:An},Ts={91:Ht},ds={[-2]:Pn,[-1]:Pn,32:Pn},js={35:Dt,42:ai,45:[oi,ai],60:qr,61:oi,95:ai,96:Di,126:Di},_s={38:Vt,92:Ie},ar={[-5]:sn,[-4]:sn,[-3]:sn,33:Cr,38:Vt,42:Kr,60:[Wi,go],91:ei,92:[Sr,Ie],93:Rn,95:Kr,96:Br},Ki={null:[Kr,fr]},yo={null:[42,95]},Ho={null:[]};function Yr(te,Se,ke){let je={_bufferIndex:-1,_index:0,line:ke&&ke.line||1,column:ke&&ke.column||1,offset:ke&&ke.offset||0};const Je={},Qe=[];let ct=[],mt=[],zt=!0;const Yt={attempt:wo(Mo),check:wo(ss),consume:No,enter:Io,exit:tr,interrupt:wo(ss,{interrupt:!0})},Lt={code:null,containerState:{},defineSkip:mr,events:[],now:Ni,parser:te,previous:null,sliceSerialize:Ur,sliceStream:fi,write:Pt};let ln=Se.tokenize.call(Lt,Yt),on;return Se.resolveAll&&Qe.push(Se),Lt;function Pt(Ti){return ct=dt(ct,Ti),Wr(),ct[ct.length-1]!==null?[]:(Dr(Se,0),Lt.events=_n(Qe,Lt.events,Lt),Lt.events)}function Ur(Ti,wi){return an(fi(Ti),wi)}function fi(Ti){return jr(ct,Ti)}function Ni(){const{_bufferIndex:Ti,_index:wi,line:so,column:ns,offset:Bs}=je;return{_bufferIndex:Ti,_index:wi,line:so,column:ns,offset:Bs}}function mr(Ti){Je[Ti.line]=Ti.column,Go()}function Wr(){let Ti;for(;je._index<ct.length;){const wi=ct[je._index];if(typeof wi=="string")for(Ti=je._index,je._bufferIndex<0&&(je._bufferIndex=0);je._index===Ti&&je._bufferIndex<wi.length;)ti(wi.charCodeAt(je._bufferIndex));else ti(wi)}}function ti(Ti){zt=void 0,on=Ti,ln=ln(Ti)}function No(Ti){(0,wt.Ch)(Ti)?(je.line++,je.column=1,je.offset+=Ti===-3?2:1,Go()):Ti!==-1&&(je.column++,je.offset++),je._bufferIndex<0?je._index++:(je._bufferIndex++,je._bufferIndex===ct[je._index].length&&(je._bufferIndex=-1,je._index++)),Lt.previous=Ti,zt=!0}function Io(Ti,wi){const so=wi||{};return so.type=Ti,so.start=Ni(),Lt.events.push(["enter",so,Lt]),mt.push(so),so}function tr(Ti){const wi=mt.pop();return wi.end=Ni(),Lt.events.push(["exit",wi,Lt]),wi}function Mo(Ti,wi){Dr(Ti,wi.from)}function ss(Ti,wi){wi.restore()}function wo(Ti,wi){return so;function so(ns,Bs,Xs){let Pa,Qt,la,Ya;return Array.isArray(ns)?Zs(ns):"tokenize"in ns?Zs([ns]):rn(ns);function rn(rs){return $a;function $a(zs){const Pl=zs!==null&&rs[zs],nu=zs!==null&&rs.null,Ec=[...Array.isArray(Pl)?Pl:Pl?[Pl]:[],...Array.isArray(nu)?nu:nu?[nu]:[]];return Zs(Ec)(zs)}}function Zs(rs){return Pa=rs,Qt=0,rs.length===0?Xs:al(rs[Qt])}function al(rs){return $a;function $a(zs){return Ya=aa(),la=rs,rs.partial||(Lt.currentConstruct=rs),rs.name&&Lt.parser.constructs.disable.null.includes(rs.name)?Ls(zs):rs.tokenize.call(wi?Object.assign(Object.create(Lt),wi):Lt,Yt,bl,Ls)(zs)}}function bl(rs){return zt=!0,Ti(la,Ya),Bs}function Ls(rs){return zt=!0,Ya.restore(),++Qt<Pa.length?al(Pa[Qt]):Xs}}}function Dr(Ti,wi){Ti.resolveAll&&!Qe.includes(Ti)&&Qe.push(Ti),Ti.resolve&&et(Lt.events,wi,Lt.events.length-wi,Ti.resolve(Lt.events.slice(wi),Lt)),Ti.resolveTo&&(Lt.events=Ti.resolveTo(Lt.events,Lt))}function aa(){const Ti=Ni(),wi=Lt.previous,so=Lt.currentConstruct,ns=Lt.events.length,Bs=Array.from(mt);return{from:ns,restore:Xs};function Xs(){je=Ti,Lt.previous=wi,Lt.currentConstruct=so,Lt.events.length=ns,mt=Bs,Go()}}function Go(){je.line in Je&&je.column<2&&(je.column=Je[je.line],je.offset+=Je[je.line]-1)}}function jr(te,Se){const ke=Se.start._index,je=Se.start._bufferIndex,Je=Se.end._index,Qe=Se.end._bufferIndex;let ct;if(ke===Je)ct=[te[ke].slice(je,Qe)];else{if(ct=te.slice(ke,Je),je>-1){const mt=ct[0];typeof mt=="string"?ct[0]=mt.slice(je):ct.shift()}Qe>0&&ct.push(te[Je].slice(0,Qe))}return ct}function an(te,Se){let ke=-1;const je=[];let Je;for(;++ke<te.length;){const Qe=te[ke];let ct;if(typeof Qe=="string")ct=Qe;else switch(Qe){case-5:{ct="\r";break}case-4:{ct=`
`;break}case-3:{ct=`\r
`;break}case-2:{ct=Se?" ":" ";break}case-1:{if(!Se&&Je)continue;ct=" ";break}default:ct=String.fromCharCode(Qe)}Je=Qe===-2,je.push(ct)}return je.join("")}function cr(te){const je={constructs:Ct([B,...(te||{}).extensions||[]]),content:Je(Dn),defined:[],document:Je(Qn),flow:Je(Ir),lazy:{},string:Je(oo),text:Je(Zr)};return je;function Je(Qe){return ct;function ct(mt){return Yr(je,Qe,mt)}}}const Gr=/[\0\t\n\r]/g;function ro(){let te=1,Se="",ke=!0,je;return Je;function Je(Qe,ct,mt){const zt=[];let Yt,Lt,ln,on,Pt;for(Qe=Se+(typeof Qe=="string"?Qe.toString():new TextDecoder(ct||void 0).decode(Qe)),ln=0,Se="",ke&&(Qe.charCodeAt(0)===65279&&ln++,ke=void 0);ln<Qe.length;){if(Gr.lastIndex=ln,Yt=Gr.exec(Qe),on=Yt&&Yt.index!==void 0?Yt.index:Qe.length,Pt=Qe.charCodeAt(on),!Yt){Se=Qe.slice(ln);break}if(Pt===10&&ln===on&&je)zt.push(-3),je=void 0;else switch(je&&(zt.push(-5),je=void 0),ln<on&&(zt.push(Qe.slice(ln,on)),te+=on-ln),Pt){case 0:{zt.push(65533),te++;break}case 9:{for(Lt=Math.ceil(te/4)*4,zt.push(-2);te++<Lt;)zt.push(-1);break}case 10:{zt.push(-4),te=1;break}default:je=!0,te=1}ln=on+1}return mt&&(je&&zt.push(-5),Se&&zt.push(Se),zt.push(null)),zt}}function zo(te,Se){const ke=Number.parseInt(te,Se);return ke<9||ke===11||ke>13&&ke<32||ke>126&&ke<160||ke>55295&&ke<57344||ke>64975&&ke<65008||(ke&65535)===65535||(ke&65535)===65534||ke>1114111?"\uFFFD":String.fromCodePoint(ke)}const Qo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tr(te){return te.replace(Qo,So)}function So(te,Se,ke){if(Se)return Se;if(ke.charCodeAt(0)===35){const Je=ke.charCodeAt(1),Qe=Je===120||Je===88;return zo(ke.slice(Qe?2:1),Qe?16:10)}return _t(ke)||te}const Oo={}.hasOwnProperty;function Co(te,Se,ke){return typeof Se!="string"&&(ke=Se,Se=void 0),Pi(ke)(Tt(cr(ke).document().write(ro()(te,Se,!0))))}function Pi(te){const Se={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Qe(Ae),autolinkProtocol:wo,autolinkEmail:wo,atxHeading:Qe(vu),blockQuote:Qe(zs),characterEscape:wo,characterReference:wo,codeFenced:Qe(Pl),codeFencedFenceInfo:ct,codeFencedFenceMeta:ct,codeIndented:Qe(Pl,ct),codeText:Qe(nu,ct),codeTextData:wo,data:wo,codeFlowValue:wo,definition:Qe(Ec),definitionDestinationString:ct,definitionLabelString:ct,definitionTitleString:ct,emphasis:Qe(ll),hardBreakEscape:Qe(Xc),hardBreakTrailing:Qe(Xc),htmlFlow:Qe(_,ct),htmlFlowData:wo,htmlText:Qe(_,ct),htmlTextData:wo,image:Qe(F),label:ct,link:Qe(Ae),listItem:Qe(Wt),listItemValue:on,listOrdered:Qe(lt,ln),listUnordered:Qe(lt),paragraph:Qe(Tn),reference:rn,referenceString:ct,resourceDestinationString:ct,resourceTitleString:ct,setextHeading:Qe(vu),strong:Qe(Gn),thematicBreak:Qe(Ei)},exit:{atxHeading:zt(),atxHeadingSequence:Io,autolink:zt(),autolinkEmail:$a,autolinkProtocol:rs,blockQuote:zt(),characterEscapeValue:Dr,characterReferenceMarkerHexadecimal:al,characterReferenceMarkerNumeric:al,characterReferenceValue:bl,characterReference:Ls,codeFenced:zt(Ni),codeFencedFence:fi,codeFencedFenceInfo:Pt,codeFencedFenceMeta:Ur,codeFlowValue:Dr,codeIndented:zt(mr),codeText:zt(so),codeTextData:Dr,data:Dr,definition:zt(),definitionDestinationString:No,definitionLabelString:Wr,definitionTitleString:ti,emphasis:zt(),hardBreakEscape:zt(Go),hardBreakTrailing:zt(Go),htmlFlow:zt(Ti),htmlFlowData:Dr,htmlText:zt(wi),htmlTextData:Dr,image:zt(Bs),label:Pa,labelText:Xs,lineEnding:aa,link:zt(ns),listItem:zt(),listOrdered:zt(),listUnordered:zt(),paragraph:zt(),referenceString:Zs,resourceDestinationString:Qt,resourceTitleString:la,resource:Ya,setextHeading:zt(ss),setextHeadingLineSequence:Mo,setextHeadingText:tr,strong:zt(),thematicBreak:zt()}};Is(Se,(te||{}).mdastExtensions||[]);const ke={};return je;function je(xn){let ur={type:"root",children:[]};const Ii={stack:[ur],tokenStack:[],config:Se,enter:mt,exit:Yt,buffer:ct,resume:Lt,data:ke},co=[];let Uo=-1;for(;++Uo<xn.length;)if(xn[Uo][1].type==="listOrdered"||xn[Uo][1].type==="listUnordered")if(xn[Uo][0]==="enter")co.push(Uo);else{const Sl=co.pop();Uo=Je(xn,Sl,Uo)}for(Uo=-1;++Uo<xn.length;){const Sl=Se[xn[Uo][0]];Oo.call(Sl,xn[Uo][1].type)&&Sl[xn[Uo][1].type].call(Object.assign({sliceSerialize:xn[Uo][2].sliceSerialize},Ii),xn[Uo][1])}if(Ii.tokenStack.length>0){const Sl=Ii.tokenStack[Ii.tokenStack.length-1];(Sl[1]||cs).call(Ii,void 0,Sl[0])}for(ur.position={start:lo(xn.length>0?xn[0][1].start:{line:1,column:1,offset:0}),end:lo(xn.length>0?xn[xn.length-2][1].end:{line:1,column:1,offset:0})},Uo=-1;++Uo<Se.transforms.length;)ur=Se.transforms[Uo](ur)||ur;return ur}function Je(xn,ur,Ii){let co=ur-1,Uo=-1,Sl=!1,Fl,yu,ru,Ca;for(;++co<=Ii;){const ul=xn[co];switch(ul[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ul[0]==="enter"?Uo++:Uo--,Ca=void 0;break}case"lineEndingBlank":{ul[0]==="enter"&&(Fl&&!Ca&&!Uo&&!ru&&(ru=co),Ca=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ca=void 0}if(!Uo&&ul[0]==="enter"&&ul[1].type==="listItemPrefix"||Uo===-1&&ul[0]==="exit"&&(ul[1].type==="listUnordered"||ul[1].type==="listOrdered")){if(Fl){let Hu=co;for(yu=void 0;Hu--;){const Xa=xn[Hu];if(Xa[1].type==="lineEnding"||Xa[1].type==="lineEndingBlank"){if(Xa[0]==="exit")continue;yu&&(xn[yu][1].type="lineEndingBlank",Sl=!0),Xa[1].type="lineEnding",yu=Hu}else if(!(Xa[1].type==="linePrefix"||Xa[1].type==="blockQuotePrefix"||Xa[1].type==="blockQuotePrefixWhitespace"||Xa[1].type==="blockQuoteMarker"||Xa[1].type==="listItemIndent"))break}ru&&(!yu||ru<yu)&&(Fl._spread=!0),Fl.end=Object.assign({},yu?xn[yu][1].start:ul[1].end),xn.splice(yu||co,0,["exit",Fl,ul[2]]),co++,Ii++}if(ul[1].type==="listItemPrefix"){const Hu={type:"listItem",_spread:!1,start:Object.assign({},ul[1].start),end:void 0};Fl=Hu,xn.splice(co,0,["enter",Hu,ul[2]]),co++,Ii++,ru=void 0,Ca=!0}}}return xn[ur][1]._spread=Sl,Ii}function Qe(xn,ur){return Ii;function Ii(co){mt.call(this,xn(co),co),ur&&ur.call(this,co)}}function ct(){this.stack.push({type:"fragment",children:[]})}function mt(xn,ur,Ii){this.stack[this.stack.length-1].children.push(xn),this.stack.push(xn),this.tokenStack.push([ur,Ii||void 0]),xn.position={start:lo(ur.start),end:void 0}}function zt(xn){return ur;function ur(Ii){xn&&xn.call(this,Ii),Yt.call(this,Ii)}}function Yt(xn,ur){const Ii=this.stack.pop(),co=this.tokenStack.pop();if(co)co[0].type!==xn.type&&(ur?ur.call(this,xn,co[0]):(co[1]||cs).call(this,xn,co[0]));else throw new Error("Cannot close `"+xn.type+"` ("+H({start:xn.start,end:xn.end})+"): it\u2019s not open");Ii.position.end=lo(xn.end)}function Lt(){return _e(this.stack.pop())}function ln(){this.data.expectingFirstListItemValue=!0}function on(xn){if(this.data.expectingFirstListItemValue){const ur=this.stack[this.stack.length-2];ur.start=Number.parseInt(this.sliceSerialize(xn),10),this.data.expectingFirstListItemValue=void 0}}function Pt(){const xn=this.resume(),ur=this.stack[this.stack.length-1];ur.lang=xn}function Ur(){const xn=this.resume(),ur=this.stack[this.stack.length-1];ur.meta=xn}function fi(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Ni(){const xn=this.resume(),ur=this.stack[this.stack.length-1];ur.value=xn.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function mr(){const xn=this.resume(),ur=this.stack[this.stack.length-1];ur.value=xn.replace(/(\r?\n|\r)$/g,"")}function Wr(xn){const ur=this.resume(),Ii=this.stack[this.stack.length-1];Ii.label=ur,Ii.identifier=wn(this.sliceSerialize(xn)).toLowerCase()}function ti(){const xn=this.resume(),ur=this.stack[this.stack.length-1];ur.title=xn}function No(){const xn=this.resume(),ur=this.stack[this.stack.length-1];ur.url=xn}function Io(xn){const ur=this.stack[this.stack.length-1];if(!ur.depth){const Ii=this.sliceSerialize(xn).length;ur.depth=Ii}}function tr(){this.data.setextHeadingSlurpLineEnding=!0}function Mo(xn){const ur=this.stack[this.stack.length-1];ur.depth=this.sliceSerialize(xn).codePointAt(0)===61?1:2}function ss(){this.data.setextHeadingSlurpLineEnding=void 0}function wo(xn){const Ii=this.stack[this.stack.length-1].children;let co=Ii[Ii.length-1];(!co||co.type!=="text")&&(co=$r(),co.position={start:lo(xn.start),end:void 0},Ii.push(co)),this.stack.push(co)}function Dr(xn){const ur=this.stack.pop();ur.value+=this.sliceSerialize(xn),ur.position.end=lo(xn.end)}function aa(xn){const ur=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ii=ur.children[ur.children.length-1];Ii.position.end=lo(xn.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&Se.canContainEols.includes(ur.type)&&(wo.call(this,xn),Dr.call(this,xn))}function Go(){this.data.atHardBreak=!0}function Ti(){const xn=this.resume(),ur=this.stack[this.stack.length-1];ur.value=xn}function wi(){const xn=this.resume(),ur=this.stack[this.stack.length-1];ur.value=xn}function so(){const xn=this.resume(),ur=this.stack[this.stack.length-1];ur.value=xn}function ns(){const xn=this.stack[this.stack.length-1];if(this.data.inReference){const ur=this.data.referenceType||"shortcut";xn.type+="Reference",xn.referenceType=ur,delete xn.url,delete xn.title}else delete xn.identifier,delete xn.label;this.data.referenceType=void 0}function Bs(){const xn=this.stack[this.stack.length-1];if(this.data.inReference){const ur=this.data.referenceType||"shortcut";xn.type+="Reference",xn.referenceType=ur,delete xn.url,delete xn.title}else delete xn.identifier,delete xn.label;this.data.referenceType=void 0}function Xs(xn){const ur=this.sliceSerialize(xn),Ii=this.stack[this.stack.length-2];Ii.label=Tr(ur),Ii.identifier=wn(ur).toLowerCase()}function Pa(){const xn=this.stack[this.stack.length-1],ur=this.resume(),Ii=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ii.type==="link"){const co=xn.children;Ii.children=co}else Ii.alt=ur}function Qt(){const xn=this.resume(),ur=this.stack[this.stack.length-1];ur.url=xn}function la(){const xn=this.resume(),ur=this.stack[this.stack.length-1];ur.title=xn}function Ya(){this.data.inReference=void 0}function rn(){this.data.referenceType="collapsed"}function Zs(xn){const ur=this.resume(),Ii=this.stack[this.stack.length-1];Ii.label=ur,Ii.identifier=wn(this.sliceSerialize(xn)).toLowerCase(),this.data.referenceType="full"}function al(xn){this.data.characterReferenceType=xn.type}function bl(xn){const ur=this.sliceSerialize(xn),Ii=this.data.characterReferenceType;let co;Ii?(co=zo(ur,Ii==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):co=_t(ur);const Uo=this.stack[this.stack.length-1];Uo.value+=co}function Ls(xn){const ur=this.stack.pop();ur.position.end=lo(xn.end)}function rs(xn){Dr.call(this,xn);const ur=this.stack[this.stack.length-1];ur.url=this.sliceSerialize(xn)}function $a(xn){Dr.call(this,xn);const ur=this.stack[this.stack.length-1];ur.url="mailto:"+this.sliceSerialize(xn)}function zs(){return{type:"blockquote",children:[]}}function Pl(){return{type:"code",lang:null,meta:null,value:""}}function nu(){return{type:"inlineCode",value:""}}function Ec(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ll(){return{type:"emphasis",children:[]}}function vu(){return{type:"heading",depth:0,children:[]}}function Xc(){return{type:"break"}}function _(){return{type:"html",value:""}}function F(){return{type:"image",title:null,url:"",alt:null}}function Ae(){return{type:"link",title:null,url:"",children:[]}}function lt(xn){return{type:"list",ordered:xn.type==="listOrdered",start:null,spread:xn._spread,children:[]}}function Wt(xn){return{type:"listItem",spread:xn._spread,checked:null,children:[]}}function Tn(){return{type:"paragraph",children:[]}}function Gn(){return{type:"strong",children:[]}}function $r(){return{type:"text",value:""}}function Ei(){return{type:"thematicBreak"}}}function lo(te){return{line:te.line,column:te.column,offset:te.offset}}function Is(te,Se){let ke=-1;for(;++ke<Se.length;){const je=Se[ke];Array.isArray(je)?Is(te,je):Bi(te,je)}}function Bi(te,Se){let ke;for(ke in Se)if(Oo.call(Se,ke))switch(ke){case"canContainEols":{const je=Se[ke];je&&te[ke].push(...je);break}case"transforms":{const je=Se[ke];je&&te[ke].push(...je);break}case"enter":case"exit":{const je=Se[ke];je&&Object.assign(te[ke],je);break}}}function cs(te,Se){throw te?new Error("Cannot close `"+te.type+"` ("+H({start:te.start,end:te.end})+"): a different token (`"+Se.type+"`, "+H({start:Se.start,end:Se.end})+") is open"):new Error("Cannot close document, a token (`"+Se.type+"`, "+H({start:Se.start,end:Se.end})+") is still open")}function Sa(te){const Se=this;Se.parser=ke;function ke(je){return Co(je,Pf(eo(eo({},Se.data("settings")),te),{extensions:Se.data("micromarkExtensions")||[],mdastExtensions:Se.data("fromMarkdownExtensions")||[]}))}}var rl=S(90302);function xo(te,Se){const ke=encode(Oa(te||""));if(!Se)return ke;const je=ke.indexOf(":"),Je=ke.indexOf("?"),Qe=ke.indexOf("#"),ct=ke.indexOf("/");return je<0||ct>-1&&je>ct||Je>-1&&je>Je||Qe>-1&&je>Qe||Se.test(ke.slice(0,je))?ke:""}function Oa(te){const Se=[];let ke=-1,je=0,Je=0;for(;++ke<te.length;){const Qe=te.charCodeAt(ke);let ct="";if(Qe===37&&(0,wt.H$)(te.charCodeAt(ke+1))&&(0,wt.H$)(te.charCodeAt(ke+2)))Je=2;else if(Qe<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(Qe))||(ct=String.fromCharCode(Qe));else if(Qe>55295&&Qe<57344){const mt=te.charCodeAt(ke+1);Qe<56320&&mt>56319&&mt<57344?(ct=String.fromCharCode(Qe,mt),Je=1):ct="\uFFFD"}else ct=String.fromCharCode(Qe);ct&&(Se.push(te.slice(je,ke),encodeURIComponent(ct)),je=ke+Je+1,ct=""),Je&&(ke+=Je,Je=0)}return Se.join("")+te.slice(je)}function Yl(te,Se){const ke=[{type:"text",value:"\u21A9"}];return Se>1&&ke.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(Se)}]}),ke}function Ga(te,Se){return"Back to reference "+(te+1)+(Se>1?"-"+Se:"")}function ra(te){const Se=typeof te.options.clobberPrefix=="string"?te.options.clobberPrefix:"user-content-",ke=te.options.footnoteBackContent||Yl,je=te.options.footnoteBackLabel||Ga,Je=te.options.footnoteLabel||"Footnotes",Qe=te.options.footnoteLabelTagName||"h2",ct=te.options.footnoteLabelProperties||{className:["sr-only"]},mt=[];let zt=-1;for(;++zt<te.footnoteOrder.length;){const Yt=te.footnoteById.get(te.footnoteOrder[zt]);if(!Yt)continue;const Lt=te.all(Yt),ln=String(Yt.identifier).toUpperCase(),on=Oa(ln.toLowerCase());let Pt=0;const Ur=[],fi=te.footnoteCounts.get(ln);for(;fi!==void 0&&++Pt<=fi;){Ur.length>0&&Ur.push({type:"text",value:" "});let Wr=typeof ke=="string"?ke:ke(zt,Pt);typeof Wr=="string"&&(Wr={type:"text",value:Wr}),Ur.push({type:"element",tagName:"a",properties:{href:"#"+Se+"fnref-"+on+(Pt>1?"-"+Pt:""),dataFootnoteBackref:"",ariaLabel:typeof je=="string"?je:je(zt,Pt),className:["data-footnote-backref"]},children:Array.isArray(Wr)?Wr:[Wr]})}const Ni=Lt[Lt.length-1];if(Ni&&Ni.type==="element"&&Ni.tagName==="p"){const Wr=Ni.children[Ni.children.length-1];Wr&&Wr.type==="text"?Wr.value+=" ":Ni.children.push({type:"text",value:" "}),Ni.children.push(...Ur)}else Lt.push(...Ur);const mr={type:"element",tagName:"li",properties:{id:Se+"fn-"+on},children:te.wrap(Lt,!0)};te.patch(Yt,mr),mt.push(mr)}if(mt.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:Qe,properties:Pf(eo({},(0,rl.ZP)(ct)),{id:"footnote-label"}),children:[{type:"text",value:Je}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:te.wrap(mt,!0)},{type:"text",value:`
`}]}}var Us=S(10528);function Wa(te,Se){const ke={type:"element",tagName:"blockquote",properties:{},children:te.wrap(te.all(Se),!0)};return te.patch(Se,ke),te.applyData(Se,ke)}function pu(te,Se){const ke={type:"element",tagName:"br",properties:{},children:[]};return te.patch(Se,ke),[te.applyData(Se,ke),{type:"text",value:`
`}]}function $l(te,Se){const ke=Se.value?Se.value+`
`:"",je={};Se.lang&&(je.className=["language-"+Se.lang]);let Je={type:"element",tagName:"code",properties:je,children:[{type:"text",value:ke}]};return Se.meta&&(Je.data={meta:Se.meta}),te.patch(Se,Je),Je=te.applyData(Se,Je),Je={type:"element",tagName:"pre",properties:{},children:[Je]},te.patch(Se,Je),Je}function Bo(te,Se){const ke={type:"element",tagName:"del",properties:{},children:te.all(Se)};return te.patch(Se,ke),te.applyData(Se,ke)}function Xl(te,Se){const ke={type:"element",tagName:"em",properties:{},children:te.all(Se)};return te.patch(Se,ke),te.applyData(Se,ke)}function gu(te,Se){const ke=typeof te.options.clobberPrefix=="string"?te.options.clobberPrefix:"user-content-",je=String(Se.identifier).toUpperCase(),Je=Oa(je.toLowerCase()),Qe=te.footnoteOrder.indexOf(je);let ct,mt=te.footnoteCounts.get(je);mt===void 0?(mt=0,te.footnoteOrder.push(je),ct=te.footnoteOrder.length):ct=Qe+1,mt+=1,te.footnoteCounts.set(je,mt);const zt={type:"element",tagName:"a",properties:{href:"#"+ke+"fn-"+Je,id:ke+"fnref-"+Je+(mt>1?"-"+mt:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(ct)}]};te.patch(Se,zt);const Yt={type:"element",tagName:"sup",properties:{},children:[zt]};return te.patch(Se,Yt),te.applyData(Se,Yt)}function Ol(te,Se){const ke={type:"element",tagName:"h"+Se.depth,properties:{},children:te.all(Se)};return te.patch(Se,ke),te.applyData(Se,ke)}function Ll(te,Se){if(te.options.allowDangerousHtml){const ke={type:"raw",value:Se.value};return te.patch(Se,ke),te.applyData(Se,ke)}}function Ss(te,Se){const ke=Se.referenceType;let je="]";if(ke==="collapsed"?je+="[]":ke==="full"&&(je+="["+(Se.label||Se.identifier)+"]"),Se.type==="imageReference")return[{type:"text",value:"!["+Se.alt+je}];const Je=te.all(Se),Qe=Je[0];Qe&&Qe.type==="text"?Qe.value="["+Qe.value:Je.unshift({type:"text",value:"["});const ct=Je[Je.length-1];return ct&&ct.type==="text"?ct.value+=je:Je.push({type:"text",value:je}),Je}function As(te,Se){const ke=String(Se.identifier).toUpperCase(),je=te.definitionById.get(ke);if(!je)return Ss(te,Se);const Je={src:Oa(je.url||""),alt:Se.alt};je.title!==null&&je.title!==void 0&&(Je.title=je.title);const Qe={type:"element",tagName:"img",properties:Je,children:[]};return te.patch(Se,Qe),te.applyData(Se,Qe)}function $o(te,Se){const ke={src:Oa(Se.url)};Se.alt!==null&&Se.alt!==void 0&&(ke.alt=Se.alt),Se.title!==null&&Se.title!==void 0&&(ke.title=Se.title);const je={type:"element",tagName:"img",properties:ke,children:[]};return te.patch(Se,je),te.applyData(Se,je)}function qo(te,Se){const ke={type:"text",value:Se.value.replace(/\r?\n|\r/g," ")};te.patch(Se,ke);const je={type:"element",tagName:"code",properties:{},children:[ke]};return te.patch(Se,je),te.applyData(Se,je)}function no(te,Se){const ke=String(Se.identifier).toUpperCase(),je=te.definitionById.get(ke);if(!je)return Ss(te,Se);const Je={href:Oa(je.url||"")};je.title!==null&&je.title!==void 0&&(Je.title=je.title);const Qe={type:"element",tagName:"a",properties:Je,children:te.all(Se)};return te.patch(Se,Qe),te.applyData(Se,Qe)}function ci(te,Se){const ke={href:Oa(Se.url)};Se.title!==null&&Se.title!==void 0&&(ke.title=Se.title);const je={type:"element",tagName:"a",properties:ke,children:te.all(Se)};return te.patch(Se,je),te.applyData(Se,je)}function _i(te,Se,ke){const je=te.all(Se),Je=ke?es(ke):Lo(Se),Qe={},ct=[];if(typeof Se.checked=="boolean"){const Lt=je[0];let ln;Lt&&Lt.type==="element"&&Lt.tagName==="p"?ln=Lt:(ln={type:"element",tagName:"p",properties:{},children:[]},je.unshift(ln)),ln.children.length>0&&ln.children.unshift({type:"text",value:" "}),ln.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:Se.checked,disabled:!0},children:[]}),Qe.className=["task-list-item"]}let mt=-1;for(;++mt<je.length;){const Lt=je[mt];(Je||mt!==0||Lt.type!=="element"||Lt.tagName!=="p")&&ct.push({type:"text",value:`
`}),Lt.type==="element"&&Lt.tagName==="p"&&!Je?ct.push(...Lt.children):ct.push(Lt)}const zt=je[je.length-1];zt&&(Je||zt.type!=="element"||zt.tagName!=="p")&&ct.push({type:"text",value:`
`});const Yt={type:"element",tagName:"li",properties:Qe,children:ct};return te.patch(Se,Yt),te.applyData(Se,Yt)}function es(te){let Se=!1;if(te.type==="list"){Se=te.spread||!1;const ke=te.children;let je=-1;for(;!Se&&++je<ke.length;)Se=Lo(ke[je])}return Se}function Lo(te){const Se=te.spread;return Se==null?te.children.length>1:Se}function jo(te,Se){const ke={},je=te.all(Se);let Je=-1;for(typeof Se.start=="number"&&Se.start!==1&&(ke.start=Se.start);++Je<je.length;){const ct=je[Je];if(ct.type==="element"&&ct.tagName==="li"&&ct.properties&&Array.isArray(ct.properties.className)&&ct.properties.className.includes("task-list-item")){ke.className=["contains-task-list"];break}}const Qe={type:"element",tagName:Se.ordered?"ol":"ul",properties:ke,children:te.wrap(je,!0)};return te.patch(Se,Qe),te.applyData(Se,Qe)}function Zn(te,Se){const ke={type:"element",tagName:"p",properties:{},children:te.all(Se)};return te.patch(Se,ke),te.applyData(Se,ke)}function ia(te,Se){const ke={type:"root",children:te.wrap(te.all(Se))};return te.patch(Se,ke),te.applyData(Se,ke)}function ht(te,Se){const ke={type:"element",tagName:"strong",properties:{},children:te.all(Se)};return te.patch(Se,ke),te.applyData(Se,ke)}function qt(te,Se){const ke=te.all(Se),je=ke.shift(),Je=[];if(je){const ct={type:"element",tagName:"thead",properties:{},children:te.wrap([je],!0)};te.patch(Se.children[0],ct),Je.push(ct)}if(ke.length>0){const ct={type:"element",tagName:"tbody",properties:{},children:te.wrap(ke,!0)},mt=(0,L.Pk)(Se.children[1]),zt=(0,L.rb)(Se.children[Se.children.length-1]);mt&&zt&&(ct.position={start:mt,end:zt}),Je.push(ct)}const Qe={type:"element",tagName:"table",properties:{},children:te.wrap(Je,!0)};return te.patch(Se,Qe),te.applyData(Se,Qe)}function il(te,Se,ke){const je=ke?ke.children:void 0,Qe=(je?je.indexOf(Se):1)===0?"th":"td",ct=ke&&ke.type==="table"?ke.align:void 0,mt=ct?ct.length:Se.children.length;let zt=-1;const Yt=[];for(;++zt<mt;){const ln=Se.children[zt],on={},Pt=ct?ct[zt]:void 0;Pt&&(on.align=Pt);let Ur={type:"element",tagName:Qe,properties:on,children:[]};ln&&(Ur.children=te.all(ln),te.patch(ln,Ur),Ur=te.applyData(ln,Ur)),Yt.push(Ur)}const Lt={type:"element",tagName:"tr",properties:{},children:te.wrap(Yt,!0)};return te.patch(Se,Lt),te.applyData(Se,Lt)}function Zl(te,Se){const ke={type:"element",tagName:"td",properties:{},children:te.all(Se)};return te.patch(Se,ke),te.applyData(Se,ke)}const Xo=9,Ys=32;function vl(te){const Se=String(te),ke=/\r?\n|\r/g;let je=ke.exec(Se),Je=0;const Qe=[];for(;je;)Qe.push(Ml(Se.slice(Je,je.index),Je>0,!0),je[0]),Je=je.index+je[0].length,je=ke.exec(Se);return Qe.push(Ml(Se.slice(Je),Je>0,!1)),Qe.join("")}function Ml(te,Se,ke){let je=0,Je=te.length;if(Se){let Qe=te.codePointAt(je);for(;Qe===Xo||Qe===Ys;)je++,Qe=te.codePointAt(je)}if(ke){let Qe=te.codePointAt(Je-1);for(;Qe===Xo||Qe===Ys;)Je--,Qe=te.codePointAt(Je-1)}return Je>je?te.slice(je,Je):""}function Jl(te,Se){const ke={type:"text",value:vl(String(Se.value))};return te.patch(Se,ke),te.applyData(Se,ke)}function To(te,Se){const ke={type:"element",tagName:"hr",properties:{},children:[]};return te.patch(Se,ke),te.applyData(Se,ke)}const Mr={blockquote:Wa,break:pu,code:$l,delete:Bo,emphasis:Xl,footnoteReference:gu,heading:Ol,html:Ll,imageReference:As,image:$o,inlineCode:qo,linkReference:no,link:ci,listItem:_i,list:jo,paragraph:Zn,root:ia,strong:ht,table:qt,tableCell:Zl,tableRow:il,text:Jl,thematicBreak:To,toml:ps,yaml:ps,definition:ps,footnoteDefinition:ps};function ps(){}const Ps={}.hasOwnProperty,Yi={};function xi(te,Se){const ke=Se||Yi,je=new Map,Je=new Map,Qe=new Map,ct=eo(eo({},Mr),ke.handlers),mt={all:Yt,applyData:Hs,definitionById:je,footnoteById:Je,footnoteCounts:Qe,footnoteOrder:[],handlers:ct,one:zt,options:ke,patch:Ao,wrap:$s};return(0,Us.Vn)(te,function(Lt){if(Lt.type==="definition"||Lt.type==="footnoteDefinition"){const ln=Lt.type==="definition"?je:Je,on=String(Lt.identifier).toUpperCase();ln.has(on)||ln.set(on,Lt)}}),mt;function zt(Lt,ln){const on=Lt.type,Pt=mt.handlers[on];if(Ps.call(mt.handlers,on)&&Pt)return Pt(mt,Lt,ln);if(mt.options.passThrough&&mt.options.passThrough.includes(on)){if("children"in Lt){const fi=Lt,{children:Ni}=fi,mr=O1(fi,["children"]),Wr=(0,rl.ZP)(mr);return Wr.children=mt.all(Lt),Wr}return(0,rl.ZP)(Lt)}return(mt.options.unknownHandler||mo)(mt,Lt,ln)}function Yt(Lt){const ln=[];if("children"in Lt){const on=Lt.children;let Pt=-1;for(;++Pt<on.length;){const Ur=mt.one(on[Pt],Lt);if(Ur){if(Pt&&on[Pt-1].type==="break"&&(!Array.isArray(Ur)&&Ur.type==="text"&&(Ur.value=is(Ur.value)),!Array.isArray(Ur)&&Ur.type==="element")){const fi=Ur.children[0];fi&&fi.type==="text"&&(fi.value=is(fi.value))}Array.isArray(Ur)?ln.push(...Ur):ln.push(Ur)}}}return ln}}function Ao(te,Se){te.position&&(Se.position=(0,L.FK)(te))}function Hs(te,Se){let ke=Se;if(te&&te.data){const je=te.data.hName,Je=te.data.hChildren,Qe=te.data.hProperties;if(typeof je=="string")if(ke.type==="element")ke.tagName=je;else{const ct="children"in ke?ke.children:[ke];ke={type:"element",tagName:je,properties:{},children:ct}}ke.type==="element"&&Qe&&Object.assign(ke.properties,(0,rl.ZP)(Qe)),"children"in ke&&ke.children&&Je!==null&&Je!==void 0&&(ke.children=Je)}return ke}function mo(te,Se){const ke=Se.data||{},je="value"in Se&&!(Ps.call(ke,"hProperties")||Ps.call(ke,"hChildren"))?{type:"text",value:Se.value}:{type:"element",tagName:"div",properties:{},children:te.all(Se)};return te.patch(Se,je),te.applyData(Se,je)}function $s(te,Se){const ke=[];let je=-1;for(Se&&ke.push({type:"text",value:`
`});++je<te.length;)je&&ke.push({type:"text",value:`
`}),ke.push(te[je]);return Se&&te.length>0&&ke.push({type:"text",value:`
`}),ke}function is(te){let Se=0,ke=te.charCodeAt(Se);for(;ke===9||ke===32;)Se++,ke=te.charCodeAt(Se);return te.slice(Se)}function yl(te,Se){const ke=xi(te,Se),je=ke.one(te,void 0),Je=ra(ke),Qe=Array.isArray(je)?{type:"root",children:je}:je||{type:"root",children:[]};return Je&&((0,Z.ok)("children"in Qe),Qe.children.push({type:"text",value:`
`},Je)),Qe}function Xi(te,Se){return te&&"run"in te?function(ke,je){return s0(this,null,function*(){const Je=yl(ke,eo({file:je},Se));yield te.run(Je,je)})}:function(ke,je){return yl(ke,eo({file:je},te||Se))}}function gs(te){if(te)throw te}var ji=S(58847);function uo(te){if(typeof te!="object"||te===null)return!1;const Se=Object.getPrototypeOf(te);return(Se===null||Se===Object.prototype||Object.getPrototypeOf(Se)===null)&&!(Symbol.toStringTag in te)&&!(Symbol.iterator in te)}function po(){const te=[],Se={run:ke,use:je};return Se;function ke(...Je){let Qe=-1;const ct=Je.pop();if(typeof ct!="function")throw new TypeError("Expected function as last argument, not "+ct);mt(null,...Je);function mt(zt,...Yt){const Lt=te[++Qe];let ln=-1;if(zt){ct(zt);return}for(;++ln<Je.length;)(Yt[ln]===null||Yt[ln]===void 0)&&(Yt[ln]=Je[ln]);Je=Yt,Lt?_o(Lt,mt)(...Yt):ct(null,...Yt)}}function je(Je){if(typeof Je!="function")throw new TypeError("Expected `middelware` to be a function, not "+Je);return te.push(Je),Se}}function _o(te,Se){let ke;return je;function je(...ct){const mt=te.length>ct.length;let zt;mt&&ct.push(Je);try{zt=te.apply(this,ct)}catch(Yt){const Lt=Yt;if(mt&&ke)throw Lt;return Je(Lt)}mt||(zt&&zt.then&&typeof zt.then=="function"?zt.then(Qe,Je):zt instanceof Error?Je(zt):Qe(zt))}function Je(ct,...mt){ke||(ke=!0,Se(ct,...mt))}function Qe(ct){Je(null,ct)}}const Ai={basename:Ql,dirname:Ar,extname:oc,join:Fi,sep:"/"};function Ql(te,Se){if(Se!==void 0&&typeof Se!="string")throw new TypeError('"ext" argument must be a string');ol(te);let ke=0,je=-1,Je=te.length,Qe;if(Se===void 0||Se.length===0||Se.length>te.length){for(;Je--;)if(te.codePointAt(Je)===47){if(Qe){ke=Je+1;break}}else je<0&&(Qe=!0,je=Je+1);return je<0?"":te.slice(ke,je)}if(Se===te)return"";let ct=-1,mt=Se.length-1;for(;Je--;)if(te.codePointAt(Je)===47){if(Qe){ke=Je+1;break}}else ct<0&&(Qe=!0,ct=Je+1),mt>-1&&(te.codePointAt(Je)===Se.codePointAt(mt--)?mt<0&&(je=Je):(mt=-1,je=ct));return ke===je?je=ct:je<0&&(je=te.length),te.slice(ke,je)}function Ar(te){if(ol(te),te.length===0)return".";let Se=-1,ke=te.length,je;for(;--ke;)if(te.codePointAt(ke)===47){if(je){Se=ke;break}}else je||(je=!0);return Se<0?te.codePointAt(0)===47?"/":".":Se===1&&te.codePointAt(0)===47?"//":te.slice(0,Se)}function oc(te){ol(te);let Se=te.length,ke=-1,je=0,Je=-1,Qe=0,ct;for(;Se--;){const mt=te.codePointAt(Se);if(mt===47){if(ct){je=Se+1;break}continue}ke<0&&(ct=!0,ke=Se+1),mt===46?Je<0?Je=Se:Qe!==1&&(Qe=1):Je>-1&&(Qe=-1)}return Je<0||ke<0||Qe===0||Qe===1&&Je===ke-1&&Je===je+1?"":te.slice(Je,ke)}function Fi(...te){let Se=-1,ke;for(;++Se<te.length;)ol(te[Se]),te[Se]&&(ke=ke===void 0?te[Se]:ke+"/"+te[Se]);return ke===void 0?".":ju(ke)}function ju(te){ol(te);const Se=te.codePointAt(0)===47;let ke=Dl(te,!Se);return ke.length===0&&!Se&&(ke="."),ke.length>0&&te.codePointAt(te.length-1)===47&&(ke+="/"),Se?"/"+ke:ke}function Dl(te,Se){let ke="",je=0,Je=-1,Qe=0,ct=-1,mt,zt;for(;++ct<=te.length;){if(ct<te.length)mt=te.codePointAt(ct);else{if(mt===47)break;mt=47}if(mt===47){if(!(Je===ct-1||Qe===1))if(Je!==ct-1&&Qe===2){if(ke.length<2||je!==2||ke.codePointAt(ke.length-1)!==46||ke.codePointAt(ke.length-2)!==46){if(ke.length>2){if(zt=ke.lastIndexOf("/"),zt!==ke.length-1){zt<0?(ke="",je=0):(ke=ke.slice(0,zt),je=ke.length-1-ke.lastIndexOf("/")),Je=ct,Qe=0;continue}}else if(ke.length>0){ke="",je=0,Je=ct,Qe=0;continue}}Se&&(ke=ke.length>0?ke+"/..":"..",je=2)}else ke.length>0?ke+="/"+te.slice(Je+1,ct):ke=te.slice(Je+1,ct),je=ct-Je-1;Je=ct,Qe=0}else mt===46&&Qe>-1?Qe++:Qe=-1}return ke}function ol(te){if(typeof te!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(te))}const Uu={cwd:Nu};function Nu(){return"/"}function La(te){return!!(te!==null&&typeof te=="object"&&"href"in te&&te.href&&"protocol"in te&&te.protocol&&te.auth===void 0)}function Ma(te){if(typeof te=="string")te=new URL(te);else if(!La(te)){const Se=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+te+"`");throw Se.code="ERR_INVALID_ARG_TYPE",Se}if(te.protocol!=="file:"){const Se=new TypeError("The URL must be of scheme file");throw Se.code="ERR_INVALID_URL_SCHEME",Se}return Ui(te)}function Ui(te){if(te.hostname!==""){const je=new TypeError('File URL host must be "localhost" or empty on darwin');throw je.code="ERR_INVALID_FILE_URL_HOST",je}const Se=te.pathname;let ke=-1;for(;++ke<Se.length;)if(Se.codePointAt(ke)===37&&Se.codePointAt(ke+1)===50){const je=Se.codePointAt(ke+2);if(je===70||je===102){const Je=new TypeError("File URL path must not include encoded / characters");throw Je.code="ERR_INVALID_FILE_URL_PATH",Je}}return decodeURIComponent(Se)}const Rs=["history","path","basename","stem","extname","dirname"];class ql{constructor(Se){let ke;Se?La(Se)?ke={path:Se}:typeof Se=="string"||ki(Se)?ke={value:Se}:ke=Se:ke={},this.cwd="cwd"in ke?"":Uu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let je=-1;for(;++je<Rs.length;){const Qe=Rs[je];Qe in ke&&ke[Qe]!==void 0&&ke[Qe]!==null&&(this[Qe]=Qe==="history"?[...ke[Qe]]:ke[Qe])}let Je;for(Je in ke)Rs.includes(Je)||(this[Je]=ke[Je])}get basename(){return typeof this.path=="string"?Ai.basename(this.path):void 0}set basename(Se){sl(Se,"basename"),Da(Se,"basename"),this.path=Ai.join(this.dirname||"",Se)}get dirname(){return typeof this.path=="string"?Ai.dirname(this.path):void 0}set dirname(Se){Va(this.basename,"dirname"),this.path=Ai.join(Se||"",this.basename)}get extname(){return typeof this.path=="string"?Ai.extname(this.path):void 0}set extname(Se){if(Da(Se,"extname"),Va(this.dirname,"extname"),Se){if(Se.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(Se.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ai.join(this.dirname,this.stem+(Se||""))}get path(){return this.history[this.history.length-1]}set path(Se){La(Se)&&(Se=Ma(Se)),sl(Se,"path"),this.path!==Se&&this.history.push(Se)}get stem(){return typeof this.path=="string"?Ai.basename(this.path,this.extname):void 0}set stem(Se){sl(Se,"stem"),Da(Se,"stem"),this.path=Ai.join(this.dirname||"",Se+(this.extname||""))}fail(Se,ke,je){const Je=this.message(Se,ke,je);throw Je.fatal=!0,Je}info(Se,ke,je){const Je=this.message(Se,ke,je);return Je.fatal=void 0,Je}message(Se,ke,je){const Je=new U(Se,ke,je);return this.path&&(Je.name=this.path+":"+Je.name,Je.file=this.path),Je.fatal=!1,this.messages.push(Je),Je}toString(Se){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(Se||void 0).decode(this.value)}}function Da(te,Se){if(te&&te.includes(Ai.sep))throw new Error("`"+Se+"` cannot be a path: did not expect `"+Ai.sep+"`")}function sl(te,Se){if(!te)throw new Error("`"+Se+"` cannot be empty")}function Va(te,Se){if(!te)throw new Error("Setting `"+Se+"` requires `path` to be set too")}function ki(te){return!!(te&&typeof te=="object"&&"byteLength"in te&&"byteOffset"in te)}const Zi=function(te){const je=this.constructor.prototype,Je=je[te],Qe=function(){return Je.apply(Qe,arguments)};return Object.setPrototypeOf(Qe,je),Qe},ko={}.hasOwnProperty;class ms extends Zi{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=po()}copy(){const Se=new ms;let ke=-1;for(;++ke<this.attachers.length;){const je=this.attachers[ke];Se.use(...je)}return Se.data(ji(!0,{},this.namespace)),Se}data(Se,ke){return typeof Se=="string"?arguments.length===2?(Ea("data",this.frozen),this.namespace[Se]=ke,this):ko.call(this.namespace,Se)&&this.namespace[Se]||void 0:Se?(Ea("data",this.frozen),this.namespace=Se,this):this.namespace}freeze(){if(this.frozen)return this;const Se=this;for(;++this.freezeIndex<this.attachers.length;){const[ke,...je]=this.attachers[this.freezeIndex];if(je[0]===!1)continue;je[0]===!0&&(je[0]=void 0);const Je=ke.call(Se,...je);typeof Je=="function"&&this.transformers.use(Je)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(Se){this.freeze();const ke=Sc(Se),je=this.parser||this.Parser;return xa("parse",je),je(String(ke),ke)}process(Se,ke){const je=this;return this.freeze(),xa("process",this.parser||this.Parser),wa("process",this.compiler||this.Compiler),ke?Je(void 0,ke):new Promise(Je);function Je(Qe,ct){const mt=Sc(Se),zt=je.parse(mt);je.run(zt,mt,function(Lt,ln,on){if(Lt||!ln||!on)return Yt(Lt);const Pt=ln,Ur=je.stringify(Pt,on);_h(Ur)?on.value=Ur:on.result=Ur,Yt(Lt,on)});function Yt(Lt,ln){Lt||!ln?ct(Lt):Qe?Qe(ln):((0,Z.ok)(ke,"`done` is defined if `resolve` is not"),ke(void 0,ln))}}}processSync(Se){let ke=!1,je;return this.freeze(),xa("processSync",this.parser||this.Parser),wa("processSync",this.compiler||this.Compiler),this.process(Se,Je),Ka("processSync","process",ke),(0,Z.ok)(je,"we either bailed on an error or have a tree"),je;function Je(Qe,ct){ke=!0,gs(Qe),je=ct}}run(Se,ke,je){oa(Se),this.freeze();const Je=this.transformers;return!je&&typeof ke=="function"&&(je=ke,ke=void 0),je?Qe(void 0,je):new Promise(Qe);function Qe(ct,mt){(0,Z.ok)(typeof ke!="function","`file` can\u2019t be a `done` anymore, we checked");const zt=Sc(ke);Je.run(Se,zt,Yt);function Yt(Lt,ln,on){const Pt=ln||Se;Lt?mt(Lt):ct?ct(Pt):((0,Z.ok)(je,"`done` is defined if `resolve` is not"),je(void 0,Pt,on))}}}runSync(Se,ke){let je=!1,Je;return this.run(Se,ke,Qe),Ka("runSync","run",je),(0,Z.ok)(Je,"we either bailed on an error or have a tree"),Je;function Qe(ct,mt){gs(ct),Je=mt,je=!0}}stringify(Se,ke){this.freeze();const je=Sc(ke),Je=this.compiler||this.Compiler;return wa("stringify",Je),oa(Se),Je(Se,je)}use(Se,...ke){const je=this.attachers,Je=this.namespace;if(Ea("use",this.frozen),Se!=null)if(typeof Se=="function")zt(Se,ke);else if(typeof Se=="object")Array.isArray(Se)?mt(Se):ct(Se);else throw new TypeError("Expected usable value, not `"+Se+"`");return this;function Qe(Yt){if(typeof Yt=="function")zt(Yt,[]);else if(typeof Yt=="object")if(Array.isArray(Yt)){const[Lt,...ln]=Yt;zt(Lt,ln)}else ct(Yt);else throw new TypeError("Expected usable value, not `"+Yt+"`")}function ct(Yt){if(!("plugins"in Yt)&&!("settings"in Yt))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");mt(Yt.plugins),Yt.settings&&(Je.settings=ji(!0,Je.settings,Yt.settings))}function mt(Yt){let Lt=-1;if(Yt!=null)if(Array.isArray(Yt))for(;++Lt<Yt.length;){const ln=Yt[Lt];Qe(ln)}else throw new TypeError("Expected a list of plugins, not `"+Yt+"`")}function zt(Yt,Lt){let ln=-1,on=-1;for(;++ln<je.length;)if(je[ln][0]===Yt){on=ln;break}if(on===-1)je.push([Yt,...Lt]);else if(Lt.length>0){let[Pt,...Ur]=Lt;const fi=je[on][1];uo(fi)&&uo(Pt)&&(Pt=ji(!0,fi,Pt)),je[on]=[Yt,Pt,...Ur]}}}}const os=new ms().freeze();function xa(te,Se){if(typeof Se!="function")throw new TypeError("Cannot `"+te+"` without `parser`")}function wa(te,Se){if(typeof Se!="function")throw new TypeError("Cannot `"+te+"` without `compiler`")}function Ea(te,Se){if(Se)throw new Error("Cannot call `"+te+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function oa(te){if(!uo(te)||typeof te.type!="string")throw new TypeError("Expected node, got `"+te+"`")}function Ka(te,Se,ke){if(!ke)throw new Error("`"+te+"` finished async. Use `"+Se+"` instead")}function Sc(te){return Th(te)?te:new ql(te)}function Th(te){return!!(te&&typeof te=="object"&&"message"in te&&"messages"in te)}function _h(te){return typeof te=="string"||Ah(te)}function Ah(te){return!!(te&&typeof te=="object"&&"byteLength"in te&&"byteOffset"in te)}const ts="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",eu=[],ho={allowDangerousHtml:!0},xs=/^(https?|ircs?|mailto|xmpp)$/i,Os=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ks(te){const Se=tu(te),ke=xc(te);return wc(Se.runSync(Se.parse(ke),ke),te)}function mu(te){return s0(this,null,function*(){const Se=tu(te),ke=xc(te),je=yield Se.run(Se.parse(ke),ke);return wc(je,te)})}function Fs(te){const Se=tu(te),[ke,je]=useState(void 0),[Je,Qe]=useState(void 0);if(useEffect(function(){const ct=xc(te);Se.run(Se.parse(ct),ct,function(mt,zt){je(mt),Qe(zt)})},[te.children,te.rehypePlugins,te.remarkPlugins,te.remarkRehypeOptions]),ke)throw ke;return Je?wc(Je,te):createElement(Fragment)}function tu(te){const Se=te.rehypePlugins||eu,ke=te.remarkPlugins||eu,je=te.remarkRehypeOptions?eo(eo({},te.remarkRehypeOptions),ho):ho;return os().use(Sa).use(ke).use(Xi,je).use(Se)}function xc(te){const Se=te.children||"",ke=new ql;return typeof Se=="string"?ke.value=Se:(0,Z.t1)("Unexpected value `"+Se+"` for `children` prop, expected `string`"),ke}function wc(te,Se){const ke=Se.allowedElements,je=Se.allowElement,Je=Se.components,Qe=Se.disallowedElements,ct=Se.skipHtml,mt=Se.unwrapDisallowed,zt=Se.urlTransform||sa;for(const Lt of Os)Object.hasOwn(Se,Lt.from)&&(0,Z.t1)("Unexpected `"+Lt.from+"` prop, "+(Lt.to?"use `"+Lt.to+"` instead":"remove it")+" (see <"+ts+"#"+Lt.id+"> for more info)");return ke&&Qe&&(0,Z.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),Se.className&&(te={type:"element",tagName:"div",properties:{className:Se.className},children:te.type==="root"?te.children:[te]}),(0,Us.Vn)(te,Yt),se(te,{Fragment:ne.Fragment,components:Je,ignoreInvalidStyle:!0,jsx:ne.jsx,jsxs:ne.jsxs,passKeys:!0,passNode:!0});function Yt(Lt,ln,on){if(Lt.type==="raw"&&on&&typeof ln=="number")return ct?on.children.splice(ln,1):on.children[ln]={type:"text",value:Lt.value},ln;if(Lt.type==="element"){let Pt;for(Pt in Ce)if(Object.hasOwn(Ce,Pt)&&Object.hasOwn(Lt.properties,Pt)){const Ur=Lt.properties[Pt],fi=Ce[Pt];(fi===null||fi.includes(Lt.tagName))&&(Lt.properties[Pt]=zt(String(Ur||""),Pt,Lt))}}if(Lt.type==="element"){let Pt=ke?!ke.includes(Lt.tagName):Qe?Qe.includes(Lt.tagName):!1;if(!Pt&&je&&typeof ln=="number"&&(Pt=!je(Lt,ln,on)),Pt&&on&&typeof ln=="number")return mt&&Lt.children?on.children.splice(ln,1,...Lt.children):on.children.splice(ln,1),ln}}}function sa(te){const Se=te.indexOf(":"),ke=te.indexOf("?"),je=te.indexOf("#"),Je=te.indexOf("/");return Se===-1||Je!==-1&&Se>Je||ke!==-1&&Se>ke||je!==-1&&Se>je||xs.test(te.slice(0,Se))?te:""}},93772:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return Xc}});var B={};S.r(B),S.d(B,{boolean:function(){return U},booleanish:function(){return G},commaOrSpaceSeparated:function(){return ue},commaSeparated:function(){return oe},number:function(){return ee},overloadedBoolean:function(){return J},spaceSeparated:function(){return ae}});var Z=S(90302),s=S(87342),C=S(81994),A=S(58222),u=S(84837);function p(_){const F=String(_),Ae=[];return{toOffset:Wt,toPoint:lt};function lt(Tn){if(typeof Tn=="number"&&Tn>-1&&Tn<=F.length){let Gn=0;for(;;){let $r=Ae[Gn];if($r===void 0){const Ei=b(F,Ae[Gn-1]);$r=Ei===-1?F.length+1:Ei+1,Ae[Gn]=$r}if($r>Tn)return{line:Gn+1,column:Tn-(Gn>0?Ae[Gn-1]:0)+1,offset:Tn};Gn++}}}function Wt(Tn){if(Tn&&typeof Tn.line=="number"&&typeof Tn.column=="number"&&!Number.isNaN(Tn.line)&&!Number.isNaN(Tn.column)){for(;Ae.length<Tn.line;){const $r=Ae[Ae.length-1],Ei=b(F,$r),xn=Ei===-1?F.length+1:Ei+1;if($r===xn)break;Ae.push(xn)}const Gn=(Tn.line>1?Ae[Tn.line-2]:0)+Tn.column-1;if(Gn<Ae[Tn.line-1])return Gn}}}function b(_,F){const Ae=_.indexOf("\r",F),lt=_.indexOf(`
`,F);return lt===-1?Ae:Ae===-1||Ae+1===lt?lt:Ae<lt?Ae:lt}var g=S(43309);const y={}.hasOwnProperty,v=Object.prototype;function c(_,F){const Ae=F||{};return h({file:Ae.file||void 0,location:!1,schema:Ae.space==="svg"?A.YP:A.dy,verbose:Ae.verbose||!1},_)}function h(_,F){let Ae;switch(F.nodeName){case"#comment":{const lt=F;return Ae={type:"comment",value:lt.data},T(_,lt,Ae),Ae}case"#document":case"#document-fragment":{const lt=F,Wt="mode"in lt?lt.mode==="quirks"||lt.mode==="limited-quirks":!1;if(Ae={type:"root",children:m(_,F.childNodes),data:{quirksMode:Wt}},_.file&&_.location){const Tn=String(_.file),Gn=p(Tn),$r=Gn.toPoint(0),Ei=Gn.toPoint(Tn.length);(0,s.ok)($r,"expected `start`"),(0,s.ok)(Ei,"expected `end`"),Ae.position={start:$r,end:Ei}}return Ae}case"#documentType":{const lt=F;return Ae={type:"doctype"},T(_,lt,Ae),Ae}case"#text":{const lt=F;return Ae={type:"text",value:lt.value},T(_,lt,Ae),Ae}default:return Ae=E(_,F),Ae}}function m(_,F){let Ae=-1;const lt=[];for(;++Ae<F.length;){const Wt=h(_,F[Ae]);lt.push(Wt)}return lt}function E(_,F){const Ae=_.schema;_.schema=F.namespaceURI===g.t.svg?A.YP:A.dy;let lt=-1;const Wt={};for(;++lt<F.attrs.length;){const $r=F.attrs[lt],Ei=($r.prefix?$r.prefix+":":"")+$r.name;y.call(v,Ei)||(Wt[Ei]=$r.value)}const Gn=(_.schema.space==="svg"?C.s:C.h)(F.tagName,Wt,m(_,F.childNodes));if(T(_,F,Gn),Gn.tagName==="template"){const $r=F,Ei=$r.sourceCodeLocation,xn=Ei&&Ei.startTag&&R(Ei.startTag),ur=Ei&&Ei.endTag&&R(Ei.endTag),Ii=h(_,$r.content);xn&&ur&&_.file&&(Ii.position={start:xn.end,end:ur.start}),Gn.content=Ii}return _.schema=Ae,Gn}function T(_,F,Ae){if("sourceCodeLocation"in F&&F.sourceCodeLocation&&_.file){const lt=I(_,Ae,F.sourceCodeLocation);lt&&(_.location=!0,Ae.position=lt)}}function I(_,F,Ae){const lt=R(Ae);if(F.type==="element"){const Wt=F.children[F.children.length-1];if(lt&&!Ae.endTag&&Wt&&Wt.position&&Wt.position.end&&(lt.end=Object.assign({},Wt.position.end)),_.verbose){const Tn={};let Gn;if(Ae.attrs)for(Gn in Ae.attrs)y.call(Ae.attrs,Gn)&&(Tn[(0,u.s)(_.schema,Gn).property]=R(Ae.attrs[Gn]));(0,s.ok)(Ae.startTag,"a start tag should exist");const $r=R(Ae.startTag),Ei=Ae.endTag?R(Ae.endTag):void 0,xn={opening:$r};Ei&&(xn.closing=Ei),xn.properties=Tn,F.data={position:xn}}}return lt}function R(_){const F=N({line:_.startLine,column:_.startCol,offset:_.startOffset}),Ae=N({line:_.endLine,column:_.endCol,offset:_.endOffset});return F||Ae?{start:F,end:Ae}:void 0}function N(_){return _.line&&_.column?_:void 0}var k=S(11630);class L{constructor(F,Ae,lt){this.property=F,this.normal=Ae,lt&&(this.space=lt)}}L.prototype.property={},L.prototype.normal={},L.prototype.space=null;function H(_,F){const Ae={},lt={};let Wt=-1;for(;++Wt<_.length;)Object.assign(Ae,_[Wt].property),Object.assign(lt,_[Wt].normal);return new L(Ae,lt,F)}function D(_){return _.toLowerCase()}class V{constructor(F,Ae){this.property=F,this.attribute=Ae}}V.prototype.space=null,V.prototype.boolean=!1,V.prototype.booleanish=!1,V.prototype.overloadedBoolean=!1,V.prototype.number=!1,V.prototype.commaSeparated=!1,V.prototype.spaceSeparated=!1,V.prototype.commaOrSpaceSeparated=!1,V.prototype.mustUseProperty=!1,V.prototype.defined=!1;let P=0;const U=se(),G=se(),J=se(),ee=se(),ae=se(),oe=se(),ue=se();function se(){return o0(2,++P)}const ye=Object.keys(B);class ve extends V{constructor(F,Ae,lt,Wt){let Tn=-1;if(super(F,Ae),Re(this,"space",Wt),typeof lt=="number")for(;++Tn<ye.length;){const Gn=ye[Tn];Re(this,ye[Tn],(lt&B[Gn])===B[Gn])}}}ve.prototype.defined=!0;function Re(_,F,Ae){Ae&&(_[F]=Ae)}const le={}.hasOwnProperty;function xe(_){const F={},Ae={};let lt;for(lt in _.properties)if(le.call(_.properties,lt)){const Wt=_.properties[lt],Tn=new ve(lt,_.transform(_.attributes||{},lt),Wt,_.space);_.mustUseProperty&&_.mustUseProperty.includes(lt)&&(Tn.mustUseProperty=!0),F[lt]=Tn,Ae[D(lt)]=lt,Ae[D(Tn.attribute)]=lt}return new L(F,Ae,_.space)}const pe=xe({space:"xlink",transform(_,F){return"xlink:"+F.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Me=xe({space:"xml",transform(_,F){return"xml:"+F.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Oe(_,F){return F in _?_[F]:F}function Le(_,F){return Oe(_,F.toLowerCase())}const Pe=xe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Le,properties:{xmlns:null,xmlnsXLink:null}}),De=xe({transform(_,F){return F==="role"?F:"aria-"+F.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:G,ariaAutoComplete:null,ariaBusy:G,ariaChecked:G,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:ae,ariaCurrent:null,ariaDescribedBy:ae,ariaDetails:null,ariaDisabled:G,ariaDropEffect:ae,ariaErrorMessage:null,ariaExpanded:G,ariaFlowTo:ae,ariaGrabbed:G,ariaHasPopup:null,ariaHidden:G,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ae,ariaLevel:ee,ariaLive:null,ariaModal:G,ariaMultiLine:G,ariaMultiSelectable:G,ariaOrientation:null,ariaOwns:ae,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:G,ariaReadOnly:G,ariaRelevant:null,ariaRequired:G,ariaRoleDescription:ae,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:G,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null}}),Ke=xe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Le,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:oe,acceptCharset:ae,accessKey:ae,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:ae,autoFocus:U,autoPlay:U,blocking:ae,capture:null,charSet:null,checked:U,cite:null,className:ae,cols:ee,colSpan:null,content:null,contentEditable:G,controls:U,controlsList:ae,coords:ee|oe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:J,draggable:G,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:ae,height:ee,hidden:U,high:ee,href:null,hrefLang:null,htmlFor:ae,httpEquiv:ae,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:ae,itemRef:ae,itemScope:U,itemType:ae,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:U,optimum:ee,pattern:null,ping:ae,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:ae,required:U,reversed:U,rows:ee,rowSpan:ee,sandbox:ae,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:G,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:G,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ae,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:G,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:U,disableRemotePlayback:U,prefix:null,property:null,results:ee,security:null,unselectable:null}}),ze=xe({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Oe,properties:{about:ue,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:ae,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:oe,g2:oe,glyphName:oe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:ue,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ae,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ue,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ue,rev:ue,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ue,requiredFeatures:ue,requiredFonts:ue,requiredFormats:ue,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:ue,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ue,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ue,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),it=H([Me,pe,Pe,De,Ke],"html"),ot=H([Me,pe,Pe,De,ze],"svg"),Ge=/^data[-\w.:]+$/i,Ee=/-[a-z]/g,fe=/[A-Z]/g;function z(_,F){const Ae=D(F);let lt=F,Wt=V;if(Ae in _.normal)return _.property[_.normal[Ae]];if(Ae.length>4&&Ae.slice(0,4)==="data"&&Ge.test(F)){if(F.charAt(4)==="-"){const Tn=F.slice(5).replace(Ee,de);lt="data"+Tn.charAt(0).toUpperCase()+Tn.slice(1)}else{const Tn=F.slice(4);if(!Ee.test(Tn)){let Gn=Tn.replace(fe,X);Gn.charAt(0)!=="-"&&(Gn="-"+Gn),F="data"+Gn}}Wt=ve}return new Wt(lt,F)}function X(_){return"-"+_.toLowerCase()}function de(_){return _.charAt(1).toUpperCase()}var Ce=S(71523);const ne={}.hasOwnProperty;function re(_,F){const Ae=F||{};function lt(Wt,...Tn){let Gn=lt.invalid;const $r=lt.handlers;if(Wt&&ne.call(Wt,_)){const Ei=String(Wt[_]);Gn=ne.call($r,Ei)?$r[Ei]:lt.unknown}if(Gn)return Gn.call(this,Wt,...Tn)}return lt.handlers=Ae.handlers||{},lt.invalid=Ae.invalid,lt.unknown=Ae.unknown,lt}const he={},_e={}.hasOwnProperty,Be=re("type",{handlers:{root:rt,element:nt,text:Ot,comment:pt,doctype:dt}});function Ue(_,F){const lt=(F||he).space;return Be(_,lt==="svg"?ot:it)}function rt(_,F){const Ae={nodeName:"#document",mode:(_.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return Ae.childNodes=Tt(_.children,Ae,F),vt(_,Ae),Ae}function et(_,F){const Ae={nodeName:"#document-fragment",childNodes:[]};return Ae.childNodes=Tt(_.children,Ae,F),vt(_,Ae),Ae}function dt(_){const F={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return vt(_,F),F}function Ot(_){const F={nodeName:"#text",value:_.value,parentNode:null};return vt(_,F),F}function pt(_){const F={nodeName:"#comment",data:_.value,parentNode:null};return vt(_,F),F}function nt(_,F){const Ae=F;let lt=Ae;_.type==="element"&&_.tagName.toLowerCase()==="svg"&&Ae.space==="html"&&(lt=ot);const Wt=[];let Tn;if(_.properties){for(Tn in _.properties)if(Tn!=="children"&&_e.call(_.properties,Tn)){const Ei=ut(lt,Tn,_.properties[Tn]);Ei&&Wt.push(Ei)}}const Gn=lt.space;(0,s.ok)(Gn);const $r={nodeName:_.tagName,tagName:_.tagName,attrs:Wt,namespaceURI:g.t[Gn],childNodes:[],parentNode:null};return $r.childNodes=Tt(_.children,$r,lt),vt(_,$r),_.tagName==="template"&&_.content&&($r.content=et(_.content,lt)),$r}function ut(_,F,Ae){const lt=z(_,F);if(Ae===!1||Ae===null||Ae===void 0||typeof Ae=="number"&&Number.isNaN(Ae)||!Ae&&lt.boolean)return;Array.isArray(Ae)&&(Ae=lt.commaSeparated?(0,k.P)(Ae):(0,Ce.P)(Ae));const Wt={name:lt.attribute,value:Ae===!0?"":String(Ae)};if(lt.space&&lt.space!=="html"&&lt.space!=="svg"){const Tn=Wt.name.indexOf(":");Tn<0?Wt.prefix="":(Wt.name=Wt.name.slice(Tn+1),Wt.prefix=lt.attribute.slice(0,Tn)),Wt.namespace=g.t[lt.space]}return Wt}function Tt(_,F,Ae){let lt=-1;const Wt=[];if(_)for(;++lt<_.length;){const Tn=Be(_[lt],Ae);Tn.parentNode=F,Wt.push(Tn)}return Wt}function vt(_,F){const Ae=_.position;Ae&&Ae.start&&Ae.end&&((0,s.ok)(typeof Ae.start.offset=="number"),(0,s.ok)(typeof Ae.end.offset=="number"),F.sourceCodeLocation={startLine:Ae.start.line,startCol:Ae.start.column,startOffset:Ae.start.offset,endLine:Ae.end.line,endCol:Ae.end.column,endOffset:Ae.end.offset})}const Ct=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ft=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Rt="\uFFFD";var $e;(function(_){_[_.EOF=-1]="EOF",_[_.NULL=0]="NULL",_[_.TABULATION=9]="TABULATION",_[_.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",_[_.LINE_FEED=10]="LINE_FEED",_[_.FORM_FEED=12]="FORM_FEED",_[_.SPACE=32]="SPACE",_[_.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",_[_.QUOTATION_MARK=34]="QUOTATION_MARK",_[_.AMPERSAND=38]="AMPERSAND",_[_.APOSTROPHE=39]="APOSTROPHE",_[_.HYPHEN_MINUS=45]="HYPHEN_MINUS",_[_.SOLIDUS=47]="SOLIDUS",_[_.DIGIT_0=48]="DIGIT_0",_[_.DIGIT_9=57]="DIGIT_9",_[_.SEMICOLON=59]="SEMICOLON",_[_.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",_[_.EQUALS_SIGN=61]="EQUALS_SIGN",_[_.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",_[_.QUESTION_MARK=63]="QUESTION_MARK",_[_.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",_[_.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",_[_.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",_[_.GRAVE_ACCENT=96]="GRAVE_ACCENT",_[_.LATIN_SMALL_A=97]="LATIN_SMALL_A",_[_.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})($e||($e={}));const Zt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function vn(_){return _>=55296&&_<=57343}function wt(_){return _>=56320&&_<=57343}function Dn(_,F){return(_-55296)*1024+9216+F}function nr(_){return _!==32&&_!==10&&_!==13&&_!==9&&_!==12&&_>=1&&_<=31||_>=127&&_<=159}function Qn(_){return _>=64976&&_<=65007||Ft.has(_)}var jt;(function(_){_.controlCharacterInInputStream="control-character-in-input-stream",_.noncharacterInInputStream="noncharacter-in-input-stream",_.surrogateInInputStream="surrogate-in-input-stream",_.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",_.endTagWithAttributes="end-tag-with-attributes",_.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",_.unexpectedSolidusInTag="unexpected-solidus-in-tag",_.unexpectedNullCharacter="unexpected-null-character",_.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",_.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",_.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",_.missingEndTagName="missing-end-tag-name",_.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",_.unknownNamedCharacterReference="unknown-named-character-reference",_.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",_.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",_.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",_.eofBeforeTagName="eof-before-tag-name",_.eofInTag="eof-in-tag",_.missingAttributeValue="missing-attribute-value",_.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",_.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",_.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",_.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",_.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",_.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",_.missingDoctypePublicIdentifier="missing-doctype-public-identifier",_.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",_.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",_.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",_.cdataInHtmlContent="cdata-in-html-content",_.incorrectlyOpenedComment="incorrectly-opened-comment",_.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",_.eofInDoctype="eof-in-doctype",_.nestedComment="nested-comment",_.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",_.eofInComment="eof-in-comment",_.incorrectlyClosedComment="incorrectly-closed-comment",_.eofInCdata="eof-in-cdata",_.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",_.nullCharacterReference="null-character-reference",_.surrogateCharacterReference="surrogate-character-reference",_.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",_.controlCharacterReference="control-character-reference",_.noncharacterCharacterReference="noncharacter-character-reference",_.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",_.missingDoctypeName="missing-doctype-name",_.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",_.duplicateAttribute="duplicate-attribute",_.nonConformingDoctype="non-conforming-doctype",_.missingDoctype="missing-doctype",_.misplacedDoctype="misplaced-doctype",_.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",_.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",_.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",_.openElementsLeftAfterEof="open-elements-left-after-eof",_.abandonedHeadElementChild="abandoned-head-element-child",_.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",_.nestedNoscriptInHead="nested-noscript-in-head",_.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(jt||(jt={}));const br=65536;class dr{constructor(F){this.handler=F,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=br,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(F,Ae){const{line:lt,col:Wt,offset:Tn}=this,Gn=Wt+Ae,$r=Tn+Ae;return{code:F,startLine:lt,endLine:lt,startCol:Gn,endCol:Gn,startOffset:$r,endOffset:$r}}_err(F){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(F,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(F){if(this.pos!==this.html.length-1){const Ae=this.html.charCodeAt(this.pos+1);if(wt(Ae))return this.pos++,this._addGap(),Dn(F,Ae)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$e.EOF;return this._err(jt.surrogateInInputStream),F}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(F,Ae){this.html.length>0?this.html+=F:this.html=F,this.endOfChunkHit=!1,this.lastChunkWritten=Ae}insertHtmlAtCurrentPos(F){this.html=this.html.substring(0,this.pos+1)+F+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(F,Ae){if(this.pos+F.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(Ae)return this.html.startsWith(F,this.pos);for(let lt=0;lt<F.length;lt++)if((this.html.charCodeAt(this.pos+lt)|32)!==F.charCodeAt(lt))return!1;return!0}peek(F){const Ae=this.pos+F;if(Ae>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$e.EOF;const lt=this.html.charCodeAt(Ae);return lt===$e.CARRIAGE_RETURN?$e.LINE_FEED:lt}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$e.EOF;let F=this.html.charCodeAt(this.pos);return F===$e.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,$e.LINE_FEED):F===$e.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,vn(F)&&(F=this._processSurrogate(F)),this.handler.onParseError===null||F>31&&F<127||F===$e.LINE_FEED||F===$e.CARRIAGE_RETURN||F>159&&F<64976||this._checkForProblematicCharacters(F),F)}_checkForProblematicCharacters(F){nr(F)?this._err(jt.controlCharacterInInputStream):Qn(F)&&this._err(jt.noncharacterInInputStream)}retreat(F){for(this.pos-=F;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var zn;(function(_){_[_.CHARACTER=0]="CHARACTER",_[_.NULL_CHARACTER=1]="NULL_CHARACTER",_[_.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",_[_.START_TAG=3]="START_TAG",_[_.END_TAG=4]="END_TAG",_[_.COMMENT=5]="COMMENT",_[_.DOCTYPE=6]="DOCTYPE",_[_.EOF=7]="EOF",_[_.HIBERNATION=8]="HIBERNATION"})(zn||(zn={}));function $n(_,F){for(let Ae=_.attrs.length-1;Ae>=0;Ae--)if(_.attrs[Ae].name===F)return _.attrs[Ae].value;return null}var Er=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(_=>_.charCodeAt(0))),me=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(_=>_.charCodeAt(0))),jn;const Cn=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),qn=(jn=String.fromCodePoint)!==null&&jn!==void 0?jn:function(_){let F="";return _>65535&&(_-=65536,F+=String.fromCharCode(_>>>10&1023|55296),_=56320|_&1023),F+=String.fromCharCode(_),F};function Ir(_){var F;return _>=55296&&_<=57343||_>1114111?65533:(F=Cn.get(_))!==null&&F!==void 0?F:_}function Vr(_){return qn(Ir(_))}var fr;(function(_){_[_.NUM=35]="NUM",_[_.SEMI=59]="SEMI",_[_.EQUALS=61]="EQUALS",_[_.ZERO=48]="ZERO",_[_.NINE=57]="NINE",_[_.LOWER_A=97]="LOWER_A",_[_.LOWER_F=102]="LOWER_F",_[_.LOWER_X=120]="LOWER_X",_[_.LOWER_Z=122]="LOWER_Z",_[_.UPPER_A=65]="UPPER_A",_[_.UPPER_F=70]="UPPER_F",_[_.UPPER_Z=90]="UPPER_Z"})(fr||(fr={}));const oo=32;var Zr;(function(_){_[_.VALUE_LENGTH=49152]="VALUE_LENGTH",_[_.BRANCH_LENGTH=16256]="BRANCH_LENGTH",_[_.JUMP_TABLE=127]="JUMP_TABLE"})(Zr||(Zr={}));function Qr(_){return _>=fr.ZERO&&_<=fr.NINE}function Kn(_){return _>=fr.UPPER_A&&_<=fr.UPPER_F||_>=fr.LOWER_A&&_<=fr.LOWER_F}function Mn(_){return _>=fr.UPPER_A&&_<=fr.UPPER_Z||_>=fr.LOWER_A&&_<=fr.LOWER_Z||Qr(_)}function ai(_){return _===fr.EQUALS||Mn(_)}var Nr;(function(_){_[_.EntityStart=0]="EntityStart",_[_.NumericStart=1]="NumericStart",_[_.NumericDecimal=2]="NumericDecimal",_[_.NumericHex=3]="NumericHex",_[_.NamedEntity=4]="NamedEntity"})(Nr||(Nr={}));var zr;(function(_){_[_.Legacy=0]="Legacy",_[_.Strict=1]="Strict",_[_.Attribute=2]="Attribute"})(zr||(zr={}));class pn{constructor(F,Ae,lt){this.decodeTree=F,this.emitCodePoint=Ae,this.errors=lt,this.state=Nr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=zr.Strict}startEntity(F){this.decodeMode=F,this.state=Nr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(F,Ae){switch(this.state){case Nr.EntityStart:return F.charCodeAt(Ae)===fr.NUM?(this.state=Nr.NumericStart,this.consumed+=1,this.stateNumericStart(F,Ae+1)):(this.state=Nr.NamedEntity,this.stateNamedEntity(F,Ae));case Nr.NumericStart:return this.stateNumericStart(F,Ae);case Nr.NumericDecimal:return this.stateNumericDecimal(F,Ae);case Nr.NumericHex:return this.stateNumericHex(F,Ae);case Nr.NamedEntity:return this.stateNamedEntity(F,Ae)}}stateNumericStart(F,Ae){return Ae>=F.length?-1:(F.charCodeAt(Ae)|oo)===fr.LOWER_X?(this.state=Nr.NumericHex,this.consumed+=1,this.stateNumericHex(F,Ae+1)):(this.state=Nr.NumericDecimal,this.stateNumericDecimal(F,Ae))}addToNumericResult(F,Ae,lt,Wt){if(Ae!==lt){const Tn=lt-Ae;this.result=this.result*Math.pow(Wt,Tn)+parseInt(F.substr(Ae,Tn),Wt),this.consumed+=Tn}}stateNumericHex(F,Ae){const lt=Ae;for(;Ae<F.length;){const Wt=F.charCodeAt(Ae);if(Qr(Wt)||Kn(Wt))Ae+=1;else return this.addToNumericResult(F,lt,Ae,16),this.emitNumericEntity(Wt,3)}return this.addToNumericResult(F,lt,Ae,16),-1}stateNumericDecimal(F,Ae){const lt=Ae;for(;Ae<F.length;){const Wt=F.charCodeAt(Ae);if(Qr(Wt))Ae+=1;else return this.addToNumericResult(F,lt,Ae,10),this.emitNumericEntity(Wt,2)}return this.addToNumericResult(F,lt,Ae,10),-1}emitNumericEntity(F,Ae){var lt;if(this.consumed<=Ae)return(lt=this.errors)===null||lt===void 0||lt.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(F===fr.SEMI)this.consumed+=1;else if(this.decodeMode===zr.Strict)return 0;return this.emitCodePoint(Ir(this.result),this.consumed),this.errors&&(F!==fr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(F,Ae){const{decodeTree:lt}=this;let Wt=lt[this.treeIndex],Tn=(Wt&Zr.VALUE_LENGTH)>>14;for(;Ae<F.length;Ae++,this.excess++){const Gn=F.charCodeAt(Ae);if(this.treeIndex=Mt(lt,Wt,this.treeIndex+Math.max(1,Tn),Gn),this.treeIndex<0)return this.result===0||this.decodeMode===zr.Attribute&&(Tn===0||ai(Gn))?0:this.emitNotTerminatedNamedEntity();if(Wt=lt[this.treeIndex],Tn=(Wt&Zr.VALUE_LENGTH)>>14,Tn!==0){if(Gn===fr.SEMI)return this.emitNamedEntityData(this.treeIndex,Tn,this.consumed+this.excess);this.decodeMode!==zr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var F;const{result:Ae,decodeTree:lt}=this,Wt=(lt[Ae]&Zr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(Ae,Wt,this.consumed),(F=this.errors)===null||F===void 0||F.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(F,Ae,lt){const{decodeTree:Wt}=this;return this.emitCodePoint(Ae===1?Wt[F]&~Zr.VALUE_LENGTH:Wt[F+1],lt),Ae===3&&this.emitCodePoint(Wt[F+2],lt),lt}end(){var F;switch(this.state){case Nr.NamedEntity:return this.result!==0&&(this.decodeMode!==zr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Nr.NumericDecimal:return this.emitNumericEntity(0,2);case Nr.NumericHex:return this.emitNumericEntity(0,3);case Nr.NumericStart:return(F=this.errors)===null||F===void 0||F.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Nr.EntityStart:return 0}}}function Vn(_){let F="";const Ae=new pn(_,lt=>F+=qn(lt));return function(Wt,Tn){let Gn=0,$r=0;for(;($r=Wt.indexOf("&",$r))>=0;){F+=Wt.slice(Gn,$r),Ae.startEntity(Tn);const xn=Ae.write(Wt,$r+1);if(xn<0){Gn=$r+Ae.end();break}Gn=$r+xn,$r=xn===0?Gn+1:Gn}const Ei=F+Wt.slice(Gn);return F="",Ei}}function Mt(_,F,Ae,lt){const Wt=(F&Zr.BRANCH_LENGTH)>>7,Tn=F&Zr.JUMP_TABLE;if(Wt===0)return Tn!==0&&lt===Tn?Ae:-1;if(Tn){const Ei=lt-Tn;return Ei<0||Ei>=Wt?-1:_[Ae+Ei]-1}let Gn=Ae,$r=Gn+Wt-1;for(;Gn<=$r;){const Ei=Gn+$r>>>1,xn=_[Ei];if(xn<lt)Gn=Ei+1;else if(xn>lt)$r=Ei-1;else return _[Ei+Wt]}return-1}const It=Vn(Er),On=Vn(me);function ft(_,F=zr.Legacy){return It(_,F)}function en(_){return It(_,zr.Attribute)}function An(_){return It(_,zr.Strict)}function Un(_){return On(_,zr.Strict)}var gt;(function(_){_.HTML="http://www.w3.org/1999/xhtml",_.MATHML="http://www.w3.org/1998/Math/MathML",_.SVG="http://www.w3.org/2000/svg",_.XLINK="http://www.w3.org/1999/xlink",_.XML="http://www.w3.org/XML/1998/namespace",_.XMLNS="http://www.w3.org/2000/xmlns/"})(gt||(gt={}));var gn;(function(_){_.TYPE="type",_.ACTION="action",_.ENCODING="encoding",_.PROMPT="prompt",_.NAME="name",_.COLOR="color",_.FACE="face",_.SIZE="size"})(gn||(gn={}));var Hn;(function(_){_.NO_QUIRKS="no-quirks",_.QUIRKS="quirks",_.LIMITED_QUIRKS="limited-quirks"})(Hn||(Hn={}));var At;(function(_){_.A="a",_.ADDRESS="address",_.ANNOTATION_XML="annotation-xml",_.APPLET="applet",_.AREA="area",_.ARTICLE="article",_.ASIDE="aside",_.B="b",_.BASE="base",_.BASEFONT="basefont",_.BGSOUND="bgsound",_.BIG="big",_.BLOCKQUOTE="blockquote",_.BODY="body",_.BR="br",_.BUTTON="button",_.CAPTION="caption",_.CENTER="center",_.CODE="code",_.COL="col",_.COLGROUP="colgroup",_.DD="dd",_.DESC="desc",_.DETAILS="details",_.DIALOG="dialog",_.DIR="dir",_.DIV="div",_.DL="dl",_.DT="dt",_.EM="em",_.EMBED="embed",_.FIELDSET="fieldset",_.FIGCAPTION="figcaption",_.FIGURE="figure",_.FONT="font",_.FOOTER="footer",_.FOREIGN_OBJECT="foreignObject",_.FORM="form",_.FRAME="frame",_.FRAMESET="frameset",_.H1="h1",_.H2="h2",_.H3="h3",_.H4="h4",_.H5="h5",_.H6="h6",_.HEAD="head",_.HEADER="header",_.HGROUP="hgroup",_.HR="hr",_.HTML="html",_.I="i",_.IMG="img",_.IMAGE="image",_.INPUT="input",_.IFRAME="iframe",_.KEYGEN="keygen",_.LABEL="label",_.LI="li",_.LINK="link",_.LISTING="listing",_.MAIN="main",_.MALIGNMARK="malignmark",_.MARQUEE="marquee",_.MATH="math",_.MENU="menu",_.META="meta",_.MGLYPH="mglyph",_.MI="mi",_.MO="mo",_.MN="mn",_.MS="ms",_.MTEXT="mtext",_.NAV="nav",_.NOBR="nobr",_.NOFRAMES="noframes",_.NOEMBED="noembed",_.NOSCRIPT="noscript",_.OBJECT="object",_.OL="ol",_.OPTGROUP="optgroup",_.OPTION="option",_.P="p",_.PARAM="param",_.PLAINTEXT="plaintext",_.PRE="pre",_.RB="rb",_.RP="rp",_.RT="rt",_.RTC="rtc",_.RUBY="ruby",_.S="s",_.SCRIPT="script",_.SEARCH="search",_.SECTION="section",_.SELECT="select",_.SOURCE="source",_.SMALL="small",_.SPAN="span",_.STRIKE="strike",_.STRONG="strong",_.STYLE="style",_.SUB="sub",_.SUMMARY="summary",_.SUP="sup",_.TABLE="table",_.TBODY="tbody",_.TEMPLATE="template",_.TEXTAREA="textarea",_.TFOOT="tfoot",_.TD="td",_.TH="th",_.THEAD="thead",_.TITLE="title",_.TR="tr",_.TRACK="track",_.TT="tt",_.U="u",_.UL="ul",_.SVG="svg",_.VAR="var",_.WBR="wbr",_.XMP="xmp"})(At||(At={}));var we;(function(_){_[_.UNKNOWN=0]="UNKNOWN",_[_.A=1]="A",_[_.ADDRESS=2]="ADDRESS",_[_.ANNOTATION_XML=3]="ANNOTATION_XML",_[_.APPLET=4]="APPLET",_[_.AREA=5]="AREA",_[_.ARTICLE=6]="ARTICLE",_[_.ASIDE=7]="ASIDE",_[_.B=8]="B",_[_.BASE=9]="BASE",_[_.BASEFONT=10]="BASEFONT",_[_.BGSOUND=11]="BGSOUND",_[_.BIG=12]="BIG",_[_.BLOCKQUOTE=13]="BLOCKQUOTE",_[_.BODY=14]="BODY",_[_.BR=15]="BR",_[_.BUTTON=16]="BUTTON",_[_.CAPTION=17]="CAPTION",_[_.CENTER=18]="CENTER",_[_.CODE=19]="CODE",_[_.COL=20]="COL",_[_.COLGROUP=21]="COLGROUP",_[_.DD=22]="DD",_[_.DESC=23]="DESC",_[_.DETAILS=24]="DETAILS",_[_.DIALOG=25]="DIALOG",_[_.DIR=26]="DIR",_[_.DIV=27]="DIV",_[_.DL=28]="DL",_[_.DT=29]="DT",_[_.EM=30]="EM",_[_.EMBED=31]="EMBED",_[_.FIELDSET=32]="FIELDSET",_[_.FIGCAPTION=33]="FIGCAPTION",_[_.FIGURE=34]="FIGURE",_[_.FONT=35]="FONT",_[_.FOOTER=36]="FOOTER",_[_.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",_[_.FORM=38]="FORM",_[_.FRAME=39]="FRAME",_[_.FRAMESET=40]="FRAMESET",_[_.H1=41]="H1",_[_.H2=42]="H2",_[_.H3=43]="H3",_[_.H4=44]="H4",_[_.H5=45]="H5",_[_.H6=46]="H6",_[_.HEAD=47]="HEAD",_[_.HEADER=48]="HEADER",_[_.HGROUP=49]="HGROUP",_[_.HR=50]="HR",_[_.HTML=51]="HTML",_[_.I=52]="I",_[_.IMG=53]="IMG",_[_.IMAGE=54]="IMAGE",_[_.INPUT=55]="INPUT",_[_.IFRAME=56]="IFRAME",_[_.KEYGEN=57]="KEYGEN",_[_.LABEL=58]="LABEL",_[_.LI=59]="LI",_[_.LINK=60]="LINK",_[_.LISTING=61]="LISTING",_[_.MAIN=62]="MAIN",_[_.MALIGNMARK=63]="MALIGNMARK",_[_.MARQUEE=64]="MARQUEE",_[_.MATH=65]="MATH",_[_.MENU=66]="MENU",_[_.META=67]="META",_[_.MGLYPH=68]="MGLYPH",_[_.MI=69]="MI",_[_.MO=70]="MO",_[_.MN=71]="MN",_[_.MS=72]="MS",_[_.MTEXT=73]="MTEXT",_[_.NAV=74]="NAV",_[_.NOBR=75]="NOBR",_[_.NOFRAMES=76]="NOFRAMES",_[_.NOEMBED=77]="NOEMBED",_[_.NOSCRIPT=78]="NOSCRIPT",_[_.OBJECT=79]="OBJECT",_[_.OL=80]="OL",_[_.OPTGROUP=81]="OPTGROUP",_[_.OPTION=82]="OPTION",_[_.P=83]="P",_[_.PARAM=84]="PARAM",_[_.PLAINTEXT=85]="PLAINTEXT",_[_.PRE=86]="PRE",_[_.RB=87]="RB",_[_.RP=88]="RP",_[_.RT=89]="RT",_[_.RTC=90]="RTC",_[_.RUBY=91]="RUBY",_[_.S=92]="S",_[_.SCRIPT=93]="SCRIPT",_[_.SEARCH=94]="SEARCH",_[_.SECTION=95]="SECTION",_[_.SELECT=96]="SELECT",_[_.SOURCE=97]="SOURCE",_[_.SMALL=98]="SMALL",_[_.SPAN=99]="SPAN",_[_.STRIKE=100]="STRIKE",_[_.STRONG=101]="STRONG",_[_.STYLE=102]="STYLE",_[_.SUB=103]="SUB",_[_.SUMMARY=104]="SUMMARY",_[_.SUP=105]="SUP",_[_.TABLE=106]="TABLE",_[_.TBODY=107]="TBODY",_[_.TEMPLATE=108]="TEMPLATE",_[_.TEXTAREA=109]="TEXTAREA",_[_.TFOOT=110]="TFOOT",_[_.TD=111]="TD",_[_.TH=112]="TH",_[_.THEAD=113]="THEAD",_[_.TITLE=114]="TITLE",_[_.TR=115]="TR",_[_.TRACK=116]="TRACK",_[_.TT=117]="TT",_[_.U=118]="U",_[_.UL=119]="UL",_[_.SVG=120]="SVG",_[_.VAR=121]="VAR",_[_.WBR=122]="WBR",_[_.XMP=123]="XMP"})(we||(we={}));const Bn=new Map([[At.A,we.A],[At.ADDRESS,we.ADDRESS],[At.ANNOTATION_XML,we.ANNOTATION_XML],[At.APPLET,we.APPLET],[At.AREA,we.AREA],[At.ARTICLE,we.ARTICLE],[At.ASIDE,we.ASIDE],[At.B,we.B],[At.BASE,we.BASE],[At.BASEFONT,we.BASEFONT],[At.BGSOUND,we.BGSOUND],[At.BIG,we.BIG],[At.BLOCKQUOTE,we.BLOCKQUOTE],[At.BODY,we.BODY],[At.BR,we.BR],[At.BUTTON,we.BUTTON],[At.CAPTION,we.CAPTION],[At.CENTER,we.CENTER],[At.CODE,we.CODE],[At.COL,we.COL],[At.COLGROUP,we.COLGROUP],[At.DD,we.DD],[At.DESC,we.DESC],[At.DETAILS,we.DETAILS],[At.DIALOG,we.DIALOG],[At.DIR,we.DIR],[At.DIV,we.DIV],[At.DL,we.DL],[At.DT,we.DT],[At.EM,we.EM],[At.EMBED,we.EMBED],[At.FIELDSET,we.FIELDSET],[At.FIGCAPTION,we.FIGCAPTION],[At.FIGURE,we.FIGURE],[At.FONT,we.FONT],[At.FOOTER,we.FOOTER],[At.FOREIGN_OBJECT,we.FOREIGN_OBJECT],[At.FORM,we.FORM],[At.FRAME,we.FRAME],[At.FRAMESET,we.FRAMESET],[At.H1,we.H1],[At.H2,we.H2],[At.H3,we.H3],[At.H4,we.H4],[At.H5,we.H5],[At.H6,we.H6],[At.HEAD,we.HEAD],[At.HEADER,we.HEADER],[At.HGROUP,we.HGROUP],[At.HR,we.HR],[At.HTML,we.HTML],[At.I,we.I],[At.IMG,we.IMG],[At.IMAGE,we.IMAGE],[At.INPUT,we.INPUT],[At.IFRAME,we.IFRAME],[At.KEYGEN,we.KEYGEN],[At.LABEL,we.LABEL],[At.LI,we.LI],[At.LINK,we.LINK],[At.LISTING,we.LISTING],[At.MAIN,we.MAIN],[At.MALIGNMARK,we.MALIGNMARK],[At.MARQUEE,we.MARQUEE],[At.MATH,we.MATH],[At.MENU,we.MENU],[At.META,we.META],[At.MGLYPH,we.MGLYPH],[At.MI,we.MI],[At.MO,we.MO],[At.MN,we.MN],[At.MS,we.MS],[At.MTEXT,we.MTEXT],[At.NAV,we.NAV],[At.NOBR,we.NOBR],[At.NOFRAMES,we.NOFRAMES],[At.NOEMBED,we.NOEMBED],[At.NOSCRIPT,we.NOSCRIPT],[At.OBJECT,we.OBJECT],[At.OL,we.OL],[At.OPTGROUP,we.OPTGROUP],[At.OPTION,we.OPTION],[At.P,we.P],[At.PARAM,we.PARAM],[At.PLAINTEXT,we.PLAINTEXT],[At.PRE,we.PRE],[At.RB,we.RB],[At.RP,we.RP],[At.RT,we.RT],[At.RTC,we.RTC],[At.RUBY,we.RUBY],[At.S,we.S],[At.SCRIPT,we.SCRIPT],[At.SEARCH,we.SEARCH],[At.SECTION,we.SECTION],[At.SELECT,we.SELECT],[At.SOURCE,we.SOURCE],[At.SMALL,we.SMALL],[At.SPAN,we.SPAN],[At.STRIKE,we.STRIKE],[At.STRONG,we.STRONG],[At.STYLE,we.STYLE],[At.SUB,we.SUB],[At.SUMMARY,we.SUMMARY],[At.SUP,we.SUP],[At.TABLE,we.TABLE],[At.TBODY,we.TBODY],[At.TEMPLATE,we.TEMPLATE],[At.TEXTAREA,we.TEXTAREA],[At.TFOOT,we.TFOOT],[At.TD,we.TD],[At.TH,we.TH],[At.THEAD,we.THEAD],[At.TITLE,we.TITLE],[At.TR,we.TR],[At.TRACK,we.TRACK],[At.TT,we.TT],[At.U,we.U],[At.UL,we.UL],[At.SVG,we.SVG],[At.VAR,we.VAR],[At.WBR,we.WBR],[At.XMP,we.XMP]]);function wn(_){var F;return(F=Bn.get(_))!==null&&F!==void 0?F:we.UNKNOWN}const Ht=we,lr={[gt.HTML]:new Set([Ht.ADDRESS,Ht.APPLET,Ht.AREA,Ht.ARTICLE,Ht.ASIDE,Ht.BASE,Ht.BASEFONT,Ht.BGSOUND,Ht.BLOCKQUOTE,Ht.BODY,Ht.BR,Ht.BUTTON,Ht.CAPTION,Ht.CENTER,Ht.COL,Ht.COLGROUP,Ht.DD,Ht.DETAILS,Ht.DIR,Ht.DIV,Ht.DL,Ht.DT,Ht.EMBED,Ht.FIELDSET,Ht.FIGCAPTION,Ht.FIGURE,Ht.FOOTER,Ht.FORM,Ht.FRAME,Ht.FRAMESET,Ht.H1,Ht.H2,Ht.H3,Ht.H4,Ht.H5,Ht.H6,Ht.HEAD,Ht.HEADER,Ht.HGROUP,Ht.HR,Ht.HTML,Ht.IFRAME,Ht.IMG,Ht.INPUT,Ht.LI,Ht.LINK,Ht.LISTING,Ht.MAIN,Ht.MARQUEE,Ht.MENU,Ht.META,Ht.NAV,Ht.NOEMBED,Ht.NOFRAMES,Ht.NOSCRIPT,Ht.OBJECT,Ht.OL,Ht.P,Ht.PARAM,Ht.PLAINTEXT,Ht.PRE,Ht.SCRIPT,Ht.SECTION,Ht.SELECT,Ht.SOURCE,Ht.STYLE,Ht.SUMMARY,Ht.TABLE,Ht.TBODY,Ht.TD,Ht.TEMPLATE,Ht.TEXTAREA,Ht.TFOOT,Ht.TH,Ht.THEAD,Ht.TITLE,Ht.TR,Ht.TRACK,Ht.UL,Ht.WBR,Ht.XMP]),[gt.MATHML]:new Set([Ht.MI,Ht.MO,Ht.MN,Ht.MS,Ht.MTEXT,Ht.ANNOTATION_XML]),[gt.SVG]:new Set([Ht.TITLE,Ht.FOREIGN_OBJECT,Ht.DESC]),[gt.XLINK]:new Set,[gt.XML]:new Set,[gt.XMLNS]:new Set},pr=new Set([Ht.H1,Ht.H2,Ht.H3,Ht.H4,Ht.H5,Ht.H6]),xr=new Set([At.STYLE,At.SCRIPT,At.XMP,At.IFRAME,At.NOEMBED,At.NOFRAMES,At.PLAINTEXT]);function Pn(_,F){return xr.has(_)||F&&_===At.NOSCRIPT}var St;(function(_){_[_.DATA=0]="DATA",_[_.RCDATA=1]="RCDATA",_[_.RAWTEXT=2]="RAWTEXT",_[_.SCRIPT_DATA=3]="SCRIPT_DATA",_[_.PLAINTEXT=4]="PLAINTEXT",_[_.TAG_OPEN=5]="TAG_OPEN",_[_.END_TAG_OPEN=6]="END_TAG_OPEN",_[_.TAG_NAME=7]="TAG_NAME",_[_.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",_[_.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",_[_.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",_[_.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",_[_.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",_[_.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",_[_.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",_[_.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",_[_.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",_[_.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",_[_.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",_[_.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",_[_.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",_[_.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",_[_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",_[_.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",_[_.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",_[_.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",_[_.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",_[_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",_[_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",_[_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",_[_.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",_[_.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",_[_.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",_[_.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",_[_.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",_[_.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",_[_.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",_[_.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",_[_.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",_[_.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",_[_.BOGUS_COMMENT=40]="BOGUS_COMMENT",_[_.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",_[_.COMMENT_START=42]="COMMENT_START",_[_.COMMENT_START_DASH=43]="COMMENT_START_DASH",_[_.COMMENT=44]="COMMENT",_[_.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",_[_.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",_[_.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",_[_.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",_[_.COMMENT_END_DASH=49]="COMMENT_END_DASH",_[_.COMMENT_END=50]="COMMENT_END",_[_.COMMENT_END_BANG=51]="COMMENT_END_BANG",_[_.DOCTYPE=52]="DOCTYPE",_[_.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",_[_.DOCTYPE_NAME=54]="DOCTYPE_NAME",_[_.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",_[_.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",_[_.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",_[_.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",_[_.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",_[_.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",_[_.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",_[_.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",_[_.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",_[_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",_[_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",_[_.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",_[_.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",_[_.CDATA_SECTION=68]="CDATA_SECTION",_[_.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",_[_.CDATA_SECTION_END=70]="CDATA_SECTION_END",_[_.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",_[_.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(St||(St={}));const gr={DATA:St.DATA,RCDATA:St.RCDATA,RAWTEXT:St.RAWTEXT,SCRIPT_DATA:St.SCRIPT_DATA,PLAINTEXT:St.PLAINTEXT,CDATA_SECTION:St.CDATA_SECTION};function vi(_){return _>=$e.DIGIT_0&&_<=$e.DIGIT_9}function Dt(_){return _>=$e.LATIN_CAPITAL_A&&_<=$e.LATIN_CAPITAL_Z}function Ji(_){return _>=$e.LATIN_SMALL_A&&_<=$e.LATIN_SMALL_Z}function Ri(_){return Ji(_)||Dt(_)}function oi(_){return Ri(_)||vi(_)}function Oi(_){return _+32}function Rr(_){return _===$e.SPACE||_===$e.LINE_FEED||_===$e.TABULATION||_===$e.FORM_FEED}function li(_){return Rr(_)||_===$e.SOLIDUS||_===$e.GREATER_THAN_SIGN}function Pr(_){return _===$e.NULL?jt.nullCharacterReference:_>1114111?jt.characterReferenceOutsideUnicodeRange:vn(_)?jt.surrogateCharacterReference:Qn(_)?jt.noncharacterCharacterReference:nr(_)||_===$e.CARRIAGE_RETURN?jt.controlCharacterReference:null}class qr{constructor(F,Ae){this.options=F,this.handler=Ae,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=St.DATA,this.returnState=St.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new dr(Ae),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new pn(Er,(lt,Wt)=>{this.preprocessor.pos=this.entityStartPos+Wt-1,this._flushCodePointConsumedAsCharacterReference(lt)},Ae.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(jt.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:lt=>{this._err(jt.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+lt)},validateNumericCharacterReference:lt=>{const Wt=Pr(lt);Wt&&this._err(Wt,1)}}:void 0)}_err(F,Ae=0){var lt,Wt;(Wt=(lt=this.handler).onParseError)===null||Wt===void 0||Wt.call(lt,this.preprocessor.getError(F,Ae))}getCurrentLocation(F){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-F,startOffset:this.preprocessor.offset-F,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const F=this._consume();this._ensureHibernation()||this._callState(F)}this.inLoop=!1}}pause(){this.paused=!0}resume(F){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||F==null||F())}write(F,Ae,lt){this.active=!0,this.preprocessor.write(F,Ae),this._runParsingLoop(),this.paused||lt==null||lt()}insertHtmlAtCurrentPos(F){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(F),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(F){this.consumedAfterSnapshot+=F;for(let Ae=0;Ae<F;Ae++)this.preprocessor.advance()}_consumeSequenceIfMatch(F,Ae){return this.preprocessor.startsWith(F,Ae)?(this._advanceBy(F.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:zn.START_TAG,tagName:"",tagID:we.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:zn.END_TAG,tagName:"",tagID:we.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(F){this.currentToken={type:zn.COMMENT,data:"",location:this.getCurrentLocation(F)}}_createDoctypeToken(F){this.currentToken={type:zn.DOCTYPE,name:F,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(F,Ae){this.currentCharacterToken={type:F,chars:Ae,location:this.currentLocation}}_createAttr(F){this.currentAttr={name:F,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var F,Ae;const lt=this.currentToken;if($n(lt,this.currentAttr.name)===null){if(lt.attrs.push(this.currentAttr),lt.location&&this.currentLocation){const Wt=(F=(Ae=lt.location).attrs)!==null&&F!==void 0?F:Ae.attrs=Object.create(null);Wt[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(jt.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(F){this._emitCurrentCharacterToken(F.location),this.currentToken=null,F.location&&(F.location.endLine=this.preprocessor.line,F.location.endCol=this.preprocessor.col+1,F.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const F=this.currentToken;this.prepareToken(F),F.tagID=wn(F.tagName),F.type===zn.START_TAG?(this.lastStartTagName=F.tagName,this.handler.onStartTag(F)):(F.attrs.length>0&&this._err(jt.endTagWithAttributes),F.selfClosing&&this._err(jt.endTagWithTrailingSolidus),this.handler.onEndTag(F)),this.preprocessor.dropParsedChunk()}emitCurrentComment(F){this.prepareToken(F),this.handler.onComment(F),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(F){this.prepareToken(F),this.handler.onDoctype(F),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(F){if(this.currentCharacterToken){switch(F&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=F.startLine,this.currentCharacterToken.location.endCol=F.startCol,this.currentCharacterToken.location.endOffset=F.startOffset),this.currentCharacterToken.type){case zn.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case zn.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case zn.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const F=this.getCurrentLocation(0);F&&(F.endLine=F.startLine,F.endCol=F.startCol,F.endOffset=F.startOffset),this._emitCurrentCharacterToken(F),this.handler.onEof({type:zn.EOF,location:F}),this.active=!1}_appendCharToCurrentCharacterToken(F,Ae){if(this.currentCharacterToken)if(this.currentCharacterToken.type===F){this.currentCharacterToken.chars+=Ae;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(F,Ae)}_emitCodePoint(F){const Ae=Rr(F)?zn.WHITESPACE_CHARACTER:F===$e.NULL?zn.NULL_CHARACTER:zn.CHARACTER;this._appendCharToCurrentCharacterToken(Ae,String.fromCodePoint(F))}_emitChars(F){this._appendCharToCurrentCharacterToken(zn.CHARACTER,F)}_startCharacterReference(){this.returnState=this.state,this.state=St.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?zr.Attribute:zr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===St.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===St.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===St.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(F){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(F):this._emitCodePoint(F)}_callState(F){switch(this.state){case St.DATA:{this._stateData(F);break}case St.RCDATA:{this._stateRcdata(F);break}case St.RAWTEXT:{this._stateRawtext(F);break}case St.SCRIPT_DATA:{this._stateScriptData(F);break}case St.PLAINTEXT:{this._statePlaintext(F);break}case St.TAG_OPEN:{this._stateTagOpen(F);break}case St.END_TAG_OPEN:{this._stateEndTagOpen(F);break}case St.TAG_NAME:{this._stateTagName(F);break}case St.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(F);break}case St.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(F);break}case St.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(F);break}case St.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(F);break}case St.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(F);break}case St.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(F);break}case St.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(F);break}case St.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(F);break}case St.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(F);break}case St.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(F);break}case St.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(F);break}case St.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(F);break}case St.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(F);break}case St.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(F);break}case St.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(F);break}case St.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(F);break}case St.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(F);break}case St.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(F);break}case St.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(F);break}case St.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(F);break}case St.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(F);break}case St.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(F);break}case St.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(F);break}case St.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(F);break}case St.ATTRIBUTE_NAME:{this._stateAttributeName(F);break}case St.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(F);break}case St.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(F);break}case St.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(F);break}case St.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(F);break}case St.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(F);break}case St.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(F);break}case St.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(F);break}case St.BOGUS_COMMENT:{this._stateBogusComment(F);break}case St.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(F);break}case St.COMMENT_START:{this._stateCommentStart(F);break}case St.COMMENT_START_DASH:{this._stateCommentStartDash(F);break}case St.COMMENT:{this._stateComment(F);break}case St.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(F);break}case St.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(F);break}case St.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(F);break}case St.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(F);break}case St.COMMENT_END_DASH:{this._stateCommentEndDash(F);break}case St.COMMENT_END:{this._stateCommentEnd(F);break}case St.COMMENT_END_BANG:{this._stateCommentEndBang(F);break}case St.DOCTYPE:{this._stateDoctype(F);break}case St.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(F);break}case St.DOCTYPE_NAME:{this._stateDoctypeName(F);break}case St.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(F);break}case St.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(F);break}case St.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(F);break}case St.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(F);break}case St.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(F);break}case St.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(F);break}case St.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(F);break}case St.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(F);break}case St.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(F);break}case St.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(F);break}case St.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(F);break}case St.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(F);break}case St.BOGUS_DOCTYPE:{this._stateBogusDoctype(F);break}case St.CDATA_SECTION:{this._stateCdataSection(F);break}case St.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(F);break}case St.CDATA_SECTION_END:{this._stateCdataSectionEnd(F);break}case St.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case St.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(F);break}default:throw new Error("Unknown state")}}_stateData(F){switch(F){case $e.LESS_THAN_SIGN:{this.state=St.TAG_OPEN;break}case $e.AMPERSAND:{this._startCharacterReference();break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this._emitCodePoint(F);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(F)}}_stateRcdata(F){switch(F){case $e.AMPERSAND:{this._startCharacterReference();break}case $e.LESS_THAN_SIGN:{this.state=St.RCDATA_LESS_THAN_SIGN;break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this._emitChars(Rt);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(F)}}_stateRawtext(F){switch(F){case $e.LESS_THAN_SIGN:{this.state=St.RAWTEXT_LESS_THAN_SIGN;break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this._emitChars(Rt);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(F)}}_stateScriptData(F){switch(F){case $e.LESS_THAN_SIGN:{this.state=St.SCRIPT_DATA_LESS_THAN_SIGN;break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this._emitChars(Rt);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(F)}}_statePlaintext(F){switch(F){case $e.NULL:{this._err(jt.unexpectedNullCharacter),this._emitChars(Rt);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(F)}}_stateTagOpen(F){if(Ri(F))this._createStartTagToken(),this.state=St.TAG_NAME,this._stateTagName(F);else switch(F){case $e.EXCLAMATION_MARK:{this.state=St.MARKUP_DECLARATION_OPEN;break}case $e.SOLIDUS:{this.state=St.END_TAG_OPEN;break}case $e.QUESTION_MARK:{this._err(jt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=St.BOGUS_COMMENT,this._stateBogusComment(F);break}case $e.EOF:{this._err(jt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(jt.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=St.DATA,this._stateData(F)}}_stateEndTagOpen(F){if(Ri(F))this._createEndTagToken(),this.state=St.TAG_NAME,this._stateTagName(F);else switch(F){case $e.GREATER_THAN_SIGN:{this._err(jt.missingEndTagName),this.state=St.DATA;break}case $e.EOF:{this._err(jt.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(jt.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=St.BOGUS_COMMENT,this._stateBogusComment(F)}}_stateTagName(F){const Ae=this.currentToken;switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this.state=St.BEFORE_ATTRIBUTE_NAME;break}case $e.SOLIDUS:{this.state=St.SELF_CLOSING_START_TAG;break}case $e.GREATER_THAN_SIGN:{this.state=St.DATA,this.emitCurrentTagToken();break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),Ae.tagName+=Rt;break}case $e.EOF:{this._err(jt.eofInTag),this._emitEOFToken();break}default:Ae.tagName+=String.fromCodePoint(Dt(F)?Oi(F):F)}}_stateRcdataLessThanSign(F){F===$e.SOLIDUS?this.state=St.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=St.RCDATA,this._stateRcdata(F))}_stateRcdataEndTagOpen(F){Ri(F)?(this.state=St.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(F)):(this._emitChars("</"),this.state=St.RCDATA,this._stateRcdata(F))}handleSpecialEndTag(F){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const Ae=this.currentToken;switch(Ae.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=St.BEFORE_ATTRIBUTE_NAME,!1;case $e.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=St.SELF_CLOSING_START_TAG,!1;case $e.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=St.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(F){this.handleSpecialEndTag(F)&&(this._emitChars("</"),this.state=St.RCDATA,this._stateRcdata(F))}_stateRawtextLessThanSign(F){F===$e.SOLIDUS?this.state=St.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=St.RAWTEXT,this._stateRawtext(F))}_stateRawtextEndTagOpen(F){Ri(F)?(this.state=St.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(F)):(this._emitChars("</"),this.state=St.RAWTEXT,this._stateRawtext(F))}_stateRawtextEndTagName(F){this.handleSpecialEndTag(F)&&(this._emitChars("</"),this.state=St.RAWTEXT,this._stateRawtext(F))}_stateScriptDataLessThanSign(F){switch(F){case $e.SOLIDUS:{this.state=St.SCRIPT_DATA_END_TAG_OPEN;break}case $e.EXCLAMATION_MARK:{this.state=St.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=St.SCRIPT_DATA,this._stateScriptData(F)}}_stateScriptDataEndTagOpen(F){Ri(F)?(this.state=St.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(F)):(this._emitChars("</"),this.state=St.SCRIPT_DATA,this._stateScriptData(F))}_stateScriptDataEndTagName(F){this.handleSpecialEndTag(F)&&(this._emitChars("</"),this.state=St.SCRIPT_DATA,this._stateScriptData(F))}_stateScriptDataEscapeStart(F){F===$e.HYPHEN_MINUS?(this.state=St.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=St.SCRIPT_DATA,this._stateScriptData(F))}_stateScriptDataEscapeStartDash(F){F===$e.HYPHEN_MINUS?(this.state=St.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=St.SCRIPT_DATA,this._stateScriptData(F))}_stateScriptDataEscaped(F){switch(F){case $e.HYPHEN_MINUS:{this.state=St.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case $e.LESS_THAN_SIGN:{this.state=St.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this._emitChars(Rt);break}case $e.EOF:{this._err(jt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(F)}}_stateScriptDataEscapedDash(F){switch(F){case $e.HYPHEN_MINUS:{this.state=St.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case $e.LESS_THAN_SIGN:{this.state=St.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this.state=St.SCRIPT_DATA_ESCAPED,this._emitChars(Rt);break}case $e.EOF:{this._err(jt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=St.SCRIPT_DATA_ESCAPED,this._emitCodePoint(F)}}_stateScriptDataEscapedDashDash(F){switch(F){case $e.HYPHEN_MINUS:{this._emitChars("-");break}case $e.LESS_THAN_SIGN:{this.state=St.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $e.GREATER_THAN_SIGN:{this.state=St.SCRIPT_DATA,this._emitChars(">");break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this.state=St.SCRIPT_DATA_ESCAPED,this._emitChars(Rt);break}case $e.EOF:{this._err(jt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=St.SCRIPT_DATA_ESCAPED,this._emitCodePoint(F)}}_stateScriptDataEscapedLessThanSign(F){F===$e.SOLIDUS?this.state=St.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ri(F)?(this._emitChars("<"),this.state=St.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(F)):(this._emitChars("<"),this.state=St.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(F))}_stateScriptDataEscapedEndTagOpen(F){Ri(F)?(this.state=St.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(F)):(this._emitChars("</"),this.state=St.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(F))}_stateScriptDataEscapedEndTagName(F){this.handleSpecialEndTag(F)&&(this._emitChars("</"),this.state=St.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(F))}_stateScriptDataDoubleEscapeStart(F){if(this.preprocessor.startsWith(Zt.SCRIPT,!1)&&li(this.preprocessor.peek(Zt.SCRIPT.length))){this._emitCodePoint(F);for(let Ae=0;Ae<Zt.SCRIPT.length;Ae++)this._emitCodePoint(this._consume());this.state=St.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=St.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(F))}_stateScriptDataDoubleEscaped(F){switch(F){case $e.HYPHEN_MINUS:{this.state=St.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case $e.LESS_THAN_SIGN:{this.state=St.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this._emitChars(Rt);break}case $e.EOF:{this._err(jt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(F)}}_stateScriptDataDoubleEscapedDash(F){switch(F){case $e.HYPHEN_MINUS:{this.state=St.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case $e.LESS_THAN_SIGN:{this.state=St.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this.state=St.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Rt);break}case $e.EOF:{this._err(jt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=St.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(F)}}_stateScriptDataDoubleEscapedDashDash(F){switch(F){case $e.HYPHEN_MINUS:{this._emitChars("-");break}case $e.LESS_THAN_SIGN:{this.state=St.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $e.GREATER_THAN_SIGN:{this.state=St.SCRIPT_DATA,this._emitChars(">");break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this.state=St.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Rt);break}case $e.EOF:{this._err(jt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=St.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(F)}}_stateScriptDataDoubleEscapedLessThanSign(F){F===$e.SOLIDUS?(this.state=St.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=St.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(F))}_stateScriptDataDoubleEscapeEnd(F){if(this.preprocessor.startsWith(Zt.SCRIPT,!1)&&li(this.preprocessor.peek(Zt.SCRIPT.length))){this._emitCodePoint(F);for(let Ae=0;Ae<Zt.SCRIPT.length;Ae++)this._emitCodePoint(this._consume());this.state=St.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=St.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(F))}_stateBeforeAttributeName(F){switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.SOLIDUS:case $e.GREATER_THAN_SIGN:case $e.EOF:{this.state=St.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(F);break}case $e.EQUALS_SIGN:{this._err(jt.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=St.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=St.ATTRIBUTE_NAME,this._stateAttributeName(F)}}_stateAttributeName(F){switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:case $e.SOLIDUS:case $e.GREATER_THAN_SIGN:case $e.EOF:{this._leaveAttrName(),this.state=St.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(F);break}case $e.EQUALS_SIGN:{this._leaveAttrName(),this.state=St.BEFORE_ATTRIBUTE_VALUE;break}case $e.QUOTATION_MARK:case $e.APOSTROPHE:case $e.LESS_THAN_SIGN:{this._err(jt.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(F);break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this.currentAttr.name+=Rt;break}default:this.currentAttr.name+=String.fromCodePoint(Dt(F)?Oi(F):F)}}_stateAfterAttributeName(F){switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.SOLIDUS:{this.state=St.SELF_CLOSING_START_TAG;break}case $e.EQUALS_SIGN:{this.state=St.BEFORE_ATTRIBUTE_VALUE;break}case $e.GREATER_THAN_SIGN:{this.state=St.DATA,this.emitCurrentTagToken();break}case $e.EOF:{this._err(jt.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=St.ATTRIBUTE_NAME,this._stateAttributeName(F)}}_stateBeforeAttributeValue(F){switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.QUOTATION_MARK:{this.state=St.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{this.state=St.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case $e.GREATER_THAN_SIGN:{this._err(jt.missingAttributeValue),this.state=St.DATA,this.emitCurrentTagToken();break}default:this.state=St.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(F)}}_stateAttributeValueDoubleQuoted(F){switch(F){case $e.QUOTATION_MARK:{this.state=St.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $e.AMPERSAND:{this._startCharacterReference();break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this.currentAttr.value+=Rt;break}case $e.EOF:{this._err(jt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(F)}}_stateAttributeValueSingleQuoted(F){switch(F){case $e.APOSTROPHE:{this.state=St.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $e.AMPERSAND:{this._startCharacterReference();break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this.currentAttr.value+=Rt;break}case $e.EOF:{this._err(jt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(F)}}_stateAttributeValueUnquoted(F){switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this._leaveAttrValue(),this.state=St.BEFORE_ATTRIBUTE_NAME;break}case $e.AMPERSAND:{this._startCharacterReference();break}case $e.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=St.DATA,this.emitCurrentTagToken();break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),this.currentAttr.value+=Rt;break}case $e.QUOTATION_MARK:case $e.APOSTROPHE:case $e.LESS_THAN_SIGN:case $e.EQUALS_SIGN:case $e.GRAVE_ACCENT:{this._err(jt.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(F);break}case $e.EOF:{this._err(jt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(F)}}_stateAfterAttributeValueQuoted(F){switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this._leaveAttrValue(),this.state=St.BEFORE_ATTRIBUTE_NAME;break}case $e.SOLIDUS:{this._leaveAttrValue(),this.state=St.SELF_CLOSING_START_TAG;break}case $e.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=St.DATA,this.emitCurrentTagToken();break}case $e.EOF:{this._err(jt.eofInTag),this._emitEOFToken();break}default:this._err(jt.missingWhitespaceBetweenAttributes),this.state=St.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(F)}}_stateSelfClosingStartTag(F){switch(F){case $e.GREATER_THAN_SIGN:{const Ae=this.currentToken;Ae.selfClosing=!0,this.state=St.DATA,this.emitCurrentTagToken();break}case $e.EOF:{this._err(jt.eofInTag),this._emitEOFToken();break}default:this._err(jt.unexpectedSolidusInTag),this.state=St.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(F)}}_stateBogusComment(F){const Ae=this.currentToken;switch(F){case $e.GREATER_THAN_SIGN:{this.state=St.DATA,this.emitCurrentComment(Ae);break}case $e.EOF:{this.emitCurrentComment(Ae),this._emitEOFToken();break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),Ae.data+=Rt;break}default:Ae.data+=String.fromCodePoint(F)}}_stateMarkupDeclarationOpen(F){this._consumeSequenceIfMatch(Zt.DASH_DASH,!0)?(this._createCommentToken(Zt.DASH_DASH.length+1),this.state=St.COMMENT_START):this._consumeSequenceIfMatch(Zt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Zt.DOCTYPE.length+1),this.state=St.DOCTYPE):this._consumeSequenceIfMatch(Zt.CDATA_START,!0)?this.inForeignNode?this.state=St.CDATA_SECTION:(this._err(jt.cdataInHtmlContent),this._createCommentToken(Zt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=St.BOGUS_COMMENT):this._ensureHibernation()||(this._err(jt.incorrectlyOpenedComment),this._createCommentToken(2),this.state=St.BOGUS_COMMENT,this._stateBogusComment(F))}_stateCommentStart(F){switch(F){case $e.HYPHEN_MINUS:{this.state=St.COMMENT_START_DASH;break}case $e.GREATER_THAN_SIGN:{this._err(jt.abruptClosingOfEmptyComment),this.state=St.DATA;const Ae=this.currentToken;this.emitCurrentComment(Ae);break}default:this.state=St.COMMENT,this._stateComment(F)}}_stateCommentStartDash(F){const Ae=this.currentToken;switch(F){case $e.HYPHEN_MINUS:{this.state=St.COMMENT_END;break}case $e.GREATER_THAN_SIGN:{this._err(jt.abruptClosingOfEmptyComment),this.state=St.DATA,this.emitCurrentComment(Ae);break}case $e.EOF:{this._err(jt.eofInComment),this.emitCurrentComment(Ae),this._emitEOFToken();break}default:Ae.data+="-",this.state=St.COMMENT,this._stateComment(F)}}_stateComment(F){const Ae=this.currentToken;switch(F){case $e.HYPHEN_MINUS:{this.state=St.COMMENT_END_DASH;break}case $e.LESS_THAN_SIGN:{Ae.data+="<",this.state=St.COMMENT_LESS_THAN_SIGN;break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),Ae.data+=Rt;break}case $e.EOF:{this._err(jt.eofInComment),this.emitCurrentComment(Ae),this._emitEOFToken();break}default:Ae.data+=String.fromCodePoint(F)}}_stateCommentLessThanSign(F){const Ae=this.currentToken;switch(F){case $e.EXCLAMATION_MARK:{Ae.data+="!",this.state=St.COMMENT_LESS_THAN_SIGN_BANG;break}case $e.LESS_THAN_SIGN:{Ae.data+="<";break}default:this.state=St.COMMENT,this._stateComment(F)}}_stateCommentLessThanSignBang(F){F===$e.HYPHEN_MINUS?this.state=St.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=St.COMMENT,this._stateComment(F))}_stateCommentLessThanSignBangDash(F){F===$e.HYPHEN_MINUS?this.state=St.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=St.COMMENT_END_DASH,this._stateCommentEndDash(F))}_stateCommentLessThanSignBangDashDash(F){F!==$e.GREATER_THAN_SIGN&&F!==$e.EOF&&this._err(jt.nestedComment),this.state=St.COMMENT_END,this._stateCommentEnd(F)}_stateCommentEndDash(F){const Ae=this.currentToken;switch(F){case $e.HYPHEN_MINUS:{this.state=St.COMMENT_END;break}case $e.EOF:{this._err(jt.eofInComment),this.emitCurrentComment(Ae),this._emitEOFToken();break}default:Ae.data+="-",this.state=St.COMMENT,this._stateComment(F)}}_stateCommentEnd(F){const Ae=this.currentToken;switch(F){case $e.GREATER_THAN_SIGN:{this.state=St.DATA,this.emitCurrentComment(Ae);break}case $e.EXCLAMATION_MARK:{this.state=St.COMMENT_END_BANG;break}case $e.HYPHEN_MINUS:{Ae.data+="-";break}case $e.EOF:{this._err(jt.eofInComment),this.emitCurrentComment(Ae),this._emitEOFToken();break}default:Ae.data+="--",this.state=St.COMMENT,this._stateComment(F)}}_stateCommentEndBang(F){const Ae=this.currentToken;switch(F){case $e.HYPHEN_MINUS:{Ae.data+="--!",this.state=St.COMMENT_END_DASH;break}case $e.GREATER_THAN_SIGN:{this._err(jt.incorrectlyClosedComment),this.state=St.DATA,this.emitCurrentComment(Ae);break}case $e.EOF:{this._err(jt.eofInComment),this.emitCurrentComment(Ae),this._emitEOFToken();break}default:Ae.data+="--!",this.state=St.COMMENT,this._stateComment(F)}}_stateDoctype(F){switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this.state=St.BEFORE_DOCTYPE_NAME;break}case $e.GREATER_THAN_SIGN:{this.state=St.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(F);break}case $e.EOF:{this._err(jt.eofInDoctype),this._createDoctypeToken(null);const Ae=this.currentToken;Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:this._err(jt.missingWhitespaceBeforeDoctypeName),this.state=St.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(F)}}_stateBeforeDoctypeName(F){if(Dt(F))this._createDoctypeToken(String.fromCharCode(Oi(F))),this.state=St.DOCTYPE_NAME;else switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.NULL:{this._err(jt.unexpectedNullCharacter),this._createDoctypeToken(Rt),this.state=St.DOCTYPE_NAME;break}case $e.GREATER_THAN_SIGN:{this._err(jt.missingDoctypeName),this._createDoctypeToken(null);const Ae=this.currentToken;Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this.state=St.DATA;break}case $e.EOF:{this._err(jt.eofInDoctype),this._createDoctypeToken(null);const Ae=this.currentToken;Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(F)),this.state=St.DOCTYPE_NAME}}_stateDoctypeName(F){const Ae=this.currentToken;switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this.state=St.AFTER_DOCTYPE_NAME;break}case $e.GREATER_THAN_SIGN:{this.state=St.DATA,this.emitCurrentDoctype(Ae);break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),Ae.name+=Rt;break}case $e.EOF:{this._err(jt.eofInDoctype),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:Ae.name+=String.fromCodePoint(Dt(F)?Oi(F):F)}}_stateAfterDoctypeName(F){const Ae=this.currentToken;switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.GREATER_THAN_SIGN:{this.state=St.DATA,this.emitCurrentDoctype(Ae);break}case $e.EOF:{this._err(jt.eofInDoctype),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Zt.PUBLIC,!1)?this.state=St.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Zt.SYSTEM,!1)?this.state=St.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(jt.invalidCharacterSequenceAfterDoctypeName),Ae.forceQuirks=!0,this.state=St.BOGUS_DOCTYPE,this._stateBogusDoctype(F))}}_stateAfterDoctypePublicKeyword(F){const Ae=this.currentToken;switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this.state=St.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case $e.QUOTATION_MARK:{this._err(jt.missingWhitespaceAfterDoctypePublicKeyword),Ae.publicId="",this.state=St.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{this._err(jt.missingWhitespaceAfterDoctypePublicKeyword),Ae.publicId="",this.state=St.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $e.GREATER_THAN_SIGN:{this._err(jt.missingDoctypePublicIdentifier),Ae.forceQuirks=!0,this.state=St.DATA,this.emitCurrentDoctype(Ae);break}case $e.EOF:{this._err(jt.eofInDoctype),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:this._err(jt.missingQuoteBeforeDoctypePublicIdentifier),Ae.forceQuirks=!0,this.state=St.BOGUS_DOCTYPE,this._stateBogusDoctype(F)}}_stateBeforeDoctypePublicIdentifier(F){const Ae=this.currentToken;switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.QUOTATION_MARK:{Ae.publicId="",this.state=St.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{Ae.publicId="",this.state=St.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $e.GREATER_THAN_SIGN:{this._err(jt.missingDoctypePublicIdentifier),Ae.forceQuirks=!0,this.state=St.DATA,this.emitCurrentDoctype(Ae);break}case $e.EOF:{this._err(jt.eofInDoctype),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:this._err(jt.missingQuoteBeforeDoctypePublicIdentifier),Ae.forceQuirks=!0,this.state=St.BOGUS_DOCTYPE,this._stateBogusDoctype(F)}}_stateDoctypePublicIdentifierDoubleQuoted(F){const Ae=this.currentToken;switch(F){case $e.QUOTATION_MARK:{this.state=St.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),Ae.publicId+=Rt;break}case $e.GREATER_THAN_SIGN:{this._err(jt.abruptDoctypePublicIdentifier),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this.state=St.DATA;break}case $e.EOF:{this._err(jt.eofInDoctype),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:Ae.publicId+=String.fromCodePoint(F)}}_stateDoctypePublicIdentifierSingleQuoted(F){const Ae=this.currentToken;switch(F){case $e.APOSTROPHE:{this.state=St.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),Ae.publicId+=Rt;break}case $e.GREATER_THAN_SIGN:{this._err(jt.abruptDoctypePublicIdentifier),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this.state=St.DATA;break}case $e.EOF:{this._err(jt.eofInDoctype),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:Ae.publicId+=String.fromCodePoint(F)}}_stateAfterDoctypePublicIdentifier(F){const Ae=this.currentToken;switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this.state=St.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case $e.GREATER_THAN_SIGN:{this.state=St.DATA,this.emitCurrentDoctype(Ae);break}case $e.QUOTATION_MARK:{this._err(jt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ae.systemId="",this.state=St.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{this._err(jt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ae.systemId="",this.state=St.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $e.EOF:{this._err(jt.eofInDoctype),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:this._err(jt.missingQuoteBeforeDoctypeSystemIdentifier),Ae.forceQuirks=!0,this.state=St.BOGUS_DOCTYPE,this._stateBogusDoctype(F)}}_stateBetweenDoctypePublicAndSystemIdentifiers(F){const Ae=this.currentToken;switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ae),this.state=St.DATA;break}case $e.QUOTATION_MARK:{Ae.systemId="",this.state=St.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{Ae.systemId="",this.state=St.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $e.EOF:{this._err(jt.eofInDoctype),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:this._err(jt.missingQuoteBeforeDoctypeSystemIdentifier),Ae.forceQuirks=!0,this.state=St.BOGUS_DOCTYPE,this._stateBogusDoctype(F)}}_stateAfterDoctypeSystemKeyword(F){const Ae=this.currentToken;switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this.state=St.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case $e.QUOTATION_MARK:{this._err(jt.missingWhitespaceAfterDoctypeSystemKeyword),Ae.systemId="",this.state=St.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{this._err(jt.missingWhitespaceAfterDoctypeSystemKeyword),Ae.systemId="",this.state=St.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $e.GREATER_THAN_SIGN:{this._err(jt.missingDoctypeSystemIdentifier),Ae.forceQuirks=!0,this.state=St.DATA,this.emitCurrentDoctype(Ae);break}case $e.EOF:{this._err(jt.eofInDoctype),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:this._err(jt.missingQuoteBeforeDoctypeSystemIdentifier),Ae.forceQuirks=!0,this.state=St.BOGUS_DOCTYPE,this._stateBogusDoctype(F)}}_stateBeforeDoctypeSystemIdentifier(F){const Ae=this.currentToken;switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.QUOTATION_MARK:{Ae.systemId="",this.state=St.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{Ae.systemId="",this.state=St.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $e.GREATER_THAN_SIGN:{this._err(jt.missingDoctypeSystemIdentifier),Ae.forceQuirks=!0,this.state=St.DATA,this.emitCurrentDoctype(Ae);break}case $e.EOF:{this._err(jt.eofInDoctype),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:this._err(jt.missingQuoteBeforeDoctypeSystemIdentifier),Ae.forceQuirks=!0,this.state=St.BOGUS_DOCTYPE,this._stateBogusDoctype(F)}}_stateDoctypeSystemIdentifierDoubleQuoted(F){const Ae=this.currentToken;switch(F){case $e.QUOTATION_MARK:{this.state=St.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),Ae.systemId+=Rt;break}case $e.GREATER_THAN_SIGN:{this._err(jt.abruptDoctypeSystemIdentifier),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this.state=St.DATA;break}case $e.EOF:{this._err(jt.eofInDoctype),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:Ae.systemId+=String.fromCodePoint(F)}}_stateDoctypeSystemIdentifierSingleQuoted(F){const Ae=this.currentToken;switch(F){case $e.APOSTROPHE:{this.state=St.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $e.NULL:{this._err(jt.unexpectedNullCharacter),Ae.systemId+=Rt;break}case $e.GREATER_THAN_SIGN:{this._err(jt.abruptDoctypeSystemIdentifier),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this.state=St.DATA;break}case $e.EOF:{this._err(jt.eofInDoctype),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:Ae.systemId+=String.fromCodePoint(F)}}_stateAfterDoctypeSystemIdentifier(F){const Ae=this.currentToken;switch(F){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ae),this.state=St.DATA;break}case $e.EOF:{this._err(jt.eofInDoctype),Ae.forceQuirks=!0,this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:this._err(jt.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=St.BOGUS_DOCTYPE,this._stateBogusDoctype(F)}}_stateBogusDoctype(F){const Ae=this.currentToken;switch(F){case $e.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ae),this.state=St.DATA;break}case $e.NULL:{this._err(jt.unexpectedNullCharacter);break}case $e.EOF:{this.emitCurrentDoctype(Ae),this._emitEOFToken();break}default:}}_stateCdataSection(F){switch(F){case $e.RIGHT_SQUARE_BRACKET:{this.state=St.CDATA_SECTION_BRACKET;break}case $e.EOF:{this._err(jt.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(F)}}_stateCdataSectionBracket(F){F===$e.RIGHT_SQUARE_BRACKET?this.state=St.CDATA_SECTION_END:(this._emitChars("]"),this.state=St.CDATA_SECTION,this._stateCdataSection(F))}_stateCdataSectionEnd(F){switch(F){case $e.GREATER_THAN_SIGN:{this.state=St.DATA;break}case $e.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=St.CDATA_SECTION,this._stateCdataSection(F)}}_stateCharacterReference(){let F=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(F<0)if(this.preprocessor.lastChunkWritten)F=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}F===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference($e.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&oi(this.preprocessor.peek(1))?St.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(F){oi(F)?this._flushCodePointConsumedAsCharacterReference(F):(F===$e.SEMICOLON&&this._err(jt.unknownNamedCharacterReference),this.state=this.returnState,this._callState(F))}}const ri=new Set([we.DD,we.DT,we.LI,we.OPTGROUP,we.OPTION,we.P,we.RB,we.RP,we.RT,we.RTC]),Gt=new Set([...ri,we.CAPTION,we.COLGROUP,we.TBODY,we.TD,we.TFOOT,we.TH,we.THEAD,we.TR]),ui=new Set([we.APPLET,we.CAPTION,we.HTML,we.MARQUEE,we.OBJECT,we.TABLE,we.TD,we.TEMPLATE,we.TH]),Kt=new Set([...ui,we.OL,we.UL]),Wn=new Set([...ui,we.BUTTON]),er=new Set([we.ANNOTATION_XML,we.MI,we.MN,we.MO,we.MS,we.MTEXT]),rr=new Set([we.DESC,we.FOREIGN_OBJECT,we.TITLE]),Di=new Set([we.TR,we.TEMPLATE,we.HTML]),Li=new Set([we.TBODY,we.TFOOT,we.THEAD,we.TEMPLATE,we.HTML]),pi=new Set([we.TABLE,we.TEMPLATE,we.HTML]),Mi=new Set([we.TD,we.TH]);class _t{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(F,Ae,lt){this.treeAdapter=Ae,this.handler=lt,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=we.UNKNOWN,this.current=F}_indexOf(F){return this.items.lastIndexOf(F,this.stackTop)}_isInTemplate(){return this.currentTagId===we.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===gt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(F,Ae){this.stackTop++,this.items[this.stackTop]=F,this.current=F,this.tagIDs[this.stackTop]=Ae,this.currentTagId=Ae,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(F,Ae,!0)}pop(){const F=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(F,!0)}replace(F,Ae){const lt=this._indexOf(F);this.items[lt]=Ae,lt===this.stackTop&&(this.current=Ae)}insertAfter(F,Ae,lt){const Wt=this._indexOf(F)+1;this.items.splice(Wt,0,Ae),this.tagIDs.splice(Wt,0,lt),this.stackTop++,Wt===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,Wt===this.stackTop)}popUntilTagNamePopped(F){let Ae=this.stackTop+1;do Ae=this.tagIDs.lastIndexOf(F,Ae-1);while(Ae>0&&this.treeAdapter.getNamespaceURI(this.items[Ae])!==gt.HTML);this.shortenToLength(Ae<0?0:Ae)}shortenToLength(F){for(;this.stackTop>=F;){const Ae=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(Ae,this.stackTop<F)}}popUntilElementPopped(F){const Ae=this._indexOf(F);this.shortenToLength(Ae<0?0:Ae)}popUntilPopped(F,Ae){const lt=this._indexOfTagNames(F,Ae);this.shortenToLength(lt<0?0:lt)}popUntilNumberedHeaderPopped(){this.popUntilPopped(pr,gt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Mi,gt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(F,Ae){for(let lt=this.stackTop;lt>=0;lt--)if(F.has(this.tagIDs[lt])&&this.treeAdapter.getNamespaceURI(this.items[lt])===Ae)return lt;return-1}clearBackTo(F,Ae){const lt=this._indexOfTagNames(F,Ae);this.shortenToLength(lt+1)}clearBackToTableContext(){this.clearBackTo(pi,gt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Li,gt.HTML)}clearBackToTableRowContext(){this.clearBackTo(Di,gt.HTML)}remove(F){const Ae=this._indexOf(F);Ae>=0&&(Ae===this.stackTop?this.pop():(this.items.splice(Ae,1),this.tagIDs.splice(Ae,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(F,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===we.BODY?this.items[1]:null}contains(F){return this._indexOf(F)>-1}getCommonAncestor(F){const Ae=this._indexOf(F)-1;return Ae>=0?this.items[Ae]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===we.HTML}hasInDynamicScope(F,Ae){for(let lt=this.stackTop;lt>=0;lt--){const Wt=this.tagIDs[lt];switch(this.treeAdapter.getNamespaceURI(this.items[lt])){case gt.HTML:{if(Wt===F)return!0;if(Ae.has(Wt))return!1;break}case gt.SVG:{if(rr.has(Wt))return!1;break}case gt.MATHML:{if(er.has(Wt))return!1;break}}}return!0}hasInScope(F){return this.hasInDynamicScope(F,ui)}hasInListItemScope(F){return this.hasInDynamicScope(F,Kt)}hasInButtonScope(F){return this.hasInDynamicScope(F,Wn)}hasNumberedHeaderInScope(){for(let F=this.stackTop;F>=0;F--){const Ae=this.tagIDs[F];switch(this.treeAdapter.getNamespaceURI(this.items[F])){case gt.HTML:{if(pr.has(Ae))return!0;if(ui.has(Ae))return!1;break}case gt.SVG:{if(rr.has(Ae))return!1;break}case gt.MATHML:{if(er.has(Ae))return!1;break}}}return!0}hasInTableScope(F){for(let Ae=this.stackTop;Ae>=0;Ae--)if(this.treeAdapter.getNamespaceURI(this.items[Ae])===gt.HTML)switch(this.tagIDs[Ae]){case F:return!0;case we.TABLE:case we.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let F=this.stackTop;F>=0;F--)if(this.treeAdapter.getNamespaceURI(this.items[F])===gt.HTML)switch(this.tagIDs[F]){case we.TBODY:case we.THEAD:case we.TFOOT:return!0;case we.TABLE:case we.HTML:return!1}return!0}hasInSelectScope(F){for(let Ae=this.stackTop;Ae>=0;Ae--)if(this.treeAdapter.getNamespaceURI(this.items[Ae])===gt.HTML)switch(this.tagIDs[Ae]){case F:return!0;case we.OPTION:case we.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;ri.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Gt.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(F){for(;this.currentTagId!==F&&Gt.has(this.currentTagId);)this.pop()}}const Vt=3;var Et;(function(_){_[_.Marker=0]="Marker",_[_.Element=1]="Element"})(Et||(Et={}));const Ie={type:Et.Marker};class cn{constructor(F){this.treeAdapter=F,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(F,Ae){const lt=[],Wt=Ae.length,Tn=this.treeAdapter.getTagName(F),Gn=this.treeAdapter.getNamespaceURI(F);for(let $r=0;$r<this.entries.length;$r++){const Ei=this.entries[$r];if(Ei.type===Et.Marker)break;const{element:xn}=Ei;if(this.treeAdapter.getTagName(xn)===Tn&&this.treeAdapter.getNamespaceURI(xn)===Gn){const ur=this.treeAdapter.getAttrList(xn);ur.length===Wt&&lt.push({idx:$r,attrs:ur})}}return lt}_ensureNoahArkCondition(F){if(this.entries.length<Vt)return;const Ae=this.treeAdapter.getAttrList(F),lt=this._getNoahArkConditionCandidates(F,Ae);if(lt.length<Vt)return;const Wt=new Map(Ae.map(Gn=>[Gn.name,Gn.value]));let Tn=0;for(let Gn=0;Gn<lt.length;Gn++){const $r=lt[Gn];$r.attrs.every(Ei=>Wt.get(Ei.name)===Ei.value)&&(Tn+=1,Tn>=Vt&&this.entries.splice($r.idx,1))}}insertMarker(){this.entries.unshift(Ie)}pushElement(F,Ae){this._ensureNoahArkCondition(F),this.entries.unshift({type:Et.Element,element:F,token:Ae})}insertElementAfterBookmark(F,Ae){const lt=this.entries.indexOf(this.bookmark);this.entries.splice(lt,0,{type:Et.Element,element:F,token:Ae})}removeEntry(F){const Ae=this.entries.indexOf(F);Ae>=0&&this.entries.splice(Ae,1)}clearToLastMarker(){const F=this.entries.indexOf(Ie);F>=0?this.entries.splice(0,F+1):this.entries.length=0}getElementEntryInScopeWithTagName(F){const Ae=this.entries.find(lt=>lt.type===Et.Marker||this.treeAdapter.getTagName(lt.element)===F);return Ae&&Ae.type===Et.Element?Ae:null}getElementEntry(F){return this.entries.find(Ae=>Ae.type===Et.Element&&Ae.element===F)}}const sn={createDocument(){return{nodeName:"#document",mode:Hn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(_,F,Ae){return{nodeName:_,tagName:_,attrs:Ae,namespaceURI:F,childNodes:[],parentNode:null}},createCommentNode(_){return{nodeName:"#comment",data:_,parentNode:null}},createTextNode(_){return{nodeName:"#text",value:_,parentNode:null}},appendChild(_,F){_.childNodes.push(F),F.parentNode=_},insertBefore(_,F,Ae){const lt=_.childNodes.indexOf(Ae);_.childNodes.splice(lt,0,F),F.parentNode=_},setTemplateContent(_,F){_.content=F},getTemplateContent(_){return _.content},setDocumentType(_,F,Ae,lt){const Wt=_.childNodes.find(Tn=>Tn.nodeName==="#documentType");if(Wt)Wt.name=F,Wt.publicId=Ae,Wt.systemId=lt;else{const Tn={nodeName:"#documentType",name:F,publicId:Ae,systemId:lt,parentNode:null};sn.appendChild(_,Tn)}},setDocumentMode(_,F){_.mode=F},getDocumentMode(_){return _.mode},detachNode(_){if(_.parentNode){const F=_.parentNode.childNodes.indexOf(_);_.parentNode.childNodes.splice(F,1),_.parentNode=null}},insertText(_,F){if(_.childNodes.length>0){const Ae=_.childNodes[_.childNodes.length-1];if(sn.isTextNode(Ae)){Ae.value+=F;return}}sn.appendChild(_,sn.createTextNode(F))},insertTextBefore(_,F,Ae){const lt=_.childNodes[_.childNodes.indexOf(Ae)-1];lt&&sn.isTextNode(lt)?lt.value+=F:sn.insertBefore(_,sn.createTextNode(F),Ae)},adoptAttributes(_,F){const Ae=new Set(_.attrs.map(lt=>lt.name));for(let lt=0;lt<F.length;lt++)Ae.has(F[lt].name)||_.attrs.push(F[lt])},getFirstChild(_){return _.childNodes[0]},getChildNodes(_){return _.childNodes},getParentNode(_){return _.parentNode},getAttrList(_){return _.attrs},getTagName(_){return _.tagName},getNamespaceURI(_){return _.namespaceURI},getTextNodeContent(_){return _.value},getCommentNodeContent(_){return _.data},getDocumentTypeNodeName(_){return _.name},getDocumentTypeNodePublicId(_){return _.publicId},getDocumentTypeNodeSystemId(_){return _.systemId},isTextNode(_){return _.nodeName==="#text"},isCommentNode(_){return _.nodeName==="#comment"},isDocumentTypeNode(_){return _.nodeName==="#documentType"},isElementNode(_){return Object.prototype.hasOwnProperty.call(_,"tagName")},setNodeSourceCodeLocation(_,F){_.sourceCodeLocation=F},getNodeSourceCodeLocation(_){return _.sourceCodeLocation},updateNodeSourceCodeLocation(_,F){_.sourceCodeLocation=eo(eo({},_.sourceCodeLocation),F)}},bn="html",_n="about:legacy-compat",Rn="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Jt=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],fn=[...Jt,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],dn=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),yn=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Sn=[...yn,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Xn(_,F){return F.some(Ae=>_.startsWith(Ae))}function _r(_){return _.name===bn&&_.publicId===null&&(_.systemId===null||_.systemId===_n)}function Fr(_){if(_.name!==bn)return Hn.QUIRKS;const{systemId:F}=_;if(F&&F.toLowerCase()===Rn)return Hn.QUIRKS;let{publicId:Ae}=_;if(Ae!==null){if(Ae=Ae.toLowerCase(),dn.has(Ae))return Hn.QUIRKS;let lt=F===null?fn:Jt;if(Xn(Ae,lt))return Hn.QUIRKS;if(lt=F===null?yn:Sn,Xn(Ae,lt))return Hn.LIMITED_QUIRKS}return Hn.NO_QUIRKS}const mn={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Cr="definitionurl",Or="definitionURL",yi=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(_=>[_.toLowerCase(),_])),Kr=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:gt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:gt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:gt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:gt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:gt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:gt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:gt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:gt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:gt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:gt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:gt.XMLNS}]]),bi=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(_=>[_.toLowerCase(),_])),Si=new Set([we.B,we.BIG,we.BLOCKQUOTE,we.BODY,we.BR,we.CENTER,we.CODE,we.DD,we.DIV,we.DL,we.DT,we.EM,we.EMBED,we.H1,we.H2,we.H3,we.H4,we.H5,we.H6,we.HEAD,we.HR,we.I,we.IMG,we.LI,we.LISTING,we.MENU,we.META,we.NOBR,we.OL,we.P,we.PRE,we.RUBY,we.S,we.SMALL,we.SPAN,we.STRONG,we.STRIKE,we.SUB,we.SUP,we.TABLE,we.TT,we.U,we.UL,we.VAR]);function hi(_){const F=_.tagID;return F===we.FONT&&_.attrs.some(({name:lt})=>lt===gn.COLOR||lt===gn.SIZE||lt===gn.FACE)||Si.has(F)}function Wi(_){for(let F=0;F<_.attrs.length;F++)if(_.attrs[F].name===Cr){_.attrs[F].name=Or;break}}function to(_){for(let F=0;F<_.attrs.length;F++){const Ae=yi.get(_.attrs[F].name);Ae!=null&&(_.attrs[F].name=Ae)}}function go(_){for(let F=0;F<_.attrs.length;F++){const Ae=Kr.get(_.attrs[F].name);Ae&&(_.attrs[F].prefix=Ae.prefix,_.attrs[F].name=Ae.name,_.attrs[F].namespace=Ae.namespace)}}function xt(_){const F=bi.get(_.tagName);F!=null&&(_.tagName=F,_.tagID=wn(_.tagName))}function ei(_,F){return F===gt.MATHML&&(_===we.MI||_===we.MO||_===we.MN||_===we.MS||_===we.MTEXT)}function si(_,F,Ae){if(F===gt.MATHML&&_===we.ANNOTATION_XML){for(let lt=0;lt<Ae.length;lt++)if(Ae[lt].name===gn.ENCODING){const Wt=Ae[lt].value.toLowerCase();return Wt===mn.TEXT_HTML||Wt===mn.APPLICATION_XML}}return F===gt.SVG&&(_===we.FOREIGN_OBJECT||_===we.DESC||_===we.TITLE)}function Sr(_,F,Ae,lt){return(!lt||lt===gt.HTML)&&si(_,F,Ae)||(!lt||lt===gt.MATHML)&&ei(_,F)}const ii="hidden",Br=8,Qi=3;var kt;(function(_){_[_.INITIAL=0]="INITIAL",_[_.BEFORE_HTML=1]="BEFORE_HTML",_[_.BEFORE_HEAD=2]="BEFORE_HEAD",_[_.IN_HEAD=3]="IN_HEAD",_[_.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",_[_.AFTER_HEAD=5]="AFTER_HEAD",_[_.IN_BODY=6]="IN_BODY",_[_.TEXT=7]="TEXT",_[_.IN_TABLE=8]="IN_TABLE",_[_.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",_[_.IN_CAPTION=10]="IN_CAPTION",_[_.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",_[_.IN_TABLE_BODY=12]="IN_TABLE_BODY",_[_.IN_ROW=13]="IN_ROW",_[_.IN_CELL=14]="IN_CELL",_[_.IN_SELECT=15]="IN_SELECT",_[_.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",_[_.IN_TEMPLATE=17]="IN_TEMPLATE",_[_.AFTER_BODY=18]="AFTER_BODY",_[_.IN_FRAMESET=19]="IN_FRAMESET",_[_.AFTER_FRAMESET=20]="AFTER_FRAMESET",_[_.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",_[_.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(kt||(kt={}));const Jr={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Vi=new Set([we.TABLE,we.TBODY,we.TFOOT,we.THEAD,we.TR]),Ts={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:sn,onParseError:null};class ds{constructor(F,Ae,lt=null,Wt=null){this.fragmentContext=lt,this.scriptHandler=Wt,this.currentToken=null,this.stopped=!1,this.insertionMode=kt.INITIAL,this.originalInsertionMode=kt.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=eo(eo({},Ts),F),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=Ae!=null?Ae:this.treeAdapter.createDocument(),this.tokenizer=new qr(this.options,this),this.activeFormattingElements=new cn(this.treeAdapter),this.fragmentContextID=lt?wn(this.treeAdapter.getTagName(lt)):we.UNKNOWN,this._setContextModes(lt!=null?lt:this.document,this.fragmentContextID),this.openElements=new _t(this.document,this.treeAdapter,this)}static parse(F,Ae){const lt=new this(Ae);return lt.tokenizer.write(F,!0),lt.document}static getFragmentParser(F,Ae){const lt=eo(eo({},Ts),Ae);F!=null||(F=lt.treeAdapter.createElement(At.TEMPLATE,gt.HTML,[]));const Wt=lt.treeAdapter.createElement("documentmock",gt.HTML,[]),Tn=new this(lt,Wt,F);return Tn.fragmentContextID===we.TEMPLATE&&Tn.tmplInsertionModeStack.unshift(kt.IN_TEMPLATE),Tn._initTokenizerForFragmentParsing(),Tn._insertFakeRootElement(),Tn._resetInsertionMode(),Tn._findFormInFragmentContext(),Tn}getFragment(){const F=this.treeAdapter.getFirstChild(this.document),Ae=this.treeAdapter.createDocumentFragment();return this._adoptNodes(F,Ae),Ae}_err(F,Ae,lt){var Wt;if(!this.onParseError)return;const Tn=(Wt=F.location)!==null&&Wt!==void 0?Wt:Jr,Gn={code:Ae,startLine:Tn.startLine,startCol:Tn.startCol,startOffset:Tn.startOffset,endLine:lt?Tn.startLine:Tn.endLine,endCol:lt?Tn.startCol:Tn.endCol,endOffset:lt?Tn.startOffset:Tn.endOffset};this.onParseError(Gn)}onItemPush(F,Ae,lt){var Wt,Tn;(Tn=(Wt=this.treeAdapter).onItemPush)===null||Tn===void 0||Tn.call(Wt,F),lt&&this.openElements.stackTop>0&&this._setContextModes(F,Ae)}onItemPop(F,Ae){var lt,Wt;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(F,this.currentToken),(Wt=(lt=this.treeAdapter).onItemPop)===null||Wt===void 0||Wt.call(lt,F,this.openElements.current),Ae){let Tn,Gn;this.openElements.stackTop===0&&this.fragmentContext?(Tn=this.fragmentContext,Gn=this.fragmentContextID):{current:Tn,currentTagId:Gn}=this.openElements,this._setContextModes(Tn,Gn)}}_setContextModes(F,Ae){const lt=F===this.document||this.treeAdapter.getNamespaceURI(F)===gt.HTML;this.currentNotInHTML=!lt,this.tokenizer.inForeignNode=!lt&&!this._isIntegrationPoint(Ae,F)}_switchToTextParsing(F,Ae){this._insertElement(F,gt.HTML),this.tokenizer.state=Ae,this.originalInsertionMode=this.insertionMode,this.insertionMode=kt.TEXT}switchToPlaintextParsing(){this.insertionMode=kt.TEXT,this.originalInsertionMode=kt.IN_BODY,this.tokenizer.state=gr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let F=this.fragmentContext;for(;F;){if(this.treeAdapter.getTagName(F)===At.FORM){this.formElement=F;break}F=this.treeAdapter.getParentNode(F)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==gt.HTML))switch(this.fragmentContextID){case we.TITLE:case we.TEXTAREA:{this.tokenizer.state=gr.RCDATA;break}case we.STYLE:case we.XMP:case we.IFRAME:case we.NOEMBED:case we.NOFRAMES:case we.NOSCRIPT:{this.tokenizer.state=gr.RAWTEXT;break}case we.SCRIPT:{this.tokenizer.state=gr.SCRIPT_DATA;break}case we.PLAINTEXT:{this.tokenizer.state=gr.PLAINTEXT;break}default:}}_setDocumentType(F){const Ae=F.name||"",lt=F.publicId||"",Wt=F.systemId||"";if(this.treeAdapter.setDocumentType(this.document,Ae,lt,Wt),F.location){const Gn=this.treeAdapter.getChildNodes(this.document).find($r=>this.treeAdapter.isDocumentTypeNode($r));Gn&&this.treeAdapter.setNodeSourceCodeLocation(Gn,F.location)}}_attachElementToTree(F,Ae){if(this.options.sourceCodeLocationInfo){const lt=Ae&&Pf(eo({},Ae),{startTag:Ae});this.treeAdapter.setNodeSourceCodeLocation(F,lt)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(F);else{const lt=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(lt,F)}}_appendElement(F,Ae){const lt=this.treeAdapter.createElement(F.tagName,Ae,F.attrs);this._attachElementToTree(lt,F.location)}_insertElement(F,Ae){const lt=this.treeAdapter.createElement(F.tagName,Ae,F.attrs);this._attachElementToTree(lt,F.location),this.openElements.push(lt,F.tagID)}_insertFakeElement(F,Ae){const lt=this.treeAdapter.createElement(F,gt.HTML,[]);this._attachElementToTree(lt,null),this.openElements.push(lt,Ae)}_insertTemplate(F){const Ae=this.treeAdapter.createElement(F.tagName,gt.HTML,F.attrs),lt=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(Ae,lt),this._attachElementToTree(Ae,F.location),this.openElements.push(Ae,F.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(lt,null)}_insertFakeRootElement(){const F=this.treeAdapter.createElement(At.HTML,gt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(F,null),this.treeAdapter.appendChild(this.openElements.current,F),this.openElements.push(F,we.HTML)}_appendCommentNode(F,Ae){const lt=this.treeAdapter.createCommentNode(F.data);this.treeAdapter.appendChild(Ae,lt),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(lt,F.location)}_insertCharacters(F){let Ae,lt;if(this._shouldFosterParentOnInsertion()?({parent:Ae,beforeElement:lt}=this._findFosterParentingLocation(),lt?this.treeAdapter.insertTextBefore(Ae,F.chars,lt):this.treeAdapter.insertText(Ae,F.chars)):(Ae=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(Ae,F.chars)),!F.location)return;const Wt=this.treeAdapter.getChildNodes(Ae),Tn=lt?Wt.lastIndexOf(lt):Wt.length,Gn=Wt[Tn-1];if(this.treeAdapter.getNodeSourceCodeLocation(Gn)){const{endLine:Ei,endCol:xn,endOffset:ur}=F.location;this.treeAdapter.updateNodeSourceCodeLocation(Gn,{endLine:Ei,endCol:xn,endOffset:ur})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Gn,F.location)}_adoptNodes(F,Ae){for(let lt=this.treeAdapter.getFirstChild(F);lt;lt=this.treeAdapter.getFirstChild(F))this.treeAdapter.detachNode(lt),this.treeAdapter.appendChild(Ae,lt)}_setEndLocation(F,Ae){if(this.treeAdapter.getNodeSourceCodeLocation(F)&&Ae.location){const lt=Ae.location,Wt=this.treeAdapter.getTagName(F),Tn=Ae.type===zn.END_TAG&&Wt===Ae.tagName?{endTag:eo({},lt),endLine:lt.endLine,endCol:lt.endCol,endOffset:lt.endOffset}:{endLine:lt.startLine,endCol:lt.startCol,endOffset:lt.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(F,Tn)}}shouldProcessStartTagTokenInForeignContent(F){if(!this.currentNotInHTML)return!1;let Ae,lt;return this.openElements.stackTop===0&&this.fragmentContext?(Ae=this.fragmentContext,lt=this.fragmentContextID):{current:Ae,currentTagId:lt}=this.openElements,F.tagID===we.SVG&&this.treeAdapter.getTagName(Ae)===At.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(Ae)===gt.MATHML?!1:this.tokenizer.inForeignNode||(F.tagID===we.MGLYPH||F.tagID===we.MALIGNMARK)&&!this._isIntegrationPoint(lt,Ae,gt.HTML)}_processToken(F){switch(F.type){case zn.CHARACTER:{this.onCharacter(F);break}case zn.NULL_CHARACTER:{this.onNullCharacter(F);break}case zn.COMMENT:{this.onComment(F);break}case zn.DOCTYPE:{this.onDoctype(F);break}case zn.START_TAG:{this._processStartTag(F);break}case zn.END_TAG:{this.onEndTag(F);break}case zn.EOF:{this.onEof(F);break}case zn.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(F);break}}}_isIntegrationPoint(F,Ae,lt){const Wt=this.treeAdapter.getNamespaceURI(Ae),Tn=this.treeAdapter.getAttrList(Ae);return Sr(F,Wt,Tn,lt)}_reconstructActiveFormattingElements(){const F=this.activeFormattingElements.entries.length;if(F){const Ae=this.activeFormattingElements.entries.findIndex(Wt=>Wt.type===Et.Marker||this.openElements.contains(Wt.element)),lt=Ae<0?F-1:Ae-1;for(let Wt=lt;Wt>=0;Wt--){const Tn=this.activeFormattingElements.entries[Wt];this._insertElement(Tn.token,this.treeAdapter.getNamespaceURI(Tn.element)),Tn.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=kt.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(we.P),this.openElements.popUntilTagNamePopped(we.P)}_resetInsertionMode(){for(let F=this.openElements.stackTop;F>=0;F--)switch(F===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[F]){case we.TR:{this.insertionMode=kt.IN_ROW;return}case we.TBODY:case we.THEAD:case we.TFOOT:{this.insertionMode=kt.IN_TABLE_BODY;return}case we.CAPTION:{this.insertionMode=kt.IN_CAPTION;return}case we.COLGROUP:{this.insertionMode=kt.IN_COLUMN_GROUP;return}case we.TABLE:{this.insertionMode=kt.IN_TABLE;return}case we.BODY:{this.insertionMode=kt.IN_BODY;return}case we.FRAMESET:{this.insertionMode=kt.IN_FRAMESET;return}case we.SELECT:{this._resetInsertionModeForSelect(F);return}case we.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case we.HTML:{this.insertionMode=this.headElement?kt.AFTER_HEAD:kt.BEFORE_HEAD;return}case we.TD:case we.TH:{if(F>0){this.insertionMode=kt.IN_CELL;return}break}case we.HEAD:{if(F>0){this.insertionMode=kt.IN_HEAD;return}break}}this.insertionMode=kt.IN_BODY}_resetInsertionModeForSelect(F){if(F>0)for(let Ae=F-1;Ae>0;Ae--){const lt=this.openElements.tagIDs[Ae];if(lt===we.TEMPLATE)break;if(lt===we.TABLE){this.insertionMode=kt.IN_SELECT_IN_TABLE;return}}this.insertionMode=kt.IN_SELECT}_isElementCausesFosterParenting(F){return Vi.has(F)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let F=this.openElements.stackTop;F>=0;F--){const Ae=this.openElements.items[F];switch(this.openElements.tagIDs[F]){case we.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(Ae)===gt.HTML)return{parent:this.treeAdapter.getTemplateContent(Ae),beforeElement:null};break}case we.TABLE:{const lt=this.treeAdapter.getParentNode(Ae);return lt?{parent:lt,beforeElement:Ae}:{parent:this.openElements.items[F-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(F){const Ae=this._findFosterParentingLocation();Ae.beforeElement?this.treeAdapter.insertBefore(Ae.parent,F,Ae.beforeElement):this.treeAdapter.appendChild(Ae.parent,F)}_isSpecialElement(F,Ae){const lt=this.treeAdapter.getNamespaceURI(F);return lr[lt].has(Ae)}onCharacter(F){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){je(this,F);return}switch(this.insertionMode){case kt.INITIAL:{zo(this,F);break}case kt.BEFORE_HTML:{So(this,F);break}case kt.BEFORE_HEAD:{Pi(this,F);break}case kt.IN_HEAD:{cs(this,F);break}case kt.IN_HEAD_NO_SCRIPT:{xo(this,F);break}case kt.AFTER_HEAD:{Ga(this,F);break}case kt.IN_BODY:case kt.IN_CAPTION:case kt.IN_CELL:case kt.IN_TEMPLATE:{Wa(this,F);break}case kt.TEXT:case kt.IN_SELECT:case kt.IN_SELECT_IN_TABLE:{this._insertCharacters(F);break}case kt.IN_TABLE:case kt.IN_TABLE_BODY:case kt.IN_ROW:{Ar(this,F);break}case kt.IN_TABLE_TEXT:{Da(this,F);break}case kt.IN_COLUMN_GROUP:{os(this,F);break}case kt.AFTER_BODY:{mu(this,F);break}case kt.AFTER_AFTER_BODY:{te(this,F);break}default:}}onNullCharacter(F){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ke(this,F);return}switch(this.insertionMode){case kt.INITIAL:{zo(this,F);break}case kt.BEFORE_HTML:{So(this,F);break}case kt.BEFORE_HEAD:{Pi(this,F);break}case kt.IN_HEAD:{cs(this,F);break}case kt.IN_HEAD_NO_SCRIPT:{xo(this,F);break}case kt.AFTER_HEAD:{Ga(this,F);break}case kt.TEXT:{this._insertCharacters(F);break}case kt.IN_TABLE:case kt.IN_TABLE_BODY:case kt.IN_ROW:{Ar(this,F);break}case kt.IN_COLUMN_GROUP:{os(this,F);break}case kt.AFTER_BODY:{mu(this,F);break}case kt.AFTER_AFTER_BODY:{te(this,F);break}default:}}onComment(F){if(this.skipNextNewLine=!1,this.currentNotInHTML){jr(this,F);return}switch(this.insertionMode){case kt.INITIAL:case kt.BEFORE_HTML:case kt.BEFORE_HEAD:case kt.IN_HEAD:case kt.IN_HEAD_NO_SCRIPT:case kt.AFTER_HEAD:case kt.IN_BODY:case kt.IN_TABLE:case kt.IN_CAPTION:case kt.IN_COLUMN_GROUP:case kt.IN_TABLE_BODY:case kt.IN_ROW:case kt.IN_CELL:case kt.IN_SELECT:case kt.IN_SELECT_IN_TABLE:case kt.IN_TEMPLATE:case kt.IN_FRAMESET:case kt.AFTER_FRAMESET:{jr(this,F);break}case kt.IN_TABLE_TEXT:{sl(this,F);break}case kt.AFTER_BODY:{an(this,F);break}case kt.AFTER_AFTER_BODY:case kt.AFTER_AFTER_FRAMESET:{cr(this,F);break}default:}}onDoctype(F){switch(this.skipNextNewLine=!1,this.insertionMode){case kt.INITIAL:{ro(this,F);break}case kt.BEFORE_HEAD:case kt.IN_HEAD:case kt.IN_HEAD_NO_SCRIPT:case kt.AFTER_HEAD:{this._err(F,jt.misplacedDoctype);break}case kt.IN_TABLE_TEXT:{sl(this,F);break}default:}}onStartTag(F){this.skipNextNewLine=!1,this.currentToken=F,this._processStartTag(F),F.selfClosing&&!F.ackSelfClosing&&this._err(F,jt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(F){this.shouldProcessStartTagTokenInForeignContent(F)?Qe(this,F):this._startTagOutsideForeignContent(F)}_startTagOutsideForeignContent(F){switch(this.insertionMode){case kt.INITIAL:{zo(this,F);break}case kt.BEFORE_HTML:{Qo(this,F);break}case kt.BEFORE_HEAD:{Oo(this,F);break}case kt.IN_HEAD:{lo(this,F);break}case kt.IN_HEAD_NO_SCRIPT:{Sa(this,F);break}case kt.AFTER_HEAD:{Oa(this,F);break}case kt.IN_BODY:{Yi(this,F);break}case kt.IN_TABLE:{Ma(this,F);break}case kt.IN_TABLE_TEXT:{sl(this,F);break}case kt.IN_CAPTION:{ki(this,F);break}case kt.IN_COLUMN_GROUP:{ko(this,F);break}case kt.IN_TABLE_BODY:{xa(this,F);break}case kt.IN_ROW:{Ea(this,F);break}case kt.IN_CELL:{Ka(this,F);break}case kt.IN_SELECT:{Th(this,F);break}case kt.IN_SELECT_IN_TABLE:{Ah(this,F);break}case kt.IN_TEMPLATE:{eu(this,F);break}case kt.AFTER_BODY:{Os(this,F);break}case kt.IN_FRAMESET:{Fs(this,F);break}case kt.AFTER_FRAMESET:{xc(this,F);break}case kt.AFTER_AFTER_BODY:{sa(this,F);break}case kt.AFTER_AFTER_FRAMESET:{Se(this,F);break}default:}}onEndTag(F){this.skipNextNewLine=!1,this.currentToken=F,this.currentNotInHTML?ct(this,F):this._endTagOutsideForeignContent(F)}_endTagOutsideForeignContent(F){switch(this.insertionMode){case kt.INITIAL:{zo(this,F);break}case kt.BEFORE_HTML:{Tr(this,F);break}case kt.BEFORE_HEAD:{Co(this,F);break}case kt.IN_HEAD:{Is(this,F);break}case kt.IN_HEAD_NO_SCRIPT:{rl(this,F);break}case kt.AFTER_HEAD:{Yl(this,F);break}case kt.IN_BODY:{po(this,F);break}case kt.TEXT:{Ai(this,F);break}case kt.IN_TABLE:{Ui(this,F);break}case kt.IN_TABLE_TEXT:{sl(this,F);break}case kt.IN_CAPTION:{Zi(this,F);break}case kt.IN_COLUMN_GROUP:{ms(this,F);break}case kt.IN_TABLE_BODY:{wa(this,F);break}case kt.IN_ROW:{oa(this,F);break}case kt.IN_CELL:{Sc(this,F);break}case kt.IN_SELECT:{_h(this,F);break}case kt.IN_SELECT_IN_TABLE:{ts(this,F);break}case kt.IN_TEMPLATE:{ho(this,F);break}case kt.AFTER_BODY:{ks(this,F);break}case kt.IN_FRAMESET:{tu(this,F);break}case kt.AFTER_FRAMESET:{wc(this,F);break}case kt.AFTER_AFTER_BODY:{te(this,F);break}default:}}onEof(F){switch(this.insertionMode){case kt.INITIAL:{zo(this,F);break}case kt.BEFORE_HTML:{So(this,F);break}case kt.BEFORE_HEAD:{Pi(this,F);break}case kt.IN_HEAD:{cs(this,F);break}case kt.IN_HEAD_NO_SCRIPT:{xo(this,F);break}case kt.AFTER_HEAD:{Ga(this,F);break}case kt.IN_BODY:case kt.IN_TABLE:case kt.IN_CAPTION:case kt.IN_COLUMN_GROUP:case kt.IN_TABLE_BODY:case kt.IN_ROW:case kt.IN_CELL:case kt.IN_SELECT:case kt.IN_SELECT_IN_TABLE:{_o(this,F);break}case kt.TEXT:{Ql(this,F);break}case kt.IN_TABLE_TEXT:{sl(this,F);break}case kt.IN_TEMPLATE:{xs(this,F);break}case kt.AFTER_BODY:case kt.IN_FRAMESET:case kt.AFTER_FRAMESET:case kt.AFTER_AFTER_BODY:case kt.AFTER_AFTER_FRAMESET:{Gr(this,F);break}default:}}onWhitespaceCharacter(F){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,F.chars.charCodeAt(0)===$e.LINE_FEED)){if(F.chars.length===1)return;F.chars=F.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(F);return}switch(this.insertionMode){case kt.IN_HEAD:case kt.IN_HEAD_NO_SCRIPT:case kt.AFTER_HEAD:case kt.TEXT:case kt.IN_COLUMN_GROUP:case kt.IN_SELECT:case kt.IN_SELECT_IN_TABLE:case kt.IN_FRAMESET:case kt.AFTER_FRAMESET:{this._insertCharacters(F);break}case kt.IN_BODY:case kt.IN_CAPTION:case kt.IN_CELL:case kt.IN_TEMPLATE:case kt.AFTER_BODY:case kt.AFTER_AFTER_BODY:case kt.AFTER_AFTER_FRAMESET:{Us(this,F);break}case kt.IN_TABLE:case kt.IN_TABLE_BODY:case kt.IN_ROW:{Ar(this,F);break}case kt.IN_TABLE_TEXT:{ql(this,F);break}default:}}}function js(_,F){let Ae=_.activeFormattingElements.getElementEntryInScopeWithTagName(F.tagName);return Ae?_.openElements.contains(Ae.element)?_.openElements.hasInScope(F.tagID)||(Ae=null):(_.activeFormattingElements.removeEntry(Ae),Ae=null):uo(_,F),Ae}function _s(_,F){let Ae=null,lt=_.openElements.stackTop;for(;lt>=0;lt--){const Wt=_.openElements.items[lt];if(Wt===F.element)break;_._isSpecialElement(Wt,_.openElements.tagIDs[lt])&&(Ae=Wt)}return Ae||(_.openElements.shortenToLength(lt<0?0:lt),_.activeFormattingElements.removeEntry(F)),Ae}function ar(_,F,Ae){let lt=F,Wt=_.openElements.getCommonAncestor(F);for(let Tn=0,Gn=Wt;Gn!==Ae;Tn++,Gn=Wt){Wt=_.openElements.getCommonAncestor(Gn);const $r=_.activeFormattingElements.getElementEntry(Gn),Ei=$r&&Tn>=Qi;!$r||Ei?(Ei&&_.activeFormattingElements.removeEntry($r),_.openElements.remove(Gn)):(Gn=Ki(_,$r),lt===F&&(_.activeFormattingElements.bookmark=$r),_.treeAdapter.detachNode(lt),_.treeAdapter.appendChild(Gn,lt),lt=Gn)}return lt}function Ki(_,F){const Ae=_.treeAdapter.getNamespaceURI(F.element),lt=_.treeAdapter.createElement(F.token.tagName,Ae,F.token.attrs);return _.openElements.replace(F.element,lt),F.element=lt,lt}function yo(_,F,Ae){const lt=_.treeAdapter.getTagName(F),Wt=wn(lt);if(_._isElementCausesFosterParenting(Wt))_._fosterParentElement(Ae);else{const Tn=_.treeAdapter.getNamespaceURI(F);Wt===we.TEMPLATE&&Tn===gt.HTML&&(F=_.treeAdapter.getTemplateContent(F)),_.treeAdapter.appendChild(F,Ae)}}function Ho(_,F,Ae){const lt=_.treeAdapter.getNamespaceURI(Ae.element),{token:Wt}=Ae,Tn=_.treeAdapter.createElement(Wt.tagName,lt,Wt.attrs);_._adoptNodes(F,Tn),_.treeAdapter.appendChild(F,Tn),_.activeFormattingElements.insertElementAfterBookmark(Tn,Wt),_.activeFormattingElements.removeEntry(Ae),_.openElements.remove(Ae.element),_.openElements.insertAfter(F,Tn,Wt.tagID)}function Yr(_,F){for(let Ae=0;Ae<Br;Ae++){const lt=js(_,F);if(!lt)break;const Wt=_s(_,lt);if(!Wt)break;_.activeFormattingElements.bookmark=lt;const Tn=ar(_,Wt,lt.element),Gn=_.openElements.getCommonAncestor(lt.element);_.treeAdapter.detachNode(Tn),Gn&&yo(_,Gn,Tn),Ho(_,Wt,lt)}}function jr(_,F){_._appendCommentNode(F,_.openElements.currentTmplContentOrNode)}function an(_,F){_._appendCommentNode(F,_.openElements.items[0])}function cr(_,F){_._appendCommentNode(F,_.document)}function Gr(_,F){if(_.stopped=!0,F.location){const Ae=_.fragmentContext?0:2;for(let lt=_.openElements.stackTop;lt>=Ae;lt--)_._setEndLocation(_.openElements.items[lt],F);if(!_.fragmentContext&&_.openElements.stackTop>=0){const lt=_.openElements.items[0],Wt=_.treeAdapter.getNodeSourceCodeLocation(lt);if(Wt&&!Wt.endTag&&(_._setEndLocation(lt,F),_.openElements.stackTop>=1)){const Tn=_.openElements.items[1],Gn=_.treeAdapter.getNodeSourceCodeLocation(Tn);Gn&&!Gn.endTag&&_._setEndLocation(Tn,F)}}}}function ro(_,F){_._setDocumentType(F);const Ae=F.forceQuirks?Hn.QUIRKS:Fr(F);_r(F)||_._err(F,jt.nonConformingDoctype),_.treeAdapter.setDocumentMode(_.document,Ae),_.insertionMode=kt.BEFORE_HTML}function zo(_,F){_._err(F,jt.missingDoctype,!0),_.treeAdapter.setDocumentMode(_.document,Hn.QUIRKS),_.insertionMode=kt.BEFORE_HTML,_._processToken(F)}function Qo(_,F){F.tagID===we.HTML?(_._insertElement(F,gt.HTML),_.insertionMode=kt.BEFORE_HEAD):So(_,F)}function Tr(_,F){const Ae=F.tagID;(Ae===we.HTML||Ae===we.HEAD||Ae===we.BODY||Ae===we.BR)&&So(_,F)}function So(_,F){_._insertFakeRootElement(),_.insertionMode=kt.BEFORE_HEAD,_._processToken(F)}function Oo(_,F){switch(F.tagID){case we.HTML:{Yi(_,F);break}case we.HEAD:{_._insertElement(F,gt.HTML),_.headElement=_.openElements.current,_.insertionMode=kt.IN_HEAD;break}default:Pi(_,F)}}function Co(_,F){const Ae=F.tagID;Ae===we.HEAD||Ae===we.BODY||Ae===we.HTML||Ae===we.BR?Pi(_,F):_._err(F,jt.endTagWithoutMatchingOpenElement)}function Pi(_,F){_._insertFakeElement(At.HEAD,we.HEAD),_.headElement=_.openElements.current,_.insertionMode=kt.IN_HEAD,_._processToken(F)}function lo(_,F){switch(F.tagID){case we.HTML:{Yi(_,F);break}case we.BASE:case we.BASEFONT:case we.BGSOUND:case we.LINK:case we.META:{_._appendElement(F,gt.HTML),F.ackSelfClosing=!0;break}case we.TITLE:{_._switchToTextParsing(F,gr.RCDATA);break}case we.NOSCRIPT:{_.options.scriptingEnabled?_._switchToTextParsing(F,gr.RAWTEXT):(_._insertElement(F,gt.HTML),_.insertionMode=kt.IN_HEAD_NO_SCRIPT);break}case we.NOFRAMES:case we.STYLE:{_._switchToTextParsing(F,gr.RAWTEXT);break}case we.SCRIPT:{_._switchToTextParsing(F,gr.SCRIPT_DATA);break}case we.TEMPLATE:{_._insertTemplate(F),_.activeFormattingElements.insertMarker(),_.framesetOk=!1,_.insertionMode=kt.IN_TEMPLATE,_.tmplInsertionModeStack.unshift(kt.IN_TEMPLATE);break}case we.HEAD:{_._err(F,jt.misplacedStartTagForHeadElement);break}default:cs(_,F)}}function Is(_,F){switch(F.tagID){case we.HEAD:{_.openElements.pop(),_.insertionMode=kt.AFTER_HEAD;break}case we.BODY:case we.BR:case we.HTML:{cs(_,F);break}case we.TEMPLATE:{Bi(_,F);break}default:_._err(F,jt.endTagWithoutMatchingOpenElement)}}function Bi(_,F){_.openElements.tmplCount>0?(_.openElements.generateImpliedEndTagsThoroughly(),_.openElements.currentTagId!==we.TEMPLATE&&_._err(F,jt.closingOfElementWithOpenChildElements),_.openElements.popUntilTagNamePopped(we.TEMPLATE),_.activeFormattingElements.clearToLastMarker(),_.tmplInsertionModeStack.shift(),_._resetInsertionMode()):_._err(F,jt.endTagWithoutMatchingOpenElement)}function cs(_,F){_.openElements.pop(),_.insertionMode=kt.AFTER_HEAD,_._processToken(F)}function Sa(_,F){switch(F.tagID){case we.HTML:{Yi(_,F);break}case we.BASEFONT:case we.BGSOUND:case we.HEAD:case we.LINK:case we.META:case we.NOFRAMES:case we.STYLE:{lo(_,F);break}case we.NOSCRIPT:{_._err(F,jt.nestedNoscriptInHead);break}default:xo(_,F)}}function rl(_,F){switch(F.tagID){case we.NOSCRIPT:{_.openElements.pop(),_.insertionMode=kt.IN_HEAD;break}case we.BR:{xo(_,F);break}default:_._err(F,jt.endTagWithoutMatchingOpenElement)}}function xo(_,F){const Ae=F.type===zn.EOF?jt.openElementsLeftAfterEof:jt.disallowedContentInNoscriptInHead;_._err(F,Ae),_.openElements.pop(),_.insertionMode=kt.IN_HEAD,_._processToken(F)}function Oa(_,F){switch(F.tagID){case we.HTML:{Yi(_,F);break}case we.BODY:{_._insertElement(F,gt.HTML),_.framesetOk=!1,_.insertionMode=kt.IN_BODY;break}case we.FRAMESET:{_._insertElement(F,gt.HTML),_.insertionMode=kt.IN_FRAMESET;break}case we.BASE:case we.BASEFONT:case we.BGSOUND:case we.LINK:case we.META:case we.NOFRAMES:case we.SCRIPT:case we.STYLE:case we.TEMPLATE:case we.TITLE:{_._err(F,jt.abandonedHeadElementChild),_.openElements.push(_.headElement,we.HEAD),lo(_,F),_.openElements.remove(_.headElement);break}case we.HEAD:{_._err(F,jt.misplacedStartTagForHeadElement);break}default:Ga(_,F)}}function Yl(_,F){switch(F.tagID){case we.BODY:case we.HTML:case we.BR:{Ga(_,F);break}case we.TEMPLATE:{Bi(_,F);break}default:_._err(F,jt.endTagWithoutMatchingOpenElement)}}function Ga(_,F){_._insertFakeElement(At.BODY,we.BODY),_.insertionMode=kt.IN_BODY,ra(_,F)}function ra(_,F){switch(F.type){case zn.CHARACTER:{Wa(_,F);break}case zn.WHITESPACE_CHARACTER:{Us(_,F);break}case zn.COMMENT:{jr(_,F);break}case zn.START_TAG:{Yi(_,F);break}case zn.END_TAG:{po(_,F);break}case zn.EOF:{_o(_,F);break}default:}}function Us(_,F){_._reconstructActiveFormattingElements(),_._insertCharacters(F)}function Wa(_,F){_._reconstructActiveFormattingElements(),_._insertCharacters(F),_.framesetOk=!1}function pu(_,F){_.openElements.tmplCount===0&&_.treeAdapter.adoptAttributes(_.openElements.items[0],F.attrs)}function $l(_,F){const Ae=_.openElements.tryPeekProperlyNestedBodyElement();Ae&&_.openElements.tmplCount===0&&(_.framesetOk=!1,_.treeAdapter.adoptAttributes(Ae,F.attrs))}function Bo(_,F){const Ae=_.openElements.tryPeekProperlyNestedBodyElement();_.framesetOk&&Ae&&(_.treeAdapter.detachNode(Ae),_.openElements.popAllUpToHtmlElement(),_._insertElement(F,gt.HTML),_.insertionMode=kt.IN_FRAMESET)}function Xl(_,F){_.openElements.hasInButtonScope(we.P)&&_._closePElement(),_._insertElement(F,gt.HTML)}function gu(_,F){_.openElements.hasInButtonScope(we.P)&&_._closePElement(),pr.has(_.openElements.currentTagId)&&_.openElements.pop(),_._insertElement(F,gt.HTML)}function Ol(_,F){_.openElements.hasInButtonScope(we.P)&&_._closePElement(),_._insertElement(F,gt.HTML),_.skipNextNewLine=!0,_.framesetOk=!1}function Ll(_,F){const Ae=_.openElements.tmplCount>0;(!_.formElement||Ae)&&(_.openElements.hasInButtonScope(we.P)&&_._closePElement(),_._insertElement(F,gt.HTML),Ae||(_.formElement=_.openElements.current))}function Ss(_,F){_.framesetOk=!1;const Ae=F.tagID;for(let lt=_.openElements.stackTop;lt>=0;lt--){const Wt=_.openElements.tagIDs[lt];if(Ae===we.LI&&Wt===we.LI||(Ae===we.DD||Ae===we.DT)&&(Wt===we.DD||Wt===we.DT)){_.openElements.generateImpliedEndTagsWithExclusion(Wt),_.openElements.popUntilTagNamePopped(Wt);break}if(Wt!==we.ADDRESS&&Wt!==we.DIV&&Wt!==we.P&&_._isSpecialElement(_.openElements.items[lt],Wt))break}_.openElements.hasInButtonScope(we.P)&&_._closePElement(),_._insertElement(F,gt.HTML)}function As(_,F){_.openElements.hasInButtonScope(we.P)&&_._closePElement(),_._insertElement(F,gt.HTML),_.tokenizer.state=gr.PLAINTEXT}function $o(_,F){_.openElements.hasInScope(we.BUTTON)&&(_.openElements.generateImpliedEndTags(),_.openElements.popUntilTagNamePopped(we.BUTTON)),_._reconstructActiveFormattingElements(),_._insertElement(F,gt.HTML),_.framesetOk=!1}function qo(_,F){const Ae=_.activeFormattingElements.getElementEntryInScopeWithTagName(At.A);Ae&&(Yr(_,F),_.openElements.remove(Ae.element),_.activeFormattingElements.removeEntry(Ae)),_._reconstructActiveFormattingElements(),_._insertElement(F,gt.HTML),_.activeFormattingElements.pushElement(_.openElements.current,F)}function no(_,F){_._reconstructActiveFormattingElements(),_._insertElement(F,gt.HTML),_.activeFormattingElements.pushElement(_.openElements.current,F)}function ci(_,F){_._reconstructActiveFormattingElements(),_.openElements.hasInScope(we.NOBR)&&(Yr(_,F),_._reconstructActiveFormattingElements()),_._insertElement(F,gt.HTML),_.activeFormattingElements.pushElement(_.openElements.current,F)}function _i(_,F){_._reconstructActiveFormattingElements(),_._insertElement(F,gt.HTML),_.activeFormattingElements.insertMarker(),_.framesetOk=!1}function es(_,F){_.treeAdapter.getDocumentMode(_.document)!==Hn.QUIRKS&&_.openElements.hasInButtonScope(we.P)&&_._closePElement(),_._insertElement(F,gt.HTML),_.framesetOk=!1,_.insertionMode=kt.IN_TABLE}function Lo(_,F){_._reconstructActiveFormattingElements(),_._appendElement(F,gt.HTML),_.framesetOk=!1,F.ackSelfClosing=!0}function jo(_){const F=$n(_,gn.TYPE);return F!=null&&F.toLowerCase()===ii}function Zn(_,F){_._reconstructActiveFormattingElements(),_._appendElement(F,gt.HTML),jo(F)||(_.framesetOk=!1),F.ackSelfClosing=!0}function ia(_,F){_._appendElement(F,gt.HTML),F.ackSelfClosing=!0}function ht(_,F){_.openElements.hasInButtonScope(we.P)&&_._closePElement(),_._appendElement(F,gt.HTML),_.framesetOk=!1,F.ackSelfClosing=!0}function qt(_,F){F.tagName=At.IMG,F.tagID=we.IMG,Lo(_,F)}function il(_,F){_._insertElement(F,gt.HTML),_.skipNextNewLine=!0,_.tokenizer.state=gr.RCDATA,_.originalInsertionMode=_.insertionMode,_.framesetOk=!1,_.insertionMode=kt.TEXT}function Zl(_,F){_.openElements.hasInButtonScope(we.P)&&_._closePElement(),_._reconstructActiveFormattingElements(),_.framesetOk=!1,_._switchToTextParsing(F,gr.RAWTEXT)}function Xo(_,F){_.framesetOk=!1,_._switchToTextParsing(F,gr.RAWTEXT)}function Ys(_,F){_._switchToTextParsing(F,gr.RAWTEXT)}function vl(_,F){_._reconstructActiveFormattingElements(),_._insertElement(F,gt.HTML),_.framesetOk=!1,_.insertionMode=_.insertionMode===kt.IN_TABLE||_.insertionMode===kt.IN_CAPTION||_.insertionMode===kt.IN_TABLE_BODY||_.insertionMode===kt.IN_ROW||_.insertionMode===kt.IN_CELL?kt.IN_SELECT_IN_TABLE:kt.IN_SELECT}function Ml(_,F){_.openElements.currentTagId===we.OPTION&&_.openElements.pop(),_._reconstructActiveFormattingElements(),_._insertElement(F,gt.HTML)}function Jl(_,F){_.openElements.hasInScope(we.RUBY)&&_.openElements.generateImpliedEndTags(),_._insertElement(F,gt.HTML)}function To(_,F){_.openElements.hasInScope(we.RUBY)&&_.openElements.generateImpliedEndTagsWithExclusion(we.RTC),_._insertElement(F,gt.HTML)}function Mr(_,F){_._reconstructActiveFormattingElements(),Wi(F),go(F),F.selfClosing?_._appendElement(F,gt.MATHML):_._insertElement(F,gt.MATHML),F.ackSelfClosing=!0}function ps(_,F){_._reconstructActiveFormattingElements(),to(F),go(F),F.selfClosing?_._appendElement(F,gt.SVG):_._insertElement(F,gt.SVG),F.ackSelfClosing=!0}function Ps(_,F){_._reconstructActiveFormattingElements(),_._insertElement(F,gt.HTML)}function Yi(_,F){switch(F.tagID){case we.I:case we.S:case we.B:case we.U:case we.EM:case we.TT:case we.BIG:case we.CODE:case we.FONT:case we.SMALL:case we.STRIKE:case we.STRONG:{no(_,F);break}case we.A:{qo(_,F);break}case we.H1:case we.H2:case we.H3:case we.H4:case we.H5:case we.H6:{gu(_,F);break}case we.P:case we.DL:case we.OL:case we.UL:case we.DIV:case we.DIR:case we.NAV:case we.MAIN:case we.MENU:case we.ASIDE:case we.CENTER:case we.FIGURE:case we.FOOTER:case we.HEADER:case we.HGROUP:case we.DIALOG:case we.DETAILS:case we.ADDRESS:case we.ARTICLE:case we.SEARCH:case we.SECTION:case we.SUMMARY:case we.FIELDSET:case we.BLOCKQUOTE:case we.FIGCAPTION:{Xl(_,F);break}case we.LI:case we.DD:case we.DT:{Ss(_,F);break}case we.BR:case we.IMG:case we.WBR:case we.AREA:case we.EMBED:case we.KEYGEN:{Lo(_,F);break}case we.HR:{ht(_,F);break}case we.RB:case we.RTC:{Jl(_,F);break}case we.RT:case we.RP:{To(_,F);break}case we.PRE:case we.LISTING:{Ol(_,F);break}case we.XMP:{Zl(_,F);break}case we.SVG:{ps(_,F);break}case we.HTML:{pu(_,F);break}case we.BASE:case we.LINK:case we.META:case we.STYLE:case we.TITLE:case we.SCRIPT:case we.BGSOUND:case we.BASEFONT:case we.TEMPLATE:{lo(_,F);break}case we.BODY:{$l(_,F);break}case we.FORM:{Ll(_,F);break}case we.NOBR:{ci(_,F);break}case we.MATH:{Mr(_,F);break}case we.TABLE:{es(_,F);break}case we.INPUT:{Zn(_,F);break}case we.PARAM:case we.TRACK:case we.SOURCE:{ia(_,F);break}case we.IMAGE:{qt(_,F);break}case we.BUTTON:{$o(_,F);break}case we.APPLET:case we.OBJECT:case we.MARQUEE:{_i(_,F);break}case we.IFRAME:{Xo(_,F);break}case we.SELECT:{vl(_,F);break}case we.OPTION:case we.OPTGROUP:{Ml(_,F);break}case we.NOEMBED:case we.NOFRAMES:{Ys(_,F);break}case we.FRAMESET:{Bo(_,F);break}case we.TEXTAREA:{il(_,F);break}case we.NOSCRIPT:{_.options.scriptingEnabled?Ys(_,F):Ps(_,F);break}case we.PLAINTEXT:{As(_,F);break}case we.COL:case we.TH:case we.TD:case we.TR:case we.HEAD:case we.FRAME:case we.TBODY:case we.TFOOT:case we.THEAD:case we.CAPTION:case we.COLGROUP:break;default:Ps(_,F)}}function xi(_,F){if(_.openElements.hasInScope(we.BODY)&&(_.insertionMode=kt.AFTER_BODY,_.options.sourceCodeLocationInfo)){const Ae=_.openElements.tryPeekProperlyNestedBodyElement();Ae&&_._setEndLocation(Ae,F)}}function Ao(_,F){_.openElements.hasInScope(we.BODY)&&(_.insertionMode=kt.AFTER_BODY,ks(_,F))}function Hs(_,F){const Ae=F.tagID;_.openElements.hasInScope(Ae)&&(_.openElements.generateImpliedEndTags(),_.openElements.popUntilTagNamePopped(Ae))}function mo(_){const F=_.openElements.tmplCount>0,{formElement:Ae}=_;F||(_.formElement=null),(Ae||F)&&_.openElements.hasInScope(we.FORM)&&(_.openElements.generateImpliedEndTags(),F?_.openElements.popUntilTagNamePopped(we.FORM):Ae&&_.openElements.remove(Ae))}function $s(_){_.openElements.hasInButtonScope(we.P)||_._insertFakeElement(At.P,we.P),_._closePElement()}function is(_){_.openElements.hasInListItemScope(we.LI)&&(_.openElements.generateImpliedEndTagsWithExclusion(we.LI),_.openElements.popUntilTagNamePopped(we.LI))}function yl(_,F){const Ae=F.tagID;_.openElements.hasInScope(Ae)&&(_.openElements.generateImpliedEndTagsWithExclusion(Ae),_.openElements.popUntilTagNamePopped(Ae))}function Xi(_){_.openElements.hasNumberedHeaderInScope()&&(_.openElements.generateImpliedEndTags(),_.openElements.popUntilNumberedHeaderPopped())}function gs(_,F){const Ae=F.tagID;_.openElements.hasInScope(Ae)&&(_.openElements.generateImpliedEndTags(),_.openElements.popUntilTagNamePopped(Ae),_.activeFormattingElements.clearToLastMarker())}function ji(_){_._reconstructActiveFormattingElements(),_._insertFakeElement(At.BR,we.BR),_.openElements.pop(),_.framesetOk=!1}function uo(_,F){const Ae=F.tagName,lt=F.tagID;for(let Wt=_.openElements.stackTop;Wt>0;Wt--){const Tn=_.openElements.items[Wt],Gn=_.openElements.tagIDs[Wt];if(lt===Gn&&(lt!==we.UNKNOWN||_.treeAdapter.getTagName(Tn)===Ae)){_.openElements.generateImpliedEndTagsWithExclusion(lt),_.openElements.stackTop>=Wt&&_.openElements.shortenToLength(Wt);break}if(_._isSpecialElement(Tn,Gn))break}}function po(_,F){switch(F.tagID){case we.A:case we.B:case we.I:case we.S:case we.U:case we.EM:case we.TT:case we.BIG:case we.CODE:case we.FONT:case we.NOBR:case we.SMALL:case we.STRIKE:case we.STRONG:{Yr(_,F);break}case we.P:{$s(_);break}case we.DL:case we.UL:case we.OL:case we.DIR:case we.DIV:case we.NAV:case we.PRE:case we.MAIN:case we.MENU:case we.ASIDE:case we.BUTTON:case we.CENTER:case we.FIGURE:case we.FOOTER:case we.HEADER:case we.HGROUP:case we.DIALOG:case we.ADDRESS:case we.ARTICLE:case we.DETAILS:case we.SEARCH:case we.SECTION:case we.SUMMARY:case we.LISTING:case we.FIELDSET:case we.BLOCKQUOTE:case we.FIGCAPTION:{Hs(_,F);break}case we.LI:{is(_);break}case we.DD:case we.DT:{yl(_,F);break}case we.H1:case we.H2:case we.H3:case we.H4:case we.H5:case we.H6:{Xi(_);break}case we.BR:{ji(_);break}case we.BODY:{xi(_,F);break}case we.HTML:{Ao(_,F);break}case we.FORM:{mo(_);break}case we.APPLET:case we.OBJECT:case we.MARQUEE:{gs(_,F);break}case we.TEMPLATE:{Bi(_,F);break}default:uo(_,F)}}function _o(_,F){_.tmplInsertionModeStack.length>0?xs(_,F):Gr(_,F)}function Ai(_,F){var Ae;F.tagID===we.SCRIPT&&((Ae=_.scriptHandler)===null||Ae===void 0||Ae.call(_,_.openElements.current)),_.openElements.pop(),_.insertionMode=_.originalInsertionMode}function Ql(_,F){_._err(F,jt.eofInElementThatCanContainOnlyText),_.openElements.pop(),_.insertionMode=_.originalInsertionMode,_.onEof(F)}function Ar(_,F){if(Vi.has(_.openElements.currentTagId))switch(_.pendingCharacterTokens.length=0,_.hasNonWhitespacePendingCharacterToken=!1,_.originalInsertionMode=_.insertionMode,_.insertionMode=kt.IN_TABLE_TEXT,F.type){case zn.CHARACTER:{Da(_,F);break}case zn.WHITESPACE_CHARACTER:{ql(_,F);break}}else Rs(_,F)}function oc(_,F){_.openElements.clearBackToTableContext(),_.activeFormattingElements.insertMarker(),_._insertElement(F,gt.HTML),_.insertionMode=kt.IN_CAPTION}function Fi(_,F){_.openElements.clearBackToTableContext(),_._insertElement(F,gt.HTML),_.insertionMode=kt.IN_COLUMN_GROUP}function ju(_,F){_.openElements.clearBackToTableContext(),_._insertFakeElement(At.COLGROUP,we.COLGROUP),_.insertionMode=kt.IN_COLUMN_GROUP,ko(_,F)}function Dl(_,F){_.openElements.clearBackToTableContext(),_._insertElement(F,gt.HTML),_.insertionMode=kt.IN_TABLE_BODY}function ol(_,F){_.openElements.clearBackToTableContext(),_._insertFakeElement(At.TBODY,we.TBODY),_.insertionMode=kt.IN_TABLE_BODY,xa(_,F)}function Uu(_,F){_.openElements.hasInTableScope(we.TABLE)&&(_.openElements.popUntilTagNamePopped(we.TABLE),_._resetInsertionMode(),_._processStartTag(F))}function Nu(_,F){jo(F)?_._appendElement(F,gt.HTML):Rs(_,F),F.ackSelfClosing=!0}function La(_,F){!_.formElement&&_.openElements.tmplCount===0&&(_._insertElement(F,gt.HTML),_.formElement=_.openElements.current,_.openElements.pop())}function Ma(_,F){switch(F.tagID){case we.TD:case we.TH:case we.TR:{ol(_,F);break}case we.STYLE:case we.SCRIPT:case we.TEMPLATE:{lo(_,F);break}case we.COL:{ju(_,F);break}case we.FORM:{La(_,F);break}case we.TABLE:{Uu(_,F);break}case we.TBODY:case we.TFOOT:case we.THEAD:{Dl(_,F);break}case we.INPUT:{Nu(_,F);break}case we.CAPTION:{oc(_,F);break}case we.COLGROUP:{Fi(_,F);break}default:Rs(_,F)}}function Ui(_,F){switch(F.tagID){case we.TABLE:{_.openElements.hasInTableScope(we.TABLE)&&(_.openElements.popUntilTagNamePopped(we.TABLE),_._resetInsertionMode());break}case we.TEMPLATE:{Bi(_,F);break}case we.BODY:case we.CAPTION:case we.COL:case we.COLGROUP:case we.HTML:case we.TBODY:case we.TD:case we.TFOOT:case we.TH:case we.THEAD:case we.TR:break;default:Rs(_,F)}}function Rs(_,F){const Ae=_.fosterParentingEnabled;_.fosterParentingEnabled=!0,ra(_,F),_.fosterParentingEnabled=Ae}function ql(_,F){_.pendingCharacterTokens.push(F)}function Da(_,F){_.pendingCharacterTokens.push(F),_.hasNonWhitespacePendingCharacterToken=!0}function sl(_,F){let Ae=0;if(_.hasNonWhitespacePendingCharacterToken)for(;Ae<_.pendingCharacterTokens.length;Ae++)Rs(_,_.pendingCharacterTokens[Ae]);else for(;Ae<_.pendingCharacterTokens.length;Ae++)_._insertCharacters(_.pendingCharacterTokens[Ae]);_.insertionMode=_.originalInsertionMode,_._processToken(F)}const Va=new Set([we.CAPTION,we.COL,we.COLGROUP,we.TBODY,we.TD,we.TFOOT,we.TH,we.THEAD,we.TR]);function ki(_,F){const Ae=F.tagID;Va.has(Ae)?_.openElements.hasInTableScope(we.CAPTION)&&(_.openElements.generateImpliedEndTags(),_.openElements.popUntilTagNamePopped(we.CAPTION),_.activeFormattingElements.clearToLastMarker(),_.insertionMode=kt.IN_TABLE,Ma(_,F)):Yi(_,F)}function Zi(_,F){const Ae=F.tagID;switch(Ae){case we.CAPTION:case we.TABLE:{_.openElements.hasInTableScope(we.CAPTION)&&(_.openElements.generateImpliedEndTags(),_.openElements.popUntilTagNamePopped(we.CAPTION),_.activeFormattingElements.clearToLastMarker(),_.insertionMode=kt.IN_TABLE,Ae===we.TABLE&&Ui(_,F));break}case we.BODY:case we.COL:case we.COLGROUP:case we.HTML:case we.TBODY:case we.TD:case we.TFOOT:case we.TH:case we.THEAD:case we.TR:break;default:po(_,F)}}function ko(_,F){switch(F.tagID){case we.HTML:{Yi(_,F);break}case we.COL:{_._appendElement(F,gt.HTML),F.ackSelfClosing=!0;break}case we.TEMPLATE:{lo(_,F);break}default:os(_,F)}}function ms(_,F){switch(F.tagID){case we.COLGROUP:{_.openElements.currentTagId===we.COLGROUP&&(_.openElements.pop(),_.insertionMode=kt.IN_TABLE);break}case we.TEMPLATE:{Bi(_,F);break}case we.COL:break;default:os(_,F)}}function os(_,F){_.openElements.currentTagId===we.COLGROUP&&(_.openElements.pop(),_.insertionMode=kt.IN_TABLE,_._processToken(F))}function xa(_,F){switch(F.tagID){case we.TR:{_.openElements.clearBackToTableBodyContext(),_._insertElement(F,gt.HTML),_.insertionMode=kt.IN_ROW;break}case we.TH:case we.TD:{_.openElements.clearBackToTableBodyContext(),_._insertFakeElement(At.TR,we.TR),_.insertionMode=kt.IN_ROW,Ea(_,F);break}case we.CAPTION:case we.COL:case we.COLGROUP:case we.TBODY:case we.TFOOT:case we.THEAD:{_.openElements.hasTableBodyContextInTableScope()&&(_.openElements.clearBackToTableBodyContext(),_.openElements.pop(),_.insertionMode=kt.IN_TABLE,Ma(_,F));break}default:Ma(_,F)}}function wa(_,F){const Ae=F.tagID;switch(F.tagID){case we.TBODY:case we.TFOOT:case we.THEAD:{_.openElements.hasInTableScope(Ae)&&(_.openElements.clearBackToTableBodyContext(),_.openElements.pop(),_.insertionMode=kt.IN_TABLE);break}case we.TABLE:{_.openElements.hasTableBodyContextInTableScope()&&(_.openElements.clearBackToTableBodyContext(),_.openElements.pop(),_.insertionMode=kt.IN_TABLE,Ui(_,F));break}case we.BODY:case we.CAPTION:case we.COL:case we.COLGROUP:case we.HTML:case we.TD:case we.TH:case we.TR:break;default:Ui(_,F)}}function Ea(_,F){switch(F.tagID){case we.TH:case we.TD:{_.openElements.clearBackToTableRowContext(),_._insertElement(F,gt.HTML),_.insertionMode=kt.IN_CELL,_.activeFormattingElements.insertMarker();break}case we.CAPTION:case we.COL:case we.COLGROUP:case we.TBODY:case we.TFOOT:case we.THEAD:case we.TR:{_.openElements.hasInTableScope(we.TR)&&(_.openElements.clearBackToTableRowContext(),_.openElements.pop(),_.insertionMode=kt.IN_TABLE_BODY,xa(_,F));break}default:Ma(_,F)}}function oa(_,F){switch(F.tagID){case we.TR:{_.openElements.hasInTableScope(we.TR)&&(_.openElements.clearBackToTableRowContext(),_.openElements.pop(),_.insertionMode=kt.IN_TABLE_BODY);break}case we.TABLE:{_.openElements.hasInTableScope(we.TR)&&(_.openElements.clearBackToTableRowContext(),_.openElements.pop(),_.insertionMode=kt.IN_TABLE_BODY,wa(_,F));break}case we.TBODY:case we.TFOOT:case we.THEAD:{(_.openElements.hasInTableScope(F.tagID)||_.openElements.hasInTableScope(we.TR))&&(_.openElements.clearBackToTableRowContext(),_.openElements.pop(),_.insertionMode=kt.IN_TABLE_BODY,wa(_,F));break}case we.BODY:case we.CAPTION:case we.COL:case we.COLGROUP:case we.HTML:case we.TD:case we.TH:break;default:Ui(_,F)}}function Ka(_,F){const Ae=F.tagID;Va.has(Ae)?(_.openElements.hasInTableScope(we.TD)||_.openElements.hasInTableScope(we.TH))&&(_._closeTableCell(),Ea(_,F)):Yi(_,F)}function Sc(_,F){const Ae=F.tagID;switch(Ae){case we.TD:case we.TH:{_.openElements.hasInTableScope(Ae)&&(_.openElements.generateImpliedEndTags(),_.openElements.popUntilTagNamePopped(Ae),_.activeFormattingElements.clearToLastMarker(),_.insertionMode=kt.IN_ROW);break}case we.TABLE:case we.TBODY:case we.TFOOT:case we.THEAD:case we.TR:{_.openElements.hasInTableScope(Ae)&&(_._closeTableCell(),oa(_,F));break}case we.BODY:case we.CAPTION:case we.COL:case we.COLGROUP:case we.HTML:break;default:po(_,F)}}function Th(_,F){switch(F.tagID){case we.HTML:{Yi(_,F);break}case we.OPTION:{_.openElements.currentTagId===we.OPTION&&_.openElements.pop(),_._insertElement(F,gt.HTML);break}case we.OPTGROUP:{_.openElements.currentTagId===we.OPTION&&_.openElements.pop(),_.openElements.currentTagId===we.OPTGROUP&&_.openElements.pop(),_._insertElement(F,gt.HTML);break}case we.HR:{_.openElements.currentTagId===we.OPTION&&_.openElements.pop(),_.openElements.currentTagId===we.OPTGROUP&&_.openElements.pop(),_._appendElement(F,gt.HTML),F.ackSelfClosing=!0;break}case we.INPUT:case we.KEYGEN:case we.TEXTAREA:case we.SELECT:{_.openElements.hasInSelectScope(we.SELECT)&&(_.openElements.popUntilTagNamePopped(we.SELECT),_._resetInsertionMode(),F.tagID!==we.SELECT&&_._processStartTag(F));break}case we.SCRIPT:case we.TEMPLATE:{lo(_,F);break}default:}}function _h(_,F){switch(F.tagID){case we.OPTGROUP:{_.openElements.stackTop>0&&_.openElements.currentTagId===we.OPTION&&_.openElements.tagIDs[_.openElements.stackTop-1]===we.OPTGROUP&&_.openElements.pop(),_.openElements.currentTagId===we.OPTGROUP&&_.openElements.pop();break}case we.OPTION:{_.openElements.currentTagId===we.OPTION&&_.openElements.pop();break}case we.SELECT:{_.openElements.hasInSelectScope(we.SELECT)&&(_.openElements.popUntilTagNamePopped(we.SELECT),_._resetInsertionMode());break}case we.TEMPLATE:{Bi(_,F);break}default:}}function Ah(_,F){const Ae=F.tagID;Ae===we.CAPTION||Ae===we.TABLE||Ae===we.TBODY||Ae===we.TFOOT||Ae===we.THEAD||Ae===we.TR||Ae===we.TD||Ae===we.TH?(_.openElements.popUntilTagNamePopped(we.SELECT),_._resetInsertionMode(),_._processStartTag(F)):Th(_,F)}function ts(_,F){const Ae=F.tagID;Ae===we.CAPTION||Ae===we.TABLE||Ae===we.TBODY||Ae===we.TFOOT||Ae===we.THEAD||Ae===we.TR||Ae===we.TD||Ae===we.TH?_.openElements.hasInTableScope(Ae)&&(_.openElements.popUntilTagNamePopped(we.SELECT),_._resetInsertionMode(),_.onEndTag(F)):_h(_,F)}function eu(_,F){switch(F.tagID){case we.BASE:case we.BASEFONT:case we.BGSOUND:case we.LINK:case we.META:case we.NOFRAMES:case we.SCRIPT:case we.STYLE:case we.TEMPLATE:case we.TITLE:{lo(_,F);break}case we.CAPTION:case we.COLGROUP:case we.TBODY:case we.TFOOT:case we.THEAD:{_.tmplInsertionModeStack[0]=kt.IN_TABLE,_.insertionMode=kt.IN_TABLE,Ma(_,F);break}case we.COL:{_.tmplInsertionModeStack[0]=kt.IN_COLUMN_GROUP,_.insertionMode=kt.IN_COLUMN_GROUP,ko(_,F);break}case we.TR:{_.tmplInsertionModeStack[0]=kt.IN_TABLE_BODY,_.insertionMode=kt.IN_TABLE_BODY,xa(_,F);break}case we.TD:case we.TH:{_.tmplInsertionModeStack[0]=kt.IN_ROW,_.insertionMode=kt.IN_ROW,Ea(_,F);break}default:_.tmplInsertionModeStack[0]=kt.IN_BODY,_.insertionMode=kt.IN_BODY,Yi(_,F)}}function ho(_,F){F.tagID===we.TEMPLATE&&Bi(_,F)}function xs(_,F){_.openElements.tmplCount>0?(_.openElements.popUntilTagNamePopped(we.TEMPLATE),_.activeFormattingElements.clearToLastMarker(),_.tmplInsertionModeStack.shift(),_._resetInsertionMode(),_.onEof(F)):Gr(_,F)}function Os(_,F){F.tagID===we.HTML?Yi(_,F):mu(_,F)}function ks(_,F){var Ae;if(F.tagID===we.HTML){if(_.fragmentContext||(_.insertionMode=kt.AFTER_AFTER_BODY),_.options.sourceCodeLocationInfo&&_.openElements.tagIDs[0]===we.HTML){_._setEndLocation(_.openElements.items[0],F);const lt=_.openElements.items[1];lt&&!(!((Ae=_.treeAdapter.getNodeSourceCodeLocation(lt))===null||Ae===void 0)&&Ae.endTag)&&_._setEndLocation(lt,F)}}else mu(_,F)}function mu(_,F){_.insertionMode=kt.IN_BODY,ra(_,F)}function Fs(_,F){switch(F.tagID){case we.HTML:{Yi(_,F);break}case we.FRAMESET:{_._insertElement(F,gt.HTML);break}case we.FRAME:{_._appendElement(F,gt.HTML),F.ackSelfClosing=!0;break}case we.NOFRAMES:{lo(_,F);break}default:}}function tu(_,F){F.tagID===we.FRAMESET&&!_.openElements.isRootHtmlElementCurrent()&&(_.openElements.pop(),!_.fragmentContext&&_.openElements.currentTagId!==we.FRAMESET&&(_.insertionMode=kt.AFTER_FRAMESET))}function xc(_,F){switch(F.tagID){case we.HTML:{Yi(_,F);break}case we.NOFRAMES:{lo(_,F);break}default:}}function wc(_,F){F.tagID===we.HTML&&(_.insertionMode=kt.AFTER_AFTER_FRAMESET)}function sa(_,F){F.tagID===we.HTML?Yi(_,F):te(_,F)}function te(_,F){_.insertionMode=kt.IN_BODY,ra(_,F)}function Se(_,F){switch(F.tagID){case we.HTML:{Yi(_,F);break}case we.NOFRAMES:{lo(_,F);break}default:}}function ke(_,F){F.chars=Rt,_._insertCharacters(F)}function je(_,F){_._insertCharacters(F),_.framesetOk=!1}function Je(_){for(;_.treeAdapter.getNamespaceURI(_.openElements.current)!==gt.HTML&&!_._isIntegrationPoint(_.openElements.currentTagId,_.openElements.current);)_.openElements.pop()}function Qe(_,F){if(hi(F))Je(_),_._startTagOutsideForeignContent(F);else{const Ae=_._getAdjustedCurrentElement(),lt=_.treeAdapter.getNamespaceURI(Ae);lt===gt.MATHML?Wi(F):lt===gt.SVG&&(xt(F),to(F)),go(F),F.selfClosing?_._appendElement(F,lt):_._insertElement(F,lt),F.ackSelfClosing=!0}}function ct(_,F){if(F.tagID===we.P||F.tagID===we.BR){Je(_),_._endTagOutsideForeignContent(F);return}for(let Ae=_.openElements.stackTop;Ae>0;Ae--){const lt=_.openElements.items[Ae];if(_.treeAdapter.getNamespaceURI(lt)===gt.HTML){_._endTagOutsideForeignContent(F);break}const Wt=_.treeAdapter.getTagName(lt);if(Wt.toLowerCase()===F.tagName){F.tagName=Wt,_.openElements.shortenToLength(Ae);break}}}const mt=/["&'<>$\x80-\uFFFF]/g,zt=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),Yt=String.prototype.codePointAt!=null?(_,F)=>_.codePointAt(F):(_,F)=>(_.charCodeAt(F)&64512)===55296?(_.charCodeAt(F)-55296)*1024+_.charCodeAt(F+1)-56320+65536:_.charCodeAt(F);function Lt(_){let F="",Ae=0,lt;for(;(lt=mt.exec(_))!==null;){const Wt=lt.index,Tn=_.charCodeAt(Wt),Gn=zt.get(Tn);Gn!==void 0?(F+=_.substring(Ae,Wt)+Gn,Ae=Wt+1):(F+=`${_.substring(Ae,Wt)}&#x${Yt(_,Wt).toString(16)};`,Ae=mt.lastIndex+=+((Tn&64512)===55296))}return F+_.substr(Ae)}const ln=null;function on(_,F){return function(lt){let Wt,Tn=0,Gn="";for(;Wt=_.exec(lt);)Tn!==Wt.index&&(Gn+=lt.substring(Tn,Wt.index)),Gn+=F.get(Wt[0].charCodeAt(0)),Tn=Wt.index+1;return Gn+lt.substring(Tn)}}const Pt=on(/[&<>'"]/g,zt),Ur=on(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),fi=on(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),Ni=new Set([At.AREA,At.BASE,At.BASEFONT,At.BGSOUND,At.BR,At.COL,At.EMBED,At.FRAME,At.HR,At.IMG,At.INPUT,At.KEYGEN,At.LINK,At.META,At.PARAM,At.SOURCE,At.TRACK,At.WBR]);function mr(_,F){return F.treeAdapter.isElementNode(_)&&F.treeAdapter.getNamespaceURI(_)===NS.HTML&&Ni.has(F.treeAdapter.getTagName(_))}const Wr={treeAdapter:sn,scriptingEnabled:!0};function ti(_,F){const Ae=eo(eo({},Wr),F);return mr(_,Ae)?"":Io(_,Ae)}function No(_,F){const Ae=eo(eo({},Wr),F);return tr(_,Ae)}function Io(_,F){let Ae="";const lt=F.treeAdapter.isElementNode(_)&&F.treeAdapter.getTagName(_)===$.TEMPLATE&&F.treeAdapter.getNamespaceURI(_)===NS.HTML?F.treeAdapter.getTemplateContent(_):_,Wt=F.treeAdapter.getChildNodes(lt);if(Wt)for(const Tn of Wt)Ae+=tr(Tn,F);return Ae}function tr(_,F){return F.treeAdapter.isElementNode(_)?Mo(_,F):F.treeAdapter.isTextNode(_)?wo(_,F):F.treeAdapter.isCommentNode(_)?Dr(_,F):F.treeAdapter.isDocumentTypeNode(_)?aa(_,F):""}function Mo(_,F){const Ae=F.treeAdapter.getTagName(_);return`<${Ae}${ss(_,F)}>${mr(_,F)?"":`${Io(_,F)}</${Ae}>`}`}function ss(_,{treeAdapter:F}){let Ae="";for(const lt of F.getAttrList(_)){if(Ae+=" ",lt.namespace)switch(lt.namespace){case NS.XML:{Ae+=`xml:${lt.name}`;break}case NS.XMLNS:{lt.name!=="xmlns"&&(Ae+="xmlns:"),Ae+=lt.name;break}case NS.XLINK:{Ae+=`xlink:${lt.name}`;break}default:Ae+=`${lt.prefix}:${lt.name}`}else Ae+=lt.name;Ae+=`="${escapeAttribute(lt.value)}"`}return Ae}function wo(_,F){const{treeAdapter:Ae}=F,lt=Ae.getTextNodeContent(_),Wt=Ae.getParentNode(_),Tn=Wt&&Ae.isElementNode(Wt)&&Ae.getTagName(Wt);return Tn&&Ae.getNamespaceURI(Wt)===NS.HTML&&hasUnescapedText(Tn,F.scriptingEnabled)?lt:escapeText(lt)}function Dr(_,{treeAdapter:F}){return`<!--${F.getCommentNodeContent(_)}-->`}function aa(_,{treeAdapter:F}){return`<!DOCTYPE ${F.getDocumentTypeNodeName(_)}>`}function Go(_,F){return Parser.parse(_,F)}function Ti(_,F,Ae){typeof _=="string"&&(Ae=F,F=_,_=null);const lt=Parser.getFragmentParser(_,Ae);return lt.tokenizer.write(F,!0),lt.getFragment()}var wi=S(17970),so=S(10528);const ns=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Bs=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Xs={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Pa(_,F){const Ae=Ec(_),lt=re("type",{handlers:{root:la,element:Ya,text:rn,comment:bl,doctype:Zs,raw:Ls},unknown:rs}),Wt={parser:Ae?new ds(Xs):ds.getFragmentParser(void 0,Xs),handle($r){lt($r,Wt)},stitches:!1,options:F||{}};lt(_,Wt),$a(Wt,(0,wi.Pk)());const Tn=Ae?Wt.parser.document:Wt.parser.getFragment(),Gn=c(Tn,{file:Wt.options.file});return Wt.stitches&&(0,so.Vn)(Gn,"comment",function($r,Ei,xn){const ur=$r;if(ur.value.stitch&&xn&&Ei!==void 0){const Ii=xn.children;return Ii[Ei]=ur.value.stitch,Ei}}),Gn.type==="root"&&Gn.children.length===1&&Gn.children[0].type===_.type?Gn.children[0]:Gn}function Qt(_,F){let Ae=-1;if(_)for(;++Ae<_.length;)F.handle(_[Ae])}function la(_,F){Qt(_.children,F)}function Ya(_,F){Pl(_,F),Qt(_.children,F),nu(_,F)}function rn(_,F){F.parser.tokenizer.state>4&&(F.parser.tokenizer.state=0);const Ae={type:zn.CHARACTER,chars:_.value,location:ll(_)};$a(F,(0,wi.Pk)(_)),F.parser.currentToken=Ae,F.parser._processToken(F.parser.currentToken)}function Zs(_,F){const Ae={type:zn.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ll(_)};$a(F,(0,wi.Pk)(_)),F.parser.currentToken=Ae,F.parser._processToken(F.parser.currentToken)}function al(_,F){F.stitches=!0;const Ae=vu(_);if("children"in _&&"children"in Ae){const lt=Pa({type:"root",children:_.children},F.options);Ae.children=lt.children}bl({type:"comment",value:{stitch:Ae}},F)}function bl(_,F){const Ae=_.value,lt={type:zn.COMMENT,data:Ae,location:ll(_)};$a(F,(0,wi.Pk)(_)),F.parser.currentToken=lt,F.parser._processToken(F.parser.currentToken)}function Ls(_,F){if(F.parser.tokenizer.preprocessor.html="",F.parser.tokenizer.preprocessor.pos=-1,F.parser.tokenizer.preprocessor.lastGapPos=-2,F.parser.tokenizer.preprocessor.gapStack=[],F.parser.tokenizer.preprocessor.skipNextNewLine=!1,F.parser.tokenizer.preprocessor.lastChunkWritten=!1,F.parser.tokenizer.preprocessor.endOfChunkHit=!1,F.parser.tokenizer.preprocessor.isEol=!1,zs(F,(0,wi.Pk)(_)),F.parser.tokenizer.write(F.options.tagfilter?_.value.replace(ns,"&lt;$1$2"):_.value,!1),F.parser.tokenizer._runParsingLoop(),F.parser.tokenizer.state===72||F.parser.tokenizer.state===78){F.parser.tokenizer.preprocessor.lastChunkWritten=!0;const Ae=F.parser.tokenizer._consume();F.parser.tokenizer._callState(Ae)}}function rs(_,F){const Ae=_;if(F.options.passThrough&&F.options.passThrough.includes(Ae.type))al(Ae,F);else{let lt="";throw Bs.has(Ae.type)&&(lt=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+Ae.type+"` node"+lt)}}function $a(_,F){zs(_,F);const Ae=_.parser.tokenizer.currentCharacterToken;Ae&&Ae.location&&(Ae.location.endLine=_.parser.tokenizer.preprocessor.line,Ae.location.endCol=_.parser.tokenizer.preprocessor.col+1,Ae.location.endOffset=_.parser.tokenizer.preprocessor.offset+1,_.parser.currentToken=Ae,_.parser._processToken(_.parser.currentToken)),_.parser.tokenizer.paused=!1,_.parser.tokenizer.inLoop=!1,_.parser.tokenizer.active=!1,_.parser.tokenizer.returnState=gr.DATA,_.parser.tokenizer.charRefCode=-1,_.parser.tokenizer.consumedAfterSnapshot=-1,_.parser.tokenizer.currentLocation=null,_.parser.tokenizer.currentCharacterToken=null,_.parser.tokenizer.currentToken=null,_.parser.tokenizer.currentAttr={name:"",value:""}}function zs(_,F){if(F&&F.offset!==void 0){const Ae={startLine:F.line,startCol:F.column,startOffset:F.offset,endLine:-1,endCol:-1,endOffset:-1};_.parser.tokenizer.preprocessor.lineStartPos=-F.column+1,_.parser.tokenizer.preprocessor.droppedBufferSize=F.offset,_.parser.tokenizer.preprocessor.line=F.line,_.parser.tokenizer.currentLocation=Ae}}function Pl(_,F){const Ae=_.tagName.toLowerCase();if(F.parser.tokenizer.state===gr.PLAINTEXT)return;$a(F,(0,wi.Pk)(_));const lt=F.parser.openElements.current;let Wt="namespaceURI"in lt?lt.namespaceURI:g.t.html;Wt===g.t.html&&Ae==="svg"&&(Wt=g.t.svg);const Tn=Ue(Pf(eo({},_),{children:[]}),{space:Wt===g.t.svg?"svg":"html"}),Gn={type:zn.START_TAG,tagName:Ae,tagID:wn(Ae),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in Tn?Tn.attrs:[],location:ll(_)};F.parser.currentToken=Gn,F.parser._processToken(F.parser.currentToken),F.parser.tokenizer.lastStartTagName=Ae}function nu(_,F){const Ae=_.tagName.toLowerCase();if(!F.parser.tokenizer.inForeignNode&&Ct.includes(Ae)||F.parser.tokenizer.state===gr.PLAINTEXT)return;$a(F,(0,wi.rb)(_));const lt={type:zn.END_TAG,tagName:Ae,tagID:wn(Ae),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ll(_)};F.parser.currentToken=lt,F.parser._processToken(F.parser.currentToken),Ae===F.parser.tokenizer.lastStartTagName&&(F.parser.tokenizer.state===gr.RCDATA||F.parser.tokenizer.state===gr.RAWTEXT||F.parser.tokenizer.state===gr.SCRIPT_DATA)&&(F.parser.tokenizer.state=gr.DATA)}function Ec(_){const F=_.type==="root"?_.children[0]:_;return!!(F&&(F.type==="doctype"||F.type==="element"&&F.tagName.toLowerCase()==="html"))}function ll(_){const F=(0,wi.Pk)(_)||{line:void 0,column:void 0,offset:void 0},Ae=(0,wi.rb)(_)||{line:void 0,column:void 0,offset:void 0};return{startLine:F.line,startCol:F.column,startOffset:F.offset,endLine:Ae.line,endCol:Ae.column,endOffset:Ae.offset}}function vu(_){return"children"in _?(0,Z.ZP)(Pf(eo({},_),{children:[]})):(0,Z.ZP)(_)}function Xc(_){return function(F,Ae){return Pa(F,Pf(eo({},_),{file:Ae}))}}},10787:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return y}});function B(v){if(typeof v!="string")throw new TypeError("Expected a string");return v.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Z=S(2348),s=S(10502);function C(v,c,h){const m=h||{},E=(0,s.O)(m.ignore||[]),T=A(c);let I=-1;for(;++I<T.length;)(0,Z.S4)(v,"text",R);function R(k,L){let H=-1,D;for(;++H<L.length;){const V=L[H],P=D?D.children:void 0;if(E(V,P?P.indexOf(V):void 0,D))return;D=V}if(D)return N(k,L)}function N(k,L){const H=L[L.length-1],D=T[I][0],V=T[I][1];let P=0;const G=H.children.indexOf(k);let J=!1,ee=[];D.lastIndex=0;let ae=D.exec(k.value);for(;ae;){const oe=ae.index,ue={index:ae.index,input:ae.input,stack:[...L,k]};let se=V(...ae,ue);if(typeof se=="string"&&(se=se.length>0?{type:"text",value:se}:void 0),se===!1?D.lastIndex=oe+1:(P!==oe&&ee.push({type:"text",value:k.value.slice(P,oe)}),Array.isArray(se)?ee.push(...se):se&&ee.push(se),P=oe+ae[0].length,J=!0),!D.global)break;ae=D.exec(k.value)}return J?(P<k.value.length&&ee.push({type:"text",value:k.value.slice(P)}),H.children.splice(G,1,...ee)):ee=[k],G+ee.length}}function A(v){const c=[];if(!Array.isArray(v))throw new TypeError("Expected find and replace tuple or list of tuples");const h=!v[0]||Array.isArray(v[0])?v:[v];let m=-1;for(;++m<h.length;){const E=h[m];c.push([u(E[0]),p(E[1])])}return c}function u(v){return typeof v=="string"?new RegExp(B(v),"g"):v}function p(v){return typeof v=="function"?v:function(){return v}}function b(v){C(v,[/\r?\n|\r/g,g])}function g(){return{type:"break"}}function y(){return function(v){b(v)}}},30084:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return T}});var B=S(87342);function Z(I,R){const N=String(I);let k=N.indexOf(R),L=k,H=0,D=0;if(typeof R!="string")throw new TypeError("Expected substring");for(;k!==-1;)k===L?++H>D&&(D=H):H=1,L=k+R.length,k=N.indexOf(R,L);return D}function s(){return{enter:{mathFlow:I,mathFlowFenceMeta:R,mathText:H},exit:{mathFlow:L,mathFlowFence:k,mathFlowFenceMeta:N,mathFlowValue:V,mathText:D,mathTextData:V}};function I(P){const U={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[U]}},P)}function R(){this.buffer()}function N(){const P=this.resume(),U=this.stack[this.stack.length-1];(0,B.ok)(U.type==="math"),U.meta=P}function k(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function L(P){const U=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),G=this.stack[this.stack.length-1];(0,B.ok)(G.type==="math"),this.exit(P),G.value=U;const J=G.data.hChildren[0];(0,B.ok)(J.type==="element"),(0,B.ok)(J.tagName==="code"),J.children.push({type:"text",value:U}),this.data.mathFlowInside=void 0}function H(P){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},P),this.buffer()}function D(P){const U=this.resume(),G=this.stack[this.stack.length-1];(0,B.ok)(G.type==="inlineMath"),this.exit(P),G.value=U,G.data.hChildren.push({type:"text",value:U})}function V(P){this.config.enter.data.call(this,P),this.config.exit.data.call(this,P)}}function C(I){let R=(I||{}).singleDollarTextMath;return R==null&&(R=!0),k.peek=L,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:R?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:N,inlineMath:k}};function N(H,D,V,P){const U=H.value||"",G=V.createTracker(P),J="$".repeat(Math.max(Z(U,"$")+1,2)),ee=V.enter("mathFlow");let ae=G.move(J);if(H.meta){const oe=V.enter("mathFlowMeta");ae+=G.move(V.safe(H.meta,eo({after:`
`,before:ae,encode:["$"]},G.current()))),oe()}return ae+=G.move(`
`),U&&(ae+=G.move(U+`
`)),ae+=G.move(J),ee(),ae}function k(H,D,V){let P=H.value||"",U=1;for(R||U++;new RegExp("(^|[^$])"+"\\$".repeat(U)+"([^$]|$)").test(P);)U++;const G="$".repeat(U);/[^ \r\n]/.test(P)&&(/^[ \r\n]/.test(P)&&/[ \r\n]$/.test(P)||/^\$|\$$/.test(P))&&(P=" "+P+" ");let J=-1;for(;++J<V.unsafe.length;){const ee=V.unsafe[J];if(!ee.atBreak)continue;const ae=V.compilePattern(ee);let oe;for(;oe=ae.exec(P);){let ue=oe.index;P.codePointAt(ue)===10&&P.codePointAt(ue-1)===13&&ue--,P=P.slice(0,ue)+" "+P.slice(oe.index+1)}}return G+P+G}function L(){return"$"}}var A=S(26735),u=S(80722);const p={tokenize:g,concrete:!0,name:"mathFlow"},b={tokenize:y,partial:!0};function g(I,R,N){const k=this,L=k.events[k.events.length-1],H=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0;let D=0;return V;function V(ve){return I.enter("mathFlow"),I.enter("mathFlowFence"),I.enter("mathFlowFenceSequence"),P(ve)}function P(ve){return ve===36?(I.consume(ve),D++,P):D<2?N(ve):(I.exit("mathFlowFenceSequence"),(0,A.f)(I,U,"whitespace")(ve))}function U(ve){return ve===null||(0,u.Ch)(ve)?J(ve):(I.enter("mathFlowFenceMeta"),I.enter("chunkString",{contentType:"string"}),G(ve))}function G(ve){return ve===null||(0,u.Ch)(ve)?(I.exit("chunkString"),I.exit("mathFlowFenceMeta"),J(ve)):ve===36?N(ve):(I.consume(ve),G)}function J(ve){return I.exit("mathFlowFence"),k.interrupt?R(ve):I.attempt(b,ee,se)(ve)}function ee(ve){return I.attempt({tokenize:ye,partial:!0},se,ae)(ve)}function ae(ve){return(H?(0,A.f)(I,oe,"linePrefix",H+1):oe)(ve)}function oe(ve){return ve===null?se(ve):(0,u.Ch)(ve)?I.attempt(b,ee,se)(ve):(I.enter("mathFlowValue"),ue(ve))}function ue(ve){return ve===null||(0,u.Ch)(ve)?(I.exit("mathFlowValue"),oe(ve)):(I.consume(ve),ue)}function se(ve){return I.exit("mathFlow"),R(ve)}function ye(ve,Re,le){let xe=0;return(0,A.f)(ve,pe,"linePrefix",k.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function pe(Le){return ve.enter("mathFlowFence"),ve.enter("mathFlowFenceSequence"),Me(Le)}function Me(Le){return Le===36?(xe++,ve.consume(Le),Me):xe<D?le(Le):(ve.exit("mathFlowFenceSequence"),(0,A.f)(ve,Oe,"whitespace")(Le))}function Oe(Le){return Le===null||(0,u.Ch)(Le)?(ve.exit("mathFlowFence"),Re(Le)):le(Le)}}}function y(I,R,N){const k=this;return L;function L(D){return D===null?R(D):(I.enter("lineEnding"),I.consume(D),I.exit("lineEnding"),H)}function H(D){return k.parser.lazy[k.now().line]?N(D):R(D)}}function v(I){let N=(I||{}).singleDollarTextMath;return N==null&&(N=!0),{tokenize:k,resolve:c,previous:h,name:"mathText"};function k(L,H,D){const V=this;let P=0,U,G;return J;function J(se){return L.enter("mathText"),L.enter("mathTextSequence"),ee(se)}function ee(se){return se===36?(L.consume(se),P++,ee):P<2&&!N?D(se):(L.exit("mathTextSequence"),ae(se))}function ae(se){return se===null?D(se):se===36?(G=L.enter("mathTextSequence"),U=0,ue(se)):se===32?(L.enter("space"),L.consume(se),L.exit("space"),ae):(0,u.Ch)(se)?(L.enter("lineEnding"),L.consume(se),L.exit("lineEnding"),ae):(L.enter("mathTextData"),oe(se))}function oe(se){return se===null||se===32||se===36||(0,u.Ch)(se)?(L.exit("mathTextData"),ae(se)):(L.consume(se),oe)}function ue(se){return se===36?(L.consume(se),U++,ue):U===P?(L.exit("mathTextSequence"),L.exit("mathText"),H(se)):(G.type="mathTextData",oe(se))}}}function c(I){let R=I.length-4,N=3,k,L;if((I[N][1].type==="lineEnding"||I[N][1].type==="space")&&(I[R][1].type==="lineEnding"||I[R][1].type==="space")){for(k=N;++k<R;)if(I[k][1].type==="mathTextData"){I[R][1].type="mathTextPadding",I[N][1].type="mathTextPadding",N+=2,R-=2;break}}for(k=N-1,R++;++k<=R;)L===void 0?k!==R&&I[k][1].type!=="lineEnding"&&(L=k):(k===R||I[k][1].type==="lineEnding")&&(I[L][1].type="mathTextData",k!==L+2&&(I[L][1].end=I[k-1][1].end,I.splice(L+2,k-L-2),R-=k-L-2,k=L+2),L=void 0);return I}function h(I){return I!==36||this.events[this.events.length-1][1].type==="characterEscape"}function m(I){return{flow:{36:p},text:{36:v(I)}}}const E={};function T(I){const R=this,N=I||E,k=R.data(),L=k.micromarkExtensions||(k.micromarkExtensions=[]),H=k.fromMarkdownExtensions||(k.fromMarkdownExtensions=[]),D=k.toMarkdownExtensions||(k.toMarkdownExtensions=[]);L.push(m(N)),H.push(s()),D.push(C(N))}},16722:function(Ne,Q,S){"use strict";S.d(Q,{Z:function(){return b}});const B=g=>typeof g=="object"&&g!=null&&g.nodeType===1,Z=(g,y)=>(!y||g!=="hidden")&&g!=="visible"&&g!=="clip",s=(g,y)=>{if(g.clientHeight<g.scrollHeight||g.clientWidth<g.scrollWidth){const v=getComputedStyle(g,null);return Z(v.overflowY,y)||Z(v.overflowX,y)||(c=>{const h=(m=>{if(!m.ownerDocument||!m.ownerDocument.defaultView)return null;try{return m.ownerDocument.defaultView.frameElement}catch(E){return null}})(c);return!!h&&(h.clientHeight<c.scrollHeight||h.clientWidth<c.scrollWidth)})(g)}return!1},C=(g,y,v,c,h,m,E,T)=>m<g&&E>y||m>g&&E<y?0:m<=g&&T<=v||E>=y&&T>=v?m-g-c:E>y&&T<v||m<g&&T>v?E-y+h:0,A=g=>{const y=g.parentElement;return y==null?g.getRootNode().host||null:y},u=(g,y)=>{var v,c,h,m;if(typeof document=="undefined")return[];const{scrollMode:E,block:T,inline:I,boundary:R,skipOverflowHiddenElements:N}=y,k=typeof R=="function"?R:Oe=>Oe!==R;if(!B(g))throw new TypeError("Invalid target");const L=document.scrollingElement||document.documentElement,H=[];let D=g;for(;B(D)&&k(D);){if(D=A(D),D===L){H.push(D);break}D!=null&&D===document.body&&s(D)&&!s(document.documentElement)||D!=null&&s(D,N)&&H.push(D)}const V=(c=(v=window.visualViewport)==null?void 0:v.width)!=null?c:innerWidth,P=(m=(h=window.visualViewport)==null?void 0:h.height)!=null?m:innerHeight,{scrollX:U,scrollY:G}=window,{height:J,width:ee,top:ae,right:oe,bottom:ue,left:se}=g.getBoundingClientRect(),{top:ye,right:ve,bottom:Re,left:le}=(Oe=>{const Le=window.getComputedStyle(Oe);return{top:parseFloat(Le.scrollMarginTop)||0,right:parseFloat(Le.scrollMarginRight)||0,bottom:parseFloat(Le.scrollMarginBottom)||0,left:parseFloat(Le.scrollMarginLeft)||0}})(g);let xe=T==="start"||T==="nearest"?ae-ye:T==="end"?ue+Re:ae+J/2-ye+Re,pe=I==="center"?se+ee/2-le+ve:I==="end"?oe+ve:se-le;const Me=[];for(let Oe=0;Oe<H.length;Oe++){const Le=H[Oe],{height:Pe,width:De,top:Ke,right:ze,bottom:it,left:ot}=Le.getBoundingClientRect();if(E==="if-needed"&&ae>=0&&se>=0&&ue<=P&&oe<=V&&(Le===L&&!s(Le)||ae>=Ke&&ue<=it&&se>=ot&&oe<=ze))return Me;const Ge=getComputedStyle(Le),Ee=parseInt(Ge.borderLeftWidth,10),fe=parseInt(Ge.borderTopWidth,10),z=parseInt(Ge.borderRightWidth,10),X=parseInt(Ge.borderBottomWidth,10);let de=0,Ce=0;const ne="offsetWidth"in Le?Le.offsetWidth-Le.clientWidth-Ee-z:0,re="offsetHeight"in Le?Le.offsetHeight-Le.clientHeight-fe-X:0,he="offsetWidth"in Le?Le.offsetWidth===0?0:De/Le.offsetWidth:0,_e="offsetHeight"in Le?Le.offsetHeight===0?0:Pe/Le.offsetHeight:0;if(L===Le)de=T==="start"?xe:T==="end"?xe-P:T==="nearest"?C(G,G+P,P,fe,X,G+xe,G+xe+J,J):xe-P/2,Ce=I==="start"?pe:I==="center"?pe-V/2:I==="end"?pe-V:C(U,U+V,V,Ee,z,U+pe,U+pe+ee,ee),de=Math.max(0,de+G),Ce=Math.max(0,Ce+U);else{de=T==="start"?xe-Ke-fe:T==="end"?xe-it+X+re:T==="nearest"?C(Ke,it,Pe,fe,X+re,xe,xe+J,J):xe-(Ke+Pe/2)+re/2,Ce=I==="start"?pe-ot-Ee:I==="center"?pe-(ot+De/2)+ne/2:I==="end"?pe-ze+z+ne:C(ot,ze,De,Ee,z+ne,pe,pe+ee,ee);const{scrollLeft:Be,scrollTop:Ue}=Le;de=_e===0?0:Math.max(0,Math.min(Ue+de/_e,Le.scrollHeight-Pe/_e+re)),Ce=he===0?0:Math.max(0,Math.min(Be+Ce/he,Le.scrollWidth-De/he+ne)),xe+=Ue-de,pe+=Be-Ce}Me.push({el:Le,top:de,left:Ce})}return Me},p=g=>g===!1?{block:"end",inline:"nearest"}:(y=>y===Object(y)&&Object.keys(y).length!==0)(g)?g:{block:"start",inline:"nearest"};function b(g,y){if(!g.isConnected||!(h=>{let m=h;for(;m&&m.parentNode;){if(m.parentNode===document)return!0;m=m.parentNode instanceof ShadowRoot?m.parentNode.host:m.parentNode}return!1})(g))return;const v=(h=>{const m=window.getComputedStyle(h);return{top:parseFloat(m.scrollMarginTop)||0,right:parseFloat(m.scrollMarginRight)||0,bottom:parseFloat(m.scrollMarginBottom)||0,left:parseFloat(m.scrollMarginLeft)||0}})(g);if((h=>typeof h=="object"&&typeof h.behavior=="function")(y))return y.behavior(u(g,y));const c=typeof y=="boolean"||y==null?void 0:y.behavior;for(const{el:h,top:m,left:E}of u(g,p(y))){const T=m-v.top+v.bottom,I=E-v.left+v.right;h.scroll({top:T,left:I,behavior:c})}}},71523:function(Ne,Q,S){"use strict";S.d(Q,{P:function(){return Z},Q:function(){return B}});function B(s){const C=String(s||"").trim();return C?C.split(/[ \t\n\r\f]+/g):[]}function Z(s){return s.join(" ").trim()}},10502:function(Ne,Q,S){"use strict";S.d(Q,{O:function(){return Z}});const B=function(g,y,v,c,h){const m=Z(y);if(v!=null&&(typeof v!="number"||v<0||v===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(c!=null&&(!B(c)||!c.children))throw new Error("Expected parent node");if(c==null!=(v==null))throw new Error("Expected both parent and index");return b(g)?m.call(h,g,v,c):!1},Z=function(g){if(g==null)return p;if(typeof g=="function")return u(g);if(typeof g=="object")return Array.isArray(g)?s(g):C(g);if(typeof g=="string")return A(g);throw new Error("Expected function, string, or object as test")};function s(g){const y=[];let v=-1;for(;++v<g.length;)y[v]=Z(g[v]);return u(c);function c(...h){let m=-1;for(;++m<y.length;)if(y[m].apply(this,h))return!0;return!1}}function C(g){const y=g;return u(v);function v(c){const h=c;let m;for(m in g)if(h[m]!==y[m])return!1;return!0}}function A(g){return u(y);function y(v){return v&&v.type===g}}function u(g){return y;function y(v,c,h){return!!(b(v)&&g.call(this,v,typeof c=="number"?c:void 0,h||void 0))}}function p(){return!0}function b(g){return g!==null&&typeof g=="object"&&"type"in g}},17970:function(Ne,Q,S){"use strict";S.d(Q,{FK:function(){return C},Pk:function(){return Z},rb:function(){return B}});const B=s("end"),Z=s("start");function s(A){return u;function u(p){const b=p&&p.position&&p.position[A]||{};if(typeof b.line=="number"&&b.line>0&&typeof b.column=="number"&&b.column>0)return{line:b.line,column:b.column,offset:typeof b.offset=="number"&&b.offset>-1?b.offset:void 0}}}function C(A){const u=Z(A),p=B(A);if(u&&p)return{start:u,end:p}}},2348:function(Ne,Q,S){"use strict";S.d(Q,{AM:function(){return u},S4:function(){return p}});var B=S(10502);function Z(g){return g}const s=[],C=!0,A=!1,u="skip";function p(g,y,v,c){let h;typeof y=="function"&&typeof v!="function"?(c=v,v=y):h=y;const m=(0,B.O)(h),E=c?-1:1;T(g,void 0,[])();function T(I,R,N){const k=I&&typeof I=="object"?I:{};if(typeof k.type=="string"){const H=typeof k.tagName=="string"?k.tagName:typeof k.name=="string"?k.name:void 0;Object.defineProperty(L,"name",{value:"node ("+(I.type+(H?"<"+H+">":""))+")"})}return L;function L(){let H=s,D,V,P;if((!y||m(I,R,N[N.length-1]||void 0))&&(H=b(v(I,N)),H[0]===A))return H;if("children"in I&&I.children){const U=I;if(U.children&&H[0]!==u)for(V=(c?U.children.length:-1)+E,P=N.concat(U);V>-1&&V<U.children.length;){const G=U.children[V];if(D=T(G,V,P)(),D[0]===A)return D;V=typeof D[1]=="number"?D[1]:V+E}}return H}}}function b(g){return Array.isArray(g)?g:typeof g=="number"?[C,g]:g==null?s:[g]}},10528:function(Ne,Q,S){"use strict";S.d(Q,{Vn:function(){return Z}});var B=S(2348);function Z(s,C,A,u){let p,b,g;typeof C=="function"&&typeof A!="function"?(b=void 0,g=C,p=A):(b=C,g=A,p=u),(0,B.S4)(s,b,y,p);function y(v,c){const h=c[c.length-1],m=h?h.children.indexOf(v):void 0;return g(v,m,h)}}},43309:function(Ne,Q,S){"use strict";S.d(Q,{t:function(){return B}});const B={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},47854:function(Ne){"use strict";Ne.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},80501:function(Ne){"use strict";Ne.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')}}]);
}());