@redocly/openapi-docs 3.12.0-next.15 → 3.12.0-next.16
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.12.0-next.
|
|
5
|
+
* Version: 3.12.0-next.16
|
|
6
6
|
**/function yR(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Zn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xR(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var OR={exports:{}},r1={};/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -6407,10 +6407,6 @@ ${o.indent}`,variablesPrefix:o.variablesPrefix,capitalize:!0,lang:er.PHP});h.len
|
|
|
6407
6407
|
padding-bottom: ${n};
|
|
6408
6408
|
}
|
|
6409
6409
|
`}};
|
|
6410
|
-
& & {
|
|
6411
|
-
padding-left: 0;
|
|
6412
|
-
padding-right: 0;
|
|
6413
|
-
}
|
|
6414
6410
|
|
|
6415
6411
|
&:last-child > ${hl} :last-child,
|
|
6416
6412
|
${hl} article :last-child {
|
|
@@ -9334,7 +9330,7 @@ globstar while`,t,h,r,g,v),this.matchOne(t.slice(h),r.slice(g),n))return this.de
|
|
|
9334
9330
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
9335
9331
|
* @license MIT
|
|
9336
9332
|
*/var rU;function qy(){return rU||(rU=1,function(e){const t=tRe(),r=rRe(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const B=new Uint8Array(1),J={foo:function(){return 42}};return Object.setPrototypeOf(J,Uint8Array.prototype),Object.setPrototypeOf(B,J),B.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(B){if(B>o)throw new RangeError('The value "'+B+'" is invalid for option "size"');const J=new Uint8Array(B);return Object.setPrototypeOf(J,s.prototype),J}function s(B,J,ce){if(typeof B=="number"){if(typeof J=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(B)}return l(B,J,ce)}s.poolSize=8192;function l(B,J,ce){if(typeof B=="string")return h(B,J);if(ArrayBuffer.isView(B))return v(B);if(B==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(be(B,ArrayBuffer)||B&&be(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(be(B,SharedArrayBuffer)||B&&be(B.buffer,SharedArrayBuffer)))return b(B,J,ce);if(typeof B=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const je=B.valueOf&&B.valueOf();if(je!=null&&je!==B)return s.from(je,J,ce);const $e=y(B);if($e)return $e;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof B[Symbol.toPrimitive]=="function")return s.from(B[Symbol.toPrimitive]("string"),J,ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}s.from=function(B,J,ce){return l(B,J,ce)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(B){if(typeof B!="number")throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function u(B,J,ce){return c(B),B<=0?a(B):J!==void 0?typeof ce=="string"?a(B).fill(J,ce):a(B).fill(J):a(B)}s.alloc=function(B,J,ce){return u(B,J,ce)};function d(B){return c(B),a(B<0?0:x(B)|0)}s.allocUnsafe=function(B){return d(B)},s.allocUnsafeSlow=function(B){return d(B)};function h(B,J){if((typeof J!="string"||J==="")&&(J="utf8"),!s.isEncoding(J))throw new TypeError("Unknown encoding: "+J);const ce=k(B,J)|0;let je=a(ce);const $e=je.write(B,J);return $e!==ce&&(je=je.slice(0,$e)),je}function g(B){const J=B.length<0?0:x(B.length)|0,ce=a(J);for(let je=0;je<J;je+=1)ce[je]=B[je]&255;return ce}function v(B){if(be(B,Uint8Array)){const J=new Uint8Array(B);return b(J.buffer,J.byteOffset,J.byteLength)}return g(B)}function b(B,J,ce){if(J<0||B.byteLength<J)throw new RangeError('"offset" is outside of buffer bounds');if(B.byteLength<J+(ce||0))throw new RangeError('"length" is outside of buffer bounds');let je;return J===void 0&&ce===void 0?je=new Uint8Array(B):ce===void 0?je=new Uint8Array(B,J):je=new Uint8Array(B,J,ce),Object.setPrototypeOf(je,s.prototype),je}function y(B){if(s.isBuffer(B)){const J=x(B.length)|0,ce=a(J);return ce.length===0||B.copy(ce,0,0,J),ce}if(B.length!==void 0)return typeof B.length!="number"||xe(B.length)?a(0):g(B);if(B.type==="Buffer"&&Array.isArray(B.data))return g(B.data)}function x(B){if(B>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return B|0}function w(B){return+B!=B&&(B=0),s.alloc(+B)}s.isBuffer=function(B){return B!=null&&B._isBuffer===!0&&B!==s.prototype},s.compare=function(B,J){if(be(B,Uint8Array)&&(B=s.from(B,B.offset,B.byteLength)),be(J,Uint8Array)&&(J=s.from(J,J.offset,J.byteLength)),!s.isBuffer(B)||!s.isBuffer(J))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(B===J)return 0;let ce=B.length,je=J.length;for(let $e=0,Be=Math.min(ce,je);$e<Be;++$e)if(B[$e]!==J[$e]){ce=B[$e],je=J[$e];break}return ce<je?-1:je<ce?1:0},s.isEncoding=function(B){switch(String(B).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(B,J){if(!Array.isArray(B))throw new TypeError('"list" argument must be an Array of Buffers');if(B.length===0)return s.alloc(0);let ce;if(J===void 0)for(J=0,ce=0;ce<B.length;++ce)J+=B[ce].length;const je=s.allocUnsafe(J);let $e=0;for(ce=0;ce<B.length;++ce){let Be=B[ce];if(be(Be,Uint8Array))$e+Be.length>je.length?(s.isBuffer(Be)||(Be=s.from(Be)),Be.copy(je,$e)):Uint8Array.prototype.set.call(je,Be,$e);else if(s.isBuffer(Be))Be.copy(je,$e);else throw new TypeError('"list" argument must be an Array of Buffers');$e+=Be.length}return je};function k(B,J){if(s.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||be(B,ArrayBuffer))return B.byteLength;if(typeof B!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const ce=B.length,je=arguments.length>2&&arguments[2]===!0;if(!je&&ce===0)return 0;let $e=!1;for(;;)switch(J){case"ascii":case"latin1":case"binary":return ce;case"utf8":case"utf-8":return ee(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce*2;case"hex":return ce>>>1;case"base64":return _e(B).length;default:if($e)return je?-1:ee(B).length;J=(""+J).toLowerCase(),$e=!0}}s.byteLength=k;function j(B,J,ce){let je=!1;if((J===void 0||J<0)&&(J=0),J>this.length||((ce===void 0||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0,J>>>=0,ce<=J))return"";for(B||(B="utf8");;)switch(B){case"hex":return se(this,J,ce);case"utf8":case"utf-8":return L(this,J,ce);case"ascii":return te(this,J,ce);case"latin1":case"binary":return K(this,J,ce);case"base64":return N(this,J,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,J,ce);default:if(je)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),je=!0}}s.prototype._isBuffer=!0;function C(B,J,ce){const je=B[J];B[J]=B[ce],B[ce]=je}s.prototype.swap16=function(){const B=this.length;if(B%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let J=0;J<B;J+=2)C(this,J,J+1);return this},s.prototype.swap32=function(){const B=this.length;if(B%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let J=0;J<B;J+=4)C(this,J,J+3),C(this,J+1,J+2);return this},s.prototype.swap64=function(){const B=this.length;if(B%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let J=0;J<B;J+=8)C(this,J,J+7),C(this,J+1,J+6),C(this,J+2,J+5),C(this,J+3,J+4);return this},s.prototype.toString=function(){const B=this.length;return B===0?"":arguments.length===0?L(this,0,B):j.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(B){if(!s.isBuffer(B))throw new TypeError("Argument must be a Buffer");return this===B?!0:s.compare(this,B)===0},s.prototype.inspect=function(){let B="";const J=e.INSPECT_MAX_BYTES;return B=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J&&(B+=" ... "),"<Buffer "+B+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(B,J,ce,je,$e){if(be(B,Uint8Array)&&(B=s.from(B,B.offset,B.byteLength)),!s.isBuffer(B))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof B);if(J===void 0&&(J=0),ce===void 0&&(ce=B?B.length:0),je===void 0&&(je=0),$e===void 0&&($e=this.length),J<0||ce>B.length||je<0||$e>this.length)throw new RangeError("out of range index");if(je>=$e&&J>=ce)return 0;if(je>=$e)return-1;if(J>=ce)return 1;if(J>>>=0,ce>>>=0,je>>>=0,$e>>>=0,this===B)return 0;let Be=$e-je,qe=ce-J;const pt=Math.min(Be,qe),Dt=this.slice(je,$e),wt=B.slice(J,ce);for(let bt=0;bt<pt;++bt)if(Dt[bt]!==wt[bt]){Be=Dt[bt],qe=wt[bt];break}return Be<qe?-1:qe<Be?1:0};function A(B,J,ce,je,$e){if(B.length===0)return-1;if(typeof ce=="string"?(je=ce,ce=0):ce>2147483647?ce=2147483647:ce<-2147483648&&(ce=-2147483648),ce=+ce,xe(ce)&&(ce=$e?0:B.length-1),ce<0&&(ce=B.length+ce),ce>=B.length){if($e)return-1;ce=B.length-1}else if(ce<0)if($e)ce=0;else return-1;if(typeof J=="string"&&(J=s.from(J,je)),s.isBuffer(J))return J.length===0?-1:_(B,J,ce,je,$e);if(typeof J=="number")return J=J&255,typeof Uint8Array.prototype.indexOf=="function"?$e?Uint8Array.prototype.indexOf.call(B,J,ce):Uint8Array.prototype.lastIndexOf.call(B,J,ce):_(B,[J],ce,je,$e);throw new TypeError("val must be string, number or Buffer")}function _(B,J,ce,je,$e){let Be=1,qe=B.length,pt=J.length;if(je!==void 0&&(je=String(je).toLowerCase(),je==="ucs2"||je==="ucs-2"||je==="utf16le"||je==="utf-16le")){if(B.length<2||J.length<2)return-1;Be=2,qe/=2,pt/=2,ce/=2}function Dt(bt,Ut){return Be===1?bt[Ut]:bt.readUInt16BE(Ut*Be)}let wt;if($e){let bt=-1;for(wt=ce;wt<qe;wt++)if(Dt(B,wt)===Dt(J,bt===-1?0:wt-bt)){if(bt===-1&&(bt=wt),wt-bt+1===pt)return bt*Be}else bt!==-1&&(wt-=wt-bt),bt=-1}else for(ce+pt>qe&&(ce=qe-pt),wt=ce;wt>=0;wt--){let bt=!0;for(let Ut=0;Ut<pt;Ut++)if(Dt(B,wt+Ut)!==Dt(J,Ut)){bt=!1;break}if(bt)return wt}return-1}s.prototype.includes=function(B,J,ce){return this.indexOf(B,J,ce)!==-1},s.prototype.indexOf=function(B,J,ce){return A(this,B,J,ce,!0)},s.prototype.lastIndexOf=function(B,J,ce){return A(this,B,J,ce,!1)};function E(B,J,ce,je){ce=Number(ce)||0;const $e=B.length-ce;je?(je=Number(je),je>$e&&(je=$e)):je=$e;const Be=J.length;je>Be/2&&(je=Be/2);let qe;for(qe=0;qe<je;++qe){const pt=parseInt(J.substr(qe*2,2),16);if(xe(pt))return qe;B[ce+qe]=pt}return qe}function P(B,J,ce,je){return Oe(ee(J,B.length-ce),B,ce,je)}function M(B,J,ce,je){return Oe(ae(J),B,ce,je)}function D(B,J,ce,je){return Oe(_e(J),B,ce,je)}function I(B,J,ce,je){return Oe(le(J,B.length-ce),B,ce,je)}s.prototype.write=function(B,J,ce,je){if(J===void 0)je="utf8",ce=this.length,J=0;else if(ce===void 0&&typeof J=="string")je=J,ce=this.length,J=0;else if(isFinite(J))J=J>>>0,isFinite(ce)?(ce=ce>>>0,je===void 0&&(je="utf8")):(je=ce,ce=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $e=this.length-J;if((ce===void 0||ce>$e)&&(ce=$e),B.length>0&&(ce<0||J<0)||J>this.length)throw new RangeError("Attempt to write outside buffer bounds");je||(je="utf8");let Be=!1;for(;;)switch(je){case"hex":return E(this,B,J,ce);case"utf8":case"utf-8":return P(this,B,J,ce);case"ascii":case"latin1":case"binary":return M(this,B,J,ce);case"base64":return D(this,B,J,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,B,J,ce);default:if(Be)throw new TypeError("Unknown encoding: "+je);je=(""+je).toLowerCase(),Be=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function N(B,J,ce){return J===0&&ce===B.length?t.fromByteArray(B):t.fromByteArray(B.slice(J,ce))}function L(B,J,ce){ce=Math.min(B.length,ce);const je=[];let $e=J;for(;$e<ce;){const Be=B[$e];let qe=null,pt=Be>239?4:Be>223?3:Be>191?2:1;if($e+pt<=ce){let Dt,wt,bt,Ut;switch(pt){case 1:Be<128&&(qe=Be);break;case 2:Dt=B[$e+1],(Dt&192)===128&&(Ut=(Be&31)<<6|Dt&63,Ut>127&&(qe=Ut));break;case 3:Dt=B[$e+1],wt=B[$e+2],(Dt&192)===128&&(wt&192)===128&&(Ut=(Be&15)<<12|(Dt&63)<<6|wt&63,Ut>2047&&(Ut<55296||Ut>57343)&&(qe=Ut));break;case 4:Dt=B[$e+1],wt=B[$e+2],bt=B[$e+3],(Dt&192)===128&&(wt&192)===128&&(bt&192)===128&&(Ut=(Be&15)<<18|(Dt&63)<<12|(wt&63)<<6|bt&63,Ut>65535&&Ut<1114112&&(qe=Ut))}}qe===null?(qe=65533,pt=1):qe>65535&&(qe-=65536,je.push(qe>>>10&1023|55296),qe=56320|qe&1023),je.push(qe),$e+=pt}return Y(je)}const H=4096;function Y(B){const J=B.length;if(J<=H)return String.fromCharCode.apply(String,B);let ce="",je=0;for(;je<J;)ce+=String.fromCharCode.apply(String,B.slice(je,je+=H));return ce}function te(B,J,ce){let je="";ce=Math.min(B.length,ce);for(let $e=J;$e<ce;++$e)je+=String.fromCharCode(B[$e]&127);return je}function K(B,J,ce){let je="";ce=Math.min(B.length,ce);for(let $e=J;$e<ce;++$e)je+=String.fromCharCode(B[$e]);return je}function se(B,J,ce){const je=B.length;(!J||J<0)&&(J=0),(!ce||ce<0||ce>je)&&(ce=je);let $e="";for(let Be=J;Be<ce;++Be)$e+=ye[B[Be]];return $e}function U(B,J,ce){const je=B.slice(J,ce);let $e="";for(let Be=0;Be<je.length-1;Be+=2)$e+=String.fromCharCode(je[Be]+je[Be+1]*256);return $e}s.prototype.slice=function(B,J){const ce=this.length;B=~~B,J=J===void 0?ce:~~J,B<0?(B+=ce,B<0&&(B=0)):B>ce&&(B=ce),J<0?(J+=ce,J<0&&(J=0)):J>ce&&(J=ce),J<B&&(J=B);const je=this.subarray(B,J);return Object.setPrototypeOf(je,s.prototype),je};function Q(B,J,ce){if(B%1!==0||B<0)throw new RangeError("offset is not uint");if(B+J>ce)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(B,J,ce){B=B>>>0,J=J>>>0,ce||Q(B,J,this.length);let je=this[B],$e=1,Be=0;for(;++Be<J&&($e*=256);)je+=this[B+Be]*$e;return je},s.prototype.readUintBE=s.prototype.readUIntBE=function(B,J,ce){B=B>>>0,J=J>>>0,ce||Q(B,J,this.length);let je=this[B+--J],$e=1;for(;J>0&&($e*=256);)je+=this[B+--J]*$e;return je},s.prototype.readUint8=s.prototype.readUInt8=function(B,J){return B=B>>>0,J||Q(B,1,this.length),this[B]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(B,J){return B=B>>>0,J||Q(B,2,this.length),this[B]|this[B+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(B,J){return B=B>>>0,J||Q(B,2,this.length),this[B]<<8|this[B+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(B,J){return B=B>>>0,J||Q(B,4,this.length),(this[B]|this[B+1]<<8|this[B+2]<<16)+this[B+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(B,J){return B=B>>>0,J||Q(B,4,this.length),this[B]*16777216+(this[B+1]<<16|this[B+2]<<8|this[B+3])},s.prototype.readBigUInt64LE=Ce(function(B){B=B>>>0,fe(B,"offset");const J=this[B],ce=this[B+7];(J===void 0||ce===void 0)&&F(B,this.length-8);const je=J+this[++B]*2**8+this[++B]*2**16+this[++B]*2**24,$e=this[++B]+this[++B]*2**8+this[++B]*2**16+ce*2**24;return BigInt(je)+(BigInt($e)<<BigInt(32))}),s.prototype.readBigUInt64BE=Ce(function(B){B=B>>>0,fe(B,"offset");const J=this[B],ce=this[B+7];(J===void 0||ce===void 0)&&F(B,this.length-8);const je=J*2**24+this[++B]*2**16+this[++B]*2**8+this[++B],$e=this[++B]*2**24+this[++B]*2**16+this[++B]*2**8+ce;return(BigInt(je)<<BigInt(32))+BigInt($e)}),s.prototype.readIntLE=function(B,J,ce){B=B>>>0,J=J>>>0,ce||Q(B,J,this.length);let je=this[B],$e=1,Be=0;for(;++Be<J&&($e*=256);)je+=this[B+Be]*$e;return $e*=128,je>=$e&&(je-=Math.pow(2,8*J)),je},s.prototype.readIntBE=function(B,J,ce){B=B>>>0,J=J>>>0,ce||Q(B,J,this.length);let je=J,$e=1,Be=this[B+--je];for(;je>0&&($e*=256);)Be+=this[B+--je]*$e;return $e*=128,Be>=$e&&(Be-=Math.pow(2,8*J)),Be},s.prototype.readInt8=function(B,J){return B=B>>>0,J||Q(B,1,this.length),this[B]&128?(255-this[B]+1)*-1:this[B]},s.prototype.readInt16LE=function(B,J){B=B>>>0,J||Q(B,2,this.length);const ce=this[B]|this[B+1]<<8;return ce&32768?ce|4294901760:ce},s.prototype.readInt16BE=function(B,J){B=B>>>0,J||Q(B,2,this.length);const ce=this[B+1]|this[B]<<8;return ce&32768?ce|4294901760:ce},s.prototype.readInt32LE=function(B,J){return B=B>>>0,J||Q(B,4,this.length),this[B]|this[B+1]<<8|this[B+2]<<16|this[B+3]<<24},s.prototype.readInt32BE=function(B,J){return B=B>>>0,J||Q(B,4,this.length),this[B]<<24|this[B+1]<<16|this[B+2]<<8|this[B+3]},s.prototype.readBigInt64LE=Ce(function(B){B=B>>>0,fe(B,"offset");const J=this[B],ce=this[B+7];(J===void 0||ce===void 0)&&F(B,this.length-8);const je=this[B+4]+this[B+5]*2**8+this[B+6]*2**16+(ce<<24);return(BigInt(je)<<BigInt(32))+BigInt(J+this[++B]*2**8+this[++B]*2**16+this[++B]*2**24)}),s.prototype.readBigInt64BE=Ce(function(B){B=B>>>0,fe(B,"offset");const J=this[B],ce=this[B+7];(J===void 0||ce===void 0)&&F(B,this.length-8);const je=(J<<24)+this[++B]*2**16+this[++B]*2**8+this[++B];return(BigInt(je)<<BigInt(32))+BigInt(this[++B]*2**24+this[++B]*2**16+this[++B]*2**8+ce)}),s.prototype.readFloatLE=function(B,J){return B=B>>>0,J||Q(B,4,this.length),r.read(this,B,!0,23,4)},s.prototype.readFloatBE=function(B,J){return B=B>>>0,J||Q(B,4,this.length),r.read(this,B,!1,23,4)},s.prototype.readDoubleLE=function(B,J){return B=B>>>0,J||Q(B,8,this.length),r.read(this,B,!0,52,8)},s.prototype.readDoubleBE=function(B,J){return B=B>>>0,J||Q(B,8,this.length),r.read(this,B,!1,52,8)};function X(B,J,ce,je,$e,Be){if(!s.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>$e||J<Be)throw new RangeError('"value" argument is out of bounds');if(ce+je>B.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(B,J,ce,je){if(B=+B,J=J>>>0,ce=ce>>>0,!je){const qe=Math.pow(2,8*ce)-1;X(this,B,J,ce,qe,0)}let $e=1,Be=0;for(this[J]=B&255;++Be<ce&&($e*=256);)this[J+Be]=B/$e&255;return J+ce},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(B,J,ce,je){if(B=+B,J=J>>>0,ce=ce>>>0,!je){const qe=Math.pow(2,8*ce)-1;X(this,B,J,ce,qe,0)}let $e=ce-1,Be=1;for(this[J+$e]=B&255;--$e>=0&&(Be*=256);)this[J+$e]=B/Be&255;return J+ce},s.prototype.writeUint8=s.prototype.writeUInt8=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,1,255,0),this[J]=B&255,J+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,2,65535,0),this[J]=B&255,this[J+1]=B>>>8,J+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,2,65535,0),this[J]=B>>>8,this[J+1]=B&255,J+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,4,4294967295,0),this[J+3]=B>>>24,this[J+2]=B>>>16,this[J+1]=B>>>8,this[J]=B&255,J+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,4,4294967295,0),this[J]=B>>>24,this[J+1]=B>>>16,this[J+2]=B>>>8,this[J+3]=B&255,J+4};function q(B,J,ce,je,$e){Z(J,je,$e,B,ce,7);let Be=Number(J&BigInt(4294967295));B[ce++]=Be,Be=Be>>8,B[ce++]=Be,Be=Be>>8,B[ce++]=Be,Be=Be>>8,B[ce++]=Be;let qe=Number(J>>BigInt(32)&BigInt(4294967295));return B[ce++]=qe,qe=qe>>8,B[ce++]=qe,qe=qe>>8,B[ce++]=qe,qe=qe>>8,B[ce++]=qe,ce}function W(B,J,ce,je,$e){Z(J,je,$e,B,ce,7);let Be=Number(J&BigInt(4294967295));B[ce+7]=Be,Be=Be>>8,B[ce+6]=Be,Be=Be>>8,B[ce+5]=Be,Be=Be>>8,B[ce+4]=Be;let qe=Number(J>>BigInt(32)&BigInt(4294967295));return B[ce+3]=qe,qe=qe>>8,B[ce+2]=qe,qe=qe>>8,B[ce+1]=qe,qe=qe>>8,B[ce]=qe,ce+8}s.prototype.writeBigUInt64LE=Ce(function(B,J=0){return q(this,B,J,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Ce(function(B,J=0){return W(this,B,J,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(B,J,ce,je){if(B=+B,J=J>>>0,!je){const pt=Math.pow(2,8*ce-1);X(this,B,J,ce,pt-1,-pt)}let $e=0,Be=1,qe=0;for(this[J]=B&255;++$e<ce&&(Be*=256);)B<0&&qe===0&&this[J+$e-1]!==0&&(qe=1),this[J+$e]=(B/Be>>0)-qe&255;return J+ce},s.prototype.writeIntBE=function(B,J,ce,je){if(B=+B,J=J>>>0,!je){const pt=Math.pow(2,8*ce-1);X(this,B,J,ce,pt-1,-pt)}let $e=ce-1,Be=1,qe=0;for(this[J+$e]=B&255;--$e>=0&&(Be*=256);)B<0&&qe===0&&this[J+$e+1]!==0&&(qe=1),this[J+$e]=(B/Be>>0)-qe&255;return J+ce},s.prototype.writeInt8=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,1,127,-128),B<0&&(B=255+B+1),this[J]=B&255,J+1},s.prototype.writeInt16LE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,2,32767,-32768),this[J]=B&255,this[J+1]=B>>>8,J+2},s.prototype.writeInt16BE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,2,32767,-32768),this[J]=B>>>8,this[J+1]=B&255,J+2},s.prototype.writeInt32LE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,4,2147483647,-2147483648),this[J]=B&255,this[J+1]=B>>>8,this[J+2]=B>>>16,this[J+3]=B>>>24,J+4},s.prototype.writeInt32BE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,4,2147483647,-2147483648),B<0&&(B=4294967295+B+1),this[J]=B>>>24,this[J+1]=B>>>16,this[J+2]=B>>>8,this[J+3]=B&255,J+4},s.prototype.writeBigInt64LE=Ce(function(B,J=0){return q(this,B,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Ce(function(B,J=0){return W(this,B,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function re(B,J,ce,je,$e,Be){if(ce+je>B.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("Index out of range")}function G(B,J,ce,je,$e){return J=+J,ce=ce>>>0,$e||re(B,J,ce,4),r.write(B,J,ce,je,23,4),ce+4}s.prototype.writeFloatLE=function(B,J,ce){return G(this,B,J,!0,ce)},s.prototype.writeFloatBE=function(B,J,ce){return G(this,B,J,!1,ce)};function oe(B,J,ce,je,$e){return J=+J,ce=ce>>>0,$e||re(B,J,ce,8),r.write(B,J,ce,je,52,8),ce+8}s.prototype.writeDoubleLE=function(B,J,ce){return oe(this,B,J,!0,ce)},s.prototype.writeDoubleBE=function(B,J,ce){return oe(this,B,J,!1,ce)},s.prototype.copy=function(B,J,ce,je){if(!s.isBuffer(B))throw new TypeError("argument should be a Buffer");if(ce||(ce=0),!je&&je!==0&&(je=this.length),J>=B.length&&(J=B.length),J||(J=0),je>0&&je<ce&&(je=ce),je===ce||B.length===0||this.length===0)return 0;if(J<0)throw new RangeError("targetStart out of bounds");if(ce<0||ce>=this.length)throw new RangeError("Index out of range");if(je<0)throw new RangeError("sourceEnd out of bounds");je>this.length&&(je=this.length),B.length-J<je-ce&&(je=B.length-J+ce);const $e=je-ce;return this===B&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(J,ce,je):Uint8Array.prototype.set.call(B,this.subarray(ce,je),J),$e},s.prototype.fill=function(B,J,ce,je){if(typeof B=="string"){if(typeof J=="string"?(je=J,J=0,ce=this.length):typeof ce=="string"&&(je=ce,ce=this.length),je!==void 0&&typeof je!="string")throw new TypeError("encoding must be a string");if(typeof je=="string"&&!s.isEncoding(je))throw new TypeError("Unknown encoding: "+je);if(B.length===1){const Be=B.charCodeAt(0);(je==="utf8"&&Be<128||je==="latin1")&&(B=Be)}}else typeof B=="number"?B=B&255:typeof B=="boolean"&&(B=Number(B));if(J<0||this.length<J||this.length<ce)throw new RangeError("Out of range index");if(ce<=J)return this;J=J>>>0,ce=ce===void 0?this.length:ce>>>0,B||(B=0);let $e;if(typeof B=="number")for($e=J;$e<ce;++$e)this[$e]=B;else{const Be=s.isBuffer(B)?B:s.from(B,je),qe=Be.length;if(qe===0)throw new TypeError('The value "'+B+'" is invalid for argument "value"');for($e=0;$e<ce-J;++$e)this[$e+J]=Be[$e%qe]}return this};const ne={};function ve(B,J,ce){ne[B]=class extends ce{constructor(){super(),Object.defineProperty(this,"message",{value:J.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${B}]`,delete this.name}get code(){return B}set code(je){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:je,writable:!0})}toString(){return`${this.name} [${B}]: ${this.message}`}}}ve("ERR_BUFFER_OUT_OF_BOUNDS",function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ve("ERR_INVALID_ARG_TYPE",function(B,J){return`The "${B}" argument must be of type number. Received type ${typeof J}`},TypeError),ve("ERR_OUT_OF_RANGE",function(B,J,ce){let je=`The value of "${B}" is out of range.`,$e=ce;return Number.isInteger(ce)&&Math.abs(ce)>2**32?$e=me(String(ce)):typeof ce=="bigint"&&($e=String(ce),(ce>BigInt(2)**BigInt(32)||ce<-(BigInt(2)**BigInt(32)))&&($e=me($e)),$e+="n"),je+=` It must be ${J}. Received ${$e}`,je},RangeError);function me(B){let J="",ce=B.length;const je=B[0]==="-"?1:0;for(;ce>=je+4;ce-=3)J=`_${B.slice(ce-3,ce)}${J}`;return`${B.slice(0,ce)}${J}`}function T(B,J,ce){fe(J,"offset"),(B[J]===void 0||B[J+ce]===void 0)&&F(J,B.length-(ce+1))}function Z(B,J,ce,je,$e,Be){if(B>ce||B<J){const qe=typeof J=="bigint"?"n":"";let pt;throw J===0||J===BigInt(0)?pt=`>= 0${qe} and < 2${qe} ** ${(Be+1)*8}${qe}`:pt=`>= -(2${qe} ** ${(Be+1)*8-1}${qe}) and < 2 ** ${(Be+1)*8-1}${qe}`,new ne.ERR_OUT_OF_RANGE("value",pt,B)}T(je,$e,Be)}function fe(B,J){if(typeof B!="number")throw new ne.ERR_INVALID_ARG_TYPE(J,"number",B)}function F(B,J,ce){throw Math.floor(B)!==B?(fe(B,ce),new ne.ERR_OUT_OF_RANGE("offset","an integer",B)):J<0?new ne.ERR_BUFFER_OUT_OF_BOUNDS:new ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${J}`,B)}const he=/[^+/0-9A-Za-z-_]/g;function ue(B){if(B=B.split("=")[0],B=B.trim().replace(he,""),B.length<2)return"";for(;B.length%4!==0;)B=B+"=";return B}function ee(B,J){J=J||1/0;let ce;const je=B.length;let $e=null;const Be=[];for(let qe=0;qe<je;++qe){if(ce=B.charCodeAt(qe),ce>55295&&ce<57344){if(!$e){if(ce>56319){(J-=3)>-1&&Be.push(239,191,189);continue}else if(qe+1===je){(J-=3)>-1&&Be.push(239,191,189);continue}$e=ce;continue}if(ce<56320){(J-=3)>-1&&Be.push(239,191,189),$e=ce;continue}ce=($e-55296<<10|ce-56320)+65536}else $e&&(J-=3)>-1&&Be.push(239,191,189);if($e=null,ce<128){if((J-=1)<0)break;Be.push(ce)}else if(ce<2048){if((J-=2)<0)break;Be.push(ce>>6|192,ce&63|128)}else if(ce<65536){if((J-=3)<0)break;Be.push(ce>>12|224,ce>>6&63|128,ce&63|128)}else if(ce<1114112){if((J-=4)<0)break;Be.push(ce>>18|240,ce>>12&63|128,ce>>6&63|128,ce&63|128)}else throw new Error("Invalid code point")}return Be}function ae(B){const J=[];for(let ce=0;ce<B.length;++ce)J.push(B.charCodeAt(ce)&255);return J}function le(B,J){let ce,je,$e;const Be=[];for(let qe=0;qe<B.length&&!((J-=2)<0);++qe)ce=B.charCodeAt(qe),je=ce>>8,$e=ce%256,Be.push($e),Be.push(je);return Be}function _e(B){return t.toByteArray(ue(B))}function Oe(B,J,ce,je){let $e;for($e=0;$e<je&&!($e+ce>=J.length||$e>=B.length);++$e)J[$e+ce]=B[$e];return $e}function be(B,J){return B instanceof J||B!=null&&B.constructor!=null&&B.constructor.name!=null&&B.constructor.name===J.name}function xe(B){return B!==B}const ye=function(){const B="0123456789abcdef",J=new Array(256);for(let ce=0;ce<16;++ce){const je=ce*16;for(let $e=0;$e<16;++$e)J[je+$e]=B[ce]+B[$e]}return J}();function Ce(B){return typeof BigInt>"u"?He:B}function He(){throw new Error("BigInt not supported")}}(KZ)),KZ}const nRe={isatty:()=>{},createRequire:()=>{}},oRe=Object.freeze(Object.defineProperty({__proto__:null,default:nRe},Symbol.toStringTag,{value:"Module"})),Ih=xR(oRe);var Nd={},Zy={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */var iRe=Zy.exports,nU;function aRe(){return nU||(nU=1,function(e,t){(function(r){var n=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,i=typeof globalThis=="object"&&globalThis;(i.global===i||i.window===i||i.self===i)&&(r=i);var a,s=2147483647,l=36,c=1,u=26,d=38,h=700,g=72,v=128,b="-",y=/^xn--/,x=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,k={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,C=Math.floor,A=String.fromCharCode,_;function E(U){throw RangeError(k[U])}function P(U,Q){for(var X=U.length,q=[];X--;)q[X]=Q(U[X]);return q}function M(U,Q){var X=U.split("@"),q="";X.length>1&&(q=X[0]+"@",U=X[1]),U=U.replace(w,".");var W=U.split("."),re=P(W,Q).join(".");return q+re}function D(U){for(var Q=[],X=0,q=U.length,W,re;X<q;)W=U.charCodeAt(X++),W>=55296&&W<=56319&&X<q?(re=U.charCodeAt(X++),(re&64512)==56320?Q.push(((W&1023)<<10)+(re&1023)+65536):(Q.push(W),X--)):Q.push(W);return Q}function I(U){return P(U,function(Q){var X="";return Q>65535&&(Q-=65536,X+=A(Q>>>10&1023|55296),Q=56320|Q&1023),X+=A(Q),X}).join("")}function N(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:l}function L(U,Q){return U+22+75*(U<26)-((Q!=0)<<5)}function H(U,Q,X){var q=0;for(U=X?C(U/h):U>>1,U+=C(U/Q);U>j*u>>1;q+=l)U=C(U/j);return C(q+(j+1)*U/(U+d))}function Y(U){var Q=[],X=U.length,q,W=0,re=v,G=g,oe,ne,ve,me,T,Z,fe,F,he;for(oe=U.lastIndexOf(b),oe<0&&(oe=0),ne=0;ne<oe;++ne)U.charCodeAt(ne)>=128&&E("not-basic"),Q.push(U.charCodeAt(ne));for(ve=oe>0?oe+1:0;ve<X;){for(me=W,T=1,Z=l;ve>=X&&E("invalid-input"),fe=N(U.charCodeAt(ve++)),(fe>=l||fe>C((s-W)/T))&&E("overflow"),W+=fe*T,F=Z<=G?c:Z>=G+u?u:Z-G,!(fe<F);Z+=l)he=l-F,T>C(s/he)&&E("overflow"),T*=he;q=Q.length+1,G=H(W-me,q,me==0),C(W/q)>s-re&&E("overflow"),re+=C(W/q),W%=q,Q.splice(W++,0,re)}return I(Q)}function te(U){var Q,X,q,W,re,G,oe,ne,ve,me,T,Z=[],fe,F,he,ue;for(U=D(U),fe=U.length,Q=v,X=0,re=g,G=0;G<fe;++G)T=U[G],T<128&&Z.push(A(T));for(q=W=Z.length,W&&Z.push(b);q<fe;){for(oe=s,G=0;G<fe;++G)T=U[G],T>=Q&&T<oe&&(oe=T);for(F=q+1,oe-Q>C((s-X)/F)&&E("overflow"),X+=(oe-Q)*F,Q=oe,G=0;G<fe;++G)if(T=U[G],T<Q&&++X>s&&E("overflow"),T==Q){for(ne=X,ve=l;me=ve<=re?c:ve>=re+u?u:ve-re,!(ne<me);ve+=l)ue=ne-me,he=l-me,Z.push(A(L(me+ue%he,0))),ne=C(ue/he);Z.push(A(L(ne,0))),re=H(X,F,q==W),X=0,++q}++X,++Q}return Z.join("")}function K(U){return M(U,function(Q){return y.test(Q)?Y(Q.slice(4).toLowerCase()):Q})}function se(U){return M(U,function(Q){return x.test(Q)?"xn--"+te(Q):Q})}if(a={version:"1.3.2",ucs2:{decode:D,encode:I},decode:Y,encode:te,toASCII:se,toUnicode:K},n&&o)if(e.exports==n)o.exports=a;else for(_ in a)a.hasOwnProperty(_)&&(n[_]=a[_]);else r.punycode=a})(iRe)}(Zy,Zy.exports)),Zy.exports}var oU,iU;function sRe(){return iU||(iU=1,oU={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}}),oU}var cm={},U7,aU;function lRe(){if(aU)return U7;aU=1;function e(t,r){return Object.prototype.hasOwnProperty.call(t,r)}return U7=function(t,r,n,o){r=r||"&",n=n||"=";var i={};if(typeof t!="string"||t.length===0)return i;var a=/\+/g;t=t.split(r);var s=1e3;o&&typeof o.maxKeys=="number"&&(s=o.maxKeys);var l=t.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u=t[c].replace(a,"%20"),d=u.indexOf(n),h,g,v,b;d>=0?(h=u.substr(0,d),g=u.substr(d+1)):(h=u,g=""),v=decodeURIComponent(h),b=decodeURIComponent(g),e(i,v)?Array.isArray(i[v])?i[v].push(b):i[v]=[i[v],b]:i[v]=b}return i},U7}var H7,sU;function cRe(){if(sU)return H7;sU=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 H7=function(t,r,n,o){return r=r||"&",n=n||"=",t===null&&(t=void 0),typeof t=="object"?Object.keys(t).map(function(i){var a=encodeURIComponent(e(i))+n;return Array.isArray(t[i])?t[i].map(function(s){return a+encodeURIComponent(e(s))}).join(r):a+encodeURIComponent(e(t[i]))}).join(r):o?encodeURIComponent(e(o))+n+encodeURIComponent(e(t)):""},H7}var lU;function uRe(){return lU||(lU=1,cm.decode=cm.parse=lRe(),cm.encode=cm.stringify=cRe()),cm}var cU;function W7(){if(cU)return Nd;cU=1;var e=aRe(),t=sRe();Nd.parse=w,Nd.resolve=j,Nd.resolveObject=C,Nd.format=k,Nd.Url=r;function r(){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 n=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,a=["<",">",'"',"`"," ","\r",`
|
|
9337
|
-
`," "],s=["{","}","|","\\","^","`"].concat(a),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=uRe();function w(A,_,E){if(A&&t.isObject(A)&&A instanceof r)return A;var P=new r;return P.parse(A,_,E),P}r.prototype.parse=function(A,_,E){if(!t.isString(A))throw new TypeError("Parameter 'url' must be a string, not "+typeof A);var P=A.indexOf("?"),M=P!==-1&&P<A.indexOf("#")?"?":"#",D=A.split(M),I=/\\/g;D[0]=D[0].replace(I,"/"),A=D.join(M);var N=A;if(N=N.trim(),!E&&A.split("#").length===1){var L=i.exec(N);if(L)return this.path=N,this.href=N,this.pathname=L[1],L[2]?(this.search=L[2],_?this.query=x.parse(this.search.substr(1)):this.query=this.search.substr(1)):_&&(this.search="",this.query={}),this}var H=n.exec(N);if(H){H=H[0];var Y=H.toLowerCase();this.protocol=Y,N=N.substr(H.length)}if(E||H||N.match(/^\/\/[^@\/]+@[^@\/]+/)){var te=N.substr(0,2)==="//";te&&!(H&&b[H])&&(N=N.substr(2),this.slashes=!0)}if(!b[H]&&(te||H&&!y[H])){for(var K=-1,se=0;se<u.length;se++){var U=N.indexOf(u[se]);U!==-1&&(K===-1||U<K)&&(K=U)}var Q,X;K===-1?X=N.lastIndexOf("@"):X=N.lastIndexOf("@",K),X!==-1&&(Q=N.slice(0,X),N=N.slice(X+1),this.auth=decodeURIComponent(Q)),K=-1;for(var se=0;se<c.length;se++){var U=N.indexOf(c[se]);U!==-1&&(K===-1||U<K)&&(K=U)}K===-1&&(K=N.length),this.host=N.slice(0,K),N=N.slice(K),this.parseHost(),this.hostname=this.hostname||"";var q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!q)for(var W=this.hostname.split(/\./),se=0,re=W.length;se<re;se++){var G=W[se];if(G&&!G.match(h)){for(var oe="",ne=0,ve=G.length;ne<ve;ne++)G.charCodeAt(ne)>127?oe+="x":oe+=G[ne];if(!oe.match(h)){var me=W.slice(0,se),T=W.slice(se+1),Z=G.match(g);Z&&(me.push(Z[1]),T.unshift(Z[2])),T.length&&(N="/"+T.join(".")+N),this.hostname=me.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),q||(this.hostname=e.toASCII(this.hostname));var fe=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+fe,this.href+=this.host,q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),N[0]!=="/"&&(N="/"+N))}if(!v[Y])for(var se=0,re=l.length;se<re;se++){var he=l[se];if(N.indexOf(he)!==-1){var ue=encodeURIComponent(he);ue===he&&(ue=escape(he)),N=N.split(he).join(ue)}}var ee=N.indexOf("#");ee!==-1&&(this.hash=N.substr(ee),N=N.slice(0,ee));var ae=N.indexOf("?");if(ae!==-1?(this.search=N.substr(ae),this.query=N.substr(ae+1),_&&(this.query=x.parse(this.query)),N=N.slice(0,ae)):_&&(this.search="",this.query={}),N&&(this.pathname=N),y[Y]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var fe=this.pathname||"",le=this.search||"";this.path=fe+le}return this.href=this.format(),this};function k(A){return t.isString(A)&&(A=w(A)),A instanceof r?A.format():r.prototype.format.call(A)}r.prototype.format=function(){var A=this.auth||"";A&&(A=encodeURIComponent(A),A=A.replace(/%3A/i,":"),A+="@");var _=this.protocol||"",E=this.pathname||"",P=this.hash||"",M=!1,D="";this.host?M=A+this.host:this.hostname&&(M=A+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(M+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(D=x.stringify(this.query));var I=this.search||D&&"?"+D||"";return _&&_.substr(-1)!==":"&&(_+=":"),this.slashes||(!_||y[_])&&M!==!1?(M="//"+(M||""),E&&E.charAt(0)!=="/"&&(E="/"+E)):M||(M=""),P&&P.charAt(0)!=="#"&&(P="#"+P),I&&I.charAt(0)!=="?"&&(I="?"+I),E=E.replace(/[?#]/g,function(N){return encodeURIComponent(N)}),I=I.replace("#","%23"),_+M+E+I+P};function j(A,_){return w(A,!1,!0).resolve(_)}r.prototype.resolve=function(A){return this.resolveObject(w(A,!1,!0)).format()};function C(A,_){return A?w(A,!1,!0).resolveObject(_):_}return r.prototype.resolveObject=function(A){if(t.isString(A)){var _=new r;_.parse(A,!1,!0),A=_}for(var E=new r,P=Object.keys(this),M=0;M<P.length;M++){var D=P[M];E[D]=this[D]}if(E.hash=A.hash,A.href==="")return E.href=E.format(),E;if(A.slashes&&!A.protocol){for(var I=Object.keys(A),N=0;N<I.length;N++){var L=I[N];L!=="protocol"&&(E[L]=A[L])}return y[E.protocol]&&E.hostname&&!E.pathname&&(E.path=E.pathname="/"),E.href=E.format(),E}if(A.protocol&&A.protocol!==E.protocol){if(!y[A.protocol]){for(var H=Object.keys(A),Y=0;Y<H.length;Y++){var te=H[Y];E[te]=A[te]}return E.href=E.format(),E}if(E.protocol=A.protocol,!A.host&&!b[A.protocol]){for(var re=(A.pathname||"").split("/");re.length&&!(A.host=re.shift()););A.host||(A.host=""),A.hostname||(A.hostname=""),re[0]!==""&&re.unshift(""),re.length<2&&re.unshift(""),E.pathname=re.join("/")}else E.pathname=A.pathname;if(E.search=A.search,E.query=A.query,E.host=A.host||"",E.auth=A.auth,E.hostname=A.hostname||A.host,E.port=A.port,E.pathname||E.search){var K=E.pathname||"",se=E.search||"";E.path=K+se}return E.slashes=E.slashes||A.slashes,E.href=E.format(),E}var U=E.pathname&&E.pathname.charAt(0)==="/",Q=A.host||A.pathname&&A.pathname.charAt(0)==="/",X=Q||U||E.host&&A.pathname,q=X,W=E.pathname&&E.pathname.split("/")||[],re=A.pathname&&A.pathname.split("/")||[],G=E.protocol&&!y[E.protocol];if(G&&(E.hostname="",E.port=null,E.host&&(W[0]===""?W[0]=E.host:W.unshift(E.host)),E.host="",A.protocol&&(A.hostname=null,A.port=null,A.host&&(re[0]===""?re[0]=A.host:re.unshift(A.host)),A.host=null),X=X&&(re[0]===""||W[0]==="")),Q)E.host=A.host||A.host===""?A.host:E.host,E.hostname=A.hostname||A.hostname===""?A.hostname:E.hostname,E.search=A.search,E.query=A.query,W=re;else if(re.length)W||(W=[]),W.pop(),W=W.concat(re),E.search=A.search,E.query=A.query;else if(!t.isNullOrUndefined(A.search)){if(G){E.hostname=E.host=W.shift();var oe=E.host&&E.host.indexOf("@")>0?E.host.split("@"):!1;oe&&(E.auth=oe.shift(),E.host=E.hostname=oe.shift())}return E.search=A.search,E.query=A.query,(!t.isNull(E.pathname)||!t.isNull(E.search))&&(E.path=(E.pathname?E.pathname:"")+(E.search?E.search:"")),E.href=E.format(),E}if(!W.length)return E.pathname=null,E.search?E.path="/"+E.search:E.path=null,E.href=E.format(),E;for(var ne=W.slice(-1)[0],ve=(E.host||A.host||W.length>1)&&(ne==="."||ne==="..")||ne==="",me=0,T=W.length;T>=0;T--)ne=W[T],ne==="."?W.splice(T,1):ne===".."?(W.splice(T,1),me++):me&&(W.splice(T,1),me--);if(!X&&!q)for(;me--;me)W.unshift("..");X&&W[0]!==""&&(!W[0]||W[0].charAt(0)!=="/")&&W.unshift(""),ve&&W.join("/").substr(-1)!=="/"&&W.push("");var Z=W[0]===""||W[0]&&W[0].charAt(0)==="/";if(G){E.hostname=E.host=Z?"":W.length?W.shift():"";var oe=E.host&&E.host.indexOf("@")>0?E.host.split("@"):!1;oe&&(E.auth=oe.shift(),E.host=E.hostname=oe.shift())}return X=X||E.host&&W.length,X&&!Z&&W.unshift(""),W.length?E.pathname=W.join("/"):(E.pathname=null,E.path=null),(!t.isNull(E.pathname)||!t.isNull(E.search))&&(E.path=(E.pathname?E.pathname:"")+(E.search?E.search:"")),E.auth=A.auth||E.auth,E.slashes=E.slashes||A.slashes,E.href=E.format(),E},r.prototype.parseHost=function(){var A=this.host,_=o.exec(A);_&&(_=_[0],_!==":"&&(this.port=_.substr(1)),A=A.substr(0,A.length-_.length)),A&&(this.hostname=A)},Nd}var X7,uU;function dRe(){if(uU)return X7;uU=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return X7=e(),X7}var Y7,dU;function pRe(){if(dU)return Y7;dU=1;var e=dRe();return Y7=function(t,r){if(t){r.then(function(n){e(function(){t(null,n)})},function(n){e(function(){t(n)})});return}else return r},Y7}var G7,pU;function Uy(){if(pU)return G7;pU=1;function e(n){return n.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(n){return n.replace(/\~1/g,"/").replace(/~0/g,"~")}function r(n,o,i){if(typeof n>"u")return!1;if(!o||typeof o!="string"||o==="#")return typeof i<"u"?i:n;if(o.indexOf("#")>=0){let s=o.split("#");if(s[0])return!1;o=s[1],o=decodeURIComponent(o.slice(1).split("+").join(" "))}o.startsWith("/")&&(o=o.slice(1));let a=o.split("/");for(let s=0;s<a.length;s++){a[s]=t(a[s]);let l=typeof i<"u"&&s==a.length-1,c=parseInt(a[s],10);if(!Array.isArray(n)||isNaN(c)||c.toString()!==a[s]?c=Array.isArray(n)&&a[s]==="-"?-2:-1:a[s]=s>0?a[s-1]:"",c!=-1||n&&n.hasOwnProperty(a[s]))if(c>=0)l&&(n[c]=i),n=n[c];else{if(c===-2)return l?(Array.isArray(n)&&n.push(i),i):void 0;l&&(n[a[s]]=i),n=n[a[s]]}else if(typeof i<"u"&&typeof n=="object"&&!Array.isArray(n))n[a[s]]=l?i:a[s+1]==="0"||a[s+1]==="-"?[]:{},n=n[a[s]];else return!1}return n}return G7={jptr:r,jpescape:e,jpunescape:t},G7}var J7,hU;function K7(){if(hU)return J7;hU=1;function e(t,r){return r==="$ref"&&!!t&&typeof t[r]=="string"}return J7={isRef:e},J7}var e8,fU;function Hy(){if(fU)return e8;fU=1;function e(a){return a}function t(a){return JSON.parse(JSON.stringify(a))}function r(a){let s={};for(let l in a)a.hasOwnProperty(l)&&(s[l]=a[l]);return s}function n(a){let s=Array.isArray(a)?[]:{};for(let l in a)(a.hasOwnProperty(l)||Array.isArray(a))&&(s[l]=typeof a[l]=="object"?n(a[l]):a[l]);return s}function o(a){return Object.assign({},a)}function i(a,s){if(s||(s=new WeakMap),Object(a)!==a||a instanceof Function)return a;if(s.has(a))return s.get(a);try{var l=new a.constructor}catch{l=Object.create(Object.getPrototypeOf(a))}return s.set(a,l),Object.assign(l,...Object.keys(a).map(c=>({[c]:i(a[c],s)})))}return e8={nop:e,clone:t,shallowClone:r,deepClone:n,fastClone:o,circularClone:i},e8}var t8,gU;function r8(){if(gU)return t8;gU=1;const e=Uy().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function r(n,o,i){if(o||(o={depth:0}),o.depth||(o=Object.assign({},t(),o)),typeof n!="object")return;let a=o.path;for(let s in n){if(o.key=s,o.path=o.path+"/"+encodeURIComponent(e(s)),o.identityPath=o.seen.get(n[s]),o.identity=typeof o.identityPath<"u",n.hasOwnProperty(s)&&i(n,s,o),typeof n[s]=="object"&&!o.identity){o.identityDetection&&!Array.isArray(n[s])&&n[s]!==null&&o.seen.set(n[s],o.path);let l={};l.parent=n,l.path=o.path,l.depth=o.depth?o.depth+1:1,l.pkey=s,l.payload=o.payload,l.seen=o.seen,l.identity=!1,l.identityDetection=o.identityDetection,r(n[s],l,i)}o.path=a}}return t8={recurse:r},t8}var n8,mU;function hRe(){if(mU)return n8;mU=1;const e=r8().recurse,t=Hy().shallowClone,r=Uy().jptr,n=K7().isRef;var o=function(a){return a&&a.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(a,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?a:t(a),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let h=o(l),g=1;for(;g>0;)g=0,e(u,l.state,function(v,b,y){if(n(v,b)){let x=v[b];if(g++,l.cache[x]){let w=l.cache[x];if(w.resolved)h.warn("Patching %s for %s",x,w.path),y.parent[y.pkey]=w.data,l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=x);else{if(x===w.path)throw new Error(`Tight circle at ${w.path}`);h.warn("Unresolved ref"),y.parent[y.pkey]=r(w.source,w.path),y.parent[y.pkey]===!1&&(y.parent[y.pkey]=r(w.source,w.key)),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[l.$ref]=x)}}else{let w={};w.path=y.path.split("/$ref")[0],w.key=x,h.warn("Dereffing %s at %s",x,w.path),w.source=d,w.data=r(w.source,w.key),w.data===!1&&(w.data=r(l.master,w.key),w.source=l.master),w.data===!1&&h.warn("Missing $ref target",w.key),l.cache[x]=w,w.data=y.parent[y.pkey]=i(r(w.source,w.key),w.source,l),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=x),w.resolved=!0}}});return u.data}return n8={dereference:i},n8}var o8,vU;function fRe(){if(vU)return o8;vU=1,o8=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(h,g,v,b){typeof b>"u"&&(b=o()),s(h,"",0,[],void 0,0,b);var y;try{n.length===0?y=JSON.stringify(h,g,v):y=JSON.stringify(h,d(g),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var x=r.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return y}function a(h,g,v,b){var y=Object.getOwnPropertyDescriptor(b,v);y.get!==void 0?y.configurable?(Object.defineProperty(b,v,{value:h}),r.push([b,v,g,y])):n.push([g,v,h]):(b[v]=h,r.push([b,v,g]))}function s(h,g,v,b,y,x,w){x+=1;var k;if(typeof h=="object"&&h!==null){for(k=0;k<b.length;k++)if(b[k]===h){a(t,h,g,y);return}if(typeof w.depthLimit<"u"&&x>w.depthLimit){a(e,h,g,y);return}if(typeof w.edgesLimit<"u"&&v+1>w.edgesLimit){a(e,h,g,y);return}if(b.push(h),Array.isArray(h))for(k=0;k<h.length;k++)s(h[k],k,k,b,h,x,w);else{var j=Object.keys(h);for(k=0;k<j.length;k++){var C=j[k];s(h[C],C,k,b,h,x,w)}}b.pop()}}function l(h,g){return h<g?-1:h>g?1:0}function c(h,g,v,b){typeof b>"u"&&(b=o());var y=u(h,"",0,[],void 0,0,b)||h,x;try{n.length===0?x=JSON.stringify(y,g,v):x=JSON.stringify(y,d(g),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var w=r.pop();w.length===4?Object.defineProperty(w[0],w[1],w[3]):w[0][w[1]]=w[2]}}return x}function u(h,g,v,b,y,x,w){x+=1;var k;if(typeof h=="object"&&h!==null){for(k=0;k<b.length;k++)if(b[k]===h){a(t,h,g,y);return}try{if(typeof h.toJSON=="function")return}catch{return}if(typeof w.depthLimit<"u"&&x>w.depthLimit){a(e,h,g,y);return}if(typeof w.edgesLimit<"u"&&v+1>w.edgesLimit){a(e,h,g,y);return}if(b.push(h),Array.isArray(h))for(k=0;k<h.length;k++)u(h[k],k,k,b,h,x,w);else{var j={},C=Object.keys(h).sort(l);for(k=0;k<C.length;k++){var A=C[k];u(h[A],A,k,b,h,x,w),j[A]=h[A]}if(typeof y<"u")r.push([y,g,h]),y[g]=j;else return j}b.pop()}}function d(h){return h=typeof h<"u"?h:function(g,v){return v},function(g,v){if(n.length>0)for(var b=0;b<n.length;b++){var y=n[b];if(y[1]===g&&y[0]===v){v=y[2],n.splice(b,1);break}}return h.call(this,g,v)}}return o8}var i8,bU;function yU(){if(bU)return i8;bU=1;var e={};const t=fRe(),r=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function n(y,x,w){return w.indexOf(y)===x}function o(y){return new Set(y).size!==y.length}function i(y){return new Set(y).size<=1}function a(y,x){function w(k,j){return t.stringify(k)===t.stringify(Object.assign({},k,j))}return w(y,x)&&w(x,y)}function s(y){let x=[];for(let w of y)x.find(function(k,j,C){return a(k,w)})||x.push(w);return x}function l(y){return y.length===s(y).length}function c(y){return y.find(function(x,w,k){return y.indexOf(x)<w})}function u(y){let x=0,w;if(y.length===0)return x;for(let k=0;k<y.length;k++)w=y.charCodeAt(k),x=(x<<5)-x+w,x|=0;return x}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(y,x){return x.toUpperCase()})};const d=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],h=["items","minItems","maxItems","uniqueItems"],g=["get","post","put","delete","patch","head","options","trace"];function v(y){y=y.replace("[]","Array");let x=y.split("/");return x[0]=x[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),x.join("/")}function b(y){return v(y.split("/").join("_"))}return i8={colour:r,uniqueOnly:n,hasDuplicates:o,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:h,httpMethods:g,sanitise:v,sanitiseAll:b},i8}var a8,xU;function gRe(){if(xU)return a8;xU=1;const e=Ih,t=BI(),r=W7(),n=Ih,o=Ih,i=Uy().jptr,a=r8().recurse,s=Hy().clone,l=hRe().dereference,c=K7().isRef,u=yU();function d(E){return[...new Set(E)]}function h(E,P,M,D,I){return new Promise(function(N,L){e.readFile(E,P,function(H,Y){H?M.ignoreIOErrors&&I?(M.verbose&&console.warn("FAILED",D),M.externalRefs[D].failed=!0,N(I)):L(H):N(Y)})})}function g(E,P,M,D,I,N){let L=N.externalRefs[M+D].paths[0],H=r.parse(I),Y={},te=1;for(;te;)te=0,a(E,{identityDetection:!0},function(K,se,U){if(c(K,se)){if(K[se].startsWith("#")){if(!Y[K[se]]&&!K.$fixed){let Q=s(i(P,K[se]));if(N.verbose>1&&console.warn((Q===!1?u.colour.red:u.colour.green)+"Fragment resolution",K[se],u.colour.normal),Q===!1){if(U.parent[U.pkey]={},N.fatal){let X=new Error("Fragment $ref resolution failed "+K[se]);if(N.promise)N.promise.reject(X);else throw X}}else te++,U.parent[U.pkey]=Q,Y[K[se]]=U.path.replace("/%24ref","")}else if(!K.$fixed){let Q=(L+"/"+Y[K[se]]).split("/#/").join("/");U.parent[U.pkey]={$ref:Q,"x-miro":K[se],$fixed:!0},N.verbose>1&&console.warn("Replacing with",Q),te++}}else if(H.protocol){let Q=r.resolve(I,K[se]).toString();N.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",K[se],"as",Q,u.colour.normal),K["x-miro"]=K[se],N.externalRefs[K[se]]&&(N.externalRefs[Q]||(N.externalRefs[Q]=N.externalRefs[K[se]]),N.externalRefs[Q].failed=N.externalRefs[K[se]].failed),K[se]=Q}else if(!K["x-miro"]){let Q=r.resolve(I,K[se]).toString(),X=!1;N.externalRefs[K[se]]&&(X=N.externalRefs[K[se]].failed),X||(N.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",K[se],"as",Q,u.colour.normal),K["x-miro"]=K[se],K[se]=Q)}}});return a(E,{},function(K,se,U){c(K,se)&&typeof K.$fixed<"u"&&delete K.$fixed}),N.verbose>1&&console.warn("Finished fragment resolution"),E}function v(E,P){if(!P.filters||!P.filters.length)return E;for(let M of P.filters)E=M(E,P);return E}function b(E,P){return E&&E.length>2?E:P&&P.length>2?P:"file:"}function y(E,P,M,D){var I=r.parse(M.source),N=M.source.split("\\").join("/").split("/");N.pop()||N.pop();let L="",H=P.split("#");H.length>1&&(L="#"+H[1],P=H[0]),N=N.join("/");let Y=r.parse(P),te=b(Y.protocol,I.protocol),K;if(te==="file:"?K=t.resolve(N?N+"/":"",P):K=r.resolve(N?N+"/":"",P),M.cache[K]){M.verbose&&console.warn("CACHED",K,L);let se=s(M.cache[K]),U=M.externalRef=se;if(L&&(U=i(U,L),U===!1&&(U={},M.fatal))){let Q=new Error("Cached $ref resolution failed "+K+L);if(M.promise)M.promise.reject(Q);else throw Q}return U=g(U,se,P,L,K,M),U=v(U,M),D(s(U),K,M),Promise.resolve(U)}if(M.verbose&&console.warn("GET",K,L),M.handlers&&M.handlers[te])return M.handlers[te](N,P,L,M).then(function(se){return M.externalRef=se,se=v(se,M),M.cache[K]=se,D(se,K,M),se}).catch(function(se){throw M.verbose&&console.warn(se),se});if(te&&te.startsWith("http")){const se=Object.assign({},M.fetchOptions,{agent:M.agent});return M.fetch(K,se).then(function(U){if(U.status!==200){if(M.ignoreIOErrors)return M.verbose&&console.warn("FAILED",P),M.externalRefs[P].failed=!0,'{"$ref":"'+P+'"}';throw new Error(`Received status code ${U.status}: ${K}`)}return U.text()}).then(function(U){try{let Q=o.parse(U,{schema:"core",prettyErrors:!0});if(U=M.externalRef=Q,M.cache[K]=s(U),L&&(U=i(U,L),U===!1&&(U={},M.fatal))){let X=new Error("Remote $ref resolution failed "+K+L);if(M.promise)M.promise.reject(X);else throw X}U=g(U,Q,P,L,K,M),U=v(U,M)}catch(Q){if(M.verbose&&console.warn(Q),M.promise&&M.fatal)M.promise.reject(Q);else throw Q}return D(U,K,M),U}).catch(function(U){if(M.verbose&&console.warn(U),M.cache[K]={},M.promise&&M.fatal)M.promise.reject(U);else throw U})}else{const se='{"$ref":"'+P+'"}';return h(K,M.encoding||"utf8",M,P,se).then(function(U){try{let Q=o.parse(U,{schema:"core",prettyErrors:!0});if(U=M.externalRef=Q,M.cache[K]=s(U),L&&(U=i(U,L),U===!1&&(U={},M.fatal))){let X=new Error("File $ref resolution failed "+K+L);if(M.promise)M.promise.reject(X);else throw X}U=g(U,Q,P,L,K,M),U=v(U,M)}catch(Q){if(M.verbose&&console.warn(Q),M.promise&&M.fatal)M.promise.reject(Q);else throw Q}return D(U,K,M),U}).catch(function(U){if(M.verbose&&console.warn(U),M.promise&&M.fatal)M.promise.reject(U);else throw U})}}function x(E){return new Promise(function(P,M){function D(N,L,H){if(N[L]&&c(N[L],"$ref")){let Y=N[L].$ref;if(!Y.startsWith("#")){let te="";if(!I[Y]){let K=Object.keys(I).find(function(se,U,Q){return Y.startsWith(se+"/")});K&&(E.verbose&&console.warn("Found potential subschema at",K),te="/"+(Y.split("#")[1]||"").replace(K.split("#")[1]||""),te=te.split("/undefined").join(""),Y=K)}if(I[Y]||(I[Y]={resolved:!1,paths:[],extras:{},description:N[L].description}),I[Y].resolved){if(!I[Y].failed)if(E.rewriteRefs){let K=I[Y].resolvedAt;E.verbose>1&&console.warn("Rewriting ref",Y,K),N[L]["x-miro"]=Y,N[L].$ref=K+te}else N[L]=s(I[Y].data)}else I[Y].paths.push(H.path),I[Y].extras[H.path]=te}}}let I=E.externalRefs;if(E.resolver.depth>0&&E.source===E.resolver.base)return P(I);a(E.openapi.definitions,{identityDetection:!0,path:"#/definitions"},D),a(E.openapi.components,{identityDetection:!0,path:"#/components"},D),a(E.openapi,{identityDetection:!0},D),P(I)})}function w(E){return new Promise(function(P,M){x(E).then(function(I){for(let N in I)if(!I[N].resolved){let L=E.resolver.depth;L>0&&L++,E.resolver.actions[L].push(function(){return y(E.openapi,N,E,function(H,Y,te){if(!I[N].resolved){let U={};U.context=I[N],U.$ref=N,U.original=s(H),U.updated=H,U.source=Y,te.externals.push(U),I[N].resolved=!0}let K=Object.assign({},te,{source:"",resolver:{actions:te.resolver.actions,depth:te.resolver.actions.length-1,base:te.resolver.base}});te.patch&&I[N].description&&!H.description&&typeof H=="object"&&(H.description=I[N].description),I[N].data=H;let se=d(I[N].paths);se=se.sort(function(U,Q){const X=U.startsWith("#/components/")||U.startsWith("#/definitions/"),q=Q.startsWith("#/components/")||Q.startsWith("#/definitions/");return X&&!q?-1:q&&!X?1:0});for(let U of se)if(I[N].resolvedAt&&U!==I[N].resolvedAt&&U.indexOf("x-ms-examples/")<0)te.verbose>1&&console.warn("Creating pointer to data at",U),i(te.openapi,U,{$ref:I[N].resolvedAt+I[N].extras[U],"x-miro":N+I[N].extras[U]});else{I[N].resolvedAt?te.verbose>1&&console.warn("Avoiding circular reference"):(I[N].resolvedAt=U,te.verbose>1&&console.warn("Creating initial clone of data at",U));let Q=s(H);i(te.openapi,U,Q)}te.resolver.actions[K.resolver.depth].length===0&&te.resolver.actions[K.resolver.depth].push(function(){return w(K)})})})}}).catch(function(I){E.verbose&&console.warn(I),M(I)});let D={options:E};D.actions=E.resolver.actions[E.resolver.depth],P(D)})}const k=E=>E.reduce((P,M)=>P.then(D=>M().then(Array.prototype.concat.bind(D))),Promise.resolve([]));function j(E,P,M){E.resolver.actions.push([]),w(E).then(function(D){k(D.actions).then(function(){if(E.resolver.depth>=E.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),P(!0);E.resolver.depth++,E.resolver.actions[E.resolver.depth].length?setTimeout(function(){j(D.options,P,M)},0):(E.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),E.resolveInternal&&(E.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),E.openapi=l(E.openapi,E.original,{verbose:E.verbose-1}),E.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),a(E.openapi,{},function(I,N,L){c(I,N)&&(E.preserveMiro||delete I["x-miro"])}),P(E))}).catch(function(I){E.verbose&&console.warn(I),M(I)})}).catch(function(D){E.verbose&&console.warn(D),M(D)})}function C(E){if(E.cache||(E.cache={}),E.fetch||(E.fetch=n),E.source){let P=r.parse(E.source);(!P.protocol||P.protocol.length<=2)&&(E.source=t.resolve(E.source))}E.externals=[],E.externalRefs={},E.rewriteRefs=!0,E.resolver={},E.resolver.depth=0,E.resolver.base=E.source,E.resolver.actions=[[]]}function A(E){return C(E),new Promise(function(P,M){E.resolve?j(E,P,M):P(E)})}function _(E,P,M){return M||(M={}),M.openapi=E,M.source=P,M.resolve=!0,C(M),new Promise(function(D,I){j(M,D,I)})}return a8={optionalResolve:A,resolve:_},a8}var s8,OU;function mRe(){if(OU)return s8;OU=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(r,n,o,i){if(typeof o.depth>"u"&&(o=e()),r===null||typeof r>"u")return r;if(typeof r.$ref<"u"){let a={$ref:r.$ref};return o.allowRefSiblings&&r.description&&(a.description=r.description),i(a,n,o),a}if(o.combine&&(r.allOf&&Array.isArray(r.allOf)&&r.allOf.length===1&&(r=Object.assign({},r.allOf[0],r),delete r.allOf),r.anyOf&&Array.isArray(r.anyOf)&&r.anyOf.length===1&&(r=Object.assign({},r.anyOf[0],r),delete r.anyOf),r.oneOf&&Array.isArray(r.oneOf)&&r.oneOf.length===1&&(r=Object.assign({},r.oneOf[0],r),delete r.oneOf)),i(r,n,o),o.seen.has(r))return r;if(typeof r=="object"&&r!==null&&o.seen.set(r,!0),o.top=!1,o.depth++,typeof r.items<"u"&&(o.property="items",t(r.items,r,o,i)),r.additionalItems&&typeof r.additionalItems=="object"&&(o.property="additionalItems",t(r.additionalItems,r,o,i)),r.additionalProperties&&typeof r.additionalProperties=="object"&&(o.property="additionalProperties",t(r.additionalProperties,r,o,i)),r.properties)for(let a in r.properties){let s=r.properties[a];o.property="properties/"+a,t(s,r,o,i)}if(r.patternProperties)for(let a in r.patternProperties){let s=r.patternProperties[a];o.property="patternProperties/"+a,t(s,r,o,i)}if(r.allOf)for(let a in r.allOf){let s=r.allOf[a];o.property="allOf/"+a,t(s,r,o,i)}if(r.anyOf)for(let a in r.anyOf){let s=r.anyOf[a];o.property="anyOf/"+a,t(s,r,o,i)}if(r.oneOf)for(let a in r.oneOf){let s=r.oneOf[a];o.property="oneOf/"+a,t(s,r,o,i)}return r.not&&(o.property="not",t(r.not,r,o,i)),o.depth--,r}return s8={getDefaultState:e,walkSchema:t},s8}var wU={},l8={exports:{}},kU={},CU;function SU(){return CU||(CU=1,function(e){e.fetch=o(globalThis.fetch)&&o(globalThis.ReadableStream),e.writableStream=o(globalThis.WritableStream),e.abortController=o(globalThis.AbortController);var t;function r(){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 n(i){var a=r();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?o(r().overrideMimeType):!1);function o(i){return typeof i=="function"}t=null}(kU)),kU}var Wy={},c8={exports:{}},Xy={exports:{}},jU;function vRe(){if(jU)return Xy.exports;jU=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(j,C,A){return Function.prototype.apply.call(j,C,A)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(j){return Object.getOwnPropertyNames(j).concat(Object.getOwnPropertySymbols(j))}:r=function(j){return Object.getOwnPropertyNames(j)};function n(j){console&&console.warn&&console.warn(j)}var o=Number.isNaN||function(j){return j!==j};function i(){i.init.call(this)}Xy.exports=i,Xy.exports.once=x,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=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 a},set:function(j){if(typeof j!="number"||j<0||o(j))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+j+".");a=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||o(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 C=[],A=1;A<arguments.length;A++)C.push(arguments[A]);var _=j==="error",E=this._events;if(E!==void 0)_=_&&E.error===void 0;else if(!_)return!1;if(_){var P;if(C.length>0&&(P=C[0]),P instanceof Error)throw P;var M=new Error("Unhandled error."+(P?" ("+P.message+")":""));throw M.context=P,M}var D=E[j];if(D===void 0)return!1;if(typeof D=="function")t(D,this,C);else for(var I=D.length,N=v(D,I),A=0;A<I;++A)t(N[A],this,C);return!0};function c(j,C,A,_){var E,P,M;if(s(A),P=j._events,P===void 0?(P=j._events=Object.create(null),j._eventsCount=0):(P.newListener!==void 0&&(j.emit("newListener",C,A.listener?A.listener:A),P=j._events),M=P[C]),M===void 0)M=P[C]=A,++j._eventsCount;else if(typeof M=="function"?M=P[C]=_?[A,M]:[M,A]:_?M.unshift(A):M.push(A),E=l(j),E>0&&M.length>E&&!M.warned){M.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+M.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=j,D.type=C,D.count=M.length,n(D)}return j}i.prototype.addListener=function(j,C){return c(this,j,C,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(j,C){return c(this,j,C,!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,C,A){var _={fired:!1,wrapFn:void 0,target:j,type:C,listener:A},E=u.bind(_);return E.listener=A,_.wrapFn=E,E}i.prototype.once=function(j,C){return s(C),this.on(j,d(this,j,C)),this},i.prototype.prependOnceListener=function(j,C){return s(C),this.prependListener(j,d(this,j,C)),this},i.prototype.removeListener=function(j,C){var A,_,E,P,M;if(s(C),_=this._events,_===void 0)return this;if(A=_[j],A===void 0)return this;if(A===C||A.listener===C)--this._eventsCount===0?this._events=Object.create(null):(delete _[j],_.removeListener&&this.emit("removeListener",j,A.listener||C));else if(typeof A!="function"){for(E=-1,P=A.length-1;P>=0;P--)if(A[P]===C||A[P].listener===C){M=A[P].listener,E=P;break}if(E<0)return this;E===0?A.shift():b(A,E),A.length===1&&(_[j]=A[0]),_.removeListener!==void 0&&this.emit("removeListener",j,M||C)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(j){var C,A,_;if(A=this._events,A===void 0)return this;if(A.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):A[j]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete A[j]),this;if(arguments.length===0){var E=Object.keys(A),P;for(_=0;_<E.length;++_)P=E[_],P!=="removeListener"&&this.removeAllListeners(P);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(C=A[j],typeof C=="function")this.removeListener(j,C);else if(C!==void 0)for(_=C.length-1;_>=0;_--)this.removeListener(j,C[_]);return this};function h(j,C,A){var _=j._events;if(_===void 0)return[];var E=_[C];return E===void 0?[]:typeof E=="function"?A?[E.listener||E]:[E]:A?y(E):v(E,E.length)}i.prototype.listeners=function(j){return h(this,j,!0)},i.prototype.rawListeners=function(j){return h(this,j,!1)},i.listenerCount=function(j,C){return typeof j.listenerCount=="function"?j.listenerCount(C):g.call(j,C)},i.prototype.listenerCount=g;function g(j){var C=this._events;if(C!==void 0){var A=C[j];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function v(j,C){for(var A=new Array(C),_=0;_<C;++_)A[_]=j[_];return A}function b(j,C){for(;C+1<j.length;C++)j[C]=j[C+1];j.pop()}function y(j){for(var C=new Array(j.length),A=0;A<C.length;++A)C[A]=j[A].listener||j[A];return C}function x(j,C){return new Promise(function(A,_){function E(M){j.removeListener(C,P),_(M)}function P(){typeof j.removeListener=="function"&&j.removeListener("error",E),A([].slice.call(arguments))}k(j,C,P,{once:!0}),C!=="error"&&w(j,E,{once:!0})})}function w(j,C,A){typeof j.on=="function"&&k(j,"error",C,A)}function k(j,C,A,_){if(typeof j.on=="function")_.once?j.once(C,A):j.on(C,A);else if(typeof j.addEventListener=="function")j.addEventListener(C,function E(P){_.once&&j.removeEventListener(C,E),A(P)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof j)}return Xy.exports}var AU,_U;function EU(){return _U||(_U=1,AU=vRe().EventEmitter),AU}const u8=xR(FF);var d8,PU;function bRe(){if(PU)return d8;PU=1;function e(v,b){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);b&&(x=x.filter(function(w){return Object.getOwnPropertyDescriptor(v,w).enumerable})),y.push.apply(y,x)}return y}function t(v){for(var b=1;b<arguments.length;b++){var y=arguments[b]!=null?arguments[b]:{};b%2?e(Object(y),!0).forEach(function(x){r(v,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(y)):e(Object(y)).forEach(function(x){Object.defineProperty(v,x,Object.getOwnPropertyDescriptor(y,x))})}return v}function r(v,b,y){return b=a(b),b in v?Object.defineProperty(v,b,{value:y,enumerable:!0,configurable:!0,writable:!0}):v[b]=y,v}function n(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function o(v,b){for(var y=0;y<b.length;y++){var x=b[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,a(x.key),x)}}function i(v,b,y){return b&&o(v.prototype,b),Object.defineProperty(v,"prototype",{writable:!1}),v}function a(v){var b=s(v,"string");return typeof b=="symbol"?b:String(b)}function s(v,b){if(typeof v!="object"||v===null)return v;var y=v[Symbol.toPrimitive];if(y!==void 0){var x=y.call(v,b);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}var l=qy(),c=l.Buffer,u=u8,d=u.inspect,h=d&&d.custom||"inspect";function g(v,b,y){c.prototype.copy.call(v,b,y)}return d8=function(){function v(){n(this,v),this.head=null,this.tail=null,this.length=0}return i(v,[{key:"push",value:function(b){var y={data:b,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(b){var y={data:b,next:this.head};this.length===0&&(this.tail=y),this.head=y,++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 y=this.head,x=""+y.data;y=y.next;)x+=b+y.data;return x}},{key:"concat",value:function(b){if(this.length===0)return c.alloc(0);for(var y=c.allocUnsafe(b>>>0),x=this.head,w=0;x;)g(x.data,y,w),w+=x.data.length,x=x.next;return y}},{key:"consume",value:function(b,y){var x;return b<this.head.data.length?(x=this.head.data.slice(0,b),this.head.data=this.head.data.slice(b)):b===this.head.data.length?x=this.shift():x=y?this._getString(b):this._getBuffer(b),x}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(b){var y=this.head,x=1,w=y.data;for(b-=w.length;y=y.next;){var k=y.data,j=b>k.length?k.length:b;if(j===k.length?w+=k:w+=k.slice(0,b),b-=j,b===0){j===k.length?(++x,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=k.slice(j));break}++x}return this.length-=x,w}},{key:"_getBuffer",value:function(b){var y=c.allocUnsafe(b),x=this.head,w=1;for(x.data.copy(y),b-=x.data.length;x=x.next;){var k=x.data,j=b>k.length?k.length:b;if(k.copy(y,y.length-b,0,j),b-=j,b===0){j===k.length?(++w,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=k.slice(j));break}++w}return this.length-=w,y}},{key:h,value:function(b,y){return d(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),v}(),d8}var p8,TU;function $U(){if(TU)return p8;TU=1;function e(a,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,a)):process.nextTick(o,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(r,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(r,l),s(d)):process.nextTick(r,l)}),this)}function t(a,s){o(a,s),r(a)}function r(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){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 o(a,s){a.emit("error",s)}function i(a,s){var l=a._readableState,c=a._writableState;l&&l.autoDestroy||c&&c.autoDestroy?a.destroy(s):a.emit("error",s)}return p8={destroy:e,undestroy:n,errorOrDestroy:i},p8}var h8={},RU;function Lh(){if(RU)return h8;RU=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function r(s,l,c){c||(c=Error);function u(h,g,v){return typeof l=="string"?l:l(h,g,v)}var d=function(h){e(g,h);function g(v,b,y){return h.call(this,u(v,b,y))||this}return g}(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function n(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 o(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 a(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&o(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(n(l,"type"));else{var h=a(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(h," ").concat(u," ").concat(n(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),h8.codes=t,h8}var f8,MU;function IU(){if(MU)return f8;MU=1;var e=Lh().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,a){var s=t(o,a,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=a?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return f8={getHighWaterMark:r},f8}var g8,LU;function yRe(){if(LU)return g8;LU=1,g8=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!globalThis.localStorage)return!1}catch{return!1}var n=globalThis.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return g8}var m8,DU;function zU(){if(DU)return m8;DU=1,m8=E;function e(G){var oe=this;this.next=null,this.entry=null,this.finish=function(){re(oe,G)}}var t;E.WritableState=A;var r={deprecate:yRe()},n=EU(),o=qy().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(G){return o.from(G)}function s(G){return o.isBuffer(G)||G instanceof i}var l=$U(),c=IU(),u=c.getHighWaterMark,d=Lh().codes,h=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,x=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,k=d.ERR_UNKNOWN_ENCODING,j=l.errorOrDestroy;function C(){}function A(G,oe,ne){t=t||Dh(),G=G||{},typeof ne!="boolean"&&(ne=oe instanceof t),this.objectMode=!!G.objectMode,ne&&(this.objectMode=this.objectMode||!!G.writableObjectMode),this.highWaterMark=u(this,G,"writableHighWaterMark",ne),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ve=G.decodeStrings===!1;this.decodeStrings=!ve,this.defaultEncoding=G.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(me){Y(oe,me)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=G.emitClose!==!1,this.autoDestroy=!!G.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}A.prototype.getBuffer=function(){for(var G=this.bufferedRequest,oe=[];G;)oe.push(G),G=G.next;return oe},function(){try{Object.defineProperty(A.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var _;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(_=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(G){return _.call(this,G)?!0:this!==E?!1:G&&G._writableState instanceof A}})):_=function(G){return G instanceof this};function E(G){t=t||Dh();var oe=this instanceof t;if(!oe&&!_.call(E,this))return new E(G);this._writableState=new A(G,this,oe),this.writable=!0,G&&(typeof G.write=="function"&&(this._write=G.write),typeof G.writev=="function"&&(this._writev=G.writev),typeof G.destroy=="function"&&(this._destroy=G.destroy),typeof G.final=="function"&&(this._final=G.final)),n.call(this)}E.prototype.pipe=function(){j(this,new b)};function P(G,oe){var ne=new w;j(G,ne),process.nextTick(oe,ne)}function M(G,oe,ne,ve){var me;return ne===null?me=new x:typeof ne!="string"&&!oe.objectMode&&(me=new h("chunk",["string","Buffer"],ne)),me?(j(G,me),process.nextTick(ve,me),!1):!0}E.prototype.write=function(G,oe,ne){var ve=this._writableState,me=!1,T=!ve.objectMode&&s(G);return T&&!o.isBuffer(G)&&(G=a(G)),typeof oe=="function"&&(ne=oe,oe=null),T?oe="buffer":oe||(oe=ve.defaultEncoding),typeof ne!="function"&&(ne=C),ve.ending?P(this,ne):(T||M(this,ve,G,ne))&&(ve.pendingcb++,me=I(this,ve,T,G,oe,ne)),me},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var G=this._writableState;G.corked&&(G.corked--,!G.writing&&!G.corked&&!G.bufferProcessing&&G.bufferedRequest&&se(this,G))},E.prototype.setDefaultEncoding=function(G){if(typeof G=="string"&&(G=G.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((G+"").toLowerCase())>-1))throw new k(G);return this._writableState.defaultEncoding=G,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function D(G,oe,ne){return!G.objectMode&&G.decodeStrings!==!1&&typeof oe=="string"&&(oe=o.from(oe,ne)),oe}Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function I(G,oe,ne,ve,me,T){if(!ne){var Z=D(oe,ve,me);ve!==Z&&(ne=!0,me="buffer",ve=Z)}var fe=oe.objectMode?1:ve.length;oe.length+=fe;var F=oe.length<oe.highWaterMark;if(F||(oe.needDrain=!0),oe.writing||oe.corked){var he=oe.lastBufferedRequest;oe.lastBufferedRequest={chunk:ve,encoding:me,isBuf:ne,callback:T,next:null},he?he.next=oe.lastBufferedRequest:oe.bufferedRequest=oe.lastBufferedRequest,oe.bufferedRequestCount+=1}else N(G,oe,!1,fe,ve,me,T);return F}function N(G,oe,ne,ve,me,T,Z){oe.writelen=ve,oe.writecb=Z,oe.writing=!0,oe.sync=!0,oe.destroyed?oe.onwrite(new y("write")):ne?G._writev(me,oe.onwrite):G._write(me,T,oe.onwrite),oe.sync=!1}function L(G,oe,ne,ve,me){--oe.pendingcb,ne?(process.nextTick(me,ve),process.nextTick(q,G,oe),G._writableState.errorEmitted=!0,j(G,ve)):(me(ve),G._writableState.errorEmitted=!0,j(G,ve),q(G,oe))}function H(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0}function Y(G,oe){var ne=G._writableState,ve=ne.sync,me=ne.writecb;if(typeof me!="function")throw new v;if(H(ne),oe)L(G,ne,ve,oe,me);else{var T=U(ne)||G.destroyed;!T&&!ne.corked&&!ne.bufferProcessing&&ne.bufferedRequest&&se(G,ne),ve?process.nextTick(te,G,ne,T,me):te(G,ne,T,me)}}function te(G,oe,ne,ve){ne||K(G,oe),oe.pendingcb--,ve(),q(G,oe)}function K(G,oe){oe.length===0&&oe.needDrain&&(oe.needDrain=!1,G.emit("drain"))}function se(G,oe){oe.bufferProcessing=!0;var ne=oe.bufferedRequest;if(G._writev&&ne&&ne.next){var ve=oe.bufferedRequestCount,me=new Array(ve),T=oe.corkedRequestsFree;T.entry=ne;for(var Z=0,fe=!0;ne;)me[Z]=ne,ne.isBuf||(fe=!1),ne=ne.next,Z+=1;me.allBuffers=fe,N(G,oe,!0,oe.length,me,"",T.finish),oe.pendingcb++,oe.lastBufferedRequest=null,T.next?(oe.corkedRequestsFree=T.next,T.next=null):oe.corkedRequestsFree=new e(oe),oe.bufferedRequestCount=0}else{for(;ne;){var F=ne.chunk,he=ne.encoding,ue=ne.callback,ee=oe.objectMode?1:F.length;if(N(G,oe,!1,ee,F,he,ue),ne=ne.next,oe.bufferedRequestCount--,oe.writing)break}ne===null&&(oe.lastBufferedRequest=null)}oe.bufferedRequest=ne,oe.bufferProcessing=!1}E.prototype._write=function(G,oe,ne){ne(new g("_write()"))},E.prototype._writev=null,E.prototype.end=function(G,oe,ne){var ve=this._writableState;return typeof G=="function"?(ne=G,G=null,oe=null):typeof oe=="function"&&(ne=oe,oe=null),G!=null&&this.write(G,oe),ve.corked&&(ve.corked=1,this.uncork()),ve.ending||W(this,ve,ne),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function U(G){return G.ending&&G.length===0&&G.bufferedRequest===null&&!G.finished&&!G.writing}function Q(G,oe){G._final(function(ne){oe.pendingcb--,ne&&j(G,ne),oe.prefinished=!0,G.emit("prefinish"),q(G,oe)})}function X(G,oe){!oe.prefinished&&!oe.finalCalled&&(typeof G._final=="function"&&!oe.destroyed?(oe.pendingcb++,oe.finalCalled=!0,process.nextTick(Q,G,oe)):(oe.prefinished=!0,G.emit("prefinish")))}function q(G,oe){var ne=U(oe);if(ne&&(X(G,oe),oe.pendingcb===0&&(oe.finished=!0,G.emit("finish"),oe.autoDestroy))){var ve=G._readableState;(!ve||ve.autoDestroy&&ve.endEmitted)&&G.destroy()}return ne}function W(G,oe,ne){oe.ending=!0,q(G,oe),ne&&(oe.finished?process.nextTick(ne):G.once("finish",ne)),oe.ended=!0,G.writable=!1}function re(G,oe,ne){var ve=G.entry;for(G.entry=null;ve;){var me=ve.callback;oe.pendingcb--,me(ne),ve=ve.next}oe.corkedRequestsFree.next=G}return Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(G){this._writableState&&(this._writableState.destroyed=G)}}),E.prototype.destroy=l.destroy,E.prototype._undestroy=l.undestroy,E.prototype._destroy=function(G,oe){oe(G)},m8}var v8,NU;function Dh(){if(NU)return v8;NU=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};v8=a;for(var t=WU(),r=zU(),n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];a.prototype[i]||(a.prototype[i]=r.prototype[i])}function a(c){if(!(this instanceof a))return new a(c);t.call(this,c),r.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(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.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(a.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)}}),v8}var b8={},y8={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var BU;function xRe(){return BU||(BU=1,function(e,t){var r=qy(),n=r.Buffer;function o(a,s){for(var l in a)s[l]=a[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,s,l){return n(a,s,l)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,s,l)},i.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=n(a);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}}(y8,y8.exports)),y8.exports}var VU;function FU(){if(VU)return b8;VU=1;var e=xRe().Buffer,t=e.isEncoding||function(x){switch(x=""+x,x&&x.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 r(x){if(!x)return"utf8";for(var w;;)switch(x){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 x;default:if(w)return;x=(""+x).toLowerCase(),w=!0}}function n(x){var w=r(x);if(typeof w!="string"&&(e.isEncoding===t||!t(x)))throw new Error("Unknown encoding: "+x);return w||x}b8.StringDecoder=o;function o(x){this.encoding=n(x);var w;switch(this.encoding){case"utf16le":this.text=d,this.end=h,w=4;break;case"utf8":this.fillLast=l,w=4;break;case"base64":this.text=g,this.end=v,w=3;break;default:this.write=b,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(w)}o.prototype.write=function(x){if(x.length===0)return"";var w,k;if(this.lastNeed){if(w=this.fillLast(x),w===void 0)return"";k=this.lastNeed,this.lastNeed=0}else k=0;return k<x.length?w?w+this.text(x,k):this.text(x,k):w||""},o.prototype.end=u,o.prototype.text=c,o.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length};function i(x){return x<=127?0:x>>5===6?2:x>>4===14?3:x>>3===30?4:x>>6===2?-1:-2}function a(x,w,k){var j=w.length-1;if(j<k)return 0;var C=i(w[j]);return C>=0?(C>0&&(x.lastNeed=C-1),C):--j<k||C===-2?0:(C=i(w[j]),C>=0?(C>0&&(x.lastNeed=C-2),C):--j<k||C===-2?0:(C=i(w[j]),C>=0?(C>0&&(C===2?C=0:x.lastNeed=C-3),C):0))}function s(x,w,k){if((w[0]&192)!==128)return x.lastNeed=0,"\uFFFD";if(x.lastNeed>1&&w.length>1){if((w[1]&192)!==128)return x.lastNeed=1,"\uFFFD";if(x.lastNeed>2&&w.length>2&&(w[2]&192)!==128)return x.lastNeed=2,"\uFFFD"}}function l(x){var w=this.lastTotal-this.lastNeed,k=s(this,x);if(k!==void 0)return k;if(this.lastNeed<=x.length)return x.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,w,0,x.length),this.lastNeed-=x.length}function c(x,w){var k=a(this,x,w);if(!this.lastNeed)return x.toString("utf8",w);this.lastTotal=k;var j=x.length-(k-this.lastNeed);return x.copy(this.lastChar,0,j),x.toString("utf8",w,j)}function u(x){var w=x&&x.length?this.write(x):"";return this.lastNeed?w+"\uFFFD":w}function d(x,w){if((x.length-w)%2===0){var k=x.toString("utf16le",w);if(k){var j=k.charCodeAt(k.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],k.slice(0,-1)}return k}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",w,x.length-1)}function h(x){var w=x&&x.length?this.write(x):"";if(this.lastNeed){var k=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,k)}return w}function g(x,w){var k=(x.length-w)%3;return k===0?x.toString("base64",w):(this.lastNeed=3-k,this.lastTotal=3,k===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",w,x.length-k))}function v(x){var w=x&&x.length?this.write(x):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function b(x){return x.toString(this.encoding)}function y(x){return x&&x.length?this.write(x):""}return b8}var x8,QU;function O8(){if(QU)return x8;QU=1;var e=Lh().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,a,s){if(typeof a=="function")return o(i,null,a);a||(a={}),s=t(s||r);var l=a.readable||a.readable!==!1&&i.readable,c=a.writable||a.writable!==!1&&i.writable,u=function(){i.writable||h()},d=i._writableState&&i._writableState.finished,h=function(){c=!1,d=!0,l||s.call(i)},g=i._readableState&&i._readableState.endEmitted,v=function(){l=!1,g=!0,c||s.call(i)},b=function(w){s.call(i,w)},y=function(){var w;if(l&&!g)return(!i._readableState||!i._readableState.ended)&&(w=new e),s.call(i,w);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(w=new e),s.call(i,w)},x=function(){i.req.on("finish",h)};return n(i)?(i.on("complete",h),i.on("abort",y),i.req?x():i.on("request",x)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",v),i.on("finish",h),a.error!==!1&&i.on("error",b),i.on("close",y),function(){i.removeListener("complete",h),i.removeListener("abort",y),i.removeListener("request",x),i.req&&i.req.removeListener("finish",h),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",h),i.removeListener("end",v),i.removeListener("error",b),i.removeListener("close",y)}}return x8=o,x8}var w8,qU;function ORe(){if(qU)return w8;qU=1;var e;function t(k,j,C){return j=r(j),j in k?Object.defineProperty(k,j,{value:C,enumerable:!0,configurable:!0,writable:!0}):k[j]=C,k}function r(k){var j=n(k,"string");return typeof j=="symbol"?j:String(j)}function n(k,j){if(typeof k!="object"||k===null)return k;var C=k[Symbol.toPrimitive];if(C!==void 0){var A=C.call(k,j);if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(k)}var o=O8(),i=Symbol("lastResolve"),a=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function h(k,j){return{value:k,done:j}}function g(k){var j=k[i];if(j!==null){var C=k[d].read();C!==null&&(k[c]=null,k[i]=null,k[a]=null,j(h(C,!1)))}}function v(k){process.nextTick(g,k)}function b(k,j){return function(C,A){k.then(function(){if(j[l]){C(h(void 0,!0));return}j[u](C,A)},A)}}var y=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var k=this,j=this[s];if(j!==null)return Promise.reject(j);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(E,P){process.nextTick(function(){k[s]?P(k[s]):E(h(void 0,!0))})});var C=this[c],A;if(C)A=new Promise(b(C,this));else{var _=this[d].read();if(_!==null)return Promise.resolve(h(_,!1));A=new Promise(this[u])}return this[c]=A,A}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var k=this;return new Promise(function(j,C){k[d].destroy(null,function(A){if(A){C(A);return}j(h(void 0,!0))})})}),e),y),w=function(k){var j,C=Object.create(x,(j={},t(j,d,{value:k,writable:!0}),t(j,i,{value:null,writable:!0}),t(j,a,{value:null,writable:!0}),t(j,s,{value:null,writable:!0}),t(j,l,{value:k._readableState.endEmitted,writable:!0}),t(j,u,{value:function(A,_){var E=C[d].read();E?(C[c]=null,C[i]=null,C[a]=null,A(h(E,!1))):(C[i]=A,C[a]=_)},writable:!0}),j));return C[c]=null,o(k,function(A){if(A&&A.code!=="ERR_STREAM_PREMATURE_CLOSE"){var _=C[a];_!==null&&(C[c]=null,C[i]=null,C[a]=null,_(A)),C[s]=A;return}var E=C[i];E!==null&&(C[c]=null,C[i]=null,C[a]=null,E(h(void 0,!0))),C[l]=!0}),k.on("readable",v.bind(null,C)),C};return w8=w,w8}var ZU,UU;function wRe(){return UU||(UU=1,ZU=function(){throw new Error("Readable.from is not available in the browser")}),ZU}var k8,HU;function WU(){if(HU)return k8;HU=1,k8=P;var e;P.ReadableState=E;var t=function(T,Z){return T.listeners(Z).length},r=EU(),n=qy().Buffer,o=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(T){return n.from(T)}function a(T){return n.isBuffer(T)||T instanceof o}var s=u8,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=bRe(),u=$U(),d=IU(),h=d.getHighWaterMark,g=Lh().codes,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,y=g.ERR_METHOD_NOT_IMPLEMENTED,x=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,w,k,j,C=u.errorOrDestroy,A=["error","close","destroy","pause","resume"];function _(T,Z,fe){if(typeof T.prependListener=="function")return T.prependListener(Z,fe);!T._events||!T._events[Z]?T.on(Z,fe):Array.isArray(T._events[Z])?T._events[Z].unshift(fe):T._events[Z]=[fe,T._events[Z]]}function E(T,Z,fe){e=e||Dh(),T=T||{},typeof fe!="boolean"&&(fe=Z instanceof e),this.objectMode=!!T.objectMode,fe&&(this.objectMode=this.objectMode||!!T.readableObjectMode),this.highWaterMark=h(this,T,"readableHighWaterMark",fe),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=T.emitClose!==!1,this.autoDestroy=!!T.autoDestroy,this.destroyed=!1,this.defaultEncoding=T.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,T.encoding&&(w||(w=FU().StringDecoder),this.decoder=new w(T.encoding),this.encoding=T.encoding)}function P(T){if(e=e||Dh(),!(this instanceof P))return new P(T);var Z=this instanceof e;this._readableState=new E(T,this,Z),this.readable=!0,T&&(typeof T.read=="function"&&(this._read=T.read),typeof T.destroy=="function"&&(this._destroy=T.destroy)),r.call(this)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(T){this._readableState&&(this._readableState.destroyed=T)}}),P.prototype.destroy=u.destroy,P.prototype._undestroy=u.undestroy,P.prototype._destroy=function(T,Z){Z(T)},P.prototype.push=function(T,Z){var fe=this._readableState,F;return fe.objectMode?F=!0:typeof T=="string"&&(Z=Z||fe.defaultEncoding,Z!==fe.encoding&&(T=n.from(T,Z),Z=""),F=!0),M(this,T,Z,!1,F)},P.prototype.unshift=function(T){return M(this,T,null,!0,!1)};function M(T,Z,fe,F,he){l("readableAddChunk",Z);var ue=T._readableState;if(Z===null)ue.reading=!1,Y(T,ue);else{var ee;if(he||(ee=I(ue,Z)),ee)C(T,ee);else if(ue.objectMode||Z&&Z.length>0)if(typeof Z!="string"&&!ue.objectMode&&Object.getPrototypeOf(Z)!==n.prototype&&(Z=i(Z)),F)ue.endEmitted?C(T,new x):D(T,ue,Z,!0);else if(ue.ended)C(T,new b);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!fe?(Z=ue.decoder.write(Z),ue.objectMode||Z.length!==0?D(T,ue,Z,!1):se(T,ue)):D(T,ue,Z,!1)}else F||(ue.reading=!1,se(T,ue))}return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function D(T,Z,fe,F){Z.flowing&&Z.length===0&&!Z.sync?(Z.awaitDrain=0,T.emit("data",fe)):(Z.length+=Z.objectMode?1:fe.length,F?Z.buffer.unshift(fe):Z.buffer.push(fe),Z.needReadable&&te(T)),se(T,Z)}function I(T,Z){var fe;return!a(Z)&&typeof Z!="string"&&Z!==void 0&&!T.objectMode&&(fe=new v("chunk",["string","Buffer","Uint8Array"],Z)),fe}P.prototype.isPaused=function(){return this._readableState.flowing===!1},P.prototype.setEncoding=function(T){w||(w=FU().StringDecoder);var Z=new w(T);this._readableState.decoder=Z,this._readableState.encoding=this._readableState.decoder.encoding;for(var fe=this._readableState.buffer.head,F="";fe!==null;)F+=Z.write(fe.data),fe=fe.next;return this._readableState.buffer.clear(),F!==""&&this._readableState.buffer.push(F),this._readableState.length=F.length,this};var N=1073741824;function L(T){return T>=N?T=N:(T--,T|=T>>>1,T|=T>>>2,T|=T>>>4,T|=T>>>8,T|=T>>>16,T++),T}function H(T,Z){return T<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:T!==T?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:(T>Z.highWaterMark&&(Z.highWaterMark=L(T)),T<=Z.length?T:Z.ended?Z.length:(Z.needReadable=!0,0))}P.prototype.read=function(T){l("read",T),T=parseInt(T,10);var Z=this._readableState,fe=T;if(T!==0&&(Z.emittedReadable=!1),T===0&&Z.needReadable&&((Z.highWaterMark!==0?Z.length>=Z.highWaterMark:Z.length>0)||Z.ended))return l("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?ne(this):te(this),null;if(T=H(T,Z),T===0&&Z.ended)return Z.length===0&&ne(this),null;var F=Z.needReadable;l("need readable",F),(Z.length===0||Z.length-T<Z.highWaterMark)&&(F=!0,l("length less than watermark",F)),Z.ended||Z.reading?(F=!1,l("reading or ended",F)):F&&(l("do read"),Z.reading=!0,Z.sync=!0,Z.length===0&&(Z.needReadable=!0),this._read(Z.highWaterMark),Z.sync=!1,Z.reading||(T=H(fe,Z)));var he;return T>0?he=oe(T,Z):he=null,he===null?(Z.needReadable=Z.length<=Z.highWaterMark,T=0):(Z.length-=T,Z.awaitDrain=0),Z.length===0&&(Z.ended||(Z.needReadable=!0),fe!==T&&Z.ended&&ne(this)),he!==null&&this.emit("data",he),he};function Y(T,Z){if(l("onEofChunk"),!Z.ended){if(Z.decoder){var fe=Z.decoder.end();fe&&fe.length&&(Z.buffer.push(fe),Z.length+=Z.objectMode?1:fe.length)}Z.ended=!0,Z.sync?te(T):(Z.needReadable=!1,Z.emittedReadable||(Z.emittedReadable=!0,K(T)))}}function te(T){var Z=T._readableState;l("emitReadable",Z.needReadable,Z.emittedReadable),Z.needReadable=!1,Z.emittedReadable||(l("emitReadable",Z.flowing),Z.emittedReadable=!0,process.nextTick(K,T))}function K(T){var Z=T._readableState;l("emitReadable_",Z.destroyed,Z.length,Z.ended),!Z.destroyed&&(Z.length||Z.ended)&&(T.emit("readable"),Z.emittedReadable=!1),Z.needReadable=!Z.flowing&&!Z.ended&&Z.length<=Z.highWaterMark,G(T)}function se(T,Z){Z.readingMore||(Z.readingMore=!0,process.nextTick(U,T,Z))}function U(T,Z){for(;!Z.reading&&!Z.ended&&(Z.length<Z.highWaterMark||Z.flowing&&Z.length===0);){var fe=Z.length;if(l("maybeReadMore read 0"),T.read(0),fe===Z.length)break}Z.readingMore=!1}P.prototype._read=function(T){C(this,new y("_read()"))},P.prototype.pipe=function(T,Z){var fe=this,F=this._readableState;switch(F.pipesCount){case 0:F.pipes=T;break;case 1:F.pipes=[F.pipes,T];break;default:F.pipes.push(T);break}F.pipesCount+=1,l("pipe count=%d opts=%j",F.pipesCount,Z);var he=(!Z||Z.end!==!1)&&T!==null&&T!==process.stderr,ue=he?ae:He;F.endEmitted?process.nextTick(ue):fe.once("end",ue),T.on("unpipe",ee);function ee(B,J){l("onunpipe"),B===fe&&J&&J.hasUnpiped===!1&&(J.hasUnpiped=!0,Oe())}function ae(){l("onend"),T.end()}var le=Q(fe);T.on("drain",le);var _e=!1;function Oe(){l("cleanup"),T.removeListener("close",ye),T.removeListener("finish",Ce),T.removeListener("drain",le),T.removeListener("error",xe),T.removeListener("unpipe",ee),fe.removeListener("end",ae),fe.removeListener("end",He),fe.removeListener("data",be),_e=!0,F.awaitDrain&&(!T._writableState||T._writableState.needDrain)&&le()}fe.on("data",be);function be(B){l("ondata");var J=T.write(B);l("dest.write",J),J===!1&&((F.pipesCount===1&&F.pipes===T||F.pipesCount>1&&me(F.pipes,T)!==-1)&&!_e&&(l("false write response, pause",F.awaitDrain),F.awaitDrain++),fe.pause())}function xe(B){l("onerror",B),He(),T.removeListener("error",xe),t(T,"error")===0&&C(T,B)}_(T,"error",xe);function ye(){T.removeListener("finish",Ce),He()}T.once("close",ye);function Ce(){l("onfinish"),T.removeListener("close",ye),He()}T.once("finish",Ce);function He(){l("unpipe"),fe.unpipe(T)}return T.emit("pipe",fe),F.flowing||(l("pipe resume"),fe.resume()),T};function Q(T){return function(){var Z=T._readableState;l("pipeOnDrain",Z.awaitDrain),Z.awaitDrain&&Z.awaitDrain--,Z.awaitDrain===0&&t(T,"data")&&(Z.flowing=!0,G(T))}}P.prototype.unpipe=function(T){var Z=this._readableState,fe={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return T&&T!==Z.pipes?this:(T||(T=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,T&&T.emit("unpipe",this,fe),this);if(!T){var F=Z.pipes,he=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var ue=0;ue<he;ue++)F[ue].emit("unpipe",this,{hasUnpiped:!1});return this}var ee=me(Z.pipes,T);return ee===-1?this:(Z.pipes.splice(ee,1),Z.pipesCount-=1,Z.pipesCount===1&&(Z.pipes=Z.pipes[0]),T.emit("unpipe",this,fe),this)},P.prototype.on=function(T,Z){var fe=r.prototype.on.call(this,T,Z),F=this._readableState;return T==="data"?(F.readableListening=this.listenerCount("readable")>0,F.flowing!==!1&&this.resume()):T==="readable"&&!F.endEmitted&&!F.readableListening&&(F.readableListening=F.needReadable=!0,F.flowing=!1,F.emittedReadable=!1,l("on readable",F.length,F.reading),F.length?te(this):F.reading||process.nextTick(q,this)),fe},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(T,Z){var fe=r.prototype.removeListener.call(this,T,Z);return T==="readable"&&process.nextTick(X,this),fe},P.prototype.removeAllListeners=function(T){var Z=r.prototype.removeAllListeners.apply(this,arguments);return(T==="readable"||T===void 0)&&process.nextTick(X,this),Z};function X(T){var Z=T._readableState;Z.readableListening=T.listenerCount("readable")>0,Z.resumeScheduled&&!Z.paused?Z.flowing=!0:T.listenerCount("data")>0&&T.resume()}function q(T){l("readable nexttick read 0"),T.read(0)}P.prototype.resume=function(){var T=this._readableState;return T.flowing||(l("resume"),T.flowing=!T.readableListening,W(this,T)),T.paused=!1,this};function W(T,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,process.nextTick(re,T,Z))}function re(T,Z){l("resume",Z.reading),Z.reading||T.read(0),Z.resumeScheduled=!1,T.emit("resume"),G(T),Z.flowing&&!Z.reading&&T.read(0)}P.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 G(T){var Z=T._readableState;for(l("flow",Z.flowing);Z.flowing&&T.read()!==null;);}P.prototype.wrap=function(T){var Z=this,fe=this._readableState,F=!1;T.on("end",function(){if(l("wrapped end"),fe.decoder&&!fe.ended){var ee=fe.decoder.end();ee&&ee.length&&Z.push(ee)}Z.push(null)}),T.on("data",function(ee){if(l("wrapped data"),fe.decoder&&(ee=fe.decoder.write(ee)),!(fe.objectMode&&ee==null)&&!(!fe.objectMode&&(!ee||!ee.length))){var ae=Z.push(ee);ae||(F=!0,T.pause())}});for(var he in T)this[he]===void 0&&typeof T[he]=="function"&&(this[he]=function(ee){return function(){return T[ee].apply(T,arguments)}}(he));for(var ue=0;ue<A.length;ue++)T.on(A[ue],this.emit.bind(this,A[ue]));return this._read=function(ee){l("wrapped _read",ee),F&&(F=!1,T.resume())},this},typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return k===void 0&&(k=ORe()),k(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(T){this._readableState&&(this._readableState.flowing=T)}}),P._fromList=oe,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function oe(T,Z){if(Z.length===0)return null;var fe;return Z.objectMode?fe=Z.buffer.shift():!T||T>=Z.length?(Z.decoder?fe=Z.buffer.join(""):Z.buffer.length===1?fe=Z.buffer.first():fe=Z.buffer.concat(Z.length),Z.buffer.clear()):fe=Z.buffer.consume(T,Z.decoder),fe}function ne(T){var Z=T._readableState;l("endReadable",Z.endEmitted),Z.endEmitted||(Z.ended=!0,process.nextTick(ve,Z,T))}function ve(T,Z){if(l("endReadableNT",T.endEmitted,T.length),!T.endEmitted&&T.length===0&&(T.endEmitted=!0,Z.readable=!1,Z.emit("end"),T.autoDestroy)){var fe=Z._writableState;(!fe||fe.autoDestroy&&fe.finished)&&Z.destroy()}}typeof Symbol=="function"&&(P.from=function(T,Z){return j===void 0&&(j=wRe()),j(P,T,Z)});function me(T,Z){for(var fe=0,F=T.length;fe<F;fe++)if(T[fe]===Z)return fe;return-1}return k8}var C8,XU;function YU(){if(XU)return C8;XU=1,C8=s;var e=Lh().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Dh();function a(u,d){var h=this._transformState;h.transforming=!1;var g=h.writecb;if(g===null)return this.emit("error",new r);h.writechunk=null,h.writecb=null,d!=null&&this.push(d),g(u);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);i.call(this,u),this._transformState={afterTransform:a.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,h){c(u,d,h)}):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,h){h(new t("_transform()"))},s.prototype._write=function(u,d,h){var g=this._transformState;if(g.writecb=h,g.writechunk=u,g.writeencoding=d,!g.transforming){var v=this._readableState;(g.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.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(h){d(h)})};function c(u,d,h){if(d)return u.emit("error",d);if(h!=null&&u.push(h),u._writableState.length)throw new o;if(u._transformState.transforming)throw new n;return u.push(null)}return C8}var S8,GU;function kRe(){if(GU)return S8;GU=1,S8=t;var e=YU();function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},S8}var j8,JU;function CRe(){if(JU)return j8;JU=1;var e;function t(h){var g=!1;return function(){g||(g=!0,h.apply(void 0,arguments))}}var r=Lh().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function a(h){return h.setHeader&&typeof h.abort=="function"}function s(h,g,v,b){b=t(b);var y=!1;h.on("close",function(){y=!0}),e===void 0&&(e=O8()),e(h,{readable:g,writable:v},function(w){if(w)return b(w);y=!0,b()});var x=!1;return function(w){if(!y&&!x){if(x=!0,a(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();b(w||new o("pipe"))}}}function l(h){h()}function c(h,g){return h.pipe(g)}function u(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function d(){for(var h=arguments.length,g=new Array(h),v=0;v<h;v++)g[v]=arguments[v];var b=u(g);if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new n("streams");var y,x=g.map(function(w,k){var j=k<g.length-1,C=k>0;return s(w,j,C,function(A){y||(y=A),A&&x.forEach(l),!j&&(x.forEach(l),b(y))})});return g.reduce(c)}return j8=d,j8}var KU;function eH(){return KU||(KU=1,function(e,t){t=e.exports=WU(),t.Stream=t,t.Readable=t,t.Writable=zU(),t.Duplex=Dh(),t.Transform=YU(),t.PassThrough=kRe(),t.finished=O8(),t.pipeline=CRe()}(c8,c8.exports)),c8.exports}var tH;function rH(){if(tH)return Wy;tH=1;var e=SU(),t=Uw(),r=eH(),n=Wy.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=Wy.IncomingMessage=function(i,a,s,l){var c=this;if(r.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(y){if(!c._destroyed){if(l(y.done),y.done){c.push(null);return}c.push(Buffer.from(y.value)),b()}}).catch(function(y){l(!0),c._destroyed||c.emit("error",y)})};if(c._fetchResponse=a,c.url=a.url,c.statusCode=a.status,c.statusMessage=a.statusText,a.headers.forEach(function(y,x){c.headers[x.toLowerCase()]=y,c.rawHeaders.push(x,y)}),e.writableStream){var u=new WritableStream({write:function(y){return l(!1),new Promise(function(x,w){c._destroyed?w():c.push(Buffer.from(y))?x():c._resumeFetch=x})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(y){l(!0),c._destroyed||c.emit("error",y)}});try{a.body.pipeTo(u).catch(function(y){l(!0),c._destroyed||c.emit("error",y)});return}catch{}}var d=a.body.getReader();b()}else{c._xhr=i,c._pos=0,c.url=i.responseURL,c.statusCode=i.status,c.statusMessage=i.statusText;var h=i.getAllResponseHeaders().split(/\r?\n/);if(h.forEach(function(b){var y=b.match(/^([^:]+):\s*(.*)/);if(y){var x=y[1].toLowerCase();x==="set-cookie"?(c.headers[x]===void 0&&(c.headers[x]=[]),c.headers[x].push(y[2])):c.headers[x]!==void 0?c.headers[x]+=", "+y[2]:c.headers[x]=y[2],c.rawHeaders.push(y[1],y[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var g=c.rawHeaders["mime-type"];if(g){var v=g.match(/;\s*charset=([^;])(;|$)/);v&&(c._charset=v[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(o,r.Readable),o.prototype._read=function(){var i=this,a=i._resumeFetch;a&&(i._resumeFetch=null,a())},o.prototype._onXHRProgress=function(i){var a=this,s=a._xhr,l=null;switch(a._mode){case"text":if(l=s.responseText,l.length>a._pos){var c=l.substr(a._pos);if(a._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;a.push(u)}else a.push(c,a._charset);a._pos=l.length}break;case"arraybuffer":if(s.readyState!==n.DONE||!s.response)break;l=s.response,a.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==n.LOADING||!l)break;a.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==n.LOADING)break;var h=new globalThis.MSStreamReader;h.onprogress=function(){h.result.byteLength>a._pos&&(a.push(Buffer.from(new Uint8Array(h.result.slice(a._pos)))),a._pos=h.result.byteLength)},h.onload=function(){i(!0),a.push(null)},h.readAsArrayBuffer(l);break}a._xhr.readyState===n.DONE&&a._mode!=="ms-stream"&&(i(!0),a.push(null))},Wy}var nH;function SRe(){if(nH)return l8.exports;nH=1;var e=SU(),t=Uw(),r=rH(),n=eH(),o=r.IncomingMessage,i=r.readyStates;function a(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=l8.exports=function(u){var d=this;n.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(v){d.setHeader(v,u.headers[v])});var h,g=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)g=!1,h=!0;else if(u.mode==="prefer-streaming")h=!1;else if(u.mode==="allow-wrong-content-type")h=!e.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");d._mode=a(h,g),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,n.Writable),s.prototype.setHeader=function(u,d){var h=this,g=u.toLowerCase();c.indexOf(g)===-1&&(h._headers[g]={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 h=u._headers,g=null;d.method!=="GET"&&d.method!=="HEAD"&&(g=new Blob(u._body,{type:(h["content-type"]||{}).value||""}));var v=[];if(Object.keys(h).forEach(function(w){var k=h[w].name,j=h[w].value;Array.isArray(j)?j.forEach(function(C){v.push([k,C])}):v.push([k,j])}),u._mode==="fetch"){var b=null;if(e.abortController){var y=new AbortController;b=y.signal,u._fetchAbortController=y,"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:v,body:g||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:b}).then(function(w){u._fetchResponse=w,u._resetTimers(!1),u._connect()},function(w){u._resetTimers(!0),u._destroyed||u.emit("error",w)})}else{var x=u._xhr=new globalThis.XMLHttpRequest;try{x.open(u._opts.method,u._opts.url,!0)}catch(w){process.nextTick(function(){u.emit("error",w)});return}"responseType"in x&&(x.responseType=u._mode),"withCredentials"in x&&(x.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in x&&x.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(x.timeout=d.requestTimeout,x.ontimeout=function(){u.emit("requestTimeout")}),v.forEach(function(w){x.setRequestHeader(w[0],w[1])}),u._response=null,x.onreadystatechange=function(){switch(x.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(x.onprogress=function(){u._onXHRProgress()}),x.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{x.send(g)}catch(w){process.nextTick(function(){u.emit("error",w)});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 o(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,h){var g=this;g._body.push(u),h()},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,h){var g=this;typeof u=="function"&&(h=u,u=void 0),n.Writable.prototype.end.call(g,u,d,h)},s.prototype.setTimeout=function(u,d){var h=this;d&&h.once("timeout",d),h._socketTimeout=u,h._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 l8.exports}var A8,oH;function jRe(){if(oH)return A8;oH=1,A8=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n<arguments.length;n++){var o=arguments[n];for(var i in o)e.call(o,i)&&(r[i]=o[i])}return r}return A8}var iH,aH;function ARe(){return aH||(aH=1,iH={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"}),iH}var sH;function _Re(){return sH||(sH=1,function(e){var t=SRe(),r=rH(),n=jRe(),o=ARe(),i=W7(),a=e;a.request=function(s,l){typeof s=="string"?s=i.parse(s):s=n(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,h=s.port,g=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(h?":"+h:"")+g,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var v=new t(s);return l&&v.on("response",l),v},a.get=function(s,l){var c=a.request(s,l);return c.end(),c},a.ClientRequest=t,a.IncomingMessage=r.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.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"]}(wU)),wU}var lH,cH;function ERe(){return cH||(cH=1,lH={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},_Re().STATUS_CODES)}),lH}const PRe="7.0.8",TRe={version:PRe};var _8,uH;function $Re(){if(uH)return _8;uH=1;const e=Ih,t=W7(),r=pRe(),n=Ih,o=Ih,i=Uy(),a=i.jptr,s=K7().isRef,l=Hy().clone,c=Hy().circularClone,u=r8().recurse,d=gRe(),h=mRe(),g=yU(),v=ERe().statusCodes,b=TRe.version,y="3.0.0";let x;class w extends Error{constructor(Z){super(Z),this.name="S2OError"}}function k(T,Z){let fe=new w(T);if(fe.options=Z,Z.promise)Z.promise.reject(fe);else throw fe}function j(T,Z,fe){fe.warnOnly?Z[fe.warnProperty||"x-s2o-warning"]=T:k(T,fe)}function C(T,Z,fe){if(T.nullable&&fe.patches++,T.discriminator&&typeof T.discriminator=="string"&&(T.discriminator={propertyName:T.discriminator}),T.items&&Array.isArray(T.items)&&(T.items.length===0?T.items={}:T.items.length===1?T.items=T.items[0]:T.items={anyOf:T.items}),T.type&&Array.isArray(T.type))if(fe.patch){if(fe.patches++,T.type.length===0)delete T.type;else{T.oneOf||(T.oneOf=[]);for(let F of T.type){let he={};if(F==="null")T.nullable=!0;else{he.type=F;for(let ue of g.arrayProperties)typeof T.prop<"u"&&(he[ue]=T[ue],delete T[ue])}he.type&&T.oneOf.push(he)}delete T.type,T.oneOf.length===0?delete T.oneOf:T.oneOf.length<2&&(T.type=T.oneOf[0].type,Object.keys(T.oneOf[0]).length>1&&j("Lost properties from oneOf",T,fe),delete T.oneOf)}T.type&&Array.isArray(T.type)&&T.type.length===1&&(T.type=T.type[0])}else k("(Patchable) schema type must not be an array",fe);T.type&&T.type==="null"&&(delete T.type,T.nullable=!0),T.type==="array"&&!T.items&&(T.items={}),T.type==="file"&&(T.type="string",T.format="binary"),typeof T.required=="boolean"&&(T.required&&T.name&&(typeof Z.required>"u"&&(Z.required=[]),Array.isArray(Z.required)&&Z.required.push(T.name)),delete T.required),T.xml&&typeof T.xml.namespace=="string"&&(T.xml.namespace||delete T.xml.namespace),typeof T.allowEmptyValue<"u"&&(fe.patches++,delete T.allowEmptyValue)}function A(T,Z){if(T["x-required"]&&Array.isArray(T["x-required"])&&(T.required||(T.required=[]),T.required=T.required.concat(T["x-required"]),delete T["x-required"]),T["x-anyOf"]&&(T.anyOf=T["x-anyOf"],delete T["x-anyOf"]),T["x-oneOf"]&&(T.oneOf=T["x-oneOf"],delete T["x-oneOf"]),T["x-not"]&&(T.not=T["x-not"],delete T["x-not"]),typeof T["x-nullable"]=="boolean"&&(T.nullable=T["x-nullable"],delete T["x-nullable"]),typeof T["x-discriminator"]=="object"&&typeof T["x-discriminator"].propertyName=="string"){T.discriminator=T["x-discriminator"],delete T["x-discriminator"];for(let fe in T.discriminator.mapping){let F=T.discriminator.mapping[fe];F.startsWith("#/definitions/")&&(T.discriminator.mapping[fe]=F.replace("#/definitions/","#/components/schemas/"))}}}function _(T,Z){h.walkSchema(T,{},{},function(fe,F,he){A(fe),C(fe,F,Z)})}function E(T){return T.indexOf("#")>=0?T=T.split("#")[1].split("/").pop():T=T.split("/").pop().split(".")[0],encodeURIComponent(g.sanitise(T))}function P(T,Z,fe){let F=fe.payload.options;if(s(T,Z)){if(!T[Z].startsWith("#/components/")){if(T[Z]==="#/consumes")delete T[Z],fe.parent[fe.pkey]=l(F.openapi.consumes);else if(T[Z]==="#/produces")delete T[Z],fe.parent[fe.pkey]=l(F.openapi.produces);else if(T[Z].startsWith("#/definitions/")){let he=T[Z].replace("#/definitions/","").split("/");const ue=i.jpunescape(he[0]);let ee=x.schemas[decodeURIComponent(ue)];ee?he[0]=ee:j("Could not resolve reference "+T[Z],T,F),T[Z]="#/components/schemas/"+he.join("/")}else if(T[Z].startsWith("#/parameters/"))T[Z]="#/components/parameters/"+g.sanitise(T[Z].replace("#/parameters/",""));else if(T[Z].startsWith("#/responses/"))T[Z]="#/components/responses/"+g.sanitise(T[Z].replace("#/responses/",""));else if(T[Z].startsWith("#")){let he=l(i.jptr(F.openapi,T[Z]));if(he===!1)j("direct $ref not found "+T[Z],T,F);else if(F.refmap[T[Z]])T[Z]=F.refmap[T[Z]];else{let ue=T[Z];ue=ue.replace("/properties/headers/",""),ue=ue.replace("/properties/responses/",""),ue=ue.replace("/properties/parameters/",""),ue=ue.replace("/properties/schemas/","");let ee="schemas",ae=ue.lastIndexOf("/schema");if(ee=ue.indexOf("/headers/")>ae?"headers":ue.indexOf("/responses/")>ae?"responses":ue.indexOf("/example")>ae?"examples":ue.indexOf("/x-")>ae?"extensions":ue.indexOf("/parameters/")>ae?"parameters":"schemas",ee==="schemas"&&_(he,F),ee!=="responses"&&ee!=="extensions"){let le=ee.substr(0,ee.length-1);le==="parameter"&&he.name&&he.name===g.sanitise(he.name)&&(le=encodeURIComponent(he.name));let _e=1;for(T["x-miro"]&&(le=E(T["x-miro"]),_e="");i.jptr(F.openapi,"#/components/"+ee+"/"+le+_e);)_e=_e===""?2:++_e;let Oe="#/components/"+ee+"/"+le+_e,be="";ee==="examples"&&(he={value:he},be="/value"),i.jptr(F.openapi,Oe,he),F.refmap[T[Z]]=Oe+be,T[Z]=Oe+be}}}}if(delete T["x-miro"],Object.keys(T).length>1){const he=T[Z],ue=fe.path.indexOf("/schema")>=0;F.refSiblings==="preserve"||(ue&&F.refSiblings==="allOf"?(delete T.$ref,fe.parent[fe.pkey]={allOf:[{$ref:he},T]}):fe.parent[fe.pkey]={$ref:he})}}if(Z==="x-ms-odata"&&typeof T[Z]=="string"&&T[Z].startsWith("#/")){let he=T[Z].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ue=x.schemas[decodeURIComponent(he[0])];ue?he[0]=ue:j("Could not resolve reference "+T[Z],T,F),T[Z]="#/components/schemas/"+he.join("/")}}function M(T,Z){for(let fe in Z.refmap)i.jptr(T,fe,{$ref:Z.refmap[fe]})}function D(T){for(let Z in T)for(let fe in T[Z]){let F=g.sanitise(fe);fe!==F&&(T[Z][F]=T[Z][fe],delete T[Z][fe])}}function I(T,Z){if(T.type==="basic"&&(T.type="http",T.scheme="basic"),T.type==="oauth2"){let fe={},F=T.flow;T.flow==="application"&&(F="clientCredentials"),T.flow==="accessCode"&&(F="authorizationCode"),typeof T.authorizationUrl<"u"&&(fe.authorizationUrl=T.authorizationUrl.split("?")[0].trim()||"/"),typeof T.tokenUrl=="string"&&(fe.tokenUrl=T.tokenUrl.split("?")[0].trim()||"/"),fe.scopes=T.scopes||{},T.flows={},T.flows[F]=fe,delete T.flow,delete T.authorizationUrl,delete T.tokenUrl,delete T.scopes,typeof T.name<"u"&&(Z.patch?(Z.patches++,delete T.name):k("(Patchable) oauth2 securitySchemes should not have name property",Z))}}function N(T){return T&&!T["x-s2o-delete"]}function L(T,Z){if(T.$ref)T.$ref=T.$ref.replace("#/responses/","#/components/responses/");else{T.type&&!T.schema&&(T.schema={}),T.type&&(T.schema.type=T.type),T.items&&T.items.type!=="array"&&(T.items.collectionFormat!==T.collectionFormat&&j("Nested collectionFormats are not supported",T,Z),delete T.items.collectionFormat),T.type==="array"?(T.collectionFormat==="ssv"?j("collectionFormat:ssv is no longer supported for headers",T,Z):T.collectionFormat==="pipes"?j("collectionFormat:pipes is no longer supported for headers",T,Z):T.collectionFormat==="multi"?T.explode=!0:T.collectionFormat==="tsv"?(j("collectionFormat:tsv is no longer supported",T,Z),T["x-collectionFormat"]="tsv"):T.style="simple",delete T.collectionFormat):T.collectionFormat&&(Z.patch?(Z.patches++,delete T.collectionFormat):k("(Patchable) collectionFormat is only applicable to header.type array",Z)),delete T.type;for(let fe of g.parameterTypeProperties)typeof T[fe]<"u"&&(T.schema[fe]=T[fe],delete T[fe]);for(let fe of g.arrayProperties)typeof T[fe]<"u"&&(T.schema[fe]=T[fe],delete T[fe])}}function H(T,Z){if(T.$ref.indexOf("#/parameters/")>=0){let fe=T.$ref.split("#/parameters/");T.$ref=fe[0]+"#/components/parameters/"+g.sanitise(fe[1])}T.$ref.indexOf("#/definitions/")>=0&&j("Definition used as parameter",T,Z)}function Y(T,Z){let fe={};for(let F of Object.keys(T))fe[F]=T[F],F==="parameters"&&(fe.requestBody={},Z.rbname&&(fe[Z.rbname]=""));return fe.requestBody={},fe}function te(T,Z,fe,F,he,ue,ee){let ae={},le=!0,_e;if(Z&&Z.consumes&&typeof Z.consumes=="string")if(ee.patch)ee.patches++,Z.consumes=[Z.consumes];else return k("(Patchable) operation.consumes must be an array",ee);Array.isArray(ue.consumes)||delete ue.consumes;let Oe=((Z?Z.consumes:null)||ue.consumes||[]).filter(g.uniqueOnly);if(T&&T.$ref&&typeof T.$ref=="string"){H(T,ee);let be=decodeURIComponent(T.$ref.replace("#/components/parameters/","")),xe=!1,ye=ue.components.parameters[be];if((!ye||ye["x-s2o-delete"])&&T.$ref.startsWith("#/")&&(T["x-s2o-delete"]=!0,xe=!0),xe){let Ce=T.$ref,He=a(ue,T.$ref);!He&&Ce.startsWith("#/")?j("Could not resolve reference "+Ce,T,ee):He&&(T=He)}}if(T&&(T.name||T.in)){typeof T["x-deprecated"]=="boolean"&&(T.deprecated=T["x-deprecated"],delete T["x-deprecated"]),typeof T["x-example"]<"u"&&(T.example=T["x-example"],delete T["x-example"]),T.in!=="body"&&!T.type&&(ee.patch?(ee.patches++,T.type="string"):k("(Patchable) parameter.type is mandatory for non-body parameters",ee)),T.type&&typeof T.type=="object"&&T.type.$ref&&(T.type=a(ue,T.type.$ref)),T.type==="file"&&(T["x-s2o-originalType"]=T.type,_e=T.type),T.description&&typeof T.description=="object"&&T.description.$ref&&(T.description=a(ue,T.description.$ref)),T.description===null&&delete T.description;let be=T.collectionFormat;if(T.type==="array"&&!be&&(be="csv"),be&&(T.type!=="array"&&(ee.patch?(ee.patches++,delete T.collectionFormat):k("(Patchable) collectionFormat is only applicable to param.type array",ee)),be==="csv"&&(T.in==="query"||T.in==="cookie")&&(T.style="form",T.explode=!1),be==="csv"&&(T.in==="path"||T.in==="header")&&(T.style="simple"),be==="ssv"&&(T.in==="query"?T.style="spaceDelimited":j("collectionFormat:ssv is no longer supported except for in:query parameters",T,ee)),be==="pipes"&&(T.in==="query"?T.style="pipeDelimited":j("collectionFormat:pipes is no longer supported except for in:query parameters",T,ee)),be==="multi"&&(T.explode=!0),be==="tsv"&&(j("collectionFormat:tsv is no longer supported",T,ee),T["x-collectionFormat"]="tsv"),delete T.collectionFormat),T.type&&T.type!=="body"&&T.in!=="formData")if(T.items&&T.schema)j("parameter has array,items and schema",T,ee);else{T.schema&&ee.patches++,(!T.schema||typeof T.schema!="object")&&(T.schema={}),T.schema.type=T.type,T.items&&(T.schema.items=T.items,delete T.items,u(T.schema.items,null,function(xe,ye,Ce){ye==="collectionFormat"&&typeof xe[ye]=="string"&&(be&&xe[ye]!==be&&j("Nested collectionFormats are not supported",T,ee),delete xe[ye])}));for(let xe of g.parameterTypeProperties)typeof T[xe]<"u"&&(T.schema[xe]=T[xe]),delete T[xe]}T.schema&&_(T.schema,ee),T["x-ms-skip-url-encoding"]&&T.in==="query"&&(T.allowReserved=!0,delete T["x-ms-skip-url-encoding"])}if(T&&T.in==="formData"){le=!1,ae.content={};let be="application/x-www-form-urlencoded";if(Oe.length&&Oe.indexOf("multipart/form-data")>=0&&(be="multipart/form-data"),ae.content[be]={},T.schema)ae.content[be].schema=T.schema,T.schema.$ref&&(ae["x-s2o-name"]=decodeURIComponent(T.schema.$ref.replace("#/components/schemas/","")));else{ae.content[be].schema={},ae.content[be].schema.type="object",ae.content[be].schema.properties={},ae.content[be].schema.properties[T.name]={};let xe=ae.content[be].schema,ye=ae.content[be].schema.properties[T.name];T.description&&(ye.description=T.description),T.example&&(ye.example=T.example),T.type&&(ye.type=T.type);for(let Ce of g.parameterTypeProperties)typeof T[Ce]<"u"&&(ye[Ce]=T[Ce]);T.required===!0&&(xe.required||(xe.required=[]),xe.required.push(T.name),ae.required=!0),typeof T.default<"u"&&(ye.default=T.default),ye.properties&&(ye.properties=T.properties),T.allOf&&(ye.allOf=T.allOf),T.type==="array"&&T.items&&(ye.items=T.items,ye.items.collectionFormat&&delete ye.items.collectionFormat),(_e==="file"||T["x-s2o-originalType"]==="file")&&(ye.type="string",ye.format="binary"),K(T,ye)}}else T&&T.type==="file"&&(T.required&&(ae.required=T.required),ae.content={},ae.content["application/octet-stream"]={},ae.content["application/octet-stream"].schema={},ae.content["application/octet-stream"].schema.type="string",ae.content["application/octet-stream"].schema.format="binary",K(T,ae));if(T&&T.in==="body"){ae.content={},T.name&&(ae["x-s2o-name"]=(Z&&Z.operationId?g.sanitiseAll(Z.operationId):"")+("_"+T.name).toCamelCase()),T.description&&(ae.description=T.description),T.required&&(ae.required=T.required),Z&&ee.rbname&&T.name&&(Z[ee.rbname]=T.name),T.schema&&T.schema.$ref?ae["x-s2o-name"]=decodeURIComponent(T.schema.$ref.replace("#/components/schemas/","")):T.schema&&T.schema.type==="array"&&T.schema.items&&T.schema.items.$ref&&(ae["x-s2o-name"]=decodeURIComponent(T.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),Oe.length||Oe.push("application/json");for(let be of Oe)ae.content[be]={},ae.content[be].schema=l(T.schema||{}),_(ae.content[be].schema,ee);K(T,ae)}if(Object.keys(ae).length>0&&(T["x-s2o-delete"]=!0,Z))if(Z.requestBody&&le){Z.requestBody["x-s2o-overloaded"]=!0;let be=Z.operationId||he;j("Operation "+be+" has multiple requestBodies",Z,ee)}else Z.requestBody||(Z=fe[F]=Y(Z,ee)),Z.requestBody.content&&Z.requestBody.content["multipart/form-data"]&&Z.requestBody.content["multipart/form-data"].schema&&Z.requestBody.content["multipart/form-data"].schema.properties&&ae.content["multipart/form-data"]&&ae.content["multipart/form-data"].schema&&ae.content["multipart/form-data"].schema.properties?(Z.requestBody.content["multipart/form-data"].schema.properties=Object.assign(Z.requestBody.content["multipart/form-data"].schema.properties,ae.content["multipart/form-data"].schema.properties),Z.requestBody.content["multipart/form-data"].schema.required=(Z.requestBody.content["multipart/form-data"].schema.required||[]).concat(ae.content["multipart/form-data"].schema.required||[]),Z.requestBody.content["multipart/form-data"].schema.required.length||delete Z.requestBody.content["multipart/form-data"].schema.required):Z.requestBody.content&&Z.requestBody.content["application/x-www-form-urlencoded"]&&Z.requestBody.content["application/x-www-form-urlencoded"].schema&&Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&ae.content["application/x-www-form-urlencoded"]&&ae.content["application/x-www-form-urlencoded"].schema&&ae.content["application/x-www-form-urlencoded"].schema.properties?(Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties,ae.content["application/x-www-form-urlencoded"].schema.properties),Z.requestBody.content["application/x-www-form-urlencoded"].schema.required=(Z.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(ae.content["application/x-www-form-urlencoded"].schema.required||[]),Z.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete Z.requestBody.content["application/x-www-form-urlencoded"].schema.required):(Z.requestBody=Object.assign(Z.requestBody,ae),Z.requestBody["x-s2o-name"]||(Z.requestBody.schema&&Z.requestBody.schema.$ref?Z.requestBody["x-s2o-name"]=decodeURIComponent(Z.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):Z.operationId&&(Z.requestBody["x-s2o-name"]=g.sanitiseAll(Z.operationId))));if(T&&!T["x-s2o-delete"]){delete T.type;for(let be of g.parameterTypeProperties)delete T[be];T.in==="path"&&(typeof T.required>"u"||T.required!==!0)&&(ee.patch?(ee.patches++,T.required=!0):k("(Patchable) path parameters must be required:true ["+T.name+" in "+he+"]",ee))}return Z}function K(T,Z){for(let fe in T)fe.startsWith("x-")&&!fe.startsWith("x-s2o")&&(Z[fe]=T[fe])}function se(T,Z,fe,F,he){if(!T)return!1;if(T.$ref&&typeof T.$ref=="string")T.$ref.indexOf("#/definitions/")>=0?j("definition used as response: "+T.$ref,T,he):T.$ref.startsWith("#/responses/")&&(T.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(T.$ref.replace("#/responses/",""))));else{if((typeof T.description>"u"||T.description===null||T.description===""&&he.patch)&&(he.patch?typeof T=="object"&&!Array.isArray(T)&&(he.patches++,T.description=v[T]||""):k("(Patchable) response.description is mandatory",he)),typeof T.schema<"u"){if(_(T.schema,he),T.schema.$ref&&typeof T.schema.$ref=="string"&&T.schema.$ref.startsWith("#/responses/")&&(T.schema.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(T.schema.$ref.replace("#/responses/","")))),fe&&fe.produces&&typeof fe.produces=="string")if(he.patch)he.patches++,fe.produces=[fe.produces];else return k("(Patchable) operation.produces must be an array",he);F.produces&&!Array.isArray(F.produces)&&delete F.produces;let ue=((fe?fe.produces:null)||F.produces||[]).filter(g.uniqueOnly);ue.length||ue.push("*/*"),T.content={};for(let ee of ue){if(T.content[ee]={},T.content[ee].schema=l(T.schema),T.examples&&T.examples[ee]){let ae={};ae.value=T.examples[ee],T.content[ee].examples={},T.content[ee].examples.response=ae,delete T.examples[ee]}T.content[ee].schema.type==="file"&&(T.content[ee].schema={type:"string",format:"binary"})}delete T.schema}for(let ue in T.examples)T.content||(T.content={}),T.content[ue]||(T.content[ue]={}),T.content[ue].examples={},T.content[ue].examples.response={},T.content[ue].examples.response.value=T.examples[ue];if(delete T.examples,T.headers)for(let ue in T.headers)ue.toLowerCase()==="status code"?he.patch?(he.patches++,delete T.headers[ue]):k('(Patchable) "Status Code" is not a valid header',he):L(T.headers[ue],he)}}function U(T,Z,fe,F,he){for(let ue in T){let ee=T[ue];ee&&ee["x-trace"]&&typeof ee["x-trace"]=="object"&&(ee.trace=ee["x-trace"],delete ee["x-trace"]),ee&&ee["x-summary"]&&typeof ee["x-summary"]=="string"&&(ee.summary=ee["x-summary"],delete ee["x-summary"]),ee&&ee["x-description"]&&typeof ee["x-description"]=="string"&&(ee.description=ee["x-description"],delete ee["x-description"]),ee&&ee["x-servers"]&&Array.isArray(ee["x-servers"])&&(ee.servers=ee["x-servers"],delete ee["x-servers"]);for(let ae in ee)if(g.httpMethods.indexOf(ae)>=0||ae==="x-amazon-apigateway-any-method"){let le=ee[ae];if(le&&le.parameters&&Array.isArray(le.parameters)){if(ee.parameters)for(let _e of ee.parameters)typeof _e.$ref=="string"&&(H(_e,fe),_e=a(he,_e.$ref)),!le.parameters.find(function(Oe,be,xe){return Oe.name===_e.name&&Oe.in===_e.in})&&(_e.in==="formData"||_e.in==="body"||_e.type==="file")&&(le=te(_e,le,ee,ae,ue,he,fe),fe.rbname&&le[fe.rbname]===""&&delete le[fe.rbname]);for(let _e of le.parameters)le=te(_e,le,ee,ae,ae+":"+ue,he,fe);fe.rbname&&le[fe.rbname]===""&&delete le[fe.rbname],fe.debug||le.parameters&&(le.parameters=le.parameters.filter(N))}if(le&&le.security&&D(le.security),typeof le=="object"){if(!le.responses){let _e={};_e.description="Default response",le.responses={default:_e}}for(let _e in le.responses){let Oe=le.responses[_e];se(Oe,_e,le,he,fe)}}if(le&&le["x-servers"]&&Array.isArray(le["x-servers"]))le.servers=le["x-servers"],delete le["x-servers"];else if(le&&le.schemes&&le.schemes.length){for(let _e of le.schemes)if((!he.schemes||he.schemes.indexOf(_e)<0)&&(le.servers||(le.servers=[]),Array.isArray(he.servers)))for(let Oe of he.servers){let be=l(Oe),xe=t.parse(be.url);xe.protocol=_e,be.url=xe.format(),le.servers.push(be)}}if(fe.debug&&(le["x-s2o-consumes"]=le.consumes||[],le["x-s2o-produces"]=le.produces||[]),le){if(delete le.consumes,delete le.produces,delete le.schemes,le["x-ms-examples"]){for(let _e in le["x-ms-examples"]){let Oe=le["x-ms-examples"][_e],be=g.sanitiseAll(_e);if(Oe.parameters)for(let xe in Oe.parameters){let ye=Oe.parameters[xe];for(let Ce of(le.parameters||[]).concat(ee.parameters||[]))Ce.$ref&&(Ce=i.jptr(he,Ce.$ref)),Ce.name===xe&&!Ce.example&&(Ce.examples||(Ce.examples={}),Ce.examples[_e]={value:ye})}if(Oe.responses)for(let xe in Oe.responses){if(Oe.responses[xe].headers)for(let ye in Oe.responses[xe].headers){let Ce=Oe.responses[xe].headers[ye];for(let He in le.responses[xe].headers)if(He===ye){let B=le.responses[xe].headers[He];B.example=Ce}}if(Oe.responses[xe].body&&(he.components.examples[be]={value:l(Oe.responses[xe].body)},le.responses[xe]&&le.responses[xe].content))for(let ye in le.responses[xe].content){let Ce=le.responses[xe].content[ye];Ce.examples||(Ce.examples={}),Ce.examples[_e]={$ref:"#/components/examples/"+be}}}}delete le["x-ms-examples"]}if(le.parameters&&le.parameters.length===0&&delete le.parameters,le.requestBody){let _e=le.operationId?g.sanitiseAll(le.operationId):g.sanitiseAll(ae+ue).toCamelCase(),Oe=g.sanitise(le.requestBody["x-s2o-name"]||_e||"");delete le.requestBody["x-s2o-name"];let be=JSON.stringify(le.requestBody),xe=g.hash(be);if(!F[xe]){let Ce={};Ce.name=Oe,Ce.body=le.requestBody,Ce.refs=[],F[xe]=Ce}let ye="#/"+Z+"/"+encodeURIComponent(i.jpescape(ue))+"/"+ae+"/requestBody";F[xe].refs.push(ye)}}}if(ee&&ee.parameters){for(let ae in ee.parameters){let le=ee.parameters[ae];te(le,null,ee,null,ue,he,fe)}!fe.debug&&Array.isArray(ee.parameters)&&(ee.parameters=ee.parameters.filter(N))}}}function Q(T,Z){let fe={};x={schemas:{}},T.security&&D(T.security);for(let he in T.components.securitySchemes){let ue=g.sanitise(he);he!==ue&&(T.components.securitySchemes[ue]&&k("Duplicate sanitised securityScheme name "+ue,Z),T.components.securitySchemes[ue]=T.components.securitySchemes[he],delete T.components.securitySchemes[he]),I(T.components.securitySchemes[ue],Z)}for(let he in T.components.schemas){let ue=g.sanitiseAll(he),ee="";if(he!==ue){for(;T.components.schemas[ue+ee];)ee=ee?++ee:2;T.components.schemas[ue+ee]=T.components.schemas[he],delete T.components.schemas[he]}x.schemas[he]=ue+ee,_(T.components.schemas[ue+ee],Z)}Z.refmap={},u(T,{payload:{options:Z}},P),M(T,Z);for(let he in T.components.parameters){let ue=g.sanitise(he);he!==ue&&(T.components.parameters[ue]&&k("Duplicate sanitised parameter name "+ue,Z),T.components.parameters[ue]=T.components.parameters[he],delete T.components.parameters[he]);let ee=T.components.parameters[ue];te(ee,null,null,null,ue,T,Z)}for(let he in T.components.responses){let ue=g.sanitise(he);he!==ue&&(T.components.responses[ue]&&k("Duplicate sanitised response name "+ue,Z),T.components.responses[ue]=T.components.responses[he],delete T.components.responses[he]);let ee=T.components.responses[ue];if(se(ee,ue,null,T,Z),ee.headers)for(let ae in ee.headers)ae.toLowerCase()==="status code"?Z.patch?(Z.patches++,delete ee.headers[ae]):k('(Patchable) "Status Code" is not a valid header',Z):L(ee.headers[ae],Z)}for(let he in T.components.requestBodies){let ue=T.components.requestBodies[he],ee=JSON.stringify(ue),ae=g.hash(ee),le={};le.name=he,le.body=ue,le.refs=[],fe[ae]=le}if(U(T.paths,"paths",Z,fe,T),T["x-ms-paths"]&&U(T["x-ms-paths"],"x-ms-paths",Z,fe,T),!Z.debug)for(let he in T.components.parameters)T.components.parameters[he]["x-s2o-delete"]&&delete T.components.parameters[he];Z.debug&&(T["x-s2o-consumes"]=T.consumes||[],T["x-s2o-produces"]=T.produces||[]),delete T.consumes,delete T.produces,delete T.schemes;let F=[];if(T.components.requestBodies={},!Z.resolveInternal){let he=1;for(let ue in fe){let ee=fe[ue];if(ee.refs.length>1){let ae="";for(ee.name||(ee.name="requestBody",ae=he++);F.indexOf(ee.name+ae)>=0;)ae=ae?++ae:2;ee.name=ee.name+ae,F.push(ee.name),T.components.requestBodies[ee.name]=l(ee.body);for(let le in ee.refs){let _e={};_e.$ref="#/components/requestBodies/"+ee.name,i.jptr(T,ee.refs[le],_e)}}}}return T.components.responses&&Object.keys(T.components.responses).length===0&&delete T.components.responses,T.components.parameters&&Object.keys(T.components.parameters).length===0&&delete T.components.parameters,T.components.examples&&Object.keys(T.components.examples).length===0&&delete T.components.examples,T.components.requestBodies&&Object.keys(T.components.requestBodies).length===0&&delete T.components.requestBodies,T.components.securitySchemes&&Object.keys(T.components.securitySchemes).length===0&&delete T.components.securitySchemes,T.components.headers&&Object.keys(T.components.headers).length===0&&delete T.components.headers,T.components.schemas&&Object.keys(T.components.schemas).length===0&&delete T.components.schemas,T.components&&Object.keys(T.components).length===0&&delete T.components,T}function X(T){return!T||!T.url||typeof T.url!="string"||(T.url=T.url.split("{{").join("{"),T.url=T.url.split("}}").join("}"),T.url.replace(/\{(.+?)\}/g,function(Z,fe){T.variables||(T.variables={}),T.variables[fe]={default:"unknown"}})),T}function q(T,Z,fe){if(typeof T.info>"u"||T.info===null)if(Z.patch)Z.patches++,T.info={version:"",title:""};else return fe(new w("(Patchable) info object is mandatory"));if(typeof T.info!="object"||Array.isArray(T.info))return fe(new w("info must be an object"));if(typeof T.info.title>"u"||T.info.title===null)if(Z.patch)Z.patches++,T.info.title="";else return fe(new w("(Patchable) info.title cannot be null"));if(typeof T.info.version>"u"||T.info.version===null)if(Z.patch)Z.patches++,T.info.version="";else return fe(new w("(Patchable) info.version cannot be null"));if(typeof T.info.version!="string")if(Z.patch)Z.patches++,T.info.version=T.info.version.toString();else return fe(new w("(Patchable) info.version must be a string"));if(typeof T.info.logo<"u")if(Z.patch)Z.patches++,T.info["x-logo"]=T.info.logo,delete T.info.logo;else return fe(new w("(Patchable) info should not have logo property"));if(typeof T.info.termsOfService<"u"){if(T.info.termsOfService===null)if(Z.patch)Z.patches++,T.info.termsOfService="";else return fe(new w("(Patchable) info.termsOfService cannot be null"));try{new URL(T.info.termsOfService)}catch{if(Z.patch)Z.patches++,delete T.info.termsOfService;else return fe(new w("(Patchable) info.termsOfService must be a URL"))}}}function W(T,Z,fe){if(typeof T.paths>"u")if(Z.patch)Z.patches++,T.paths={};else return fe(new w("(Patchable) paths object is mandatory"))}function re(T,Z){const fe=new WeakSet;u(T,{identityDetection:!0},function(F,he,ue){typeof F[he]=="object"&&F[he]!==null&&(fe.has(F[he])?Z.anchors?F[he]=l(F[he]):k("YAML anchor or merge key at "+ue.path,Z):fe.add(F[he]))})}function G(T,Z,fe){return r(fe,new Promise(function(F,he){if(T||(T={}),Z.original=T,Z.text||(Z.text=o.stringify(T)),Z.externals=[],Z.externalRefs={},Z.rewriteRefs=!0,Z.preserveMiro=!0,Z.promise={},Z.promise.resolve=F,Z.promise.reject=he,Z.patches=0,Z.cache||(Z.cache={}),Z.source&&(Z.cache[Z.source]=Z.original),re(T,Z),T.openapi&&typeof T.openapi=="string"&&T.openapi.startsWith("3.")){Z.openapi=c(T),q(Z.openapi,Z,he),W(Z.openapi,Z,he),d.optionalResolve(Z).then(function(){return Z.direct?F(Z.openapi):F(Z)}).catch(function(ee){console.warn(ee),he(ee)});return}if(!T.swagger||T.swagger!="2.0")return he(new w("Unsupported swagger/OpenAPI version: "+(T.openapi?T.openapi:T.swagger)));let ue=Z.openapi={};if(ue.openapi=typeof Z.targetVersion=="string"&&Z.targetVersion.startsWith("3.")?Z.targetVersion:y,Z.origin){ue["x-origin"]||(ue["x-origin"]=[]);let ee={};ee.url=Z.source||Z.origin,ee.format="swagger",ee.version=T.swagger,ee.converter={},ee.converter.url="https://github.com/mermade/oas-kit",ee.converter.version=b,ue["x-origin"].push(ee)}if(ue=Object.assign(ue,c(T)),delete ue.swagger,u(ue,{},function(ee,ae,le){ee[ae]===null&&!ae.startsWith("x-")&&ae!=="default"&&le.path.indexOf("/example")<0&&delete ee[ae]}),T.host)for(let ee of Array.isArray(T.schemes)?T.schemes:[""]){let ae={},le=(T.basePath||"").replace(/\/$/,"");ae.url=(ee?ee+":":"")+"//"+T.host+le,X(ae),ue.servers||(ue.servers=[]),ue.servers.push(ae)}else if(T.basePath){let ee={};ee.url=T.basePath,X(ee),ue.servers||(ue.servers=[]),ue.servers.push(ee)}if(delete ue.host,delete ue.basePath,ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]),T["x-ms-parameterized-host"]){let ee=T["x-ms-parameterized-host"],ae={};ae.url=ee.hostTemplate+(T.basePath?T.basePath:""),ae.variables={};const le=ae.url.match(/\{\w+\}/g);for(let _e in ee.parameters){let Oe=ee.parameters[_e];Oe.$ref&&(Oe=l(a(ue,Oe.$ref))),_e.startsWith("x-")||(delete Oe.required,delete Oe.type,delete Oe.in,typeof Oe.default>"u"&&(Oe.enum?Oe.default=Oe.enum[0]:Oe.default="none"),Oe.name||(Oe.name=le[_e].replace("{","").replace("}","")),ae.variables[Oe.name]=Oe,delete Oe.name)}ue.servers||(ue.servers=[]),ee.useSchemePrefix===!1?ue.servers.push(ae):T.schemes.forEach(_e=>{ue.servers.push(Object.assign({},ae,{url:_e+"://"+ae.url}))}),delete ue["x-ms-parameterized-host"]}q(ue,Z,he),W(ue,Z,he),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(Z).then(function(){Q(Z.openapi,Z),Z.direct?F(Z.openapi):F(Z)}).catch(function(ee){console.warn(ee),he(ee)})}))}function oe(T,Z,fe){return r(fe,new Promise(function(F,he){let ue=null,ee=null;try{ue=JSON.parse(T),Z.text=JSON.stringify(ue,null,2)}catch(ae){ee=ae;try{ue=o.parse(T,{schema:"core",prettyErrors:!0}),Z.sourceYaml=!0,Z.text=T}catch(le){ee=le}}ue?G(ue,Z).then(ae=>F(ae)).catch(ae=>he(ae)):he(new w(ee?ee.message:"Could not parse string"))}))}function ne(T,Z,fe){return r(fe,new Promise(function(F,he){Z.origin=!0,Z.source||(Z.source=T),Z.verbose&&console.warn("GET "+T),Z.fetch||(Z.fetch=n);const ue=Object.assign({},Z.fetchOptions,{agent:Z.agent});Z.fetch(T,ue).then(function(ee){if(ee.status!==200)throw new w(`Received status code ${ee.status}: ${T}`);return ee.text()}).then(function(ee){oe(ee,Z).then(ae=>F(ae)).catch(ae=>he(ae))}).catch(function(ee){he(ee)})}))}function ve(T,Z,fe){return r(fe,new Promise(function(F,he){e.readFile(T,Z.encoding||"utf8",function(ue,ee){ue?he(ue):(Z.sourceFile=T,oe(ee,Z).then(ae=>F(ae)).catch(ae=>he(ae)))})}))}function me(T,Z,fe){return r(fe,new Promise(function(F,he){let ue="";T.on("data",function(ee){ue+=ee}).on("end",function(){oe(ue,Z).then(ee=>F(ee)).catch(ee=>he(ee))})}))}return _8={S2OError:w,targetVersion:y,convert:G,convertObj:G,convertUrl:ne,convertStr:oe,convertFile:ve,convertStream:me},_8}var RRe=$Re();const MRe=Zn(RRe);function IRe(e){return e.paths||(e.paths={}),new Promise((t,r)=>MRe.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(n,o)=>{if(n)return r(n);t(o?.openapi)}))}async function LRe(e){const t=new VE({}),r={config:t,base:Ya?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};Ya&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?r.doc=DRe(e):r.ref=e;const{bundle:{parsed:n}}=await X$e(r);return n.swagger!==void 0?IRe(n):n}function DRe(e){return{source:{absoluteRef:""},parsed:e}}async function zRe(e,t,r){let n;if(r?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');n=e}else n=await LRe(e||t);try{R3e(n)}catch{}return n}const NRe=({options:e,definitionUrl:t,definition:r,activeSampleLanguage:n,children:o})=>{const[,i]=$.useState(),[a,s]=$.useState(!0),[l,c]=$.useState(null);$.useEffect(()=>{async function d(){s(!0);try{c(await zRe(r,t,e))}catch(h){i(()=>{throw h})}}d()},[r,t,e]);const u=$.useMemo(()=>{if(l)return e?.unstable_hooks?.onInit&&e.unstable_hooks?.onInit?.({store:{definition:l,options:e,definitionUrl:t,activeSampleLanguage:n}}),{definition:l,options:e,definitionUrl:t,activeSampleLanguage:n}},M3e([l,e,t]));return $.useEffect(()=>{u&&s(!1)},[u]),u?a?ma(e?.hideLoading,!1)?null:f.jsx(Mje,{color:"--loading-spinner-color"}):$.isValidElement(o)?$.cloneElement(o,{store:u}):null:null};function BRe({definition:e,definitionUrl:t,options:r={},activeItemId:n,activeSampleLanguage:o,activeDeepLink:i}){return f.jsx(NRe,{definition:e,definitionUrl:t,options:r,activeItemId:n,activeSampleLanguage:o,activeDeepLink:i,children:f.jsx(VF,{withCommonStyles:!0})})}function VRe(e){const t={},r=e.attributes;for(let n=0;n<r.length;n++){const o=r[n];t[o.name]=o.value}return t}function FRe(e){const t=VRe(e),r={};for(const n in t){const o=n.replace(/-(.)/g,(i,a)=>a.toUpperCase());r[o]=t[n]}return r}function QRe(e,t=document.querySelector("redoc")){LR.hydrateRoot(t,f.jsx(VF,{store:e}))}function dH(e,t={},r=D6("redoc")){if(r===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let n,o;typeof e=="string"?n=e:typeof e=="object"&&(o=e),LR.createRoot(r).render($.createElement(BRe,{definition:o,definitionUrl:n,options:{...t,...FRe(r)}},["Loading..."]))}const qRe="3.12.0-next.14",ZRe="d3c25c3361";function URe(){const e=D6("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&dH(t,{},e)}URe();var pH={exports:{}};/*!
|
|
9333
|
+
`," "],s=["{","}","|","\\","^","`"].concat(a),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=uRe();function w(A,_,E){if(A&&t.isObject(A)&&A instanceof r)return A;var P=new r;return P.parse(A,_,E),P}r.prototype.parse=function(A,_,E){if(!t.isString(A))throw new TypeError("Parameter 'url' must be a string, not "+typeof A);var P=A.indexOf("?"),M=P!==-1&&P<A.indexOf("#")?"?":"#",D=A.split(M),I=/\\/g;D[0]=D[0].replace(I,"/"),A=D.join(M);var N=A;if(N=N.trim(),!E&&A.split("#").length===1){var L=i.exec(N);if(L)return this.path=N,this.href=N,this.pathname=L[1],L[2]?(this.search=L[2],_?this.query=x.parse(this.search.substr(1)):this.query=this.search.substr(1)):_&&(this.search="",this.query={}),this}var H=n.exec(N);if(H){H=H[0];var Y=H.toLowerCase();this.protocol=Y,N=N.substr(H.length)}if(E||H||N.match(/^\/\/[^@\/]+@[^@\/]+/)){var te=N.substr(0,2)==="//";te&&!(H&&b[H])&&(N=N.substr(2),this.slashes=!0)}if(!b[H]&&(te||H&&!y[H])){for(var K=-1,se=0;se<u.length;se++){var U=N.indexOf(u[se]);U!==-1&&(K===-1||U<K)&&(K=U)}var Q,X;K===-1?X=N.lastIndexOf("@"):X=N.lastIndexOf("@",K),X!==-1&&(Q=N.slice(0,X),N=N.slice(X+1),this.auth=decodeURIComponent(Q)),K=-1;for(var se=0;se<c.length;se++){var U=N.indexOf(c[se]);U!==-1&&(K===-1||U<K)&&(K=U)}K===-1&&(K=N.length),this.host=N.slice(0,K),N=N.slice(K),this.parseHost(),this.hostname=this.hostname||"";var q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!q)for(var W=this.hostname.split(/\./),se=0,re=W.length;se<re;se++){var G=W[se];if(G&&!G.match(h)){for(var oe="",ne=0,ve=G.length;ne<ve;ne++)G.charCodeAt(ne)>127?oe+="x":oe+=G[ne];if(!oe.match(h)){var me=W.slice(0,se),T=W.slice(se+1),Z=G.match(g);Z&&(me.push(Z[1]),T.unshift(Z[2])),T.length&&(N="/"+T.join(".")+N),this.hostname=me.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),q||(this.hostname=e.toASCII(this.hostname));var fe=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+fe,this.href+=this.host,q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),N[0]!=="/"&&(N="/"+N))}if(!v[Y])for(var se=0,re=l.length;se<re;se++){var he=l[se];if(N.indexOf(he)!==-1){var ue=encodeURIComponent(he);ue===he&&(ue=escape(he)),N=N.split(he).join(ue)}}var ee=N.indexOf("#");ee!==-1&&(this.hash=N.substr(ee),N=N.slice(0,ee));var ae=N.indexOf("?");if(ae!==-1?(this.search=N.substr(ae),this.query=N.substr(ae+1),_&&(this.query=x.parse(this.query)),N=N.slice(0,ae)):_&&(this.search="",this.query={}),N&&(this.pathname=N),y[Y]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var fe=this.pathname||"",le=this.search||"";this.path=fe+le}return this.href=this.format(),this};function k(A){return t.isString(A)&&(A=w(A)),A instanceof r?A.format():r.prototype.format.call(A)}r.prototype.format=function(){var A=this.auth||"";A&&(A=encodeURIComponent(A),A=A.replace(/%3A/i,":"),A+="@");var _=this.protocol||"",E=this.pathname||"",P=this.hash||"",M=!1,D="";this.host?M=A+this.host:this.hostname&&(M=A+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(M+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(D=x.stringify(this.query));var I=this.search||D&&"?"+D||"";return _&&_.substr(-1)!==":"&&(_+=":"),this.slashes||(!_||y[_])&&M!==!1?(M="//"+(M||""),E&&E.charAt(0)!=="/"&&(E="/"+E)):M||(M=""),P&&P.charAt(0)!=="#"&&(P="#"+P),I&&I.charAt(0)!=="?"&&(I="?"+I),E=E.replace(/[?#]/g,function(N){return encodeURIComponent(N)}),I=I.replace("#","%23"),_+M+E+I+P};function j(A,_){return w(A,!1,!0).resolve(_)}r.prototype.resolve=function(A){return this.resolveObject(w(A,!1,!0)).format()};function C(A,_){return A?w(A,!1,!0).resolveObject(_):_}return r.prototype.resolveObject=function(A){if(t.isString(A)){var _=new r;_.parse(A,!1,!0),A=_}for(var E=new r,P=Object.keys(this),M=0;M<P.length;M++){var D=P[M];E[D]=this[D]}if(E.hash=A.hash,A.href==="")return E.href=E.format(),E;if(A.slashes&&!A.protocol){for(var I=Object.keys(A),N=0;N<I.length;N++){var L=I[N];L!=="protocol"&&(E[L]=A[L])}return y[E.protocol]&&E.hostname&&!E.pathname&&(E.path=E.pathname="/"),E.href=E.format(),E}if(A.protocol&&A.protocol!==E.protocol){if(!y[A.protocol]){for(var H=Object.keys(A),Y=0;Y<H.length;Y++){var te=H[Y];E[te]=A[te]}return E.href=E.format(),E}if(E.protocol=A.protocol,!A.host&&!b[A.protocol]){for(var re=(A.pathname||"").split("/");re.length&&!(A.host=re.shift()););A.host||(A.host=""),A.hostname||(A.hostname=""),re[0]!==""&&re.unshift(""),re.length<2&&re.unshift(""),E.pathname=re.join("/")}else E.pathname=A.pathname;if(E.search=A.search,E.query=A.query,E.host=A.host||"",E.auth=A.auth,E.hostname=A.hostname||A.host,E.port=A.port,E.pathname||E.search){var K=E.pathname||"",se=E.search||"";E.path=K+se}return E.slashes=E.slashes||A.slashes,E.href=E.format(),E}var U=E.pathname&&E.pathname.charAt(0)==="/",Q=A.host||A.pathname&&A.pathname.charAt(0)==="/",X=Q||U||E.host&&A.pathname,q=X,W=E.pathname&&E.pathname.split("/")||[],re=A.pathname&&A.pathname.split("/")||[],G=E.protocol&&!y[E.protocol];if(G&&(E.hostname="",E.port=null,E.host&&(W[0]===""?W[0]=E.host:W.unshift(E.host)),E.host="",A.protocol&&(A.hostname=null,A.port=null,A.host&&(re[0]===""?re[0]=A.host:re.unshift(A.host)),A.host=null),X=X&&(re[0]===""||W[0]==="")),Q)E.host=A.host||A.host===""?A.host:E.host,E.hostname=A.hostname||A.hostname===""?A.hostname:E.hostname,E.search=A.search,E.query=A.query,W=re;else if(re.length)W||(W=[]),W.pop(),W=W.concat(re),E.search=A.search,E.query=A.query;else if(!t.isNullOrUndefined(A.search)){if(G){E.hostname=E.host=W.shift();var oe=E.host&&E.host.indexOf("@")>0?E.host.split("@"):!1;oe&&(E.auth=oe.shift(),E.host=E.hostname=oe.shift())}return E.search=A.search,E.query=A.query,(!t.isNull(E.pathname)||!t.isNull(E.search))&&(E.path=(E.pathname?E.pathname:"")+(E.search?E.search:"")),E.href=E.format(),E}if(!W.length)return E.pathname=null,E.search?E.path="/"+E.search:E.path=null,E.href=E.format(),E;for(var ne=W.slice(-1)[0],ve=(E.host||A.host||W.length>1)&&(ne==="."||ne==="..")||ne==="",me=0,T=W.length;T>=0;T--)ne=W[T],ne==="."?W.splice(T,1):ne===".."?(W.splice(T,1),me++):me&&(W.splice(T,1),me--);if(!X&&!q)for(;me--;me)W.unshift("..");X&&W[0]!==""&&(!W[0]||W[0].charAt(0)!=="/")&&W.unshift(""),ve&&W.join("/").substr(-1)!=="/"&&W.push("");var Z=W[0]===""||W[0]&&W[0].charAt(0)==="/";if(G){E.hostname=E.host=Z?"":W.length?W.shift():"";var oe=E.host&&E.host.indexOf("@")>0?E.host.split("@"):!1;oe&&(E.auth=oe.shift(),E.host=E.hostname=oe.shift())}return X=X||E.host&&W.length,X&&!Z&&W.unshift(""),W.length?E.pathname=W.join("/"):(E.pathname=null,E.path=null),(!t.isNull(E.pathname)||!t.isNull(E.search))&&(E.path=(E.pathname?E.pathname:"")+(E.search?E.search:"")),E.auth=A.auth||E.auth,E.slashes=E.slashes||A.slashes,E.href=E.format(),E},r.prototype.parseHost=function(){var A=this.host,_=o.exec(A);_&&(_=_[0],_!==":"&&(this.port=_.substr(1)),A=A.substr(0,A.length-_.length)),A&&(this.hostname=A)},Nd}var X7,uU;function dRe(){if(uU)return X7;uU=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return X7=e(),X7}var Y7,dU;function pRe(){if(dU)return Y7;dU=1;var e=dRe();return Y7=function(t,r){if(t){r.then(function(n){e(function(){t(null,n)})},function(n){e(function(){t(n)})});return}else return r},Y7}var G7,pU;function Uy(){if(pU)return G7;pU=1;function e(n){return n.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(n){return n.replace(/\~1/g,"/").replace(/~0/g,"~")}function r(n,o,i){if(typeof n>"u")return!1;if(!o||typeof o!="string"||o==="#")return typeof i<"u"?i:n;if(o.indexOf("#")>=0){let s=o.split("#");if(s[0])return!1;o=s[1],o=decodeURIComponent(o.slice(1).split("+").join(" "))}o.startsWith("/")&&(o=o.slice(1));let a=o.split("/");for(let s=0;s<a.length;s++){a[s]=t(a[s]);let l=typeof i<"u"&&s==a.length-1,c=parseInt(a[s],10);if(!Array.isArray(n)||isNaN(c)||c.toString()!==a[s]?c=Array.isArray(n)&&a[s]==="-"?-2:-1:a[s]=s>0?a[s-1]:"",c!=-1||n&&n.hasOwnProperty(a[s]))if(c>=0)l&&(n[c]=i),n=n[c];else{if(c===-2)return l?(Array.isArray(n)&&n.push(i),i):void 0;l&&(n[a[s]]=i),n=n[a[s]]}else if(typeof i<"u"&&typeof n=="object"&&!Array.isArray(n))n[a[s]]=l?i:a[s+1]==="0"||a[s+1]==="-"?[]:{},n=n[a[s]];else return!1}return n}return G7={jptr:r,jpescape:e,jpunescape:t},G7}var J7,hU;function K7(){if(hU)return J7;hU=1;function e(t,r){return r==="$ref"&&!!t&&typeof t[r]=="string"}return J7={isRef:e},J7}var e8,fU;function Hy(){if(fU)return e8;fU=1;function e(a){return a}function t(a){return JSON.parse(JSON.stringify(a))}function r(a){let s={};for(let l in a)a.hasOwnProperty(l)&&(s[l]=a[l]);return s}function n(a){let s=Array.isArray(a)?[]:{};for(let l in a)(a.hasOwnProperty(l)||Array.isArray(a))&&(s[l]=typeof a[l]=="object"?n(a[l]):a[l]);return s}function o(a){return Object.assign({},a)}function i(a,s){if(s||(s=new WeakMap),Object(a)!==a||a instanceof Function)return a;if(s.has(a))return s.get(a);try{var l=new a.constructor}catch{l=Object.create(Object.getPrototypeOf(a))}return s.set(a,l),Object.assign(l,...Object.keys(a).map(c=>({[c]:i(a[c],s)})))}return e8={nop:e,clone:t,shallowClone:r,deepClone:n,fastClone:o,circularClone:i},e8}var t8,gU;function r8(){if(gU)return t8;gU=1;const e=Uy().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function r(n,o,i){if(o||(o={depth:0}),o.depth||(o=Object.assign({},t(),o)),typeof n!="object")return;let a=o.path;for(let s in n){if(o.key=s,o.path=o.path+"/"+encodeURIComponent(e(s)),o.identityPath=o.seen.get(n[s]),o.identity=typeof o.identityPath<"u",n.hasOwnProperty(s)&&i(n,s,o),typeof n[s]=="object"&&!o.identity){o.identityDetection&&!Array.isArray(n[s])&&n[s]!==null&&o.seen.set(n[s],o.path);let l={};l.parent=n,l.path=o.path,l.depth=o.depth?o.depth+1:1,l.pkey=s,l.payload=o.payload,l.seen=o.seen,l.identity=!1,l.identityDetection=o.identityDetection,r(n[s],l,i)}o.path=a}}return t8={recurse:r},t8}var n8,mU;function hRe(){if(mU)return n8;mU=1;const e=r8().recurse,t=Hy().shallowClone,r=Uy().jptr,n=K7().isRef;var o=function(a){return a&&a.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(a,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?a:t(a),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let h=o(l),g=1;for(;g>0;)g=0,e(u,l.state,function(v,b,y){if(n(v,b)){let x=v[b];if(g++,l.cache[x]){let w=l.cache[x];if(w.resolved)h.warn("Patching %s for %s",x,w.path),y.parent[y.pkey]=w.data,l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=x);else{if(x===w.path)throw new Error(`Tight circle at ${w.path}`);h.warn("Unresolved ref"),y.parent[y.pkey]=r(w.source,w.path),y.parent[y.pkey]===!1&&(y.parent[y.pkey]=r(w.source,w.key)),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[l.$ref]=x)}}else{let w={};w.path=y.path.split("/$ref")[0],w.key=x,h.warn("Dereffing %s at %s",x,w.path),w.source=d,w.data=r(w.source,w.key),w.data===!1&&(w.data=r(l.master,w.key),w.source=l.master),w.data===!1&&h.warn("Missing $ref target",w.key),l.cache[x]=w,w.data=y.parent[y.pkey]=i(r(w.source,w.key),w.source,l),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=x),w.resolved=!0}}});return u.data}return n8={dereference:i},n8}var o8,vU;function fRe(){if(vU)return o8;vU=1,o8=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(h,g,v,b){typeof b>"u"&&(b=o()),s(h,"",0,[],void 0,0,b);var y;try{n.length===0?y=JSON.stringify(h,g,v):y=JSON.stringify(h,d(g),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var x=r.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return y}function a(h,g,v,b){var y=Object.getOwnPropertyDescriptor(b,v);y.get!==void 0?y.configurable?(Object.defineProperty(b,v,{value:h}),r.push([b,v,g,y])):n.push([g,v,h]):(b[v]=h,r.push([b,v,g]))}function s(h,g,v,b,y,x,w){x+=1;var k;if(typeof h=="object"&&h!==null){for(k=0;k<b.length;k++)if(b[k]===h){a(t,h,g,y);return}if(typeof w.depthLimit<"u"&&x>w.depthLimit){a(e,h,g,y);return}if(typeof w.edgesLimit<"u"&&v+1>w.edgesLimit){a(e,h,g,y);return}if(b.push(h),Array.isArray(h))for(k=0;k<h.length;k++)s(h[k],k,k,b,h,x,w);else{var j=Object.keys(h);for(k=0;k<j.length;k++){var C=j[k];s(h[C],C,k,b,h,x,w)}}b.pop()}}function l(h,g){return h<g?-1:h>g?1:0}function c(h,g,v,b){typeof b>"u"&&(b=o());var y=u(h,"",0,[],void 0,0,b)||h,x;try{n.length===0?x=JSON.stringify(y,g,v):x=JSON.stringify(y,d(g),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var w=r.pop();w.length===4?Object.defineProperty(w[0],w[1],w[3]):w[0][w[1]]=w[2]}}return x}function u(h,g,v,b,y,x,w){x+=1;var k;if(typeof h=="object"&&h!==null){for(k=0;k<b.length;k++)if(b[k]===h){a(t,h,g,y);return}try{if(typeof h.toJSON=="function")return}catch{return}if(typeof w.depthLimit<"u"&&x>w.depthLimit){a(e,h,g,y);return}if(typeof w.edgesLimit<"u"&&v+1>w.edgesLimit){a(e,h,g,y);return}if(b.push(h),Array.isArray(h))for(k=0;k<h.length;k++)u(h[k],k,k,b,h,x,w);else{var j={},C=Object.keys(h).sort(l);for(k=0;k<C.length;k++){var A=C[k];u(h[A],A,k,b,h,x,w),j[A]=h[A]}if(typeof y<"u")r.push([y,g,h]),y[g]=j;else return j}b.pop()}}function d(h){return h=typeof h<"u"?h:function(g,v){return v},function(g,v){if(n.length>0)for(var b=0;b<n.length;b++){var y=n[b];if(y[1]===g&&y[0]===v){v=y[2],n.splice(b,1);break}}return h.call(this,g,v)}}return o8}var i8,bU;function yU(){if(bU)return i8;bU=1;var e={};const t=fRe(),r=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function n(y,x,w){return w.indexOf(y)===x}function o(y){return new Set(y).size!==y.length}function i(y){return new Set(y).size<=1}function a(y,x){function w(k,j){return t.stringify(k)===t.stringify(Object.assign({},k,j))}return w(y,x)&&w(x,y)}function s(y){let x=[];for(let w of y)x.find(function(k,j,C){return a(k,w)})||x.push(w);return x}function l(y){return y.length===s(y).length}function c(y){return y.find(function(x,w,k){return y.indexOf(x)<w})}function u(y){let x=0,w;if(y.length===0)return x;for(let k=0;k<y.length;k++)w=y.charCodeAt(k),x=(x<<5)-x+w,x|=0;return x}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(y,x){return x.toUpperCase()})};const d=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],h=["items","minItems","maxItems","uniqueItems"],g=["get","post","put","delete","patch","head","options","trace"];function v(y){y=y.replace("[]","Array");let x=y.split("/");return x[0]=x[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),x.join("/")}function b(y){return v(y.split("/").join("_"))}return i8={colour:r,uniqueOnly:n,hasDuplicates:o,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:h,httpMethods:g,sanitise:v,sanitiseAll:b},i8}var a8,xU;function gRe(){if(xU)return a8;xU=1;const e=Ih,t=BI(),r=W7(),n=Ih,o=Ih,i=Uy().jptr,a=r8().recurse,s=Hy().clone,l=hRe().dereference,c=K7().isRef,u=yU();function d(E){return[...new Set(E)]}function h(E,P,M,D,I){return new Promise(function(N,L){e.readFile(E,P,function(H,Y){H?M.ignoreIOErrors&&I?(M.verbose&&console.warn("FAILED",D),M.externalRefs[D].failed=!0,N(I)):L(H):N(Y)})})}function g(E,P,M,D,I,N){let L=N.externalRefs[M+D].paths[0],H=r.parse(I),Y={},te=1;for(;te;)te=0,a(E,{identityDetection:!0},function(K,se,U){if(c(K,se)){if(K[se].startsWith("#")){if(!Y[K[se]]&&!K.$fixed){let Q=s(i(P,K[se]));if(N.verbose>1&&console.warn((Q===!1?u.colour.red:u.colour.green)+"Fragment resolution",K[se],u.colour.normal),Q===!1){if(U.parent[U.pkey]={},N.fatal){let X=new Error("Fragment $ref resolution failed "+K[se]);if(N.promise)N.promise.reject(X);else throw X}}else te++,U.parent[U.pkey]=Q,Y[K[se]]=U.path.replace("/%24ref","")}else if(!K.$fixed){let Q=(L+"/"+Y[K[se]]).split("/#/").join("/");U.parent[U.pkey]={$ref:Q,"x-miro":K[se],$fixed:!0},N.verbose>1&&console.warn("Replacing with",Q),te++}}else if(H.protocol){let Q=r.resolve(I,K[se]).toString();N.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",K[se],"as",Q,u.colour.normal),K["x-miro"]=K[se],N.externalRefs[K[se]]&&(N.externalRefs[Q]||(N.externalRefs[Q]=N.externalRefs[K[se]]),N.externalRefs[Q].failed=N.externalRefs[K[se]].failed),K[se]=Q}else if(!K["x-miro"]){let Q=r.resolve(I,K[se]).toString(),X=!1;N.externalRefs[K[se]]&&(X=N.externalRefs[K[se]].failed),X||(N.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",K[se],"as",Q,u.colour.normal),K["x-miro"]=K[se],K[se]=Q)}}});return a(E,{},function(K,se,U){c(K,se)&&typeof K.$fixed<"u"&&delete K.$fixed}),N.verbose>1&&console.warn("Finished fragment resolution"),E}function v(E,P){if(!P.filters||!P.filters.length)return E;for(let M of P.filters)E=M(E,P);return E}function b(E,P){return E&&E.length>2?E:P&&P.length>2?P:"file:"}function y(E,P,M,D){var I=r.parse(M.source),N=M.source.split("\\").join("/").split("/");N.pop()||N.pop();let L="",H=P.split("#");H.length>1&&(L="#"+H[1],P=H[0]),N=N.join("/");let Y=r.parse(P),te=b(Y.protocol,I.protocol),K;if(te==="file:"?K=t.resolve(N?N+"/":"",P):K=r.resolve(N?N+"/":"",P),M.cache[K]){M.verbose&&console.warn("CACHED",K,L);let se=s(M.cache[K]),U=M.externalRef=se;if(L&&(U=i(U,L),U===!1&&(U={},M.fatal))){let Q=new Error("Cached $ref resolution failed "+K+L);if(M.promise)M.promise.reject(Q);else throw Q}return U=g(U,se,P,L,K,M),U=v(U,M),D(s(U),K,M),Promise.resolve(U)}if(M.verbose&&console.warn("GET",K,L),M.handlers&&M.handlers[te])return M.handlers[te](N,P,L,M).then(function(se){return M.externalRef=se,se=v(se,M),M.cache[K]=se,D(se,K,M),se}).catch(function(se){throw M.verbose&&console.warn(se),se});if(te&&te.startsWith("http")){const se=Object.assign({},M.fetchOptions,{agent:M.agent});return M.fetch(K,se).then(function(U){if(U.status!==200){if(M.ignoreIOErrors)return M.verbose&&console.warn("FAILED",P),M.externalRefs[P].failed=!0,'{"$ref":"'+P+'"}';throw new Error(`Received status code ${U.status}: ${K}`)}return U.text()}).then(function(U){try{let Q=o.parse(U,{schema:"core",prettyErrors:!0});if(U=M.externalRef=Q,M.cache[K]=s(U),L&&(U=i(U,L),U===!1&&(U={},M.fatal))){let X=new Error("Remote $ref resolution failed "+K+L);if(M.promise)M.promise.reject(X);else throw X}U=g(U,Q,P,L,K,M),U=v(U,M)}catch(Q){if(M.verbose&&console.warn(Q),M.promise&&M.fatal)M.promise.reject(Q);else throw Q}return D(U,K,M),U}).catch(function(U){if(M.verbose&&console.warn(U),M.cache[K]={},M.promise&&M.fatal)M.promise.reject(U);else throw U})}else{const se='{"$ref":"'+P+'"}';return h(K,M.encoding||"utf8",M,P,se).then(function(U){try{let Q=o.parse(U,{schema:"core",prettyErrors:!0});if(U=M.externalRef=Q,M.cache[K]=s(U),L&&(U=i(U,L),U===!1&&(U={},M.fatal))){let X=new Error("File $ref resolution failed "+K+L);if(M.promise)M.promise.reject(X);else throw X}U=g(U,Q,P,L,K,M),U=v(U,M)}catch(Q){if(M.verbose&&console.warn(Q),M.promise&&M.fatal)M.promise.reject(Q);else throw Q}return D(U,K,M),U}).catch(function(U){if(M.verbose&&console.warn(U),M.promise&&M.fatal)M.promise.reject(U);else throw U})}}function x(E){return new Promise(function(P,M){function D(N,L,H){if(N[L]&&c(N[L],"$ref")){let Y=N[L].$ref;if(!Y.startsWith("#")){let te="";if(!I[Y]){let K=Object.keys(I).find(function(se,U,Q){return Y.startsWith(se+"/")});K&&(E.verbose&&console.warn("Found potential subschema at",K),te="/"+(Y.split("#")[1]||"").replace(K.split("#")[1]||""),te=te.split("/undefined").join(""),Y=K)}if(I[Y]||(I[Y]={resolved:!1,paths:[],extras:{},description:N[L].description}),I[Y].resolved){if(!I[Y].failed)if(E.rewriteRefs){let K=I[Y].resolvedAt;E.verbose>1&&console.warn("Rewriting ref",Y,K),N[L]["x-miro"]=Y,N[L].$ref=K+te}else N[L]=s(I[Y].data)}else I[Y].paths.push(H.path),I[Y].extras[H.path]=te}}}let I=E.externalRefs;if(E.resolver.depth>0&&E.source===E.resolver.base)return P(I);a(E.openapi.definitions,{identityDetection:!0,path:"#/definitions"},D),a(E.openapi.components,{identityDetection:!0,path:"#/components"},D),a(E.openapi,{identityDetection:!0},D),P(I)})}function w(E){return new Promise(function(P,M){x(E).then(function(I){for(let N in I)if(!I[N].resolved){let L=E.resolver.depth;L>0&&L++,E.resolver.actions[L].push(function(){return y(E.openapi,N,E,function(H,Y,te){if(!I[N].resolved){let U={};U.context=I[N],U.$ref=N,U.original=s(H),U.updated=H,U.source=Y,te.externals.push(U),I[N].resolved=!0}let K=Object.assign({},te,{source:"",resolver:{actions:te.resolver.actions,depth:te.resolver.actions.length-1,base:te.resolver.base}});te.patch&&I[N].description&&!H.description&&typeof H=="object"&&(H.description=I[N].description),I[N].data=H;let se=d(I[N].paths);se=se.sort(function(U,Q){const X=U.startsWith("#/components/")||U.startsWith("#/definitions/"),q=Q.startsWith("#/components/")||Q.startsWith("#/definitions/");return X&&!q?-1:q&&!X?1:0});for(let U of se)if(I[N].resolvedAt&&U!==I[N].resolvedAt&&U.indexOf("x-ms-examples/")<0)te.verbose>1&&console.warn("Creating pointer to data at",U),i(te.openapi,U,{$ref:I[N].resolvedAt+I[N].extras[U],"x-miro":N+I[N].extras[U]});else{I[N].resolvedAt?te.verbose>1&&console.warn("Avoiding circular reference"):(I[N].resolvedAt=U,te.verbose>1&&console.warn("Creating initial clone of data at",U));let Q=s(H);i(te.openapi,U,Q)}te.resolver.actions[K.resolver.depth].length===0&&te.resolver.actions[K.resolver.depth].push(function(){return w(K)})})})}}).catch(function(I){E.verbose&&console.warn(I),M(I)});let D={options:E};D.actions=E.resolver.actions[E.resolver.depth],P(D)})}const k=E=>E.reduce((P,M)=>P.then(D=>M().then(Array.prototype.concat.bind(D))),Promise.resolve([]));function j(E,P,M){E.resolver.actions.push([]),w(E).then(function(D){k(D.actions).then(function(){if(E.resolver.depth>=E.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),P(!0);E.resolver.depth++,E.resolver.actions[E.resolver.depth].length?setTimeout(function(){j(D.options,P,M)},0):(E.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),E.resolveInternal&&(E.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),E.openapi=l(E.openapi,E.original,{verbose:E.verbose-1}),E.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),a(E.openapi,{},function(I,N,L){c(I,N)&&(E.preserveMiro||delete I["x-miro"])}),P(E))}).catch(function(I){E.verbose&&console.warn(I),M(I)})}).catch(function(D){E.verbose&&console.warn(D),M(D)})}function C(E){if(E.cache||(E.cache={}),E.fetch||(E.fetch=n),E.source){let P=r.parse(E.source);(!P.protocol||P.protocol.length<=2)&&(E.source=t.resolve(E.source))}E.externals=[],E.externalRefs={},E.rewriteRefs=!0,E.resolver={},E.resolver.depth=0,E.resolver.base=E.source,E.resolver.actions=[[]]}function A(E){return C(E),new Promise(function(P,M){E.resolve?j(E,P,M):P(E)})}function _(E,P,M){return M||(M={}),M.openapi=E,M.source=P,M.resolve=!0,C(M),new Promise(function(D,I){j(M,D,I)})}return a8={optionalResolve:A,resolve:_},a8}var s8,OU;function mRe(){if(OU)return s8;OU=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(r,n,o,i){if(typeof o.depth>"u"&&(o=e()),r===null||typeof r>"u")return r;if(typeof r.$ref<"u"){let a={$ref:r.$ref};return o.allowRefSiblings&&r.description&&(a.description=r.description),i(a,n,o),a}if(o.combine&&(r.allOf&&Array.isArray(r.allOf)&&r.allOf.length===1&&(r=Object.assign({},r.allOf[0],r),delete r.allOf),r.anyOf&&Array.isArray(r.anyOf)&&r.anyOf.length===1&&(r=Object.assign({},r.anyOf[0],r),delete r.anyOf),r.oneOf&&Array.isArray(r.oneOf)&&r.oneOf.length===1&&(r=Object.assign({},r.oneOf[0],r),delete r.oneOf)),i(r,n,o),o.seen.has(r))return r;if(typeof r=="object"&&r!==null&&o.seen.set(r,!0),o.top=!1,o.depth++,typeof r.items<"u"&&(o.property="items",t(r.items,r,o,i)),r.additionalItems&&typeof r.additionalItems=="object"&&(o.property="additionalItems",t(r.additionalItems,r,o,i)),r.additionalProperties&&typeof r.additionalProperties=="object"&&(o.property="additionalProperties",t(r.additionalProperties,r,o,i)),r.properties)for(let a in r.properties){let s=r.properties[a];o.property="properties/"+a,t(s,r,o,i)}if(r.patternProperties)for(let a in r.patternProperties){let s=r.patternProperties[a];o.property="patternProperties/"+a,t(s,r,o,i)}if(r.allOf)for(let a in r.allOf){let s=r.allOf[a];o.property="allOf/"+a,t(s,r,o,i)}if(r.anyOf)for(let a in r.anyOf){let s=r.anyOf[a];o.property="anyOf/"+a,t(s,r,o,i)}if(r.oneOf)for(let a in r.oneOf){let s=r.oneOf[a];o.property="oneOf/"+a,t(s,r,o,i)}return r.not&&(o.property="not",t(r.not,r,o,i)),o.depth--,r}return s8={getDefaultState:e,walkSchema:t},s8}var wU={},l8={exports:{}},kU={},CU;function SU(){return CU||(CU=1,function(e){e.fetch=o(globalThis.fetch)&&o(globalThis.ReadableStream),e.writableStream=o(globalThis.WritableStream),e.abortController=o(globalThis.AbortController);var t;function r(){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 n(i){var a=r();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?o(r().overrideMimeType):!1);function o(i){return typeof i=="function"}t=null}(kU)),kU}var Wy={},c8={exports:{}},Xy={exports:{}},jU;function vRe(){if(jU)return Xy.exports;jU=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(j,C,A){return Function.prototype.apply.call(j,C,A)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(j){return Object.getOwnPropertyNames(j).concat(Object.getOwnPropertySymbols(j))}:r=function(j){return Object.getOwnPropertyNames(j)};function n(j){console&&console.warn&&console.warn(j)}var o=Number.isNaN||function(j){return j!==j};function i(){i.init.call(this)}Xy.exports=i,Xy.exports.once=x,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=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 a},set:function(j){if(typeof j!="number"||j<0||o(j))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+j+".");a=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||o(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 C=[],A=1;A<arguments.length;A++)C.push(arguments[A]);var _=j==="error",E=this._events;if(E!==void 0)_=_&&E.error===void 0;else if(!_)return!1;if(_){var P;if(C.length>0&&(P=C[0]),P instanceof Error)throw P;var M=new Error("Unhandled error."+(P?" ("+P.message+")":""));throw M.context=P,M}var D=E[j];if(D===void 0)return!1;if(typeof D=="function")t(D,this,C);else for(var I=D.length,N=v(D,I),A=0;A<I;++A)t(N[A],this,C);return!0};function c(j,C,A,_){var E,P,M;if(s(A),P=j._events,P===void 0?(P=j._events=Object.create(null),j._eventsCount=0):(P.newListener!==void 0&&(j.emit("newListener",C,A.listener?A.listener:A),P=j._events),M=P[C]),M===void 0)M=P[C]=A,++j._eventsCount;else if(typeof M=="function"?M=P[C]=_?[A,M]:[M,A]:_?M.unshift(A):M.push(A),E=l(j),E>0&&M.length>E&&!M.warned){M.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+M.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=j,D.type=C,D.count=M.length,n(D)}return j}i.prototype.addListener=function(j,C){return c(this,j,C,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(j,C){return c(this,j,C,!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,C,A){var _={fired:!1,wrapFn:void 0,target:j,type:C,listener:A},E=u.bind(_);return E.listener=A,_.wrapFn=E,E}i.prototype.once=function(j,C){return s(C),this.on(j,d(this,j,C)),this},i.prototype.prependOnceListener=function(j,C){return s(C),this.prependListener(j,d(this,j,C)),this},i.prototype.removeListener=function(j,C){var A,_,E,P,M;if(s(C),_=this._events,_===void 0)return this;if(A=_[j],A===void 0)return this;if(A===C||A.listener===C)--this._eventsCount===0?this._events=Object.create(null):(delete _[j],_.removeListener&&this.emit("removeListener",j,A.listener||C));else if(typeof A!="function"){for(E=-1,P=A.length-1;P>=0;P--)if(A[P]===C||A[P].listener===C){M=A[P].listener,E=P;break}if(E<0)return this;E===0?A.shift():b(A,E),A.length===1&&(_[j]=A[0]),_.removeListener!==void 0&&this.emit("removeListener",j,M||C)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(j){var C,A,_;if(A=this._events,A===void 0)return this;if(A.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):A[j]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete A[j]),this;if(arguments.length===0){var E=Object.keys(A),P;for(_=0;_<E.length;++_)P=E[_],P!=="removeListener"&&this.removeAllListeners(P);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(C=A[j],typeof C=="function")this.removeListener(j,C);else if(C!==void 0)for(_=C.length-1;_>=0;_--)this.removeListener(j,C[_]);return this};function h(j,C,A){var _=j._events;if(_===void 0)return[];var E=_[C];return E===void 0?[]:typeof E=="function"?A?[E.listener||E]:[E]:A?y(E):v(E,E.length)}i.prototype.listeners=function(j){return h(this,j,!0)},i.prototype.rawListeners=function(j){return h(this,j,!1)},i.listenerCount=function(j,C){return typeof j.listenerCount=="function"?j.listenerCount(C):g.call(j,C)},i.prototype.listenerCount=g;function g(j){var C=this._events;if(C!==void 0){var A=C[j];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function v(j,C){for(var A=new Array(C),_=0;_<C;++_)A[_]=j[_];return A}function b(j,C){for(;C+1<j.length;C++)j[C]=j[C+1];j.pop()}function y(j){for(var C=new Array(j.length),A=0;A<C.length;++A)C[A]=j[A].listener||j[A];return C}function x(j,C){return new Promise(function(A,_){function E(M){j.removeListener(C,P),_(M)}function P(){typeof j.removeListener=="function"&&j.removeListener("error",E),A([].slice.call(arguments))}k(j,C,P,{once:!0}),C!=="error"&&w(j,E,{once:!0})})}function w(j,C,A){typeof j.on=="function"&&k(j,"error",C,A)}function k(j,C,A,_){if(typeof j.on=="function")_.once?j.once(C,A):j.on(C,A);else if(typeof j.addEventListener=="function")j.addEventListener(C,function E(P){_.once&&j.removeEventListener(C,E),A(P)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof j)}return Xy.exports}var AU,_U;function EU(){return _U||(_U=1,AU=vRe().EventEmitter),AU}const u8=xR(FF);var d8,PU;function bRe(){if(PU)return d8;PU=1;function e(v,b){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);b&&(x=x.filter(function(w){return Object.getOwnPropertyDescriptor(v,w).enumerable})),y.push.apply(y,x)}return y}function t(v){for(var b=1;b<arguments.length;b++){var y=arguments[b]!=null?arguments[b]:{};b%2?e(Object(y),!0).forEach(function(x){r(v,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(y)):e(Object(y)).forEach(function(x){Object.defineProperty(v,x,Object.getOwnPropertyDescriptor(y,x))})}return v}function r(v,b,y){return b=a(b),b in v?Object.defineProperty(v,b,{value:y,enumerable:!0,configurable:!0,writable:!0}):v[b]=y,v}function n(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function o(v,b){for(var y=0;y<b.length;y++){var x=b[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,a(x.key),x)}}function i(v,b,y){return b&&o(v.prototype,b),Object.defineProperty(v,"prototype",{writable:!1}),v}function a(v){var b=s(v,"string");return typeof b=="symbol"?b:String(b)}function s(v,b){if(typeof v!="object"||v===null)return v;var y=v[Symbol.toPrimitive];if(y!==void 0){var x=y.call(v,b);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}var l=qy(),c=l.Buffer,u=u8,d=u.inspect,h=d&&d.custom||"inspect";function g(v,b,y){c.prototype.copy.call(v,b,y)}return d8=function(){function v(){n(this,v),this.head=null,this.tail=null,this.length=0}return i(v,[{key:"push",value:function(b){var y={data:b,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(b){var y={data:b,next:this.head};this.length===0&&(this.tail=y),this.head=y,++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 y=this.head,x=""+y.data;y=y.next;)x+=b+y.data;return x}},{key:"concat",value:function(b){if(this.length===0)return c.alloc(0);for(var y=c.allocUnsafe(b>>>0),x=this.head,w=0;x;)g(x.data,y,w),w+=x.data.length,x=x.next;return y}},{key:"consume",value:function(b,y){var x;return b<this.head.data.length?(x=this.head.data.slice(0,b),this.head.data=this.head.data.slice(b)):b===this.head.data.length?x=this.shift():x=y?this._getString(b):this._getBuffer(b),x}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(b){var y=this.head,x=1,w=y.data;for(b-=w.length;y=y.next;){var k=y.data,j=b>k.length?k.length:b;if(j===k.length?w+=k:w+=k.slice(0,b),b-=j,b===0){j===k.length?(++x,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=k.slice(j));break}++x}return this.length-=x,w}},{key:"_getBuffer",value:function(b){var y=c.allocUnsafe(b),x=this.head,w=1;for(x.data.copy(y),b-=x.data.length;x=x.next;){var k=x.data,j=b>k.length?k.length:b;if(k.copy(y,y.length-b,0,j),b-=j,b===0){j===k.length?(++w,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=k.slice(j));break}++w}return this.length-=w,y}},{key:h,value:function(b,y){return d(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),v}(),d8}var p8,TU;function $U(){if(TU)return p8;TU=1;function e(a,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,a)):process.nextTick(o,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(r,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(r,l),s(d)):process.nextTick(r,l)}),this)}function t(a,s){o(a,s),r(a)}function r(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){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 o(a,s){a.emit("error",s)}function i(a,s){var l=a._readableState,c=a._writableState;l&&l.autoDestroy||c&&c.autoDestroy?a.destroy(s):a.emit("error",s)}return p8={destroy:e,undestroy:n,errorOrDestroy:i},p8}var h8={},RU;function Lh(){if(RU)return h8;RU=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function r(s,l,c){c||(c=Error);function u(h,g,v){return typeof l=="string"?l:l(h,g,v)}var d=function(h){e(g,h);function g(v,b,y){return h.call(this,u(v,b,y))||this}return g}(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function n(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 o(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 a(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&o(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(n(l,"type"));else{var h=a(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(h," ").concat(u," ").concat(n(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),h8.codes=t,h8}var f8,MU;function IU(){if(MU)return f8;MU=1;var e=Lh().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,a){var s=t(o,a,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=a?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return f8={getHighWaterMark:r},f8}var g8,LU;function yRe(){if(LU)return g8;LU=1,g8=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!globalThis.localStorage)return!1}catch{return!1}var n=globalThis.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return g8}var m8,DU;function zU(){if(DU)return m8;DU=1,m8=E;function e(G){var oe=this;this.next=null,this.entry=null,this.finish=function(){re(oe,G)}}var t;E.WritableState=A;var r={deprecate:yRe()},n=EU(),o=qy().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(G){return o.from(G)}function s(G){return o.isBuffer(G)||G instanceof i}var l=$U(),c=IU(),u=c.getHighWaterMark,d=Lh().codes,h=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,x=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,k=d.ERR_UNKNOWN_ENCODING,j=l.errorOrDestroy;function C(){}function A(G,oe,ne){t=t||Dh(),G=G||{},typeof ne!="boolean"&&(ne=oe instanceof t),this.objectMode=!!G.objectMode,ne&&(this.objectMode=this.objectMode||!!G.writableObjectMode),this.highWaterMark=u(this,G,"writableHighWaterMark",ne),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ve=G.decodeStrings===!1;this.decodeStrings=!ve,this.defaultEncoding=G.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(me){Y(oe,me)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=G.emitClose!==!1,this.autoDestroy=!!G.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}A.prototype.getBuffer=function(){for(var G=this.bufferedRequest,oe=[];G;)oe.push(G),G=G.next;return oe},function(){try{Object.defineProperty(A.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var _;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(_=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(G){return _.call(this,G)?!0:this!==E?!1:G&&G._writableState instanceof A}})):_=function(G){return G instanceof this};function E(G){t=t||Dh();var oe=this instanceof t;if(!oe&&!_.call(E,this))return new E(G);this._writableState=new A(G,this,oe),this.writable=!0,G&&(typeof G.write=="function"&&(this._write=G.write),typeof G.writev=="function"&&(this._writev=G.writev),typeof G.destroy=="function"&&(this._destroy=G.destroy),typeof G.final=="function"&&(this._final=G.final)),n.call(this)}E.prototype.pipe=function(){j(this,new b)};function P(G,oe){var ne=new w;j(G,ne),process.nextTick(oe,ne)}function M(G,oe,ne,ve){var me;return ne===null?me=new x:typeof ne!="string"&&!oe.objectMode&&(me=new h("chunk",["string","Buffer"],ne)),me?(j(G,me),process.nextTick(ve,me),!1):!0}E.prototype.write=function(G,oe,ne){var ve=this._writableState,me=!1,T=!ve.objectMode&&s(G);return T&&!o.isBuffer(G)&&(G=a(G)),typeof oe=="function"&&(ne=oe,oe=null),T?oe="buffer":oe||(oe=ve.defaultEncoding),typeof ne!="function"&&(ne=C),ve.ending?P(this,ne):(T||M(this,ve,G,ne))&&(ve.pendingcb++,me=I(this,ve,T,G,oe,ne)),me},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var G=this._writableState;G.corked&&(G.corked--,!G.writing&&!G.corked&&!G.bufferProcessing&&G.bufferedRequest&&se(this,G))},E.prototype.setDefaultEncoding=function(G){if(typeof G=="string"&&(G=G.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((G+"").toLowerCase())>-1))throw new k(G);return this._writableState.defaultEncoding=G,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function D(G,oe,ne){return!G.objectMode&&G.decodeStrings!==!1&&typeof oe=="string"&&(oe=o.from(oe,ne)),oe}Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function I(G,oe,ne,ve,me,T){if(!ne){var Z=D(oe,ve,me);ve!==Z&&(ne=!0,me="buffer",ve=Z)}var fe=oe.objectMode?1:ve.length;oe.length+=fe;var F=oe.length<oe.highWaterMark;if(F||(oe.needDrain=!0),oe.writing||oe.corked){var he=oe.lastBufferedRequest;oe.lastBufferedRequest={chunk:ve,encoding:me,isBuf:ne,callback:T,next:null},he?he.next=oe.lastBufferedRequest:oe.bufferedRequest=oe.lastBufferedRequest,oe.bufferedRequestCount+=1}else N(G,oe,!1,fe,ve,me,T);return F}function N(G,oe,ne,ve,me,T,Z){oe.writelen=ve,oe.writecb=Z,oe.writing=!0,oe.sync=!0,oe.destroyed?oe.onwrite(new y("write")):ne?G._writev(me,oe.onwrite):G._write(me,T,oe.onwrite),oe.sync=!1}function L(G,oe,ne,ve,me){--oe.pendingcb,ne?(process.nextTick(me,ve),process.nextTick(q,G,oe),G._writableState.errorEmitted=!0,j(G,ve)):(me(ve),G._writableState.errorEmitted=!0,j(G,ve),q(G,oe))}function H(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0}function Y(G,oe){var ne=G._writableState,ve=ne.sync,me=ne.writecb;if(typeof me!="function")throw new v;if(H(ne),oe)L(G,ne,ve,oe,me);else{var T=U(ne)||G.destroyed;!T&&!ne.corked&&!ne.bufferProcessing&&ne.bufferedRequest&&se(G,ne),ve?process.nextTick(te,G,ne,T,me):te(G,ne,T,me)}}function te(G,oe,ne,ve){ne||K(G,oe),oe.pendingcb--,ve(),q(G,oe)}function K(G,oe){oe.length===0&&oe.needDrain&&(oe.needDrain=!1,G.emit("drain"))}function se(G,oe){oe.bufferProcessing=!0;var ne=oe.bufferedRequest;if(G._writev&&ne&&ne.next){var ve=oe.bufferedRequestCount,me=new Array(ve),T=oe.corkedRequestsFree;T.entry=ne;for(var Z=0,fe=!0;ne;)me[Z]=ne,ne.isBuf||(fe=!1),ne=ne.next,Z+=1;me.allBuffers=fe,N(G,oe,!0,oe.length,me,"",T.finish),oe.pendingcb++,oe.lastBufferedRequest=null,T.next?(oe.corkedRequestsFree=T.next,T.next=null):oe.corkedRequestsFree=new e(oe),oe.bufferedRequestCount=0}else{for(;ne;){var F=ne.chunk,he=ne.encoding,ue=ne.callback,ee=oe.objectMode?1:F.length;if(N(G,oe,!1,ee,F,he,ue),ne=ne.next,oe.bufferedRequestCount--,oe.writing)break}ne===null&&(oe.lastBufferedRequest=null)}oe.bufferedRequest=ne,oe.bufferProcessing=!1}E.prototype._write=function(G,oe,ne){ne(new g("_write()"))},E.prototype._writev=null,E.prototype.end=function(G,oe,ne){var ve=this._writableState;return typeof G=="function"?(ne=G,G=null,oe=null):typeof oe=="function"&&(ne=oe,oe=null),G!=null&&this.write(G,oe),ve.corked&&(ve.corked=1,this.uncork()),ve.ending||W(this,ve,ne),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function U(G){return G.ending&&G.length===0&&G.bufferedRequest===null&&!G.finished&&!G.writing}function Q(G,oe){G._final(function(ne){oe.pendingcb--,ne&&j(G,ne),oe.prefinished=!0,G.emit("prefinish"),q(G,oe)})}function X(G,oe){!oe.prefinished&&!oe.finalCalled&&(typeof G._final=="function"&&!oe.destroyed?(oe.pendingcb++,oe.finalCalled=!0,process.nextTick(Q,G,oe)):(oe.prefinished=!0,G.emit("prefinish")))}function q(G,oe){var ne=U(oe);if(ne&&(X(G,oe),oe.pendingcb===0&&(oe.finished=!0,G.emit("finish"),oe.autoDestroy))){var ve=G._readableState;(!ve||ve.autoDestroy&&ve.endEmitted)&&G.destroy()}return ne}function W(G,oe,ne){oe.ending=!0,q(G,oe),ne&&(oe.finished?process.nextTick(ne):G.once("finish",ne)),oe.ended=!0,G.writable=!1}function re(G,oe,ne){var ve=G.entry;for(G.entry=null;ve;){var me=ve.callback;oe.pendingcb--,me(ne),ve=ve.next}oe.corkedRequestsFree.next=G}return Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(G){this._writableState&&(this._writableState.destroyed=G)}}),E.prototype.destroy=l.destroy,E.prototype._undestroy=l.undestroy,E.prototype._destroy=function(G,oe){oe(G)},m8}var v8,NU;function Dh(){if(NU)return v8;NU=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};v8=a;for(var t=WU(),r=zU(),n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];a.prototype[i]||(a.prototype[i]=r.prototype[i])}function a(c){if(!(this instanceof a))return new a(c);t.call(this,c),r.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(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.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(a.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)}}),v8}var b8={},y8={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var BU;function xRe(){return BU||(BU=1,function(e,t){var r=qy(),n=r.Buffer;function o(a,s){for(var l in a)s[l]=a[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,s,l){return n(a,s,l)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,s,l)},i.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=n(a);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}}(y8,y8.exports)),y8.exports}var VU;function FU(){if(VU)return b8;VU=1;var e=xRe().Buffer,t=e.isEncoding||function(x){switch(x=""+x,x&&x.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 r(x){if(!x)return"utf8";for(var w;;)switch(x){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 x;default:if(w)return;x=(""+x).toLowerCase(),w=!0}}function n(x){var w=r(x);if(typeof w!="string"&&(e.isEncoding===t||!t(x)))throw new Error("Unknown encoding: "+x);return w||x}b8.StringDecoder=o;function o(x){this.encoding=n(x);var w;switch(this.encoding){case"utf16le":this.text=d,this.end=h,w=4;break;case"utf8":this.fillLast=l,w=4;break;case"base64":this.text=g,this.end=v,w=3;break;default:this.write=b,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(w)}o.prototype.write=function(x){if(x.length===0)return"";var w,k;if(this.lastNeed){if(w=this.fillLast(x),w===void 0)return"";k=this.lastNeed,this.lastNeed=0}else k=0;return k<x.length?w?w+this.text(x,k):this.text(x,k):w||""},o.prototype.end=u,o.prototype.text=c,o.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length};function i(x){return x<=127?0:x>>5===6?2:x>>4===14?3:x>>3===30?4:x>>6===2?-1:-2}function a(x,w,k){var j=w.length-1;if(j<k)return 0;var C=i(w[j]);return C>=0?(C>0&&(x.lastNeed=C-1),C):--j<k||C===-2?0:(C=i(w[j]),C>=0?(C>0&&(x.lastNeed=C-2),C):--j<k||C===-2?0:(C=i(w[j]),C>=0?(C>0&&(C===2?C=0:x.lastNeed=C-3),C):0))}function s(x,w,k){if((w[0]&192)!==128)return x.lastNeed=0,"\uFFFD";if(x.lastNeed>1&&w.length>1){if((w[1]&192)!==128)return x.lastNeed=1,"\uFFFD";if(x.lastNeed>2&&w.length>2&&(w[2]&192)!==128)return x.lastNeed=2,"\uFFFD"}}function l(x){var w=this.lastTotal-this.lastNeed,k=s(this,x);if(k!==void 0)return k;if(this.lastNeed<=x.length)return x.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,w,0,x.length),this.lastNeed-=x.length}function c(x,w){var k=a(this,x,w);if(!this.lastNeed)return x.toString("utf8",w);this.lastTotal=k;var j=x.length-(k-this.lastNeed);return x.copy(this.lastChar,0,j),x.toString("utf8",w,j)}function u(x){var w=x&&x.length?this.write(x):"";return this.lastNeed?w+"\uFFFD":w}function d(x,w){if((x.length-w)%2===0){var k=x.toString("utf16le",w);if(k){var j=k.charCodeAt(k.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],k.slice(0,-1)}return k}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",w,x.length-1)}function h(x){var w=x&&x.length?this.write(x):"";if(this.lastNeed){var k=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,k)}return w}function g(x,w){var k=(x.length-w)%3;return k===0?x.toString("base64",w):(this.lastNeed=3-k,this.lastTotal=3,k===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",w,x.length-k))}function v(x){var w=x&&x.length?this.write(x):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function b(x){return x.toString(this.encoding)}function y(x){return x&&x.length?this.write(x):""}return b8}var x8,QU;function O8(){if(QU)return x8;QU=1;var e=Lh().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,a,s){if(typeof a=="function")return o(i,null,a);a||(a={}),s=t(s||r);var l=a.readable||a.readable!==!1&&i.readable,c=a.writable||a.writable!==!1&&i.writable,u=function(){i.writable||h()},d=i._writableState&&i._writableState.finished,h=function(){c=!1,d=!0,l||s.call(i)},g=i._readableState&&i._readableState.endEmitted,v=function(){l=!1,g=!0,c||s.call(i)},b=function(w){s.call(i,w)},y=function(){var w;if(l&&!g)return(!i._readableState||!i._readableState.ended)&&(w=new e),s.call(i,w);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(w=new e),s.call(i,w)},x=function(){i.req.on("finish",h)};return n(i)?(i.on("complete",h),i.on("abort",y),i.req?x():i.on("request",x)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",v),i.on("finish",h),a.error!==!1&&i.on("error",b),i.on("close",y),function(){i.removeListener("complete",h),i.removeListener("abort",y),i.removeListener("request",x),i.req&&i.req.removeListener("finish",h),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",h),i.removeListener("end",v),i.removeListener("error",b),i.removeListener("close",y)}}return x8=o,x8}var w8,qU;function ORe(){if(qU)return w8;qU=1;var e;function t(k,j,C){return j=r(j),j in k?Object.defineProperty(k,j,{value:C,enumerable:!0,configurable:!0,writable:!0}):k[j]=C,k}function r(k){var j=n(k,"string");return typeof j=="symbol"?j:String(j)}function n(k,j){if(typeof k!="object"||k===null)return k;var C=k[Symbol.toPrimitive];if(C!==void 0){var A=C.call(k,j);if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(k)}var o=O8(),i=Symbol("lastResolve"),a=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function h(k,j){return{value:k,done:j}}function g(k){var j=k[i];if(j!==null){var C=k[d].read();C!==null&&(k[c]=null,k[i]=null,k[a]=null,j(h(C,!1)))}}function v(k){process.nextTick(g,k)}function b(k,j){return function(C,A){k.then(function(){if(j[l]){C(h(void 0,!0));return}j[u](C,A)},A)}}var y=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var k=this,j=this[s];if(j!==null)return Promise.reject(j);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(E,P){process.nextTick(function(){k[s]?P(k[s]):E(h(void 0,!0))})});var C=this[c],A;if(C)A=new Promise(b(C,this));else{var _=this[d].read();if(_!==null)return Promise.resolve(h(_,!1));A=new Promise(this[u])}return this[c]=A,A}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var k=this;return new Promise(function(j,C){k[d].destroy(null,function(A){if(A){C(A);return}j(h(void 0,!0))})})}),e),y),w=function(k){var j,C=Object.create(x,(j={},t(j,d,{value:k,writable:!0}),t(j,i,{value:null,writable:!0}),t(j,a,{value:null,writable:!0}),t(j,s,{value:null,writable:!0}),t(j,l,{value:k._readableState.endEmitted,writable:!0}),t(j,u,{value:function(A,_){var E=C[d].read();E?(C[c]=null,C[i]=null,C[a]=null,A(h(E,!1))):(C[i]=A,C[a]=_)},writable:!0}),j));return C[c]=null,o(k,function(A){if(A&&A.code!=="ERR_STREAM_PREMATURE_CLOSE"){var _=C[a];_!==null&&(C[c]=null,C[i]=null,C[a]=null,_(A)),C[s]=A;return}var E=C[i];E!==null&&(C[c]=null,C[i]=null,C[a]=null,E(h(void 0,!0))),C[l]=!0}),k.on("readable",v.bind(null,C)),C};return w8=w,w8}var ZU,UU;function wRe(){return UU||(UU=1,ZU=function(){throw new Error("Readable.from is not available in the browser")}),ZU}var k8,HU;function WU(){if(HU)return k8;HU=1,k8=P;var e;P.ReadableState=E;var t=function(T,Z){return T.listeners(Z).length},r=EU(),n=qy().Buffer,o=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(T){return n.from(T)}function a(T){return n.isBuffer(T)||T instanceof o}var s=u8,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=bRe(),u=$U(),d=IU(),h=d.getHighWaterMark,g=Lh().codes,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,y=g.ERR_METHOD_NOT_IMPLEMENTED,x=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,w,k,j,C=u.errorOrDestroy,A=["error","close","destroy","pause","resume"];function _(T,Z,fe){if(typeof T.prependListener=="function")return T.prependListener(Z,fe);!T._events||!T._events[Z]?T.on(Z,fe):Array.isArray(T._events[Z])?T._events[Z].unshift(fe):T._events[Z]=[fe,T._events[Z]]}function E(T,Z,fe){e=e||Dh(),T=T||{},typeof fe!="boolean"&&(fe=Z instanceof e),this.objectMode=!!T.objectMode,fe&&(this.objectMode=this.objectMode||!!T.readableObjectMode),this.highWaterMark=h(this,T,"readableHighWaterMark",fe),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=T.emitClose!==!1,this.autoDestroy=!!T.autoDestroy,this.destroyed=!1,this.defaultEncoding=T.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,T.encoding&&(w||(w=FU().StringDecoder),this.decoder=new w(T.encoding),this.encoding=T.encoding)}function P(T){if(e=e||Dh(),!(this instanceof P))return new P(T);var Z=this instanceof e;this._readableState=new E(T,this,Z),this.readable=!0,T&&(typeof T.read=="function"&&(this._read=T.read),typeof T.destroy=="function"&&(this._destroy=T.destroy)),r.call(this)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(T){this._readableState&&(this._readableState.destroyed=T)}}),P.prototype.destroy=u.destroy,P.prototype._undestroy=u.undestroy,P.prototype._destroy=function(T,Z){Z(T)},P.prototype.push=function(T,Z){var fe=this._readableState,F;return fe.objectMode?F=!0:typeof T=="string"&&(Z=Z||fe.defaultEncoding,Z!==fe.encoding&&(T=n.from(T,Z),Z=""),F=!0),M(this,T,Z,!1,F)},P.prototype.unshift=function(T){return M(this,T,null,!0,!1)};function M(T,Z,fe,F,he){l("readableAddChunk",Z);var ue=T._readableState;if(Z===null)ue.reading=!1,Y(T,ue);else{var ee;if(he||(ee=I(ue,Z)),ee)C(T,ee);else if(ue.objectMode||Z&&Z.length>0)if(typeof Z!="string"&&!ue.objectMode&&Object.getPrototypeOf(Z)!==n.prototype&&(Z=i(Z)),F)ue.endEmitted?C(T,new x):D(T,ue,Z,!0);else if(ue.ended)C(T,new b);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!fe?(Z=ue.decoder.write(Z),ue.objectMode||Z.length!==0?D(T,ue,Z,!1):se(T,ue)):D(T,ue,Z,!1)}else F||(ue.reading=!1,se(T,ue))}return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function D(T,Z,fe,F){Z.flowing&&Z.length===0&&!Z.sync?(Z.awaitDrain=0,T.emit("data",fe)):(Z.length+=Z.objectMode?1:fe.length,F?Z.buffer.unshift(fe):Z.buffer.push(fe),Z.needReadable&&te(T)),se(T,Z)}function I(T,Z){var fe;return!a(Z)&&typeof Z!="string"&&Z!==void 0&&!T.objectMode&&(fe=new v("chunk",["string","Buffer","Uint8Array"],Z)),fe}P.prototype.isPaused=function(){return this._readableState.flowing===!1},P.prototype.setEncoding=function(T){w||(w=FU().StringDecoder);var Z=new w(T);this._readableState.decoder=Z,this._readableState.encoding=this._readableState.decoder.encoding;for(var fe=this._readableState.buffer.head,F="";fe!==null;)F+=Z.write(fe.data),fe=fe.next;return this._readableState.buffer.clear(),F!==""&&this._readableState.buffer.push(F),this._readableState.length=F.length,this};var N=1073741824;function L(T){return T>=N?T=N:(T--,T|=T>>>1,T|=T>>>2,T|=T>>>4,T|=T>>>8,T|=T>>>16,T++),T}function H(T,Z){return T<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:T!==T?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:(T>Z.highWaterMark&&(Z.highWaterMark=L(T)),T<=Z.length?T:Z.ended?Z.length:(Z.needReadable=!0,0))}P.prototype.read=function(T){l("read",T),T=parseInt(T,10);var Z=this._readableState,fe=T;if(T!==0&&(Z.emittedReadable=!1),T===0&&Z.needReadable&&((Z.highWaterMark!==0?Z.length>=Z.highWaterMark:Z.length>0)||Z.ended))return l("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?ne(this):te(this),null;if(T=H(T,Z),T===0&&Z.ended)return Z.length===0&&ne(this),null;var F=Z.needReadable;l("need readable",F),(Z.length===0||Z.length-T<Z.highWaterMark)&&(F=!0,l("length less than watermark",F)),Z.ended||Z.reading?(F=!1,l("reading or ended",F)):F&&(l("do read"),Z.reading=!0,Z.sync=!0,Z.length===0&&(Z.needReadable=!0),this._read(Z.highWaterMark),Z.sync=!1,Z.reading||(T=H(fe,Z)));var he;return T>0?he=oe(T,Z):he=null,he===null?(Z.needReadable=Z.length<=Z.highWaterMark,T=0):(Z.length-=T,Z.awaitDrain=0),Z.length===0&&(Z.ended||(Z.needReadable=!0),fe!==T&&Z.ended&&ne(this)),he!==null&&this.emit("data",he),he};function Y(T,Z){if(l("onEofChunk"),!Z.ended){if(Z.decoder){var fe=Z.decoder.end();fe&&fe.length&&(Z.buffer.push(fe),Z.length+=Z.objectMode?1:fe.length)}Z.ended=!0,Z.sync?te(T):(Z.needReadable=!1,Z.emittedReadable||(Z.emittedReadable=!0,K(T)))}}function te(T){var Z=T._readableState;l("emitReadable",Z.needReadable,Z.emittedReadable),Z.needReadable=!1,Z.emittedReadable||(l("emitReadable",Z.flowing),Z.emittedReadable=!0,process.nextTick(K,T))}function K(T){var Z=T._readableState;l("emitReadable_",Z.destroyed,Z.length,Z.ended),!Z.destroyed&&(Z.length||Z.ended)&&(T.emit("readable"),Z.emittedReadable=!1),Z.needReadable=!Z.flowing&&!Z.ended&&Z.length<=Z.highWaterMark,G(T)}function se(T,Z){Z.readingMore||(Z.readingMore=!0,process.nextTick(U,T,Z))}function U(T,Z){for(;!Z.reading&&!Z.ended&&(Z.length<Z.highWaterMark||Z.flowing&&Z.length===0);){var fe=Z.length;if(l("maybeReadMore read 0"),T.read(0),fe===Z.length)break}Z.readingMore=!1}P.prototype._read=function(T){C(this,new y("_read()"))},P.prototype.pipe=function(T,Z){var fe=this,F=this._readableState;switch(F.pipesCount){case 0:F.pipes=T;break;case 1:F.pipes=[F.pipes,T];break;default:F.pipes.push(T);break}F.pipesCount+=1,l("pipe count=%d opts=%j",F.pipesCount,Z);var he=(!Z||Z.end!==!1)&&T!==null&&T!==process.stderr,ue=he?ae:He;F.endEmitted?process.nextTick(ue):fe.once("end",ue),T.on("unpipe",ee);function ee(B,J){l("onunpipe"),B===fe&&J&&J.hasUnpiped===!1&&(J.hasUnpiped=!0,Oe())}function ae(){l("onend"),T.end()}var le=Q(fe);T.on("drain",le);var _e=!1;function Oe(){l("cleanup"),T.removeListener("close",ye),T.removeListener("finish",Ce),T.removeListener("drain",le),T.removeListener("error",xe),T.removeListener("unpipe",ee),fe.removeListener("end",ae),fe.removeListener("end",He),fe.removeListener("data",be),_e=!0,F.awaitDrain&&(!T._writableState||T._writableState.needDrain)&&le()}fe.on("data",be);function be(B){l("ondata");var J=T.write(B);l("dest.write",J),J===!1&&((F.pipesCount===1&&F.pipes===T||F.pipesCount>1&&me(F.pipes,T)!==-1)&&!_e&&(l("false write response, pause",F.awaitDrain),F.awaitDrain++),fe.pause())}function xe(B){l("onerror",B),He(),T.removeListener("error",xe),t(T,"error")===0&&C(T,B)}_(T,"error",xe);function ye(){T.removeListener("finish",Ce),He()}T.once("close",ye);function Ce(){l("onfinish"),T.removeListener("close",ye),He()}T.once("finish",Ce);function He(){l("unpipe"),fe.unpipe(T)}return T.emit("pipe",fe),F.flowing||(l("pipe resume"),fe.resume()),T};function Q(T){return function(){var Z=T._readableState;l("pipeOnDrain",Z.awaitDrain),Z.awaitDrain&&Z.awaitDrain--,Z.awaitDrain===0&&t(T,"data")&&(Z.flowing=!0,G(T))}}P.prototype.unpipe=function(T){var Z=this._readableState,fe={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return T&&T!==Z.pipes?this:(T||(T=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,T&&T.emit("unpipe",this,fe),this);if(!T){var F=Z.pipes,he=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var ue=0;ue<he;ue++)F[ue].emit("unpipe",this,{hasUnpiped:!1});return this}var ee=me(Z.pipes,T);return ee===-1?this:(Z.pipes.splice(ee,1),Z.pipesCount-=1,Z.pipesCount===1&&(Z.pipes=Z.pipes[0]),T.emit("unpipe",this,fe),this)},P.prototype.on=function(T,Z){var fe=r.prototype.on.call(this,T,Z),F=this._readableState;return T==="data"?(F.readableListening=this.listenerCount("readable")>0,F.flowing!==!1&&this.resume()):T==="readable"&&!F.endEmitted&&!F.readableListening&&(F.readableListening=F.needReadable=!0,F.flowing=!1,F.emittedReadable=!1,l("on readable",F.length,F.reading),F.length?te(this):F.reading||process.nextTick(q,this)),fe},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(T,Z){var fe=r.prototype.removeListener.call(this,T,Z);return T==="readable"&&process.nextTick(X,this),fe},P.prototype.removeAllListeners=function(T){var Z=r.prototype.removeAllListeners.apply(this,arguments);return(T==="readable"||T===void 0)&&process.nextTick(X,this),Z};function X(T){var Z=T._readableState;Z.readableListening=T.listenerCount("readable")>0,Z.resumeScheduled&&!Z.paused?Z.flowing=!0:T.listenerCount("data")>0&&T.resume()}function q(T){l("readable nexttick read 0"),T.read(0)}P.prototype.resume=function(){var T=this._readableState;return T.flowing||(l("resume"),T.flowing=!T.readableListening,W(this,T)),T.paused=!1,this};function W(T,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,process.nextTick(re,T,Z))}function re(T,Z){l("resume",Z.reading),Z.reading||T.read(0),Z.resumeScheduled=!1,T.emit("resume"),G(T),Z.flowing&&!Z.reading&&T.read(0)}P.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 G(T){var Z=T._readableState;for(l("flow",Z.flowing);Z.flowing&&T.read()!==null;);}P.prototype.wrap=function(T){var Z=this,fe=this._readableState,F=!1;T.on("end",function(){if(l("wrapped end"),fe.decoder&&!fe.ended){var ee=fe.decoder.end();ee&&ee.length&&Z.push(ee)}Z.push(null)}),T.on("data",function(ee){if(l("wrapped data"),fe.decoder&&(ee=fe.decoder.write(ee)),!(fe.objectMode&&ee==null)&&!(!fe.objectMode&&(!ee||!ee.length))){var ae=Z.push(ee);ae||(F=!0,T.pause())}});for(var he in T)this[he]===void 0&&typeof T[he]=="function"&&(this[he]=function(ee){return function(){return T[ee].apply(T,arguments)}}(he));for(var ue=0;ue<A.length;ue++)T.on(A[ue],this.emit.bind(this,A[ue]));return this._read=function(ee){l("wrapped _read",ee),F&&(F=!1,T.resume())},this},typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return k===void 0&&(k=ORe()),k(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(T){this._readableState&&(this._readableState.flowing=T)}}),P._fromList=oe,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function oe(T,Z){if(Z.length===0)return null;var fe;return Z.objectMode?fe=Z.buffer.shift():!T||T>=Z.length?(Z.decoder?fe=Z.buffer.join(""):Z.buffer.length===1?fe=Z.buffer.first():fe=Z.buffer.concat(Z.length),Z.buffer.clear()):fe=Z.buffer.consume(T,Z.decoder),fe}function ne(T){var Z=T._readableState;l("endReadable",Z.endEmitted),Z.endEmitted||(Z.ended=!0,process.nextTick(ve,Z,T))}function ve(T,Z){if(l("endReadableNT",T.endEmitted,T.length),!T.endEmitted&&T.length===0&&(T.endEmitted=!0,Z.readable=!1,Z.emit("end"),T.autoDestroy)){var fe=Z._writableState;(!fe||fe.autoDestroy&&fe.finished)&&Z.destroy()}}typeof Symbol=="function"&&(P.from=function(T,Z){return j===void 0&&(j=wRe()),j(P,T,Z)});function me(T,Z){for(var fe=0,F=T.length;fe<F;fe++)if(T[fe]===Z)return fe;return-1}return k8}var C8,XU;function YU(){if(XU)return C8;XU=1,C8=s;var e=Lh().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Dh();function a(u,d){var h=this._transformState;h.transforming=!1;var g=h.writecb;if(g===null)return this.emit("error",new r);h.writechunk=null,h.writecb=null,d!=null&&this.push(d),g(u);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);i.call(this,u),this._transformState={afterTransform:a.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,h){c(u,d,h)}):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,h){h(new t("_transform()"))},s.prototype._write=function(u,d,h){var g=this._transformState;if(g.writecb=h,g.writechunk=u,g.writeencoding=d,!g.transforming){var v=this._readableState;(g.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.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(h){d(h)})};function c(u,d,h){if(d)return u.emit("error",d);if(h!=null&&u.push(h),u._writableState.length)throw new o;if(u._transformState.transforming)throw new n;return u.push(null)}return C8}var S8,GU;function kRe(){if(GU)return S8;GU=1,S8=t;var e=YU();function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},S8}var j8,JU;function CRe(){if(JU)return j8;JU=1;var e;function t(h){var g=!1;return function(){g||(g=!0,h.apply(void 0,arguments))}}var r=Lh().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function a(h){return h.setHeader&&typeof h.abort=="function"}function s(h,g,v,b){b=t(b);var y=!1;h.on("close",function(){y=!0}),e===void 0&&(e=O8()),e(h,{readable:g,writable:v},function(w){if(w)return b(w);y=!0,b()});var x=!1;return function(w){if(!y&&!x){if(x=!0,a(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();b(w||new o("pipe"))}}}function l(h){h()}function c(h,g){return h.pipe(g)}function u(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function d(){for(var h=arguments.length,g=new Array(h),v=0;v<h;v++)g[v]=arguments[v];var b=u(g);if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new n("streams");var y,x=g.map(function(w,k){var j=k<g.length-1,C=k>0;return s(w,j,C,function(A){y||(y=A),A&&x.forEach(l),!j&&(x.forEach(l),b(y))})});return g.reduce(c)}return j8=d,j8}var KU;function eH(){return KU||(KU=1,function(e,t){t=e.exports=WU(),t.Stream=t,t.Readable=t,t.Writable=zU(),t.Duplex=Dh(),t.Transform=YU(),t.PassThrough=kRe(),t.finished=O8(),t.pipeline=CRe()}(c8,c8.exports)),c8.exports}var tH;function rH(){if(tH)return Wy;tH=1;var e=SU(),t=Uw(),r=eH(),n=Wy.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=Wy.IncomingMessage=function(i,a,s,l){var c=this;if(r.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(y){if(!c._destroyed){if(l(y.done),y.done){c.push(null);return}c.push(Buffer.from(y.value)),b()}}).catch(function(y){l(!0),c._destroyed||c.emit("error",y)})};if(c._fetchResponse=a,c.url=a.url,c.statusCode=a.status,c.statusMessage=a.statusText,a.headers.forEach(function(y,x){c.headers[x.toLowerCase()]=y,c.rawHeaders.push(x,y)}),e.writableStream){var u=new WritableStream({write:function(y){return l(!1),new Promise(function(x,w){c._destroyed?w():c.push(Buffer.from(y))?x():c._resumeFetch=x})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(y){l(!0),c._destroyed||c.emit("error",y)}});try{a.body.pipeTo(u).catch(function(y){l(!0),c._destroyed||c.emit("error",y)});return}catch{}}var d=a.body.getReader();b()}else{c._xhr=i,c._pos=0,c.url=i.responseURL,c.statusCode=i.status,c.statusMessage=i.statusText;var h=i.getAllResponseHeaders().split(/\r?\n/);if(h.forEach(function(b){var y=b.match(/^([^:]+):\s*(.*)/);if(y){var x=y[1].toLowerCase();x==="set-cookie"?(c.headers[x]===void 0&&(c.headers[x]=[]),c.headers[x].push(y[2])):c.headers[x]!==void 0?c.headers[x]+=", "+y[2]:c.headers[x]=y[2],c.rawHeaders.push(y[1],y[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var g=c.rawHeaders["mime-type"];if(g){var v=g.match(/;\s*charset=([^;])(;|$)/);v&&(c._charset=v[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(o,r.Readable),o.prototype._read=function(){var i=this,a=i._resumeFetch;a&&(i._resumeFetch=null,a())},o.prototype._onXHRProgress=function(i){var a=this,s=a._xhr,l=null;switch(a._mode){case"text":if(l=s.responseText,l.length>a._pos){var c=l.substr(a._pos);if(a._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;a.push(u)}else a.push(c,a._charset);a._pos=l.length}break;case"arraybuffer":if(s.readyState!==n.DONE||!s.response)break;l=s.response,a.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==n.LOADING||!l)break;a.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==n.LOADING)break;var h=new globalThis.MSStreamReader;h.onprogress=function(){h.result.byteLength>a._pos&&(a.push(Buffer.from(new Uint8Array(h.result.slice(a._pos)))),a._pos=h.result.byteLength)},h.onload=function(){i(!0),a.push(null)},h.readAsArrayBuffer(l);break}a._xhr.readyState===n.DONE&&a._mode!=="ms-stream"&&(i(!0),a.push(null))},Wy}var nH;function SRe(){if(nH)return l8.exports;nH=1;var e=SU(),t=Uw(),r=rH(),n=eH(),o=r.IncomingMessage,i=r.readyStates;function a(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=l8.exports=function(u){var d=this;n.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(v){d.setHeader(v,u.headers[v])});var h,g=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)g=!1,h=!0;else if(u.mode==="prefer-streaming")h=!1;else if(u.mode==="allow-wrong-content-type")h=!e.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");d._mode=a(h,g),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,n.Writable),s.prototype.setHeader=function(u,d){var h=this,g=u.toLowerCase();c.indexOf(g)===-1&&(h._headers[g]={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 h=u._headers,g=null;d.method!=="GET"&&d.method!=="HEAD"&&(g=new Blob(u._body,{type:(h["content-type"]||{}).value||""}));var v=[];if(Object.keys(h).forEach(function(w){var k=h[w].name,j=h[w].value;Array.isArray(j)?j.forEach(function(C){v.push([k,C])}):v.push([k,j])}),u._mode==="fetch"){var b=null;if(e.abortController){var y=new AbortController;b=y.signal,u._fetchAbortController=y,"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:v,body:g||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:b}).then(function(w){u._fetchResponse=w,u._resetTimers(!1),u._connect()},function(w){u._resetTimers(!0),u._destroyed||u.emit("error",w)})}else{var x=u._xhr=new globalThis.XMLHttpRequest;try{x.open(u._opts.method,u._opts.url,!0)}catch(w){process.nextTick(function(){u.emit("error",w)});return}"responseType"in x&&(x.responseType=u._mode),"withCredentials"in x&&(x.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in x&&x.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(x.timeout=d.requestTimeout,x.ontimeout=function(){u.emit("requestTimeout")}),v.forEach(function(w){x.setRequestHeader(w[0],w[1])}),u._response=null,x.onreadystatechange=function(){switch(x.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(x.onprogress=function(){u._onXHRProgress()}),x.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{x.send(g)}catch(w){process.nextTick(function(){u.emit("error",w)});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 o(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,h){var g=this;g._body.push(u),h()},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,h){var g=this;typeof u=="function"&&(h=u,u=void 0),n.Writable.prototype.end.call(g,u,d,h)},s.prototype.setTimeout=function(u,d){var h=this;d&&h.once("timeout",d),h._socketTimeout=u,h._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 l8.exports}var A8,oH;function jRe(){if(oH)return A8;oH=1,A8=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n<arguments.length;n++){var o=arguments[n];for(var i in o)e.call(o,i)&&(r[i]=o[i])}return r}return A8}var iH,aH;function ARe(){return aH||(aH=1,iH={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"}),iH}var sH;function _Re(){return sH||(sH=1,function(e){var t=SRe(),r=rH(),n=jRe(),o=ARe(),i=W7(),a=e;a.request=function(s,l){typeof s=="string"?s=i.parse(s):s=n(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,h=s.port,g=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(h?":"+h:"")+g,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var v=new t(s);return l&&v.on("response",l),v},a.get=function(s,l){var c=a.request(s,l);return c.end(),c},a.ClientRequest=t,a.IncomingMessage=r.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.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"]}(wU)),wU}var lH,cH;function ERe(){return cH||(cH=1,lH={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},_Re().STATUS_CODES)}),lH}const PRe="7.0.8",TRe={version:PRe};var _8,uH;function $Re(){if(uH)return _8;uH=1;const e=Ih,t=W7(),r=pRe(),n=Ih,o=Ih,i=Uy(),a=i.jptr,s=K7().isRef,l=Hy().clone,c=Hy().circularClone,u=r8().recurse,d=gRe(),h=mRe(),g=yU(),v=ERe().statusCodes,b=TRe.version,y="3.0.0";let x;class w extends Error{constructor(Z){super(Z),this.name="S2OError"}}function k(T,Z){let fe=new w(T);if(fe.options=Z,Z.promise)Z.promise.reject(fe);else throw fe}function j(T,Z,fe){fe.warnOnly?Z[fe.warnProperty||"x-s2o-warning"]=T:k(T,fe)}function C(T,Z,fe){if(T.nullable&&fe.patches++,T.discriminator&&typeof T.discriminator=="string"&&(T.discriminator={propertyName:T.discriminator}),T.items&&Array.isArray(T.items)&&(T.items.length===0?T.items={}:T.items.length===1?T.items=T.items[0]:T.items={anyOf:T.items}),T.type&&Array.isArray(T.type))if(fe.patch){if(fe.patches++,T.type.length===0)delete T.type;else{T.oneOf||(T.oneOf=[]);for(let F of T.type){let he={};if(F==="null")T.nullable=!0;else{he.type=F;for(let ue of g.arrayProperties)typeof T.prop<"u"&&(he[ue]=T[ue],delete T[ue])}he.type&&T.oneOf.push(he)}delete T.type,T.oneOf.length===0?delete T.oneOf:T.oneOf.length<2&&(T.type=T.oneOf[0].type,Object.keys(T.oneOf[0]).length>1&&j("Lost properties from oneOf",T,fe),delete T.oneOf)}T.type&&Array.isArray(T.type)&&T.type.length===1&&(T.type=T.type[0])}else k("(Patchable) schema type must not be an array",fe);T.type&&T.type==="null"&&(delete T.type,T.nullable=!0),T.type==="array"&&!T.items&&(T.items={}),T.type==="file"&&(T.type="string",T.format="binary"),typeof T.required=="boolean"&&(T.required&&T.name&&(typeof Z.required>"u"&&(Z.required=[]),Array.isArray(Z.required)&&Z.required.push(T.name)),delete T.required),T.xml&&typeof T.xml.namespace=="string"&&(T.xml.namespace||delete T.xml.namespace),typeof T.allowEmptyValue<"u"&&(fe.patches++,delete T.allowEmptyValue)}function A(T,Z){if(T["x-required"]&&Array.isArray(T["x-required"])&&(T.required||(T.required=[]),T.required=T.required.concat(T["x-required"]),delete T["x-required"]),T["x-anyOf"]&&(T.anyOf=T["x-anyOf"],delete T["x-anyOf"]),T["x-oneOf"]&&(T.oneOf=T["x-oneOf"],delete T["x-oneOf"]),T["x-not"]&&(T.not=T["x-not"],delete T["x-not"]),typeof T["x-nullable"]=="boolean"&&(T.nullable=T["x-nullable"],delete T["x-nullable"]),typeof T["x-discriminator"]=="object"&&typeof T["x-discriminator"].propertyName=="string"){T.discriminator=T["x-discriminator"],delete T["x-discriminator"];for(let fe in T.discriminator.mapping){let F=T.discriminator.mapping[fe];F.startsWith("#/definitions/")&&(T.discriminator.mapping[fe]=F.replace("#/definitions/","#/components/schemas/"))}}}function _(T,Z){h.walkSchema(T,{},{},function(fe,F,he){A(fe),C(fe,F,Z)})}function E(T){return T.indexOf("#")>=0?T=T.split("#")[1].split("/").pop():T=T.split("/").pop().split(".")[0],encodeURIComponent(g.sanitise(T))}function P(T,Z,fe){let F=fe.payload.options;if(s(T,Z)){if(!T[Z].startsWith("#/components/")){if(T[Z]==="#/consumes")delete T[Z],fe.parent[fe.pkey]=l(F.openapi.consumes);else if(T[Z]==="#/produces")delete T[Z],fe.parent[fe.pkey]=l(F.openapi.produces);else if(T[Z].startsWith("#/definitions/")){let he=T[Z].replace("#/definitions/","").split("/");const ue=i.jpunescape(he[0]);let ee=x.schemas[decodeURIComponent(ue)];ee?he[0]=ee:j("Could not resolve reference "+T[Z],T,F),T[Z]="#/components/schemas/"+he.join("/")}else if(T[Z].startsWith("#/parameters/"))T[Z]="#/components/parameters/"+g.sanitise(T[Z].replace("#/parameters/",""));else if(T[Z].startsWith("#/responses/"))T[Z]="#/components/responses/"+g.sanitise(T[Z].replace("#/responses/",""));else if(T[Z].startsWith("#")){let he=l(i.jptr(F.openapi,T[Z]));if(he===!1)j("direct $ref not found "+T[Z],T,F);else if(F.refmap[T[Z]])T[Z]=F.refmap[T[Z]];else{let ue=T[Z];ue=ue.replace("/properties/headers/",""),ue=ue.replace("/properties/responses/",""),ue=ue.replace("/properties/parameters/",""),ue=ue.replace("/properties/schemas/","");let ee="schemas",ae=ue.lastIndexOf("/schema");if(ee=ue.indexOf("/headers/")>ae?"headers":ue.indexOf("/responses/")>ae?"responses":ue.indexOf("/example")>ae?"examples":ue.indexOf("/x-")>ae?"extensions":ue.indexOf("/parameters/")>ae?"parameters":"schemas",ee==="schemas"&&_(he,F),ee!=="responses"&&ee!=="extensions"){let le=ee.substr(0,ee.length-1);le==="parameter"&&he.name&&he.name===g.sanitise(he.name)&&(le=encodeURIComponent(he.name));let _e=1;for(T["x-miro"]&&(le=E(T["x-miro"]),_e="");i.jptr(F.openapi,"#/components/"+ee+"/"+le+_e);)_e=_e===""?2:++_e;let Oe="#/components/"+ee+"/"+le+_e,be="";ee==="examples"&&(he={value:he},be="/value"),i.jptr(F.openapi,Oe,he),F.refmap[T[Z]]=Oe+be,T[Z]=Oe+be}}}}if(delete T["x-miro"],Object.keys(T).length>1){const he=T[Z],ue=fe.path.indexOf("/schema")>=0;F.refSiblings==="preserve"||(ue&&F.refSiblings==="allOf"?(delete T.$ref,fe.parent[fe.pkey]={allOf:[{$ref:he},T]}):fe.parent[fe.pkey]={$ref:he})}}if(Z==="x-ms-odata"&&typeof T[Z]=="string"&&T[Z].startsWith("#/")){let he=T[Z].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ue=x.schemas[decodeURIComponent(he[0])];ue?he[0]=ue:j("Could not resolve reference "+T[Z],T,F),T[Z]="#/components/schemas/"+he.join("/")}}function M(T,Z){for(let fe in Z.refmap)i.jptr(T,fe,{$ref:Z.refmap[fe]})}function D(T){for(let Z in T)for(let fe in T[Z]){let F=g.sanitise(fe);fe!==F&&(T[Z][F]=T[Z][fe],delete T[Z][fe])}}function I(T,Z){if(T.type==="basic"&&(T.type="http",T.scheme="basic"),T.type==="oauth2"){let fe={},F=T.flow;T.flow==="application"&&(F="clientCredentials"),T.flow==="accessCode"&&(F="authorizationCode"),typeof T.authorizationUrl<"u"&&(fe.authorizationUrl=T.authorizationUrl.split("?")[0].trim()||"/"),typeof T.tokenUrl=="string"&&(fe.tokenUrl=T.tokenUrl.split("?")[0].trim()||"/"),fe.scopes=T.scopes||{},T.flows={},T.flows[F]=fe,delete T.flow,delete T.authorizationUrl,delete T.tokenUrl,delete T.scopes,typeof T.name<"u"&&(Z.patch?(Z.patches++,delete T.name):k("(Patchable) oauth2 securitySchemes should not have name property",Z))}}function N(T){return T&&!T["x-s2o-delete"]}function L(T,Z){if(T.$ref)T.$ref=T.$ref.replace("#/responses/","#/components/responses/");else{T.type&&!T.schema&&(T.schema={}),T.type&&(T.schema.type=T.type),T.items&&T.items.type!=="array"&&(T.items.collectionFormat!==T.collectionFormat&&j("Nested collectionFormats are not supported",T,Z),delete T.items.collectionFormat),T.type==="array"?(T.collectionFormat==="ssv"?j("collectionFormat:ssv is no longer supported for headers",T,Z):T.collectionFormat==="pipes"?j("collectionFormat:pipes is no longer supported for headers",T,Z):T.collectionFormat==="multi"?T.explode=!0:T.collectionFormat==="tsv"?(j("collectionFormat:tsv is no longer supported",T,Z),T["x-collectionFormat"]="tsv"):T.style="simple",delete T.collectionFormat):T.collectionFormat&&(Z.patch?(Z.patches++,delete T.collectionFormat):k("(Patchable) collectionFormat is only applicable to header.type array",Z)),delete T.type;for(let fe of g.parameterTypeProperties)typeof T[fe]<"u"&&(T.schema[fe]=T[fe],delete T[fe]);for(let fe of g.arrayProperties)typeof T[fe]<"u"&&(T.schema[fe]=T[fe],delete T[fe])}}function H(T,Z){if(T.$ref.indexOf("#/parameters/")>=0){let fe=T.$ref.split("#/parameters/");T.$ref=fe[0]+"#/components/parameters/"+g.sanitise(fe[1])}T.$ref.indexOf("#/definitions/")>=0&&j("Definition used as parameter",T,Z)}function Y(T,Z){let fe={};for(let F of Object.keys(T))fe[F]=T[F],F==="parameters"&&(fe.requestBody={},Z.rbname&&(fe[Z.rbname]=""));return fe.requestBody={},fe}function te(T,Z,fe,F,he,ue,ee){let ae={},le=!0,_e;if(Z&&Z.consumes&&typeof Z.consumes=="string")if(ee.patch)ee.patches++,Z.consumes=[Z.consumes];else return k("(Patchable) operation.consumes must be an array",ee);Array.isArray(ue.consumes)||delete ue.consumes;let Oe=((Z?Z.consumes:null)||ue.consumes||[]).filter(g.uniqueOnly);if(T&&T.$ref&&typeof T.$ref=="string"){H(T,ee);let be=decodeURIComponent(T.$ref.replace("#/components/parameters/","")),xe=!1,ye=ue.components.parameters[be];if((!ye||ye["x-s2o-delete"])&&T.$ref.startsWith("#/")&&(T["x-s2o-delete"]=!0,xe=!0),xe){let Ce=T.$ref,He=a(ue,T.$ref);!He&&Ce.startsWith("#/")?j("Could not resolve reference "+Ce,T,ee):He&&(T=He)}}if(T&&(T.name||T.in)){typeof T["x-deprecated"]=="boolean"&&(T.deprecated=T["x-deprecated"],delete T["x-deprecated"]),typeof T["x-example"]<"u"&&(T.example=T["x-example"],delete T["x-example"]),T.in!=="body"&&!T.type&&(ee.patch?(ee.patches++,T.type="string"):k("(Patchable) parameter.type is mandatory for non-body parameters",ee)),T.type&&typeof T.type=="object"&&T.type.$ref&&(T.type=a(ue,T.type.$ref)),T.type==="file"&&(T["x-s2o-originalType"]=T.type,_e=T.type),T.description&&typeof T.description=="object"&&T.description.$ref&&(T.description=a(ue,T.description.$ref)),T.description===null&&delete T.description;let be=T.collectionFormat;if(T.type==="array"&&!be&&(be="csv"),be&&(T.type!=="array"&&(ee.patch?(ee.patches++,delete T.collectionFormat):k("(Patchable) collectionFormat is only applicable to param.type array",ee)),be==="csv"&&(T.in==="query"||T.in==="cookie")&&(T.style="form",T.explode=!1),be==="csv"&&(T.in==="path"||T.in==="header")&&(T.style="simple"),be==="ssv"&&(T.in==="query"?T.style="spaceDelimited":j("collectionFormat:ssv is no longer supported except for in:query parameters",T,ee)),be==="pipes"&&(T.in==="query"?T.style="pipeDelimited":j("collectionFormat:pipes is no longer supported except for in:query parameters",T,ee)),be==="multi"&&(T.explode=!0),be==="tsv"&&(j("collectionFormat:tsv is no longer supported",T,ee),T["x-collectionFormat"]="tsv"),delete T.collectionFormat),T.type&&T.type!=="body"&&T.in!=="formData")if(T.items&&T.schema)j("parameter has array,items and schema",T,ee);else{T.schema&&ee.patches++,(!T.schema||typeof T.schema!="object")&&(T.schema={}),T.schema.type=T.type,T.items&&(T.schema.items=T.items,delete T.items,u(T.schema.items,null,function(xe,ye,Ce){ye==="collectionFormat"&&typeof xe[ye]=="string"&&(be&&xe[ye]!==be&&j("Nested collectionFormats are not supported",T,ee),delete xe[ye])}));for(let xe of g.parameterTypeProperties)typeof T[xe]<"u"&&(T.schema[xe]=T[xe]),delete T[xe]}T.schema&&_(T.schema,ee),T["x-ms-skip-url-encoding"]&&T.in==="query"&&(T.allowReserved=!0,delete T["x-ms-skip-url-encoding"])}if(T&&T.in==="formData"){le=!1,ae.content={};let be="application/x-www-form-urlencoded";if(Oe.length&&Oe.indexOf("multipart/form-data")>=0&&(be="multipart/form-data"),ae.content[be]={},T.schema)ae.content[be].schema=T.schema,T.schema.$ref&&(ae["x-s2o-name"]=decodeURIComponent(T.schema.$ref.replace("#/components/schemas/","")));else{ae.content[be].schema={},ae.content[be].schema.type="object",ae.content[be].schema.properties={},ae.content[be].schema.properties[T.name]={};let xe=ae.content[be].schema,ye=ae.content[be].schema.properties[T.name];T.description&&(ye.description=T.description),T.example&&(ye.example=T.example),T.type&&(ye.type=T.type);for(let Ce of g.parameterTypeProperties)typeof T[Ce]<"u"&&(ye[Ce]=T[Ce]);T.required===!0&&(xe.required||(xe.required=[]),xe.required.push(T.name),ae.required=!0),typeof T.default<"u"&&(ye.default=T.default),ye.properties&&(ye.properties=T.properties),T.allOf&&(ye.allOf=T.allOf),T.type==="array"&&T.items&&(ye.items=T.items,ye.items.collectionFormat&&delete ye.items.collectionFormat),(_e==="file"||T["x-s2o-originalType"]==="file")&&(ye.type="string",ye.format="binary"),K(T,ye)}}else T&&T.type==="file"&&(T.required&&(ae.required=T.required),ae.content={},ae.content["application/octet-stream"]={},ae.content["application/octet-stream"].schema={},ae.content["application/octet-stream"].schema.type="string",ae.content["application/octet-stream"].schema.format="binary",K(T,ae));if(T&&T.in==="body"){ae.content={},T.name&&(ae["x-s2o-name"]=(Z&&Z.operationId?g.sanitiseAll(Z.operationId):"")+("_"+T.name).toCamelCase()),T.description&&(ae.description=T.description),T.required&&(ae.required=T.required),Z&&ee.rbname&&T.name&&(Z[ee.rbname]=T.name),T.schema&&T.schema.$ref?ae["x-s2o-name"]=decodeURIComponent(T.schema.$ref.replace("#/components/schemas/","")):T.schema&&T.schema.type==="array"&&T.schema.items&&T.schema.items.$ref&&(ae["x-s2o-name"]=decodeURIComponent(T.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),Oe.length||Oe.push("application/json");for(let be of Oe)ae.content[be]={},ae.content[be].schema=l(T.schema||{}),_(ae.content[be].schema,ee);K(T,ae)}if(Object.keys(ae).length>0&&(T["x-s2o-delete"]=!0,Z))if(Z.requestBody&&le){Z.requestBody["x-s2o-overloaded"]=!0;let be=Z.operationId||he;j("Operation "+be+" has multiple requestBodies",Z,ee)}else Z.requestBody||(Z=fe[F]=Y(Z,ee)),Z.requestBody.content&&Z.requestBody.content["multipart/form-data"]&&Z.requestBody.content["multipart/form-data"].schema&&Z.requestBody.content["multipart/form-data"].schema.properties&&ae.content["multipart/form-data"]&&ae.content["multipart/form-data"].schema&&ae.content["multipart/form-data"].schema.properties?(Z.requestBody.content["multipart/form-data"].schema.properties=Object.assign(Z.requestBody.content["multipart/form-data"].schema.properties,ae.content["multipart/form-data"].schema.properties),Z.requestBody.content["multipart/form-data"].schema.required=(Z.requestBody.content["multipart/form-data"].schema.required||[]).concat(ae.content["multipart/form-data"].schema.required||[]),Z.requestBody.content["multipart/form-data"].schema.required.length||delete Z.requestBody.content["multipart/form-data"].schema.required):Z.requestBody.content&&Z.requestBody.content["application/x-www-form-urlencoded"]&&Z.requestBody.content["application/x-www-form-urlencoded"].schema&&Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&ae.content["application/x-www-form-urlencoded"]&&ae.content["application/x-www-form-urlencoded"].schema&&ae.content["application/x-www-form-urlencoded"].schema.properties?(Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties,ae.content["application/x-www-form-urlencoded"].schema.properties),Z.requestBody.content["application/x-www-form-urlencoded"].schema.required=(Z.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(ae.content["application/x-www-form-urlencoded"].schema.required||[]),Z.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete Z.requestBody.content["application/x-www-form-urlencoded"].schema.required):(Z.requestBody=Object.assign(Z.requestBody,ae),Z.requestBody["x-s2o-name"]||(Z.requestBody.schema&&Z.requestBody.schema.$ref?Z.requestBody["x-s2o-name"]=decodeURIComponent(Z.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):Z.operationId&&(Z.requestBody["x-s2o-name"]=g.sanitiseAll(Z.operationId))));if(T&&!T["x-s2o-delete"]){delete T.type;for(let be of g.parameterTypeProperties)delete T[be];T.in==="path"&&(typeof T.required>"u"||T.required!==!0)&&(ee.patch?(ee.patches++,T.required=!0):k("(Patchable) path parameters must be required:true ["+T.name+" in "+he+"]",ee))}return Z}function K(T,Z){for(let fe in T)fe.startsWith("x-")&&!fe.startsWith("x-s2o")&&(Z[fe]=T[fe])}function se(T,Z,fe,F,he){if(!T)return!1;if(T.$ref&&typeof T.$ref=="string")T.$ref.indexOf("#/definitions/")>=0?j("definition used as response: "+T.$ref,T,he):T.$ref.startsWith("#/responses/")&&(T.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(T.$ref.replace("#/responses/",""))));else{if((typeof T.description>"u"||T.description===null||T.description===""&&he.patch)&&(he.patch?typeof T=="object"&&!Array.isArray(T)&&(he.patches++,T.description=v[T]||""):k("(Patchable) response.description is mandatory",he)),typeof T.schema<"u"){if(_(T.schema,he),T.schema.$ref&&typeof T.schema.$ref=="string"&&T.schema.$ref.startsWith("#/responses/")&&(T.schema.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(T.schema.$ref.replace("#/responses/","")))),fe&&fe.produces&&typeof fe.produces=="string")if(he.patch)he.patches++,fe.produces=[fe.produces];else return k("(Patchable) operation.produces must be an array",he);F.produces&&!Array.isArray(F.produces)&&delete F.produces;let ue=((fe?fe.produces:null)||F.produces||[]).filter(g.uniqueOnly);ue.length||ue.push("*/*"),T.content={};for(let ee of ue){if(T.content[ee]={},T.content[ee].schema=l(T.schema),T.examples&&T.examples[ee]){let ae={};ae.value=T.examples[ee],T.content[ee].examples={},T.content[ee].examples.response=ae,delete T.examples[ee]}T.content[ee].schema.type==="file"&&(T.content[ee].schema={type:"string",format:"binary"})}delete T.schema}for(let ue in T.examples)T.content||(T.content={}),T.content[ue]||(T.content[ue]={}),T.content[ue].examples={},T.content[ue].examples.response={},T.content[ue].examples.response.value=T.examples[ue];if(delete T.examples,T.headers)for(let ue in T.headers)ue.toLowerCase()==="status code"?he.patch?(he.patches++,delete T.headers[ue]):k('(Patchable) "Status Code" is not a valid header',he):L(T.headers[ue],he)}}function U(T,Z,fe,F,he){for(let ue in T){let ee=T[ue];ee&&ee["x-trace"]&&typeof ee["x-trace"]=="object"&&(ee.trace=ee["x-trace"],delete ee["x-trace"]),ee&&ee["x-summary"]&&typeof ee["x-summary"]=="string"&&(ee.summary=ee["x-summary"],delete ee["x-summary"]),ee&&ee["x-description"]&&typeof ee["x-description"]=="string"&&(ee.description=ee["x-description"],delete ee["x-description"]),ee&&ee["x-servers"]&&Array.isArray(ee["x-servers"])&&(ee.servers=ee["x-servers"],delete ee["x-servers"]);for(let ae in ee)if(g.httpMethods.indexOf(ae)>=0||ae==="x-amazon-apigateway-any-method"){let le=ee[ae];if(le&&le.parameters&&Array.isArray(le.parameters)){if(ee.parameters)for(let _e of ee.parameters)typeof _e.$ref=="string"&&(H(_e,fe),_e=a(he,_e.$ref)),!le.parameters.find(function(Oe,be,xe){return Oe.name===_e.name&&Oe.in===_e.in})&&(_e.in==="formData"||_e.in==="body"||_e.type==="file")&&(le=te(_e,le,ee,ae,ue,he,fe),fe.rbname&&le[fe.rbname]===""&&delete le[fe.rbname]);for(let _e of le.parameters)le=te(_e,le,ee,ae,ae+":"+ue,he,fe);fe.rbname&&le[fe.rbname]===""&&delete le[fe.rbname],fe.debug||le.parameters&&(le.parameters=le.parameters.filter(N))}if(le&&le.security&&D(le.security),typeof le=="object"){if(!le.responses){let _e={};_e.description="Default response",le.responses={default:_e}}for(let _e in le.responses){let Oe=le.responses[_e];se(Oe,_e,le,he,fe)}}if(le&&le["x-servers"]&&Array.isArray(le["x-servers"]))le.servers=le["x-servers"],delete le["x-servers"];else if(le&&le.schemes&&le.schemes.length){for(let _e of le.schemes)if((!he.schemes||he.schemes.indexOf(_e)<0)&&(le.servers||(le.servers=[]),Array.isArray(he.servers)))for(let Oe of he.servers){let be=l(Oe),xe=t.parse(be.url);xe.protocol=_e,be.url=xe.format(),le.servers.push(be)}}if(fe.debug&&(le["x-s2o-consumes"]=le.consumes||[],le["x-s2o-produces"]=le.produces||[]),le){if(delete le.consumes,delete le.produces,delete le.schemes,le["x-ms-examples"]){for(let _e in le["x-ms-examples"]){let Oe=le["x-ms-examples"][_e],be=g.sanitiseAll(_e);if(Oe.parameters)for(let xe in Oe.parameters){let ye=Oe.parameters[xe];for(let Ce of(le.parameters||[]).concat(ee.parameters||[]))Ce.$ref&&(Ce=i.jptr(he,Ce.$ref)),Ce.name===xe&&!Ce.example&&(Ce.examples||(Ce.examples={}),Ce.examples[_e]={value:ye})}if(Oe.responses)for(let xe in Oe.responses){if(Oe.responses[xe].headers)for(let ye in Oe.responses[xe].headers){let Ce=Oe.responses[xe].headers[ye];for(let He in le.responses[xe].headers)if(He===ye){let B=le.responses[xe].headers[He];B.example=Ce}}if(Oe.responses[xe].body&&(he.components.examples[be]={value:l(Oe.responses[xe].body)},le.responses[xe]&&le.responses[xe].content))for(let ye in le.responses[xe].content){let Ce=le.responses[xe].content[ye];Ce.examples||(Ce.examples={}),Ce.examples[_e]={$ref:"#/components/examples/"+be}}}}delete le["x-ms-examples"]}if(le.parameters&&le.parameters.length===0&&delete le.parameters,le.requestBody){let _e=le.operationId?g.sanitiseAll(le.operationId):g.sanitiseAll(ae+ue).toCamelCase(),Oe=g.sanitise(le.requestBody["x-s2o-name"]||_e||"");delete le.requestBody["x-s2o-name"];let be=JSON.stringify(le.requestBody),xe=g.hash(be);if(!F[xe]){let Ce={};Ce.name=Oe,Ce.body=le.requestBody,Ce.refs=[],F[xe]=Ce}let ye="#/"+Z+"/"+encodeURIComponent(i.jpescape(ue))+"/"+ae+"/requestBody";F[xe].refs.push(ye)}}}if(ee&&ee.parameters){for(let ae in ee.parameters){let le=ee.parameters[ae];te(le,null,ee,null,ue,he,fe)}!fe.debug&&Array.isArray(ee.parameters)&&(ee.parameters=ee.parameters.filter(N))}}}function Q(T,Z){let fe={};x={schemas:{}},T.security&&D(T.security);for(let he in T.components.securitySchemes){let ue=g.sanitise(he);he!==ue&&(T.components.securitySchemes[ue]&&k("Duplicate sanitised securityScheme name "+ue,Z),T.components.securitySchemes[ue]=T.components.securitySchemes[he],delete T.components.securitySchemes[he]),I(T.components.securitySchemes[ue],Z)}for(let he in T.components.schemas){let ue=g.sanitiseAll(he),ee="";if(he!==ue){for(;T.components.schemas[ue+ee];)ee=ee?++ee:2;T.components.schemas[ue+ee]=T.components.schemas[he],delete T.components.schemas[he]}x.schemas[he]=ue+ee,_(T.components.schemas[ue+ee],Z)}Z.refmap={},u(T,{payload:{options:Z}},P),M(T,Z);for(let he in T.components.parameters){let ue=g.sanitise(he);he!==ue&&(T.components.parameters[ue]&&k("Duplicate sanitised parameter name "+ue,Z),T.components.parameters[ue]=T.components.parameters[he],delete T.components.parameters[he]);let ee=T.components.parameters[ue];te(ee,null,null,null,ue,T,Z)}for(let he in T.components.responses){let ue=g.sanitise(he);he!==ue&&(T.components.responses[ue]&&k("Duplicate sanitised response name "+ue,Z),T.components.responses[ue]=T.components.responses[he],delete T.components.responses[he]);let ee=T.components.responses[ue];if(se(ee,ue,null,T,Z),ee.headers)for(let ae in ee.headers)ae.toLowerCase()==="status code"?Z.patch?(Z.patches++,delete ee.headers[ae]):k('(Patchable) "Status Code" is not a valid header',Z):L(ee.headers[ae],Z)}for(let he in T.components.requestBodies){let ue=T.components.requestBodies[he],ee=JSON.stringify(ue),ae=g.hash(ee),le={};le.name=he,le.body=ue,le.refs=[],fe[ae]=le}if(U(T.paths,"paths",Z,fe,T),T["x-ms-paths"]&&U(T["x-ms-paths"],"x-ms-paths",Z,fe,T),!Z.debug)for(let he in T.components.parameters)T.components.parameters[he]["x-s2o-delete"]&&delete T.components.parameters[he];Z.debug&&(T["x-s2o-consumes"]=T.consumes||[],T["x-s2o-produces"]=T.produces||[]),delete T.consumes,delete T.produces,delete T.schemes;let F=[];if(T.components.requestBodies={},!Z.resolveInternal){let he=1;for(let ue in fe){let ee=fe[ue];if(ee.refs.length>1){let ae="";for(ee.name||(ee.name="requestBody",ae=he++);F.indexOf(ee.name+ae)>=0;)ae=ae?++ae:2;ee.name=ee.name+ae,F.push(ee.name),T.components.requestBodies[ee.name]=l(ee.body);for(let le in ee.refs){let _e={};_e.$ref="#/components/requestBodies/"+ee.name,i.jptr(T,ee.refs[le],_e)}}}}return T.components.responses&&Object.keys(T.components.responses).length===0&&delete T.components.responses,T.components.parameters&&Object.keys(T.components.parameters).length===0&&delete T.components.parameters,T.components.examples&&Object.keys(T.components.examples).length===0&&delete T.components.examples,T.components.requestBodies&&Object.keys(T.components.requestBodies).length===0&&delete T.components.requestBodies,T.components.securitySchemes&&Object.keys(T.components.securitySchemes).length===0&&delete T.components.securitySchemes,T.components.headers&&Object.keys(T.components.headers).length===0&&delete T.components.headers,T.components.schemas&&Object.keys(T.components.schemas).length===0&&delete T.components.schemas,T.components&&Object.keys(T.components).length===0&&delete T.components,T}function X(T){return!T||!T.url||typeof T.url!="string"||(T.url=T.url.split("{{").join("{"),T.url=T.url.split("}}").join("}"),T.url.replace(/\{(.+?)\}/g,function(Z,fe){T.variables||(T.variables={}),T.variables[fe]={default:"unknown"}})),T}function q(T,Z,fe){if(typeof T.info>"u"||T.info===null)if(Z.patch)Z.patches++,T.info={version:"",title:""};else return fe(new w("(Patchable) info object is mandatory"));if(typeof T.info!="object"||Array.isArray(T.info))return fe(new w("info must be an object"));if(typeof T.info.title>"u"||T.info.title===null)if(Z.patch)Z.patches++,T.info.title="";else return fe(new w("(Patchable) info.title cannot be null"));if(typeof T.info.version>"u"||T.info.version===null)if(Z.patch)Z.patches++,T.info.version="";else return fe(new w("(Patchable) info.version cannot be null"));if(typeof T.info.version!="string")if(Z.patch)Z.patches++,T.info.version=T.info.version.toString();else return fe(new w("(Patchable) info.version must be a string"));if(typeof T.info.logo<"u")if(Z.patch)Z.patches++,T.info["x-logo"]=T.info.logo,delete T.info.logo;else return fe(new w("(Patchable) info should not have logo property"));if(typeof T.info.termsOfService<"u"){if(T.info.termsOfService===null)if(Z.patch)Z.patches++,T.info.termsOfService="";else return fe(new w("(Patchable) info.termsOfService cannot be null"));try{new URL(T.info.termsOfService)}catch{if(Z.patch)Z.patches++,delete T.info.termsOfService;else return fe(new w("(Patchable) info.termsOfService must be a URL"))}}}function W(T,Z,fe){if(typeof T.paths>"u")if(Z.patch)Z.patches++,T.paths={};else return fe(new w("(Patchable) paths object is mandatory"))}function re(T,Z){const fe=new WeakSet;u(T,{identityDetection:!0},function(F,he,ue){typeof F[he]=="object"&&F[he]!==null&&(fe.has(F[he])?Z.anchors?F[he]=l(F[he]):k("YAML anchor or merge key at "+ue.path,Z):fe.add(F[he]))})}function G(T,Z,fe){return r(fe,new Promise(function(F,he){if(T||(T={}),Z.original=T,Z.text||(Z.text=o.stringify(T)),Z.externals=[],Z.externalRefs={},Z.rewriteRefs=!0,Z.preserveMiro=!0,Z.promise={},Z.promise.resolve=F,Z.promise.reject=he,Z.patches=0,Z.cache||(Z.cache={}),Z.source&&(Z.cache[Z.source]=Z.original),re(T,Z),T.openapi&&typeof T.openapi=="string"&&T.openapi.startsWith("3.")){Z.openapi=c(T),q(Z.openapi,Z,he),W(Z.openapi,Z,he),d.optionalResolve(Z).then(function(){return Z.direct?F(Z.openapi):F(Z)}).catch(function(ee){console.warn(ee),he(ee)});return}if(!T.swagger||T.swagger!="2.0")return he(new w("Unsupported swagger/OpenAPI version: "+(T.openapi?T.openapi:T.swagger)));let ue=Z.openapi={};if(ue.openapi=typeof Z.targetVersion=="string"&&Z.targetVersion.startsWith("3.")?Z.targetVersion:y,Z.origin){ue["x-origin"]||(ue["x-origin"]=[]);let ee={};ee.url=Z.source||Z.origin,ee.format="swagger",ee.version=T.swagger,ee.converter={},ee.converter.url="https://github.com/mermade/oas-kit",ee.converter.version=b,ue["x-origin"].push(ee)}if(ue=Object.assign(ue,c(T)),delete ue.swagger,u(ue,{},function(ee,ae,le){ee[ae]===null&&!ae.startsWith("x-")&&ae!=="default"&&le.path.indexOf("/example")<0&&delete ee[ae]}),T.host)for(let ee of Array.isArray(T.schemes)?T.schemes:[""]){let ae={},le=(T.basePath||"").replace(/\/$/,"");ae.url=(ee?ee+":":"")+"//"+T.host+le,X(ae),ue.servers||(ue.servers=[]),ue.servers.push(ae)}else if(T.basePath){let ee={};ee.url=T.basePath,X(ee),ue.servers||(ue.servers=[]),ue.servers.push(ee)}if(delete ue.host,delete ue.basePath,ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]),T["x-ms-parameterized-host"]){let ee=T["x-ms-parameterized-host"],ae={};ae.url=ee.hostTemplate+(T.basePath?T.basePath:""),ae.variables={};const le=ae.url.match(/\{\w+\}/g);for(let _e in ee.parameters){let Oe=ee.parameters[_e];Oe.$ref&&(Oe=l(a(ue,Oe.$ref))),_e.startsWith("x-")||(delete Oe.required,delete Oe.type,delete Oe.in,typeof Oe.default>"u"&&(Oe.enum?Oe.default=Oe.enum[0]:Oe.default="none"),Oe.name||(Oe.name=le[_e].replace("{","").replace("}","")),ae.variables[Oe.name]=Oe,delete Oe.name)}ue.servers||(ue.servers=[]),ee.useSchemePrefix===!1?ue.servers.push(ae):T.schemes.forEach(_e=>{ue.servers.push(Object.assign({},ae,{url:_e+"://"+ae.url}))}),delete ue["x-ms-parameterized-host"]}q(ue,Z,he),W(ue,Z,he),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(Z).then(function(){Q(Z.openapi,Z),Z.direct?F(Z.openapi):F(Z)}).catch(function(ee){console.warn(ee),he(ee)})}))}function oe(T,Z,fe){return r(fe,new Promise(function(F,he){let ue=null,ee=null;try{ue=JSON.parse(T),Z.text=JSON.stringify(ue,null,2)}catch(ae){ee=ae;try{ue=o.parse(T,{schema:"core",prettyErrors:!0}),Z.sourceYaml=!0,Z.text=T}catch(le){ee=le}}ue?G(ue,Z).then(ae=>F(ae)).catch(ae=>he(ae)):he(new w(ee?ee.message:"Could not parse string"))}))}function ne(T,Z,fe){return r(fe,new Promise(function(F,he){Z.origin=!0,Z.source||(Z.source=T),Z.verbose&&console.warn("GET "+T),Z.fetch||(Z.fetch=n);const ue=Object.assign({},Z.fetchOptions,{agent:Z.agent});Z.fetch(T,ue).then(function(ee){if(ee.status!==200)throw new w(`Received status code ${ee.status}: ${T}`);return ee.text()}).then(function(ee){oe(ee,Z).then(ae=>F(ae)).catch(ae=>he(ae))}).catch(function(ee){he(ee)})}))}function ve(T,Z,fe){return r(fe,new Promise(function(F,he){e.readFile(T,Z.encoding||"utf8",function(ue,ee){ue?he(ue):(Z.sourceFile=T,oe(ee,Z).then(ae=>F(ae)).catch(ae=>he(ae)))})}))}function me(T,Z,fe){return r(fe,new Promise(function(F,he){let ue="";T.on("data",function(ee){ue+=ee}).on("end",function(){oe(ue,Z).then(ee=>F(ee)).catch(ee=>he(ee))})}))}return _8={S2OError:w,targetVersion:y,convert:G,convertObj:G,convertUrl:ne,convertStr:oe,convertFile:ve,convertStream:me},_8}var RRe=$Re();const MRe=Zn(RRe);function IRe(e){return e.paths||(e.paths={}),new Promise((t,r)=>MRe.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(n,o)=>{if(n)return r(n);t(o?.openapi)}))}async function LRe(e){const t=new VE({}),r={config:t,base:Ya?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};Ya&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?r.doc=DRe(e):r.ref=e;const{bundle:{parsed:n}}=await X$e(r);return n.swagger!==void 0?IRe(n):n}function DRe(e){return{source:{absoluteRef:""},parsed:e}}async function zRe(e,t,r){let n;if(r?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');n=e}else n=await LRe(e||t);try{R3e(n)}catch{}return n}const NRe=({options:e,definitionUrl:t,definition:r,activeSampleLanguage:n,children:o})=>{const[,i]=$.useState(),[a,s]=$.useState(!0),[l,c]=$.useState(null);$.useEffect(()=>{async function d(){s(!0);try{c(await zRe(r,t,e))}catch(h){i(()=>{throw h})}}d()},[r,t,e]);const u=$.useMemo(()=>{if(l)return e?.unstable_hooks?.onInit&&e.unstable_hooks?.onInit?.({store:{definition:l,options:e,definitionUrl:t,activeSampleLanguage:n}}),{definition:l,options:e,definitionUrl:t,activeSampleLanguage:n}},M3e([l,e,t]));return $.useEffect(()=>{u&&s(!1)},[u]),u?a?ma(e?.hideLoading,!1)?null:f.jsx(Mje,{color:"--loading-spinner-color"}):$.isValidElement(o)?$.cloneElement(o,{store:u}):null:null};function BRe({definition:e,definitionUrl:t,options:r={},activeItemId:n,activeSampleLanguage:o,activeDeepLink:i}){return f.jsx(NRe,{definition:e,definitionUrl:t,options:r,activeItemId:n,activeSampleLanguage:o,activeDeepLink:i,children:f.jsx(VF,{withCommonStyles:!0})})}function VRe(e){const t={},r=e.attributes;for(let n=0;n<r.length;n++){const o=r[n];t[o.name]=o.value}return t}function FRe(e){const t=VRe(e),r={};for(const n in t){const o=n.replace(/-(.)/g,(i,a)=>a.toUpperCase());r[o]=t[n]}return r}function QRe(e,t=document.querySelector("redoc")){LR.hydrateRoot(t,f.jsx(VF,{store:e}))}function dH(e,t={},r=D6("redoc")){if(r===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let n,o;typeof e=="string"?n=e:typeof e=="object"&&(o=e),LR.createRoot(r).render($.createElement(BRe,{definition:o,definitionUrl:n,options:{...t,...FRe(r)}},["Loading..."]))}const qRe="3.12.0-next.16",ZRe="39ed8776";function URe(){const e=D6("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&dH(t,{},e)}URe();var pH={exports:{}};/*!
|
|
9338
9334
|
|
|
9339
9335
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
9340
9336
|
<http://stuartk.com/jszip>
|
|
@@ -10689,7 +10685,7 @@ html body {
|
|
|
10689
10685
|
align-self: flex-end;
|
|
10690
10686
|
padding-top: var(--spacing-xxs);
|
|
10691
10687
|
gap: var(--spacing-xs);
|
|
10692
|
-
`;function d0({input:e,onSave:t,onCancel:r,...n}){const[o,i]=$.useState(!!e.isSecret),a=({name:s,value:l})=>{t({...e,name:s,value:l,isSecret:o})};return f.jsx(poe,{variable:e,onSave:a,onCancel:r,...n,children:f.jsx(mA,{children:f.jsx(IJe,{value:o,onChange:s=>i(s),title:"Make it secret"})})})}function e3(e){var t=new Error(e);return t.source="ulid",t}var vA="0123456789ABCDEFGHJKMNPQRSTVWXYZ",p0=vA.length,hoe=Math.pow(2,48)-1,FJe=10,QJe=16;function qJe(e){var t=Math.floor(e()*p0);return t===p0&&(t=p0-1),vA.charAt(t)}function ZJe(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>hoe)throw e3("cannot encode time greater than "+hoe);if(e<0)throw e3("time must be positive");if(Number.isInteger(e)===!1)throw e3("time must be an integer");for(var r=void 0,n="";t>0;t--)r=e%p0,n=vA.charAt(r)+n,e=(e-r)/p0;return n}function UJe(e,t){for(var r="";e>0;e--)r=qJe(t)+r;return r}function HJe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var r=t&&(t.crypto||t.msCrypto);if(r)return function(){var o=new Uint8Array(1);return r.getRandomValues(o),o[0]/255};try{var n=require("crypto");return function(){return n.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 e3("secure crypto unusable, insecure Math.random not allowed")}function WJe(e){return e||(e=HJe()),function(t){return isNaN(t)&&(t=Date.now()),ZJe(t,FJe)+UJe(QJe,e)}}var h0=WJe(),XJe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},sp="1.9.0",foe=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function YJe(e){var t=new Set([e]),r=new Set,n=e.match(foe);if(!n)return function(){return!1};var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(s){return s===e};function i(s){return r.add(s),!1}function a(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(r.has(s))return!1;var l=s.match(foe);if(!l)return i(s);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||o.major!==c.major?i(s):o.major===0?o.minor===c.minor&&o.patch<=c.patch?a(s):i(s):o.minor<=c.minor?a(s):i(s)}}var GJe=YJe(sp),JJe=sp.split(".")[0],f0=Symbol.for("opentelemetry.js.api."+JJe),g0=XJe;function m0(e,t,r,n){var o;n===void 0&&(n=!1);var i=g0[f0]=(o=g0[f0])!==null&&o!==void 0?o:{version:sp};if(!n&&i[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(a.stack||a.message),!1}if(i.version!==sp){var a=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+sp);return r.error(a.stack||a.message),!1}return i[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+sp+"."),!0}function lp(e){var t,r,n=(t=g0[f0])===null||t===void 0?void 0:t.version;if(!(!n||!GJe(n)))return(r=g0[f0])===null||r===void 0?void 0:r[e]}function v0(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+sp+".");var r=g0[f0];r&&delete r[e]}var KJe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i},eKe=function(e,t,r){if(arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},tKe=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return b0("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return b0("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return b0("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return b0("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return b0("verbose",this._namespace,t)},e}();function b0(e,t,r){var n=lp("diag");if(n)return r.unshift(t),n[e].apply(n,eKe([],KJe(r),!1))}var Ia;(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"})(Ia||(Ia={}));function rKe(e,t){e<Ia.NONE?e=Ia.NONE:e>Ia.ALL&&(e=Ia.ALL),t=t||{};function r(n,o){var i=t[n];return typeof i=="function"&&e>=o?i.bind(t):function(){}}return{error:r("error",Ia.ERROR),warn:r("warn",Ia.WARN),info:r("info",Ia.INFO),debug:r("debug",Ia.DEBUG),verbose:r("verbose",Ia.VERBOSE)}}var nKe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i},oKe=function(e,t,r){if(arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},iKe="diag",Nl=function(){function e(){function t(o){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=lp("diag");if(s)return s[o].apply(s,oKe([],nKe(i),!1))}}var r=this,n=function(o,i){var a,s,l;if(i===void 0&&(i={logLevel:Ia.INFO}),o===r){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((a=c.stack)!==null&&a!==void 0?a:c.message),!1}typeof i=="number"&&(i={logLevel:i});var u=lp("diag"),d=rKe((s=i.logLevel)!==null&&s!==void 0?s:Ia.INFO,o);if(u&&!i.suppressOverrideMessage){var h=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+h),d.warn("Current logger will overwrite one already registered from "+h)}return m0("diag",d,r,!0)};r.setLogger=n,r.disable=function(){v0(iKe,r)},r.createComponentLogger=function(o){return new tKe(o)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),aKe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i},sKe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},lKe=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var r=this._entries.get(t);if(r)return Object.assign({},r)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var r=aKe(t,2),n=r[0],o=r[1];return[n,o]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=new e(this._entries);try{for(var a=sKe(n),s=a.next();!s.done;s=a.next()){var l=s.value;i._entries.delete(l)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e}(),cKe=Symbol("BaggageEntryMetadata"),uKe=Nl.instance();function dKe(e){return e===void 0&&(e={}),new lKe(new Map(Object.entries(e)))}function pKe(e){return typeof e!="string"&&(uKe.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:cKe,toString:function(){return e}}}function bA(e){return Symbol.for(e)}var hKe=function(){function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,o){var i=new e(r._currentContext);return i._currentContext.set(n,o),i},r.deleteValue=function(n){var o=new e(r._currentContext);return o._currentContext.delete(n),o}}return e}(),_f=new hKe,cp=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),fKe=function(){function e(){}return e.prototype.createGauge=function(t,r){return CKe},e.prototype.createHistogram=function(t,r){return SKe},e.prototype.createCounter=function(t,r){return kKe},e.prototype.createUpDownCounter=function(t,r){return jKe},e.prototype.createObservableGauge=function(t,r){return _Ke},e.prototype.createObservableCounter=function(t,r){return AKe},e.prototype.createObservableUpDownCounter=function(t,r){return EKe},e.prototype.addBatchObservableCallback=function(t,r){},e.prototype.removeBatchObservableCallback=function(t){},e}(),t3=function(){function e(){}return e}(),gKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(t3),mKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(t3),vKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(t3),bKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(t3),yA=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),yKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(yA),xKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(yA),OKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(yA),wKe=new fKe,kKe=new gKe,CKe=new vKe,SKe=new bKe,jKe=new mKe,AKe=new yKe,_Ke=new xKe,EKe=new OKe,PKe={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},TKe={set:function(e,t,r){e!=null&&(e[t]=r)}},$Ke=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i},RKe=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},MKe=function(){function e(){}return e.prototype.active=function(){return _f},e.prototype.with=function(t,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return r.call.apply(r,RKe([n],$Ke(o),!1))},e.prototype.bind=function(t,r){return r},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),IKe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i},LKe=function(e,t,r){if(arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},xA="context",DKe=new MKe,r3=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return m0(xA,t,Nl.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,r,n){for(var o,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return(o=this._getContextManager()).with.apply(o,LKe([t,r,n],IKe(i),!1))},e.prototype.bind=function(t,r){return this._getContextManager().bind(t,r)},e.prototype._getContextManager=function(){return lp(xA)||DKe},e.prototype.disable=function(){this._getContextManager().disable(),v0(xA,Nl.instance())},e}(),Tc;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Tc||(Tc={}));var goe="0000000000000000",moe="00000000000000000000000000000000",voe={traceId:moe,spanId:goe,traceFlags:Tc.NONE},y0=function(){function e(t){t===void 0&&(t=voe),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,r){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,r){},e}(),OA=bA("OpenTelemetry Context Key SPAN");function wA(e){return e.getValue(OA)||void 0}function zKe(){return wA(r3.getInstance().active())}function kA(e,t){return e.setValue(OA,t)}function NKe(e){return e.deleteValue(OA)}function BKe(e,t){return kA(e,new y0(t))}function boe(e){var t;return(t=wA(e))===null||t===void 0?void 0:t.spanContext()}var VKe=/^([0-9a-f]{32})$/i,FKe=/^[0-9a-f]{16}$/i;function yoe(e){return VKe.test(e)&&e!==moe}function QKe(e){return FKe.test(e)&&e!==goe}function n3(e){return yoe(e.traceId)&&QKe(e.spanId)}function qKe(e){return new y0(e)}var CA=r3.getInstance(),xoe=function(){function e(){}return e.prototype.startSpan=function(t,r,n){n===void 0&&(n=CA.active());var o=!!r?.root;if(o)return new y0;var i=n&&boe(n);return ZKe(i)&&n3(i)?new y0(i):new y0},e.prototype.startActiveSpan=function(t,r,n,o){var i,a,s;if(!(arguments.length<2)){arguments.length===2?s=r:arguments.length===3?(i=r,s=n):(i=r,a=n,s=o);var l=a??CA.active(),c=this.startSpan(t,i,l),u=kA(l,c);return CA.with(u,s,void 0,c)}},e}();function ZKe(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var UKe=new xoe,HKe=function(){function e(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}return e.prototype.startSpan=function(t,r,n){return this._getTracer().startSpan(t,r,n)},e.prototype.startActiveSpan=function(t,r,n,o){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):UKe},e}(),WKe=function(){function e(){}return e.prototype.getTracer=function(t,r,n){return new xoe},e}(),XKe=new WKe,Ooe=function(){function e(){}return e.prototype.getTracer=function(t,r,n){var o;return(o=this.getDelegateTracer(t,r,n))!==null&&o!==void 0?o:new HKe(this,t,r,n)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:XKe},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(t,r,n)},e}(),o3;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(o3||(o3={}));var SA;(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"})(SA||(SA={}));var jA;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(jA||(jA={}));var Yu=r3.getInstance(),Pr=Nl.instance(),YKe=function(){function e(){}return e.prototype.getMeter=function(t,r,n){return wKe},e}(),GKe=new YKe,AA="metrics",JKe=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return m0(AA,t,Nl.instance())},e.prototype.getMeterProvider=function(){return lp(AA)||GKe},e.prototype.getMeter=function(t,r,n){return this.getMeterProvider().getMeter(t,r,n)},e.prototype.disable=function(){v0(AA,Nl.instance())},e}(),KKe=JKe.getInstance(),eet=function(){function e(){}return e.prototype.inject=function(t,r){},e.prototype.extract=function(t,r){return t},e.prototype.fields=function(){return[]},e}(),_A=bA("OpenTelemetry Baggage Key");function woe(e){return e.getValue(_A)||void 0}function tet(){return woe(r3.getInstance().active())}function ret(e,t){return e.setValue(_A,t)}function net(e){return e.deleteValue(_A)}var EA="propagation",oet=new eet,iet=function(){function e(){this.createBaggage=dKe,this.getBaggage=woe,this.getActiveBaggage=tet,this.setBaggage=ret,this.deleteBaggage=net}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return m0(EA,t,Nl.instance())},e.prototype.inject=function(t,r,n){return n===void 0&&(n=TKe),this._getGlobalPropagator().inject(t,r,n)},e.prototype.extract=function(t,r,n){return n===void 0&&(n=PKe),this._getGlobalPropagator().extract(t,r,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){v0(EA,Nl.instance())},e.prototype._getGlobalPropagator=function(){return lp(EA)||oet},e}(),x0=iet.getInstance(),PA="trace",aet=function(){function e(){this._proxyTracerProvider=new Ooe,this.wrapSpanContext=qKe,this.isSpanContextValid=n3,this.deleteSpan=NKe,this.getSpan=wA,this.getActiveSpan=zKe,this.getSpanContext=boe,this.setSpan=kA,this.setSpanContext=BKe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var r=m0(PA,this._proxyTracerProvider,Nl.instance());return r&&this._proxyTracerProvider.setDelegate(t),r},e.prototype.getTracerProvider=function(){return lp(PA)||this._proxyTracerProvider},e.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},e.prototype.disable=function(){v0(PA,Nl.instance()),this._proxyTracerProvider=new Ooe},e}(),gs=aet.getInstance();const koe=bA("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function set(e){return e.setValue(koe,!0)}function TA(e){return e.getValue(koe)===!0}const cet="=",$A=";",RA=",",MA="baggage",uet=180,det=4096,pet=8192;function het(e){return e.reduce((t,r)=>{const n=`${t}${t!==""?RA:""}${r}`;return n.length>pet?t:n},"")}function fet(e){return e.getAllEntries().map(([t,r])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=$A+r.metadata.toString()),n})}function get(e){const t=e.split($A);if(t.length<=0)return;const r=t.shift();if(!r)return;const n=r.indexOf(cet);if(n<=0)return;const o=decodeURIComponent(r.substring(0,n).trim()),i=decodeURIComponent(r.substring(n+1).trim());let a;return t.length>0&&(a=pKe(t.join($A))),{key:o,value:i,metadata:a}}class met{inject(t,r,n){const o=x0.getBaggage(t);if(!o||TA(t))return;const i=fet(o).filter(s=>s.length<=det).slice(0,uet),a=het(i);a.length>0&&n.set(r,MA,a)}extract(t,r,n){const o=n.get(r,MA),i=Array.isArray(o)?o.join(RA):o;if(!i)return t;const a={};return i.length===0||(i.split(RA).forEach(s=>{const l=get(s);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),a[l.key]=c}}),Object.entries(a).length===0)?t:x0.setBaggage(t,x0.createBaggage(a))}fields(){return[MA]}}function i3(e){const t={};if(typeof e!="object"||e==null)return t;for(const[r,n]of Object.entries(e)){if(!vet(r)){Pr.warn(`Invalid attribute key: ${r}`);continue}if(!Coe(n)){Pr.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?t[r]=n.slice():t[r]=n}return t}function vet(e){return typeof e=="string"&&e.length>0}function Coe(e){return e==null?!0:Array.isArray(e)?bet(e):Soe(e)}function bet(e){let t;for(const r of e)if(r!=null){if(!t){if(Soe(r)){t=typeof r;continue}return!1}if(typeof r!==t)return!1}return!0}function Soe(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function yet(){return e=>{Pr.error(xet(e))}}function xet(e){return typeof e=="string"?e:JSON.stringify(Oet(e))}function Oet(e){const t={};let r=e;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(t[n])return;const o=r[n];o&&(t[n]=String(o))}),r=Object.getPrototypeOf(r);return t}let wet=yet();function Ef(e){try{wet(e)}catch{}}const Pf=performance,ket="2.0.1",IA="exception.message",Cet="exception.stacktrace",LA="exception.type",joe="service.name",jet="service.version",DA="telemetry.sdk.language",Aet="webjs",zA="telemetry.sdk.name",NA="telemetry.sdk.version",_et="process.runtime.name",BA={[zA]:"opentelemetry",[_et]:"browser",[DA]:Aet,[NA]:ket},Eet=9,Pet=6,Tet=Math.pow(10,Pet),a3=Math.pow(10,Eet);function Tf(e){const t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*Tet);return[r,n]}function Aoe(){let e=Pf.timeOrigin;if(typeof e!="number"){const t=Pf;e=t.timing&&t.timing.fetchStart}return e}function $et(e){const t=Tf(Aoe()),r=Tf(typeof e=="number"?e:Pf.now());return Poe(t,r)}function Ret(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=a3),[r,n]}function Met(e){return e[0]*a3+e[1]}function _oe(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function Eoe(e){return _oe(e)||typeof e=="number"||e instanceof Date}function Poe(e,t){const r=[e[0]+t[0],e[1]+t[1]];return r[1]>=a3&&(r[1]-=a3,r[0]+=1),r}var Bl;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Bl||(Bl={}));class Iet{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,n)=>r.concat(n),[])))}inject(t,r,n){for(const o of this._propagators)try{o.inject(t,r,n)}catch(i){Pr.warn(`Failed to inject with ${o.constructor.name}. Err: ${i.message}`)}}extract(t,r,n){return this._propagators.reduce((o,i)=>{try{return i.extract(o,r,n)}catch(a){Pr.warn(`Failed to extract with ${i.constructor.name}. Err: ${a.message}`)}return o},t)}fields(){return this._fields.slice()}}const VA="[_0-9a-z-*/]",Let=`[a-z]${VA}{0,255}`,Det=`[a-z0-9]${VA}{0,240}@[a-z]${VA}{0,13}`,zet=new RegExp(`^(?:${Let}|${Det})$`),Net=/^[ -~]{0,255}[!-~]$/,Bet=/,|=/;function Vet(e){return zet.test(e)}function Fet(e){return Net.test(e)&&!Bet.test(e)}const Toe=32,Qet=512,$oe=",",Roe="=";class YE{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,r){const n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n}unset(t){const r=this._clone();return r._internalState.delete(t),r}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,r)=>(t.push(r+Roe+this.get(r)),t),[]).join($oe)}_parse(t){t.length>Qet||(this._internalState=t.split($oe).reverse().reduce((r,n)=>{const o=n.trim(),i=o.indexOf(Roe);if(i!==-1){const a=o.slice(0,i),s=o.slice(i+1,n.length);Vet(a)&&Fet(s)&&r.set(a,s)}return r},new Map),this._internalState.size>Toe&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Toe))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new YE;return t._internalState=new Map(this._internalState),t}}const FA="traceparent",QA="tracestate",qet="00",Zet="(?!ff)[\\da-f]{2}",Uet="(?![0]{32})[\\da-f]{32}",Het="(?![0]{16})[\\da-f]{16}",Wet="[\\da-f]{2}",Xet=new RegExp(`^\\s?(${Zet})-(${Uet})-(${Het})-(${Wet})(-.*)?\\s?$`);function Yet(e){const t=Xet.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class Get{inject(t,r,n){const o=gs.getSpanContext(t);if(!o||TA(t)||!n3(o))return;const i=`${qet}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||Tc.NONE).toString(16)}`;n.set(r,FA,i),o.traceState&&n.set(r,QA,o.traceState.serialize())}extract(t,r,n){const o=n.get(r,FA);if(!o)return t;const i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return t;const a=Yet(i);if(!a)return t;a.isRemote=!0;const s=n.get(r,QA);if(s){const l=Array.isArray(s)?s.join(","):s;a.traceState=new YE(typeof l=="string"?l:void 0)}return gs.setSpanContext(t,a)}fields(){return[FA,QA]}}const Jet="[object Object]",Ket="[object Null]",ett="[object Undefined]",ttt=Function.prototype,Moe=ttt.toString,rtt=Moe.call(Object),ntt=Object.getPrototypeOf,Ioe=Object.prototype,Loe=Ioe.hasOwnProperty,up=Symbol?Symbol.toStringTag:void 0,Doe=Ioe.toString;function zoe(e){if(!ott(e)||itt(e)!==Jet)return!1;const t=ntt(e);if(t===null)return!0;const r=Loe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Moe.call(r)===rtt}function ott(e){return e!=null&&typeof e=="object"}function itt(e){return e==null?e===void 0?ett:Ket:up&&up in Object(e)?att(e):stt(e)}function att(e){const t=Loe.call(e,up),r=e[up];let n=!1;try{e[up]=void 0,n=!0}catch{}const o=Doe.call(e);return n&&(t?e[up]=r:delete e[up]),o}function stt(e){return Doe.call(e)}const ltt=20;function ctt(...e){let t=e.shift();const r=new WeakMap;for(;e.length>0;)t=Noe(t,e.shift(),0,r);return t}function qA(e){return s3(e)?e.slice():e}function Noe(e,t,r=0,n){let o;if(!(r>ltt)){if(r++,l3(e)||l3(t)||Voe(t))o=qA(t);else if(s3(e)){if(o=e.slice(),s3(t))for(let i=0,a=t.length;i<a;i++)o.push(qA(t[i]));else if(O0(t)){const i=Object.keys(t);for(let a=0,s=i.length;a<s;a++){const l=i[a];o[l]=qA(t[l])}}}else if(O0(e))if(O0(t)){if(!utt(e,t))return t;o=Object.assign({},e);const i=Object.keys(t);for(let a=0,s=i.length;a<s;a++){const l=i[a],c=t[l];if(l3(c))typeof c>"u"?delete o[l]:o[l]=c;else{const u=o[l],d=c;if(Boe(e,l,n)||Boe(t,l,n))delete o[l];else{if(O0(u)&&O0(d)){const h=n.get(u)||[],g=n.get(d)||[];h.push({obj:e,key:l}),g.push({obj:t,key:l}),n.set(u,h),n.set(d,g)}o[l]=Noe(o[l],c,r,n)}}}}else o=t;return o}}function Boe(e,t,r){const n=r.get(e[t])||[];for(let o=0,i=n.length;o<i;o++){const a=n[o];if(a.key===t&&a.obj===e)return!0}return!1}function s3(e){return Array.isArray(e)}function Voe(e){return typeof e=="function"}function O0(e){return!l3(e)&&!s3(e)&&!Voe(e)&&typeof e=="object"}function l3(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function utt(e,t){return!(!zoe(e)||!zoe(t))}class dtt{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,r)=>{this._resolve=t,this._reject=r})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class ptt{_callback;_that;_isCalled=!1;_deferred=new dtt;constructor(t,r){this._callback=t,this._that=r}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(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}}function htt(){return"unknown_service"}const w0=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class z5{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const r=new z5({});return r._rawAttributes=Qoe(t),r._asyncAttributesPending=t.filter(([n,o])=>w0(o)).length>0,r}constructor(t){const r=t.attributes??{};this._rawAttributes=Object.entries(r).map(([n,o])=>(w0(o)&&(this._asyncAttributesPending=!0),[n,o])),this._rawAttributes=Qoe(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[r,n]=this._rawAttributes[t];this._rawAttributes[t]=[r,w0(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Pr.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[r,n]of this._rawAttributes){if(w0(n)){Pr.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(t[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:z5.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function Foe(e){return z5.FromAttributeList(Object.entries(e))}function ftt(){return Foe({[joe]:htt(),[DA]:BA[DA],[zA]:BA[zA],[NA]:BA[NA]})}function Qoe(e){return e.map(([t,r])=>w0(r)?[t,r.catch(n=>{Pr.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,r])}const gtt="exception";class mtt{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:jA.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const r=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Pf.now(),this._performanceOffset=r-(this._performanceStartTime+Aoe()),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??r),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,r){if(r==null||this._isSpanEnded())return this;if(t.length===0)return Pr.warn(`Invalid attribute key: ${t}`),this;if(!Coe(r))return Pr.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this)}setAttributes(t){for(const[r,n]of Object.entries(t))this.setAttribute(r,n);return this}addEvent(t,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:o}=this._spanLimits;if(o===0)return Pr.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&Pr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Eoe(r)&&(Eoe(n)||(n=r),r=void 0);const i=i3(r);return this.events.push({name:t,attributes:i,time:this._getTime(n),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"&&(Pr.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()){Pr.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=Ret(this.startTime,this.endTime),this._duration[0]<0&&(Pr.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&&Pr.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Pf.now())return $et(t+this._performanceOffset);if(typeof t=="number")return Tf(t);if(t instanceof Date)return Tf(t.getTime());if(_oe(t))return t;if(this._startTimeProvided)return Tf(Date.now());const r=Pf.now()-this._performanceStartTime;return Poe(this.startTime,Tf(r))}isRecording(){return this._ended===!1}recordException(t,r){const n={};typeof t=="string"?n[IA]=t:t&&(t.code?n[LA]=t.code.toString():t.name&&(n[LA]=t.name),t.message&&(n[IA]=t.message),t.stack&&(n[Cet]=t.stack)),n[LA]||n[IA]?this.addEvent(gtt,n,r):Pr.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}}`);Pr.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,r){return t.length<=r?t:t.substring(0,r)}_truncateToSize(t){const r=this._attributeValueLengthLimit;return r<=0?(Pr.warn(`Attribute value limit must be positive, got ${r}`),t):typeof t=="string"?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):t}}var $f;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})($f||($f={}));class c3{shouldSample(){return{decision:$f.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Rf{shouldSample(){return{decision:$f.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class u3{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Ef(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Rf),this._remoteParentSampled=t.remoteParentSampled??new Rf,this._remoteParentNotSampled=t.remoteParentNotSampled??new c3,this._localParentSampled=t.localParentSampled??new Rf,this._localParentNotSampled=t.localParentNotSampled??new c3}shouldSample(t,r,n,o,i,a){const s=gs.getSpanContext(t);return!s||!n3(s)?this._root.shouldSample(t,r,n,o,i,a):s.isRemote?s.traceFlags&Tc.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,o,i,a):this._remoteParentNotSampled.shouldSample(t,r,n,o,i,a):s.traceFlags&Tc.SAMPLED?this._localParentSampled.shouldSample(t,r,n,o,i,a):this._localParentNotSampled.shouldSample(t,r,n,o,i,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class qoe{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,r){return{decision:yoe(r)&&this._accumulate(r)<this._upperBound?$f.RECORD_AND_SAMPLED:$f.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 r=0;for(let n=0;n<t.length/8;n++){const o=n*8,i=parseInt(t.slice(o,o+8),16);r=(r^i)>>>0}return r}}const Zoe=1;function Uoe(){return{sampler:Hoe(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function Hoe(){const e="parentbased_always_on";switch(e){case"always_on":return new Rf;case"always_off":return new c3;case"parentbased_always_on":return new u3({root:new Rf});case"parentbased_always_off":return new u3({root:new c3});case"traceidratio":return new qoe(Woe());case"parentbased_traceidratio":return new u3({root:new qoe(Woe())});default:return Pr.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new u3({root:new Rf})}}function Woe(){return Pr.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Zoe}.`),Zoe}const vtt=128,btt=1/0;function ytt(e){const t={sampler:Hoe()},r=Uoe(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function xtt(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??vtt,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??btt,Object.assign({},e,{spanLimits:t})}class Ott{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,r){this._exporter=t,this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:512,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:2048,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:3e4,this._shutdownOnce=new ptt(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Pr.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,r){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Tc.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&&Pr.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Pr.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,r)=>{const n=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,a=o;i<a;i++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{t()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,r)=>{const n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);Yu.with(set(Yu.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(o,s=>{clearTimeout(n),s.code===Bl.SUCCESS?t():r(s.error??new Error("BatchSpanProcessor: span export failed"))});let a=null;for(let s=0,l=o.length;s<l;s++){const c=o[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(a??=[],a.push(c.resource.waitForAsyncAttributes()))}a===null?i():Promise.all(a).then(i,s=>{Ef(s),r(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(r=>{this._isExporting=!1,Ef(r)})};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 wtt extends Ott{_visibilityChangeListener;_pageHideListener;constructor(t,r){super(t,r),this.onInit(r)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{Ef(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{Ef(r)})},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 ktt=8,Ctt=16;class Stt{generateTraceId=Xoe(Ctt);generateSpanId=Xoe(ktt)}const d3=Array(32);function Xoe(e){return function(){for(let t=0;t<e*2;t++)d3[t]=Math.floor(Math.random()*16)+48,d3[t]>=58&&(d3[t]+=39);return String.fromCharCode.apply(null,d3.slice(0,e*2))}}class jtt{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,r,n,o){const i=ytt(r);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=r.idGenerator||new Stt,this._resource=n,this._spanProcessor=o,this.instrumentationScope=t}startSpan(t,r={},n=Yu.active()){r.root&&(n=gs.deleteSpan(n));const o=gs.getSpan(n);if(TA(n))return Pr.debug("Instrumentation suppressed, returning Noop Span"),gs.wrapSpanContext(voe);const i=o?.spanContext(),a=this._idGenerator.generateSpanId();let s,l,c;!i||!gs.isSpanContextValid(i)?l=this._idGenerator.generateTraceId():(l=i.traceId,c=i.traceState,s=i);const u=r.kind??SA.INTERNAL,d=(r.links??[]).map(x=>({context:x.context,attributes:i3(x.attributes)})),h=i3(r.attributes),g=this._sampler.shouldSample(n,l,t,u,h,d);c=g.traceState??c;const v=g.decision===o3.RECORD_AND_SAMPLED?Tc.SAMPLED:Tc.NONE,b={traceId:l,spanId:a,traceFlags:v,traceState:c};if(g.decision===o3.NOT_RECORD)return Pr.debug("Recording is off, propagating context in a non-recording span"),gs.wrapSpanContext(b);const y=i3(Object.assign(h,g.attributes));return new mtt({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:b,name:t,kind:u,links:d,parentSpanContext:s,attributes:y,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,r,n,o){let i,a,s;if(arguments.length<2)return;arguments.length===2?s=r:arguments.length===3?(i=r,s=n):(i=r,a=n,s=o);const l=a??Yu.active(),c=this.startSpan(t,i,l),u=gs.setSpan(l,c);return Yu.with(u,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class Att{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const r of this._spanProcessors)t.push(r.forceFlush());return new Promise(r=>{Promise.all(t).then(()=>{r()}).catch(n=>{Ef(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(t,r){for(const n of this._spanProcessors)n.onStart(t,r)}onEnd(t){for(const r of this._spanProcessors)r.onEnd(t)}shutdown(){const t=[];for(const r of this._spanProcessors)t.push(r.shutdown());return new Promise((r,n)=>{Promise.all(t).then(()=>{r()},n)})}}var dp;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(dp||(dp={}));class _tt{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const r=ctt({},Uoe(),xtt(t));this._resource=r.resource??ftt(),this._config=Object.assign({},r,{resource:this._resource});const n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new Att(n)}getTracer(t,r,n){const o=`${t}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new jtt({name:t,version:r,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(o)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(o=>{let i;const a=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=dp.timeout},t);n.forceFlush().then(()=>{clearTimeout(a),i!==dp.timeout&&(i=dp.resolved,o(i))}).catch(s=>{clearTimeout(a),i=dp.error,o(s)})}));return new Promise((n,o)=>{Promise.all(r).then(i=>{const a=i.filter(s=>s!==dp.resolved);a.length>0?o(a):n()}).catch(i=>o([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class Ett{_enabled=!1;_currentContext=_f;_bindFunction(t=_f,r){const n=this,o=function(...i){return n.with(t,()=>r.apply(this,i))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),o}active(){return this._currentContext}bind(t,r){return t===void 0&&(t=this.active()),typeof r=="function"?this._bindFunction(t,r):r}disable(){return this._currentContext=_f,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=_f,this)}with(t,r,n,...o){const i=this._currentContext;this._currentContext=t||_f;try{return r.call(n,...o)}finally{this._currentContext=i}}}function Ptt(e){if(e!==null){if(e===void 0){const t=new Ett;t.enable(),Yu.setGlobalContextManager(t);return}e.enable(),Yu.setGlobalContextManager(e)}}function Ttt(e){if(e!==null){if(e===void 0){x0.setGlobalPropagator(new Iet({propagators:[new Get,new met]}));return}x0.setGlobalPropagator(e)}}class $tt extends _tt{constructor(t={}){super(t)}register(t={}){gs.setGlobalTracerProvider(this),Ttt(t.propagator),Ptt(t.contextManager)}}class Rtt{_delegate;constructor(t){this._delegate=t}export(t,r){this._delegate.export(t,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class Yoe extends Error{code;name="OTLPExporterError";data;constructor(t,r,n){super(t),this.data=n,this.code=r}}function Mtt(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Itt(e){if(e!=null)return()=>e}function Ltt(e,t,r){return{timeoutMillis:Mtt(e.timeoutMillis??t.timeoutMillis??r.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??r.concurrencyLimit,compression:e.compression??t.compression??r.compression}}function Dtt(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class ztt{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const r=()=>{const n=this._sendingPromises.indexOf(t);this._sendingPromises.splice(n,1)};t.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function Ntt(e){return new ztt(e.concurrencyLimit)}function Btt(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function Vtt(){return{handleResponse(e){e==null||!Btt(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||Pr.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class Ftt{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,r,n,o,i){this._transport=t,this._serializer=r,this._responseHandler=n,this._promiseQueue=o,this._timeout=i,this._diagLogger=Pr.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,r){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){r({code:Bl.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(t);if(n==null){r({code:Bl.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(o=>{if(o.status==="success"){if(o.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(o.data))}catch(i){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,o.data)}r({code:Bl.SUCCESS});return}else if(o.status==="failure"&&o.error){r({code:Bl.FAILED,error:o.error});return}else o.status==="retryable"?r({code:Bl.FAILED,error:new Yoe("Export failed with retryable status")}):r({code:Bl.FAILED,error:new Yoe("Export failed with unknown error")})},o=>r({code:Bl.FAILED,error:o})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Qtt(e,t){return new Ftt(e.transport,e.serializer,Vtt(),e.promiseHandler,t.timeout)}function Goe(e,t,r){return Qtt({transport:r,serializer:t,promiseHandler:Ntt(e)},{timeout:e.timeoutMillis})}function Joe(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function Koe(e){const t=new Uint8Array(e.length/2);let r=0;for(let n=0;n<e.length;n+=2){const o=Joe(e.charCodeAt(n)),i=Joe(e.charCodeAt(n+1));t[r++]=o<<4|i}return t}function eie(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function qtt(e){const t=Number(BigInt.asUintN(32,e)),r=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:r}}function Ztt(e){const t=eie(e);return qtt(t)}function Utt(e){return eie(e).toString()}const Htt=typeof BigInt<"u"?Utt:Met;function tie(e){return e}function Wtt(e){if(e!==void 0)return Koe(e)}const Xtt={encodeHrTime:Ztt,encodeSpanContext:Koe,encodeOptionalSpanContext:Wtt};function Ytt(e){return e===void 0?Xtt:{encodeHrTime:Htt,encodeSpanContext:tie,encodeOptionalSpanContext:tie}}function Gtt(e){return{attributes:p3(e.attributes),droppedAttributesCount:0}}function Jtt(e){return{name:e.name,version:e.version}}function p3(e){return Object.keys(e).map(t=>rie(t,e[t]))}function rie(e,t){return{key:e,value:nie(t)}}function nie(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(nie)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([r,n])=>rie(r,n))}}:{}}function Ktt(e,t){const r=e.spanContext(),n=e.status,o=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:o,traceState:r.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:p3(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>trt(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:n.code,message:n.message},links:e.links.map(i=>ert(i,t)),droppedLinksCount:e.droppedLinksCount}}function ert(e,t){return{attributes:e.attributes?p3(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function trt(e,t){return{attributes:e.attributes?p3(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function rrt(e,t){const r=Ytt(t);return{resourceSpans:ort(e,r)}}function nrt(e){const t=new Map;for(const r of e){let n=t.get(r.resource);n||(n=new Map,t.set(r.resource,n));const o=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let i=n.get(o);i||(i=[],n.set(o,i)),i.push(r)}return t}function ort(e,t){const r=nrt(e),n=[],o=r.entries();let i=o.next();for(;!i.done;){const[a,s]=i.value,l=[],c=s.values();let u=c.next();for(;!u.done;){const h=u.value;if(h.length>0){const g=h.map(v=>Ktt(v,t));l.push({scope:Jtt(h[0].instrumentationScope),spans:g,schemaUrl:h[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:Gtt(a),scopeSpans:l,schemaUrl:void 0};n.push(d),i=o.next()}return n}const irt={serializeRequest:e=>{const t=rrt(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))}},art=5,srt=1e3,lrt=5e3,crt=1.5,oie=.2;function urt(){return Math.random()*(2*oie)-oie}class drt{_transport;constructor(t){this._transport=t}retry(t,r,n){return new Promise((o,i)=>{setTimeout(()=>{this._transport.send(t,r).then(o,i)},n)})}async send(t,r){const n=Date.now()+r;let o=await this._transport.send(t,r),i=art,a=srt;for(;o.status==="retryable"&&i>0;){i--;const s=Math.max(Math.min(a,lrt)+urt(),0);a=a*crt;const l=o.retryInMillis??s,c=n-Date.now();if(l>c)return o;o=await this.retry(t,c,l)}return o}shutdown(){return this._transport.shutdown()}}function iie(e){return new drt(e.transport)}function prt(e){return[429,502,503,504].includes(e)}function hrt(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const r=new Date(e).getTime()-Date.now();return r>=0?r:0}class frt{_parameters;constructor(t){this._parameters=t}send(t,r){return new Promise(n=>{const o=new XMLHttpRequest;o.timeout=r,o.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([a,s])=>{o.setRequestHeader(a,s)}),o.ontimeout=a=>{n({status:"failure",error:new Error("XHR request timed out")})},o.onreadystatechange=()=>{o.status>=200&&o.status<=299?(Pr.debug("XHR success"),n({status:"success"})):o.status&&prt(o.status)?n({status:"retryable",retryInMillis:hrt(o.getResponseHeader("Retry-After"))}):o.status!==0&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},o.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},o.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},o.send(t)})}shutdown(){}}function grt(e){return new frt(e)}class mrt{_params;constructor(t){this._params=t}send(t){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(Pr.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function vrt(e){return new mrt(e)}function brt(e,t){return Goe(e,t,iie({transport:grt(e)}))}function yrt(e,t){return Goe(e,t,iie({transport:vrt({url:e.url,blobType:e.headers()["Content-Type"]})}))}function xrt(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([r,n])=>{typeof n<"u"?t[r]=String(n):Pr.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),t}}function Ort(e,t,r){const n={...r()},o={};return()=>(t!=null&&Object.assign(o,t()),e!=null&&Object.assign(o,e()),Object.assign(o,n))}function wrt(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function krt(e,t,r){return{...Ltt(e,t,r),headers:Ort(xrt(e.headers),t.headers,r.headers),url:wrt(e.url)??t.url??r.url,agentOptions:e.agentOptions??t.agentOptions??r.agentOptions}}function Crt(e,t){return{...Dtt(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function Srt(e,t,r){return krt({url:e.url,timeoutMillis:e.timeoutMillis,headers:Itt(e.headers),concurrencyLimit:e.concurrencyLimit},{},Crt(r,t))}function jrt(e,t,r,n){const o=!!e.headers||typeof navigator.sendBeacon!="function",i=Srt(e,r,n);return o?brt(i,t):yrt(i,t)}class Art extends Rtt{constructor(t={}){super(jrt(t,irt,"v1/traces",{"Content-Type":"application/json"}))}}class aie{emit(t){}}const _rt=new aie;class Ert{getLogger(t,r,n){return new aie}}const sie=new Ert;class Prt{constructor(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}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):_rt}}class lie{getLogger(t,r,n){var o;return(o=this.getDelegateLogger(t,r,n))!==null&&o!==void 0?o:new Prt(this,t,r,n)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:sie}setDelegate(t){this._delegate=t}getDelegateLogger(t,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(t,r,n)}}const Trt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},h3=Symbol.for("io.opentelemetry.js.api.logs"),k0=Trt;function $rt(e,t,r){return n=>n===e?t:r}const cie=1;class GE{constructor(){this._proxyLoggerProvider=new lie}static getInstance(){return this._instance||(this._instance=new GE),this._instance}setGlobalLoggerProvider(t){return k0[h3]?this.getLoggerProvider():(k0[h3]=$rt(cie,t,sie),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,r;return(r=(t=k0[h3])===null||t===void 0?void 0:t.call(k0,cie))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)}disable(){delete k0[h3],this._proxyLoggerProvider=new lie}}const Rrt=GE.getInstance();function Mrt(e,t,r,n){for(let o=0,i=e.length;o<i;o++){const a=e[o];t&&a.setTracerProvider(t),r&&a.setMeterProvider(r),n&&a.setLoggerProvider&&a.setLoggerProvider(n),a.getConfig().enabled||a.enable()}}function Irt(e){e.forEach(t=>t.disable())}function Lrt(e){const t=e.tracerProvider||gs.getTracerProvider(),r=e.meterProvider||KKe.getMeterProvider(),n=e.loggerProvider||Rrt.getLoggerProvider(),o=e.instrumentations?.flat()??[];return Mrt(o,t,r,n),()=>{Irt(o)}}class Drt{config=null;tracer=null;tracerProvider=null;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 r=t.time?new Date(t.time):new Date;this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,r),startTime:r}).end(r)}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}processAttributes(t,r){const n={"cloudevents.event_id":h0(),"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":r.toISOString(),"cloudevents.event_subject":t.subject||"","cloudevents.page.uri":location.href,"cloudevents.event_version":this.config?.version,"cloudevents.event_origin":"ui","cloudevents.event_source_details.id":t.sourceDetails?.id||h0()};return t.data&&typeof t.data=="object"&&Object.entries(t.data).forEach(([o,i])=>{const a=o.replace(/([A-Z])/g,"_$1").toLowerCase();i!==void 0&&(n[`cloudevents.event_data.${a}`]=i)}),Object.entries(t).forEach(([o,i])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails"].includes(o)||i!==void 0&&(n[`cloudevents.${o}`]=i)}),n}startSpan(t,r){try{if(!this.tracer)return;let n;const o=t.time?new Date(t.time):new Date,i=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,o),root:!r},r);return r||(n=gs.setSpan(Yu.active(),i)),{end:()=>i.end(),setAttribute:(a,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(a)}`,s)},setStatus:(a,s)=>i.setStatus({code:a,message:s}),parentCtx:n}}catch(n){this.config?.isProd||console.error("Event reporting failed:",n)}}forceFlush(){this.tracerProvider?.forceFlush()}getKeySnakeValue=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase()}class zrt extends Drt{tracerProvider=null;tracer=null;constructor(){super()}initTracer(t){const r=`ses_${h0()}`,n=Foe({[joe]:t.serviceName,[jet]:t.serviceVersion,session_id:r}),o=t.collectorTraceUrl||`${t.collectorUrl}/v1/traces`;this.tracerProvider=new $tt({resource:n,spanProcessors:[new wtt(new Art({url:o,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(t.tracerName),this.tracerProvider.register(),Lrt({instrumentations:t.instrumentations??[]})}}class Nrt{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 zrt}updateCloudEventData=t=>{this.useCloudEventData=t};init(t){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}))}send(t,r){try{const n=this.constructCloudEvent(t,r);this.sendToOtelService(n)}catch(n){this.config?.otel.isProd||console.error("Event reporting failed:",n)}}startSpan(t,r,n){const o=this.constructCloudEvent(t,r);return this.otelClient.startSpan(o,n)}constructCloudEvent(t,r){const n=this.useCloudEventData();return{id:`evt_${h0()}`,type:t,source:n.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:r,origin:"ui",sourceDetails:{id:n.sourceDetails.user||`usr_${h0()}`,object:n.sourceDetails.object||"user",uri:n.sourceDetails.uri||""},organization:n.organization,project:n.project,productType:n.productType}}sendToOtelService(t){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",t),this.otelClient.send(t)}forceFlush(){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)}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)}}function Brt(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const Vrt=Brt(),Frt=$.createContext(Vrt);function Qs(){const e=$.useContext(Frt);return mH(e)}function Qrt(e,t){const{apps:{apiId:r}}=Er(),{corsProxyUrl:n,disableCollectionsTab:o,mockServer:i,oAuth2RedirectURI:a,certificates:s,storageKey:l,isApiBased:c}=Qs();n.set(e?.corsProxyUrl??QIe),i.set(e?.mockServer),r.set(e?.apiId),a.set(e?.oAuth2RedirectURI),o.set(!!e?.disableCollectionsTab),l.set(e?.storageKey),c.set(!!t),$.useEffect(()=>{s.set(e?.certificates||[])},[e?.certificates])}const uie=$.createContext({});function ZA(){return $.useContext(uie)||{}}const qrt="0.15.0-next.10",Zrt={version:qrt};class Urt{client;_isInitialized=!1;constructor(){this.client=new Nrt}get isInitialized(){return this._isInitialized}init(t){if(this.isInitialized)return;const r={serviceName:"replay",serviceVersion:Zrt.version,version:"1.0.0",tracerName:t?.tracerName||"desktop",collectorUrl:t?.collectorUrl||"",isProd:!0};this.client.init({otel:{...r,...t}}),this._isInitialized=!0}sendEvent(t,r){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(t,r)}catch(n){console.error("Failed to send telemetry event:",n)}}}const UA=new Urt;function mr(){const{telemetry:e}=ZA();return UA.isInitialized||UA.init({tracerName:e?.tracerName,collectorUrl:e?.collectorUrl}),{sendEvent:(t,r)=>{UA.sendEvent(t,r)}}}const Ti=800;var Hrt=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Wrt(e){var t=e.defaultInputValue,r=t===void 0?"":t,n=e.defaultMenuIsOpen,o=n===void 0?!1:n,i=e.defaultValue,a=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,h=e.onMenuOpen,g=e.value,v=Vs(e,Hrt),b=$.useState(s!==void 0?s:r),y=Vt(b,2),x=y[0],w=y[1],k=$.useState(l!==void 0?l:o),j=Vt(k,2),C=j[0],A=j[1],_=$.useState(g!==void 0?g:a),E=Vt(_,2),P=E[0],M=E[1],D=$.useCallback(function(K,se){typeof c=="function"&&c(K,se),M(K)},[c]),I=$.useCallback(function(K,se){var U;typeof u=="function"&&(U=u(K,se)),w(U!==void 0?U:K)},[u]),N=$.useCallback(function(){typeof h=="function"&&h(),A(!0)},[h]),L=$.useCallback(function(){typeof d=="function"&&d(),A(!1)},[d]),H=s!==void 0?s:x,Y=l!==void 0?l:C,te=g!==void 0?g:P;return tt(tt({},v),{},{inputValue:H,menuIsOpen:Y,onChange:D,onInputChange:I,onMenuClose:L,onMenuOpen:N,value:te})}function Xrt(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 Yrt(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 Grt=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Yrt(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Xrt(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),si="-ms-",f3="-moz-",Tr="-webkit-",die="comm",HA="rule",WA="decl",Jrt="@import",pie="@keyframes",Krt=Math.abs,g3=String.fromCharCode,ent=Object.assign;function tnt(e,t){return Do(e,0)^45?(((t<<2^Do(e,0))<<2^Do(e,1))<<2^Do(e,2))<<2^Do(e,3):0}function hie(e){return e.trim()}function rnt(e,t){return(e=t.exec(e))?e[0]:e}function Dr(e,t,r){return e.replace(t,r)}function XA(e,t){return e.indexOf(t)}function Do(e,t){return e.charCodeAt(t)|0}function C0(e,t,r){return e.slice(t,r)}function Vl(e){return e.length}function YA(e){return e.length}function m3(e,t){return t.push(e),e}function nnt(e,t){return e.map(t).join("")}var v3=1,Mf=1,fie=0,oa=0,Jn=0,If="";function b3(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:v3,column:Mf,length:a,return:""}}function S0(e,t){return ent(b3("",null,null,"",null,null,0),e,{length:-e.length},t)}function ont(){return Jn}function int(){return Jn=oa>0?Do(If,--oa):0,Mf--,Jn===10&&(Mf=1,v3--),Jn}function La(){return Jn=oa<fie?Do(If,oa++):0,Mf++,Jn===10&&(Mf=1,v3++),Jn}function Fl(){return Do(If,oa)}function y3(){return oa}function j0(e,t){return C0(If,e,t)}function A0(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 gie(e){return v3=Mf=1,fie=Vl(If=e),oa=0,[]}function mie(e){return If="",e}function x3(e){return hie(j0(oa-1,GA(e===91?e+2:e===40?e+1:e)))}function ant(e){for(;(Jn=Fl())&&Jn<33;)La();return A0(e)>2||A0(Jn)>3?"":" "}function snt(e,t){for(;--t&&La()&&!(Jn<48||Jn>102||Jn>57&&Jn<65||Jn>70&&Jn<97););return j0(e,y3()+(t<6&&Fl()==32&&La()==32))}function GA(e){for(;La();)switch(Jn){case e:return oa;case 34:case 39:e!==34&&e!==39&&GA(Jn);break;case 40:e===41&&GA(e);break;case 92:La();break}return oa}function lnt(e,t){for(;La()&&e+Jn!==57&&!(e+Jn===84&&Fl()===47););return"/*"+j0(t,oa-1)+"*"+g3(e===47?e:La())}function cnt(e){for(;!A0(Fl());)La();return j0(e,oa)}function unt(e){return mie(O3("",null,null,null,[""],e=gie(e),0,[0],e))}function O3(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,h=0,g=0,v=0,b=1,y=1,x=1,w=0,k="",j=o,C=i,A=n,_=k;y;)switch(v=w,w=La()){case 40:if(v!=108&&Do(_,d-1)==58){XA(_+=Dr(x3(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:_+=x3(w);break;case 9:case 10:case 13:case 32:_+=ant(v);break;case 92:_+=snt(y3()-1,7);continue;case 47:switch(Fl()){case 42:case 47:m3(dnt(lnt(La(),y3()),t,r),l);break;default:_+="/"}break;case 123*b:s[c++]=Vl(_)*x;case 125*b:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+u:g>0&&Vl(_)-d&&m3(g>32?bie(_+";",n,r,d-1):bie(Dr(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(m3(A=vie(_,t,r,c,u,o,s,k,j=[],C=[],d),i),w===123)if(u===0)O3(_,t,A,A,j,i,d,s,C);else switch(h===99&&Do(_,3)===110?100:h){case 100:case 109:case 115:O3(e,A,A,n&&m3(vie(e,A,A,0,0,o,s,k,o,j=[],d),C),o,C,d,s,n?j:C);break;default:O3(_,A,A,A,[""],C,0,s,C)}}c=u=g=0,b=x=1,k=_="",d=a;break;case 58:d=1+Vl(_),g=v;default:if(b<1){if(w==123)--b;else if(w==125&&b++==0&&int()==125)continue}switch(_+=g3(w),w*b){case 38:x=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Vl(_)-1)*x,x=1;break;case 64:Fl()===45&&(_+=x3(La())),h=Fl(),u=d=Vl(k=_+=cnt(y3())),w++;break;case 45:v===45&&Vl(_)==2&&(b=0)}}return i}function vie(e,t,r,n,o,i,a,s,l,c,u){for(var d=o-1,h=o===0?i:[""],g=YA(h),v=0,b=0,y=0;v<n;++v)for(var x=0,w=C0(e,d+1,d=Krt(b=a[v])),k=e;x<g;++x)(k=hie(b>0?h[x]+" "+w:Dr(w,/&\f/g,h[x])))&&(l[y++]=k);return b3(e,t,r,o===0?HA:s,l,c,u)}function dnt(e,t,r){return b3(e,t,r,die,g3(ont()),C0(e,2,-2),0)}function bie(e,t,r,n){return b3(e,t,r,WA,C0(e,0,n),C0(e,n+1,-1),n)}function Lf(e,t){for(var r="",n=YA(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function pnt(e,t,r,n){switch(e.type){case Jrt:case WA:return e.return=e.return||e.value;case die:return"";case pie:return e.return=e.value+"{"+Lf(e.children,n)+"}";case HA:e.value=e.props.join(",")}return Vl(r=Lf(e.children,n))?e.return=e.value+"{"+r+"}":""}function hnt(e){var t=YA(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function fnt(e){return function(t){t.root||(t=t.return)&&e(t)}}function gnt(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var mnt=function(e,t,r){for(var n=0,o=0;n=o,o=Fl(),n===38&&o===12&&(t[r]=1),!A0(o);)La();return j0(e,oa)},vnt=function(e,t){var r=-1,n=44;do switch(A0(n)){case 0:n===38&&Fl()===12&&(t[r]=1),e[r]+=mnt(oa-1,t,r);break;case 2:e[r]+=x3(n);break;case 4:if(n===44){e[++r]=Fl()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=g3(n)}while(n=La());return e},bnt=function(e,t){return mie(vnt(gie(e),t))},yie=new WeakMap,ynt=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!yie.get(r))&&!n){yie.set(e,!0);for(var o=[],i=bnt(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},xnt=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function xie(e,t){switch(tnt(e,t)){case 5103:return Tr+"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 Tr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tr+e+f3+e+si+e+e;case 6828:case 4268:return Tr+e+si+e+e;case 6165:return Tr+e+si+"flex-"+e+e;case 5187:return Tr+e+Dr(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+si+"flex-$1$2")+e;case 5443:return Tr+e+si+"flex-item-"+Dr(e,/flex-|-self/,"")+e;case 4675:return Tr+e+si+"flex-line-pack"+Dr(e,/align-content|flex-|-self/,"")+e;case 5548:return Tr+e+si+Dr(e,"shrink","negative")+e;case 5292:return Tr+e+si+Dr(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Dr(e,"-grow","")+Tr+e+si+Dr(e,"grow","positive")+e;case 4554:return Tr+Dr(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Dr(Dr(Dr(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Dr(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Dr(Dr(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+si+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4095:case 3583:case 4068:case 2532:return Dr(e,/(.+)-inline(.+)/,Tr+"$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(Vl(e)-1-t>6)switch(Do(e,t+1)){case 109:if(Do(e,t+4)!==45)break;case 102:return Dr(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+f3+(Do(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~XA(e,"stretch")?xie(Dr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Do(e,t+1)!==115)break;case 6444:switch(Do(e,Vl(e)-3-(~XA(e,"!important")&&10))){case 107:return Dr(e,":",":"+Tr)+e;case 101:return Dr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tr+(Do(e,14)===45?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+si+"$2box$3")+e}break;case 5936:switch(Do(e,t+11)){case 114:return Tr+e+si+Dr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+si+Dr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+si+Dr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tr+e+si+e+e}return e}var Ont=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case WA:e.return=xie(e.value,e.length);break;case pie:return Lf([S0(e,{value:Dr(e.value,"@","@"+Tr)})],n);case HA:if(e.length)return nnt(e.props,function(o){switch(rnt(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Lf([S0(e,{props:[Dr(o,/:(read-\w+)/,":"+f3+"$1")]})],n);case"::placeholder":return Lf([S0(e,{props:[Dr(o,/:(plac\w+)/,":"+Tr+"input-$1")]}),S0(e,{props:[Dr(o,/:(plac\w+)/,":"+f3+"$1")]}),S0(e,{props:[Dr(o,/:(plac\w+)/,si+"input-$1")]})],n)}return""})}},wnt=[Ont],knt=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var b=v.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=e.stylisPlugins||wnt,o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var b=v.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)o[b[y]]=!0;a.push(v)});var s,l=[ynt,xnt];{var c,u=[pnt,fnt(function(v){c.insert(v)})],d=hnt(l.concat(n,u)),h=function(v){return Lf(unt(v),d)};s=function(v,b,y,x){c=y,h(v?v+"{"+b.styles+"}":b.styles),x&&(g.inserted[b.name]=!0)}}var g={key:t,sheet:new Grt({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return g.sheet.hydrate(a),g},Cnt=!0;function Snt(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var Oie=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||Cnt===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},jnt=function(e,t,r){Oie(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Ant(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 _nt={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},Ent=/[A-Z]|^ms/g,Pnt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wie=function(e){return e.charCodeAt(1)===45},kie=function(e){return e!=null&&typeof e!="boolean"},JA=gnt(function(e){return wie(e)?e:e.replace(Ent,"-$&").toLowerCase()}),Cie=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Pnt,function(r,n,o){return Ql={name:n,styles:o,next:Ql},n})}return _nt[e]!==1&&!wie(e)&&typeof t=="number"&&t!==0?t+"px":t};function _0(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Ql={name:r.name,styles:r.styles,next:Ql},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Ql={name:n.name,styles:n.styles,next:Ql},n=n.next;var o=r.styles+";";return o}return Tnt(e,t,r)}case"function":{if(e!==void 0){var i=Ql,a=r(e);return Ql=i,_0(e,t,a)}break}}return r}function Tnt(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=_0(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object")kie(a)&&(n+=JA(i)+":"+Cie(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var s=0;s<a.length;s++)kie(a[s])&&(n+=JA(i)+":"+Cie(i,a[s])+";");else{var l=_0(e,t,a);switch(i){case"animation":case"animationName":{n+=JA(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var Sie=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ql,jie=function(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Ql=void 0;var i=e[0];i==null||i.raw===void 0?(n=!1,o+=_0(r,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=_0(r,t,e[a]),n&&(o+=i[a]);Sie.lastIndex=0;for(var s="",l;(l=Sie.exec(o))!==null;)s+="-"+l[1];var c=Ant(o)+s;return{name:c,styles:o,next:Ql}},$nt=function(e){return e()},Rnt=Ad.useInsertionEffect?Ad.useInsertionEffect:!1,Mnt=Rnt||$nt,KA={}.hasOwnProperty,Int=$.createContext(typeof HTMLElement<"u"?knt({key:"css"}):null),Lnt=function(e){return $.forwardRef(function(t,r){var n=$.useContext(Int);return e(t,n,r)})},Dnt=$.createContext({}),e_="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",znt=function(e,t){var r={};for(var n in t)KA.call(t,n)&&(r[n]=t[n]);return r[e_]=e,r},Nnt=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Oie(t,r,n),Mnt(function(){return jnt(t,r,n)}),null},Bnt=Lnt(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[e_],i=[n],a="";typeof e.className=="string"?a=Snt(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=jie(i,void 0,$.useContext(Dnt));a+=t.key+"-"+s.name;var l={};for(var c in e)KA.call(e,c)&&c!=="css"&&c!==e_&&(l[c]=e[c]);return l.ref=r,l.className=a,$.createElement($.Fragment,null,$.createElement(Nnt,{cache:t,serialized:s,isStringTag:typeof o=="string"}),$.createElement(o,l))}),Ct=function(e,t){var r=arguments;if(t==null||!KA.call(t,"css"))return $.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=Bnt,o[1]=znt(e,t);for(var i=2;i<n;i++)o[i]=r[i];return $.createElement.apply(null,o)};function t_(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return jie(t)}var Vnt=function(){var e=t_.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 Fnt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Qnt=Math.min,qnt=Math.max,w3=Math.round,k3=Math.floor,C3=e=>({x:e,y:e});function Znt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Aie(e){return Eie(e)?(e.nodeName||"").toLowerCase():"#document"}function $c(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _ie(e){var t;return(t=(Eie(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Eie(e){return e instanceof Node||e instanceof $c(e).Node}function Unt(e){return e instanceof Element||e instanceof $c(e).Element}function r_(e){return e instanceof HTMLElement||e instanceof $c(e).HTMLElement}function Pie(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $c(e).ShadowRoot}function Tie(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=n_(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Hnt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wnt(e){return["html","body","#document"].includes(Aie(e))}function n_(e){return $c(e).getComputedStyle(e)}function Xnt(e){if(Aie(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pie(e)&&e.host||_ie(e);return Pie(t)?t.host:t}function $ie(e){const t=Xnt(e);return Wnt(t)?e.ownerDocument?e.ownerDocument.body:e.body:r_(t)&&Tie(t)?t:$ie(t)}function S3(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=$ie(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=$c(o);return i?t.concat(a,a.visualViewport||[],Tie(o)?o:[],a.frameElement&&r?S3(a.frameElement):[]):t.concat(o,S3(o,[],r))}function Ynt(e){const t=n_(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=r_(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=w3(r)!==i||w3(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function o_(e){return Unt(e)?e:e.contextElement}function Rie(e){const t=o_(e);if(!r_(t))return C3(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Ynt(t);let a=(i?w3(r.width):r.width)/n,s=(i?w3(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Gnt=C3(0);function Jnt(e){const t=$c(e);return!Hnt()||!t.visualViewport?Gnt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Knt(e,t,r){return!1}function Mie(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=o_(e);let a=C3(1);t&&(a=Rie(e));const s=Knt()?Jnt(i):C3(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const h=$c(i),g=n;let v=h.frameElement;for(;v&&n&&g!==h;){const b=Rie(v),y=v.getBoundingClientRect(),x=n_(v),w=y.left+(v.clientLeft+parseFloat(x.paddingLeft))*b.x,k=y.top+(v.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=w,c+=k,v=$c(v).frameElement}}return Znt({width:u,height:d,x:l,y:c})}function eot(e,t){let r=null,n;const o=_ie(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const g=k3(u),v=k3(o.clientWidth-(c+d)),b=k3(o.clientHeight-(u+h)),y=k3(c),x={rootMargin:-g+"px "+-v+"px "+-b+"px "+-y+"px",threshold:qnt(0,Qnt(1,l))||1};let w=!0;function k(j){const C=j[0].intersectionRatio;if(C!==l){if(!w)return a();C?a(!1,C):n=setTimeout(()=>{a(!1,1e-7)},100)}w=!1}try{r=new IntersectionObserver(k,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(k,x)}r.observe(e)}return a(!0),i}function tot(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=o_(e),u=o||i?[...c?S3(c):[],...S3(t)]:[];u.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),i&&x.addEventListener("resize",r)});const d=c&&s?eot(c,r):null;let h=-1,g=null;a&&(g=new ResizeObserver(x=>{let[w]=x;w&&w.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{g&&g.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let v,b=l?Mie(e):null;l&&y();function y(){const x=Mie(e);b&&(x.x!==b.x||x.y!==b.y||x.width!==b.width||x.height!==b.height)&&r(),b=x,v=requestAnimationFrame(y)}return r(),()=>{u.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),d&&d(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(v)}}var i_=$.useLayoutEffect,rot=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],j3=function(){};function not(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function oot(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i=[].concat(n);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(not(e,a)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Iie=function(e){return hot(e)?e.filter(Boolean):Ra(e)==="object"&&e!==null?[e]:[]},Lie=function(e){var t=Vs(e,rot);return tt({},t)},Pn=function(e,t,r){var n=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:n(r??{},i(t,e),a)}};function A3(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function iot(e){return A3(e)?window.innerHeight:e.clientHeight}function Die(e){return A3(e)?window.pageYOffset:e.scrollTop}function _3(e,t){if(A3(e)){window.scrollTo(0,t);return}e.scrollTop=t}function aot(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function sot(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function E3(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:j3,o=Die(e),i=t-o,a=10,s=0;function l(){s+=a;var c=sot(s,o,i,r);_3(e,c),s<r?window.requestAnimationFrame(l):n(e)}l()}function zie(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),o=t.offsetHeight/3;n.bottom+o>r.bottom?_3(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o<r.top&&_3(e,Math.max(t.offsetTop-o,0))}function lot(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 Nie(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function cot(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Bie=!1,uot={get passive(){return Bie=!0}},P3=typeof window<"u"?window:{};P3.addEventListener&&P3.removeEventListener&&(P3.addEventListener("p",j3,uot),P3.removeEventListener("p",j3,!1));var dot=Bie;function pot(e){return e!=null}function hot(e){return Array.isArray(e)}function T3(e,t,r){return e?t:r}var fot=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Object.entries(e).filter(function(i){var a=Vt(i,1),s=a[0];return!r.includes(s)});return o.reduce(function(i,a){var s=Vt(a,2),l=s[0],c=s[1];return i[l]=c,i},{})},got=["children","innerProps"],mot=["children","innerProps"];function vot(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=aot(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,h=r.getBoundingClientRect(),g=h.bottom,v=h.height,b=h.top,y=r.offsetParent.getBoundingClientRect(),x=y.top,w=a?window.innerHeight:iot(l),k=Die(l),j=parseInt(getComputedStyle(r).marginBottom,10),C=parseInt(getComputedStyle(r).marginTop,10),A=x-C,_=w-b,E=A+k,P=d-k-b,M=g-w+k+j,D=k+b-C,I=160;switch(o){case"auto":case"bottom":if(_>=v)return{placement:"bottom",maxHeight:t};if(P>=v&&!a)return i&&E3(l,M,I),{placement:"bottom",maxHeight:t};if(!a&&P>=n||a&&_>=n){i&&E3(l,M,I);var N=a?_-j:P-j;return{placement:"bottom",maxHeight:N}}if(o==="auto"||a){var L=t,H=a?A:E;return H>=n&&(L=Math.min(H-j-s,t)),{placement:"top",maxHeight:L}}if(o==="bottom")return i&&_3(l,M),{placement:"bottom",maxHeight:t};break;case"top":if(A>=v)return{placement:"top",maxHeight:t};if(E>=v&&!a)return i&&E3(l,D,I),{placement:"top",maxHeight:t};if(!a&&E>=n||a&&A>=n){var Y=t;return(!a&&E>=n||a&&A>=n)&&(Y=a?A-C:E-C),i&&E3(l,D,I),{placement:"top",maxHeight:Y}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}function bot(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Vie=function(e){return e==="auto"?"bottom":e},yot=function(e,t){var r,n=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return tt((r={label:"menu"},ai(r,bot(n),"100%"),ai(r,"position","absolute"),ai(r,"width","100%"),ai(r,"zIndex",1),r),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:a.menuGutter,marginTop:a.menuGutter})},Fie=$.createContext(null),xot=function(e){var t=e.children,r=e.minMenuHeight,n=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,l=$.useContext(Fie)||{},c=l.setPortalPlacement,u=$.useRef(null),d=$.useState(n),h=Vt(d,2),g=h[0],v=h[1],b=$.useState(null),y=Vt(b,2),x=y[0],w=y[1],k=s.spacing.controlHeight;return i_(function(){var j=u.current;if(j){var C=i==="fixed",A=a&&!C,_=vot({maxHeight:n,menuEl:j,minHeight:r,placement:o,shouldScroll:A,isFixedPosition:C,controlHeight:k});v(_.maxHeight),w(_.placement),c?.(_.placement)}},[n,o,i,a,r,c,k]),t({ref:u,placerProps:tt(tt({},e),{},{placement:x||Vie(o),maxHeight:g})})},Oot=function(e){var t=e.children,r=e.innerRef,n=e.innerProps;return Ct("div",gt({},Pn(e,"menu",{menu:!0}),{ref:r},n),t)},wot=Oot,kot=function(e,t){var r=e.maxHeight,n=e.theme.spacing.baseUnit;return tt({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:n,paddingTop:n})},Cot=function(e){var t=e.children,r=e.innerProps,n=e.innerRef,o=e.isMulti;return Ct("div",gt({},Pn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:n},r),t)},Qie=function(e,t){var r=e.theme,n=r.spacing.baseUnit,o=r.colors;return tt({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},Sot=Qie,jot=Qie,Aot=function(e){var t=e.children,r=t===void 0?"No options":t,n=e.innerProps,o=Vs(e,got);return Ct("div",gt({},Pn(tt(tt({},o),{},{children:r,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),r)},_ot=function(e){var t=e.children,r=t===void 0?"Loading...":t,n=e.innerProps,o=Vs(e,mot);return Ct("div",gt({},Pn(tt(tt({},o),{},{children:r,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),r)},Eot=function(e){var t=e.rect,r=e.offset,n=e.position;return{left:t.left,position:n,top:r,width:t.width,zIndex:1}},Pot=function(e){var t=e.appendTo,r=e.children,n=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=$.useRef(null),l=$.useRef(null),c=$.useState(Vie(i)),u=Vt(c,2),d=u[0],h=u[1],g=$.useMemo(function(){return{setPortalPlacement:h}},[]),v=$.useState(null),b=Vt(v,2),y=b[0],x=b[1],w=$.useCallback(function(){if(n){var A=lot(n),_=a==="fixed"?0:window.pageYOffset,E=A[d]+_;(E!==y?.offset||A.left!==y?.rect.left||A.width!==y?.rect.width)&&x({offset:E,rect:A})}},[n,a,d,y?.offset,y?.rect.left,y?.rect.width]);i_(function(){w()},[w]);var k=$.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),n&&s.current&&(l.current=tot(n,s.current,w,{elementResize:"ResizeObserver"in window}))},[n,w]);i_(function(){k()},[k]);var j=$.useCallback(function(A){s.current=A,k()},[k]);if(!t&&a!=="fixed"||!y)return null;var C=Ct("div",gt({ref:j},Pn(tt(tt({},e),{},{offset:y.offset,position:a,rect:y.rect}),"menuPortal",{"menu-portal":!0}),o),r);return Ct(Fie.Provider,{value:g},t?ny.createPortal(C,t):C)},Tot=function(e){var t=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},$ot=function(e){var t=e.children,r=e.innerProps,n=e.isDisabled,o=e.isRtl;return Ct("div",gt({},Pn(e,"container",{"--is-disabled":n,"--is-rtl":o}),r),t)},Rot=function(e,t){var r=e.theme.spacing,n=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return tt({alignItems:"center",display:n&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Mot=function(e){var t=e.children,r=e.innerProps,n=e.isMulti,o=e.hasValue;return Ct("div",gt({},Pn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":o}),r),t)},Iot=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Lot=function(e){var t=e.children,r=e.innerProps;return Ct("div",gt({},Pn(e,"indicatorsContainer",{indicators:!0}),r),t)},qie,Dot=["size"],zot=["innerProps","isRtl","size"],Not={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Zie=function(e){var t=e.size,r=Vs(e,Dot);return Ct("svg",gt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Not},r))},a_=function(e){return Ct(Zie,gt({size:20},e),Ct("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"}))},Uie=function(e){return Ct(Zie,gt({size:20},e),Ct("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"}))},Hie=function(e,t){var r=e.isFocused,n=e.theme,o=n.spacing.baseUnit,i=n.colors;return tt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:r?i.neutral60:i.neutral20,padding:o*2,":hover":{color:r?i.neutral80:i.neutral40}})},Bot=Hie,Vot=function(e){var t=e.children,r=e.innerProps;return Ct("div",gt({},Pn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),t||Ct(Uie,null))},Fot=Hie,Qot=function(e){var t=e.children,r=e.innerProps;return Ct("div",gt({},Pn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),t||Ct(a_,null))},qot=function(e,t){var r=e.isDisabled,n=e.theme,o=n.spacing.baseUnit,i=n.colors;return tt({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:r?i.neutral10:i.neutral20,marginBottom:o*2,marginTop:o*2})},Zot=function(e){var t=e.innerProps;return Ct("span",gt({},t,Pn(e,"indicatorSeparator",{"indicator-separator":!0})))},Uot=Vnt(qie||(qie=Fnt([`
|
|
10688
|
+
`;function d0({input:e,onSave:t,onCancel:r,...n}){const[o,i]=$.useState(!!e.isSecret),a=({name:s,value:l})=>{t({...e,name:s,value:l,isSecret:o})};return f.jsx(poe,{variable:e,onSave:a,onCancel:r,...n,children:f.jsx(mA,{children:f.jsx(IJe,{value:o,onChange:s=>i(s),title:"Make it secret"})})})}function e3(e){var t=new Error(e);return t.source="ulid",t}var vA="0123456789ABCDEFGHJKMNPQRSTVWXYZ",p0=vA.length,hoe=Math.pow(2,48)-1,FJe=10,QJe=16;function qJe(e){var t=Math.floor(e()*p0);return t===p0&&(t=p0-1),vA.charAt(t)}function ZJe(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>hoe)throw e3("cannot encode time greater than "+hoe);if(e<0)throw e3("time must be positive");if(Number.isInteger(e)===!1)throw e3("time must be an integer");for(var r=void 0,n="";t>0;t--)r=e%p0,n=vA.charAt(r)+n,e=(e-r)/p0;return n}function UJe(e,t){for(var r="";e>0;e--)r=qJe(t)+r;return r}function HJe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var r=t&&(t.crypto||t.msCrypto);if(r)return function(){var o=new Uint8Array(1);return r.getRandomValues(o),o[0]/255};try{var n=require("crypto");return function(){return n.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 e3("secure crypto unusable, insecure Math.random not allowed")}function WJe(e){return e||(e=HJe()),function(t){return isNaN(t)&&(t=Date.now()),ZJe(t,FJe)+UJe(QJe,e)}}var h0=WJe(),XJe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},sp="1.9.0",foe=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function YJe(e){var t=new Set([e]),r=new Set,n=e.match(foe);if(!n)return function(){return!1};var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(s){return s===e};function i(s){return r.add(s),!1}function a(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(r.has(s))return!1;var l=s.match(foe);if(!l)return i(s);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||o.major!==c.major?i(s):o.major===0?o.minor===c.minor&&o.patch<=c.patch?a(s):i(s):o.minor<=c.minor?a(s):i(s)}}var GJe=YJe(sp),JJe=sp.split(".")[0],f0=Symbol.for("opentelemetry.js.api."+JJe),g0=XJe;function m0(e,t,r,n){var o;n===void 0&&(n=!1);var i=g0[f0]=(o=g0[f0])!==null&&o!==void 0?o:{version:sp};if(!n&&i[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(a.stack||a.message),!1}if(i.version!==sp){var a=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+sp);return r.error(a.stack||a.message),!1}return i[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+sp+"."),!0}function lp(e){var t,r,n=(t=g0[f0])===null||t===void 0?void 0:t.version;if(!(!n||!GJe(n)))return(r=g0[f0])===null||r===void 0?void 0:r[e]}function v0(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+sp+".");var r=g0[f0];r&&delete r[e]}var KJe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i},eKe=function(e,t,r){if(arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},tKe=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return b0("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return b0("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return b0("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return b0("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return b0("verbose",this._namespace,t)},e}();function b0(e,t,r){var n=lp("diag");if(n)return r.unshift(t),n[e].apply(n,eKe([],KJe(r),!1))}var Ia;(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"})(Ia||(Ia={}));function rKe(e,t){e<Ia.NONE?e=Ia.NONE:e>Ia.ALL&&(e=Ia.ALL),t=t||{};function r(n,o){var i=t[n];return typeof i=="function"&&e>=o?i.bind(t):function(){}}return{error:r("error",Ia.ERROR),warn:r("warn",Ia.WARN),info:r("info",Ia.INFO),debug:r("debug",Ia.DEBUG),verbose:r("verbose",Ia.VERBOSE)}}var nKe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i},oKe=function(e,t,r){if(arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},iKe="diag",Nl=function(){function e(){function t(o){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=lp("diag");if(s)return s[o].apply(s,oKe([],nKe(i),!1))}}var r=this,n=function(o,i){var a,s,l;if(i===void 0&&(i={logLevel:Ia.INFO}),o===r){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((a=c.stack)!==null&&a!==void 0?a:c.message),!1}typeof i=="number"&&(i={logLevel:i});var u=lp("diag"),d=rKe((s=i.logLevel)!==null&&s!==void 0?s:Ia.INFO,o);if(u&&!i.suppressOverrideMessage){var h=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+h),d.warn("Current logger will overwrite one already registered from "+h)}return m0("diag",d,r,!0)};r.setLogger=n,r.disable=function(){v0(iKe,r)},r.createComponentLogger=function(o){return new tKe(o)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),aKe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i},sKe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},lKe=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var r=this._entries.get(t);if(r)return Object.assign({},r)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var r=aKe(t,2),n=r[0],o=r[1];return[n,o]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=new e(this._entries);try{for(var a=sKe(n),s=a.next();!s.done;s=a.next()){var l=s.value;i._entries.delete(l)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e}(),cKe=Symbol("BaggageEntryMetadata"),uKe=Nl.instance();function dKe(e){return e===void 0&&(e={}),new lKe(new Map(Object.entries(e)))}function pKe(e){return typeof e!="string"&&(uKe.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:cKe,toString:function(){return e}}}function bA(e){return Symbol.for(e)}var hKe=function(){function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,o){var i=new e(r._currentContext);return i._currentContext.set(n,o),i},r.deleteValue=function(n){var o=new e(r._currentContext);return o._currentContext.delete(n),o}}return e}(),_f=new hKe,cp=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),fKe=function(){function e(){}return e.prototype.createGauge=function(t,r){return CKe},e.prototype.createHistogram=function(t,r){return SKe},e.prototype.createCounter=function(t,r){return kKe},e.prototype.createUpDownCounter=function(t,r){return jKe},e.prototype.createObservableGauge=function(t,r){return _Ke},e.prototype.createObservableCounter=function(t,r){return AKe},e.prototype.createObservableUpDownCounter=function(t,r){return EKe},e.prototype.addBatchObservableCallback=function(t,r){},e.prototype.removeBatchObservableCallback=function(t){},e}(),t3=function(){function e(){}return e}(),gKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(t3),mKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(t3),vKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(t3),bKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(t3),yA=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),yKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(yA),xKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(yA),OKe=function(e){cp(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(yA),wKe=new fKe,kKe=new gKe,CKe=new vKe,SKe=new bKe,jKe=new mKe,AKe=new yKe,_Ke=new xKe,EKe=new OKe,PKe={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},TKe={set:function(e,t,r){e!=null&&(e[t]=r)}},$Ke=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i},RKe=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},MKe=function(){function e(){}return e.prototype.active=function(){return _f},e.prototype.with=function(t,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return r.call.apply(r,RKe([n],$Ke(o),!1))},e.prototype.bind=function(t,r){return r},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),IKe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i},LKe=function(e,t,r){if(arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},xA="context",DKe=new MKe,r3=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return m0(xA,t,Nl.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,r,n){for(var o,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return(o=this._getContextManager()).with.apply(o,LKe([t,r,n],IKe(i),!1))},e.prototype.bind=function(t,r){return this._getContextManager().bind(t,r)},e.prototype._getContextManager=function(){return lp(xA)||DKe},e.prototype.disable=function(){this._getContextManager().disable(),v0(xA,Nl.instance())},e}(),Tc;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Tc||(Tc={}));var goe="0000000000000000",moe="00000000000000000000000000000000",voe={traceId:moe,spanId:goe,traceFlags:Tc.NONE},y0=function(){function e(t){t===void 0&&(t=voe),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,r){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,r){},e}(),OA=bA("OpenTelemetry Context Key SPAN");function wA(e){return e.getValue(OA)||void 0}function zKe(){return wA(r3.getInstance().active())}function kA(e,t){return e.setValue(OA,t)}function NKe(e){return e.deleteValue(OA)}function BKe(e,t){return kA(e,new y0(t))}function boe(e){var t;return(t=wA(e))===null||t===void 0?void 0:t.spanContext()}var VKe=/^([0-9a-f]{32})$/i,FKe=/^[0-9a-f]{16}$/i;function yoe(e){return VKe.test(e)&&e!==moe}function QKe(e){return FKe.test(e)&&e!==goe}function n3(e){return yoe(e.traceId)&&QKe(e.spanId)}function qKe(e){return new y0(e)}var CA=r3.getInstance(),xoe=function(){function e(){}return e.prototype.startSpan=function(t,r,n){n===void 0&&(n=CA.active());var o=!!r?.root;if(o)return new y0;var i=n&&boe(n);return ZKe(i)&&n3(i)?new y0(i):new y0},e.prototype.startActiveSpan=function(t,r,n,o){var i,a,s;if(!(arguments.length<2)){arguments.length===2?s=r:arguments.length===3?(i=r,s=n):(i=r,a=n,s=o);var l=a??CA.active(),c=this.startSpan(t,i,l),u=kA(l,c);return CA.with(u,s,void 0,c)}},e}();function ZKe(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var UKe=new xoe,HKe=function(){function e(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}return e.prototype.startSpan=function(t,r,n){return this._getTracer().startSpan(t,r,n)},e.prototype.startActiveSpan=function(t,r,n,o){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):UKe},e}(),WKe=function(){function e(){}return e.prototype.getTracer=function(t,r,n){return new xoe},e}(),XKe=new WKe,Ooe=function(){function e(){}return e.prototype.getTracer=function(t,r,n){var o;return(o=this.getDelegateTracer(t,r,n))!==null&&o!==void 0?o:new HKe(this,t,r,n)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:XKe},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(t,r,n)},e}(),o3;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(o3||(o3={}));var SA;(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"})(SA||(SA={}));var jA;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(jA||(jA={}));var Yu=r3.getInstance(),Pr=Nl.instance(),YKe=function(){function e(){}return e.prototype.getMeter=function(t,r,n){return wKe},e}(),GKe=new YKe,AA="metrics",JKe=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return m0(AA,t,Nl.instance())},e.prototype.getMeterProvider=function(){return lp(AA)||GKe},e.prototype.getMeter=function(t,r,n){return this.getMeterProvider().getMeter(t,r,n)},e.prototype.disable=function(){v0(AA,Nl.instance())},e}(),KKe=JKe.getInstance(),eet=function(){function e(){}return e.prototype.inject=function(t,r){},e.prototype.extract=function(t,r){return t},e.prototype.fields=function(){return[]},e}(),_A=bA("OpenTelemetry Baggage Key");function woe(e){return e.getValue(_A)||void 0}function tet(){return woe(r3.getInstance().active())}function ret(e,t){return e.setValue(_A,t)}function net(e){return e.deleteValue(_A)}var EA="propagation",oet=new eet,iet=function(){function e(){this.createBaggage=dKe,this.getBaggage=woe,this.getActiveBaggage=tet,this.setBaggage=ret,this.deleteBaggage=net}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return m0(EA,t,Nl.instance())},e.prototype.inject=function(t,r,n){return n===void 0&&(n=TKe),this._getGlobalPropagator().inject(t,r,n)},e.prototype.extract=function(t,r,n){return n===void 0&&(n=PKe),this._getGlobalPropagator().extract(t,r,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){v0(EA,Nl.instance())},e.prototype._getGlobalPropagator=function(){return lp(EA)||oet},e}(),x0=iet.getInstance(),PA="trace",aet=function(){function e(){this._proxyTracerProvider=new Ooe,this.wrapSpanContext=qKe,this.isSpanContextValid=n3,this.deleteSpan=NKe,this.getSpan=wA,this.getActiveSpan=zKe,this.getSpanContext=boe,this.setSpan=kA,this.setSpanContext=BKe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var r=m0(PA,this._proxyTracerProvider,Nl.instance());return r&&this._proxyTracerProvider.setDelegate(t),r},e.prototype.getTracerProvider=function(){return lp(PA)||this._proxyTracerProvider},e.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},e.prototype.disable=function(){v0(PA,Nl.instance()),this._proxyTracerProvider=new Ooe},e}(),gs=aet.getInstance();const koe=bA("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function set(e){return e.setValue(koe,!0)}function TA(e){return e.getValue(koe)===!0}const cet="=",$A=";",RA=",",MA="baggage",uet=180,det=4096,pet=8192;function het(e){return e.reduce((t,r)=>{const n=`${t}${t!==""?RA:""}${r}`;return n.length>pet?t:n},"")}function fet(e){return e.getAllEntries().map(([t,r])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=$A+r.metadata.toString()),n})}function get(e){const t=e.split($A);if(t.length<=0)return;const r=t.shift();if(!r)return;const n=r.indexOf(cet);if(n<=0)return;const o=decodeURIComponent(r.substring(0,n).trim()),i=decodeURIComponent(r.substring(n+1).trim());let a;return t.length>0&&(a=pKe(t.join($A))),{key:o,value:i,metadata:a}}class met{inject(t,r,n){const o=x0.getBaggage(t);if(!o||TA(t))return;const i=fet(o).filter(s=>s.length<=det).slice(0,uet),a=het(i);a.length>0&&n.set(r,MA,a)}extract(t,r,n){const o=n.get(r,MA),i=Array.isArray(o)?o.join(RA):o;if(!i)return t;const a={};return i.length===0||(i.split(RA).forEach(s=>{const l=get(s);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),a[l.key]=c}}),Object.entries(a).length===0)?t:x0.setBaggage(t,x0.createBaggage(a))}fields(){return[MA]}}function i3(e){const t={};if(typeof e!="object"||e==null)return t;for(const[r,n]of Object.entries(e)){if(!vet(r)){Pr.warn(`Invalid attribute key: ${r}`);continue}if(!Coe(n)){Pr.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?t[r]=n.slice():t[r]=n}return t}function vet(e){return typeof e=="string"&&e.length>0}function Coe(e){return e==null?!0:Array.isArray(e)?bet(e):Soe(e)}function bet(e){let t;for(const r of e)if(r!=null){if(!t){if(Soe(r)){t=typeof r;continue}return!1}if(typeof r!==t)return!1}return!0}function Soe(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function yet(){return e=>{Pr.error(xet(e))}}function xet(e){return typeof e=="string"?e:JSON.stringify(Oet(e))}function Oet(e){const t={};let r=e;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(t[n])return;const o=r[n];o&&(t[n]=String(o))}),r=Object.getPrototypeOf(r);return t}let wet=yet();function Ef(e){try{wet(e)}catch{}}const Pf=performance,ket="2.0.1",IA="exception.message",Cet="exception.stacktrace",LA="exception.type",joe="service.name",jet="service.version",DA="telemetry.sdk.language",Aet="webjs",zA="telemetry.sdk.name",NA="telemetry.sdk.version",_et="process.runtime.name",BA={[zA]:"opentelemetry",[_et]:"browser",[DA]:Aet,[NA]:ket},Eet=9,Pet=6,Tet=Math.pow(10,Pet),a3=Math.pow(10,Eet);function Tf(e){const t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*Tet);return[r,n]}function Aoe(){let e=Pf.timeOrigin;if(typeof e!="number"){const t=Pf;e=t.timing&&t.timing.fetchStart}return e}function $et(e){const t=Tf(Aoe()),r=Tf(typeof e=="number"?e:Pf.now());return Poe(t,r)}function Ret(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=a3),[r,n]}function Met(e){return e[0]*a3+e[1]}function _oe(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function Eoe(e){return _oe(e)||typeof e=="number"||e instanceof Date}function Poe(e,t){const r=[e[0]+t[0],e[1]+t[1]];return r[1]>=a3&&(r[1]-=a3,r[0]+=1),r}var Bl;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Bl||(Bl={}));class Iet{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,n)=>r.concat(n),[])))}inject(t,r,n){for(const o of this._propagators)try{o.inject(t,r,n)}catch(i){Pr.warn(`Failed to inject with ${o.constructor.name}. Err: ${i.message}`)}}extract(t,r,n){return this._propagators.reduce((o,i)=>{try{return i.extract(o,r,n)}catch(a){Pr.warn(`Failed to extract with ${i.constructor.name}. Err: ${a.message}`)}return o},t)}fields(){return this._fields.slice()}}const VA="[_0-9a-z-*/]",Let=`[a-z]${VA}{0,255}`,Det=`[a-z0-9]${VA}{0,240}@[a-z]${VA}{0,13}`,zet=new RegExp(`^(?:${Let}|${Det})$`),Net=/^[ -~]{0,255}[!-~]$/,Bet=/,|=/;function Vet(e){return zet.test(e)}function Fet(e){return Net.test(e)&&!Bet.test(e)}const Toe=32,Qet=512,$oe=",",Roe="=";class YE{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,r){const n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n}unset(t){const r=this._clone();return r._internalState.delete(t),r}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,r)=>(t.push(r+Roe+this.get(r)),t),[]).join($oe)}_parse(t){t.length>Qet||(this._internalState=t.split($oe).reverse().reduce((r,n)=>{const o=n.trim(),i=o.indexOf(Roe);if(i!==-1){const a=o.slice(0,i),s=o.slice(i+1,n.length);Vet(a)&&Fet(s)&&r.set(a,s)}return r},new Map),this._internalState.size>Toe&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Toe))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new YE;return t._internalState=new Map(this._internalState),t}}const FA="traceparent",QA="tracestate",qet="00",Zet="(?!ff)[\\da-f]{2}",Uet="(?![0]{32})[\\da-f]{32}",Het="(?![0]{16})[\\da-f]{16}",Wet="[\\da-f]{2}",Xet=new RegExp(`^\\s?(${Zet})-(${Uet})-(${Het})-(${Wet})(-.*)?\\s?$`);function Yet(e){const t=Xet.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class Get{inject(t,r,n){const o=gs.getSpanContext(t);if(!o||TA(t)||!n3(o))return;const i=`${qet}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||Tc.NONE).toString(16)}`;n.set(r,FA,i),o.traceState&&n.set(r,QA,o.traceState.serialize())}extract(t,r,n){const o=n.get(r,FA);if(!o)return t;const i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return t;const a=Yet(i);if(!a)return t;a.isRemote=!0;const s=n.get(r,QA);if(s){const l=Array.isArray(s)?s.join(","):s;a.traceState=new YE(typeof l=="string"?l:void 0)}return gs.setSpanContext(t,a)}fields(){return[FA,QA]}}const Jet="[object Object]",Ket="[object Null]",ett="[object Undefined]",ttt=Function.prototype,Moe=ttt.toString,rtt=Moe.call(Object),ntt=Object.getPrototypeOf,Ioe=Object.prototype,Loe=Ioe.hasOwnProperty,up=Symbol?Symbol.toStringTag:void 0,Doe=Ioe.toString;function zoe(e){if(!ott(e)||itt(e)!==Jet)return!1;const t=ntt(e);if(t===null)return!0;const r=Loe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Moe.call(r)===rtt}function ott(e){return e!=null&&typeof e=="object"}function itt(e){return e==null?e===void 0?ett:Ket:up&&up in Object(e)?att(e):stt(e)}function att(e){const t=Loe.call(e,up),r=e[up];let n=!1;try{e[up]=void 0,n=!0}catch{}const o=Doe.call(e);return n&&(t?e[up]=r:delete e[up]),o}function stt(e){return Doe.call(e)}const ltt=20;function ctt(...e){let t=e.shift();const r=new WeakMap;for(;e.length>0;)t=Noe(t,e.shift(),0,r);return t}function qA(e){return s3(e)?e.slice():e}function Noe(e,t,r=0,n){let o;if(!(r>ltt)){if(r++,l3(e)||l3(t)||Voe(t))o=qA(t);else if(s3(e)){if(o=e.slice(),s3(t))for(let i=0,a=t.length;i<a;i++)o.push(qA(t[i]));else if(O0(t)){const i=Object.keys(t);for(let a=0,s=i.length;a<s;a++){const l=i[a];o[l]=qA(t[l])}}}else if(O0(e))if(O0(t)){if(!utt(e,t))return t;o=Object.assign({},e);const i=Object.keys(t);for(let a=0,s=i.length;a<s;a++){const l=i[a],c=t[l];if(l3(c))typeof c>"u"?delete o[l]:o[l]=c;else{const u=o[l],d=c;if(Boe(e,l,n)||Boe(t,l,n))delete o[l];else{if(O0(u)&&O0(d)){const h=n.get(u)||[],g=n.get(d)||[];h.push({obj:e,key:l}),g.push({obj:t,key:l}),n.set(u,h),n.set(d,g)}o[l]=Noe(o[l],c,r,n)}}}}else o=t;return o}}function Boe(e,t,r){const n=r.get(e[t])||[];for(let o=0,i=n.length;o<i;o++){const a=n[o];if(a.key===t&&a.obj===e)return!0}return!1}function s3(e){return Array.isArray(e)}function Voe(e){return typeof e=="function"}function O0(e){return!l3(e)&&!s3(e)&&!Voe(e)&&typeof e=="object"}function l3(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function utt(e,t){return!(!zoe(e)||!zoe(t))}class dtt{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,r)=>{this._resolve=t,this._reject=r})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class ptt{_callback;_that;_isCalled=!1;_deferred=new dtt;constructor(t,r){this._callback=t,this._that=r}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(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}}function htt(){return"unknown_service"}const w0=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class z5{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const r=new z5({});return r._rawAttributes=Qoe(t),r._asyncAttributesPending=t.filter(([n,o])=>w0(o)).length>0,r}constructor(t){const r=t.attributes??{};this._rawAttributes=Object.entries(r).map(([n,o])=>(w0(o)&&(this._asyncAttributesPending=!0),[n,o])),this._rawAttributes=Qoe(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[r,n]=this._rawAttributes[t];this._rawAttributes[t]=[r,w0(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Pr.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[r,n]of this._rawAttributes){if(w0(n)){Pr.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(t[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:z5.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function Foe(e){return z5.FromAttributeList(Object.entries(e))}function ftt(){return Foe({[joe]:htt(),[DA]:BA[DA],[zA]:BA[zA],[NA]:BA[NA]})}function Qoe(e){return e.map(([t,r])=>w0(r)?[t,r.catch(n=>{Pr.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,r])}const gtt="exception";class mtt{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:jA.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const r=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Pf.now(),this._performanceOffset=r-(this._performanceStartTime+Aoe()),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??r),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,r){if(r==null||this._isSpanEnded())return this;if(t.length===0)return Pr.warn(`Invalid attribute key: ${t}`),this;if(!Coe(r))return Pr.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this)}setAttributes(t){for(const[r,n]of Object.entries(t))this.setAttribute(r,n);return this}addEvent(t,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:o}=this._spanLimits;if(o===0)return Pr.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&Pr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Eoe(r)&&(Eoe(n)||(n=r),r=void 0);const i=i3(r);return this.events.push({name:t,attributes:i,time:this._getTime(n),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"&&(Pr.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()){Pr.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=Ret(this.startTime,this.endTime),this._duration[0]<0&&(Pr.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&&Pr.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Pf.now())return $et(t+this._performanceOffset);if(typeof t=="number")return Tf(t);if(t instanceof Date)return Tf(t.getTime());if(_oe(t))return t;if(this._startTimeProvided)return Tf(Date.now());const r=Pf.now()-this._performanceStartTime;return Poe(this.startTime,Tf(r))}isRecording(){return this._ended===!1}recordException(t,r){const n={};typeof t=="string"?n[IA]=t:t&&(t.code?n[LA]=t.code.toString():t.name&&(n[LA]=t.name),t.message&&(n[IA]=t.message),t.stack&&(n[Cet]=t.stack)),n[LA]||n[IA]?this.addEvent(gtt,n,r):Pr.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}}`);Pr.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,r){return t.length<=r?t:t.substring(0,r)}_truncateToSize(t){const r=this._attributeValueLengthLimit;return r<=0?(Pr.warn(`Attribute value limit must be positive, got ${r}`),t):typeof t=="string"?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):t}}var $f;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})($f||($f={}));class c3{shouldSample(){return{decision:$f.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Rf{shouldSample(){return{decision:$f.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class u3{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Ef(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Rf),this._remoteParentSampled=t.remoteParentSampled??new Rf,this._remoteParentNotSampled=t.remoteParentNotSampled??new c3,this._localParentSampled=t.localParentSampled??new Rf,this._localParentNotSampled=t.localParentNotSampled??new c3}shouldSample(t,r,n,o,i,a){const s=gs.getSpanContext(t);return!s||!n3(s)?this._root.shouldSample(t,r,n,o,i,a):s.isRemote?s.traceFlags&Tc.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,o,i,a):this._remoteParentNotSampled.shouldSample(t,r,n,o,i,a):s.traceFlags&Tc.SAMPLED?this._localParentSampled.shouldSample(t,r,n,o,i,a):this._localParentNotSampled.shouldSample(t,r,n,o,i,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class qoe{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,r){return{decision:yoe(r)&&this._accumulate(r)<this._upperBound?$f.RECORD_AND_SAMPLED:$f.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 r=0;for(let n=0;n<t.length/8;n++){const o=n*8,i=parseInt(t.slice(o,o+8),16);r=(r^i)>>>0}return r}}const Zoe=1;function Uoe(){return{sampler:Hoe(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function Hoe(){const e="parentbased_always_on";switch(e){case"always_on":return new Rf;case"always_off":return new c3;case"parentbased_always_on":return new u3({root:new Rf});case"parentbased_always_off":return new u3({root:new c3});case"traceidratio":return new qoe(Woe());case"parentbased_traceidratio":return new u3({root:new qoe(Woe())});default:return Pr.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new u3({root:new Rf})}}function Woe(){return Pr.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Zoe}.`),Zoe}const vtt=128,btt=1/0;function ytt(e){const t={sampler:Hoe()},r=Uoe(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function xtt(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??vtt,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??btt,Object.assign({},e,{spanLimits:t})}class Ott{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,r){this._exporter=t,this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:512,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:2048,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:3e4,this._shutdownOnce=new ptt(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Pr.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,r){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Tc.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&&Pr.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Pr.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,r)=>{const n=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,a=o;i<a;i++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{t()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,r)=>{const n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);Yu.with(set(Yu.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(o,s=>{clearTimeout(n),s.code===Bl.SUCCESS?t():r(s.error??new Error("BatchSpanProcessor: span export failed"))});let a=null;for(let s=0,l=o.length;s<l;s++){const c=o[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(a??=[],a.push(c.resource.waitForAsyncAttributes()))}a===null?i():Promise.all(a).then(i,s=>{Ef(s),r(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(r=>{this._isExporting=!1,Ef(r)})};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 wtt extends Ott{_visibilityChangeListener;_pageHideListener;constructor(t,r){super(t,r),this.onInit(r)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{Ef(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{Ef(r)})},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 ktt=8,Ctt=16;class Stt{generateTraceId=Xoe(Ctt);generateSpanId=Xoe(ktt)}const d3=Array(32);function Xoe(e){return function(){for(let t=0;t<e*2;t++)d3[t]=Math.floor(Math.random()*16)+48,d3[t]>=58&&(d3[t]+=39);return String.fromCharCode.apply(null,d3.slice(0,e*2))}}class jtt{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,r,n,o){const i=ytt(r);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=r.idGenerator||new Stt,this._resource=n,this._spanProcessor=o,this.instrumentationScope=t}startSpan(t,r={},n=Yu.active()){r.root&&(n=gs.deleteSpan(n));const o=gs.getSpan(n);if(TA(n))return Pr.debug("Instrumentation suppressed, returning Noop Span"),gs.wrapSpanContext(voe);const i=o?.spanContext(),a=this._idGenerator.generateSpanId();let s,l,c;!i||!gs.isSpanContextValid(i)?l=this._idGenerator.generateTraceId():(l=i.traceId,c=i.traceState,s=i);const u=r.kind??SA.INTERNAL,d=(r.links??[]).map(x=>({context:x.context,attributes:i3(x.attributes)})),h=i3(r.attributes),g=this._sampler.shouldSample(n,l,t,u,h,d);c=g.traceState??c;const v=g.decision===o3.RECORD_AND_SAMPLED?Tc.SAMPLED:Tc.NONE,b={traceId:l,spanId:a,traceFlags:v,traceState:c};if(g.decision===o3.NOT_RECORD)return Pr.debug("Recording is off, propagating context in a non-recording span"),gs.wrapSpanContext(b);const y=i3(Object.assign(h,g.attributes));return new mtt({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:b,name:t,kind:u,links:d,parentSpanContext:s,attributes:y,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,r,n,o){let i,a,s;if(arguments.length<2)return;arguments.length===2?s=r:arguments.length===3?(i=r,s=n):(i=r,a=n,s=o);const l=a??Yu.active(),c=this.startSpan(t,i,l),u=gs.setSpan(l,c);return Yu.with(u,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class Att{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const r of this._spanProcessors)t.push(r.forceFlush());return new Promise(r=>{Promise.all(t).then(()=>{r()}).catch(n=>{Ef(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(t,r){for(const n of this._spanProcessors)n.onStart(t,r)}onEnd(t){for(const r of this._spanProcessors)r.onEnd(t)}shutdown(){const t=[];for(const r of this._spanProcessors)t.push(r.shutdown());return new Promise((r,n)=>{Promise.all(t).then(()=>{r()},n)})}}var dp;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(dp||(dp={}));class _tt{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const r=ctt({},Uoe(),xtt(t));this._resource=r.resource??ftt(),this._config=Object.assign({},r,{resource:this._resource});const n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new Att(n)}getTracer(t,r,n){const o=`${t}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new jtt({name:t,version:r,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(o)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(o=>{let i;const a=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=dp.timeout},t);n.forceFlush().then(()=>{clearTimeout(a),i!==dp.timeout&&(i=dp.resolved,o(i))}).catch(s=>{clearTimeout(a),i=dp.error,o(s)})}));return new Promise((n,o)=>{Promise.all(r).then(i=>{const a=i.filter(s=>s!==dp.resolved);a.length>0?o(a):n()}).catch(i=>o([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class Ett{_enabled=!1;_currentContext=_f;_bindFunction(t=_f,r){const n=this,o=function(...i){return n.with(t,()=>r.apply(this,i))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),o}active(){return this._currentContext}bind(t,r){return t===void 0&&(t=this.active()),typeof r=="function"?this._bindFunction(t,r):r}disable(){return this._currentContext=_f,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=_f,this)}with(t,r,n,...o){const i=this._currentContext;this._currentContext=t||_f;try{return r.call(n,...o)}finally{this._currentContext=i}}}function Ptt(e){if(e!==null){if(e===void 0){const t=new Ett;t.enable(),Yu.setGlobalContextManager(t);return}e.enable(),Yu.setGlobalContextManager(e)}}function Ttt(e){if(e!==null){if(e===void 0){x0.setGlobalPropagator(new Iet({propagators:[new Get,new met]}));return}x0.setGlobalPropagator(e)}}class $tt extends _tt{constructor(t={}){super(t)}register(t={}){gs.setGlobalTracerProvider(this),Ttt(t.propagator),Ptt(t.contextManager)}}class Rtt{_delegate;constructor(t){this._delegate=t}export(t,r){this._delegate.export(t,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class Yoe extends Error{code;name="OTLPExporterError";data;constructor(t,r,n){super(t),this.data=n,this.code=r}}function Mtt(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Itt(e){if(e!=null)return()=>e}function Ltt(e,t,r){return{timeoutMillis:Mtt(e.timeoutMillis??t.timeoutMillis??r.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??r.concurrencyLimit,compression:e.compression??t.compression??r.compression}}function Dtt(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class ztt{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const r=()=>{const n=this._sendingPromises.indexOf(t);this._sendingPromises.splice(n,1)};t.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function Ntt(e){return new ztt(e.concurrencyLimit)}function Btt(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function Vtt(){return{handleResponse(e){e==null||!Btt(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||Pr.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class Ftt{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,r,n,o,i){this._transport=t,this._serializer=r,this._responseHandler=n,this._promiseQueue=o,this._timeout=i,this._diagLogger=Pr.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,r){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){r({code:Bl.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(t);if(n==null){r({code:Bl.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(o=>{if(o.status==="success"){if(o.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(o.data))}catch(i){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,o.data)}r({code:Bl.SUCCESS});return}else if(o.status==="failure"&&o.error){r({code:Bl.FAILED,error:o.error});return}else o.status==="retryable"?r({code:Bl.FAILED,error:new Yoe("Export failed with retryable status")}):r({code:Bl.FAILED,error:new Yoe("Export failed with unknown error")})},o=>r({code:Bl.FAILED,error:o})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Qtt(e,t){return new Ftt(e.transport,e.serializer,Vtt(),e.promiseHandler,t.timeout)}function Goe(e,t,r){return Qtt({transport:r,serializer:t,promiseHandler:Ntt(e)},{timeout:e.timeoutMillis})}function Joe(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function Koe(e){const t=new Uint8Array(e.length/2);let r=0;for(let n=0;n<e.length;n+=2){const o=Joe(e.charCodeAt(n)),i=Joe(e.charCodeAt(n+1));t[r++]=o<<4|i}return t}function eie(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function qtt(e){const t=Number(BigInt.asUintN(32,e)),r=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:r}}function Ztt(e){const t=eie(e);return qtt(t)}function Utt(e){return eie(e).toString()}const Htt=typeof BigInt<"u"?Utt:Met;function tie(e){return e}function Wtt(e){if(e!==void 0)return Koe(e)}const Xtt={encodeHrTime:Ztt,encodeSpanContext:Koe,encodeOptionalSpanContext:Wtt};function Ytt(e){return e===void 0?Xtt:{encodeHrTime:Htt,encodeSpanContext:tie,encodeOptionalSpanContext:tie}}function Gtt(e){return{attributes:p3(e.attributes),droppedAttributesCount:0}}function Jtt(e){return{name:e.name,version:e.version}}function p3(e){return Object.keys(e).map(t=>rie(t,e[t]))}function rie(e,t){return{key:e,value:nie(t)}}function nie(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(nie)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([r,n])=>rie(r,n))}}:{}}function Ktt(e,t){const r=e.spanContext(),n=e.status,o=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:o,traceState:r.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:p3(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>trt(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:n.code,message:n.message},links:e.links.map(i=>ert(i,t)),droppedLinksCount:e.droppedLinksCount}}function ert(e,t){return{attributes:e.attributes?p3(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function trt(e,t){return{attributes:e.attributes?p3(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function rrt(e,t){const r=Ytt(t);return{resourceSpans:ort(e,r)}}function nrt(e){const t=new Map;for(const r of e){let n=t.get(r.resource);n||(n=new Map,t.set(r.resource,n));const o=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let i=n.get(o);i||(i=[],n.set(o,i)),i.push(r)}return t}function ort(e,t){const r=nrt(e),n=[],o=r.entries();let i=o.next();for(;!i.done;){const[a,s]=i.value,l=[],c=s.values();let u=c.next();for(;!u.done;){const h=u.value;if(h.length>0){const g=h.map(v=>Ktt(v,t));l.push({scope:Jtt(h[0].instrumentationScope),spans:g,schemaUrl:h[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:Gtt(a),scopeSpans:l,schemaUrl:void 0};n.push(d),i=o.next()}return n}const irt={serializeRequest:e=>{const t=rrt(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))}},art=5,srt=1e3,lrt=5e3,crt=1.5,oie=.2;function urt(){return Math.random()*(2*oie)-oie}class drt{_transport;constructor(t){this._transport=t}retry(t,r,n){return new Promise((o,i)=>{setTimeout(()=>{this._transport.send(t,r).then(o,i)},n)})}async send(t,r){const n=Date.now()+r;let o=await this._transport.send(t,r),i=art,a=srt;for(;o.status==="retryable"&&i>0;){i--;const s=Math.max(Math.min(a,lrt)+urt(),0);a=a*crt;const l=o.retryInMillis??s,c=n-Date.now();if(l>c)return o;o=await this.retry(t,c,l)}return o}shutdown(){return this._transport.shutdown()}}function iie(e){return new drt(e.transport)}function prt(e){return[429,502,503,504].includes(e)}function hrt(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const r=new Date(e).getTime()-Date.now();return r>=0?r:0}class frt{_parameters;constructor(t){this._parameters=t}send(t,r){return new Promise(n=>{const o=new XMLHttpRequest;o.timeout=r,o.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([a,s])=>{o.setRequestHeader(a,s)}),o.ontimeout=a=>{n({status:"failure",error:new Error("XHR request timed out")})},o.onreadystatechange=()=>{o.status>=200&&o.status<=299?(Pr.debug("XHR success"),n({status:"success"})):o.status&&prt(o.status)?n({status:"retryable",retryInMillis:hrt(o.getResponseHeader("Retry-After"))}):o.status!==0&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},o.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},o.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},o.send(t)})}shutdown(){}}function grt(e){return new frt(e)}class mrt{_params;constructor(t){this._params=t}send(t){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(Pr.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function vrt(e){return new mrt(e)}function brt(e,t){return Goe(e,t,iie({transport:grt(e)}))}function yrt(e,t){return Goe(e,t,iie({transport:vrt({url:e.url,blobType:e.headers()["Content-Type"]})}))}function xrt(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([r,n])=>{typeof n<"u"?t[r]=String(n):Pr.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),t}}function Ort(e,t,r){const n={...r()},o={};return()=>(t!=null&&Object.assign(o,t()),e!=null&&Object.assign(o,e()),Object.assign(o,n))}function wrt(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function krt(e,t,r){return{...Ltt(e,t,r),headers:Ort(xrt(e.headers),t.headers,r.headers),url:wrt(e.url)??t.url??r.url,agentOptions:e.agentOptions??t.agentOptions??r.agentOptions}}function Crt(e,t){return{...Dtt(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function Srt(e,t,r){return krt({url:e.url,timeoutMillis:e.timeoutMillis,headers:Itt(e.headers),concurrencyLimit:e.concurrencyLimit},{},Crt(r,t))}function jrt(e,t,r,n){const o=!!e.headers||typeof navigator.sendBeacon!="function",i=Srt(e,r,n);return o?brt(i,t):yrt(i,t)}class Art extends Rtt{constructor(t={}){super(jrt(t,irt,"v1/traces",{"Content-Type":"application/json"}))}}class aie{emit(t){}}const _rt=new aie;class Ert{getLogger(t,r,n){return new aie}}const sie=new Ert;class Prt{constructor(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}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):_rt}}class lie{getLogger(t,r,n){var o;return(o=this.getDelegateLogger(t,r,n))!==null&&o!==void 0?o:new Prt(this,t,r,n)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:sie}setDelegate(t){this._delegate=t}getDelegateLogger(t,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(t,r,n)}}const Trt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},h3=Symbol.for("io.opentelemetry.js.api.logs"),k0=Trt;function $rt(e,t,r){return n=>n===e?t:r}const cie=1;class GE{constructor(){this._proxyLoggerProvider=new lie}static getInstance(){return this._instance||(this._instance=new GE),this._instance}setGlobalLoggerProvider(t){return k0[h3]?this.getLoggerProvider():(k0[h3]=$rt(cie,t,sie),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,r;return(r=(t=k0[h3])===null||t===void 0?void 0:t.call(k0,cie))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)}disable(){delete k0[h3],this._proxyLoggerProvider=new lie}}const Rrt=GE.getInstance();function Mrt(e,t,r,n){for(let o=0,i=e.length;o<i;o++){const a=e[o];t&&a.setTracerProvider(t),r&&a.setMeterProvider(r),n&&a.setLoggerProvider&&a.setLoggerProvider(n),a.getConfig().enabled||a.enable()}}function Irt(e){e.forEach(t=>t.disable())}function Lrt(e){const t=e.tracerProvider||gs.getTracerProvider(),r=e.meterProvider||KKe.getMeterProvider(),n=e.loggerProvider||Rrt.getLoggerProvider(),o=e.instrumentations?.flat()??[];return Mrt(o,t,r,n),()=>{Irt(o)}}class Drt{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 r=t.time?new Date(t.time):new Date;this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,r),startTime:r}).end(r)}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}processAttributes(t,r){const n={"cloudevents.event_id":h0(),"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":r.toISOString(),"cloudevents.event_subject":t.subject||"","cloudevents.page.uri":location.href,"cloudevents.event_version":this.config?.version,"cloudevents.event_origin":"ui","cloudevents.event_source_details.id":t.sourceDetails?.id||h0()};return t.data&&typeof t.data=="object"&&Object.entries(t.data).forEach(([o,i])=>{const a=o.replace(/([A-Z])/g,"_$1").toLowerCase();i!==void 0&&(n[`cloudevents.event_data.${a}`]=i)}),Object.entries(t).forEach(([o,i])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails"].includes(o)||i!==void 0&&(n[`cloudevents.${o}`]=i)}),n}startSpan(t,r){try{if(!this.tracer)return;let n;const o=t.time?new Date(t.time):new Date,i=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,o),root:!r},r);return r||(n=gs.setSpan(Yu.active(),i)),{end:()=>i.end(),setAttribute:(a,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(a)}`,s)},setStatus:(a,s)=>i.setStatus({code:a,message:s}),parentCtx:n}}catch(n){this.config?.isProd||console.error("Event reporting failed:",n)}}forceFlush(){this.tracerProvider?.forceFlush()}getKeySnakeValue=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase()}class zrt extends Drt{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(t){if(!t.collectorUrl&&!t.collectorTraceUrl)return;const r=`ses_${h0()}`,n=Foe({[joe]:t.serviceName,[jet]:t.serviceVersion,session_id:r}),o=t.collectorTraceUrl||`${t.collectorUrl}/v1/traces`;this.tracerProvider=new $tt({resource:n,spanProcessors:[new wtt(new Art({url:o,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(t.tracerName),this.tracerProvider.register(),Lrt({instrumentations:t.instrumentations??[]}),this.initialized=!0}}class Nrt{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 zrt}updateCloudEventData=t=>{this.useCloudEventData=t};init(t){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}))}send(t,r){try{const n=this.constructCloudEvent(t,r);this.sendToOtelService(n)}catch(n){this.config?.otel.isProd||console.error("Event reporting failed:",n)}}startSpan(t,r,n){const o=this.constructCloudEvent(t,r);return this.otelClient.startSpan(o,n)}constructCloudEvent(t,r){const n=this.useCloudEventData();return{id:`evt_${h0()}`,type:t,source:n.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:r,origin:"ui",sourceDetails:{id:n.sourceDetails.user||`usr_${h0()}`,object:n.sourceDetails.object||"user",uri:n.sourceDetails.uri||""},organization:n.organization,project:n.project,productType:n.productType}}sendToOtelService(t){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",t),this.otelClient.send(t)}forceFlush(){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)}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)}}function Brt(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const Vrt=Brt(),Frt=$.createContext(Vrt);function Qs(){const e=$.useContext(Frt);return mH(e)}function Qrt(e,t){const{apps:{apiId:r}}=Er(),{corsProxyUrl:n,disableCollectionsTab:o,mockServer:i,oAuth2RedirectURI:a,certificates:s,storageKey:l,isApiBased:c}=Qs();n.set(e?.corsProxyUrl??QIe),i.set(e?.mockServer),r.set(e?.apiId),a.set(e?.oAuth2RedirectURI),o.set(!!e?.disableCollectionsTab),l.set(e?.storageKey),c.set(!!t),$.useEffect(()=>{s.set(e?.certificates||[])},[e?.certificates])}const uie=$.createContext({});function ZA(){return $.useContext(uie)||{}}const qrt="0.15.0-next.10",Zrt={version:qrt};class Urt{client;_isInitialized=!1;constructor(){this.client=new Nrt}get isInitialized(){return this._isInitialized}init(t){if(this.isInitialized)return;const r={serviceName:"replay",serviceVersion:Zrt.version,version:"1.0.0",tracerName:t?.tracerName||"desktop",collectorUrl:t?.collectorUrl||"",isProd:!0};this.client.init({otel:{...r,...t}}),this._isInitialized=!0}sendEvent(t,r){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(t,r)}catch(n){console.error("Failed to send telemetry event:",n)}}}const UA=new Urt;function mr(){const{telemetry:e}=ZA();return UA.isInitialized||UA.init({tracerName:e?.tracerName,collectorUrl:e?.collectorUrl}),{sendEvent:(t,r)=>{UA.sendEvent(t,r)}}}const Ti=800;var Hrt=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Wrt(e){var t=e.defaultInputValue,r=t===void 0?"":t,n=e.defaultMenuIsOpen,o=n===void 0?!1:n,i=e.defaultValue,a=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,h=e.onMenuOpen,g=e.value,v=Vs(e,Hrt),b=$.useState(s!==void 0?s:r),y=Vt(b,2),x=y[0],w=y[1],k=$.useState(l!==void 0?l:o),j=Vt(k,2),C=j[0],A=j[1],_=$.useState(g!==void 0?g:a),E=Vt(_,2),P=E[0],M=E[1],D=$.useCallback(function(K,se){typeof c=="function"&&c(K,se),M(K)},[c]),I=$.useCallback(function(K,se){var U;typeof u=="function"&&(U=u(K,se)),w(U!==void 0?U:K)},[u]),N=$.useCallback(function(){typeof h=="function"&&h(),A(!0)},[h]),L=$.useCallback(function(){typeof d=="function"&&d(),A(!1)},[d]),H=s!==void 0?s:x,Y=l!==void 0?l:C,te=g!==void 0?g:P;return tt(tt({},v),{},{inputValue:H,menuIsOpen:Y,onChange:D,onInputChange:I,onMenuClose:L,onMenuOpen:N,value:te})}function Xrt(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 Yrt(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 Grt=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Yrt(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Xrt(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),si="-ms-",f3="-moz-",Tr="-webkit-",die="comm",HA="rule",WA="decl",Jrt="@import",pie="@keyframes",Krt=Math.abs,g3=String.fromCharCode,ent=Object.assign;function tnt(e,t){return Do(e,0)^45?(((t<<2^Do(e,0))<<2^Do(e,1))<<2^Do(e,2))<<2^Do(e,3):0}function hie(e){return e.trim()}function rnt(e,t){return(e=t.exec(e))?e[0]:e}function Dr(e,t,r){return e.replace(t,r)}function XA(e,t){return e.indexOf(t)}function Do(e,t){return e.charCodeAt(t)|0}function C0(e,t,r){return e.slice(t,r)}function Vl(e){return e.length}function YA(e){return e.length}function m3(e,t){return t.push(e),e}function nnt(e,t){return e.map(t).join("")}var v3=1,Mf=1,fie=0,oa=0,Jn=0,If="";function b3(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:v3,column:Mf,length:a,return:""}}function S0(e,t){return ent(b3("",null,null,"",null,null,0),e,{length:-e.length},t)}function ont(){return Jn}function int(){return Jn=oa>0?Do(If,--oa):0,Mf--,Jn===10&&(Mf=1,v3--),Jn}function La(){return Jn=oa<fie?Do(If,oa++):0,Mf++,Jn===10&&(Mf=1,v3++),Jn}function Fl(){return Do(If,oa)}function y3(){return oa}function j0(e,t){return C0(If,e,t)}function A0(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 gie(e){return v3=Mf=1,fie=Vl(If=e),oa=0,[]}function mie(e){return If="",e}function x3(e){return hie(j0(oa-1,GA(e===91?e+2:e===40?e+1:e)))}function ant(e){for(;(Jn=Fl())&&Jn<33;)La();return A0(e)>2||A0(Jn)>3?"":" "}function snt(e,t){for(;--t&&La()&&!(Jn<48||Jn>102||Jn>57&&Jn<65||Jn>70&&Jn<97););return j0(e,y3()+(t<6&&Fl()==32&&La()==32))}function GA(e){for(;La();)switch(Jn){case e:return oa;case 34:case 39:e!==34&&e!==39&&GA(Jn);break;case 40:e===41&&GA(e);break;case 92:La();break}return oa}function lnt(e,t){for(;La()&&e+Jn!==57&&!(e+Jn===84&&Fl()===47););return"/*"+j0(t,oa-1)+"*"+g3(e===47?e:La())}function cnt(e){for(;!A0(Fl());)La();return j0(e,oa)}function unt(e){return mie(O3("",null,null,null,[""],e=gie(e),0,[0],e))}function O3(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,h=0,g=0,v=0,b=1,y=1,x=1,w=0,k="",j=o,C=i,A=n,_=k;y;)switch(v=w,w=La()){case 40:if(v!=108&&Do(_,d-1)==58){XA(_+=Dr(x3(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:_+=x3(w);break;case 9:case 10:case 13:case 32:_+=ant(v);break;case 92:_+=snt(y3()-1,7);continue;case 47:switch(Fl()){case 42:case 47:m3(dnt(lnt(La(),y3()),t,r),l);break;default:_+="/"}break;case 123*b:s[c++]=Vl(_)*x;case 125*b:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+u:g>0&&Vl(_)-d&&m3(g>32?bie(_+";",n,r,d-1):bie(Dr(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(m3(A=vie(_,t,r,c,u,o,s,k,j=[],C=[],d),i),w===123)if(u===0)O3(_,t,A,A,j,i,d,s,C);else switch(h===99&&Do(_,3)===110?100:h){case 100:case 109:case 115:O3(e,A,A,n&&m3(vie(e,A,A,0,0,o,s,k,o,j=[],d),C),o,C,d,s,n?j:C);break;default:O3(_,A,A,A,[""],C,0,s,C)}}c=u=g=0,b=x=1,k=_="",d=a;break;case 58:d=1+Vl(_),g=v;default:if(b<1){if(w==123)--b;else if(w==125&&b++==0&&int()==125)continue}switch(_+=g3(w),w*b){case 38:x=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Vl(_)-1)*x,x=1;break;case 64:Fl()===45&&(_+=x3(La())),h=Fl(),u=d=Vl(k=_+=cnt(y3())),w++;break;case 45:v===45&&Vl(_)==2&&(b=0)}}return i}function vie(e,t,r,n,o,i,a,s,l,c,u){for(var d=o-1,h=o===0?i:[""],g=YA(h),v=0,b=0,y=0;v<n;++v)for(var x=0,w=C0(e,d+1,d=Krt(b=a[v])),k=e;x<g;++x)(k=hie(b>0?h[x]+" "+w:Dr(w,/&\f/g,h[x])))&&(l[y++]=k);return b3(e,t,r,o===0?HA:s,l,c,u)}function dnt(e,t,r){return b3(e,t,r,die,g3(ont()),C0(e,2,-2),0)}function bie(e,t,r,n){return b3(e,t,r,WA,C0(e,0,n),C0(e,n+1,-1),n)}function Lf(e,t){for(var r="",n=YA(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function pnt(e,t,r,n){switch(e.type){case Jrt:case WA:return e.return=e.return||e.value;case die:return"";case pie:return e.return=e.value+"{"+Lf(e.children,n)+"}";case HA:e.value=e.props.join(",")}return Vl(r=Lf(e.children,n))?e.return=e.value+"{"+r+"}":""}function hnt(e){var t=YA(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function fnt(e){return function(t){t.root||(t=t.return)&&e(t)}}function gnt(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var mnt=function(e,t,r){for(var n=0,o=0;n=o,o=Fl(),n===38&&o===12&&(t[r]=1),!A0(o);)La();return j0(e,oa)},vnt=function(e,t){var r=-1,n=44;do switch(A0(n)){case 0:n===38&&Fl()===12&&(t[r]=1),e[r]+=mnt(oa-1,t,r);break;case 2:e[r]+=x3(n);break;case 4:if(n===44){e[++r]=Fl()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=g3(n)}while(n=La());return e},bnt=function(e,t){return mie(vnt(gie(e),t))},yie=new WeakMap,ynt=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!yie.get(r))&&!n){yie.set(e,!0);for(var o=[],i=bnt(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},xnt=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function xie(e,t){switch(tnt(e,t)){case 5103:return Tr+"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 Tr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tr+e+f3+e+si+e+e;case 6828:case 4268:return Tr+e+si+e+e;case 6165:return Tr+e+si+"flex-"+e+e;case 5187:return Tr+e+Dr(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+si+"flex-$1$2")+e;case 5443:return Tr+e+si+"flex-item-"+Dr(e,/flex-|-self/,"")+e;case 4675:return Tr+e+si+"flex-line-pack"+Dr(e,/align-content|flex-|-self/,"")+e;case 5548:return Tr+e+si+Dr(e,"shrink","negative")+e;case 5292:return Tr+e+si+Dr(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Dr(e,"-grow","")+Tr+e+si+Dr(e,"grow","positive")+e;case 4554:return Tr+Dr(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Dr(Dr(Dr(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Dr(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Dr(Dr(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+si+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4095:case 3583:case 4068:case 2532:return Dr(e,/(.+)-inline(.+)/,Tr+"$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(Vl(e)-1-t>6)switch(Do(e,t+1)){case 109:if(Do(e,t+4)!==45)break;case 102:return Dr(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+f3+(Do(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~XA(e,"stretch")?xie(Dr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Do(e,t+1)!==115)break;case 6444:switch(Do(e,Vl(e)-3-(~XA(e,"!important")&&10))){case 107:return Dr(e,":",":"+Tr)+e;case 101:return Dr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tr+(Do(e,14)===45?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+si+"$2box$3")+e}break;case 5936:switch(Do(e,t+11)){case 114:return Tr+e+si+Dr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+si+Dr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+si+Dr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tr+e+si+e+e}return e}var Ont=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case WA:e.return=xie(e.value,e.length);break;case pie:return Lf([S0(e,{value:Dr(e.value,"@","@"+Tr)})],n);case HA:if(e.length)return nnt(e.props,function(o){switch(rnt(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Lf([S0(e,{props:[Dr(o,/:(read-\w+)/,":"+f3+"$1")]})],n);case"::placeholder":return Lf([S0(e,{props:[Dr(o,/:(plac\w+)/,":"+Tr+"input-$1")]}),S0(e,{props:[Dr(o,/:(plac\w+)/,":"+f3+"$1")]}),S0(e,{props:[Dr(o,/:(plac\w+)/,si+"input-$1")]})],n)}return""})}},wnt=[Ont],knt=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var b=v.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=e.stylisPlugins||wnt,o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var b=v.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)o[b[y]]=!0;a.push(v)});var s,l=[ynt,xnt];{var c,u=[pnt,fnt(function(v){c.insert(v)})],d=hnt(l.concat(n,u)),h=function(v){return Lf(unt(v),d)};s=function(v,b,y,x){c=y,h(v?v+"{"+b.styles+"}":b.styles),x&&(g.inserted[b.name]=!0)}}var g={key:t,sheet:new Grt({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return g.sheet.hydrate(a),g},Cnt=!0;function Snt(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var Oie=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||Cnt===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},jnt=function(e,t,r){Oie(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Ant(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 _nt={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},Ent=/[A-Z]|^ms/g,Pnt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wie=function(e){return e.charCodeAt(1)===45},kie=function(e){return e!=null&&typeof e!="boolean"},JA=gnt(function(e){return wie(e)?e:e.replace(Ent,"-$&").toLowerCase()}),Cie=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Pnt,function(r,n,o){return Ql={name:n,styles:o,next:Ql},n})}return _nt[e]!==1&&!wie(e)&&typeof t=="number"&&t!==0?t+"px":t};function _0(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Ql={name:r.name,styles:r.styles,next:Ql},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Ql={name:n.name,styles:n.styles,next:Ql},n=n.next;var o=r.styles+";";return o}return Tnt(e,t,r)}case"function":{if(e!==void 0){var i=Ql,a=r(e);return Ql=i,_0(e,t,a)}break}}return r}function Tnt(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=_0(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object")kie(a)&&(n+=JA(i)+":"+Cie(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var s=0;s<a.length;s++)kie(a[s])&&(n+=JA(i)+":"+Cie(i,a[s])+";");else{var l=_0(e,t,a);switch(i){case"animation":case"animationName":{n+=JA(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var Sie=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ql,jie=function(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Ql=void 0;var i=e[0];i==null||i.raw===void 0?(n=!1,o+=_0(r,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=_0(r,t,e[a]),n&&(o+=i[a]);Sie.lastIndex=0;for(var s="",l;(l=Sie.exec(o))!==null;)s+="-"+l[1];var c=Ant(o)+s;return{name:c,styles:o,next:Ql}},$nt=function(e){return e()},Rnt=Ad.useInsertionEffect?Ad.useInsertionEffect:!1,Mnt=Rnt||$nt,KA={}.hasOwnProperty,Int=$.createContext(typeof HTMLElement<"u"?knt({key:"css"}):null),Lnt=function(e){return $.forwardRef(function(t,r){var n=$.useContext(Int);return e(t,n,r)})},Dnt=$.createContext({}),e_="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",znt=function(e,t){var r={};for(var n in t)KA.call(t,n)&&(r[n]=t[n]);return r[e_]=e,r},Nnt=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Oie(t,r,n),Mnt(function(){return jnt(t,r,n)}),null},Bnt=Lnt(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[e_],i=[n],a="";typeof e.className=="string"?a=Snt(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=jie(i,void 0,$.useContext(Dnt));a+=t.key+"-"+s.name;var l={};for(var c in e)KA.call(e,c)&&c!=="css"&&c!==e_&&(l[c]=e[c]);return l.ref=r,l.className=a,$.createElement($.Fragment,null,$.createElement(Nnt,{cache:t,serialized:s,isStringTag:typeof o=="string"}),$.createElement(o,l))}),Ct=function(e,t){var r=arguments;if(t==null||!KA.call(t,"css"))return $.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=Bnt,o[1]=znt(e,t);for(var i=2;i<n;i++)o[i]=r[i];return $.createElement.apply(null,o)};function t_(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return jie(t)}var Vnt=function(){var e=t_.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 Fnt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Qnt=Math.min,qnt=Math.max,w3=Math.round,k3=Math.floor,C3=e=>({x:e,y:e});function Znt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Aie(e){return Eie(e)?(e.nodeName||"").toLowerCase():"#document"}function $c(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _ie(e){var t;return(t=(Eie(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Eie(e){return e instanceof Node||e instanceof $c(e).Node}function Unt(e){return e instanceof Element||e instanceof $c(e).Element}function r_(e){return e instanceof HTMLElement||e instanceof $c(e).HTMLElement}function Pie(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $c(e).ShadowRoot}function Tie(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=n_(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Hnt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wnt(e){return["html","body","#document"].includes(Aie(e))}function n_(e){return $c(e).getComputedStyle(e)}function Xnt(e){if(Aie(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pie(e)&&e.host||_ie(e);return Pie(t)?t.host:t}function $ie(e){const t=Xnt(e);return Wnt(t)?e.ownerDocument?e.ownerDocument.body:e.body:r_(t)&&Tie(t)?t:$ie(t)}function S3(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=$ie(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=$c(o);return i?t.concat(a,a.visualViewport||[],Tie(o)?o:[],a.frameElement&&r?S3(a.frameElement):[]):t.concat(o,S3(o,[],r))}function Ynt(e){const t=n_(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=r_(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=w3(r)!==i||w3(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function o_(e){return Unt(e)?e:e.contextElement}function Rie(e){const t=o_(e);if(!r_(t))return C3(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Ynt(t);let a=(i?w3(r.width):r.width)/n,s=(i?w3(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Gnt=C3(0);function Jnt(e){const t=$c(e);return!Hnt()||!t.visualViewport?Gnt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Knt(e,t,r){return!1}function Mie(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=o_(e);let a=C3(1);t&&(a=Rie(e));const s=Knt()?Jnt(i):C3(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const h=$c(i),g=n;let v=h.frameElement;for(;v&&n&&g!==h;){const b=Rie(v),y=v.getBoundingClientRect(),x=n_(v),w=y.left+(v.clientLeft+parseFloat(x.paddingLeft))*b.x,k=y.top+(v.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=w,c+=k,v=$c(v).frameElement}}return Znt({width:u,height:d,x:l,y:c})}function eot(e,t){let r=null,n;const o=_ie(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const g=k3(u),v=k3(o.clientWidth-(c+d)),b=k3(o.clientHeight-(u+h)),y=k3(c),x={rootMargin:-g+"px "+-v+"px "+-b+"px "+-y+"px",threshold:qnt(0,Qnt(1,l))||1};let w=!0;function k(j){const C=j[0].intersectionRatio;if(C!==l){if(!w)return a();C?a(!1,C):n=setTimeout(()=>{a(!1,1e-7)},100)}w=!1}try{r=new IntersectionObserver(k,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(k,x)}r.observe(e)}return a(!0),i}function tot(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=o_(e),u=o||i?[...c?S3(c):[],...S3(t)]:[];u.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),i&&x.addEventListener("resize",r)});const d=c&&s?eot(c,r):null;let h=-1,g=null;a&&(g=new ResizeObserver(x=>{let[w]=x;w&&w.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{g&&g.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let v,b=l?Mie(e):null;l&&y();function y(){const x=Mie(e);b&&(x.x!==b.x||x.y!==b.y||x.width!==b.width||x.height!==b.height)&&r(),b=x,v=requestAnimationFrame(y)}return r(),()=>{u.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),d&&d(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(v)}}var i_=$.useLayoutEffect,rot=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],j3=function(){};function not(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function oot(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i=[].concat(n);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(not(e,a)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Iie=function(e){return hot(e)?e.filter(Boolean):Ra(e)==="object"&&e!==null?[e]:[]},Lie=function(e){var t=Vs(e,rot);return tt({},t)},Pn=function(e,t,r){var n=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:n(r??{},i(t,e),a)}};function A3(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function iot(e){return A3(e)?window.innerHeight:e.clientHeight}function Die(e){return A3(e)?window.pageYOffset:e.scrollTop}function _3(e,t){if(A3(e)){window.scrollTo(0,t);return}e.scrollTop=t}function aot(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function sot(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function E3(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:j3,o=Die(e),i=t-o,a=10,s=0;function l(){s+=a;var c=sot(s,o,i,r);_3(e,c),s<r?window.requestAnimationFrame(l):n(e)}l()}function zie(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),o=t.offsetHeight/3;n.bottom+o>r.bottom?_3(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o<r.top&&_3(e,Math.max(t.offsetTop-o,0))}function lot(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 Nie(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function cot(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Bie=!1,uot={get passive(){return Bie=!0}},P3=typeof window<"u"?window:{};P3.addEventListener&&P3.removeEventListener&&(P3.addEventListener("p",j3,uot),P3.removeEventListener("p",j3,!1));var dot=Bie;function pot(e){return e!=null}function hot(e){return Array.isArray(e)}function T3(e,t,r){return e?t:r}var fot=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Object.entries(e).filter(function(i){var a=Vt(i,1),s=a[0];return!r.includes(s)});return o.reduce(function(i,a){var s=Vt(a,2),l=s[0],c=s[1];return i[l]=c,i},{})},got=["children","innerProps"],mot=["children","innerProps"];function vot(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=aot(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,h=r.getBoundingClientRect(),g=h.bottom,v=h.height,b=h.top,y=r.offsetParent.getBoundingClientRect(),x=y.top,w=a?window.innerHeight:iot(l),k=Die(l),j=parseInt(getComputedStyle(r).marginBottom,10),C=parseInt(getComputedStyle(r).marginTop,10),A=x-C,_=w-b,E=A+k,P=d-k-b,M=g-w+k+j,D=k+b-C,I=160;switch(o){case"auto":case"bottom":if(_>=v)return{placement:"bottom",maxHeight:t};if(P>=v&&!a)return i&&E3(l,M,I),{placement:"bottom",maxHeight:t};if(!a&&P>=n||a&&_>=n){i&&E3(l,M,I);var N=a?_-j:P-j;return{placement:"bottom",maxHeight:N}}if(o==="auto"||a){var L=t,H=a?A:E;return H>=n&&(L=Math.min(H-j-s,t)),{placement:"top",maxHeight:L}}if(o==="bottom")return i&&_3(l,M),{placement:"bottom",maxHeight:t};break;case"top":if(A>=v)return{placement:"top",maxHeight:t};if(E>=v&&!a)return i&&E3(l,D,I),{placement:"top",maxHeight:t};if(!a&&E>=n||a&&A>=n){var Y=t;return(!a&&E>=n||a&&A>=n)&&(Y=a?A-C:E-C),i&&E3(l,D,I),{placement:"top",maxHeight:Y}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}function bot(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Vie=function(e){return e==="auto"?"bottom":e},yot=function(e,t){var r,n=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return tt((r={label:"menu"},ai(r,bot(n),"100%"),ai(r,"position","absolute"),ai(r,"width","100%"),ai(r,"zIndex",1),r),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:a.menuGutter,marginTop:a.menuGutter})},Fie=$.createContext(null),xot=function(e){var t=e.children,r=e.minMenuHeight,n=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,l=$.useContext(Fie)||{},c=l.setPortalPlacement,u=$.useRef(null),d=$.useState(n),h=Vt(d,2),g=h[0],v=h[1],b=$.useState(null),y=Vt(b,2),x=y[0],w=y[1],k=s.spacing.controlHeight;return i_(function(){var j=u.current;if(j){var C=i==="fixed",A=a&&!C,_=vot({maxHeight:n,menuEl:j,minHeight:r,placement:o,shouldScroll:A,isFixedPosition:C,controlHeight:k});v(_.maxHeight),w(_.placement),c?.(_.placement)}},[n,o,i,a,r,c,k]),t({ref:u,placerProps:tt(tt({},e),{},{placement:x||Vie(o),maxHeight:g})})},Oot=function(e){var t=e.children,r=e.innerRef,n=e.innerProps;return Ct("div",gt({},Pn(e,"menu",{menu:!0}),{ref:r},n),t)},wot=Oot,kot=function(e,t){var r=e.maxHeight,n=e.theme.spacing.baseUnit;return tt({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:n,paddingTop:n})},Cot=function(e){var t=e.children,r=e.innerProps,n=e.innerRef,o=e.isMulti;return Ct("div",gt({},Pn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:n},r),t)},Qie=function(e,t){var r=e.theme,n=r.spacing.baseUnit,o=r.colors;return tt({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},Sot=Qie,jot=Qie,Aot=function(e){var t=e.children,r=t===void 0?"No options":t,n=e.innerProps,o=Vs(e,got);return Ct("div",gt({},Pn(tt(tt({},o),{},{children:r,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),r)},_ot=function(e){var t=e.children,r=t===void 0?"Loading...":t,n=e.innerProps,o=Vs(e,mot);return Ct("div",gt({},Pn(tt(tt({},o),{},{children:r,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),r)},Eot=function(e){var t=e.rect,r=e.offset,n=e.position;return{left:t.left,position:n,top:r,width:t.width,zIndex:1}},Pot=function(e){var t=e.appendTo,r=e.children,n=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=$.useRef(null),l=$.useRef(null),c=$.useState(Vie(i)),u=Vt(c,2),d=u[0],h=u[1],g=$.useMemo(function(){return{setPortalPlacement:h}},[]),v=$.useState(null),b=Vt(v,2),y=b[0],x=b[1],w=$.useCallback(function(){if(n){var A=lot(n),_=a==="fixed"?0:window.pageYOffset,E=A[d]+_;(E!==y?.offset||A.left!==y?.rect.left||A.width!==y?.rect.width)&&x({offset:E,rect:A})}},[n,a,d,y?.offset,y?.rect.left,y?.rect.width]);i_(function(){w()},[w]);var k=$.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),n&&s.current&&(l.current=tot(n,s.current,w,{elementResize:"ResizeObserver"in window}))},[n,w]);i_(function(){k()},[k]);var j=$.useCallback(function(A){s.current=A,k()},[k]);if(!t&&a!=="fixed"||!y)return null;var C=Ct("div",gt({ref:j},Pn(tt(tt({},e),{},{offset:y.offset,position:a,rect:y.rect}),"menuPortal",{"menu-portal":!0}),o),r);return Ct(Fie.Provider,{value:g},t?ny.createPortal(C,t):C)},Tot=function(e){var t=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},$ot=function(e){var t=e.children,r=e.innerProps,n=e.isDisabled,o=e.isRtl;return Ct("div",gt({},Pn(e,"container",{"--is-disabled":n,"--is-rtl":o}),r),t)},Rot=function(e,t){var r=e.theme.spacing,n=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return tt({alignItems:"center",display:n&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Mot=function(e){var t=e.children,r=e.innerProps,n=e.isMulti,o=e.hasValue;return Ct("div",gt({},Pn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":o}),r),t)},Iot=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Lot=function(e){var t=e.children,r=e.innerProps;return Ct("div",gt({},Pn(e,"indicatorsContainer",{indicators:!0}),r),t)},qie,Dot=["size"],zot=["innerProps","isRtl","size"],Not={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Zie=function(e){var t=e.size,r=Vs(e,Dot);return Ct("svg",gt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Not},r))},a_=function(e){return Ct(Zie,gt({size:20},e),Ct("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"}))},Uie=function(e){return Ct(Zie,gt({size:20},e),Ct("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"}))},Hie=function(e,t){var r=e.isFocused,n=e.theme,o=n.spacing.baseUnit,i=n.colors;return tt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:r?i.neutral60:i.neutral20,padding:o*2,":hover":{color:r?i.neutral80:i.neutral40}})},Bot=Hie,Vot=function(e){var t=e.children,r=e.innerProps;return Ct("div",gt({},Pn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),t||Ct(Uie,null))},Fot=Hie,Qot=function(e){var t=e.children,r=e.innerProps;return Ct("div",gt({},Pn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),t||Ct(a_,null))},qot=function(e,t){var r=e.isDisabled,n=e.theme,o=n.spacing.baseUnit,i=n.colors;return tt({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:r?i.neutral10:i.neutral20,marginBottom:o*2,marginTop:o*2})},Zot=function(e){var t=e.innerProps;return Ct("span",gt({},t,Pn(e,"indicatorSeparator",{"indicator-separator":!0})))},Uot=Vnt(qie||(qie=Fnt([`
|
|
10693
10689
|
0%, 80%, 100% { opacity: 0; }
|
|
10694
10690
|
40% { opacity: 1; }
|
|
10695
10691
|
`]))),Hot=function(e,t){var r=e.isFocused,n=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return tt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},t?{}:{color:r?i.neutral60:i.neutral20,padding:a*2})},s_=function(e){var t=e.delay,r=e.offset;return Ct("span",{css:t_({animation:"".concat(Uot," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Wot=function(e){var t=e.innerProps,r=e.isRtl,n=e.size,o=n===void 0?4:n,i=Vs(e,zot);return Ct("div",gt({},Pn(tt(tt({},i),{},{innerProps:t,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Ct(s_,{delay:0,offset:r}),Ct(s_,{delay:160,offset:!0}),Ct(s_,{delay:320,offset:!r}))},Xot=function(e,t){var r=e.isDisabled,n=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius,s=o.spacing;return tt({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:r?i.neutral5:i.neutral0,borderColor:r?i.neutral10:n?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:n?i.primary:i.neutral30}})},Yot=function(e){var t=e.children,r=e.isDisabled,n=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Ct("div",gt({ref:o},Pn(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":n,"control--menu-is-open":a}),i,{"aria-disabled":r||void 0}),t)},Got=Yot,Jot=["data"],Kot=function(e,t){var r=e.theme.spacing;return t?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},eit=function(e){var t=e.children,r=e.cx,n=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return Ct("div",gt({},Pn(e,"group",{group:!0}),s),Ct(i,gt({},a,{selectProps:u,theme:c,getStyles:n,getClassNames:o,cx:r}),l),Ct("div",null,t))},tit=function(e,t){var r=e.theme,n=r.colors,o=r.spacing;return tt({label:"group",cursor:"default",display:"block"},t?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},rit=function(e){var t=Lie(e),r=Vs(t,Jot);return Ct("div",gt({},Pn(e,"groupHeading",{"group-heading":!0}),r))},nit=eit,oit=["innerRef","isDisabled","isHidden","inputClassName"],iit=function(e,t){var r=e.isDisabled,n=e.value,o=e.theme,i=o.spacing,a=o.colors;return tt(tt({visibility:r?"hidden":"visible",transform:n?"translateZ(0)":""},ait),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},Wie={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ait={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":tt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Wie)},sit=function(e){return tt({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Wie)},lit=function(e){var t=e.cx,r=e.value,n=Lie(e),o=n.innerRef,i=n.isDisabled,a=n.isHidden,s=n.inputClassName,l=Vs(n,oit);return Ct("div",gt({},Pn(e,"input",{"input-container":!0}),{"data-value":r||""}),Ct("input",gt({className:t({input:!0},s),ref:o,style:sit(a),disabled:i},l)))},cit=lit,uit=function(e,t){var r=e.theme,n=r.spacing,o=r.borderRadius,i=r.colors;return tt({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:n.baseUnit/2})},dit=function(e,t){var r=e.theme,n=r.borderRadius,o=r.colors,i=e.cropWithEllipsis;return tt({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:n/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},pit=function(e,t){var r=e.theme,n=r.spacing,o=r.borderRadius,i=r.colors,a=e.isFocused;return tt({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},Xie=function(e){var t=e.children,r=e.innerProps;return Ct("div",r,t)},hit=Xie,fit=Xie;function git(e){var t=e.children,r=e.innerProps;return Ct("div",gt({role:"button"},r),t||Ct(a_,{size:14}))}var mit=function(e){var t=e.children,r=e.components,n=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=r.Container,c=r.Label,u=r.Remove;return Ct(l,{data:n,innerProps:tt(tt({},Pn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},Ct(c,{data:n,innerProps:tt({},Pn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Ct(u,{data:n,innerProps:tt(tt({},Pn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},vit=mit,bit=function(e,t){var r=e.isDisabled,n=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return tt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:n?s.primary25:"transparent",color:r?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?s.primary:s.primary50}})},yit=function(e){var t=e.children,r=e.isDisabled,n=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Ct("div",gt({},Pn(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":n,"option--is-selected":o}),{ref:i,"aria-disabled":r},a),t)},xit=yit,Oit=function(e,t){var r=e.theme,n=r.spacing,o=r.colors;return tt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},wit=function(e){var t=e.children,r=e.innerProps;return Ct("div",gt({},Pn(e,"placeholder",{placeholder:!0}),r),t)},kit=wit,Cit=function(e,t){var r=e.isDisabled,n=e.theme,o=n.spacing,i=n.colors;return tt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:r?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Sit=function(e){var t=e.children,r=e.isDisabled,n=e.innerProps;return Ct("div",gt({},Pn(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),n),t)},jit=Sit,$3={ClearIndicator:Qot,Control:Got,DropdownIndicator:Vot,DownChevron:Uie,CrossIcon:a_,Group:nit,GroupHeading:rit,IndicatorsContainer:Lot,IndicatorSeparator:Zot,Input:cit,LoadingIndicator:Wot,Menu:wot,MenuList:Cot,MenuPortal:Pot,LoadingMessage:_ot,NoOptionsMessage:Aot,MultiValue:vit,MultiValueContainer:hit,MultiValueLabel:fit,MultiValueRemove:git,Option:xit,Placeholder:kit,SelectContainer:$ot,SingleValue:jit,ValueContainer:Mot},Ait=function(e){return tt(tt({},$3),e.components)},Yie=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function _it(e,t){return!!(e===t||Yie(e)&&Yie(t))}function Eit(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!_it(e[r],t[r]))return!1;return!0}function Pit(e,t){t===void 0&&(t=Eit);var r=null;function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(r&&r.lastThis===this&&t(o,r.lastArgs))return r.lastResult;var a=e.apply(this,o);return r={lastResult:a,lastArgs:o,lastThis:this},a}return n.clear=function(){r=null},n}for(var Tit={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"},$it=function(e){return Ct("span",gt({css:Tit},e))},Gie=$it,Rit={guidance:function(e){var t=e.isSearchable,r=e.isMulti,n=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){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(n?", 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(r?" 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,r=e.label,n=r===void 0?"":r,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return i?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(e){var t=e.context,r=e.focused,n=e.options,o=e.label,i=o===void 0?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(g,v){return g&&g.length?"".concat(g.indexOf(v)+1," of ").concat(g.length):""};if(t==="value"&&a)return"value ".concat(i," focused, ").concat(u(a,r),".");if(t==="menu"&&c){var d=s?" disabled":"",h="".concat(l?" selected":"").concat(d);return"".concat(i).concat(h,", ").concat(u(n,r),".")}return""},onFilter:function(e){var t=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}},Mit=function(e){var t=e.ariaSelection,r=e.focusedOption,n=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,u=s.ariaLiveMessages,d=s.getOptionLabel,h=s.inputValue,g=s.isMulti,v=s.isOptionDisabled,b=s.isSearchable,y=s.menuIsOpen,x=s.options,w=s.screenReaderStatus,k=s.tabSelectsValue,j=s.isLoading,C=s["aria-label"],A=s["aria-live"],_=$.useMemo(function(){return tt(tt({},Rit),u||{})},[u]),E=$.useMemo(function(){var L="";if(t&&_.onChange){var H=t.option,Y=t.options,te=t.removedValue,K=t.removedValues,se=t.value,U=function(G){return Array.isArray(G)?null:G},Q=te||H||U(se),X=Q?d(Q):"",q=Y||K||void 0,W=q?q.map(d):[],re=tt({isDisabled:Q&&v(Q,a),label:X,labels:W},t);L=_.onChange(re)}return L},[t,_,v,a,d]),P=$.useMemo(function(){var L="",H=r||n,Y=!!(r&&a&&a.includes(r));if(H&&_.onFocus){var te={focused:H,label:d(H),isDisabled:v(H,a),isSelected:Y,options:o,context:H===r?"menu":"value",selectValue:a,isAppleDevice:c};L=_.onFocus(te)}return L},[r,n,d,v,_,o,a,c]),M=$.useMemo(function(){var L="";if(y&&x.length&&!j&&_.onFilter){var H=w({count:o.length});L=_.onFilter({inputValue:h,resultsMessage:H})}return L},[o,h,y,_,x,w,j]),D=t?.action==="initial-input-focus",I=$.useMemo(function(){var L="";if(_.guidance){var H=n?"value":y?"menu":"input";L=_.guidance({"aria-label":C,context:H,isDisabled:r&&v(r,a),isMulti:g,isSearchable:b,tabSelectsValue:k,isInitialFocus:D})}return L},[C,r,n,g,v,b,y,_,a,k,D]),N=Ct($.Fragment,null,Ct("span",{id:"aria-selection"},E),Ct("span",{id:"aria-focused"},P),Ct("span",{id:"aria-results"},M),Ct("span",{id:"aria-guidance"},I));return Ct($.Fragment,null,Ct(Gie,{id:l},D&&N),Ct(Gie,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!D&&N))},Iit=Mit,l_=[{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"}],Lit=new RegExp("["+l_.map(function(e){return e.letters}).join("")+"]","g"),Jie={},c_=0;c_<l_.length;c_++)for(var u_=l_[c_],d_=0;d_<u_.letters.length;d_++)Jie[u_.letters[d_]]=u_.base;var Kie=function(e){return e.replace(Lit,function(t){return Jie[t]})},Dit=Pit(Kie),eae=function(e){return e.replace(/^\s+|\s+$/g,"")},zit=function(e){return"".concat(e.label," ").concat(e.value)},Nit=function(e){return function(t,r){if(t.data.__isNew__)return!0;var n=tt({ignoreCase:!0,ignoreAccents:!0,stringify:zit,trim:!0,matchFrom:"any"},e),o=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,s=n.trim,l=n.matchFrom,c=s?eae(r):r,u=s?eae(a(t)):a(t);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=Dit(c),u=Kie(u)),l==="start"?u.substr(0,c.length)===c:u.indexOf(c)>-1}},Bit=["innerRef"];function Vit(e){var t=e.innerRef,r=Vs(e,Bit),n=fot(r,"onExited","in","enter","exit","appear");return Ct("input",gt({ref:t},n,{css:t_({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 Fit=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function Qit(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=$.useRef(!1),s=$.useRef(!1),l=$.useRef(0),c=$.useRef(null),u=$.useCallback(function(y,x){if(c.current!==null){var w=c.current,k=w.scrollTop,j=w.scrollHeight,C=w.clientHeight,A=c.current,_=x>0,E=j-C-k,P=!1;E>x&&a.current&&(n&&n(y),a.current=!1),_&&s.current&&(i&&i(y),s.current=!1),_&&x>E?(r&&!a.current&&r(y),A.scrollTop=j,P=!0,a.current=!0):!_&&-x>k&&(o&&!s.current&&o(y),A.scrollTop=0,P=!0,s.current=!0),P&&Fit(y)}},[r,n,o,i]),d=$.useCallback(function(y){u(y,y.deltaY)},[u]),h=$.useCallback(function(y){l.current=y.changedTouches[0].clientY},[]),g=$.useCallback(function(y){var x=l.current-y.changedTouches[0].clientY;u(y,x)},[u]),v=$.useCallback(function(y){if(y){var x=dot?{passive:!1}:!1;y.addEventListener("wheel",d,x),y.addEventListener("touchstart",h,x),y.addEventListener("touchmove",g,x)}},[g,h,d]),b=$.useCallback(function(y){y&&(y.removeEventListener("wheel",d,!1),y.removeEventListener("touchstart",h,!1),y.removeEventListener("touchmove",g,!1))},[g,h,d]);return $.useEffect(function(){if(t){var y=c.current;return v(y),function(){b(y)}}},[t,v,b]),function(y){c.current=y}}var tae=["boxSizing","height","overflow","paddingRight","position"],rae={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function nae(e){e.cancelable&&e.preventDefault()}function oae(e){e.stopPropagation()}function iae(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function aae(){return"ontouchstart"in window||navigator.maxTouchPoints}var sae=!!(typeof window<"u"&&window.document&&window.document.createElement),E0=0,Df={capture:!1,passive:!1};function qit(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=$.useRef({}),i=$.useRef(null),a=$.useCallback(function(l){if(sae){var c=document.body,u=c&&c.style;if(n&&tae.forEach(function(v){var b=u&&u[v];o.current[v]=b}),n&&E0<1){var d=parseInt(o.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,g=window.innerWidth-h+d||0;Object.keys(rae).forEach(function(v){var b=rae[v];u&&(u[v]=b)}),u&&(u.paddingRight="".concat(g,"px"))}c&&aae()&&(c.addEventListener("touchmove",nae,Df),l&&(l.addEventListener("touchstart",iae,Df),l.addEventListener("touchmove",oae,Df))),E0+=1}},[n]),s=$.useCallback(function(l){if(sae){var c=document.body,u=c&&c.style;E0=Math.max(E0-1,0),n&&E0<1&&tae.forEach(function(d){var h=o.current[d];u&&(u[d]=h)}),c&&aae()&&(c.removeEventListener("touchmove",nae,Df),l&&(l.removeEventListener("touchstart",iae,Df),l.removeEventListener("touchmove",oae,Df)))}},[n]);return $.useEffect(function(){if(t){var l=i.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){i.current=l}}var Zit=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Uit={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Hit(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,i=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=Qit({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),u=qit({isEnabled:r}),d=function(h){c(h),u(h)};return Ct($.Fragment,null,r&&Ct("div",{onClick:Zit,css:Uit}),t(d))}var Wit={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Xit=function(e){var t=e.name,r=e.onFocus;return Ct("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Wit,value:"",onChange:function(){}})},Yit=Xit;function p_(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 Git(){return p_(/^iPhone/i)}function lae(){return p_(/^Mac/i)}function Jit(){return p_(/^iPad/i)||lae()&&navigator.maxTouchPoints>1}function Kit(){return Git()||Jit()}function eat(){return lae()||Kit()}var tat=function(e){return e.label},rat=function(e){return e.label},nat=function(e){return e.value},oat=function(e){return!!e.isDisabled},iat={clearIndicator:Fot,container:Tot,control:Xot,dropdownIndicator:Bot,group:Kot,groupHeading:tit,indicatorsContainer:Iot,indicatorSeparator:qot,input:iit,loadingIndicator:Hot,loadingMessage:jot,menu:yot,menuList:kot,menuPortal:Eot,multiValue:uit,multiValueLabel:dit,multiValueRemove:pit,noOptionsMessage:Sot,option:bit,placeholder:Oit,singleValue:Cit,valueContainer:Rot},aat={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%)"},sat=4,cae=4,lat=38,cat=cae*2,uat={baseUnit:cae,controlHeight:lat,menuGutter:cat},h_={borderRadius:sat,colors:aat,spacing:uat},dat={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Nie(),captureMenuScroll:!Nie(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Nit(),formatGroupLabel:tat,getOptionLabel:rat,getOptionValue:nat,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:oat,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!cot(),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 uae(e,t,r,n){var o=gae(e,t,r),i=mae(e,t,r),a=fae(e,t),s=M3(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:s,index:n}}function R3(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(a,s){return uae(e,a,t,s)}).filter(function(a){return hae(e,a)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=uae(e,r,t,n);return hae(e,i)?i:void 0}).filter(pot)}function dae(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,xf(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function pae(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,xf(n.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function pat(e,t){return dae(R3(e,t))}function hae(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!bae(e)||!i)&&vae(e,{label:a,value:s,data:o},n)}function hat(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var i=t.indexOf(r);if(i>-1)return r;if(o<t.length)return t[o]}return null}function fat(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var f_=function(e,t){var r,n=(r=e.find(function(o){return o.data===t}))===null||r===void 0?void 0:r.id;return n||null},fae=function(e,t){return e.getOptionLabel(t)},M3=function(e,t){return e.getOptionValue(t)};function gae(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function mae(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=M3(e,t);return r.some(function(o){return M3(e,o)===n})}function vae(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var bae=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return t===void 0?r:t},gat=1,yae=function(e){aA(r,e);var t=lA(r);function r(n){var o;if(oA(this,r),o=t.call(this,n),o.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:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=eat(),o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,c){var u=o.props,d=u.onChange,h=u.name;c.name=h,o.ariaOnChange(l,c),d(l,c)},o.setValue=function(l,c,u){var d=o.props,h=d.closeMenuOnSelect,g=d.isMulti,v=d.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:v}),h&&(o.setState({inputIsHiddenAfterUpdate:!g}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:c,option:u})},o.selectOption=function(l){var c=o.props,u=c.blurInputOnSelect,d=c.isMulti,h=c.name,g=o.state.selectValue,v=d&&o.isOptionSelected(l,g),b=o.isOptionDisabled(l,g);if(v){var y=o.getOptionValue(l);o.setValue(g.filter(function(x){return o.getOptionValue(x)!==y}),"deselect-option",l)}else if(!b)d?o.setValue([].concat(xf(g),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:h});return}u&&o.blurInput()},o.removeValue=function(l){var c=o.props.isMulti,u=o.state.selectValue,d=o.getOptionValue(l),h=u.filter(function(v){return o.getOptionValue(v)!==d}),g=T3(c,h,h[0]||null);o.onChange(g,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(T3(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,c=o.state.selectValue,u=c[c.length-1],d=c.slice(0,c.length-1),h=T3(l,d,d[0]||null);u&&o.onChange(h,{action:"pop-value",removedValue:u})},o.getFocusedOptionId=function(l){return f_(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return pae(R3(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return oot.apply(void 0,[o.props.classNamePrefix].concat(c))},o.getOptionLabel=function(l){return fae(o.props,l)},o.getOptionValue=function(l){return M3(o.props,l)},o.getStyles=function(l,c){var u=o.props.unstyled,d=iat[l](c,u);d.boxSizing="border-box";var h=o.props.styles[l];return h?h(d,c):d},o.getClassNames=function(l,c){var u,d;return(u=(d=o.props.classNames)[l])===null||u===void 0?void 0:u.call(d,c)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return Ait(o.props)},o.buildCategorizedOptions=function(){return R3(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return dae(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,c){o.setState({ariaSelection:tt({value:l},c)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():c&&o.openMenu("first"):(c&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var c=o.props,u=c.isMulti,d=c.menuIsOpen;o.focusInput(),d?(o.setState({inputIsHiddenAfterUpdate:!u}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&A3(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(o.initialTouchX=u.clientX,o.initialTouchY=u.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var d=Math.abs(u.clientX-o.initialTouchX),h=Math.abs(u.clientY-o.initialTouchY),g=5;o.userIsDragging=d>g||h>g}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var c=o.props.inputValue,u=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:c}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var c=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:c}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var c=o.getFocusableOptions(),u=c.indexOf(l);o.setState({focusedOption:l,focusedOptionId:u>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return bae(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var c=o.props,u=c.isMulti,d=c.backspaceRemovesValue,h=c.escapeClearsValue,g=c.inputValue,v=c.isClearable,b=c.isDisabled,y=c.menuIsOpen,x=c.onKeyDown,w=c.tabSelectsValue,k=c.openMenuOnFocus,j=o.state,C=j.focusedOption,A=j.focusedValue,_=j.selectValue;if(!b&&!(typeof x=="function"&&(x(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||g)return;o.focusValue("previous");break;case"ArrowRight":if(!u||g)return;o.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(A)o.removeValue(A);else{if(!d)return;u?o.popValue():v&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!y||!w||!C||k&&o.isOptionSelected(C,_))return;o.selectOption(C);break;case"Enter":if(l.keyCode===229)break;if(y){if(!C||o.isComposing)return;o.selectOption(C);break}return;case"Escape":y?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:g}),o.onMenuClose()):v&&h&&o.clearValue();break;case" ":if(g)return;if(!y){o.openMenu("first");break}if(!C)return;o.selectOption(C);break;case"ArrowUp":y?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":y?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!y)return;o.focusOption("pageup");break;case"PageDown":if(!y)return;o.focusOption("pagedown");break;case"Home":if(!y)return;o.focusOption("first");break;case"End":if(!y)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++gat),o.state.selectValue=Iie(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),s=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[s],o.state.focusedOptionId=f_(i,a[s])}return o}return iA(r,[{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&&zie(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(n){var o=this.props,i=o.isDisabled,a=o.menuIsOpen,s=this.state.isFocused;(s&&!i&&n.isDisabled||s&&a&&!n.menuIsOpen)&&this.focusInput(),s&&i&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!i&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(zie(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(n,o){this.props.onInputChange(n,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(n){var o=this,i=this.state,a=i.selectValue,s=i.isFocused,l=this.buildFocusableOptions(),c=n==="first"?0:l.length-1;if(!this.props.isMulti){var u=l.indexOf(a[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 o.onMenuOpen()})}},{key:"focusValue",value:function(n){var o=this.state,i=o.selectValue,a=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=i.indexOf(a);a||(s=-1);var l=i.length-1,c=-1;if(i.length){switch(n){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 n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,i=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var s=0,l=a.indexOf(i);i||(l=-1),n==="up"?s=l>0?l-1:a.length-1:n==="down"?s=(l+1)%a.length:n==="pageup"?(s=l-o,s<0&&(s=0)):n==="pagedown"?(s=l+o,s>a.length-1&&(s=a.length-1)):n==="last"&&(s=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(h_):tt(tt({},h_),this.props.theme):h_}},{key:"getCommonProps",value:function(){var n=this.clearValue,o=this.cx,i=this.getStyles,a=this.getClassNames,s=this.getValue,l=this.selectOption,c=this.setValue,u=this.props,d=u.isMulti,h=u.isRtl,g=u.options,v=this.hasValue();return{clearValue:n,cx:o,getStyles:i,getClassNames:a,getValue:s,hasValue:v,isMulti:d,isRtl:h,options:g,selectOption:l,selectProps:u,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var n=this.state.selectValue;return n.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var n=this.props,o=n.isClearable,i=n.isMulti;return o===void 0?i:o}},{key:"isOptionDisabled",value:function(n,o){return gae(this.props,n,o)}},{key:"isOptionSelected",value:function(n,o){return mae(this.props,n,o)}},{key:"filterOption",value:function(n,o){return vae(this.props,n,o)}},{key:"formatOptionLabel",value:function(n,o){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(n,{context:o,inputValue:i,selectValue:a})}else return this.getOptionLabel(n)}},{key:"formatGroupLabel",value:function(n){return this.props.formatGroupLabel(n)}},{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 n=this.props,o=n.isDisabled,i=n.isSearchable,a=n.inputId,s=n.inputValue,l=n.tabIndex,c=n.form,u=n.menuIsOpen,d=n.required,h=this.getComponents(),g=h.Input,v=this.state,b=v.inputIsHidden,y=v.ariaSelection,x=this.commonProps,w=a||this.getElementId("input"),k=tt(tt(tt({"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()?y?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?$.createElement(g,gt({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:o,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:s},k)):$.createElement(Vit,gt({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:j3,onFocus:this.onInputFocus,disabled:o,tabIndex:l,inputMode:"none",form:c,value:""},k))}},{key:"renderPlaceholderOrValue",value:function(){var n=this,o=this.getComponents(),i=o.MultiValue,a=o.MultiValueContainer,s=o.MultiValueLabel,l=o.MultiValueRemove,c=o.SingleValue,u=o.Placeholder,d=this.commonProps,h=this.props,g=h.controlShouldRenderValue,v=h.isDisabled,b=h.isMulti,y=h.inputValue,x=h.placeholder,w=this.state,k=w.selectValue,j=w.focusedValue,C=w.isFocused;if(!this.hasValue()||!g)return y?null:$.createElement(u,gt({},d,{key:"placeholder",isDisabled:v,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),x);if(b)return k.map(function(_,E){var P=_===j,M="".concat(n.getOptionLabel(_),"-").concat(n.getOptionValue(_));return $.createElement(i,gt({},d,{components:{Container:a,Label:s,Remove:l},isFocused:P,isDisabled:v,key:M,index:E,removeProps:{onClick:function(){return n.removeValue(_)},onTouchEnd:function(){return n.removeValue(_)},onMouseDown:function(D){D.preventDefault()}},data:_}),n.formatOptionLabel(_,"value"))});if(y)return null;var A=k[0];return $.createElement(c,gt({},d,{data:A,isDisabled:v}),this.formatOptionLabel(A,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),o=n.ClearIndicator,i=this.commonProps,a=this.props,s=a.isDisabled,l=a.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||l)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return $.createElement(o,gt({},i,{innerProps:u,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),o=n.LoadingIndicator,i=this.commonProps,a=this.props,s=a.isDisabled,l=a.isLoading,c=this.state.isFocused;if(!o||!l)return null;var u={"aria-hidden":"true"};return $.createElement(o,gt({},i,{innerProps:u,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator,i=n.IndicatorSeparator;if(!o||!i)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused;return $.createElement(i,gt({},a,{isDisabled:s,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator;if(!o)return null;var i=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return $.createElement(o,gt({},i,{innerProps:l,isDisabled:a,isFocused:s}))}},{key:"renderMenu",value:function(){var n=this,o=this.getComponents(),i=o.Group,a=o.GroupHeading,s=o.Menu,l=o.MenuList,c=o.MenuPortal,u=o.LoadingMessage,d=o.NoOptionsMessage,h=o.Option,g=this.commonProps,v=this.state.focusedOption,b=this.props,y=b.captureMenuScroll,x=b.inputValue,w=b.isLoading,k=b.loadingMessage,j=b.minMenuHeight,C=b.maxMenuHeight,A=b.menuIsOpen,_=b.menuPlacement,E=b.menuPosition,P=b.menuPortalTarget,M=b.menuShouldBlockScroll,D=b.menuShouldScrollIntoView,I=b.noOptionsMessage,N=b.onMenuScrollToTop,L=b.onMenuScrollToBottom;if(!A)return null;var H=function(Q,X){var q=Q.type,W=Q.data,re=Q.isDisabled,G=Q.isSelected,oe=Q.label,ne=Q.value,ve=v===W,me=re?void 0:function(){return n.onOptionHover(W)},T=re?void 0:function(){return n.selectOption(W)},Z="".concat(n.getElementId("option"),"-").concat(X),fe={id:Z,onClick:T,onMouseMove:me,onMouseOver:me,tabIndex:-1,role:"option","aria-selected":n.isAppleDevice?void 0:G};return $.createElement(h,gt({},g,{innerProps:fe,data:W,isDisabled:re,isSelected:G,key:Z,label:oe,type:q,value:ne,isFocused:ve,innerRef:ve?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(Q.data,"menu"))},Y;if(this.hasOptions())Y=this.getCategorizedOptions().map(function(Q){if(Q.type==="group"){var X=Q.data,q=Q.options,W=Q.index,re="".concat(n.getElementId("group"),"-").concat(W),G="".concat(re,"-heading");return $.createElement(i,gt({},g,{key:re,data:X,options:q,Heading:a,headingProps:{id:G,data:Q.data},label:n.formatGroupLabel(Q.data)}),Q.options.map(function(oe){return H(oe,"".concat(W,"-").concat(oe.index))}))}else if(Q.type==="option")return H(Q,"".concat(Q.index))});else if(w){var te=k({inputValue:x});if(te===null)return null;Y=$.createElement(u,g,te)}else{var K=I({inputValue:x});if(K===null)return null;Y=$.createElement(d,g,K)}var se={minMenuHeight:j,maxMenuHeight:C,menuPlacement:_,menuPosition:E,menuShouldScrollIntoView:D},U=$.createElement(xot,gt({},g,se),function(Q){var X=Q.ref,q=Q.placerProps,W=q.placement,re=q.maxHeight;return $.createElement(s,gt({},g,se,{innerRef:X,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:w,placement:W}),$.createElement(Hit,{captureEnabled:y,onTopArrive:N,onBottomArrive:L,lockEnabled:M},function(G){return $.createElement(l,gt({},g,{innerRef:function(oe){n.getMenuListRef(oe),G(oe)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:n.getElementId("listbox")},isLoading:w,maxHeight:re,focusedOption:v}),Y)}))});return P||E==="fixed"?$.createElement(c,gt({},g,{appendTo:P,controlElement:this.controlRef,menuPlacement:_,menuPosition:E}),U):U}},{key:"renderFormField",value:function(){var n=this,o=this.props,i=o.delimiter,a=o.isDisabled,s=o.isMulti,l=o.name,c=o.required,u=this.state.selectValue;if(c&&!this.hasValue()&&!a)return $.createElement(Yit,{name:l,onFocus:this.onValueInputFocus});if(!(!l||a))if(s)if(i){var d=u.map(function(v){return n.getOptionValue(v)}).join(i);return $.createElement("input",{name:l,type:"hidden",value:d})}else{var h=u.length>0?u.map(function(v,b){return $.createElement("input",{key:"i-".concat(b),name:l,type:"hidden",value:n.getOptionValue(v)})}):$.createElement("input",{name:l,type:"hidden",value:""});return $.createElement("div",null,h)}else{var g=u[0]?this.getOptionValue(u[0]):"";return $.createElement("input",{name:l,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var n=this.commonProps,o=this.state,i=o.ariaSelection,a=o.focusedOption,s=o.focusedValue,l=o.isFocused,c=o.selectValue,u=this.getFocusableOptions();return $.createElement(Iit,gt({},n,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:a,focusedValue:s,isFocused:l,selectValue:c,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var n=this.getComponents(),o=n.Control,i=n.IndicatorsContainer,a=n.SelectContainer,s=n.ValueContainer,l=this.props,c=l.className,u=l.id,d=l.isDisabled,h=l.menuIsOpen,g=this.state.isFocused,v=this.commonProps=this.getCommonProps();return $.createElement(a,gt({},v,{className:c,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:g}),this.renderLiveRegion(),$.createElement(o,gt({},v,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:g,menuIsOpen:h}),$.createElement(s,gt({},v,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),$.createElement(i,gt({},v,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,o){var i=o.prevProps,a=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,l=o.ariaSelection,c=o.isFocused,u=o.prevWasFocused,d=o.instancePrefix,h=n.options,g=n.value,v=n.menuIsOpen,b=n.inputValue,y=n.isMulti,x=Iie(g),w={};if(i&&(g!==i.value||h!==i.options||v!==i.menuIsOpen||b!==i.inputValue)){var k=v?pat(n,x):[],j=v?pae(R3(n,x),"".concat(d,"-option")):[],C=a?hat(o,x):null,A=fat(o,k),_=f_(j,A);w={selectValue:x,focusedOption:A,focusedOptionId:_,focusableOptionsWithIds:j,focusedValue:C,clearFocusValueOnUpdate:!1}}var E=s!=null&&n!==i?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},P=l,M=c&&u;return c&&!M&&(P={value:T3(y,x,x[0]||null),options:x,action:"initial-input-focus"},M=!u),l?.action==="initial-input-focus"&&(P=null),tt(tt(tt({},w),E),{},{prevProps:n,ariaSelection:P,prevWasFocused:M})}}]),r}($.Component);yae.defaultProps=dat;var mat=$.forwardRef(function(e,t){var r=Wrt(e);return $.createElement(yae,gt({ref:t},r))}),vat=mat;const bat=()=>f.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.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"})}),yat=()=>f.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.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"})}),Gu=({options:e,isClearable:t=!1,isSearchable:r=!1,isDisabled:n=!1,isMulti:o=!1,isWarning:i=!1,isError:a=!1,withArrow:s=!0,placeholder:l,defaultValue:c,className:u,value:d,ariaLabel:h="select",ariaLabeledBy:g,size:v="medium",menuAlignment:b="left",icon:y,formatGroupLabel:x,onChange:w,dataTestId:k})=>{const j=P=>{const{selectProps:M}=P,{menuIsOpen:D}=M,I=D?f.jsx(t7,{size:"14px"}):f.jsx(yi,{size:"14px"});return s&&!o?f.jsxs($3.DropdownIndicator,{...P,children:[i&&f.jsx(bat,{}),a&&f.jsx(yat,{}),y||I]}):null},C=P=>f.jsxs($3.Option,{...P,innerProps:{...P.innerProps,"data-testid":"select-option"},children:[P.children," ",P.isSelected&&f.jsx(vl,{})]}),A=P=>f.jsx($3.SingleValue,{...P,innerProps:{...P.innerProps,"data-testid":k||"select-singleValue"},children:P.children}),_=$.useMemo(()=>({menu:P=>({...P,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]),E=$.useMemo(()=>({dropdownIndicator:()=>({display:"none"})}),[]);return f.jsx(vat,{className:`${u} react-select-${v}`,options:e,onChange:w,isSearchable:r,isClearable:t,isDisabled:n,isMulti:o,placeholder:l,defaultValue:c,value:d,formatGroupLabel:x,components:{Option:C,SingleValue:A,DropdownIndicator:j,IndicatorSeparator:null},styles:{...xat,..._,...n?E:{}},"aria-label":h,"aria-labelledby":g})},xat={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)"}})},li=V(Ze).attrs({variant:"text",size:"small",tone:"danger"})`
|