@redocly/openapi-docs 3.13.0 → 3.14.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  * @license Redocly OpenAPI Docs
3
3
  * (c) Copyright 2025 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: 3.13.0
5
+ * Version: 3.14.0-next.0
6
6
  **/function FG(e,t){for(var a=0;a<t.length;a++){const r=t[a];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(r,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function zr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function GG(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var a=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),a}var qG={exports:{}},Zk={};/**
7
7
  * @license React
8
8
  * react-jsx-runtime.production.js
@@ -7381,14 +7381,14 @@ ${n.indent}`,variablesPrefix:n.variablesPrefix,capitalize:!0,lang:Ma.PHP});p.len
7381
7381
  `}
7382
7382
  `,bottom:He`
7383
7383
  ${({withArrow:e,arrowPosition:t})=>e&&t==="left"?He`
7384
- transform: translate(0, -100%);
7385
- margin-top: -10px;
7384
+ transform: translate(0, 10px);
7385
+ margin-top: 0;
7386
7386
  `:t==="right"?He`
7387
- transform: translate(-100%, -100%);
7388
- margin-top: -10px;
7387
+ transform: translate(-100%, 10px);
7388
+ margin-top: 0;
7389
7389
  `:He`
7390
- transform: translate(-50%, -100%);
7391
- margin-top: -10px;
7390
+ transform: translate(-50%, 10px);
7391
+ margin-top: 0;
7392
7392
  `}
7393
7393
 
7394
7394
  ${({withArrow:e,arrowPosition:t})=>e&&He`
@@ -9692,7 +9692,7 @@ ${i.message}`,location:r.child("description")})}}}}),Sce=e=>({Info:{leave(t){if(
9692
9692
  `:"")+Q.dump)):(pe(Q,se,Q.dump),Ce&&(Q.dump="&ref_"+Se+" "+Q.dump));else if(me==="[object Array]")be&&Q.dump.length!==0?(U(Q,se,Q.dump,ge),Ce&&(Q.dump="&ref_"+Se+(se===0?`
9693
9693
  `:"")+Q.dump)):(ae(Q,se,Q.dump),Ce&&(Q.dump="&ref_"+Se+" "+Q.dump));else if(me==="[object String]")Q.tag!=="?"&&W(Q,Q.dump,se);else{if(Q.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+me)}Q.tag!==null&&Q.tag!=="?"&&(Q.dump="!<"+Q.tag+"> "+Q.dump)}return!0}function te(Q,se){var de=[],be=[],ge,me;for(V(Q,de,be),ge=0,me=be.length;ge<me;ge+=1)se.duplicates.push(de[be[ge]]);se.usedDuplicates=new Array(me)}function V(Q,se,de){n.call(Q);var be,ge,me;if(Q!==null&&typeof Q=="object")if(ge=se.indexOf(Q),ge!==-1)de.indexOf(ge)===-1&&de.push(ge);else if(se.push(Q),Array.isArray(Q))for(ge=0,me=Q.length;ge<me;ge+=1)V(Q[ge],se,de);else for(be=Object.keys(Q),ge=0,me=be.length;ge<me;ge+=1)V(Q[be[ge]],se,de)}function oe(Q,se){se=se||{};var de=new le(se);return te(Q,de),E(de,0,Q,!0,!0)?de.dump+`
9694
9694
  `:""}B0.dump=oe;function ue(Q,se){return oe(Q,e.extend({schema:r},se))}return B0.safeDump=ue,B0}var kue={},yue;function Sgt(){return yue||(yue=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s){if(["true","True","TRUE"].lastIndexOf(s)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(s)>=0)return!1;throw'Invalid boolean "'+s+'"'}e.parseYamlBoolean=t;function a(s){return s.lastIndexOf("0o",0)===0?parseInt(s.substring(2),8):parseInt(s)}function r(s){var l=a(s);if(isNaN(l))throw'Invalid integer "'+s+'"';return l}e.parseYamlInteger=r;function n(s){if([".nan",".NaN",".NAN"].lastIndexOf(s)>=0)return NaN;var l=/^([-+])?(?:\.inf|\.Inf|\.INF)$/,c=l.exec(s);if(c)return c[1]==="-"?-1/0:1/0;var u=parseFloat(s);if(!isNaN(u))return u;throw'Invalid float "'+s+'"'}e.parseYamlFloat=n;var i;(function(s){s[s.null=0]="null",s[s.bool=1]="bool",s[s.int=2]="int",s[s.float=3]="float",s[s.string=4]="string"})(i=e.ScalarType||(e.ScalarType={}));function o(s){if(s===void 0)return i.null;if(s.doubleQuoted||!s.plainScalar||s.singleQuoted)return i.string;var l=s.value;if(["null","Null","NULL","~",""].indexOf(l)>=0||l==null)return i.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(l)>=0)return i.bool;var c=/^[-+]?[0-9]+$/,u=/^0o[0-7]+$/,d=/^0x[0-9a-fA-F]+$/;if(c.test(l)||u.test(l)||d.test(l))return i.int;var p=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,h=/^[-+]?(\.inf|\.Inf|\.INF)$/;return p.test(l)||h.test(l)||[".nan",".NaN",".NAN"].indexOf(l)>=0?i.float:i.string}e.determineScalarType=o}(kue)),kue}var xue;function jgt(){return xue||(xue=1,function(e){function t(n){for(var i in n)e.hasOwnProperty(i)||(e[i]=n[i])}Object.defineProperty(e,"__esModule",{value:!0});var a=wgt();e.load=a.load,e.loadAll=a.loadAll,e.safeLoad=a.safeLoad,e.safeLoadAll=a.safeLoadAll;var r=zgt();e.dump=r.dump,e.safeDump=r.safeDump,e.YAMLException=P0(),t(LC()),t(Sgt())}(Dce)),Dce}var R0=jgt();const Ogt={isatty:()=>{},createRequire:()=>{}},wue=Object.freeze(Object.defineProperty({__proto__:null,default:Ogt},Symbol.toStringTag,{value:"Module"})),nv=GG(wue);var Am={},IC={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */var Cgt=IC.exports,zue;function Agt(){return zue||(zue=1,function(e,t){(function(a){var r=t&&!t.nodeType&&t,n=e&&!e.nodeType&&e,i=typeof globalThis=="object"&&globalThis;(i.global===i||i.window===i||i.self===i)&&(a=i);var o,s=2147483647,l=36,c=1,u=26,d=38,p=700,h=72,f=128,b="-",g=/^xn--/,m=/[^\x20-\x7E]/,k=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=l-c,w=Math.floor,S=String.fromCharCode,O;function M(F){throw RangeError(x[F])}function T(F,D){for(var W=F.length,$=[];W--;)$[W]=D(F[W]);return $}function N(F,D){var W=F.split("@"),$="";W.length>1&&($=W[0]+"@",F=W[1]),F=F.replace(k,".");var P=F.split("."),R=T(P,D).join(".");return $+R}function G(F){for(var D=[],W=0,$=F.length,P,R;W<$;)P=F.charCodeAt(W++),P>=55296&&P<=56319&&W<$?(R=F.charCodeAt(W++),(R&64512)==56320?D.push(((P&1023)<<10)+(R&1023)+65536):(D.push(P),W--)):D.push(P);return D}function L(F){return T(F,function(D){var W="";return D>65535&&(D-=65536,W+=S(D>>>10&1023|55296),D=56320|D&1023),W+=S(D),W}).join("")}function J(F){return F-48<10?F-22:F-65<26?F-65:F-97<26?F-97:l}function I(F,D){return F+22+75*(F<26)-((D!=0)<<5)}function X(F,D,W){var $=0;for(F=W?w(F/p):F>>1,F+=w(F/D);F>j*u>>1;$+=l)F=w(F/j);return w($+(j+1)*F/(F+d))}function re(F){var D=[],W=F.length,$,P=0,R=f,H=h,ae,U,pe,Z,A,E,te,V,oe;for(ae=F.lastIndexOf(b),ae<0&&(ae=0),U=0;U<ae;++U)F.charCodeAt(U)>=128&&M("not-basic"),D.push(F.charCodeAt(U));for(pe=ae>0?ae+1:0;pe<W;){for(Z=P,A=1,E=l;pe>=W&&M("invalid-input"),te=J(F.charCodeAt(pe++)),(te>=l||te>w((s-P)/A))&&M("overflow"),P+=te*A,V=E<=H?c:E>=H+u?u:E-H,!(te<V);E+=l)oe=l-V,A>w(s/oe)&&M("overflow"),A*=oe;$=D.length+1,H=X(P-Z,$,Z==0),w(P/$)>s-R&&M("overflow"),R+=w(P/$),P%=$,D.splice(P++,0,R)}return L(D)}function le(F){var D,W,$,P,R,H,ae,U,pe,Z,A,E=[],te,V,oe,ue;for(F=G(F),te=F.length,D=f,W=0,R=h,H=0;H<te;++H)A=F[H],A<128&&E.push(S(A));for($=P=E.length,P&&E.push(b);$<te;){for(ae=s,H=0;H<te;++H)A=F[H],A>=D&&A<ae&&(ae=A);for(V=$+1,ae-D>w((s-W)/V)&&M("overflow"),W+=(ae-D)*V,D=ae,H=0;H<te;++H)if(A=F[H],A<D&&++W>s&&M("overflow"),A==D){for(U=W,pe=l;Z=pe<=R?c:pe>=R+u?u:pe-R,!(U<Z);pe+=l)ue=U-Z,oe=l-Z,E.push(S(I(Z+ue%oe,0))),U=w(ue/oe);E.push(S(I(U,0))),R=X(W,V,$==P),W=0,++$}++W,++D}return E.join("")}function ie(F){return N(F,function(D){return g.test(D)?re(D.slice(4).toLowerCase()):D})}function he(F){return N(F,function(D){return m.test(D)?"xn--"+le(D):D})}if(o={version:"1.3.2",ucs2:{decode:G,encode:L},decode:re,encode:le,toASCII:he,toUnicode:ie},r&&n)if(e.exports==r)n.exports=o;else for(O in o)o.hasOwnProperty(O)&&(r[O]=o[O]);else a.punycode=o})(Cgt)}(IC,IC.exports)),IC.exports}var Sue,jue;function Pgt(){return jue||(jue=1,Sue={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}}),Sue}var N0={},RE,Oue;function Mgt(){if(Oue)return RE;Oue=1;function e(t,a){return Object.prototype.hasOwnProperty.call(t,a)}return RE=function(t,a,r,n){a=a||"&",r=r||"=";var i={};if(typeof t!="string"||t.length===0)return i;var o=/\+/g;t=t.split(a);var s=1e3;n&&typeof n.maxKeys=="number"&&(s=n.maxKeys);var l=t.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u=t[c].replace(o,"%20"),d=u.indexOf(r),p,h,f,b;d>=0?(p=u.substr(0,d),h=u.substr(d+1)):(p=u,h=""),f=decodeURIComponent(p),b=decodeURIComponent(h),e(i,f)?Array.isArray(i[f])?i[f].push(b):i[f]=[i[f],b]:i[f]=b}return i},RE}var NE,Cue;function Tgt(){if(Cue)return NE;Cue=1;var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};return NE=function(t,a,r,n){return a=a||"&",r=r||"=",t===null&&(t=void 0),typeof t=="object"?Object.keys(t).map(function(i){var o=encodeURIComponent(e(i))+r;return Array.isArray(t[i])?t[i].map(function(s){return o+encodeURIComponent(e(s))}).join(a):o+encodeURIComponent(e(t[i]))}).join(a):n?encodeURIComponent(e(n))+r+encodeURIComponent(e(t)):""},NE}var Aue;function _gt(){return Aue||(Aue=1,N0.decode=N0.parse=Mgt(),N0.encode=N0.stringify=Tgt()),N0}var Pue;function EE(){if(Pue)return Am;Pue=1;var e=Agt(),t=Pgt();Am.parse=k,Am.resolve=j,Am.resolveObject=w,Am.format=x,Am.Url=a;function a(){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 r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["<",">",'"',"`"," ","\r",`
9695
- `," "],s=["{","}","|","\\","^","`"].concat(o),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=_gt();function k(S,O,M){if(S&&t.isObject(S)&&S instanceof a)return S;var T=new a;return T.parse(S,O,M),T}a.prototype.parse=function(S,O,M){if(!t.isString(S))throw new TypeError("Parameter 'url' must be a string, not "+typeof S);var T=S.indexOf("?"),N=T!==-1&&T<S.indexOf("#")?"?":"#",G=S.split(N),L=/\\/g;G[0]=G[0].replace(L,"/"),S=G.join(N);var J=S;if(J=J.trim(),!M&&S.split("#").length===1){var I=i.exec(J);if(I)return this.path=J,this.href=J,this.pathname=I[1],I[2]?(this.search=I[2],O?this.query=m.parse(this.search.substr(1)):this.query=this.search.substr(1)):O&&(this.search="",this.query={}),this}var X=r.exec(J);if(X){X=X[0];var re=X.toLowerCase();this.protocol=re,J=J.substr(X.length)}if(M||X||J.match(/^\/\/[^@\/]+@[^@\/]+/)){var le=J.substr(0,2)==="//";le&&!(X&&b[X])&&(J=J.substr(2),this.slashes=!0)}if(!b[X]&&(le||X&&!g[X])){for(var ie=-1,he=0;he<u.length;he++){var F=J.indexOf(u[he]);F!==-1&&(ie===-1||F<ie)&&(ie=F)}var D,W;ie===-1?W=J.lastIndexOf("@"):W=J.lastIndexOf("@",ie),W!==-1&&(D=J.slice(0,W),J=J.slice(W+1),this.auth=decodeURIComponent(D)),ie=-1;for(var he=0;he<c.length;he++){var F=J.indexOf(c[he]);F!==-1&&(ie===-1||F<ie)&&(ie=F)}ie===-1&&(ie=J.length),this.host=J.slice(0,ie),J=J.slice(ie),this.parseHost(),this.hostname=this.hostname||"";var $=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!$)for(var P=this.hostname.split(/\./),he=0,R=P.length;he<R;he++){var H=P[he];if(H&&!H.match(p)){for(var ae="",U=0,pe=H.length;U<pe;U++)H.charCodeAt(U)>127?ae+="x":ae+=H[U];if(!ae.match(p)){var Z=P.slice(0,he),A=P.slice(he+1),E=H.match(h);E&&(Z.push(E[1]),A.unshift(E[2])),A.length&&(J="/"+A.join(".")+J),this.hostname=Z.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=e.toASCII(this.hostname));var te=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+te,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),J[0]!=="/"&&(J="/"+J))}if(!f[re])for(var he=0,R=l.length;he<R;he++){var oe=l[he];if(J.indexOf(oe)!==-1){var ue=encodeURIComponent(oe);ue===oe&&(ue=escape(oe)),J=J.split(oe).join(ue)}}var Q=J.indexOf("#");Q!==-1&&(this.hash=J.substr(Q),J=J.slice(0,Q));var se=J.indexOf("?");if(se!==-1?(this.search=J.substr(se),this.query=J.substr(se+1),O&&(this.query=m.parse(this.query)),J=J.slice(0,se)):O&&(this.search="",this.query={}),J&&(this.pathname=J),g[re]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var te=this.pathname||"",de=this.search||"";this.path=te+de}return this.href=this.format(),this};function x(S){return t.isString(S)&&(S=k(S)),S instanceof a?S.format():a.prototype.format.call(S)}a.prototype.format=function(){var S=this.auth||"";S&&(S=encodeURIComponent(S),S=S.replace(/%3A/i,":"),S+="@");var O=this.protocol||"",M=this.pathname||"",T=this.hash||"",N=!1,G="";this.host?N=S+this.host:this.hostname&&(N=S+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(N+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(G=m.stringify(this.query));var L=this.search||G&&"?"+G||"";return O&&O.substr(-1)!==":"&&(O+=":"),this.slashes||(!O||g[O])&&N!==!1?(N="//"+(N||""),M&&M.charAt(0)!=="/"&&(M="/"+M)):N||(N=""),T&&T.charAt(0)!=="#"&&(T="#"+T),L&&L.charAt(0)!=="?"&&(L="?"+L),M=M.replace(/[?#]/g,function(J){return encodeURIComponent(J)}),L=L.replace("#","%23"),O+N+M+L+T};function j(S,O){return k(S,!1,!0).resolve(O)}a.prototype.resolve=function(S){return this.resolveObject(k(S,!1,!0)).format()};function w(S,O){return S?k(S,!1,!0).resolveObject(O):O}return a.prototype.resolveObject=function(S){if(t.isString(S)){var O=new a;O.parse(S,!1,!0),S=O}for(var M=new a,T=Object.keys(this),N=0;N<T.length;N++){var G=T[N];M[G]=this[G]}if(M.hash=S.hash,S.href==="")return M.href=M.format(),M;if(S.slashes&&!S.protocol){for(var L=Object.keys(S),J=0;J<L.length;J++){var I=L[J];I!=="protocol"&&(M[I]=S[I])}return g[M.protocol]&&M.hostname&&!M.pathname&&(M.path=M.pathname="/"),M.href=M.format(),M}if(S.protocol&&S.protocol!==M.protocol){if(!g[S.protocol]){for(var X=Object.keys(S),re=0;re<X.length;re++){var le=X[re];M[le]=S[le]}return M.href=M.format(),M}if(M.protocol=S.protocol,!S.host&&!b[S.protocol]){for(var R=(S.pathname||"").split("/");R.length&&!(S.host=R.shift()););S.host||(S.host=""),S.hostname||(S.hostname=""),R[0]!==""&&R.unshift(""),R.length<2&&R.unshift(""),M.pathname=R.join("/")}else M.pathname=S.pathname;if(M.search=S.search,M.query=S.query,M.host=S.host||"",M.auth=S.auth,M.hostname=S.hostname||S.host,M.port=S.port,M.pathname||M.search){var ie=M.pathname||"",he=M.search||"";M.path=ie+he}return M.slashes=M.slashes||S.slashes,M.href=M.format(),M}var F=M.pathname&&M.pathname.charAt(0)==="/",D=S.host||S.pathname&&S.pathname.charAt(0)==="/",W=D||F||M.host&&S.pathname,$=W,P=M.pathname&&M.pathname.split("/")||[],R=S.pathname&&S.pathname.split("/")||[],H=M.protocol&&!g[M.protocol];if(H&&(M.hostname="",M.port=null,M.host&&(P[0]===""?P[0]=M.host:P.unshift(M.host)),M.host="",S.protocol&&(S.hostname=null,S.port=null,S.host&&(R[0]===""?R[0]=S.host:R.unshift(S.host)),S.host=null),W=W&&(R[0]===""||P[0]==="")),D)M.host=S.host||S.host===""?S.host:M.host,M.hostname=S.hostname||S.hostname===""?S.hostname:M.hostname,M.search=S.search,M.query=S.query,P=R;else if(R.length)P||(P=[]),P.pop(),P=P.concat(R),M.search=S.search,M.query=S.query;else if(!t.isNullOrUndefined(S.search)){if(H){M.hostname=M.host=P.shift();var ae=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;ae&&(M.auth=ae.shift(),M.host=M.hostname=ae.shift())}return M.search=S.search,M.query=S.query,(!t.isNull(M.pathname)||!t.isNull(M.search))&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!P.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var U=P.slice(-1)[0],pe=(M.host||S.host||P.length>1)&&(U==="."||U==="..")||U==="",Z=0,A=P.length;A>=0;A--)U=P[A],U==="."?P.splice(A,1):U===".."?(P.splice(A,1),Z++):Z&&(P.splice(A,1),Z--);if(!W&&!$)for(;Z--;Z)P.unshift("..");W&&P[0]!==""&&(!P[0]||P[0].charAt(0)!=="/")&&P.unshift(""),pe&&P.join("/").substr(-1)!=="/"&&P.push("");var E=P[0]===""||P[0]&&P[0].charAt(0)==="/";if(H){M.hostname=M.host=E?"":P.length?P.shift():"";var ae=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;ae&&(M.auth=ae.shift(),M.host=M.hostname=ae.shift())}return W=W||M.host&&P.length,W&&!E&&P.unshift(""),P.length?M.pathname=P.join("/"):(M.pathname=null,M.path=null),(!t.isNull(M.pathname)||!t.isNull(M.search))&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=S.auth||M.auth,M.slashes=M.slashes||S.slashes,M.href=M.format(),M},a.prototype.parseHost=function(){var S=this.host,O=n.exec(S);O&&(O=O[0],O!==":"&&(this.port=O.substr(1)),S=S.substr(0,S.length-O.length)),S&&(this.hostname=S)},Am}var LE,Mue;function Bgt(){if(Mue)return LE;Mue=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return LE=e(),LE}var DE,Tue;function Rgt(){if(Tue)return DE;Tue=1;var e=Bgt();return DE=function(t,a){if(t){a.then(function(r){e(function(){t(null,r)})},function(r){e(function(){t(r)})});return}else return a},DE}var $E,_ue;function KC(){if(_ue)return $E;_ue=1;function e(r){return r.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(r){return r.replace(/\~1/g,"/").replace(/~0/g,"~")}function a(r,n,i){if(typeof r>"u")return!1;if(!n||typeof n!="string"||n==="#")return typeof i<"u"?i:r;if(n.indexOf("#")>=0){let s=n.split("#");if(s[0])return!1;n=s[1],n=decodeURIComponent(n.slice(1).split("+").join(" "))}n.startsWith("/")&&(n=n.slice(1));let o=n.split("/");for(let s=0;s<o.length;s++){o[s]=t(o[s]);let l=typeof i<"u"&&s==o.length-1,c=parseInt(o[s],10);if(!Array.isArray(r)||isNaN(c)||c.toString()!==o[s]?c=Array.isArray(r)&&o[s]==="-"?-2:-1:o[s]=s>0?o[s-1]:"",c!=-1||r&&r.hasOwnProperty(o[s]))if(c>=0)l&&(r[c]=i),r=r[c];else{if(c===-2)return l?(Array.isArray(r)&&r.push(i),i):void 0;l&&(r[o[s]]=i),r=r[o[s]]}else if(typeof i<"u"&&typeof r=="object"&&!Array.isArray(r))r[o[s]]=l?i:o[s+1]==="0"||o[s+1]==="-"?[]:{},r=r[o[s]];else return!1}return r}return $E={jptr:a,jpescape:e,jpunescape:t},$E}var IE,Bue;function KE(){if(Bue)return IE;Bue=1;function e(t,a){return a==="$ref"&&!!t&&typeof t[a]=="string"}return IE={isRef:e},IE}var HE,Rue;function HC(){if(Rue)return HE;Rue=1;function e(o){return o}function t(o){return JSON.parse(JSON.stringify(o))}function a(o){let s={};for(let l in o)o.hasOwnProperty(l)&&(s[l]=o[l]);return s}function r(o){let s=Array.isArray(o)?[]:{};for(let l in o)(o.hasOwnProperty(l)||Array.isArray(o))&&(s[l]=typeof o[l]=="object"?r(o[l]):o[l]);return s}function n(o){return Object.assign({},o)}function i(o,s){if(s||(s=new WeakMap),Object(o)!==o||o instanceof Function)return o;if(s.has(o))return s.get(o);try{var l=new o.constructor}catch{l=Object.create(Object.getPrototypeOf(o))}return s.set(o,l),Object.assign(l,...Object.keys(o).map(c=>({[c]:i(o[c],s)})))}return HE={nop:e,clone:t,shallowClone:a,deepClone:r,fastClone:n,circularClone:i},HE}var VE,Nue;function FE(){if(Nue)return VE;Nue=1;const e=KC().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function a(r,n,i){if(n||(n={depth:0}),n.depth||(n=Object.assign({},t(),n)),typeof r!="object")return;let o=n.path;for(let s in r){if(n.key=s,n.path=n.path+"/"+encodeURIComponent(e(s)),n.identityPath=n.seen.get(r[s]),n.identity=typeof n.identityPath<"u",r.hasOwnProperty(s)&&i(r,s,n),typeof r[s]=="object"&&!n.identity){n.identityDetection&&!Array.isArray(r[s])&&r[s]!==null&&n.seen.set(r[s],n.path);let l={};l.parent=r,l.path=n.path,l.depth=n.depth?n.depth+1:1,l.pkey=s,l.payload=n.payload,l.seen=n.seen,l.identity=!1,l.identityDetection=n.identityDetection,a(r[s],l,i)}n.path=o}}return VE={recurse:a},VE}var GE,Eue;function Ngt(){if(Eue)return GE;Eue=1;const e=FE().recurse,t=HC().shallowClone,a=KC().jptr,r=KE().isRef;var n=function(o){return o&&o.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(o,s,l){l||(l={}),l.cache||(l.cache={}),l.state||(l.state={}),l.state.identityDetection=!0,l.depth=l.depth?l.depth+1:1;let c=l.depth>1?o:t(o),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let p=n(l),h=1;for(;h>0;)h=0,e(u,l.state,function(f,b,g){if(r(f,b)){let m=f[b];if(h++,l.cache[m]){let k=l.cache[m];if(k.resolved)p.warn("Patching %s for %s",m,k.path),g.parent[g.pkey]=k.data,l.$ref&&typeof g.parent[g.pkey]=="object"&&g.parent[g.pkey]!==null&&(g.parent[g.pkey][l.$ref]=m);else{if(m===k.path)throw new Error(`Tight circle at ${k.path}`);p.warn("Unresolved ref"),g.parent[g.pkey]=a(k.source,k.path),g.parent[g.pkey]===!1&&(g.parent[g.pkey]=a(k.source,k.key)),l.$ref&&typeof g.parent[g.pkey]=="object"&&g.parent[g.pkey]!==null&&(g.parent[l.$ref]=m)}}else{let k={};k.path=g.path.split("/$ref")[0],k.key=m,p.warn("Dereffing %s at %s",m,k.path),k.source=d,k.data=a(k.source,k.key),k.data===!1&&(k.data=a(l.master,k.key),k.source=l.master),k.data===!1&&p.warn("Missing $ref target",k.key),l.cache[m]=k,k.data=g.parent[g.pkey]=i(a(k.source,k.key),k.source,l),l.$ref&&typeof g.parent[g.pkey]=="object"&&g.parent[g.pkey]!==null&&(g.parent[g.pkey][l.$ref]=m),k.resolved=!0}}});return u.data}return GE={dereference:i},GE}var qE,Lue;function Egt(){if(Lue)return qE;Lue=1,qE=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",a=[],r=[];function n(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(p,h,f,b){typeof b>"u"&&(b=n()),s(p,"",0,[],void 0,0,b);var g;try{r.length===0?g=JSON.stringify(p,h,f):g=JSON.stringify(p,d(h),f)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var m=a.pop();m.length===4?Object.defineProperty(m[0],m[1],m[3]):m[0][m[1]]=m[2]}}return g}function o(p,h,f,b){var g=Object.getOwnPropertyDescriptor(b,f);g.get!==void 0?g.configurable?(Object.defineProperty(b,f,{value:p}),a.push([b,f,h,g])):r.push([h,f,p]):(b[f]=p,a.push([b,f,h]))}function s(p,h,f,b,g,m,k){m+=1;var x;if(typeof p=="object"&&p!==null){for(x=0;x<b.length;x++)if(b[x]===p){o(t,p,h,g);return}if(typeof k.depthLimit<"u"&&m>k.depthLimit){o(e,p,h,g);return}if(typeof k.edgesLimit<"u"&&f+1>k.edgesLimit){o(e,p,h,g);return}if(b.push(p),Array.isArray(p))for(x=0;x<p.length;x++)s(p[x],x,x,b,p,m,k);else{var j=Object.keys(p);for(x=0;x<j.length;x++){var w=j[x];s(p[w],w,x,b,p,m,k)}}b.pop()}}function l(p,h){return p<h?-1:p>h?1:0}function c(p,h,f,b){typeof b>"u"&&(b=n());var g=u(p,"",0,[],void 0,0,b)||p,m;try{r.length===0?m=JSON.stringify(g,h,f):m=JSON.stringify(g,d(h),f)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var k=a.pop();k.length===4?Object.defineProperty(k[0],k[1],k[3]):k[0][k[1]]=k[2]}}return m}function u(p,h,f,b,g,m,k){m+=1;var x;if(typeof p=="object"&&p!==null){for(x=0;x<b.length;x++)if(b[x]===p){o(t,p,h,g);return}try{if(typeof p.toJSON=="function")return}catch{return}if(typeof k.depthLimit<"u"&&m>k.depthLimit){o(e,p,h,g);return}if(typeof k.edgesLimit<"u"&&f+1>k.edgesLimit){o(e,p,h,g);return}if(b.push(p),Array.isArray(p))for(x=0;x<p.length;x++)u(p[x],x,x,b,p,m,k);else{var j={},w=Object.keys(p).sort(l);for(x=0;x<w.length;x++){var S=w[x];u(p[S],S,x,b,p,m,k),j[S]=p[S]}if(typeof g<"u")a.push([g,h,p]),g[h]=j;else return j}b.pop()}}function d(p){return p=typeof p<"u"?p:function(h,f){return f},function(h,f){if(r.length>0)for(var b=0;b<r.length;b++){var g=r[b];if(g[1]===h&&g[0]===f){f=g[2],r.splice(b,1);break}}return p.call(this,h,f)}}return qE}var WE,Due;function $ue(){if(Due)return WE;Due=1;var e={};const t=Egt(),a=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function r(g,m,k){return k.indexOf(g)===m}function n(g){return new Set(g).size!==g.length}function i(g){return new Set(g).size<=1}function o(g,m){function k(x,j){return t.stringify(x)===t.stringify(Object.assign({},x,j))}return k(g,m)&&k(m,g)}function s(g){let m=[];for(let k of g)m.find(function(x,j,w){return o(x,k)})||m.push(k);return m}function l(g){return g.length===s(g).length}function c(g){return g.find(function(m,k,x){return g.indexOf(m)<k})}function u(g){let m=0,k;if(g.length===0)return m;for(let x=0;x<g.length;x++)k=g.charCodeAt(x),m=(m<<5)-m+k,m|=0;return m}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(g,m){return m.toUpperCase()})};const d=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],p=["items","minItems","maxItems","uniqueItems"],h=["get","post","put","delete","patch","head","options","trace"];function f(g){g=g.replace("[]","Array");let m=g.split("/");return m[0]=m[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),m.join("/")}function b(g){return f(g.split("/").join("_"))}return WE={colour:a,uniqueOnly:r,hasDuplicates:n,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:p,httpMethods:h,sanitise:f,sanitiseAll:b},WE}var JE,Iue;function Lgt(){if(Iue)return JE;Iue=1;const e=nv,t=HJ(),a=EE(),r=nv,n=nv,i=KC().jptr,o=FE().recurse,s=HC().clone,l=Ngt().dereference,c=KE().isRef,u=$ue();function d(M){return[...new Set(M)]}function p(M,T,N,G,L){return new Promise(function(J,I){e.readFile(M,T,function(X,re){X?N.ignoreIOErrors&&L?(N.verbose&&console.warn("FAILED",G),N.externalRefs[G].failed=!0,J(L)):I(X):J(re)})})}function h(M,T,N,G,L,J){let I=J.externalRefs[N+G].paths[0],X=a.parse(L),re={},le=1;for(;le;)le=0,o(M,{identityDetection:!0},function(ie,he,F){if(c(ie,he)){if(ie[he].startsWith("#")){if(!re[ie[he]]&&!ie.$fixed){let D=s(i(T,ie[he]));if(J.verbose>1&&console.warn((D===!1?u.colour.red:u.colour.green)+"Fragment resolution",ie[he],u.colour.normal),D===!1){if(F.parent[F.pkey]={},J.fatal){let W=new Error("Fragment $ref resolution failed "+ie[he]);if(J.promise)J.promise.reject(W);else throw W}}else le++,F.parent[F.pkey]=D,re[ie[he]]=F.path.replace("/%24ref","")}else if(!ie.$fixed){let D=(I+"/"+re[ie[he]]).split("/#/").join("/");F.parent[F.pkey]={$ref:D,"x-miro":ie[he],$fixed:!0},J.verbose>1&&console.warn("Replacing with",D),le++}}else if(X.protocol){let D=a.resolve(L,ie[he]).toString();J.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",ie[he],"as",D,u.colour.normal),ie["x-miro"]=ie[he],J.externalRefs[ie[he]]&&(J.externalRefs[D]||(J.externalRefs[D]=J.externalRefs[ie[he]]),J.externalRefs[D].failed=J.externalRefs[ie[he]].failed),ie[he]=D}else if(!ie["x-miro"]){let D=a.resolve(L,ie[he]).toString(),W=!1;J.externalRefs[ie[he]]&&(W=J.externalRefs[ie[he]].failed),W||(J.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",ie[he],"as",D,u.colour.normal),ie["x-miro"]=ie[he],ie[he]=D)}}});return o(M,{},function(ie,he,F){c(ie,he)&&typeof ie.$fixed<"u"&&delete ie.$fixed}),J.verbose>1&&console.warn("Finished fragment resolution"),M}function f(M,T){if(!T.filters||!T.filters.length)return M;for(let N of T.filters)M=N(M,T);return M}function b(M,T){return M&&M.length>2?M:T&&T.length>2?T:"file:"}function g(M,T,N,G){var L=a.parse(N.source),J=N.source.split("\\").join("/").split("/");J.pop()||J.pop();let I="",X=T.split("#");X.length>1&&(I="#"+X[1],T=X[0]),J=J.join("/");let re=a.parse(T),le=b(re.protocol,L.protocol),ie;if(le==="file:"?ie=t.resolve(J?J+"/":"",T):ie=a.resolve(J?J+"/":"",T),N.cache[ie]){N.verbose&&console.warn("CACHED",ie,I);let he=s(N.cache[ie]),F=N.externalRef=he;if(I&&(F=i(F,I),F===!1&&(F={},N.fatal))){let D=new Error("Cached $ref resolution failed "+ie+I);if(N.promise)N.promise.reject(D);else throw D}return F=h(F,he,T,I,ie,N),F=f(F,N),G(s(F),ie,N),Promise.resolve(F)}if(N.verbose&&console.warn("GET",ie,I),N.handlers&&N.handlers[le])return N.handlers[le](J,T,I,N).then(function(he){return N.externalRef=he,he=f(he,N),N.cache[ie]=he,G(he,ie,N),he}).catch(function(he){throw N.verbose&&console.warn(he),he});if(le&&le.startsWith("http")){const he=Object.assign({},N.fetchOptions,{agent:N.agent});return N.fetch(ie,he).then(function(F){if(F.status!==200){if(N.ignoreIOErrors)return N.verbose&&console.warn("FAILED",T),N.externalRefs[T].failed=!0,'{"$ref":"'+T+'"}';throw new Error(`Received status code ${F.status}: ${ie}`)}return F.text()}).then(function(F){try{let D=n.parse(F,{schema:"core",prettyErrors:!0});if(F=N.externalRef=D,N.cache[ie]=s(F),I&&(F=i(F,I),F===!1&&(F={},N.fatal))){let W=new Error("Remote $ref resolution failed "+ie+I);if(N.promise)N.promise.reject(W);else throw W}F=h(F,D,T,I,ie,N),F=f(F,N)}catch(D){if(N.verbose&&console.warn(D),N.promise&&N.fatal)N.promise.reject(D);else throw D}return G(F,ie,N),F}).catch(function(F){if(N.verbose&&console.warn(F),N.cache[ie]={},N.promise&&N.fatal)N.promise.reject(F);else throw F})}else{const he='{"$ref":"'+T+'"}';return p(ie,N.encoding||"utf8",N,T,he).then(function(F){try{let D=n.parse(F,{schema:"core",prettyErrors:!0});if(F=N.externalRef=D,N.cache[ie]=s(F),I&&(F=i(F,I),F===!1&&(F={},N.fatal))){let W=new Error("File $ref resolution failed "+ie+I);if(N.promise)N.promise.reject(W);else throw W}F=h(F,D,T,I,ie,N),F=f(F,N)}catch(D){if(N.verbose&&console.warn(D),N.promise&&N.fatal)N.promise.reject(D);else throw D}return G(F,ie,N),F}).catch(function(F){if(N.verbose&&console.warn(F),N.promise&&N.fatal)N.promise.reject(F);else throw F})}}function m(M){return new Promise(function(T,N){function G(J,I,X){if(J[I]&&c(J[I],"$ref")){let re=J[I].$ref;if(!re.startsWith("#")){let le="";if(!L[re]){let ie=Object.keys(L).find(function(he,F,D){return re.startsWith(he+"/")});ie&&(M.verbose&&console.warn("Found potential subschema at",ie),le="/"+(re.split("#")[1]||"").replace(ie.split("#")[1]||""),le=le.split("/undefined").join(""),re=ie)}if(L[re]||(L[re]={resolved:!1,paths:[],extras:{},description:J[I].description}),L[re].resolved){if(!L[re].failed)if(M.rewriteRefs){let ie=L[re].resolvedAt;M.verbose>1&&console.warn("Rewriting ref",re,ie),J[I]["x-miro"]=re,J[I].$ref=ie+le}else J[I]=s(L[re].data)}else L[re].paths.push(X.path),L[re].extras[X.path]=le}}}let L=M.externalRefs;if(M.resolver.depth>0&&M.source===M.resolver.base)return T(L);o(M.openapi.definitions,{identityDetection:!0,path:"#/definitions"},G),o(M.openapi.components,{identityDetection:!0,path:"#/components"},G),o(M.openapi,{identityDetection:!0},G),T(L)})}function k(M){return new Promise(function(T,N){m(M).then(function(L){for(let J in L)if(!L[J].resolved){let I=M.resolver.depth;I>0&&I++,M.resolver.actions[I].push(function(){return g(M.openapi,J,M,function(X,re,le){if(!L[J].resolved){let F={};F.context=L[J],F.$ref=J,F.original=s(X),F.updated=X,F.source=re,le.externals.push(F),L[J].resolved=!0}let ie=Object.assign({},le,{source:"",resolver:{actions:le.resolver.actions,depth:le.resolver.actions.length-1,base:le.resolver.base}});le.patch&&L[J].description&&!X.description&&typeof X=="object"&&(X.description=L[J].description),L[J].data=X;let he=d(L[J].paths);he=he.sort(function(F,D){const W=F.startsWith("#/components/")||F.startsWith("#/definitions/"),$=D.startsWith("#/components/")||D.startsWith("#/definitions/");return W&&!$?-1:$&&!W?1:0});for(let F of he)if(L[J].resolvedAt&&F!==L[J].resolvedAt&&F.indexOf("x-ms-examples/")<0)le.verbose>1&&console.warn("Creating pointer to data at",F),i(le.openapi,F,{$ref:L[J].resolvedAt+L[J].extras[F],"x-miro":J+L[J].extras[F]});else{L[J].resolvedAt?le.verbose>1&&console.warn("Avoiding circular reference"):(L[J].resolvedAt=F,le.verbose>1&&console.warn("Creating initial clone of data at",F));let D=s(X);i(le.openapi,F,D)}le.resolver.actions[ie.resolver.depth].length===0&&le.resolver.actions[ie.resolver.depth].push(function(){return k(ie)})})})}}).catch(function(L){M.verbose&&console.warn(L),N(L)});let G={options:M};G.actions=M.resolver.actions[M.resolver.depth],T(G)})}const x=M=>M.reduce((T,N)=>T.then(G=>N().then(Array.prototype.concat.bind(G))),Promise.resolve([]));function j(M,T,N){M.resolver.actions.push([]),k(M).then(function(G){x(G.actions).then(function(){if(M.resolver.depth>=M.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),T(!0);M.resolver.depth++,M.resolver.actions[M.resolver.depth].length?setTimeout(function(){j(G.options,T,N)},0):(M.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),M.resolveInternal&&(M.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),M.openapi=l(M.openapi,M.original,{verbose:M.verbose-1}),M.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),o(M.openapi,{},function(L,J,I){c(L,J)&&(M.preserveMiro||delete L["x-miro"])}),T(M))}).catch(function(L){M.verbose&&console.warn(L),N(L)})}).catch(function(G){M.verbose&&console.warn(G),N(G)})}function w(M){if(M.cache||(M.cache={}),M.fetch||(M.fetch=r),M.source){let T=a.parse(M.source);(!T.protocol||T.protocol.length<=2)&&(M.source=t.resolve(M.source))}M.externals=[],M.externalRefs={},M.rewriteRefs=!0,M.resolver={},M.resolver.depth=0,M.resolver.base=M.source,M.resolver.actions=[[]]}function S(M){return w(M),new Promise(function(T,N){M.resolve?j(M,T,N):T(M)})}function O(M,T,N){return N||(N={}),N.openapi=M,N.source=T,N.resolve=!0,w(N),new Promise(function(G,L){j(N,G,L)})}return JE={optionalResolve:S,resolve:O},JE}var UE,Kue;function Dgt(){if(Kue)return UE;Kue=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(a,r,n,i){if(typeof n.depth>"u"&&(n=e()),a===null||typeof a>"u")return a;if(typeof a.$ref<"u"){let o={$ref:a.$ref};return n.allowRefSiblings&&a.description&&(o.description=a.description),i(o,r,n),o}if(n.combine&&(a.allOf&&Array.isArray(a.allOf)&&a.allOf.length===1&&(a=Object.assign({},a.allOf[0],a),delete a.allOf),a.anyOf&&Array.isArray(a.anyOf)&&a.anyOf.length===1&&(a=Object.assign({},a.anyOf[0],a),delete a.anyOf),a.oneOf&&Array.isArray(a.oneOf)&&a.oneOf.length===1&&(a=Object.assign({},a.oneOf[0],a),delete a.oneOf)),i(a,r,n),n.seen.has(a))return a;if(typeof a=="object"&&a!==null&&n.seen.set(a,!0),n.top=!1,n.depth++,typeof a.items<"u"&&(n.property="items",t(a.items,a,n,i)),a.additionalItems&&typeof a.additionalItems=="object"&&(n.property="additionalItems",t(a.additionalItems,a,n,i)),a.additionalProperties&&typeof a.additionalProperties=="object"&&(n.property="additionalProperties",t(a.additionalProperties,a,n,i)),a.properties)for(let o in a.properties){let s=a.properties[o];n.property="properties/"+o,t(s,a,n,i)}if(a.patternProperties)for(let o in a.patternProperties){let s=a.patternProperties[o];n.property="patternProperties/"+o,t(s,a,n,i)}if(a.allOf)for(let o in a.allOf){let s=a.allOf[o];n.property="allOf/"+o,t(s,a,n,i)}if(a.anyOf)for(let o in a.anyOf){let s=a.anyOf[o];n.property="anyOf/"+o,t(s,a,n,i)}if(a.oneOf)for(let o in a.oneOf){let s=a.oneOf[o];n.property="oneOf/"+o,t(s,a,n,i)}return a.not&&(n.property="not",t(a.not,a,n,i)),n.depth--,a}return UE={getDefaultState:e,walkSchema:t},UE}var Hue={},ZE={exports:{}},Vue={},Fue;function Gue(){return Fue||(Fue=1,function(e){e.fetch=n(globalThis.fetch)&&n(globalThis.ReadableStream),e.writableStream=n(globalThis.WritableStream),e.abortController=n(globalThis.AbortController);var t;function a(){if(t!==void 0)return t;if(globalThis.XMLHttpRequest){t=new globalThis.XMLHttpRequest;try{t.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function r(i){var o=a();if(!o)return!1;try{return o.responseType=i,o.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(a()?n(a().overrideMimeType):!1);function n(i){return typeof i=="function"}t=null}(Vue)),Vue}var VC={},QE={exports:{}},FC={exports:{}},que;function $gt(){if(que)return FC.exports;que=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(j,w,S){return Function.prototype.apply.call(j,w,S)},a;e&&typeof e.ownKeys=="function"?a=e.ownKeys:Object.getOwnPropertySymbols?a=function(j){return Object.getOwnPropertyNames(j).concat(Object.getOwnPropertySymbols(j))}:a=function(j){return Object.getOwnPropertyNames(j)};function r(j){console&&console.warn&&console.warn(j)}var n=Number.isNaN||function(j){return j!==j};function i(){i.init.call(this)}FC.exports=i,FC.exports.once=m,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(j){if(typeof j!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof j)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(j){if(typeof j!="number"||j<0||n(j))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+j+".");o=j}}),i.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},i.prototype.setMaxListeners=function(j){if(typeof j!="number"||j<0||n(j))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+j+".");return this._maxListeners=j,this};function l(j){return j._maxListeners===void 0?i.defaultMaxListeners:j._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(j){for(var w=[],S=1;S<arguments.length;S++)w.push(arguments[S]);var O=j==="error",M=this._events;if(M!==void 0)O=O&&M.error===void 0;else if(!O)return!1;if(O){var T;if(w.length>0&&(T=w[0]),T instanceof Error)throw T;var N=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw N.context=T,N}var G=M[j];if(G===void 0)return!1;if(typeof G=="function")t(G,this,w);else for(var L=G.length,J=f(G,L),S=0;S<L;++S)t(J[S],this,w);return!0};function c(j,w,S,O){var M,T,N;if(s(S),T=j._events,T===void 0?(T=j._events=Object.create(null),j._eventsCount=0):(T.newListener!==void 0&&(j.emit("newListener",w,S.listener?S.listener:S),T=j._events),N=T[w]),N===void 0)N=T[w]=S,++j._eventsCount;else if(typeof N=="function"?N=T[w]=O?[S,N]:[N,S]:O?N.unshift(S):N.push(S),M=l(j),M>0&&N.length>M&&!N.warned){N.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+N.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=j,G.type=w,G.count=N.length,r(G)}return j}i.prototype.addListener=function(j,w){return c(this,j,w,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(j,w){return c(this,j,w,!0)};function u(){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 d(j,w,S){var O={fired:!1,wrapFn:void 0,target:j,type:w,listener:S},M=u.bind(O);return M.listener=S,O.wrapFn=M,M}i.prototype.once=function(j,w){return s(w),this.on(j,d(this,j,w)),this},i.prototype.prependOnceListener=function(j,w){return s(w),this.prependListener(j,d(this,j,w)),this},i.prototype.removeListener=function(j,w){var S,O,M,T,N;if(s(w),O=this._events,O===void 0)return this;if(S=O[j],S===void 0)return this;if(S===w||S.listener===w)--this._eventsCount===0?this._events=Object.create(null):(delete O[j],O.removeListener&&this.emit("removeListener",j,S.listener||w));else if(typeof S!="function"){for(M=-1,T=S.length-1;T>=0;T--)if(S[T]===w||S[T].listener===w){N=S[T].listener,M=T;break}if(M<0)return this;M===0?S.shift():b(S,M),S.length===1&&(O[j]=S[0]),O.removeListener!==void 0&&this.emit("removeListener",j,N||w)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(j){var w,S,O;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[j]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[j]),this;if(arguments.length===0){var M=Object.keys(S),T;for(O=0;O<M.length;++O)T=M[O],T!=="removeListener"&&this.removeAllListeners(T);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(w=S[j],typeof w=="function")this.removeListener(j,w);else if(w!==void 0)for(O=w.length-1;O>=0;O--)this.removeListener(j,w[O]);return this};function p(j,w,S){var O=j._events;if(O===void 0)return[];var M=O[w];return M===void 0?[]:typeof M=="function"?S?[M.listener||M]:[M]:S?g(M):f(M,M.length)}i.prototype.listeners=function(j){return p(this,j,!0)},i.prototype.rawListeners=function(j){return p(this,j,!1)},i.listenerCount=function(j,w){return typeof j.listenerCount=="function"?j.listenerCount(w):h.call(j,w)},i.prototype.listenerCount=h;function h(j){var w=this._events;if(w!==void 0){var S=w[j];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function f(j,w){for(var S=new Array(w),O=0;O<w;++O)S[O]=j[O];return S}function b(j,w){for(;w+1<j.length;w++)j[w]=j[w+1];j.pop()}function g(j){for(var w=new Array(j.length),S=0;S<w.length;++S)w[S]=j[S].listener||j[S];return w}function m(j,w){return new Promise(function(S,O){function M(N){j.removeListener(w,T),O(N)}function T(){typeof j.removeListener=="function"&&j.removeListener("error",M),S([].slice.call(arguments))}x(j,w,T,{once:!0}),w!=="error"&&k(j,M,{once:!0})})}function k(j,w,S){typeof j.on=="function"&&x(j,"error",w,S)}function x(j,w,S,O){if(typeof j.on=="function")O.once?j.once(w,S):j.on(w,S);else if(typeof j.addEventListener=="function")j.addEventListener(w,function M(T){O.once&&j.removeEventListener(w,M),S(T)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof j)}return FC.exports}var Wue,Jue;function Uue(){return Jue||(Jue=1,Wue=$gt().EventEmitter),Wue}const Zue=GG(a6);var YE,Que;function Igt(){if(Que)return YE;Que=1;function e(f,b){var g=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);b&&(m=m.filter(function(k){return Object.getOwnPropertyDescriptor(f,k).enumerable})),g.push.apply(g,m)}return g}function t(f){for(var b=1;b<arguments.length;b++){var g=arguments[b]!=null?arguments[b]:{};b%2?e(Object(g),!0).forEach(function(m){a(f,m,g[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(g)):e(Object(g)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(g,m))})}return f}function a(f,b,g){return b=o(b),b in f?Object.defineProperty(f,b,{value:g,enumerable:!0,configurable:!0,writable:!0}):f[b]=g,f}function r(f,b){if(!(f instanceof b))throw new TypeError("Cannot call a class as a function")}function n(f,b){for(var g=0;g<b.length;g++){var m=b[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(f,o(m.key),m)}}function i(f,b,g){return b&&n(f.prototype,b),Object.defineProperty(f,"prototype",{writable:!1}),f}function o(f){var b=s(f,"string");return typeof b=="symbol"?b:String(b)}function s(f,b){if(typeof f!="object"||f===null)return f;var g=f[Symbol.toPrimitive];if(g!==void 0){var m=g.call(f,b);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}var l=_0(),c=l.Buffer,u=Zue,d=u.inspect,p=d&&d.custom||"inspect";function h(f,b,g){c.prototype.copy.call(f,b,g)}return YE=function(){function f(){r(this,f),this.head=null,this.tail=null,this.length=0}return i(f,[{key:"push",value:function(b){var g={data:b,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(b){var g={data:b,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var g=this.head,m=""+g.data;g=g.next;)m+=b+g.data;return m}},{key:"concat",value:function(b){if(this.length===0)return c.alloc(0);for(var g=c.allocUnsafe(b>>>0),m=this.head,k=0;m;)h(m.data,g,k),k+=m.data.length,m=m.next;return g}},{key:"consume",value:function(b,g){var m;return b<this.head.data.length?(m=this.head.data.slice(0,b),this.head.data=this.head.data.slice(b)):b===this.head.data.length?m=this.shift():m=g?this._getString(b):this._getBuffer(b),m}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(b){var g=this.head,m=1,k=g.data;for(b-=k.length;g=g.next;){var x=g.data,j=b>x.length?x.length:b;if(j===x.length?k+=x:k+=x.slice(0,b),b-=j,b===0){j===x.length?(++m,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=x.slice(j));break}++m}return this.length-=m,k}},{key:"_getBuffer",value:function(b){var g=c.allocUnsafe(b),m=this.head,k=1;for(m.data.copy(g),b-=m.data.length;m=m.next;){var x=m.data,j=b>x.length?x.length:b;if(x.copy(g,g.length-b,0,j),b-=j,b===0){j===x.length?(++k,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=x.slice(j));break}++k}return this.length-=k,g}},{key:p,value:function(b,g){return d(this,t(t({},g),{},{depth:0,customInspect:!1}))}}]),f}(),YE}var XE,Yue;function Xue(){if(Yue)return XE;Yue=1;function e(o,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,o)):process.nextTick(n,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(a,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(a,l),s(d)):process.nextTick(a,l)}),this)}function t(o,s){n(o,s),a(o)}function a(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function r(){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 n(o,s){o.emit("error",s)}function i(o,s){var l=o._readableState,c=o._writableState;l&&l.autoDestroy||c&&c.autoDestroy?o.destroy(s):o.emit("error",s)}return XE={destroy:e,undestroy:r,errorOrDestroy:i},XE}var e8={},ede;function iv(){if(ede)return e8;ede=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function a(s,l,c){c||(c=Error);function u(p,h,f){return typeof l=="string"?l:l(p,h,f)}var d=function(p){e(h,p);function h(f,b,g){return p.call(this,u(f,b,g))||this}return h}(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function r(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(u){return String(u)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function n(s,l,c){return s.substr(0,l.length)===l}function i(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function o(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return a("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&n(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be";var d;if(i(s," argument"))d="The ".concat(s," ").concat(u," ").concat(r(l,"type"));else{var p=o(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(p," ").concat(u," ").concat(r(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e8.codes=t,e8}var t8,tde;function ade(){if(tde)return t8;tde=1;var e=iv().codes.ERR_INVALID_OPT_VALUE;function t(r,n,i){return r.highWaterMark!=null?r.highWaterMark:n?r[i]:null}function a(r,n,i,o){var s=t(n,o,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=o?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return r.objectMode?16:16*1024}return t8={getHighWaterMark:a},t8}var a8,rde;function Kgt(){if(rde)return a8;rde=1,a8=e;function e(a,r){if(t("noDeprecation"))return a;var n=!1;function i(){if(!n){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return a.apply(this,arguments)}return i}function t(a){try{if(!globalThis.localStorage)return!1}catch{return!1}var r=globalThis.localStorage[a];return r==null?!1:String(r).toLowerCase()==="true"}return a8}var r8,nde;function ide(){if(nde)return r8;nde=1,r8=M;function e(H){var ae=this;this.next=null,this.entry=null,this.finish=function(){R(ae,H)}}var t;M.WritableState=S;var a={deprecate:Kgt()},r=Uue(),n=_0().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(H){return n.from(H)}function s(H){return n.isBuffer(H)||H instanceof i}var l=Xue(),c=ade(),u=c.getHighWaterMark,d=iv().codes,p=d.ERR_INVALID_ARG_TYPE,h=d.ERR_METHOD_NOT_IMPLEMENTED,f=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,m=d.ERR_STREAM_NULL_VALUES,k=d.ERR_STREAM_WRITE_AFTER_END,x=d.ERR_UNKNOWN_ENCODING,j=l.errorOrDestroy;function w(){}function S(H,ae,U){t=t||ov(),H=H||{},typeof U!="boolean"&&(U=ae instanceof t),this.objectMode=!!H.objectMode,U&&(this.objectMode=this.objectMode||!!H.writableObjectMode),this.highWaterMark=u(this,H,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var pe=H.decodeStrings===!1;this.decodeStrings=!pe,this.defaultEncoding=H.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){re(ae,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=H.emitClose!==!1,this.autoDestroy=!!H.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}S.prototype.getBuffer=function(){for(var H=this.bufferedRequest,ae=[];H;)ae.push(H),H=H.next;return ae},function(){try{Object.defineProperty(S.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var O;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(H){return O.call(this,H)?!0:this!==M?!1:H&&H._writableState instanceof S}})):O=function(H){return H instanceof this};function M(H){t=t||ov();var ae=this instanceof t;if(!ae&&!O.call(M,this))return new M(H);this._writableState=new S(H,this,ae),this.writable=!0,H&&(typeof H.write=="function"&&(this._write=H.write),typeof H.writev=="function"&&(this._writev=H.writev),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.final=="function"&&(this._final=H.final)),r.call(this)}M.prototype.pipe=function(){j(this,new b)};function T(H,ae){var U=new k;j(H,U),process.nextTick(ae,U)}function N(H,ae,U,pe){var Z;return U===null?Z=new m:typeof U!="string"&&!ae.objectMode&&(Z=new p("chunk",["string","Buffer"],U)),Z?(j(H,Z),process.nextTick(pe,Z),!1):!0}M.prototype.write=function(H,ae,U){var pe=this._writableState,Z=!1,A=!pe.objectMode&&s(H);return A&&!n.isBuffer(H)&&(H=o(H)),typeof ae=="function"&&(U=ae,ae=null),A?ae="buffer":ae||(ae=pe.defaultEncoding),typeof U!="function"&&(U=w),pe.ending?T(this,U):(A||N(this,pe,H,U))&&(pe.pendingcb++,Z=L(this,pe,A,H,ae,U)),Z},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var H=this._writableState;H.corked&&(H.corked--,!H.writing&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&he(this,H))},M.prototype.setDefaultEncoding=function(H){if(typeof H=="string"&&(H=H.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((H+"").toLowerCase())>-1))throw new x(H);return this._writableState.defaultEncoding=H,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function G(H,ae,U){return!H.objectMode&&H.decodeStrings!==!1&&typeof ae=="string"&&(ae=n.from(ae,U)),ae}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(H,ae,U,pe,Z,A){if(!U){var E=G(ae,pe,Z);pe!==E&&(U=!0,Z="buffer",pe=E)}var te=ae.objectMode?1:pe.length;ae.length+=te;var V=ae.length<ae.highWaterMark;if(V||(ae.needDrain=!0),ae.writing||ae.corked){var oe=ae.lastBufferedRequest;ae.lastBufferedRequest={chunk:pe,encoding:Z,isBuf:U,callback:A,next:null},oe?oe.next=ae.lastBufferedRequest:ae.bufferedRequest=ae.lastBufferedRequest,ae.bufferedRequestCount+=1}else J(H,ae,!1,te,pe,Z,A);return V}function J(H,ae,U,pe,Z,A,E){ae.writelen=pe,ae.writecb=E,ae.writing=!0,ae.sync=!0,ae.destroyed?ae.onwrite(new g("write")):U?H._writev(Z,ae.onwrite):H._write(Z,A,ae.onwrite),ae.sync=!1}function I(H,ae,U,pe,Z){--ae.pendingcb,U?(process.nextTick(Z,pe),process.nextTick($,H,ae),H._writableState.errorEmitted=!0,j(H,pe)):(Z(pe),H._writableState.errorEmitted=!0,j(H,pe),$(H,ae))}function X(H){H.writing=!1,H.writecb=null,H.length-=H.writelen,H.writelen=0}function re(H,ae){var U=H._writableState,pe=U.sync,Z=U.writecb;if(typeof Z!="function")throw new f;if(X(U),ae)I(H,U,pe,ae,Z);else{var A=F(U)||H.destroyed;!A&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&he(H,U),pe?process.nextTick(le,H,U,A,Z):le(H,U,A,Z)}}function le(H,ae,U,pe){U||ie(H,ae),ae.pendingcb--,pe(),$(H,ae)}function ie(H,ae){ae.length===0&&ae.needDrain&&(ae.needDrain=!1,H.emit("drain"))}function he(H,ae){ae.bufferProcessing=!0;var U=ae.bufferedRequest;if(H._writev&&U&&U.next){var pe=ae.bufferedRequestCount,Z=new Array(pe),A=ae.corkedRequestsFree;A.entry=U;for(var E=0,te=!0;U;)Z[E]=U,U.isBuf||(te=!1),U=U.next,E+=1;Z.allBuffers=te,J(H,ae,!0,ae.length,Z,"",A.finish),ae.pendingcb++,ae.lastBufferedRequest=null,A.next?(ae.corkedRequestsFree=A.next,A.next=null):ae.corkedRequestsFree=new e(ae),ae.bufferedRequestCount=0}else{for(;U;){var V=U.chunk,oe=U.encoding,ue=U.callback,Q=ae.objectMode?1:V.length;if(J(H,ae,!1,Q,V,oe,ue),U=U.next,ae.bufferedRequestCount--,ae.writing)break}U===null&&(ae.lastBufferedRequest=null)}ae.bufferedRequest=U,ae.bufferProcessing=!1}M.prototype._write=function(H,ae,U){U(new h("_write()"))},M.prototype._writev=null,M.prototype.end=function(H,ae,U){var pe=this._writableState;return typeof H=="function"?(U=H,H=null,ae=null):typeof ae=="function"&&(U=ae,ae=null),H!=null&&this.write(H,ae),pe.corked&&(pe.corked=1,this.uncork()),pe.ending||P(this,pe,U),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function F(H){return H.ending&&H.length===0&&H.bufferedRequest===null&&!H.finished&&!H.writing}function D(H,ae){H._final(function(U){ae.pendingcb--,U&&j(H,U),ae.prefinished=!0,H.emit("prefinish"),$(H,ae)})}function W(H,ae){!ae.prefinished&&!ae.finalCalled&&(typeof H._final=="function"&&!ae.destroyed?(ae.pendingcb++,ae.finalCalled=!0,process.nextTick(D,H,ae)):(ae.prefinished=!0,H.emit("prefinish")))}function $(H,ae){var U=F(ae);if(U&&(W(H,ae),ae.pendingcb===0&&(ae.finished=!0,H.emit("finish"),ae.autoDestroy))){var pe=H._readableState;(!pe||pe.autoDestroy&&pe.endEmitted)&&H.destroy()}return U}function P(H,ae,U){ae.ending=!0,$(H,ae),U&&(ae.finished?process.nextTick(U):H.once("finish",U)),ae.ended=!0,H.writable=!1}function R(H,ae,U){var pe=H.entry;for(H.entry=null;pe;){var Z=pe.callback;ae.pendingcb--,Z(U),pe=pe.next}ae.corkedRequestsFree.next=H}return Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(H){this._writableState&&(this._writableState.destroyed=H)}}),M.prototype.destroy=l.destroy,M.prototype._undestroy=l.undestroy,M.prototype._destroy=function(H,ae){ae(H)},r8}var n8,ode;function ov(){if(ode)return n8;ode=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};n8=o;for(var t=fde(),a=ide(),r=e(a.prototype),n=0;n<r.length;n++){var i=r[n];o.prototype[i]||(o.prototype[i]=a.prototype[i])}function o(c){if(!(this instanceof o))return new o(c);t.call(this,c),a.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),n8}var i8={},o8={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var sde;function Hgt(){return sde||(sde=1,function(e,t){var a=_0(),r=a.Buffer;function n(o,s){for(var l in o)s[l]=o[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=a:(n(a,t),t.Buffer=i);function i(o,s,l){return r(o,s,l)}i.prototype=Object.create(r.prototype),n(r,i),i.from=function(o,s,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return r(o,s,l)},i.alloc=function(o,s,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=r(o);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(o)}}(o8,o8.exports)),o8.exports}var lde;function cde(){if(lde)return i8;lde=1;var e=Hgt().Buffer,t=e.isEncoding||function(m){switch(m=""+m,m&&m.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 a(m){if(!m)return"utf8";for(var k;;)switch(m){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 m;default:if(k)return;m=(""+m).toLowerCase(),k=!0}}function r(m){var k=a(m);if(typeof k!="string"&&(e.isEncoding===t||!t(m)))throw new Error("Unknown encoding: "+m);return k||m}i8.StringDecoder=n;function n(m){this.encoding=r(m);var k;switch(this.encoding){case"utf16le":this.text=d,this.end=p,k=4;break;case"utf8":this.fillLast=l,k=4;break;case"base64":this.text=h,this.end=f,k=3;break;default:this.write=b,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(k)}n.prototype.write=function(m){if(m.length===0)return"";var k,x;if(this.lastNeed){if(k=this.fillLast(m),k===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<m.length?k?k+this.text(m,x):this.text(m,x):k||""},n.prototype.end=u,n.prototype.text=c,n.prototype.fillLast=function(m){if(this.lastNeed<=m.length)return m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,m.length),this.lastNeed-=m.length};function i(m){return m<=127?0:m>>5===6?2:m>>4===14?3:m>>3===30?4:m>>6===2?-1:-2}function o(m,k,x){var j=k.length-1;if(j<x)return 0;var w=i(k[j]);return w>=0?(w>0&&(m.lastNeed=w-1),w):--j<x||w===-2?0:(w=i(k[j]),w>=0?(w>0&&(m.lastNeed=w-2),w):--j<x||w===-2?0:(w=i(k[j]),w>=0?(w>0&&(w===2?w=0:m.lastNeed=w-3),w):0))}function s(m,k,x){if((k[0]&192)!==128)return m.lastNeed=0,"\uFFFD";if(m.lastNeed>1&&k.length>1){if((k[1]&192)!==128)return m.lastNeed=1,"\uFFFD";if(m.lastNeed>2&&k.length>2&&(k[2]&192)!==128)return m.lastNeed=2,"\uFFFD"}}function l(m){var k=this.lastTotal-this.lastNeed,x=s(this,m);if(x!==void 0)return x;if(this.lastNeed<=m.length)return m.copy(this.lastChar,k,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,k,0,m.length),this.lastNeed-=m.length}function c(m,k){var x=o(this,m,k);if(!this.lastNeed)return m.toString("utf8",k);this.lastTotal=x;var j=m.length-(x-this.lastNeed);return m.copy(this.lastChar,0,j),m.toString("utf8",k,j)}function u(m){var k=m&&m.length?this.write(m):"";return this.lastNeed?k+"\uFFFD":k}function d(m,k){if((m.length-k)%2===0){var x=m.toString("utf16le",k);if(x){var j=x.charCodeAt(x.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",k,m.length-1)}function p(m){var k=m&&m.length?this.write(m):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return k+this.lastChar.toString("utf16le",0,x)}return k}function h(m,k){var x=(m.length-k)%3;return x===0?m.toString("base64",k):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",k,m.length-x))}function f(m){var k=m&&m.length?this.write(m):"";return this.lastNeed?k+this.lastChar.toString("base64",0,3-this.lastNeed):k}function b(m){return m.toString(this.encoding)}function g(m){return m&&m.length?this.write(m):""}return i8}var s8,ude;function l8(){if(ude)return s8;ude=1;var e=iv().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var o=!1;return function(){if(!o){o=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function a(){}function r(i){return i.setHeader&&typeof i.abort=="function"}function n(i,o,s){if(typeof o=="function")return n(i,null,o);o||(o={}),s=t(s||a);var l=o.readable||o.readable!==!1&&i.readable,c=o.writable||o.writable!==!1&&i.writable,u=function(){i.writable||p()},d=i._writableState&&i._writableState.finished,p=function(){c=!1,d=!0,l||s.call(i)},h=i._readableState&&i._readableState.endEmitted,f=function(){l=!1,h=!0,c||s.call(i)},b=function(k){s.call(i,k)},g=function(){var k;if(l&&!h)return(!i._readableState||!i._readableState.ended)&&(k=new e),s.call(i,k);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(k=new e),s.call(i,k)},m=function(){i.req.on("finish",p)};return r(i)?(i.on("complete",p),i.on("abort",g),i.req?m():i.on("request",m)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",f),i.on("finish",p),o.error!==!1&&i.on("error",b),i.on("close",g),function(){i.removeListener("complete",p),i.removeListener("abort",g),i.removeListener("request",m),i.req&&i.req.removeListener("finish",p),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",p),i.removeListener("end",f),i.removeListener("error",b),i.removeListener("close",g)}}return s8=n,s8}var c8,dde;function Vgt(){if(dde)return c8;dde=1;var e;function t(x,j,w){return j=a(j),j in x?Object.defineProperty(x,j,{value:w,enumerable:!0,configurable:!0,writable:!0}):x[j]=w,x}function a(x){var j=r(x,"string");return typeof j=="symbol"?j:String(j)}function r(x,j){if(typeof x!="object"||x===null)return x;var w=x[Symbol.toPrimitive];if(w!==void 0){var S=w.call(x,j);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(x)}var n=l8(),i=Symbol("lastResolve"),o=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function p(x,j){return{value:x,done:j}}function h(x){var j=x[i];if(j!==null){var w=x[d].read();w!==null&&(x[c]=null,x[i]=null,x[o]=null,j(p(w,!1)))}}function f(x){process.nextTick(h,x)}function b(x,j){return function(w,S){x.then(function(){if(j[l]){w(p(void 0,!0));return}j[u](w,S)},S)}}var g=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var x=this,j=this[s];if(j!==null)return Promise.reject(j);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(M,T){process.nextTick(function(){x[s]?T(x[s]):M(p(void 0,!0))})});var w=this[c],S;if(w)S=new Promise(b(w,this));else{var O=this[d].read();if(O!==null)return Promise.resolve(p(O,!1));S=new Promise(this[u])}return this[c]=S,S}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var x=this;return new Promise(function(j,w){x[d].destroy(null,function(S){if(S){w(S);return}j(p(void 0,!0))})})}),e),g),k=function(x){var j,w=Object.create(m,(j={},t(j,d,{value:x,writable:!0}),t(j,i,{value:null,writable:!0}),t(j,o,{value:null,writable:!0}),t(j,s,{value:null,writable:!0}),t(j,l,{value:x._readableState.endEmitted,writable:!0}),t(j,u,{value:function(S,O){var M=w[d].read();M?(w[c]=null,w[i]=null,w[o]=null,S(p(M,!1))):(w[i]=S,w[o]=O)},writable:!0}),j));return w[c]=null,n(x,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var O=w[o];O!==null&&(w[c]=null,w[i]=null,w[o]=null,O(S)),w[s]=S;return}var M=w[i];M!==null&&(w[c]=null,w[i]=null,w[o]=null,M(p(void 0,!0))),w[l]=!0}),x.on("readable",f.bind(null,w)),w};return c8=k,c8}var pde,hde;function Fgt(){return hde||(hde=1,pde=function(){throw new Error("Readable.from is not available in the browser")}),pde}var u8,mde;function fde(){if(mde)return u8;mde=1,u8=T;var e;T.ReadableState=M;var t=function(A,E){return A.listeners(E).length},a=Uue(),r=_0().Buffer,n=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(A){return r.from(A)}function o(A){return r.isBuffer(A)||A instanceof n}var s=Zue,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=Igt(),u=Xue(),d=ade(),p=d.getHighWaterMark,h=iv().codes,f=h.ERR_INVALID_ARG_TYPE,b=h.ERR_STREAM_PUSH_AFTER_EOF,g=h.ERR_METHOD_NOT_IMPLEMENTED,m=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,k,x,j,w=u.errorOrDestroy,S=["error","close","destroy","pause","resume"];function O(A,E,te){if(typeof A.prependListener=="function")return A.prependListener(E,te);!A._events||!A._events[E]?A.on(E,te):Array.isArray(A._events[E])?A._events[E].unshift(te):A._events[E]=[te,A._events[E]]}function M(A,E,te){e=e||ov(),A=A||{},typeof te!="boolean"&&(te=E instanceof e),this.objectMode=!!A.objectMode,te&&(this.objectMode=this.objectMode||!!A.readableObjectMode),this.highWaterMark=p(this,A,"readableHighWaterMark",te),this.buffer=new c,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=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.destroyed=!1,this.defaultEncoding=A.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,A.encoding&&(k||(k=cde().StringDecoder),this.decoder=new k(A.encoding),this.encoding=A.encoding)}function T(A){if(e=e||ov(),!(this instanceof T))return new T(A);var E=this instanceof e;this._readableState=new M(A,this,E),this.readable=!0,A&&(typeof A.read=="function"&&(this._read=A.read),typeof A.destroy=="function"&&(this._destroy=A.destroy)),a.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(A){this._readableState&&(this._readableState.destroyed=A)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(A,E){E(A)},T.prototype.push=function(A,E){var te=this._readableState,V;return te.objectMode?V=!0:typeof A=="string"&&(E=E||te.defaultEncoding,E!==te.encoding&&(A=r.from(A,E),E=""),V=!0),N(this,A,E,!1,V)},T.prototype.unshift=function(A){return N(this,A,null,!0,!1)};function N(A,E,te,V,oe){l("readableAddChunk",E);var ue=A._readableState;if(E===null)ue.reading=!1,re(A,ue);else{var Q;if(oe||(Q=L(ue,E)),Q)w(A,Q);else if(ue.objectMode||E&&E.length>0)if(typeof E!="string"&&!ue.objectMode&&Object.getPrototypeOf(E)!==r.prototype&&(E=i(E)),V)ue.endEmitted?w(A,new m):G(A,ue,E,!0);else if(ue.ended)w(A,new b);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!te?(E=ue.decoder.write(E),ue.objectMode||E.length!==0?G(A,ue,E,!1):he(A,ue)):G(A,ue,E,!1)}else V||(ue.reading=!1,he(A,ue))}return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function G(A,E,te,V){E.flowing&&E.length===0&&!E.sync?(E.awaitDrain=0,A.emit("data",te)):(E.length+=E.objectMode?1:te.length,V?E.buffer.unshift(te):E.buffer.push(te),E.needReadable&&le(A)),he(A,E)}function L(A,E){var te;return!o(E)&&typeof E!="string"&&E!==void 0&&!A.objectMode&&(te=new f("chunk",["string","Buffer","Uint8Array"],E)),te}T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(A){k||(k=cde().StringDecoder);var E=new k(A);this._readableState.decoder=E,this._readableState.encoding=this._readableState.decoder.encoding;for(var te=this._readableState.buffer.head,V="";te!==null;)V+=E.write(te.data),te=te.next;return this._readableState.buffer.clear(),V!==""&&this._readableState.buffer.push(V),this._readableState.length=V.length,this};var J=1073741824;function I(A){return A>=J?A=J:(A--,A|=A>>>1,A|=A>>>2,A|=A>>>4,A|=A>>>8,A|=A>>>16,A++),A}function X(A,E){return A<=0||E.length===0&&E.ended?0:E.objectMode?1:A!==A?E.flowing&&E.length?E.buffer.head.data.length:E.length:(A>E.highWaterMark&&(E.highWaterMark=I(A)),A<=E.length?A:E.ended?E.length:(E.needReadable=!0,0))}T.prototype.read=function(A){l("read",A),A=parseInt(A,10);var E=this._readableState,te=A;if(A!==0&&(E.emittedReadable=!1),A===0&&E.needReadable&&((E.highWaterMark!==0?E.length>=E.highWaterMark:E.length>0)||E.ended))return l("read: emitReadable",E.length,E.ended),E.length===0&&E.ended?U(this):le(this),null;if(A=X(A,E),A===0&&E.ended)return E.length===0&&U(this),null;var V=E.needReadable;l("need readable",V),(E.length===0||E.length-A<E.highWaterMark)&&(V=!0,l("length less than watermark",V)),E.ended||E.reading?(V=!1,l("reading or ended",V)):V&&(l("do read"),E.reading=!0,E.sync=!0,E.length===0&&(E.needReadable=!0),this._read(E.highWaterMark),E.sync=!1,E.reading||(A=X(te,E)));var oe;return A>0?oe=ae(A,E):oe=null,oe===null?(E.needReadable=E.length<=E.highWaterMark,A=0):(E.length-=A,E.awaitDrain=0),E.length===0&&(E.ended||(E.needReadable=!0),te!==A&&E.ended&&U(this)),oe!==null&&this.emit("data",oe),oe};function re(A,E){if(l("onEofChunk"),!E.ended){if(E.decoder){var te=E.decoder.end();te&&te.length&&(E.buffer.push(te),E.length+=E.objectMode?1:te.length)}E.ended=!0,E.sync?le(A):(E.needReadable=!1,E.emittedReadable||(E.emittedReadable=!0,ie(A)))}}function le(A){var E=A._readableState;l("emitReadable",E.needReadable,E.emittedReadable),E.needReadable=!1,E.emittedReadable||(l("emitReadable",E.flowing),E.emittedReadable=!0,process.nextTick(ie,A))}function ie(A){var E=A._readableState;l("emitReadable_",E.destroyed,E.length,E.ended),!E.destroyed&&(E.length||E.ended)&&(A.emit("readable"),E.emittedReadable=!1),E.needReadable=!E.flowing&&!E.ended&&E.length<=E.highWaterMark,H(A)}function he(A,E){E.readingMore||(E.readingMore=!0,process.nextTick(F,A,E))}function F(A,E){for(;!E.reading&&!E.ended&&(E.length<E.highWaterMark||E.flowing&&E.length===0);){var te=E.length;if(l("maybeReadMore read 0"),A.read(0),te===E.length)break}E.readingMore=!1}T.prototype._read=function(A){w(this,new g("_read()"))},T.prototype.pipe=function(A,E){var te=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=A;break;case 1:V.pipes=[V.pipes,A];break;default:V.pipes.push(A);break}V.pipesCount+=1,l("pipe count=%d opts=%j",V.pipesCount,E);var oe=(!E||E.end!==!1)&&A!==null&&A!==process.stderr,ue=oe?se:Je;V.endEmitted?process.nextTick(ue):te.once("end",ue),A.on("unpipe",Q);function Q(B,ne){l("onunpipe"),B===te&&ne&&ne.hasUnpiped===!1&&(ne.hasUnpiped=!0,ge())}function se(){l("onend"),A.end()}var de=D(te);A.on("drain",de);var be=!1;function ge(){l("cleanup"),A.removeListener("close",Se),A.removeListener("finish",Ce),A.removeListener("drain",de),A.removeListener("error",ve),A.removeListener("unpipe",Q),te.removeListener("end",se),te.removeListener("end",Je),te.removeListener("data",me),be=!0,V.awaitDrain&&(!A._writableState||A._writableState.needDrain)&&de()}te.on("data",me);function me(B){l("ondata");var ne=A.write(B);l("dest.write",ne),ne===!1&&((V.pipesCount===1&&V.pipes===A||V.pipesCount>1&&Z(V.pipes,A)!==-1)&&!be&&(l("false write response, pause",V.awaitDrain),V.awaitDrain++),te.pause())}function ve(B){l("onerror",B),Je(),A.removeListener("error",ve),t(A,"error")===0&&w(A,B)}O(A,"error",ve);function Se(){A.removeListener("finish",Ce),Je()}A.once("close",Se);function Ce(){l("onfinish"),A.removeListener("close",Se),Je()}A.once("finish",Ce);function Je(){l("unpipe"),te.unpipe(A)}return A.emit("pipe",te),V.flowing||(l("pipe resume"),te.resume()),A};function D(A){return function(){var E=A._readableState;l("pipeOnDrain",E.awaitDrain),E.awaitDrain&&E.awaitDrain--,E.awaitDrain===0&&t(A,"data")&&(E.flowing=!0,H(A))}}T.prototype.unpipe=function(A){var E=this._readableState,te={hasUnpiped:!1};if(E.pipesCount===0)return this;if(E.pipesCount===1)return A&&A!==E.pipes?this:(A||(A=E.pipes),E.pipes=null,E.pipesCount=0,E.flowing=!1,A&&A.emit("unpipe",this,te),this);if(!A){var V=E.pipes,oe=E.pipesCount;E.pipes=null,E.pipesCount=0,E.flowing=!1;for(var ue=0;ue<oe;ue++)V[ue].emit("unpipe",this,{hasUnpiped:!1});return this}var Q=Z(E.pipes,A);return Q===-1?this:(E.pipes.splice(Q,1),E.pipesCount-=1,E.pipesCount===1&&(E.pipes=E.pipes[0]),A.emit("unpipe",this,te),this)},T.prototype.on=function(A,E){var te=a.prototype.on.call(this,A,E),V=this._readableState;return A==="data"?(V.readableListening=this.listenerCount("readable")>0,V.flowing!==!1&&this.resume()):A==="readable"&&!V.endEmitted&&!V.readableListening&&(V.readableListening=V.needReadable=!0,V.flowing=!1,V.emittedReadable=!1,l("on readable",V.length,V.reading),V.length?le(this):V.reading||process.nextTick($,this)),te},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(A,E){var te=a.prototype.removeListener.call(this,A,E);return A==="readable"&&process.nextTick(W,this),te},T.prototype.removeAllListeners=function(A){var E=a.prototype.removeAllListeners.apply(this,arguments);return(A==="readable"||A===void 0)&&process.nextTick(W,this),E};function W(A){var E=A._readableState;E.readableListening=A.listenerCount("readable")>0,E.resumeScheduled&&!E.paused?E.flowing=!0:A.listenerCount("data")>0&&A.resume()}function $(A){l("readable nexttick read 0"),A.read(0)}T.prototype.resume=function(){var A=this._readableState;return A.flowing||(l("resume"),A.flowing=!A.readableListening,P(this,A)),A.paused=!1,this};function P(A,E){E.resumeScheduled||(E.resumeScheduled=!0,process.nextTick(R,A,E))}function R(A,E){l("resume",E.reading),E.reading||A.read(0),E.resumeScheduled=!1,A.emit("resume"),H(A),E.flowing&&!E.reading&&A.read(0)}T.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function H(A){var E=A._readableState;for(l("flow",E.flowing);E.flowing&&A.read()!==null;);}T.prototype.wrap=function(A){var E=this,te=this._readableState,V=!1;A.on("end",function(){if(l("wrapped end"),te.decoder&&!te.ended){var Q=te.decoder.end();Q&&Q.length&&E.push(Q)}E.push(null)}),A.on("data",function(Q){if(l("wrapped data"),te.decoder&&(Q=te.decoder.write(Q)),!(te.objectMode&&Q==null)&&!(!te.objectMode&&(!Q||!Q.length))){var se=E.push(Q);se||(V=!0,A.pause())}});for(var oe in A)this[oe]===void 0&&typeof A[oe]=="function"&&(this[oe]=function(Q){return function(){return A[Q].apply(A,arguments)}}(oe));for(var ue=0;ue<S.length;ue++)A.on(S[ue],this.emit.bind(this,S[ue]));return this._read=function(Q){l("wrapped _read",Q),V&&(V=!1,A.resume())},this},typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return x===void 0&&(x=Vgt()),x(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(A){this._readableState&&(this._readableState.flowing=A)}}),T._fromList=ae,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ae(A,E){if(E.length===0)return null;var te;return E.objectMode?te=E.buffer.shift():!A||A>=E.length?(E.decoder?te=E.buffer.join(""):E.buffer.length===1?te=E.buffer.first():te=E.buffer.concat(E.length),E.buffer.clear()):te=E.buffer.consume(A,E.decoder),te}function U(A){var E=A._readableState;l("endReadable",E.endEmitted),E.endEmitted||(E.ended=!0,process.nextTick(pe,E,A))}function pe(A,E){if(l("endReadableNT",A.endEmitted,A.length),!A.endEmitted&&A.length===0&&(A.endEmitted=!0,E.readable=!1,E.emit("end"),A.autoDestroy)){var te=E._writableState;(!te||te.autoDestroy&&te.finished)&&E.destroy()}}typeof Symbol=="function"&&(T.from=function(A,E){return j===void 0&&(j=Fgt()),j(T,A,E)});function Z(A,E){for(var te=0,V=A.length;te<V;te++)if(A[te]===E)return te;return-1}return u8}var d8,gde;function vde(){if(gde)return d8;gde=1,d8=s;var e=iv().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,a=e.ERR_MULTIPLE_CALLBACK,r=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=e.ERR_TRANSFORM_WITH_LENGTH_0,i=ov();function o(u,d){var p=this._transformState;p.transforming=!1;var h=p.writecb;if(h===null)return this.emit("error",new a);p.writechunk=null,p.writecb=null,d!=null&&this.push(d),h(u);var f=this._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);i.call(this,u),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function l(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(d,p){c(u,d,p)}):c(this,null,null)}s.prototype.push=function(u,d){return this._transformState.needTransform=!1,i.prototype.push.call(this,u,d)},s.prototype._transform=function(u,d,p){p(new t("_transform()"))},s.prototype._write=function(u,d,p){var h=this._transformState;if(h.writecb=p,h.writechunk=u,h.writeencoding=d,!h.transforming){var f=this._readableState;(h.needTransform||f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}},s.prototype._read=function(u){var d=this._transformState;d.writechunk!==null&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},s.prototype._destroy=function(u,d){i.prototype._destroy.call(this,u,function(p){d(p)})};function c(u,d,p){if(d)return u.emit("error",d);if(p!=null&&u.push(p),u._writableState.length)throw new n;if(u._transformState.transforming)throw new r;return u.push(null)}return d8}var p8,bde;function Ggt(){if(bde)return p8;bde=1,p8=t;var e=vde();function t(a){if(!(this instanceof t))return new t(a);e.call(this,a)}return t.prototype._transform=function(a,r,n){n(null,a)},p8}var h8,kde;function qgt(){if(kde)return h8;kde=1;var e;function t(p){var h=!1;return function(){h||(h=!0,p.apply(void 0,arguments))}}var a=iv().codes,r=a.ERR_MISSING_ARGS,n=a.ERR_STREAM_DESTROYED;function i(p){if(p)throw p}function o(p){return p.setHeader&&typeof p.abort=="function"}function s(p,h,f,b){b=t(b);var g=!1;p.on("close",function(){g=!0}),e===void 0&&(e=l8()),e(p,{readable:h,writable:f},function(k){if(k)return b(k);g=!0,b()});var m=!1;return function(k){if(!g&&!m){if(m=!0,o(p))return p.abort();if(typeof p.destroy=="function")return p.destroy();b(k||new n("pipe"))}}}function l(p){p()}function c(p,h){return p.pipe(h)}function u(p){return!p.length||typeof p[p.length-1]!="function"?i:p.pop()}function d(){for(var p=arguments.length,h=new Array(p),f=0;f<p;f++)h[f]=arguments[f];var b=u(h);if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new r("streams");var g,m=h.map(function(k,x){var j=x<h.length-1,w=x>0;return s(k,j,w,function(S){g||(g=S),S&&m.forEach(l),!j&&(m.forEach(l),b(g))})});return h.reduce(c)}return h8=d,h8}var yde;function xde(){return yde||(yde=1,function(e,t){t=e.exports=fde(),t.Stream=t,t.Readable=t,t.Writable=ide(),t.Duplex=ov(),t.Transform=vde(),t.PassThrough=Ggt(),t.finished=l8(),t.pipeline=qgt()}(QE,QE.exports)),QE.exports}var wde;function zde(){if(wde)return VC;wde=1;var e=Gue(),t=KN(),a=xde(),r=VC.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=VC.IncomingMessage=function(i,o,s,l){var c=this;if(a.Readable.call(c),c._mode=s,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){process.nextTick(function(){c.emit("close")})}),s==="fetch"){let b=function(){d.read().then(function(g){if(!c._destroyed){if(l(g.done),g.done){c.push(null);return}c.push(Buffer.from(g.value)),b()}}).catch(function(g){l(!0),c._destroyed||c.emit("error",g)})};if(c._fetchResponse=o,c.url=o.url,c.statusCode=o.status,c.statusMessage=o.statusText,o.headers.forEach(function(g,m){c.headers[m.toLowerCase()]=g,c.rawHeaders.push(m,g)}),e.writableStream){var u=new WritableStream({write:function(g){return l(!1),new Promise(function(m,k){c._destroyed?k():c.push(Buffer.from(g))?m():c._resumeFetch=m})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(g){l(!0),c._destroyed||c.emit("error",g)}});try{o.body.pipeTo(u).catch(function(g){l(!0),c._destroyed||c.emit("error",g)});return}catch{}}var d=o.body.getReader();b()}else{c._xhr=i,c._pos=0,c.url=i.responseURL,c.statusCode=i.status,c.statusMessage=i.statusText;var p=i.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(b){var g=b.match(/^([^:]+):\s*(.*)/);if(g){var m=g[1].toLowerCase();m==="set-cookie"?(c.headers[m]===void 0&&(c.headers[m]=[]),c.headers[m].push(g[2])):c.headers[m]!==void 0?c.headers[m]+=", "+g[2]:c.headers[m]=g[2],c.rawHeaders.push(g[1],g[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var h=c.rawHeaders["mime-type"];if(h){var f=h.match(/;\s*charset=([^;])(;|$)/);f&&(c._charset=f[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(n,a.Readable),n.prototype._read=function(){var i=this,o=i._resumeFetch;o&&(i._resumeFetch=null,o())},n.prototype._onXHRProgress=function(i){var o=this,s=o._xhr,l=null;switch(o._mode){case"text":if(l=s.responseText,l.length>o._pos){var c=l.substr(o._pos);if(o._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;o.push(u)}else o.push(c,o._charset);o._pos=l.length}break;case"arraybuffer":if(s.readyState!==r.DONE||!s.response)break;l=s.response,o.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==r.LOADING||!l)break;o.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==r.LOADING)break;var p=new globalThis.MSStreamReader;p.onprogress=function(){p.result.byteLength>o._pos&&(o.push(Buffer.from(new Uint8Array(p.result.slice(o._pos)))),o._pos=p.result.byteLength)},p.onload=function(){i(!0),o.push(null)},p.readAsArrayBuffer(l);break}o._xhr.readyState===r.DONE&&o._mode!=="ms-stream"&&(i(!0),o.push(null))},VC}var Sde;function Wgt(){if(Sde)return ZE.exports;Sde=1;var e=Gue(),t=KN(),a=zde(),r=xde(),n=a.IncomingMessage,i=a.readyStates;function o(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=ZE.exports=function(u){var d=this;r.Writable.call(d),d._opts=u,d._body=[],d._headers={},u.auth&&d.setHeader("Authorization","Basic "+Buffer.from(u.auth).toString("base64")),Object.keys(u.headers).forEach(function(f){d.setHeader(f,u.headers[f])});var p,h=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)h=!1,p=!0;else if(u.mode==="prefer-streaming")p=!1;else if(u.mode==="allow-wrong-content-type")p=!e.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")p=!0;else throw new Error("Invalid value for opts.mode");d._mode=o(p,h),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,r.Writable),s.prototype.setHeader=function(u,d){var p=this,h=u.toLowerCase();c.indexOf(h)===-1&&(p._headers[h]={name:u,value:d})},s.prototype.getHeader=function(u){var d=this._headers[u.toLowerCase()];return d?d.value:null},s.prototype.removeHeader=function(u){var d=this;delete d._headers[u.toLowerCase()]},s.prototype._onFinish=function(){var u=this;if(!u._destroyed){var d=u._opts;"timeout"in d&&d.timeout!==0&&u.setTimeout(d.timeout);var p=u._headers,h=null;d.method!=="GET"&&d.method!=="HEAD"&&(h=new Blob(u._body,{type:(p["content-type"]||{}).value||""}));var f=[];if(Object.keys(p).forEach(function(k){var x=p[k].name,j=p[k].value;Array.isArray(j)?j.forEach(function(w){f.push([x,w])}):f.push([x,j])}),u._mode==="fetch"){var b=null;if(e.abortController){var g=new AbortController;b=g.signal,u._fetchAbortController=g,"requestTimeout"in d&&d.requestTimeout!==0&&(u._fetchTimer=globalThis.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},d.requestTimeout))}globalThis.fetch(u._opts.url,{method:u._opts.method,headers:f,body:h||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:b}).then(function(k){u._fetchResponse=k,u._resetTimers(!1),u._connect()},function(k){u._resetTimers(!0),u._destroyed||u.emit("error",k)})}else{var m=u._xhr=new globalThis.XMLHttpRequest;try{m.open(u._opts.method,u._opts.url,!0)}catch(k){process.nextTick(function(){u.emit("error",k)});return}"responseType"in m&&(m.responseType=u._mode),"withCredentials"in m&&(m.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in m&&m.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(m.timeout=d.requestTimeout,m.ontimeout=function(){u.emit("requestTimeout")}),f.forEach(function(k){m.setRequestHeader(k[0],k[1])}),u._response=null,m.onreadystatechange=function(){switch(m.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(m.onprogress=function(){u._onXHRProgress()}),m.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{m.send(h)}catch(k){process.nextTick(function(){u.emit("error",k)});return}}}};function l(u){try{var d=u.status;return d!==null&&d!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var u=this;u._resetTimers(!1),!(!l(u._xhr)||u._destroyed)&&(u._response||u._connect(),u._response._onXHRProgress(u._resetTimers.bind(u)))},s.prototype._connect=function(){var u=this;u._destroyed||(u._response=new n(u._xhr,u._fetchResponse,u._mode,u._resetTimers.bind(u)),u._response.on("error",function(d){u.emit("error",d)}),u.emit("response",u._response))},s.prototype._write=function(u,d,p){var h=this;h._body.push(u),p()},s.prototype._resetTimers=function(u){var d=this;globalThis.clearTimeout(d._socketTimer),d._socketTimer=null,u?(globalThis.clearTimeout(d._fetchTimer),d._fetchTimer=null):d._socketTimeout&&(d._socketTimer=globalThis.setTimeout(function(){d.emit("timeout")},d._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(u){var d=this;d._destroyed=!0,d._resetTimers(!0),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort(),u&&d.emit("error",u)},s.prototype.end=function(u,d,p){var h=this;typeof u=="function"&&(p=u,u=void 0),r.Writable.prototype.end.call(h,u,d,p)},s.prototype.setTimeout=function(u,d){var p=this;d&&p.once("timeout",d),p._socketTimeout=u,p._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var c=["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","via"];return ZE.exports}var m8,jde;function Jgt(){if(jde)return m8;jde=1,m8=t;var e=Object.prototype.hasOwnProperty;function t(){for(var a={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(a[i]=n[i])}return a}return m8}var Ode,Cde;function Ugt(){return Cde||(Cde=1,Ode={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"}),Ode}var Ade;function Zgt(){return Ade||(Ade=1,function(e){var t=Wgt(),a=zde(),r=Jgt(),n=Ugt(),i=EE(),o=e;o.request=function(s,l){typeof s=="string"?s=i.parse(s):s=r(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,p=s.port,h=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(p?":"+p:"")+h,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var f=new t(s);return l&&f.on("response",l),f},o.get=function(s,l){var c=o.request(s,l);return c.end(),c},o.ClientRequest=t,o.IncomingMessage=a.IncomingMessage,o.Agent=function(){},o.Agent.defaultMaxSockets=4,o.globalAgent=new o.Agent,o.STATUS_CODES=n,o.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"]}(Hue)),Hue}var Pde,Mde;function Qgt(){return Mde||(Mde=1,Pde={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},Zgt().STATUS_CODES)}),Pde}const Ygt="7.0.8",Xgt={version:Ygt};var f8,Tde;function evt(){if(Tde)return f8;Tde=1;const e=nv,t=EE(),a=Rgt(),r=nv,n=nv,i=KC(),o=i.jptr,s=KE().isRef,l=HC().clone,c=HC().circularClone,u=FE().recurse,d=Lgt(),p=Dgt(),h=$ue(),f=Qgt().statusCodes,b=Xgt.version,g="3.0.0";let m;class k extends Error{constructor(E){super(E),this.name="S2OError"}}function x(A,E){let te=new k(A);if(te.options=E,E.promise)E.promise.reject(te);else throw te}function j(A,E,te){te.warnOnly?E[te.warnProperty||"x-s2o-warning"]=A:x(A,te)}function w(A,E,te){if(A.nullable&&te.patches++,A.discriminator&&typeof A.discriminator=="string"&&(A.discriminator={propertyName:A.discriminator}),A.items&&Array.isArray(A.items)&&(A.items.length===0?A.items={}:A.items.length===1?A.items=A.items[0]:A.items={anyOf:A.items}),A.type&&Array.isArray(A.type))if(te.patch){if(te.patches++,A.type.length===0)delete A.type;else{A.oneOf||(A.oneOf=[]);for(let V of A.type){let oe={};if(V==="null")A.nullable=!0;else{oe.type=V;for(let ue of h.arrayProperties)typeof A.prop<"u"&&(oe[ue]=A[ue],delete A[ue])}oe.type&&A.oneOf.push(oe)}delete A.type,A.oneOf.length===0?delete A.oneOf:A.oneOf.length<2&&(A.type=A.oneOf[0].type,Object.keys(A.oneOf[0]).length>1&&j("Lost properties from oneOf",A,te),delete A.oneOf)}A.type&&Array.isArray(A.type)&&A.type.length===1&&(A.type=A.type[0])}else x("(Patchable) schema type must not be an array",te);A.type&&A.type==="null"&&(delete A.type,A.nullable=!0),A.type==="array"&&!A.items&&(A.items={}),A.type==="file"&&(A.type="string",A.format="binary"),typeof A.required=="boolean"&&(A.required&&A.name&&(typeof E.required>"u"&&(E.required=[]),Array.isArray(E.required)&&E.required.push(A.name)),delete A.required),A.xml&&typeof A.xml.namespace=="string"&&(A.xml.namespace||delete A.xml.namespace),typeof A.allowEmptyValue<"u"&&(te.patches++,delete A.allowEmptyValue)}function S(A,E){if(A["x-required"]&&Array.isArray(A["x-required"])&&(A.required||(A.required=[]),A.required=A.required.concat(A["x-required"]),delete A["x-required"]),A["x-anyOf"]&&(A.anyOf=A["x-anyOf"],delete A["x-anyOf"]),A["x-oneOf"]&&(A.oneOf=A["x-oneOf"],delete A["x-oneOf"]),A["x-not"]&&(A.not=A["x-not"],delete A["x-not"]),typeof A["x-nullable"]=="boolean"&&(A.nullable=A["x-nullable"],delete A["x-nullable"]),typeof A["x-discriminator"]=="object"&&typeof A["x-discriminator"].propertyName=="string"){A.discriminator=A["x-discriminator"],delete A["x-discriminator"];for(let te in A.discriminator.mapping){let V=A.discriminator.mapping[te];V.startsWith("#/definitions/")&&(A.discriminator.mapping[te]=V.replace("#/definitions/","#/components/schemas/"))}}}function O(A,E){p.walkSchema(A,{},{},function(te,V,oe){S(te),w(te,V,E)})}function M(A){return A.indexOf("#")>=0?A=A.split("#")[1].split("/").pop():A=A.split("/").pop().split(".")[0],encodeURIComponent(h.sanitise(A))}function T(A,E,te){let V=te.payload.options;if(s(A,E)){if(!A[E].startsWith("#/components/")){if(A[E]==="#/consumes")delete A[E],te.parent[te.pkey]=l(V.openapi.consumes);else if(A[E]==="#/produces")delete A[E],te.parent[te.pkey]=l(V.openapi.produces);else if(A[E].startsWith("#/definitions/")){let oe=A[E].replace("#/definitions/","").split("/");const ue=i.jpunescape(oe[0]);let Q=m.schemas[decodeURIComponent(ue)];Q?oe[0]=Q:j("Could not resolve reference "+A[E],A,V),A[E]="#/components/schemas/"+oe.join("/")}else if(A[E].startsWith("#/parameters/"))A[E]="#/components/parameters/"+h.sanitise(A[E].replace("#/parameters/",""));else if(A[E].startsWith("#/responses/"))A[E]="#/components/responses/"+h.sanitise(A[E].replace("#/responses/",""));else if(A[E].startsWith("#")){let oe=l(i.jptr(V.openapi,A[E]));if(oe===!1)j("direct $ref not found "+A[E],A,V);else if(V.refmap[A[E]])A[E]=V.refmap[A[E]];else{let ue=A[E];ue=ue.replace("/properties/headers/",""),ue=ue.replace("/properties/responses/",""),ue=ue.replace("/properties/parameters/",""),ue=ue.replace("/properties/schemas/","");let Q="schemas",se=ue.lastIndexOf("/schema");if(Q=ue.indexOf("/headers/")>se?"headers":ue.indexOf("/responses/")>se?"responses":ue.indexOf("/example")>se?"examples":ue.indexOf("/x-")>se?"extensions":ue.indexOf("/parameters/")>se?"parameters":"schemas",Q==="schemas"&&O(oe,V),Q!=="responses"&&Q!=="extensions"){let de=Q.substr(0,Q.length-1);de==="parameter"&&oe.name&&oe.name===h.sanitise(oe.name)&&(de=encodeURIComponent(oe.name));let be=1;for(A["x-miro"]&&(de=M(A["x-miro"]),be="");i.jptr(V.openapi,"#/components/"+Q+"/"+de+be);)be=be===""?2:++be;let ge="#/components/"+Q+"/"+de+be,me="";Q==="examples"&&(oe={value:oe},me="/value"),i.jptr(V.openapi,ge,oe),V.refmap[A[E]]=ge+me,A[E]=ge+me}}}}if(delete A["x-miro"],Object.keys(A).length>1){const oe=A[E],ue=te.path.indexOf("/schema")>=0;V.refSiblings==="preserve"||(ue&&V.refSiblings==="allOf"?(delete A.$ref,te.parent[te.pkey]={allOf:[{$ref:oe},A]}):te.parent[te.pkey]={$ref:oe})}}if(E==="x-ms-odata"&&typeof A[E]=="string"&&A[E].startsWith("#/")){let oe=A[E].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ue=m.schemas[decodeURIComponent(oe[0])];ue?oe[0]=ue:j("Could not resolve reference "+A[E],A,V),A[E]="#/components/schemas/"+oe.join("/")}}function N(A,E){for(let te in E.refmap)i.jptr(A,te,{$ref:E.refmap[te]})}function G(A){for(let E in A)for(let te in A[E]){let V=h.sanitise(te);te!==V&&(A[E][V]=A[E][te],delete A[E][te])}}function L(A,E){if(A.type==="basic"&&(A.type="http",A.scheme="basic"),A.type==="oauth2"){let te={},V=A.flow;A.flow==="application"&&(V="clientCredentials"),A.flow==="accessCode"&&(V="authorizationCode"),typeof A.authorizationUrl<"u"&&(te.authorizationUrl=A.authorizationUrl.split("?")[0].trim()||"/"),typeof A.tokenUrl=="string"&&(te.tokenUrl=A.tokenUrl.split("?")[0].trim()||"/"),te.scopes=A.scopes||{},A.flows={},A.flows[V]=te,delete A.flow,delete A.authorizationUrl,delete A.tokenUrl,delete A.scopes,typeof A.name<"u"&&(E.patch?(E.patches++,delete A.name):x("(Patchable) oauth2 securitySchemes should not have name property",E))}}function J(A){return A&&!A["x-s2o-delete"]}function I(A,E){if(A.$ref)A.$ref=A.$ref.replace("#/responses/","#/components/responses/");else{A.type&&!A.schema&&(A.schema={}),A.type&&(A.schema.type=A.type),A.items&&A.items.type!=="array"&&(A.items.collectionFormat!==A.collectionFormat&&j("Nested collectionFormats are not supported",A,E),delete A.items.collectionFormat),A.type==="array"?(A.collectionFormat==="ssv"?j("collectionFormat:ssv is no longer supported for headers",A,E):A.collectionFormat==="pipes"?j("collectionFormat:pipes is no longer supported for headers",A,E):A.collectionFormat==="multi"?A.explode=!0:A.collectionFormat==="tsv"?(j("collectionFormat:tsv is no longer supported",A,E),A["x-collectionFormat"]="tsv"):A.style="simple",delete A.collectionFormat):A.collectionFormat&&(E.patch?(E.patches++,delete A.collectionFormat):x("(Patchable) collectionFormat is only applicable to header.type array",E)),delete A.type;for(let te of h.parameterTypeProperties)typeof A[te]<"u"&&(A.schema[te]=A[te],delete A[te]);for(let te of h.arrayProperties)typeof A[te]<"u"&&(A.schema[te]=A[te],delete A[te])}}function X(A,E){if(A.$ref.indexOf("#/parameters/")>=0){let te=A.$ref.split("#/parameters/");A.$ref=te[0]+"#/components/parameters/"+h.sanitise(te[1])}A.$ref.indexOf("#/definitions/")>=0&&j("Definition used as parameter",A,E)}function re(A,E){let te={};for(let V of Object.keys(A))te[V]=A[V],V==="parameters"&&(te.requestBody={},E.rbname&&(te[E.rbname]=""));return te.requestBody={},te}function le(A,E,te,V,oe,ue,Q){let se={},de=!0,be;if(E&&E.consumes&&typeof E.consumes=="string")if(Q.patch)Q.patches++,E.consumes=[E.consumes];else return x("(Patchable) operation.consumes must be an array",Q);Array.isArray(ue.consumes)||delete ue.consumes;let ge=((E?E.consumes:null)||ue.consumes||[]).filter(h.uniqueOnly);if(A&&A.$ref&&typeof A.$ref=="string"){X(A,Q);let me=decodeURIComponent(A.$ref.replace("#/components/parameters/","")),ve=!1,Se=ue.components.parameters[me];if((!Se||Se["x-s2o-delete"])&&A.$ref.startsWith("#/")&&(A["x-s2o-delete"]=!0,ve=!0),ve){let Ce=A.$ref,Je=o(ue,A.$ref);!Je&&Ce.startsWith("#/")?j("Could not resolve reference "+Ce,A,Q):Je&&(A=Je)}}if(A&&(A.name||A.in)){typeof A["x-deprecated"]=="boolean"&&(A.deprecated=A["x-deprecated"],delete A["x-deprecated"]),typeof A["x-example"]<"u"&&(A.example=A["x-example"],delete A["x-example"]),A.in!=="body"&&!A.type&&(Q.patch?(Q.patches++,A.type="string"):x("(Patchable) parameter.type is mandatory for non-body parameters",Q)),A.type&&typeof A.type=="object"&&A.type.$ref&&(A.type=o(ue,A.type.$ref)),A.type==="file"&&(A["x-s2o-originalType"]=A.type,be=A.type),A.description&&typeof A.description=="object"&&A.description.$ref&&(A.description=o(ue,A.description.$ref)),A.description===null&&delete A.description;let me=A.collectionFormat;if(A.type==="array"&&!me&&(me="csv"),me&&(A.type!=="array"&&(Q.patch?(Q.patches++,delete A.collectionFormat):x("(Patchable) collectionFormat is only applicable to param.type array",Q)),me==="csv"&&(A.in==="query"||A.in==="cookie")&&(A.style="form",A.explode=!1),me==="csv"&&(A.in==="path"||A.in==="header")&&(A.style="simple"),me==="ssv"&&(A.in==="query"?A.style="spaceDelimited":j("collectionFormat:ssv is no longer supported except for in:query parameters",A,Q)),me==="pipes"&&(A.in==="query"?A.style="pipeDelimited":j("collectionFormat:pipes is no longer supported except for in:query parameters",A,Q)),me==="multi"&&(A.explode=!0),me==="tsv"&&(j("collectionFormat:tsv is no longer supported",A,Q),A["x-collectionFormat"]="tsv"),delete A.collectionFormat),A.type&&A.type!=="body"&&A.in!=="formData")if(A.items&&A.schema)j("parameter has array,items and schema",A,Q);else{A.schema&&Q.patches++,(!A.schema||typeof A.schema!="object")&&(A.schema={}),A.schema.type=A.type,A.items&&(A.schema.items=A.items,delete A.items,u(A.schema.items,null,function(ve,Se,Ce){Se==="collectionFormat"&&typeof ve[Se]=="string"&&(me&&ve[Se]!==me&&j("Nested collectionFormats are not supported",A,Q),delete ve[Se])}));for(let ve of h.parameterTypeProperties)typeof A[ve]<"u"&&(A.schema[ve]=A[ve]),delete A[ve]}A.schema&&O(A.schema,Q),A["x-ms-skip-url-encoding"]&&A.in==="query"&&(A.allowReserved=!0,delete A["x-ms-skip-url-encoding"])}if(A&&A.in==="formData"){de=!1,se.content={};let me="application/x-www-form-urlencoded";if(ge.length&&ge.indexOf("multipart/form-data")>=0&&(me="multipart/form-data"),se.content[me]={},A.schema)se.content[me].schema=A.schema,A.schema.$ref&&(se["x-s2o-name"]=decodeURIComponent(A.schema.$ref.replace("#/components/schemas/","")));else{se.content[me].schema={},se.content[me].schema.type="object",se.content[me].schema.properties={},se.content[me].schema.properties[A.name]={};let ve=se.content[me].schema,Se=se.content[me].schema.properties[A.name];A.description&&(Se.description=A.description),A.example&&(Se.example=A.example),A.type&&(Se.type=A.type);for(let Ce of h.parameterTypeProperties)typeof A[Ce]<"u"&&(Se[Ce]=A[Ce]);A.required===!0&&(ve.required||(ve.required=[]),ve.required.push(A.name),se.required=!0),typeof A.default<"u"&&(Se.default=A.default),Se.properties&&(Se.properties=A.properties),A.allOf&&(Se.allOf=A.allOf),A.type==="array"&&A.items&&(Se.items=A.items,Se.items.collectionFormat&&delete Se.items.collectionFormat),(be==="file"||A["x-s2o-originalType"]==="file")&&(Se.type="string",Se.format="binary"),ie(A,Se)}}else A&&A.type==="file"&&(A.required&&(se.required=A.required),se.content={},se.content["application/octet-stream"]={},se.content["application/octet-stream"].schema={},se.content["application/octet-stream"].schema.type="string",se.content["application/octet-stream"].schema.format="binary",ie(A,se));if(A&&A.in==="body"){se.content={},A.name&&(se["x-s2o-name"]=(E&&E.operationId?h.sanitiseAll(E.operationId):"")+("_"+A.name).toCamelCase()),A.description&&(se.description=A.description),A.required&&(se.required=A.required),E&&Q.rbname&&A.name&&(E[Q.rbname]=A.name),A.schema&&A.schema.$ref?se["x-s2o-name"]=decodeURIComponent(A.schema.$ref.replace("#/components/schemas/","")):A.schema&&A.schema.type==="array"&&A.schema.items&&A.schema.items.$ref&&(se["x-s2o-name"]=decodeURIComponent(A.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),ge.length||ge.push("application/json");for(let me of ge)se.content[me]={},se.content[me].schema=l(A.schema||{}),O(se.content[me].schema,Q);ie(A,se)}if(Object.keys(se).length>0&&(A["x-s2o-delete"]=!0,E))if(E.requestBody&&de){E.requestBody["x-s2o-overloaded"]=!0;let me=E.operationId||oe;j("Operation "+me+" has multiple requestBodies",E,Q)}else E.requestBody||(E=te[V]=re(E,Q)),E.requestBody.content&&E.requestBody.content["multipart/form-data"]&&E.requestBody.content["multipart/form-data"].schema&&E.requestBody.content["multipart/form-data"].schema.properties&&se.content["multipart/form-data"]&&se.content["multipart/form-data"].schema&&se.content["multipart/form-data"].schema.properties?(E.requestBody.content["multipart/form-data"].schema.properties=Object.assign(E.requestBody.content["multipart/form-data"].schema.properties,se.content["multipart/form-data"].schema.properties),E.requestBody.content["multipart/form-data"].schema.required=(E.requestBody.content["multipart/form-data"].schema.required||[]).concat(se.content["multipart/form-data"].schema.required||[]),E.requestBody.content["multipart/form-data"].schema.required.length||delete E.requestBody.content["multipart/form-data"].schema.required):E.requestBody.content&&E.requestBody.content["application/x-www-form-urlencoded"]&&E.requestBody.content["application/x-www-form-urlencoded"].schema&&E.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&se.content["application/x-www-form-urlencoded"]&&se.content["application/x-www-form-urlencoded"].schema&&se.content["application/x-www-form-urlencoded"].schema.properties?(E.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(E.requestBody.content["application/x-www-form-urlencoded"].schema.properties,se.content["application/x-www-form-urlencoded"].schema.properties),E.requestBody.content["application/x-www-form-urlencoded"].schema.required=(E.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(se.content["application/x-www-form-urlencoded"].schema.required||[]),E.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete E.requestBody.content["application/x-www-form-urlencoded"].schema.required):(E.requestBody=Object.assign(E.requestBody,se),E.requestBody["x-s2o-name"]||(E.requestBody.schema&&E.requestBody.schema.$ref?E.requestBody["x-s2o-name"]=decodeURIComponent(E.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):E.operationId&&(E.requestBody["x-s2o-name"]=h.sanitiseAll(E.operationId))));if(A&&!A["x-s2o-delete"]){delete A.type;for(let me of h.parameterTypeProperties)delete A[me];A.in==="path"&&(typeof A.required>"u"||A.required!==!0)&&(Q.patch?(Q.patches++,A.required=!0):x("(Patchable) path parameters must be required:true ["+A.name+" in "+oe+"]",Q))}return E}function ie(A,E){for(let te in A)te.startsWith("x-")&&!te.startsWith("x-s2o")&&(E[te]=A[te])}function he(A,E,te,V,oe){if(!A)return!1;if(A.$ref&&typeof A.$ref=="string")A.$ref.indexOf("#/definitions/")>=0?j("definition used as response: "+A.$ref,A,oe):A.$ref.startsWith("#/responses/")&&(A.$ref="#/components/responses/"+h.sanitise(decodeURIComponent(A.$ref.replace("#/responses/",""))));else{if((typeof A.description>"u"||A.description===null||A.description===""&&oe.patch)&&(oe.patch?typeof A=="object"&&!Array.isArray(A)&&(oe.patches++,A.description=f[A]||""):x("(Patchable) response.description is mandatory",oe)),typeof A.schema<"u"){if(O(A.schema,oe),A.schema.$ref&&typeof A.schema.$ref=="string"&&A.schema.$ref.startsWith("#/responses/")&&(A.schema.$ref="#/components/responses/"+h.sanitise(decodeURIComponent(A.schema.$ref.replace("#/responses/","")))),te&&te.produces&&typeof te.produces=="string")if(oe.patch)oe.patches++,te.produces=[te.produces];else return x("(Patchable) operation.produces must be an array",oe);V.produces&&!Array.isArray(V.produces)&&delete V.produces;let ue=((te?te.produces:null)||V.produces||[]).filter(h.uniqueOnly);ue.length||ue.push("*/*"),A.content={};for(let Q of ue){if(A.content[Q]={},A.content[Q].schema=l(A.schema),A.examples&&A.examples[Q]){let se={};se.value=A.examples[Q],A.content[Q].examples={},A.content[Q].examples.response=se,delete A.examples[Q]}A.content[Q].schema.type==="file"&&(A.content[Q].schema={type:"string",format:"binary"})}delete A.schema}for(let ue in A.examples)A.content||(A.content={}),A.content[ue]||(A.content[ue]={}),A.content[ue].examples={},A.content[ue].examples.response={},A.content[ue].examples.response.value=A.examples[ue];if(delete A.examples,A.headers)for(let ue in A.headers)ue.toLowerCase()==="status code"?oe.patch?(oe.patches++,delete A.headers[ue]):x('(Patchable) "Status Code" is not a valid header',oe):I(A.headers[ue],oe)}}function F(A,E,te,V,oe){for(let ue in A){let Q=A[ue];Q&&Q["x-trace"]&&typeof Q["x-trace"]=="object"&&(Q.trace=Q["x-trace"],delete Q["x-trace"]),Q&&Q["x-summary"]&&typeof Q["x-summary"]=="string"&&(Q.summary=Q["x-summary"],delete Q["x-summary"]),Q&&Q["x-description"]&&typeof Q["x-description"]=="string"&&(Q.description=Q["x-description"],delete Q["x-description"]),Q&&Q["x-servers"]&&Array.isArray(Q["x-servers"])&&(Q.servers=Q["x-servers"],delete Q["x-servers"]);for(let se in Q)if(h.httpMethods.indexOf(se)>=0||se==="x-amazon-apigateway-any-method"){let de=Q[se];if(de&&de.parameters&&Array.isArray(de.parameters)){if(Q.parameters)for(let be of Q.parameters)typeof be.$ref=="string"&&(X(be,te),be=o(oe,be.$ref)),!de.parameters.find(function(ge,me,ve){return ge.name===be.name&&ge.in===be.in})&&(be.in==="formData"||be.in==="body"||be.type==="file")&&(de=le(be,de,Q,se,ue,oe,te),te.rbname&&de[te.rbname]===""&&delete de[te.rbname]);for(let be of de.parameters)de=le(be,de,Q,se,se+":"+ue,oe,te);te.rbname&&de[te.rbname]===""&&delete de[te.rbname],te.debug||de.parameters&&(de.parameters=de.parameters.filter(J))}if(de&&de.security&&G(de.security),typeof de=="object"){if(!de.responses){let be={};be.description="Default response",de.responses={default:be}}for(let be in de.responses){let ge=de.responses[be];he(ge,be,de,oe,te)}}if(de&&de["x-servers"]&&Array.isArray(de["x-servers"]))de.servers=de["x-servers"],delete de["x-servers"];else if(de&&de.schemes&&de.schemes.length){for(let be of de.schemes)if((!oe.schemes||oe.schemes.indexOf(be)<0)&&(de.servers||(de.servers=[]),Array.isArray(oe.servers)))for(let ge of oe.servers){let me=l(ge),ve=t.parse(me.url);ve.protocol=be,me.url=ve.format(),de.servers.push(me)}}if(te.debug&&(de["x-s2o-consumes"]=de.consumes||[],de["x-s2o-produces"]=de.produces||[]),de){if(delete de.consumes,delete de.produces,delete de.schemes,de["x-ms-examples"]){for(let be in de["x-ms-examples"]){let ge=de["x-ms-examples"][be],me=h.sanitiseAll(be);if(ge.parameters)for(let ve in ge.parameters){let Se=ge.parameters[ve];for(let Ce of(de.parameters||[]).concat(Q.parameters||[]))Ce.$ref&&(Ce=i.jptr(oe,Ce.$ref)),Ce.name===ve&&!Ce.example&&(Ce.examples||(Ce.examples={}),Ce.examples[be]={value:Se})}if(ge.responses)for(let ve in ge.responses){if(ge.responses[ve].headers)for(let Se in ge.responses[ve].headers){let Ce=ge.responses[ve].headers[Se];for(let Je in de.responses[ve].headers)if(Je===Se){let B=de.responses[ve].headers[Je];B.example=Ce}}if(ge.responses[ve].body&&(oe.components.examples[me]={value:l(ge.responses[ve].body)},de.responses[ve]&&de.responses[ve].content))for(let Se in de.responses[ve].content){let Ce=de.responses[ve].content[Se];Ce.examples||(Ce.examples={}),Ce.examples[be]={$ref:"#/components/examples/"+me}}}}delete de["x-ms-examples"]}if(de.parameters&&de.parameters.length===0&&delete de.parameters,de.requestBody){let be=de.operationId?h.sanitiseAll(de.operationId):h.sanitiseAll(se+ue).toCamelCase(),ge=h.sanitise(de.requestBody["x-s2o-name"]||be||"");delete de.requestBody["x-s2o-name"];let me=JSON.stringify(de.requestBody),ve=h.hash(me);if(!V[ve]){let Ce={};Ce.name=ge,Ce.body=de.requestBody,Ce.refs=[],V[ve]=Ce}let Se="#/"+E+"/"+encodeURIComponent(i.jpescape(ue))+"/"+se+"/requestBody";V[ve].refs.push(Se)}}}if(Q&&Q.parameters){for(let se in Q.parameters){let de=Q.parameters[se];le(de,null,Q,null,ue,oe,te)}!te.debug&&Array.isArray(Q.parameters)&&(Q.parameters=Q.parameters.filter(J))}}}function D(A,E){let te={};m={schemas:{}},A.security&&G(A.security);for(let oe in A.components.securitySchemes){let ue=h.sanitise(oe);oe!==ue&&(A.components.securitySchemes[ue]&&x("Duplicate sanitised securityScheme name "+ue,E),A.components.securitySchemes[ue]=A.components.securitySchemes[oe],delete A.components.securitySchemes[oe]),L(A.components.securitySchemes[ue],E)}for(let oe in A.components.schemas){let ue=h.sanitiseAll(oe),Q="";if(oe!==ue){for(;A.components.schemas[ue+Q];)Q=Q?++Q:2;A.components.schemas[ue+Q]=A.components.schemas[oe],delete A.components.schemas[oe]}m.schemas[oe]=ue+Q,O(A.components.schemas[ue+Q],E)}E.refmap={},u(A,{payload:{options:E}},T),N(A,E);for(let oe in A.components.parameters){let ue=h.sanitise(oe);oe!==ue&&(A.components.parameters[ue]&&x("Duplicate sanitised parameter name "+ue,E),A.components.parameters[ue]=A.components.parameters[oe],delete A.components.parameters[oe]);let Q=A.components.parameters[ue];le(Q,null,null,null,ue,A,E)}for(let oe in A.components.responses){let ue=h.sanitise(oe);oe!==ue&&(A.components.responses[ue]&&x("Duplicate sanitised response name "+ue,E),A.components.responses[ue]=A.components.responses[oe],delete A.components.responses[oe]);let Q=A.components.responses[ue];if(he(Q,ue,null,A,E),Q.headers)for(let se in Q.headers)se.toLowerCase()==="status code"?E.patch?(E.patches++,delete Q.headers[se]):x('(Patchable) "Status Code" is not a valid header',E):I(Q.headers[se],E)}for(let oe in A.components.requestBodies){let ue=A.components.requestBodies[oe],Q=JSON.stringify(ue),se=h.hash(Q),de={};de.name=oe,de.body=ue,de.refs=[],te[se]=de}if(F(A.paths,"paths",E,te,A),A["x-ms-paths"]&&F(A["x-ms-paths"],"x-ms-paths",E,te,A),!E.debug)for(let oe in A.components.parameters)A.components.parameters[oe]["x-s2o-delete"]&&delete A.components.parameters[oe];E.debug&&(A["x-s2o-consumes"]=A.consumes||[],A["x-s2o-produces"]=A.produces||[]),delete A.consumes,delete A.produces,delete A.schemes;let V=[];if(A.components.requestBodies={},!E.resolveInternal){let oe=1;for(let ue in te){let Q=te[ue];if(Q.refs.length>1){let se="";for(Q.name||(Q.name="requestBody",se=oe++);V.indexOf(Q.name+se)>=0;)se=se?++se:2;Q.name=Q.name+se,V.push(Q.name),A.components.requestBodies[Q.name]=l(Q.body);for(let de in Q.refs){let be={};be.$ref="#/components/requestBodies/"+Q.name,i.jptr(A,Q.refs[de],be)}}}}return A.components.responses&&Object.keys(A.components.responses).length===0&&delete A.components.responses,A.components.parameters&&Object.keys(A.components.parameters).length===0&&delete A.components.parameters,A.components.examples&&Object.keys(A.components.examples).length===0&&delete A.components.examples,A.components.requestBodies&&Object.keys(A.components.requestBodies).length===0&&delete A.components.requestBodies,A.components.securitySchemes&&Object.keys(A.components.securitySchemes).length===0&&delete A.components.securitySchemes,A.components.headers&&Object.keys(A.components.headers).length===0&&delete A.components.headers,A.components.schemas&&Object.keys(A.components.schemas).length===0&&delete A.components.schemas,A.components&&Object.keys(A.components).length===0&&delete A.components,A}function W(A){return!A||!A.url||typeof A.url!="string"||(A.url=A.url.split("{{").join("{"),A.url=A.url.split("}}").join("}"),A.url.replace(/\{(.+?)\}/g,function(E,te){A.variables||(A.variables={}),A.variables[te]={default:"unknown"}})),A}function $(A,E,te){if(typeof A.info>"u"||A.info===null)if(E.patch)E.patches++,A.info={version:"",title:""};else return te(new k("(Patchable) info object is mandatory"));if(typeof A.info!="object"||Array.isArray(A.info))return te(new k("info must be an object"));if(typeof A.info.title>"u"||A.info.title===null)if(E.patch)E.patches++,A.info.title="";else return te(new k("(Patchable) info.title cannot be null"));if(typeof A.info.version>"u"||A.info.version===null)if(E.patch)E.patches++,A.info.version="";else return te(new k("(Patchable) info.version cannot be null"));if(typeof A.info.version!="string")if(E.patch)E.patches++,A.info.version=A.info.version.toString();else return te(new k("(Patchable) info.version must be a string"));if(typeof A.info.logo<"u")if(E.patch)E.patches++,A.info["x-logo"]=A.info.logo,delete A.info.logo;else return te(new k("(Patchable) info should not have logo property"));if(typeof A.info.termsOfService<"u"){if(A.info.termsOfService===null)if(E.patch)E.patches++,A.info.termsOfService="";else return te(new k("(Patchable) info.termsOfService cannot be null"));try{new URL(A.info.termsOfService)}catch{if(E.patch)E.patches++,delete A.info.termsOfService;else return te(new k("(Patchable) info.termsOfService must be a URL"))}}}function P(A,E,te){if(typeof A.paths>"u")if(E.patch)E.patches++,A.paths={};else return te(new k("(Patchable) paths object is mandatory"))}function R(A,E){const te=new WeakSet;u(A,{identityDetection:!0},function(V,oe,ue){typeof V[oe]=="object"&&V[oe]!==null&&(te.has(V[oe])?E.anchors?V[oe]=l(V[oe]):x("YAML anchor or merge key at "+ue.path,E):te.add(V[oe]))})}function H(A,E,te){return a(te,new Promise(function(V,oe){if(A||(A={}),E.original=A,E.text||(E.text=n.stringify(A)),E.externals=[],E.externalRefs={},E.rewriteRefs=!0,E.preserveMiro=!0,E.promise={},E.promise.resolve=V,E.promise.reject=oe,E.patches=0,E.cache||(E.cache={}),E.source&&(E.cache[E.source]=E.original),R(A,E),A.openapi&&typeof A.openapi=="string"&&A.openapi.startsWith("3.")){E.openapi=c(A),$(E.openapi,E,oe),P(E.openapi,E,oe),d.optionalResolve(E).then(function(){return E.direct?V(E.openapi):V(E)}).catch(function(Q){console.warn(Q),oe(Q)});return}if(!A.swagger||A.swagger!="2.0")return oe(new k("Unsupported swagger/OpenAPI version: "+(A.openapi?A.openapi:A.swagger)));let ue=E.openapi={};if(ue.openapi=typeof E.targetVersion=="string"&&E.targetVersion.startsWith("3.")?E.targetVersion:g,E.origin){ue["x-origin"]||(ue["x-origin"]=[]);let Q={};Q.url=E.source||E.origin,Q.format="swagger",Q.version=A.swagger,Q.converter={},Q.converter.url="https://github.com/mermade/oas-kit",Q.converter.version=b,ue["x-origin"].push(Q)}if(ue=Object.assign(ue,c(A)),delete ue.swagger,u(ue,{},function(Q,se,de){Q[se]===null&&!se.startsWith("x-")&&se!=="default"&&de.path.indexOf("/example")<0&&delete Q[se]}),A.host)for(let Q of Array.isArray(A.schemes)?A.schemes:[""]){let se={},de=(A.basePath||"").replace(/\/$/,"");se.url=(Q?Q+":":"")+"//"+A.host+de,W(se),ue.servers||(ue.servers=[]),ue.servers.push(se)}else if(A.basePath){let Q={};Q.url=A.basePath,W(Q),ue.servers||(ue.servers=[]),ue.servers.push(Q)}if(delete ue.host,delete ue.basePath,ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]),A["x-ms-parameterized-host"]){let Q=A["x-ms-parameterized-host"],se={};se.url=Q.hostTemplate+(A.basePath?A.basePath:""),se.variables={};const de=se.url.match(/\{\w+\}/g);for(let be in Q.parameters){let ge=Q.parameters[be];ge.$ref&&(ge=l(o(ue,ge.$ref))),be.startsWith("x-")||(delete ge.required,delete ge.type,delete ge.in,typeof ge.default>"u"&&(ge.enum?ge.default=ge.enum[0]:ge.default="none"),ge.name||(ge.name=de[be].replace("{","").replace("}","")),se.variables[ge.name]=ge,delete ge.name)}ue.servers||(ue.servers=[]),Q.useSchemePrefix===!1?ue.servers.push(se):A.schemes.forEach(be=>{ue.servers.push(Object.assign({},se,{url:be+"://"+se.url}))}),delete ue["x-ms-parameterized-host"]}$(ue,E,oe),P(ue,E,oe),typeof ue.consumes=="string"&&(ue.consumes=[ue.consumes]),typeof ue.produces=="string"&&(ue.produces=[ue.produces]),ue.components={},ue["x-callbacks"]&&(ue.components.callbacks=ue["x-callbacks"],delete ue["x-callbacks"]),ue.components.examples={},ue.components.headers={},ue["x-links"]&&(ue.components.links=ue["x-links"],delete ue["x-links"]),ue.components.parameters=ue.parameters||{},ue.components.responses=ue.responses||{},ue.components.requestBodies={},ue.components.securitySchemes=ue.securityDefinitions||{},ue.components.schemas=ue.definitions||{},delete ue.definitions,delete ue.responses,delete ue.parameters,delete ue.securityDefinitions,d.optionalResolve(E).then(function(){D(E.openapi,E),E.direct?V(E.openapi):V(E)}).catch(function(Q){console.warn(Q),oe(Q)})}))}function ae(A,E,te){return a(te,new Promise(function(V,oe){let ue=null,Q=null;try{ue=JSON.parse(A),E.text=JSON.stringify(ue,null,2)}catch(se){Q=se;try{ue=n.parse(A,{schema:"core",prettyErrors:!0}),E.sourceYaml=!0,E.text=A}catch(de){Q=de}}ue?H(ue,E).then(se=>V(se)).catch(se=>oe(se)):oe(new k(Q?Q.message:"Could not parse string"))}))}function U(A,E,te){return a(te,new Promise(function(V,oe){E.origin=!0,E.source||(E.source=A),E.verbose&&console.warn("GET "+A),E.fetch||(E.fetch=r);const ue=Object.assign({},E.fetchOptions,{agent:E.agent});E.fetch(A,ue).then(function(Q){if(Q.status!==200)throw new k(`Received status code ${Q.status}: ${A}`);return Q.text()}).then(function(Q){ae(Q,E).then(se=>V(se)).catch(se=>oe(se))}).catch(function(Q){oe(Q)})}))}function pe(A,E,te){return a(te,new Promise(function(V,oe){e.readFile(A,E.encoding||"utf8",function(ue,Q){ue?oe(ue):(E.sourceFile=A,ae(Q,E).then(se=>V(se)).catch(se=>oe(se)))})}))}function Z(A,E,te){return a(te,new Promise(function(V,oe){let ue="";A.on("data",function(Q){ue+=Q}).on("end",function(){ae(ue,E).then(Q=>V(Q)).catch(Q=>oe(Q))})}))}return f8={S2OError:k,targetVersion:g,convert:H,convertObj:H,convertUrl:U,convertStr:ae,convertFile:pe,convertStream:Z},f8}var tvt=evt();const avt=zr(tvt);function rvt(e){return e.paths||(e.paths={}),new Promise((t,a)=>avt.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(r,n)=>{if(r)return a(r);t(n?.openapi)}))}async function nvt(){const e=qc?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():"";try{return(await qft({configPath:LB(e,wIe)})).resolvedConfig.openapi}catch(t){return console.warn("Error loading redocly.yaml",t),{}}}async function ivt(e){const t=new Lce({}),a={config:t,base:qc?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};qc&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?a.doc=ovt(e):a.ref=e;const{bundle:{parsed:r}}=await Vft(a);return r.swagger!==void 0?rvt(r):r}function ovt(e){return{source:{absoluteRef:""},parsed:e}}async function svt(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await ivt(e||t);try{JJe(r)}catch{}return r}const lvt=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[,i]=K.useState(),[o,s]=K.useState(!0),[l,c]=K.useState(null),[u,d]=K.useState(e||{});K.useEffect(()=>{async function h(){s(!0);try{const f=await nvt();d({...e,...f}),c(await svt(a,t,e))}catch(f){i(()=>{throw f})}}h()},[a,t,e]);const p=K.useMemo(()=>{if(l)return{definition:l,options:u,definitionUrl:t,activeSampleLanguage:r}},UJe([l,t,u]));return K.useEffect(()=>{p&&s(!1)},[p]),p?o?Hs(e?.hideLoading,!1)?null:v.jsx(Att,{color:"--loading-spinner-color"}):K.isValidElement(n)?K.cloneElement(n,{store:p}):null:null};function cvt({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return v.jsx(lvt,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:v.jsx(wte,{withCommonStyles:!0,router:o})})}function uvt(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function dvt(e){const t=uvt(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function pvt(e,t=document.querySelector("redoc")){sq.hydrateRoot(t,v.jsx(wte,{store:e}))}function _de(e,t={},a=bB("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,...n}=t;let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),sq.createRoot(a).render(K.createElement(cvt,{definition:o,definitionUrl:i,options:{...n,...dvt(a)},router:r??"history"},["Loading..."]))}const hvt="3.13.0",mvt="e6940f2193";function fvt(){const e=bB("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&_de(t,{},e)}fvt();var Bde={exports:{}};/*!
9695
+ `," "],s=["{","}","|","\\","^","`"].concat(o),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=_gt();function k(S,O,M){if(S&&t.isObject(S)&&S instanceof a)return S;var T=new a;return T.parse(S,O,M),T}a.prototype.parse=function(S,O,M){if(!t.isString(S))throw new TypeError("Parameter 'url' must be a string, not "+typeof S);var T=S.indexOf("?"),N=T!==-1&&T<S.indexOf("#")?"?":"#",G=S.split(N),L=/\\/g;G[0]=G[0].replace(L,"/"),S=G.join(N);var J=S;if(J=J.trim(),!M&&S.split("#").length===1){var I=i.exec(J);if(I)return this.path=J,this.href=J,this.pathname=I[1],I[2]?(this.search=I[2],O?this.query=m.parse(this.search.substr(1)):this.query=this.search.substr(1)):O&&(this.search="",this.query={}),this}var X=r.exec(J);if(X){X=X[0];var re=X.toLowerCase();this.protocol=re,J=J.substr(X.length)}if(M||X||J.match(/^\/\/[^@\/]+@[^@\/]+/)){var le=J.substr(0,2)==="//";le&&!(X&&b[X])&&(J=J.substr(2),this.slashes=!0)}if(!b[X]&&(le||X&&!g[X])){for(var ie=-1,he=0;he<u.length;he++){var F=J.indexOf(u[he]);F!==-1&&(ie===-1||F<ie)&&(ie=F)}var D,W;ie===-1?W=J.lastIndexOf("@"):W=J.lastIndexOf("@",ie),W!==-1&&(D=J.slice(0,W),J=J.slice(W+1),this.auth=decodeURIComponent(D)),ie=-1;for(var he=0;he<c.length;he++){var F=J.indexOf(c[he]);F!==-1&&(ie===-1||F<ie)&&(ie=F)}ie===-1&&(ie=J.length),this.host=J.slice(0,ie),J=J.slice(ie),this.parseHost(),this.hostname=this.hostname||"";var $=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!$)for(var P=this.hostname.split(/\./),he=0,R=P.length;he<R;he++){var H=P[he];if(H&&!H.match(p)){for(var ae="",U=0,pe=H.length;U<pe;U++)H.charCodeAt(U)>127?ae+="x":ae+=H[U];if(!ae.match(p)){var Z=P.slice(0,he),A=P.slice(he+1),E=H.match(h);E&&(Z.push(E[1]),A.unshift(E[2])),A.length&&(J="/"+A.join(".")+J),this.hostname=Z.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=e.toASCII(this.hostname));var te=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+te,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),J[0]!=="/"&&(J="/"+J))}if(!f[re])for(var he=0,R=l.length;he<R;he++){var oe=l[he];if(J.indexOf(oe)!==-1){var ue=encodeURIComponent(oe);ue===oe&&(ue=escape(oe)),J=J.split(oe).join(ue)}}var Q=J.indexOf("#");Q!==-1&&(this.hash=J.substr(Q),J=J.slice(0,Q));var se=J.indexOf("?");if(se!==-1?(this.search=J.substr(se),this.query=J.substr(se+1),O&&(this.query=m.parse(this.query)),J=J.slice(0,se)):O&&(this.search="",this.query={}),J&&(this.pathname=J),g[re]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var te=this.pathname||"",de=this.search||"";this.path=te+de}return this.href=this.format(),this};function x(S){return t.isString(S)&&(S=k(S)),S instanceof a?S.format():a.prototype.format.call(S)}a.prototype.format=function(){var S=this.auth||"";S&&(S=encodeURIComponent(S),S=S.replace(/%3A/i,":"),S+="@");var O=this.protocol||"",M=this.pathname||"",T=this.hash||"",N=!1,G="";this.host?N=S+this.host:this.hostname&&(N=S+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(N+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(G=m.stringify(this.query));var L=this.search||G&&"?"+G||"";return O&&O.substr(-1)!==":"&&(O+=":"),this.slashes||(!O||g[O])&&N!==!1?(N="//"+(N||""),M&&M.charAt(0)!=="/"&&(M="/"+M)):N||(N=""),T&&T.charAt(0)!=="#"&&(T="#"+T),L&&L.charAt(0)!=="?"&&(L="?"+L),M=M.replace(/[?#]/g,function(J){return encodeURIComponent(J)}),L=L.replace("#","%23"),O+N+M+L+T};function j(S,O){return k(S,!1,!0).resolve(O)}a.prototype.resolve=function(S){return this.resolveObject(k(S,!1,!0)).format()};function w(S,O){return S?k(S,!1,!0).resolveObject(O):O}return a.prototype.resolveObject=function(S){if(t.isString(S)){var O=new a;O.parse(S,!1,!0),S=O}for(var M=new a,T=Object.keys(this),N=0;N<T.length;N++){var G=T[N];M[G]=this[G]}if(M.hash=S.hash,S.href==="")return M.href=M.format(),M;if(S.slashes&&!S.protocol){for(var L=Object.keys(S),J=0;J<L.length;J++){var I=L[J];I!=="protocol"&&(M[I]=S[I])}return g[M.protocol]&&M.hostname&&!M.pathname&&(M.path=M.pathname="/"),M.href=M.format(),M}if(S.protocol&&S.protocol!==M.protocol){if(!g[S.protocol]){for(var X=Object.keys(S),re=0;re<X.length;re++){var le=X[re];M[le]=S[le]}return M.href=M.format(),M}if(M.protocol=S.protocol,!S.host&&!b[S.protocol]){for(var R=(S.pathname||"").split("/");R.length&&!(S.host=R.shift()););S.host||(S.host=""),S.hostname||(S.hostname=""),R[0]!==""&&R.unshift(""),R.length<2&&R.unshift(""),M.pathname=R.join("/")}else M.pathname=S.pathname;if(M.search=S.search,M.query=S.query,M.host=S.host||"",M.auth=S.auth,M.hostname=S.hostname||S.host,M.port=S.port,M.pathname||M.search){var ie=M.pathname||"",he=M.search||"";M.path=ie+he}return M.slashes=M.slashes||S.slashes,M.href=M.format(),M}var F=M.pathname&&M.pathname.charAt(0)==="/",D=S.host||S.pathname&&S.pathname.charAt(0)==="/",W=D||F||M.host&&S.pathname,$=W,P=M.pathname&&M.pathname.split("/")||[],R=S.pathname&&S.pathname.split("/")||[],H=M.protocol&&!g[M.protocol];if(H&&(M.hostname="",M.port=null,M.host&&(P[0]===""?P[0]=M.host:P.unshift(M.host)),M.host="",S.protocol&&(S.hostname=null,S.port=null,S.host&&(R[0]===""?R[0]=S.host:R.unshift(S.host)),S.host=null),W=W&&(R[0]===""||P[0]==="")),D)M.host=S.host||S.host===""?S.host:M.host,M.hostname=S.hostname||S.hostname===""?S.hostname:M.hostname,M.search=S.search,M.query=S.query,P=R;else if(R.length)P||(P=[]),P.pop(),P=P.concat(R),M.search=S.search,M.query=S.query;else if(!t.isNullOrUndefined(S.search)){if(H){M.hostname=M.host=P.shift();var ae=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;ae&&(M.auth=ae.shift(),M.host=M.hostname=ae.shift())}return M.search=S.search,M.query=S.query,(!t.isNull(M.pathname)||!t.isNull(M.search))&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!P.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var U=P.slice(-1)[0],pe=(M.host||S.host||P.length>1)&&(U==="."||U==="..")||U==="",Z=0,A=P.length;A>=0;A--)U=P[A],U==="."?P.splice(A,1):U===".."?(P.splice(A,1),Z++):Z&&(P.splice(A,1),Z--);if(!W&&!$)for(;Z--;Z)P.unshift("..");W&&P[0]!==""&&(!P[0]||P[0].charAt(0)!=="/")&&P.unshift(""),pe&&P.join("/").substr(-1)!=="/"&&P.push("");var E=P[0]===""||P[0]&&P[0].charAt(0)==="/";if(H){M.hostname=M.host=E?"":P.length?P.shift():"";var ae=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;ae&&(M.auth=ae.shift(),M.host=M.hostname=ae.shift())}return W=W||M.host&&P.length,W&&!E&&P.unshift(""),P.length?M.pathname=P.join("/"):(M.pathname=null,M.path=null),(!t.isNull(M.pathname)||!t.isNull(M.search))&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=S.auth||M.auth,M.slashes=M.slashes||S.slashes,M.href=M.format(),M},a.prototype.parseHost=function(){var S=this.host,O=n.exec(S);O&&(O=O[0],O!==":"&&(this.port=O.substr(1)),S=S.substr(0,S.length-O.length)),S&&(this.hostname=S)},Am}var LE,Mue;function Bgt(){if(Mue)return LE;Mue=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return LE=e(),LE}var DE,Tue;function Rgt(){if(Tue)return DE;Tue=1;var e=Bgt();return DE=function(t,a){if(t){a.then(function(r){e(function(){t(null,r)})},function(r){e(function(){t(r)})});return}else return a},DE}var $E,_ue;function KC(){if(_ue)return $E;_ue=1;function e(r){return r.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(r){return r.replace(/\~1/g,"/").replace(/~0/g,"~")}function a(r,n,i){if(typeof r>"u")return!1;if(!n||typeof n!="string"||n==="#")return typeof i<"u"?i:r;if(n.indexOf("#")>=0){let s=n.split("#");if(s[0])return!1;n=s[1],n=decodeURIComponent(n.slice(1).split("+").join(" "))}n.startsWith("/")&&(n=n.slice(1));let o=n.split("/");for(let s=0;s<o.length;s++){o[s]=t(o[s]);let l=typeof i<"u"&&s==o.length-1,c=parseInt(o[s],10);if(!Array.isArray(r)||isNaN(c)||c.toString()!==o[s]?c=Array.isArray(r)&&o[s]==="-"?-2:-1:o[s]=s>0?o[s-1]:"",c!=-1||r&&r.hasOwnProperty(o[s]))if(c>=0)l&&(r[c]=i),r=r[c];else{if(c===-2)return l?(Array.isArray(r)&&r.push(i),i):void 0;l&&(r[o[s]]=i),r=r[o[s]]}else if(typeof i<"u"&&typeof r=="object"&&!Array.isArray(r))r[o[s]]=l?i:o[s+1]==="0"||o[s+1]==="-"?[]:{},r=r[o[s]];else return!1}return r}return $E={jptr:a,jpescape:e,jpunescape:t},$E}var IE,Bue;function KE(){if(Bue)return IE;Bue=1;function e(t,a){return a==="$ref"&&!!t&&typeof t[a]=="string"}return IE={isRef:e},IE}var HE,Rue;function HC(){if(Rue)return HE;Rue=1;function e(o){return o}function t(o){return JSON.parse(JSON.stringify(o))}function a(o){let s={};for(let l in o)o.hasOwnProperty(l)&&(s[l]=o[l]);return s}function r(o){let s=Array.isArray(o)?[]:{};for(let l in o)(o.hasOwnProperty(l)||Array.isArray(o))&&(s[l]=typeof o[l]=="object"?r(o[l]):o[l]);return s}function n(o){return Object.assign({},o)}function i(o,s){if(s||(s=new WeakMap),Object(o)!==o||o instanceof Function)return o;if(s.has(o))return s.get(o);try{var l=new o.constructor}catch{l=Object.create(Object.getPrototypeOf(o))}return s.set(o,l),Object.assign(l,...Object.keys(o).map(c=>({[c]:i(o[c],s)})))}return HE={nop:e,clone:t,shallowClone:a,deepClone:r,fastClone:n,circularClone:i},HE}var VE,Nue;function FE(){if(Nue)return VE;Nue=1;const e=KC().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function a(r,n,i){if(n||(n={depth:0}),n.depth||(n=Object.assign({},t(),n)),typeof r!="object")return;let o=n.path;for(let s in r){if(n.key=s,n.path=n.path+"/"+encodeURIComponent(e(s)),n.identityPath=n.seen.get(r[s]),n.identity=typeof n.identityPath<"u",r.hasOwnProperty(s)&&i(r,s,n),typeof r[s]=="object"&&!n.identity){n.identityDetection&&!Array.isArray(r[s])&&r[s]!==null&&n.seen.set(r[s],n.path);let l={};l.parent=r,l.path=n.path,l.depth=n.depth?n.depth+1:1,l.pkey=s,l.payload=n.payload,l.seen=n.seen,l.identity=!1,l.identityDetection=n.identityDetection,a(r[s],l,i)}n.path=o}}return VE={recurse:a},VE}var GE,Eue;function Ngt(){if(Eue)return GE;Eue=1;const e=FE().recurse,t=HC().shallowClone,a=KC().jptr,r=KE().isRef;var n=function(o){return o&&o.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(o,s,l){l||(l={}),l.cache||(l.cache={}),l.state||(l.state={}),l.state.identityDetection=!0,l.depth=l.depth?l.depth+1:1;let c=l.depth>1?o:t(o),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let p=n(l),h=1;for(;h>0;)h=0,e(u,l.state,function(f,b,g){if(r(f,b)){let m=f[b];if(h++,l.cache[m]){let k=l.cache[m];if(k.resolved)p.warn("Patching %s for %s",m,k.path),g.parent[g.pkey]=k.data,l.$ref&&typeof g.parent[g.pkey]=="object"&&g.parent[g.pkey]!==null&&(g.parent[g.pkey][l.$ref]=m);else{if(m===k.path)throw new Error(`Tight circle at ${k.path}`);p.warn("Unresolved ref"),g.parent[g.pkey]=a(k.source,k.path),g.parent[g.pkey]===!1&&(g.parent[g.pkey]=a(k.source,k.key)),l.$ref&&typeof g.parent[g.pkey]=="object"&&g.parent[g.pkey]!==null&&(g.parent[l.$ref]=m)}}else{let k={};k.path=g.path.split("/$ref")[0],k.key=m,p.warn("Dereffing %s at %s",m,k.path),k.source=d,k.data=a(k.source,k.key),k.data===!1&&(k.data=a(l.master,k.key),k.source=l.master),k.data===!1&&p.warn("Missing $ref target",k.key),l.cache[m]=k,k.data=g.parent[g.pkey]=i(a(k.source,k.key),k.source,l),l.$ref&&typeof g.parent[g.pkey]=="object"&&g.parent[g.pkey]!==null&&(g.parent[g.pkey][l.$ref]=m),k.resolved=!0}}});return u.data}return GE={dereference:i},GE}var qE,Lue;function Egt(){if(Lue)return qE;Lue=1,qE=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",a=[],r=[];function n(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(p,h,f,b){typeof b>"u"&&(b=n()),s(p,"",0,[],void 0,0,b);var g;try{r.length===0?g=JSON.stringify(p,h,f):g=JSON.stringify(p,d(h),f)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var m=a.pop();m.length===4?Object.defineProperty(m[0],m[1],m[3]):m[0][m[1]]=m[2]}}return g}function o(p,h,f,b){var g=Object.getOwnPropertyDescriptor(b,f);g.get!==void 0?g.configurable?(Object.defineProperty(b,f,{value:p}),a.push([b,f,h,g])):r.push([h,f,p]):(b[f]=p,a.push([b,f,h]))}function s(p,h,f,b,g,m,k){m+=1;var x;if(typeof p=="object"&&p!==null){for(x=0;x<b.length;x++)if(b[x]===p){o(t,p,h,g);return}if(typeof k.depthLimit<"u"&&m>k.depthLimit){o(e,p,h,g);return}if(typeof k.edgesLimit<"u"&&f+1>k.edgesLimit){o(e,p,h,g);return}if(b.push(p),Array.isArray(p))for(x=0;x<p.length;x++)s(p[x],x,x,b,p,m,k);else{var j=Object.keys(p);for(x=0;x<j.length;x++){var w=j[x];s(p[w],w,x,b,p,m,k)}}b.pop()}}function l(p,h){return p<h?-1:p>h?1:0}function c(p,h,f,b){typeof b>"u"&&(b=n());var g=u(p,"",0,[],void 0,0,b)||p,m;try{r.length===0?m=JSON.stringify(g,h,f):m=JSON.stringify(g,d(h),f)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var k=a.pop();k.length===4?Object.defineProperty(k[0],k[1],k[3]):k[0][k[1]]=k[2]}}return m}function u(p,h,f,b,g,m,k){m+=1;var x;if(typeof p=="object"&&p!==null){for(x=0;x<b.length;x++)if(b[x]===p){o(t,p,h,g);return}try{if(typeof p.toJSON=="function")return}catch{return}if(typeof k.depthLimit<"u"&&m>k.depthLimit){o(e,p,h,g);return}if(typeof k.edgesLimit<"u"&&f+1>k.edgesLimit){o(e,p,h,g);return}if(b.push(p),Array.isArray(p))for(x=0;x<p.length;x++)u(p[x],x,x,b,p,m,k);else{var j={},w=Object.keys(p).sort(l);for(x=0;x<w.length;x++){var S=w[x];u(p[S],S,x,b,p,m,k),j[S]=p[S]}if(typeof g<"u")a.push([g,h,p]),g[h]=j;else return j}b.pop()}}function d(p){return p=typeof p<"u"?p:function(h,f){return f},function(h,f){if(r.length>0)for(var b=0;b<r.length;b++){var g=r[b];if(g[1]===h&&g[0]===f){f=g[2],r.splice(b,1);break}}return p.call(this,h,f)}}return qE}var WE,Due;function $ue(){if(Due)return WE;Due=1;var e={};const t=Egt(),a=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function r(g,m,k){return k.indexOf(g)===m}function n(g){return new Set(g).size!==g.length}function i(g){return new Set(g).size<=1}function o(g,m){function k(x,j){return t.stringify(x)===t.stringify(Object.assign({},x,j))}return k(g,m)&&k(m,g)}function s(g){let m=[];for(let k of g)m.find(function(x,j,w){return o(x,k)})||m.push(k);return m}function l(g){return g.length===s(g).length}function c(g){return g.find(function(m,k,x){return g.indexOf(m)<k})}function u(g){let m=0,k;if(g.length===0)return m;for(let x=0;x<g.length;x++)k=g.charCodeAt(x),m=(m<<5)-m+k,m|=0;return m}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(g,m){return m.toUpperCase()})};const d=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],p=["items","minItems","maxItems","uniqueItems"],h=["get","post","put","delete","patch","head","options","trace"];function f(g){g=g.replace("[]","Array");let m=g.split("/");return m[0]=m[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),m.join("/")}function b(g){return f(g.split("/").join("_"))}return WE={colour:a,uniqueOnly:r,hasDuplicates:n,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:p,httpMethods:h,sanitise:f,sanitiseAll:b},WE}var JE,Iue;function Lgt(){if(Iue)return JE;Iue=1;const e=nv,t=HJ(),a=EE(),r=nv,n=nv,i=KC().jptr,o=FE().recurse,s=HC().clone,l=Ngt().dereference,c=KE().isRef,u=$ue();function d(M){return[...new Set(M)]}function p(M,T,N,G,L){return new Promise(function(J,I){e.readFile(M,T,function(X,re){X?N.ignoreIOErrors&&L?(N.verbose&&console.warn("FAILED",G),N.externalRefs[G].failed=!0,J(L)):I(X):J(re)})})}function h(M,T,N,G,L,J){let I=J.externalRefs[N+G].paths[0],X=a.parse(L),re={},le=1;for(;le;)le=0,o(M,{identityDetection:!0},function(ie,he,F){if(c(ie,he)){if(ie[he].startsWith("#")){if(!re[ie[he]]&&!ie.$fixed){let D=s(i(T,ie[he]));if(J.verbose>1&&console.warn((D===!1?u.colour.red:u.colour.green)+"Fragment resolution",ie[he],u.colour.normal),D===!1){if(F.parent[F.pkey]={},J.fatal){let W=new Error("Fragment $ref resolution failed "+ie[he]);if(J.promise)J.promise.reject(W);else throw W}}else le++,F.parent[F.pkey]=D,re[ie[he]]=F.path.replace("/%24ref","")}else if(!ie.$fixed){let D=(I+"/"+re[ie[he]]).split("/#/").join("/");F.parent[F.pkey]={$ref:D,"x-miro":ie[he],$fixed:!0},J.verbose>1&&console.warn("Replacing with",D),le++}}else if(X.protocol){let D=a.resolve(L,ie[he]).toString();J.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",ie[he],"as",D,u.colour.normal),ie["x-miro"]=ie[he],J.externalRefs[ie[he]]&&(J.externalRefs[D]||(J.externalRefs[D]=J.externalRefs[ie[he]]),J.externalRefs[D].failed=J.externalRefs[ie[he]].failed),ie[he]=D}else if(!ie["x-miro"]){let D=a.resolve(L,ie[he]).toString(),W=!1;J.externalRefs[ie[he]]&&(W=J.externalRefs[ie[he]].failed),W||(J.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",ie[he],"as",D,u.colour.normal),ie["x-miro"]=ie[he],ie[he]=D)}}});return o(M,{},function(ie,he,F){c(ie,he)&&typeof ie.$fixed<"u"&&delete ie.$fixed}),J.verbose>1&&console.warn("Finished fragment resolution"),M}function f(M,T){if(!T.filters||!T.filters.length)return M;for(let N of T.filters)M=N(M,T);return M}function b(M,T){return M&&M.length>2?M:T&&T.length>2?T:"file:"}function g(M,T,N,G){var L=a.parse(N.source),J=N.source.split("\\").join("/").split("/");J.pop()||J.pop();let I="",X=T.split("#");X.length>1&&(I="#"+X[1],T=X[0]),J=J.join("/");let re=a.parse(T),le=b(re.protocol,L.protocol),ie;if(le==="file:"?ie=t.resolve(J?J+"/":"",T):ie=a.resolve(J?J+"/":"",T),N.cache[ie]){N.verbose&&console.warn("CACHED",ie,I);let he=s(N.cache[ie]),F=N.externalRef=he;if(I&&(F=i(F,I),F===!1&&(F={},N.fatal))){let D=new Error("Cached $ref resolution failed "+ie+I);if(N.promise)N.promise.reject(D);else throw D}return F=h(F,he,T,I,ie,N),F=f(F,N),G(s(F),ie,N),Promise.resolve(F)}if(N.verbose&&console.warn("GET",ie,I),N.handlers&&N.handlers[le])return N.handlers[le](J,T,I,N).then(function(he){return N.externalRef=he,he=f(he,N),N.cache[ie]=he,G(he,ie,N),he}).catch(function(he){throw N.verbose&&console.warn(he),he});if(le&&le.startsWith("http")){const he=Object.assign({},N.fetchOptions,{agent:N.agent});return N.fetch(ie,he).then(function(F){if(F.status!==200){if(N.ignoreIOErrors)return N.verbose&&console.warn("FAILED",T),N.externalRefs[T].failed=!0,'{"$ref":"'+T+'"}';throw new Error(`Received status code ${F.status}: ${ie}`)}return F.text()}).then(function(F){try{let D=n.parse(F,{schema:"core",prettyErrors:!0});if(F=N.externalRef=D,N.cache[ie]=s(F),I&&(F=i(F,I),F===!1&&(F={},N.fatal))){let W=new Error("Remote $ref resolution failed "+ie+I);if(N.promise)N.promise.reject(W);else throw W}F=h(F,D,T,I,ie,N),F=f(F,N)}catch(D){if(N.verbose&&console.warn(D),N.promise&&N.fatal)N.promise.reject(D);else throw D}return G(F,ie,N),F}).catch(function(F){if(N.verbose&&console.warn(F),N.cache[ie]={},N.promise&&N.fatal)N.promise.reject(F);else throw F})}else{const he='{"$ref":"'+T+'"}';return p(ie,N.encoding||"utf8",N,T,he).then(function(F){try{let D=n.parse(F,{schema:"core",prettyErrors:!0});if(F=N.externalRef=D,N.cache[ie]=s(F),I&&(F=i(F,I),F===!1&&(F={},N.fatal))){let W=new Error("File $ref resolution failed "+ie+I);if(N.promise)N.promise.reject(W);else throw W}F=h(F,D,T,I,ie,N),F=f(F,N)}catch(D){if(N.verbose&&console.warn(D),N.promise&&N.fatal)N.promise.reject(D);else throw D}return G(F,ie,N),F}).catch(function(F){if(N.verbose&&console.warn(F),N.promise&&N.fatal)N.promise.reject(F);else throw F})}}function m(M){return new Promise(function(T,N){function G(J,I,X){if(J[I]&&c(J[I],"$ref")){let re=J[I].$ref;if(!re.startsWith("#")){let le="";if(!L[re]){let ie=Object.keys(L).find(function(he,F,D){return re.startsWith(he+"/")});ie&&(M.verbose&&console.warn("Found potential subschema at",ie),le="/"+(re.split("#")[1]||"").replace(ie.split("#")[1]||""),le=le.split("/undefined").join(""),re=ie)}if(L[re]||(L[re]={resolved:!1,paths:[],extras:{},description:J[I].description}),L[re].resolved){if(!L[re].failed)if(M.rewriteRefs){let ie=L[re].resolvedAt;M.verbose>1&&console.warn("Rewriting ref",re,ie),J[I]["x-miro"]=re,J[I].$ref=ie+le}else J[I]=s(L[re].data)}else L[re].paths.push(X.path),L[re].extras[X.path]=le}}}let L=M.externalRefs;if(M.resolver.depth>0&&M.source===M.resolver.base)return T(L);o(M.openapi.definitions,{identityDetection:!0,path:"#/definitions"},G),o(M.openapi.components,{identityDetection:!0,path:"#/components"},G),o(M.openapi,{identityDetection:!0},G),T(L)})}function k(M){return new Promise(function(T,N){m(M).then(function(L){for(let J in L)if(!L[J].resolved){let I=M.resolver.depth;I>0&&I++,M.resolver.actions[I].push(function(){return g(M.openapi,J,M,function(X,re,le){if(!L[J].resolved){let F={};F.context=L[J],F.$ref=J,F.original=s(X),F.updated=X,F.source=re,le.externals.push(F),L[J].resolved=!0}let ie=Object.assign({},le,{source:"",resolver:{actions:le.resolver.actions,depth:le.resolver.actions.length-1,base:le.resolver.base}});le.patch&&L[J].description&&!X.description&&typeof X=="object"&&(X.description=L[J].description),L[J].data=X;let he=d(L[J].paths);he=he.sort(function(F,D){const W=F.startsWith("#/components/")||F.startsWith("#/definitions/"),$=D.startsWith("#/components/")||D.startsWith("#/definitions/");return W&&!$?-1:$&&!W?1:0});for(let F of he)if(L[J].resolvedAt&&F!==L[J].resolvedAt&&F.indexOf("x-ms-examples/")<0)le.verbose>1&&console.warn("Creating pointer to data at",F),i(le.openapi,F,{$ref:L[J].resolvedAt+L[J].extras[F],"x-miro":J+L[J].extras[F]});else{L[J].resolvedAt?le.verbose>1&&console.warn("Avoiding circular reference"):(L[J].resolvedAt=F,le.verbose>1&&console.warn("Creating initial clone of data at",F));let D=s(X);i(le.openapi,F,D)}le.resolver.actions[ie.resolver.depth].length===0&&le.resolver.actions[ie.resolver.depth].push(function(){return k(ie)})})})}}).catch(function(L){M.verbose&&console.warn(L),N(L)});let G={options:M};G.actions=M.resolver.actions[M.resolver.depth],T(G)})}const x=M=>M.reduce((T,N)=>T.then(G=>N().then(Array.prototype.concat.bind(G))),Promise.resolve([]));function j(M,T,N){M.resolver.actions.push([]),k(M).then(function(G){x(G.actions).then(function(){if(M.resolver.depth>=M.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),T(!0);M.resolver.depth++,M.resolver.actions[M.resolver.depth].length?setTimeout(function(){j(G.options,T,N)},0):(M.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),M.resolveInternal&&(M.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),M.openapi=l(M.openapi,M.original,{verbose:M.verbose-1}),M.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),o(M.openapi,{},function(L,J,I){c(L,J)&&(M.preserveMiro||delete L["x-miro"])}),T(M))}).catch(function(L){M.verbose&&console.warn(L),N(L)})}).catch(function(G){M.verbose&&console.warn(G),N(G)})}function w(M){if(M.cache||(M.cache={}),M.fetch||(M.fetch=r),M.source){let T=a.parse(M.source);(!T.protocol||T.protocol.length<=2)&&(M.source=t.resolve(M.source))}M.externals=[],M.externalRefs={},M.rewriteRefs=!0,M.resolver={},M.resolver.depth=0,M.resolver.base=M.source,M.resolver.actions=[[]]}function S(M){return w(M),new Promise(function(T,N){M.resolve?j(M,T,N):T(M)})}function O(M,T,N){return N||(N={}),N.openapi=M,N.source=T,N.resolve=!0,w(N),new Promise(function(G,L){j(N,G,L)})}return JE={optionalResolve:S,resolve:O},JE}var UE,Kue;function Dgt(){if(Kue)return UE;Kue=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(a,r,n,i){if(typeof n.depth>"u"&&(n=e()),a===null||typeof a>"u")return a;if(typeof a.$ref<"u"){let o={$ref:a.$ref};return n.allowRefSiblings&&a.description&&(o.description=a.description),i(o,r,n),o}if(n.combine&&(a.allOf&&Array.isArray(a.allOf)&&a.allOf.length===1&&(a=Object.assign({},a.allOf[0],a),delete a.allOf),a.anyOf&&Array.isArray(a.anyOf)&&a.anyOf.length===1&&(a=Object.assign({},a.anyOf[0],a),delete a.anyOf),a.oneOf&&Array.isArray(a.oneOf)&&a.oneOf.length===1&&(a=Object.assign({},a.oneOf[0],a),delete a.oneOf)),i(a,r,n),n.seen.has(a))return a;if(typeof a=="object"&&a!==null&&n.seen.set(a,!0),n.top=!1,n.depth++,typeof a.items<"u"&&(n.property="items",t(a.items,a,n,i)),a.additionalItems&&typeof a.additionalItems=="object"&&(n.property="additionalItems",t(a.additionalItems,a,n,i)),a.additionalProperties&&typeof a.additionalProperties=="object"&&(n.property="additionalProperties",t(a.additionalProperties,a,n,i)),a.properties)for(let o in a.properties){let s=a.properties[o];n.property="properties/"+o,t(s,a,n,i)}if(a.patternProperties)for(let o in a.patternProperties){let s=a.patternProperties[o];n.property="patternProperties/"+o,t(s,a,n,i)}if(a.allOf)for(let o in a.allOf){let s=a.allOf[o];n.property="allOf/"+o,t(s,a,n,i)}if(a.anyOf)for(let o in a.anyOf){let s=a.anyOf[o];n.property="anyOf/"+o,t(s,a,n,i)}if(a.oneOf)for(let o in a.oneOf){let s=a.oneOf[o];n.property="oneOf/"+o,t(s,a,n,i)}return a.not&&(n.property="not",t(a.not,a,n,i)),n.depth--,a}return UE={getDefaultState:e,walkSchema:t},UE}var Hue={},ZE={exports:{}},Vue={},Fue;function Gue(){return Fue||(Fue=1,function(e){e.fetch=n(globalThis.fetch)&&n(globalThis.ReadableStream),e.writableStream=n(globalThis.WritableStream),e.abortController=n(globalThis.AbortController);var t;function a(){if(t!==void 0)return t;if(globalThis.XMLHttpRequest){t=new globalThis.XMLHttpRequest;try{t.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function r(i){var o=a();if(!o)return!1;try{return o.responseType=i,o.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(a()?n(a().overrideMimeType):!1);function n(i){return typeof i=="function"}t=null}(Vue)),Vue}var VC={},QE={exports:{}},FC={exports:{}},que;function $gt(){if(que)return FC.exports;que=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(j,w,S){return Function.prototype.apply.call(j,w,S)},a;e&&typeof e.ownKeys=="function"?a=e.ownKeys:Object.getOwnPropertySymbols?a=function(j){return Object.getOwnPropertyNames(j).concat(Object.getOwnPropertySymbols(j))}:a=function(j){return Object.getOwnPropertyNames(j)};function r(j){console&&console.warn&&console.warn(j)}var n=Number.isNaN||function(j){return j!==j};function i(){i.init.call(this)}FC.exports=i,FC.exports.once=m,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(j){if(typeof j!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof j)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(j){if(typeof j!="number"||j<0||n(j))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+j+".");o=j}}),i.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},i.prototype.setMaxListeners=function(j){if(typeof j!="number"||j<0||n(j))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+j+".");return this._maxListeners=j,this};function l(j){return j._maxListeners===void 0?i.defaultMaxListeners:j._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(j){for(var w=[],S=1;S<arguments.length;S++)w.push(arguments[S]);var O=j==="error",M=this._events;if(M!==void 0)O=O&&M.error===void 0;else if(!O)return!1;if(O){var T;if(w.length>0&&(T=w[0]),T instanceof Error)throw T;var N=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw N.context=T,N}var G=M[j];if(G===void 0)return!1;if(typeof G=="function")t(G,this,w);else for(var L=G.length,J=f(G,L),S=0;S<L;++S)t(J[S],this,w);return!0};function c(j,w,S,O){var M,T,N;if(s(S),T=j._events,T===void 0?(T=j._events=Object.create(null),j._eventsCount=0):(T.newListener!==void 0&&(j.emit("newListener",w,S.listener?S.listener:S),T=j._events),N=T[w]),N===void 0)N=T[w]=S,++j._eventsCount;else if(typeof N=="function"?N=T[w]=O?[S,N]:[N,S]:O?N.unshift(S):N.push(S),M=l(j),M>0&&N.length>M&&!N.warned){N.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+N.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=j,G.type=w,G.count=N.length,r(G)}return j}i.prototype.addListener=function(j,w){return c(this,j,w,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(j,w){return c(this,j,w,!0)};function u(){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 d(j,w,S){var O={fired:!1,wrapFn:void 0,target:j,type:w,listener:S},M=u.bind(O);return M.listener=S,O.wrapFn=M,M}i.prototype.once=function(j,w){return s(w),this.on(j,d(this,j,w)),this},i.prototype.prependOnceListener=function(j,w){return s(w),this.prependListener(j,d(this,j,w)),this},i.prototype.removeListener=function(j,w){var S,O,M,T,N;if(s(w),O=this._events,O===void 0)return this;if(S=O[j],S===void 0)return this;if(S===w||S.listener===w)--this._eventsCount===0?this._events=Object.create(null):(delete O[j],O.removeListener&&this.emit("removeListener",j,S.listener||w));else if(typeof S!="function"){for(M=-1,T=S.length-1;T>=0;T--)if(S[T]===w||S[T].listener===w){N=S[T].listener,M=T;break}if(M<0)return this;M===0?S.shift():b(S,M),S.length===1&&(O[j]=S[0]),O.removeListener!==void 0&&this.emit("removeListener",j,N||w)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(j){var w,S,O;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[j]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[j]),this;if(arguments.length===0){var M=Object.keys(S),T;for(O=0;O<M.length;++O)T=M[O],T!=="removeListener"&&this.removeAllListeners(T);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(w=S[j],typeof w=="function")this.removeListener(j,w);else if(w!==void 0)for(O=w.length-1;O>=0;O--)this.removeListener(j,w[O]);return this};function p(j,w,S){var O=j._events;if(O===void 0)return[];var M=O[w];return M===void 0?[]:typeof M=="function"?S?[M.listener||M]:[M]:S?g(M):f(M,M.length)}i.prototype.listeners=function(j){return p(this,j,!0)},i.prototype.rawListeners=function(j){return p(this,j,!1)},i.listenerCount=function(j,w){return typeof j.listenerCount=="function"?j.listenerCount(w):h.call(j,w)},i.prototype.listenerCount=h;function h(j){var w=this._events;if(w!==void 0){var S=w[j];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function f(j,w){for(var S=new Array(w),O=0;O<w;++O)S[O]=j[O];return S}function b(j,w){for(;w+1<j.length;w++)j[w]=j[w+1];j.pop()}function g(j){for(var w=new Array(j.length),S=0;S<w.length;++S)w[S]=j[S].listener||j[S];return w}function m(j,w){return new Promise(function(S,O){function M(N){j.removeListener(w,T),O(N)}function T(){typeof j.removeListener=="function"&&j.removeListener("error",M),S([].slice.call(arguments))}x(j,w,T,{once:!0}),w!=="error"&&k(j,M,{once:!0})})}function k(j,w,S){typeof j.on=="function"&&x(j,"error",w,S)}function x(j,w,S,O){if(typeof j.on=="function")O.once?j.once(w,S):j.on(w,S);else if(typeof j.addEventListener=="function")j.addEventListener(w,function M(T){O.once&&j.removeEventListener(w,M),S(T)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof j)}return FC.exports}var Wue,Jue;function Uue(){return Jue||(Jue=1,Wue=$gt().EventEmitter),Wue}const Zue=GG(a6);var YE,Que;function Igt(){if(Que)return YE;Que=1;function e(f,b){var g=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);b&&(m=m.filter(function(k){return Object.getOwnPropertyDescriptor(f,k).enumerable})),g.push.apply(g,m)}return g}function t(f){for(var b=1;b<arguments.length;b++){var g=arguments[b]!=null?arguments[b]:{};b%2?e(Object(g),!0).forEach(function(m){a(f,m,g[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(g)):e(Object(g)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(g,m))})}return f}function a(f,b,g){return b=o(b),b in f?Object.defineProperty(f,b,{value:g,enumerable:!0,configurable:!0,writable:!0}):f[b]=g,f}function r(f,b){if(!(f instanceof b))throw new TypeError("Cannot call a class as a function")}function n(f,b){for(var g=0;g<b.length;g++){var m=b[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(f,o(m.key),m)}}function i(f,b,g){return b&&n(f.prototype,b),Object.defineProperty(f,"prototype",{writable:!1}),f}function o(f){var b=s(f,"string");return typeof b=="symbol"?b:String(b)}function s(f,b){if(typeof f!="object"||f===null)return f;var g=f[Symbol.toPrimitive];if(g!==void 0){var m=g.call(f,b);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}var l=_0(),c=l.Buffer,u=Zue,d=u.inspect,p=d&&d.custom||"inspect";function h(f,b,g){c.prototype.copy.call(f,b,g)}return YE=function(){function f(){r(this,f),this.head=null,this.tail=null,this.length=0}return i(f,[{key:"push",value:function(b){var g={data:b,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(b){var g={data:b,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var g=this.head,m=""+g.data;g=g.next;)m+=b+g.data;return m}},{key:"concat",value:function(b){if(this.length===0)return c.alloc(0);for(var g=c.allocUnsafe(b>>>0),m=this.head,k=0;m;)h(m.data,g,k),k+=m.data.length,m=m.next;return g}},{key:"consume",value:function(b,g){var m;return b<this.head.data.length?(m=this.head.data.slice(0,b),this.head.data=this.head.data.slice(b)):b===this.head.data.length?m=this.shift():m=g?this._getString(b):this._getBuffer(b),m}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(b){var g=this.head,m=1,k=g.data;for(b-=k.length;g=g.next;){var x=g.data,j=b>x.length?x.length:b;if(j===x.length?k+=x:k+=x.slice(0,b),b-=j,b===0){j===x.length?(++m,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=x.slice(j));break}++m}return this.length-=m,k}},{key:"_getBuffer",value:function(b){var g=c.allocUnsafe(b),m=this.head,k=1;for(m.data.copy(g),b-=m.data.length;m=m.next;){var x=m.data,j=b>x.length?x.length:b;if(x.copy(g,g.length-b,0,j),b-=j,b===0){j===x.length?(++k,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=x.slice(j));break}++k}return this.length-=k,g}},{key:p,value:function(b,g){return d(this,t(t({},g),{},{depth:0,customInspect:!1}))}}]),f}(),YE}var XE,Yue;function Xue(){if(Yue)return XE;Yue=1;function e(o,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,o)):process.nextTick(n,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(a,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(a,l),s(d)):process.nextTick(a,l)}),this)}function t(o,s){n(o,s),a(o)}function a(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function r(){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 n(o,s){o.emit("error",s)}function i(o,s){var l=o._readableState,c=o._writableState;l&&l.autoDestroy||c&&c.autoDestroy?o.destroy(s):o.emit("error",s)}return XE={destroy:e,undestroy:r,errorOrDestroy:i},XE}var e8={},ede;function iv(){if(ede)return e8;ede=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function a(s,l,c){c||(c=Error);function u(p,h,f){return typeof l=="string"?l:l(p,h,f)}var d=function(p){e(h,p);function h(f,b,g){return p.call(this,u(f,b,g))||this}return h}(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function r(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(u){return String(u)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function n(s,l,c){return s.substr(0,l.length)===l}function i(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function o(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return a("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&n(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be";var d;if(i(s," argument"))d="The ".concat(s," ").concat(u," ").concat(r(l,"type"));else{var p=o(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(p," ").concat(u," ").concat(r(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e8.codes=t,e8}var t8,tde;function ade(){if(tde)return t8;tde=1;var e=iv().codes.ERR_INVALID_OPT_VALUE;function t(r,n,i){return r.highWaterMark!=null?r.highWaterMark:n?r[i]:null}function a(r,n,i,o){var s=t(n,o,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=o?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return r.objectMode?16:16*1024}return t8={getHighWaterMark:a},t8}var a8,rde;function Kgt(){if(rde)return a8;rde=1,a8=e;function e(a,r){if(t("noDeprecation"))return a;var n=!1;function i(){if(!n){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return a.apply(this,arguments)}return i}function t(a){try{if(!globalThis.localStorage)return!1}catch{return!1}var r=globalThis.localStorage[a];return r==null?!1:String(r).toLowerCase()==="true"}return a8}var r8,nde;function ide(){if(nde)return r8;nde=1,r8=M;function e(H){var ae=this;this.next=null,this.entry=null,this.finish=function(){R(ae,H)}}var t;M.WritableState=S;var a={deprecate:Kgt()},r=Uue(),n=_0().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(H){return n.from(H)}function s(H){return n.isBuffer(H)||H instanceof i}var l=Xue(),c=ade(),u=c.getHighWaterMark,d=iv().codes,p=d.ERR_INVALID_ARG_TYPE,h=d.ERR_METHOD_NOT_IMPLEMENTED,f=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,m=d.ERR_STREAM_NULL_VALUES,k=d.ERR_STREAM_WRITE_AFTER_END,x=d.ERR_UNKNOWN_ENCODING,j=l.errorOrDestroy;function w(){}function S(H,ae,U){t=t||ov(),H=H||{},typeof U!="boolean"&&(U=ae instanceof t),this.objectMode=!!H.objectMode,U&&(this.objectMode=this.objectMode||!!H.writableObjectMode),this.highWaterMark=u(this,H,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var pe=H.decodeStrings===!1;this.decodeStrings=!pe,this.defaultEncoding=H.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){re(ae,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=H.emitClose!==!1,this.autoDestroy=!!H.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}S.prototype.getBuffer=function(){for(var H=this.bufferedRequest,ae=[];H;)ae.push(H),H=H.next;return ae},function(){try{Object.defineProperty(S.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var O;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(H){return O.call(this,H)?!0:this!==M?!1:H&&H._writableState instanceof S}})):O=function(H){return H instanceof this};function M(H){t=t||ov();var ae=this instanceof t;if(!ae&&!O.call(M,this))return new M(H);this._writableState=new S(H,this,ae),this.writable=!0,H&&(typeof H.write=="function"&&(this._write=H.write),typeof H.writev=="function"&&(this._writev=H.writev),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.final=="function"&&(this._final=H.final)),r.call(this)}M.prototype.pipe=function(){j(this,new b)};function T(H,ae){var U=new k;j(H,U),process.nextTick(ae,U)}function N(H,ae,U,pe){var Z;return U===null?Z=new m:typeof U!="string"&&!ae.objectMode&&(Z=new p("chunk",["string","Buffer"],U)),Z?(j(H,Z),process.nextTick(pe,Z),!1):!0}M.prototype.write=function(H,ae,U){var pe=this._writableState,Z=!1,A=!pe.objectMode&&s(H);return A&&!n.isBuffer(H)&&(H=o(H)),typeof ae=="function"&&(U=ae,ae=null),A?ae="buffer":ae||(ae=pe.defaultEncoding),typeof U!="function"&&(U=w),pe.ending?T(this,U):(A||N(this,pe,H,U))&&(pe.pendingcb++,Z=L(this,pe,A,H,ae,U)),Z},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var H=this._writableState;H.corked&&(H.corked--,!H.writing&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&he(this,H))},M.prototype.setDefaultEncoding=function(H){if(typeof H=="string"&&(H=H.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((H+"").toLowerCase())>-1))throw new x(H);return this._writableState.defaultEncoding=H,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function G(H,ae,U){return!H.objectMode&&H.decodeStrings!==!1&&typeof ae=="string"&&(ae=n.from(ae,U)),ae}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(H,ae,U,pe,Z,A){if(!U){var E=G(ae,pe,Z);pe!==E&&(U=!0,Z="buffer",pe=E)}var te=ae.objectMode?1:pe.length;ae.length+=te;var V=ae.length<ae.highWaterMark;if(V||(ae.needDrain=!0),ae.writing||ae.corked){var oe=ae.lastBufferedRequest;ae.lastBufferedRequest={chunk:pe,encoding:Z,isBuf:U,callback:A,next:null},oe?oe.next=ae.lastBufferedRequest:ae.bufferedRequest=ae.lastBufferedRequest,ae.bufferedRequestCount+=1}else J(H,ae,!1,te,pe,Z,A);return V}function J(H,ae,U,pe,Z,A,E){ae.writelen=pe,ae.writecb=E,ae.writing=!0,ae.sync=!0,ae.destroyed?ae.onwrite(new g("write")):U?H._writev(Z,ae.onwrite):H._write(Z,A,ae.onwrite),ae.sync=!1}function I(H,ae,U,pe,Z){--ae.pendingcb,U?(process.nextTick(Z,pe),process.nextTick($,H,ae),H._writableState.errorEmitted=!0,j(H,pe)):(Z(pe),H._writableState.errorEmitted=!0,j(H,pe),$(H,ae))}function X(H){H.writing=!1,H.writecb=null,H.length-=H.writelen,H.writelen=0}function re(H,ae){var U=H._writableState,pe=U.sync,Z=U.writecb;if(typeof Z!="function")throw new f;if(X(U),ae)I(H,U,pe,ae,Z);else{var A=F(U)||H.destroyed;!A&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&he(H,U),pe?process.nextTick(le,H,U,A,Z):le(H,U,A,Z)}}function le(H,ae,U,pe){U||ie(H,ae),ae.pendingcb--,pe(),$(H,ae)}function ie(H,ae){ae.length===0&&ae.needDrain&&(ae.needDrain=!1,H.emit("drain"))}function he(H,ae){ae.bufferProcessing=!0;var U=ae.bufferedRequest;if(H._writev&&U&&U.next){var pe=ae.bufferedRequestCount,Z=new Array(pe),A=ae.corkedRequestsFree;A.entry=U;for(var E=0,te=!0;U;)Z[E]=U,U.isBuf||(te=!1),U=U.next,E+=1;Z.allBuffers=te,J(H,ae,!0,ae.length,Z,"",A.finish),ae.pendingcb++,ae.lastBufferedRequest=null,A.next?(ae.corkedRequestsFree=A.next,A.next=null):ae.corkedRequestsFree=new e(ae),ae.bufferedRequestCount=0}else{for(;U;){var V=U.chunk,oe=U.encoding,ue=U.callback,Q=ae.objectMode?1:V.length;if(J(H,ae,!1,Q,V,oe,ue),U=U.next,ae.bufferedRequestCount--,ae.writing)break}U===null&&(ae.lastBufferedRequest=null)}ae.bufferedRequest=U,ae.bufferProcessing=!1}M.prototype._write=function(H,ae,U){U(new h("_write()"))},M.prototype._writev=null,M.prototype.end=function(H,ae,U){var pe=this._writableState;return typeof H=="function"?(U=H,H=null,ae=null):typeof ae=="function"&&(U=ae,ae=null),H!=null&&this.write(H,ae),pe.corked&&(pe.corked=1,this.uncork()),pe.ending||P(this,pe,U),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function F(H){return H.ending&&H.length===0&&H.bufferedRequest===null&&!H.finished&&!H.writing}function D(H,ae){H._final(function(U){ae.pendingcb--,U&&j(H,U),ae.prefinished=!0,H.emit("prefinish"),$(H,ae)})}function W(H,ae){!ae.prefinished&&!ae.finalCalled&&(typeof H._final=="function"&&!ae.destroyed?(ae.pendingcb++,ae.finalCalled=!0,process.nextTick(D,H,ae)):(ae.prefinished=!0,H.emit("prefinish")))}function $(H,ae){var U=F(ae);if(U&&(W(H,ae),ae.pendingcb===0&&(ae.finished=!0,H.emit("finish"),ae.autoDestroy))){var pe=H._readableState;(!pe||pe.autoDestroy&&pe.endEmitted)&&H.destroy()}return U}function P(H,ae,U){ae.ending=!0,$(H,ae),U&&(ae.finished?process.nextTick(U):H.once("finish",U)),ae.ended=!0,H.writable=!1}function R(H,ae,U){var pe=H.entry;for(H.entry=null;pe;){var Z=pe.callback;ae.pendingcb--,Z(U),pe=pe.next}ae.corkedRequestsFree.next=H}return Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(H){this._writableState&&(this._writableState.destroyed=H)}}),M.prototype.destroy=l.destroy,M.prototype._undestroy=l.undestroy,M.prototype._destroy=function(H,ae){ae(H)},r8}var n8,ode;function ov(){if(ode)return n8;ode=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};n8=o;for(var t=fde(),a=ide(),r=e(a.prototype),n=0;n<r.length;n++){var i=r[n];o.prototype[i]||(o.prototype[i]=a.prototype[i])}function o(c){if(!(this instanceof o))return new o(c);t.call(this,c),a.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),n8}var i8={},o8={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var sde;function Hgt(){return sde||(sde=1,function(e,t){var a=_0(),r=a.Buffer;function n(o,s){for(var l in o)s[l]=o[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=a:(n(a,t),t.Buffer=i);function i(o,s,l){return r(o,s,l)}i.prototype=Object.create(r.prototype),n(r,i),i.from=function(o,s,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return r(o,s,l)},i.alloc=function(o,s,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=r(o);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(o)}}(o8,o8.exports)),o8.exports}var lde;function cde(){if(lde)return i8;lde=1;var e=Hgt().Buffer,t=e.isEncoding||function(m){switch(m=""+m,m&&m.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 a(m){if(!m)return"utf8";for(var k;;)switch(m){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 m;default:if(k)return;m=(""+m).toLowerCase(),k=!0}}function r(m){var k=a(m);if(typeof k!="string"&&(e.isEncoding===t||!t(m)))throw new Error("Unknown encoding: "+m);return k||m}i8.StringDecoder=n;function n(m){this.encoding=r(m);var k;switch(this.encoding){case"utf16le":this.text=d,this.end=p,k=4;break;case"utf8":this.fillLast=l,k=4;break;case"base64":this.text=h,this.end=f,k=3;break;default:this.write=b,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(k)}n.prototype.write=function(m){if(m.length===0)return"";var k,x;if(this.lastNeed){if(k=this.fillLast(m),k===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<m.length?k?k+this.text(m,x):this.text(m,x):k||""},n.prototype.end=u,n.prototype.text=c,n.prototype.fillLast=function(m){if(this.lastNeed<=m.length)return m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,m.length),this.lastNeed-=m.length};function i(m){return m<=127?0:m>>5===6?2:m>>4===14?3:m>>3===30?4:m>>6===2?-1:-2}function o(m,k,x){var j=k.length-1;if(j<x)return 0;var w=i(k[j]);return w>=0?(w>0&&(m.lastNeed=w-1),w):--j<x||w===-2?0:(w=i(k[j]),w>=0?(w>0&&(m.lastNeed=w-2),w):--j<x||w===-2?0:(w=i(k[j]),w>=0?(w>0&&(w===2?w=0:m.lastNeed=w-3),w):0))}function s(m,k,x){if((k[0]&192)!==128)return m.lastNeed=0,"\uFFFD";if(m.lastNeed>1&&k.length>1){if((k[1]&192)!==128)return m.lastNeed=1,"\uFFFD";if(m.lastNeed>2&&k.length>2&&(k[2]&192)!==128)return m.lastNeed=2,"\uFFFD"}}function l(m){var k=this.lastTotal-this.lastNeed,x=s(this,m);if(x!==void 0)return x;if(this.lastNeed<=m.length)return m.copy(this.lastChar,k,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,k,0,m.length),this.lastNeed-=m.length}function c(m,k){var x=o(this,m,k);if(!this.lastNeed)return m.toString("utf8",k);this.lastTotal=x;var j=m.length-(x-this.lastNeed);return m.copy(this.lastChar,0,j),m.toString("utf8",k,j)}function u(m){var k=m&&m.length?this.write(m):"";return this.lastNeed?k+"\uFFFD":k}function d(m,k){if((m.length-k)%2===0){var x=m.toString("utf16le",k);if(x){var j=x.charCodeAt(x.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",k,m.length-1)}function p(m){var k=m&&m.length?this.write(m):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return k+this.lastChar.toString("utf16le",0,x)}return k}function h(m,k){var x=(m.length-k)%3;return x===0?m.toString("base64",k):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",k,m.length-x))}function f(m){var k=m&&m.length?this.write(m):"";return this.lastNeed?k+this.lastChar.toString("base64",0,3-this.lastNeed):k}function b(m){return m.toString(this.encoding)}function g(m){return m&&m.length?this.write(m):""}return i8}var s8,ude;function l8(){if(ude)return s8;ude=1;var e=iv().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var o=!1;return function(){if(!o){o=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function a(){}function r(i){return i.setHeader&&typeof i.abort=="function"}function n(i,o,s){if(typeof o=="function")return n(i,null,o);o||(o={}),s=t(s||a);var l=o.readable||o.readable!==!1&&i.readable,c=o.writable||o.writable!==!1&&i.writable,u=function(){i.writable||p()},d=i._writableState&&i._writableState.finished,p=function(){c=!1,d=!0,l||s.call(i)},h=i._readableState&&i._readableState.endEmitted,f=function(){l=!1,h=!0,c||s.call(i)},b=function(k){s.call(i,k)},g=function(){var k;if(l&&!h)return(!i._readableState||!i._readableState.ended)&&(k=new e),s.call(i,k);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(k=new e),s.call(i,k)},m=function(){i.req.on("finish",p)};return r(i)?(i.on("complete",p),i.on("abort",g),i.req?m():i.on("request",m)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",f),i.on("finish",p),o.error!==!1&&i.on("error",b),i.on("close",g),function(){i.removeListener("complete",p),i.removeListener("abort",g),i.removeListener("request",m),i.req&&i.req.removeListener("finish",p),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",p),i.removeListener("end",f),i.removeListener("error",b),i.removeListener("close",g)}}return s8=n,s8}var c8,dde;function Vgt(){if(dde)return c8;dde=1;var e;function t(x,j,w){return j=a(j),j in x?Object.defineProperty(x,j,{value:w,enumerable:!0,configurable:!0,writable:!0}):x[j]=w,x}function a(x){var j=r(x,"string");return typeof j=="symbol"?j:String(j)}function r(x,j){if(typeof x!="object"||x===null)return x;var w=x[Symbol.toPrimitive];if(w!==void 0){var S=w.call(x,j);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(x)}var n=l8(),i=Symbol("lastResolve"),o=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function p(x,j){return{value:x,done:j}}function h(x){var j=x[i];if(j!==null){var w=x[d].read();w!==null&&(x[c]=null,x[i]=null,x[o]=null,j(p(w,!1)))}}function f(x){process.nextTick(h,x)}function b(x,j){return function(w,S){x.then(function(){if(j[l]){w(p(void 0,!0));return}j[u](w,S)},S)}}var g=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var x=this,j=this[s];if(j!==null)return Promise.reject(j);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(M,T){process.nextTick(function(){x[s]?T(x[s]):M(p(void 0,!0))})});var w=this[c],S;if(w)S=new Promise(b(w,this));else{var O=this[d].read();if(O!==null)return Promise.resolve(p(O,!1));S=new Promise(this[u])}return this[c]=S,S}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var x=this;return new Promise(function(j,w){x[d].destroy(null,function(S){if(S){w(S);return}j(p(void 0,!0))})})}),e),g),k=function(x){var j,w=Object.create(m,(j={},t(j,d,{value:x,writable:!0}),t(j,i,{value:null,writable:!0}),t(j,o,{value:null,writable:!0}),t(j,s,{value:null,writable:!0}),t(j,l,{value:x._readableState.endEmitted,writable:!0}),t(j,u,{value:function(S,O){var M=w[d].read();M?(w[c]=null,w[i]=null,w[o]=null,S(p(M,!1))):(w[i]=S,w[o]=O)},writable:!0}),j));return w[c]=null,n(x,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var O=w[o];O!==null&&(w[c]=null,w[i]=null,w[o]=null,O(S)),w[s]=S;return}var M=w[i];M!==null&&(w[c]=null,w[i]=null,w[o]=null,M(p(void 0,!0))),w[l]=!0}),x.on("readable",f.bind(null,w)),w};return c8=k,c8}var pde,hde;function Fgt(){return hde||(hde=1,pde=function(){throw new Error("Readable.from is not available in the browser")}),pde}var u8,mde;function fde(){if(mde)return u8;mde=1,u8=T;var e;T.ReadableState=M;var t=function(A,E){return A.listeners(E).length},a=Uue(),r=_0().Buffer,n=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(A){return r.from(A)}function o(A){return r.isBuffer(A)||A instanceof n}var s=Zue,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=Igt(),u=Xue(),d=ade(),p=d.getHighWaterMark,h=iv().codes,f=h.ERR_INVALID_ARG_TYPE,b=h.ERR_STREAM_PUSH_AFTER_EOF,g=h.ERR_METHOD_NOT_IMPLEMENTED,m=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,k,x,j,w=u.errorOrDestroy,S=["error","close","destroy","pause","resume"];function O(A,E,te){if(typeof A.prependListener=="function")return A.prependListener(E,te);!A._events||!A._events[E]?A.on(E,te):Array.isArray(A._events[E])?A._events[E].unshift(te):A._events[E]=[te,A._events[E]]}function M(A,E,te){e=e||ov(),A=A||{},typeof te!="boolean"&&(te=E instanceof e),this.objectMode=!!A.objectMode,te&&(this.objectMode=this.objectMode||!!A.readableObjectMode),this.highWaterMark=p(this,A,"readableHighWaterMark",te),this.buffer=new c,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=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.destroyed=!1,this.defaultEncoding=A.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,A.encoding&&(k||(k=cde().StringDecoder),this.decoder=new k(A.encoding),this.encoding=A.encoding)}function T(A){if(e=e||ov(),!(this instanceof T))return new T(A);var E=this instanceof e;this._readableState=new M(A,this,E),this.readable=!0,A&&(typeof A.read=="function"&&(this._read=A.read),typeof A.destroy=="function"&&(this._destroy=A.destroy)),a.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(A){this._readableState&&(this._readableState.destroyed=A)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(A,E){E(A)},T.prototype.push=function(A,E){var te=this._readableState,V;return te.objectMode?V=!0:typeof A=="string"&&(E=E||te.defaultEncoding,E!==te.encoding&&(A=r.from(A,E),E=""),V=!0),N(this,A,E,!1,V)},T.prototype.unshift=function(A){return N(this,A,null,!0,!1)};function N(A,E,te,V,oe){l("readableAddChunk",E);var ue=A._readableState;if(E===null)ue.reading=!1,re(A,ue);else{var Q;if(oe||(Q=L(ue,E)),Q)w(A,Q);else if(ue.objectMode||E&&E.length>0)if(typeof E!="string"&&!ue.objectMode&&Object.getPrototypeOf(E)!==r.prototype&&(E=i(E)),V)ue.endEmitted?w(A,new m):G(A,ue,E,!0);else if(ue.ended)w(A,new b);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!te?(E=ue.decoder.write(E),ue.objectMode||E.length!==0?G(A,ue,E,!1):he(A,ue)):G(A,ue,E,!1)}else V||(ue.reading=!1,he(A,ue))}return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function G(A,E,te,V){E.flowing&&E.length===0&&!E.sync?(E.awaitDrain=0,A.emit("data",te)):(E.length+=E.objectMode?1:te.length,V?E.buffer.unshift(te):E.buffer.push(te),E.needReadable&&le(A)),he(A,E)}function L(A,E){var te;return!o(E)&&typeof E!="string"&&E!==void 0&&!A.objectMode&&(te=new f("chunk",["string","Buffer","Uint8Array"],E)),te}T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(A){k||(k=cde().StringDecoder);var E=new k(A);this._readableState.decoder=E,this._readableState.encoding=this._readableState.decoder.encoding;for(var te=this._readableState.buffer.head,V="";te!==null;)V+=E.write(te.data),te=te.next;return this._readableState.buffer.clear(),V!==""&&this._readableState.buffer.push(V),this._readableState.length=V.length,this};var J=1073741824;function I(A){return A>=J?A=J:(A--,A|=A>>>1,A|=A>>>2,A|=A>>>4,A|=A>>>8,A|=A>>>16,A++),A}function X(A,E){return A<=0||E.length===0&&E.ended?0:E.objectMode?1:A!==A?E.flowing&&E.length?E.buffer.head.data.length:E.length:(A>E.highWaterMark&&(E.highWaterMark=I(A)),A<=E.length?A:E.ended?E.length:(E.needReadable=!0,0))}T.prototype.read=function(A){l("read",A),A=parseInt(A,10);var E=this._readableState,te=A;if(A!==0&&(E.emittedReadable=!1),A===0&&E.needReadable&&((E.highWaterMark!==0?E.length>=E.highWaterMark:E.length>0)||E.ended))return l("read: emitReadable",E.length,E.ended),E.length===0&&E.ended?U(this):le(this),null;if(A=X(A,E),A===0&&E.ended)return E.length===0&&U(this),null;var V=E.needReadable;l("need readable",V),(E.length===0||E.length-A<E.highWaterMark)&&(V=!0,l("length less than watermark",V)),E.ended||E.reading?(V=!1,l("reading or ended",V)):V&&(l("do read"),E.reading=!0,E.sync=!0,E.length===0&&(E.needReadable=!0),this._read(E.highWaterMark),E.sync=!1,E.reading||(A=X(te,E)));var oe;return A>0?oe=ae(A,E):oe=null,oe===null?(E.needReadable=E.length<=E.highWaterMark,A=0):(E.length-=A,E.awaitDrain=0),E.length===0&&(E.ended||(E.needReadable=!0),te!==A&&E.ended&&U(this)),oe!==null&&this.emit("data",oe),oe};function re(A,E){if(l("onEofChunk"),!E.ended){if(E.decoder){var te=E.decoder.end();te&&te.length&&(E.buffer.push(te),E.length+=E.objectMode?1:te.length)}E.ended=!0,E.sync?le(A):(E.needReadable=!1,E.emittedReadable||(E.emittedReadable=!0,ie(A)))}}function le(A){var E=A._readableState;l("emitReadable",E.needReadable,E.emittedReadable),E.needReadable=!1,E.emittedReadable||(l("emitReadable",E.flowing),E.emittedReadable=!0,process.nextTick(ie,A))}function ie(A){var E=A._readableState;l("emitReadable_",E.destroyed,E.length,E.ended),!E.destroyed&&(E.length||E.ended)&&(A.emit("readable"),E.emittedReadable=!1),E.needReadable=!E.flowing&&!E.ended&&E.length<=E.highWaterMark,H(A)}function he(A,E){E.readingMore||(E.readingMore=!0,process.nextTick(F,A,E))}function F(A,E){for(;!E.reading&&!E.ended&&(E.length<E.highWaterMark||E.flowing&&E.length===0);){var te=E.length;if(l("maybeReadMore read 0"),A.read(0),te===E.length)break}E.readingMore=!1}T.prototype._read=function(A){w(this,new g("_read()"))},T.prototype.pipe=function(A,E){var te=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=A;break;case 1:V.pipes=[V.pipes,A];break;default:V.pipes.push(A);break}V.pipesCount+=1,l("pipe count=%d opts=%j",V.pipesCount,E);var oe=(!E||E.end!==!1)&&A!==null&&A!==process.stderr,ue=oe?se:Je;V.endEmitted?process.nextTick(ue):te.once("end",ue),A.on("unpipe",Q);function Q(B,ne){l("onunpipe"),B===te&&ne&&ne.hasUnpiped===!1&&(ne.hasUnpiped=!0,ge())}function se(){l("onend"),A.end()}var de=D(te);A.on("drain",de);var be=!1;function ge(){l("cleanup"),A.removeListener("close",Se),A.removeListener("finish",Ce),A.removeListener("drain",de),A.removeListener("error",ve),A.removeListener("unpipe",Q),te.removeListener("end",se),te.removeListener("end",Je),te.removeListener("data",me),be=!0,V.awaitDrain&&(!A._writableState||A._writableState.needDrain)&&de()}te.on("data",me);function me(B){l("ondata");var ne=A.write(B);l("dest.write",ne),ne===!1&&((V.pipesCount===1&&V.pipes===A||V.pipesCount>1&&Z(V.pipes,A)!==-1)&&!be&&(l("false write response, pause",V.awaitDrain),V.awaitDrain++),te.pause())}function ve(B){l("onerror",B),Je(),A.removeListener("error",ve),t(A,"error")===0&&w(A,B)}O(A,"error",ve);function Se(){A.removeListener("finish",Ce),Je()}A.once("close",Se);function Ce(){l("onfinish"),A.removeListener("close",Se),Je()}A.once("finish",Ce);function Je(){l("unpipe"),te.unpipe(A)}return A.emit("pipe",te),V.flowing||(l("pipe resume"),te.resume()),A};function D(A){return function(){var E=A._readableState;l("pipeOnDrain",E.awaitDrain),E.awaitDrain&&E.awaitDrain--,E.awaitDrain===0&&t(A,"data")&&(E.flowing=!0,H(A))}}T.prototype.unpipe=function(A){var E=this._readableState,te={hasUnpiped:!1};if(E.pipesCount===0)return this;if(E.pipesCount===1)return A&&A!==E.pipes?this:(A||(A=E.pipes),E.pipes=null,E.pipesCount=0,E.flowing=!1,A&&A.emit("unpipe",this,te),this);if(!A){var V=E.pipes,oe=E.pipesCount;E.pipes=null,E.pipesCount=0,E.flowing=!1;for(var ue=0;ue<oe;ue++)V[ue].emit("unpipe",this,{hasUnpiped:!1});return this}var Q=Z(E.pipes,A);return Q===-1?this:(E.pipes.splice(Q,1),E.pipesCount-=1,E.pipesCount===1&&(E.pipes=E.pipes[0]),A.emit("unpipe",this,te),this)},T.prototype.on=function(A,E){var te=a.prototype.on.call(this,A,E),V=this._readableState;return A==="data"?(V.readableListening=this.listenerCount("readable")>0,V.flowing!==!1&&this.resume()):A==="readable"&&!V.endEmitted&&!V.readableListening&&(V.readableListening=V.needReadable=!0,V.flowing=!1,V.emittedReadable=!1,l("on readable",V.length,V.reading),V.length?le(this):V.reading||process.nextTick($,this)),te},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(A,E){var te=a.prototype.removeListener.call(this,A,E);return A==="readable"&&process.nextTick(W,this),te},T.prototype.removeAllListeners=function(A){var E=a.prototype.removeAllListeners.apply(this,arguments);return(A==="readable"||A===void 0)&&process.nextTick(W,this),E};function W(A){var E=A._readableState;E.readableListening=A.listenerCount("readable")>0,E.resumeScheduled&&!E.paused?E.flowing=!0:A.listenerCount("data")>0&&A.resume()}function $(A){l("readable nexttick read 0"),A.read(0)}T.prototype.resume=function(){var A=this._readableState;return A.flowing||(l("resume"),A.flowing=!A.readableListening,P(this,A)),A.paused=!1,this};function P(A,E){E.resumeScheduled||(E.resumeScheduled=!0,process.nextTick(R,A,E))}function R(A,E){l("resume",E.reading),E.reading||A.read(0),E.resumeScheduled=!1,A.emit("resume"),H(A),E.flowing&&!E.reading&&A.read(0)}T.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function H(A){var E=A._readableState;for(l("flow",E.flowing);E.flowing&&A.read()!==null;);}T.prototype.wrap=function(A){var E=this,te=this._readableState,V=!1;A.on("end",function(){if(l("wrapped end"),te.decoder&&!te.ended){var Q=te.decoder.end();Q&&Q.length&&E.push(Q)}E.push(null)}),A.on("data",function(Q){if(l("wrapped data"),te.decoder&&(Q=te.decoder.write(Q)),!(te.objectMode&&Q==null)&&!(!te.objectMode&&(!Q||!Q.length))){var se=E.push(Q);se||(V=!0,A.pause())}});for(var oe in A)this[oe]===void 0&&typeof A[oe]=="function"&&(this[oe]=function(Q){return function(){return A[Q].apply(A,arguments)}}(oe));for(var ue=0;ue<S.length;ue++)A.on(S[ue],this.emit.bind(this,S[ue]));return this._read=function(Q){l("wrapped _read",Q),V&&(V=!1,A.resume())},this},typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return x===void 0&&(x=Vgt()),x(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(A){this._readableState&&(this._readableState.flowing=A)}}),T._fromList=ae,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ae(A,E){if(E.length===0)return null;var te;return E.objectMode?te=E.buffer.shift():!A||A>=E.length?(E.decoder?te=E.buffer.join(""):E.buffer.length===1?te=E.buffer.first():te=E.buffer.concat(E.length),E.buffer.clear()):te=E.buffer.consume(A,E.decoder),te}function U(A){var E=A._readableState;l("endReadable",E.endEmitted),E.endEmitted||(E.ended=!0,process.nextTick(pe,E,A))}function pe(A,E){if(l("endReadableNT",A.endEmitted,A.length),!A.endEmitted&&A.length===0&&(A.endEmitted=!0,E.readable=!1,E.emit("end"),A.autoDestroy)){var te=E._writableState;(!te||te.autoDestroy&&te.finished)&&E.destroy()}}typeof Symbol=="function"&&(T.from=function(A,E){return j===void 0&&(j=Fgt()),j(T,A,E)});function Z(A,E){for(var te=0,V=A.length;te<V;te++)if(A[te]===E)return te;return-1}return u8}var d8,gde;function vde(){if(gde)return d8;gde=1,d8=s;var e=iv().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,a=e.ERR_MULTIPLE_CALLBACK,r=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=e.ERR_TRANSFORM_WITH_LENGTH_0,i=ov();function o(u,d){var p=this._transformState;p.transforming=!1;var h=p.writecb;if(h===null)return this.emit("error",new a);p.writechunk=null,p.writecb=null,d!=null&&this.push(d),h(u);var f=this._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);i.call(this,u),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function l(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(d,p){c(u,d,p)}):c(this,null,null)}s.prototype.push=function(u,d){return this._transformState.needTransform=!1,i.prototype.push.call(this,u,d)},s.prototype._transform=function(u,d,p){p(new t("_transform()"))},s.prototype._write=function(u,d,p){var h=this._transformState;if(h.writecb=p,h.writechunk=u,h.writeencoding=d,!h.transforming){var f=this._readableState;(h.needTransform||f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}},s.prototype._read=function(u){var d=this._transformState;d.writechunk!==null&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},s.prototype._destroy=function(u,d){i.prototype._destroy.call(this,u,function(p){d(p)})};function c(u,d,p){if(d)return u.emit("error",d);if(p!=null&&u.push(p),u._writableState.length)throw new n;if(u._transformState.transforming)throw new r;return u.push(null)}return d8}var p8,bde;function Ggt(){if(bde)return p8;bde=1,p8=t;var e=vde();function t(a){if(!(this instanceof t))return new t(a);e.call(this,a)}return t.prototype._transform=function(a,r,n){n(null,a)},p8}var h8,kde;function qgt(){if(kde)return h8;kde=1;var e;function t(p){var h=!1;return function(){h||(h=!0,p.apply(void 0,arguments))}}var a=iv().codes,r=a.ERR_MISSING_ARGS,n=a.ERR_STREAM_DESTROYED;function i(p){if(p)throw p}function o(p){return p.setHeader&&typeof p.abort=="function"}function s(p,h,f,b){b=t(b);var g=!1;p.on("close",function(){g=!0}),e===void 0&&(e=l8()),e(p,{readable:h,writable:f},function(k){if(k)return b(k);g=!0,b()});var m=!1;return function(k){if(!g&&!m){if(m=!0,o(p))return p.abort();if(typeof p.destroy=="function")return p.destroy();b(k||new n("pipe"))}}}function l(p){p()}function c(p,h){return p.pipe(h)}function u(p){return!p.length||typeof p[p.length-1]!="function"?i:p.pop()}function d(){for(var p=arguments.length,h=new Array(p),f=0;f<p;f++)h[f]=arguments[f];var b=u(h);if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new r("streams");var g,m=h.map(function(k,x){var j=x<h.length-1,w=x>0;return s(k,j,w,function(S){g||(g=S),S&&m.forEach(l),!j&&(m.forEach(l),b(g))})});return h.reduce(c)}return h8=d,h8}var yde;function xde(){return yde||(yde=1,function(e,t){t=e.exports=fde(),t.Stream=t,t.Readable=t,t.Writable=ide(),t.Duplex=ov(),t.Transform=vde(),t.PassThrough=Ggt(),t.finished=l8(),t.pipeline=qgt()}(QE,QE.exports)),QE.exports}var wde;function zde(){if(wde)return VC;wde=1;var e=Gue(),t=KN(),a=xde(),r=VC.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=VC.IncomingMessage=function(i,o,s,l){var c=this;if(a.Readable.call(c),c._mode=s,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){process.nextTick(function(){c.emit("close")})}),s==="fetch"){let b=function(){d.read().then(function(g){if(!c._destroyed){if(l(g.done),g.done){c.push(null);return}c.push(Buffer.from(g.value)),b()}}).catch(function(g){l(!0),c._destroyed||c.emit("error",g)})};if(c._fetchResponse=o,c.url=o.url,c.statusCode=o.status,c.statusMessage=o.statusText,o.headers.forEach(function(g,m){c.headers[m.toLowerCase()]=g,c.rawHeaders.push(m,g)}),e.writableStream){var u=new WritableStream({write:function(g){return l(!1),new Promise(function(m,k){c._destroyed?k():c.push(Buffer.from(g))?m():c._resumeFetch=m})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(g){l(!0),c._destroyed||c.emit("error",g)}});try{o.body.pipeTo(u).catch(function(g){l(!0),c._destroyed||c.emit("error",g)});return}catch{}}var d=o.body.getReader();b()}else{c._xhr=i,c._pos=0,c.url=i.responseURL,c.statusCode=i.status,c.statusMessage=i.statusText;var p=i.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(b){var g=b.match(/^([^:]+):\s*(.*)/);if(g){var m=g[1].toLowerCase();m==="set-cookie"?(c.headers[m]===void 0&&(c.headers[m]=[]),c.headers[m].push(g[2])):c.headers[m]!==void 0?c.headers[m]+=", "+g[2]:c.headers[m]=g[2],c.rawHeaders.push(g[1],g[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var h=c.rawHeaders["mime-type"];if(h){var f=h.match(/;\s*charset=([^;])(;|$)/);f&&(c._charset=f[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(n,a.Readable),n.prototype._read=function(){var i=this,o=i._resumeFetch;o&&(i._resumeFetch=null,o())},n.prototype._onXHRProgress=function(i){var o=this,s=o._xhr,l=null;switch(o._mode){case"text":if(l=s.responseText,l.length>o._pos){var c=l.substr(o._pos);if(o._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;o.push(u)}else o.push(c,o._charset);o._pos=l.length}break;case"arraybuffer":if(s.readyState!==r.DONE||!s.response)break;l=s.response,o.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==r.LOADING||!l)break;o.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==r.LOADING)break;var p=new globalThis.MSStreamReader;p.onprogress=function(){p.result.byteLength>o._pos&&(o.push(Buffer.from(new Uint8Array(p.result.slice(o._pos)))),o._pos=p.result.byteLength)},p.onload=function(){i(!0),o.push(null)},p.readAsArrayBuffer(l);break}o._xhr.readyState===r.DONE&&o._mode!=="ms-stream"&&(i(!0),o.push(null))},VC}var Sde;function Wgt(){if(Sde)return ZE.exports;Sde=1;var e=Gue(),t=KN(),a=zde(),r=xde(),n=a.IncomingMessage,i=a.readyStates;function o(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=ZE.exports=function(u){var d=this;r.Writable.call(d),d._opts=u,d._body=[],d._headers={},u.auth&&d.setHeader("Authorization","Basic "+Buffer.from(u.auth).toString("base64")),Object.keys(u.headers).forEach(function(f){d.setHeader(f,u.headers[f])});var p,h=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)h=!1,p=!0;else if(u.mode==="prefer-streaming")p=!1;else if(u.mode==="allow-wrong-content-type")p=!e.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")p=!0;else throw new Error("Invalid value for opts.mode");d._mode=o(p,h),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,r.Writable),s.prototype.setHeader=function(u,d){var p=this,h=u.toLowerCase();c.indexOf(h)===-1&&(p._headers[h]={name:u,value:d})},s.prototype.getHeader=function(u){var d=this._headers[u.toLowerCase()];return d?d.value:null},s.prototype.removeHeader=function(u){var d=this;delete d._headers[u.toLowerCase()]},s.prototype._onFinish=function(){var u=this;if(!u._destroyed){var d=u._opts;"timeout"in d&&d.timeout!==0&&u.setTimeout(d.timeout);var p=u._headers,h=null;d.method!=="GET"&&d.method!=="HEAD"&&(h=new Blob(u._body,{type:(p["content-type"]||{}).value||""}));var f=[];if(Object.keys(p).forEach(function(k){var x=p[k].name,j=p[k].value;Array.isArray(j)?j.forEach(function(w){f.push([x,w])}):f.push([x,j])}),u._mode==="fetch"){var b=null;if(e.abortController){var g=new AbortController;b=g.signal,u._fetchAbortController=g,"requestTimeout"in d&&d.requestTimeout!==0&&(u._fetchTimer=globalThis.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},d.requestTimeout))}globalThis.fetch(u._opts.url,{method:u._opts.method,headers:f,body:h||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:b}).then(function(k){u._fetchResponse=k,u._resetTimers(!1),u._connect()},function(k){u._resetTimers(!0),u._destroyed||u.emit("error",k)})}else{var m=u._xhr=new globalThis.XMLHttpRequest;try{m.open(u._opts.method,u._opts.url,!0)}catch(k){process.nextTick(function(){u.emit("error",k)});return}"responseType"in m&&(m.responseType=u._mode),"withCredentials"in m&&(m.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in m&&m.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(m.timeout=d.requestTimeout,m.ontimeout=function(){u.emit("requestTimeout")}),f.forEach(function(k){m.setRequestHeader(k[0],k[1])}),u._response=null,m.onreadystatechange=function(){switch(m.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(m.onprogress=function(){u._onXHRProgress()}),m.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{m.send(h)}catch(k){process.nextTick(function(){u.emit("error",k)});return}}}};function l(u){try{var d=u.status;return d!==null&&d!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var u=this;u._resetTimers(!1),!(!l(u._xhr)||u._destroyed)&&(u._response||u._connect(),u._response._onXHRProgress(u._resetTimers.bind(u)))},s.prototype._connect=function(){var u=this;u._destroyed||(u._response=new n(u._xhr,u._fetchResponse,u._mode,u._resetTimers.bind(u)),u._response.on("error",function(d){u.emit("error",d)}),u.emit("response",u._response))},s.prototype._write=function(u,d,p){var h=this;h._body.push(u),p()},s.prototype._resetTimers=function(u){var d=this;globalThis.clearTimeout(d._socketTimer),d._socketTimer=null,u?(globalThis.clearTimeout(d._fetchTimer),d._fetchTimer=null):d._socketTimeout&&(d._socketTimer=globalThis.setTimeout(function(){d.emit("timeout")},d._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(u){var d=this;d._destroyed=!0,d._resetTimers(!0),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort(),u&&d.emit("error",u)},s.prototype.end=function(u,d,p){var h=this;typeof u=="function"&&(p=u,u=void 0),r.Writable.prototype.end.call(h,u,d,p)},s.prototype.setTimeout=function(u,d){var p=this;d&&p.once("timeout",d),p._socketTimeout=u,p._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var c=["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","via"];return ZE.exports}var m8,jde;function Jgt(){if(jde)return m8;jde=1,m8=t;var e=Object.prototype.hasOwnProperty;function t(){for(var a={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(a[i]=n[i])}return a}return m8}var Ode,Cde;function Ugt(){return Cde||(Cde=1,Ode={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"}),Ode}var Ade;function Zgt(){return Ade||(Ade=1,function(e){var t=Wgt(),a=zde(),r=Jgt(),n=Ugt(),i=EE(),o=e;o.request=function(s,l){typeof s=="string"?s=i.parse(s):s=r(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,p=s.port,h=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(p?":"+p:"")+h,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var f=new t(s);return l&&f.on("response",l),f},o.get=function(s,l){var c=o.request(s,l);return c.end(),c},o.ClientRequest=t,o.IncomingMessage=a.IncomingMessage,o.Agent=function(){},o.Agent.defaultMaxSockets=4,o.globalAgent=new o.Agent,o.STATUS_CODES=n,o.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"]}(Hue)),Hue}var Pde,Mde;function Qgt(){return Mde||(Mde=1,Pde={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},Zgt().STATUS_CODES)}),Pde}const Ygt="7.0.8",Xgt={version:Ygt};var f8,Tde;function evt(){if(Tde)return f8;Tde=1;const e=nv,t=EE(),a=Rgt(),r=nv,n=nv,i=KC(),o=i.jptr,s=KE().isRef,l=HC().clone,c=HC().circularClone,u=FE().recurse,d=Lgt(),p=Dgt(),h=$ue(),f=Qgt().statusCodes,b=Xgt.version,g="3.0.0";let m;class k extends Error{constructor(E){super(E),this.name="S2OError"}}function x(A,E){let te=new k(A);if(te.options=E,E.promise)E.promise.reject(te);else throw te}function j(A,E,te){te.warnOnly?E[te.warnProperty||"x-s2o-warning"]=A:x(A,te)}function w(A,E,te){if(A.nullable&&te.patches++,A.discriminator&&typeof A.discriminator=="string"&&(A.discriminator={propertyName:A.discriminator}),A.items&&Array.isArray(A.items)&&(A.items.length===0?A.items={}:A.items.length===1?A.items=A.items[0]:A.items={anyOf:A.items}),A.type&&Array.isArray(A.type))if(te.patch){if(te.patches++,A.type.length===0)delete A.type;else{A.oneOf||(A.oneOf=[]);for(let V of A.type){let oe={};if(V==="null")A.nullable=!0;else{oe.type=V;for(let ue of h.arrayProperties)typeof A.prop<"u"&&(oe[ue]=A[ue],delete A[ue])}oe.type&&A.oneOf.push(oe)}delete A.type,A.oneOf.length===0?delete A.oneOf:A.oneOf.length<2&&(A.type=A.oneOf[0].type,Object.keys(A.oneOf[0]).length>1&&j("Lost properties from oneOf",A,te),delete A.oneOf)}A.type&&Array.isArray(A.type)&&A.type.length===1&&(A.type=A.type[0])}else x("(Patchable) schema type must not be an array",te);A.type&&A.type==="null"&&(delete A.type,A.nullable=!0),A.type==="array"&&!A.items&&(A.items={}),A.type==="file"&&(A.type="string",A.format="binary"),typeof A.required=="boolean"&&(A.required&&A.name&&(typeof E.required>"u"&&(E.required=[]),Array.isArray(E.required)&&E.required.push(A.name)),delete A.required),A.xml&&typeof A.xml.namespace=="string"&&(A.xml.namespace||delete A.xml.namespace),typeof A.allowEmptyValue<"u"&&(te.patches++,delete A.allowEmptyValue)}function S(A,E){if(A["x-required"]&&Array.isArray(A["x-required"])&&(A.required||(A.required=[]),A.required=A.required.concat(A["x-required"]),delete A["x-required"]),A["x-anyOf"]&&(A.anyOf=A["x-anyOf"],delete A["x-anyOf"]),A["x-oneOf"]&&(A.oneOf=A["x-oneOf"],delete A["x-oneOf"]),A["x-not"]&&(A.not=A["x-not"],delete A["x-not"]),typeof A["x-nullable"]=="boolean"&&(A.nullable=A["x-nullable"],delete A["x-nullable"]),typeof A["x-discriminator"]=="object"&&typeof A["x-discriminator"].propertyName=="string"){A.discriminator=A["x-discriminator"],delete A["x-discriminator"];for(let te in A.discriminator.mapping){let V=A.discriminator.mapping[te];V.startsWith("#/definitions/")&&(A.discriminator.mapping[te]=V.replace("#/definitions/","#/components/schemas/"))}}}function O(A,E){p.walkSchema(A,{},{},function(te,V,oe){S(te),w(te,V,E)})}function M(A){return A.indexOf("#")>=0?A=A.split("#")[1].split("/").pop():A=A.split("/").pop().split(".")[0],encodeURIComponent(h.sanitise(A))}function T(A,E,te){let V=te.payload.options;if(s(A,E)){if(!A[E].startsWith("#/components/")){if(A[E]==="#/consumes")delete A[E],te.parent[te.pkey]=l(V.openapi.consumes);else if(A[E]==="#/produces")delete A[E],te.parent[te.pkey]=l(V.openapi.produces);else if(A[E].startsWith("#/definitions/")){let oe=A[E].replace("#/definitions/","").split("/");const ue=i.jpunescape(oe[0]);let Q=m.schemas[decodeURIComponent(ue)];Q?oe[0]=Q:j("Could not resolve reference "+A[E],A,V),A[E]="#/components/schemas/"+oe.join("/")}else if(A[E].startsWith("#/parameters/"))A[E]="#/components/parameters/"+h.sanitise(A[E].replace("#/parameters/",""));else if(A[E].startsWith("#/responses/"))A[E]="#/components/responses/"+h.sanitise(A[E].replace("#/responses/",""));else if(A[E].startsWith("#")){let oe=l(i.jptr(V.openapi,A[E]));if(oe===!1)j("direct $ref not found "+A[E],A,V);else if(V.refmap[A[E]])A[E]=V.refmap[A[E]];else{let ue=A[E];ue=ue.replace("/properties/headers/",""),ue=ue.replace("/properties/responses/",""),ue=ue.replace("/properties/parameters/",""),ue=ue.replace("/properties/schemas/","");let Q="schemas",se=ue.lastIndexOf("/schema");if(Q=ue.indexOf("/headers/")>se?"headers":ue.indexOf("/responses/")>se?"responses":ue.indexOf("/example")>se?"examples":ue.indexOf("/x-")>se?"extensions":ue.indexOf("/parameters/")>se?"parameters":"schemas",Q==="schemas"&&O(oe,V),Q!=="responses"&&Q!=="extensions"){let de=Q.substr(0,Q.length-1);de==="parameter"&&oe.name&&oe.name===h.sanitise(oe.name)&&(de=encodeURIComponent(oe.name));let be=1;for(A["x-miro"]&&(de=M(A["x-miro"]),be="");i.jptr(V.openapi,"#/components/"+Q+"/"+de+be);)be=be===""?2:++be;let ge="#/components/"+Q+"/"+de+be,me="";Q==="examples"&&(oe={value:oe},me="/value"),i.jptr(V.openapi,ge,oe),V.refmap[A[E]]=ge+me,A[E]=ge+me}}}}if(delete A["x-miro"],Object.keys(A).length>1){const oe=A[E],ue=te.path.indexOf("/schema")>=0;V.refSiblings==="preserve"||(ue&&V.refSiblings==="allOf"?(delete A.$ref,te.parent[te.pkey]={allOf:[{$ref:oe},A]}):te.parent[te.pkey]={$ref:oe})}}if(E==="x-ms-odata"&&typeof A[E]=="string"&&A[E].startsWith("#/")){let oe=A[E].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ue=m.schemas[decodeURIComponent(oe[0])];ue?oe[0]=ue:j("Could not resolve reference "+A[E],A,V),A[E]="#/components/schemas/"+oe.join("/")}}function N(A,E){for(let te in E.refmap)i.jptr(A,te,{$ref:E.refmap[te]})}function G(A){for(let E in A)for(let te in A[E]){let V=h.sanitise(te);te!==V&&(A[E][V]=A[E][te],delete A[E][te])}}function L(A,E){if(A.type==="basic"&&(A.type="http",A.scheme="basic"),A.type==="oauth2"){let te={},V=A.flow;A.flow==="application"&&(V="clientCredentials"),A.flow==="accessCode"&&(V="authorizationCode"),typeof A.authorizationUrl<"u"&&(te.authorizationUrl=A.authorizationUrl.split("?")[0].trim()||"/"),typeof A.tokenUrl=="string"&&(te.tokenUrl=A.tokenUrl.split("?")[0].trim()||"/"),te.scopes=A.scopes||{},A.flows={},A.flows[V]=te,delete A.flow,delete A.authorizationUrl,delete A.tokenUrl,delete A.scopes,typeof A.name<"u"&&(E.patch?(E.patches++,delete A.name):x("(Patchable) oauth2 securitySchemes should not have name property",E))}}function J(A){return A&&!A["x-s2o-delete"]}function I(A,E){if(A.$ref)A.$ref=A.$ref.replace("#/responses/","#/components/responses/");else{A.type&&!A.schema&&(A.schema={}),A.type&&(A.schema.type=A.type),A.items&&A.items.type!=="array"&&(A.items.collectionFormat!==A.collectionFormat&&j("Nested collectionFormats are not supported",A,E),delete A.items.collectionFormat),A.type==="array"?(A.collectionFormat==="ssv"?j("collectionFormat:ssv is no longer supported for headers",A,E):A.collectionFormat==="pipes"?j("collectionFormat:pipes is no longer supported for headers",A,E):A.collectionFormat==="multi"?A.explode=!0:A.collectionFormat==="tsv"?(j("collectionFormat:tsv is no longer supported",A,E),A["x-collectionFormat"]="tsv"):A.style="simple",delete A.collectionFormat):A.collectionFormat&&(E.patch?(E.patches++,delete A.collectionFormat):x("(Patchable) collectionFormat is only applicable to header.type array",E)),delete A.type;for(let te of h.parameterTypeProperties)typeof A[te]<"u"&&(A.schema[te]=A[te],delete A[te]);for(let te of h.arrayProperties)typeof A[te]<"u"&&(A.schema[te]=A[te],delete A[te])}}function X(A,E){if(A.$ref.indexOf("#/parameters/")>=0){let te=A.$ref.split("#/parameters/");A.$ref=te[0]+"#/components/parameters/"+h.sanitise(te[1])}A.$ref.indexOf("#/definitions/")>=0&&j("Definition used as parameter",A,E)}function re(A,E){let te={};for(let V of Object.keys(A))te[V]=A[V],V==="parameters"&&(te.requestBody={},E.rbname&&(te[E.rbname]=""));return te.requestBody={},te}function le(A,E,te,V,oe,ue,Q){let se={},de=!0,be;if(E&&E.consumes&&typeof E.consumes=="string")if(Q.patch)Q.patches++,E.consumes=[E.consumes];else return x("(Patchable) operation.consumes must be an array",Q);Array.isArray(ue.consumes)||delete ue.consumes;let ge=((E?E.consumes:null)||ue.consumes||[]).filter(h.uniqueOnly);if(A&&A.$ref&&typeof A.$ref=="string"){X(A,Q);let me=decodeURIComponent(A.$ref.replace("#/components/parameters/","")),ve=!1,Se=ue.components.parameters[me];if((!Se||Se["x-s2o-delete"])&&A.$ref.startsWith("#/")&&(A["x-s2o-delete"]=!0,ve=!0),ve){let Ce=A.$ref,Je=o(ue,A.$ref);!Je&&Ce.startsWith("#/")?j("Could not resolve reference "+Ce,A,Q):Je&&(A=Je)}}if(A&&(A.name||A.in)){typeof A["x-deprecated"]=="boolean"&&(A.deprecated=A["x-deprecated"],delete A["x-deprecated"]),typeof A["x-example"]<"u"&&(A.example=A["x-example"],delete A["x-example"]),A.in!=="body"&&!A.type&&(Q.patch?(Q.patches++,A.type="string"):x("(Patchable) parameter.type is mandatory for non-body parameters",Q)),A.type&&typeof A.type=="object"&&A.type.$ref&&(A.type=o(ue,A.type.$ref)),A.type==="file"&&(A["x-s2o-originalType"]=A.type,be=A.type),A.description&&typeof A.description=="object"&&A.description.$ref&&(A.description=o(ue,A.description.$ref)),A.description===null&&delete A.description;let me=A.collectionFormat;if(A.type==="array"&&!me&&(me="csv"),me&&(A.type!=="array"&&(Q.patch?(Q.patches++,delete A.collectionFormat):x("(Patchable) collectionFormat is only applicable to param.type array",Q)),me==="csv"&&(A.in==="query"||A.in==="cookie")&&(A.style="form",A.explode=!1),me==="csv"&&(A.in==="path"||A.in==="header")&&(A.style="simple"),me==="ssv"&&(A.in==="query"?A.style="spaceDelimited":j("collectionFormat:ssv is no longer supported except for in:query parameters",A,Q)),me==="pipes"&&(A.in==="query"?A.style="pipeDelimited":j("collectionFormat:pipes is no longer supported except for in:query parameters",A,Q)),me==="multi"&&(A.explode=!0),me==="tsv"&&(j("collectionFormat:tsv is no longer supported",A,Q),A["x-collectionFormat"]="tsv"),delete A.collectionFormat),A.type&&A.type!=="body"&&A.in!=="formData")if(A.items&&A.schema)j("parameter has array,items and schema",A,Q);else{A.schema&&Q.patches++,(!A.schema||typeof A.schema!="object")&&(A.schema={}),A.schema.type=A.type,A.items&&(A.schema.items=A.items,delete A.items,u(A.schema.items,null,function(ve,Se,Ce){Se==="collectionFormat"&&typeof ve[Se]=="string"&&(me&&ve[Se]!==me&&j("Nested collectionFormats are not supported",A,Q),delete ve[Se])}));for(let ve of h.parameterTypeProperties)typeof A[ve]<"u"&&(A.schema[ve]=A[ve]),delete A[ve]}A.schema&&O(A.schema,Q),A["x-ms-skip-url-encoding"]&&A.in==="query"&&(A.allowReserved=!0,delete A["x-ms-skip-url-encoding"])}if(A&&A.in==="formData"){de=!1,se.content={};let me="application/x-www-form-urlencoded";if(ge.length&&ge.indexOf("multipart/form-data")>=0&&(me="multipart/form-data"),se.content[me]={},A.schema)se.content[me].schema=A.schema,A.schema.$ref&&(se["x-s2o-name"]=decodeURIComponent(A.schema.$ref.replace("#/components/schemas/","")));else{se.content[me].schema={},se.content[me].schema.type="object",se.content[me].schema.properties={},se.content[me].schema.properties[A.name]={};let ve=se.content[me].schema,Se=se.content[me].schema.properties[A.name];A.description&&(Se.description=A.description),A.example&&(Se.example=A.example),A.type&&(Se.type=A.type);for(let Ce of h.parameterTypeProperties)typeof A[Ce]<"u"&&(Se[Ce]=A[Ce]);A.required===!0&&(ve.required||(ve.required=[]),ve.required.push(A.name),se.required=!0),typeof A.default<"u"&&(Se.default=A.default),Se.properties&&(Se.properties=A.properties),A.allOf&&(Se.allOf=A.allOf),A.type==="array"&&A.items&&(Se.items=A.items,Se.items.collectionFormat&&delete Se.items.collectionFormat),(be==="file"||A["x-s2o-originalType"]==="file")&&(Se.type="string",Se.format="binary"),ie(A,Se)}}else A&&A.type==="file"&&(A.required&&(se.required=A.required),se.content={},se.content["application/octet-stream"]={},se.content["application/octet-stream"].schema={},se.content["application/octet-stream"].schema.type="string",se.content["application/octet-stream"].schema.format="binary",ie(A,se));if(A&&A.in==="body"){se.content={},A.name&&(se["x-s2o-name"]=(E&&E.operationId?h.sanitiseAll(E.operationId):"")+("_"+A.name).toCamelCase()),A.description&&(se.description=A.description),A.required&&(se.required=A.required),E&&Q.rbname&&A.name&&(E[Q.rbname]=A.name),A.schema&&A.schema.$ref?se["x-s2o-name"]=decodeURIComponent(A.schema.$ref.replace("#/components/schemas/","")):A.schema&&A.schema.type==="array"&&A.schema.items&&A.schema.items.$ref&&(se["x-s2o-name"]=decodeURIComponent(A.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),ge.length||ge.push("application/json");for(let me of ge)se.content[me]={},se.content[me].schema=l(A.schema||{}),O(se.content[me].schema,Q);ie(A,se)}if(Object.keys(se).length>0&&(A["x-s2o-delete"]=!0,E))if(E.requestBody&&de){E.requestBody["x-s2o-overloaded"]=!0;let me=E.operationId||oe;j("Operation "+me+" has multiple requestBodies",E,Q)}else E.requestBody||(E=te[V]=re(E,Q)),E.requestBody.content&&E.requestBody.content["multipart/form-data"]&&E.requestBody.content["multipart/form-data"].schema&&E.requestBody.content["multipart/form-data"].schema.properties&&se.content["multipart/form-data"]&&se.content["multipart/form-data"].schema&&se.content["multipart/form-data"].schema.properties?(E.requestBody.content["multipart/form-data"].schema.properties=Object.assign(E.requestBody.content["multipart/form-data"].schema.properties,se.content["multipart/form-data"].schema.properties),E.requestBody.content["multipart/form-data"].schema.required=(E.requestBody.content["multipart/form-data"].schema.required||[]).concat(se.content["multipart/form-data"].schema.required||[]),E.requestBody.content["multipart/form-data"].schema.required.length||delete E.requestBody.content["multipart/form-data"].schema.required):E.requestBody.content&&E.requestBody.content["application/x-www-form-urlencoded"]&&E.requestBody.content["application/x-www-form-urlencoded"].schema&&E.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&se.content["application/x-www-form-urlencoded"]&&se.content["application/x-www-form-urlencoded"].schema&&se.content["application/x-www-form-urlencoded"].schema.properties?(E.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(E.requestBody.content["application/x-www-form-urlencoded"].schema.properties,se.content["application/x-www-form-urlencoded"].schema.properties),E.requestBody.content["application/x-www-form-urlencoded"].schema.required=(E.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(se.content["application/x-www-form-urlencoded"].schema.required||[]),E.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete E.requestBody.content["application/x-www-form-urlencoded"].schema.required):(E.requestBody=Object.assign(E.requestBody,se),E.requestBody["x-s2o-name"]||(E.requestBody.schema&&E.requestBody.schema.$ref?E.requestBody["x-s2o-name"]=decodeURIComponent(E.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):E.operationId&&(E.requestBody["x-s2o-name"]=h.sanitiseAll(E.operationId))));if(A&&!A["x-s2o-delete"]){delete A.type;for(let me of h.parameterTypeProperties)delete A[me];A.in==="path"&&(typeof A.required>"u"||A.required!==!0)&&(Q.patch?(Q.patches++,A.required=!0):x("(Patchable) path parameters must be required:true ["+A.name+" in "+oe+"]",Q))}return E}function ie(A,E){for(let te in A)te.startsWith("x-")&&!te.startsWith("x-s2o")&&(E[te]=A[te])}function he(A,E,te,V,oe){if(!A)return!1;if(A.$ref&&typeof A.$ref=="string")A.$ref.indexOf("#/definitions/")>=0?j("definition used as response: "+A.$ref,A,oe):A.$ref.startsWith("#/responses/")&&(A.$ref="#/components/responses/"+h.sanitise(decodeURIComponent(A.$ref.replace("#/responses/",""))));else{if((typeof A.description>"u"||A.description===null||A.description===""&&oe.patch)&&(oe.patch?typeof A=="object"&&!Array.isArray(A)&&(oe.patches++,A.description=f[A]||""):x("(Patchable) response.description is mandatory",oe)),typeof A.schema<"u"){if(O(A.schema,oe),A.schema.$ref&&typeof A.schema.$ref=="string"&&A.schema.$ref.startsWith("#/responses/")&&(A.schema.$ref="#/components/responses/"+h.sanitise(decodeURIComponent(A.schema.$ref.replace("#/responses/","")))),te&&te.produces&&typeof te.produces=="string")if(oe.patch)oe.patches++,te.produces=[te.produces];else return x("(Patchable) operation.produces must be an array",oe);V.produces&&!Array.isArray(V.produces)&&delete V.produces;let ue=((te?te.produces:null)||V.produces||[]).filter(h.uniqueOnly);ue.length||ue.push("*/*"),A.content={};for(let Q of ue){if(A.content[Q]={},A.content[Q].schema=l(A.schema),A.examples&&A.examples[Q]){let se={};se.value=A.examples[Q],A.content[Q].examples={},A.content[Q].examples.response=se,delete A.examples[Q]}A.content[Q].schema.type==="file"&&(A.content[Q].schema={type:"string",format:"binary"})}delete A.schema}for(let ue in A.examples)A.content||(A.content={}),A.content[ue]||(A.content[ue]={}),A.content[ue].examples={},A.content[ue].examples.response={},A.content[ue].examples.response.value=A.examples[ue];if(delete A.examples,A.headers)for(let ue in A.headers)ue.toLowerCase()==="status code"?oe.patch?(oe.patches++,delete A.headers[ue]):x('(Patchable) "Status Code" is not a valid header',oe):I(A.headers[ue],oe)}}function F(A,E,te,V,oe){for(let ue in A){let Q=A[ue];Q&&Q["x-trace"]&&typeof Q["x-trace"]=="object"&&(Q.trace=Q["x-trace"],delete Q["x-trace"]),Q&&Q["x-summary"]&&typeof Q["x-summary"]=="string"&&(Q.summary=Q["x-summary"],delete Q["x-summary"]),Q&&Q["x-description"]&&typeof Q["x-description"]=="string"&&(Q.description=Q["x-description"],delete Q["x-description"]),Q&&Q["x-servers"]&&Array.isArray(Q["x-servers"])&&(Q.servers=Q["x-servers"],delete Q["x-servers"]);for(let se in Q)if(h.httpMethods.indexOf(se)>=0||se==="x-amazon-apigateway-any-method"){let de=Q[se];if(de&&de.parameters&&Array.isArray(de.parameters)){if(Q.parameters)for(let be of Q.parameters)typeof be.$ref=="string"&&(X(be,te),be=o(oe,be.$ref)),!de.parameters.find(function(ge,me,ve){return ge.name===be.name&&ge.in===be.in})&&(be.in==="formData"||be.in==="body"||be.type==="file")&&(de=le(be,de,Q,se,ue,oe,te),te.rbname&&de[te.rbname]===""&&delete de[te.rbname]);for(let be of de.parameters)de=le(be,de,Q,se,se+":"+ue,oe,te);te.rbname&&de[te.rbname]===""&&delete de[te.rbname],te.debug||de.parameters&&(de.parameters=de.parameters.filter(J))}if(de&&de.security&&G(de.security),typeof de=="object"){if(!de.responses){let be={};be.description="Default response",de.responses={default:be}}for(let be in de.responses){let ge=de.responses[be];he(ge,be,de,oe,te)}}if(de&&de["x-servers"]&&Array.isArray(de["x-servers"]))de.servers=de["x-servers"],delete de["x-servers"];else if(de&&de.schemes&&de.schemes.length){for(let be of de.schemes)if((!oe.schemes||oe.schemes.indexOf(be)<0)&&(de.servers||(de.servers=[]),Array.isArray(oe.servers)))for(let ge of oe.servers){let me=l(ge),ve=t.parse(me.url);ve.protocol=be,me.url=ve.format(),de.servers.push(me)}}if(te.debug&&(de["x-s2o-consumes"]=de.consumes||[],de["x-s2o-produces"]=de.produces||[]),de){if(delete de.consumes,delete de.produces,delete de.schemes,de["x-ms-examples"]){for(let be in de["x-ms-examples"]){let ge=de["x-ms-examples"][be],me=h.sanitiseAll(be);if(ge.parameters)for(let ve in ge.parameters){let Se=ge.parameters[ve];for(let Ce of(de.parameters||[]).concat(Q.parameters||[]))Ce.$ref&&(Ce=i.jptr(oe,Ce.$ref)),Ce.name===ve&&!Ce.example&&(Ce.examples||(Ce.examples={}),Ce.examples[be]={value:Se})}if(ge.responses)for(let ve in ge.responses){if(ge.responses[ve].headers)for(let Se in ge.responses[ve].headers){let Ce=ge.responses[ve].headers[Se];for(let Je in de.responses[ve].headers)if(Je===Se){let B=de.responses[ve].headers[Je];B.example=Ce}}if(ge.responses[ve].body&&(oe.components.examples[me]={value:l(ge.responses[ve].body)},de.responses[ve]&&de.responses[ve].content))for(let Se in de.responses[ve].content){let Ce=de.responses[ve].content[Se];Ce.examples||(Ce.examples={}),Ce.examples[be]={$ref:"#/components/examples/"+me}}}}delete de["x-ms-examples"]}if(de.parameters&&de.parameters.length===0&&delete de.parameters,de.requestBody){let be=de.operationId?h.sanitiseAll(de.operationId):h.sanitiseAll(se+ue).toCamelCase(),ge=h.sanitise(de.requestBody["x-s2o-name"]||be||"");delete de.requestBody["x-s2o-name"];let me=JSON.stringify(de.requestBody),ve=h.hash(me);if(!V[ve]){let Ce={};Ce.name=ge,Ce.body=de.requestBody,Ce.refs=[],V[ve]=Ce}let Se="#/"+E+"/"+encodeURIComponent(i.jpescape(ue))+"/"+se+"/requestBody";V[ve].refs.push(Se)}}}if(Q&&Q.parameters){for(let se in Q.parameters){let de=Q.parameters[se];le(de,null,Q,null,ue,oe,te)}!te.debug&&Array.isArray(Q.parameters)&&(Q.parameters=Q.parameters.filter(J))}}}function D(A,E){let te={};m={schemas:{}},A.security&&G(A.security);for(let oe in A.components.securitySchemes){let ue=h.sanitise(oe);oe!==ue&&(A.components.securitySchemes[ue]&&x("Duplicate sanitised securityScheme name "+ue,E),A.components.securitySchemes[ue]=A.components.securitySchemes[oe],delete A.components.securitySchemes[oe]),L(A.components.securitySchemes[ue],E)}for(let oe in A.components.schemas){let ue=h.sanitiseAll(oe),Q="";if(oe!==ue){for(;A.components.schemas[ue+Q];)Q=Q?++Q:2;A.components.schemas[ue+Q]=A.components.schemas[oe],delete A.components.schemas[oe]}m.schemas[oe]=ue+Q,O(A.components.schemas[ue+Q],E)}E.refmap={},u(A,{payload:{options:E}},T),N(A,E);for(let oe in A.components.parameters){let ue=h.sanitise(oe);oe!==ue&&(A.components.parameters[ue]&&x("Duplicate sanitised parameter name "+ue,E),A.components.parameters[ue]=A.components.parameters[oe],delete A.components.parameters[oe]);let Q=A.components.parameters[ue];le(Q,null,null,null,ue,A,E)}for(let oe in A.components.responses){let ue=h.sanitise(oe);oe!==ue&&(A.components.responses[ue]&&x("Duplicate sanitised response name "+ue,E),A.components.responses[ue]=A.components.responses[oe],delete A.components.responses[oe]);let Q=A.components.responses[ue];if(he(Q,ue,null,A,E),Q.headers)for(let se in Q.headers)se.toLowerCase()==="status code"?E.patch?(E.patches++,delete Q.headers[se]):x('(Patchable) "Status Code" is not a valid header',E):I(Q.headers[se],E)}for(let oe in A.components.requestBodies){let ue=A.components.requestBodies[oe],Q=JSON.stringify(ue),se=h.hash(Q),de={};de.name=oe,de.body=ue,de.refs=[],te[se]=de}if(F(A.paths,"paths",E,te,A),A["x-ms-paths"]&&F(A["x-ms-paths"],"x-ms-paths",E,te,A),!E.debug)for(let oe in A.components.parameters)A.components.parameters[oe]["x-s2o-delete"]&&delete A.components.parameters[oe];E.debug&&(A["x-s2o-consumes"]=A.consumes||[],A["x-s2o-produces"]=A.produces||[]),delete A.consumes,delete A.produces,delete A.schemes;let V=[];if(A.components.requestBodies={},!E.resolveInternal){let oe=1;for(let ue in te){let Q=te[ue];if(Q.refs.length>1){let se="";for(Q.name||(Q.name="requestBody",se=oe++);V.indexOf(Q.name+se)>=0;)se=se?++se:2;Q.name=Q.name+se,V.push(Q.name),A.components.requestBodies[Q.name]=l(Q.body);for(let de in Q.refs){let be={};be.$ref="#/components/requestBodies/"+Q.name,i.jptr(A,Q.refs[de],be)}}}}return A.components.responses&&Object.keys(A.components.responses).length===0&&delete A.components.responses,A.components.parameters&&Object.keys(A.components.parameters).length===0&&delete A.components.parameters,A.components.examples&&Object.keys(A.components.examples).length===0&&delete A.components.examples,A.components.requestBodies&&Object.keys(A.components.requestBodies).length===0&&delete A.components.requestBodies,A.components.securitySchemes&&Object.keys(A.components.securitySchemes).length===0&&delete A.components.securitySchemes,A.components.headers&&Object.keys(A.components.headers).length===0&&delete A.components.headers,A.components.schemas&&Object.keys(A.components.schemas).length===0&&delete A.components.schemas,A.components&&Object.keys(A.components).length===0&&delete A.components,A}function W(A){return!A||!A.url||typeof A.url!="string"||(A.url=A.url.split("{{").join("{"),A.url=A.url.split("}}").join("}"),A.url.replace(/\{(.+?)\}/g,function(E,te){A.variables||(A.variables={}),A.variables[te]={default:"unknown"}})),A}function $(A,E,te){if(typeof A.info>"u"||A.info===null)if(E.patch)E.patches++,A.info={version:"",title:""};else return te(new k("(Patchable) info object is mandatory"));if(typeof A.info!="object"||Array.isArray(A.info))return te(new k("info must be an object"));if(typeof A.info.title>"u"||A.info.title===null)if(E.patch)E.patches++,A.info.title="";else return te(new k("(Patchable) info.title cannot be null"));if(typeof A.info.version>"u"||A.info.version===null)if(E.patch)E.patches++,A.info.version="";else return te(new k("(Patchable) info.version cannot be null"));if(typeof A.info.version!="string")if(E.patch)E.patches++,A.info.version=A.info.version.toString();else return te(new k("(Patchable) info.version must be a string"));if(typeof A.info.logo<"u")if(E.patch)E.patches++,A.info["x-logo"]=A.info.logo,delete A.info.logo;else return te(new k("(Patchable) info should not have logo property"));if(typeof A.info.termsOfService<"u"){if(A.info.termsOfService===null)if(E.patch)E.patches++,A.info.termsOfService="";else return te(new k("(Patchable) info.termsOfService cannot be null"));try{new URL(A.info.termsOfService)}catch{if(E.patch)E.patches++,delete A.info.termsOfService;else return te(new k("(Patchable) info.termsOfService must be a URL"))}}}function P(A,E,te){if(typeof A.paths>"u")if(E.patch)E.patches++,A.paths={};else return te(new k("(Patchable) paths object is mandatory"))}function R(A,E){const te=new WeakSet;u(A,{identityDetection:!0},function(V,oe,ue){typeof V[oe]=="object"&&V[oe]!==null&&(te.has(V[oe])?E.anchors?V[oe]=l(V[oe]):x("YAML anchor or merge key at "+ue.path,E):te.add(V[oe]))})}function H(A,E,te){return a(te,new Promise(function(V,oe){if(A||(A={}),E.original=A,E.text||(E.text=n.stringify(A)),E.externals=[],E.externalRefs={},E.rewriteRefs=!0,E.preserveMiro=!0,E.promise={},E.promise.resolve=V,E.promise.reject=oe,E.patches=0,E.cache||(E.cache={}),E.source&&(E.cache[E.source]=E.original),R(A,E),A.openapi&&typeof A.openapi=="string"&&A.openapi.startsWith("3.")){E.openapi=c(A),$(E.openapi,E,oe),P(E.openapi,E,oe),d.optionalResolve(E).then(function(){return E.direct?V(E.openapi):V(E)}).catch(function(Q){console.warn(Q),oe(Q)});return}if(!A.swagger||A.swagger!="2.0")return oe(new k("Unsupported swagger/OpenAPI version: "+(A.openapi?A.openapi:A.swagger)));let ue=E.openapi={};if(ue.openapi=typeof E.targetVersion=="string"&&E.targetVersion.startsWith("3.")?E.targetVersion:g,E.origin){ue["x-origin"]||(ue["x-origin"]=[]);let Q={};Q.url=E.source||E.origin,Q.format="swagger",Q.version=A.swagger,Q.converter={},Q.converter.url="https://github.com/mermade/oas-kit",Q.converter.version=b,ue["x-origin"].push(Q)}if(ue=Object.assign(ue,c(A)),delete ue.swagger,u(ue,{},function(Q,se,de){Q[se]===null&&!se.startsWith("x-")&&se!=="default"&&de.path.indexOf("/example")<0&&delete Q[se]}),A.host)for(let Q of Array.isArray(A.schemes)?A.schemes:[""]){let se={},de=(A.basePath||"").replace(/\/$/,"");se.url=(Q?Q+":":"")+"//"+A.host+de,W(se),ue.servers||(ue.servers=[]),ue.servers.push(se)}else if(A.basePath){let Q={};Q.url=A.basePath,W(Q),ue.servers||(ue.servers=[]),ue.servers.push(Q)}if(delete ue.host,delete ue.basePath,ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]),A["x-ms-parameterized-host"]){let Q=A["x-ms-parameterized-host"],se={};se.url=Q.hostTemplate+(A.basePath?A.basePath:""),se.variables={};const de=se.url.match(/\{\w+\}/g);for(let be in Q.parameters){let ge=Q.parameters[be];ge.$ref&&(ge=l(o(ue,ge.$ref))),be.startsWith("x-")||(delete ge.required,delete ge.type,delete ge.in,typeof ge.default>"u"&&(ge.enum?ge.default=ge.enum[0]:ge.default="none"),ge.name||(ge.name=de[be].replace("{","").replace("}","")),se.variables[ge.name]=ge,delete ge.name)}ue.servers||(ue.servers=[]),Q.useSchemePrefix===!1?ue.servers.push(se):A.schemes.forEach(be=>{ue.servers.push(Object.assign({},se,{url:be+"://"+se.url}))}),delete ue["x-ms-parameterized-host"]}$(ue,E,oe),P(ue,E,oe),typeof ue.consumes=="string"&&(ue.consumes=[ue.consumes]),typeof ue.produces=="string"&&(ue.produces=[ue.produces]),ue.components={},ue["x-callbacks"]&&(ue.components.callbacks=ue["x-callbacks"],delete ue["x-callbacks"]),ue.components.examples={},ue.components.headers={},ue["x-links"]&&(ue.components.links=ue["x-links"],delete ue["x-links"]),ue.components.parameters=ue.parameters||{},ue.components.responses=ue.responses||{},ue.components.requestBodies={},ue.components.securitySchemes=ue.securityDefinitions||{},ue.components.schemas=ue.definitions||{},delete ue.definitions,delete ue.responses,delete ue.parameters,delete ue.securityDefinitions,d.optionalResolve(E).then(function(){D(E.openapi,E),E.direct?V(E.openapi):V(E)}).catch(function(Q){console.warn(Q),oe(Q)})}))}function ae(A,E,te){return a(te,new Promise(function(V,oe){let ue=null,Q=null;try{ue=JSON.parse(A),E.text=JSON.stringify(ue,null,2)}catch(se){Q=se;try{ue=n.parse(A,{schema:"core",prettyErrors:!0}),E.sourceYaml=!0,E.text=A}catch(de){Q=de}}ue?H(ue,E).then(se=>V(se)).catch(se=>oe(se)):oe(new k(Q?Q.message:"Could not parse string"))}))}function U(A,E,te){return a(te,new Promise(function(V,oe){E.origin=!0,E.source||(E.source=A),E.verbose&&console.warn("GET "+A),E.fetch||(E.fetch=r);const ue=Object.assign({},E.fetchOptions,{agent:E.agent});E.fetch(A,ue).then(function(Q){if(Q.status!==200)throw new k(`Received status code ${Q.status}: ${A}`);return Q.text()}).then(function(Q){ae(Q,E).then(se=>V(se)).catch(se=>oe(se))}).catch(function(Q){oe(Q)})}))}function pe(A,E,te){return a(te,new Promise(function(V,oe){e.readFile(A,E.encoding||"utf8",function(ue,Q){ue?oe(ue):(E.sourceFile=A,ae(Q,E).then(se=>V(se)).catch(se=>oe(se)))})}))}function Z(A,E,te){return a(te,new Promise(function(V,oe){let ue="";A.on("data",function(Q){ue+=Q}).on("end",function(){ae(ue,E).then(Q=>V(Q)).catch(Q=>oe(Q))})}))}return f8={S2OError:k,targetVersion:g,convert:H,convertObj:H,convertUrl:U,convertStr:ae,convertFile:pe,convertStream:Z},f8}var tvt=evt();const avt=zr(tvt);function rvt(e){return e.paths||(e.paths={}),new Promise((t,a)=>avt.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(r,n)=>{if(r)return a(r);t(n?.openapi)}))}async function nvt(){const e=qc?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():"";try{return(await qft({configPath:LB(e,wIe)})).resolvedConfig.openapi}catch(t){return console.warn("Error loading redocly.yaml",t),{}}}async function ivt(e){const t=new Lce({}),a={config:t,base:qc?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};qc&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?a.doc=ovt(e):a.ref=e;const{bundle:{parsed:r}}=await Vft(a);return r.swagger!==void 0?rvt(r):r}function ovt(e){return{source:{absoluteRef:""},parsed:e}}async function svt(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await ivt(e||t);try{JJe(r)}catch{}return r}const lvt=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[,i]=K.useState(),[o,s]=K.useState(!0),[l,c]=K.useState(null),[u,d]=K.useState(e||{});K.useEffect(()=>{async function h(){s(!0);try{const f=await nvt();d({...e,...f}),c(await svt(a,t,e))}catch(f){i(()=>{throw f})}}h()},[a,t,e]);const p=K.useMemo(()=>{if(l)return{definition:l,options:u,definitionUrl:t,activeSampleLanguage:r}},UJe([l,t,u]));return K.useEffect(()=>{p&&s(!1)},[p]),p?o?Hs(e?.hideLoading,!1)?null:v.jsx(Att,{color:"--loading-spinner-color"}):K.isValidElement(n)?K.cloneElement(n,{store:p}):null:null};function cvt({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return v.jsx(lvt,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:v.jsx(wte,{withCommonStyles:!0,router:o})})}function uvt(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function dvt(e){const t=uvt(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function pvt(e,t=document.querySelector("redoc")){sq.hydrateRoot(t,v.jsx(wte,{store:e}))}function _de(e,t={},a=bB("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,...n}=t;let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),sq.createRoot(a).render(K.createElement(cvt,{definition:o,definitionUrl:i,options:{...n,...dvt(a)},router:r??"history"},["Loading..."]))}const hvt="3.14.0-next.0",mvt="d5565a42";function fvt(){const e=bB("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&_de(t,{},e)}fvt();var Bde={exports:{}};/*!
9696
9696
 
9697
9697
  JSZip v3.10.1 - A JavaScript class for generating and reading zip files
9698
9698
  <http://stuartk.com/jszip>
@@ -11051,7 +11051,7 @@ html body {
11051
11051
  align-self: flex-end;
11052
11052
  padding-top: var(--spacing-xxs);
11053
11053
  gap: var(--spacing-xs);
11054
- `;function D1({input:e,onSave:t,onCancel:a,...r}){const[n,i]=K.useState(!!e.isSecret),o=({name:s,value:l})=>{t({...e,name:s,value:l,isSecret:n})};return v.jsx(R0e,{variable:e,onSave:o,onCancel:a,...r,children:v.jsx(L1,{children:v.jsx(WMt,{value:n,onChange:s=>i(s),title:"Make it secret"})})})}function GA(e){var t=new Error(e);return t.source="ulid",t}var f$="0123456789ABCDEFGHJKMNPQRSTVWXYZ",$1=f$.length,N0e=Math.pow(2,48)-1,eTt=10,tTt=16;function aTt(e){var t=Math.floor(e()*$1);return t===$1&&(t=$1-1),f$.charAt(t)}function rTt(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>N0e)throw GA("cannot encode time greater than "+N0e);if(e<0)throw GA("time must be positive");if(Number.isInteger(e)===!1)throw GA("time must be an integer");for(var a=void 0,r="";t>0;t--)a=e%$1,r=f$.charAt(a)+r,e=(e-a)/$1;return r}function nTt(e,t){for(var a="";e>0;e--)a=aTt(t)+a;return a}function iTt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var a=t&&(t.crypto||t.msCrypto);if(a)return function(){var n=new Uint8Array(1);return a.getRandomValues(n),n[0]/255};try{var r=require("crypto");return function(){return r.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw GA("secure crypto unusable, insecure Math.random not allowed")}function oTt(e){return e||(e=iTt()),function(t){return isNaN(t)&&(t=Date.now()),rTt(t,eTt)+nTt(tTt,e)}}var qA=oTt(),sTt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},Zm="1.9.0",E0e=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function lTt(e){var t=new Set([e]),a=new Set,r=e.match(E0e);if(!r)return function(){return!1};var n={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(n.prerelease!=null)return function(s){return s===e};function i(s){return a.add(s),!1}function o(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(a.has(s))return!1;var l=s.match(E0e);if(!l)return i(s);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||n.major!==c.major?i(s):n.major===0?n.minor===c.minor&&n.patch<=c.patch?o(s):i(s):n.minor<=c.minor?o(s):i(s)}}var cTt=lTt(Zm),uTt=Zm.split(".")[0],I1=Symbol.for("opentelemetry.js.api."+uTt),K1=sTt;function H1(e,t,a,r){var n;r===void 0&&(r=!1);var i=K1[I1]=(n=K1[I1])!==null&&n!==void 0?n:{version:Zm};if(!r&&i[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return a.error(o.stack||o.message),!1}if(i.version!==Zm){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+Zm);return a.error(o.stack||o.message),!1}return i[e]=t,a.debug("@opentelemetry/api: Registered a global for "+e+" v"+Zm+"."),!0}function Qm(e){var t,a,r=(t=K1[I1])===null||t===void 0?void 0:t.version;if(!(!r||!cTt(r)))return(a=K1[I1])===null||a===void 0?void 0:a[e]}function V1(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Zm+".");var a=K1[I1];a&&delete a[e]}var dTt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},pTt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},hTt=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return F1("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return F1("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return F1("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return F1("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return F1("verbose",this._namespace,t)},e}();function F1(e,t,a){var r=Qm("diag");if(r)return a.unshift(t),r[e].apply(r,pTt([],dTt(a),!1))}var sl;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(sl||(sl={}));function mTt(e,t){e<sl.NONE?e=sl.NONE:e>sl.ALL&&(e=sl.ALL),t=t||{};function a(r,n){var i=t[r];return typeof i=="function"&&e>=n?i.bind(t):function(){}}return{error:a("error",sl.ERROR),warn:a("warn",sl.WARN),info:a("info",sl.INFO),debug:a("debug",sl.DEBUG),verbose:a("verbose",sl.VERBOSE)}}var fTt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},gTt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},vTt="diag",Au=function(){function e(){function t(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=Qm("diag");if(s)return s[n].apply(s,gTt([],fTt(i),!1))}}var a=this,r=function(n,i){var o,s,l;if(i===void 0&&(i={logLevel:sl.INFO}),n===a){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return a.error((o=c.stack)!==null&&o!==void 0?o:c.message),!1}typeof i=="number"&&(i={logLevel:i});var u=Qm("diag"),d=mTt((s=i.logLevel)!==null&&s!==void 0?s:sl.INFO,n);if(u&&!i.suppressOverrideMessage){var p=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return H1("diag",d,a,!0)};a.setLogger=r,a.disable=function(){V1(vTt,a)},a.createComponentLogger=function(n){return new hTt(n)},a.verbose=t("verbose"),a.debug=t("debug"),a.info=t("info"),a.warn=t("warn"),a.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),bTt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},kTt=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},yTt=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var a=this._entries.get(t);if(a)return Object.assign({},a)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var a=bTt(t,2),r=a[0],n=a[1];return[r,n]})},e.prototype.setEntry=function(t,a){var r=new e(this._entries);return r._entries.set(t,a),r},e.prototype.removeEntry=function(t){var a=new e(this._entries);return a._entries.delete(t),a},e.prototype.removeEntries=function(){for(var t,a,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=new e(this._entries);try{for(var o=kTt(r),s=o.next();!s.done;s=o.next()){var l=s.value;i._entries.delete(l)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e}(),xTt=Symbol("BaggageEntryMetadata"),wTt=Au.instance();function zTt(e){return e===void 0&&(e={}),new yTt(new Map(Object.entries(e)))}function STt(e){return typeof e!="string"&&(wTt.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:xTt,toString:function(){return e}}}function g$(e){return Symbol.for(e)}var jTt=function(){function e(t){var a=this;a._currentContext=t?new Map(t):new Map,a.getValue=function(r){return a._currentContext.get(r)},a.setValue=function(r,n){var i=new e(a._currentContext);return i._currentContext.set(r,n),i},a.deleteValue=function(r){var n=new e(a._currentContext);return n._currentContext.delete(r),n}}return e}(),Jv=new jTt,Ym=function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},e(t,a)};return function(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function r(){this.constructor=t}t.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}}(),OTt=function(){function e(){}return e.prototype.createGauge=function(t,a){return ETt},e.prototype.createHistogram=function(t,a){return LTt},e.prototype.createCounter=function(t,a){return NTt},e.prototype.createUpDownCounter=function(t,a){return DTt},e.prototype.createObservableGauge=function(t,a){return ITt},e.prototype.createObservableCounter=function(t,a){return $Tt},e.prototype.createObservableUpDownCounter=function(t,a){return KTt},e.prototype.addBatchObservableCallback=function(t,a){},e.prototype.removeBatchObservableCallback=function(t){},e}(),WA=function(){function e(){}return e}(),CTt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t}(WA),ATt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t}(WA),PTt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t}(WA),MTt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t}(WA),v$=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),TTt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(v$),_Tt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(v$),BTt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(v$),RTt=new OTt,NTt=new CTt,ETt=new PTt,LTt=new MTt,DTt=new ATt,$Tt=new TTt,ITt=new _Tt,KTt=new BTt,HTt={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},VTt={set:function(e,t,a){e!=null&&(e[t]=a)}},FTt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},GTt=function(e,t,a){if(a||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},qTt=function(){function e(){}return e.prototype.active=function(){return Jv},e.prototype.with=function(t,a,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return a.call.apply(a,GTt([r],FTt(n),!1))},e.prototype.bind=function(t,a){return a},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),WTt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},JTt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},b$="context",UTt=new qTt,JA=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return H1(b$,t,Au.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,a,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,JTt([t,a,r],WTt(i),!1))},e.prototype.bind=function(t,a){return this._getContextManager().bind(t,a)},e.prototype._getContextManager=function(){return Qm(b$)||UTt},e.prototype.disable=function(){this._getContextManager().disable(),V1(b$,Au.instance())},e}(),Td;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Td||(Td={}));var L0e="0000000000000000",D0e="00000000000000000000000000000000",$0e={traceId:D0e,spanId:L0e,traceFlags:Td.NONE},G1=function(){function e(t){t===void 0&&(t=$0e),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,a){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,a){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,a){},e}(),k$=g$("OpenTelemetry Context Key SPAN");function y$(e){return e.getValue(k$)||void 0}function ZTt(){return y$(JA.getInstance().active())}function x$(e,t){return e.setValue(k$,t)}function QTt(e){return e.deleteValue(k$)}function YTt(e,t){return x$(e,new G1(t))}function I0e(e){var t;return(t=y$(e))===null||t===void 0?void 0:t.spanContext()}var XTt=/^([0-9a-f]{32})$/i,e5t=/^[0-9a-f]{16}$/i;function K0e(e){return XTt.test(e)&&e!==D0e}function t5t(e){return e5t.test(e)&&e!==L0e}function UA(e){return K0e(e.traceId)&&t5t(e.spanId)}function a5t(e){return new G1(e)}var w$=JA.getInstance(),H0e=function(){function e(){}return e.prototype.startSpan=function(t,a,r){r===void 0&&(r=w$.active());var n=!!a?.root;if(n)return new G1;var i=r&&I0e(r);return r5t(i)&&UA(i)?new G1(i):new G1},e.prototype.startActiveSpan=function(t,a,r,n){var i,o,s;if(!(arguments.length<2)){arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);var l=o??w$.active(),c=this.startSpan(t,i,l),u=x$(l,c);return w$.with(u,s,void 0,c)}},e}();function r5t(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var n5t=new H0e,i5t=function(){function e(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}return e.prototype.startSpan=function(t,a,r){return this._getTracer().startSpan(t,a,r)},e.prototype.startActiveSpan=function(t,a,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):n5t},e}(),o5t=function(){function e(){}return e.prototype.getTracer=function(t,a,r){return new H0e},e}(),s5t=new o5t,V0e=function(){function e(){}return e.prototype.getTracer=function(t,a,r){var n;return(n=this.getDelegateTracer(t,a,r))!==null&&n!==void 0?n:new i5t(this,t,a,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:s5t},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getTracer(t,a,r)},e}(),ZA;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ZA||(ZA={}));var z$;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(z$||(z$={}));var S$;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(S$||(S$={}));var Sh=JA.getInstance(),ur=Au.instance(),l5t=function(){function e(){}return e.prototype.getMeter=function(t,a,r){return RTt},e}(),c5t=new l5t,j$="metrics",u5t=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return H1(j$,t,Au.instance())},e.prototype.getMeterProvider=function(){return Qm(j$)||c5t},e.prototype.getMeter=function(t,a,r){return this.getMeterProvider().getMeter(t,a,r)},e.prototype.disable=function(){V1(j$,Au.instance())},e}(),d5t=u5t.getInstance(),p5t=function(){function e(){}return e.prototype.inject=function(t,a){},e.prototype.extract=function(t,a){return t},e.prototype.fields=function(){return[]},e}(),O$=g$("OpenTelemetry Baggage Key");function F0e(e){return e.getValue(O$)||void 0}function h5t(){return F0e(JA.getInstance().active())}function m5t(e,t){return e.setValue(O$,t)}function f5t(e){return e.deleteValue(O$)}var C$="propagation",g5t=new p5t,v5t=function(){function e(){this.createBaggage=zTt,this.getBaggage=F0e,this.getActiveBaggage=h5t,this.setBaggage=m5t,this.deleteBaggage=f5t}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return H1(C$,t,Au.instance())},e.prototype.inject=function(t,a,r){return r===void 0&&(r=VTt),this._getGlobalPropagator().inject(t,a,r)},e.prototype.extract=function(t,a,r){return r===void 0&&(r=HTt),this._getGlobalPropagator().extract(t,a,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){V1(C$,Au.instance())},e.prototype._getGlobalPropagator=function(){return Qm(C$)||g5t},e}(),q1=v5t.getInstance(),A$="trace",b5t=function(){function e(){this._proxyTracerProvider=new V0e,this.wrapSpanContext=a5t,this.isSpanContextValid=UA,this.deleteSpan=QTt,this.getSpan=y$,this.getActiveSpan=ZTt,this.getSpanContext=I0e,this.setSpan=x$,this.setSpanContext=YTt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var a=H1(A$,this._proxyTracerProvider,Au.instance());return a&&this._proxyTracerProvider.setDelegate(t),a},e.prototype.getTracerProvider=function(){return Qm(A$)||this._proxyTracerProvider},e.prototype.getTracer=function(t,a){return this.getTracerProvider().getTracer(t,a)},e.prototype.disable=function(){V1(A$,Au.instance()),this._proxyTracerProvider=new V0e},e}(),Kl=b5t.getInstance();const G0e=g$("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function k5t(e){return e.setValue(G0e,!0)}function P$(e){return e.getValue(G0e)===!0}const y5t="=",M$=";",T$=",",_$="baggage",x5t=180,w5t=4096,z5t=8192;function S5t(e){return e.reduce((t,a)=>{const r=`${t}${t!==""?T$:""}${a}`;return r.length>z5t?t:r},"")}function j5t(e){return e.getAllEntries().map(([t,a])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(a.value)}`;return a.metadata!==void 0&&(r+=M$+a.metadata.toString()),r})}function O5t(e){const t=e.split(M$);if(t.length<=0)return;const a=t.shift();if(!a)return;const r=a.indexOf(y5t);if(r<=0)return;const n=decodeURIComponent(a.substring(0,r).trim()),i=decodeURIComponent(a.substring(r+1).trim());let o;return t.length>0&&(o=STt(t.join(M$))),{key:n,value:i,metadata:o}}class C5t{inject(t,a,r){const n=q1.getBaggage(t);if(!n||P$(t))return;const i=j5t(n).filter(s=>s.length<=w5t).slice(0,x5t),o=S5t(i);o.length>0&&r.set(a,_$,o)}extract(t,a,r){const n=r.get(a,_$),i=Array.isArray(n)?n.join(T$):n;if(!i)return t;const o={};return i.length===0||(i.split(T$).forEach(s=>{const l=O5t(s);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0)?t:q1.setBaggage(t,q1.createBaggage(o))}fields(){return[_$]}}function QA(e){const t={};if(typeof e!="object"||e==null)return t;for(const[a,r]of Object.entries(e)){if(!A5t(a)){ur.warn(`Invalid attribute key: ${a}`);continue}if(!q0e(r)){ur.warn(`Invalid attribute value set for key: ${a}`);continue}Array.isArray(r)?t[a]=r.slice():t[a]=r}return t}function A5t(e){return typeof e=="string"&&e.length>0}function q0e(e){return e==null?!0:Array.isArray(e)?P5t(e):W0e(e)}function P5t(e){let t;for(const a of e)if(a!=null){if(!t){if(W0e(a)){t=typeof a;continue}return!1}if(typeof a!==t)return!1}return!0}function W0e(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function M5t(){return e=>{ur.error(T5t(e))}}function T5t(e){return typeof e=="string"?e:JSON.stringify(_5t(e))}function _5t(e){const t={};let a=e;for(;a!==null;)Object.getOwnPropertyNames(a).forEach(r=>{if(t[r])return;const n=a[r];n&&(t[r]=String(n))}),a=Object.getPrototypeOf(a);return t}let B5t=M5t();function Uv(e){try{B5t(e)}catch{}}const Zv=performance,R5t="2.0.1",B$="exception.message",N5t="exception.stacktrace",R$="exception.type",J0e="service.name",E5t="service.version",N$="telemetry.sdk.language",L5t="webjs",E$="telemetry.sdk.name",L$="telemetry.sdk.version",D5t="process.runtime.name",D$={[E$]:"opentelemetry",[D5t]:"browser",[N$]:L5t,[L$]:R5t},$5t=9,I5t=6,K5t=Math.pow(10,I5t),YA=Math.pow(10,$5t);function Qv(e){const t=e/1e3,a=Math.trunc(t),r=Math.round(e%1e3*K5t);return[a,r]}function U0e(){let e=Zv.timeOrigin;if(typeof e!="number"){const t=Zv;e=t.timing&&t.timing.fetchStart}return e}function H5t(e){const t=Qv(U0e()),a=Qv(typeof e=="number"?e:Zv.now());return Y0e(t,a)}function V5t(e,t){let a=t[0]-e[0],r=t[1]-e[1];return r<0&&(a-=1,r+=YA),[a,r]}function F5t(e){return e[0]*YA+e[1]}function Z0e(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function Q0e(e){return Z0e(e)||typeof e=="number"||e instanceof Date}function Y0e(e,t){const a=[e[0]+t[0],e[1]+t[1]];return a[1]>=YA&&(a[1]-=YA,a[0]+=1),a}var Pu;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Pu||(Pu={}));class G5t{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(a=>typeof a.fields=="function"?a.fields():[]).reduce((a,r)=>a.concat(r),[])))}inject(t,a,r){for(const n of this._propagators)try{n.inject(t,a,r)}catch(i){ur.warn(`Failed to inject with ${n.constructor.name}. Err: ${i.message}`)}}extract(t,a,r){return this._propagators.reduce((n,i)=>{try{return i.extract(n,a,r)}catch(o){ur.warn(`Failed to extract with ${i.constructor.name}. Err: ${o.message}`)}return n},t)}fields(){return this._fields.slice()}}const $$="[_0-9a-z-*/]",q5t=`[a-z]${$$}{0,255}`,W5t=`[a-z0-9]${$$}{0,240}@[a-z]${$$}{0,13}`,J5t=new RegExp(`^(?:${q5t}|${W5t})$`),U5t=/^[ -~]{0,255}[!-~]$/,Z5t=/,|=/;function Q5t(e){return J5t.test(e)}function Y5t(e){return U5t.test(e)&&!Z5t.test(e)}const X0e=32,X5t=512,e1e=",",t1e="=";class yH{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,a){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,a),r}unset(t){const a=this._clone();return a._internalState.delete(t),a}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,a)=>(t.push(a+t1e+this.get(a)),t),[]).join(e1e)}_parse(t){t.length>X5t||(this._internalState=t.split(e1e).reverse().reduce((a,r)=>{const n=r.trim(),i=n.indexOf(t1e);if(i!==-1){const o=n.slice(0,i),s=n.slice(i+1,r.length);Q5t(o)&&Y5t(s)&&a.set(o,s)}return a},new Map),this._internalState.size>X0e&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,X0e))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new yH;return t._internalState=new Map(this._internalState),t}}const I$="traceparent",K$="tracestate",e3t="00",t3t="(?!ff)[\\da-f]{2}",a3t="(?![0]{32})[\\da-f]{32}",r3t="(?![0]{16})[\\da-f]{16}",n3t="[\\da-f]{2}",i3t=new RegExp(`^\\s?(${t3t})-(${a3t})-(${r3t})-(${n3t})(-.*)?\\s?$`);function o3t(e){const t=i3t.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class s3t{inject(t,a,r){const n=Kl.getSpanContext(t);if(!n||P$(t)||!UA(n))return;const i=`${e3t}-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||Td.NONE).toString(16)}`;r.set(a,I$,i),n.traceState&&r.set(a,K$,n.traceState.serialize())}extract(t,a,r){const n=r.get(a,I$);if(!n)return t;const i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return t;const o=o3t(i);if(!o)return t;o.isRemote=!0;const s=r.get(a,K$);if(s){const l=Array.isArray(s)?s.join(","):s;o.traceState=new yH(typeof l=="string"?l:void 0)}return Kl.setSpanContext(t,o)}fields(){return[I$,K$]}}const l3t="[object Object]",c3t="[object Null]",u3t="[object Undefined]",d3t=Function.prototype,a1e=d3t.toString,p3t=a1e.call(Object),h3t=Object.getPrototypeOf,r1e=Object.prototype,n1e=r1e.hasOwnProperty,Xm=Symbol?Symbol.toStringTag:void 0,i1e=r1e.toString;function o1e(e){if(!m3t(e)||f3t(e)!==l3t)return!1;const t=h3t(e);if(t===null)return!0;const a=n1e.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&a1e.call(a)===p3t}function m3t(e){return e!=null&&typeof e=="object"}function f3t(e){return e==null?e===void 0?u3t:c3t:Xm&&Xm in Object(e)?g3t(e):v3t(e)}function g3t(e){const t=n1e.call(e,Xm),a=e[Xm];let r=!1;try{e[Xm]=void 0,r=!0}catch{}const n=i1e.call(e);return r&&(t?e[Xm]=a:delete e[Xm]),n}function v3t(e){return i1e.call(e)}const b3t=20;function k3t(...e){let t=e.shift();const a=new WeakMap;for(;e.length>0;)t=s1e(t,e.shift(),0,a);return t}function H$(e){return XA(e)?e.slice():e}function s1e(e,t,a=0,r){let n;if(!(a>b3t)){if(a++,eP(e)||eP(t)||c1e(t))n=H$(t);else if(XA(e)){if(n=e.slice(),XA(t))for(let i=0,o=t.length;i<o;i++)n.push(H$(t[i]));else if(W1(t)){const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o];n[l]=H$(t[l])}}}else if(W1(e))if(W1(t)){if(!y3t(e,t))return t;n=Object.assign({},e);const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o],c=t[l];if(eP(c))typeof c>"u"?delete n[l]:n[l]=c;else{const u=n[l],d=c;if(l1e(e,l,r)||l1e(t,l,r))delete n[l];else{if(W1(u)&&W1(d)){const p=r.get(u)||[],h=r.get(d)||[];p.push({obj:e,key:l}),h.push({obj:t,key:l}),r.set(u,p),r.set(d,h)}n[l]=s1e(n[l],c,a,r)}}}}else n=t;return n}}function l1e(e,t,a){const r=a.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){const o=r[n];if(o.key===t&&o.obj===e)return!0}return!1}function XA(e){return Array.isArray(e)}function c1e(e){return typeof e=="function"}function W1(e){return!eP(e)&&!XA(e)&&!c1e(e)&&typeof e=="object"}function eP(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function y3t(e,t){return!(!o1e(e)||!o1e(t))}class x3t{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,a)=>{this._resolve=t,this._reject=a})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class w3t{_callback;_that;_isCalled=!1;_deferred=new x3t;constructor(t,a){this._callback=t,this._that=a}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(a=>this._deferred.resolve(a),a=>this._deferred.reject(a))}catch(a){this._deferred.reject(a)}}return this._deferred.promise}}function z3t(){return"unknown_service"}const J1=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class x3{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const a=new x3({});return a._rawAttributes=d1e(t),a._asyncAttributesPending=t.filter(([r,n])=>J1(n)).length>0,a}constructor(t){const a=t.attributes??{};this._rawAttributes=Object.entries(a).map(([r,n])=>(J1(n)&&(this._asyncAttributesPending=!0),[r,n])),this._rawAttributes=d1e(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[a,r]=this._rawAttributes[t];this._rawAttributes[t]=[a,J1(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&ur.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[a,r]of this._rawAttributes){if(J1(r)){ur.debug(`Unsettled resource attribute ${a} skipped`);continue}r!=null&&(t[a]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:x3.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function u1e(e){return x3.FromAttributeList(Object.entries(e))}function S3t(){return u1e({[J0e]:z3t(),[N$]:D$[N$],[E$]:D$[E$],[L$]:D$[L$]})}function d1e(e){return e.map(([t,a])=>J1(a)?[t,a.catch(r=>{ur.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,a])}const j3t="exception";class O3t{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:S$.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const a=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Zv.now(),this._performanceOffset=a-(this._performanceStartTime+U0e()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??a),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,a){if(a==null||this._isSpanEnded())return this;if(t.length===0)return ur.warn(`Invalid attribute key: ${t}`),this;if(!q0e(a))return ur.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(a),this)}setAttributes(t){for(const[a,r]of Object.entries(t))this.setAttribute(a,r);return this}addEvent(t,a,r){if(this._isSpanEnded())return this;const{eventCountLimit:n}=this._spanLimits;if(n===0)return ur.warn("No events allowed."),this._droppedEventsCount++,this;n!==void 0&&this.events.length>=n&&(this._droppedEventsCount===0&&ur.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Q0e(a)&&(Q0e(r)||(r=a),a=void 0);const i=QA(a);return this.events.push({name:t,attributes:i,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(ur.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){ur.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=V5t(this.startTime,this.endTime),this._duration[0]<0&&(ur.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&ur.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Zv.now())return H5t(t+this._performanceOffset);if(typeof t=="number")return Qv(t);if(t instanceof Date)return Qv(t.getTime());if(Z0e(t))return t;if(this._startTimeProvided)return Qv(Date.now());const a=Zv.now()-this._performanceStartTime;return Y0e(this.startTime,Qv(a))}isRecording(){return this._ended===!1}recordException(t,a){const r={};typeof t=="string"?r[B$]=t:t&&(t.code?r[R$]=t.code.toString():t.name&&(r[R$]=t.name),t.message&&(r[B$]=t.message),t.stack&&(r[N5t]=t.stack)),r[R$]||r[B$]?this.addEvent(j3t,r,a):ur.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);ur.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,a){return t.length<=a?t:t.substring(0,a)}_truncateToSize(t){const a=this._attributeValueLengthLimit;return a<=0?(ur.warn(`Attribute value limit must be positive, got ${a}`),t):typeof t=="string"?this._truncateToLimitUtil(t,a):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,a):r):t}}var Yv;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Yv||(Yv={}));class tP{shouldSample(){return{decision:Yv.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Xv{shouldSample(){return{decision:Yv.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class aP{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Uv(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Xv),this._remoteParentSampled=t.remoteParentSampled??new Xv,this._remoteParentNotSampled=t.remoteParentNotSampled??new tP,this._localParentSampled=t.localParentSampled??new Xv,this._localParentNotSampled=t.localParentNotSampled??new tP}shouldSample(t,a,r,n,i,o){const s=Kl.getSpanContext(t);return!s||!UA(s)?this._root.shouldSample(t,a,r,n,i,o):s.isRemote?s.traceFlags&Td.SAMPLED?this._remoteParentSampled.shouldSample(t,a,r,n,i,o):this._remoteParentNotSampled.shouldSample(t,a,r,n,i,o):s.traceFlags&Td.SAMPLED?this._localParentSampled.shouldSample(t,a,r,n,i,o):this._localParentNotSampled.shouldSample(t,a,r,n,i,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class p1e{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,a){return{decision:K0e(a)&&this._accumulate(a)<this._upperBound?Yv.RECORD_AND_SAMPLED:Yv.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let a=0;for(let r=0;r<t.length/8;r++){const n=r*8,i=parseInt(t.slice(n,n+8),16);a=(a^i)>>>0}return a}}const h1e=1;function m1e(){return{sampler:f1e(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function f1e(){const e="parentbased_always_on";switch(e){case"always_on":return new Xv;case"always_off":return new tP;case"parentbased_always_on":return new aP({root:new Xv});case"parentbased_always_off":return new aP({root:new tP});case"traceidratio":return new p1e(g1e());case"parentbased_traceidratio":return new aP({root:new p1e(g1e())});default:return ur.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new aP({root:new Xv})}}function g1e(){return ur.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${h1e}.`),h1e}const C3t=128,A3t=1/0;function P3t(e){const t={sampler:f1e()},a=m1e(),r=Object.assign({},a,t,e);return r.generalLimits=Object.assign({},a.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},a.spanLimits,e.spanLimits||{}),r}function M3t(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??C3t,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??A3t,Object.assign({},e,{spanLimits:t})}class T3t{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,a){this._exporter=t,this._maxExportBatchSize=typeof a?.maxExportBatchSize=="number"?a.maxExportBatchSize:512,this._maxQueueSize=typeof a?.maxQueueSize=="number"?a.maxQueueSize:2048,this._scheduledDelayMillis=typeof a?.scheduledDelayMillis=="number"?a.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof a?.exportTimeoutMillis=="number"?a.exportTimeoutMillis:3e4,this._shutdownOnce=new w3t(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(ur.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,a){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Td.SAMPLED)!==0&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&ur.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(ur.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,a)=>{const r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=n;i<o;i++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(a)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,a)=>{const r=setTimeout(()=>{a(new Error("Timeout"))},this._exportTimeoutMillis);Sh.with(k5t(Sh.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(n,s=>{clearTimeout(r),s.code===Pu.SUCCESS?t():a(s.error??new Error("BatchSpanProcessor: span export failed"))});let o=null;for(let s=0,l=n.length;s<l;s++){const c=n[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(o??=[],o.push(c.resource.waitForAsyncAttributes()))}o===null?i():Promise.all(o).then(i,s=>{Uv(s),a(s)})})})}_maybeStartTimer(){if(this._isExporting)return;const t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(a=>{this._isExporting=!1,Uv(a)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class _3t extends T3t{_visibilityChangeListener;_pageHideListener;constructor(t,a){super(t,a),this.onInit(a)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(a=>{Uv(a)})},this._pageHideListener=()=>{this.forceFlush().catch(a=>{Uv(a)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const B3t=8,R3t=16;class N3t{generateTraceId=v1e(R3t);generateSpanId=v1e(B3t)}const rP=Array(32);function v1e(e){return function(){for(let t=0;t<e*2;t++)rP[t]=Math.floor(Math.random()*16)+48,rP[t]>=58&&(rP[t]+=39);return String.fromCharCode.apply(null,rP.slice(0,e*2))}}class E3t{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,a,r,n){const i=P3t(a);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=a.idGenerator||new N3t,this._resource=r,this._spanProcessor=n,this.instrumentationScope=t}startSpan(t,a={},r=Sh.active()){a.root&&(r=Kl.deleteSpan(r));const n=Kl.getSpan(r);if(P$(r))return ur.debug("Instrumentation suppressed, returning Noop Span"),Kl.wrapSpanContext($0e);const i=n?.spanContext(),o=this._idGenerator.generateSpanId();let s,l,c;!i||!Kl.isSpanContextValid(i)?l=this._idGenerator.generateTraceId():(l=i.traceId,c=i.traceState,s=i);const u=a.kind??z$.INTERNAL,d=(a.links??[]).map(m=>({context:m.context,attributes:QA(m.attributes)})),p=QA(a.attributes),h=this._sampler.shouldSample(r,l,t,u,p,d);c=h.traceState??c;const f=h.decision===ZA.RECORD_AND_SAMPLED?Td.SAMPLED:Td.NONE,b={traceId:l,spanId:o,traceFlags:f,traceState:c};if(h.decision===ZA.NOT_RECORD)return ur.debug("Recording is off, propagating context in a non-recording span"),Kl.wrapSpanContext(b);const g=QA(Object.assign(p,h.attributes));return new O3t({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:b,name:t,kind:u,links:d,parentSpanContext:s,attributes:g,startTime:a.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,a,r,n){let i,o,s;if(arguments.length<2)return;arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);const l=o??Sh.active(),c=this.startSpan(t,i,l),u=Kl.setSpan(l,c);return Sh.with(u,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class L3t{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const a of this._spanProcessors)t.push(a.forceFlush());return new Promise(a=>{Promise.all(t).then(()=>{a()}).catch(r=>{Uv(r||new Error("MultiSpanProcessor: forceFlush failed")),a()})})}onStart(t,a){for(const r of this._spanProcessors)r.onStart(t,a)}onEnd(t){for(const a of this._spanProcessors)a.onEnd(t)}shutdown(){const t=[];for(const a of this._spanProcessors)t.push(a.shutdown());return new Promise((a,r)=>{Promise.all(t).then(()=>{a()},r)})}}var ef;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(ef||(ef={}));class D3t{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const a=k3t({},m1e(),M3t(t));this._resource=a.resource??S3t(),this._config=Object.assign({},a,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new L3t(r)}getTracer(t,a,r){const n=`${t}@${a||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new E3t({name:t,version:a,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(n)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,a=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(n=>{let i;const o=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=ef.timeout},t);r.forceFlush().then(()=>{clearTimeout(o),i!==ef.timeout&&(i=ef.resolved,n(i))}).catch(s=>{clearTimeout(o),i=ef.error,n(s)})}));return new Promise((r,n)=>{Promise.all(a).then(i=>{const o=i.filter(s=>s!==ef.resolved);o.length>0?n(o):r()}).catch(i=>n([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class $3t{_enabled=!1;_currentContext=Jv;_bindFunction(t=Jv,a){const r=this,n=function(...i){return r.with(t,()=>a.apply(this,i))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:a.length}),n}active(){return this._currentContext}bind(t,a){return t===void 0&&(t=this.active()),typeof a=="function"?this._bindFunction(t,a):a}disable(){return this._currentContext=Jv,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Jv,this)}with(t,a,r,...n){const i=this._currentContext;this._currentContext=t||Jv;try{return a.call(r,...n)}finally{this._currentContext=i}}}function I3t(e){if(e!==null){if(e===void 0){const t=new $3t;t.enable(),Sh.setGlobalContextManager(t);return}e.enable(),Sh.setGlobalContextManager(e)}}function K3t(e){if(e!==null){if(e===void 0){q1.setGlobalPropagator(new G5t({propagators:[new s3t,new C5t]}));return}q1.setGlobalPropagator(e)}}class H3t extends D3t{constructor(t={}){super(t)}register(t={}){Kl.setGlobalTracerProvider(this),K3t(t.propagator),I3t(t.contextManager)}}class V3t{_delegate;constructor(t){this._delegate=t}export(t,a){this._delegate.export(t,a)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class b1e extends Error{code;name="OTLPExporterError";data;constructor(t,a,r){super(t),this.data=r,this.code=a}}function F3t(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function G3t(e){if(e!=null)return()=>e}function q3t(e,t,a){return{timeoutMillis:F3t(e.timeoutMillis??t.timeoutMillis??a.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??a.concurrencyLimit,compression:e.compression??t.compression??a.compression}}function W3t(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class J3t{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const a=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(a,a)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function U3t(e){return new J3t(e.concurrencyLimit)}function Z3t(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function Q3t(){return{handleResponse(e){e==null||!Z3t(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||ur.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class Y3t{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,a,r,n,i){this._transport=t,this._serializer=a,this._responseHandler=r,this._promiseQueue=n,this._timeout=i,this._diagLogger=ur.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,a){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){a({code:Pu.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){a({code:Pu.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(n=>{if(n.status==="success"){if(n.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(n.data))}catch(i){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,n.data)}a({code:Pu.SUCCESS});return}else if(n.status==="failure"&&n.error){a({code:Pu.FAILED,error:n.error});return}else n.status==="retryable"?a({code:Pu.FAILED,error:new b1e("Export failed with retryable status")}):a({code:Pu.FAILED,error:new b1e("Export failed with unknown error")})},n=>a({code:Pu.FAILED,error:n})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function X3t(e,t){return new Y3t(e.transport,e.serializer,Q3t(),e.promiseHandler,t.timeout)}function k1e(e,t,a){return X3t({transport:a,serializer:t,promiseHandler:U3t(e)},{timeout:e.timeoutMillis})}function y1e(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function x1e(e){const t=new Uint8Array(e.length/2);let a=0;for(let r=0;r<e.length;r+=2){const n=y1e(e.charCodeAt(r)),i=y1e(e.charCodeAt(r+1));t[a++]=n<<4|i}return t}function w1e(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function e_t(e){const t=Number(BigInt.asUintN(32,e)),a=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:a}}function t_t(e){const t=w1e(e);return e_t(t)}function a_t(e){return w1e(e).toString()}const r_t=typeof BigInt<"u"?a_t:F5t;function z1e(e){return e}function n_t(e){if(e!==void 0)return x1e(e)}const i_t={encodeHrTime:t_t,encodeSpanContext:x1e,encodeOptionalSpanContext:n_t};function o_t(e){return e===void 0?i_t:{encodeHrTime:r_t,encodeSpanContext:z1e,encodeOptionalSpanContext:z1e}}function s_t(e){return{attributes:nP(e.attributes),droppedAttributesCount:0}}function l_t(e){return{name:e.name,version:e.version}}function nP(e){return Object.keys(e).map(t=>S1e(t,e[t]))}function S1e(e,t){return{key:e,value:j1e(t)}}function j1e(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(j1e)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([a,r])=>S1e(a,r))}}:{}}function c_t(e,t){const a=e.spanContext(),r=e.status,n=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(a.traceId),spanId:t.encodeSpanContext(a.spanId),parentSpanId:n,traceState:a.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:nP(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>d_t(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(i=>u_t(i,t)),droppedLinksCount:e.droppedLinksCount}}function u_t(e,t){return{attributes:e.attributes?nP(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function d_t(e,t){return{attributes:e.attributes?nP(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function p_t(e,t){const a=o_t(t);return{resourceSpans:m_t(e,a)}}function h_t(e){const t=new Map;for(const a of e){let r=t.get(a.resource);r||(r=new Map,t.set(a.resource,r));const n=`${a.instrumentationScope.name}@${a.instrumentationScope.version||""}:${a.instrumentationScope.schemaUrl||""}`;let i=r.get(n);i||(i=[],r.set(n,i)),i.push(a)}return t}function m_t(e,t){const a=h_t(e),r=[],n=a.entries();let i=n.next();for(;!i.done;){const[o,s]=i.value,l=[],c=s.values();let u=c.next();for(;!u.done;){const p=u.value;if(p.length>0){const h=p.map(f=>c_t(f,t));l.push({scope:l_t(p[0].instrumentationScope),spans:h,schemaUrl:p[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:s_t(o),scopeSpans:l,schemaUrl:void 0};r.push(d),i=n.next()}return r}const f_t={serializeRequest:e=>{const t=p_t(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},g_t=5,v_t=1e3,b_t=5e3,k_t=1.5,O1e=.2;function y_t(){return Math.random()*(2*O1e)-O1e}class x_t{_transport;constructor(t){this._transport=t}retry(t,a,r){return new Promise((n,i)=>{setTimeout(()=>{this._transport.send(t,a).then(n,i)},r)})}async send(t,a){const r=Date.now()+a;let n=await this._transport.send(t,a),i=g_t,o=v_t;for(;n.status==="retryable"&&i>0;){i--;const s=Math.max(Math.min(o,b_t)+y_t(),0);o=o*k_t;const l=n.retryInMillis??s,c=r-Date.now();if(l>c)return n;n=await this.retry(t,c,l)}return n}shutdown(){return this._transport.shutdown()}}function C1e(e){return new x_t(e.transport)}function w_t(e){return[429,502,503,504].includes(e)}function z_t(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const a=new Date(e).getTime()-Date.now();return a>=0?a:0}class S_t{_parameters;constructor(t){this._parameters=t}send(t,a){return new Promise(r=>{const n=new XMLHttpRequest;n.timeout=a,n.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([o,s])=>{n.setRequestHeader(o,s)}),n.ontimeout=o=>{r({status:"failure",error:new Error("XHR request timed out")})},n.onreadystatechange=()=>{n.status>=200&&n.status<=299?(ur.debug("XHR success"),r({status:"success"})):n.status&&w_t(n.status)?r({status:"retryable",retryInMillis:z_t(n.getResponseHeader("Retry-After"))}):n.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},n.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},n.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},n.send(t)})}shutdown(){}}function j_t(e){return new S_t(e)}class O_t{_params;constructor(t){this._params=t}send(t){return new Promise(a=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(ur.debug("SendBeacon success"),a({status:"success"})):a({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function C_t(e){return new O_t(e)}function A_t(e,t){return k1e(e,t,C1e({transport:j_t(e)}))}function P_t(e,t){return k1e(e,t,C1e({transport:C_t({url:e.url,blobType:e.headers()["Content-Type"]})}))}function M_t(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([a,r])=>{typeof r<"u"?t[a]=String(r):ur.warn(`Header "${a}" has invalid value (${r}) and will be ignored`)}),t}}function T_t(e,t,a){const r={...a()},n={};return()=>(t!=null&&Object.assign(n,t()),e!=null&&Object.assign(n,e()),Object.assign(n,r))}function __t(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function B_t(e,t,a){return{...q3t(e,t,a),headers:T_t(M_t(e.headers),t.headers,a.headers),url:__t(e.url)??t.url??a.url,agentOptions:e.agentOptions??t.agentOptions??a.agentOptions}}function R_t(e,t){return{...W3t(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function N_t(e,t,a){return B_t({url:e.url,timeoutMillis:e.timeoutMillis,headers:G3t(e.headers),concurrencyLimit:e.concurrencyLimit},{},R_t(a,t))}function E_t(e,t,a,r){const n=!!e.headers||typeof navigator.sendBeacon!="function",i=N_t(e,a,r);return n?A_t(i,t):P_t(i,t)}class L_t extends V3t{constructor(t={}){super(E_t(t,f_t,"v1/traces",{"Content-Type":"application/json"}))}}class A1e{emit(t){}}const D_t=new A1e;class $_t{getLogger(t,a,r){return new A1e}}const P1e=new $_t;class I_t{constructor(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):D_t}}class M1e{getLogger(t,a,r){var n;return(n=this.getDelegateLogger(t,a,r))!==null&&n!==void 0?n:new I_t(this,t,a,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:P1e}setDelegate(t){this._delegate=t}getDelegateLogger(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getLogger(t,a,r)}}const K_t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},iP=Symbol.for("io.opentelemetry.js.api.logs"),U1=K_t;function H_t(e,t,a){return r=>r===e?t:a}const T1e=1;class xH{constructor(){this._proxyLoggerProvider=new M1e}static getInstance(){return this._instance||(this._instance=new xH),this._instance}setGlobalLoggerProvider(t){return U1[iP]?this.getLoggerProvider():(U1[iP]=H_t(T1e,t,P1e),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,a;return(a=(t=U1[iP])===null||t===void 0?void 0:t.call(U1,T1e))!==null&&a!==void 0?a:this._proxyLoggerProvider}getLogger(t,a,r){return this.getLoggerProvider().getLogger(t,a,r)}disable(){delete U1[iP],this._proxyLoggerProvider=new M1e}}const V_t=xH.getInstance();function F_t(e,t,a,r){for(let n=0,i=e.length;n<i;n++){const o=e[n];t&&o.setTracerProvider(t),a&&o.setMeterProvider(a),r&&o.setLoggerProvider&&o.setLoggerProvider(r),o.getConfig().enabled||o.enable()}}function G_t(e){e.forEach(t=>t.disable())}function q_t(e){const t=e.tracerProvider||Kl.getTracerProvider(),a=e.meterProvider||d5t.getMeterProvider(),r=e.loggerProvider||V_t.getLoggerProvider(),n=e.instrumentations?.flat()??[];return F_t(n,t,a,r),()=>{G_t(n)}}class W_t{config=null;tracer=null;tracerProvider=null;initialized=!1;initTracer(t){throw new Error("initTracer must be implemented by the environment-specific client")}init(t){this.config=t,this.initTracer(t)}send(t){try{if(!this.tracer||!this.config)return;const a=t.time?new Date(t.time):new Date;this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),startTime:a}).end(a)}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}processAttributes(t,a){const r={"cloudevents.event_id":qA(),"cloudevents.event_type":t.type,"cloudevents.event_source":t.source,"cloudevents.event_spec_version":t.specversion,"cloudevents.event_data_content_type":t.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":a.toISOString(),"cloudevents.event_subject":t.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":this.config?.version,"cloudevents.event_origin":this.config?.serviceName,"cloudevents.event_source_details.id":t.sourceDetails?.id??"anonymous","cloudevents.event_source_details.object":t.sourceDetails?.object??"anonymous","cloudevents.event_source_details.uri":t.sourceDetails?.uri};if(t.data&&typeof t.data=="object"&&Object.entries(t.data).forEach(([n,i])=>{const o=n.replace(/([A-Z])/g,"_$1").toLowerCase();i!==void 0&&(r[`cloudevents.event_data.${o}`]=i)}),"subjects"in t&&Array.isArray(t.subjects)){const n=t.subjects.reduce((i,o)=>{if(!o||typeof o!="object")return i;const s=o.object;if(!s||typeof s!="string")return i;const l=i.notUpdated.find(({object:c})=>c===s);return l?(i.updated=[l,o],i.notUpdated=i.notUpdated.filter(({object:c})=>c!==s)):i.updated.some(({object:c})=>c===s)||i.notUpdated.push(o),i},{updated:[],notUpdated:[]});n.updated.forEach((i,o)=>{const s=o===0?"after.":"before.",l=`${i.object}.`;Object.entries(i).forEach(([c,u])=>{u!==void 0&&(r[`cloudevents.subjects.${s}${l}${c}`]=u)})}),n.notUpdated.forEach(i=>{const o=`${i.object}.`;Object.entries(i).forEach(([s,l])=>{l!==void 0&&(r[`cloudevents.subjects.${o}${s}`]=l)})})}return Object.entries(t).forEach(([n,i])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(n)||i!==void 0&&(i instanceof Object?Object.entries(i).forEach(([o,s])=>{s!==void 0&&(r[`cloudevents.${n}.${o}`]=s)}):r[`cloudevents.${n}`]=i)}),r}startSpan(t,a){try{if(!this.tracer)return;let r;const n=t.time?new Date(t.time):new Date,i=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,n),root:!a},a);return a||(r=Kl.setSpan(Sh.active(),i)),{end:()=>i.end(),setAttribute:(o,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>i.setStatus({code:o,message:s}),parentCtx:r}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}forceFlush(){this.tracerProvider?.forceFlush()}getKeySnakeValue=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase()}class J_t extends W_t{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(t){if(!t.collectorUrl&&!t.collectorTraceUrl)return;const a=`ses_${qA()}`,r=u1e({[J0e]:t.serviceName,[E5t]:t.serviceVersion,session_id:a}),n=t.collectorTraceUrl||`${t.collectorUrl}/v1/traces`;this.tracerProvider=new H3t({resource:r,spanProcessors:[new _3t(new L_t({url:n,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(t.tracerName),this.tracerProvider.register(),q_t({instrumentations:t.instrumentations??[]}),this.initialized=!0}}class U_t{config=null;initialized=!1;useCloudEventData;otelClient;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new J_t}updateCloudEventData=t=>{this.config?.disabled||(this.useCloudEventData=t)};send(t,a){try{if(!this.config?.otel.isProd)return;const r=this.constructCloudEvent(t,a);this.sendToOtelService(r)}catch(r){this.config?.otel.isProd||console.error("Event reporting failed:",r)}}init(t){t.disabled||this.initialized||(this.config=t,this.initialized=!0,this.otelClient.init({serviceVersion:t.otel.serviceVersion,version:t.otel.version,isProd:t.otel.isProd,collectorUrl:t.otel.collectorUrl,serviceName:t.otel.serviceName,tracerName:t.otel.tracerName,instrumentations:[...t.otel.instrumentations||[]]}))}startSpan(t,a,r){if(this.config?.disabled)return;const n=this.constructCloudEvent(t,a);return this.otelClient.startSpan(n,r)}constructCloudEvent(t,a){const r=this.useCloudEventData();return{id:`evt_${qA()}`,type:t,source:r.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:a,origin:"ui",sourceDetails:{id:r.sourceDetails.user||`usr_${qA()}`,object:r.sourceDetails.object||"user",uri:r.sourceDetails.uri||""},organization:r.organization,project:r.project,productType:r.productType}}sendToOtelService(t){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",t),this.otelClient.send(t)}forceFlush(){this.config?.disabled||this.otelClient.forceFlush()}sendTabChangeMessage(t){this.send("tab.change",t)}sendButtonClickMessage(t){this.send("button.click",t)}sendChangeMessage(t){this.send("change",t)}sendContentCopyMessage(t){this.send("content.copy",t)}sendUrlClickMessage(t){this.send("url.click",t)}sendRequestSendMessage(t){this.send("request.send",t)}sendTokenGenerateMessage(t){this.send("token.generate",t)}sendAppLifecycleMessage(t){this.send("app.lifecycle",t)}sendEnvironmentManagementMessage(t){this.send("environment.management",t)}sendServerManagementMessage(t){this.send("server.management",t)}sendInputManagementMessage(t){this.send("input.management",t)}sendNodeManagementMessage(t){this.send("node.management",t)}sendHistoryManagementMessage(t){this.send("history.management",t)}sendCredentialManagementMessage(t){this.send("credential.management",t)}sendPanelToggleMessage(t){this.send("panel.toggle",t)}sendWorkflowRunClickMessage(t){this.send("workflow.run.click",t)}sendWorkflowRunResultMessage(t){this.send("workflow.run.result",t)}}function Z_t(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const Q_t=Z_t(),Y_t=K.createContext(Q_t);function Sc(){const e=K.useContext(Y_t);return mpe(e)}function X_t(e,t){const{apps:{apiId:a}}=Ya(),{corsProxyUrl:r,disableCollectionsTab:n,mockServer:i,oAuth2RedirectURI:o,certificates:s,storageKey:l,isApiBased:c}=Sc();r.set(e?.corsProxyUrl??Hyt),i.set(e?.mockServer),a.set(e?.apiId),o.set(e?.oAuth2RedirectURI),n.set(!!e?.disableCollectionsTab),l.set(e?.storageKey),c.set(!!t),K.useEffect(()=>{s.set(e?.certificates||[])},[e?.certificates])}const _1e=K.createContext({});function V$(){return K.useContext(_1e)||{}}const eBt="0.16.0",tBt={version:eBt};class aBt{client;_isInitialized=!1;constructor(){this.client=new U_t}get isInitialized(){return this._isInitialized}init(t){if(this.isInitialized)return;const a={serviceName:"replay",serviceVersion:tBt.version,version:"1.0.0",tracerName:t?.tracerName||"desktop",collectorUrl:t?.collectorUrl||"",isProd:!0};this.client.init({otel:{...a,...t}}),this._isInitialized=!0}sendEvent(t,a){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(t,a)}catch(r){console.error("Failed to send telemetry event:",r)}}}const F$=new aBt;function ja(){const{telemetry:e}=V$();return F$.isInitialized||F$.init({tracerName:e?.tracerName,collectorUrl:e?.collectorUrl}),{sendEvent:(t,a)=>{F$.sendEvent(t,a)}}}const Zo=800;var rBt=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function nBt(e){var t=e.defaultInputValue,a=t===void 0?"":t,r=e.defaultMenuIsOpen,n=r===void 0?!1:r,i=e.defaultValue,o=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,f=wc(e,rBt),b=K.useState(s!==void 0?s:a),g=ca(b,2),m=g[0],k=g[1],x=K.useState(l!==void 0?l:n),j=ca(x,2),w=j[0],S=j[1],O=K.useState(h!==void 0?h:o),M=ca(O,2),T=M[0],N=M[1],G=K.useCallback(function(ie,he){typeof c=="function"&&c(ie,he),N(ie)},[c]),L=K.useCallback(function(ie,he){var F;typeof u=="function"&&(F=u(ie,he)),k(F!==void 0?F:ie)},[u]),J=K.useCallback(function(){typeof p=="function"&&p(),S(!0)},[p]),I=K.useCallback(function(){typeof d=="function"&&d(),S(!1)},[d]),X=s!==void 0?s:m,re=l!==void 0?l:w,le=h!==void 0?h:T;return ut(ut({},f),{},{inputValue:X,menuIsOpen:re,onChange:G,onInputChange:L,onMenuClose:I,onMenuOpen:J,value:le})}function iBt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function oBt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var sBt=function(){function e(a){var r=this;this._insertTag=function(n){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(n,i),r.tags.push(n)},this.isSpeedy=a.speedy===void 0?!0: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 t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(oBt(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=iBt(r);try{n.insertRule(a,n.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){return a.parentNode&&a.parentNode.removeChild(a)}),this.tags=[],this.ctr=0},e}(),jo="-ms-",oP="-moz-",dr="-webkit-",B1e="comm",G$="rule",q$="decl",lBt="@import",R1e="@keyframes",cBt=Math.abs,sP=String.fromCharCode,uBt=Object.assign;function dBt(e,t){return Ji(e,0)^45?(((t<<2^Ji(e,0))<<2^Ji(e,1))<<2^Ji(e,2))<<2^Ji(e,3):0}function N1e(e){return e.trim()}function pBt(e,t){return(e=t.exec(e))?e[0]:e}function vr(e,t,a){return e.replace(t,a)}function W$(e,t){return e.indexOf(t)}function Ji(e,t){return e.charCodeAt(t)|0}function Z1(e,t,a){return e.slice(t,a)}function Mu(e){return e.length}function J$(e){return e.length}function lP(e,t){return t.push(e),e}function hBt(e,t){return e.map(t).join("")}var cP=1,eb=1,E1e=0,Cs=0,ni=0,tb="";function uP(e,t,a,r,n,i,o){return{value:e,root:t,parent:a,type:r,props:n,children:i,line:cP,column:eb,length:o,return:""}}function Q1(e,t){return uBt(uP("",null,null,"",null,null,0),e,{length:-e.length},t)}function mBt(){return ni}function fBt(){return ni=Cs>0?Ji(tb,--Cs):0,eb--,ni===10&&(eb=1,cP--),ni}function ll(){return ni=Cs<E1e?Ji(tb,Cs++):0,eb++,ni===10&&(eb=1,cP++),ni}function Tu(){return Ji(tb,Cs)}function dP(){return Cs}function Y1(e,t){return Z1(tb,e,t)}function X1(e){switch(e){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 L1e(e){return cP=eb=1,E1e=Mu(tb=e),Cs=0,[]}function D1e(e){return tb="",e}function pP(e){return N1e(Y1(Cs-1,U$(e===91?e+2:e===40?e+1:e)))}function gBt(e){for(;(ni=Tu())&&ni<33;)ll();return X1(e)>2||X1(ni)>3?"":" "}function vBt(e,t){for(;--t&&ll()&&!(ni<48||ni>102||ni>57&&ni<65||ni>70&&ni<97););return Y1(e,dP()+(t<6&&Tu()==32&&ll()==32))}function U$(e){for(;ll();)switch(ni){case e:return Cs;case 34:case 39:e!==34&&e!==39&&U$(ni);break;case 40:e===41&&U$(e);break;case 92:ll();break}return Cs}function bBt(e,t){for(;ll()&&e+ni!==57&&!(e+ni===84&&Tu()===47););return"/*"+Y1(t,Cs-1)+"*"+sP(e===47?e:ll())}function kBt(e){for(;!X1(Tu());)ll();return Y1(e,Cs)}function yBt(e){return D1e(hP("",null,null,null,[""],e=L1e(e),0,[0],e))}function hP(e,t,a,r,n,i,o,s,l){for(var c=0,u=0,d=o,p=0,h=0,f=0,b=1,g=1,m=1,k=0,x="",j=n,w=i,S=r,O=x;g;)switch(f=k,k=ll()){case 40:if(f!=108&&Ji(O,d-1)==58){W$(O+=vr(pP(k),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:O+=pP(k);break;case 9:case 10:case 13:case 32:O+=gBt(f);break;case 92:O+=vBt(dP()-1,7);continue;case 47:switch(Tu()){case 42:case 47:lP(xBt(bBt(ll(),dP()),t,a),l);break;default:O+="/"}break;case 123*b:s[c++]=Mu(O)*m;case 125*b:case 59:case 0:switch(k){case 0:case 125:g=0;case 59+u:h>0&&Mu(O)-d&&lP(h>32?I1e(O+";",r,a,d-1):I1e(vr(O," ","")+";",r,a,d-2),l);break;case 59:O+=";";default:if(lP(S=$1e(O,t,a,c,u,n,s,x,j=[],w=[],d),i),k===123)if(u===0)hP(O,t,S,S,j,i,d,s,w);else switch(p===99&&Ji(O,3)===110?100:p){case 100:case 109:case 115:hP(e,S,S,r&&lP($1e(e,S,S,0,0,n,s,x,n,j=[],d),w),n,w,d,s,r?j:w);break;default:hP(O,S,S,S,[""],w,0,s,w)}}c=u=h=0,b=m=1,x=O="",d=o;break;case 58:d=1+Mu(O),h=f;default:if(b<1){if(k==123)--b;else if(k==125&&b++==0&&fBt()==125)continue}switch(O+=sP(k),k*b){case 38:m=u>0?1:(O+="\f",-1);break;case 44:s[c++]=(Mu(O)-1)*m,m=1;break;case 64:Tu()===45&&(O+=pP(ll())),p=Tu(),u=d=Mu(x=O+=kBt(dP())),k++;break;case 45:f===45&&Mu(O)==2&&(b=0)}}return i}function $1e(e,t,a,r,n,i,o,s,l,c,u){for(var d=n-1,p=n===0?i:[""],h=J$(p),f=0,b=0,g=0;f<r;++f)for(var m=0,k=Z1(e,d+1,d=cBt(b=o[f])),x=e;m<h;++m)(x=N1e(b>0?p[m]+" "+k:vr(k,/&\f/g,p[m])))&&(l[g++]=x);return uP(e,t,a,n===0?G$:s,l,c,u)}function xBt(e,t,a){return uP(e,t,a,B1e,sP(mBt()),Z1(e,2,-2),0)}function I1e(e,t,a,r){return uP(e,t,a,q$,Z1(e,0,r),Z1(e,r+1,-1),r)}function ab(e,t){for(var a="",r=J$(e),n=0;n<r;n++)a+=t(e[n],n,e,t)||"";return a}function wBt(e,t,a,r){switch(e.type){case lBt:case q$:return e.return=e.return||e.value;case B1e:return"";case R1e:return e.return=e.value+"{"+ab(e.children,r)+"}";case G$:e.value=e.props.join(",")}return Mu(a=ab(e.children,r))?e.return=e.value+"{"+a+"}":""}function zBt(e){var t=J$(e);return function(a,r,n,i){for(var o="",s=0;s<t;s++)o+=e[s](a,r,n,i)||"";return o}}function SBt(e){return function(t){t.root||(t=t.return)&&e(t)}}function jBt(e){var t=Object.create(null);return function(a){return t[a]===void 0&&(t[a]=e(a)),t[a]}}var OBt=function(e,t,a){for(var r=0,n=0;r=n,n=Tu(),r===38&&n===12&&(t[a]=1),!X1(n);)ll();return Y1(e,Cs)},CBt=function(e,t){var a=-1,r=44;do switch(X1(r)){case 0:r===38&&Tu()===12&&(t[a]=1),e[a]+=OBt(Cs-1,t,a);break;case 2:e[a]+=pP(r);break;case 4:if(r===44){e[++a]=Tu()===58?"&\f":"",t[a]=e[a].length;break}default:e[a]+=sP(r)}while(r=ll());return e},ABt=function(e,t){return D1e(CBt(L1e(e),t))},K1e=new WeakMap,PBt=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,a=e.parent,r=e.column===a.column&&e.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!K1e.get(a))&&!r){K1e.set(e,!0);for(var n=[],i=ABt(t,n),o=a.props,s=0,l=0;s<i.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=n[s]?i[s].replace(/&\f/g,o[c]):o[c]+" "+i[s]}}},MBt=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function H1e(e,t){switch(dBt(e,t)){case 5103:return dr+"print-"+e+e;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 dr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dr+e+oP+e+jo+e+e;case 6828:case 4268:return dr+e+jo+e+e;case 6165:return dr+e+jo+"flex-"+e+e;case 5187:return dr+e+vr(e,/(\w+).+(:[^]+)/,dr+"box-$1$2"+jo+"flex-$1$2")+e;case 5443:return dr+e+jo+"flex-item-"+vr(e,/flex-|-self/,"")+e;case 4675:return dr+e+jo+"flex-line-pack"+vr(e,/align-content|flex-|-self/,"")+e;case 5548:return dr+e+jo+vr(e,"shrink","negative")+e;case 5292:return dr+e+jo+vr(e,"basis","preferred-size")+e;case 6060:return dr+"box-"+vr(e,"-grow","")+dr+e+jo+vr(e,"grow","positive")+e;case 4554:return dr+vr(e,/([^-])(transform)/g,"$1"+dr+"$2")+e;case 6187:return vr(vr(vr(e,/(zoom-|grab)/,dr+"$1"),/(image-set)/,dr+"$1"),e,"")+e;case 5495:case 3959:return vr(e,/(image-set\([^]*)/,dr+"$1$`$1");case 4968:return vr(vr(e,/(.+:)(flex-)?(.*)/,dr+"box-pack:$3"+jo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dr+e+e;case 4095:case 3583:case 4068:case 2532:return vr(e,/(.+)-inline(.+)/,dr+"$1$2")+e;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(Mu(e)-1-t>6)switch(Ji(e,t+1)){case 109:if(Ji(e,t+4)!==45)break;case 102:return vr(e,/(.+:)(.+)-([^]+)/,"$1"+dr+"$2-$3$1"+oP+(Ji(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~W$(e,"stretch")?H1e(vr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ji(e,t+1)!==115)break;case 6444:switch(Ji(e,Mu(e)-3-(~W$(e,"!important")&&10))){case 107:return vr(e,":",":"+dr)+e;case 101:return vr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dr+(Ji(e,14)===45?"inline-":"")+"box$3$1"+dr+"$2$3$1"+jo+"$2box$3")+e}break;case 5936:switch(Ji(e,t+11)){case 114:return dr+e+jo+vr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dr+e+jo+vr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dr+e+jo+vr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dr+e+jo+e+e}return e}var TBt=function(e,t,a,r){if(e.length>-1&&!e.return)switch(e.type){case q$:e.return=H1e(e.value,e.length);break;case R1e:return ab([Q1(e,{value:vr(e.value,"@","@"+dr)})],r);case G$:if(e.length)return hBt(e.props,function(n){switch(pBt(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ab([Q1(e,{props:[vr(n,/:(read-\w+)/,":"+oP+"$1")]})],r);case"::placeholder":return ab([Q1(e,{props:[vr(n,/:(plac\w+)/,":"+dr+"input-$1")]}),Q1(e,{props:[vr(n,/:(plac\w+)/,":"+oP+"$1")]}),Q1(e,{props:[vr(n,/:(plac\w+)/,jo+"input-$1")]})],r)}return""})}},_Bt=[TBt],BBt=function(e){var t=e.key;if(t==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(f){var b=f.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var r=e.stylisPlugins||_Bt,n={},i,o=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(f){for(var b=f.getAttribute("data-emotion").split(" "),g=1;g<b.length;g++)n[b[g]]=!0;o.push(f)});var s,l=[PBt,MBt];{var c,u=[wBt,SBt(function(f){c.insert(f)})],d=zBt(l.concat(r,u)),p=function(f){return ab(yBt(f),d)};s=function(f,b,g,m){c=g,p(f?f+"{"+b.styles+"}":b.styles),m&&(h.inserted[b.name]=!0)}}var h={key:t,sheet:new sBt({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:n,registered:{},insert:s};return h.sheet.hydrate(o),h},RBt=!0;function NBt(e,t,a){var r="";return a.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):r+=n+" "}),r}var V1e=function(e,t,a){var r=e.key+"-"+t.name;(a===!1||RBt===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},EBt=function(e,t,a){V1e(e,t,a);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var n=t;do e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next;while(n!==void 0)}};function LBt(e){for(var t=0,a,r=0,n=e.length;n>=4;++r,n-=4)a=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var DBt={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,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},$Bt=/[A-Z]|^ms/g,IBt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,F1e=function(e){return e.charCodeAt(1)===45},G1e=function(e){return e!=null&&typeof e!="boolean"},Z$=jBt(function(e){return F1e(e)?e:e.replace($Bt,"-$&").toLowerCase()}),q1e=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(IBt,function(a,r,n){return _u={name:r,styles:n,next:_u},r})}return DBt[e]!==1&&!F1e(e)&&typeof t=="number"&&t!==0?t+"px":t};function ex(e,t,a){if(a==null)return"";if(a.__emotion_styles!==void 0)return a;switch(typeof a){case"boolean":return"";case"object":{if(a.anim===1)return _u={name:a.name,styles:a.styles,next:_u},a.name;if(a.styles!==void 0){var r=a.next;if(r!==void 0)for(;r!==void 0;)_u={name:r.name,styles:r.styles,next:_u},r=r.next;var n=a.styles+";";return n}return KBt(e,t,a)}case"function":{if(e!==void 0){var i=_u,o=a(e);return _u=i,ex(e,t,o)}break}}return a}function KBt(e,t,a){var r="";if(Array.isArray(a))for(var n=0;n<a.length;n++)r+=ex(e,t,a[n])+";";else for(var i in a){var o=a[i];if(typeof o!="object")G1e(o)&&(r+=Z$(i)+":"+q1e(i,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var s=0;s<o.length;s++)G1e(o[s])&&(r+=Z$(i)+":"+q1e(i,o[s])+";");else{var l=ex(e,t,o);switch(i){case"animation":case"animationName":{r+=Z$(i)+":"+l+";";break}default:r+=i+"{"+l+"}"}}}return r}var W1e=/label:\s*([^\s;\n{]+)\s*(;|$)/g,_u,J1e=function(e,t,a){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,n="";_u=void 0;var i=e[0];i==null||i.raw===void 0?(r=!1,n+=ex(a,t,i)):n+=i[0];for(var o=1;o<e.length;o++)n+=ex(a,t,e[o]),r&&(n+=i[o]);W1e.lastIndex=0;for(var s="",l;(l=W1e.exec(n))!==null;)s+="-"+l[1];var c=LBt(n)+s;return{name:c,styles:n,next:_u}},HBt=function(e){return e()},VBt=im.useInsertionEffect?im.useInsertionEffect:!1,FBt=VBt||HBt,Q$={}.hasOwnProperty,GBt=K.createContext(typeof HTMLElement<"u"?BBt({key:"css"}):null),qBt=function(e){return K.forwardRef(function(t,a){var r=K.useContext(GBt);return e(t,r,a)})},WBt=K.createContext({}),Y$="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",JBt=function(e,t){var a={};for(var r in t)Q$.call(t,r)&&(a[r]=t[r]);return a[Y$]=e,a},UBt=function(e){var t=e.cache,a=e.serialized,r=e.isStringTag;return V1e(t,a,r),FBt(function(){return EBt(t,a,r)}),null},ZBt=qBt(function(e,t,a){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var n=e[Y$],i=[r],o="";typeof e.className=="string"?o=NBt(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=J1e(i,void 0,K.useContext(WBt));o+=t.key+"-"+s.name;var l={};for(var c in e)Q$.call(e,c)&&c!=="css"&&c!==Y$&&(l[c]=e[c]);return l.ref=a,l.className=o,K.createElement(K.Fragment,null,K.createElement(UBt,{cache:t,serialized:s,isStringTag:typeof n=="string"}),K.createElement(n,l))}),It=function(e,t){var a=arguments;if(t==null||!Q$.call(t,"css"))return K.createElement.apply(void 0,a);var r=a.length,n=new Array(r);n[0]=ZBt,n[1]=JBt(e,t);for(var i=2;i<r;i++)n[i]=a[i];return K.createElement.apply(null,n)};function X$(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return J1e(t)}var QBt=function(){var e=X$.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function YBt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const XBt=Math.min,eRt=Math.max,mP=Math.round,fP=Math.floor,gP=e=>({x:e,y:e});function tRt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function U1e(e){return Q1e(e)?(e.nodeName||"").toLowerCase():"#document"}function _d(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Z1e(e){var t;return(t=(Q1e(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Q1e(e){return e instanceof Node||e instanceof _d(e).Node}function aRt(e){return e instanceof Element||e instanceof _d(e).Element}function e7(e){return e instanceof HTMLElement||e instanceof _d(e).HTMLElement}function Y1e(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _d(e).ShadowRoot}function X1e(e){const{overflow:t,overflowX:a,overflowY:r,display:n}=t7(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&!["inline","contents"].includes(n)}function rRt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nRt(e){return["html","body","#document"].includes(U1e(e))}function t7(e){return _d(e).getComputedStyle(e)}function iRt(e){if(U1e(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Y1e(e)&&e.host||Z1e(e);return Y1e(t)?t.host:t}function exe(e){const t=iRt(e);return nRt(t)?e.ownerDocument?e.ownerDocument.body:e.body:e7(t)&&X1e(t)?t:exe(t)}function vP(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);const n=exe(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=_d(n);return i?t.concat(o,o.visualViewport||[],X1e(n)?n:[],o.frameElement&&a?vP(o.frameElement):[]):t.concat(n,vP(n,[],a))}function oRt(e){const t=t7(e);let a=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=e7(e),i=n?e.offsetWidth:a,o=n?e.offsetHeight:r,s=mP(a)!==i||mP(r)!==o;return s&&(a=i,r=o),{width:a,height:r,$:s}}function a7(e){return aRt(e)?e:e.contextElement}function txe(e){const t=a7(e);if(!e7(t))return gP(1);const a=t.getBoundingClientRect(),{width:r,height:n,$:i}=oRt(t);let o=(i?mP(a.width):a.width)/r,s=(i?mP(a.height):a.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const sRt=gP(0);function lRt(e){const t=_d(e);return!rRt()||!t.visualViewport?sRt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cRt(e,t,a){return!1}function axe(e,t,a,r){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),i=a7(e);let o=gP(1);t&&(o=txe(e));const s=cRt()?lRt(i):gP(0);let l=(n.left+s.x)/o.x,c=(n.top+s.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(i){const p=_d(i),h=r;let f=p.frameElement;for(;f&&r&&h!==p;){const b=txe(f),g=f.getBoundingClientRect(),m=t7(f),k=g.left+(f.clientLeft+parseFloat(m.paddingLeft))*b.x,x=g.top+(f.clientTop+parseFloat(m.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=k,c+=x,f=_d(f).frameElement}}return tRt({width:u,height:d,x:l,y:c})}function uRt(e,t){let a=null,r;const n=Z1e(e);function i(){clearTimeout(r),a&&a.disconnect(),a=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const h=fP(u),f=fP(n.clientWidth-(c+d)),b=fP(n.clientHeight-(u+p)),g=fP(c),m={rootMargin:-h+"px "+-f+"px "+-b+"px "+-g+"px",threshold:eRt(0,XBt(1,l))||1};let k=!0;function x(j){const w=j[0].intersectionRatio;if(w!==l){if(!k)return o();w?o(!1,w):r=setTimeout(()=>{o(!1,1e-7)},100)}k=!1}try{a=new IntersectionObserver(x,{...m,root:n.ownerDocument})}catch{a=new IntersectionObserver(x,m)}a.observe(e)}return o(!0),i}function dRt(e,t,a,r){r===void 0&&(r={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=a7(e),u=n||i?[...c?vP(c):[],...vP(t)]:[];u.forEach(m=>{n&&m.addEventListener("scroll",a,{passive:!0}),i&&m.addEventListener("resize",a)});const d=c&&s?uRt(c,a):null;let p=-1,h=null;o&&(h=new ResizeObserver(m=>{let[k]=m;k&&k.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),a()}),c&&!l&&h.observe(c),h.observe(t));let f,b=l?axe(e):null;l&&g();function g(){const m=axe(e);b&&(m.x!==b.x||m.y!==b.y||m.width!==b.width||m.height!==b.height)&&a(),b=m,f=requestAnimationFrame(g)}return a(),()=>{u.forEach(m=>{n&&m.removeEventListener("scroll",a),i&&m.removeEventListener("resize",a)}),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(f)}}var r7=K.useLayoutEffect,pRt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],bP=function(){};function hRt(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function mRt(e,t){for(var a=arguments.length,r=new Array(a>2?a-2:0),n=2;n<a;n++)r[n-2]=arguments[n];var i=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(hRt(e,o)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var rxe=function(e){return zRt(e)?e.filter(Boolean):il(e)==="object"&&e!==null?[e]:[]},nxe=function(e){var t=wc(e,pRt);return ut({},t)},Bn=function(e,t,a){var r=e.cx,n=e.getStyles,i=e.getClassNames,o=e.className;return{css:n(t,e),className:r(a??{},i(t,e),o)}};function kP(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function fRt(e){return kP(e)?window.innerHeight:e.clientHeight}function ixe(e){return kP(e)?window.pageYOffset:e.scrollTop}function yP(e,t){if(kP(e)){window.scrollTo(0,t);return}e.scrollTop=t}function gRt(e){var t=getComputedStyle(e),a=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(a&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function vRt(e,t,a,r){return a*((e=e/r-1)*e*e+1)+t}function xP(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:bP,n=ixe(e),i=t-n,o=10,s=0;function l(){s+=o;var c=vRt(s,n,i,a);yP(e,c),s<a?window.requestAnimationFrame(l):r(e)}l()}function oxe(e,t){var a=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=t.offsetHeight/3;r.bottom+n>a.bottom?yP(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):r.top-n<a.top&&yP(e,Math.max(t.offsetTop-n,0))}function bRt(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function sxe(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function kRt(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var lxe=!1,yRt={get passive(){return lxe=!0}},wP=typeof window<"u"?window:{};wP.addEventListener&&wP.removeEventListener&&(wP.addEventListener("p",bP,yRt),wP.removeEventListener("p",bP,!1));var xRt=lxe;function wRt(e){return e!=null}function zRt(e){return Array.isArray(e)}function zP(e,t,a){return e?t:a}var SRt=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];var n=Object.entries(e).filter(function(i){var o=ca(i,1),s=o[0];return!a.includes(s)});return n.reduce(function(i,o){var s=ca(o,2),l=s[0],c=s[1];return i[l]=c,i},{})},jRt=["children","innerProps"],ORt=["children","innerProps"];function CRt(e){var t=e.maxHeight,a=e.menuEl,r=e.minHeight,n=e.placement,i=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=gRt(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,p=a.getBoundingClientRect(),h=p.bottom,f=p.height,b=p.top,g=a.offsetParent.getBoundingClientRect(),m=g.top,k=o?window.innerHeight:fRt(l),x=ixe(l),j=parseInt(getComputedStyle(a).marginBottom,10),w=parseInt(getComputedStyle(a).marginTop,10),S=m-w,O=k-b,M=S+x,T=d-x-b,N=h-k+x+j,G=x+b-w,L=160;switch(n){case"auto":case"bottom":if(O>=f)return{placement:"bottom",maxHeight:t};if(T>=f&&!o)return i&&xP(l,N,L),{placement:"bottom",maxHeight:t};if(!o&&T>=r||o&&O>=r){i&&xP(l,N,L);var J=o?O-j:T-j;return{placement:"bottom",maxHeight:J}}if(n==="auto"||o){var I=t,X=o?S:M;return X>=r&&(I=Math.min(X-j-s,t)),{placement:"top",maxHeight:I}}if(n==="bottom")return i&&yP(l,N),{placement:"bottom",maxHeight:t};break;case"top":if(S>=f)return{placement:"top",maxHeight:t};if(M>=f&&!o)return i&&xP(l,G,L),{placement:"top",maxHeight:t};if(!o&&M>=r||o&&S>=r){var re=t;return(!o&&M>=r||o&&S>=r)&&(re=o?S-w:M-w),i&&xP(l,G,L),{placement:"top",maxHeight:re}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function ARt(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var cxe=function(e){return e==="auto"?"bottom":e},PRt=function(e,t){var a,r=e.placement,n=e.theme,i=n.borderRadius,o=n.spacing,s=n.colors;return ut((a={label:"menu"},So(a,ARt(r),"100%"),So(a,"position","absolute"),So(a,"width","100%"),So(a,"zIndex",1),a),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},uxe=K.createContext(null),MRt=function(e){var t=e.children,a=e.minMenuHeight,r=e.maxMenuHeight,n=e.menuPlacement,i=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,l=K.useContext(uxe)||{},c=l.setPortalPlacement,u=K.useRef(null),d=K.useState(r),p=ca(d,2),h=p[0],f=p[1],b=K.useState(null),g=ca(b,2),m=g[0],k=g[1],x=s.spacing.controlHeight;return r7(function(){var j=u.current;if(j){var w=i==="fixed",S=o&&!w,O=CRt({maxHeight:r,menuEl:j,minHeight:a,placement:n,shouldScroll:S,isFixedPosition:w,controlHeight:x});f(O.maxHeight),k(O.placement),c?.(O.placement)}},[r,n,i,o,a,c,x]),t({ref:u,placerProps:ut(ut({},e),{},{placement:m||cxe(n),maxHeight:h})})},TRt=function(e){var t=e.children,a=e.innerRef,r=e.innerProps;return It("div",Lt({},Bn(e,"menu",{menu:!0}),{ref:a},r),t)},_Rt=TRt,BRt=function(e,t){var a=e.maxHeight,r=e.theme.spacing.baseUnit;return ut({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},RRt=function(e){var t=e.children,a=e.innerProps,r=e.innerRef,n=e.isMulti;return It("div",Lt({},Bn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":n}),{ref:r},a),t)},dxe=function(e,t){var a=e.theme,r=a.spacing.baseUnit,n=a.colors;return ut({textAlign:"center"},t?{}:{color:n.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},NRt=dxe,ERt=dxe,LRt=function(e){var t=e.children,a=t===void 0?"No options":t,r=e.innerProps,n=wc(e,jRt);return It("div",Lt({},Bn(ut(ut({},n),{},{children:a,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),a)},DRt=function(e){var t=e.children,a=t===void 0?"Loading...":t,r=e.innerProps,n=wc(e,ORt);return It("div",Lt({},Bn(ut(ut({},n),{},{children:a,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),a)},$Rt=function(e){var t=e.rect,a=e.offset,r=e.position;return{left:t.left,position:r,top:a,width:t.width,zIndex:1}},IRt=function(e){var t=e.appendTo,a=e.children,r=e.controlElement,n=e.innerProps,i=e.menuPlacement,o=e.menuPosition,s=K.useRef(null),l=K.useRef(null),c=K.useState(cxe(i)),u=ca(c,2),d=u[0],p=u[1],h=K.useMemo(function(){return{setPortalPlacement:p}},[]),f=K.useState(null),b=ca(f,2),g=b[0],m=b[1],k=K.useCallback(function(){if(r){var S=bRt(r),O=o==="fixed"?0:window.pageYOffset,M=S[d]+O;(M!==g?.offset||S.left!==g?.rect.left||S.width!==g?.rect.width)&&m({offset:M,rect:S})}},[r,o,d,g?.offset,g?.rect.left,g?.rect.width]);r7(function(){k()},[k]);var x=K.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),r&&s.current&&(l.current=dRt(r,s.current,k,{elementResize:"ResizeObserver"in window}))},[r,k]);r7(function(){x()},[x]);var j=K.useCallback(function(S){s.current=S,x()},[x]);if(!t&&o!=="fixed"||!g)return null;var w=It("div",Lt({ref:j},Bn(ut(ut({},e),{},{offset:g.offset,position:o,rect:g.rect}),"menuPortal",{"menu-portal":!0}),n),a);return It(uxe.Provider,{value:h},t?Qz.createPortal(w,t):w)},KRt=function(e){var t=e.isDisabled,a=e.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},HRt=function(e){var t=e.children,a=e.innerProps,r=e.isDisabled,n=e.isRtl;return It("div",Lt({},Bn(e,"container",{"--is-disabled":r,"--is-rtl":n}),a),t)},VRt=function(e,t){var a=e.theme.spacing,r=e.isMulti,n=e.hasValue,i=e.selectProps.controlShouldRenderValue;return ut({alignItems:"center",display:r&&n&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},FRt=function(e){var t=e.children,a=e.innerProps,r=e.isMulti,n=e.hasValue;return It("div",Lt({},Bn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":n}),a),t)},GRt=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},qRt=function(e){var t=e.children,a=e.innerProps;return It("div",Lt({},Bn(e,"indicatorsContainer",{indicators:!0}),a),t)},pxe,WRt=["size"],JRt=["innerProps","isRtl","size"],URt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hxe=function(e){var t=e.size,a=wc(e,WRt);return It("svg",Lt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:URt},a))},n7=function(e){return It(hxe,Lt({size:20},e),It("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},mxe=function(e){return It(hxe,Lt({size:20},e),It("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},fxe=function(e,t){var a=e.isFocused,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return ut({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:a?i.neutral60:i.neutral20,padding:n*2,":hover":{color:a?i.neutral80:i.neutral40}})},ZRt=fxe,QRt=function(e){var t=e.children,a=e.innerProps;return It("div",Lt({},Bn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),t||It(mxe,null))},YRt=fxe,XRt=function(e){var t=e.children,a=e.innerProps;return It("div",Lt({},Bn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),t||It(n7,null))},eNt=function(e,t){var a=e.isDisabled,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return ut({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:a?i.neutral10:i.neutral20,marginBottom:n*2,marginTop:n*2})},tNt=function(e){var t=e.innerProps;return It("span",Lt({},t,Bn(e,"indicatorSeparator",{"indicator-separator":!0})))},aNt=QBt(pxe||(pxe=YBt([`
11054
+ `;function D1({input:e,onSave:t,onCancel:a,...r}){const[n,i]=K.useState(!!e.isSecret),o=({name:s,value:l})=>{t({...e,name:s,value:l,isSecret:n})};return v.jsx(R0e,{variable:e,onSave:o,onCancel:a,...r,children:v.jsx(L1,{children:v.jsx(WMt,{value:n,onChange:s=>i(s),title:"Make it secret"})})})}function GA(e){var t=new Error(e);return t.source="ulid",t}var f$="0123456789ABCDEFGHJKMNPQRSTVWXYZ",$1=f$.length,N0e=Math.pow(2,48)-1,eTt=10,tTt=16;function aTt(e){var t=Math.floor(e()*$1);return t===$1&&(t=$1-1),f$.charAt(t)}function rTt(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>N0e)throw GA("cannot encode time greater than "+N0e);if(e<0)throw GA("time must be positive");if(Number.isInteger(e)===!1)throw GA("time must be an integer");for(var a=void 0,r="";t>0;t--)a=e%$1,r=f$.charAt(a)+r,e=(e-a)/$1;return r}function nTt(e,t){for(var a="";e>0;e--)a=aTt(t)+a;return a}function iTt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var a=t&&(t.crypto||t.msCrypto);if(a)return function(){var n=new Uint8Array(1);return a.getRandomValues(n),n[0]/255};try{var r=require("crypto");return function(){return r.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw GA("secure crypto unusable, insecure Math.random not allowed")}function oTt(e){return e||(e=iTt()),function(t){return isNaN(t)&&(t=Date.now()),rTt(t,eTt)+nTt(tTt,e)}}var qA=oTt(),sTt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},Zm="1.9.0",E0e=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function lTt(e){var t=new Set([e]),a=new Set,r=e.match(E0e);if(!r)return function(){return!1};var n={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(n.prerelease!=null)return function(s){return s===e};function i(s){return a.add(s),!1}function o(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(a.has(s))return!1;var l=s.match(E0e);if(!l)return i(s);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||n.major!==c.major?i(s):n.major===0?n.minor===c.minor&&n.patch<=c.patch?o(s):i(s):n.minor<=c.minor?o(s):i(s)}}var cTt=lTt(Zm),uTt=Zm.split(".")[0],I1=Symbol.for("opentelemetry.js.api."+uTt),K1=sTt;function H1(e,t,a,r){var n;r===void 0&&(r=!1);var i=K1[I1]=(n=K1[I1])!==null&&n!==void 0?n:{version:Zm};if(!r&&i[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return a.error(o.stack||o.message),!1}if(i.version!==Zm){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+Zm);return a.error(o.stack||o.message),!1}return i[e]=t,a.debug("@opentelemetry/api: Registered a global for "+e+" v"+Zm+"."),!0}function Qm(e){var t,a,r=(t=K1[I1])===null||t===void 0?void 0:t.version;if(!(!r||!cTt(r)))return(a=K1[I1])===null||a===void 0?void 0:a[e]}function V1(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Zm+".");var a=K1[I1];a&&delete a[e]}var dTt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},pTt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},hTt=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return F1("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return F1("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return F1("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return F1("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return F1("verbose",this._namespace,t)},e}();function F1(e,t,a){var r=Qm("diag");if(r)return a.unshift(t),r[e].apply(r,pTt([],dTt(a),!1))}var sl;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(sl||(sl={}));function mTt(e,t){e<sl.NONE?e=sl.NONE:e>sl.ALL&&(e=sl.ALL),t=t||{};function a(r,n){var i=t[r];return typeof i=="function"&&e>=n?i.bind(t):function(){}}return{error:a("error",sl.ERROR),warn:a("warn",sl.WARN),info:a("info",sl.INFO),debug:a("debug",sl.DEBUG),verbose:a("verbose",sl.VERBOSE)}}var fTt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},gTt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},vTt="diag",Au=function(){function e(){function t(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=Qm("diag");if(s)return s[n].apply(s,gTt([],fTt(i),!1))}}var a=this,r=function(n,i){var o,s,l;if(i===void 0&&(i={logLevel:sl.INFO}),n===a){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return a.error((o=c.stack)!==null&&o!==void 0?o:c.message),!1}typeof i=="number"&&(i={logLevel:i});var u=Qm("diag"),d=mTt((s=i.logLevel)!==null&&s!==void 0?s:sl.INFO,n);if(u&&!i.suppressOverrideMessage){var p=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return H1("diag",d,a,!0)};a.setLogger=r,a.disable=function(){V1(vTt,a)},a.createComponentLogger=function(n){return new hTt(n)},a.verbose=t("verbose"),a.debug=t("debug"),a.info=t("info"),a.warn=t("warn"),a.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),bTt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},kTt=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},yTt=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var a=this._entries.get(t);if(a)return Object.assign({},a)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var a=bTt(t,2),r=a[0],n=a[1];return[r,n]})},e.prototype.setEntry=function(t,a){var r=new e(this._entries);return r._entries.set(t,a),r},e.prototype.removeEntry=function(t){var a=new e(this._entries);return a._entries.delete(t),a},e.prototype.removeEntries=function(){for(var t,a,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=new e(this._entries);try{for(var o=kTt(r),s=o.next();!s.done;s=o.next()){var l=s.value;i._entries.delete(l)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e}(),xTt=Symbol("BaggageEntryMetadata"),wTt=Au.instance();function zTt(e){return e===void 0&&(e={}),new yTt(new Map(Object.entries(e)))}function STt(e){return typeof e!="string"&&(wTt.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:xTt,toString:function(){return e}}}function g$(e){return Symbol.for(e)}var jTt=function(){function e(t){var a=this;a._currentContext=t?new Map(t):new Map,a.getValue=function(r){return a._currentContext.get(r)},a.setValue=function(r,n){var i=new e(a._currentContext);return i._currentContext.set(r,n),i},a.deleteValue=function(r){var n=new e(a._currentContext);return n._currentContext.delete(r),n}}return e}(),Jv=new jTt,Ym=function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},e(t,a)};return function(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function r(){this.constructor=t}t.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}}(),OTt=function(){function e(){}return e.prototype.createGauge=function(t,a){return ETt},e.prototype.createHistogram=function(t,a){return LTt},e.prototype.createCounter=function(t,a){return NTt},e.prototype.createUpDownCounter=function(t,a){return DTt},e.prototype.createObservableGauge=function(t,a){return ITt},e.prototype.createObservableCounter=function(t,a){return $Tt},e.prototype.createObservableUpDownCounter=function(t,a){return KTt},e.prototype.addBatchObservableCallback=function(t,a){},e.prototype.removeBatchObservableCallback=function(t){},e}(),WA=function(){function e(){}return e}(),CTt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t}(WA),ATt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t}(WA),PTt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t}(WA),MTt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t}(WA),v$=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),TTt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(v$),_Tt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(v$),BTt=function(e){Ym(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(v$),RTt=new OTt,NTt=new CTt,ETt=new PTt,LTt=new MTt,DTt=new ATt,$Tt=new TTt,ITt=new _Tt,KTt=new BTt,HTt={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},VTt={set:function(e,t,a){e!=null&&(e[t]=a)}},FTt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},GTt=function(e,t,a){if(a||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},qTt=function(){function e(){}return e.prototype.active=function(){return Jv},e.prototype.with=function(t,a,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return a.call.apply(a,GTt([r],FTt(n),!1))},e.prototype.bind=function(t,a){return a},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),WTt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},JTt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},b$="context",UTt=new qTt,JA=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return H1(b$,t,Au.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,a,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,JTt([t,a,r],WTt(i),!1))},e.prototype.bind=function(t,a){return this._getContextManager().bind(t,a)},e.prototype._getContextManager=function(){return Qm(b$)||UTt},e.prototype.disable=function(){this._getContextManager().disable(),V1(b$,Au.instance())},e}(),Td;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Td||(Td={}));var L0e="0000000000000000",D0e="00000000000000000000000000000000",$0e={traceId:D0e,spanId:L0e,traceFlags:Td.NONE},G1=function(){function e(t){t===void 0&&(t=$0e),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,a){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,a){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,a){},e}(),k$=g$("OpenTelemetry Context Key SPAN");function y$(e){return e.getValue(k$)||void 0}function ZTt(){return y$(JA.getInstance().active())}function x$(e,t){return e.setValue(k$,t)}function QTt(e){return e.deleteValue(k$)}function YTt(e,t){return x$(e,new G1(t))}function I0e(e){var t;return(t=y$(e))===null||t===void 0?void 0:t.spanContext()}var XTt=/^([0-9a-f]{32})$/i,e5t=/^[0-9a-f]{16}$/i;function K0e(e){return XTt.test(e)&&e!==D0e}function t5t(e){return e5t.test(e)&&e!==L0e}function UA(e){return K0e(e.traceId)&&t5t(e.spanId)}function a5t(e){return new G1(e)}var w$=JA.getInstance(),H0e=function(){function e(){}return e.prototype.startSpan=function(t,a,r){r===void 0&&(r=w$.active());var n=!!a?.root;if(n)return new G1;var i=r&&I0e(r);return r5t(i)&&UA(i)?new G1(i):new G1},e.prototype.startActiveSpan=function(t,a,r,n){var i,o,s;if(!(arguments.length<2)){arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);var l=o??w$.active(),c=this.startSpan(t,i,l),u=x$(l,c);return w$.with(u,s,void 0,c)}},e}();function r5t(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var n5t=new H0e,i5t=function(){function e(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}return e.prototype.startSpan=function(t,a,r){return this._getTracer().startSpan(t,a,r)},e.prototype.startActiveSpan=function(t,a,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):n5t},e}(),o5t=function(){function e(){}return e.prototype.getTracer=function(t,a,r){return new H0e},e}(),s5t=new o5t,V0e=function(){function e(){}return e.prototype.getTracer=function(t,a,r){var n;return(n=this.getDelegateTracer(t,a,r))!==null&&n!==void 0?n:new i5t(this,t,a,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:s5t},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getTracer(t,a,r)},e}(),ZA;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ZA||(ZA={}));var z$;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(z$||(z$={}));var S$;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(S$||(S$={}));var Sh=JA.getInstance(),ur=Au.instance(),l5t=function(){function e(){}return e.prototype.getMeter=function(t,a,r){return RTt},e}(),c5t=new l5t,j$="metrics",u5t=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return H1(j$,t,Au.instance())},e.prototype.getMeterProvider=function(){return Qm(j$)||c5t},e.prototype.getMeter=function(t,a,r){return this.getMeterProvider().getMeter(t,a,r)},e.prototype.disable=function(){V1(j$,Au.instance())},e}(),d5t=u5t.getInstance(),p5t=function(){function e(){}return e.prototype.inject=function(t,a){},e.prototype.extract=function(t,a){return t},e.prototype.fields=function(){return[]},e}(),O$=g$("OpenTelemetry Baggage Key");function F0e(e){return e.getValue(O$)||void 0}function h5t(){return F0e(JA.getInstance().active())}function m5t(e,t){return e.setValue(O$,t)}function f5t(e){return e.deleteValue(O$)}var C$="propagation",g5t=new p5t,v5t=function(){function e(){this.createBaggage=zTt,this.getBaggage=F0e,this.getActiveBaggage=h5t,this.setBaggage=m5t,this.deleteBaggage=f5t}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return H1(C$,t,Au.instance())},e.prototype.inject=function(t,a,r){return r===void 0&&(r=VTt),this._getGlobalPropagator().inject(t,a,r)},e.prototype.extract=function(t,a,r){return r===void 0&&(r=HTt),this._getGlobalPropagator().extract(t,a,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){V1(C$,Au.instance())},e.prototype._getGlobalPropagator=function(){return Qm(C$)||g5t},e}(),q1=v5t.getInstance(),A$="trace",b5t=function(){function e(){this._proxyTracerProvider=new V0e,this.wrapSpanContext=a5t,this.isSpanContextValid=UA,this.deleteSpan=QTt,this.getSpan=y$,this.getActiveSpan=ZTt,this.getSpanContext=I0e,this.setSpan=x$,this.setSpanContext=YTt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var a=H1(A$,this._proxyTracerProvider,Au.instance());return a&&this._proxyTracerProvider.setDelegate(t),a},e.prototype.getTracerProvider=function(){return Qm(A$)||this._proxyTracerProvider},e.prototype.getTracer=function(t,a){return this.getTracerProvider().getTracer(t,a)},e.prototype.disable=function(){V1(A$,Au.instance()),this._proxyTracerProvider=new V0e},e}(),Kl=b5t.getInstance();const G0e=g$("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function k5t(e){return e.setValue(G0e,!0)}function P$(e){return e.getValue(G0e)===!0}const y5t="=",M$=";",T$=",",_$="baggage",x5t=180,w5t=4096,z5t=8192;function S5t(e){return e.reduce((t,a)=>{const r=`${t}${t!==""?T$:""}${a}`;return r.length>z5t?t:r},"")}function j5t(e){return e.getAllEntries().map(([t,a])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(a.value)}`;return a.metadata!==void 0&&(r+=M$+a.metadata.toString()),r})}function O5t(e){const t=e.split(M$);if(t.length<=0)return;const a=t.shift();if(!a)return;const r=a.indexOf(y5t);if(r<=0)return;const n=decodeURIComponent(a.substring(0,r).trim()),i=decodeURIComponent(a.substring(r+1).trim());let o;return t.length>0&&(o=STt(t.join(M$))),{key:n,value:i,metadata:o}}class C5t{inject(t,a,r){const n=q1.getBaggage(t);if(!n||P$(t))return;const i=j5t(n).filter(s=>s.length<=w5t).slice(0,x5t),o=S5t(i);o.length>0&&r.set(a,_$,o)}extract(t,a,r){const n=r.get(a,_$),i=Array.isArray(n)?n.join(T$):n;if(!i)return t;const o={};return i.length===0||(i.split(T$).forEach(s=>{const l=O5t(s);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0)?t:q1.setBaggage(t,q1.createBaggage(o))}fields(){return[_$]}}function QA(e){const t={};if(typeof e!="object"||e==null)return t;for(const[a,r]of Object.entries(e)){if(!A5t(a)){ur.warn(`Invalid attribute key: ${a}`);continue}if(!q0e(r)){ur.warn(`Invalid attribute value set for key: ${a}`);continue}Array.isArray(r)?t[a]=r.slice():t[a]=r}return t}function A5t(e){return typeof e=="string"&&e.length>0}function q0e(e){return e==null?!0:Array.isArray(e)?P5t(e):W0e(e)}function P5t(e){let t;for(const a of e)if(a!=null){if(!t){if(W0e(a)){t=typeof a;continue}return!1}if(typeof a!==t)return!1}return!0}function W0e(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function M5t(){return e=>{ur.error(T5t(e))}}function T5t(e){return typeof e=="string"?e:JSON.stringify(_5t(e))}function _5t(e){const t={};let a=e;for(;a!==null;)Object.getOwnPropertyNames(a).forEach(r=>{if(t[r])return;const n=a[r];n&&(t[r]=String(n))}),a=Object.getPrototypeOf(a);return t}let B5t=M5t();function Uv(e){try{B5t(e)}catch{}}const Zv=performance,R5t="2.0.1",B$="exception.message",N5t="exception.stacktrace",R$="exception.type",J0e="service.name",E5t="service.version",N$="telemetry.sdk.language",L5t="webjs",E$="telemetry.sdk.name",L$="telemetry.sdk.version",D5t="process.runtime.name",D$={[E$]:"opentelemetry",[D5t]:"browser",[N$]:L5t,[L$]:R5t},$5t=9,I5t=6,K5t=Math.pow(10,I5t),YA=Math.pow(10,$5t);function Qv(e){const t=e/1e3,a=Math.trunc(t),r=Math.round(e%1e3*K5t);return[a,r]}function U0e(){let e=Zv.timeOrigin;if(typeof e!="number"){const t=Zv;e=t.timing&&t.timing.fetchStart}return e}function H5t(e){const t=Qv(U0e()),a=Qv(typeof e=="number"?e:Zv.now());return Y0e(t,a)}function V5t(e,t){let a=t[0]-e[0],r=t[1]-e[1];return r<0&&(a-=1,r+=YA),[a,r]}function F5t(e){return e[0]*YA+e[1]}function Z0e(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function Q0e(e){return Z0e(e)||typeof e=="number"||e instanceof Date}function Y0e(e,t){const a=[e[0]+t[0],e[1]+t[1]];return a[1]>=YA&&(a[1]-=YA,a[0]+=1),a}var Pu;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Pu||(Pu={}));class G5t{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(a=>typeof a.fields=="function"?a.fields():[]).reduce((a,r)=>a.concat(r),[])))}inject(t,a,r){for(const n of this._propagators)try{n.inject(t,a,r)}catch(i){ur.warn(`Failed to inject with ${n.constructor.name}. Err: ${i.message}`)}}extract(t,a,r){return this._propagators.reduce((n,i)=>{try{return i.extract(n,a,r)}catch(o){ur.warn(`Failed to extract with ${i.constructor.name}. Err: ${o.message}`)}return n},t)}fields(){return this._fields.slice()}}const $$="[_0-9a-z-*/]",q5t=`[a-z]${$$}{0,255}`,W5t=`[a-z0-9]${$$}{0,240}@[a-z]${$$}{0,13}`,J5t=new RegExp(`^(?:${q5t}|${W5t})$`),U5t=/^[ -~]{0,255}[!-~]$/,Z5t=/,|=/;function Q5t(e){return J5t.test(e)}function Y5t(e){return U5t.test(e)&&!Z5t.test(e)}const X0e=32,X5t=512,e1e=",",t1e="=";class yH{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,a){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,a),r}unset(t){const a=this._clone();return a._internalState.delete(t),a}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,a)=>(t.push(a+t1e+this.get(a)),t),[]).join(e1e)}_parse(t){t.length>X5t||(this._internalState=t.split(e1e).reverse().reduce((a,r)=>{const n=r.trim(),i=n.indexOf(t1e);if(i!==-1){const o=n.slice(0,i),s=n.slice(i+1,r.length);Q5t(o)&&Y5t(s)&&a.set(o,s)}return a},new Map),this._internalState.size>X0e&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,X0e))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new yH;return t._internalState=new Map(this._internalState),t}}const I$="traceparent",K$="tracestate",e3t="00",t3t="(?!ff)[\\da-f]{2}",a3t="(?![0]{32})[\\da-f]{32}",r3t="(?![0]{16})[\\da-f]{16}",n3t="[\\da-f]{2}",i3t=new RegExp(`^\\s?(${t3t})-(${a3t})-(${r3t})-(${n3t})(-.*)?\\s?$`);function o3t(e){const t=i3t.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class s3t{inject(t,a,r){const n=Kl.getSpanContext(t);if(!n||P$(t)||!UA(n))return;const i=`${e3t}-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||Td.NONE).toString(16)}`;r.set(a,I$,i),n.traceState&&r.set(a,K$,n.traceState.serialize())}extract(t,a,r){const n=r.get(a,I$);if(!n)return t;const i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return t;const o=o3t(i);if(!o)return t;o.isRemote=!0;const s=r.get(a,K$);if(s){const l=Array.isArray(s)?s.join(","):s;o.traceState=new yH(typeof l=="string"?l:void 0)}return Kl.setSpanContext(t,o)}fields(){return[I$,K$]}}const l3t="[object Object]",c3t="[object Null]",u3t="[object Undefined]",d3t=Function.prototype,a1e=d3t.toString,p3t=a1e.call(Object),h3t=Object.getPrototypeOf,r1e=Object.prototype,n1e=r1e.hasOwnProperty,Xm=Symbol?Symbol.toStringTag:void 0,i1e=r1e.toString;function o1e(e){if(!m3t(e)||f3t(e)!==l3t)return!1;const t=h3t(e);if(t===null)return!0;const a=n1e.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&a1e.call(a)===p3t}function m3t(e){return e!=null&&typeof e=="object"}function f3t(e){return e==null?e===void 0?u3t:c3t:Xm&&Xm in Object(e)?g3t(e):v3t(e)}function g3t(e){const t=n1e.call(e,Xm),a=e[Xm];let r=!1;try{e[Xm]=void 0,r=!0}catch{}const n=i1e.call(e);return r&&(t?e[Xm]=a:delete e[Xm]),n}function v3t(e){return i1e.call(e)}const b3t=20;function k3t(...e){let t=e.shift();const a=new WeakMap;for(;e.length>0;)t=s1e(t,e.shift(),0,a);return t}function H$(e){return XA(e)?e.slice():e}function s1e(e,t,a=0,r){let n;if(!(a>b3t)){if(a++,eP(e)||eP(t)||c1e(t))n=H$(t);else if(XA(e)){if(n=e.slice(),XA(t))for(let i=0,o=t.length;i<o;i++)n.push(H$(t[i]));else if(W1(t)){const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o];n[l]=H$(t[l])}}}else if(W1(e))if(W1(t)){if(!y3t(e,t))return t;n=Object.assign({},e);const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o],c=t[l];if(eP(c))typeof c>"u"?delete n[l]:n[l]=c;else{const u=n[l],d=c;if(l1e(e,l,r)||l1e(t,l,r))delete n[l];else{if(W1(u)&&W1(d)){const p=r.get(u)||[],h=r.get(d)||[];p.push({obj:e,key:l}),h.push({obj:t,key:l}),r.set(u,p),r.set(d,h)}n[l]=s1e(n[l],c,a,r)}}}}else n=t;return n}}function l1e(e,t,a){const r=a.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){const o=r[n];if(o.key===t&&o.obj===e)return!0}return!1}function XA(e){return Array.isArray(e)}function c1e(e){return typeof e=="function"}function W1(e){return!eP(e)&&!XA(e)&&!c1e(e)&&typeof e=="object"}function eP(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function y3t(e,t){return!(!o1e(e)||!o1e(t))}class x3t{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,a)=>{this._resolve=t,this._reject=a})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class w3t{_callback;_that;_isCalled=!1;_deferred=new x3t;constructor(t,a){this._callback=t,this._that=a}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(a=>this._deferred.resolve(a),a=>this._deferred.reject(a))}catch(a){this._deferred.reject(a)}}return this._deferred.promise}}function z3t(){return"unknown_service"}const J1=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class x3{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const a=new x3({});return a._rawAttributes=d1e(t),a._asyncAttributesPending=t.filter(([r,n])=>J1(n)).length>0,a}constructor(t){const a=t.attributes??{};this._rawAttributes=Object.entries(a).map(([r,n])=>(J1(n)&&(this._asyncAttributesPending=!0),[r,n])),this._rawAttributes=d1e(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[a,r]=this._rawAttributes[t];this._rawAttributes[t]=[a,J1(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&ur.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[a,r]of this._rawAttributes){if(J1(r)){ur.debug(`Unsettled resource attribute ${a} skipped`);continue}r!=null&&(t[a]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:x3.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function u1e(e){return x3.FromAttributeList(Object.entries(e))}function S3t(){return u1e({[J0e]:z3t(),[N$]:D$[N$],[E$]:D$[E$],[L$]:D$[L$]})}function d1e(e){return e.map(([t,a])=>J1(a)?[t,a.catch(r=>{ur.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,a])}const j3t="exception";class O3t{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:S$.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const a=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Zv.now(),this._performanceOffset=a-(this._performanceStartTime+U0e()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??a),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,a){if(a==null||this._isSpanEnded())return this;if(t.length===0)return ur.warn(`Invalid attribute key: ${t}`),this;if(!q0e(a))return ur.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(a),this)}setAttributes(t){for(const[a,r]of Object.entries(t))this.setAttribute(a,r);return this}addEvent(t,a,r){if(this._isSpanEnded())return this;const{eventCountLimit:n}=this._spanLimits;if(n===0)return ur.warn("No events allowed."),this._droppedEventsCount++,this;n!==void 0&&this.events.length>=n&&(this._droppedEventsCount===0&&ur.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Q0e(a)&&(Q0e(r)||(r=a),a=void 0);const i=QA(a);return this.events.push({name:t,attributes:i,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(ur.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){ur.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=V5t(this.startTime,this.endTime),this._duration[0]<0&&(ur.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&ur.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Zv.now())return H5t(t+this._performanceOffset);if(typeof t=="number")return Qv(t);if(t instanceof Date)return Qv(t.getTime());if(Z0e(t))return t;if(this._startTimeProvided)return Qv(Date.now());const a=Zv.now()-this._performanceStartTime;return Y0e(this.startTime,Qv(a))}isRecording(){return this._ended===!1}recordException(t,a){const r={};typeof t=="string"?r[B$]=t:t&&(t.code?r[R$]=t.code.toString():t.name&&(r[R$]=t.name),t.message&&(r[B$]=t.message),t.stack&&(r[N5t]=t.stack)),r[R$]||r[B$]?this.addEvent(j3t,r,a):ur.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);ur.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,a){return t.length<=a?t:t.substring(0,a)}_truncateToSize(t){const a=this._attributeValueLengthLimit;return a<=0?(ur.warn(`Attribute value limit must be positive, got ${a}`),t):typeof t=="string"?this._truncateToLimitUtil(t,a):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,a):r):t}}var Yv;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Yv||(Yv={}));class tP{shouldSample(){return{decision:Yv.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Xv{shouldSample(){return{decision:Yv.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class aP{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Uv(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Xv),this._remoteParentSampled=t.remoteParentSampled??new Xv,this._remoteParentNotSampled=t.remoteParentNotSampled??new tP,this._localParentSampled=t.localParentSampled??new Xv,this._localParentNotSampled=t.localParentNotSampled??new tP}shouldSample(t,a,r,n,i,o){const s=Kl.getSpanContext(t);return!s||!UA(s)?this._root.shouldSample(t,a,r,n,i,o):s.isRemote?s.traceFlags&Td.SAMPLED?this._remoteParentSampled.shouldSample(t,a,r,n,i,o):this._remoteParentNotSampled.shouldSample(t,a,r,n,i,o):s.traceFlags&Td.SAMPLED?this._localParentSampled.shouldSample(t,a,r,n,i,o):this._localParentNotSampled.shouldSample(t,a,r,n,i,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class p1e{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,a){return{decision:K0e(a)&&this._accumulate(a)<this._upperBound?Yv.RECORD_AND_SAMPLED:Yv.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let a=0;for(let r=0;r<t.length/8;r++){const n=r*8,i=parseInt(t.slice(n,n+8),16);a=(a^i)>>>0}return a}}const h1e=1;function m1e(){return{sampler:f1e(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function f1e(){const e="parentbased_always_on";switch(e){case"always_on":return new Xv;case"always_off":return new tP;case"parentbased_always_on":return new aP({root:new Xv});case"parentbased_always_off":return new aP({root:new tP});case"traceidratio":return new p1e(g1e());case"parentbased_traceidratio":return new aP({root:new p1e(g1e())});default:return ur.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new aP({root:new Xv})}}function g1e(){return ur.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${h1e}.`),h1e}const C3t=128,A3t=1/0;function P3t(e){const t={sampler:f1e()},a=m1e(),r=Object.assign({},a,t,e);return r.generalLimits=Object.assign({},a.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},a.spanLimits,e.spanLimits||{}),r}function M3t(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??C3t,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??A3t,Object.assign({},e,{spanLimits:t})}class T3t{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,a){this._exporter=t,this._maxExportBatchSize=typeof a?.maxExportBatchSize=="number"?a.maxExportBatchSize:512,this._maxQueueSize=typeof a?.maxQueueSize=="number"?a.maxQueueSize:2048,this._scheduledDelayMillis=typeof a?.scheduledDelayMillis=="number"?a.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof a?.exportTimeoutMillis=="number"?a.exportTimeoutMillis:3e4,this._shutdownOnce=new w3t(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(ur.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,a){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Td.SAMPLED)!==0&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&ur.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(ur.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,a)=>{const r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=n;i<o;i++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(a)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,a)=>{const r=setTimeout(()=>{a(new Error("Timeout"))},this._exportTimeoutMillis);Sh.with(k5t(Sh.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(n,s=>{clearTimeout(r),s.code===Pu.SUCCESS?t():a(s.error??new Error("BatchSpanProcessor: span export failed"))});let o=null;for(let s=0,l=n.length;s<l;s++){const c=n[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(o??=[],o.push(c.resource.waitForAsyncAttributes()))}o===null?i():Promise.all(o).then(i,s=>{Uv(s),a(s)})})})}_maybeStartTimer(){if(this._isExporting)return;const t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(a=>{this._isExporting=!1,Uv(a)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class _3t extends T3t{_visibilityChangeListener;_pageHideListener;constructor(t,a){super(t,a),this.onInit(a)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(a=>{Uv(a)})},this._pageHideListener=()=>{this.forceFlush().catch(a=>{Uv(a)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const B3t=8,R3t=16;class N3t{generateTraceId=v1e(R3t);generateSpanId=v1e(B3t)}const rP=Array(32);function v1e(e){return function(){for(let t=0;t<e*2;t++)rP[t]=Math.floor(Math.random()*16)+48,rP[t]>=58&&(rP[t]+=39);return String.fromCharCode.apply(null,rP.slice(0,e*2))}}class E3t{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,a,r,n){const i=P3t(a);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=a.idGenerator||new N3t,this._resource=r,this._spanProcessor=n,this.instrumentationScope=t}startSpan(t,a={},r=Sh.active()){a.root&&(r=Kl.deleteSpan(r));const n=Kl.getSpan(r);if(P$(r))return ur.debug("Instrumentation suppressed, returning Noop Span"),Kl.wrapSpanContext($0e);const i=n?.spanContext(),o=this._idGenerator.generateSpanId();let s,l,c;!i||!Kl.isSpanContextValid(i)?l=this._idGenerator.generateTraceId():(l=i.traceId,c=i.traceState,s=i);const u=a.kind??z$.INTERNAL,d=(a.links??[]).map(m=>({context:m.context,attributes:QA(m.attributes)})),p=QA(a.attributes),h=this._sampler.shouldSample(r,l,t,u,p,d);c=h.traceState??c;const f=h.decision===ZA.RECORD_AND_SAMPLED?Td.SAMPLED:Td.NONE,b={traceId:l,spanId:o,traceFlags:f,traceState:c};if(h.decision===ZA.NOT_RECORD)return ur.debug("Recording is off, propagating context in a non-recording span"),Kl.wrapSpanContext(b);const g=QA(Object.assign(p,h.attributes));return new O3t({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:b,name:t,kind:u,links:d,parentSpanContext:s,attributes:g,startTime:a.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,a,r,n){let i,o,s;if(arguments.length<2)return;arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);const l=o??Sh.active(),c=this.startSpan(t,i,l),u=Kl.setSpan(l,c);return Sh.with(u,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class L3t{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const a of this._spanProcessors)t.push(a.forceFlush());return new Promise(a=>{Promise.all(t).then(()=>{a()}).catch(r=>{Uv(r||new Error("MultiSpanProcessor: forceFlush failed")),a()})})}onStart(t,a){for(const r of this._spanProcessors)r.onStart(t,a)}onEnd(t){for(const a of this._spanProcessors)a.onEnd(t)}shutdown(){const t=[];for(const a of this._spanProcessors)t.push(a.shutdown());return new Promise((a,r)=>{Promise.all(t).then(()=>{a()},r)})}}var ef;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(ef||(ef={}));class D3t{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const a=k3t({},m1e(),M3t(t));this._resource=a.resource??S3t(),this._config=Object.assign({},a,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new L3t(r)}getTracer(t,a,r){const n=`${t}@${a||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new E3t({name:t,version:a,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(n)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,a=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(n=>{let i;const o=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=ef.timeout},t);r.forceFlush().then(()=>{clearTimeout(o),i!==ef.timeout&&(i=ef.resolved,n(i))}).catch(s=>{clearTimeout(o),i=ef.error,n(s)})}));return new Promise((r,n)=>{Promise.all(a).then(i=>{const o=i.filter(s=>s!==ef.resolved);o.length>0?n(o):r()}).catch(i=>n([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class $3t{_enabled=!1;_currentContext=Jv;_bindFunction(t=Jv,a){const r=this,n=function(...i){return r.with(t,()=>a.apply(this,i))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:a.length}),n}active(){return this._currentContext}bind(t,a){return t===void 0&&(t=this.active()),typeof a=="function"?this._bindFunction(t,a):a}disable(){return this._currentContext=Jv,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Jv,this)}with(t,a,r,...n){const i=this._currentContext;this._currentContext=t||Jv;try{return a.call(r,...n)}finally{this._currentContext=i}}}function I3t(e){if(e!==null){if(e===void 0){const t=new $3t;t.enable(),Sh.setGlobalContextManager(t);return}e.enable(),Sh.setGlobalContextManager(e)}}function K3t(e){if(e!==null){if(e===void 0){q1.setGlobalPropagator(new G5t({propagators:[new s3t,new C5t]}));return}q1.setGlobalPropagator(e)}}class H3t extends D3t{constructor(t={}){super(t)}register(t={}){Kl.setGlobalTracerProvider(this),K3t(t.propagator),I3t(t.contextManager)}}class V3t{_delegate;constructor(t){this._delegate=t}export(t,a){this._delegate.export(t,a)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class b1e extends Error{code;name="OTLPExporterError";data;constructor(t,a,r){super(t),this.data=r,this.code=a}}function F3t(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function G3t(e){if(e!=null)return()=>e}function q3t(e,t,a){return{timeoutMillis:F3t(e.timeoutMillis??t.timeoutMillis??a.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??a.concurrencyLimit,compression:e.compression??t.compression??a.compression}}function W3t(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class J3t{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const a=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(a,a)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function U3t(e){return new J3t(e.concurrencyLimit)}function Z3t(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function Q3t(){return{handleResponse(e){e==null||!Z3t(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||ur.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class Y3t{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,a,r,n,i){this._transport=t,this._serializer=a,this._responseHandler=r,this._promiseQueue=n,this._timeout=i,this._diagLogger=ur.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,a){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){a({code:Pu.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){a({code:Pu.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(n=>{if(n.status==="success"){if(n.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(n.data))}catch(i){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,n.data)}a({code:Pu.SUCCESS});return}else if(n.status==="failure"&&n.error){a({code:Pu.FAILED,error:n.error});return}else n.status==="retryable"?a({code:Pu.FAILED,error:new b1e("Export failed with retryable status")}):a({code:Pu.FAILED,error:new b1e("Export failed with unknown error")})},n=>a({code:Pu.FAILED,error:n})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function X3t(e,t){return new Y3t(e.transport,e.serializer,Q3t(),e.promiseHandler,t.timeout)}function k1e(e,t,a){return X3t({transport:a,serializer:t,promiseHandler:U3t(e)},{timeout:e.timeoutMillis})}function y1e(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function x1e(e){const t=new Uint8Array(e.length/2);let a=0;for(let r=0;r<e.length;r+=2){const n=y1e(e.charCodeAt(r)),i=y1e(e.charCodeAt(r+1));t[a++]=n<<4|i}return t}function w1e(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function e_t(e){const t=Number(BigInt.asUintN(32,e)),a=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:a}}function t_t(e){const t=w1e(e);return e_t(t)}function a_t(e){return w1e(e).toString()}const r_t=typeof BigInt<"u"?a_t:F5t;function z1e(e){return e}function n_t(e){if(e!==void 0)return x1e(e)}const i_t={encodeHrTime:t_t,encodeSpanContext:x1e,encodeOptionalSpanContext:n_t};function o_t(e){return e===void 0?i_t:{encodeHrTime:r_t,encodeSpanContext:z1e,encodeOptionalSpanContext:z1e}}function s_t(e){return{attributes:nP(e.attributes),droppedAttributesCount:0}}function l_t(e){return{name:e.name,version:e.version}}function nP(e){return Object.keys(e).map(t=>S1e(t,e[t]))}function S1e(e,t){return{key:e,value:j1e(t)}}function j1e(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(j1e)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([a,r])=>S1e(a,r))}}:{}}function c_t(e,t){const a=e.spanContext(),r=e.status,n=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(a.traceId),spanId:t.encodeSpanContext(a.spanId),parentSpanId:n,traceState:a.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:nP(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>d_t(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(i=>u_t(i,t)),droppedLinksCount:e.droppedLinksCount}}function u_t(e,t){return{attributes:e.attributes?nP(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function d_t(e,t){return{attributes:e.attributes?nP(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function p_t(e,t){const a=o_t(t);return{resourceSpans:m_t(e,a)}}function h_t(e){const t=new Map;for(const a of e){let r=t.get(a.resource);r||(r=new Map,t.set(a.resource,r));const n=`${a.instrumentationScope.name}@${a.instrumentationScope.version||""}:${a.instrumentationScope.schemaUrl||""}`;let i=r.get(n);i||(i=[],r.set(n,i)),i.push(a)}return t}function m_t(e,t){const a=h_t(e),r=[],n=a.entries();let i=n.next();for(;!i.done;){const[o,s]=i.value,l=[],c=s.values();let u=c.next();for(;!u.done;){const p=u.value;if(p.length>0){const h=p.map(f=>c_t(f,t));l.push({scope:l_t(p[0].instrumentationScope),spans:h,schemaUrl:p[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:s_t(o),scopeSpans:l,schemaUrl:void 0};r.push(d),i=n.next()}return r}const f_t={serializeRequest:e=>{const t=p_t(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},g_t=5,v_t=1e3,b_t=5e3,k_t=1.5,O1e=.2;function y_t(){return Math.random()*(2*O1e)-O1e}class x_t{_transport;constructor(t){this._transport=t}retry(t,a,r){return new Promise((n,i)=>{setTimeout(()=>{this._transport.send(t,a).then(n,i)},r)})}async send(t,a){const r=Date.now()+a;let n=await this._transport.send(t,a),i=g_t,o=v_t;for(;n.status==="retryable"&&i>0;){i--;const s=Math.max(Math.min(o,b_t)+y_t(),0);o=o*k_t;const l=n.retryInMillis??s,c=r-Date.now();if(l>c)return n;n=await this.retry(t,c,l)}return n}shutdown(){return this._transport.shutdown()}}function C1e(e){return new x_t(e.transport)}function w_t(e){return[429,502,503,504].includes(e)}function z_t(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const a=new Date(e).getTime()-Date.now();return a>=0?a:0}class S_t{_parameters;constructor(t){this._parameters=t}send(t,a){return new Promise(r=>{const n=new XMLHttpRequest;n.timeout=a,n.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([o,s])=>{n.setRequestHeader(o,s)}),n.ontimeout=o=>{r({status:"failure",error:new Error("XHR request timed out")})},n.onreadystatechange=()=>{n.status>=200&&n.status<=299?(ur.debug("XHR success"),r({status:"success"})):n.status&&w_t(n.status)?r({status:"retryable",retryInMillis:z_t(n.getResponseHeader("Retry-After"))}):n.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},n.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},n.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},n.send(t)})}shutdown(){}}function j_t(e){return new S_t(e)}class O_t{_params;constructor(t){this._params=t}send(t){return new Promise(a=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(ur.debug("SendBeacon success"),a({status:"success"})):a({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function C_t(e){return new O_t(e)}function A_t(e,t){return k1e(e,t,C1e({transport:j_t(e)}))}function P_t(e,t){return k1e(e,t,C1e({transport:C_t({url:e.url,blobType:e.headers()["Content-Type"]})}))}function M_t(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([a,r])=>{typeof r<"u"?t[a]=String(r):ur.warn(`Header "${a}" has invalid value (${r}) and will be ignored`)}),t}}function T_t(e,t,a){const r={...a()},n={};return()=>(t!=null&&Object.assign(n,t()),e!=null&&Object.assign(n,e()),Object.assign(n,r))}function __t(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function B_t(e,t,a){return{...q3t(e,t,a),headers:T_t(M_t(e.headers),t.headers,a.headers),url:__t(e.url)??t.url??a.url,agentOptions:e.agentOptions??t.agentOptions??a.agentOptions}}function R_t(e,t){return{...W3t(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function N_t(e,t,a){return B_t({url:e.url,timeoutMillis:e.timeoutMillis,headers:G3t(e.headers),concurrencyLimit:e.concurrencyLimit},{},R_t(a,t))}function E_t(e,t,a,r){const n=!!e.headers||typeof navigator.sendBeacon!="function",i=N_t(e,a,r);return n?A_t(i,t):P_t(i,t)}class L_t extends V3t{constructor(t={}){super(E_t(t,f_t,"v1/traces",{"Content-Type":"application/json"}))}}class A1e{emit(t){}}const D_t=new A1e;class $_t{getLogger(t,a,r){return new A1e}}const P1e=new $_t;class I_t{constructor(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):D_t}}class M1e{getLogger(t,a,r){var n;return(n=this.getDelegateLogger(t,a,r))!==null&&n!==void 0?n:new I_t(this,t,a,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:P1e}setDelegate(t){this._delegate=t}getDelegateLogger(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getLogger(t,a,r)}}const K_t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},iP=Symbol.for("io.opentelemetry.js.api.logs"),U1=K_t;function H_t(e,t,a){return r=>r===e?t:a}const T1e=1;class xH{constructor(){this._proxyLoggerProvider=new M1e}static getInstance(){return this._instance||(this._instance=new xH),this._instance}setGlobalLoggerProvider(t){return U1[iP]?this.getLoggerProvider():(U1[iP]=H_t(T1e,t,P1e),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,a;return(a=(t=U1[iP])===null||t===void 0?void 0:t.call(U1,T1e))!==null&&a!==void 0?a:this._proxyLoggerProvider}getLogger(t,a,r){return this.getLoggerProvider().getLogger(t,a,r)}disable(){delete U1[iP],this._proxyLoggerProvider=new M1e}}const V_t=xH.getInstance();function F_t(e,t,a,r){for(let n=0,i=e.length;n<i;n++){const o=e[n];t&&o.setTracerProvider(t),a&&o.setMeterProvider(a),r&&o.setLoggerProvider&&o.setLoggerProvider(r),o.getConfig().enabled||o.enable()}}function G_t(e){e.forEach(t=>t.disable())}function q_t(e){const t=e.tracerProvider||Kl.getTracerProvider(),a=e.meterProvider||d5t.getMeterProvider(),r=e.loggerProvider||V_t.getLoggerProvider(),n=e.instrumentations?.flat()??[];return F_t(n,t,a,r),()=>{G_t(n)}}class W_t{config=null;tracer=null;tracerProvider=null;initialized=!1;initTracer(t){throw new Error("initTracer must be implemented by the environment-specific client")}init(t){this.config=t,this.initTracer(t)}send(t){try{if(!this.tracer||!this.config)return;const a=t.time?new Date(t.time):new Date;this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),startTime:a}).end(a)}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}processAttributes(t,a){const r={"cloudevents.event_id":qA(),"cloudevents.event_type":t.type,"cloudevents.event_source":t.source,"cloudevents.event_spec_version":t.specversion,"cloudevents.event_data_content_type":t.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":a.toISOString(),"cloudevents.event_subject":t.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":this.config?.version,"cloudevents.event_origin":this.config?.serviceName,"cloudevents.event_source_details.id":t.sourceDetails?.id??"anonymous","cloudevents.event_source_details.object":t.sourceDetails?.object??"anonymous","cloudevents.event_source_details.uri":t.sourceDetails?.uri};if(t.data&&typeof t.data=="object"&&Object.entries(t.data).forEach(([n,i])=>{const o=n.replace(/([A-Z])/g,"_$1").toLowerCase();i!==void 0&&(r[`cloudevents.event_data.${o}`]=i)}),"subjects"in t&&Array.isArray(t.subjects)){const n=t.subjects.reduce((i,o)=>{if(!o||typeof o!="object")return i;const s=o.object;if(!s||typeof s!="string")return i;const l=i.notUpdated.find(({object:c})=>c===s);return l?(i.updated=[l,o],i.notUpdated=i.notUpdated.filter(({object:c})=>c!==s)):i.updated.some(({object:c})=>c===s)||i.notUpdated.push(o),i},{updated:[],notUpdated:[]});n.updated.forEach((i,o)=>{const s=o===0?"after.":"before.",l=`${i.object}.`;Object.entries(i).forEach(([c,u])=>{u!==void 0&&(r[`cloudevents.subjects.${s}${l}${c}`]=u)})}),n.notUpdated.forEach(i=>{const o=`${i.object}.`;Object.entries(i).forEach(([s,l])=>{l!==void 0&&(r[`cloudevents.subjects.${o}${s}`]=l)})})}return Object.entries(t).forEach(([n,i])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(n)||i!==void 0&&(i instanceof Object?Object.entries(i).forEach(([o,s])=>{s!==void 0&&(r[`cloudevents.${n}.${o}`]=s)}):r[`cloudevents.${n}`]=i)}),r}startSpan(t,a){try{if(!this.tracer)return;let r;const n=t.time?new Date(t.time):new Date,i=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,n),root:!a},a);return a||(r=Kl.setSpan(Sh.active(),i)),{end:()=>i.end(),setAttribute:(o,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>i.setStatus({code:o,message:s}),parentCtx:r}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}forceFlush(){this.tracerProvider?.forceFlush()}getKeySnakeValue=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase()}class J_t extends W_t{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(t){if(!t.collectorUrl&&!t.collectorTraceUrl)return;const a=`ses_${qA()}`,r=u1e({[J0e]:t.serviceName,[E5t]:t.serviceVersion,session_id:a}),n=t.collectorTraceUrl||`${t.collectorUrl}/v1/traces`;this.tracerProvider=new H3t({resource:r,spanProcessors:[new _3t(new L_t({url:n,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(t.tracerName),this.tracerProvider.register(),q_t({instrumentations:t.instrumentations??[]}),this.initialized=!0}}class U_t{config=null;initialized=!1;useCloudEventData;otelClient;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new J_t}updateCloudEventData=t=>{this.config?.disabled||(this.useCloudEventData=t)};send(t,a){try{if(!this.config?.otel.isProd)return;const r=this.constructCloudEvent(t,a);this.sendToOtelService(r)}catch(r){this.config?.otel.isProd||console.error("Event reporting failed:",r)}}init(t){t.disabled||this.initialized||(this.config=t,this.initialized=!0,this.otelClient.init({serviceVersion:t.otel.serviceVersion,version:t.otel.version,isProd:t.otel.isProd,collectorUrl:t.otel.collectorUrl,serviceName:t.otel.serviceName,tracerName:t.otel.tracerName,instrumentations:[...t.otel.instrumentations||[]]}))}startSpan(t,a,r){if(this.config?.disabled)return;const n=this.constructCloudEvent(t,a);return this.otelClient.startSpan(n,r)}constructCloudEvent(t,a){const r=this.useCloudEventData();return{id:`evt_${qA()}`,type:t,source:r.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:a,origin:"ui",sourceDetails:{id:r.sourceDetails.user||`usr_${qA()}`,object:r.sourceDetails.object||"user",uri:r.sourceDetails.uri||""},organization:r.organization,project:r.project,productType:r.productType}}sendToOtelService(t){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",t),this.otelClient.send(t)}forceFlush(){this.config?.disabled||this.otelClient.forceFlush()}sendTabChangeMessage(t){this.send("tab.change",t)}sendButtonClickMessage(t){this.send("button.click",t)}sendChangeMessage(t){this.send("change",t)}sendContentCopyMessage(t){this.send("content.copy",t)}sendUrlClickMessage(t){this.send("url.click",t)}sendRequestSendMessage(t){this.send("request.send",t)}sendTokenGenerateMessage(t){this.send("token.generate",t)}sendAppLifecycleMessage(t){this.send("app.lifecycle",t)}sendEnvironmentManagementMessage(t){this.send("environment.management",t)}sendServerManagementMessage(t){this.send("server.management",t)}sendInputManagementMessage(t){this.send("input.management",t)}sendNodeManagementMessage(t){this.send("node.management",t)}sendHistoryManagementMessage(t){this.send("history.management",t)}sendCredentialManagementMessage(t){this.send("credential.management",t)}sendPanelToggleMessage(t){this.send("panel.toggle",t)}sendWorkflowRunClickMessage(t){this.send("workflow.run.click",t)}sendWorkflowRunResultMessage(t){this.send("workflow.run.result",t)}}function Z_t(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const Q_t=Z_t(),Y_t=K.createContext(Q_t);function Sc(){const e=K.useContext(Y_t);return mpe(e)}function X_t(e,t){const{apps:{apiId:a}}=Ya(),{corsProxyUrl:r,disableCollectionsTab:n,mockServer:i,oAuth2RedirectURI:o,certificates:s,storageKey:l,isApiBased:c}=Sc();r.set(e?.corsProxyUrl??Hyt),i.set(e?.mockServer),a.set(e?.apiId),o.set(e?.oAuth2RedirectURI),n.set(!!e?.disableCollectionsTab),l.set(e?.storageKey),c.set(!!t),K.useEffect(()=>{s.set(e?.certificates||[])},[e?.certificates])}const _1e=K.createContext({});function V$(){return K.useContext(_1e)||{}}const eBt="0.17.0-next.0",tBt={version:eBt};class aBt{client;_isInitialized=!1;constructor(){this.client=new U_t}get isInitialized(){return this._isInitialized}init(t){if(this.isInitialized)return;const a={serviceName:"replay",serviceVersion:tBt.version,version:"1.0.0",tracerName:t?.tracerName||"desktop",collectorUrl:t?.collectorUrl||"",isProd:!0};this.client.init({otel:{...a,...t}}),this._isInitialized=!0}sendEvent(t,a){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(t,a)}catch(r){console.error("Failed to send telemetry event:",r)}}}const F$=new aBt;function ja(){const{telemetry:e}=V$();return F$.isInitialized||F$.init({tracerName:e?.tracerName,collectorUrl:e?.collectorUrl}),{sendEvent:(t,a)=>{F$.sendEvent(t,a)}}}const Zo=800;var rBt=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function nBt(e){var t=e.defaultInputValue,a=t===void 0?"":t,r=e.defaultMenuIsOpen,n=r===void 0?!1:r,i=e.defaultValue,o=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,f=wc(e,rBt),b=K.useState(s!==void 0?s:a),g=ca(b,2),m=g[0],k=g[1],x=K.useState(l!==void 0?l:n),j=ca(x,2),w=j[0],S=j[1],O=K.useState(h!==void 0?h:o),M=ca(O,2),T=M[0],N=M[1],G=K.useCallback(function(ie,he){typeof c=="function"&&c(ie,he),N(ie)},[c]),L=K.useCallback(function(ie,he){var F;typeof u=="function"&&(F=u(ie,he)),k(F!==void 0?F:ie)},[u]),J=K.useCallback(function(){typeof p=="function"&&p(),S(!0)},[p]),I=K.useCallback(function(){typeof d=="function"&&d(),S(!1)},[d]),X=s!==void 0?s:m,re=l!==void 0?l:w,le=h!==void 0?h:T;return ut(ut({},f),{},{inputValue:X,menuIsOpen:re,onChange:G,onInputChange:L,onMenuClose:I,onMenuOpen:J,value:le})}function iBt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function oBt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var sBt=function(){function e(a){var r=this;this._insertTag=function(n){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(n,i),r.tags.push(n)},this.isSpeedy=a.speedy===void 0?!0: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 t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(oBt(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=iBt(r);try{n.insertRule(a,n.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){return a.parentNode&&a.parentNode.removeChild(a)}),this.tags=[],this.ctr=0},e}(),jo="-ms-",oP="-moz-",dr="-webkit-",B1e="comm",G$="rule",q$="decl",lBt="@import",R1e="@keyframes",cBt=Math.abs,sP=String.fromCharCode,uBt=Object.assign;function dBt(e,t){return Ji(e,0)^45?(((t<<2^Ji(e,0))<<2^Ji(e,1))<<2^Ji(e,2))<<2^Ji(e,3):0}function N1e(e){return e.trim()}function pBt(e,t){return(e=t.exec(e))?e[0]:e}function vr(e,t,a){return e.replace(t,a)}function W$(e,t){return e.indexOf(t)}function Ji(e,t){return e.charCodeAt(t)|0}function Z1(e,t,a){return e.slice(t,a)}function Mu(e){return e.length}function J$(e){return e.length}function lP(e,t){return t.push(e),e}function hBt(e,t){return e.map(t).join("")}var cP=1,eb=1,E1e=0,Cs=0,ni=0,tb="";function uP(e,t,a,r,n,i,o){return{value:e,root:t,parent:a,type:r,props:n,children:i,line:cP,column:eb,length:o,return:""}}function Q1(e,t){return uBt(uP("",null,null,"",null,null,0),e,{length:-e.length},t)}function mBt(){return ni}function fBt(){return ni=Cs>0?Ji(tb,--Cs):0,eb--,ni===10&&(eb=1,cP--),ni}function ll(){return ni=Cs<E1e?Ji(tb,Cs++):0,eb++,ni===10&&(eb=1,cP++),ni}function Tu(){return Ji(tb,Cs)}function dP(){return Cs}function Y1(e,t){return Z1(tb,e,t)}function X1(e){switch(e){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 L1e(e){return cP=eb=1,E1e=Mu(tb=e),Cs=0,[]}function D1e(e){return tb="",e}function pP(e){return N1e(Y1(Cs-1,U$(e===91?e+2:e===40?e+1:e)))}function gBt(e){for(;(ni=Tu())&&ni<33;)ll();return X1(e)>2||X1(ni)>3?"":" "}function vBt(e,t){for(;--t&&ll()&&!(ni<48||ni>102||ni>57&&ni<65||ni>70&&ni<97););return Y1(e,dP()+(t<6&&Tu()==32&&ll()==32))}function U$(e){for(;ll();)switch(ni){case e:return Cs;case 34:case 39:e!==34&&e!==39&&U$(ni);break;case 40:e===41&&U$(e);break;case 92:ll();break}return Cs}function bBt(e,t){for(;ll()&&e+ni!==57&&!(e+ni===84&&Tu()===47););return"/*"+Y1(t,Cs-1)+"*"+sP(e===47?e:ll())}function kBt(e){for(;!X1(Tu());)ll();return Y1(e,Cs)}function yBt(e){return D1e(hP("",null,null,null,[""],e=L1e(e),0,[0],e))}function hP(e,t,a,r,n,i,o,s,l){for(var c=0,u=0,d=o,p=0,h=0,f=0,b=1,g=1,m=1,k=0,x="",j=n,w=i,S=r,O=x;g;)switch(f=k,k=ll()){case 40:if(f!=108&&Ji(O,d-1)==58){W$(O+=vr(pP(k),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:O+=pP(k);break;case 9:case 10:case 13:case 32:O+=gBt(f);break;case 92:O+=vBt(dP()-1,7);continue;case 47:switch(Tu()){case 42:case 47:lP(xBt(bBt(ll(),dP()),t,a),l);break;default:O+="/"}break;case 123*b:s[c++]=Mu(O)*m;case 125*b:case 59:case 0:switch(k){case 0:case 125:g=0;case 59+u:h>0&&Mu(O)-d&&lP(h>32?I1e(O+";",r,a,d-1):I1e(vr(O," ","")+";",r,a,d-2),l);break;case 59:O+=";";default:if(lP(S=$1e(O,t,a,c,u,n,s,x,j=[],w=[],d),i),k===123)if(u===0)hP(O,t,S,S,j,i,d,s,w);else switch(p===99&&Ji(O,3)===110?100:p){case 100:case 109:case 115:hP(e,S,S,r&&lP($1e(e,S,S,0,0,n,s,x,n,j=[],d),w),n,w,d,s,r?j:w);break;default:hP(O,S,S,S,[""],w,0,s,w)}}c=u=h=0,b=m=1,x=O="",d=o;break;case 58:d=1+Mu(O),h=f;default:if(b<1){if(k==123)--b;else if(k==125&&b++==0&&fBt()==125)continue}switch(O+=sP(k),k*b){case 38:m=u>0?1:(O+="\f",-1);break;case 44:s[c++]=(Mu(O)-1)*m,m=1;break;case 64:Tu()===45&&(O+=pP(ll())),p=Tu(),u=d=Mu(x=O+=kBt(dP())),k++;break;case 45:f===45&&Mu(O)==2&&(b=0)}}return i}function $1e(e,t,a,r,n,i,o,s,l,c,u){for(var d=n-1,p=n===0?i:[""],h=J$(p),f=0,b=0,g=0;f<r;++f)for(var m=0,k=Z1(e,d+1,d=cBt(b=o[f])),x=e;m<h;++m)(x=N1e(b>0?p[m]+" "+k:vr(k,/&\f/g,p[m])))&&(l[g++]=x);return uP(e,t,a,n===0?G$:s,l,c,u)}function xBt(e,t,a){return uP(e,t,a,B1e,sP(mBt()),Z1(e,2,-2),0)}function I1e(e,t,a,r){return uP(e,t,a,q$,Z1(e,0,r),Z1(e,r+1,-1),r)}function ab(e,t){for(var a="",r=J$(e),n=0;n<r;n++)a+=t(e[n],n,e,t)||"";return a}function wBt(e,t,a,r){switch(e.type){case lBt:case q$:return e.return=e.return||e.value;case B1e:return"";case R1e:return e.return=e.value+"{"+ab(e.children,r)+"}";case G$:e.value=e.props.join(",")}return Mu(a=ab(e.children,r))?e.return=e.value+"{"+a+"}":""}function zBt(e){var t=J$(e);return function(a,r,n,i){for(var o="",s=0;s<t;s++)o+=e[s](a,r,n,i)||"";return o}}function SBt(e){return function(t){t.root||(t=t.return)&&e(t)}}function jBt(e){var t=Object.create(null);return function(a){return t[a]===void 0&&(t[a]=e(a)),t[a]}}var OBt=function(e,t,a){for(var r=0,n=0;r=n,n=Tu(),r===38&&n===12&&(t[a]=1),!X1(n);)ll();return Y1(e,Cs)},CBt=function(e,t){var a=-1,r=44;do switch(X1(r)){case 0:r===38&&Tu()===12&&(t[a]=1),e[a]+=OBt(Cs-1,t,a);break;case 2:e[a]+=pP(r);break;case 4:if(r===44){e[++a]=Tu()===58?"&\f":"",t[a]=e[a].length;break}default:e[a]+=sP(r)}while(r=ll());return e},ABt=function(e,t){return D1e(CBt(L1e(e),t))},K1e=new WeakMap,PBt=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,a=e.parent,r=e.column===a.column&&e.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!K1e.get(a))&&!r){K1e.set(e,!0);for(var n=[],i=ABt(t,n),o=a.props,s=0,l=0;s<i.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=n[s]?i[s].replace(/&\f/g,o[c]):o[c]+" "+i[s]}}},MBt=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function H1e(e,t){switch(dBt(e,t)){case 5103:return dr+"print-"+e+e;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 dr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dr+e+oP+e+jo+e+e;case 6828:case 4268:return dr+e+jo+e+e;case 6165:return dr+e+jo+"flex-"+e+e;case 5187:return dr+e+vr(e,/(\w+).+(:[^]+)/,dr+"box-$1$2"+jo+"flex-$1$2")+e;case 5443:return dr+e+jo+"flex-item-"+vr(e,/flex-|-self/,"")+e;case 4675:return dr+e+jo+"flex-line-pack"+vr(e,/align-content|flex-|-self/,"")+e;case 5548:return dr+e+jo+vr(e,"shrink","negative")+e;case 5292:return dr+e+jo+vr(e,"basis","preferred-size")+e;case 6060:return dr+"box-"+vr(e,"-grow","")+dr+e+jo+vr(e,"grow","positive")+e;case 4554:return dr+vr(e,/([^-])(transform)/g,"$1"+dr+"$2")+e;case 6187:return vr(vr(vr(e,/(zoom-|grab)/,dr+"$1"),/(image-set)/,dr+"$1"),e,"")+e;case 5495:case 3959:return vr(e,/(image-set\([^]*)/,dr+"$1$`$1");case 4968:return vr(vr(e,/(.+:)(flex-)?(.*)/,dr+"box-pack:$3"+jo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dr+e+e;case 4095:case 3583:case 4068:case 2532:return vr(e,/(.+)-inline(.+)/,dr+"$1$2")+e;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(Mu(e)-1-t>6)switch(Ji(e,t+1)){case 109:if(Ji(e,t+4)!==45)break;case 102:return vr(e,/(.+:)(.+)-([^]+)/,"$1"+dr+"$2-$3$1"+oP+(Ji(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~W$(e,"stretch")?H1e(vr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ji(e,t+1)!==115)break;case 6444:switch(Ji(e,Mu(e)-3-(~W$(e,"!important")&&10))){case 107:return vr(e,":",":"+dr)+e;case 101:return vr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dr+(Ji(e,14)===45?"inline-":"")+"box$3$1"+dr+"$2$3$1"+jo+"$2box$3")+e}break;case 5936:switch(Ji(e,t+11)){case 114:return dr+e+jo+vr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dr+e+jo+vr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dr+e+jo+vr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dr+e+jo+e+e}return e}var TBt=function(e,t,a,r){if(e.length>-1&&!e.return)switch(e.type){case q$:e.return=H1e(e.value,e.length);break;case R1e:return ab([Q1(e,{value:vr(e.value,"@","@"+dr)})],r);case G$:if(e.length)return hBt(e.props,function(n){switch(pBt(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ab([Q1(e,{props:[vr(n,/:(read-\w+)/,":"+oP+"$1")]})],r);case"::placeholder":return ab([Q1(e,{props:[vr(n,/:(plac\w+)/,":"+dr+"input-$1")]}),Q1(e,{props:[vr(n,/:(plac\w+)/,":"+oP+"$1")]}),Q1(e,{props:[vr(n,/:(plac\w+)/,jo+"input-$1")]})],r)}return""})}},_Bt=[TBt],BBt=function(e){var t=e.key;if(t==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(f){var b=f.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var r=e.stylisPlugins||_Bt,n={},i,o=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(f){for(var b=f.getAttribute("data-emotion").split(" "),g=1;g<b.length;g++)n[b[g]]=!0;o.push(f)});var s,l=[PBt,MBt];{var c,u=[wBt,SBt(function(f){c.insert(f)})],d=zBt(l.concat(r,u)),p=function(f){return ab(yBt(f),d)};s=function(f,b,g,m){c=g,p(f?f+"{"+b.styles+"}":b.styles),m&&(h.inserted[b.name]=!0)}}var h={key:t,sheet:new sBt({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:n,registered:{},insert:s};return h.sheet.hydrate(o),h},RBt=!0;function NBt(e,t,a){var r="";return a.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):r+=n+" "}),r}var V1e=function(e,t,a){var r=e.key+"-"+t.name;(a===!1||RBt===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},EBt=function(e,t,a){V1e(e,t,a);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var n=t;do e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next;while(n!==void 0)}};function LBt(e){for(var t=0,a,r=0,n=e.length;n>=4;++r,n-=4)a=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var DBt={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,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},$Bt=/[A-Z]|^ms/g,IBt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,F1e=function(e){return e.charCodeAt(1)===45},G1e=function(e){return e!=null&&typeof e!="boolean"},Z$=jBt(function(e){return F1e(e)?e:e.replace($Bt,"-$&").toLowerCase()}),q1e=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(IBt,function(a,r,n){return _u={name:r,styles:n,next:_u},r})}return DBt[e]!==1&&!F1e(e)&&typeof t=="number"&&t!==0?t+"px":t};function ex(e,t,a){if(a==null)return"";if(a.__emotion_styles!==void 0)return a;switch(typeof a){case"boolean":return"";case"object":{if(a.anim===1)return _u={name:a.name,styles:a.styles,next:_u},a.name;if(a.styles!==void 0){var r=a.next;if(r!==void 0)for(;r!==void 0;)_u={name:r.name,styles:r.styles,next:_u},r=r.next;var n=a.styles+";";return n}return KBt(e,t,a)}case"function":{if(e!==void 0){var i=_u,o=a(e);return _u=i,ex(e,t,o)}break}}return a}function KBt(e,t,a){var r="";if(Array.isArray(a))for(var n=0;n<a.length;n++)r+=ex(e,t,a[n])+";";else for(var i in a){var o=a[i];if(typeof o!="object")G1e(o)&&(r+=Z$(i)+":"+q1e(i,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var s=0;s<o.length;s++)G1e(o[s])&&(r+=Z$(i)+":"+q1e(i,o[s])+";");else{var l=ex(e,t,o);switch(i){case"animation":case"animationName":{r+=Z$(i)+":"+l+";";break}default:r+=i+"{"+l+"}"}}}return r}var W1e=/label:\s*([^\s;\n{]+)\s*(;|$)/g,_u,J1e=function(e,t,a){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,n="";_u=void 0;var i=e[0];i==null||i.raw===void 0?(r=!1,n+=ex(a,t,i)):n+=i[0];for(var o=1;o<e.length;o++)n+=ex(a,t,e[o]),r&&(n+=i[o]);W1e.lastIndex=0;for(var s="",l;(l=W1e.exec(n))!==null;)s+="-"+l[1];var c=LBt(n)+s;return{name:c,styles:n,next:_u}},HBt=function(e){return e()},VBt=im.useInsertionEffect?im.useInsertionEffect:!1,FBt=VBt||HBt,Q$={}.hasOwnProperty,GBt=K.createContext(typeof HTMLElement<"u"?BBt({key:"css"}):null),qBt=function(e){return K.forwardRef(function(t,a){var r=K.useContext(GBt);return e(t,r,a)})},WBt=K.createContext({}),Y$="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",JBt=function(e,t){var a={};for(var r in t)Q$.call(t,r)&&(a[r]=t[r]);return a[Y$]=e,a},UBt=function(e){var t=e.cache,a=e.serialized,r=e.isStringTag;return V1e(t,a,r),FBt(function(){return EBt(t,a,r)}),null},ZBt=qBt(function(e,t,a){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var n=e[Y$],i=[r],o="";typeof e.className=="string"?o=NBt(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=J1e(i,void 0,K.useContext(WBt));o+=t.key+"-"+s.name;var l={};for(var c in e)Q$.call(e,c)&&c!=="css"&&c!==Y$&&(l[c]=e[c]);return l.ref=a,l.className=o,K.createElement(K.Fragment,null,K.createElement(UBt,{cache:t,serialized:s,isStringTag:typeof n=="string"}),K.createElement(n,l))}),It=function(e,t){var a=arguments;if(t==null||!Q$.call(t,"css"))return K.createElement.apply(void 0,a);var r=a.length,n=new Array(r);n[0]=ZBt,n[1]=JBt(e,t);for(var i=2;i<r;i++)n[i]=a[i];return K.createElement.apply(null,n)};function X$(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return J1e(t)}var QBt=function(){var e=X$.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function YBt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const XBt=Math.min,eRt=Math.max,mP=Math.round,fP=Math.floor,gP=e=>({x:e,y:e});function tRt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function U1e(e){return Q1e(e)?(e.nodeName||"").toLowerCase():"#document"}function _d(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Z1e(e){var t;return(t=(Q1e(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Q1e(e){return e instanceof Node||e instanceof _d(e).Node}function aRt(e){return e instanceof Element||e instanceof _d(e).Element}function e7(e){return e instanceof HTMLElement||e instanceof _d(e).HTMLElement}function Y1e(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _d(e).ShadowRoot}function X1e(e){const{overflow:t,overflowX:a,overflowY:r,display:n}=t7(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&!["inline","contents"].includes(n)}function rRt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nRt(e){return["html","body","#document"].includes(U1e(e))}function t7(e){return _d(e).getComputedStyle(e)}function iRt(e){if(U1e(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Y1e(e)&&e.host||Z1e(e);return Y1e(t)?t.host:t}function exe(e){const t=iRt(e);return nRt(t)?e.ownerDocument?e.ownerDocument.body:e.body:e7(t)&&X1e(t)?t:exe(t)}function vP(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);const n=exe(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=_d(n);return i?t.concat(o,o.visualViewport||[],X1e(n)?n:[],o.frameElement&&a?vP(o.frameElement):[]):t.concat(n,vP(n,[],a))}function oRt(e){const t=t7(e);let a=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=e7(e),i=n?e.offsetWidth:a,o=n?e.offsetHeight:r,s=mP(a)!==i||mP(r)!==o;return s&&(a=i,r=o),{width:a,height:r,$:s}}function a7(e){return aRt(e)?e:e.contextElement}function txe(e){const t=a7(e);if(!e7(t))return gP(1);const a=t.getBoundingClientRect(),{width:r,height:n,$:i}=oRt(t);let o=(i?mP(a.width):a.width)/r,s=(i?mP(a.height):a.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const sRt=gP(0);function lRt(e){const t=_d(e);return!rRt()||!t.visualViewport?sRt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cRt(e,t,a){return!1}function axe(e,t,a,r){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),i=a7(e);let o=gP(1);t&&(o=txe(e));const s=cRt()?lRt(i):gP(0);let l=(n.left+s.x)/o.x,c=(n.top+s.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(i){const p=_d(i),h=r;let f=p.frameElement;for(;f&&r&&h!==p;){const b=txe(f),g=f.getBoundingClientRect(),m=t7(f),k=g.left+(f.clientLeft+parseFloat(m.paddingLeft))*b.x,x=g.top+(f.clientTop+parseFloat(m.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=k,c+=x,f=_d(f).frameElement}}return tRt({width:u,height:d,x:l,y:c})}function uRt(e,t){let a=null,r;const n=Z1e(e);function i(){clearTimeout(r),a&&a.disconnect(),a=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const h=fP(u),f=fP(n.clientWidth-(c+d)),b=fP(n.clientHeight-(u+p)),g=fP(c),m={rootMargin:-h+"px "+-f+"px "+-b+"px "+-g+"px",threshold:eRt(0,XBt(1,l))||1};let k=!0;function x(j){const w=j[0].intersectionRatio;if(w!==l){if(!k)return o();w?o(!1,w):r=setTimeout(()=>{o(!1,1e-7)},100)}k=!1}try{a=new IntersectionObserver(x,{...m,root:n.ownerDocument})}catch{a=new IntersectionObserver(x,m)}a.observe(e)}return o(!0),i}function dRt(e,t,a,r){r===void 0&&(r={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=a7(e),u=n||i?[...c?vP(c):[],...vP(t)]:[];u.forEach(m=>{n&&m.addEventListener("scroll",a,{passive:!0}),i&&m.addEventListener("resize",a)});const d=c&&s?uRt(c,a):null;let p=-1,h=null;o&&(h=new ResizeObserver(m=>{let[k]=m;k&&k.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),a()}),c&&!l&&h.observe(c),h.observe(t));let f,b=l?axe(e):null;l&&g();function g(){const m=axe(e);b&&(m.x!==b.x||m.y!==b.y||m.width!==b.width||m.height!==b.height)&&a(),b=m,f=requestAnimationFrame(g)}return a(),()=>{u.forEach(m=>{n&&m.removeEventListener("scroll",a),i&&m.removeEventListener("resize",a)}),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(f)}}var r7=K.useLayoutEffect,pRt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],bP=function(){};function hRt(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function mRt(e,t){for(var a=arguments.length,r=new Array(a>2?a-2:0),n=2;n<a;n++)r[n-2]=arguments[n];var i=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(hRt(e,o)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var rxe=function(e){return zRt(e)?e.filter(Boolean):il(e)==="object"&&e!==null?[e]:[]},nxe=function(e){var t=wc(e,pRt);return ut({},t)},Bn=function(e,t,a){var r=e.cx,n=e.getStyles,i=e.getClassNames,o=e.className;return{css:n(t,e),className:r(a??{},i(t,e),o)}};function kP(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function fRt(e){return kP(e)?window.innerHeight:e.clientHeight}function ixe(e){return kP(e)?window.pageYOffset:e.scrollTop}function yP(e,t){if(kP(e)){window.scrollTo(0,t);return}e.scrollTop=t}function gRt(e){var t=getComputedStyle(e),a=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(a&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function vRt(e,t,a,r){return a*((e=e/r-1)*e*e+1)+t}function xP(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:bP,n=ixe(e),i=t-n,o=10,s=0;function l(){s+=o;var c=vRt(s,n,i,a);yP(e,c),s<a?window.requestAnimationFrame(l):r(e)}l()}function oxe(e,t){var a=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=t.offsetHeight/3;r.bottom+n>a.bottom?yP(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):r.top-n<a.top&&yP(e,Math.max(t.offsetTop-n,0))}function bRt(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function sxe(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function kRt(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var lxe=!1,yRt={get passive(){return lxe=!0}},wP=typeof window<"u"?window:{};wP.addEventListener&&wP.removeEventListener&&(wP.addEventListener("p",bP,yRt),wP.removeEventListener("p",bP,!1));var xRt=lxe;function wRt(e){return e!=null}function zRt(e){return Array.isArray(e)}function zP(e,t,a){return e?t:a}var SRt=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];var n=Object.entries(e).filter(function(i){var o=ca(i,1),s=o[0];return!a.includes(s)});return n.reduce(function(i,o){var s=ca(o,2),l=s[0],c=s[1];return i[l]=c,i},{})},jRt=["children","innerProps"],ORt=["children","innerProps"];function CRt(e){var t=e.maxHeight,a=e.menuEl,r=e.minHeight,n=e.placement,i=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=gRt(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,p=a.getBoundingClientRect(),h=p.bottom,f=p.height,b=p.top,g=a.offsetParent.getBoundingClientRect(),m=g.top,k=o?window.innerHeight:fRt(l),x=ixe(l),j=parseInt(getComputedStyle(a).marginBottom,10),w=parseInt(getComputedStyle(a).marginTop,10),S=m-w,O=k-b,M=S+x,T=d-x-b,N=h-k+x+j,G=x+b-w,L=160;switch(n){case"auto":case"bottom":if(O>=f)return{placement:"bottom",maxHeight:t};if(T>=f&&!o)return i&&xP(l,N,L),{placement:"bottom",maxHeight:t};if(!o&&T>=r||o&&O>=r){i&&xP(l,N,L);var J=o?O-j:T-j;return{placement:"bottom",maxHeight:J}}if(n==="auto"||o){var I=t,X=o?S:M;return X>=r&&(I=Math.min(X-j-s,t)),{placement:"top",maxHeight:I}}if(n==="bottom")return i&&yP(l,N),{placement:"bottom",maxHeight:t};break;case"top":if(S>=f)return{placement:"top",maxHeight:t};if(M>=f&&!o)return i&&xP(l,G,L),{placement:"top",maxHeight:t};if(!o&&M>=r||o&&S>=r){var re=t;return(!o&&M>=r||o&&S>=r)&&(re=o?S-w:M-w),i&&xP(l,G,L),{placement:"top",maxHeight:re}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function ARt(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var cxe=function(e){return e==="auto"?"bottom":e},PRt=function(e,t){var a,r=e.placement,n=e.theme,i=n.borderRadius,o=n.spacing,s=n.colors;return ut((a={label:"menu"},So(a,ARt(r),"100%"),So(a,"position","absolute"),So(a,"width","100%"),So(a,"zIndex",1),a),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},uxe=K.createContext(null),MRt=function(e){var t=e.children,a=e.minMenuHeight,r=e.maxMenuHeight,n=e.menuPlacement,i=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,l=K.useContext(uxe)||{},c=l.setPortalPlacement,u=K.useRef(null),d=K.useState(r),p=ca(d,2),h=p[0],f=p[1],b=K.useState(null),g=ca(b,2),m=g[0],k=g[1],x=s.spacing.controlHeight;return r7(function(){var j=u.current;if(j){var w=i==="fixed",S=o&&!w,O=CRt({maxHeight:r,menuEl:j,minHeight:a,placement:n,shouldScroll:S,isFixedPosition:w,controlHeight:x});f(O.maxHeight),k(O.placement),c?.(O.placement)}},[r,n,i,o,a,c,x]),t({ref:u,placerProps:ut(ut({},e),{},{placement:m||cxe(n),maxHeight:h})})},TRt=function(e){var t=e.children,a=e.innerRef,r=e.innerProps;return It("div",Lt({},Bn(e,"menu",{menu:!0}),{ref:a},r),t)},_Rt=TRt,BRt=function(e,t){var a=e.maxHeight,r=e.theme.spacing.baseUnit;return ut({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},RRt=function(e){var t=e.children,a=e.innerProps,r=e.innerRef,n=e.isMulti;return It("div",Lt({},Bn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":n}),{ref:r},a),t)},dxe=function(e,t){var a=e.theme,r=a.spacing.baseUnit,n=a.colors;return ut({textAlign:"center"},t?{}:{color:n.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},NRt=dxe,ERt=dxe,LRt=function(e){var t=e.children,a=t===void 0?"No options":t,r=e.innerProps,n=wc(e,jRt);return It("div",Lt({},Bn(ut(ut({},n),{},{children:a,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),a)},DRt=function(e){var t=e.children,a=t===void 0?"Loading...":t,r=e.innerProps,n=wc(e,ORt);return It("div",Lt({},Bn(ut(ut({},n),{},{children:a,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),a)},$Rt=function(e){var t=e.rect,a=e.offset,r=e.position;return{left:t.left,position:r,top:a,width:t.width,zIndex:1}},IRt=function(e){var t=e.appendTo,a=e.children,r=e.controlElement,n=e.innerProps,i=e.menuPlacement,o=e.menuPosition,s=K.useRef(null),l=K.useRef(null),c=K.useState(cxe(i)),u=ca(c,2),d=u[0],p=u[1],h=K.useMemo(function(){return{setPortalPlacement:p}},[]),f=K.useState(null),b=ca(f,2),g=b[0],m=b[1],k=K.useCallback(function(){if(r){var S=bRt(r),O=o==="fixed"?0:window.pageYOffset,M=S[d]+O;(M!==g?.offset||S.left!==g?.rect.left||S.width!==g?.rect.width)&&m({offset:M,rect:S})}},[r,o,d,g?.offset,g?.rect.left,g?.rect.width]);r7(function(){k()},[k]);var x=K.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),r&&s.current&&(l.current=dRt(r,s.current,k,{elementResize:"ResizeObserver"in window}))},[r,k]);r7(function(){x()},[x]);var j=K.useCallback(function(S){s.current=S,x()},[x]);if(!t&&o!=="fixed"||!g)return null;var w=It("div",Lt({ref:j},Bn(ut(ut({},e),{},{offset:g.offset,position:o,rect:g.rect}),"menuPortal",{"menu-portal":!0}),n),a);return It(uxe.Provider,{value:h},t?Qz.createPortal(w,t):w)},KRt=function(e){var t=e.isDisabled,a=e.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},HRt=function(e){var t=e.children,a=e.innerProps,r=e.isDisabled,n=e.isRtl;return It("div",Lt({},Bn(e,"container",{"--is-disabled":r,"--is-rtl":n}),a),t)},VRt=function(e,t){var a=e.theme.spacing,r=e.isMulti,n=e.hasValue,i=e.selectProps.controlShouldRenderValue;return ut({alignItems:"center",display:r&&n&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},FRt=function(e){var t=e.children,a=e.innerProps,r=e.isMulti,n=e.hasValue;return It("div",Lt({},Bn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":n}),a),t)},GRt=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},qRt=function(e){var t=e.children,a=e.innerProps;return It("div",Lt({},Bn(e,"indicatorsContainer",{indicators:!0}),a),t)},pxe,WRt=["size"],JRt=["innerProps","isRtl","size"],URt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hxe=function(e){var t=e.size,a=wc(e,WRt);return It("svg",Lt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:URt},a))},n7=function(e){return It(hxe,Lt({size:20},e),It("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},mxe=function(e){return It(hxe,Lt({size:20},e),It("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},fxe=function(e,t){var a=e.isFocused,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return ut({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:a?i.neutral60:i.neutral20,padding:n*2,":hover":{color:a?i.neutral80:i.neutral40}})},ZRt=fxe,QRt=function(e){var t=e.children,a=e.innerProps;return It("div",Lt({},Bn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),t||It(mxe,null))},YRt=fxe,XRt=function(e){var t=e.children,a=e.innerProps;return It("div",Lt({},Bn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),t||It(n7,null))},eNt=function(e,t){var a=e.isDisabled,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return ut({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:a?i.neutral10:i.neutral20,marginBottom:n*2,marginTop:n*2})},tNt=function(e){var t=e.innerProps;return It("span",Lt({},t,Bn(e,"indicatorSeparator",{"indicator-separator":!0})))},aNt=QBt(pxe||(pxe=YBt([`
11055
11055
  0%, 80%, 100% { opacity: 0; }
11056
11056
  40% { opacity: 1; }
11057
11057
  `]))),rNt=function(e,t){var a=e.isFocused,r=e.size,n=e.theme,i=n.colors,o=n.spacing.baseUnit;return ut({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:a?i.neutral60:i.neutral20,padding:o*2})},i7=function(e){var t=e.delay,a=e.offset;return It("span",{css:X$({animation:"".concat(aNt," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},nNt=function(e){var t=e.innerProps,a=e.isRtl,r=e.size,n=r===void 0?4:r,i=wc(e,JRt);return It("div",Lt({},Bn(ut(ut({},i),{},{innerProps:t,isRtl:a,size:n}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),It(i7,{delay:0,offset:a}),It(i7,{delay:160,offset:!0}),It(i7,{delay:320,offset:!a}))},iNt=function(e,t){var a=e.isDisabled,r=e.isFocused,n=e.theme,i=n.colors,o=n.borderRadius,s=n.spacing;return ut({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:a?i.neutral5:i.neutral0,borderColor:a?i.neutral10:r?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},oNt=function(e){var t=e.children,a=e.isDisabled,r=e.isFocused,n=e.innerRef,i=e.innerProps,o=e.menuIsOpen;return It("div",Lt({ref:n},Bn(e,"control",{control:!0,"control--is-disabled":a,"control--is-focused":r,"control--menu-is-open":o}),i,{"aria-disabled":a||void 0}),t)},sNt=oNt,lNt=["data"],cNt=function(e,t){var a=e.theme.spacing;return t?{}:{paddingBottom:a.baseUnit*2,paddingTop:a.baseUnit*2}},uNt=function(e){var t=e.children,a=e.cx,r=e.getStyles,n=e.getClassNames,i=e.Heading,o=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return It("div",Lt({},Bn(e,"group",{group:!0}),s),It(i,Lt({},o,{selectProps:u,theme:c,getStyles:r,getClassNames:n,cx:a}),l),It("div",null,t))},dNt=function(e,t){var a=e.theme,r=a.colors,n=a.spacing;return ut({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:n.baseUnit*3,paddingRight:n.baseUnit*3,textTransform:"uppercase"})},pNt=function(e){var t=nxe(e),a=wc(t,lNt);return It("div",Lt({},Bn(e,"groupHeading",{"group-heading":!0}),a))},hNt=uNt,mNt=["innerRef","isDisabled","isHidden","inputClassName"],fNt=function(e,t){var a=e.isDisabled,r=e.value,n=e.theme,i=n.spacing,o=n.colors;return ut(ut({visibility:a?"hidden":"visible",transform:r?"translateZ(0)":""},gNt),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:o.neutral80})},gxe={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},gNt={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ut({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},gxe)},vNt=function(e){return ut({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},gxe)},bNt=function(e){var t=e.cx,a=e.value,r=nxe(e),n=r.innerRef,i=r.isDisabled,o=r.isHidden,s=r.inputClassName,l=wc(r,mNt);return It("div",Lt({},Bn(e,"input",{"input-container":!0}),{"data-value":a||""}),It("input",Lt({className:t({input:!0},s),ref:n,style:vNt(o),disabled:i},l)))},kNt=bNt,yNt=function(e,t){var a=e.theme,r=a.spacing,n=a.borderRadius,i=a.colors;return ut({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:n/2,margin:r.baseUnit/2})},xNt=function(e,t){var a=e.theme,r=a.borderRadius,n=a.colors,i=e.cropWithEllipsis;return ut({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:n.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},wNt=function(e,t){var a=e.theme,r=a.spacing,n=a.borderRadius,i=a.colors,o=e.isFocused;return ut({alignItems:"center",display:"flex"},t?{}:{borderRadius:n/2,backgroundColor:o?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},vxe=function(e){var t=e.children,a=e.innerProps;return It("div",a,t)},zNt=vxe,SNt=vxe;function jNt(e){var t=e.children,a=e.innerProps;return It("div",Lt({role:"button"},a),t||It(n7,{size:14}))}var ONt=function(e){var t=e.children,a=e.components,r=e.data,n=e.innerProps,i=e.isDisabled,o=e.removeProps,s=e.selectProps,l=a.Container,c=a.Label,u=a.Remove;return It(l,{data:r,innerProps:ut(ut({},Bn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),n),selectProps:s},It(c,{data:r,innerProps:ut({},Bn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),It(u,{data:r,innerProps:ut(ut({},Bn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},o),selectProps:s}))},CNt=ONt,ANt=function(e,t){var a=e.isDisabled,r=e.isFocused,n=e.isSelected,i=e.theme,o=i.spacing,s=i.colors;return ut({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:n?s.primary:r?s.primary25:"transparent",color:a?s.neutral20:n?s.neutral0:"inherit",padding:"".concat(o.baseUnit*2,"px ").concat(o.baseUnit*3,"px"),":active":{backgroundColor:a?void 0:n?s.primary:s.primary50}})},PNt=function(e){var t=e.children,a=e.isDisabled,r=e.isFocused,n=e.isSelected,i=e.innerRef,o=e.innerProps;return It("div",Lt({},Bn(e,"option",{option:!0,"option--is-disabled":a,"option--is-focused":r,"option--is-selected":n}),{ref:i,"aria-disabled":a},o),t)},MNt=PNt,TNt=function(e,t){var a=e.theme,r=a.spacing,n=a.colors;return ut({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:n.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},_Nt=function(e){var t=e.children,a=e.innerProps;return It("div",Lt({},Bn(e,"placeholder",{placeholder:!0}),a),t)},BNt=_Nt,RNt=function(e,t){var a=e.isDisabled,r=e.theme,n=r.spacing,i=r.colors;return ut({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:a?i.neutral40:i.neutral80,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},NNt=function(e){var t=e.children,a=e.isDisabled,r=e.innerProps;return It("div",Lt({},Bn(e,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),r),t)},ENt=NNt,SP={ClearIndicator:XRt,Control:sNt,DropdownIndicator:QRt,DownChevron:mxe,CrossIcon:n7,Group:hNt,GroupHeading:pNt,IndicatorsContainer:qRt,IndicatorSeparator:tNt,Input:kNt,LoadingIndicator:nNt,Menu:_Rt,MenuList:RRt,MenuPortal:IRt,LoadingMessage:DRt,NoOptionsMessage:LRt,MultiValue:CNt,MultiValueContainer:zNt,MultiValueLabel:SNt,MultiValueRemove:jNt,Option:MNt,Placeholder:BNt,SelectContainer:HRt,SingleValue:ENt,ValueContainer:FRt},LNt=function(e){return ut(ut({},SP),e.components)},bxe=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function DNt(e,t){return!!(e===t||bxe(e)&&bxe(t))}function $Nt(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!DNt(e[a],t[a]))return!1;return!0}function INt(e,t){t===void 0&&(t=$Nt);var a=null;function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(a&&a.lastThis===this&&t(n,a.lastArgs))return a.lastResult;var o=e.apply(this,n);return a={lastResult:o,lastArgs:n,lastThis:this},o}return r.clear=function(){a=null},r}for(var KNt={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},HNt=function(e){return It("span",Lt({css:KNt},e))},kxe=HNt,VNt={guidance:function(e){var t=e.isSearchable,a=e.isMulti,r=e.tabSelectsValue,n=e.context,i=e.isInitialFocus;switch(n){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,a=e.label,r=a===void 0?"":a,n=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(n.length>1?"s":""," ").concat(n.join(","),", selected.");case"select-option":return i?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,a=e.focused,r=e.options,n=e.label,i=n===void 0?"":n,o=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(h,f){return h&&h.length?"".concat(h.indexOf(f)+1," of ").concat(h.length):""};if(t==="value"&&o)return"value ".concat(i," focused, ").concat(u(o,a),".");if(t==="menu"&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,a),".")}return""},onFilter:function(e){var t=e.inputValue,a=e.resultsMessage;return"".concat(a).concat(t?" for search term "+t:"",".")}},FNt=function(e){var t=e.ariaSelection,a=e.focusedOption,r=e.focusedValue,n=e.focusableOptions,i=e.isFocused,o=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,u=s.ariaLiveMessages,d=s.getOptionLabel,p=s.inputValue,h=s.isMulti,f=s.isOptionDisabled,b=s.isSearchable,g=s.menuIsOpen,m=s.options,k=s.screenReaderStatus,x=s.tabSelectsValue,j=s.isLoading,w=s["aria-label"],S=s["aria-live"],O=K.useMemo(function(){return ut(ut({},VNt),u||{})},[u]),M=K.useMemo(function(){var I="";if(t&&O.onChange){var X=t.option,re=t.options,le=t.removedValue,ie=t.removedValues,he=t.value,F=function(H){return Array.isArray(H)?null:H},D=le||X||F(he),W=D?d(D):"",$=re||ie||void 0,P=$?$.map(d):[],R=ut({isDisabled:D&&f(D,o),label:W,labels:P},t);I=O.onChange(R)}return I},[t,O,f,o,d]),T=K.useMemo(function(){var I="",X=a||r,re=!!(a&&o&&o.includes(a));if(X&&O.onFocus){var le={focused:X,label:d(X),isDisabled:f(X,o),isSelected:re,options:n,context:X===a?"menu":"value",selectValue:o,isAppleDevice:c};I=O.onFocus(le)}return I},[a,r,d,f,O,n,o,c]),N=K.useMemo(function(){var I="";if(g&&m.length&&!j&&O.onFilter){var X=k({count:n.length});I=O.onFilter({inputValue:p,resultsMessage:X})}return I},[n,p,g,O,m,k,j]),G=t?.action==="initial-input-focus",L=K.useMemo(function(){var I="";if(O.guidance){var X=r?"value":g?"menu":"input";I=O.guidance({"aria-label":w,context:X,isDisabled:a&&f(a,o),isMulti:h,isSearchable:b,tabSelectsValue:x,isInitialFocus:G})}return I},[w,a,r,h,f,b,g,O,o,x,G]),J=It(K.Fragment,null,It("span",{id:"aria-selection"},M),It("span",{id:"aria-focused"},T),It("span",{id:"aria-results"},N),It("span",{id:"aria-guidance"},L));return It(K.Fragment,null,It(kxe,{id:l},G&&J),It(kxe,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!G&&J))},GNt=FNt,o7=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],qNt=new RegExp("["+o7.map(function(e){return e.letters}).join("")+"]","g"),yxe={},s7=0;s7<o7.length;s7++)for(var l7=o7[s7],c7=0;c7<l7.letters.length;c7++)yxe[l7.letters[c7]]=l7.base;var xxe=function(e){return e.replace(qNt,function(t){return yxe[t]})},WNt=INt(xxe),wxe=function(e){return e.replace(/^\s+|\s+$/g,"")},JNt=function(e){return"".concat(e.label," ").concat(e.value)},UNt=function(e){return function(t,a){if(t.data.__isNew__)return!0;var r=ut({ignoreCase:!0,ignoreAccents:!0,stringify:JNt,trim:!0,matchFrom:"any"},e),n=r.ignoreCase,i=r.ignoreAccents,o=r.stringify,s=r.trim,l=r.matchFrom,c=s?wxe(a):a,u=s?wxe(o(t)):o(t);return n&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=WNt(c),u=xxe(u)),l==="start"?u.substr(0,c.length)===c:u.indexOf(c)>-1}},ZNt=["innerRef"];function QNt(e){var t=e.innerRef,a=wc(e,ZNt),r=SRt(a,"onExited","in","enter","exit","appear");return It("input",Lt({ref:t},r,{css:X$({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var YNt=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function XNt(e){var t=e.isEnabled,a=e.onBottomArrive,r=e.onBottomLeave,n=e.onTopArrive,i=e.onTopLeave,o=K.useRef(!1),s=K.useRef(!1),l=K.useRef(0),c=K.useRef(null),u=K.useCallback(function(g,m){if(c.current!==null){var k=c.current,x=k.scrollTop,j=k.scrollHeight,w=k.clientHeight,S=c.current,O=m>0,M=j-w-x,T=!1;M>m&&o.current&&(r&&r(g),o.current=!1),O&&s.current&&(i&&i(g),s.current=!1),O&&m>M?(a&&!o.current&&a(g),S.scrollTop=j,T=!0,o.current=!0):!O&&-m>x&&(n&&!s.current&&n(g),S.scrollTop=0,T=!0,s.current=!0),T&&YNt(g)}},[a,r,n,i]),d=K.useCallback(function(g){u(g,g.deltaY)},[u]),p=K.useCallback(function(g){l.current=g.changedTouches[0].clientY},[]),h=K.useCallback(function(g){var m=l.current-g.changedTouches[0].clientY;u(g,m)},[u]),f=K.useCallback(function(g){if(g){var m=xRt?{passive:!1}:!1;g.addEventListener("wheel",d,m),g.addEventListener("touchstart",p,m),g.addEventListener("touchmove",h,m)}},[h,p,d]),b=K.useCallback(function(g){g&&(g.removeEventListener("wheel",d,!1),g.removeEventListener("touchstart",p,!1),g.removeEventListener("touchmove",h,!1))},[h,p,d]);return K.useEffect(function(){if(t){var g=c.current;return f(g),function(){b(g)}}},[t,f,b]),function(g){c.current=g}}var zxe=["boxSizing","height","overflow","paddingRight","position"],Sxe={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function jxe(e){e.cancelable&&e.preventDefault()}function Oxe(e){e.stopPropagation()}function Cxe(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;e===0?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function Axe(){return"ontouchstart"in window||navigator.maxTouchPoints}var Pxe=!!(typeof window<"u"&&window.document&&window.document.createElement),tx=0,rb={capture:!1,passive:!1};function e4t(e){var t=e.isEnabled,a=e.accountForScrollbars,r=a===void 0?!0:a,n=K.useRef({}),i=K.useRef(null),o=K.useCallback(function(l){if(Pxe){var c=document.body,u=c&&c.style;if(r&&zxe.forEach(function(f){var b=u&&u[f];n.current[f]=b}),r&&tx<1){var d=parseInt(n.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,h=window.innerWidth-p+d||0;Object.keys(Sxe).forEach(function(f){var b=Sxe[f];u&&(u[f]=b)}),u&&(u.paddingRight="".concat(h,"px"))}c&&Axe()&&(c.addEventListener("touchmove",jxe,rb),l&&(l.addEventListener("touchstart",Cxe,rb),l.addEventListener("touchmove",Oxe,rb))),tx+=1}},[r]),s=K.useCallback(function(l){if(Pxe){var c=document.body,u=c&&c.style;tx=Math.max(tx-1,0),r&&tx<1&&zxe.forEach(function(d){var p=n.current[d];u&&(u[d]=p)}),c&&Axe()&&(c.removeEventListener("touchmove",jxe,rb),l&&(l.removeEventListener("touchstart",Cxe,rb),l.removeEventListener("touchmove",Oxe,rb)))}},[r]);return K.useEffect(function(){if(t){var l=i.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){i.current=l}}var t4t=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},a4t={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function r4t(e){var t=e.children,a=e.lockEnabled,r=e.captureEnabled,n=r===void 0?!0:r,i=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=XNt({isEnabled:n,onBottomArrive:i,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),u=e4t({isEnabled:a}),d=function(p){c(p),u(p)};return It(K.Fragment,null,a&&It("div",{onClick:t4t,css:a4t}),t(d))}var n4t={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},i4t=function(e){var t=e.name,a=e.onFocus;return It("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:n4t,value:"",onChange:function(){}})},o4t=i4t;function u7(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function s4t(){return u7(/^iPhone/i)}function Mxe(){return u7(/^Mac/i)}function l4t(){return u7(/^iPad/i)||Mxe()&&navigator.maxTouchPoints>1}function c4t(){return s4t()||l4t()}function u4t(){return Mxe()||c4t()}var d4t=function(e){return e.label},p4t=function(e){return e.label},h4t=function(e){return e.value},m4t=function(e){return!!e.isDisabled},f4t={clearIndicator:YRt,container:KRt,control:iNt,dropdownIndicator:ZRt,group:cNt,groupHeading:dNt,indicatorsContainer:GRt,indicatorSeparator:eNt,input:fNt,loadingIndicator:rNt,loadingMessage:ERt,menu:PRt,menuList:BRt,menuPortal:$Rt,multiValue:yNt,multiValueLabel:xNt,multiValueRemove:wNt,noOptionsMessage:NRt,option:ANt,placeholder:TNt,singleValue:RNt,valueContainer:VRt},g4t={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},v4t=4,Txe=4,b4t=38,k4t=Txe*2,y4t={baseUnit:Txe,controlHeight:b4t,menuGutter:k4t},d7={borderRadius:v4t,colors:g4t,spacing:y4t},x4t={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:sxe(),captureMenuScroll:!sxe(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:UNt(),formatGroupLabel:d4t,getOptionLabel:p4t,getOptionValue:h4t,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:m4t,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!kRt(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(t!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function _xe(e,t,a,r){var n=Lxe(e,t,a),i=Dxe(e,t,a),o=Exe(e,t),s=OP(e,t);return{type:"option",data:t,isDisabled:n,isSelected:i,label:o,value:s,index:r}}function jP(e,t){return e.options.map(function(a,r){if("options"in a){var n=a.options.map(function(o,s){return _xe(e,o,t,s)}).filter(function(o){return Nxe(e,o)});return n.length>0?{type:"group",data:a,options:n,index:r}:void 0}var i=_xe(e,a,t,r);return Nxe(e,i)?i:void 0}).filter(wRt)}function Bxe(e){return e.reduce(function(t,a){return a.type==="group"?t.push.apply(t,Kv(a.options.map(function(r){return r.data}))):t.push(a.data),t},[])}function Rxe(e,t){return e.reduce(function(a,r){return r.type==="group"?a.push.apply(a,Kv(r.options.map(function(n){return{data:n.data,id:"".concat(t,"-").concat(r.index,"-").concat(n.index)}}))):a.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),a},[])}function w4t(e,t){return Bxe(jP(e,t))}function Nxe(e,t){var a=e.inputValue,r=a===void 0?"":a,n=t.data,i=t.isSelected,o=t.label,s=t.value;return(!Ixe(e)||!i)&&$xe(e,{label:o,value:s,data:n},r)}function z4t(e,t){var a=e.focusedValue,r=e.selectValue,n=r.indexOf(a);if(n>-1){var i=t.indexOf(a);if(i>-1)return a;if(n<t.length)return t[n]}return null}function S4t(e,t){var a=e.focusedOption;return a&&t.indexOf(a)>-1?a:t[0]}var p7=function(e,t){var a,r=(a=e.find(function(n){return n.data===t}))===null||a===void 0?void 0:a.id;return r||null},Exe=function(e,t){return e.getOptionLabel(t)},OP=function(e,t){return e.getOptionValue(t)};function Lxe(e,t,a){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,a):!1}function Dxe(e,t,a){if(a.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,a);var r=OP(e,t);return a.some(function(n){return OP(e,n)===r})}function $xe(e,t,a){return e.filterOption?e.filterOption(t,a):!0}var Ixe=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return t===void 0?a:t},j4t=1,Kxe=function(e){i$(a,e);var t=s$(a);function a(r){var n;if(r$(this,a),n=t.call(this,r),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.isAppleDevice=u4t(),n.controlRef=null,n.getControlRef=function(l){n.controlRef=l},n.focusedOptionRef=null,n.getFocusedOptionRef=function(l){n.focusedOptionRef=l},n.menuListRef=null,n.getMenuListRef=function(l){n.menuListRef=l},n.inputRef=null,n.getInputRef=function(l){n.inputRef=l},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(l,c){var u=n.props,d=u.onChange,p=u.name;c.name=p,n.ariaOnChange(l,c),d(l,c)},n.setValue=function(l,c,u){var d=n.props,p=d.closeMenuOnSelect,h=d.isMulti,f=d.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:f}),p&&(n.setState({inputIsHiddenAfterUpdate:!h}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(l,{action:c,option:u})},n.selectOption=function(l){var c=n.props,u=c.blurInputOnSelect,d=c.isMulti,p=c.name,h=n.state.selectValue,f=d&&n.isOptionSelected(l,h),b=n.isOptionDisabled(l,h);if(f){var g=n.getOptionValue(l);n.setValue(h.filter(function(m){return n.getOptionValue(m)!==g}),"deselect-option",l)}else if(!b)d?n.setValue([].concat(Kv(h),[l]),"select-option",l):n.setValue(l,"select-option");else{n.ariaOnChange(l,{action:"select-option",option:l,name:p});return}u&&n.blurInput()},n.removeValue=function(l){var c=n.props.isMulti,u=n.state.selectValue,d=n.getOptionValue(l),p=u.filter(function(f){return n.getOptionValue(f)!==d}),h=zP(c,p,p[0]||null);n.onChange(h,{action:"remove-value",removedValue:l}),n.focusInput()},n.clearValue=function(){var l=n.state.selectValue;n.onChange(zP(n.props.isMulti,[],null),{action:"clear",removedValues:l})},n.popValue=function(){var l=n.props.isMulti,c=n.state.selectValue,u=c[c.length-1],d=c.slice(0,c.length-1),p=zP(l,d,d[0]||null);u&&n.onChange(p,{action:"pop-value",removedValue:u})},n.getFocusedOptionId=function(l){return p7(n.state.focusableOptionsWithIds,l)},n.getFocusableOptionsWithIds=function(){return Rxe(jP(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return mRt.apply(void 0,[n.props.classNamePrefix].concat(c))},n.getOptionLabel=function(l){return Exe(n.props,l)},n.getOptionValue=function(l){return OP(n.props,l)},n.getStyles=function(l,c){var u=n.props.unstyled,d=f4t[l](c,u);d.boxSizing="border-box";var p=n.props.styles[l];return p?p(d,c):d},n.getClassNames=function(l,c){var u,d;return(u=(d=n.props.classNames)[l])===null||u===void 0?void 0:u.call(d,c)},n.getElementId=function(l){return"".concat(n.state.instancePrefix,"-").concat(l)},n.getComponents=function(){return LNt(n.props)},n.buildCategorizedOptions=function(){return jP(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return Bxe(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(l,c){n.setState({ariaSelection:ut({value:l},c)})},n.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(l){n.blockOptionHover=!1},n.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&n.onMenuClose():c&&n.openMenu("first"):(c&&(n.openAfterFocus=!0),n.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},n.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!n.props.isDisabled){var c=n.props,u=c.isMulti,d=c.menuIsOpen;n.focusInput(),d?(n.setState({inputIsHiddenAfterUpdate:!u}),n.onMenuClose()):n.openMenu("first"),l.preventDefault()}},n.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(n.clearValue(),l.preventDefault(),n.openAfterFocus=!1,l.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(l){typeof n.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&kP(l.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(l)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(n.initialTouchX=u.clientX,n.initialTouchY=u.clientY,n.userIsDragging=!1)},n.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var d=Math.abs(u.clientX-n.initialTouchX),p=Math.abs(u.clientY-n.initialTouchY),h=5;n.userIsDragging=d>h||p>h}},n.onTouchEnd=function(l){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(l.target)&&n.menuListRef&&!n.menuListRef.contains(l.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(l){n.userIsDragging||n.onControlMouseDown(l)},n.onClearIndicatorTouchEnd=function(l){n.userIsDragging||n.onClearIndicatorMouseDown(l)},n.onDropdownIndicatorTouchEnd=function(l){n.userIsDragging||n.onDropdownIndicatorMouseDown(l)},n.handleInputChange=function(l){var c=n.props.inputValue,u=l.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(u,{action:"input-change",prevInputValue:c}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(l){n.props.onFocus&&n.props.onFocus(l),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(l){var c=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(l),n.onInputChange("",{action:"input-blur",prevInputValue:c}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(l){if(!(n.blockOptionHover||n.state.focusedOption===l)){var c=n.getFocusableOptions(),u=c.indexOf(l);n.setState({focusedOption:l,focusedOptionId:u>-1?n.getFocusedOptionId(l):null})}},n.shouldHideSelectedOptions=function(){return Ixe(n.props)},n.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),n.focus()},n.onKeyDown=function(l){var c=n.props,u=c.isMulti,d=c.backspaceRemovesValue,p=c.escapeClearsValue,h=c.inputValue,f=c.isClearable,b=c.isDisabled,g=c.menuIsOpen,m=c.onKeyDown,k=c.tabSelectsValue,x=c.openMenuOnFocus,j=n.state,w=j.focusedOption,S=j.focusedValue,O=j.selectValue;if(!b&&!(typeof m=="function"&&(m(l),l.defaultPrevented))){switch(n.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||h)return;n.focusValue("previous");break;case"ArrowRight":if(!u||h)return;n.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(S)n.removeValue(S);else{if(!d)return;u?n.popValue():f&&n.clearValue()}break;case"Tab":if(n.isComposing||l.shiftKey||!g||!k||!w||x&&n.isOptionSelected(w,O))return;n.selectOption(w);break;case"Enter":if(l.keyCode===229)break;if(g){if(!w||n.isComposing)return;n.selectOption(w);break}return;case"Escape":g?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:h}),n.onMenuClose()):f&&p&&n.clearValue();break;case" ":if(h)return;if(!g){n.openMenu("first");break}if(!w)return;n.selectOption(w);break;case"ArrowUp":g?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":g?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!g)return;n.focusOption("pageup");break;case"PageDown":if(!g)return;n.focusOption("pagedown");break;case"Home":if(!g)return;n.focusOption("first");break;case"End":if(!g)return;n.focusOption("last");break;default:return}l.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++j4t),n.state.selectValue=rxe(r.value),r.menuIsOpen&&n.state.selectValue.length){var i=n.getFocusableOptionsWithIds(),o=n.buildFocusableOptions(),s=o.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=i,n.state.focusedOption=o[s],n.state.focusedOptionId=p7(i,o[s])}return n}return n$(a,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&oxe(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var n=this.props,i=n.isDisabled,o=n.menuIsOpen,s=this.state.isFocused;(s&&!i&&r.isDisabled||s&&o&&!r.menuIsOpen)&&this.focusInput(),s&&i&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!i&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(oxe(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,n){this.props.onInputChange(r,n)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var n=this,i=this.state,o=i.selectValue,s=i.isFocused,l=this.buildFocusableOptions(),c=r==="first"?0:l.length-1;if(!this.props.isMulti){var u=l.indexOf(o[0]);u>-1&&(c=u)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return n.onMenuOpen()})}},{key:"focusValue",value:function(r){var n=this.state,i=n.selectValue,o=n.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=i.indexOf(o);o||(s=-1);var l=i.length-1,c=-1;if(i.length){switch(r){case"previous":s===0?c=0:s===-1?c=l:c=s-1;break;case"next":s>-1&&s<l&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:i[c]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",n=this.props.pageSize,i=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var s=0,l=o.indexOf(i);i||(l=-1),r==="up"?s=l>0?l-1:o.length-1:r==="down"?s=(l+1)%o.length:r==="pageup"?(s=l-n,s<0&&(s=0)):r==="pagedown"?(s=l+n,s>o.length-1&&(s=o.length-1)):r==="last"&&(s=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(d7):ut(ut({},d7),this.props.theme):d7}},{key:"getCommonProps",value:function(){var r=this.clearValue,n=this.cx,i=this.getStyles,o=this.getClassNames,s=this.getValue,l=this.selectOption,c=this.setValue,u=this.props,d=u.isMulti,p=u.isRtl,h=u.options,f=this.hasValue();return{clearValue:r,cx:n,getStyles:i,getClassNames:o,getValue:s,hasValue:f,isMulti:d,isRtl:p,options:h,selectOption:l,selectProps:u,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,n=r.isClearable,i=r.isMulti;return n===void 0?i:n}},{key:"isOptionDisabled",value:function(r,n){return Lxe(this.props,r,n)}},{key:"isOptionSelected",value:function(r,n){return Dxe(this.props,r,n)}},{key:"filterOption",value:function(r,n){return $xe(this.props,r,n)}},{key:"formatOptionLabel",value:function(r,n){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(r,{context:n,inputValue:i,selectValue:o})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,n=r.isDisabled,i=r.isSearchable,o=r.inputId,s=r.inputValue,l=r.tabIndex,c=r.form,u=r.menuIsOpen,d=r.required,p=this.getComponents(),h=p.Input,f=this.state,b=f.inputIsHidden,g=f.ariaSelection,m=this.commonProps,k=o||this.getElementId("input"),x=ut(ut(ut({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?g?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?K.createElement(h,Lt({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:k,innerRef:this.getInputRef,isDisabled:n,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:s},x)):K.createElement(QNt,Lt({id:k,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:bP,onFocus:this.onInputFocus,disabled:n,tabIndex:l,inputMode:"none",form:c,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,n=this.getComponents(),i=n.MultiValue,o=n.MultiValueContainer,s=n.MultiValueLabel,l=n.MultiValueRemove,c=n.SingleValue,u=n.Placeholder,d=this.commonProps,p=this.props,h=p.controlShouldRenderValue,f=p.isDisabled,b=p.isMulti,g=p.inputValue,m=p.placeholder,k=this.state,x=k.selectValue,j=k.focusedValue,w=k.isFocused;if(!this.hasValue()||!h)return g?null:K.createElement(u,Lt({},d,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),m);if(b)return x.map(function(O,M){var T=O===j,N="".concat(r.getOptionLabel(O),"-").concat(r.getOptionValue(O));return K.createElement(i,Lt({},d,{components:{Container:o,Label:s,Remove:l},isFocused:T,isDisabled:f,key:N,index:M,removeProps:{onClick:function(){return r.removeValue(O)},onTouchEnd:function(){return r.removeValue(O)},onMouseDown:function(G){G.preventDefault()}},data:O}),r.formatOptionLabel(O,"value"))});if(g)return null;var S=x[0];return K.createElement(c,Lt({},d,{data:S,isDisabled:f}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),n=r.ClearIndicator,i=this.commonProps,o=this.props,s=o.isDisabled,l=o.isLoading,c=this.state.isFocused;if(!this.isClearable()||!n||s||!this.hasValue()||l)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return K.createElement(n,Lt({},i,{innerProps:u,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),n=r.LoadingIndicator,i=this.commonProps,o=this.props,s=o.isDisabled,l=o.isLoading,c=this.state.isFocused;if(!n||!l)return null;var u={"aria-hidden":"true"};return K.createElement(n,Lt({},i,{innerProps:u,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),n=r.DropdownIndicator,i=r.IndicatorSeparator;if(!n||!i)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused;return K.createElement(i,Lt({},o,{isDisabled:s,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),n=r.DropdownIndicator;if(!n)return null;var i=this.commonProps,o=this.props.isDisabled,s=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return K.createElement(n,Lt({},i,{innerProps:l,isDisabled:o,isFocused:s}))}},{key:"renderMenu",value:function(){var r=this,n=this.getComponents(),i=n.Group,o=n.GroupHeading,s=n.Menu,l=n.MenuList,c=n.MenuPortal,u=n.LoadingMessage,d=n.NoOptionsMessage,p=n.Option,h=this.commonProps,f=this.state.focusedOption,b=this.props,g=b.captureMenuScroll,m=b.inputValue,k=b.isLoading,x=b.loadingMessage,j=b.minMenuHeight,w=b.maxMenuHeight,S=b.menuIsOpen,O=b.menuPlacement,M=b.menuPosition,T=b.menuPortalTarget,N=b.menuShouldBlockScroll,G=b.menuShouldScrollIntoView,L=b.noOptionsMessage,J=b.onMenuScrollToTop,I=b.onMenuScrollToBottom;if(!S)return null;var X=function(D,W){var $=D.type,P=D.data,R=D.isDisabled,H=D.isSelected,ae=D.label,U=D.value,pe=f===P,Z=R?void 0:function(){return r.onOptionHover(P)},A=R?void 0:function(){return r.selectOption(P)},E="".concat(r.getElementId("option"),"-").concat(W),te={id:E,onClick:A,onMouseMove:Z,onMouseOver:Z,tabIndex:-1,role:"option","aria-selected":r.isAppleDevice?void 0:H};return K.createElement(p,Lt({},h,{innerProps:te,data:P,isDisabled:R,isSelected:H,key:E,label:ae,type:$,value:U,isFocused:pe,innerRef:pe?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(D.data,"menu"))},re;if(this.hasOptions())re=this.getCategorizedOptions().map(function(D){if(D.type==="group"){var W=D.data,$=D.options,P=D.index,R="".concat(r.getElementId("group"),"-").concat(P),H="".concat(R,"-heading");return K.createElement(i,Lt({},h,{key:R,data:W,options:$,Heading:o,headingProps:{id:H,data:D.data},label:r.formatGroupLabel(D.data)}),D.options.map(function(ae){return X(ae,"".concat(P,"-").concat(ae.index))}))}else if(D.type==="option")return X(D,"".concat(D.index))});else if(k){var le=x({inputValue:m});if(le===null)return null;re=K.createElement(u,h,le)}else{var ie=L({inputValue:m});if(ie===null)return null;re=K.createElement(d,h,ie)}var he={minMenuHeight:j,maxMenuHeight:w,menuPlacement:O,menuPosition:M,menuShouldScrollIntoView:G},F=K.createElement(MRt,Lt({},h,he),function(D){var W=D.ref,$=D.placerProps,P=$.placement,R=$.maxHeight;return K.createElement(s,Lt({},h,he,{innerRef:W,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:k,placement:P}),K.createElement(r4t,{captureEnabled:g,onTopArrive:J,onBottomArrive:I,lockEnabled:N},function(H){return K.createElement(l,Lt({},h,{innerRef:function(ae){r.getMenuListRef(ae),H(ae)},innerProps:{role:"listbox","aria-multiselectable":h.isMulti,id:r.getElementId("listbox")},isLoading:k,maxHeight:R,focusedOption:f}),re)}))});return T||M==="fixed"?K.createElement(c,Lt({},h,{appendTo:T,controlElement:this.controlRef,menuPlacement:O,menuPosition:M}),F):F}},{key:"renderFormField",value:function(){var r=this,n=this.props,i=n.delimiter,o=n.isDisabled,s=n.isMulti,l=n.name,c=n.required,u=this.state.selectValue;if(c&&!this.hasValue()&&!o)return K.createElement(o4t,{name:l,onFocus:this.onValueInputFocus});if(!(!l||o))if(s)if(i){var d=u.map(function(f){return r.getOptionValue(f)}).join(i);return K.createElement("input",{name:l,type:"hidden",value:d})}else{var p=u.length>0?u.map(function(f,b){return K.createElement("input",{key:"i-".concat(b),name:l,type:"hidden",value:r.getOptionValue(f)})}):K.createElement("input",{name:l,type:"hidden",value:""});return K.createElement("div",null,p)}else{var h=u[0]?this.getOptionValue(u[0]):"";return K.createElement("input",{name:l,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,n=this.state,i=n.ariaSelection,o=n.focusedOption,s=n.focusedValue,l=n.isFocused,c=n.selectValue,u=this.getFocusableOptions();return K.createElement(GNt,Lt({},r,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:o,focusedValue:s,isFocused:l,selectValue:c,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),n=r.Control,i=r.IndicatorsContainer,o=r.SelectContainer,s=r.ValueContainer,l=this.props,c=l.className,u=l.id,d=l.isDisabled,p=l.menuIsOpen,h=this.state.isFocused,f=this.commonProps=this.getCommonProps();return K.createElement(o,Lt({},f,{className:c,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:h}),this.renderLiveRegion(),K.createElement(n,Lt({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:h,menuIsOpen:p}),K.createElement(s,Lt({},f,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),K.createElement(i,Lt({},f,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,n){var i=n.prevProps,o=n.clearFocusValueOnUpdate,s=n.inputIsHiddenAfterUpdate,l=n.ariaSelection,c=n.isFocused,u=n.prevWasFocused,d=n.instancePrefix,p=r.options,h=r.value,f=r.menuIsOpen,b=r.inputValue,g=r.isMulti,m=rxe(h),k={};if(i&&(h!==i.value||p!==i.options||f!==i.menuIsOpen||b!==i.inputValue)){var x=f?w4t(r,m):[],j=f?Rxe(jP(r,m),"".concat(d,"-option")):[],w=o?z4t(n,m):null,S=S4t(n,x),O=p7(j,S);k={selectValue:m,focusedOption:S,focusedOptionId:O,focusableOptionsWithIds:j,focusedValue:w,clearFocusValueOnUpdate:!1}}var M=s!=null&&r!==i?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},T=l,N=c&&u;return c&&!N&&(T={value:zP(g,m,m[0]||null),options:m,action:"initial-input-focus"},N=!u),l?.action==="initial-input-focus"&&(T=null),ut(ut(ut({},k),M),{},{prevProps:r,ariaSelection:T,prevWasFocused:N})}}]),a}(K.Component);Kxe.defaultProps=x4t;var O4t=K.forwardRef(function(e,t){var a=nBt(e);return K.createElement(Kxe,Lt({ref:t},a))}),C4t=O4t;const A4t=()=>v.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M7 0.875C3.63125 0.875 0.875 3.63125 0.875 7C0.875 10.3687 3.63125 13.125 7 13.125C10.3687 13.125 13.125 10.3687 13.125 7C13.125 3.63125 10.3687 0.875 7 0.875ZM6.51875 3.5H7.48125V8.3125H6.51875V3.5ZM7 10.9375C6.65 10.9375 6.34375 10.6313 6.34375 10.2812C6.34375 9.93125 6.65 9.625 7 9.625C7.35 9.625 7.65625 9.93125 7.65625 10.2812C7.65625 10.6313 7.35 10.9375 7 10.9375Z",fill:"#FFA02E"})}),P4t=()=>v.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M7 0.875C3.5875 0.875 0.875 3.5875 0.875 7C0.875 10.4125 3.5875 13.125 7 13.125C10.4125 13.125 13.125 10.4125 13.125 7C13.125 3.5875 10.4125 0.875 7 0.875ZM9.3625 10.0625L7 7.7L4.6375 10.0625L3.9375 9.3625L6.3 7L3.9375 4.6375L4.6375 3.9375L7 6.3L9.3625 3.9375L10.0625 4.6375L7.7 7L10.0625 9.3625L9.3625 10.0625Z",fill:"#F9316D"})}),Bd=({options:e,isClearable:t=!1,isSearchable:a=!1,isDisabled:r=!1,isMulti:n=!1,isWarning:i=!1,isError:o=!1,withArrow:s=!0,placeholder:l,defaultValue:c,className:u,value:d,ariaLabel:p="select",ariaLabeledBy:h,size:f="medium",menuAlignment:b="left",icon:g,formatGroupLabel:m,onChange:k,dataTestId:x})=>{const j=T=>{const{selectProps:N}=T,{menuIsOpen:G}=N,L=G?v.jsx(zR,{size:"14px"}):v.jsx(Ci,{size:"14px"});return s&&!n?v.jsxs(SP.DropdownIndicator,{...T,children:[i&&v.jsx(A4t,{}),o&&v.jsx(P4t,{}),g||L]}):null},w=T=>v.jsxs(SP.Option,{...T,innerProps:{...T.innerProps,"data-testid":"select-option"},children:[T.children," ",T.isSelected&&v.jsx(cc,{})]}),S=T=>v.jsx(SP.SingleValue,{...T,innerProps:{...T.innerProps,"data-testid":x||"select-singleValue"},children:T.children}),O=K.useMemo(()=>({menu:T=>({...T,maxWidth:"424px",width:"auto",boxShadow:"0px 0px 4px 0px rgba(51, 51, 51, 0.15)",border:"1px solid var(--border-color-secondary)",borderRadius:"var(--border-radius-md)",overflow:"hidden",textOverflow:"ellipsis",zIndex:3,opacity:1,backgroundColor:"var(--bg-color)",minWidth:"max-content",right:b==="right"?0:"unset"})}),[b]),M=K.useMemo(()=>({dropdownIndicator:()=>({display:"none"})}),[]);return v.jsx(C4t,{className:`${u} react-select-${f}`,options:e,onChange:k,isSearchable:a,isClearable:t,isDisabled:r,isMulti:n,placeholder:l,defaultValue:c,value:d,formatGroupLabel:m,components:{Option:w,SingleValue:S,DropdownIndicator:j,IndicatorSeparator:null},styles:{...M4t,...O,...r?M:{}},"aria-label":p,"aria-labelledby":h})},M4t={container:e=>({...e}),control:(e,t)=>({...e,display:"flex",gap:"var(--spacing-xxs)",boxShadow:"none",maxWidth:"424px",overflow:"hidden",textOverflow:"ellipsis",minHeight:"24px",padding:t.isMulti?"0px var(--spacing-unit)":"0px var(--spacing-xs)",alignItems:"center",backgroundColor:t.isDisabled?"var(--layer-color)":"var(--bg-color)",border:"none","&:hover":{cursor:"pointer"}}),singleValue:(e,t)=>({...e,color:t.isDisabled?"var(--color-content-disabled)":"var(--color-content)",fontSize:"var(--font-size-base)",lineHeight:"var(--line-height-base)",overflow:"hidden",margin:0,"&:hover":{color:"var(--text-primary)"}}),dropdownIndicator:(e,t)=>({...e,color:t.isDisabled?"var(--color-content-disabled)":"var(--color-content)",fill:t.isDisabled?"var(--color-content-disabled)":"var(--color-content)",display:"flex",alignItems:"center",alignSelf:"auto",justifyContent:"center",padding:0,gap:"var(--spacing-xs)","&:hover":{color:"var(--icon-color-additional)",fill:"var(--icon-color-additional)"}}),clearIndicator:e=>({...e,padding:0,width:"14px",height:"14px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",fill:"var(--color-content-placeholder)"}),valueContainer:e=>({...e,padding:0,overflow:"visible"}),indicatorsContainer:e=>({...e,gap:"var(--spacing-unit)"}),placeholder:(e,t)=>({...e,color:"var(--color-content-placeholder)",fontSize:"var(--font-size-base)",margin:0,padding:t.isMulti?"0px var(--spacing-xs)":0}),input:e=>({...e,fontSize:"var(--font-size-base)",color:"var(--color-content)",margin:0,padding:0}),group:e=>({...e,paddingLeft:"var(--spacing-xs)"}),menuList:e=>({...e,backgroundColor:"var(--bg-color)",padding:"var(--spacing-unit)",overflowX:"hidden","& > div:not(:last-child)":{margin:"0px 0px calc(var(--spacing-unit)/2) 0px"}}),option:(e,t)=>({...e,minWidth:"max-content",cursor:"pointer",borderRadius:"var(--border-radius-md)",fontSize:"var(--font-size-base)",lineHeight:"var(--line-height-base)",padding:"0px var(--spacing-xs)",minHeight:"32px",color:"var(--color-content)",fill:"var(--color-content)",fontWeight:t.isSelected?"var(--font-weight-medium)":"var(--font-weight-regular)",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"var(--spacing-xs)",backgroundColor:"unset",div:{maxWidth:"400px",textOverflow:"ellipsis",overflow:"hidden"},"&:hover":{backgroundColor:"var(--menu-item-bg-color-hover)"}})},Ui=Y(Qe).attrs({variant:"text",size:"small",tone:"danger"})`