UNPKG

@techdocs/cli

Version:

Utility CLI for managing TechDocs sites in Backstage.

7 lines • 543 kB
(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[4121],{44844:(W,L,e)=>{"use strict";e.r(L),e.d(L,{default:()=>lt});var p=e(80445),o=e(65473),c=e(9216),f=e(47245),h=e(49444),x=e(89257),C=e(34313),u=e(97064),E=e(54161),P=e(42716),d=e(24254),j=e(25348),v=e(91595),y=e(65328),b=e(26773),w=e(48297),O=e(64328),T=e(21009),F=e(83105),G=e(4305),B=e(29477),K=e(3848),Q=e(97286),ie=e(81955),xe=e(73562),Ce=e(98064),Ke=e(37234),ht=e(75630),Qe=e(79889),tt=e(49304),me=e(33021),Ue=function(){function Xe(ve){var Ge=(ve===void 0?{}:ve).locale;this.yearFormat="yyyy",this.yearMonthFormat="MMMM yyyy",this.dateTime12hFormat="MMMM do hh:mm aaaa",this.dateTime24hFormat="MMMM do HH:mm",this.time12hFormat="hh:mm a",this.time24hFormat="HH:mm",this.dateFormat="MMMM do",this.locale=Ge}return Xe.prototype.addDays=function(ve,Ge){return(0,p.A)(ve,Ge)},Xe.prototype.isValid=function(ve){return(0,G.A)(this.date(ve))},Xe.prototype.getDiff=function(ve,Ge){return(0,f.A)(ve,this.date(Ge))},Xe.prototype.isAfter=function(ve,Ge){return(0,v.A)(ve,Ge)},Xe.prototype.isBefore=function(ve,Ge){return(0,y.A)(ve,Ge)},Xe.prototype.startOfDay=function(ve){return(0,Ke.A)(ve)},Xe.prototype.endOfDay=function(ve){return(0,x.A)(ve)},Xe.prototype.getHours=function(ve){return(0,P.A)(ve)},Xe.prototype.setHours=function(ve,Ge){return(0,K.A)(ve,Ge)},Xe.prototype.setMinutes=function(ve,Ge){return(0,Q.A)(ve,Ge)},Xe.prototype.getSeconds=function(ve){return(0,d.A)(ve)},Xe.prototype.setSeconds=function(ve,Ge){return(0,xe.A)(ve,Ge)},Xe.prototype.isSameDay=function(ve,Ge){return(0,w.A)(ve,Ge)},Xe.prototype.isSameMonth=function(ve,Ge){return(0,T.A)(ve,Ge)},Xe.prototype.isSameYear=function(ve,Ge){return(0,O.A)(ve,Ge)},Xe.prototype.isSameHour=function(ve,Ge){return(0,F.A)(ve,Ge)},Xe.prototype.startOfMonth=function(ve){return(0,ht.A)(ve)},Xe.prototype.endOfMonth=function(ve){return(0,Qe.A)(ve)},Xe.prototype.getYear=function(ve){return(0,j.A)(ve)},Xe.prototype.setYear=function(ve,Ge){return(0,Ce.A)(ve,Ge)},Xe.prototype.date=function(ve){return typeof ve>"u"?new Date:ve===null?null:new Date(ve)},Xe.prototype.parse=function(ve,Ge){return ve===""?null:(0,B.A)(ve,Ge,new Date,{locale:this.locale})},Xe.prototype.format=function(ve,Ge){return(0,E.default)(ve,Ge,{locale:this.locale})},Xe.prototype.isEqual=function(ve,Ge){return ve===null&&Ge===null?!0:(0,b.A)(ve,Ge)},Xe.prototype.isNull=function(ve){return ve===null},Xe.prototype.isAfterDay=function(ve,Ge){return(0,v.A)(ve,(0,x.A)(Ge))},Xe.prototype.isBeforeDay=function(ve,Ge){return(0,y.A)(ve,(0,Ke.A)(Ge))},Xe.prototype.isBeforeYear=function(ve,Ge){return(0,y.A)(ve,(0,me.A)(Ge))},Xe.prototype.isAfterYear=function(ve,Ge){return(0,v.A)(ve,(0,u.A)(Ge))},Xe.prototype.formatNumber=function(ve){return ve},Xe.prototype.getMinutes=function(ve){return ve.getMinutes()},Xe.prototype.getMonth=function(ve){return ve.getMonth()},Xe.prototype.setMonth=function(ve,Ge){return(0,ie.A)(ve,Ge)},Xe.prototype.getMeridiemText=function(ve){return ve==="am"?"AM":"PM"},Xe.prototype.getNextMonth=function(ve){return(0,o.A)(ve,1)},Xe.prototype.getPreviousMonth=function(ve){return(0,o.A)(ve,-1)},Xe.prototype.getMonthArray=function(ve){for(var Ge=(0,me.A)(ve),Ee=[Ge];Ee.length<12;){var ne=Ee[Ee.length-1];Ee.push(this.getNextMonth(ne))}return Ee},Xe.prototype.mergeDateAndTime=function(ve,Ge){return this.setMinutes(this.setHours(ve,this.getHours(Ge)),this.getMinutes(Ge))},Xe.prototype.getWeekdays=function(){var ve=this,Ge=new Date;return(0,h.A)({start:(0,tt.A)(Ge,{locale:this.locale}),end:(0,C.A)(Ge,{locale:this.locale})}).map(function(Ee){return ve.format(Ee,"EEEEEE")})},Xe.prototype.getWeekArray=function(ve){for(var Ge=(0,tt.A)((0,ht.A)(ve),{locale:this.locale}),Ee=(0,C.A)((0,Qe.A)(ve),{locale:this.locale}),ne=0,Z=Ge,fe=[];(0,y.A)(Z,Ee);){var ce=Math.floor(ne/7);fe[ce]=fe[ce]||[],fe[ce].push(Z),Z=(0,p.A)(Z,1),ne+=1}return fe},Xe.prototype.getYearRange=function(ve,Ge){for(var Ee=(0,me.A)(ve),ne=(0,u.A)(Ge),Z=[],fe=Ee;(0,y.A)(fe,ne);)Z.push(fe),fe=(0,c.A)(fe,1);return Z},Xe.prototype.getCalendarHeaderText=function(ve){return this.format(ve,this.yearMonthFormat)},Xe.prototype.getYearText=function(ve){return this.format(ve,"yyyy")},Xe.prototype.getDatePickerHeaderText=function(ve){return this.format(ve,"EEE, MMM d")},Xe.prototype.getDateTimePickerHeaderText=function(ve){return this.format(ve,"MMM d")},Xe.prototype.getMonthText=function(ve){return this.format(ve,"MMMM")},Xe.prototype.getDayText=function(ve){return this.format(ve,"d")},Xe.prototype.getHourText=function(ve,Ge){return this.format(ve,Ge?"hh":"HH")},Xe.prototype.getMinuteText=function(ve){return this.format(ve,"mm")},Xe.prototype.getSecondText=function(ve){return this.format(ve,"ss")},Xe}();const lt=Ue},67164:(W,L,e)=>{"use strict";e.d(L,{A:()=>i});var p=!1;function o(n){if(n.sheet)return n.sheet;for(var s=0;s<document.styleSheets.length;s++)if(document.styleSheets[s].ownerNode===n)return document.styleSheets[s]}function c(n){var s=document.createElement("style");return s.setAttribute("data-emotion",n.key),n.nonce!==void 0&&s.setAttribute("nonce",n.nonce),s.appendChild(document.createTextNode("")),s.setAttribute("data-s",""),s}var f=function(){function n(A){var I=this;this._insertTag=function(H){var ue;I.tags.length===0?I.insertionPoint?ue=I.insertionPoint.nextSibling:I.prepend?ue=I.container.firstChild:ue=I.before:ue=I.tags[I.tags.length-1].nextSibling,I.container.insertBefore(H,ue),I.tags.push(H)},this.isSpeedy=A.speedy===void 0?!p:A.speedy,this.tags=[],this.ctr=0,this.nonce=A.nonce,this.key=A.key,this.container=A.container,this.prepend=A.prepend,this.insertionPoint=A.insertionPoint,this.before=null}var s=n.prototype;return s.hydrate=function(I){I.forEach(this._insertTag)},s.insert=function(I){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(c(this));var H=this.tags[this.tags.length-1];if(this.isSpeedy){var ue=o(H);try{ue.insertRule(I,ue.cssRules.length)}catch{}}else H.appendChild(document.createTextNode(I));this.ctr++},s.flush=function(){this.tags.forEach(function(I){var H;return(H=I.parentNode)==null?void 0:H.removeChild(I)}),this.tags=[],this.ctr=0},n}(),h=Math.abs,x=String.fromCharCode,C=Object.assign;function u(n,s){return v(n,0)^45?(((s<<2^v(n,0))<<2^v(n,1))<<2^v(n,2))<<2^v(n,3):0}function E(n){return n.trim()}function P(n,s){return(n=s.exec(n))?n[0]:n}function d(n,s,A){return n.replace(s,A)}function j(n,s){return n.indexOf(s)}function v(n,s){return n.charCodeAt(s)|0}function y(n,s,A){return n.slice(s,A)}function b(n){return n.length}function w(n){return n.length}function O(n,s){return s.push(n),n}function T(n,s){return n.map(s).join("")}var F=1,G=1,B=0,K=0,Q=0,ie="";function xe(n,s,A,I,H,ue,Ae){return{value:n,root:s,parent:A,type:I,props:H,children:ue,line:F,column:G,length:Ae,return:""}}function Ce(n,s){return C(xe("",null,null,"",null,null,0),n,{length:-n.length},s)}function Ke(){return Q}function ht(){return Q=K>0?v(ie,--K):0,G--,Q===10&&(G=1,F--),Q}function Qe(){return Q=K<B?v(ie,K++):0,G++,Q===10&&(G=1,F++),Q}function tt(){return v(ie,K)}function me(){return K}function Ue(n,s){return y(ie,n,s)}function lt(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Xe(n){return F=G=1,B=b(ie=n),K=0,[]}function ve(n){return ie="",n}function Ge(n){return E(Ue(K-1,ce(n===91?n+2:n===40?n+1:n)))}function Ee(n){return ve(Z(Xe(n)))}function ne(n){for(;(Q=tt())&&Q<33;)Qe();return lt(n)>2||lt(Q)>3?"":" "}function Z(n){for(;Qe();)switch(lt(Q)){case 0:append(we(K-1),n);break;case 2:append(Ge(Q),n);break;default:append(from(Q),n)}return n}function fe(n,s){for(;--s&&Qe()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return Ue(n,me()+(s<6&&tt()==32&&Qe()==32))}function ce(n){for(;Qe();)switch(Q){case n:return K;case 34:case 39:n!==34&&n!==39&&ce(Q);break;case 40:n===41&&ce(n);break;case 92:Qe();break}return K}function oe(n,s){for(;Qe()&&n+Q!==57;)if(n+Q===84&&tt()===47)break;return"/*"+Ue(s,K-1)+"*"+x(n===47?n:Qe())}function we(n){for(;!lt(tt());)Qe();return Ue(n,K)}var Ye="-ms-",rt="-moz-",J="-webkit-",et="comm",Ct="rule",k="decl",De="@page",je="@media",he="@import",it="@charset",_e="@viewport",$e="@supports",Me="@document",Re="@namespace",He="@keyframes",yt="@font-face",We="@counter-style",ye="@font-feature-values",Ve="@layer";function Ze(n,s){for(var A="",I=w(n),H=0;H<I;H++)A+=s(n[H],H,n,s)||"";return A}function M(n,s,A,I){switch(n.type){case Ve:if(n.children.length)break;case he:case k:return n.return=n.return||n.value;case et:return"";case He:return n.return=n.value+"{"+Ze(n.children,I)+"}";case Ct:n.value=n.props.join(",")}return b(A=Ze(n.children,I))?n.return=n.value+"{"+A+"}":""}function a(n){var s=w(n);return function(A,I,H,ue){for(var Ae="",Ie=0;Ie<s;Ie++)Ae+=n[Ie](A,I,H,ue)||"";return Ae}}function m(n){return function(s){s.root||(s=s.return)&&n(s)}}function R(n,s,A,I){if(n.length>-1&&!n.return)switch(n.type){case DECLARATION:n.return=prefix(n.value,n.length,A);return;case KEYFRAMES:return serialize([copy(n,{value:replace(n.value,"@","@"+WEBKIT)})],I);case RULESET:if(n.length)return combine(n.props,function(H){switch(match(H,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(n,{props:[replace(H,/:(read-\w+)/,":"+MOZ+"$1")]})],I);case"::placeholder":return serialize([copy(n,{props:[replace(H,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(n,{props:[replace(H,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(n,{props:[replace(H,/:(plac\w+)/,MS+"input-$1")]})],I)}return""})}}function $(n){switch(n.type){case RULESET:n.props=n.props.map(function(s){return combine(tokenize(s),function(A,I,H){switch(charat(A,0)){case 12:return substr(A,1,strlen(A));case 0:case 40:case 43:case 62:case 126:return A;case 58:H[++I]==="global"&&(H[I]="",H[++I]="\f"+substr(H[I],I=1,-1));case 32:return I===1?"":A;default:switch(I){case 0:return n=A,sizeof(H)>1?"":A;case(I=sizeof(H)-1):case 2:return I===2?A+n+n:A+n;default:return A}}})})}}function q(n){return ve(le("",null,null,null,[""],n=Xe(n),0,[0],n))}function le(n,s,A,I,H,ue,Ae,Ie,Je){for(var st=0,vt=0,ot=Ae,Et=0,Lt=0,$t=0,Ht=1,Dt=1,zt=1,Wt=0,an="",rn=H,mn=ue,en=I,Kt=an;Dt;)switch($t=Wt,Wt=Qe()){case 40:if($t!=108&&v(Kt,ot-1)==58){j(Kt+=d(Ge(Wt),"&","&\f"),"&\f")!=-1&&(zt=-1);break}case 34:case 39:case 91:Kt+=Ge(Wt);break;case 9:case 10:case 13:case 32:Kt+=ne($t);break;case 92:Kt+=fe(me()-1,7);continue;case 47:switch(tt()){case 42:case 47:O(ee(oe(Qe(),me()),s,A),Je);break;default:Kt+="/"}break;case 123*Ht:Ie[st++]=b(Kt)*zt;case 125*Ht:case 59:case 0:switch(Wt){case 0:case 125:Dt=0;case 59+vt:zt==-1&&(Kt=d(Kt,/\f/g,"")),Lt>0&&b(Kt)-ot&&O(Lt>32?re(Kt+";",I,A,ot-1):re(d(Kt," ","")+";",I,A,ot-2),Je);break;case 59:Kt+=";";default:if(O(en=ke(Kt,s,A,st,vt,H,Ie,an,rn=[],mn=[],ot),ue),Wt===123)if(vt===0)le(Kt,s,en,en,rn,ue,ot,Ie,mn);else switch(Et===99&&v(Kt,3)===110?100:Et){case 100:case 108:case 109:case 115:le(n,en,en,I&&O(ke(n,en,en,0,0,H,Ie,an,H,rn=[],ot),mn),H,mn,ot,Ie,I?rn:mn);break;default:le(Kt,en,en,en,[""],mn,0,Ie,mn)}}st=vt=Lt=0,Ht=zt=1,an=Kt="",ot=Ae;break;case 58:ot=1+b(Kt),Lt=$t;default:if(Ht<1){if(Wt==123)--Ht;else if(Wt==125&&Ht++==0&&ht()==125)continue}switch(Kt+=x(Wt),Wt*Ht){case 38:zt=vt>0?1:(Kt+="\f",-1);break;case 44:Ie[st++]=(b(Kt)-1)*zt,zt=1;break;case 64:tt()===45&&(Kt+=Ge(Qe())),Et=tt(),vt=ot=b(an=Kt+=we(me())),Wt++;break;case 45:$t===45&&b(Kt)==2&&(Ht=0)}}return ue}function ke(n,s,A,I,H,ue,Ae,Ie,Je,st,vt){for(var ot=H-1,Et=H===0?ue:[""],Lt=w(Et),$t=0,Ht=0,Dt=0;$t<I;++$t)for(var zt=0,Wt=y(n,ot+1,ot=h(Ht=Ae[$t])),an=n;zt<Lt;++zt)(an=E(Ht>0?Et[zt]+" "+Wt:d(Wt,/&\f/g,Et[zt])))&&(Je[Dt++]=an);return xe(n,s,A,H===0?Ct:Ie,Je,st,vt)}function ee(n,s,A){return xe(n,s,A,et,x(Ke()),y(n,2,-2),0)}function re(n,s,A,I){return xe(n,s,A,k,y(n,0,I),y(n,I+1,-1),I)}var pe=function(s,A,I){for(var H=0,ue=0;H=ue,ue=tt(),H===38&&ue===12&&(A[I]=1),!lt(ue);)Qe();return Ue(s,K)},be=function(s,A){var I=-1,H=44;do switch(lt(H)){case 0:H===38&&tt()===12&&(A[I]=1),s[I]+=pe(K-1,A,I);break;case 2:s[I]+=Ge(H);break;case 4:if(H===44){s[++I]=tt()===58?"&\f":"",A[I]=s[I].length;break}default:s[I]+=x(H)}while(H=Qe());return s},_=function(s,A){return ve(be(Xe(s),A))},te=new WeakMap,V=function(s){if(!(s.type!=="rule"||!s.parent||s.length<1)){for(var A=s.value,I=s.parent,H=s.column===I.column&&s.line===I.line;I.type!=="rule";)if(I=I.parent,!I)return;if(!(s.props.length===1&&A.charCodeAt(0)!==58&&!te.get(I))&&!H){te.set(s,!0);for(var ue=[],Ae=_(A,ue),Ie=I.props,Je=0,st=0;Je<Ae.length;Je++)for(var vt=0;vt<Ie.length;vt++,st++)s.props[st]=ue[Je]?Ae[Je].replace(/&\f/g,Ie[vt]):Ie[vt]+" "+Ae[Je]}}},X=function(s){if(s.type==="decl"){var A=s.value;A.charCodeAt(0)===108&&A.charCodeAt(2)===98&&(s.return="",s.value="")}};function se(n,s){switch(u(n,s)){case 5103:return J+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return J+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return J+n+rt+n+Ye+n+n;case 6828:case 4268:return J+n+Ye+n+n;case 6165:return J+n+Ye+"flex-"+n+n;case 5187:return J+n+d(n,/(\w+).+(:[^]+)/,J+"box-$1$2"+Ye+"flex-$1$2")+n;case 5443:return J+n+Ye+"flex-item-"+d(n,/flex-|-self/,"")+n;case 4675:return J+n+Ye+"flex-line-pack"+d(n,/align-content|flex-|-self/,"")+n;case 5548:return J+n+Ye+d(n,"shrink","negative")+n;case 5292:return J+n+Ye+d(n,"basis","preferred-size")+n;case 6060:return J+"box-"+d(n,"-grow","")+J+n+Ye+d(n,"grow","positive")+n;case 4554:return J+d(n,/([^-])(transform)/g,"$1"+J+"$2")+n;case 6187:return d(d(d(n,/(zoom-|grab)/,J+"$1"),/(image-set)/,J+"$1"),n,"")+n;case 5495:case 3959:return d(n,/(image-set\([^]*)/,J+"$1$`$1");case 4968:return d(d(n,/(.+:)(flex-)?(.*)/,J+"box-pack:$3"+Ye+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+J+n+n;case 4095:case 3583:case 4068:case 2532:return d(n,/(.+)-inline(.+)/,J+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(b(n)-1-s>6)switch(v(n,s+1)){case 109:if(v(n,s+4)!==45)break;case 102:return d(n,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+rt+(v(n,s+3)==108?"$3":"$2-$3"))+n;case 115:return~j(n,"stretch")?se(d(n,"stretch","fill-available"),s)+n:n}break;case 4949:if(v(n,s+1)!==115)break;case 6444:switch(v(n,b(n)-3-(~j(n,"!important")&&10))){case 107:return d(n,":",":"+J)+n;case 101:return d(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+J+(v(n,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+Ye+"$2box$3")+n}break;case 5936:switch(v(n,s+11)){case 114:return J+n+Ye+d(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return J+n+Ye+d(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return J+n+Ye+d(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return J+n+Ye+n+n}return n}var N=function(s,A,I,H){if(s.length>-1&&!s.return)switch(s.type){case k:s.return=se(s.value,s.length);break;case He:return Ze([Ce(s,{value:d(s.value,"@","@"+J)})],H);case Ct:if(s.length)return T(s.props,function(ue){switch(P(ue,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ze([Ce(s,{props:[d(ue,/:(read-\w+)/,":"+rt+"$1")]})],H);case"::placeholder":return Ze([Ce(s,{props:[d(ue,/:(plac\w+)/,":"+J+"input-$1")]}),Ce(s,{props:[d(ue,/:(plac\w+)/,":"+rt+"$1")]}),Ce(s,{props:[d(ue,/:(plac\w+)/,Ye+"input-$1")]})],H)}return""})}},r=[N],i=function(s){var A=s.key;if(A==="css"){var I=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(I,function(Ht){var Dt=Ht.getAttribute("data-emotion");Dt.indexOf(" ")!==-1&&(document.head.appendChild(Ht),Ht.setAttribute("data-s",""))})}var H=s.stylisPlugins||r,ue={},Ae,Ie=[];Ae=s.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+A+' "]'),function(Ht){for(var Dt=Ht.getAttribute("data-emotion").split(" "),zt=1;zt<Dt.length;zt++)ue[Dt[zt]]=!0;Ie.push(Ht)});var Je,st=[V,X];{var vt,ot=[M,m(function(Ht){vt.insert(Ht)})],Et=a(st.concat(H,ot)),Lt=function(Dt){return Ze(q(Dt),Et)};Je=function(Dt,zt,Wt,an){vt=Wt,Lt(Dt?Dt+"{"+zt.styles+"}":zt.styles),an&&($t.inserted[zt.name]=!0)}}var $t={key:A,sheet:new f({key:A,container:Ae,nonce:s.nonce,speedy:s.speedy,prepend:s.prepend,insertionPoint:s.insertionPoint}),nonce:s.nonce,inserted:ue,registered:{},insert:Je};return $t.sheet.hydrate(Ie),$t}},65502:(W,L,e)=>{"use strict";e.d(L,{C:()=>ie,T:()=>Ke});var p=e(14041),o=e.t(p,2),c=e(67164),f={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},h=!1,x=/[A-Z]|^ms/g,C=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(fe){return fe.charCodeAt(1)===45},E=function(fe){return fe!=null&&typeof fe!="boolean"},P=null,d=function(fe,ce){switch(fe){case"animation":case"animationName":if(typeof ce=="string")return ce.replace(C,function(oe,we,Ye){return w={name:we,styles:Ye,next:w},we})}return unitless[fe]!==1&&!u(fe)&&typeof ce=="number"&&ce!==0?ce+"px":ce},j=null;function v(Z,fe,ce){if(ce==null)return"";var oe=ce;if(oe.__emotion_styles!==void 0)return oe;switch(typeof ce){case"boolean":return"";case"object":{var we=ce;if(we.anim===1)return w={name:we.name,styles:we.styles,next:w},we.name;var Ye=ce;if(Ye.styles!==void 0){var rt=Ye.next;if(rt!==void 0)for(;rt!==void 0;)w={name:rt.name,styles:rt.styles,next:w},rt=rt.next;var J=Ye.styles+";";return J}return y(Z,fe,ce)}case"function":{if(Z!==void 0){var et=w,Ct=ce(Z);return w=et,v(Z,fe,Ct)}break}}var k=ce;if(fe==null)return k;var De=fe[k];return De!==void 0?De:k}function y(Z,fe,ce){var oe="";if(Array.isArray(ce))for(var we=0;we<ce.length;we++)oe+=v(Z,fe,ce[we])+";";else for(var Ye in ce){var rt=ce[Ye];if(typeof rt!="object"){var J=rt;fe!=null&&fe[J]!==void 0?oe+=Ye+"{"+fe[J]+"}":E(J)&&(oe+=P(Ye)+":"+d(Ye,J)+";")}else{if(Ye==="NO_COMPONENT_SELECTOR"&&h)throw new Error(j);if(Array.isArray(rt)&&typeof rt[0]=="string"&&(fe==null||fe[rt[0]]===void 0))for(var et=0;et<rt.length;et++)E(rt[et])&&(oe+=P(Ye)+":"+d(Ye,rt[et])+";");else{var Ct=v(Z,fe,rt);switch(Ye){case"animation":case"animationName":{oe+=P(Ye)+":"+Ct+";";break}default:oe+=Ye+"{"+Ct+"}"}}}}return oe}var b=/label:\s*([^\s;{]+)\s*(;|$)/g,w;function O(Z,fe,ce){if(Z.length===1&&typeof Z[0]=="object"&&Z[0]!==null&&Z[0].styles!==void 0)return Z[0];var oe=!0,we="";w=void 0;var Ye=Z[0];if(Ye==null||Ye.raw===void 0)oe=!1,we+=v(ce,fe,Ye);else{var rt=Ye;we+=rt[0]}for(var J=1;J<Z.length;J++)if(we+=v(ce,fe,Z[J]),oe){var et=Ye;we+=et[J]}b.lastIndex=0;for(var Ct="",k;(k=b.exec(we))!==null;)Ct+="-"+k[1];var De=hashString(we)+Ct;return{name:De,styles:we,next:w}}var T=function(fe){return fe()},F=o.useInsertionEffect?o.useInsertionEffect:!1,G=null,B=F||p.useLayoutEffect,K=!1,Q=p.createContext(typeof HTMLElement<"u"?(0,c.A)({key:"css"}):null),ie=Q.Provider,xe=function(){return useContext(Q)},Ce=function(fe){return forwardRef(function(ce,oe){var we=useContext(Q);return fe(ce,we,oe)})},Ke=p.createContext({}),ht=function(){return React.useContext(Ke)},Qe=function(fe,ce){if(typeof ce=="function"){var oe=ce(fe);return oe}return _extends({},fe,ce)},tt=null,me=function(fe){var ce=React.useContext(Ke);return fe.theme!==ce&&(ce=tt(ce)(fe.theme)),React.createElement(Ke.Provider,{value:ce},fe.children)};function Ue(Z){var fe=Z.displayName||Z.name||"Component",ce=function(Ye,rt){var J=React.useContext(Ke);return React.createElement(Z,_extends({theme:J,ref:rt},Ye))},oe=React.forwardRef(ce);return oe.displayName="WithTheme("+fe+")",hoistNonReactStatics(oe,Z)}var lt={}.hasOwnProperty,Xe="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ve=function(fe,ce){var oe={};for(var we in ce)lt.call(ce,we)&&(oe[we]=ce[we]);return oe[Xe]=fe,oe},Ge=function(fe){var ce=fe.cache,oe=fe.serialized,we=fe.isStringTag;return registerStyles(ce,oe,we),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(ce,oe,we)}),null},Ee=null,ne=null},92110:(W,L,e)=>{"use strict";e.d(L,{y:()=>P});async function p(j,v){const y=j.getReader();let b;for(;!(b=await y.read()).done;)v(b.value)}function o(j){let v,y,b,w=!1;return function(T){v===void 0?(v=T,y=0,b=-1):v=f(v,T);const F=v.length;let G=0;for(;y<F;){w&&(v[y]===10&&(G=++y),w=!1);let B=-1;for(;y<F&&B===-1;++y)switch(v[y]){case 58:b===-1&&(b=y-G);break;case 13:w=!0;case 10:B=y;break}if(B===-1)break;j(v.subarray(G,B),b),G=y,b=-1}G===F?v=void 0:G!==0&&(v=v.subarray(G),y-=G)}}function c(j,v,y){let b=h();const w=new TextDecoder;return function(T,F){if(T.length===0)y?.(b),b=h();else if(F>0){const G=w.decode(T.subarray(0,F)),B=F+(T[F+1]===32?2:1),K=w.decode(T.subarray(B));switch(G){case"data":b.data=b.data?b.data+` `+K:K;break;case"event":b.event=K;break;case"id":j(b.id=K);break;case"retry":const Q=parseInt(K,10);isNaN(Q)||v(b.retry=Q);break}}}}function f(j,v){const y=new Uint8Array(j.length+v.length);return y.set(j),y.set(v,j.length),y}function h(){return{data:"",event:"",id:"",retry:void 0}}var x=function(j,v){var y={};for(var b in j)Object.prototype.hasOwnProperty.call(j,b)&&v.indexOf(b)<0&&(y[b]=j[b]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,b=Object.getOwnPropertySymbols(j);w<b.length;w++)v.indexOf(b[w])<0&&Object.prototype.propertyIsEnumerable.call(j,b[w])&&(y[b[w]]=j[b[w]]);return y};const C="text/event-stream",u=1e3,E="last-event-id";function P(j,v){var{signal:y,headers:b,onopen:w,onmessage:O,onclose:T,onerror:F,openWhenHidden:G,fetch:B}=v,K=x(v,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((Q,ie)=>{const xe=Object.assign({},b);xe.accept||(xe.accept=C);let Ce;function Ke(){Ce.abort(),document.hidden||lt()}G||document.addEventListener("visibilitychange",Ke);let ht=u,Qe=0;function tt(){document.removeEventListener("visibilitychange",Ke),window.clearTimeout(Qe),Ce.abort()}y?.addEventListener("abort",()=>{tt(),Q()});const me=B??window.fetch,Ue=w??d;async function lt(){var Xe;Ce=new AbortController;try{const ve=await me(j,Object.assign(Object.assign({},K),{headers:xe,signal:Ce.signal}));await Ue(ve),await p(ve.body,o(c(Ge=>{Ge?xe[E]=Ge:delete xe[E]},Ge=>{ht=Ge},O))),T?.(),tt(),Q()}catch(ve){if(!Ce.signal.aborted)try{const Ge=(Xe=F?.(ve))!==null&&Xe!==void 0?Xe:ht;window.clearTimeout(Qe),Qe=window.setTimeout(lt,Ge)}catch(Ge){tt(),ie(Ge)}}}lt()})}function d(j){const v=j.headers.get("content-type");if(!v?.startsWith(C))throw new Error(`Expected content-type to be ${C}, Actual: ${v}`)}},7991:(W,L)=>{"use strict";L.byteLength=C,L.toByteArray=E,L.fromByteArray=j;for(var e=[],p=[],o=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,h=c.length;f<h;++f)e[f]=c[f],p[c.charCodeAt(f)]=f;p[45]=62,p[95]=63;function x(v){var y=v.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=v.indexOf("=");b===-1&&(b=y);var w=b===y?0:4-b%4;return[b,w]}function C(v){var y=x(v),b=y[0],w=y[1];return(b+w)*3/4-w}function u(v,y,b){return(y+b)*3/4-b}function E(v){var y,b=x(v),w=b[0],O=b[1],T=new o(u(v,w,O)),F=0,G=O>0?w-4:w,B;for(B=0;B<G;B+=4)y=p[v.charCodeAt(B)]<<18|p[v.charCodeAt(B+1)]<<12|p[v.charCodeAt(B+2)]<<6|p[v.charCodeAt(B+3)],T[F++]=y>>16&255,T[F++]=y>>8&255,T[F++]=y&255;return O===2&&(y=p[v.charCodeAt(B)]<<2|p[v.charCodeAt(B+1)]>>4,T[F++]=y&255),O===1&&(y=p[v.charCodeAt(B)]<<10|p[v.charCodeAt(B+1)]<<4|p[v.charCodeAt(B+2)]>>2,T[F++]=y>>8&255,T[F++]=y&255),T}function P(v){return e[v>>18&63]+e[v>>12&63]+e[v>>6&63]+e[v&63]}function d(v,y,b){for(var w,O=[],T=y;T<b;T+=3)w=(v[T]<<16&16711680)+(v[T+1]<<8&65280)+(v[T+2]&255),O.push(P(w));return O.join("")}function j(v){for(var y,b=v.length,w=b%3,O=[],T=16383,F=0,G=b-w;F<G;F+=T)O.push(d(v,F,F+T>G?G:F+T));return w===1?(y=v[b-1],O.push(e[y>>2]+e[y<<4&63]+"==")):w===2&&(y=(v[b-2]<<8)+v[b-1],O.push(e[y>>10]+e[y>>4&63]+e[y<<2&63]+"=")),O.join("")}},1048:(W,L,e)=>{"use strict";var p;/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */const o=e(7991),c=e(39318),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;L.hp=u,p=F,L.IS=50;const h=2147483647;p=h,u.TYPED_ARRAY_SUPPORT=x(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&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 x(){try{const M=new Uint8Array(1),a={foo:function(){return 42}};return Object.setPrototypeOf(a,Uint8Array.prototype),Object.setPrototypeOf(M,a),M.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function C(M){if(M>h)throw new RangeError('The value "'+M+'" is invalid for option "size"');const a=new Uint8Array(M);return Object.setPrototypeOf(a,u.prototype),a}function u(M,a,m){if(typeof M=="number"){if(typeof a=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(M)}return E(M,a,m)}u.poolSize=8192;function E(M,a,m){if(typeof M=="string")return v(M,a);if(ArrayBuffer.isView(M))return b(M);if(M==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);if(yt(M,ArrayBuffer)||M&&yt(M.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(yt(M,SharedArrayBuffer)||M&&yt(M.buffer,SharedArrayBuffer)))return w(M,a,m);if(typeof M=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const R=M.valueOf&&M.valueOf();if(R!=null&&R!==M)return u.from(R,a,m);const $=O(M);if($)return $;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof M[Symbol.toPrimitive]=="function")return u.from(M[Symbol.toPrimitive]("string"),a,m);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M)}u.from=function(M,a,m){return E(M,a,m)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function P(M){if(typeof M!="number")throw new TypeError('"size" argument must be of type number');if(M<0)throw new RangeError('The value "'+M+'" is invalid for option "size"')}function d(M,a,m){return P(M),M<=0?C(M):a!==void 0?typeof m=="string"?C(M).fill(a,m):C(M).fill(a):C(M)}u.alloc=function(M,a,m){return d(M,a,m)};function j(M){return P(M),C(M<0?0:T(M)|0)}u.allocUnsafe=function(M){return j(M)},u.allocUnsafeSlow=function(M){return j(M)};function v(M,a){if((typeof a!="string"||a==="")&&(a="utf8"),!u.isEncoding(a))throw new TypeError("Unknown encoding: "+a);const m=G(M,a)|0;let R=C(m);const $=R.write(M,a);return $!==m&&(R=R.slice(0,$)),R}function y(M){const a=M.length<0?0:T(M.length)|0,m=C(a);for(let R=0;R<a;R+=1)m[R]=M[R]&255;return m}function b(M){if(yt(M,Uint8Array)){const a=new Uint8Array(M);return w(a.buffer,a.byteOffset,a.byteLength)}return y(M)}function w(M,a,m){if(a<0||M.byteLength<a)throw new RangeError('"offset" is outside of buffer bounds');if(M.byteLength<a+(m||0))throw new RangeError('"length" is outside of buffer bounds');let R;return a===void 0&&m===void 0?R=new Uint8Array(M):m===void 0?R=new Uint8Array(M,a):R=new Uint8Array(M,a,m),Object.setPrototypeOf(R,u.prototype),R}function O(M){if(u.isBuffer(M)){const a=T(M.length)|0,m=C(a);return m.length===0||M.copy(m,0,0,a),m}if(M.length!==void 0)return typeof M.length!="number"||We(M.length)?C(0):y(M);if(M.type==="Buffer"&&Array.isArray(M.data))return y(M.data)}function T(M){if(M>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return M|0}function F(M){return+M!=M&&(M=0),u.alloc(+M)}u.isBuffer=function(a){return a!=null&&a._isBuffer===!0&&a!==u.prototype},u.compare=function(a,m){if(yt(a,Uint8Array)&&(a=u.from(a,a.offset,a.byteLength)),yt(m,Uint8Array)&&(m=u.from(m,m.offset,m.byteLength)),!u.isBuffer(a)||!u.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===m)return 0;let R=a.length,$=m.length;for(let q=0,le=Math.min(R,$);q<le;++q)if(a[q]!==m[q]){R=a[q],$=m[q];break}return R<$?-1:$<R?1:0},u.isEncoding=function(a){switch(String(a).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}},u.concat=function(a,m){if(!Array.isArray(a))throw new TypeError('"list" argument must be an Array of Buffers');if(a.length===0)return u.alloc(0);let R;if(m===void 0)for(m=0,R=0;R<a.length;++R)m+=a[R].length;const $=u.allocUnsafe(m);let q=0;for(R=0;R<a.length;++R){let le=a[R];if(yt(le,Uint8Array))q+le.length>$.length?(u.isBuffer(le)||(le=u.from(le)),le.copy($,q)):Uint8Array.prototype.set.call($,le,q);else if(u.isBuffer(le))le.copy($,q);else throw new TypeError('"list" argument must be an Array of Buffers');q+=le.length}return $};function G(M,a){if(u.isBuffer(M))return M.length;if(ArrayBuffer.isView(M)||yt(M,ArrayBuffer))return M.byteLength;if(typeof M!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof M);const m=M.length,R=arguments.length>2&&arguments[2]===!0;if(!R&&m===0)return 0;let $=!1;for(;;)switch(a){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return _e(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return Re(M).length;default:if($)return R?-1:_e(M).length;a=(""+a).toLowerCase(),$=!0}}u.byteLength=G;function B(M,a,m){let R=!1;if((a===void 0||a<0)&&(a=0),a>this.length||((m===void 0||m>this.length)&&(m=this.length),m<=0)||(m>>>=0,a>>>=0,m<=a))return"";for(M||(M="utf8");;)switch(M){case"hex":return Ge(this,a,m);case"utf8":case"utf-8":return me(this,a,m);case"ascii":return Xe(this,a,m);case"latin1":case"binary":return ve(this,a,m);case"base64":return tt(this,a,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ee(this,a,m);default:if(R)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),R=!0}}u.prototype._isBuffer=!0;function K(M,a,m){const R=M[a];M[a]=M[m],M[m]=R}u.prototype.swap16=function(){const a=this.length;if(a%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let m=0;m<a;m+=2)K(this,m,m+1);return this},u.prototype.swap32=function(){const a=this.length;if(a%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let m=0;m<a;m+=4)K(this,m,m+3),K(this,m+1,m+2);return this},u.prototype.swap64=function(){const a=this.length;if(a%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let m=0;m<a;m+=8)K(this,m,m+7),K(this,m+1,m+6),K(this,m+2,m+5),K(this,m+3,m+4);return this},u.prototype.toString=function(){const a=this.length;return a===0?"":arguments.length===0?me(this,0,a):B.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(a){if(!u.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?!0:u.compare(this,a)===0},u.prototype.inspect=function(){let a="";const m=L.IS;return a=this.toString("hex",0,m).replace(/(.{2})/g,"$1 ").trim(),this.length>m&&(a+=" ... "),"<Buffer "+a+">"},f&&(u.prototype[f]=u.prototype.inspect),u.prototype.compare=function(a,m,R,$,q){if(yt(a,Uint8Array)&&(a=u.from(a,a.offset,a.byteLength)),!u.isBuffer(a))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof a);if(m===void 0&&(m=0),R===void 0&&(R=a?a.length:0),$===void 0&&($=0),q===void 0&&(q=this.length),m<0||R>a.length||$<0||q>this.length)throw new RangeError("out of range index");if($>=q&&m>=R)return 0;if($>=q)return-1;if(m>=R)return 1;if(m>>>=0,R>>>=0,$>>>=0,q>>>=0,this===a)return 0;let le=q-$,ke=R-m;const ee=Math.min(le,ke),re=this.slice($,q),pe=a.slice(m,R);for(let be=0;be<ee;++be)if(re[be]!==pe[be]){le=re[be],ke=pe[be];break}return le<ke?-1:ke<le?1:0};function Q(M,a,m,R,$){if(M.length===0)return-1;if(typeof m=="string"?(R=m,m=0):m>2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,We(m)&&(m=$?0:M.length-1),m<0&&(m=M.length+m),m>=M.length){if($)return-1;m=M.length-1}else if(m<0)if($)m=0;else return-1;if(typeof a=="string"&&(a=u.from(a,R)),u.isBuffer(a))return a.length===0?-1:ie(M,a,m,R,$);if(typeof a=="number")return a=a&255,typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(M,a,m):Uint8Array.prototype.lastIndexOf.call(M,a,m):ie(M,[a],m,R,$);throw new TypeError("val must be string, number or Buffer")}function ie(M,a,m,R,$){let q=1,le=M.length,ke=a.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(M.length<2||a.length<2)return-1;q=2,le/=2,ke/=2,m/=2}function ee(pe,be){return q===1?pe[be]:pe.readUInt16BE(be*q)}let re;if($){let pe=-1;for(re=m;re<le;re++)if(ee(M,re)===ee(a,pe===-1?0:re-pe)){if(pe===-1&&(pe=re),re-pe+1===ke)return pe*q}else pe!==-1&&(re-=re-pe),pe=-1}else for(m+ke>le&&(m=le-ke),re=m;re>=0;re--){let pe=!0;for(let be=0;be<ke;be++)if(ee(M,re+be)!==ee(a,be)){pe=!1;break}if(pe)return re}return-1}u.prototype.includes=function(a,m,R){return this.indexOf(a,m,R)!==-1},u.prototype.indexOf=function(a,m,R){return Q(this,a,m,R,!0)},u.prototype.lastIndexOf=function(a,m,R){return Q(this,a,m,R,!1)};function xe(M,a,m,R){m=Number(m)||0;const $=M.length-m;R?(R=Number(R),R>$&&(R=$)):R=$;const q=a.length;R>q/2&&(R=q/2);let le;for(le=0;le<R;++le){const ke=parseInt(a.substr(le*2,2),16);if(We(ke))return le;M[m+le]=ke}return le}function Ce(M,a,m,R){return He(_e(a,M.length-m),M,m,R)}function Ke(M,a,m,R){return He($e(a),M,m,R)}function ht(M,a,m,R){return He(Re(a),M,m,R)}function Qe(M,a,m,R){return He(Me(a,M.length-m),M,m,R)}u.prototype.write=function(a,m,R,$){if(m===void 0)$="utf8",R=this.length,m=0;else if(R===void 0&&typeof m=="string")$=m,R=this.length,m=0;else if(isFinite(m))m=m>>>0,isFinite(R)?(R=R>>>0,$===void 0&&($="utf8")):($=R,R=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const q=this.length-m;if((R===void 0||R>q)&&(R=q),a.length>0&&(R<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let le=!1;for(;;)switch($){case"hex":return xe(this,a,m,R);case"utf8":case"utf-8":return Ce(this,a,m,R);case"ascii":case"latin1":case"binary":return Ke(this,a,m,R);case"base64":return ht(this,a,m,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,a,m,R);default:if(le)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),le=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tt(M,a,m){return a===0&&m===M.length?o.fromByteArray(M):o.fromByteArray(M.slice(a,m))}function me(M,a,m){m=Math.min(M.length,m);const R=[];let $=a;for(;$<m;){const q=M[$];let le=null,ke=q>239?4:q>223?3:q>191?2:1;if($+ke<=m){let ee,re,pe,be;switch(ke){case 1:q<128&&(le=q);break;case 2:ee=M[$+1],(ee&192)===128&&(be=(q&31)<<6|ee&63,be>127&&(le=be));break;case 3:ee=M[$+1],re=M[$+2],(ee&192)===128&&(re&192)===128&&(be=(q&15)<<12|(ee&63)<<6|re&63,be>2047&&(be<55296||be>57343)&&(le=be));break;case 4:ee=M[$+1],re=M[$+2],pe=M[$+3],(ee&192)===128&&(re&192)===128&&(pe&192)===128&&(be=(q&15)<<18|(ee&63)<<12|(re&63)<<6|pe&63,be>65535&&be<1114112&&(le=be))}}le===null?(le=65533,ke=1):le>65535&&(le-=65536,R.push(le>>>10&1023|55296),le=56320|le&1023),R.push(le),$+=ke}return lt(R)}const Ue=4096;function lt(M){const a=M.length;if(a<=Ue)return String.fromCharCode.apply(String,M);let m="",R=0;for(;R<a;)m+=String.fromCharCode.apply(String,M.slice(R,R+=Ue));return m}function Xe(M,a,m){let R="";m=Math.min(M.length,m);for(let $=a;$<m;++$)R+=String.fromCharCode(M[$]&127);return R}function ve(M,a,m){let R="";m=Math.min(M.length,m);for(let $=a;$<m;++$)R+=String.fromCharCode(M[$]);return R}function Ge(M,a,m){const R=M.length;(!a||a<0)&&(a=0),(!m||m<0||m>R)&&(m=R);let $="";for(let q=a;q<m;++q)$+=ye[M[q]];return $}function Ee(M,a,m){const R=M.slice(a,m);let $="";for(let q=0;q<R.length-1;q+=2)$+=String.fromCharCode(R[q]+R[q+1]*256);return $}u.prototype.slice=function(a,m){const R=this.length;a=~~a,m=m===void 0?R:~~m,a<0?(a+=R,a<0&&(a=0)):a>R&&(a=R),m<0?(m+=R,m<0&&(m=0)):m>R&&(m=R),m<a&&(m=a);const $=this.subarray(a,m);return Object.setPrototypeOf($,u.prototype),$};function ne(M,a,m){if(M%1!==0||M<0)throw new RangeError("offset is not uint");if(M+a>m)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(a,m,R){a=a>>>0,m=m>>>0,R||ne(a,m,this.length);let $=this[a],q=1,le=0;for(;++le<m&&(q*=256);)$+=this[a+le]*q;return $},u.prototype.readUintBE=u.prototype.readUIntBE=function(a,m,R){a=a>>>0,m=m>>>0,R||ne(a,m,this.length);let $=this[a+--m],q=1;for(;m>0&&(q*=256);)$+=this[a+--m]*q;return $},u.prototype.readUint8=u.prototype.readUInt8=function(a,m){return a=a>>>0,m||ne(a,1,this.length),this[a]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(a,m){return a=a>>>0,m||ne(a,2,this.length),this[a]|this[a+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(a,m){return a=a>>>0,m||ne(a,2,this.length),this[a]<<8|this[a+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(a,m){return a=a>>>0,m||ne(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+this[a+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(a,m){return a=a>>>0,m||ne(a,4,this.length),this[a]*16777216+(this[a+1]<<16|this[a+2]<<8|this[a+3])},u.prototype.readBigUInt64LE=Ve(function(a){a=a>>>0,De(a,"offset");const m=this[a],R=this[a+7];(m===void 0||R===void 0)&&je(a,this.length-8);const $=m+this[++a]*2**8+this[++a]*2**16+this[++a]*2**24,q=this[++a]+this[++a]*2**8+this[++a]*2**16+R*2**24;return BigInt($)+(BigInt(q)<<BigInt(32))}),u.prototype.readBigUInt64BE=Ve(function(a){a=a>>>0,De(a,"offset");const m=this[a],R=this[a+7];(m===void 0||R===void 0)&&je(a,this.length-8);const $=m*2**24+this[++a]*2**16+this[++a]*2**8+this[++a],q=this[++a]*2**24+this[++a]*2**16+this[++a]*2**8+R;return(BigInt($)<<BigInt(32))+BigInt(q)}),u.prototype.readIntLE=function(a,m,R){a=a>>>0,m=m>>>0,R||ne(a,m,this.length);let $=this[a],q=1,le=0;for(;++le<m&&(q*=256);)$+=this[a+le]*q;return q*=128,$>=q&&($-=Math.pow(2,8*m)),$},u.prototype.readIntBE=function(a,m,R){a=a>>>0,m=m>>>0,R||ne(a,m,this.length);let $=m,q=1,le=this[a+--$];for(;$>0&&(q*=256);)le+=this[a+--$]*q;return q*=128,le>=q&&(le-=Math.pow(2,8*m)),le},u.prototype.readInt8=function(a,m){return a=a>>>0,m||ne(a,1,this.length),this[a]&128?(255-this[a]+1)*-1:this[a]},u.prototype.readInt16LE=function(a,m){a=a>>>0,m||ne(a,2,this.length);const R=this[a]|this[a+1]<<8;return R&32768?R|4294901760:R},u.prototype.readInt16BE=function(a,m){a=a>>>0,m||ne(a,2,this.length);const R=this[a+1]|this[a]<<8;return R&32768?R|4294901760:R},u.prototype.readInt32LE=function(a,m){return a=a>>>0,m||ne(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},u.prototype.readInt32BE=function(a,m){return a=a>>>0,m||ne(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},u.prototype.readBigInt64LE=Ve(function(a){a=a>>>0,De(a,"offset");const m=this[a],R=this[a+7];(m===void 0||R===void 0)&&je(a,this.length-8);const $=this[a+4]+this[a+5]*2**8+this[a+6]*2**16+(R<<24);return(BigInt($)<<BigInt(32))+BigInt(m+this[++a]*2**8+this[++a]*2**16+this[++a]*2**24)}),u.prototype.readBigInt64BE=Ve(function(a){a=a>>>0,De(a,"offset");const m=this[a],R=this[a+7];(m===void 0||R===void 0)&&je(a,this.length-8);const $=(m<<24)+this[++a]*2**16+this[++a]*2**8+this[++a];return(BigInt($)<<BigInt(32))+BigInt(this[++a]*2**24+this[++a]*2**16+this[++a]*2**8+R)}),u.prototype.readFloatLE=function(a,m){return a=a>>>0,m||ne(a,4,this.length),c.read(this,a,!0,23,4)},u.prototype.readFloatBE=function(a,m){return a=a>>>0,m||ne(a,4,this.length),c.read(this,a,!1,23,4)},u.prototype.readDoubleLE=function(a,m){return a=a>>>0,m||ne(a,8,this.length),c.read(this,a,!0,52,8)},u.prototype.readDoubleBE=function(a,m){return a=a>>>0,m||ne(a,8,this.length),c.read(this,a,!1,52,8)};function Z(M,a,m,R,$,q){if(!u.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>$||a<q)throw new RangeError('"value" argument is out of bounds');if(m+R>M.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(a,m,R,$){if(a=+a,m=m>>>0,R=R>>>0,!$){const ke=Math.pow(2,8*R)-1;Z(this,a,m,R,ke,0)}let q=1,le=0;for(this[m]=a&255;++le<R&&(q*=256);)this[m+le]=a/q&255;return m+R},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(a,m,R,$){if(a=+a,m=m>>>0,R=R>>>0,!$){const ke=Math.pow(2,8*R)-1;Z(this,a,m,R,ke,0)}let q=R-1,le=1;for(this[m+q]=a&255;--q>=0&&(le*=256);)this[m+q]=a/le&255;return m+R},u.prototype.writeUint8=u.prototype.writeUInt8=function(a,m,R){return a=+a,m=m>>>0,R||Z(this,a,m,1,255,0),this[m]=a&255,m+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(a,m,R){return a=+a,m=m>>>0,R||Z(this,a,m,2,65535,0),this[m]=a&255,this[m+1]=a>>>8,m+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(a,m,R){return a=+a,m=m>>>0,R||Z(this,a,m,2,65535,0),this[m]=a>>>8,this[m+1]=a&255,m+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(a,m,R){return a=+a,m=m>>>0,R||Z(this,a,m,4,4294967295,0),this[m+3]=a>>>24,this[m+2]=a>>>16,this[m+1]=a>>>8,this[m]=a&255,m+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(a,m,R){return a=+a,m=m>>>0,R||Z(this,a,m,4,4294967295,0),this[m]=a>>>24,this[m+1]=a>>>16,this[m+2]=a>>>8,this[m+3]=a&255,m+4};function fe(M,a,m,R,$){k(a,R,$,M,m,7);let q=Number(a&BigInt(4294967295));M[m++]=q,q=q>>8,M[m++]=q,q=q>>8,M[m++]=q,q=q>>8,M[m++]=q;let le=Number(a>>BigInt(32)&BigInt(4294967295));return M[m++]=le,le=le>>8,M[m++]=le,le=le>>8,M[m++]=le,le=le>>8,M[m++]=le,m}function ce(M,a,m,R,$){k(a,R,$,M,m,7);let q=Number(a&BigInt(4294967295));M[m+7]=q,q=q>>8,M[m+6]=q,q=q>>8,M[m+5]=q,q=q>>8,M[m+4]=q;let le=Number(a>>BigInt(32)&BigInt(4294967295));return M[m+3]=le,le=le>>8,M[m+2]=le,le=le>>8,M[m+1]=le,le=le>>8,M[m]=le,m+8}u.prototype.writeBigUInt64LE=Ve(function(a,m=0){return fe(this,a,m,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Ve(function(a,m=0){return ce(this,a,m,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(a,m,R,$){if(a=+a,m=m>>>0,!$){const ee=Math.pow(2,8*R-1);Z(this,a,m,R,ee-1,-ee)}let q=0,le=1,ke=0;for(this[m]=a&255;++q<R&&(le*=256);)a<0&&ke===0&&this[m+q-1]!==0&&(ke=1),this[m+q]=(a/le>>0)-ke&255;return m+R},u.prototype.writeIntBE=function(a,m,R,$){if(a=+a,m=m>>>0,!$){const ee=Math.pow(2,8*R-1);Z(this,a,m,R,ee-1,-ee)}let q=R-1,le=1,ke=0;for(this[m+q]=a&255;--q>=0&&(le*=256);)a<0&&ke===0&&this[m+q+1]!==0&&(ke=1),this[m+q]=(a/le>>0)-ke&255;return m+R},u.prototype.writeInt8=function(a,m,R){return a=+a,m=m>>>0,R||Z(this,a,m,1,127,-128),a<0&&(a=255+a+1),this[m]=a&255,m+1},u.prototype.writeInt16LE=function(a,m,R){return a=+a,m=m>>>0,R||Z(this,a,m,2,32767,-32768),this[m]=a&255,this[m+1]=a>>>8,m+2},u.prototype.writeInt16BE=function(a,m,R){return a=+a,m=m>>>0,R||Z(this,a,m,2,32767,-32768),this[m]=a>>>8,this[m+1]=a&255,m+2},u.prototype.writeInt32LE=function(a,m,R){return a=+a,m=m>>>0,R||Z(this,a,m,4,2147483647,-2147483648),this[m]=a&255,this[m+1]=a>>>8,this[m+2]=a>>>16,this[m+3]=a>>>24,m+4},u.prototype.writeInt32BE=function(a,m,R){return a=+a,m=m>>>0,R||Z(this,a,m,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),this[m]=a>>>24,this[m+1]=a>>>16,this[m+2]=a>>>8,this[m+3]=a&255,m+4},u.prototype.writeBigInt64LE=Ve(function(a,m=0){return fe(this,a,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Ve(function(a,m=0){return ce(this,a,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function oe(M,a,m,R,$,q){if(m+R>M.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function we(M,a,m,R,$){return a=+a,m=m>>>0,$||oe(M,a,m,4,34028234663852886e22,-34028234663852886e22),c.write(M,a,m,R,23,4),m+4}u.prototype.writeFloatLE=function(a,m,R){return we(this,a,m,!0,R)},u.prototype.writeFloatBE=function(a,m,R){return we(this,a,m,!1,R)};function Ye(M,a,m,R,$){return a=+a,m=m>>>0,$||oe(M,a,m,8,17976931348623157e292,-17976931348623157e292),c.write(M,a,m,R,52,8),m+8}u.prototype.writeDoubleLE=function(a,m,R){return Ye(this,a,m,!0,R)},u.prototype.writeDoubleBE=function(a,m,R){return Ye(this,a,m,!1,R)},u.prototype.copy=function(a,m,R,$){if(!u.isBuffer(a))throw new TypeError("argument should be a Buffer");if(R||(R=0),!$&&$!==0&&($=this.length),m>=a.length&&(m=a.length),m||(m=0),$>0&&$<R&&($=R),$===R||a.length===0||this.length===0)return 0;if(m<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),a.length-m<$-R&&($=a.length-m+R);const q=$-R;return this===a&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(m,R,$):Uint8Array.prototype.set.call(a,this.subarray(R,$),m),q},u.prototype.fill=function(a,m,R,$){if(typeof a=="string"){if(typeof m=="string"?($=m,m=0,R=this.length):typeof R=="string"&&($=R,R=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!u.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(a.length===1){const le=a.charCodeAt(0);($==="utf8"&&le<128||$==="latin1")&&(a=le)}}else typeof a=="number"?a=a&255:typeof a=="boolean"&&(a=Number(a));if(m<0||this.length<m||this.length<R)throw new RangeError("Out of range index");if(R<=m)return this;m=m>>>0,R=R===void 0?this.length:R>>>0,a||(a=0);let q;if(typeof a=="number")for(q=m;q<R;++q)this[q]=a;else{const le=u.isBuffer(a)?a:u.from(a,$),ke=le.length;if(ke===0)throw new TypeError('The value "'+a+'" is invalid for argument "value"');for(q=0;q<R-m;++q)this[q+m]=le[q%ke]}return this};const rt={};function J(M,a,m){rt[M]=class extends m{constructor(){super(),Object.defineProperty(this,"message",{value:a.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${M}]`,this.stack,delete this.name}get code(){return M}set code($){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:$,writable:!0})}toString(){return`${this.name} [${M}]: ${this.message}`}}}J("ERR_BUFFER_OUT_OF_BOUNDS",function(M){return M?`${M} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(M,a){return`The "${M}" argument must be of type number. Received type ${typeof a}`},TypeError),J("ERR_OUT_OF_RANGE",function(M,a,m){let R=`The value of "${M}" is out of range.`,$=m;return Number.isInteger(m)&&Math.abs(m)>2**32?$=et(String(m)):typeof m=="bigint"&&($=String(m),(m>BigInt(2)**BigInt(32)||m<-(BigInt(2)**BigInt(32)))&&($=et($)),$+="n"),R+=` It must be ${a}. Received ${$}`,R},RangeError);function et(M){let a="",m=M.length;const R=M[0]==="-"?1:0;for(;m>=R+4;m-=3)a=`_${M.slice(m-3,m)}${a}`;return`${M.slice(0,m)}${a}`}function Ct(M,a,m){De(a,"offset"),(M[a]===void 0||M[a+m]===void 0)&&je(a,M.length-(m+1))}function k(M,a,m,R,$,q){if(M>m||M<a){const le=typeof a=="bigint"?"n":"";let ke;throw q>3?a===0||a===BigInt(0)?ke=`>= 0${le} and < 2${le} ** ${(q+1)*8}${le}`:ke=`>= -(2${le} ** ${(q+1)*8-1}${le}) and < 2 ** ${(q+1)*8-1}${le}`:ke=`>= ${a}${le} and <= ${m}${le}`,new rt.ERR_OUT_OF_RANGE("value",ke,M)}Ct(R,$,q)}function De(M,a){if(typeof M!="number")throw new rt.ERR_INVALID_ARG_TYPE(a,"number",M)}function je(M,a,m){throw Math.floor(M)!==M?(De(M,m),new rt.ERR_OUT_OF_RANGE(m||"offset","an integer",M)):a<0?new rt.ERR_BUFFER_OUT_OF_BOUNDS:new rt.ERR_OUT_OF_RANGE(m||"offset",`>= ${m?1:0} and <= ${a}`,M)}const he=/[^+/0-9A-Za-z-_]/g;function it(M){if(M=M.split("=")[0],M=M.trim().replace(he,""),M.length<2)return"";for(;M.length%4!==0;)M=M+"=";return M}function _e(M,a){a=a||1/0;let m;const R=M.length;let $=null;const q=[];for(let le=0;le<R;++le){if(m=M.charCodeAt(le),m>55295&&m<57344){if(!$){if(m>56319){(a-=3)>-1&&q.push(239,191,189);continue}else if(le+1===R){(a-=3)>-1&&q.push(239,191,189);continue}$=m;continue}if(m<56320){(a-=3)>-1&&q.push(239,191,189),$=m;continue}m=($-55296<<10|m-56320)+65536}else $&&(a-=3)>-1&&q.push(239,191,189);if($=null,m<128){if((a-=1)<0)break;q.push(m)}else if(m<2048){if((a-=2)<0)break;q.push(m>>6|192,m&63|128)}else if(m<65536){if((a-=3)<0)break;q.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((a-=4)<0)break;q.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return q}function $e(M){const a=[];for(let m=0;m<M.length;++m)a.push(M.charCodeAt(m)&255);return a}function Me(M,a){let m,R,$;const q=[];for(let le=0;le<M.length&&!((a-=2)<0);++le)m=M.charCodeAt(le),R=m>>8,$=m%256,q.push($),q.push(R);return q}function Re(M){return o.toByteArray(it(M))}function He(M,a,m,R){let $;for($=0;$<R&&!($+m>=a.length||$>=M.length);++$)a[$+m]=M[$];return $}function yt(M,a){return M instanceof a||M!=null&&M.constructor!=null&&M.constructor.name!=null&&M.constructor.name===a.name}function We(M){return M!==M}const ye=function(){const M="0123456789abcdef",a=new Array(256);for(let m=0;m<16;++m){const R=m*16;for(let $=0;$<16;++$)a[R+$]=M[m]+M[$]}re