@redocly/openapi-docs 3.24.0-next.7 → 3.24.0-next.8

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.
Files changed (17) hide show
  1. package/dist/{redocly-openapi-docs.min.AiChatProvider-gAsQoX30.js → redocly-openapi-docs.min.AiChatProvider-D8o94qvX.js} +1 -1
  2. package/dist/{redocly-openapi-docs.min.AiChatSqliteDBStorage-CnYt8ojK.js → redocly-openapi-docs.min.AiChatSqliteDBStorage-BLTom3F-.js} +1 -1
  3. package/dist/{redocly-openapi-docs.min.AiPanel-Bvkd__SH.js → redocly-openapi-docs.min.AiPanel-DloIzPy9.js} +184 -165
  4. package/dist/{redocly-openapi-docs.min.SqliteDBStorage-C6xTN7YJ.js → redocly-openapi-docs.min.SqliteDBStorage-CksbFVf-.js} +1 -1
  5. package/dist/{redocly-openapi-docs.min.ai-chat-mappers-3WKBUVis.js → redocly-openapi-docs.min.ai-chat-mappers-Dza6UMVG.js} +1 -1
  6. package/dist/{redocly-openapi-docs.min.external-resolver-4BBxclf5.js → redocly-openapi-docs.min.external-resolver-Cm8qMSH6.js} +1 -1
  7. package/dist/{redocly-openapi-docs.min.index-DswpnLh3.js → redocly-openapi-docs.min.index-CVScN5cj.js} +1251 -1229
  8. package/dist/{redocly-openapi-docs.min.index-C4nhoQHY.js → redocly-openapi-docs.min.index-DQKkHTdL.js} +1 -1
  9. package/dist/{redocly-openapi-docs.min.index-IvDdPWpQ.js → redocly-openapi-docs.min.index-DWPYSZX6.js} +1 -1
  10. package/dist/redocly-openapi-docs.min.js +1 -1
  11. package/dist/{redocly-openapi-docs.min.lint-DxrZW_dt.js → redocly-openapi-docs.min.lint-B0W-5WwE.js} +2 -2
  12. package/dist/{redocly-openapi-docs.min.lint-graphql-BJaf-iso.js → redocly-openapi-docs.min.lint-graphql-y6yM0_Y_.js} +1 -1
  13. package/dist/{redocly-openapi-docs.min.respect-run-BxLhw6rg.js → redocly-openapi-docs.min.respect-run-C77Wul9G.js} +1 -1
  14. package/dist/{redocly-openapi-docs.min.standalone-DYNn4rpC.js → redocly-openapi-docs.min.standalone-BFWv5fnd.js} +3 -3
  15. package/dist/{redocly-openapi-docs.min.tauri-path-DkXXjCOS.js → redocly-openapi-docs.min.tauri-path-Dc9-nUUG.js} +1 -1
  16. package/dist/{redocly-openapi-docs.min.useAiChatQueries-DA3WodeG.js → redocly-openapi-docs.min.useAiChatQueries-B9Y_hT0w.js} +35 -33
  17. package/package.json +2 -2
@@ -6669,7 +6669,7 @@ Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}
6669
6669
  pointer-events: none;
6670
6670
  animation: ${Qte()} 1.2s infinite;
6671
6671
  `}
6672
- `,rre=e=>{const{languageInsensitive:t,fullWidth:r,blinking:n,iconPosition:o,icon:a,children:i,variant:s,tone:c,size:u,extraClass:d,to:f,external:g,className:y,...v}=e,x="tabIndex"in e?e.tabIndex:e.to?-1:void 0,C=m.jsxs(tre,{"data-component-name":"Button/Button",...v,className:ere({variant:s,tone:c,size:u,extraClass:d,className:y}),$fullWidth:r,$blinking:n,$iconPosition:o,$icon:a,$iconOnly:!i&&a!=null,$variant:s,$size:u,tabIndex:x,children:[a&&o!=="right"&&a,i,a&&o==="right"&&a]});return f?m.jsx(Xte,{to:f,external:g,languageInsensitive:t,onClick:e.onClick,children:C}):C},bt=ye(rre)``;function Ma(){const e=D.useId().replace(/:/g,"_");return t=>`${t}-${e}`}var ip={},sp={},HA={},WA;function nre(){return WA||(WA=1,Object.defineProperty(HA,"__esModule",{value:!0})),HA}var Rd={},lp={},Ld={};const Ll="1.9.1",GA=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function ore(e){const t=new Set([e]),r=new Set,n=e.match(GA);if(!n)return()=>!1;const o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(s){return s===e};function a(s){return r.add(s),!1}function i(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(r.has(s))return!1;const c=s.match(GA);if(!c)return a(s);const u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||o.major!==u.major?a(s):o.major===0?o.minor===u.minor&&o.patch<=u.patch?i(s):a(s):o.minor<=u.minor?i(s):a(s)}}const are=ore(Ll),ire=Ll.split(".")[0],jd=Symbol.for(`opentelemetry.js.api.${ire}`),Pd=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{};function Nd(e,t,r,n=!1){var o;const a=Pd[jd]=(o=Pd[jd])!==null&&o!==void 0?o:{version:Ll};if(!n&&a[e]){const i=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(i.stack||i.message),!1}if(a.version!==Ll){const i=new Error(`@opentelemetry/api: Registration of version v${a.version} for ${e} does not match previously registered API v${Ll}`);return r.error(i.stack||i.message),!1}return a[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${Ll}.`),!0}function jl(e){var t,r;const n=(t=Pd[jd])===null||t===void 0?void 0:t.version;if(!(!n||!are(n)))return(r=Pd[jd])===null||r===void 0?void 0:r[e]}function Id(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${Ll}.`);const r=Pd[jd];r&&delete r[e]}class sre{constructor(t){this._namespace=t.namespace||"DiagComponentLogger"}debug(...t){return $d("debug",this._namespace,t)}error(...t){return $d("error",this._namespace,t)}info(...t){return $d("info",this._namespace,t)}warn(...t){return $d("warn",this._namespace,t)}verbose(...t){return $d("verbose",this._namespace,t)}}function $d(e,t,r){const n=jl("diag");if(n)return n[e](t,...r)}var Qn;(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"})(Qn||(Qn={}));function lre(e,t){e<Qn.NONE?e=Qn.NONE:e>Qn.ALL&&(e=Qn.ALL),t=t||{};function r(n,o){const a=t[n];return typeof a=="function"&&e>=o?a.bind(t):function(){}}return{error:r("error",Qn.ERROR),warn:r("warn",Qn.WARN),info:r("info",Qn.INFO),debug:r("debug",Qn.DEBUG),verbose:r("verbose",Qn.VERBOSE)}}const cre="diag";class Zo{static instance(){return this._instance||(this._instance=new Zo),this._instance}constructor(){function t(o){return function(...a){const i=jl("diag");if(i)return i[o](...a)}}const r=this,n=(o,a={logLevel:Qn.INFO})=>{var i,s,c;if(o===r){const f=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((i=f.stack)!==null&&i!==void 0?i:f.message),!1}typeof a=="number"&&(a={logLevel:a});const u=jl("diag"),d=lre((s=a.logLevel)!==null&&s!==void 0?s:Qn.INFO,o);if(u&&!a.suppressOverrideMessage){const f=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";u.warn(`Current logger will be overwritten from ${f}`),d.warn(`Current logger will overwrite one already registered from ${f}`)}return Nd("diag",d,r,!0)};r.setLogger=n,r.disable=()=>{Id(cre,r)},r.createComponentLogger=o=>new sre(o),r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}}class uu{constructor(t){this._entries=t?new Map(t):new Map}getEntry(t){const r=this._entries.get(t);if(r)return Object.assign({},r)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(t,r){const n=new uu(this._entries);return n._entries.set(t,r),n}removeEntry(t){const r=new uu(this._entries);return r._entries.delete(t),r}removeEntries(...t){const r=new uu(this._entries);for(const n of t)r._entries.delete(n);return r}clear(){return new uu}}const pre=Symbol("BaggageEntryMetadata"),ure=Zo.instance();function dre(e={}){return new uu(new Map(Object.entries(e)))}function YA(e){return typeof e!="string"&&(ure.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:pre,toString(){return e}}}function ug(e){return Symbol.for(e)}class py{constructor(t){const r=this;r._currentContext=t?new Map(t):new Map,r.getValue=n=>r._currentContext.get(n),r.setValue=(n,o)=>{const a=new py(r._currentContext);return a._currentContext.set(n,o),a},r.deleteValue=n=>{const o=new py(r._currentContext);return o._currentContext.delete(n),o}}}const Pl=new py,Cx=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],kx={};if(typeof console<"u"){const e=["error","warn","info","debug","trace","log"];for(const t of e)typeof console[t]=="function"&&(kx[t]=console[t])}class hre{constructor(){function t(r){return function(...n){let o=kx[r];if(typeof o!="function"&&(o=kx.log),typeof o!="function"&&console&&(o=console[r],typeof o!="function"&&(o=console.log)),typeof o=="function")return o.apply(console,n)}}for(let r=0;r<Cx.length;r++)this[Cx[r].n]=t(Cx[r].c)}}class fre{constructor(){}createGauge(t,r){return Cre}createHistogram(t,r){return kre}createCounter(t,r){return Sre}createUpDownCounter(t,r){return Ere}createObservableGauge(t,r){return Tre}createObservableCounter(t,r){return Are}createObservableUpDownCounter(t,r){return _re}addBatchObservableCallback(t,r){}removeBatchObservableCallback(t){}}class dg{}class mre extends dg{add(t,r){}}class gre extends dg{add(t,r){}}class bre extends dg{record(t,r){}}class yre extends dg{record(t,r){}}class Ex{addCallback(t){}removeCallback(t){}}class vre extends Ex{}class xre extends Ex{}class wre extends Ex{}const JA=new fre,Sre=new mre,Cre=new bre,kre=new yre,Ere=new gre,Are=new vre,Tre=new xre,_re=new wre;function KA(){return JA}var Ax;(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(Ax||(Ax={}));const ZA={get(e,t){if(e!=null)return e[t]},keys(e){return e==null?[]:Object.keys(e)}},QA={set(e,t,r){e!=null&&(e[t]=r)}};class Ore{active(){return Pl}with(t,r,n,...o){return r.call(n,...o)}bind(t,r){return r}enable(){return this}disable(){return this}}const Tx="context",Rre=new Ore;class du{constructor(){}static getInstance(){return this._instance||(this._instance=new du),this._instance}setGlobalContextManager(t){return Nd(Tx,t,Zo.instance())}active(){return this._getContextManager().active()}with(t,r,n,...o){return this._getContextManager().with(t,r,n,...o)}bind(t,r){return this._getContextManager().bind(t,r)}_getContextManager(){return jl(Tx)||Rre}disable(){this._getContextManager().disable(),Id(Tx,Zo.instance())}}var da;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(da||(da={}));const _x="0000000000000000",Ox="00000000000000000000000000000000",Rx={traceId:Ox,spanId:_x,traceFlags:da.NONE};class Dd{constructor(t=Rx){this._spanContext=t}spanContext(){return this._spanContext}setAttribute(t,r){return this}setAttributes(t){return this}addEvent(t,r){return this}addLink(t){return this}addLinks(t){return this}setStatus(t){return this}updateName(t){return this}end(t){}isRecording(){return!1}recordException(t,r){}}const Lx=ug("OpenTelemetry Context Key SPAN");function jx(e){return e.getValue(Lx)||void 0}function Lre(){return jx(du.getInstance().active())}function Px(e,t){return e.setValue(Lx,t)}function jre(e){return e.deleteValue(Lx)}function Pre(e,t){return Px(e,new Dd(t))}function XA(e){var t;return(t=jx(e))===null||t===void 0?void 0:t.spanContext()}const hg=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function eT(e,t){if(typeof e!="string"||e.length!==t)return!1;let r=0;for(let n=0;n<e.length;n+=4)r+=(hg[e.charCodeAt(n)]|0)+(hg[e.charCodeAt(n+1)]|0)+(hg[e.charCodeAt(n+2)]|0)+(hg[e.charCodeAt(n+3)]|0);return r===t}function Nx(e){return eT(e,32)&&e!==Ox}function tT(e){return eT(e,16)&&e!==_x}function Md(e){return Nx(e.traceId)&&tT(e.spanId)}function Nre(e){return new Dd(e)}const Ix=du.getInstance();class rT{startSpan(t,r,n=Ix.active()){if(r?.root)return new Dd;const o=n&&XA(n);return Ire(o)&&Md(o)?new Dd(o):new Dd}startActiveSpan(t,r,n,o){let a,i,s;if(arguments.length<2)return;arguments.length===2?s=r:arguments.length===3?(a=r,s=n):(a=r,i=n,s=o);const c=i??Ix.active(),u=this.startSpan(t,a,c),d=Px(c,u);return Ix.with(d,s,void 0,u)}}function Ire(e){return e!==null&&typeof e=="object"&&"spanId"in e&&typeof e.spanId=="string"&&"traceId"in e&&typeof e.traceId=="string"&&"traceFlags"in e&&typeof e.traceFlags=="number"}const $re=new rT;class nT{constructor(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}startSpan(t,r,n){return this._getTracer().startSpan(t,r,n)}startActiveSpan(t,r,n,o){const a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):$re}}class Dre{getTracer(t,r,n){return new rT}}const Mre=new Dre;class $x{getTracer(t,r,n){var o;return(o=this.getDelegateTracer(t,r,n))!==null&&o!==void 0?o:new nT(this,t,r,n)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Mre}setDelegate(t){this._delegate=t}getDelegateTracer(t,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(t,r,n)}}var zd;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(zd||(zd={}));var Ud;(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"})(Ud||(Ud={}));var Ss;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Ss||(Ss={}));const Dx="[_0-9a-z-*/]",zre=`[a-z]${Dx}{0,255}`,Ure=`[a-z0-9]${Dx}{0,240}@[a-z]${Dx}{0,13}`,Bre=new RegExp(`^(?:${zre}|${Ure})$`),Fre=/^[ -~]{0,255}[!-~]$/,qre=/,|=/;function Vre(e){return Bre.test(e)}function Hre(e){return Fre.test(e)&&!qre.test(e)}const oT=32,Wre=512,aT=",",iT="=";class Nk{constructor(t){this._internalState=new Map,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 Array.from(this._internalState.keys()).reduceRight((t,r)=>(t.push(r+iT+this.get(r)),t),[]).join(aT)}_parse(t){t.length>Wre||(this._internalState=t.split(aT).reduceRight((r,n)=>{const o=n.trim(),a=o.indexOf(iT);if(a!==-1){const i=o.slice(0,a),s=o.slice(a+1,n.length);Vre(i)&&Hre(s)&&r.set(i,s)}return r},new Map),this._internalState.size>oT&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,oT))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new Nk;return t._internalState=new Map(this._internalState),t}}function Gre(e){return new Nk(e)}const Vo=du.getInstance(),ht=Zo.instance();class Yre{getMeter(t,r,n){return JA}}const Jre=new Yre,Mx="metrics";class Ik{constructor(){}static getInstance(){return this._instance||(this._instance=new Ik),this._instance}setGlobalMeterProvider(t){return Nd(Mx,t,Zo.instance())}getMeterProvider(){return jl(Mx)||Jre}getMeter(t,r,n){return this.getMeterProvider().getMeter(t,r,n)}disable(){Id(Mx,Zo.instance())}}const fg=Ik.getInstance();class Kre{inject(t,r){}extract(t,r){return t}fields(){return[]}}const zx=ug("OpenTelemetry Baggage Key");function sT(e){return e.getValue(zx)||void 0}function Zre(){return sT(du.getInstance().active())}function Qre(e,t){return e.setValue(zx,t)}function Xre(e){return e.deleteValue(zx)}const Ux="propagation",ene=new Kre;class $k{constructor(){this.createBaggage=dre,this.getBaggage=sT,this.getActiveBaggage=Zre,this.setBaggage=Qre,this.deleteBaggage=Xre}static getInstance(){return this._instance||(this._instance=new $k),this._instance}setGlobalPropagator(t){return Nd(Ux,t,Zo.instance())}inject(t,r,n=QA){return this._getGlobalPropagator().inject(t,r,n)}extract(t,r,n=ZA){return this._getGlobalPropagator().extract(t,r,n)}fields(){return this._getGlobalPropagator().fields()}disable(){Id(Ux,Zo.instance())}_getGlobalPropagator(){return jl(Ux)||ene}}const Nl=$k.getInstance(),Bx="trace";class Dk{constructor(){this._proxyTracerProvider=new $x,this.wrapSpanContext=Nre,this.isSpanContextValid=Md,this.deleteSpan=jre,this.getSpan=jx,this.getActiveSpan=Lre,this.getSpanContext=XA,this.setSpan=Px,this.setSpanContext=Pre}static getInstance(){return this._instance||(this._instance=new Dk),this._instance}setGlobalTracerProvider(t){const r=Nd(Bx,this._proxyTracerProvider,Zo.instance());return r&&this._proxyTracerProvider.setDelegate(t),r}getTracerProvider(){return jl(Bx)||this._proxyTracerProvider}getTracer(t,r){return this.getTracerProvider().getTracer(t,r)}disable(){Id(Bx,Zo.instance()),this._proxyTracerProvider=new $x}}const jn=Dk.getInstance(),tne={context:Vo,diag:ht,metrics:fg,propagation:Nl,trace:jn},rne=Object.freeze(Object.defineProperty({__proto__:null,DiagConsoleLogger:hre,get DiagLogLevel(){return Qn},INVALID_SPANID:_x,INVALID_SPAN_CONTEXT:Rx,INVALID_TRACEID:Ox,ProxyTracer:nT,ProxyTracerProvider:$x,ROOT_CONTEXT:Pl,get SamplingDecision(){return zd},get SpanKind(){return Ud},get SpanStatusCode(){return Ss},get TraceFlags(){return da},get ValueType(){return Ax},baggageEntryMetadataFromString:YA,context:Vo,createContextKey:ug,createNoopMeter:KA,createTraceState:Gre,default:tne,defaultTextMapGetter:ZA,defaultTextMapSetter:QA,diag:ht,isSpanContextValid:Md,isValidSpanId:tT,isValidTraceId:Nx,metrics:fg,propagation:Nl,trace:jn},Symbol.toStringTag,{value:"Module"})),lT=ug("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function cT(e){return e.setValue(lT,!0)}function Fx(e){return e.getValue(lT)===!0}const nne="=",pT=";",uT=",",qx="baggage",dT=180,hT=4096,fT=8192;function one(e){return e.reduce((t,r)=>{const n=`${t}${t!==""?uT:""}${r}`;return n.length>fT?t:n},"")}function ane(e){return e.getAllEntries().map(([t,r])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=pT+r.metadata.toString()),n})}function ine(e){if(!e)return;const t=e.indexOf(pT),r=t===-1?e:e.substring(0,t),n=r.indexOf(nne);if(n<=0)return;const o=r.substring(0,n).trim(),a=r.substring(n+1).trim();if(!o||!a)return;let i,s;try{i=decodeURIComponent(o),s=decodeURIComponent(a)}catch{return}let c;if(t!==-1&&t<e.length-1){const u=e.substring(t+1);c=YA(u)}return{key:i,value:s,metadata:c}}function mT(e,t,r,n){let o=0;for(;o<e.length&&r<dT;){const a=e.indexOf(uT,o),i=a===-1?e.length:a,s=i-o;if(s<=hT){const c=ine(e.substring(o,i));if(c){const u=(r===0?0:1)+s;if(n+u>fT)break;t[c.key]=c.metadata?{value:c.value,metadata:c.metadata}:{value:c.value},r++,n+=u}}if(a===-1)break;o=a+1}return[r,n]}class sne{inject(t,r,n){const o=Nl.getBaggage(t);if(!o||Fx(t))return;const a=ane(o).filter(s=>s.length<=hT).slice(0,dT),i=one(a);i.length>0&&n.set(r,qx,i)}extract(t,r,n){const o=n.get(r,qx);if(!o)return t;const a={};let i=0,s=0;if(Array.isArray(o))for(let c=0;c<o.length;c++)[i,s]=mT(o[c],a,i,s);else[i]=mT(o,a,i,s);return i===0?t:Nl.setBaggage(t,Nl.createBaggage(a))}fields(){return[qx]}}function Bd(e){const t={};if(typeof e!="object"||e==null)return t;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if(!lne(r)){ht.warn(`Invalid attribute key: ${r}`);continue}const n=e[r];if(!gT(n)){ht.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?t[r]=n.slice():t[r]=n}return t}function lne(e){return typeof e=="string"&&e!==""}function gT(e){return e==null?!0:Array.isArray(e)?cne(e):bT(typeof e)}function cne(e){let t;for(const r of e){if(r==null)continue;const n=typeof r;if(n!==t){if(!t){if(bT(n)){t=n;continue}return!1}return!1}}return!0}function bT(e){switch(e){case"number":case"boolean":case"string":return!0}return!1}function pne(){return e=>{ht.error(une(e))}}function une(e){return typeof e=="string"?e:JSON.stringify(dne(e))}function dne(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 hne=pne();function Il(e){try{hne(e)}catch{}}const fne="2.8.0";function Yr(e){let t={};const r=e.length;for(let n=0;n<r;n++){const o=e[n];o&&(t[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return t}const yT="aws.lambda.invoked_arn",vT="db.system",xT="db.connection_string",wT="db.user",ST="db.jdbc.driver_classname",CT="db.name",kT="db.statement",ET="db.operation",AT="db.mssql.instance_name",TT="db.cassandra.keyspace",_T="db.cassandra.page_size",OT="db.cassandra.consistency_level",RT="db.cassandra.table",LT="db.cassandra.idempotence",jT="db.cassandra.speculative_execution_count",PT="db.cassandra.coordinator.id",NT="db.cassandra.coordinator.dc",IT="db.hbase.namespace",$T="db.redis.database_index",DT="db.mongodb.collection",MT="db.sql.table",zT="exception.type",UT="exception.message",BT="exception.stacktrace",FT="exception.escaped",qT="faas.trigger",VT="faas.execution",HT="faas.document.collection",WT="faas.document.operation",GT="faas.document.time",YT="faas.document.name",JT="faas.time",KT="faas.cron",ZT="faas.coldstart",QT="faas.invoked_name",XT="faas.invoked_provider",e8="faas.invoked_region",t8="net.transport",r8="net.peer.ip",n8="net.peer.port",o8="net.peer.name",a8="net.host.ip",i8="net.host.port",s8="net.host.name",l8="net.host.connection.type",c8="net.host.connection.subtype",p8="net.host.carrier.name",u8="net.host.carrier.mcc",d8="net.host.carrier.mnc",h8="net.host.carrier.icc",f8="peer.service",m8="enduser.id",g8="enduser.role",b8="enduser.scope",y8="thread.id",v8="thread.name",x8="code.function",w8="code.namespace",S8="code.filepath",C8="code.lineno",k8="http.method",E8="http.url",A8="http.target",T8="http.host",_8="http.scheme",O8="http.status_code",R8="http.flavor",L8="http.user_agent",j8="http.request_content_length",P8="http.request_content_length_uncompressed",N8="http.response_content_length",I8="http.response_content_length_uncompressed",$8="http.server_name",D8="http.route",M8="http.client_ip",z8="aws.dynamodb.table_names",U8="aws.dynamodb.consumed_capacity",B8="aws.dynamodb.item_collection_metrics",F8="aws.dynamodb.provisioned_read_capacity",q8="aws.dynamodb.provisioned_write_capacity",V8="aws.dynamodb.consistent_read",H8="aws.dynamodb.projection",W8="aws.dynamodb.limit",G8="aws.dynamodb.attributes_to_get",Y8="aws.dynamodb.index_name",J8="aws.dynamodb.select",K8="aws.dynamodb.global_secondary_indexes",Z8="aws.dynamodb.local_secondary_indexes",Q8="aws.dynamodb.exclusive_start_table",X8="aws.dynamodb.table_count",e7="aws.dynamodb.scan_forward",t7="aws.dynamodb.segment",r7="aws.dynamodb.total_segments",n7="aws.dynamodb.count",o7="aws.dynamodb.scanned_count",a7="aws.dynamodb.attribute_definitions",i7="aws.dynamodb.global_secondary_index_updates",s7="messaging.system",l7="messaging.destination",c7="messaging.destination_kind",p7="messaging.temp_destination",u7="messaging.protocol",d7="messaging.protocol_version",h7="messaging.url",f7="messaging.message_id",m7="messaging.conversation_id",g7="messaging.message_payload_size_bytes",b7="messaging.message_payload_compressed_size_bytes",y7="messaging.operation",v7="messaging.consumer_id",x7="messaging.rabbitmq.routing_key",w7="messaging.kafka.message_key",S7="messaging.kafka.consumer_group",C7="messaging.kafka.client_id",k7="messaging.kafka.partition",E7="messaging.kafka.tombstone",A7="rpc.system",T7="rpc.service",_7="rpc.method",O7="rpc.grpc.status_code",R7="rpc.jsonrpc.version",L7="rpc.jsonrpc.request_id",j7="rpc.jsonrpc.error_code",P7="rpc.jsonrpc.error_message",N7="message.type",I7="message.id",$7="message.compressed_size",D7="message.uncompressed_size",mne=yT,gne=vT,bne=xT,yne=wT,vne=ST,xne=CT,wne=kT,Sne=ET,Cne=AT,kne=TT,Ene=_T,Ane=OT,Tne=RT,_ne=LT,One=jT,Rne=PT,Lne=NT,jne=IT,Pne=$T,Nne=DT,Ine=MT,$ne=zT,Dne=UT,Mne=BT,zne=FT,Une=qT,Bne=VT,Fne=HT,qne=WT,Vne=GT,Hne=YT,Wne=JT,Gne=KT,Yne=ZT,Jne=QT,Kne=XT,Zne=e8,Qne=t8,Xne=r8,eoe=n8,toe=o8,roe=a8,noe=i8,ooe=s8,aoe=l8,ioe=c8,soe=p8,loe=u8,coe=d8,poe=h8,uoe=f8,doe=m8,hoe=g8,foe=b8,moe=y8,goe=v8,boe=x8,yoe=w8,voe=S8,xoe=C8,woe=k8,Soe=E8,Coe=A8,koe=T8,Eoe=_8,Aoe=O8,Toe=R8,_oe=L8,Ooe=j8,Roe=P8,Loe=N8,joe=I8,Poe=$8,Noe=D8,Ioe=M8,$oe=z8,Doe=U8,Moe=B8,zoe=F8,Uoe=q8,Boe=V8,Foe=H8,qoe=W8,Voe=G8,Hoe=Y8,Woe=J8,Goe=K8,Yoe=Z8,Joe=Q8,Koe=X8,Zoe=e7,Qoe=t7,Xoe=r7,eae=n7,tae=o7,rae=a7,nae=i7,oae=s7,aae=l7,iae=c7,sae=p7,lae=u7,cae=d7,pae=h7,uae=f7,dae=m7,hae=g7,fae=b7,mae=y7,gae=v7,bae=x7,yae=w7,vae=S7,xae=C7,wae=k7,Sae=E7,Cae=A7,kae=T7,Eae=_7,Aae=O7,Tae=R7,_ae=L7,Oae=j7,Rae=P7,Lae=N7,jae=I7,Pae=$7,Nae=D7,Iae=Yr([yT,vT,xT,wT,ST,CT,kT,ET,AT,TT,_T,OT,RT,LT,jT,PT,NT,IT,$T,DT,MT,zT,UT,BT,FT,qT,VT,HT,WT,GT,YT,JT,KT,ZT,QT,XT,e8,t8,r8,n8,o8,a8,i8,s8,l8,c8,p8,u8,d8,h8,f8,m8,g8,b8,y8,v8,x8,w8,S8,C8,k8,E8,A8,T8,_8,O8,R8,L8,j8,P8,N8,I8,$8,D8,M8,z8,U8,B8,F8,q8,V8,H8,W8,G8,Y8,J8,K8,Z8,Q8,X8,e7,t7,r7,n7,o7,a7,i7,s7,l7,c7,p7,u7,d7,h7,f7,m7,g7,b7,y7,v7,x7,w7,S7,C7,k7,E7,A7,T7,_7,O7,R7,L7,j7,P7,N7,I7,$7,D7]),M7="other_sql",z7="mssql",U7="mysql",B7="oracle",F7="db2",q7="postgresql",V7="redshift",H7="hive",W7="cloudscape",G7="hsqldb",Y7="progress",J7="maxdb",K7="hanadb",Z7="ingres",Q7="firstsql",X7="edb",e_="cache",t_="adabas",r_="firebird",n_="derby",o_="filemaker",a_="informix",i_="instantdb",s_="interbase",l_="mariadb",c_="netezza",p_="pervasive",u_="pointbase",d_="sqlite",h_="sybase",f_="teradata",m_="vertica",g_="h2",b_="coldfusion",y_="cassandra",v_="hbase",x_="mongodb",w_="redis",S_="couchbase",C_="couchdb",k_="cosmosdb",E_="dynamodb",A_="neo4j",T_="geode",__="elasticsearch",O_="memcached",R_="cockroachdb",$ae=M7,Dae=z7,Mae=U7,zae=B7,Uae=F7,Bae=q7,Fae=V7,qae=H7,Vae=W7,Hae=G7,Wae=Y7,Gae=J7,Yae=K7,Jae=Z7,Kae=Q7,Zae=X7,Qae=e_,Xae=t_,eie=r_,tie=n_,rie=o_,nie=a_,oie=i_,aie=s_,iie=l_,sie=c_,lie=p_,cie=u_,pie=d_,uie=h_,die=f_,hie=m_,fie=g_,mie=b_,gie=y_,bie=v_,yie=x_,vie=w_,xie=S_,wie=C_,Sie=k_,Cie=E_,kie=A_,Eie=T_,Aie=__,Tie=O_,_ie=R_,Oie=Yr([M7,z7,U7,B7,F7,q7,V7,H7,W7,G7,Y7,J7,K7,Z7,Q7,X7,e_,t_,r_,n_,o_,a_,i_,s_,l_,c_,p_,u_,d_,h_,f_,m_,g_,b_,y_,v_,x_,w_,S_,C_,k_,E_,A_,T_,__,O_,R_]),L_="all",j_="each_quorum",P_="quorum",N_="local_quorum",I_="one",$_="two",D_="three",M_="local_one",z_="any",U_="serial",B_="local_serial",Rie=L_,Lie=j_,jie=P_,Pie=N_,Nie=I_,Iie=$_,$ie=D_,Die=M_,Mie=z_,zie=U_,Uie=B_,Bie=Yr([L_,j_,P_,N_,I_,$_,D_,M_,z_,U_,B_]),F_="datasource",q_="http",V_="pubsub",H_="timer",W_="other",Fie=F_,qie=q_,Vie=V_,Hie=H_,Wie=W_,Gie=Yr([F_,q_,V_,H_,W_]),G_="insert",Y_="edit",J_="delete",Yie=G_,Jie=Y_,Kie=J_,Zie=Yr([G_,Y_,J_]),K_="alibaba_cloud",Z_="aws",Q_="azure",X_="gcp",Qie=K_,Xie=Z_,ese=Q_,tse=X_,rse=Yr([K_,Z_,Q_,X_]),eO="ip_tcp",tO="ip_udp",rO="ip",nO="unix",oO="pipe",aO="inproc",iO="other",nse=eO,ose=tO,ase=rO,ise=nO,sse=oO,lse=aO,cse=iO,pse=Yr([eO,tO,rO,nO,oO,aO,iO]),sO="wifi",lO="wired",cO="cell",pO="unavailable",uO="unknown",use=sO,dse=lO,hse=cO,fse=pO,mse=uO,gse=Yr([sO,lO,cO,pO,uO]),dO="gprs",hO="edge",fO="umts",mO="cdma",gO="evdo_0",bO="evdo_a",yO="cdma2000_1xrtt",vO="hsdpa",xO="hsupa",wO="hspa",SO="iden",CO="evdo_b",kO="lte",EO="ehrpd",AO="hspap",TO="gsm",_O="td_scdma",OO="iwlan",RO="nr",LO="nrnsa",jO="lte_ca",bse=dO,yse=hO,vse=fO,xse=mO,wse=gO,Sse=bO,Cse=yO,kse=vO,Ese=xO,Ase=wO,Tse=SO,_se=CO,Ose=kO,Rse=EO,Lse=AO,jse=TO,Pse=_O,Nse=OO,Ise=RO,$se=LO,Dse=jO,Mse=Yr([dO,hO,fO,mO,gO,bO,yO,vO,xO,wO,SO,CO,kO,EO,AO,TO,_O,OO,RO,LO,jO]),PO="1.0",NO="1.1",IO="2.0",$O="SPDY",DO="QUIC",zse=PO,Use=NO,Bse=IO,Fse=$O,qse=DO,Vse={HTTP_1_0:PO,HTTP_1_1:NO,HTTP_2_0:IO,SPDY:$O,QUIC:DO},MO="queue",zO="topic",Hse=MO,Wse=zO,Gse=Yr([MO,zO]),UO="receive",BO="process",Yse=UO,Jse=BO,Kse=Yr([UO,BO]),FO=0,qO=1,VO=2,HO=3,WO=4,GO=5,YO=6,JO=7,KO=8,ZO=9,QO=10,XO=11,eR=12,tR=13,rR=14,nR=15,oR=16,Zse=FO,Qse=qO,Xse=VO,ele=HO,tle=WO,rle=GO,nle=YO,ole=JO,ale=KO,ile=ZO,sle=QO,lle=XO,cle=eR,ple=tR,ule=rR,dle=nR,hle=oR,fle={OK:FO,CANCELLED:qO,UNKNOWN:VO,INVALID_ARGUMENT:HO,DEADLINE_EXCEEDED:WO,NOT_FOUND:GO,ALREADY_EXISTS:YO,PERMISSION_DENIED:JO,RESOURCE_EXHAUSTED:KO,FAILED_PRECONDITION:ZO,ABORTED:QO,OUT_OF_RANGE:XO,UNIMPLEMENTED:eR,INTERNAL:tR,UNAVAILABLE:rR,DATA_LOSS:nR,UNAUTHENTICATED:oR},aR="SENT",iR="RECEIVED",mle=aR,gle=iR,ble=Yr([aR,iR]),sR="cloud.provider",lR="cloud.account.id",cR="cloud.region",pR="cloud.availability_zone",uR="cloud.platform",dR="aws.ecs.container.arn",hR="aws.ecs.cluster.arn",fR="aws.ecs.launchtype",mR="aws.ecs.task.arn",gR="aws.ecs.task.family",bR="aws.ecs.task.revision",yR="aws.eks.cluster.arn",vR="aws.log.group.names",xR="aws.log.group.arns",wR="aws.log.stream.names",SR="aws.log.stream.arns",CR="container.name",kR="container.id",ER="container.runtime",AR="container.image.name",TR="container.image.tag",_R="deployment.environment",OR="device.id",RR="device.model.identifier",LR="device.model.name",jR="faas.name",PR="faas.id",NR="faas.version",IR="faas.instance",$R="faas.max_memory",DR="host.id",MR="host.name",zR="host.type",UR="host.arch",BR="host.image.name",FR="host.image.id",qR="host.image.version",VR="k8s.cluster.name",HR="k8s.node.name",WR="k8s.node.uid",GR="k8s.namespace.name",YR="k8s.pod.uid",JR="k8s.pod.name",KR="k8s.container.name",ZR="k8s.replicaset.uid",QR="k8s.replicaset.name",XR="k8s.deployment.uid",eL="k8s.deployment.name",tL="k8s.statefulset.uid",rL="k8s.statefulset.name",nL="k8s.daemonset.uid",oL="k8s.daemonset.name",aL="k8s.job.uid",iL="k8s.job.name",sL="k8s.cronjob.uid",lL="k8s.cronjob.name",cL="os.type",pL="os.description",uL="os.name",dL="os.version",hL="process.pid",fL="process.executable.name",mL="process.executable.path",gL="process.command",bL="process.command_line",yL="process.command_args",vL="process.owner",xL="process.runtime.name",wL="process.runtime.version",SL="process.runtime.description",CL="service.name",kL="service.namespace",EL="service.instance.id",AL="service.version",TL="telemetry.sdk.name",_L="telemetry.sdk.language",OL="telemetry.sdk.version",RL="telemetry.auto.version",LL="webengine.name",jL="webengine.version",PL="webengine.description",yle=sR,vle=lR,xle=cR,wle=pR,Sle=uR,Cle=dR,kle=hR,Ele=fR,Ale=mR,Tle=gR,_le=bR,Ole=yR,Rle=vR,Lle=xR,jle=wR,Ple=SR,Nle=CR,Ile=kR,$le=ER,Dle=AR,Mle=TR,zle=_R,Ule=OR,Ble=RR,Fle=LR,qle=jR,Vle=PR,Hle=NR,Wle=IR,Gle=$R,Yle=DR,Jle=MR,Kle=zR,Zle=UR,Qle=BR,Xle=FR,ece=qR,tce=VR,rce=HR,nce=WR,oce=GR,ace=YR,ice=JR,sce=KR,lce=ZR,cce=QR,pce=XR,uce=eL,dce=tL,hce=rL,fce=nL,mce=oL,gce=aL,bce=iL,yce=sL,vce=lL,xce=cL,wce=pL,Sce=uL,Cce=dL,kce=hL,Ece=fL,Ace=mL,Tce=gL,_ce=bL,Oce=yL,Rce=vL,Lce=xL,jce=wL,Pce=SL,Nce=CL,Ice=kL,$ce=EL,Dce=AL,Mce=TL,zce=_L,Uce=OL,Bce=RL,Fce=LL,qce=jL,Vce=PL,Hce=Yr([sR,lR,cR,pR,uR,dR,hR,fR,mR,gR,bR,yR,vR,xR,wR,SR,CR,kR,ER,AR,TR,_R,OR,RR,LR,jR,PR,NR,IR,$R,DR,MR,zR,UR,BR,FR,qR,VR,HR,WR,GR,YR,JR,KR,ZR,QR,XR,eL,tL,rL,nL,oL,aL,iL,sL,lL,cL,pL,uL,dL,hL,fL,mL,gL,bL,yL,vL,xL,wL,SL,CL,kL,EL,AL,TL,_L,OL,RL,LL,jL,PL]),NL="alibaba_cloud",IL="aws",$L="azure",DL="gcp",Wce=NL,Gce=IL,Yce=$L,Jce=DL,Kce=Yr([NL,IL,$L,DL]),ML="alibaba_cloud_ecs",zL="alibaba_cloud_fc",UL="aws_ec2",BL="aws_ecs",FL="aws_eks",qL="aws_lambda",VL="aws_elastic_beanstalk",HL="azure_vm",WL="azure_container_instances",GL="azure_aks",YL="azure_functions",JL="azure_app_service",KL="gcp_compute_engine",ZL="gcp_cloud_run",QL="gcp_kubernetes_engine",XL="gcp_cloud_functions",ej="gcp_app_engine",Zce=ML,Qce=zL,Xce=UL,epe=BL,tpe=FL,rpe=qL,npe=VL,ope=HL,ape=WL,ipe=GL,spe=YL,lpe=JL,cpe=KL,ppe=ZL,upe=QL,dpe=XL,hpe=ej,fpe=Yr([ML,zL,UL,BL,FL,qL,VL,HL,WL,GL,YL,JL,KL,ZL,QL,XL,ej]),tj="ec2",rj="fargate",mpe=tj,gpe=rj,bpe=Yr([tj,rj]),nj="amd64",oj="arm32",aj="arm64",ij="ia64",sj="ppc32",lj="ppc64",cj="x86",ype=nj,vpe=oj,xpe=aj,wpe=ij,Spe=sj,Cpe=lj,kpe=cj,Epe=Yr([nj,oj,aj,ij,sj,lj,cj]),pj="windows",uj="linux",dj="darwin",hj="freebsd",fj="netbsd",mj="openbsd",gj="dragonflybsd",bj="hpux",yj="aix",vj="solaris",xj="z_os",Ape=pj,Tpe=uj,_pe=dj,Ope=hj,Rpe=fj,Lpe=mj,jpe=gj,Ppe=bj,Npe=yj,Ipe=vj,$pe=xj,Dpe=Yr([pj,uj,dj,hj,fj,mj,gj,bj,yj,vj,xj]),wj="cpp",Sj="dotnet",Cj="erlang",kj="go",Ej="java",Aj="nodejs",Tj="php",_j="python",Oj="ruby",Rj="webjs",Mpe=wj,zpe=Sj,Upe=Cj,Bpe=kj,Fpe=Ej,qpe=Aj,Vpe=Tj,Hpe=_j,Wpe=Oj,Gpe=Rj,Ype=Yr([wj,Sj,Cj,kj,Ej,Aj,Tj,_j,Oj,Rj]),Jpe="aspnetcore.diagnostics.exception.result",Kpe="aborted",Zpe="handled",Qpe="skipped",Xpe="unhandled",eue="aspnetcore.diagnostics.handler.type",tue="aspnetcore.rate_limiting.policy",rue="aspnetcore.rate_limiting.result",nue="acquired",oue="endpoint_limiter",aue="global_limiter",iue="request_canceled",sue="aspnetcore.request.is_unhandled",lue="aspnetcore.routing.is_fallback",cue="aspnetcore.routing.match_status",pue="failure",uue="success",due="aspnetcore.user.is_authenticated",hue="client.address",fue="client.port",mue="code.column.number",gue="code.file.path",bue="code.function.name",yue="code.line.number",vue="code.stacktrace",xue="db.collection.name",wue="db.namespace",Sue="db.operation.batch.size",Cue="db.operation.name",kue="db.query.summary",Eue="db.query.text",Aue="db.response.status_code",Tue="db.stored_procedure.name",_ue="db.system.name",Oue="mariadb",Rue="microsoft.sql_server",Lue="mysql",jue="postgresql",Pue="dotnet.gc.heap.generation",Nue="gen0",Iue="gen1",$ue="gen2",Due="loh",Mue="poh",zue="error.type",Uue="_OTHER",Bue="exception.escaped",mg="exception.message",Lj="exception.stacktrace",gg="exception.type",Fue=e=>`http.request.header.${e}`,que="http.request.method",Vue="_OTHER",Hue="CONNECT",Wue="DELETE",Gue="GET",Yue="HEAD",Jue="OPTIONS",Kue="PATCH",Zue="POST",Que="PUT",Xue="TRACE",ede="http.request.method_original",tde="http.request.resend_count",rde=e=>`http.response.header.${e}`,nde="http.response.status_code",ode="http.route",ade="jvm.gc.action",ide="jvm.gc.name",sde="jvm.memory.pool.name",lde="jvm.memory.type",cde="heap",pde="non_heap",ude="jvm.thread.daemon",dde="jvm.thread.state",hde="blocked",fde="new",mde="runnable",gde="terminated",bde="timed_waiting",yde="waiting",vde="network.local.address",xde="network.local.port",wde="network.peer.address",Sde="network.peer.port",Cde="network.protocol.name",kde="network.protocol.version",Ede="network.transport",Ade="pipe",Tde="quic",_de="tcp",Ode="udp",Rde="unix",Lde="network.type",jde="ipv4",Pde="ipv6",Nde="otel.scope.name",Ide="otel.scope.version",$de="otel.status_code",Dde="ERROR",Mde="OK",zde="otel.status_description",Ude="server.address",Bde="server.port",Fde="service.instance.id",Vx="service.name",qde="service.namespace",jj="service.version",Vde="signalr.connection.status",Hde="app_shutdown",Wde="normal_closure",Gde="timeout",Yde="signalr.transport",Jde="long_polling",Kde="server_sent_events",Zde="web_sockets",bg="telemetry.sdk.language",Qde="cpp",Xde="dotnet",ehe="erlang",the="go",rhe="java",nhe="nodejs",ohe="php",ahe="python",ihe="ruby",she="rust",lhe="swift",Pj="webjs",yg="telemetry.sdk.name",vg="telemetry.sdk.version",che="url.fragment",phe="url.full",uhe="url.path",dhe="url.query",hhe="url.scheme",fhe="user_agent.original",mhe="aspnetcore.diagnostics.exceptions",ghe="aspnetcore.rate_limiting.active_request_leases",bhe="aspnetcore.rate_limiting.queued_requests",yhe="aspnetcore.rate_limiting.request.time_in_queue",vhe="aspnetcore.rate_limiting.request_lease.duration",xhe="aspnetcore.rate_limiting.requests",whe="aspnetcore.routing.match_attempts",She="db.client.operation.duration",Che="dotnet.assembly.count",khe="dotnet.exceptions",Ehe="dotnet.gc.collections",Ahe="dotnet.gc.heap.total_allocated",The="dotnet.gc.last_collection.heap.fragmentation.size",_he="dotnet.gc.last_collection.heap.size",Ohe="dotnet.gc.last_collection.memory.committed_size",Rhe="dotnet.gc.pause.time",Lhe="dotnet.jit.compilation.time",jhe="dotnet.jit.compiled_il.size",Phe="dotnet.jit.compiled_methods",Nhe="dotnet.monitor.lock_contentions",Ihe="dotnet.process.cpu.count",$he="dotnet.process.cpu.time",Dhe="dotnet.process.memory.working_set",Mhe="dotnet.thread_pool.queue.length",zhe="dotnet.thread_pool.thread.count",Uhe="dotnet.thread_pool.work_item.count",Bhe="dotnet.timer.count",Fhe="http.client.request.duration",qhe="http.server.request.duration",Vhe="jvm.class.count",Hhe="jvm.class.loaded",Whe="jvm.class.unloaded",Ghe="jvm.cpu.count",Yhe="jvm.cpu.recent_utilization",Jhe="jvm.cpu.time",Khe="jvm.gc.duration",Zhe="jvm.memory.committed",Qhe="jvm.memory.limit",Xhe="jvm.memory.used",efe="jvm.memory.used_after_last_gc",tfe="jvm.thread.count",rfe="kestrel.active_connections",nfe="kestrel.active_tls_handshakes",ofe="kestrel.connection.duration",afe="kestrel.queued_connections",ife="kestrel.queued_requests",sfe="kestrel.rejected_connections",lfe="kestrel.tls_handshake.duration",cfe="kestrel.upgraded_connections",pfe="signalr.server.active_connections",ufe="signalr.server.connection.duration",dfe="exception",hfe=Object.freeze(Object.defineProperty({__proto__:null,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:Kpe,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:Zpe,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:Qpe,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:Xpe,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:nue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:oue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:aue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:iue,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:pue,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:uue,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:Jpe,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:eue,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:tue,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:rue,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:sue,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:lue,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:cue,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:due,ATTR_CLIENT_ADDRESS:hue,ATTR_CLIENT_PORT:fue,ATTR_CODE_COLUMN_NUMBER:mue,ATTR_CODE_FILE_PATH:gue,ATTR_CODE_FUNCTION_NAME:bue,ATTR_CODE_LINE_NUMBER:yue,ATTR_CODE_STACKTRACE:vue,ATTR_DB_COLLECTION_NAME:xue,ATTR_DB_NAMESPACE:wue,ATTR_DB_OPERATION_BATCH_SIZE:Sue,ATTR_DB_OPERATION_NAME:Cue,ATTR_DB_QUERY_SUMMARY:kue,ATTR_DB_QUERY_TEXT:Eue,ATTR_DB_RESPONSE_STATUS_CODE:Aue,ATTR_DB_STORED_PROCEDURE_NAME:Tue,ATTR_DB_SYSTEM_NAME:_ue,ATTR_DOTNET_GC_HEAP_GENERATION:Pue,ATTR_ERROR_TYPE:zue,ATTR_EXCEPTION_ESCAPED:Bue,ATTR_EXCEPTION_MESSAGE:mg,ATTR_EXCEPTION_STACKTRACE:Lj,ATTR_EXCEPTION_TYPE:gg,ATTR_HTTP_REQUEST_HEADER:Fue,ATTR_HTTP_REQUEST_METHOD:que,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:ede,ATTR_HTTP_REQUEST_RESEND_COUNT:tde,ATTR_HTTP_RESPONSE_HEADER:rde,ATTR_HTTP_RESPONSE_STATUS_CODE:nde,ATTR_HTTP_ROUTE:ode,ATTR_JVM_GC_ACTION:ade,ATTR_JVM_GC_NAME:ide,ATTR_JVM_MEMORY_POOL_NAME:sde,ATTR_JVM_MEMORY_TYPE:lde,ATTR_JVM_THREAD_DAEMON:ude,ATTR_JVM_THREAD_STATE:dde,ATTR_NETWORK_LOCAL_ADDRESS:vde,ATTR_NETWORK_LOCAL_PORT:xde,ATTR_NETWORK_PEER_ADDRESS:wde,ATTR_NETWORK_PEER_PORT:Sde,ATTR_NETWORK_PROTOCOL_NAME:Cde,ATTR_NETWORK_PROTOCOL_VERSION:kde,ATTR_NETWORK_TRANSPORT:Ede,ATTR_NETWORK_TYPE:Lde,ATTR_OTEL_SCOPE_NAME:Nde,ATTR_OTEL_SCOPE_VERSION:Ide,ATTR_OTEL_STATUS_CODE:$de,ATTR_OTEL_STATUS_DESCRIPTION:zde,ATTR_SERVER_ADDRESS:Ude,ATTR_SERVER_PORT:Bde,ATTR_SERVICE_INSTANCE_ID:Fde,ATTR_SERVICE_NAME:Vx,ATTR_SERVICE_NAMESPACE:qde,ATTR_SERVICE_VERSION:jj,ATTR_SIGNALR_CONNECTION_STATUS:Vde,ATTR_SIGNALR_TRANSPORT:Yde,ATTR_TELEMETRY_SDK_LANGUAGE:bg,ATTR_TELEMETRY_SDK_NAME:yg,ATTR_TELEMETRY_SDK_VERSION:vg,ATTR_URL_FRAGMENT:che,ATTR_URL_FULL:phe,ATTR_URL_PATH:uhe,ATTR_URL_QUERY:dhe,ATTR_URL_SCHEME:hhe,ATTR_USER_AGENT_ORIGINAL:fhe,AWSECSLAUNCHTYPEVALUES_EC2:mpe,AWSECSLAUNCHTYPEVALUES_FARGATE:gpe,AwsEcsLaunchtypeValues:bpe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:Zce,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:Qce,CLOUDPLATFORMVALUES_AWS_EC2:Xce,CLOUDPLATFORMVALUES_AWS_ECS:epe,CLOUDPLATFORMVALUES_AWS_EKS:tpe,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:npe,CLOUDPLATFORMVALUES_AWS_LAMBDA:rpe,CLOUDPLATFORMVALUES_AZURE_AKS:ipe,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:lpe,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:ape,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:spe,CLOUDPLATFORMVALUES_AZURE_VM:ope,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:hpe,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:dpe,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:ppe,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:cpe,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:upe,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:Wce,CLOUDPROVIDERVALUES_AWS:Gce,CLOUDPROVIDERVALUES_AZURE:Yce,CLOUDPROVIDERVALUES_GCP:Jce,CloudPlatformValues:fpe,CloudProviderValues:Kce,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:Rie,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:Mie,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:Lie,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:Die,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:Pie,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:Uie,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:Nie,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:jie,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:zie,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:$ie,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:Iie,DBSYSTEMVALUES_ADABAS:Xae,DBSYSTEMVALUES_CACHE:Qae,DBSYSTEMVALUES_CASSANDRA:gie,DBSYSTEMVALUES_CLOUDSCAPE:Vae,DBSYSTEMVALUES_COCKROACHDB:_ie,DBSYSTEMVALUES_COLDFUSION:mie,DBSYSTEMVALUES_COSMOSDB:Sie,DBSYSTEMVALUES_COUCHBASE:xie,DBSYSTEMVALUES_COUCHDB:wie,DBSYSTEMVALUES_DB2:Uae,DBSYSTEMVALUES_DERBY:tie,DBSYSTEMVALUES_DYNAMODB:Cie,DBSYSTEMVALUES_EDB:Zae,DBSYSTEMVALUES_ELASTICSEARCH:Aie,DBSYSTEMVALUES_FILEMAKER:rie,DBSYSTEMVALUES_FIREBIRD:eie,DBSYSTEMVALUES_FIRSTSQL:Kae,DBSYSTEMVALUES_GEODE:Eie,DBSYSTEMVALUES_H2:fie,DBSYSTEMVALUES_HANADB:Yae,DBSYSTEMVALUES_HBASE:bie,DBSYSTEMVALUES_HIVE:qae,DBSYSTEMVALUES_HSQLDB:Hae,DBSYSTEMVALUES_INFORMIX:nie,DBSYSTEMVALUES_INGRES:Jae,DBSYSTEMVALUES_INSTANTDB:oie,DBSYSTEMVALUES_INTERBASE:aie,DBSYSTEMVALUES_MARIADB:iie,DBSYSTEMVALUES_MAXDB:Gae,DBSYSTEMVALUES_MEMCACHED:Tie,DBSYSTEMVALUES_MONGODB:yie,DBSYSTEMVALUES_MSSQL:Dae,DBSYSTEMVALUES_MYSQL:Mae,DBSYSTEMVALUES_NEO4J:kie,DBSYSTEMVALUES_NETEZZA:sie,DBSYSTEMVALUES_ORACLE:zae,DBSYSTEMVALUES_OTHER_SQL:$ae,DBSYSTEMVALUES_PERVASIVE:lie,DBSYSTEMVALUES_POINTBASE:cie,DBSYSTEMVALUES_POSTGRESQL:Bae,DBSYSTEMVALUES_PROGRESS:Wae,DBSYSTEMVALUES_REDIS:vie,DBSYSTEMVALUES_REDSHIFT:Fae,DBSYSTEMVALUES_SQLITE:pie,DBSYSTEMVALUES_SYBASE:uie,DBSYSTEMVALUES_TERADATA:die,DBSYSTEMVALUES_VERTICA:hie,DB_SYSTEM_NAME_VALUE_MARIADB:Oue,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:Rue,DB_SYSTEM_NAME_VALUE_MYSQL:Lue,DB_SYSTEM_NAME_VALUE_POSTGRESQL:jue,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:Nue,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:Iue,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:$ue,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:Due,DOTNET_GC_HEAP_GENERATION_VALUE_POH:Mue,DbCassandraConsistencyLevelValues:Bie,DbSystemValues:Oie,ERROR_TYPE_VALUE_OTHER:Uue,EVENT_EXCEPTION:dfe,FAASDOCUMENTOPERATIONVALUES_DELETE:Kie,FAASDOCUMENTOPERATIONVALUES_EDIT:Jie,FAASDOCUMENTOPERATIONVALUES_INSERT:Yie,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:Qie,FAASINVOKEDPROVIDERVALUES_AWS:Xie,FAASINVOKEDPROVIDERVALUES_AZURE:ese,FAASINVOKEDPROVIDERVALUES_GCP:tse,FAASTRIGGERVALUES_DATASOURCE:Fie,FAASTRIGGERVALUES_HTTP:qie,FAASTRIGGERVALUES_OTHER:Wie,FAASTRIGGERVALUES_PUBSUB:Vie,FAASTRIGGERVALUES_TIMER:Hie,FaasDocumentOperationValues:Zie,FaasInvokedProviderValues:rse,FaasTriggerValues:Gie,HOSTARCHVALUES_AMD64:ype,HOSTARCHVALUES_ARM32:vpe,HOSTARCHVALUES_ARM64:xpe,HOSTARCHVALUES_IA64:wpe,HOSTARCHVALUES_PPC32:Spe,HOSTARCHVALUES_PPC64:Cpe,HOSTARCHVALUES_X86:kpe,HTTPFLAVORVALUES_HTTP_1_0:zse,HTTPFLAVORVALUES_HTTP_1_1:Use,HTTPFLAVORVALUES_HTTP_2_0:Bse,HTTPFLAVORVALUES_QUIC:qse,HTTPFLAVORVALUES_SPDY:Fse,HTTP_REQUEST_METHOD_VALUE_CONNECT:Hue,HTTP_REQUEST_METHOD_VALUE_DELETE:Wue,HTTP_REQUEST_METHOD_VALUE_GET:Gue,HTTP_REQUEST_METHOD_VALUE_HEAD:Yue,HTTP_REQUEST_METHOD_VALUE_OPTIONS:Jue,HTTP_REQUEST_METHOD_VALUE_OTHER:Vue,HTTP_REQUEST_METHOD_VALUE_PATCH:Kue,HTTP_REQUEST_METHOD_VALUE_POST:Zue,HTTP_REQUEST_METHOD_VALUE_PUT:Que,HTTP_REQUEST_METHOD_VALUE_TRACE:Xue,HostArchValues:Epe,HttpFlavorValues:Vse,JVM_MEMORY_TYPE_VALUE_HEAP:cde,JVM_MEMORY_TYPE_VALUE_NON_HEAP:pde,JVM_THREAD_STATE_VALUE_BLOCKED:hde,JVM_THREAD_STATE_VALUE_NEW:fde,JVM_THREAD_STATE_VALUE_RUNNABLE:mde,JVM_THREAD_STATE_VALUE_TERMINATED:gde,JVM_THREAD_STATE_VALUE_TIMED_WAITING:bde,JVM_THREAD_STATE_VALUE_WAITING:yde,MESSAGETYPEVALUES_RECEIVED:gle,MESSAGETYPEVALUES_SENT:mle,MESSAGINGDESTINATIONKINDVALUES_QUEUE:Hse,MESSAGINGDESTINATIONKINDVALUES_TOPIC:Wse,MESSAGINGOPERATIONVALUES_PROCESS:Jse,MESSAGINGOPERATIONVALUES_RECEIVE:Yse,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:mhe,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:ghe,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:bhe,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:xhe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:vhe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:yhe,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:whe,METRIC_DB_CLIENT_OPERATION_DURATION:She,METRIC_DOTNET_ASSEMBLY_COUNT:Che,METRIC_DOTNET_EXCEPTIONS:khe,METRIC_DOTNET_GC_COLLECTIONS:Ehe,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:Ahe,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:The,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:_he,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:Ohe,METRIC_DOTNET_GC_PAUSE_TIME:Rhe,METRIC_DOTNET_JIT_COMPILATION_TIME:Lhe,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:jhe,METRIC_DOTNET_JIT_COMPILED_METHODS:Phe,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:Nhe,METRIC_DOTNET_PROCESS_CPU_COUNT:Ihe,METRIC_DOTNET_PROCESS_CPU_TIME:$he,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:Dhe,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:Mhe,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:zhe,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:Uhe,METRIC_DOTNET_TIMER_COUNT:Bhe,METRIC_HTTP_CLIENT_REQUEST_DURATION:Fhe,METRIC_HTTP_SERVER_REQUEST_DURATION:qhe,METRIC_JVM_CLASS_COUNT:Vhe,METRIC_JVM_CLASS_LOADED:Hhe,METRIC_JVM_CLASS_UNLOADED:Whe,METRIC_JVM_CPU_COUNT:Ghe,METRIC_JVM_CPU_RECENT_UTILIZATION:Yhe,METRIC_JVM_CPU_TIME:Jhe,METRIC_JVM_GC_DURATION:Khe,METRIC_JVM_MEMORY_COMMITTED:Zhe,METRIC_JVM_MEMORY_LIMIT:Qhe,METRIC_JVM_MEMORY_USED:Xhe,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:efe,METRIC_JVM_THREAD_COUNT:tfe,METRIC_KESTREL_ACTIVE_CONNECTIONS:rfe,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:nfe,METRIC_KESTREL_CONNECTION_DURATION:ofe,METRIC_KESTREL_QUEUED_CONNECTIONS:afe,METRIC_KESTREL_QUEUED_REQUESTS:ife,METRIC_KESTREL_REJECTED_CONNECTIONS:sfe,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:lfe,METRIC_KESTREL_UPGRADED_CONNECTIONS:cfe,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:pfe,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:ufe,MessageTypeValues:ble,MessagingDestinationKindValues:Gse,MessagingOperationValues:Kse,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:xse,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:Cse,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:yse,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:Rse,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:wse,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:Sse,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:_se,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:bse,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:jse,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:kse,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:Ase,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:Lse,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:Ese,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:Tse,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:Nse,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:Ose,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:Dse,NETHOSTCONNECTIONSUBTYPEVALUES_NR:Ise,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:$se,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:Pse,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:vse,NETHOSTCONNECTIONTYPEVALUES_CELL:hse,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:fse,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:mse,NETHOSTCONNECTIONTYPEVALUES_WIFI:use,NETHOSTCONNECTIONTYPEVALUES_WIRED:dse,NETTRANSPORTVALUES_INPROC:lse,NETTRANSPORTVALUES_IP:ase,NETTRANSPORTVALUES_IP_TCP:nse,NETTRANSPORTVALUES_IP_UDP:ose,NETTRANSPORTVALUES_OTHER:cse,NETTRANSPORTVALUES_PIPE:sse,NETTRANSPORTVALUES_UNIX:ise,NETWORK_TRANSPORT_VALUE_PIPE:Ade,NETWORK_TRANSPORT_VALUE_QUIC:Tde,NETWORK_TRANSPORT_VALUE_TCP:_de,NETWORK_TRANSPORT_VALUE_UDP:Ode,NETWORK_TRANSPORT_VALUE_UNIX:Rde,NETWORK_TYPE_VALUE_IPV4:jde,NETWORK_TYPE_VALUE_IPV6:Pde,NetHostConnectionSubtypeValues:Mse,NetHostConnectionTypeValues:gse,NetTransportValues:pse,OSTYPEVALUES_AIX:Npe,OSTYPEVALUES_DARWIN:_pe,OSTYPEVALUES_DRAGONFLYBSD:jpe,OSTYPEVALUES_FREEBSD:Ope,OSTYPEVALUES_HPUX:Ppe,OSTYPEVALUES_LINUX:Tpe,OSTYPEVALUES_NETBSD:Rpe,OSTYPEVALUES_OPENBSD:Lpe,OSTYPEVALUES_SOLARIS:Ipe,OSTYPEVALUES_WINDOWS:Ape,OSTYPEVALUES_Z_OS:$pe,OTEL_STATUS_CODE_VALUE_ERROR:Dde,OTEL_STATUS_CODE_VALUE_OK:Mde,OsTypeValues:Dpe,RPCGRPCSTATUSCODEVALUES_ABORTED:sle,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:nle,RPCGRPCSTATUSCODEVALUES_CANCELLED:Qse,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:dle,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:tle,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:ile,RPCGRPCSTATUSCODEVALUES_INTERNAL:ple,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:ele,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:rle,RPCGRPCSTATUSCODEVALUES_OK:Zse,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:lle,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:ole,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:ale,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:hle,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:ule,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:cle,RPCGRPCSTATUSCODEVALUES_UNKNOWN:Xse,RpcGrpcStatusCodeValues:fle,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:Voe,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:rae,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:Boe,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:Doe,SEMATTRS_AWS_DYNAMODB_COUNT:eae,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:Joe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:Goe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:nae,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:Hoe,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:Moe,SEMATTRS_AWS_DYNAMODB_LIMIT:qoe,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:Yoe,SEMATTRS_AWS_DYNAMODB_PROJECTION:Foe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:zoe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:Uoe,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:tae,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:Zoe,SEMATTRS_AWS_DYNAMODB_SEGMENT:Qoe,SEMATTRS_AWS_DYNAMODB_SELECT:Woe,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:Koe,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:$oe,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:Xoe,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:mne,SEMATTRS_CODE_FILEPATH:voe,SEMATTRS_CODE_FUNCTION:boe,SEMATTRS_CODE_LINENO:xoe,SEMATTRS_CODE_NAMESPACE:yoe,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:Ane,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:Lne,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:Rne,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:_ne,SEMATTRS_DB_CASSANDRA_KEYSPACE:kne,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:Ene,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:One,SEMATTRS_DB_CASSANDRA_TABLE:Tne,SEMATTRS_DB_CONNECTION_STRING:bne,SEMATTRS_DB_HBASE_NAMESPACE:jne,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:vne,SEMATTRS_DB_MONGODB_COLLECTION:Nne,SEMATTRS_DB_MSSQL_INSTANCE_NAME:Cne,SEMATTRS_DB_NAME:xne,SEMATTRS_DB_OPERATION:Sne,SEMATTRS_DB_REDIS_DATABASE_INDEX:Pne,SEMATTRS_DB_SQL_TABLE:Ine,SEMATTRS_DB_STATEMENT:wne,SEMATTRS_DB_SYSTEM:gne,SEMATTRS_DB_USER:yne,SEMATTRS_ENDUSER_ID:doe,SEMATTRS_ENDUSER_ROLE:hoe,SEMATTRS_ENDUSER_SCOPE:foe,SEMATTRS_EXCEPTION_ESCAPED:zne,SEMATTRS_EXCEPTION_MESSAGE:Dne,SEMATTRS_EXCEPTION_STACKTRACE:Mne,SEMATTRS_EXCEPTION_TYPE:$ne,SEMATTRS_FAAS_COLDSTART:Yne,SEMATTRS_FAAS_CRON:Gne,SEMATTRS_FAAS_DOCUMENT_COLLECTION:Fne,SEMATTRS_FAAS_DOCUMENT_NAME:Hne,SEMATTRS_FAAS_DOCUMENT_OPERATION:qne,SEMATTRS_FAAS_DOCUMENT_TIME:Vne,SEMATTRS_FAAS_EXECUTION:Bne,SEMATTRS_FAAS_INVOKED_NAME:Jne,SEMATTRS_FAAS_INVOKED_PROVIDER:Kne,SEMATTRS_FAAS_INVOKED_REGION:Zne,SEMATTRS_FAAS_TIME:Wne,SEMATTRS_FAAS_TRIGGER:Une,SEMATTRS_HTTP_CLIENT_IP:Ioe,SEMATTRS_HTTP_FLAVOR:Toe,SEMATTRS_HTTP_HOST:koe,SEMATTRS_HTTP_METHOD:woe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:Ooe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:Roe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:Loe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:joe,SEMATTRS_HTTP_ROUTE:Noe,SEMATTRS_HTTP_SCHEME:Eoe,SEMATTRS_HTTP_SERVER_NAME:Poe,SEMATTRS_HTTP_STATUS_CODE:Aoe,SEMATTRS_HTTP_TARGET:Coe,SEMATTRS_HTTP_URL:Soe,SEMATTRS_HTTP_USER_AGENT:_oe,SEMATTRS_MESSAGE_COMPRESSED_SIZE:Pae,SEMATTRS_MESSAGE_ID:jae,SEMATTRS_MESSAGE_TYPE:Lae,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:Nae,SEMATTRS_MESSAGING_CONSUMER_ID:gae,SEMATTRS_MESSAGING_CONVERSATION_ID:dae,SEMATTRS_MESSAGING_DESTINATION:aae,SEMATTRS_MESSAGING_DESTINATION_KIND:iae,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:xae,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:vae,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:yae,SEMATTRS_MESSAGING_KAFKA_PARTITION:wae,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:Sae,SEMATTRS_MESSAGING_MESSAGE_ID:uae,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:fae,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:hae,SEMATTRS_MESSAGING_OPERATION:mae,SEMATTRS_MESSAGING_PROTOCOL:lae,SEMATTRS_MESSAGING_PROTOCOL_VERSION:cae,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:bae,SEMATTRS_MESSAGING_SYSTEM:oae,SEMATTRS_MESSAGING_TEMP_DESTINATION:sae,SEMATTRS_MESSAGING_URL:pae,SEMATTRS_NET_HOST_CARRIER_ICC:poe,SEMATTRS_NET_HOST_CARRIER_MCC:loe,SEMATTRS_NET_HOST_CARRIER_MNC:coe,SEMATTRS_NET_HOST_CARRIER_NAME:soe,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:ioe,SEMATTRS_NET_HOST_CONNECTION_TYPE:aoe,SEMATTRS_NET_HOST_IP:roe,SEMATTRS_NET_HOST_NAME:ooe,SEMATTRS_NET_HOST_PORT:noe,SEMATTRS_NET_PEER_IP:Xne,SEMATTRS_NET_PEER_NAME:toe,SEMATTRS_NET_PEER_PORT:eoe,SEMATTRS_NET_TRANSPORT:Qne,SEMATTRS_PEER_SERVICE:uoe,SEMATTRS_RPC_GRPC_STATUS_CODE:Aae,SEMATTRS_RPC_JSONRPC_ERROR_CODE:Oae,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:Rae,SEMATTRS_RPC_JSONRPC_REQUEST_ID:_ae,SEMATTRS_RPC_JSONRPC_VERSION:Tae,SEMATTRS_RPC_METHOD:Eae,SEMATTRS_RPC_SERVICE:kae,SEMATTRS_RPC_SYSTEM:Cae,SEMATTRS_THREAD_ID:moe,SEMATTRS_THREAD_NAME:goe,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:kle,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:Cle,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:Ele,SEMRESATTRS_AWS_ECS_TASK_ARN:Ale,SEMRESATTRS_AWS_ECS_TASK_FAMILY:Tle,SEMRESATTRS_AWS_ECS_TASK_REVISION:_le,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:Ole,SEMRESATTRS_AWS_LOG_GROUP_ARNS:Lle,SEMRESATTRS_AWS_LOG_GROUP_NAMES:Rle,SEMRESATTRS_AWS_LOG_STREAM_ARNS:Ple,SEMRESATTRS_AWS_LOG_STREAM_NAMES:jle,SEMRESATTRS_CLOUD_ACCOUNT_ID:vle,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:wle,SEMRESATTRS_CLOUD_PLATFORM:Sle,SEMRESATTRS_CLOUD_PROVIDER:yle,SEMRESATTRS_CLOUD_REGION:xle,SEMRESATTRS_CONTAINER_ID:Ile,SEMRESATTRS_CONTAINER_IMAGE_NAME:Dle,SEMRESATTRS_CONTAINER_IMAGE_TAG:Mle,SEMRESATTRS_CONTAINER_NAME:Nle,SEMRESATTRS_CONTAINER_RUNTIME:$le,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:zle,SEMRESATTRS_DEVICE_ID:Ule,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:Ble,SEMRESATTRS_DEVICE_MODEL_NAME:Fle,SEMRESATTRS_FAAS_ID:Vle,SEMRESATTRS_FAAS_INSTANCE:Wle,SEMRESATTRS_FAAS_MAX_MEMORY:Gle,SEMRESATTRS_FAAS_NAME:qle,SEMRESATTRS_FAAS_VERSION:Hle,SEMRESATTRS_HOST_ARCH:Zle,SEMRESATTRS_HOST_ID:Yle,SEMRESATTRS_HOST_IMAGE_ID:Xle,SEMRESATTRS_HOST_IMAGE_NAME:Qle,SEMRESATTRS_HOST_IMAGE_VERSION:ece,SEMRESATTRS_HOST_NAME:Jle,SEMRESATTRS_HOST_TYPE:Kle,SEMRESATTRS_K8S_CLUSTER_NAME:tce,SEMRESATTRS_K8S_CONTAINER_NAME:sce,SEMRESATTRS_K8S_CRONJOB_NAME:vce,SEMRESATTRS_K8S_CRONJOB_UID:yce,SEMRESATTRS_K8S_DAEMONSET_NAME:mce,SEMRESATTRS_K8S_DAEMONSET_UID:fce,SEMRESATTRS_K8S_DEPLOYMENT_NAME:uce,SEMRESATTRS_K8S_DEPLOYMENT_UID:pce,SEMRESATTRS_K8S_JOB_NAME:bce,SEMRESATTRS_K8S_JOB_UID:gce,SEMRESATTRS_K8S_NAMESPACE_NAME:oce,SEMRESATTRS_K8S_NODE_NAME:rce,SEMRESATTRS_K8S_NODE_UID:nce,SEMRESATTRS_K8S_POD_NAME:ice,SEMRESATTRS_K8S_POD_UID:ace,SEMRESATTRS_K8S_REPLICASET_NAME:cce,SEMRESATTRS_K8S_REPLICASET_UID:lce,SEMRESATTRS_K8S_STATEFULSET_NAME:hce,SEMRESATTRS_K8S_STATEFULSET_UID:dce,SEMRESATTRS_OS_DESCRIPTION:wce,SEMRESATTRS_OS_NAME:Sce,SEMRESATTRS_OS_TYPE:xce,SEMRESATTRS_OS_VERSION:Cce,SEMRESATTRS_PROCESS_COMMAND:Tce,SEMRESATTRS_PROCESS_COMMAND_ARGS:Oce,SEMRESATTRS_PROCESS_COMMAND_LINE:_ce,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:Ece,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:Ace,SEMRESATTRS_PROCESS_OWNER:Rce,SEMRESATTRS_PROCESS_PID:kce,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:Pce,SEMRESATTRS_PROCESS_RUNTIME_NAME:Lce,SEMRESATTRS_PROCESS_RUNTIME_VERSION:jce,SEMRESATTRS_SERVICE_INSTANCE_ID:$ce,SEMRESATTRS_SERVICE_NAME:Nce,SEMRESATTRS_SERVICE_NAMESPACE:Ice,SEMRESATTRS_SERVICE_VERSION:Dce,SEMRESATTRS_TELEMETRY_AUTO_VERSION:Bce,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:zce,SEMRESATTRS_TELEMETRY_SDK_NAME:Mce,SEMRESATTRS_TELEMETRY_SDK_VERSION:Uce,SEMRESATTRS_WEBENGINE_DESCRIPTION:Vce,SEMRESATTRS_WEBENGINE_NAME:Fce,SEMRESATTRS_WEBENGINE_VERSION:qce,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:Hde,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:Wde,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:Gde,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:Jde,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:Kde,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:Zde,SemanticAttributes:Iae,SemanticResourceAttributes:Hce,TELEMETRYSDKLANGUAGEVALUES_CPP:Mpe,TELEMETRYSDKLANGUAGEVALUES_DOTNET:zpe,TELEMETRYSDKLANGUAGEVALUES_ERLANG:Upe,TELEMETRYSDKLANGUAGEVALUES_GO:Bpe,TELEMETRYSDKLANGUAGEVALUES_JAVA:Fpe,TELEMETRYSDKLANGUAGEVALUES_NODEJS:qpe,TELEMETRYSDKLANGUAGEVALUES_PHP:Vpe,TELEMETRYSDKLANGUAGEVALUES_PYTHON:Hpe,TELEMETRYSDKLANGUAGEVALUES_RUBY:Wpe,TELEMETRYSDKLANGUAGEVALUES_WEBJS:Gpe,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:Qde,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:Xde,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:ehe,TELEMETRY_SDK_LANGUAGE_VALUE_GO:the,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:rhe,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:nhe,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:ohe,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:ahe,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:ihe,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:she,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:lhe,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:Pj,TelemetrySdkLanguageValues:Ype},Symbol.toStringTag,{value:"Module"})),ffe="process.runtime.name",Hx={[yg]:"opentelemetry",[ffe]:"browser",[bg]:Pj,[vg]:fne},$l=performance,mfe=9,gfe=6,bfe=Math.pow(10,gfe),xg=Math.pow(10,mfe);function Cs(e){const t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*bfe);return[r,n]}function Nj(e){const t=Cs($l.timeOrigin),r=Cs(typeof e=="number"?e:$l.now());return Dj(t,r)}function Fd(e){if(Wx(e))return e;if(typeof e=="number")return e<$l.timeOrigin?Nj(e):Cs(e);if(e instanceof Date)return Cs(e.getTime());throw TypeError("Invalid input type")}function yfe(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=xg),[r,n]}function Li(e){return e[0]*xg+e[1]}function Ij(e){return e[0]*1e6+e[1]/1e3}function Wx(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function $j(e){return Wx(e)||typeof e=="number"||e instanceof Date}function Dj(e,t){const r=[e[0]+t[0],e[1]+t[1]];return r[1]>=xg&&(r[1]-=xg,r[0]+=1),r}var Xn;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Xn||(Xn={}));class vfe{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[];const r=new Set;for(const n of this._propagators){const o=typeof n.fields=="function"?n.fields():[];for(const a of o)r.add(a)}this._fields=Array.from(r)}inject(t,r,n){for(const o of this._propagators)try{o.inject(t,r,n)}catch(a){ht.warn(`Failed to inject with ${o.constructor.name}. Err: ${a.message}`)}}extract(t,r,n){return this._propagators.reduce((o,a)=>{try{return a.extract(o,r,n)}catch(i){ht.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return o},t)}fields(){return this._fields.slice()}}const Gx="[_0-9a-z-*/]",xfe=`[a-z]${Gx}{0,255}`,wfe=`[a-z0-9]${Gx}{0,240}@[a-z]${Gx}{0,13}`,Sfe=new RegExp(`^(?:${xfe}|${wfe})$`),Cfe=/^[ -~]{0,255}[!-~]$/,kfe=/,|=/;function Mj(e){return Sfe.test(e)}function zj(e){return Cfe.test(e)&&!kfe.test(e)}const Efe=32,Uj=512,Bj=",",Fj="=";class Mk{_length;_rawTraceState;_internalState;constructor(t){this._rawTraceState=typeof t=="string"?t:"",this._length=this._rawTraceState.length}set(t,r){if(!Mj(t)||!zj(r))return this;const n=this._getState(),o=n.get(t);let a=this._length;if(typeof o=="string"?a+=r.length-o.length:a+=t.length+r.length+(n.size>0?2:1),a>Uj)return this;const i=new Map(n);return i.delete(t),i.set(t,r),this._fromState(i,a)}unset(t){const r=this._getState(),n=r.get(t);if(typeof n!="string")return this;let o=this._length-(t.length+n.length+1);r.size>1&&(o=o-1);const a=new Map(r);return a.delete(t),this._fromState(a,o)}get(t){return this._getState().get(t)}serialize(){let t="",r=0;for(const n of this._getState())r>0&&(t=Bj+t),t=`${n[0]}${Fj}${n[1]}`+t,r++;return t}_getState(){if(this._internalState)return this._internalState;const t=this._rawTraceState.split(Bj),r=new Map;let n=0;for(const o of t){const a=o.trim(),i=a.indexOf(Fj);if(i===-1)continue;const s=a.slice(0,i),c=a.slice(i+1);if(!Mj(s)||!zj(c))continue;const u=n+a.length+(r.size>0?1:0);if(!(u>Uj)&&(r.set(s,c),n=u,r.size>=Efe))break}return this._length=n,this._internalState=new Map(Array.from(r.entries()).reverse()),this._internalState}_fromState(t,r){const n=Object.create(Mk.prototype);return n._internalState=t,n._length=r,n}}const Yx="traceparent",Jx="tracestate",Afe="00",Tfe="(?!ff)[\\da-f]{2}",_fe="(?![0]{32})[\\da-f]{32}",Ofe="(?![0]{16})[\\da-f]{16}",Rfe="[\\da-f]{2}",Lfe=new RegExp(`^\\s?(${Tfe})-(${_fe})-(${Ofe})-(${Rfe})(-.*)?\\s?$`);function jfe(e){const t=Lfe.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class Pfe{inject(t,r,n){const o=jn.getSpanContext(t);if(!o||Fx(t)||!Md(o))return;const a=`${Afe}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||da.NONE).toString(16)}`;n.set(r,Yx,a),o.traceState&&n.set(r,Jx,o.traceState.serialize())}extract(t,r,n){const o=n.get(r,Yx);if(!o)return t;const a=Array.isArray(o)?o[0]:o;if(typeof a!="string")return t;const i=jfe(a);if(!i)return t;i.isRemote=!0;const s=n.get(r,Jx);if(s){const c=Array.isArray(s)?s.join(","):s;i.traceState=new Mk(typeof c=="string"?c:void 0)}return jn.setSpanContext(t,i)}fields(){return[Yx,Jx]}}const Nfe="[object Object]",Ife="[object Null]",$fe="[object Undefined]",Dfe=Function.prototype,qj=Dfe.toString,Mfe=qj.call(Object),zfe=Object.getPrototypeOf,Vj=Object.prototype,Hj=Vj.hasOwnProperty,Dl=Symbol?Symbol.toStringTag:void 0,Wj=Vj.toString;function Gj(e){if(!Ufe(e)||Bfe(e)!==Nfe)return!1;const t=zfe(e);if(t===null)return!0;const r=Hj.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&qj.call(r)===Mfe}function Ufe(e){return e!=null&&typeof e=="object"}function Bfe(e){return e==null?e===void 0?$fe:Ife:Dl&&Dl in Object(e)?Ffe(e):qfe(e)}function Ffe(e){const t=Hj.call(e,Dl),r=e[Dl];let n=!1;try{e[Dl]=void 0,n=!0}catch{}const o=Wj.call(e);return n&&(t?e[Dl]=r:delete e[Dl]),o}function qfe(e){return Wj.call(e)}const Vfe=20;function Hfe(...e){let t=e.shift();const r=new WeakMap;for(;e.length>0;)t=Yj(t,e.shift(),0,r);return t}function Kx(e){return wg(e)?e.slice():e}function Yj(e,t,r=0,n){let o;if(!(r>Vfe)){if(r++,Sg(e)||Sg(t)||Kj(t))o=Kx(t);else if(wg(e)){if(o=e.slice(),wg(t))for(let a=0,i=t.length;a<i;a++)o.push(Kx(t[a]));else if(qd(t)){const a=Object.keys(t);for(let i=0,s=a.length;i<s;i++){const c=a[i];c==="__proto__"||c==="constructor"||c==="prototype"||(o[c]=Kx(t[c]))}}}else if(qd(e))if(qd(t)){if(!Wfe(e,t))return t;o=Object.assign({},e);const a=Object.keys(t);for(let i=0,s=a.length;i<s;i++){const c=a[i];if(c==="__proto__"||c==="constructor"||c==="prototype")continue;const u=t[c];if(Sg(u))typeof u>"u"?delete o[c]:o[c]=u;else{const d=o[c],f=u;if(Jj(e,c,n)||Jj(t,c,n))delete o[c];else{if(qd(d)&&qd(f)){const g=n.get(d)||[],y=n.get(f)||[];g.push({obj:e,key:c}),y.push({obj:t,key:c}),n.set(d,g),n.set(f,y)}o[c]=Yj(o[c],u,r,n)}}}}else o=t;return o}}function Jj(e,t,r){const n=r.get(e[t])||[];for(let o=0,a=n.length;o<a;o++){const i=n[o];if(i.key===t&&i.obj===e)return!0}return!1}function wg(e){return Array.isArray(e)}function Kj(e){return typeof e=="function"}function qd(e){return!Sg(e)&&!wg(e)&&!Kj(e)&&typeof e=="object"}function Sg(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Wfe(e,t){return!(!Gj(e)||!Gj(t))}function Gfe(e,t){return typeof t=="string"?e===t:!!e.match(t)}class Yfe{_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 Zj{_isCalled=!1;_deferred=new Yfe;_callback;_that;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 Jfe(e,t){return new Promise(r=>{Vo.with(cT(Vo.active()),()=>{e.export(t,r)})})}const Kfe={_export:Jfe};let Cg;function Qj(){if(Cg===void 0)try{const e=globalThis.process.argv0;Cg=e?`unknown_service:${e}`:"unknown_service"}catch{Cg="unknown_service"}return Cg}const Vd=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class df{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,r){const n=new df({},r);return n._rawAttributes=eP(t),n._asyncAttributesPending=t.filter(([o,a])=>Vd(a)).length>0,n}constructor(t,r){const n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([o,a])=>(Vd(a)&&(this._asyncAttributesPending=!0),[o,a])),this._rawAttributes=eP(this._rawAttributes),this._schemaUrl=Qfe(r?.schemaUrl)}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,Vd(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&ht.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[r,n]of this._rawAttributes){if(Vd(n)){ht.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(t[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;const r=Xfe(this,t),n=r?{schemaUrl:r}:void 0;return df.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],n)}}function kg(e,t){return df.FromAttributeList(Object.entries(e),t)}function Zfe(e,t){return new df(e,t)}function Zx(){return kg({})}function Xj(){return kg({[Vx]:Qj(),[bg]:Hx[bg],[yg]:Hx[yg],[vg]:Hx[vg]})}function eP(e){return e.map(([t,r])=>Vd(r)?[t,r.catch(n=>{ht.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,r])}function Qfe(e){if(typeof e=="string"||e===void 0)return e;ht.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}function Xfe(e,t){const r=e?.schemaUrl,n=t?.schemaUrl,o=r===void 0||r==="",a=n===void 0||n==="";if(o)return n;if(a||r===n)return r;ht.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',r,n)}const eme=(e={})=>(e.detectors||[]).map(t=>{try{const r=Zfe(t.detect(e));return ht.debug(`${t.constructor.name} found resource.`,r),r}catch(r){return ht.debug(`${t.constructor.name} failed: ${r.message}`),Zx()}}).reduce((t,r)=>t.merge(r),Zx());class tme{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(t){return{attributes:{}}}_parseResourceAttributes(t){if(!t)return{};const r={},n=t.split(this._COMMA_SEPARATOR).filter(o=>o.trim()!=="");for(const o of n){const a=o.split(this._LABEL_KEY_VALUE_SPLITTER);if(a.length!==2)throw new Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${o}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);const[i,s]=a,c=i.trim(),u=s.trim();if(c.length===0)throw new Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${o}".`);let d,f;try{d=decodeURIComponent(c),f=decodeURIComponent(u)}catch(g){throw new Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${o}": ${g instanceof Error?g.message:g}`,{cause:g})}if(d.length>this._MAX_LENGTH)throw new Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${d}".`);if(f.length>this._MAX_LENGTH)throw new Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${d}".`);r[d]=f}return r}}const rme=new tme;class nme{detect(){return{attributes:{}}}}const Eg=new nme,ome=Eg,ame=Eg,ime=Eg,sme=Eg,lme=Object.freeze(Object.defineProperty({__proto__:null,defaultResource:Xj,defaultServiceName:Qj,detectResources:eme,emptyResource:Zx,envDetector:rme,hostDetector:ome,osDetector:ame,processDetector:ime,resourceFromAttributes:kg,serviceInstanceIdDetector:sme},Symbol.toStringTag,{value:"Module"})),cme="exception",Qx=Symbol.for("nodejs.util.inspect.custom");function Xx(e){const t={};for(const[r,n]of e.getRawAttributes())typeof n?.then!="function"&&n!=null&&(t[r]??=n);return t}function e2(e,t,r,n,o){if(typeof r=="number"&&r<0){const i=`[${e}]`;return n?.stylize?n.stylize(i,"special"):i}if(typeof o!="function"||!n)return t;const a={...n,depth:n.depth==null?n.depth:n.depth-1};return`${e} ${o(t,a)}`}class pme{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:Ss.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const r=Date.now();if(this._spanContext=t.spanContext,this._performanceStartTime=$l.now(),this._performanceOffset=r-(this._performanceStartTime+$l.timeOrigin),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,t.links)for(const n of t.links)this.addLink(n);this.startTime=this._getTime(t.startTime??r),this.resource=t.resource,this.instrumentationScope=t.scope,this._recordEndMetrics=t.recordEndMetrics,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 ht.warn(`Invalid attribute key: ${t}`),this;if(!gT(r))return ht.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:n}=this._spanLimits,o=!Object.prototype.hasOwnProperty.call(this.attributes,t);return n!==void 0&&this._attributesCount>=n&&o?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),o&&this._attributesCount++,this)}setAttributes(t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.setAttribute(r,t[r]);return this}addEvent(t,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:o}=this._spanLimits;if(o===0)return ht.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&ht.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),$j(r)&&($j(n)||(n=r),r=void 0);const a=Bd(r),{attributePerEventCountLimit:i}=this._spanLimits,s={};let c=0,u=0;for(const d in a){if(!Object.prototype.hasOwnProperty.call(a,d))continue;const f=a[d];if(i!==void 0&&u>=i){c++;continue}s[d]=this._truncateToSize(f),u++}return this.events.push({name:t,attributes:s,time:this._getTime(n),droppedAttributesCount:c}),this}addLink(t){if(this._isSpanEnded())return this;const{linkCountLimit:r}=this._spanLimits;if(r===0)return this._droppedLinksCount++,this;r!==void 0&&this.links.length>=r&&(this._droppedLinksCount===0&&ht.debug("Dropping extra links."),this.links.shift(),this._droppedLinksCount++);const{attributePerLinkCountLimit:n}=this._spanLimits,o=Bd(t.attributes),a={};let i=0,s=0;for(const u in o){if(!Object.prototype.hasOwnProperty.call(o,u))continue;const d=o[u];if(n!==void 0&&s>=n){i++;continue}a[u]=this._truncateToSize(d),s++}const c={context:t.context};return s>0&&(c.attributes=a),i>0&&(c.droppedAttributesCount=i),this.links.push(c),this}addLinks(t){for(const r of t)this.addLink(r);return this}setStatus(t){if(this._isSpanEnded())return this;if(t.code===Ss.UNSET)return this;if(this.status.code===Ss.OK)return this;const r={code:t.code};return t.code===Ss.ERROR&&(typeof t.message=="string"?r.message=t.message:t.message!=null&&ht.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`)),this.status=r,this}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){ht.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(t),this._duration=yfe(this.startTime,this.endTime),this._duration[0]<0&&(ht.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&&ht.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&ht.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=$l.now())return Nj(t+this._performanceOffset);if(typeof t=="number")return Cs(t);if(t instanceof Date)return Cs(t.getTime());if(Wx(t))return t;if(this._startTimeProvided)return Cs(Date.now());const r=$l.now()-this._performanceStartTime;return Dj(this.startTime,Cs(r))}isRecording(){return this._ended===!1}recordException(t,r){const n={};typeof t=="string"?n[mg]=t:t&&(t.code?n[gg]=t.code.toString():t.name&&(n[gg]=t.name),t.message&&(n[mg]=t.message),t.stack&&(n[Lj]=t.stack)),n[gg]||n[mg]?this.addEvent(cme,n,r):ht.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}}`);ht.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?(ht.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}[Qx](t,r,n){const o={name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:Xx(this.resource)}};return e2("SpanImpl",o,t,r,n)}}var ha;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ha||(ha={}));class Hd{shouldSample(){return{decision:ha.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Ml{shouldSample(){return{decision:ha.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Wd{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Il(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Ml),this._remoteParentSampled=t.remoteParentSampled??new Ml,this._remoteParentNotSampled=t.remoteParentNotSampled??new Hd,this._localParentSampled=t.localParentSampled??new Ml,this._localParentNotSampled=t.localParentNotSampled??new Hd}shouldSample(t,r,n,o,a,i){const s=jn.getSpanContext(t);return!s||!Md(s)?this._root.shouldSample(t,r,n,o,a,i):s.isRemote?s.traceFlags&da.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,o,a,i):this._remoteParentNotSampled.shouldSample(t,r,n,o,a,i):s.traceFlags&da.SAMPLED?this._localParentSampled.shouldSample(t,r,n,o,a,i):this._localParentNotSampled.shouldSample(t,r,n,o,a,i)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class t2{_ratio;_upperBound;constructor(t=0){this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,r){return{decision:Nx(r)&&this._accumulate(r)<this._upperBound?ha.RECORD_AND_SAMPLED:ha.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<32;n+=8){let o=0;for(let a=0;a<8;a++){const i=t.charCodeAt(n+a),s=i<58?i-48:i<71?i-55:i-87;o=o<<4|s}r=(r^o)>>>0}return r}}var za;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(za||(za={}));const tP=1;function rP(){return{sampler:nP(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function nP(){const e=za.ParentBasedAlwaysOn;switch(e){case za.AlwaysOn:return new Ml;case za.AlwaysOff:return new Hd;case za.ParentBasedAlwaysOn:return new Wd({root:new Ml});case za.ParentBasedAlwaysOff:return new Wd({root:new Hd});case za.TraceIdRatio:return new t2(oP());case za.ParentBasedTraceIdRatio:return new Wd({root:new t2(oP())});default:return ht.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${za.ParentBasedAlwaysOn}".`),new Wd({root:new Ml})}}function oP(){return ht.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${tP}.`),tP}const ume=128,dme=1/0;function hme(e){const t={sampler:nP()},r=rP(),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 fme(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??ume,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??dme,Object.assign({},e,{spanLimits:t})}class mme{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_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 Zj(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(ht.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&da.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&&ht.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(ht.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 a=0,i=o;a<i;a++)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);Vo.with(cT(Vo.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);const a=()=>this._exporter.export(o,s=>{clearTimeout(n),s.code===Xn.SUCCESS?t():r(s.error??new Error("BatchSpanProcessor: span export failed"))});let i=null;for(let s=0,c=o.length;s<c;s++){const u=o[s];u.resource.asyncAttributesPending&&u.resource.waitForAsyncAttributes&&(i??=[],i.push(u.resource.waitForAsyncAttributes()))}i===null?a():Promise.all(i).then(a,s=>{Il(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,Il(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),typeof this._timer!="number"&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class aP extends mme{_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=>{Il(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{Il(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 gme=16,bme=8,iP=new Uint8Array(gme),sP=new Uint8Array(bme),yme=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function lP(e){for(let t=0;t<e.length;t++)e[t]=Math.random()*256>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function cP(e){let t="";for(let r=0;r<e.length;r++)t+=yme[e[r]];return t}class pP{generateTraceId(){return lP(iP),cP(iP)}generateSpanId(){return lP(sP),cP(sP)}}const vme="otel.span.parent.origin",uP="otel.span.sampling_result",xme="otel.sdk.span.live",wme="otel.sdk.span.started";class Sme{startedSpans;liveSpans;constructor(t){this.startedSpans=t.createCounter(wme,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=t.createUpDownCounter(xme,{unit:"{span}",description:"The number of currently live spans."})}startSpan(t,r){const n=kme(r);if(this.startedSpans.add(1,{[vme]:Cme(t),[uP]:n}),r===ha.NOT_RECORD)return()=>{};const o={[uP]:n};return this.liveSpans.add(1,o),()=>{this.liveSpans.add(-1,o)}}}function Cme(e){return e?e.isRemote?"remote":"local":"none"}function kme(e){switch(e){case ha.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case ha.RECORD:return"RECORD_ONLY";case ha.NOT_RECORD:return"DROP"}}const Eme="2.8.0";class Ame{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(t,r,n,o){const a=hme(r);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=r.idGenerator||new pP,this._resource=n,this._spanProcessor=o,this.instrumentationScope=t;const i=a.meterProvider?a.meterProvider.getMeter("@opentelemetry/sdk-trace",Eme):KA();this._tracerMetrics=new Sme(i)}startSpan(t,r={},n=Vo.active()){r.root&&(n=jn.deleteSpan(n));const o=jn.getSpan(n);if(Fx(n))return ht.debug("Instrumentation suppressed, returning Noop Span"),jn.wrapSpanContext(Rx);const a=o?.spanContext(),i=this._idGenerator.generateSpanId();let s,c,u;!a||!jn.isSpanContextValid(a)?c=this._idGenerator.generateTraceId():(c=a.traceId,u=a.traceState,s=a);const d=r.kind??Ud.INTERNAL,f=(r.links??[]).map(w=>({context:w.context,attributes:Bd(w.attributes)})),g=Bd(r.attributes),y=this._sampler.shouldSample(n,c,t,d,g,f),v=this._tracerMetrics.startSpan(a,y.decision);u=y.traceState??u;const x=y.decision===zd.RECORD_AND_SAMPLED?da.SAMPLED:da.NONE,C={traceId:c,spanId:i,traceFlags:x,traceState:u};if(y.decision===zd.NOT_RECORD)return ht.debug("Recording is off, propagating context in a non-recording span"),jn.wrapSpanContext(C);const S=Bd(Object.assign(g,y.attributes));return new pme({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:C,name:t,kind:d,links:f,parentSpanContext:s,attributes:S,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:v})}startActiveSpan(t,r,n,o){let a,i,s;if(arguments.length<2)return;arguments.length===2?s=r:arguments.length===3?(a=r,s=n):(a=r,i=n,s=o);const c=i??Vo.active(),u=this.startSpan(t,a,c),d=jn.setSpan(c,u);return Vo.with(d,s,void 0,u)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}[Qx](t,r,n){const o={instrumentationScope:this.instrumentationScope,resource:{attributes:Xx(this._resource)},spanLimits:this._spanLimits,generalLimits:this._generalLimits};return e2("Tracer",o,t,r,n)}}class Tme{_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=>{Il(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(t,r){for(const n of this._spanProcessors)n.onStart(t,r)}onEnding(t){for(const r of this._spanProcessors)r.onEnding&&r.onEnding(t)}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 zl;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(zl||(zl={}));class dP{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const r=Hfe({},rP(),fme(t));this._resource=r.resource??Xj(),this._config=Object.assign({},r,{resource:this._resource});const n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new Tme(n)}getTracer(t,r,n){const o=`${t}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new Ame({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 a;const i=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${t} ms`)),a=zl.timeout},t);n.forceFlush().then(()=>{clearTimeout(i),a!==zl.timeout&&(a=zl.resolved,o(a))}).catch(s=>{clearTimeout(i),a=zl.error,o(s)})}));return new Promise((n,o)=>{Promise.all(r).then(a=>{const i=a.filter(s=>s!==zl.resolved);i.length>0?o(i):n()}).catch(a=>o([a]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[Qx](t,r,n){const o=this._activeSpanProcessor._spanProcessors,a={resource:{attributes:Xx(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:o.map(i=>i.constructor?.name??"SpanProcessor")};return e2("BasicTracerProvider",a,t,r,n)}}class _me{export(t,r){return this._sendSpans(t,r)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:Ij(t.startTime),duration:Ij(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,r){for(const n of t)console.dir(this._exportInfo(n),{depth:3});if(r)return r({code:Xn.SUCCESS})}}class Ome{_finishedSpans=[];_stopped=!1;export(t,r){if(this._stopped)return r({code:Xn.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...t),setTimeout(()=>r({code:Xn.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}class Rme{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new Zj(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,r){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&da.SAMPLED)===0)return;const r=this._doExport(t).catch(n=>Il(n));this._pendingExports.add(r),r.finally(()=>this._pendingExports.delete(r))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const r=await Kfe._export(this._exporter,[t]);if(r.code!==Xn.SUCCESS)throw r.error??new Error(`SimpleSpanProcessor: span export failed (status ${r})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class Lme{onStart(t,r){}onEnd(t){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}class hP{_enabled=!1;_currentContext=Pl;_bindFunction(t=Pl,r){const n=this,o=function(...a){return n.with(t,()=>r.apply(this,a))};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=Pl,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Pl,this)}with(t,r,n,...o){const a=this._currentContext;this._currentContext=t||Pl;try{return r.call(n,...o)}finally{this._currentContext=a}}}function jme(e){if(e!==null){if(e===void 0){const t=new hP;t.enable(),Vo.setGlobalContextManager(t);return}e.enable(),Vo.setGlobalContextManager(e)}}function Pme(e){if(e!==null){if(e===void 0){Nl.setGlobalPropagator(new vfe({propagators:[new Pfe,new sne]}));return}Nl.setGlobalPropagator(e)}}class fP extends dP{constructor(t={}){super(t)}register(t={}){jn.setGlobalTracerProvider(this),Pme(t.propagator),jme(t.contextManager)}}var wr;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(wr||(wr={}));const Nme="http.response_content_length",Ime="http.response_content_length_uncompressed";let r2;function $me(){return r2||(r2=document.createElement("a")),r2}function mP(e,t){return t in e}function Ua(e,t,r,n=!0){if(mP(r,t)&&typeof r[t]=="number"&&!(n&&r[t]===0))return e.addEvent(t,r[t])}function Dme(e,t,r=!1,n,o){if(n===void 0&&(n=t[wr.START_TIME]!==0),r||(Ua(e,wr.FETCH_START,t,n),Ua(e,wr.DOMAIN_LOOKUP_START,t,n),Ua(e,wr.DOMAIN_LOOKUP_END,t,n),Ua(e,wr.CONNECT_START,t,n),Ua(e,wr.SECURE_CONNECTION_START,t,n),Ua(e,wr.CONNECT_END,t,n),Ua(e,wr.REQUEST_START,t,n),Ua(e,wr.RESPONSE_START,t,n),Ua(e,wr.RESPONSE_END,t,n)),!o){const a=t[wr.ENCODED_BODY_SIZE];a!==void 0&&e.setAttribute(Nme,a);const i=t[wr.DECODED_BODY_SIZE];i!==void 0&&a!==i&&e.setAttribute(Ime,i)}}function gP(e){return e.slice().sort((t,r)=>{const n=t[wr.FETCH_START],o=r[wr.FETCH_START];return n>o?1:n<o?-1:0})}function bP(){return typeof location<"u"?location.origin:void 0}function Mme(e,t,r,n,o=new WeakSet,a){const i=Ag(e);e=i.toString();const s=Ume(e,t,r,n,o,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const c=gP(s);if(i.origin!==bP()&&c.length>1){let u=c[0],d=zme(c,u[wr.RESPONSE_END],r);const f=u[wr.RESPONSE_END];return d[wr.FETCH_START]<f&&(d=u,u=void 0),{corsPreFlightRequest:u,mainRequest:d}}else return{mainRequest:s[0]}}function zme(e,t,r){const n=Li(r),o=Li(Fd(t));let a=e[1],i;const s=e.length;for(let c=1;c<s;c++){const u=e[c],d=Li(Fd(u[wr.FETCH_START])),f=Li(Fd(u[wr.RESPONSE_END])),g=n-f;d>=o&&(!i||g<i)&&(i=g,a=u)}return a}function Ume(e,t,r,n,o,a){const i=Li(t),s=Li(r);let c=n.filter(u=>{const d=Li(Fd(u[wr.FETCH_START])),f=Li(Fd(u[wr.RESPONSE_END]));return u.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&u.name===e&&d>=i&&f<=s});return c.length>0&&(c=c.filter(u=>!o.has(u))),c}function Ag(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=$me();return t.href=e,t}function Bme(e){return Ag(e).href}function yP(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";const r=qme(e,t);if(t&&r.indexOf("@id")>0)return r;let n="";return e.parentNode&&(n+=yP(e.parentNode,t)),n+=r,n}function Fme(e){if(!e.parentNode)return 0;const t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let r=Array.from(e.parentNode.childNodes);return r=r.filter(n=>{const o=n.localName;return t.indexOf(n.nodeType)>=0&&o===e.localName}),r.length>=1?r.indexOf(e)+1:0}function qme(e,t){const r=e.nodeType,n=Fme(e);let o;if(r===Node.ELEMENT_NODE){const a=e.getAttribute("id");if(t&&a)return`//*[@id="${a}"]`;o=e.localName}else if(r===Node.TEXT_NODE||r===Node.CDATA_SECTION_NODE)o="text()";else if(r===Node.COMMENT_NODE)o="comment()";else return"";return o&&n>1?`/${o}[${n}]`:`/${o}`}function Vme(e,t){let r=t||[];return(typeof r=="string"||r instanceof RegExp)&&(r=[r]),Ag(e).origin===bP()?!0:r.some(n=>Gfe(e,n))}const Hme=Object.freeze(Object.defineProperty({__proto__:null,AlwaysOffSampler:Hd,AlwaysOnSampler:Ml,BasicTracerProvider:dP,BatchSpanProcessor:aP,ConsoleSpanExporter:_me,InMemorySpanExporter:Ome,NoopSpanProcessor:Lme,ParentBasedSampler:Wd,get PerformanceTimingNames(){return wr},RandomIdGenerator:pP,get SamplingDecision(){return ha},SimpleSpanProcessor:Rme,StackContextManager:hP,TraceIdRatioBasedSampler:t2,WebTracerProvider:fP,addSpanNetworkEvent:Ua,addSpanNetworkEvents:Dme,getElementXPath:yP,getResource:Mme,hasKey:mP,normalizeUrl:Bme,parseUrl:Ag,shouldPropagateTraceHeaders:Vme,sortResources:gP},Symbol.toStringTag,{value:"Module"})),Wme=sa(Hme),Gme=sa(lme);class Yme{_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 vP extends Error{code;name="OTLPExporterError";data;constructor(t,r,n){super(t),this.data=n,this.code=r}}function Jme(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Kme(e){if(e!=null)return async()=>e}function Zme(e,t,r){return{timeoutMillis:Jme(e.timeoutMillis??t.timeoutMillis??r.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??r.concurrencyLimit,compression:e.compression??t.compression??r.compression}}function Qme(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class Xme{_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 ege(e){return new Xme(e.concurrencyLimit)}function tge(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function rge(){return{handleResponse(e){e==null||!tge(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||ht.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class nge{_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(t,r,n,o,a){this._transport=t,this._serializer=r,this._responseHandler=n,this._promiseQueue=o,this._timeout=a,this._diagLogger=ht.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,r){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){r({code:Xn.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(t);if(n==null){r({code:Xn.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(a){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",a,o.data)}r({code:Xn.SUCCESS});return}else if(o.status==="failure"&&o.error){r({code:Xn.FAILED,error:o.error});return}else o.status==="retryable"?r({code:Xn.FAILED,error:o.error??new vP("Export failed with retryable status")}):r({code:Xn.FAILED,error:new vP("Export failed with unknown error")})},o=>r({code:Xn.FAILED,error:o})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function oge(e,t){return new nge(e.transport,e.serializer,rge(),e.promiseHandler,t.timeout)}function age(e,t,r){return oge({transport:r,serializer:t,promiseHandler:ege(e)},{timeout:e.timeoutMillis})}class xP{emit(t){}enabled(){return!1}}const ige=new xP,Tg=Symbol.for("io.opentelemetry.js.api.logs"),Gd=globalThis;function sge(e,t,r){return n=>n===e?t:r}const wP=1;class lge{getLogger(t,r,n){return new xP}}const SP=new lge;class cge{constructor(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}emit(t){this._getLogger().emit(t)}enabled(t){return this._getLogger().enabled(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):ige}}class CP{getLogger(t,r,n){var o;return(o=this._getDelegateLogger(t,r,n))!==null&&o!==void 0?o:new cge(this,t,r,n)}_getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:SP}_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)}}class zk{constructor(){this._proxyLoggerProvider=new CP}static getInstance(){return this._instance||(this._instance=new zk),this._instance}setGlobalLoggerProvider(t){return Gd[Tg]?this.getLoggerProvider():(Gd[Tg]=sge(wP,t,SP),this._proxyLoggerProvider._setDelegate(t),t)}getLoggerProvider(){var t,r;return(r=(t=Gd[Tg])===null||t===void 0?void 0:t.call(Gd,wP))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)}disable(){delete Gd[Tg],this._proxyLoggerProvider=new CP}}const kP=zk.getInstance();function pge(e,t){const r={attributes:Yd(e.attributes,t),droppedAttributesCount:0},n=e.schemaUrl;return n&&n!==""&&(r.schemaUrl=n),r}function uge(e,t){const r={name:e.name,version:e.version};return e.attributes&&Object.keys(e.attributes).length>0&&(r.attributes=Yd(e.attributes,t),r.droppedAttributesCount=e.droppedAttributesCount??0),r}function Yd(e,t){return Object.keys(e).map(r=>dge(r,e[r],t))}function dge(e,t,r){return{key:e,value:n2(t,r)}}function n2(e,t){const r=typeof e;if(r==="string")return{stringValue:e};if(r==="number")return Number.isInteger(e)?{intValue:e}:{doubleValue:e};if(r==="boolean")return{boolValue:e};if(e instanceof Uint8Array)return{bytesValue:t.encodeUint8Array(e)};if(Array.isArray(e)){const n=new Array(e.length);for(let o=0;o<e.length;o++)n[o]=n2(e[o],t);return{arrayValue:{values:n}}}if(r==="object"&&e!=null){const n=Object.keys(e),o=new Array(n.length);for(let a=0;a<n.length;a++)o[a]={key:n[a],value:n2(e[n[a]],t)};return{kvlistValue:{values:o}}}return{}}function hge(e){const t=BigInt(1e9);return BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))}function fge(e){return hge(e).toString()}const mge=typeof BigInt<"u"?fge:Li;function EP(e){return e}const gge={encodeHrTime:mge,encodeSpanContext:EP,encodeOptionalSpanContext:EP,encodeUint8Array:e=>{if(typeof Buffer<"u")return Buffer.from(e).toString("base64");const t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=String.fromCharCode(e[r]);return btoa(t.join(""))}},bge=256,yge=512;function AP(e,t){let r=e&255|bge;return t&&(r|=yge),r}function vge(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:Yd(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(a=>wge(a,t)),droppedEventsCount:e.droppedEventsCount,status:{code:n.code,message:n.message},links:e.links.map(a=>xge(a,t)),droppedLinksCount:e.droppedLinksCount,flags:AP(r.traceFlags,e.parentSpanContext?.isRemote)}}function xge(e,t){return{attributes:e.attributes?Yd(e.attributes,t):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0,flags:AP(e.context.traceFlags,e.context.isRemote)}}function wge(e,t){return{attributes:e.attributes?Yd(e.attributes,t):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function Sge(e,t){return{resourceSpans:kge(e,t)}}function Cge(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 a=n.get(o);a||(a=[],n.set(o,a)),a.push(r)}return t}function kge(e,t){const r=Cge(e),n=[],o=r.entries();let a=o.next();for(;!a.done;){const[i,s]=a.value,c=[],u=s.values();let d=u.next();for(;!d.done;){const y=d.value;if(y.length>0){const v=y.map(x=>vge(x,t));c.push({scope:uge(y[0].instrumentationScope,t),spans:v,schemaUrl:y[0].instrumentationScope.schemaUrl})}d=u.next()}const f=pge(i,t),g={resource:f,scopeSpans:c,schemaUrl:f.schemaUrl};n.push(g),a=o.next()}return n}const Ege={serializeRequest:e=>{const t=Sge(e,gge);return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;try{return JSON.parse(t.decode(e))}catch(r){return ht.warn(`Failed to parse trace export response: ${r.message}. Returning empty response`),{}}}},o2=5,Age=1e3,Tge=5e3,_ge=1.5,TP=.2;function Oge(){return Math.random()*(2*TP)-TP}class Rge{_transport;constructor(t){this._transport=t}retry(t,r,n){return new Promise((o,a)=>{setTimeout(()=>{this._transport.send(t,r).then(o,a)},n)})}async send(t,r){let n=o2,o=Age;const a=Date.now()+r;let i=await this._transport.send(t,r);for(;i.status==="retryable"&&n>0;){n--;const s=Math.max(Math.min(o*(1+Oge()),Tge),0);o=o*_ge;const c=i.retryInMillis??s,u=a-Date.now();if(c>u)return ht.info(`Export retry time ${Math.round(c)}ms exceeds remaining timeout ${Math.round(u)}ms, not retrying further.`),i;ht.verbose(`Scheduling export retry in ${Math.round(c)}ms`),i=await this.retry(t,u,c)}return i.status==="success"?ht.verbose(`Export succeeded after ${o2-n} retry attempts.`):i.status==="retryable"?ht.info(`Export failed after maximum retry attempts (${o2}).`):ht.info(`Export failed with non-retryable error: ${i.error}`),i}shutdown(){return this._transport.shutdown()}}function Lge(e){return new Rge(e.transport)}function jge(e){return e===429||e===502||e===503||e===504}function Pge(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}const Nge=60*1024,Ige=9;let a2=0,_g=0;class $ge{_parameters;constructor(t){this._parameters=t}async send(t,r){const n=new AbortController,o=setTimeout(()=>n.abort(),r);let a=globalThis.fetch;typeof a.__original=="function"&&(a=a.__original);const i=t.byteLength,s=a2+i>Nge,c=_g>=Ige,u=!s&&!c;if(u)a2+=i,_g++;else{const d=s?"size limit":"count limit";ht.debug(`keepalive disabled: ${(i/1024).toFixed(1)}KB payload, ${_g} pending (${d})`)}try{const d=new URL(this._parameters.url),f=await a(d.href,{method:"POST",headers:await this._parameters.headers(),body:t,signal:n.signal,keepalive:u,mode:globalThis.location?globalThis.location.origin===d.origin?"same-origin":"cors":"no-cors"});if(f.status>=200&&f.status<=299)return ht.debug(`export response success (status: ${f.status})`),{status:"success"};if(jge(f.status)){ht.warn(`export response retryable (status: ${f.status})`);const g=f.headers.get("Retry-After");return{status:"retryable",retryInMillis:Pge(g)}}return ht.error(`export response failure (status: ${f.status})`),{status:"failure",error:new Error(`Fetch request failed with non-retryable status ${f.status}`)}}catch(d){return Mge(d)?(ht.warn(`export request retryable (network error: ${d})`),{status:"retryable",error:new Error("Fetch request encountered a network error",{cause:d})}):(ht.error(`export request failure (error: ${d})`),{status:"failure",error:new Error("Fetch request errored",{cause:d})})}finally{clearTimeout(o),u&&(a2-=i,_g--)}}shutdown(){}}function Dge(e){return new $ge(e)}function Mge(e){return e instanceof TypeError&&!e.cause}function zge(e,t){return age(e,t,Lge({transport:Dge(e)}))}function Uge(e){const t={};return Object.entries(e??{}).forEach(([r,n])=>{typeof n<"u"?t[r]=String(n):ht.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),t}function Bge(e,t,r){return async()=>{const n={...await r()},o={};return t!=null&&Object.assign(o,await t()),e!=null&&Object.assign(o,Uge(await e())),Object.assign(o,n)}}function Fge(e){if(e!=null)try{const t=globalThis.location?.href;return new URL(e,t).href}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function qge(e,t,r){return{...Zme(e,t,r),headers:Bge(e.headers,t.headers,r.headers),url:Fge(e.url)??t.url??r.url}}function Vge(e,t){return{...Qme(),headers:async()=>e,url:"http://localhost:4318/"+t}}function Hge(e){return typeof e.headers=="function"?e.headers:Kme(e.headers)}function Wge(e,t,r){return qge({url:e.url,timeoutMillis:e.timeoutMillis,headers:Hge(e),concurrencyLimit:e.concurrencyLimit},{},Vge(r,t))}function Gge(e,t,r,n){const o=Wge(e,r,n);return zge(o,t)}class _P extends Yme{constructor(t={}){super(Gge(t,Ege,"v1/traces",{"Content-Type":"application/json"}))}}const Yge=Object.freeze(Object.defineProperty({__proto__:null,OTLPTraceExporter:_P},Symbol.toStringTag,{value:"Module"})),Jge=sa(Yge),Kge=sa(hfe);function Zge(e,t,r,n){for(let o=0,a=e.length;o<a;o++){const i=e[o];t&&i.setTracerProvider(t),r&&i.setMeterProvider(r),n&&i.setLoggerProvider&&i.setLoggerProvider(n),i.getConfig().enabled||i.enable()}}function Qge(e){e.forEach(t=>t.disable())}function OP(e){const t=e.tracerProvider||jn.getTracerProvider(),r=e.meterProvider||fg.getMeterProvider(),n=e.loggerProvider||kP.getLoggerProvider(),o=e.instrumentations?.flat()??[];return Zge(o,t,r,n),()=>{Qge(o)}}let Ao=console.error.bind(console);function Jd(e,t,r){const n=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r})}const RP=(e,t,r)=>{if(!e||!e[t]){Ao("no original function "+String(t)+" to wrap");return}if(!r){Ao("no wrapper function"),Ao(new Error().stack);return}const n=e[t];if(typeof n!="function"||typeof r!="function"){Ao("original object and wrapper must be functions");return}const o=r(n,t);return Jd(o,"__original",n),Jd(o,"__unwrap",()=>{e[t]===o&&Jd(e,t,n)}),Jd(o,"__wrapped",!0),Jd(e,t,o),o},Xge=(e,t,r)=>{if(e)Array.isArray(e)||(e=[e]);else{Ao("must provide one or more modules to patch"),Ao(new Error().stack);return}if(!(t&&Array.isArray(t))){Ao("must provide one or more functions to wrap on modules");return}e.forEach(n=>{t.forEach(o=>{RP(n,o,r)})})},LP=(e,t)=>{if(!e||!e[t]){Ao("no function to unwrap."),Ao(new Error().stack);return}const r=e[t];if(!r.__unwrap)Ao("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{r.__unwrap();return}},e1e=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{Ao("must provide one or more modules to patch"),Ao(new Error().stack);return}if(!(t&&Array.isArray(t))){Ao("must provide one or more functions to unwrap on modules");return}e.forEach(r=>{t.forEach(n=>{LP(r,n)})})};class t1e{_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(t,r,n){this.instrumentationName=t,this.instrumentationVersion=r,this.setConfig(n),this._diag=ht.createComponentLogger({namespace:t}),this._tracer=jn.getTracer(t,r),this._meter=fg.getMeter(t,r),this._logger=kP.getLogger(t,r),this._updateMetricInstruments()}_wrap=RP;_unwrap=LP;_massWrap=Xge;_massUnwrap=e1e;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,r,n,o){if(t)try{t(n,o)}catch(a){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},a)}}}class jP extends t1e{constructor(t,r,n){super(t,r,n),this._config.enabled&&this.enable()}}function r1e(e){return ht.warn("Path normalization is not implemented for this platform. To silence this warning, ensure no node-specific instrumentations are loaded, and node-specific types (e.g. InstrumentationNodeModuleFile), are not used in a browser context)"),e}class n1e{files;name;supportedVersions;patch;unpatch;constructor(t,r,n,o,a){this.files=a||[],this.name=t,this.supportedVersions=r,this.patch=n,this.unpatch=o}}class o1e{name;supportedVersions;patch;unpatch;constructor(t,r,n,o){this.name=r1e(t),this.supportedVersions=r,this.patch=n,this.unpatch=o}}function a1e(e,t,r){let n,o;try{o=e()}catch(a){n=a}finally{if(t(n,o),n&&!r)throw n;return o}}async function i1e(e,t,r){let n,o;try{o=await e()}catch(a){n=a}finally{if(await t(n,o),n&&!r)throw n;return o}}function s1e(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var cp;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(cp||(cp={}));function l1e(e,t){let r=cp.OLD;const n=t?.split(",").map(o=>o.trim()).filter(o=>o!=="");for(const o of n??[])if(o.toLowerCase()===e+"/dup"){r=cp.DUPLICATE;break}else o.toLowerCase()===e&&(r=cp.STABLE);return r}const c1e=Object.freeze(Object.defineProperty({__proto__:null,InstrumentationBase:jP,InstrumentationNodeModuleDefinition:n1e,InstrumentationNodeModuleFile:o1e,get SemconvStability(){return cp},isWrapped:s1e,registerInstrumentations:OP,safeExecuteInTheMiddle:a1e,safeExecuteInTheMiddleAsync:i1e,semconvStabilityFromStr:l1e},Symbol.toStringTag,{value:"Module"})),p1e=sa(c1e);function ji(e){const t=new Error(e);return t.source="ulid",t}const Ul="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Bl=Ul.length,i2=Math.pow(2,48)-1,Kd=10,s2=16;function l2(e,t,r){return t>e.length-1?e:e.substr(0,t)+r+e.substr(t+1)}function PP(e){let t,r=e.length,n,o;const a=Bl-1;for(;!t&&r-->=0;){if(n=e[r],o=Ul.indexOf(n),o===-1)throw ji("incorrectly encoded string");if(o===a){e=l2(e,r,Ul[0]);continue}t=l2(e,r,Ul[o+1])}if(typeof t=="string")return t;throw ji("cannot increment this string")}function NP(e){let t=Math.floor(e()*Bl);return t===Bl&&(t=Bl-1),Ul.charAt(t)}function Og(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>i2)throw ji("cannot encode time greater than "+i2);if(e<0)throw ji("time must be positive");if(Number.isInteger(Number(e))===!1)throw ji("time must be an integer");let r,n="";for(;t>0;t--)r=e%Bl,n=Ul.charAt(r)+n,e=(e-r)/Bl;return n}function c2(e,t){let r="";for(;e>0;e--)r=NP(t)+r;return r}function u1e(e){if(e.length!==Kd+s2)throw ji("malformed ulid");var t=e.substr(0,Kd).split("").reverse().reduce((r,n,o)=>{const a=Ul.indexOf(n);if(a===-1)throw ji("invalid character found: "+n);return r+=a*Math.pow(Bl,o)},0);if(t>i2)throw ji("malformed ulid, timestamp too large");return t}function p2(e=!1,t){t||(t=typeof window<"u"?window:null);const r=t&&(t.crypto||t.msCrypto);if(r)return()=>{const n=new Uint8Array(1);return r.getRandomValues(n),n[0]/255};try{const n=require("crypto");return()=>n.randomBytes(1).readUInt8()/255}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return()=>Math.random()}throw ji("secure crypto unusable, insecure Math.random not allowed")}function IP(e){return e||(e=p2()),function(t){return isNaN(t)&&(t=Date.now()),Og(t,Kd)+c2(s2,e)}}function d1e(e){e||(e=p2());let t=0,r;return function(n){if(isNaN(n)&&(n=Date.now()),n<=t){const a=r=PP(r);return Og(t,Kd)+a}t=n;const o=r=c2(s2,e);return Og(n,Kd)+o}}const $P=IP(),h1e=Object.freeze(Object.defineProperty({__proto__:null,decodeTime:u1e,detectPrng:p2,encodeRandom:c2,encodeTime:Og,factory:IP,incrementBase32:PP,monotonicFactory:d1e,randomChar:NP,replaceCharAt:l2,ulid:$P},Symbol.toStringTag,{value:"Module"})),DP=sa(h1e);var pp={};const MP=sa(rne);var Zd={},zP;function f1e(){if(zP)return Zd;zP=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.TraceStep=void 0;const e=MP;class t{constructor(n){Object.defineProperty(this,"span",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.span=n}get context(){var n;return(n=this.span)===null||n===void 0?void 0:n.context}error(n){this.span&&(this.span.setStatus(e.SpanStatusCode.ERROR,n.message),this.span.recordException(n),this.span.end())}setAttribute(n,o){this.span&&this.span.setAttribute(n,o)}setStatus(n,o){this.span&&this.span.setStatus(n,o)}end(){this.span&&(this.span.setStatus(e.SpanStatusCode.OK),this.span.end())}}return Zd.TraceStep=t,Zd}var up={},UP;function BP(){if(UP)return up;UP=1,Object.defineProperty(up,"__esModule",{value:!0}),up.CLOUD_EVENT_STANDARD_KEYS=void 0,up.mapToCloudEvent=t;const e=DP;up.CLOUD_EVENT_STANDARD_KEYS=["id","specversion","object","datacontenttype","type","time","origin","env","category","signal","source","subject","subjects","data","actor","requestId","clientIp","organizationId","organizationSlug","projectId","projectSlug","osPlatform","userAgent","sessionId"];function t(r){var n,o,a,i,s,c,u,d;const{type:f,data:g,actor:y,requestId:v,clientIp:x,origin:C,env:S,source:w,organizationId:T,organizationSlug:A,projectId:R,projectSlug:L,category:N="product",signal:_="log",osPlatform:$,userAgent:z,sessionId:F}=r,U=!!(g&&Array.isArray(g)),G=y?{id:(a=y.id)!==null&&a!==void 0?a:`ann_${(0,e.ulid)()}`,object:(i=y.object)!==null&&i!==void 0?i:"user",uri:(s=y.uri)!==null&&s!==void 0?s:""}:null,ee=`evt_${(0,e.ulid)()}`.toLowerCase(),le=new Date,V=(c=w??G?.uri)!==null&&c!==void 0?c:null,ie=Object.assign(Object.assign(Object.assign(Object.assign({},T!==void 0&&{organizationId:T}),A!==void 0&&{organizationSlug:A}),R!==void 0&&{projectId:R}),L!==void 0&&{projectSlug:L}),re={specversion:"1.0",object:"event",datacontenttype:"application/json; charset=utf-8",origin:C,env:S,category:N,signal:_,osPlatform:$,userAgent:z,clientIp:x,sessionId:F};if(U){const se=g,Z=se.map(ae=>{var Y,te,de;return{id:(Y=ae.id)!==null&&Y!==void 0?Y:"",object:(te=ae.object)!==null&&te!==void 0?te:"",uri:(de=ae.uri)!==null&&de!==void 0?de:""}}),q=(u=(n=se[0])===null||n===void 0?void 0:n.id)!==null&&u!==void 0?u:null;Object.assign(re,Object.assign(Object.assign({},ie),{id:ee,type:f,time:le,source:V,actor:G,subject:q,subjects:Z,data:se,requestId:v??""}))}else{const se=(d=(o=Array.isArray(g)?g[0]:g)===null||o===void 0?void 0:o.id)!==null&&d!==void 0?d:null;Object.assign(re,Object.assign(Object.assign(Object.assign({},ie),{id:ee,type:f,time:le,source:V,actor:G,subject:se,requestId:v??"",data:g}),w!=null&&{request:{source:w}}))}return re}return up}var Pi={},FP;function m1e(){if(FP)return Pi;FP=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.toSnakeCase=t,Pi.isNonNullish=r,Pi.isOtelAttributeValue=n,Pi.flattenToAttributes=o,Pi.flattenNestedObject=a,Pi.flattenWithMaxDepth=i;const e=3;function t(s){return s.replace(/([A-Z])/g,"_$1").toLowerCase()}function r(s){return s!=null}function n(s){return typeof s=="string"||typeof s=="number"||typeof s=="boolean"}function o(s,c,u,d=!0,f){const g=f?.length?new Set(f):null;for(const[y,v]of Object.entries(s))if(!g?.has(y)&&v!==void 0){const x=d?t(y):y;u[`${c}${x}`]=v}}function a(s,c,u){for(const[d,f]of Object.entries(s))f==null||typeof f=="object"||(u[`${c}.${t(d)}`]=f)}function i(s,c,u,d){var f,g,y;const v=(f=d?.currentDepth)!==null&&f!==void 0?f:0,x=(g=d?.useSnakeCase)!==null&&g!==void 0?g:!0,C=(y=d?.maxNestingLevels)!==null&&y!==void 0?y:e,S=c.endsWith(".")?c.slice(0,-1):c;for(const[w,T]of Object.entries(s)){if(!r(T))continue;const A=x?t(w):w,R=`${S}.${A}`;typeof T=="object"&&!Array.isArray(T)?v<C&&i(T,R,u,{currentDepth:v+1,useSnakeCase:x,maxNestingLevels:C}):n(T)&&(u[R]=T)}}return Pi}var qP;function g1e(){return qP||(qP=1,(function(e){var t=pp&&pp.__awaiter||function(_,$,z,F){function U(G){return G instanceof z?G:new z(function(ee){ee(G)})}return new(z||(z=Promise))(function(G,ee){function le(re){try{ie(F.next(re))}catch(se){ee(se)}}function V(re){try{ie(F.throw(re))}catch(se){ee(se)}}function ie(re){re.done?G(re.value):U(re.value).then(le,V)}ie((F=F.apply(_,$||[])).next())})},r=pp&&pp.__rest||function(_,$){var z={};for(var F in _)Object.prototype.hasOwnProperty.call(_,F)&&$.indexOf(F)<0&&(z[F]=_[F]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,F=Object.getOwnPropertySymbols(_);U<F.length;U++)$.indexOf(F[U])<0&&Object.prototype.propertyIsEnumerable.call(_,F[U])&&(z[F[U]]=_[F[U]]);return z};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseOtelClient=e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY=void 0,e.groupByObjectProperty=c,e.processCloudEventAttributes=v,e.processObjectData=T,e.processAttributes=L;const n=MP,o=f1e(),a=BP(),i=m1e();e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY="context";const s=[e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY];function c(_){const $={updated:[],notUpdated:[]};for(const z of _){if(!z||typeof z!="object")continue;const F=z.object;if(typeof F!="string")continue;const U=z,G=$.notUpdated.find(ee=>ee.object===F);G?($.updated=[G,U],$.notUpdated=$.notUpdated.filter(ee=>ee.object!==F)):$.updated.some(ee=>ee.object===F)||$.notUpdated.push(U)}return $}function u(_,$,z){const F=z?`${z}.`:"",U=$===""?"":`${(0,i.toSnakeCase)($)}.`;return`${_}.${F}${U}`}function d(_,$){const z=_[e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY];return z==="before"||z==="after"?z:$===0?"after":"before"}function f(_){const $=_,z=e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY;return r($,[typeof z=="symbol"?z:z+""])}function g(_){return _.endsWith(".")?_:`${_}.`}function y(_,$,z){var F,U,G,ee,le,V,ie,re,se,Z;const q=$ instanceof Date?$.toISOString():new Date($).toISOString();return{"cloudevents.event_id":_.id,"cloudevents.event_type":_.type,"cloudevents.event_source":(ee=_.source)!==null&&ee!==void 0?ee:void 0,"cloudevents.event_spec_version":_.specversion,"cloudevents.event_data_content_type":(le=_.datacontenttype)!==null&&le!==void 0?le:"application/json; charset=utf-8","cloudevents.event_time":q,"cloudevents.event_subject":(V=_.subject)!==null&&V!==void 0?V:"","cloudevents.event_version":z?.version,"cloudevents.event_origin":(ie=_.origin)!==null&&ie!==void 0?ie:z?.serviceName,"cloudevents.event_env":_.env,"cloudevents.event_client_ip":_.clientIp,"cloudevents.event_object":_.object||"event","cloudevents.event_category":_.category,"cloudevents.event_signal":_.signal,"cloudevents.event_actor.id":(re=(F=_.actor)===null||F===void 0?void 0:F.id)!==null&&re!==void 0?re:void 0,"cloudevents.event_actor.object":(se=(U=_.actor)===null||U===void 0?void 0:U.object)!==null&&se!==void 0?se:void 0,"cloudevents.event_actor.uri":(Z=(G=_.actor)===null||G===void 0?void 0:G.uri)!==null&&Z!==void 0?Z:void 0,"cloudevents.event_organization_id":_.organizationId,"cloudevents.event_organization_slug":_.organizationSlug,"cloudevents.event_project_id":_.projectId,"cloudevents.event_project_slug":_.projectSlug,"cloudevents.event_request_id":_.requestId,"cloudevents.event_os_platform":_.osPlatform,"cloudevents.event_user_agent":_.userAgent,"cloudevents.event_session_id":_.sessionId}}function v(_,$,z){const F=_.data,U=Object.assign({},y(_,$,z));return x(F,U),A(_,U),R(_,U),U}function x(_,$){!_||typeof _!="object"||(Array.isArray(_)?C(_,$):T(_,$))}function C(_,$){_.some(z=>z&&typeof z=="object"&&typeof z.object=="string")?S(_,$):w(_,$)}function S(_,$){const z=c(_);z.updated.forEach((F,U)=>{const G=u("cloudevents.event_data",F.object,d(F,U));(0,i.flattenWithMaxDepth)(f(F),g(G),$)}),z.notUpdated.forEach(F=>{const U=u("cloudevents.event_data",F.object,void 0);(0,i.flattenWithMaxDepth)(f(F),g(U),$)})}function w(_,$){for(const z of _)!z||typeof z!="object"||(0,i.flattenWithMaxDepth)(z,"cloudevents.event_data.",$)}function T(_,$){for(const[z,F]of Object.entries(_)){if(!(0,i.isNonNullish)(F))continue;const U=(0,i.toSnakeCase)(z);if(typeof F=="object"&&!Array.isArray(F))for(const[G,ee]of Object.entries(F))(0,i.isNonNullish)(ee)&&(0,i.isOtelAttributeValue)(ee)&&($[`cloudevents.event_data.${U}.${G}`]=ee);else(0,i.isOtelAttributeValue)(F)&&($[`cloudevents.event_data.${U}`]=F)}}function A(_,$){if(!_.subjects||!Array.isArray(_.subjects))return;const z=c(_.subjects);z.updated.forEach((F,U)=>{const G=u("cloudevents.event_subjects",F.object,d(F,U));(0,i.flattenToAttributes)(F,G,$,!1,s)}),z.notUpdated.forEach(F=>{const U=u("cloudevents.event_subjects",F.object,void 0);(0,i.flattenToAttributes)(F,U,$,!1,s)})}function R(_,$){for(const[z,F]of Object.entries(_))if(!(a.CLOUD_EVENT_STANDARD_KEYS.includes(z)||F===void 0))if(F instanceof Object)for(const[U,G]of Object.entries(F))G!==void 0&&($[`cloudevents.${z}.${U}`]=G);else $[`cloudevents.${z}`]=F}function L(_,$,z){return v(_,$,z)}class N{constructor(){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tracerProvider",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"sessionId",{enumerable:!0,configurable:!0,writable:!0,value:null})}initTracer($){throw new Error("initTracer must be implemented by the environment-specific client")}init($){this.config=$,this.initTracer($)}send($){var z;try{if(!this.tracer||!this.config)return;const F=$,U="time"in F&&F.time?new Date(F.time):new Date;this.tracer.startSpan(`event.${F.type}`,{attributes:this.processAttributes(F,U),startTime:U}).end(U)}catch(F){!((z=this.config)===null||z===void 0)&&z.isProd||console.error("Event reporting failed:",F)}}processAttributes($,z){return L($,z,this.config)}startSpan($,z){var F;try{if(!this.tracer)return;let U;const G=$.time?new Date($.time):new Date,ee=this.tracer.startSpan(`event.${$.type}`,{attributes:this.processAttributes($,G),root:!z},z);return z||(U=n.trace.setSpan(n.context.active(),ee)),{end:()=>ee.end(),setAttribute:(le,V)=>{ee.setAttribute(`cloudevents.event_data.${(0,i.toSnakeCase)(le)}`,V)},setStatus:(le,V)=>ee.setStatus({code:le,message:V}),parentCtx:U}}catch(U){!((F=this.config)===null||F===void 0)&&F.isProd||console.error("Event reporting failed:",U);return}}startStepSpan($,z){var F;try{if(!this.tracer)return;const U=z||n.context.active(),G=$,ee=G.time?new Date(G.time):new Date,le=this.tracer.startSpan(`event.${G.type}`,{attributes:this.processAttributes(G,ee)},U),V=n.trace.setSpan(U,le);return{end:()=>le.end(),setAttribute:(ie,re)=>{le.setAttribute(`cloudevents.event_data.${(0,i.toSnakeCase)(ie)}`,re)},setStatus:(ie,re)=>le.setStatus({code:ie,message:re}),recordException:ie=>le.recordException(ie),context:V}}catch(U){!((F=this.config)===null||F===void 0)&&F.isProd||console.error("Event reporting failed:",U);return}}traceStep($){const z=this.startStepSpan($);if(z)return new o.TraceStep(z)}forceFlush(){return t(this,void 0,void 0,function*(){var $;return($=this.tracerProvider)===null||$===void 0?void 0:$.forceFlush()})}shutdown(){return t(this,void 0,void 0,function*(){var $;return($=this.tracerProvider)===null||$===void 0?void 0:$.shutdown()})}}e.BaseOtelClient=N})(pp)),pp}var VP;function b1e(){if(VP)return Ld;VP=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.OtelClient=void 0;const e=Wme,t=Gme,r=Jge,n=Kge,o=p1e,a=DP,i=g1e();class s extends i.BaseOtelClient{constructor(){super(),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1})}initTracer(u){var d,f;if(!u.collectorUrl&&!u.collectorTraceUrl)return;const g=`ses_${(0,a.ulid)()}`;this.sessionId=g;const y=(0,t.resourceFromAttributes)({[n.ATTR_SERVICE_NAME]:u.serviceName,[n.ATTR_SERVICE_VERSION]:u.serviceVersion,session_id:g}),v=u.collectorTraceUrl||`${u.collectorUrl}/v1/traces`;this.tracerProvider=new e.WebTracerProvider({resource:y,spanProcessors:[...(d=u.spanProcessors)!==null&&d!==void 0?d:[],new e.BatchSpanProcessor(new r.OTLPTraceExporter({url:v,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(u.tracerName),this.tracerProvider.register(),(0,o.registerInstrumentations)({instrumentations:(f=u.instrumentations)!==null&&f!==void 0?f:[]}),this.initialized=!0}}return Ld.OtelClient=s,Ld}var HP={},WP;function y1e(){return WP||(WP=1,Object.defineProperty(HP,"__esModule",{value:!0})),HP}var GP;function YP(){return GP||(GP=1,(function(e){var t=lp&&lp.__createBinding||(Object.create?(function(n,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,s)}):(function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]})),r=lp&&lp.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(b1e(),e),r(y1e(),e)})(lp)),lp}var dp={},JP;function v1e(){if(JP)return dp;JP=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.buildPageResourceItem=t,dp.appendPageResourceIfNeeded=r,dp.enrichMessageWithPageResource=n;const e=()=>({location:typeof location<"u"?location:void 0,document:typeof document<"u"?document:void 0});function t(a=e()){var i;if(!a.location)return;const s=((i=a.document)===null||i===void 0?void 0:i.referrer)||void 0;return Object.assign({id:a.location.href,object:"page",uri:a.location.href},s?{referrer:s}:{})}function r(a,i,s){if(!s.has(a)||!Array.isArray(i)||i.some(o))return i;const c=t();return c?[...i,c]:i}function n(a,i){const s=r(a.type,a.data,i);return s===a.data?a:Object.assign(Object.assign({},a),{data:s})}function o(a){return a!=null&&typeof a=="object"&&a.object==="page"}return dp}var KP;function x1e(){if(KP)return Rd;KP=1,Object.defineProperty(Rd,"__esModule",{value:!0}),Rd.Telemetry=void 0;const e=YP(),t=BP(),r=v1e(),n=new Set(["com.redocly.downloadDefinition.clicked","com.redocly.copyCodeSnippet.clicked","com.redocly.referencedIn.clicked","com.redocly.selectLanguage.clicked","com.redocly.expandCollapseAll.clicked","com.redocly.examplesSwitcher.clicked","com.redocly.switchServers.clicked","com.redocly.tryIt.opened","com.redocly.changeLayout.clicked","com.redocly.viewSecurityDetails.clicked","com.redocly.viewSecurityDetails.closed","com.redocly.search.opened","com.redocly.searchResult.clicked","com.redocly.searchInputReset.clicked","com.redocly.switchMessage.clicked","com.redocly.switchExample.clicked","com.redocly.message.clicked","com.redocly.serverModal.opened","com.redocly.requiredScopesModal.opened"]);class o{constructor(){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"useCloudEventData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"otelClient",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"updateCloudEventData",{enumerable:!0,configurable:!0,writable:!0,value:i=>{var s;!((s=this.config)===null||s===void 0)&&s.disabled||(this.useCloudEventData=i)}}),this.useCloudEventData=()=>({origin:"redocUi",signal:"log"}),this.otelClient=new e.OtelClient,this.tracer={traceStep:(i,s)=>{const c=this.constructCloudEvent(i,s,{signal:"trace"});return this.otelClient.traceStep(c)}}}send(i,s,c){var u,d;try{if(!(!((u=this.config)===null||u===void 0)&&u.otel.isProd))return;const f=i&&typeof i=="object"&&"type"in i&&"data"in i?(0,r.enrichMessageWithPageResource)(i,n):this.constructCloudEvent(i,s,Object.assign(Object.assign({},c),{signal:"log"}));this.sendToOtelService(f)}catch(f){!((d=this.config)===null||d===void 0)&&d.otel.isProd||console.error("Event reporting failed:",f)}}init(i){i.disabled||this.initialized||(this.config=i,this.initialized=!0,this.otelClient.init({serviceVersion:i.otel.serviceVersion,version:i.otel.version,isProd:i.otel.isProd,collectorUrl:i.otel.collectorUrl,collectorTraceUrl:i.otel.collectorTraceUrl,serviceName:i.otel.serviceName,tracerName:i.otel.tracerName,spanProcessors:i.otel.spanProcessors,instrumentations:[...i.otel.instrumentations||[]]}))}startSpan(i,s,c){var u;if(!((u=this.config)===null||u===void 0)&&u.disabled)return;const d=this.constructCloudEvent(i,s,{signal:"trace"});return this.otelClient.startSpan(d,c)}constructCloudEvent(i,s,c){const u=Object.assign(Object.assign({},this.useCloudEventData()),c);return(0,t.mapToCloudEvent)(Object.assign(Object.assign({type:i,data:(0,r.appendPageResourceIfNeeded)(i,s,n)},u),this.otelClient.sessionId&&{sessionId:this.otelClient.sessionId}))}sendToOtelService(i){var s;!((s=this.config)===null||s===void 0)&&s.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",i),this.otelClient.send(Object.assign(Object.assign({},i),{signal:"log"}))}forceFlush(){var i;return!((i=this.config)===null||i===void 0)&&i.disabled?Promise.resolve():this.otelClient.forceFlush()}shutdown(){var i;return!((i=this.config)===null||i===void 0)&&i.disabled?Promise.resolve():this.otelClient.shutdown()}sendViewedMessage(i,s){this.send("com.redocly.page.viewed",i,s)}sendPerformanceMetricsMessage(i,s){this.send("com.redocly.performanceMetrics.collected",i,s)}sendDownloadDefinitionClickedMessage(i,s){this.send("com.redocly.downloadDefinition.clicked",i,s)}sendCopyCodeSnippetClickedMessage(i,s){this.send("com.redocly.copyCodeSnippet.clicked",i,s)}sendReferencedInClickedMessage(i,s){this.send("com.redocly.referencedIn.clicked",i,s)}sendSelectLanguageClickedMessage(i,s){this.send("com.redocly.selectLanguage.clicked",i,s)}sendExpandCollapseAllClickedMessage(i,s){this.send("com.redocly.expandCollapseAll.clicked",i,s)}sendExamplesSwitcherClickedMessage(i,s){this.send("com.redocly.examplesSwitcher.clicked",i,s)}sendSwitchServersClickedMessage(i,s){this.send("com.redocly.switchServers.clicked",i,s)}sendTryItOpenedMessage(i,s){this.send("com.redocly.tryIt.opened",i,s)}sendChangeLayoutClickedMessage(i,s){this.send("com.redocly.changeLayout.clicked",i,s)}sendViewSecurityDetailsClickedMessage(i,s){this.send("com.redocly.viewSecurityDetails.clicked",i,s)}sendViewSecurityDetailsClosedMessage(i,s){this.send("com.redocly.viewSecurityDetails.closed",i,s)}sendSearchOpenedMessage(i,s){this.send("com.redocly.search.opened",i,s)}sendSearchResultClickedMessage(i,s){this.send("com.redocly.searchResult.clicked",i,s)}sendSearchInputResetClickedMessage(i,s){this.send("com.redocly.searchInputReset.clicked",i,s)}sendSwitchMessageClickedMessage(i,s){this.send("com.redocly.switchMessage.clicked",i,s)}sendSwitchExampleClickedMessage(i,s){this.send("com.redocly.switchExample.clicked",i,s)}sendMessageClickedMessage(i,s){this.send("com.redocly.message.clicked",i,s)}sendServerModalOpenedMessage(i,s){this.send("com.redocly.serverModal.opened",i,s)}sendRequiredScopesModalOpenedMessage(i,s){this.send("com.redocly.requiredScopesModal.opened",i,s)}sendInitialMessage(i,s){this.send("com.redocly.redoc.initialized",i,s)}sendErrorMessage(i,s){this.send("com.redocly.error.occurred",i,s)}}return Rd.Telemetry=o,Rd}var ZP;function w1e(){return ZP||(ZP=1,(function(e){var t=sp&&sp.__createBinding||(Object.create?(function(n,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,s)}):(function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]})),r=sp&&sp.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(nre(),e),r(x1e(),e),r(YP(),e)})(sp)),sp}var QP={},XP;function S1e(){return XP||(XP=1,Object.defineProperty(QP,"__esModule",{value:!0})),QP}var eN;function C1e(){return eN||(eN=1,(function(e){var t=ip&&ip.__createBinding||(Object.create?(function(o,a,i,s){s===void 0&&(s=i);var c=Object.getOwnPropertyDescriptor(a,i);(!c||("get"in c?!a.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(o,s,c)}):(function(o,a,i,s){s===void 0&&(s=i),o[s]=a[i]})),r=ip&&ip.__exportStar||function(o,a){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,o,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.Telemetry=void 0;var n=w1e();Object.defineProperty(e,"Telemetry",{enumerable:!0,get:function(){return n.Telemetry}}),r(S1e(),e)})(ip)),ip}var k1e=C1e();const E1e="@redocly/openapi-docs",A1e="3.24.0-next.7",tN={name:E1e,version:A1e},T1e="https://otel.cloud.redocly.com/v1/traces";class rN extends k1e.Telemetry{specType;constructor(t){super(),this.specType=t.specType,this.init({otel:{isProd:!0,serviceVersion:t.serviceVersion||`${tN.name}@${tN.version}`,version:"1.0.0",collectorTraceUrl:t.collectorUrl||T1e,serviceName:t.serviceName||"redoc-ce",tracerName:"client-telemetry"},disabled:t.disabled||!1})}send(t,r){r&&Array.isArray(r)&&r.length>0&&(r=r.map(n=>n&&typeof n=="object"?{...n,specType:this.specType}:n)),super.send(t,r,{env:"production"})}}var _1e=Object.create,Rg=Object.defineProperty,O1e=Object.getOwnPropertyDescriptor,R1e=Object.getOwnPropertyNames,L1e=Object.getPrototypeOf,j1e=Object.prototype.hasOwnProperty,nN=e=>Rg(e,"__esModule",{value:!0}),Ze=(e,t)=>function(){return t||(0,e[Object.keys(e)[0]])((t={exports:{}}).exports,t),t.exports},oN=(e,t)=>{nN(e);for(var r in t)Rg(e,r,{get:t[r],enumerable:!0})},P1e=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of R1e(t))!j1e.call(e,n)&&n!=="default"&&Rg(e,n,{get:()=>t[n],enumerable:!(r=O1e(t,n))||r.enumerable});return e},Lg=e=>P1e(nN(Rg(e!=null?_1e(L1e(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),aN=Ze({"src/grammar/tag.js"(e,t){function r(a,i){function s(){this.constructor=a}s.prototype=i.prototype,a.prototype=new s}function n(a,i,s,c){this.message=a,this.expected=i,this.found=s,this.location=c,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n)}r(n,Error),n.buildMessage=function(a,i,s){var c={literal:function(x){return'"'+d(x.text)+'"'},class:function(x){var C=x.parts.map(function(S){return Array.isArray(S)?f(S[0])+"-"+f(S[1]):f(S)});return"["+(x.inverted?"^":"")+C+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(x){return x.description},not:function(x){return"not "+g(x.expected)}};function u(x){return x.charCodeAt(0).toString(16).toUpperCase()}function d(x){return x.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(C){return"\\x0"+u(C)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(C){return"\\x"+u(C)})}function f(x){return x.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(C){return"\\x0"+u(C)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(C){return"\\x"+u(C)})}function g(x){return c[x.type](x)}function y(x){var C=x.map(g),S,w;if(C.sort(),C.length>0){for(S=1,w=1;S<C.length;S++)C[S-1]!==C[S]&&(C[w]=C[S],w++);C.length=w}switch(C.length){case 1:return C[0];case 2:return C[0]+" or "+C[1];default:return C.slice(0,-1).join(", ")+", or "+C[C.length-1]}}function v(x){return x?'"'+d(x)+'"':"end of input"}return"Expected "+y(a)+" but "+v(i)+" found."};function o(a,i){i=i!==void 0?i:{};var s={},c={Top:ta},u=ta,d="/",f=".",g="#",y="=",v="(",x=")",C=",",S="[",w="]",T="null",A="true",R="false",L="{",N="}",_=":",$='"',z="\\",F="n",U="r",G="t",ee=/^[$@]/,le=/^[0-9]/,V=/^[^\0-\x1F"\\]/,ie=/^[a-zA-Z0-9_\-]/,re=/^[ \n\t]/,se=pt("/",!1),Z=Hr("tag name"),q=Hr("class"),ae=Hr("id"),Y=pt("=",!1),te=pt("(",!1),de=pt(")",!1),Q=pt(",",!1),oe=Hr("variable"),H=Hr("null"),ve=Hr("boolean"),ke=pt("[",!1),E=pt("]",!1),P=pt("{",!1),W=pt("}",!1),ge=pt(":",!1),xe=Hr("number"),ce=Hr("string"),ue=Hr("identifier"),je=Hr("whitespace"),he=function(J){return{type:"variable",meta:{variable:J}}},Ke=function(J){return{type:"annotation",meta:{attributes:J}}},Je=function(J,fe){return fe},He=function(J,fe,we,Te){fe&&(we=we||[],we.unshift({type:"attribute",name:"primary",value:fe}));const[qe,Qe]=Te?["tag",0]:["tag_open",1];return{type:qe,nesting:Qe,meta:{tag:J,attributes:we}}},Ve=function(J){return{type:"tag_close",nesting:-1,meta:{tag:J}}},Xe=function(J,fe){return J?[J,...fe]:[]},ut=function(J){return J},Fe=function(J){return J},j=function(J){return J},I=function(J){return J},B=function(J){return{type:"class",name:J,value:!0}},pe=function(J){return{type:"attribute",name:"id",value:J}},Ee=function(J,fe){return{type:"attribute",name:J,value:fe}},Re=function(J,fe,we){return fe?[fe,...we]:[]},Be=function(J,fe){let we={};for(let[Te,{name:qe,value:Qe}]of fe.entries())we[qe||Te]=Qe;return new qn(J,we)},it=function(J){return J},Ft=function(J,fe){return{name:J,value:fe}},gt=function(J){return J},Ot=function(J,fe,we){return J==="@"?[fe,...we]:new $t([fe,...we])},It=function(){return null},Zs=function(){return!0},oi=function(){return!1},ai=function(J,fe){return[J,...fe]},Ta=function(J){return J||[]},Ro=function(J,fe){return Object.assign(J,...fe)},Qo=function(J){return J||{}},Lo=function(J,fe){return J==="$$mdtype"?{}:{[J]:fe}},Bn=function(){return parseFloat(Po())},Xo=function(J){return J.join("")},ii=function(){return`
6672
+ `,rre=e=>{const{languageInsensitive:t,fullWidth:r,blinking:n,iconPosition:o,icon:a,children:i,variant:s,tone:c,size:u,extraClass:d,to:f,external:g,className:y,...v}=e,x="tabIndex"in e?e.tabIndex:e.to?-1:void 0,C=m.jsxs(tre,{"data-component-name":"Button/Button",...v,className:ere({variant:s,tone:c,size:u,extraClass:d,className:y}),$fullWidth:r,$blinking:n,$iconPosition:o,$icon:a,$iconOnly:!i&&a!=null,$variant:s,$size:u,tabIndex:x,children:[a&&o!=="right"&&a,i,a&&o==="right"&&a]});return f?m.jsx(Xte,{to:f,external:g,languageInsensitive:t,onClick:e.onClick,children:C}):C},bt=ye(rre)``;function Ma(){const e=D.useId().replace(/:/g,"_");return t=>`${t}-${e}`}var ip={},sp={},HA={},WA;function nre(){return WA||(WA=1,Object.defineProperty(HA,"__esModule",{value:!0})),HA}var Rd={},lp={},Ld={};const Ll="1.9.1",GA=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function ore(e){const t=new Set([e]),r=new Set,n=e.match(GA);if(!n)return()=>!1;const o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(s){return s===e};function a(s){return r.add(s),!1}function i(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(r.has(s))return!1;const c=s.match(GA);if(!c)return a(s);const u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||o.major!==u.major?a(s):o.major===0?o.minor===u.minor&&o.patch<=u.patch?i(s):a(s):o.minor<=u.minor?i(s):a(s)}}const are=ore(Ll),ire=Ll.split(".")[0],jd=Symbol.for(`opentelemetry.js.api.${ire}`),Pd=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{};function Nd(e,t,r,n=!1){var o;const a=Pd[jd]=(o=Pd[jd])!==null&&o!==void 0?o:{version:Ll};if(!n&&a[e]){const i=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(i.stack||i.message),!1}if(a.version!==Ll){const i=new Error(`@opentelemetry/api: Registration of version v${a.version} for ${e} does not match previously registered API v${Ll}`);return r.error(i.stack||i.message),!1}return a[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${Ll}.`),!0}function jl(e){var t,r;const n=(t=Pd[jd])===null||t===void 0?void 0:t.version;if(!(!n||!are(n)))return(r=Pd[jd])===null||r===void 0?void 0:r[e]}function Id(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${Ll}.`);const r=Pd[jd];r&&delete r[e]}class sre{constructor(t){this._namespace=t.namespace||"DiagComponentLogger"}debug(...t){return $d("debug",this._namespace,t)}error(...t){return $d("error",this._namespace,t)}info(...t){return $d("info",this._namespace,t)}warn(...t){return $d("warn",this._namespace,t)}verbose(...t){return $d("verbose",this._namespace,t)}}function $d(e,t,r){const n=jl("diag");if(n)return n[e](t,...r)}var Qn;(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"})(Qn||(Qn={}));function lre(e,t){e<Qn.NONE?e=Qn.NONE:e>Qn.ALL&&(e=Qn.ALL),t=t||{};function r(n,o){const a=t[n];return typeof a=="function"&&e>=o?a.bind(t):function(){}}return{error:r("error",Qn.ERROR),warn:r("warn",Qn.WARN),info:r("info",Qn.INFO),debug:r("debug",Qn.DEBUG),verbose:r("verbose",Qn.VERBOSE)}}const cre="diag";class Zo{static instance(){return this._instance||(this._instance=new Zo),this._instance}constructor(){function t(o){return function(...a){const i=jl("diag");if(i)return i[o](...a)}}const r=this,n=(o,a={logLevel:Qn.INFO})=>{var i,s,c;if(o===r){const f=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((i=f.stack)!==null&&i!==void 0?i:f.message),!1}typeof a=="number"&&(a={logLevel:a});const u=jl("diag"),d=lre((s=a.logLevel)!==null&&s!==void 0?s:Qn.INFO,o);if(u&&!a.suppressOverrideMessage){const f=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";u.warn(`Current logger will be overwritten from ${f}`),d.warn(`Current logger will overwrite one already registered from ${f}`)}return Nd("diag",d,r,!0)};r.setLogger=n,r.disable=()=>{Id(cre,r)},r.createComponentLogger=o=>new sre(o),r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}}class uu{constructor(t){this._entries=t?new Map(t):new Map}getEntry(t){const r=this._entries.get(t);if(r)return Object.assign({},r)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(t,r){const n=new uu(this._entries);return n._entries.set(t,r),n}removeEntry(t){const r=new uu(this._entries);return r._entries.delete(t),r}removeEntries(...t){const r=new uu(this._entries);for(const n of t)r._entries.delete(n);return r}clear(){return new uu}}const pre=Symbol("BaggageEntryMetadata"),ure=Zo.instance();function dre(e={}){return new uu(new Map(Object.entries(e)))}function YA(e){return typeof e!="string"&&(ure.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:pre,toString(){return e}}}function ug(e){return Symbol.for(e)}class py{constructor(t){const r=this;r._currentContext=t?new Map(t):new Map,r.getValue=n=>r._currentContext.get(n),r.setValue=(n,o)=>{const a=new py(r._currentContext);return a._currentContext.set(n,o),a},r.deleteValue=n=>{const o=new py(r._currentContext);return o._currentContext.delete(n),o}}}const Pl=new py,Cx=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],kx={};if(typeof console<"u"){const e=["error","warn","info","debug","trace","log"];for(const t of e)typeof console[t]=="function"&&(kx[t]=console[t])}class hre{constructor(){function t(r){return function(...n){let o=kx[r];if(typeof o!="function"&&(o=kx.log),typeof o!="function"&&console&&(o=console[r],typeof o!="function"&&(o=console.log)),typeof o=="function")return o.apply(console,n)}}for(let r=0;r<Cx.length;r++)this[Cx[r].n]=t(Cx[r].c)}}class fre{constructor(){}createGauge(t,r){return Cre}createHistogram(t,r){return kre}createCounter(t,r){return Sre}createUpDownCounter(t,r){return Ere}createObservableGauge(t,r){return Tre}createObservableCounter(t,r){return Are}createObservableUpDownCounter(t,r){return _re}addBatchObservableCallback(t,r){}removeBatchObservableCallback(t){}}class dg{}class mre extends dg{add(t,r){}}class gre extends dg{add(t,r){}}class bre extends dg{record(t,r){}}class yre extends dg{record(t,r){}}class Ex{addCallback(t){}removeCallback(t){}}class vre extends Ex{}class xre extends Ex{}class wre extends Ex{}const JA=new fre,Sre=new mre,Cre=new bre,kre=new yre,Ere=new gre,Are=new vre,Tre=new xre,_re=new wre;function KA(){return JA}var Ax;(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(Ax||(Ax={}));const ZA={get(e,t){if(e!=null)return e[t]},keys(e){return e==null?[]:Object.keys(e)}},QA={set(e,t,r){e!=null&&(e[t]=r)}};class Ore{active(){return Pl}with(t,r,n,...o){return r.call(n,...o)}bind(t,r){return r}enable(){return this}disable(){return this}}const Tx="context",Rre=new Ore;class du{constructor(){}static getInstance(){return this._instance||(this._instance=new du),this._instance}setGlobalContextManager(t){return Nd(Tx,t,Zo.instance())}active(){return this._getContextManager().active()}with(t,r,n,...o){return this._getContextManager().with(t,r,n,...o)}bind(t,r){return this._getContextManager().bind(t,r)}_getContextManager(){return jl(Tx)||Rre}disable(){this._getContextManager().disable(),Id(Tx,Zo.instance())}}var da;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(da||(da={}));const _x="0000000000000000",Ox="00000000000000000000000000000000",Rx={traceId:Ox,spanId:_x,traceFlags:da.NONE};class Dd{constructor(t=Rx){this._spanContext=t}spanContext(){return this._spanContext}setAttribute(t,r){return this}setAttributes(t){return this}addEvent(t,r){return this}addLink(t){return this}addLinks(t){return this}setStatus(t){return this}updateName(t){return this}end(t){}isRecording(){return!1}recordException(t,r){}}const Lx=ug("OpenTelemetry Context Key SPAN");function jx(e){return e.getValue(Lx)||void 0}function Lre(){return jx(du.getInstance().active())}function Px(e,t){return e.setValue(Lx,t)}function jre(e){return e.deleteValue(Lx)}function Pre(e,t){return Px(e,new Dd(t))}function XA(e){var t;return(t=jx(e))===null||t===void 0?void 0:t.spanContext()}const hg=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function eT(e,t){if(typeof e!="string"||e.length!==t)return!1;let r=0;for(let n=0;n<e.length;n+=4)r+=(hg[e.charCodeAt(n)]|0)+(hg[e.charCodeAt(n+1)]|0)+(hg[e.charCodeAt(n+2)]|0)+(hg[e.charCodeAt(n+3)]|0);return r===t}function Nx(e){return eT(e,32)&&e!==Ox}function tT(e){return eT(e,16)&&e!==_x}function Md(e){return Nx(e.traceId)&&tT(e.spanId)}function Nre(e){return new Dd(e)}const Ix=du.getInstance();class rT{startSpan(t,r,n=Ix.active()){if(r?.root)return new Dd;const o=n&&XA(n);return Ire(o)&&Md(o)?new Dd(o):new Dd}startActiveSpan(t,r,n,o){let a,i,s;if(arguments.length<2)return;arguments.length===2?s=r:arguments.length===3?(a=r,s=n):(a=r,i=n,s=o);const c=i??Ix.active(),u=this.startSpan(t,a,c),d=Px(c,u);return Ix.with(d,s,void 0,u)}}function Ire(e){return e!==null&&typeof e=="object"&&"spanId"in e&&typeof e.spanId=="string"&&"traceId"in e&&typeof e.traceId=="string"&&"traceFlags"in e&&typeof e.traceFlags=="number"}const $re=new rT;class nT{constructor(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}startSpan(t,r,n){return this._getTracer().startSpan(t,r,n)}startActiveSpan(t,r,n,o){const a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):$re}}class Dre{getTracer(t,r,n){return new rT}}const Mre=new Dre;class $x{getTracer(t,r,n){var o;return(o=this.getDelegateTracer(t,r,n))!==null&&o!==void 0?o:new nT(this,t,r,n)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Mre}setDelegate(t){this._delegate=t}getDelegateTracer(t,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(t,r,n)}}var zd;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(zd||(zd={}));var Ud;(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"})(Ud||(Ud={}));var Ss;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Ss||(Ss={}));const Dx="[_0-9a-z-*/]",zre=`[a-z]${Dx}{0,255}`,Ure=`[a-z0-9]${Dx}{0,240}@[a-z]${Dx}{0,13}`,Bre=new RegExp(`^(?:${zre}|${Ure})$`),Fre=/^[ -~]{0,255}[!-~]$/,qre=/,|=/;function Vre(e){return Bre.test(e)}function Hre(e){return Fre.test(e)&&!qre.test(e)}const oT=32,Wre=512,aT=",",iT="=";class Nk{constructor(t){this._internalState=new Map,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 Array.from(this._internalState.keys()).reduceRight((t,r)=>(t.push(r+iT+this.get(r)),t),[]).join(aT)}_parse(t){t.length>Wre||(this._internalState=t.split(aT).reduceRight((r,n)=>{const o=n.trim(),a=o.indexOf(iT);if(a!==-1){const i=o.slice(0,a),s=o.slice(a+1,n.length);Vre(i)&&Hre(s)&&r.set(i,s)}return r},new Map),this._internalState.size>oT&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,oT))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new Nk;return t._internalState=new Map(this._internalState),t}}function Gre(e){return new Nk(e)}const Vo=du.getInstance(),ht=Zo.instance();class Yre{getMeter(t,r,n){return JA}}const Jre=new Yre,Mx="metrics";class Ik{constructor(){}static getInstance(){return this._instance||(this._instance=new Ik),this._instance}setGlobalMeterProvider(t){return Nd(Mx,t,Zo.instance())}getMeterProvider(){return jl(Mx)||Jre}getMeter(t,r,n){return this.getMeterProvider().getMeter(t,r,n)}disable(){Id(Mx,Zo.instance())}}const fg=Ik.getInstance();class Kre{inject(t,r){}extract(t,r){return t}fields(){return[]}}const zx=ug("OpenTelemetry Baggage Key");function sT(e){return e.getValue(zx)||void 0}function Zre(){return sT(du.getInstance().active())}function Qre(e,t){return e.setValue(zx,t)}function Xre(e){return e.deleteValue(zx)}const Ux="propagation",ene=new Kre;class $k{constructor(){this.createBaggage=dre,this.getBaggage=sT,this.getActiveBaggage=Zre,this.setBaggage=Qre,this.deleteBaggage=Xre}static getInstance(){return this._instance||(this._instance=new $k),this._instance}setGlobalPropagator(t){return Nd(Ux,t,Zo.instance())}inject(t,r,n=QA){return this._getGlobalPropagator().inject(t,r,n)}extract(t,r,n=ZA){return this._getGlobalPropagator().extract(t,r,n)}fields(){return this._getGlobalPropagator().fields()}disable(){Id(Ux,Zo.instance())}_getGlobalPropagator(){return jl(Ux)||ene}}const Nl=$k.getInstance(),Bx="trace";class Dk{constructor(){this._proxyTracerProvider=new $x,this.wrapSpanContext=Nre,this.isSpanContextValid=Md,this.deleteSpan=jre,this.getSpan=jx,this.getActiveSpan=Lre,this.getSpanContext=XA,this.setSpan=Px,this.setSpanContext=Pre}static getInstance(){return this._instance||(this._instance=new Dk),this._instance}setGlobalTracerProvider(t){const r=Nd(Bx,this._proxyTracerProvider,Zo.instance());return r&&this._proxyTracerProvider.setDelegate(t),r}getTracerProvider(){return jl(Bx)||this._proxyTracerProvider}getTracer(t,r){return this.getTracerProvider().getTracer(t,r)}disable(){Id(Bx,Zo.instance()),this._proxyTracerProvider=new $x}}const jn=Dk.getInstance(),tne={context:Vo,diag:ht,metrics:fg,propagation:Nl,trace:jn},rne=Object.freeze(Object.defineProperty({__proto__:null,DiagConsoleLogger:hre,get DiagLogLevel(){return Qn},INVALID_SPANID:_x,INVALID_SPAN_CONTEXT:Rx,INVALID_TRACEID:Ox,ProxyTracer:nT,ProxyTracerProvider:$x,ROOT_CONTEXT:Pl,get SamplingDecision(){return zd},get SpanKind(){return Ud},get SpanStatusCode(){return Ss},get TraceFlags(){return da},get ValueType(){return Ax},baggageEntryMetadataFromString:YA,context:Vo,createContextKey:ug,createNoopMeter:KA,createTraceState:Gre,default:tne,defaultTextMapGetter:ZA,defaultTextMapSetter:QA,diag:ht,isSpanContextValid:Md,isValidSpanId:tT,isValidTraceId:Nx,metrics:fg,propagation:Nl,trace:jn},Symbol.toStringTag,{value:"Module"})),lT=ug("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function cT(e){return e.setValue(lT,!0)}function Fx(e){return e.getValue(lT)===!0}const nne="=",pT=";",uT=",",qx="baggage",dT=180,hT=4096,fT=8192;function one(e){return e.reduce((t,r)=>{const n=`${t}${t!==""?uT:""}${r}`;return n.length>fT?t:n},"")}function ane(e){return e.getAllEntries().map(([t,r])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=pT+r.metadata.toString()),n})}function ine(e){if(!e)return;const t=e.indexOf(pT),r=t===-1?e:e.substring(0,t),n=r.indexOf(nne);if(n<=0)return;const o=r.substring(0,n).trim(),a=r.substring(n+1).trim();if(!o||!a)return;let i,s;try{i=decodeURIComponent(o),s=decodeURIComponent(a)}catch{return}let c;if(t!==-1&&t<e.length-1){const u=e.substring(t+1);c=YA(u)}return{key:i,value:s,metadata:c}}function mT(e,t,r,n){let o=0;for(;o<e.length&&r<dT;){const a=e.indexOf(uT,o),i=a===-1?e.length:a,s=i-o;if(s<=hT){const c=ine(e.substring(o,i));if(c){const u=(r===0?0:1)+s;if(n+u>fT)break;t[c.key]=c.metadata?{value:c.value,metadata:c.metadata}:{value:c.value},r++,n+=u}}if(a===-1)break;o=a+1}return[r,n]}class sne{inject(t,r,n){const o=Nl.getBaggage(t);if(!o||Fx(t))return;const a=ane(o).filter(s=>s.length<=hT).slice(0,dT),i=one(a);i.length>0&&n.set(r,qx,i)}extract(t,r,n){const o=n.get(r,qx);if(!o)return t;const a={};let i=0,s=0;if(Array.isArray(o))for(let c=0;c<o.length;c++)[i,s]=mT(o[c],a,i,s);else[i]=mT(o,a,i,s);return i===0?t:Nl.setBaggage(t,Nl.createBaggage(a))}fields(){return[qx]}}function Bd(e){const t={};if(typeof e!="object"||e==null)return t;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if(!lne(r)){ht.warn(`Invalid attribute key: ${r}`);continue}const n=e[r];if(!gT(n)){ht.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?t[r]=n.slice():t[r]=n}return t}function lne(e){return typeof e=="string"&&e!==""}function gT(e){return e==null?!0:Array.isArray(e)?cne(e):bT(typeof e)}function cne(e){let t;for(const r of e){if(r==null)continue;const n=typeof r;if(n!==t){if(!t){if(bT(n)){t=n;continue}return!1}return!1}}return!0}function bT(e){switch(e){case"number":case"boolean":case"string":return!0}return!1}function pne(){return e=>{ht.error(une(e))}}function une(e){return typeof e=="string"?e:JSON.stringify(dne(e))}function dne(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 hne=pne();function Il(e){try{hne(e)}catch{}}const fne="2.8.0";function Yr(e){let t={};const r=e.length;for(let n=0;n<r;n++){const o=e[n];o&&(t[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return t}const yT="aws.lambda.invoked_arn",vT="db.system",xT="db.connection_string",wT="db.user",ST="db.jdbc.driver_classname",CT="db.name",kT="db.statement",ET="db.operation",AT="db.mssql.instance_name",TT="db.cassandra.keyspace",_T="db.cassandra.page_size",OT="db.cassandra.consistency_level",RT="db.cassandra.table",LT="db.cassandra.idempotence",jT="db.cassandra.speculative_execution_count",PT="db.cassandra.coordinator.id",NT="db.cassandra.coordinator.dc",IT="db.hbase.namespace",$T="db.redis.database_index",DT="db.mongodb.collection",MT="db.sql.table",zT="exception.type",UT="exception.message",BT="exception.stacktrace",FT="exception.escaped",qT="faas.trigger",VT="faas.execution",HT="faas.document.collection",WT="faas.document.operation",GT="faas.document.time",YT="faas.document.name",JT="faas.time",KT="faas.cron",ZT="faas.coldstart",QT="faas.invoked_name",XT="faas.invoked_provider",e8="faas.invoked_region",t8="net.transport",r8="net.peer.ip",n8="net.peer.port",o8="net.peer.name",a8="net.host.ip",i8="net.host.port",s8="net.host.name",l8="net.host.connection.type",c8="net.host.connection.subtype",p8="net.host.carrier.name",u8="net.host.carrier.mcc",d8="net.host.carrier.mnc",h8="net.host.carrier.icc",f8="peer.service",m8="enduser.id",g8="enduser.role",b8="enduser.scope",y8="thread.id",v8="thread.name",x8="code.function",w8="code.namespace",S8="code.filepath",C8="code.lineno",k8="http.method",E8="http.url",A8="http.target",T8="http.host",_8="http.scheme",O8="http.status_code",R8="http.flavor",L8="http.user_agent",j8="http.request_content_length",P8="http.request_content_length_uncompressed",N8="http.response_content_length",I8="http.response_content_length_uncompressed",$8="http.server_name",D8="http.route",M8="http.client_ip",z8="aws.dynamodb.table_names",U8="aws.dynamodb.consumed_capacity",B8="aws.dynamodb.item_collection_metrics",F8="aws.dynamodb.provisioned_read_capacity",q8="aws.dynamodb.provisioned_write_capacity",V8="aws.dynamodb.consistent_read",H8="aws.dynamodb.projection",W8="aws.dynamodb.limit",G8="aws.dynamodb.attributes_to_get",Y8="aws.dynamodb.index_name",J8="aws.dynamodb.select",K8="aws.dynamodb.global_secondary_indexes",Z8="aws.dynamodb.local_secondary_indexes",Q8="aws.dynamodb.exclusive_start_table",X8="aws.dynamodb.table_count",e7="aws.dynamodb.scan_forward",t7="aws.dynamodb.segment",r7="aws.dynamodb.total_segments",n7="aws.dynamodb.count",o7="aws.dynamodb.scanned_count",a7="aws.dynamodb.attribute_definitions",i7="aws.dynamodb.global_secondary_index_updates",s7="messaging.system",l7="messaging.destination",c7="messaging.destination_kind",p7="messaging.temp_destination",u7="messaging.protocol",d7="messaging.protocol_version",h7="messaging.url",f7="messaging.message_id",m7="messaging.conversation_id",g7="messaging.message_payload_size_bytes",b7="messaging.message_payload_compressed_size_bytes",y7="messaging.operation",v7="messaging.consumer_id",x7="messaging.rabbitmq.routing_key",w7="messaging.kafka.message_key",S7="messaging.kafka.consumer_group",C7="messaging.kafka.client_id",k7="messaging.kafka.partition",E7="messaging.kafka.tombstone",A7="rpc.system",T7="rpc.service",_7="rpc.method",O7="rpc.grpc.status_code",R7="rpc.jsonrpc.version",L7="rpc.jsonrpc.request_id",j7="rpc.jsonrpc.error_code",P7="rpc.jsonrpc.error_message",N7="message.type",I7="message.id",$7="message.compressed_size",D7="message.uncompressed_size",mne=yT,gne=vT,bne=xT,yne=wT,vne=ST,xne=CT,wne=kT,Sne=ET,Cne=AT,kne=TT,Ene=_T,Ane=OT,Tne=RT,_ne=LT,One=jT,Rne=PT,Lne=NT,jne=IT,Pne=$T,Nne=DT,Ine=MT,$ne=zT,Dne=UT,Mne=BT,zne=FT,Une=qT,Bne=VT,Fne=HT,qne=WT,Vne=GT,Hne=YT,Wne=JT,Gne=KT,Yne=ZT,Jne=QT,Kne=XT,Zne=e8,Qne=t8,Xne=r8,eoe=n8,toe=o8,roe=a8,noe=i8,ooe=s8,aoe=l8,ioe=c8,soe=p8,loe=u8,coe=d8,poe=h8,uoe=f8,doe=m8,hoe=g8,foe=b8,moe=y8,goe=v8,boe=x8,yoe=w8,voe=S8,xoe=C8,woe=k8,Soe=E8,Coe=A8,koe=T8,Eoe=_8,Aoe=O8,Toe=R8,_oe=L8,Ooe=j8,Roe=P8,Loe=N8,joe=I8,Poe=$8,Noe=D8,Ioe=M8,$oe=z8,Doe=U8,Moe=B8,zoe=F8,Uoe=q8,Boe=V8,Foe=H8,qoe=W8,Voe=G8,Hoe=Y8,Woe=J8,Goe=K8,Yoe=Z8,Joe=Q8,Koe=X8,Zoe=e7,Qoe=t7,Xoe=r7,eae=n7,tae=o7,rae=a7,nae=i7,oae=s7,aae=l7,iae=c7,sae=p7,lae=u7,cae=d7,pae=h7,uae=f7,dae=m7,hae=g7,fae=b7,mae=y7,gae=v7,bae=x7,yae=w7,vae=S7,xae=C7,wae=k7,Sae=E7,Cae=A7,kae=T7,Eae=_7,Aae=O7,Tae=R7,_ae=L7,Oae=j7,Rae=P7,Lae=N7,jae=I7,Pae=$7,Nae=D7,Iae=Yr([yT,vT,xT,wT,ST,CT,kT,ET,AT,TT,_T,OT,RT,LT,jT,PT,NT,IT,$T,DT,MT,zT,UT,BT,FT,qT,VT,HT,WT,GT,YT,JT,KT,ZT,QT,XT,e8,t8,r8,n8,o8,a8,i8,s8,l8,c8,p8,u8,d8,h8,f8,m8,g8,b8,y8,v8,x8,w8,S8,C8,k8,E8,A8,T8,_8,O8,R8,L8,j8,P8,N8,I8,$8,D8,M8,z8,U8,B8,F8,q8,V8,H8,W8,G8,Y8,J8,K8,Z8,Q8,X8,e7,t7,r7,n7,o7,a7,i7,s7,l7,c7,p7,u7,d7,h7,f7,m7,g7,b7,y7,v7,x7,w7,S7,C7,k7,E7,A7,T7,_7,O7,R7,L7,j7,P7,N7,I7,$7,D7]),M7="other_sql",z7="mssql",U7="mysql",B7="oracle",F7="db2",q7="postgresql",V7="redshift",H7="hive",W7="cloudscape",G7="hsqldb",Y7="progress",J7="maxdb",K7="hanadb",Z7="ingres",Q7="firstsql",X7="edb",e_="cache",t_="adabas",r_="firebird",n_="derby",o_="filemaker",a_="informix",i_="instantdb",s_="interbase",l_="mariadb",c_="netezza",p_="pervasive",u_="pointbase",d_="sqlite",h_="sybase",f_="teradata",m_="vertica",g_="h2",b_="coldfusion",y_="cassandra",v_="hbase",x_="mongodb",w_="redis",S_="couchbase",C_="couchdb",k_="cosmosdb",E_="dynamodb",A_="neo4j",T_="geode",__="elasticsearch",O_="memcached",R_="cockroachdb",$ae=M7,Dae=z7,Mae=U7,zae=B7,Uae=F7,Bae=q7,Fae=V7,qae=H7,Vae=W7,Hae=G7,Wae=Y7,Gae=J7,Yae=K7,Jae=Z7,Kae=Q7,Zae=X7,Qae=e_,Xae=t_,eie=r_,tie=n_,rie=o_,nie=a_,oie=i_,aie=s_,iie=l_,sie=c_,lie=p_,cie=u_,pie=d_,uie=h_,die=f_,hie=m_,fie=g_,mie=b_,gie=y_,bie=v_,yie=x_,vie=w_,xie=S_,wie=C_,Sie=k_,Cie=E_,kie=A_,Eie=T_,Aie=__,Tie=O_,_ie=R_,Oie=Yr([M7,z7,U7,B7,F7,q7,V7,H7,W7,G7,Y7,J7,K7,Z7,Q7,X7,e_,t_,r_,n_,o_,a_,i_,s_,l_,c_,p_,u_,d_,h_,f_,m_,g_,b_,y_,v_,x_,w_,S_,C_,k_,E_,A_,T_,__,O_,R_]),L_="all",j_="each_quorum",P_="quorum",N_="local_quorum",I_="one",$_="two",D_="three",M_="local_one",z_="any",U_="serial",B_="local_serial",Rie=L_,Lie=j_,jie=P_,Pie=N_,Nie=I_,Iie=$_,$ie=D_,Die=M_,Mie=z_,zie=U_,Uie=B_,Bie=Yr([L_,j_,P_,N_,I_,$_,D_,M_,z_,U_,B_]),F_="datasource",q_="http",V_="pubsub",H_="timer",W_="other",Fie=F_,qie=q_,Vie=V_,Hie=H_,Wie=W_,Gie=Yr([F_,q_,V_,H_,W_]),G_="insert",Y_="edit",J_="delete",Yie=G_,Jie=Y_,Kie=J_,Zie=Yr([G_,Y_,J_]),K_="alibaba_cloud",Z_="aws",Q_="azure",X_="gcp",Qie=K_,Xie=Z_,ese=Q_,tse=X_,rse=Yr([K_,Z_,Q_,X_]),eO="ip_tcp",tO="ip_udp",rO="ip",nO="unix",oO="pipe",aO="inproc",iO="other",nse=eO,ose=tO,ase=rO,ise=nO,sse=oO,lse=aO,cse=iO,pse=Yr([eO,tO,rO,nO,oO,aO,iO]),sO="wifi",lO="wired",cO="cell",pO="unavailable",uO="unknown",use=sO,dse=lO,hse=cO,fse=pO,mse=uO,gse=Yr([sO,lO,cO,pO,uO]),dO="gprs",hO="edge",fO="umts",mO="cdma",gO="evdo_0",bO="evdo_a",yO="cdma2000_1xrtt",vO="hsdpa",xO="hsupa",wO="hspa",SO="iden",CO="evdo_b",kO="lte",EO="ehrpd",AO="hspap",TO="gsm",_O="td_scdma",OO="iwlan",RO="nr",LO="nrnsa",jO="lte_ca",bse=dO,yse=hO,vse=fO,xse=mO,wse=gO,Sse=bO,Cse=yO,kse=vO,Ese=xO,Ase=wO,Tse=SO,_se=CO,Ose=kO,Rse=EO,Lse=AO,jse=TO,Pse=_O,Nse=OO,Ise=RO,$se=LO,Dse=jO,Mse=Yr([dO,hO,fO,mO,gO,bO,yO,vO,xO,wO,SO,CO,kO,EO,AO,TO,_O,OO,RO,LO,jO]),PO="1.0",NO="1.1",IO="2.0",$O="SPDY",DO="QUIC",zse=PO,Use=NO,Bse=IO,Fse=$O,qse=DO,Vse={HTTP_1_0:PO,HTTP_1_1:NO,HTTP_2_0:IO,SPDY:$O,QUIC:DO},MO="queue",zO="topic",Hse=MO,Wse=zO,Gse=Yr([MO,zO]),UO="receive",BO="process",Yse=UO,Jse=BO,Kse=Yr([UO,BO]),FO=0,qO=1,VO=2,HO=3,WO=4,GO=5,YO=6,JO=7,KO=8,ZO=9,QO=10,XO=11,eR=12,tR=13,rR=14,nR=15,oR=16,Zse=FO,Qse=qO,Xse=VO,ele=HO,tle=WO,rle=GO,nle=YO,ole=JO,ale=KO,ile=ZO,sle=QO,lle=XO,cle=eR,ple=tR,ule=rR,dle=nR,hle=oR,fle={OK:FO,CANCELLED:qO,UNKNOWN:VO,INVALID_ARGUMENT:HO,DEADLINE_EXCEEDED:WO,NOT_FOUND:GO,ALREADY_EXISTS:YO,PERMISSION_DENIED:JO,RESOURCE_EXHAUSTED:KO,FAILED_PRECONDITION:ZO,ABORTED:QO,OUT_OF_RANGE:XO,UNIMPLEMENTED:eR,INTERNAL:tR,UNAVAILABLE:rR,DATA_LOSS:nR,UNAUTHENTICATED:oR},aR="SENT",iR="RECEIVED",mle=aR,gle=iR,ble=Yr([aR,iR]),sR="cloud.provider",lR="cloud.account.id",cR="cloud.region",pR="cloud.availability_zone",uR="cloud.platform",dR="aws.ecs.container.arn",hR="aws.ecs.cluster.arn",fR="aws.ecs.launchtype",mR="aws.ecs.task.arn",gR="aws.ecs.task.family",bR="aws.ecs.task.revision",yR="aws.eks.cluster.arn",vR="aws.log.group.names",xR="aws.log.group.arns",wR="aws.log.stream.names",SR="aws.log.stream.arns",CR="container.name",kR="container.id",ER="container.runtime",AR="container.image.name",TR="container.image.tag",_R="deployment.environment",OR="device.id",RR="device.model.identifier",LR="device.model.name",jR="faas.name",PR="faas.id",NR="faas.version",IR="faas.instance",$R="faas.max_memory",DR="host.id",MR="host.name",zR="host.type",UR="host.arch",BR="host.image.name",FR="host.image.id",qR="host.image.version",VR="k8s.cluster.name",HR="k8s.node.name",WR="k8s.node.uid",GR="k8s.namespace.name",YR="k8s.pod.uid",JR="k8s.pod.name",KR="k8s.container.name",ZR="k8s.replicaset.uid",QR="k8s.replicaset.name",XR="k8s.deployment.uid",eL="k8s.deployment.name",tL="k8s.statefulset.uid",rL="k8s.statefulset.name",nL="k8s.daemonset.uid",oL="k8s.daemonset.name",aL="k8s.job.uid",iL="k8s.job.name",sL="k8s.cronjob.uid",lL="k8s.cronjob.name",cL="os.type",pL="os.description",uL="os.name",dL="os.version",hL="process.pid",fL="process.executable.name",mL="process.executable.path",gL="process.command",bL="process.command_line",yL="process.command_args",vL="process.owner",xL="process.runtime.name",wL="process.runtime.version",SL="process.runtime.description",CL="service.name",kL="service.namespace",EL="service.instance.id",AL="service.version",TL="telemetry.sdk.name",_L="telemetry.sdk.language",OL="telemetry.sdk.version",RL="telemetry.auto.version",LL="webengine.name",jL="webengine.version",PL="webengine.description",yle=sR,vle=lR,xle=cR,wle=pR,Sle=uR,Cle=dR,kle=hR,Ele=fR,Ale=mR,Tle=gR,_le=bR,Ole=yR,Rle=vR,Lle=xR,jle=wR,Ple=SR,Nle=CR,Ile=kR,$le=ER,Dle=AR,Mle=TR,zle=_R,Ule=OR,Ble=RR,Fle=LR,qle=jR,Vle=PR,Hle=NR,Wle=IR,Gle=$R,Yle=DR,Jle=MR,Kle=zR,Zle=UR,Qle=BR,Xle=FR,ece=qR,tce=VR,rce=HR,nce=WR,oce=GR,ace=YR,ice=JR,sce=KR,lce=ZR,cce=QR,pce=XR,uce=eL,dce=tL,hce=rL,fce=nL,mce=oL,gce=aL,bce=iL,yce=sL,vce=lL,xce=cL,wce=pL,Sce=uL,Cce=dL,kce=hL,Ece=fL,Ace=mL,Tce=gL,_ce=bL,Oce=yL,Rce=vL,Lce=xL,jce=wL,Pce=SL,Nce=CL,Ice=kL,$ce=EL,Dce=AL,Mce=TL,zce=_L,Uce=OL,Bce=RL,Fce=LL,qce=jL,Vce=PL,Hce=Yr([sR,lR,cR,pR,uR,dR,hR,fR,mR,gR,bR,yR,vR,xR,wR,SR,CR,kR,ER,AR,TR,_R,OR,RR,LR,jR,PR,NR,IR,$R,DR,MR,zR,UR,BR,FR,qR,VR,HR,WR,GR,YR,JR,KR,ZR,QR,XR,eL,tL,rL,nL,oL,aL,iL,sL,lL,cL,pL,uL,dL,hL,fL,mL,gL,bL,yL,vL,xL,wL,SL,CL,kL,EL,AL,TL,_L,OL,RL,LL,jL,PL]),NL="alibaba_cloud",IL="aws",$L="azure",DL="gcp",Wce=NL,Gce=IL,Yce=$L,Jce=DL,Kce=Yr([NL,IL,$L,DL]),ML="alibaba_cloud_ecs",zL="alibaba_cloud_fc",UL="aws_ec2",BL="aws_ecs",FL="aws_eks",qL="aws_lambda",VL="aws_elastic_beanstalk",HL="azure_vm",WL="azure_container_instances",GL="azure_aks",YL="azure_functions",JL="azure_app_service",KL="gcp_compute_engine",ZL="gcp_cloud_run",QL="gcp_kubernetes_engine",XL="gcp_cloud_functions",ej="gcp_app_engine",Zce=ML,Qce=zL,Xce=UL,epe=BL,tpe=FL,rpe=qL,npe=VL,ope=HL,ape=WL,ipe=GL,spe=YL,lpe=JL,cpe=KL,ppe=ZL,upe=QL,dpe=XL,hpe=ej,fpe=Yr([ML,zL,UL,BL,FL,qL,VL,HL,WL,GL,YL,JL,KL,ZL,QL,XL,ej]),tj="ec2",rj="fargate",mpe=tj,gpe=rj,bpe=Yr([tj,rj]),nj="amd64",oj="arm32",aj="arm64",ij="ia64",sj="ppc32",lj="ppc64",cj="x86",ype=nj,vpe=oj,xpe=aj,wpe=ij,Spe=sj,Cpe=lj,kpe=cj,Epe=Yr([nj,oj,aj,ij,sj,lj,cj]),pj="windows",uj="linux",dj="darwin",hj="freebsd",fj="netbsd",mj="openbsd",gj="dragonflybsd",bj="hpux",yj="aix",vj="solaris",xj="z_os",Ape=pj,Tpe=uj,_pe=dj,Ope=hj,Rpe=fj,Lpe=mj,jpe=gj,Ppe=bj,Npe=yj,Ipe=vj,$pe=xj,Dpe=Yr([pj,uj,dj,hj,fj,mj,gj,bj,yj,vj,xj]),wj="cpp",Sj="dotnet",Cj="erlang",kj="go",Ej="java",Aj="nodejs",Tj="php",_j="python",Oj="ruby",Rj="webjs",Mpe=wj,zpe=Sj,Upe=Cj,Bpe=kj,Fpe=Ej,qpe=Aj,Vpe=Tj,Hpe=_j,Wpe=Oj,Gpe=Rj,Ype=Yr([wj,Sj,Cj,kj,Ej,Aj,Tj,_j,Oj,Rj]),Jpe="aspnetcore.diagnostics.exception.result",Kpe="aborted",Zpe="handled",Qpe="skipped",Xpe="unhandled",eue="aspnetcore.diagnostics.handler.type",tue="aspnetcore.rate_limiting.policy",rue="aspnetcore.rate_limiting.result",nue="acquired",oue="endpoint_limiter",aue="global_limiter",iue="request_canceled",sue="aspnetcore.request.is_unhandled",lue="aspnetcore.routing.is_fallback",cue="aspnetcore.routing.match_status",pue="failure",uue="success",due="aspnetcore.user.is_authenticated",hue="client.address",fue="client.port",mue="code.column.number",gue="code.file.path",bue="code.function.name",yue="code.line.number",vue="code.stacktrace",xue="db.collection.name",wue="db.namespace",Sue="db.operation.batch.size",Cue="db.operation.name",kue="db.query.summary",Eue="db.query.text",Aue="db.response.status_code",Tue="db.stored_procedure.name",_ue="db.system.name",Oue="mariadb",Rue="microsoft.sql_server",Lue="mysql",jue="postgresql",Pue="dotnet.gc.heap.generation",Nue="gen0",Iue="gen1",$ue="gen2",Due="loh",Mue="poh",zue="error.type",Uue="_OTHER",Bue="exception.escaped",mg="exception.message",Lj="exception.stacktrace",gg="exception.type",Fue=e=>`http.request.header.${e}`,que="http.request.method",Vue="_OTHER",Hue="CONNECT",Wue="DELETE",Gue="GET",Yue="HEAD",Jue="OPTIONS",Kue="PATCH",Zue="POST",Que="PUT",Xue="TRACE",ede="http.request.method_original",tde="http.request.resend_count",rde=e=>`http.response.header.${e}`,nde="http.response.status_code",ode="http.route",ade="jvm.gc.action",ide="jvm.gc.name",sde="jvm.memory.pool.name",lde="jvm.memory.type",cde="heap",pde="non_heap",ude="jvm.thread.daemon",dde="jvm.thread.state",hde="blocked",fde="new",mde="runnable",gde="terminated",bde="timed_waiting",yde="waiting",vde="network.local.address",xde="network.local.port",wde="network.peer.address",Sde="network.peer.port",Cde="network.protocol.name",kde="network.protocol.version",Ede="network.transport",Ade="pipe",Tde="quic",_de="tcp",Ode="udp",Rde="unix",Lde="network.type",jde="ipv4",Pde="ipv6",Nde="otel.scope.name",Ide="otel.scope.version",$de="otel.status_code",Dde="ERROR",Mde="OK",zde="otel.status_description",Ude="server.address",Bde="server.port",Fde="service.instance.id",Vx="service.name",qde="service.namespace",jj="service.version",Vde="signalr.connection.status",Hde="app_shutdown",Wde="normal_closure",Gde="timeout",Yde="signalr.transport",Jde="long_polling",Kde="server_sent_events",Zde="web_sockets",bg="telemetry.sdk.language",Qde="cpp",Xde="dotnet",ehe="erlang",the="go",rhe="java",nhe="nodejs",ohe="php",ahe="python",ihe="ruby",she="rust",lhe="swift",Pj="webjs",yg="telemetry.sdk.name",vg="telemetry.sdk.version",che="url.fragment",phe="url.full",uhe="url.path",dhe="url.query",hhe="url.scheme",fhe="user_agent.original",mhe="aspnetcore.diagnostics.exceptions",ghe="aspnetcore.rate_limiting.active_request_leases",bhe="aspnetcore.rate_limiting.queued_requests",yhe="aspnetcore.rate_limiting.request.time_in_queue",vhe="aspnetcore.rate_limiting.request_lease.duration",xhe="aspnetcore.rate_limiting.requests",whe="aspnetcore.routing.match_attempts",She="db.client.operation.duration",Che="dotnet.assembly.count",khe="dotnet.exceptions",Ehe="dotnet.gc.collections",Ahe="dotnet.gc.heap.total_allocated",The="dotnet.gc.last_collection.heap.fragmentation.size",_he="dotnet.gc.last_collection.heap.size",Ohe="dotnet.gc.last_collection.memory.committed_size",Rhe="dotnet.gc.pause.time",Lhe="dotnet.jit.compilation.time",jhe="dotnet.jit.compiled_il.size",Phe="dotnet.jit.compiled_methods",Nhe="dotnet.monitor.lock_contentions",Ihe="dotnet.process.cpu.count",$he="dotnet.process.cpu.time",Dhe="dotnet.process.memory.working_set",Mhe="dotnet.thread_pool.queue.length",zhe="dotnet.thread_pool.thread.count",Uhe="dotnet.thread_pool.work_item.count",Bhe="dotnet.timer.count",Fhe="http.client.request.duration",qhe="http.server.request.duration",Vhe="jvm.class.count",Hhe="jvm.class.loaded",Whe="jvm.class.unloaded",Ghe="jvm.cpu.count",Yhe="jvm.cpu.recent_utilization",Jhe="jvm.cpu.time",Khe="jvm.gc.duration",Zhe="jvm.memory.committed",Qhe="jvm.memory.limit",Xhe="jvm.memory.used",efe="jvm.memory.used_after_last_gc",tfe="jvm.thread.count",rfe="kestrel.active_connections",nfe="kestrel.active_tls_handshakes",ofe="kestrel.connection.duration",afe="kestrel.queued_connections",ife="kestrel.queued_requests",sfe="kestrel.rejected_connections",lfe="kestrel.tls_handshake.duration",cfe="kestrel.upgraded_connections",pfe="signalr.server.active_connections",ufe="signalr.server.connection.duration",dfe="exception",hfe=Object.freeze(Object.defineProperty({__proto__:null,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:Kpe,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:Zpe,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:Qpe,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:Xpe,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:nue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:oue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:aue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:iue,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:pue,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:uue,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:Jpe,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:eue,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:tue,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:rue,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:sue,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:lue,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:cue,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:due,ATTR_CLIENT_ADDRESS:hue,ATTR_CLIENT_PORT:fue,ATTR_CODE_COLUMN_NUMBER:mue,ATTR_CODE_FILE_PATH:gue,ATTR_CODE_FUNCTION_NAME:bue,ATTR_CODE_LINE_NUMBER:yue,ATTR_CODE_STACKTRACE:vue,ATTR_DB_COLLECTION_NAME:xue,ATTR_DB_NAMESPACE:wue,ATTR_DB_OPERATION_BATCH_SIZE:Sue,ATTR_DB_OPERATION_NAME:Cue,ATTR_DB_QUERY_SUMMARY:kue,ATTR_DB_QUERY_TEXT:Eue,ATTR_DB_RESPONSE_STATUS_CODE:Aue,ATTR_DB_STORED_PROCEDURE_NAME:Tue,ATTR_DB_SYSTEM_NAME:_ue,ATTR_DOTNET_GC_HEAP_GENERATION:Pue,ATTR_ERROR_TYPE:zue,ATTR_EXCEPTION_ESCAPED:Bue,ATTR_EXCEPTION_MESSAGE:mg,ATTR_EXCEPTION_STACKTRACE:Lj,ATTR_EXCEPTION_TYPE:gg,ATTR_HTTP_REQUEST_HEADER:Fue,ATTR_HTTP_REQUEST_METHOD:que,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:ede,ATTR_HTTP_REQUEST_RESEND_COUNT:tde,ATTR_HTTP_RESPONSE_HEADER:rde,ATTR_HTTP_RESPONSE_STATUS_CODE:nde,ATTR_HTTP_ROUTE:ode,ATTR_JVM_GC_ACTION:ade,ATTR_JVM_GC_NAME:ide,ATTR_JVM_MEMORY_POOL_NAME:sde,ATTR_JVM_MEMORY_TYPE:lde,ATTR_JVM_THREAD_DAEMON:ude,ATTR_JVM_THREAD_STATE:dde,ATTR_NETWORK_LOCAL_ADDRESS:vde,ATTR_NETWORK_LOCAL_PORT:xde,ATTR_NETWORK_PEER_ADDRESS:wde,ATTR_NETWORK_PEER_PORT:Sde,ATTR_NETWORK_PROTOCOL_NAME:Cde,ATTR_NETWORK_PROTOCOL_VERSION:kde,ATTR_NETWORK_TRANSPORT:Ede,ATTR_NETWORK_TYPE:Lde,ATTR_OTEL_SCOPE_NAME:Nde,ATTR_OTEL_SCOPE_VERSION:Ide,ATTR_OTEL_STATUS_CODE:$de,ATTR_OTEL_STATUS_DESCRIPTION:zde,ATTR_SERVER_ADDRESS:Ude,ATTR_SERVER_PORT:Bde,ATTR_SERVICE_INSTANCE_ID:Fde,ATTR_SERVICE_NAME:Vx,ATTR_SERVICE_NAMESPACE:qde,ATTR_SERVICE_VERSION:jj,ATTR_SIGNALR_CONNECTION_STATUS:Vde,ATTR_SIGNALR_TRANSPORT:Yde,ATTR_TELEMETRY_SDK_LANGUAGE:bg,ATTR_TELEMETRY_SDK_NAME:yg,ATTR_TELEMETRY_SDK_VERSION:vg,ATTR_URL_FRAGMENT:che,ATTR_URL_FULL:phe,ATTR_URL_PATH:uhe,ATTR_URL_QUERY:dhe,ATTR_URL_SCHEME:hhe,ATTR_USER_AGENT_ORIGINAL:fhe,AWSECSLAUNCHTYPEVALUES_EC2:mpe,AWSECSLAUNCHTYPEVALUES_FARGATE:gpe,AwsEcsLaunchtypeValues:bpe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:Zce,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:Qce,CLOUDPLATFORMVALUES_AWS_EC2:Xce,CLOUDPLATFORMVALUES_AWS_ECS:epe,CLOUDPLATFORMVALUES_AWS_EKS:tpe,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:npe,CLOUDPLATFORMVALUES_AWS_LAMBDA:rpe,CLOUDPLATFORMVALUES_AZURE_AKS:ipe,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:lpe,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:ape,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:spe,CLOUDPLATFORMVALUES_AZURE_VM:ope,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:hpe,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:dpe,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:ppe,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:cpe,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:upe,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:Wce,CLOUDPROVIDERVALUES_AWS:Gce,CLOUDPROVIDERVALUES_AZURE:Yce,CLOUDPROVIDERVALUES_GCP:Jce,CloudPlatformValues:fpe,CloudProviderValues:Kce,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:Rie,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:Mie,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:Lie,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:Die,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:Pie,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:Uie,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:Nie,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:jie,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:zie,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:$ie,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:Iie,DBSYSTEMVALUES_ADABAS:Xae,DBSYSTEMVALUES_CACHE:Qae,DBSYSTEMVALUES_CASSANDRA:gie,DBSYSTEMVALUES_CLOUDSCAPE:Vae,DBSYSTEMVALUES_COCKROACHDB:_ie,DBSYSTEMVALUES_COLDFUSION:mie,DBSYSTEMVALUES_COSMOSDB:Sie,DBSYSTEMVALUES_COUCHBASE:xie,DBSYSTEMVALUES_COUCHDB:wie,DBSYSTEMVALUES_DB2:Uae,DBSYSTEMVALUES_DERBY:tie,DBSYSTEMVALUES_DYNAMODB:Cie,DBSYSTEMVALUES_EDB:Zae,DBSYSTEMVALUES_ELASTICSEARCH:Aie,DBSYSTEMVALUES_FILEMAKER:rie,DBSYSTEMVALUES_FIREBIRD:eie,DBSYSTEMVALUES_FIRSTSQL:Kae,DBSYSTEMVALUES_GEODE:Eie,DBSYSTEMVALUES_H2:fie,DBSYSTEMVALUES_HANADB:Yae,DBSYSTEMVALUES_HBASE:bie,DBSYSTEMVALUES_HIVE:qae,DBSYSTEMVALUES_HSQLDB:Hae,DBSYSTEMVALUES_INFORMIX:nie,DBSYSTEMVALUES_INGRES:Jae,DBSYSTEMVALUES_INSTANTDB:oie,DBSYSTEMVALUES_INTERBASE:aie,DBSYSTEMVALUES_MARIADB:iie,DBSYSTEMVALUES_MAXDB:Gae,DBSYSTEMVALUES_MEMCACHED:Tie,DBSYSTEMVALUES_MONGODB:yie,DBSYSTEMVALUES_MSSQL:Dae,DBSYSTEMVALUES_MYSQL:Mae,DBSYSTEMVALUES_NEO4J:kie,DBSYSTEMVALUES_NETEZZA:sie,DBSYSTEMVALUES_ORACLE:zae,DBSYSTEMVALUES_OTHER_SQL:$ae,DBSYSTEMVALUES_PERVASIVE:lie,DBSYSTEMVALUES_POINTBASE:cie,DBSYSTEMVALUES_POSTGRESQL:Bae,DBSYSTEMVALUES_PROGRESS:Wae,DBSYSTEMVALUES_REDIS:vie,DBSYSTEMVALUES_REDSHIFT:Fae,DBSYSTEMVALUES_SQLITE:pie,DBSYSTEMVALUES_SYBASE:uie,DBSYSTEMVALUES_TERADATA:die,DBSYSTEMVALUES_VERTICA:hie,DB_SYSTEM_NAME_VALUE_MARIADB:Oue,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:Rue,DB_SYSTEM_NAME_VALUE_MYSQL:Lue,DB_SYSTEM_NAME_VALUE_POSTGRESQL:jue,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:Nue,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:Iue,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:$ue,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:Due,DOTNET_GC_HEAP_GENERATION_VALUE_POH:Mue,DbCassandraConsistencyLevelValues:Bie,DbSystemValues:Oie,ERROR_TYPE_VALUE_OTHER:Uue,EVENT_EXCEPTION:dfe,FAASDOCUMENTOPERATIONVALUES_DELETE:Kie,FAASDOCUMENTOPERATIONVALUES_EDIT:Jie,FAASDOCUMENTOPERATIONVALUES_INSERT:Yie,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:Qie,FAASINVOKEDPROVIDERVALUES_AWS:Xie,FAASINVOKEDPROVIDERVALUES_AZURE:ese,FAASINVOKEDPROVIDERVALUES_GCP:tse,FAASTRIGGERVALUES_DATASOURCE:Fie,FAASTRIGGERVALUES_HTTP:qie,FAASTRIGGERVALUES_OTHER:Wie,FAASTRIGGERVALUES_PUBSUB:Vie,FAASTRIGGERVALUES_TIMER:Hie,FaasDocumentOperationValues:Zie,FaasInvokedProviderValues:rse,FaasTriggerValues:Gie,HOSTARCHVALUES_AMD64:ype,HOSTARCHVALUES_ARM32:vpe,HOSTARCHVALUES_ARM64:xpe,HOSTARCHVALUES_IA64:wpe,HOSTARCHVALUES_PPC32:Spe,HOSTARCHVALUES_PPC64:Cpe,HOSTARCHVALUES_X86:kpe,HTTPFLAVORVALUES_HTTP_1_0:zse,HTTPFLAVORVALUES_HTTP_1_1:Use,HTTPFLAVORVALUES_HTTP_2_0:Bse,HTTPFLAVORVALUES_QUIC:qse,HTTPFLAVORVALUES_SPDY:Fse,HTTP_REQUEST_METHOD_VALUE_CONNECT:Hue,HTTP_REQUEST_METHOD_VALUE_DELETE:Wue,HTTP_REQUEST_METHOD_VALUE_GET:Gue,HTTP_REQUEST_METHOD_VALUE_HEAD:Yue,HTTP_REQUEST_METHOD_VALUE_OPTIONS:Jue,HTTP_REQUEST_METHOD_VALUE_OTHER:Vue,HTTP_REQUEST_METHOD_VALUE_PATCH:Kue,HTTP_REQUEST_METHOD_VALUE_POST:Zue,HTTP_REQUEST_METHOD_VALUE_PUT:Que,HTTP_REQUEST_METHOD_VALUE_TRACE:Xue,HostArchValues:Epe,HttpFlavorValues:Vse,JVM_MEMORY_TYPE_VALUE_HEAP:cde,JVM_MEMORY_TYPE_VALUE_NON_HEAP:pde,JVM_THREAD_STATE_VALUE_BLOCKED:hde,JVM_THREAD_STATE_VALUE_NEW:fde,JVM_THREAD_STATE_VALUE_RUNNABLE:mde,JVM_THREAD_STATE_VALUE_TERMINATED:gde,JVM_THREAD_STATE_VALUE_TIMED_WAITING:bde,JVM_THREAD_STATE_VALUE_WAITING:yde,MESSAGETYPEVALUES_RECEIVED:gle,MESSAGETYPEVALUES_SENT:mle,MESSAGINGDESTINATIONKINDVALUES_QUEUE:Hse,MESSAGINGDESTINATIONKINDVALUES_TOPIC:Wse,MESSAGINGOPERATIONVALUES_PROCESS:Jse,MESSAGINGOPERATIONVALUES_RECEIVE:Yse,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:mhe,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:ghe,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:bhe,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:xhe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:vhe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:yhe,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:whe,METRIC_DB_CLIENT_OPERATION_DURATION:She,METRIC_DOTNET_ASSEMBLY_COUNT:Che,METRIC_DOTNET_EXCEPTIONS:khe,METRIC_DOTNET_GC_COLLECTIONS:Ehe,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:Ahe,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:The,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:_he,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:Ohe,METRIC_DOTNET_GC_PAUSE_TIME:Rhe,METRIC_DOTNET_JIT_COMPILATION_TIME:Lhe,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:jhe,METRIC_DOTNET_JIT_COMPILED_METHODS:Phe,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:Nhe,METRIC_DOTNET_PROCESS_CPU_COUNT:Ihe,METRIC_DOTNET_PROCESS_CPU_TIME:$he,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:Dhe,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:Mhe,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:zhe,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:Uhe,METRIC_DOTNET_TIMER_COUNT:Bhe,METRIC_HTTP_CLIENT_REQUEST_DURATION:Fhe,METRIC_HTTP_SERVER_REQUEST_DURATION:qhe,METRIC_JVM_CLASS_COUNT:Vhe,METRIC_JVM_CLASS_LOADED:Hhe,METRIC_JVM_CLASS_UNLOADED:Whe,METRIC_JVM_CPU_COUNT:Ghe,METRIC_JVM_CPU_RECENT_UTILIZATION:Yhe,METRIC_JVM_CPU_TIME:Jhe,METRIC_JVM_GC_DURATION:Khe,METRIC_JVM_MEMORY_COMMITTED:Zhe,METRIC_JVM_MEMORY_LIMIT:Qhe,METRIC_JVM_MEMORY_USED:Xhe,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:efe,METRIC_JVM_THREAD_COUNT:tfe,METRIC_KESTREL_ACTIVE_CONNECTIONS:rfe,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:nfe,METRIC_KESTREL_CONNECTION_DURATION:ofe,METRIC_KESTREL_QUEUED_CONNECTIONS:afe,METRIC_KESTREL_QUEUED_REQUESTS:ife,METRIC_KESTREL_REJECTED_CONNECTIONS:sfe,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:lfe,METRIC_KESTREL_UPGRADED_CONNECTIONS:cfe,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:pfe,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:ufe,MessageTypeValues:ble,MessagingDestinationKindValues:Gse,MessagingOperationValues:Kse,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:xse,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:Cse,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:yse,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:Rse,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:wse,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:Sse,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:_se,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:bse,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:jse,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:kse,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:Ase,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:Lse,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:Ese,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:Tse,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:Nse,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:Ose,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:Dse,NETHOSTCONNECTIONSUBTYPEVALUES_NR:Ise,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:$se,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:Pse,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:vse,NETHOSTCONNECTIONTYPEVALUES_CELL:hse,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:fse,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:mse,NETHOSTCONNECTIONTYPEVALUES_WIFI:use,NETHOSTCONNECTIONTYPEVALUES_WIRED:dse,NETTRANSPORTVALUES_INPROC:lse,NETTRANSPORTVALUES_IP:ase,NETTRANSPORTVALUES_IP_TCP:nse,NETTRANSPORTVALUES_IP_UDP:ose,NETTRANSPORTVALUES_OTHER:cse,NETTRANSPORTVALUES_PIPE:sse,NETTRANSPORTVALUES_UNIX:ise,NETWORK_TRANSPORT_VALUE_PIPE:Ade,NETWORK_TRANSPORT_VALUE_QUIC:Tde,NETWORK_TRANSPORT_VALUE_TCP:_de,NETWORK_TRANSPORT_VALUE_UDP:Ode,NETWORK_TRANSPORT_VALUE_UNIX:Rde,NETWORK_TYPE_VALUE_IPV4:jde,NETWORK_TYPE_VALUE_IPV6:Pde,NetHostConnectionSubtypeValues:Mse,NetHostConnectionTypeValues:gse,NetTransportValues:pse,OSTYPEVALUES_AIX:Npe,OSTYPEVALUES_DARWIN:_pe,OSTYPEVALUES_DRAGONFLYBSD:jpe,OSTYPEVALUES_FREEBSD:Ope,OSTYPEVALUES_HPUX:Ppe,OSTYPEVALUES_LINUX:Tpe,OSTYPEVALUES_NETBSD:Rpe,OSTYPEVALUES_OPENBSD:Lpe,OSTYPEVALUES_SOLARIS:Ipe,OSTYPEVALUES_WINDOWS:Ape,OSTYPEVALUES_Z_OS:$pe,OTEL_STATUS_CODE_VALUE_ERROR:Dde,OTEL_STATUS_CODE_VALUE_OK:Mde,OsTypeValues:Dpe,RPCGRPCSTATUSCODEVALUES_ABORTED:sle,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:nle,RPCGRPCSTATUSCODEVALUES_CANCELLED:Qse,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:dle,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:tle,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:ile,RPCGRPCSTATUSCODEVALUES_INTERNAL:ple,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:ele,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:rle,RPCGRPCSTATUSCODEVALUES_OK:Zse,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:lle,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:ole,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:ale,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:hle,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:ule,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:cle,RPCGRPCSTATUSCODEVALUES_UNKNOWN:Xse,RpcGrpcStatusCodeValues:fle,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:Voe,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:rae,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:Boe,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:Doe,SEMATTRS_AWS_DYNAMODB_COUNT:eae,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:Joe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:Goe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:nae,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:Hoe,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:Moe,SEMATTRS_AWS_DYNAMODB_LIMIT:qoe,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:Yoe,SEMATTRS_AWS_DYNAMODB_PROJECTION:Foe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:zoe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:Uoe,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:tae,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:Zoe,SEMATTRS_AWS_DYNAMODB_SEGMENT:Qoe,SEMATTRS_AWS_DYNAMODB_SELECT:Woe,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:Koe,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:$oe,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:Xoe,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:mne,SEMATTRS_CODE_FILEPATH:voe,SEMATTRS_CODE_FUNCTION:boe,SEMATTRS_CODE_LINENO:xoe,SEMATTRS_CODE_NAMESPACE:yoe,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:Ane,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:Lne,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:Rne,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:_ne,SEMATTRS_DB_CASSANDRA_KEYSPACE:kne,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:Ene,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:One,SEMATTRS_DB_CASSANDRA_TABLE:Tne,SEMATTRS_DB_CONNECTION_STRING:bne,SEMATTRS_DB_HBASE_NAMESPACE:jne,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:vne,SEMATTRS_DB_MONGODB_COLLECTION:Nne,SEMATTRS_DB_MSSQL_INSTANCE_NAME:Cne,SEMATTRS_DB_NAME:xne,SEMATTRS_DB_OPERATION:Sne,SEMATTRS_DB_REDIS_DATABASE_INDEX:Pne,SEMATTRS_DB_SQL_TABLE:Ine,SEMATTRS_DB_STATEMENT:wne,SEMATTRS_DB_SYSTEM:gne,SEMATTRS_DB_USER:yne,SEMATTRS_ENDUSER_ID:doe,SEMATTRS_ENDUSER_ROLE:hoe,SEMATTRS_ENDUSER_SCOPE:foe,SEMATTRS_EXCEPTION_ESCAPED:zne,SEMATTRS_EXCEPTION_MESSAGE:Dne,SEMATTRS_EXCEPTION_STACKTRACE:Mne,SEMATTRS_EXCEPTION_TYPE:$ne,SEMATTRS_FAAS_COLDSTART:Yne,SEMATTRS_FAAS_CRON:Gne,SEMATTRS_FAAS_DOCUMENT_COLLECTION:Fne,SEMATTRS_FAAS_DOCUMENT_NAME:Hne,SEMATTRS_FAAS_DOCUMENT_OPERATION:qne,SEMATTRS_FAAS_DOCUMENT_TIME:Vne,SEMATTRS_FAAS_EXECUTION:Bne,SEMATTRS_FAAS_INVOKED_NAME:Jne,SEMATTRS_FAAS_INVOKED_PROVIDER:Kne,SEMATTRS_FAAS_INVOKED_REGION:Zne,SEMATTRS_FAAS_TIME:Wne,SEMATTRS_FAAS_TRIGGER:Une,SEMATTRS_HTTP_CLIENT_IP:Ioe,SEMATTRS_HTTP_FLAVOR:Toe,SEMATTRS_HTTP_HOST:koe,SEMATTRS_HTTP_METHOD:woe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:Ooe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:Roe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:Loe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:joe,SEMATTRS_HTTP_ROUTE:Noe,SEMATTRS_HTTP_SCHEME:Eoe,SEMATTRS_HTTP_SERVER_NAME:Poe,SEMATTRS_HTTP_STATUS_CODE:Aoe,SEMATTRS_HTTP_TARGET:Coe,SEMATTRS_HTTP_URL:Soe,SEMATTRS_HTTP_USER_AGENT:_oe,SEMATTRS_MESSAGE_COMPRESSED_SIZE:Pae,SEMATTRS_MESSAGE_ID:jae,SEMATTRS_MESSAGE_TYPE:Lae,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:Nae,SEMATTRS_MESSAGING_CONSUMER_ID:gae,SEMATTRS_MESSAGING_CONVERSATION_ID:dae,SEMATTRS_MESSAGING_DESTINATION:aae,SEMATTRS_MESSAGING_DESTINATION_KIND:iae,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:xae,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:vae,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:yae,SEMATTRS_MESSAGING_KAFKA_PARTITION:wae,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:Sae,SEMATTRS_MESSAGING_MESSAGE_ID:uae,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:fae,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:hae,SEMATTRS_MESSAGING_OPERATION:mae,SEMATTRS_MESSAGING_PROTOCOL:lae,SEMATTRS_MESSAGING_PROTOCOL_VERSION:cae,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:bae,SEMATTRS_MESSAGING_SYSTEM:oae,SEMATTRS_MESSAGING_TEMP_DESTINATION:sae,SEMATTRS_MESSAGING_URL:pae,SEMATTRS_NET_HOST_CARRIER_ICC:poe,SEMATTRS_NET_HOST_CARRIER_MCC:loe,SEMATTRS_NET_HOST_CARRIER_MNC:coe,SEMATTRS_NET_HOST_CARRIER_NAME:soe,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:ioe,SEMATTRS_NET_HOST_CONNECTION_TYPE:aoe,SEMATTRS_NET_HOST_IP:roe,SEMATTRS_NET_HOST_NAME:ooe,SEMATTRS_NET_HOST_PORT:noe,SEMATTRS_NET_PEER_IP:Xne,SEMATTRS_NET_PEER_NAME:toe,SEMATTRS_NET_PEER_PORT:eoe,SEMATTRS_NET_TRANSPORT:Qne,SEMATTRS_PEER_SERVICE:uoe,SEMATTRS_RPC_GRPC_STATUS_CODE:Aae,SEMATTRS_RPC_JSONRPC_ERROR_CODE:Oae,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:Rae,SEMATTRS_RPC_JSONRPC_REQUEST_ID:_ae,SEMATTRS_RPC_JSONRPC_VERSION:Tae,SEMATTRS_RPC_METHOD:Eae,SEMATTRS_RPC_SERVICE:kae,SEMATTRS_RPC_SYSTEM:Cae,SEMATTRS_THREAD_ID:moe,SEMATTRS_THREAD_NAME:goe,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:kle,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:Cle,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:Ele,SEMRESATTRS_AWS_ECS_TASK_ARN:Ale,SEMRESATTRS_AWS_ECS_TASK_FAMILY:Tle,SEMRESATTRS_AWS_ECS_TASK_REVISION:_le,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:Ole,SEMRESATTRS_AWS_LOG_GROUP_ARNS:Lle,SEMRESATTRS_AWS_LOG_GROUP_NAMES:Rle,SEMRESATTRS_AWS_LOG_STREAM_ARNS:Ple,SEMRESATTRS_AWS_LOG_STREAM_NAMES:jle,SEMRESATTRS_CLOUD_ACCOUNT_ID:vle,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:wle,SEMRESATTRS_CLOUD_PLATFORM:Sle,SEMRESATTRS_CLOUD_PROVIDER:yle,SEMRESATTRS_CLOUD_REGION:xle,SEMRESATTRS_CONTAINER_ID:Ile,SEMRESATTRS_CONTAINER_IMAGE_NAME:Dle,SEMRESATTRS_CONTAINER_IMAGE_TAG:Mle,SEMRESATTRS_CONTAINER_NAME:Nle,SEMRESATTRS_CONTAINER_RUNTIME:$le,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:zle,SEMRESATTRS_DEVICE_ID:Ule,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:Ble,SEMRESATTRS_DEVICE_MODEL_NAME:Fle,SEMRESATTRS_FAAS_ID:Vle,SEMRESATTRS_FAAS_INSTANCE:Wle,SEMRESATTRS_FAAS_MAX_MEMORY:Gle,SEMRESATTRS_FAAS_NAME:qle,SEMRESATTRS_FAAS_VERSION:Hle,SEMRESATTRS_HOST_ARCH:Zle,SEMRESATTRS_HOST_ID:Yle,SEMRESATTRS_HOST_IMAGE_ID:Xle,SEMRESATTRS_HOST_IMAGE_NAME:Qle,SEMRESATTRS_HOST_IMAGE_VERSION:ece,SEMRESATTRS_HOST_NAME:Jle,SEMRESATTRS_HOST_TYPE:Kle,SEMRESATTRS_K8S_CLUSTER_NAME:tce,SEMRESATTRS_K8S_CONTAINER_NAME:sce,SEMRESATTRS_K8S_CRONJOB_NAME:vce,SEMRESATTRS_K8S_CRONJOB_UID:yce,SEMRESATTRS_K8S_DAEMONSET_NAME:mce,SEMRESATTRS_K8S_DAEMONSET_UID:fce,SEMRESATTRS_K8S_DEPLOYMENT_NAME:uce,SEMRESATTRS_K8S_DEPLOYMENT_UID:pce,SEMRESATTRS_K8S_JOB_NAME:bce,SEMRESATTRS_K8S_JOB_UID:gce,SEMRESATTRS_K8S_NAMESPACE_NAME:oce,SEMRESATTRS_K8S_NODE_NAME:rce,SEMRESATTRS_K8S_NODE_UID:nce,SEMRESATTRS_K8S_POD_NAME:ice,SEMRESATTRS_K8S_POD_UID:ace,SEMRESATTRS_K8S_REPLICASET_NAME:cce,SEMRESATTRS_K8S_REPLICASET_UID:lce,SEMRESATTRS_K8S_STATEFULSET_NAME:hce,SEMRESATTRS_K8S_STATEFULSET_UID:dce,SEMRESATTRS_OS_DESCRIPTION:wce,SEMRESATTRS_OS_NAME:Sce,SEMRESATTRS_OS_TYPE:xce,SEMRESATTRS_OS_VERSION:Cce,SEMRESATTRS_PROCESS_COMMAND:Tce,SEMRESATTRS_PROCESS_COMMAND_ARGS:Oce,SEMRESATTRS_PROCESS_COMMAND_LINE:_ce,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:Ece,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:Ace,SEMRESATTRS_PROCESS_OWNER:Rce,SEMRESATTRS_PROCESS_PID:kce,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:Pce,SEMRESATTRS_PROCESS_RUNTIME_NAME:Lce,SEMRESATTRS_PROCESS_RUNTIME_VERSION:jce,SEMRESATTRS_SERVICE_INSTANCE_ID:$ce,SEMRESATTRS_SERVICE_NAME:Nce,SEMRESATTRS_SERVICE_NAMESPACE:Ice,SEMRESATTRS_SERVICE_VERSION:Dce,SEMRESATTRS_TELEMETRY_AUTO_VERSION:Bce,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:zce,SEMRESATTRS_TELEMETRY_SDK_NAME:Mce,SEMRESATTRS_TELEMETRY_SDK_VERSION:Uce,SEMRESATTRS_WEBENGINE_DESCRIPTION:Vce,SEMRESATTRS_WEBENGINE_NAME:Fce,SEMRESATTRS_WEBENGINE_VERSION:qce,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:Hde,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:Wde,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:Gde,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:Jde,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:Kde,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:Zde,SemanticAttributes:Iae,SemanticResourceAttributes:Hce,TELEMETRYSDKLANGUAGEVALUES_CPP:Mpe,TELEMETRYSDKLANGUAGEVALUES_DOTNET:zpe,TELEMETRYSDKLANGUAGEVALUES_ERLANG:Upe,TELEMETRYSDKLANGUAGEVALUES_GO:Bpe,TELEMETRYSDKLANGUAGEVALUES_JAVA:Fpe,TELEMETRYSDKLANGUAGEVALUES_NODEJS:qpe,TELEMETRYSDKLANGUAGEVALUES_PHP:Vpe,TELEMETRYSDKLANGUAGEVALUES_PYTHON:Hpe,TELEMETRYSDKLANGUAGEVALUES_RUBY:Wpe,TELEMETRYSDKLANGUAGEVALUES_WEBJS:Gpe,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:Qde,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:Xde,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:ehe,TELEMETRY_SDK_LANGUAGE_VALUE_GO:the,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:rhe,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:nhe,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:ohe,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:ahe,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:ihe,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:she,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:lhe,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:Pj,TelemetrySdkLanguageValues:Ype},Symbol.toStringTag,{value:"Module"})),ffe="process.runtime.name",Hx={[yg]:"opentelemetry",[ffe]:"browser",[bg]:Pj,[vg]:fne},$l=performance,mfe=9,gfe=6,bfe=Math.pow(10,gfe),xg=Math.pow(10,mfe);function Cs(e){const t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*bfe);return[r,n]}function Nj(e){const t=Cs($l.timeOrigin),r=Cs(typeof e=="number"?e:$l.now());return Dj(t,r)}function Fd(e){if(Wx(e))return e;if(typeof e=="number")return e<$l.timeOrigin?Nj(e):Cs(e);if(e instanceof Date)return Cs(e.getTime());throw TypeError("Invalid input type")}function yfe(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=xg),[r,n]}function Li(e){return e[0]*xg+e[1]}function Ij(e){return e[0]*1e6+e[1]/1e3}function Wx(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function $j(e){return Wx(e)||typeof e=="number"||e instanceof Date}function Dj(e,t){const r=[e[0]+t[0],e[1]+t[1]];return r[1]>=xg&&(r[1]-=xg,r[0]+=1),r}var Xn;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Xn||(Xn={}));class vfe{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[];const r=new Set;for(const n of this._propagators){const o=typeof n.fields=="function"?n.fields():[];for(const a of o)r.add(a)}this._fields=Array.from(r)}inject(t,r,n){for(const o of this._propagators)try{o.inject(t,r,n)}catch(a){ht.warn(`Failed to inject with ${o.constructor.name}. Err: ${a.message}`)}}extract(t,r,n){return this._propagators.reduce((o,a)=>{try{return a.extract(o,r,n)}catch(i){ht.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return o},t)}fields(){return this._fields.slice()}}const Gx="[_0-9a-z-*/]",xfe=`[a-z]${Gx}{0,255}`,wfe=`[a-z0-9]${Gx}{0,240}@[a-z]${Gx}{0,13}`,Sfe=new RegExp(`^(?:${xfe}|${wfe})$`),Cfe=/^[ -~]{0,255}[!-~]$/,kfe=/,|=/;function Mj(e){return Sfe.test(e)}function zj(e){return Cfe.test(e)&&!kfe.test(e)}const Efe=32,Uj=512,Bj=",",Fj="=";class Mk{_length;_rawTraceState;_internalState;constructor(t){this._rawTraceState=typeof t=="string"?t:"",this._length=this._rawTraceState.length}set(t,r){if(!Mj(t)||!zj(r))return this;const n=this._getState(),o=n.get(t);let a=this._length;if(typeof o=="string"?a+=r.length-o.length:a+=t.length+r.length+(n.size>0?2:1),a>Uj)return this;const i=new Map(n);return i.delete(t),i.set(t,r),this._fromState(i,a)}unset(t){const r=this._getState(),n=r.get(t);if(typeof n!="string")return this;let o=this._length-(t.length+n.length+1);r.size>1&&(o=o-1);const a=new Map(r);return a.delete(t),this._fromState(a,o)}get(t){return this._getState().get(t)}serialize(){let t="",r=0;for(const n of this._getState())r>0&&(t=Bj+t),t=`${n[0]}${Fj}${n[1]}`+t,r++;return t}_getState(){if(this._internalState)return this._internalState;const t=this._rawTraceState.split(Bj),r=new Map;let n=0;for(const o of t){const a=o.trim(),i=a.indexOf(Fj);if(i===-1)continue;const s=a.slice(0,i),c=a.slice(i+1);if(!Mj(s)||!zj(c))continue;const u=n+a.length+(r.size>0?1:0);if(!(u>Uj)&&(r.set(s,c),n=u,r.size>=Efe))break}return this._length=n,this._internalState=new Map(Array.from(r.entries()).reverse()),this._internalState}_fromState(t,r){const n=Object.create(Mk.prototype);return n._internalState=t,n._length=r,n}}const Yx="traceparent",Jx="tracestate",Afe="00",Tfe="(?!ff)[\\da-f]{2}",_fe="(?![0]{32})[\\da-f]{32}",Ofe="(?![0]{16})[\\da-f]{16}",Rfe="[\\da-f]{2}",Lfe=new RegExp(`^\\s?(${Tfe})-(${_fe})-(${Ofe})-(${Rfe})(-.*)?\\s?$`);function jfe(e){const t=Lfe.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class Pfe{inject(t,r,n){const o=jn.getSpanContext(t);if(!o||Fx(t)||!Md(o))return;const a=`${Afe}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||da.NONE).toString(16)}`;n.set(r,Yx,a),o.traceState&&n.set(r,Jx,o.traceState.serialize())}extract(t,r,n){const o=n.get(r,Yx);if(!o)return t;const a=Array.isArray(o)?o[0]:o;if(typeof a!="string")return t;const i=jfe(a);if(!i)return t;i.isRemote=!0;const s=n.get(r,Jx);if(s){const c=Array.isArray(s)?s.join(","):s;i.traceState=new Mk(typeof c=="string"?c:void 0)}return jn.setSpanContext(t,i)}fields(){return[Yx,Jx]}}const Nfe="[object Object]",Ife="[object Null]",$fe="[object Undefined]",Dfe=Function.prototype,qj=Dfe.toString,Mfe=qj.call(Object),zfe=Object.getPrototypeOf,Vj=Object.prototype,Hj=Vj.hasOwnProperty,Dl=Symbol?Symbol.toStringTag:void 0,Wj=Vj.toString;function Gj(e){if(!Ufe(e)||Bfe(e)!==Nfe)return!1;const t=zfe(e);if(t===null)return!0;const r=Hj.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&qj.call(r)===Mfe}function Ufe(e){return e!=null&&typeof e=="object"}function Bfe(e){return e==null?e===void 0?$fe:Ife:Dl&&Dl in Object(e)?Ffe(e):qfe(e)}function Ffe(e){const t=Hj.call(e,Dl),r=e[Dl];let n=!1;try{e[Dl]=void 0,n=!0}catch{}const o=Wj.call(e);return n&&(t?e[Dl]=r:delete e[Dl]),o}function qfe(e){return Wj.call(e)}const Vfe=20;function Hfe(...e){let t=e.shift();const r=new WeakMap;for(;e.length>0;)t=Yj(t,e.shift(),0,r);return t}function Kx(e){return wg(e)?e.slice():e}function Yj(e,t,r=0,n){let o;if(!(r>Vfe)){if(r++,Sg(e)||Sg(t)||Kj(t))o=Kx(t);else if(wg(e)){if(o=e.slice(),wg(t))for(let a=0,i=t.length;a<i;a++)o.push(Kx(t[a]));else if(qd(t)){const a=Object.keys(t);for(let i=0,s=a.length;i<s;i++){const c=a[i];c==="__proto__"||c==="constructor"||c==="prototype"||(o[c]=Kx(t[c]))}}}else if(qd(e))if(qd(t)){if(!Wfe(e,t))return t;o=Object.assign({},e);const a=Object.keys(t);for(let i=0,s=a.length;i<s;i++){const c=a[i];if(c==="__proto__"||c==="constructor"||c==="prototype")continue;const u=t[c];if(Sg(u))typeof u>"u"?delete o[c]:o[c]=u;else{const d=o[c],f=u;if(Jj(e,c,n)||Jj(t,c,n))delete o[c];else{if(qd(d)&&qd(f)){const g=n.get(d)||[],y=n.get(f)||[];g.push({obj:e,key:c}),y.push({obj:t,key:c}),n.set(d,g),n.set(f,y)}o[c]=Yj(o[c],u,r,n)}}}}else o=t;return o}}function Jj(e,t,r){const n=r.get(e[t])||[];for(let o=0,a=n.length;o<a;o++){const i=n[o];if(i.key===t&&i.obj===e)return!0}return!1}function wg(e){return Array.isArray(e)}function Kj(e){return typeof e=="function"}function qd(e){return!Sg(e)&&!wg(e)&&!Kj(e)&&typeof e=="object"}function Sg(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Wfe(e,t){return!(!Gj(e)||!Gj(t))}function Gfe(e,t){return typeof t=="string"?e===t:!!e.match(t)}class Yfe{_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 Zj{_isCalled=!1;_deferred=new Yfe;_callback;_that;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 Jfe(e,t){return new Promise(r=>{Vo.with(cT(Vo.active()),()=>{e.export(t,r)})})}const Kfe={_export:Jfe};let Cg;function Qj(){if(Cg===void 0)try{const e=globalThis.process.argv0;Cg=e?`unknown_service:${e}`:"unknown_service"}catch{Cg="unknown_service"}return Cg}const Vd=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class df{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,r){const n=new df({},r);return n._rawAttributes=eP(t),n._asyncAttributesPending=t.filter(([o,a])=>Vd(a)).length>0,n}constructor(t,r){const n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([o,a])=>(Vd(a)&&(this._asyncAttributesPending=!0),[o,a])),this._rawAttributes=eP(this._rawAttributes),this._schemaUrl=Qfe(r?.schemaUrl)}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,Vd(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&ht.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[r,n]of this._rawAttributes){if(Vd(n)){ht.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(t[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;const r=Xfe(this,t),n=r?{schemaUrl:r}:void 0;return df.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],n)}}function kg(e,t){return df.FromAttributeList(Object.entries(e),t)}function Zfe(e,t){return new df(e,t)}function Zx(){return kg({})}function Xj(){return kg({[Vx]:Qj(),[bg]:Hx[bg],[yg]:Hx[yg],[vg]:Hx[vg]})}function eP(e){return e.map(([t,r])=>Vd(r)?[t,r.catch(n=>{ht.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,r])}function Qfe(e){if(typeof e=="string"||e===void 0)return e;ht.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}function Xfe(e,t){const r=e?.schemaUrl,n=t?.schemaUrl,o=r===void 0||r==="",a=n===void 0||n==="";if(o)return n;if(a||r===n)return r;ht.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',r,n)}const eme=(e={})=>(e.detectors||[]).map(t=>{try{const r=Zfe(t.detect(e));return ht.debug(`${t.constructor.name} found resource.`,r),r}catch(r){return ht.debug(`${t.constructor.name} failed: ${r.message}`),Zx()}}).reduce((t,r)=>t.merge(r),Zx());class tme{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(t){return{attributes:{}}}_parseResourceAttributes(t){if(!t)return{};const r={},n=t.split(this._COMMA_SEPARATOR).filter(o=>o.trim()!=="");for(const o of n){const a=o.split(this._LABEL_KEY_VALUE_SPLITTER);if(a.length!==2)throw new Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${o}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);const[i,s]=a,c=i.trim(),u=s.trim();if(c.length===0)throw new Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${o}".`);let d,f;try{d=decodeURIComponent(c),f=decodeURIComponent(u)}catch(g){throw new Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${o}": ${g instanceof Error?g.message:g}`,{cause:g})}if(d.length>this._MAX_LENGTH)throw new Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${d}".`);if(f.length>this._MAX_LENGTH)throw new Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${d}".`);r[d]=f}return r}}const rme=new tme;class nme{detect(){return{attributes:{}}}}const Eg=new nme,ome=Eg,ame=Eg,ime=Eg,sme=Eg,lme=Object.freeze(Object.defineProperty({__proto__:null,defaultResource:Xj,defaultServiceName:Qj,detectResources:eme,emptyResource:Zx,envDetector:rme,hostDetector:ome,osDetector:ame,processDetector:ime,resourceFromAttributes:kg,serviceInstanceIdDetector:sme},Symbol.toStringTag,{value:"Module"})),cme="exception",Qx=Symbol.for("nodejs.util.inspect.custom");function Xx(e){const t={};for(const[r,n]of e.getRawAttributes())typeof n?.then!="function"&&n!=null&&(t[r]??=n);return t}function e2(e,t,r,n,o){if(typeof r=="number"&&r<0){const i=`[${e}]`;return n?.stylize?n.stylize(i,"special"):i}if(typeof o!="function"||!n)return t;const a={...n,depth:n.depth==null?n.depth:n.depth-1};return`${e} ${o(t,a)}`}class pme{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:Ss.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const r=Date.now();if(this._spanContext=t.spanContext,this._performanceStartTime=$l.now(),this._performanceOffset=r-(this._performanceStartTime+$l.timeOrigin),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,t.links)for(const n of t.links)this.addLink(n);this.startTime=this._getTime(t.startTime??r),this.resource=t.resource,this.instrumentationScope=t.scope,this._recordEndMetrics=t.recordEndMetrics,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 ht.warn(`Invalid attribute key: ${t}`),this;if(!gT(r))return ht.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:n}=this._spanLimits,o=!Object.prototype.hasOwnProperty.call(this.attributes,t);return n!==void 0&&this._attributesCount>=n&&o?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),o&&this._attributesCount++,this)}setAttributes(t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.setAttribute(r,t[r]);return this}addEvent(t,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:o}=this._spanLimits;if(o===0)return ht.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&ht.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),$j(r)&&($j(n)||(n=r),r=void 0);const a=Bd(r),{attributePerEventCountLimit:i}=this._spanLimits,s={};let c=0,u=0;for(const d in a){if(!Object.prototype.hasOwnProperty.call(a,d))continue;const f=a[d];if(i!==void 0&&u>=i){c++;continue}s[d]=this._truncateToSize(f),u++}return this.events.push({name:t,attributes:s,time:this._getTime(n),droppedAttributesCount:c}),this}addLink(t){if(this._isSpanEnded())return this;const{linkCountLimit:r}=this._spanLimits;if(r===0)return this._droppedLinksCount++,this;r!==void 0&&this.links.length>=r&&(this._droppedLinksCount===0&&ht.debug("Dropping extra links."),this.links.shift(),this._droppedLinksCount++);const{attributePerLinkCountLimit:n}=this._spanLimits,o=Bd(t.attributes),a={};let i=0,s=0;for(const u in o){if(!Object.prototype.hasOwnProperty.call(o,u))continue;const d=o[u];if(n!==void 0&&s>=n){i++;continue}a[u]=this._truncateToSize(d),s++}const c={context:t.context};return s>0&&(c.attributes=a),i>0&&(c.droppedAttributesCount=i),this.links.push(c),this}addLinks(t){for(const r of t)this.addLink(r);return this}setStatus(t){if(this._isSpanEnded())return this;if(t.code===Ss.UNSET)return this;if(this.status.code===Ss.OK)return this;const r={code:t.code};return t.code===Ss.ERROR&&(typeof t.message=="string"?r.message=t.message:t.message!=null&&ht.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`)),this.status=r,this}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){ht.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(t),this._duration=yfe(this.startTime,this.endTime),this._duration[0]<0&&(ht.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&&ht.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&ht.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=$l.now())return Nj(t+this._performanceOffset);if(typeof t=="number")return Cs(t);if(t instanceof Date)return Cs(t.getTime());if(Wx(t))return t;if(this._startTimeProvided)return Cs(Date.now());const r=$l.now()-this._performanceStartTime;return Dj(this.startTime,Cs(r))}isRecording(){return this._ended===!1}recordException(t,r){const n={};typeof t=="string"?n[mg]=t:t&&(t.code?n[gg]=t.code.toString():t.name&&(n[gg]=t.name),t.message&&(n[mg]=t.message),t.stack&&(n[Lj]=t.stack)),n[gg]||n[mg]?this.addEvent(cme,n,r):ht.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}}`);ht.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?(ht.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}[Qx](t,r,n){const o={name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:Xx(this.resource)}};return e2("SpanImpl",o,t,r,n)}}var ha;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ha||(ha={}));class Hd{shouldSample(){return{decision:ha.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Ml{shouldSample(){return{decision:ha.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Wd{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Il(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Ml),this._remoteParentSampled=t.remoteParentSampled??new Ml,this._remoteParentNotSampled=t.remoteParentNotSampled??new Hd,this._localParentSampled=t.localParentSampled??new Ml,this._localParentNotSampled=t.localParentNotSampled??new Hd}shouldSample(t,r,n,o,a,i){const s=jn.getSpanContext(t);return!s||!Md(s)?this._root.shouldSample(t,r,n,o,a,i):s.isRemote?s.traceFlags&da.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,o,a,i):this._remoteParentNotSampled.shouldSample(t,r,n,o,a,i):s.traceFlags&da.SAMPLED?this._localParentSampled.shouldSample(t,r,n,o,a,i):this._localParentNotSampled.shouldSample(t,r,n,o,a,i)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class t2{_ratio;_upperBound;constructor(t=0){this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,r){return{decision:Nx(r)&&this._accumulate(r)<this._upperBound?ha.RECORD_AND_SAMPLED:ha.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<32;n+=8){let o=0;for(let a=0;a<8;a++){const i=t.charCodeAt(n+a),s=i<58?i-48:i<71?i-55:i-87;o=o<<4|s}r=(r^o)>>>0}return r}}var za;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(za||(za={}));const tP=1;function rP(){return{sampler:nP(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function nP(){const e=za.ParentBasedAlwaysOn;switch(e){case za.AlwaysOn:return new Ml;case za.AlwaysOff:return new Hd;case za.ParentBasedAlwaysOn:return new Wd({root:new Ml});case za.ParentBasedAlwaysOff:return new Wd({root:new Hd});case za.TraceIdRatio:return new t2(oP());case za.ParentBasedTraceIdRatio:return new Wd({root:new t2(oP())});default:return ht.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${za.ParentBasedAlwaysOn}".`),new Wd({root:new Ml})}}function oP(){return ht.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${tP}.`),tP}const ume=128,dme=1/0;function hme(e){const t={sampler:nP()},r=rP(),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 fme(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??ume,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??dme,Object.assign({},e,{spanLimits:t})}class mme{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_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 Zj(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(ht.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&da.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&&ht.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(ht.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 a=0,i=o;a<i;a++)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);Vo.with(cT(Vo.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);const a=()=>this._exporter.export(o,s=>{clearTimeout(n),s.code===Xn.SUCCESS?t():r(s.error??new Error("BatchSpanProcessor: span export failed"))});let i=null;for(let s=0,c=o.length;s<c;s++){const u=o[s];u.resource.asyncAttributesPending&&u.resource.waitForAsyncAttributes&&(i??=[],i.push(u.resource.waitForAsyncAttributes()))}i===null?a():Promise.all(i).then(a,s=>{Il(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,Il(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),typeof this._timer!="number"&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class aP extends mme{_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=>{Il(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{Il(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 gme=16,bme=8,iP=new Uint8Array(gme),sP=new Uint8Array(bme),yme=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function lP(e){for(let t=0;t<e.length;t++)e[t]=Math.random()*256>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function cP(e){let t="";for(let r=0;r<e.length;r++)t+=yme[e[r]];return t}class pP{generateTraceId(){return lP(iP),cP(iP)}generateSpanId(){return lP(sP),cP(sP)}}const vme="otel.span.parent.origin",uP="otel.span.sampling_result",xme="otel.sdk.span.live",wme="otel.sdk.span.started";class Sme{startedSpans;liveSpans;constructor(t){this.startedSpans=t.createCounter(wme,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=t.createUpDownCounter(xme,{unit:"{span}",description:"The number of currently live spans."})}startSpan(t,r){const n=kme(r);if(this.startedSpans.add(1,{[vme]:Cme(t),[uP]:n}),r===ha.NOT_RECORD)return()=>{};const o={[uP]:n};return this.liveSpans.add(1,o),()=>{this.liveSpans.add(-1,o)}}}function Cme(e){return e?e.isRemote?"remote":"local":"none"}function kme(e){switch(e){case ha.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case ha.RECORD:return"RECORD_ONLY";case ha.NOT_RECORD:return"DROP"}}const Eme="2.8.0";class Ame{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(t,r,n,o){const a=hme(r);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=r.idGenerator||new pP,this._resource=n,this._spanProcessor=o,this.instrumentationScope=t;const i=a.meterProvider?a.meterProvider.getMeter("@opentelemetry/sdk-trace",Eme):KA();this._tracerMetrics=new Sme(i)}startSpan(t,r={},n=Vo.active()){r.root&&(n=jn.deleteSpan(n));const o=jn.getSpan(n);if(Fx(n))return ht.debug("Instrumentation suppressed, returning Noop Span"),jn.wrapSpanContext(Rx);const a=o?.spanContext(),i=this._idGenerator.generateSpanId();let s,c,u;!a||!jn.isSpanContextValid(a)?c=this._idGenerator.generateTraceId():(c=a.traceId,u=a.traceState,s=a);const d=r.kind??Ud.INTERNAL,f=(r.links??[]).map(w=>({context:w.context,attributes:Bd(w.attributes)})),g=Bd(r.attributes),y=this._sampler.shouldSample(n,c,t,d,g,f),v=this._tracerMetrics.startSpan(a,y.decision);u=y.traceState??u;const x=y.decision===zd.RECORD_AND_SAMPLED?da.SAMPLED:da.NONE,C={traceId:c,spanId:i,traceFlags:x,traceState:u};if(y.decision===zd.NOT_RECORD)return ht.debug("Recording is off, propagating context in a non-recording span"),jn.wrapSpanContext(C);const S=Bd(Object.assign(g,y.attributes));return new pme({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:C,name:t,kind:d,links:f,parentSpanContext:s,attributes:S,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:v})}startActiveSpan(t,r,n,o){let a,i,s;if(arguments.length<2)return;arguments.length===2?s=r:arguments.length===3?(a=r,s=n):(a=r,i=n,s=o);const c=i??Vo.active(),u=this.startSpan(t,a,c),d=jn.setSpan(c,u);return Vo.with(d,s,void 0,u)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}[Qx](t,r,n){const o={instrumentationScope:this.instrumentationScope,resource:{attributes:Xx(this._resource)},spanLimits:this._spanLimits,generalLimits:this._generalLimits};return e2("Tracer",o,t,r,n)}}class Tme{_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=>{Il(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(t,r){for(const n of this._spanProcessors)n.onStart(t,r)}onEnding(t){for(const r of this._spanProcessors)r.onEnding&&r.onEnding(t)}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 zl;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(zl||(zl={}));class dP{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const r=Hfe({},rP(),fme(t));this._resource=r.resource??Xj(),this._config=Object.assign({},r,{resource:this._resource});const n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new Tme(n)}getTracer(t,r,n){const o=`${t}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new Ame({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 a;const i=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${t} ms`)),a=zl.timeout},t);n.forceFlush().then(()=>{clearTimeout(i),a!==zl.timeout&&(a=zl.resolved,o(a))}).catch(s=>{clearTimeout(i),a=zl.error,o(s)})}));return new Promise((n,o)=>{Promise.all(r).then(a=>{const i=a.filter(s=>s!==zl.resolved);i.length>0?o(i):n()}).catch(a=>o([a]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[Qx](t,r,n){const o=this._activeSpanProcessor._spanProcessors,a={resource:{attributes:Xx(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:o.map(i=>i.constructor?.name??"SpanProcessor")};return e2("BasicTracerProvider",a,t,r,n)}}class _me{export(t,r){return this._sendSpans(t,r)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:Ij(t.startTime),duration:Ij(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,r){for(const n of t)console.dir(this._exportInfo(n),{depth:3});if(r)return r({code:Xn.SUCCESS})}}class Ome{_finishedSpans=[];_stopped=!1;export(t,r){if(this._stopped)return r({code:Xn.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...t),setTimeout(()=>r({code:Xn.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}class Rme{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new Zj(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,r){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&da.SAMPLED)===0)return;const r=this._doExport(t).catch(n=>Il(n));this._pendingExports.add(r),r.finally(()=>this._pendingExports.delete(r))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const r=await Kfe._export(this._exporter,[t]);if(r.code!==Xn.SUCCESS)throw r.error??new Error(`SimpleSpanProcessor: span export failed (status ${r})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class Lme{onStart(t,r){}onEnd(t){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}class hP{_enabled=!1;_currentContext=Pl;_bindFunction(t=Pl,r){const n=this,o=function(...a){return n.with(t,()=>r.apply(this,a))};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=Pl,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Pl,this)}with(t,r,n,...o){const a=this._currentContext;this._currentContext=t||Pl;try{return r.call(n,...o)}finally{this._currentContext=a}}}function jme(e){if(e!==null){if(e===void 0){const t=new hP;t.enable(),Vo.setGlobalContextManager(t);return}e.enable(),Vo.setGlobalContextManager(e)}}function Pme(e){if(e!==null){if(e===void 0){Nl.setGlobalPropagator(new vfe({propagators:[new Pfe,new sne]}));return}Nl.setGlobalPropagator(e)}}class fP extends dP{constructor(t={}){super(t)}register(t={}){jn.setGlobalTracerProvider(this),Pme(t.propagator),jme(t.contextManager)}}var wr;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(wr||(wr={}));const Nme="http.response_content_length",Ime="http.response_content_length_uncompressed";let r2;function $me(){return r2||(r2=document.createElement("a")),r2}function mP(e,t){return t in e}function Ua(e,t,r,n=!0){if(mP(r,t)&&typeof r[t]=="number"&&!(n&&r[t]===0))return e.addEvent(t,r[t])}function Dme(e,t,r=!1,n,o){if(n===void 0&&(n=t[wr.START_TIME]!==0),r||(Ua(e,wr.FETCH_START,t,n),Ua(e,wr.DOMAIN_LOOKUP_START,t,n),Ua(e,wr.DOMAIN_LOOKUP_END,t,n),Ua(e,wr.CONNECT_START,t,n),Ua(e,wr.SECURE_CONNECTION_START,t,n),Ua(e,wr.CONNECT_END,t,n),Ua(e,wr.REQUEST_START,t,n),Ua(e,wr.RESPONSE_START,t,n),Ua(e,wr.RESPONSE_END,t,n)),!o){const a=t[wr.ENCODED_BODY_SIZE];a!==void 0&&e.setAttribute(Nme,a);const i=t[wr.DECODED_BODY_SIZE];i!==void 0&&a!==i&&e.setAttribute(Ime,i)}}function gP(e){return e.slice().sort((t,r)=>{const n=t[wr.FETCH_START],o=r[wr.FETCH_START];return n>o?1:n<o?-1:0})}function bP(){return typeof location<"u"?location.origin:void 0}function Mme(e,t,r,n,o=new WeakSet,a){const i=Ag(e);e=i.toString();const s=Ume(e,t,r,n,o,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const c=gP(s);if(i.origin!==bP()&&c.length>1){let u=c[0],d=zme(c,u[wr.RESPONSE_END],r);const f=u[wr.RESPONSE_END];return d[wr.FETCH_START]<f&&(d=u,u=void 0),{corsPreFlightRequest:u,mainRequest:d}}else return{mainRequest:s[0]}}function zme(e,t,r){const n=Li(r),o=Li(Fd(t));let a=e[1],i;const s=e.length;for(let c=1;c<s;c++){const u=e[c],d=Li(Fd(u[wr.FETCH_START])),f=Li(Fd(u[wr.RESPONSE_END])),g=n-f;d>=o&&(!i||g<i)&&(i=g,a=u)}return a}function Ume(e,t,r,n,o,a){const i=Li(t),s=Li(r);let c=n.filter(u=>{const d=Li(Fd(u[wr.FETCH_START])),f=Li(Fd(u[wr.RESPONSE_END]));return u.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&u.name===e&&d>=i&&f<=s});return c.length>0&&(c=c.filter(u=>!o.has(u))),c}function Ag(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=$me();return t.href=e,t}function Bme(e){return Ag(e).href}function yP(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";const r=qme(e,t);if(t&&r.indexOf("@id")>0)return r;let n="";return e.parentNode&&(n+=yP(e.parentNode,t)),n+=r,n}function Fme(e){if(!e.parentNode)return 0;const t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let r=Array.from(e.parentNode.childNodes);return r=r.filter(n=>{const o=n.localName;return t.indexOf(n.nodeType)>=0&&o===e.localName}),r.length>=1?r.indexOf(e)+1:0}function qme(e,t){const r=e.nodeType,n=Fme(e);let o;if(r===Node.ELEMENT_NODE){const a=e.getAttribute("id");if(t&&a)return`//*[@id="${a}"]`;o=e.localName}else if(r===Node.TEXT_NODE||r===Node.CDATA_SECTION_NODE)o="text()";else if(r===Node.COMMENT_NODE)o="comment()";else return"";return o&&n>1?`/${o}[${n}]`:`/${o}`}function Vme(e,t){let r=t||[];return(typeof r=="string"||r instanceof RegExp)&&(r=[r]),Ag(e).origin===bP()?!0:r.some(n=>Gfe(e,n))}const Hme=Object.freeze(Object.defineProperty({__proto__:null,AlwaysOffSampler:Hd,AlwaysOnSampler:Ml,BasicTracerProvider:dP,BatchSpanProcessor:aP,ConsoleSpanExporter:_me,InMemorySpanExporter:Ome,NoopSpanProcessor:Lme,ParentBasedSampler:Wd,get PerformanceTimingNames(){return wr},RandomIdGenerator:pP,get SamplingDecision(){return ha},SimpleSpanProcessor:Rme,StackContextManager:hP,TraceIdRatioBasedSampler:t2,WebTracerProvider:fP,addSpanNetworkEvent:Ua,addSpanNetworkEvents:Dme,getElementXPath:yP,getResource:Mme,hasKey:mP,normalizeUrl:Bme,parseUrl:Ag,shouldPropagateTraceHeaders:Vme,sortResources:gP},Symbol.toStringTag,{value:"Module"})),Wme=sa(Hme),Gme=sa(lme);class Yme{_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 vP extends Error{code;name="OTLPExporterError";data;constructor(t,r,n){super(t),this.data=n,this.code=r}}function Jme(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Kme(e){if(e!=null)return async()=>e}function Zme(e,t,r){return{timeoutMillis:Jme(e.timeoutMillis??t.timeoutMillis??r.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??r.concurrencyLimit,compression:e.compression??t.compression??r.compression}}function Qme(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class Xme{_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 ege(e){return new Xme(e.concurrencyLimit)}function tge(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function rge(){return{handleResponse(e){e==null||!tge(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||ht.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class nge{_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(t,r,n,o,a){this._transport=t,this._serializer=r,this._responseHandler=n,this._promiseQueue=o,this._timeout=a,this._diagLogger=ht.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,r){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){r({code:Xn.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(t);if(n==null){r({code:Xn.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(a){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",a,o.data)}r({code:Xn.SUCCESS});return}else if(o.status==="failure"&&o.error){r({code:Xn.FAILED,error:o.error});return}else o.status==="retryable"?r({code:Xn.FAILED,error:o.error??new vP("Export failed with retryable status")}):r({code:Xn.FAILED,error:new vP("Export failed with unknown error")})},o=>r({code:Xn.FAILED,error:o})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function oge(e,t){return new nge(e.transport,e.serializer,rge(),e.promiseHandler,t.timeout)}function age(e,t,r){return oge({transport:r,serializer:t,promiseHandler:ege(e)},{timeout:e.timeoutMillis})}class xP{emit(t){}enabled(){return!1}}const ige=new xP,Tg=Symbol.for("io.opentelemetry.js.api.logs"),Gd=globalThis;function sge(e,t,r){return n=>n===e?t:r}const wP=1;class lge{getLogger(t,r,n){return new xP}}const SP=new lge;class cge{constructor(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}emit(t){this._getLogger().emit(t)}enabled(t){return this._getLogger().enabled(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):ige}}class CP{getLogger(t,r,n){var o;return(o=this._getDelegateLogger(t,r,n))!==null&&o!==void 0?o:new cge(this,t,r,n)}_getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:SP}_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)}}class zk{constructor(){this._proxyLoggerProvider=new CP}static getInstance(){return this._instance||(this._instance=new zk),this._instance}setGlobalLoggerProvider(t){return Gd[Tg]?this.getLoggerProvider():(Gd[Tg]=sge(wP,t,SP),this._proxyLoggerProvider._setDelegate(t),t)}getLoggerProvider(){var t,r;return(r=(t=Gd[Tg])===null||t===void 0?void 0:t.call(Gd,wP))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)}disable(){delete Gd[Tg],this._proxyLoggerProvider=new CP}}const kP=zk.getInstance();function pge(e,t){const r={attributes:Yd(e.attributes,t),droppedAttributesCount:0},n=e.schemaUrl;return n&&n!==""&&(r.schemaUrl=n),r}function uge(e,t){const r={name:e.name,version:e.version};return e.attributes&&Object.keys(e.attributes).length>0&&(r.attributes=Yd(e.attributes,t),r.droppedAttributesCount=e.droppedAttributesCount??0),r}function Yd(e,t){return Object.keys(e).map(r=>dge(r,e[r],t))}function dge(e,t,r){return{key:e,value:n2(t,r)}}function n2(e,t){const r=typeof e;if(r==="string")return{stringValue:e};if(r==="number")return Number.isInteger(e)?{intValue:e}:{doubleValue:e};if(r==="boolean")return{boolValue:e};if(e instanceof Uint8Array)return{bytesValue:t.encodeUint8Array(e)};if(Array.isArray(e)){const n=new Array(e.length);for(let o=0;o<e.length;o++)n[o]=n2(e[o],t);return{arrayValue:{values:n}}}if(r==="object"&&e!=null){const n=Object.keys(e),o=new Array(n.length);for(let a=0;a<n.length;a++)o[a]={key:n[a],value:n2(e[n[a]],t)};return{kvlistValue:{values:o}}}return{}}function hge(e){const t=BigInt(1e9);return BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))}function fge(e){return hge(e).toString()}const mge=typeof BigInt<"u"?fge:Li;function EP(e){return e}const gge={encodeHrTime:mge,encodeSpanContext:EP,encodeOptionalSpanContext:EP,encodeUint8Array:e=>{if(typeof Buffer<"u")return Buffer.from(e).toString("base64");const t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=String.fromCharCode(e[r]);return btoa(t.join(""))}},bge=256,yge=512;function AP(e,t){let r=e&255|bge;return t&&(r|=yge),r}function vge(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:Yd(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(a=>wge(a,t)),droppedEventsCount:e.droppedEventsCount,status:{code:n.code,message:n.message},links:e.links.map(a=>xge(a,t)),droppedLinksCount:e.droppedLinksCount,flags:AP(r.traceFlags,e.parentSpanContext?.isRemote)}}function xge(e,t){return{attributes:e.attributes?Yd(e.attributes,t):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0,flags:AP(e.context.traceFlags,e.context.isRemote)}}function wge(e,t){return{attributes:e.attributes?Yd(e.attributes,t):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function Sge(e,t){return{resourceSpans:kge(e,t)}}function Cge(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 a=n.get(o);a||(a=[],n.set(o,a)),a.push(r)}return t}function kge(e,t){const r=Cge(e),n=[],o=r.entries();let a=o.next();for(;!a.done;){const[i,s]=a.value,c=[],u=s.values();let d=u.next();for(;!d.done;){const y=d.value;if(y.length>0){const v=y.map(x=>vge(x,t));c.push({scope:uge(y[0].instrumentationScope,t),spans:v,schemaUrl:y[0].instrumentationScope.schemaUrl})}d=u.next()}const f=pge(i,t),g={resource:f,scopeSpans:c,schemaUrl:f.schemaUrl};n.push(g),a=o.next()}return n}const Ege={serializeRequest:e=>{const t=Sge(e,gge);return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;try{return JSON.parse(t.decode(e))}catch(r){return ht.warn(`Failed to parse trace export response: ${r.message}. Returning empty response`),{}}}},o2=5,Age=1e3,Tge=5e3,_ge=1.5,TP=.2;function Oge(){return Math.random()*(2*TP)-TP}class Rge{_transport;constructor(t){this._transport=t}retry(t,r,n){return new Promise((o,a)=>{setTimeout(()=>{this._transport.send(t,r).then(o,a)},n)})}async send(t,r){let n=o2,o=Age;const a=Date.now()+r;let i=await this._transport.send(t,r);for(;i.status==="retryable"&&n>0;){n--;const s=Math.max(Math.min(o*(1+Oge()),Tge),0);o=o*_ge;const c=i.retryInMillis??s,u=a-Date.now();if(c>u)return ht.info(`Export retry time ${Math.round(c)}ms exceeds remaining timeout ${Math.round(u)}ms, not retrying further.`),i;ht.verbose(`Scheduling export retry in ${Math.round(c)}ms`),i=await this.retry(t,u,c)}return i.status==="success"?ht.verbose(`Export succeeded after ${o2-n} retry attempts.`):i.status==="retryable"?ht.info(`Export failed after maximum retry attempts (${o2}).`):ht.info(`Export failed with non-retryable error: ${i.error}`),i}shutdown(){return this._transport.shutdown()}}function Lge(e){return new Rge(e.transport)}function jge(e){return e===429||e===502||e===503||e===504}function Pge(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}const Nge=60*1024,Ige=9;let a2=0,_g=0;class $ge{_parameters;constructor(t){this._parameters=t}async send(t,r){const n=new AbortController,o=setTimeout(()=>n.abort(),r);let a=globalThis.fetch;typeof a.__original=="function"&&(a=a.__original);const i=t.byteLength,s=a2+i>Nge,c=_g>=Ige,u=!s&&!c;if(u)a2+=i,_g++;else{const d=s?"size limit":"count limit";ht.debug(`keepalive disabled: ${(i/1024).toFixed(1)}KB payload, ${_g} pending (${d})`)}try{const d=new URL(this._parameters.url),f=await a(d.href,{method:"POST",headers:await this._parameters.headers(),body:t,signal:n.signal,keepalive:u,mode:globalThis.location?globalThis.location.origin===d.origin?"same-origin":"cors":"no-cors"});if(f.status>=200&&f.status<=299)return ht.debug(`export response success (status: ${f.status})`),{status:"success"};if(jge(f.status)){ht.warn(`export response retryable (status: ${f.status})`);const g=f.headers.get("Retry-After");return{status:"retryable",retryInMillis:Pge(g)}}return ht.error(`export response failure (status: ${f.status})`),{status:"failure",error:new Error(`Fetch request failed with non-retryable status ${f.status}`)}}catch(d){return Mge(d)?(ht.warn(`export request retryable (network error: ${d})`),{status:"retryable",error:new Error("Fetch request encountered a network error",{cause:d})}):(ht.error(`export request failure (error: ${d})`),{status:"failure",error:new Error("Fetch request errored",{cause:d})})}finally{clearTimeout(o),u&&(a2-=i,_g--)}}shutdown(){}}function Dge(e){return new $ge(e)}function Mge(e){return e instanceof TypeError&&!e.cause}function zge(e,t){return age(e,t,Lge({transport:Dge(e)}))}function Uge(e){const t={};return Object.entries(e??{}).forEach(([r,n])=>{typeof n<"u"?t[r]=String(n):ht.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),t}function Bge(e,t,r){return async()=>{const n={...await r()},o={};return t!=null&&Object.assign(o,await t()),e!=null&&Object.assign(o,Uge(await e())),Object.assign(o,n)}}function Fge(e){if(e!=null)try{const t=globalThis.location?.href;return new URL(e,t).href}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function qge(e,t,r){return{...Zme(e,t,r),headers:Bge(e.headers,t.headers,r.headers),url:Fge(e.url)??t.url??r.url}}function Vge(e,t){return{...Qme(),headers:async()=>e,url:"http://localhost:4318/"+t}}function Hge(e){return typeof e.headers=="function"?e.headers:Kme(e.headers)}function Wge(e,t,r){return qge({url:e.url,timeoutMillis:e.timeoutMillis,headers:Hge(e),concurrencyLimit:e.concurrencyLimit},{},Vge(r,t))}function Gge(e,t,r,n){const o=Wge(e,r,n);return zge(o,t)}class _P extends Yme{constructor(t={}){super(Gge(t,Ege,"v1/traces",{"Content-Type":"application/json"}))}}const Yge=Object.freeze(Object.defineProperty({__proto__:null,OTLPTraceExporter:_P},Symbol.toStringTag,{value:"Module"})),Jge=sa(Yge),Kge=sa(hfe);function Zge(e,t,r,n){for(let o=0,a=e.length;o<a;o++){const i=e[o];t&&i.setTracerProvider(t),r&&i.setMeterProvider(r),n&&i.setLoggerProvider&&i.setLoggerProvider(n),i.getConfig().enabled||i.enable()}}function Qge(e){e.forEach(t=>t.disable())}function OP(e){const t=e.tracerProvider||jn.getTracerProvider(),r=e.meterProvider||fg.getMeterProvider(),n=e.loggerProvider||kP.getLoggerProvider(),o=e.instrumentations?.flat()??[];return Zge(o,t,r,n),()=>{Qge(o)}}let Ao=console.error.bind(console);function Jd(e,t,r){const n=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r})}const RP=(e,t,r)=>{if(!e||!e[t]){Ao("no original function "+String(t)+" to wrap");return}if(!r){Ao("no wrapper function"),Ao(new Error().stack);return}const n=e[t];if(typeof n!="function"||typeof r!="function"){Ao("original object and wrapper must be functions");return}const o=r(n,t);return Jd(o,"__original",n),Jd(o,"__unwrap",()=>{e[t]===o&&Jd(e,t,n)}),Jd(o,"__wrapped",!0),Jd(e,t,o),o},Xge=(e,t,r)=>{if(e)Array.isArray(e)||(e=[e]);else{Ao("must provide one or more modules to patch"),Ao(new Error().stack);return}if(!(t&&Array.isArray(t))){Ao("must provide one or more functions to wrap on modules");return}e.forEach(n=>{t.forEach(o=>{RP(n,o,r)})})},LP=(e,t)=>{if(!e||!e[t]){Ao("no function to unwrap."),Ao(new Error().stack);return}const r=e[t];if(!r.__unwrap)Ao("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{r.__unwrap();return}},e1e=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{Ao("must provide one or more modules to patch"),Ao(new Error().stack);return}if(!(t&&Array.isArray(t))){Ao("must provide one or more functions to unwrap on modules");return}e.forEach(r=>{t.forEach(n=>{LP(r,n)})})};class t1e{_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(t,r,n){this.instrumentationName=t,this.instrumentationVersion=r,this.setConfig(n),this._diag=ht.createComponentLogger({namespace:t}),this._tracer=jn.getTracer(t,r),this._meter=fg.getMeter(t,r),this._logger=kP.getLogger(t,r),this._updateMetricInstruments()}_wrap=RP;_unwrap=LP;_massWrap=Xge;_massUnwrap=e1e;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,r,n,o){if(t)try{t(n,o)}catch(a){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},a)}}}class jP extends t1e{constructor(t,r,n){super(t,r,n),this._config.enabled&&this.enable()}}function r1e(e){return ht.warn("Path normalization is not implemented for this platform. To silence this warning, ensure no node-specific instrumentations are loaded, and node-specific types (e.g. InstrumentationNodeModuleFile), are not used in a browser context)"),e}class n1e{files;name;supportedVersions;patch;unpatch;constructor(t,r,n,o,a){this.files=a||[],this.name=t,this.supportedVersions=r,this.patch=n,this.unpatch=o}}class o1e{name;supportedVersions;patch;unpatch;constructor(t,r,n,o){this.name=r1e(t),this.supportedVersions=r,this.patch=n,this.unpatch=o}}function a1e(e,t,r){let n,o;try{o=e()}catch(a){n=a}finally{if(t(n,o),n&&!r)throw n;return o}}async function i1e(e,t,r){let n,o;try{o=await e()}catch(a){n=a}finally{if(await t(n,o),n&&!r)throw n;return o}}function s1e(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var cp;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(cp||(cp={}));function l1e(e,t){let r=cp.OLD;const n=t?.split(",").map(o=>o.trim()).filter(o=>o!=="");for(const o of n??[])if(o.toLowerCase()===e+"/dup"){r=cp.DUPLICATE;break}else o.toLowerCase()===e&&(r=cp.STABLE);return r}const c1e=Object.freeze(Object.defineProperty({__proto__:null,InstrumentationBase:jP,InstrumentationNodeModuleDefinition:n1e,InstrumentationNodeModuleFile:o1e,get SemconvStability(){return cp},isWrapped:s1e,registerInstrumentations:OP,safeExecuteInTheMiddle:a1e,safeExecuteInTheMiddleAsync:i1e,semconvStabilityFromStr:l1e},Symbol.toStringTag,{value:"Module"})),p1e=sa(c1e);function ji(e){const t=new Error(e);return t.source="ulid",t}const Ul="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Bl=Ul.length,i2=Math.pow(2,48)-1,Kd=10,s2=16;function l2(e,t,r){return t>e.length-1?e:e.substr(0,t)+r+e.substr(t+1)}function PP(e){let t,r=e.length,n,o;const a=Bl-1;for(;!t&&r-->=0;){if(n=e[r],o=Ul.indexOf(n),o===-1)throw ji("incorrectly encoded string");if(o===a){e=l2(e,r,Ul[0]);continue}t=l2(e,r,Ul[o+1])}if(typeof t=="string")return t;throw ji("cannot increment this string")}function NP(e){let t=Math.floor(e()*Bl);return t===Bl&&(t=Bl-1),Ul.charAt(t)}function Og(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>i2)throw ji("cannot encode time greater than "+i2);if(e<0)throw ji("time must be positive");if(Number.isInteger(Number(e))===!1)throw ji("time must be an integer");let r,n="";for(;t>0;t--)r=e%Bl,n=Ul.charAt(r)+n,e=(e-r)/Bl;return n}function c2(e,t){let r="";for(;e>0;e--)r=NP(t)+r;return r}function u1e(e){if(e.length!==Kd+s2)throw ji("malformed ulid");var t=e.substr(0,Kd).split("").reverse().reduce((r,n,o)=>{const a=Ul.indexOf(n);if(a===-1)throw ji("invalid character found: "+n);return r+=a*Math.pow(Bl,o)},0);if(t>i2)throw ji("malformed ulid, timestamp too large");return t}function p2(e=!1,t){t||(t=typeof window<"u"?window:null);const r=t&&(t.crypto||t.msCrypto);if(r)return()=>{const n=new Uint8Array(1);return r.getRandomValues(n),n[0]/255};try{const n=require("crypto");return()=>n.randomBytes(1).readUInt8()/255}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return()=>Math.random()}throw ji("secure crypto unusable, insecure Math.random not allowed")}function IP(e){return e||(e=p2()),function(t){return isNaN(t)&&(t=Date.now()),Og(t,Kd)+c2(s2,e)}}function d1e(e){e||(e=p2());let t=0,r;return function(n){if(isNaN(n)&&(n=Date.now()),n<=t){const a=r=PP(r);return Og(t,Kd)+a}t=n;const o=r=c2(s2,e);return Og(n,Kd)+o}}const $P=IP(),h1e=Object.freeze(Object.defineProperty({__proto__:null,decodeTime:u1e,detectPrng:p2,encodeRandom:c2,encodeTime:Og,factory:IP,incrementBase32:PP,monotonicFactory:d1e,randomChar:NP,replaceCharAt:l2,ulid:$P},Symbol.toStringTag,{value:"Module"})),DP=sa(h1e);var pp={};const MP=sa(rne);var Zd={},zP;function f1e(){if(zP)return Zd;zP=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.TraceStep=void 0;const e=MP;class t{constructor(n){Object.defineProperty(this,"span",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.span=n}get context(){var n;return(n=this.span)===null||n===void 0?void 0:n.context}error(n){this.span&&(this.span.setStatus(e.SpanStatusCode.ERROR,n.message),this.span.recordException(n),this.span.end())}setAttribute(n,o){this.span&&this.span.setAttribute(n,o)}setStatus(n,o){this.span&&this.span.setStatus(n,o)}end(){this.span&&(this.span.setStatus(e.SpanStatusCode.OK),this.span.end())}}return Zd.TraceStep=t,Zd}var up={},UP;function BP(){if(UP)return up;UP=1,Object.defineProperty(up,"__esModule",{value:!0}),up.CLOUD_EVENT_STANDARD_KEYS=void 0,up.mapToCloudEvent=t;const e=DP;up.CLOUD_EVENT_STANDARD_KEYS=["id","specversion","object","datacontenttype","type","time","origin","env","category","signal","source","subject","subjects","data","actor","requestId","clientIp","organizationId","organizationSlug","projectId","projectSlug","osPlatform","userAgent","sessionId"];function t(r){var n,o,a,i,s,c,u,d;const{type:f,data:g,actor:y,requestId:v,clientIp:x,origin:C,env:S,source:w,organizationId:T,organizationSlug:A,projectId:R,projectSlug:L,category:N="product",signal:_="log",osPlatform:$,userAgent:z,sessionId:F}=r,U=!!(g&&Array.isArray(g)),G=y?{id:(a=y.id)!==null&&a!==void 0?a:`ann_${(0,e.ulid)()}`,object:(i=y.object)!==null&&i!==void 0?i:"user",uri:(s=y.uri)!==null&&s!==void 0?s:""}:null,ee=`evt_${(0,e.ulid)()}`.toLowerCase(),le=new Date,V=(c=w??G?.uri)!==null&&c!==void 0?c:null,ie=Object.assign(Object.assign(Object.assign(Object.assign({},T!==void 0&&{organizationId:T}),A!==void 0&&{organizationSlug:A}),R!==void 0&&{projectId:R}),L!==void 0&&{projectSlug:L}),re={specversion:"1.0",object:"event",datacontenttype:"application/json; charset=utf-8",origin:C,env:S,category:N,signal:_,osPlatform:$,userAgent:z,clientIp:x,sessionId:F};if(U){const se=g,Z=se.map(ae=>{var Y,te,de;return{id:(Y=ae.id)!==null&&Y!==void 0?Y:"",object:(te=ae.object)!==null&&te!==void 0?te:"",uri:(de=ae.uri)!==null&&de!==void 0?de:""}}),q=(u=(n=se[0])===null||n===void 0?void 0:n.id)!==null&&u!==void 0?u:null;Object.assign(re,Object.assign(Object.assign({},ie),{id:ee,type:f,time:le,source:V,actor:G,subject:q,subjects:Z,data:se,requestId:v??""}))}else{const se=(d=(o=Array.isArray(g)?g[0]:g)===null||o===void 0?void 0:o.id)!==null&&d!==void 0?d:null;Object.assign(re,Object.assign(Object.assign(Object.assign({},ie),{id:ee,type:f,time:le,source:V,actor:G,subject:se,requestId:v??"",data:g}),w!=null&&{request:{source:w}}))}return re}return up}var Pi={},FP;function m1e(){if(FP)return Pi;FP=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.toSnakeCase=t,Pi.isNonNullish=r,Pi.isOtelAttributeValue=n,Pi.flattenToAttributes=o,Pi.flattenNestedObject=a,Pi.flattenWithMaxDepth=i;const e=3;function t(s){return s.replace(/([A-Z])/g,"_$1").toLowerCase()}function r(s){return s!=null}function n(s){return typeof s=="string"||typeof s=="number"||typeof s=="boolean"}function o(s,c,u,d=!0,f){const g=f?.length?new Set(f):null;for(const[y,v]of Object.entries(s))if(!g?.has(y)&&v!==void 0){const x=d?t(y):y;u[`${c}${x}`]=v}}function a(s,c,u){for(const[d,f]of Object.entries(s))f==null||typeof f=="object"||(u[`${c}.${t(d)}`]=f)}function i(s,c,u,d){var f,g,y;const v=(f=d?.currentDepth)!==null&&f!==void 0?f:0,x=(g=d?.useSnakeCase)!==null&&g!==void 0?g:!0,C=(y=d?.maxNestingLevels)!==null&&y!==void 0?y:e,S=c.endsWith(".")?c.slice(0,-1):c;for(const[w,T]of Object.entries(s)){if(!r(T))continue;const A=x?t(w):w,R=`${S}.${A}`;typeof T=="object"&&!Array.isArray(T)?v<C&&i(T,R,u,{currentDepth:v+1,useSnakeCase:x,maxNestingLevels:C}):n(T)&&(u[R]=T)}}return Pi}var qP;function g1e(){return qP||(qP=1,(function(e){var t=pp&&pp.__awaiter||function(_,$,z,F){function U(G){return G instanceof z?G:new z(function(ee){ee(G)})}return new(z||(z=Promise))(function(G,ee){function le(re){try{ie(F.next(re))}catch(se){ee(se)}}function V(re){try{ie(F.throw(re))}catch(se){ee(se)}}function ie(re){re.done?G(re.value):U(re.value).then(le,V)}ie((F=F.apply(_,$||[])).next())})},r=pp&&pp.__rest||function(_,$){var z={};for(var F in _)Object.prototype.hasOwnProperty.call(_,F)&&$.indexOf(F)<0&&(z[F]=_[F]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,F=Object.getOwnPropertySymbols(_);U<F.length;U++)$.indexOf(F[U])<0&&Object.prototype.propertyIsEnumerable.call(_,F[U])&&(z[F[U]]=_[F[U]]);return z};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseOtelClient=e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY=void 0,e.groupByObjectProperty=c,e.processCloudEventAttributes=v,e.processObjectData=T,e.processAttributes=L;const n=MP,o=f1e(),a=BP(),i=m1e();e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY="context";const s=[e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY];function c(_){const $={updated:[],notUpdated:[]};for(const z of _){if(!z||typeof z!="object")continue;const F=z.object;if(typeof F!="string")continue;const U=z,G=$.notUpdated.find(ee=>ee.object===F);G?($.updated=[G,U],$.notUpdated=$.notUpdated.filter(ee=>ee.object!==F)):$.updated.some(ee=>ee.object===F)||$.notUpdated.push(U)}return $}function u(_,$,z){const F=z?`${z}.`:"",U=$===""?"":`${(0,i.toSnakeCase)($)}.`;return`${_}.${F}${U}`}function d(_,$){const z=_[e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY];return z==="before"||z==="after"?z:$===0?"after":"before"}function f(_){const $=_,z=e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY;return r($,[typeof z=="symbol"?z:z+""])}function g(_){return _.endsWith(".")?_:`${_}.`}function y(_,$,z){var F,U,G,ee,le,V,ie,re,se,Z;const q=$ instanceof Date?$.toISOString():new Date($).toISOString();return{"cloudevents.event_id":_.id,"cloudevents.event_type":_.type,"cloudevents.event_source":(ee=_.source)!==null&&ee!==void 0?ee:void 0,"cloudevents.event_spec_version":_.specversion,"cloudevents.event_data_content_type":(le=_.datacontenttype)!==null&&le!==void 0?le:"application/json; charset=utf-8","cloudevents.event_time":q,"cloudevents.event_subject":(V=_.subject)!==null&&V!==void 0?V:"","cloudevents.event_version":z?.version,"cloudevents.event_origin":(ie=_.origin)!==null&&ie!==void 0?ie:z?.serviceName,"cloudevents.event_env":_.env,"cloudevents.event_client_ip":_.clientIp,"cloudevents.event_object":_.object||"event","cloudevents.event_category":_.category,"cloudevents.event_signal":_.signal,"cloudevents.event_actor.id":(re=(F=_.actor)===null||F===void 0?void 0:F.id)!==null&&re!==void 0?re:void 0,"cloudevents.event_actor.object":(se=(U=_.actor)===null||U===void 0?void 0:U.object)!==null&&se!==void 0?se:void 0,"cloudevents.event_actor.uri":(Z=(G=_.actor)===null||G===void 0?void 0:G.uri)!==null&&Z!==void 0?Z:void 0,"cloudevents.event_organization_id":_.organizationId,"cloudevents.event_organization_slug":_.organizationSlug,"cloudevents.event_project_id":_.projectId,"cloudevents.event_project_slug":_.projectSlug,"cloudevents.event_request_id":_.requestId,"cloudevents.event_os_platform":_.osPlatform,"cloudevents.event_user_agent":_.userAgent,"cloudevents.event_session_id":_.sessionId}}function v(_,$,z){const F=_.data,U=Object.assign({},y(_,$,z));return x(F,U),A(_,U),R(_,U),U}function x(_,$){!_||typeof _!="object"||(Array.isArray(_)?C(_,$):T(_,$))}function C(_,$){_.some(z=>z&&typeof z=="object"&&typeof z.object=="string")?S(_,$):w(_,$)}function S(_,$){const z=c(_);z.updated.forEach((F,U)=>{const G=u("cloudevents.event_data",F.object,d(F,U));(0,i.flattenWithMaxDepth)(f(F),g(G),$)}),z.notUpdated.forEach(F=>{const U=u("cloudevents.event_data",F.object,void 0);(0,i.flattenWithMaxDepth)(f(F),g(U),$)})}function w(_,$){for(const z of _)!z||typeof z!="object"||(0,i.flattenWithMaxDepth)(z,"cloudevents.event_data.",$)}function T(_,$){for(const[z,F]of Object.entries(_)){if(!(0,i.isNonNullish)(F))continue;const U=(0,i.toSnakeCase)(z);if(typeof F=="object"&&!Array.isArray(F))for(const[G,ee]of Object.entries(F))(0,i.isNonNullish)(ee)&&(0,i.isOtelAttributeValue)(ee)&&($[`cloudevents.event_data.${U}.${G}`]=ee);else(0,i.isOtelAttributeValue)(F)&&($[`cloudevents.event_data.${U}`]=F)}}function A(_,$){if(!_.subjects||!Array.isArray(_.subjects))return;const z=c(_.subjects);z.updated.forEach((F,U)=>{const G=u("cloudevents.event_subjects",F.object,d(F,U));(0,i.flattenToAttributes)(F,G,$,!1,s)}),z.notUpdated.forEach(F=>{const U=u("cloudevents.event_subjects",F.object,void 0);(0,i.flattenToAttributes)(F,U,$,!1,s)})}function R(_,$){for(const[z,F]of Object.entries(_))if(!(a.CLOUD_EVENT_STANDARD_KEYS.includes(z)||F===void 0))if(F instanceof Object)for(const[U,G]of Object.entries(F))G!==void 0&&($[`cloudevents.${z}.${U}`]=G);else $[`cloudevents.${z}`]=F}function L(_,$,z){return v(_,$,z)}class N{constructor(){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tracerProvider",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"sessionId",{enumerable:!0,configurable:!0,writable:!0,value:null})}initTracer($){throw new Error("initTracer must be implemented by the environment-specific client")}init($){this.config=$,this.initTracer($)}send($){var z;try{if(!this.tracer||!this.config)return;const F=$,U="time"in F&&F.time?new Date(F.time):new Date;this.tracer.startSpan(`event.${F.type}`,{attributes:this.processAttributes(F,U),startTime:U}).end(U)}catch(F){!((z=this.config)===null||z===void 0)&&z.isProd||console.error("Event reporting failed:",F)}}processAttributes($,z){return L($,z,this.config)}startSpan($,z){var F;try{if(!this.tracer)return;let U;const G=$.time?new Date($.time):new Date,ee=this.tracer.startSpan(`event.${$.type}`,{attributes:this.processAttributes($,G),root:!z},z);return z||(U=n.trace.setSpan(n.context.active(),ee)),{end:()=>ee.end(),setAttribute:(le,V)=>{ee.setAttribute(`cloudevents.event_data.${(0,i.toSnakeCase)(le)}`,V)},setStatus:(le,V)=>ee.setStatus({code:le,message:V}),parentCtx:U}}catch(U){!((F=this.config)===null||F===void 0)&&F.isProd||console.error("Event reporting failed:",U);return}}startStepSpan($,z){var F;try{if(!this.tracer)return;const U=z||n.context.active(),G=$,ee=G.time?new Date(G.time):new Date,le=this.tracer.startSpan(`event.${G.type}`,{attributes:this.processAttributes(G,ee)},U),V=n.trace.setSpan(U,le);return{end:()=>le.end(),setAttribute:(ie,re)=>{le.setAttribute(`cloudevents.event_data.${(0,i.toSnakeCase)(ie)}`,re)},setStatus:(ie,re)=>le.setStatus({code:ie,message:re}),recordException:ie=>le.recordException(ie),context:V}}catch(U){!((F=this.config)===null||F===void 0)&&F.isProd||console.error("Event reporting failed:",U);return}}traceStep($){const z=this.startStepSpan($);if(z)return new o.TraceStep(z)}forceFlush(){return t(this,void 0,void 0,function*(){var $;return($=this.tracerProvider)===null||$===void 0?void 0:$.forceFlush()})}shutdown(){return t(this,void 0,void 0,function*(){var $;return($=this.tracerProvider)===null||$===void 0?void 0:$.shutdown()})}}e.BaseOtelClient=N})(pp)),pp}var VP;function b1e(){if(VP)return Ld;VP=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.OtelClient=void 0;const e=Wme,t=Gme,r=Jge,n=Kge,o=p1e,a=DP,i=g1e();class s extends i.BaseOtelClient{constructor(){super(),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1})}initTracer(u){var d,f;if(!u.collectorUrl&&!u.collectorTraceUrl)return;const g=`ses_${(0,a.ulid)()}`;this.sessionId=g;const y=(0,t.resourceFromAttributes)({[n.ATTR_SERVICE_NAME]:u.serviceName,[n.ATTR_SERVICE_VERSION]:u.serviceVersion,session_id:g}),v=u.collectorTraceUrl||`${u.collectorUrl}/v1/traces`;this.tracerProvider=new e.WebTracerProvider({resource:y,spanProcessors:[...(d=u.spanProcessors)!==null&&d!==void 0?d:[],new e.BatchSpanProcessor(new r.OTLPTraceExporter({url:v,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(u.tracerName),this.tracerProvider.register(),(0,o.registerInstrumentations)({instrumentations:(f=u.instrumentations)!==null&&f!==void 0?f:[]}),this.initialized=!0}}return Ld.OtelClient=s,Ld}var HP={},WP;function y1e(){return WP||(WP=1,Object.defineProperty(HP,"__esModule",{value:!0})),HP}var GP;function YP(){return GP||(GP=1,(function(e){var t=lp&&lp.__createBinding||(Object.create?(function(n,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,s)}):(function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]})),r=lp&&lp.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(b1e(),e),r(y1e(),e)})(lp)),lp}var dp={},JP;function v1e(){if(JP)return dp;JP=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.buildPageResourceItem=t,dp.appendPageResourceIfNeeded=r,dp.enrichMessageWithPageResource=n;const e=()=>({location:typeof location<"u"?location:void 0,document:typeof document<"u"?document:void 0});function t(a=e()){var i;if(!a.location)return;const s=((i=a.document)===null||i===void 0?void 0:i.referrer)||void 0;return Object.assign({id:a.location.href,object:"page",uri:a.location.href},s?{referrer:s}:{})}function r(a,i,s){if(!s.has(a)||!Array.isArray(i)||i.some(o))return i;const c=t();return c?[...i,c]:i}function n(a,i){const s=r(a.type,a.data,i);return s===a.data?a:Object.assign(Object.assign({},a),{data:s})}function o(a){return a!=null&&typeof a=="object"&&a.object==="page"}return dp}var KP;function x1e(){if(KP)return Rd;KP=1,Object.defineProperty(Rd,"__esModule",{value:!0}),Rd.Telemetry=void 0;const e=YP(),t=BP(),r=v1e(),n=new Set(["com.redocly.downloadDefinition.clicked","com.redocly.copyCodeSnippet.clicked","com.redocly.referencedIn.clicked","com.redocly.selectLanguage.clicked","com.redocly.expandCollapseAll.clicked","com.redocly.examplesSwitcher.clicked","com.redocly.switchServers.clicked","com.redocly.tryIt.opened","com.redocly.changeLayout.clicked","com.redocly.viewSecurityDetails.clicked","com.redocly.viewSecurityDetails.closed","com.redocly.search.opened","com.redocly.searchResult.clicked","com.redocly.searchInputReset.clicked","com.redocly.switchMessage.clicked","com.redocly.switchExample.clicked","com.redocly.message.clicked","com.redocly.serverModal.opened","com.redocly.requiredScopesModal.opened"]);class o{constructor(){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"useCloudEventData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"otelClient",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"updateCloudEventData",{enumerable:!0,configurable:!0,writable:!0,value:i=>{var s;!((s=this.config)===null||s===void 0)&&s.disabled||(this.useCloudEventData=i)}}),this.useCloudEventData=()=>({origin:"redocUi",signal:"log"}),this.otelClient=new e.OtelClient,this.tracer={traceStep:(i,s)=>{const c=this.constructCloudEvent(i,s,{signal:"trace"});return this.otelClient.traceStep(c)}}}send(i,s,c){var u,d;try{if(!(!((u=this.config)===null||u===void 0)&&u.otel.isProd))return;const f=i&&typeof i=="object"&&"type"in i&&"data"in i?(0,r.enrichMessageWithPageResource)(i,n):this.constructCloudEvent(i,s,Object.assign(Object.assign({},c),{signal:"log"}));this.sendToOtelService(f)}catch(f){!((d=this.config)===null||d===void 0)&&d.otel.isProd||console.error("Event reporting failed:",f)}}init(i){i.disabled||this.initialized||(this.config=i,this.initialized=!0,this.otelClient.init({serviceVersion:i.otel.serviceVersion,version:i.otel.version,isProd:i.otel.isProd,collectorUrl:i.otel.collectorUrl,collectorTraceUrl:i.otel.collectorTraceUrl,serviceName:i.otel.serviceName,tracerName:i.otel.tracerName,spanProcessors:i.otel.spanProcessors,instrumentations:[...i.otel.instrumentations||[]]}))}startSpan(i,s,c){var u;if(!((u=this.config)===null||u===void 0)&&u.disabled)return;const d=this.constructCloudEvent(i,s,{signal:"trace"});return this.otelClient.startSpan(d,c)}constructCloudEvent(i,s,c){const u=Object.assign(Object.assign({},this.useCloudEventData()),c);return(0,t.mapToCloudEvent)(Object.assign(Object.assign({type:i,data:(0,r.appendPageResourceIfNeeded)(i,s,n)},u),this.otelClient.sessionId&&{sessionId:this.otelClient.sessionId}))}sendToOtelService(i){var s;!((s=this.config)===null||s===void 0)&&s.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",i),this.otelClient.send(Object.assign(Object.assign({},i),{signal:"log"}))}forceFlush(){var i;return!((i=this.config)===null||i===void 0)&&i.disabled?Promise.resolve():this.otelClient.forceFlush()}shutdown(){var i;return!((i=this.config)===null||i===void 0)&&i.disabled?Promise.resolve():this.otelClient.shutdown()}sendViewedMessage(i,s){this.send("com.redocly.page.viewed",i,s)}sendPerformanceMetricsMessage(i,s){this.send("com.redocly.performanceMetrics.collected",i,s)}sendDownloadDefinitionClickedMessage(i,s){this.send("com.redocly.downloadDefinition.clicked",i,s)}sendCopyCodeSnippetClickedMessage(i,s){this.send("com.redocly.copyCodeSnippet.clicked",i,s)}sendReferencedInClickedMessage(i,s){this.send("com.redocly.referencedIn.clicked",i,s)}sendSelectLanguageClickedMessage(i,s){this.send("com.redocly.selectLanguage.clicked",i,s)}sendExpandCollapseAllClickedMessage(i,s){this.send("com.redocly.expandCollapseAll.clicked",i,s)}sendExamplesSwitcherClickedMessage(i,s){this.send("com.redocly.examplesSwitcher.clicked",i,s)}sendSwitchServersClickedMessage(i,s){this.send("com.redocly.switchServers.clicked",i,s)}sendTryItOpenedMessage(i,s){this.send("com.redocly.tryIt.opened",i,s)}sendChangeLayoutClickedMessage(i,s){this.send("com.redocly.changeLayout.clicked",i,s)}sendViewSecurityDetailsClickedMessage(i,s){this.send("com.redocly.viewSecurityDetails.clicked",i,s)}sendViewSecurityDetailsClosedMessage(i,s){this.send("com.redocly.viewSecurityDetails.closed",i,s)}sendSearchOpenedMessage(i,s){this.send("com.redocly.search.opened",i,s)}sendSearchResultClickedMessage(i,s){this.send("com.redocly.searchResult.clicked",i,s)}sendSearchInputResetClickedMessage(i,s){this.send("com.redocly.searchInputReset.clicked",i,s)}sendSwitchMessageClickedMessage(i,s){this.send("com.redocly.switchMessage.clicked",i,s)}sendSwitchExampleClickedMessage(i,s){this.send("com.redocly.switchExample.clicked",i,s)}sendMessageClickedMessage(i,s){this.send("com.redocly.message.clicked",i,s)}sendServerModalOpenedMessage(i,s){this.send("com.redocly.serverModal.opened",i,s)}sendRequiredScopesModalOpenedMessage(i,s){this.send("com.redocly.requiredScopesModal.opened",i,s)}sendInitialMessage(i,s){this.send("com.redocly.redoc.initialized",i,s)}sendErrorMessage(i,s){this.send("com.redocly.error.occurred",i,s)}}return Rd.Telemetry=o,Rd}var ZP;function w1e(){return ZP||(ZP=1,(function(e){var t=sp&&sp.__createBinding||(Object.create?(function(n,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,s)}):(function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]})),r=sp&&sp.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(nre(),e),r(x1e(),e),r(YP(),e)})(sp)),sp}var QP={},XP;function S1e(){return XP||(XP=1,Object.defineProperty(QP,"__esModule",{value:!0})),QP}var eN;function C1e(){return eN||(eN=1,(function(e){var t=ip&&ip.__createBinding||(Object.create?(function(o,a,i,s){s===void 0&&(s=i);var c=Object.getOwnPropertyDescriptor(a,i);(!c||("get"in c?!a.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(o,s,c)}):(function(o,a,i,s){s===void 0&&(s=i),o[s]=a[i]})),r=ip&&ip.__exportStar||function(o,a){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,o,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.Telemetry=void 0;var n=w1e();Object.defineProperty(e,"Telemetry",{enumerable:!0,get:function(){return n.Telemetry}}),r(S1e(),e)})(ip)),ip}var k1e=C1e();const E1e="@redocly/openapi-docs",A1e="3.24.0-next.8",tN={name:E1e,version:A1e},T1e="https://otel.cloud.redocly.com/v1/traces";class rN extends k1e.Telemetry{specType;constructor(t){super(),this.specType=t.specType,this.init({otel:{isProd:!0,serviceVersion:t.serviceVersion||`${tN.name}@${tN.version}`,version:"1.0.0",collectorTraceUrl:t.collectorUrl||T1e,serviceName:t.serviceName||"redoc-ce",tracerName:"client-telemetry"},disabled:t.disabled||!1})}send(t,r){r&&Array.isArray(r)&&r.length>0&&(r=r.map(n=>n&&typeof n=="object"?{...n,specType:this.specType}:n)),super.send(t,r,{env:"production"})}}var _1e=Object.create,Rg=Object.defineProperty,O1e=Object.getOwnPropertyDescriptor,R1e=Object.getOwnPropertyNames,L1e=Object.getPrototypeOf,j1e=Object.prototype.hasOwnProperty,nN=e=>Rg(e,"__esModule",{value:!0}),Ze=(e,t)=>function(){return t||(0,e[Object.keys(e)[0]])((t={exports:{}}).exports,t),t.exports},oN=(e,t)=>{nN(e);for(var r in t)Rg(e,r,{get:t[r],enumerable:!0})},P1e=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of R1e(t))!j1e.call(e,n)&&n!=="default"&&Rg(e,n,{get:()=>t[n],enumerable:!(r=O1e(t,n))||r.enumerable});return e},Lg=e=>P1e(nN(Rg(e!=null?_1e(L1e(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),aN=Ze({"src/grammar/tag.js"(e,t){function r(a,i){function s(){this.constructor=a}s.prototype=i.prototype,a.prototype=new s}function n(a,i,s,c){this.message=a,this.expected=i,this.found=s,this.location=c,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n)}r(n,Error),n.buildMessage=function(a,i,s){var c={literal:function(x){return'"'+d(x.text)+'"'},class:function(x){var C=x.parts.map(function(S){return Array.isArray(S)?f(S[0])+"-"+f(S[1]):f(S)});return"["+(x.inverted?"^":"")+C+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(x){return x.description},not:function(x){return"not "+g(x.expected)}};function u(x){return x.charCodeAt(0).toString(16).toUpperCase()}function d(x){return x.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(C){return"\\x0"+u(C)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(C){return"\\x"+u(C)})}function f(x){return x.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(C){return"\\x0"+u(C)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(C){return"\\x"+u(C)})}function g(x){return c[x.type](x)}function y(x){var C=x.map(g),S,w;if(C.sort(),C.length>0){for(S=1,w=1;S<C.length;S++)C[S-1]!==C[S]&&(C[w]=C[S],w++);C.length=w}switch(C.length){case 1:return C[0];case 2:return C[0]+" or "+C[1];default:return C.slice(0,-1).join(", ")+", or "+C[C.length-1]}}function v(x){return x?'"'+d(x)+'"':"end of input"}return"Expected "+y(a)+" but "+v(i)+" found."};function o(a,i){i=i!==void 0?i:{};var s={},c={Top:ta},u=ta,d="/",f=".",g="#",y="=",v="(",x=")",C=",",S="[",w="]",T="null",A="true",R="false",L="{",N="}",_=":",$='"',z="\\",F="n",U="r",G="t",ee=/^[$@]/,le=/^[0-9]/,V=/^[^\0-\x1F"\\]/,ie=/^[a-zA-Z0-9_\-]/,re=/^[ \n\t]/,se=pt("/",!1),Z=Hr("tag name"),q=Hr("class"),ae=Hr("id"),Y=pt("=",!1),te=pt("(",!1),de=pt(")",!1),Q=pt(",",!1),oe=Hr("variable"),H=Hr("null"),ve=Hr("boolean"),ke=pt("[",!1),E=pt("]",!1),P=pt("{",!1),W=pt("}",!1),ge=pt(":",!1),xe=Hr("number"),ce=Hr("string"),ue=Hr("identifier"),je=Hr("whitespace"),he=function(J){return{type:"variable",meta:{variable:J}}},Ke=function(J){return{type:"annotation",meta:{attributes:J}}},Je=function(J,fe){return fe},He=function(J,fe,we,Te){fe&&(we=we||[],we.unshift({type:"attribute",name:"primary",value:fe}));const[qe,Qe]=Te?["tag",0]:["tag_open",1];return{type:qe,nesting:Qe,meta:{tag:J,attributes:we}}},Ve=function(J){return{type:"tag_close",nesting:-1,meta:{tag:J}}},Xe=function(J,fe){return J?[J,...fe]:[]},ut=function(J){return J},Fe=function(J){return J},j=function(J){return J},I=function(J){return J},B=function(J){return{type:"class",name:J,value:!0}},pe=function(J){return{type:"attribute",name:"id",value:J}},Ee=function(J,fe){return{type:"attribute",name:J,value:fe}},Re=function(J,fe,we){return fe?[fe,...we]:[]},Be=function(J,fe){let we={};for(let[Te,{name:qe,value:Qe}]of fe.entries())we[qe||Te]=Qe;return new qn(J,we)},it=function(J){return J},Ft=function(J,fe){return{name:J,value:fe}},gt=function(J){return J},Ot=function(J,fe,we){return J==="@"?[fe,...we]:new $t([fe,...we])},It=function(){return null},Zs=function(){return!0},oi=function(){return!1},ai=function(J,fe){return[J,...fe]},Ta=function(J){return J||[]},Ro=function(J,fe){return Object.assign(J,...fe)},Qo=function(J){return J||{}},Lo=function(J,fe){return J==="$$mdtype"?{}:{[J]:fe}},Bn=function(){return parseFloat(Po())},Xo=function(J){return J.join("")},ii=function(){return`
6673
6673
  `},ea=function(){return"\r"},bu=function(){return" "},Qs=function(J){return J},Ce=0,vt=0,jo=[{line:1,column:1}],_a=[],dt=0,si;if("startRule"in i){if(!(i.startRule in c))throw new Error(`Can't start parsing from rule "`+i.startRule+'".');u=c[i.startRule]}function Po(){return a.substring(vt,Ce)}function pt(J,fe){return{type:"literal",text:J,ignoreCase:fe}}function Ar(){return{type:"end"}}function Hr(J){return{type:"other",description:J}}function li(J){var fe=jo[J],we;if(fe)return fe;for(we=J-1;!jo[we];)we--;for(fe=jo[we],fe={line:fe.line,column:fe.column};we<J;)a.charCodeAt(we)===10?(fe.line++,fe.column=1):fe.column++,we++;return jo[J]=fe,fe}var Xs=typeof i.filename=="string"&&i.filename.length>0;function el(J,fe){var we={};Xs&&(we.filename=i.filename);var Te=li(J);we.start={offset:J,line:Te.line,column:Te.column};var qe=li(fe);return we.end={offset:fe,line:qe.line,column:qe.column},we}function tl(){_a.push({pos:Ce,variants:[]})}function Gt(J){var fe=_a[_a.length-1];Ce<fe.pos||(Ce>fe.pos&&(fe.pos=Ce,fe.variants=[]),fe.variants.push(J))}function rl(J,fe,we){return new n(n.buildMessage(J,fe,we),J,fe,we)}function Oa(){var J=_a[0],fe=J.pos;return rl(J.variants,fe<a.length?a.charAt(fe):null,fe<a.length?el(fe,fe+1):el(fe,fe))}function ta(){var J;return J=On(),J===s&&(J=fo(),J===s&&(J=rr(),J===s&&(J=yc()))),J}function On(){var J,fe;return J=Ce,fe=ol(),fe===s&&(fe=Fn()),fe!==s&&(vt=J,fe=he(fe)),J=fe,J}function fo(){var J,fe,we,Te;if(J=Ce,fe=No(),fe!==s){for(we=[],Te=Ge();Te!==s;)we.push(Te),Te=Ge();vt=J,J=Ke(fe)}else Ce=J,J=s;return J}function rr(){var J,fe,we,Te,qe,Qe,xt,jr=function(ra){dt===0&&Gt(ra)};if(J=Ce,fe=ci(),fe!==s){for(we=[],Te=Ge();Te!==s;)we.push(Te),Te=Ge();for(Te=Ce,qe=go(),qe!==s?(Qe=Ge(),Qe===s&&(Qe=null),vt=Te,Te=Je(fe,qe)):(Ce=Te,Te=s),Te===s&&(Te=null),qe=No(),qe===s&&(qe=null),Qe=[],xt=Ge();xt!==s;)Qe.push(xt),xt=Ge();jr(se),a.charCodeAt(Ce)===47?(xt=d,Ce++):xt=s,xt===s&&(xt=null),vt=J,J=He(fe,Te,qe,xt)}else Ce=J,J=s;return J}function yc(){var J,fe,we,Te=function(qe){dt===0&&Gt(qe)};return J=Ce,Te(se),a.charCodeAt(Ce)===47?(fe=d,Ce++):fe=s,fe!==s?(we=ci(),we!==s?(vt=J,J=Ve(we)):(Ce=J,J=s)):(Ce=J,J=s),J}function ci(){var J,fe=function(we){dt===0&&Gt(we)};return fe(Z),dt++,J=ct(),dt--,J}function No(){var J,fe,we,Te;if(J=Ce,fe=nl(),fe!==s){for(we=[],Te=Io();Te!==s;)we.push(Te),Te=Io();vt=J,J=Xe(fe,we)}else Ce=J,J=s;return J}function Io(){var J,fe,we;if(J=Ce,fe=[],we=Ge(),we!==s)for(;we!==s;)fe.push(we),we=Ge();else fe=s;return fe!==s?(we=nl(),we!==s?(vt=J,J=ut(we)):(Ce=J,J=s)):(Ce=J,J=s),J}function nl(){var J,fe;return J=Ce,fe=Hi(),fe!==s&&(vt=J,fe=Fe(fe)),J=fe,J===s&&(J=Ce,fe=pi(),fe!==s&&(vt=J,fe=j(fe)),J=fe,J===s&&(J=Ce,fe=Wi(),fe!==s&&(vt=J,fe=I(fe)),J=fe)),J}function pi(){var J,fe,we,Te=function(qe){dt===0&&Gt(qe)};return Te(q),dt++,J=Ce,a.charCodeAt(Ce)===46?(fe=f,Ce++):fe=s,fe!==s?(we=ct(),we!==s?(vt=J,J=B(we)):(Ce=J,J=s)):(Ce=J,J=s),dt--,J}function Hi(){var J,fe,we,Te=function(qe){dt===0&&Gt(qe)};return Te(ae),dt++,J=Ce,a.charCodeAt(Ce)===35?(fe=g,Ce++):fe=s,fe!==s?(we=ct(),we!==s?(vt=J,J=pe(we)):(Ce=J,J=s)):(Ce=J,J=s),dt--,J}function Wi(){var J,fe,we,Te,qe=function(Qe){dt===0&&Gt(Qe)};return J=Ce,fe=ct(),fe!==s?(qe(Y),a.charCodeAt(Ce)===61?(we=y,Ce++):we=s,we!==s?(Te=go(),Te!==s?(vt=J,J=Ee(fe,Te)):(Ce=J,J=s)):(Ce=J,J=s)):(Ce=J,J=s),J}function Fn(){var J,fe,we,Te,qe,Qe,xt,jr,ra=function(vu){dt===0&&Gt(vu)};if(J=Ce,fe=ct(),fe!==s)if(ra(te),a.charCodeAt(Ce)===40?(we=v,Ce++):we=s,we!==s){for(Te=[],qe=Ge();qe!==s;)Te.push(qe),qe=Ge();for(qe=Ce,Qe=mo(),Qe===s&&(Qe=null),xt=[],jr=Tr();jr!==s;)xt.push(jr),jr=Tr();vt=qe,qe=Re(fe,Qe,xt),ra(de),a.charCodeAt(Ce)===41?(Qe=x,Ce++):Qe=s,Qe!==s?(vt=J,J=Be(fe,qe)):(Ce=J,J=s)}else Ce=J,J=s;else Ce=J,J=s;return J}function mo(){var J,fe,we,Te,qe=function(Qe){dt===0&&Gt(Qe)};return J=Ce,fe=Ce,we=ct(),we!==s?(qe(Y),a.charCodeAt(Ce)===61?(Te=y,Ce++):Te=s,Te!==s?(vt=fe,fe=it(we)):(Ce=fe,fe=s)):(Ce=fe,fe=s),fe===s&&(fe=null),we=go(),we!==s?(vt=J,J=Ft(fe,we)):(Ce=J,J=s),J}function Tr(){var J,fe,we,Te,qe,Qe=function(xt){dt===0&&Gt(xt)};for(J=Ce,fe=[],we=Ge();we!==s;)fe.push(we),we=Ge();if(Qe(Q),a.charCodeAt(Ce)===44?(we=C,Ce++):we=s,we!==s){for(Te=[],qe=Ge();qe!==s;)Te.push(qe),qe=Ge();qe=mo(),qe!==s?(vt=J,J=gt(qe)):(Ce=J,J=s)}else Ce=J,J=s;return J}function an(){var J,fe,we,Te=function(qe){dt===0&&Gt(qe)};for(J=Ce,fe=[],we=Ge();we!==s;)fe.push(we),we=Ge();return Te(Q),a.charCodeAt(Ce)===44?(we=C,Ce++):we=s,we!==s?(fe=[fe,we],J=fe):(Ce=J,J=s),J===s&&(J=null),J}function ol(){var J,fe,we,Te,qe,Qe=function(xt){dt===0&&Gt(xt)};if(Qe(oe),dt++,J=Ce,ee.test(a.charAt(Ce))?(fe=a.charAt(Ce),Ce++):fe=s,fe!==s)if(we=ct(),we!==s){for(Te=[],qe=al();qe!==s;)Te.push(qe),qe=al();vt=J,J=Ot(fe,we,Te)}else Ce=J,J=s;else Ce=J,J=s;return dt--,J}function al(){var J,fe,we,Te;return J=Ce,a.charCodeAt(Ce)===46?(fe=f,Ce++):fe=s,fe!==s?(we=ct(),we!==s?(vt=J,J=it(we)):(Ce=J,J=s)):(Ce=J,J=s),J===s&&(J=Ce,a.charCodeAt(Ce)===91?(fe=S,Ce++):fe=s,fe!==s?(we=X(),we===s&&(we=Ne()),we!==s?(a.charCodeAt(Ce)===93?(Te=w,Ce++):Te=s,Te!==s?(vt=J,J=gt(we)):(Ce=J,J=s)):(Ce=J,J=s)):(Ce=J,J=s)),J}function go(){var J;return J=vc(),J===s&&(J=ui(),J===s&&(J=Ne(),J===s&&(J=X(),J===s&&(J=yu(),J===s&&(J=Gi(),J===s&&(J=Fn(),J===s&&(J=ol()))))))),J}function vc(){var J,fe,we=function(Te){dt===0&&Gt(Te)};return we(H),dt++,J=Ce,a.substr(Ce,4)===T?(fe=T,Ce+=4):fe=s,fe!==s&&(vt=J,fe=It()),J=fe,dt--,J}function ui(){var J,fe,we=function(Te){dt===0&&Gt(Te)};return we(ve),dt++,J=Ce,a.substr(Ce,4)===A?(fe=A,Ce+=4):fe=s,fe!==s&&(vt=J,fe=Zs()),J=fe,J===s&&(J=Ce,a.substr(Ce,5)===R?(fe=R,Ce+=5):fe=s,fe!==s&&(vt=J,fe=oi()),J=fe),dt--,J}function yu(){var J,fe,we,Te,qe,Qe,xt,jr=function(ra){dt===0&&Gt(ra)};if(J=Ce,jr(ke),a.charCodeAt(Ce)===91?(fe=S,Ce++):fe=s,fe!==s){for(we=[],Te=Ge();Te!==s;)we.push(Te),Te=Ge();if(Te=Ce,qe=go(),qe!==s){for(Qe=[],xt=bn();xt!==s;)Qe.push(xt),xt=bn();xt=an(),vt=Te,Te=ai(qe,Qe)}else Ce=Te,Te=s;for(Te===s&&(Te=null),qe=[],Qe=Ge();Qe!==s;)qe.push(Qe),Qe=Ge();jr(E),a.charCodeAt(Ce)===93?(Qe=w,Ce++):Qe=s,Qe!==s?(vt=J,J=Ta(Te)):(Ce=J,J=s)}else Ce=J,J=s;return J}function bn(){var J,fe,we,Te,qe,Qe=function(xt){dt===0&&Gt(xt)};for(J=Ce,fe=[],we=Ge();we!==s;)fe.push(we),we=Ge();if(Qe(Q),a.charCodeAt(Ce)===44?(we=C,Ce++):we=s,we!==s){for(Te=[],qe=Ge();qe!==s;)Te.push(qe),qe=Ge();qe=go(),qe!==s?(vt=J,J=gt(qe)):(Ce=J,J=s)}else Ce=J,J=s;return J}function Gi(){var J,fe,we,Te,qe,Qe,xt,jr=function(ra){dt===0&&Gt(ra)};if(J=Ce,jr(P),a.charCodeAt(Ce)===123?(fe=L,Ce++):fe=s,fe!==s){for(we=[],Te=Ge();Te!==s;)we.push(Te),Te=Ge();if(Te=Ce,qe=La(),qe!==s){for(Qe=[],xt=Ra();xt!==s;)Qe.push(xt),xt=Ra();xt=an(),vt=Te,Te=Ro(qe,Qe)}else Ce=Te,Te=s;for(Te===s&&(Te=null),qe=[],Qe=Ge();Qe!==s;)qe.push(Qe),Qe=Ge();jr(W),a.charCodeAt(Ce)===125?(Qe=N,Ce++):Qe=s,Qe!==s?(vt=J,J=Qo(Te)):(Ce=J,J=s)}else Ce=J,J=s;return J}function Ra(){var J,fe,we,Te,qe,Qe=function(xt){dt===0&&Gt(xt)};for(J=Ce,fe=[],we=Ge();we!==s;)fe.push(we),we=Ge();if(Qe(Q),a.charCodeAt(Ce)===44?(we=C,Ce++):we=s,we!==s){for(Te=[],qe=Ge();qe!==s;)Te.push(qe),qe=Ge();qe=La(),qe!==s?(vt=J,J=ut(qe)):(Ce=J,J=s)}else Ce=J,J=s;return J}function La(){var J,fe,we,Te,qe,Qe=function(xt){dt===0&&Gt(xt)};if(J=Ce,fe=ct(),fe===s&&(fe=Ne()),fe!==s)if(Qe(ge),a.charCodeAt(Ce)===58?(we=_,Ce++):we=s,we!==s){for(Te=[],qe=Ge();qe!==s;)Te.push(qe),qe=Ge();qe=go(),qe!==s?(vt=J,J=Lo(fe,qe)):(Ce=J,J=s)}else Ce=J,J=s;else Ce=J,J=s;return J}function X(){var J,fe,we,Te,qe,Qe,xt=function(jr){dt===0&&Gt(jr)};if(xt(xe),dt++,J=Ce,a.charCodeAt(Ce)===45&&Ce++,fe=[],le.test(a.charAt(Ce))?(we=a.charAt(Ce),Ce++):we=s,we!==s)for(;we!==s;)fe.push(we),le.test(a.charAt(Ce))?(we=a.charAt(Ce),Ce++):we=s;else fe=s;if(fe!==s){if(we=Ce,a.charCodeAt(Ce)===46?(Te=f,Ce++):Te=s,Te!==s){if(qe=[],le.test(a.charAt(Ce))?(Qe=a.charAt(Ce),Ce++):Qe=s,Qe!==s)for(;Qe!==s;)qe.push(Qe),le.test(a.charAt(Ce))?(Qe=a.charAt(Ce),Ce++):Qe=s;else qe=s;qe!==s?(Te=[Te,qe],we=Te):(Ce=we,we=s)}else Ce=we,we=s;we===s&&(we=null),vt=J,J=Bn()}else Ce=J,J=s;return dt--,J}function Ne(){var J,fe,we,Te,qe=function(Qe){dt===0&&Gt(Qe)};if(qe(ce),dt++,J=Ce,a.charCodeAt(Ce)===34?(fe=$,Ce++):fe=s,fe!==s){for(we=[],Te=$e();Te!==s;)we.push(Te),Te=$e();a.charCodeAt(Ce)===34?(Te=$,Ce++):Te=s,Te!==s?(vt=J,J=Xo(we)):(Ce=J,J=s)}else Ce=J,J=s;return dt--,J}function $e(){var J;return V.test(a.charAt(Ce))?(J=a.charAt(Ce),Ce++):J=s,J===s&&(J=We()),J}function We(){var J,fe,we,Te;return J=Ce,a.charCodeAt(Ce)===92?(fe=z,Ce++):fe=s,fe!==s?(a.charCodeAt(Ce)===34?(we=$,Ce++):we=s,we===s&&(a.charCodeAt(Ce)===92?(we=z,Ce++):we=s,we===s&&(we=Ce,a.charCodeAt(Ce)===110?(Te=F,Ce++):Te=s,Te!==s&&(vt=we,Te=ii()),we=Te,we===s&&(we=Ce,a.charCodeAt(Ce)===114?(Te=U,Ce++):Te=s,Te!==s&&(vt=we,Te=ea()),we=Te,we===s&&(we=Ce,a.charCodeAt(Ce)===116?(Te=G,Ce++):Te=s,Te!==s&&(vt=we,Te=bu()),we=Te)))),we!==s?(vt=J,J=Qs(we)):(Ce=J,J=s)):(Ce=J,J=s),J}function ct(){var J,fe,we,Te=function(qe){dt===0&&Gt(qe)};if(Te(ue),dt++,J=Ce,fe=[],ie.test(a.charAt(Ce))?(we=a.charAt(Ce),Ce++):we=s,we!==s)for(;we!==s;)fe.push(we),ie.test(a.charAt(Ce))?(we=a.charAt(Ce),Ce++):we=s;else fe=s;return fe!==s?J=a.substring(J,Ce):J=fe,dt--,J}function Ge(){var J,fe=function(we){dt===0&&Gt(we)};return fe(je),dt++,re.test(a.charAt(Ce))?(J=a.charAt(Ce),Ce++):J=s,dt--,J}const{Variable:$t,Function:qn}=i;if(tl(),si=u(),si!==s&&Ce===a.length)return si;throw si!==s&&Ce<a.length&&Gt(Ar()),Oa()}t.exports={SyntaxError:n,parse:o}}}),N1e=Ze({"node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
6674
6674
  `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}}),iN=Ze({"node_modules/markdown-it/lib/common/entities.js"(e,t){t.exports=N1e()}}),u2=Ze({"node_modules/uc.micro/categories/P/regex.js"(e,t){t.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/}}),I1e=Ze({"node_modules/mdurl/encode.js"(e,t){var r={};function n(a){var i,s,c=r[a];if(c)return c;for(c=r[a]=[],i=0;i<128;i++)s=String.fromCharCode(i),/^[0-9a-z]$/i.test(s)?c.push(s):c.push("%"+("0"+i.toString(16).toUpperCase()).slice(-2));for(i=0;i<a.length;i++)c[a.charCodeAt(i)]=a[i];return c}function o(a,i,s){var c,u,d,f,g,y="";for(typeof i!="string"&&(s=i,i=o.defaultChars),typeof s>"u"&&(s=!0),g=n(i),c=0,u=a.length;c<u;c++){if(d=a.charCodeAt(c),s&&d===37&&c+2<u&&/^[0-9a-f]{2}$/i.test(a.slice(c+1,c+3))){y+=a.slice(c,c+3),c+=2;continue}if(d<128){y+=g[d];continue}if(d>=55296&&d<=57343){if(d>=55296&&d<=56319&&c+1<u&&(f=a.charCodeAt(c+1),f>=56320&&f<=57343)){y+=encodeURIComponent(a[c]+a[c+1]),c++;continue}y+="%EF%BF%BD";continue}y+=encodeURIComponent(a[c])}return y}o.defaultChars=";/?:@&=+$,-_.!~*'()#",o.componentChars="-_.!~*'()",t.exports=o}}),$1e=Ze({"node_modules/mdurl/decode.js"(e,t){var r={};function n(a){var i,s,c=r[a];if(c)return c;for(c=r[a]=[],i=0;i<128;i++)s=String.fromCharCode(i),c.push(s);for(i=0;i<a.length;i++)s=a.charCodeAt(i),c[s]="%"+("0"+s.toString(16).toUpperCase()).slice(-2);return c}function o(a,i){var s;return typeof i!="string"&&(i=o.defaultChars),s=n(i),a.replace(/(%[a-f0-9]{2})+/gi,function(c){var u,d,f,g,y,v,x,C="";for(u=0,d=c.length;u<d;u+=3){if(f=parseInt(c.slice(u+1,u+3),16),f<128){C+=s[f];continue}if((f&224)===192&&u+3<d&&(g=parseInt(c.slice(u+4,u+6),16),(g&192)===128)){x=f<<6&1984|g&63,x<128?C+="\uFFFD\uFFFD":C+=String.fromCharCode(x),u+=3;continue}if((f&240)===224&&u+6<d&&(g=parseInt(c.slice(u+4,u+6),16),y=parseInt(c.slice(u+7,u+9),16),(g&192)===128&&(y&192)===128)){x=f<<12&61440|g<<6&4032|y&63,x<2048||x>=55296&&x<=57343?C+="\uFFFD\uFFFD\uFFFD":C+=String.fromCharCode(x),u+=6;continue}if((f&248)===240&&u+9<d&&(g=parseInt(c.slice(u+4,u+6),16),y=parseInt(c.slice(u+7,u+9),16),v=parseInt(c.slice(u+10,u+12),16),(g&192)===128&&(y&192)===128&&(v&192)===128)){x=f<<18&1835008|g<<12&258048|y<<6&4032|v&63,x<65536||x>1114111?C+="\uFFFD\uFFFD\uFFFD\uFFFD":(x-=65536,C+=String.fromCharCode(55296+(x>>10),56320+(x&1023))),u+=9;continue}C+="\uFFFD"}return C})}o.defaultChars=";/?:@&=+$,#",o.componentChars="",t.exports=o}}),D1e=Ze({"node_modules/mdurl/format.js"(e,t){t.exports=function(r){var n="";return n+=r.protocol||"",n+=r.slashes?"//":"",n+=r.auth?r.auth+"@":"",r.hostname&&r.hostname.indexOf(":")!==-1?n+="["+r.hostname+"]":n+=r.hostname||"",n+=r.port?":"+r.port:"",n+=r.pathname||"",n+=r.search||"",n+=r.hash||"",n}}}),M1e=Ze({"node_modules/mdurl/parse.js"(e,t){function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["<",">",'"',"`"," ","\r",`
6675
6675
  `," "],s=["{","}","|","\\","^","`"].concat(i),c=["'"].concat(s),u=["%","/","?",";","#"].concat(c),d=["/","?","#"],f=255,g=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function C(S,w){if(S&&S instanceof r)return S;var T=new r;return T.parse(S,w),T}r.prototype.parse=function(S,w){var T,A,R,L,N,_=S;if(_=_.trim(),!w&&S.split("#").length===1){var $=a.exec(_);if($)return this.pathname=$[1],$[2]&&(this.search=$[2]),this}var z=n.exec(_);if(z&&(z=z[0],R=z.toLowerCase(),this.protocol=z,_=_.substr(z.length)),(w||z||_.match(/^\/\/[^@\/]+@[^@\/]+/))&&(N=_.substr(0,2)==="//",N&&!(z&&v[z])&&(_=_.substr(2),this.slashes=!0)),!v[z]&&(N||z&&!x[z])){var F=-1;for(T=0;T<d.length;T++)L=_.indexOf(d[T]),L!==-1&&(F===-1||L<F)&&(F=L);var U,G;for(F===-1?G=_.lastIndexOf("@"):G=_.lastIndexOf("@",F),G!==-1&&(U=_.slice(0,G),_=_.slice(G+1),this.auth=U),F=-1,T=0;T<u.length;T++)L=_.indexOf(u[T]),L!==-1&&(F===-1||L<F)&&(F=L);F===-1&&(F=_.length),_[F-1]===":"&&F--;var ee=_.slice(0,F);_=_.slice(F),this.parseHost(ee),this.hostname=this.hostname||"";var le=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!le){var V=this.hostname.split(/\./);for(T=0,A=V.length;T<A;T++){var ie=V[T];if(ie&&!ie.match(g)){for(var re="",se=0,Z=ie.length;se<Z;se++)ie.charCodeAt(se)>127?re+="x":re+=ie[se];if(!re.match(g)){var q=V.slice(0,T),ae=V.slice(T+1),Y=ie.match(y);Y&&(q.push(Y[1]),ae.unshift(Y[2])),ae.length&&(_=ae.join(".")+_),this.hostname=q.join(".");break}}}}this.hostname.length>f&&(this.hostname=""),le&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var te=_.indexOf("#");te!==-1&&(this.hash=_.substr(te),_=_.slice(0,te));var de=_.indexOf("?");return de!==-1&&(this.search=_.substr(de),_=_.slice(0,de)),_&&(this.pathname=_),x[R]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(S){var w=o.exec(S);w&&(w=w[0],w!==":"&&(this.port=w.substr(1)),S=S.substr(0,S.length-w.length)),S&&(this.hostname=S)},t.exports=C}}),sN=Ze({"node_modules/mdurl/index.js"(e,t){t.exports.encode=I1e(),t.exports.decode=$1e(),t.exports.format=D1e(),t.exports.parse=M1e()}}),lN=Ze({"node_modules/uc.micro/properties/Any/regex.js"(e,t){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/}}),cN=Ze({"node_modules/uc.micro/categories/Cc/regex.js"(e,t){t.exports=/[\0-\x1F\x7F-\x9F]/}}),z1e=Ze({"node_modules/uc.micro/categories/Cf/regex.js"(e,t){t.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/}}),pN=Ze({"node_modules/uc.micro/categories/Z/regex.js"(e,t){t.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/}}),U1e=Ze({"node_modules/uc.micro/index.js"(e){e.Any=lN(),e.Cc=cN(),e.Cf=z1e(),e.P=u2(),e.Z=pN()}}),Kt=Ze({"node_modules/markdown-it/lib/common/utils.js"(e){function t(ee){return Object.prototype.toString.call(ee)}function r(ee){return t(ee)==="[object String]"}var n=Object.prototype.hasOwnProperty;function o(ee,le){return n.call(ee,le)}function a(ee){var le=Array.prototype.slice.call(arguments,1);return le.forEach(function(V){if(V){if(typeof V!="object")throw new TypeError(V+"must be object");Object.keys(V).forEach(function(ie){ee[ie]=V[ie]})}}),ee}function i(ee,le,V){return[].concat(ee.slice(0,le),V,ee.slice(le+1))}function s(ee){return!(ee>=55296&&ee<=57343||ee>=64976&&ee<=65007||(ee&65535)===65535||(ee&65535)===65534||ee>=0&&ee<=8||ee===11||ee>=14&&ee<=31||ee>=127&&ee<=159||ee>1114111)}function c(ee){if(ee>65535){ee-=65536;var le=55296+(ee>>10),V=56320+(ee&1023);return String.fromCharCode(le,V)}return String.fromCharCode(ee)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(u.source+"|"+d.source,"gi"),g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,y=iN();function v(ee,le){var V=0;return o(y,le)?y[le]:le.charCodeAt(0)===35&&g.test(le)&&(V=le[1].toLowerCase()==="x"?parseInt(le.slice(2),16):parseInt(le.slice(1),10),s(V))?c(V):ee}function x(ee){return ee.indexOf("\\")<0?ee:ee.replace(u,"$1")}function C(ee){return ee.indexOf("\\")<0&&ee.indexOf("&")<0?ee:ee.replace(f,function(le,V,ie){return V||v(le,ie)})}var S=/[&<>"]/,w=/[&<>"]/g,T={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function A(ee){return T[ee]}function R(ee){return S.test(ee)?ee.replace(w,A):ee}var L=/[.?*+^$[\]\\(){}|-]/g;function N(ee){return ee.replace(L,"\\$&")}function _(ee){switch(ee){case 9:case 32:return!0}return!1}function $(ee){if(ee>=8192&&ee<=8202)return!0;switch(ee){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var z=u2();function F(ee){return z.test(ee)}function U(ee){switch(ee){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function G(ee){return ee=ee.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(ee=ee.replace(/ẞ/g,"\xDF")),ee.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=sN(),e.lib.ucmicro=U1e(),e.assign=a,e.isString=r,e.has=o,e.unescapeMd=x,e.unescapeAll=C,e.isValidEntityCode=s,e.fromCodePoint=c,e.escapeHtml=R,e.arrayReplaceAt=i,e.isSpace=_,e.isWhiteSpace=$,e.isMdAsciiPunct=U,e.isPunctChar=F,e.escapeRE=N,e.normalizeReference=G}}),B1e=Ze({"node_modules/markdown-it/lib/helpers/parse_link_label.js"(e,t){t.exports=function(r,n,o){var a,i,s,c,u=-1,d=r.posMax,f=r.pos;for(r.pos=n+1,a=1;r.pos<d;){if(s=r.src.charCodeAt(r.pos),s===93&&(a--,a===0)){i=!0;break}if(c=r.pos,r.md.inline.skipToken(r),s===91){if(c===r.pos-1)a++;else if(o)return r.pos=f,-1}}return i&&(u=r.pos),r.pos=f,u}}}),F1e=Ze({"node_modules/markdown-it/lib/helpers/parse_link_destination.js"(e,t){var r=Kt().unescapeAll;t.exports=function(n,o,a){var i,s,c=0,u=o,d={ok:!1,pos:0,lines:0,str:""};if(n.charCodeAt(o)===60){for(o++;o<a;){if(i=n.charCodeAt(o),i===10||i===60)return d;if(i===62)return d.pos=o+1,d.str=r(n.slice(u+1,o)),d.ok=!0,d;if(i===92&&o+1<a){o+=2;continue}o++}return d}for(s=0;o<a&&(i=n.charCodeAt(o),!(i===32||i<32||i===127));){if(i===92&&o+1<a){if(n.charCodeAt(o+1)===32)break;o+=2;continue}if(i===40&&(s++,s>32))return d;if(i===41){if(s===0)break;s--}o++}return u===o||s!==0||(d.str=r(n.slice(u,o)),d.lines=c,d.pos=o,d.ok=!0),d}}}),q1e=Ze({"node_modules/markdown-it/lib/helpers/parse_link_title.js"(e,t){var r=Kt().unescapeAll;t.exports=function(n,o,a){var i,s,c=0,u=o,d={ok:!1,pos:0,lines:0,str:""};if(o>=a||(s=n.charCodeAt(o),s!==34&&s!==39&&s!==40))return d;for(o++,s===40&&(s=41);o<a;){if(i=n.charCodeAt(o),i===s)return d.pos=o+1,d.lines=c,d.str=r(n.slice(u+1,o)),d.ok=!0,d;if(i===40&&s===41)return d;i===10?c++:i===92&&o+1<a&&(o++,n.charCodeAt(o)===10&&c++),o++}return d}}}),V1e=Ze({"node_modules/markdown-it/lib/helpers/index.js"(e){e.parseLinkLabel=B1e(),e.parseLinkDestination=F1e(),e.parseLinkTitle=q1e()}}),H1e=Ze({"node_modules/markdown-it/lib/renderer.js"(e,t){var r=Kt().assign,n=Kt().unescapeAll,o=Kt().escapeHtml,a={};a.code_inline=function(s,c,u,d,f){var g=s[c];return"<code"+f.renderAttrs(g)+">"+o(s[c].content)+"</code>"},a.code_block=function(s,c,u,d,f){var g=s[c];return"<pre"+f.renderAttrs(g)+"><code>"+o(s[c].content)+`</code></pre>
@@ -11678,7 +11678,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
11678
11678
 
11679
11679
  height: ${({size:e})=>e||"16px"};
11680
11680
  width: ${({size:e})=>e||"16px"};
11681
- `;async function V7e(e){return null}function H7e(e,t){const[r,n]=D.useState(),o=D.useCallback(async()=>{try{const a=await V7e();n(a)}catch(a){console.warn("Failed to configure replay for operation:",e.operation.operationId,a)}},[]);return D.useEffect(()=>{t&&o()},[t,o]),{config:r,refresh:o}}const W7e=Ur(Gl.NOT_LOADED),ZB=Ur([]);function G7e(e,t,r,n,o,a,i,s){if(!r)return;const c=new FI(r),u=c.definition.paths?.[e];let d=u?.[t];!d&&u?.additionalOperations&&(d=u.additionalOperations[t]);const f=aS(c,{...d,pathName:e,httpVerb:t,pathParameters:u.parameters||[],pathServers:u.servers||[]},void 0,s??J2({}),"",{isCallback:!1},n,i);if(!f)return;const g=f.requestBody?.content?.mediaTypes[0]?.name||"application/json";return{id:f.id,name:f.name,method:f.httpVerb,operationId:f.operationId,parameters:J7e(f.parameters,o?.requestValues),body:X7e(f.requestBody,r,o?.requestValues?.body?{activeExampleName:o?.activeExampleName,[g]:o?.requestValues?.body}:o?.activeExampleName?{activeExampleName:o?.activeExampleName}:void 0),path:f.path,href:f.href,servers:f.servers,security:e_e(f.security),responses:Object.fromEntries(f.responses.map(y=>[y.code,{code:y.code,description:y.description,mediaTypes:y.content?.mediaTypes.reduce((v,x)=>(v[x.name]={name:x.name,schema:QB(x.schema?.rawSchema,r)},v),{})}]))}}function Y7e(e,t,r,n){return function(o,a,i){const s=Wt.compile(["paths",o,a]),c=n?.[s],u=G7e(o,a,i,e,c,void 0,t,r);if(u)return{...u,operationId:u.operationId||Wt.compile(["paths",u.path,u.method])}}}function J7e(e,t){const r=new Set,n=e.map(o=>(r.add(o.in+":"+o.name),{name:o.name,in:o.in,required:o.required,description:o.description,example:t?.[String(o.in)]?.[o.name]||o.example,schema:o.schema,...o.allowReserved&&{allowReserved:o.allowReserved}}));for(const[o,a]of Object.entries(t||{}))for(const[i,s]of Object.entries(a||{}))r.has(o+":"+i)||n.push({name:i,in:o,required:!1,description:"",example:String(s),schema:void 0});return n}function K7e({type:e,format:t,enum:r}){return e==="string"&&(t==="binary"||t==="base64")?"file":e==="object"?"multiline":r.length>0?"select":"text"}function Z7e(e,t){const r=e[0]?.example||e[0]?.examples;if(r)return r;if(e.schema?.example)return e.schema.example;const n=t?.default?.value||t?.default?.rawValue;return n?.[e.name]?dZ(n?.[e.name])?String(n?.[e.name]):JSON.stringify(n?.[e.name]):""}function Q7e(e){if(e?.fields)return e.fields;if(e?.oneOf){for(const t of e.oneOf)if(t?.fields)return t.fields}}function X7e(e,t,r){if(!e||!e.content?.mediaTypes){if(!r)return;const{activeExampleName:n,...o}=r;return{activeExampleName:n,mediaTypes:Object.fromEntries(Object.entries(o).map(([a,i])=>[a,{name:a,examples:{default:{value:i}},schema:{},parameters:[]}]))}}return{required:e.required,activeExampleName:r?.activeExampleName,mediaTypes:e.content.mediaTypes.reduce((n,o)=>{const a=o.schema,i=r?.[o.name]?{default:{value:r?.[o.name],rawValue:r?.[o.name],mime:o.name}}:o.examples||o.formExamples,s=Q7e(a);return n[o.name]={name:o.name,examples:i,schema:QB(o.schema?.rawSchema,t),parameters:s?.map(c=>({inputType:K7e(c.schema),name:c.name,example:Z7e(c,i)}))},n},{})}}function QB(e,t){if(!(!e||!t))return{...e,components:t?.components||{}}}function e_e(e){if(e)return e.map(({schemes:t})=>t.map(r=>{const n={id:r.id,type:r.type,in:r.in,openIdConnectUrl:r.openIdConnectUrl,scopes:r.scopes,scheme:r.scheme,name:r.name,flows:r.flows,serverValues:r.serverValues,"x-defaultAccessToken":r["x-defaultAccessToken"],"x-defaultTokenType":r["x-defaultTokenType"],"x-defaultClientId":r["x-defaultClientId"],"x-defaultClientSecret":r["x-defaultClientSecret"],"x-defaultUsername":r["x-defaultUsername"],"x-defaultPassword":r["x-defaultPassword"]};return Object.keys(n).forEach(o=>n[o]===void 0&&delete n[o]),n}))}const t_e=D.lazy(async()=>import("./redocly-openapi-docs.min.index-DswpnLh3.js").then(e=>e.bc).then(e=>({default:e.ReplayOverlay})));function r_e({operation:e,corsProxyUrl:t,fullOpenApi:r}){const n=kt(),o=Ga(),a=D.useRef(null),i=et(dn),{oAuth2RedirectURI:s,routingBasePath:c}=i,u=et(ZB),{parser:d,options:{events:f}}=et(Zr),g=et(dS),[y,v]=D.useState(!1),[x,C]=un(W7e),[S,w]=un(g1),[[,T],A]=un(b1),R=D.useMemo(()=>({userClaims:g,info:d?.definition.info,operation:{name:e.name,path:e.path,operationId:e.operationId||"",href:e.href,method:e.httpVerb},servers:e.servers}),[g,d?.definition.info,e.name,e.path,e.operationId,e.href,e.httpVerb,e.servers]),{config:L,refresh:N}=H7e(R,y),_=D.useCallback(()=>N(),[N]),$=D.useCallback(le=>{if(!le)return;const V=u.find(ie=>ie.operationId===le);return Fr(c,V?.href)},[u,c]),z=D.useMemo(()=>Y7e(g,L,i,S),[g,L,i,S]),F=D.useMemo(()=>({corsProxyUrl:t,selectedEnvironment:T,apiId:d?.definition.info?.["x-metadata"]?.apiId,oAuth2RedirectURI:s,disableCollectionsTab:!0,storageKey:c,telemetry:{tracerName:"try-it",collectorUrl:txe()},HTTPSnippet:oo,convertOperationToReplayValue:z,dynamicReplayValues:L,getOperationUrl:$,onRequestReset:_}),[t,T,d?.definition.info,s,c,z,L,$,_]);tx(a),kd(y);const U=D.useCallback(({operations:le,environment:V,environments:ie})=>{const re=le.reduce((se,Z)=>{Z.requestValues.body=Z.requestValues.body instanceof URLSearchParams?Object.fromEntries(Z.requestValues.body.entries()):Z.requestValues.body;const{path:q,method:ae}=Z.apiPath,Y=Wt.compile(["paths",q,ae]);return se[Y]=bp(m1(Y),Z),se},{});w({...S,...re}),A({environment:V,environments:ie})},[S,w,A]),G=()=>{if(x!==Gl.LOADING){if(!y&&(o.sendTryItOpenedMessage([{id:"tryItButton",object:"button",uri:"urn:redocly:redoc:ui:button:tryItButton"}]),f?.tryItOpen&&e)){const le=O7e({operation:e});f.tryItOpen(le)}v(!y)}x===Gl.NOT_LOADED&&C(Gl.LOADING)},ee=D.useCallback(le=>{if(f?.tryItSent&&e){const V=L7e({operation:e,isSuccess:le});f.tryItSent(V)}},[f,e]);return r?m.jsxs(m.Fragment,{children:[m.jsx(bt,{onClick:G,variant:"primary",iconPosition:"left",icon:x===Gl.LOADING?m.jsx(yx,{}):m.jsx(KB,{}),children:x===Gl.LOADING?n("openapi.loading","Loading..."):n("openapi.tryIt","Try it")}),y&&m.jsx(D.Suspense,{children:m.jsx(ap,{mountId:"api-content",children:m.jsx("div",{ref:a,children:m.jsx(t_e,{ReplayGate:YB,ReplayTopBarActions:JB,activeOperationId:e.operationId||e.pointer,api:r,onRequestChange:U,onClose:G,onLoad:()=>C(Gl.LOADED),settings:F,onRequestSent:ee})})})})]}):null}const XB=D.memo(r_e);function n_e({operation:e,disableFooter:t,onPanelToggle:r,...n}){const o=Ga(),[{activeLanguage:a,languages:i},s]=un(y1),{samples:c}=B7e(e),{parser:u,options:{events:d,corsProxyUrl:f,hideReplay:g}}=et(Zr),y=!t&&!e.isWebhook&&!g&&!e.hideReplay,v=!!i?.length,x=lz(c,a),C=_=>{s(_),o.sendSelectLanguageClickedMessage([{id:"selectLanguageButton",object:"button",uri:"urn:redocly:redoc:ui:button:selectLanguageButton",language:_}]);const $=i?.find(z=>z.key===_);if(d?.codeSamplesLanguageSwitch&&$){const z=S7e({operation:e,sample:{lang:$.lang,label:$.title}});d.codeSamplesLanguageSwitch(z)}},S=et(Wa),{activeExampleName:w}=et(ao(e.pointer)),T=D.useCallback(({lang:_,title:$})=>()=>{const z=HB({operation:e,label:$,lang:_,type:"request",activeMimeName:S,activeExampleName:w});o.sendCopyCodeSnippetClickedMessage([{id:"copyCodeSnippetButton",object:"button",uri:"urn:redocly:redoc:ui:button:copyCodeSnippetButton",snippetType:"request",language:_}]),d?.codeSamplesCopy?.(z)},[e,o,d,S,w]),A=D.useCallback(_=>{r?.(_,"request-samples")},[r]),R=()=>m.jsxs(a_e,{isExpandable:!1,$withReplay:!v&&y,children:[m.jsx(i_e,{operation:e}),v&&m.jsx(mB,{activeTab:x,samples:c,onChange:C}),!v&&y&&m.jsx(XB,{operation:e,corsProxyUrl:f,fullOpenApi:u.definition})]}),L=D.useMemo(()=>{if(y&&v)return m.jsx(s_e,{children:m.jsx(XB,{operation:e,corsProxyUrl:f,fullOpenApi:u.definition})})},[y,v,e,f,u.definition]),N=D.useMemo(()=>c.map(_=>_.key===x?m.jsx("div",{children:sCe(_)?m.jsx(qS,{content:_.requestBodyContent,onCopyClick:T(_),onPanelToggle:A,...n}):m.jsx(U7e,{lang:_.lang,source:_.source,externalSample:_,operation:e,onCopyClick:T(_),...n})},_.key+e.id):null),[x,T,A,e,n,c]);return i&&!c.length?m.jsx(js,{className:"panel-request-samples",header:R,isExpandable:!1,expanded:!1}):c.length?m.jsx(js,{className:"panel-request-samples",header:R,footer:L,isExpandable:!1,children:N}):null}const o_e=D.memo(n_e),a_e=ne(Tp)`
11681
+ `;async function V7e(e){return null}function H7e(e,t){const[r,n]=D.useState(),o=D.useCallback(async()=>{try{const a=await V7e();n(a)}catch(a){console.warn("Failed to configure replay for operation:",e.operation.operationId,a)}},[]);return D.useEffect(()=>{t&&o()},[t,o]),{config:r,refresh:o}}const W7e=Ur(Gl.NOT_LOADED),ZB=Ur([]);function G7e(e,t,r,n,o,a,i,s){if(!r)return;const c=new FI(r),u=c.definition.paths?.[e];let d=u?.[t];!d&&u?.additionalOperations&&(d=u.additionalOperations[t]);const f=aS(c,{...d,pathName:e,httpVerb:t,pathParameters:u.parameters||[],pathServers:u.servers||[]},void 0,s??J2({}),"",{isCallback:!1},n,i);if(!f)return;const g=f.requestBody?.content?.mediaTypes[0]?.name||"application/json";return{id:f.id,name:f.name,method:f.httpVerb,operationId:f.operationId,parameters:J7e(f.parameters,o?.requestValues),body:X7e(f.requestBody,r,o?.requestValues?.body?{activeExampleName:o?.activeExampleName,[g]:o?.requestValues?.body}:o?.activeExampleName?{activeExampleName:o?.activeExampleName}:void 0),path:f.path,href:f.href,servers:f.servers,security:e_e(f.security),responses:Object.fromEntries(f.responses.map(y=>[y.code,{code:y.code,description:y.description,mediaTypes:y.content?.mediaTypes.reduce((v,x)=>(v[x.name]={name:x.name,schema:QB(x.schema?.rawSchema,r)},v),{})}]))}}function Y7e(e,t,r,n){return function(o,a,i){const s=Wt.compile(["paths",o,a]),c=n?.[s],u=G7e(o,a,i,e,c,void 0,t,r);if(u)return{...u,operationId:u.operationId||Wt.compile(["paths",u.path,u.method])}}}function J7e(e,t){const r=new Set,n=e.map(o=>(r.add(o.in+":"+o.name),{name:o.name,in:o.in,required:o.required,description:o.description,example:t?.[String(o.in)]?.[o.name]||o.example,schema:o.schema,...o.allowReserved&&{allowReserved:o.allowReserved}}));for(const[o,a]of Object.entries(t||{}))for(const[i,s]of Object.entries(a||{}))r.has(o+":"+i)||n.push({name:i,in:o,required:!1,description:"",example:String(s),schema:void 0});return n}function K7e({type:e,format:t,enum:r}){return e==="string"&&(t==="binary"||t==="base64")?"file":e==="object"?"multiline":r.length>0?"select":"text"}function Z7e(e,t){const r=e[0]?.example||e[0]?.examples;if(r)return r;if(e.schema?.example)return e.schema.example;const n=t?.default?.value||t?.default?.rawValue;return n?.[e.name]?dZ(n?.[e.name])?String(n?.[e.name]):JSON.stringify(n?.[e.name]):""}function Q7e(e){if(e?.fields)return e.fields;if(e?.oneOf){for(const t of e.oneOf)if(t?.fields)return t.fields}}function X7e(e,t,r){if(!e||!e.content?.mediaTypes){if(!r)return;const{activeExampleName:n,...o}=r;return{activeExampleName:n,mediaTypes:Object.fromEntries(Object.entries(o).map(([a,i])=>[a,{name:a,examples:{default:{value:i}},schema:{},parameters:[]}]))}}return{required:e.required,activeExampleName:r?.activeExampleName,mediaTypes:e.content.mediaTypes.reduce((n,o)=>{const a=o.schema,i=r?.[o.name]?{default:{value:r?.[o.name],rawValue:r?.[o.name],mime:o.name}}:o.examples||o.formExamples,s=Q7e(a);return n[o.name]={name:o.name,examples:i,schema:QB(o.schema?.rawSchema,t),parameters:s?.map(c=>({inputType:K7e(c.schema),name:c.name,example:Z7e(c,i)}))},n},{})}}function QB(e,t){if(!(!e||!t))return{...e,components:t?.components||{}}}function e_e(e){if(e)return e.map(({schemes:t})=>t.map(r=>{const n={id:r.id,type:r.type,in:r.in,openIdConnectUrl:r.openIdConnectUrl,scopes:r.scopes,scheme:r.scheme,name:r.name,flows:r.flows,serverValues:r.serverValues,"x-defaultAccessToken":r["x-defaultAccessToken"],"x-defaultTokenType":r["x-defaultTokenType"],"x-defaultClientId":r["x-defaultClientId"],"x-defaultClientSecret":r["x-defaultClientSecret"],"x-defaultUsername":r["x-defaultUsername"],"x-defaultPassword":r["x-defaultPassword"]};return Object.keys(n).forEach(o=>n[o]===void 0&&delete n[o]),n}))}const t_e=D.lazy(async()=>import("./redocly-openapi-docs.min.index-CVScN5cj.js").then(e=>e.bc).then(e=>({default:e.ReplayOverlay})));function r_e({operation:e,corsProxyUrl:t,fullOpenApi:r}){const n=kt(),o=Ga(),a=D.useRef(null),i=et(dn),{oAuth2RedirectURI:s,routingBasePath:c}=i,u=et(ZB),{parser:d,options:{events:f}}=et(Zr),g=et(dS),[y,v]=D.useState(!1),[x,C]=un(W7e),[S,w]=un(g1),[[,T],A]=un(b1),R=D.useMemo(()=>({userClaims:g,info:d?.definition.info,operation:{name:e.name,path:e.path,operationId:e.operationId||"",href:e.href,method:e.httpVerb},servers:e.servers}),[g,d?.definition.info,e.name,e.path,e.operationId,e.href,e.httpVerb,e.servers]),{config:L,refresh:N}=H7e(R,y),_=D.useCallback(()=>N(),[N]),$=D.useCallback(le=>{if(!le)return;const V=u.find(ie=>ie.operationId===le);return Fr(c,V?.href)},[u,c]),z=D.useMemo(()=>Y7e(g,L,i,S),[g,L,i,S]),F=D.useMemo(()=>({corsProxyUrl:t,selectedEnvironment:T,apiId:d?.definition.info?.["x-metadata"]?.apiId,oAuth2RedirectURI:s,disableCollectionsTab:!0,storageKey:c,telemetry:{tracerName:"try-it",collectorUrl:txe()},HTTPSnippet:oo,convertOperationToReplayValue:z,dynamicReplayValues:L,getOperationUrl:$,onRequestReset:_}),[t,T,d?.definition.info,s,c,z,L,$,_]);tx(a),kd(y);const U=D.useCallback(({operations:le,environment:V,environments:ie})=>{const re=le.reduce((se,Z)=>{Z.requestValues.body=Z.requestValues.body instanceof URLSearchParams?Object.fromEntries(Z.requestValues.body.entries()):Z.requestValues.body;const{path:q,method:ae}=Z.apiPath,Y=Wt.compile(["paths",q,ae]);return se[Y]=bp(m1(Y),Z),se},{});w({...S,...re}),A({environment:V,environments:ie})},[S,w,A]),G=()=>{if(x!==Gl.LOADING){if(!y&&(o.sendTryItOpenedMessage([{id:"tryItButton",object:"button",uri:"urn:redocly:redoc:ui:button:tryItButton"}]),f?.tryItOpen&&e)){const le=O7e({operation:e});f.tryItOpen(le)}v(!y)}x===Gl.NOT_LOADED&&C(Gl.LOADING)},ee=D.useCallback(le=>{if(f?.tryItSent&&e){const V=L7e({operation:e,isSuccess:le});f.tryItSent(V)}},[f,e]);return r?m.jsxs(m.Fragment,{children:[m.jsx(bt,{onClick:G,variant:"primary",iconPosition:"left",icon:x===Gl.LOADING?m.jsx(yx,{}):m.jsx(KB,{}),children:x===Gl.LOADING?n("openapi.loading","Loading..."):n("openapi.tryIt","Try it")}),y&&m.jsx(D.Suspense,{children:m.jsx(ap,{mountId:"api-content",children:m.jsx("div",{ref:a,children:m.jsx(t_e,{ReplayGate:YB,ReplayTopBarActions:JB,activeOperationId:e.operationId||e.pointer,api:r,onRequestChange:U,onClose:G,onLoad:()=>C(Gl.LOADED),settings:F,onRequestSent:ee})})})})]}):null}const XB=D.memo(r_e);function n_e({operation:e,disableFooter:t,onPanelToggle:r,...n}){const o=Ga(),[{activeLanguage:a,languages:i},s]=un(y1),{samples:c}=B7e(e),{parser:u,options:{events:d,corsProxyUrl:f,hideReplay:g}}=et(Zr),y=!t&&!e.isWebhook&&!g&&!e.hideReplay,v=!!i?.length,x=lz(c,a),C=_=>{s(_),o.sendSelectLanguageClickedMessage([{id:"selectLanguageButton",object:"button",uri:"urn:redocly:redoc:ui:button:selectLanguageButton",language:_}]);const $=i?.find(z=>z.key===_);if(d?.codeSamplesLanguageSwitch&&$){const z=S7e({operation:e,sample:{lang:$.lang,label:$.title}});d.codeSamplesLanguageSwitch(z)}},S=et(Wa),{activeExampleName:w}=et(ao(e.pointer)),T=D.useCallback(({lang:_,title:$})=>()=>{const z=HB({operation:e,label:$,lang:_,type:"request",activeMimeName:S,activeExampleName:w});o.sendCopyCodeSnippetClickedMessage([{id:"copyCodeSnippetButton",object:"button",uri:"urn:redocly:redoc:ui:button:copyCodeSnippetButton",snippetType:"request",language:_}]),d?.codeSamplesCopy?.(z)},[e,o,d,S,w]),A=D.useCallback(_=>{r?.(_,"request-samples")},[r]),R=()=>m.jsxs(a_e,{isExpandable:!1,$withReplay:!v&&y,children:[m.jsx(i_e,{operation:e}),v&&m.jsx(mB,{activeTab:x,samples:c,onChange:C}),!v&&y&&m.jsx(XB,{operation:e,corsProxyUrl:f,fullOpenApi:u.definition})]}),L=D.useMemo(()=>{if(y&&v)return m.jsx(s_e,{children:m.jsx(XB,{operation:e,corsProxyUrl:f,fullOpenApi:u.definition})})},[y,v,e,f,u.definition]),N=D.useMemo(()=>c.map(_=>_.key===x?m.jsx("div",{children:sCe(_)?m.jsx(qS,{content:_.requestBodyContent,onCopyClick:T(_),onPanelToggle:A,...n}):m.jsx(U7e,{lang:_.lang,source:_.source,externalSample:_,operation:e,onCopyClick:T(_),...n})},_.key+e.id):null),[x,T,A,e,n,c]);return i&&!c.length?m.jsx(js,{className:"panel-request-samples",header:R,isExpandable:!1,expanded:!1}):c.length?m.jsx(js,{className:"panel-request-samples",header:R,footer:L,isExpandable:!1,children:N}):null}const o_e=D.memo(n_e),a_e=ne(Tp)`
11682
11682
  flex-wrap: nowrap;
11683
11683
  ${({$withReplay:e})=>e&&"padding: var(--spacing-xs) var(--spacing-sm);"}
11684
11684
  `,i_e=ne(WB)`
@@ -12109,4 +12109,4 @@ ${i.commentBefore}`:a}e.comment=r.after.join(`
12109
12109
  `)||null}}function Kze({tagPrefixes:e},t){const[r,n]=t.parameters;if(!r||!n){const o="Insufficient parameters given for %TAG directive";throw new St(t,o)}if(e.some(o=>o.handle===r)){const o="The %TAG directive must only be given at most once per handle in the same document.";throw new St(t,o)}return{handle:r,prefix:n}}function Zze(e,t){let[r]=t.parameters;if(t.name==="YAML:1.0"&&(r="1.0"),!r){const n="Insufficient parameters given for %YAML directive";throw new St(t,n)}if(!aW[r]){const n=`Document will be parsed as YAML ${e.version||e.options.version} rather than YAML ${r}`;e.warnings.push(new au(t,n))}return r}function Qze(e,t,r){const n=[];let o=!1;for(const a of t){const{comment:i,name:s}=a;switch(s){case"TAG":try{e.tagPrefixes.push(Kze(e,a))}catch(c){e.errors.push(c)}o=!0;break;case"YAML":case"YAML:1.0":if(e.version){const c="The %YAML directive must only be given at most once per document.";e.errors.push(new St(a,c))}try{e.version=Zze(e,a)}catch(c){e.errors.push(c)}o=!0;break;default:if(s){const c=`YAML only supports %TAG and %YAML directives, and not %${s}`;e.warnings.push(new au(a,c))}}i&&n.push(i)}if(r&&!o&&(e.version||r.version||e.options.version)==="1.1"){const a=({handle:i,prefix:s})=>({handle:i,prefix:s});e.tagPrefixes=r.tagPrefixes.map(a),e.version=r.version}e.commentBefore=n.join(`
12110
12110
  `)||null}function lu(e){if(e instanceof Er)return!0;throw new Error("Expected a YAML collection as document contents")}class gu{constructor(t){this.anchors=new Fk(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(t){return lu(this.contents),this.contents.add(t)}addIn(t,r){lu(this.contents),this.contents.addIn(t,r)}delete(t){return lu(this.contents),this.contents.delete(t)}deleteIn(t){return rf(t)?this.contents==null?!1:(this.contents=null,!0):(lu(this.contents),this.contents.deleteIn(t))}getDefaults(){return gu.defaults[this.version]||gu.defaults[this.options.version]||{}}get(t,r){return this.contents instanceof Er?this.contents.get(t,r):void 0}getIn(t,r){return rf(t)?!r&&this.contents instanceof tr?this.contents.value:this.contents:this.contents instanceof Er?this.contents.getIn(t,r):void 0}has(t){return this.contents instanceof Er?this.contents.has(t):!1}hasIn(t){return rf(t)?this.contents!==void 0:this.contents instanceof Er?this.contents.hasIn(t):!1}set(t,r){lu(this.contents),this.contents.set(t,r)}setIn(t,r){rf(t)?this.contents=r:(lu(this.contents),this.contents.setIn(t,r))}setSchema(t,r){if(!t&&!r&&this.schema)return;typeof t=="number"&&(t=t.toFixed(1)),t==="1.0"||t==="1.1"||t==="1.2"?(this.version?this.version=t:this.options.version=t,delete this.options.schema):t&&typeof t=="string"&&(this.options.schema=t),Array.isArray(r)&&(this.options.customTags=r);const n=Object.assign({},this.getDefaults(),this.options);this.schema=new bc(n)}parse(t,r){this.options.keepCstNodes&&(this.cstNode=t),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:n=[],contents:o=[],directivesEndMarker:a,error:i,valueRange:s}=t;if(i&&(i.source||(i.source=this),this.errors.push(i)),Qze(this,n,r),a&&(this.directivesEndMarker=!0),this.range=s?[s.start,s.end]:null,this.setSchema(),this.anchors._cstAliases=[],Jze(this,o),this.anchors.resolveNodes(),this.options.prettyErrors){for(const c of this.errors)c instanceof hc&&c.makePretty();for(const c of this.warnings)c instanceof hc&&c.makePretty()}return this}listNonDefaultTags(){return Yze(this.contents).filter(t=>t.indexOf(bc.defaultPrefix)!==0)}setTagPrefix(t,r){if(t[0]!=="!"||t[t.length-1]!=="!")throw new Error("Handle must start and end with !");if(r){const n=this.tagPrefixes.find(o=>o.handle===t);n?n.prefix=r:this.tagPrefixes.push({handle:t,prefix:r})}else this.tagPrefixes=this.tagPrefixes.filter(n=>n.handle!==t)}toJSON(t,r){const{keepBlobsInJSON:n,mapAsMap:o,maxAliasCount:a}=this.options,i=n&&(typeof t!="string"||!(this.contents instanceof tr)),s={doc:this,indentStep:" ",keep:i,mapAsMap:i&&!!o,maxAliasCount:a,stringify:ay},c=Object.keys(this.anchors.map);c.length>0&&(s.anchors=new Map(c.map(d=>[this.anchors.map[d],{alias:[],aliasCount:0,count:1}])));const u=Ea(this.contents,t,s);if(typeof r=="function"&&s.anchors)for(const{count:d,res:f}of s.anchors.values())r(f,d);return u}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const t=this.options.indent;if(!Number.isInteger(t)||t<=0){const c=JSON.stringify(t);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();const r=[];let n=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),r.push(c),n=!0}const o=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:u})=>{o.some(d=>d.indexOf(u)===0)&&(r.push(`%TAG ${c} ${u}`),n=!0)}),(n||this.directivesEndMarker)&&r.push("---"),this.commentBefore&&((n||!this.directivesEndMarker)&&r.unshift(""),r.unshift(this.commentBefore.replace(/^/gm,"#")));const a={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(t),stringify:ay};let i=!1,s=null;if(this.contents){this.contents instanceof uo&&(this.contents.spaceBefore&&(n||this.directivesEndMarker)&&r.push(""),this.contents.commentBefore&&r.push(this.contents.commentBefore.replace(/^/gm,"#")),a.forceBlockIndent=!!this.comment,s=this.contents.comment);const c=s?null:()=>i=!0,u=ay(this.contents,a,()=>s=null,c);r.push(iu(u,"",s))}else this.contents!==void 0&&r.push(ay(this.contents,a));return this.comment&&((!i||s)&&r[r.length-1]!==""&&r.push(""),r.push(this.comment.replace(/^/gm,"#"))),r.join(`
12111
12111
  `)+`
12112
- `}}_n(gu,"defaults",aW);function Xze(e,t=!0,r){r===void 0&&typeof t=="string"&&(r=t,t=!0);const n=Object.assign({},gu.defaults[oy.version],oy);return new bc(n).createNode(e,t,r)}class sy extends gu{constructor(t){super(Object.assign({},oy,t))}}function eUe(e,t){const r=[];let n;for(const o of Z3(e)){const a=new sy(t);a.parse(o,n),r.push(a),n=a}return r}function sW(e,t){const r=Z3(e),n=new sy(t).parse(r[0]);if(r.length>1){const o="Source contains multiple documents; please use YAML.parseAllDocuments()";n.errors.unshift(new St(r[1],o))}return n}function tUe(e,t){const r=sW(e,t);if(r.warnings.forEach(n=>HH(n)),r.errors.length>0)throw r.errors[0];return r.toJSON()}function rUe(e,t){const r=new sy(t);return r.contents=e,String(r)}const nUe={createNode:Xze,defaultOptions:oy,Document:sy,parse:tUe,parseAllDocuments:eUe,parseCST:Z3,parseDocument:sW,scalarOptions:Hze,stringify:rUe},oUe=Object.freeze(Object.defineProperty({__proto__:null,YAML:nUe},Symbol.toStringTag,{value:"Module"})),aUe=sa(oUe);var lW,cW;function iUe(){return cW||(cW=1,lW=aUe.YAML),lW}var ik,pW;function sUe(){if(pW)return ik;pW=1;const e=G3().recurse,t=Wb().shallowClone,r=Hb().jptr,n=V3().isRef;var o=function(i){return i&&i.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function a(i,s,c){c||(c={}),c.cache||(c.cache={}),c.state||(c.state={}),c.state.identityDetection=!0,c.depth=c.depth?c.depth+1:1;let u=c.depth>1?i:t(i),d={data:u},f=c.depth>1?s:t(s);c.master||(c.master=u);let g=o(c),y=1;for(;y>0;)y=0,e(d,c.state,function(v,x,C){if(n(v,x)){let S=v[x];if(y++,c.cache[S]){let w=c.cache[S];if(w.resolved)g.warn("Patching %s for %s",S,w.path),C.parent[C.pkey]=w.data,c.$ref&&typeof C.parent[C.pkey]=="object"&&C.parent[C.pkey]!==null&&(C.parent[C.pkey][c.$ref]=S);else{if(S===w.path)throw new Error(`Tight circle at ${w.path}`);g.warn("Unresolved ref"),C.parent[C.pkey]=r(w.source,w.path),C.parent[C.pkey]===!1&&(C.parent[C.pkey]=r(w.source,w.key)),c.$ref&&typeof C.parent[C.pkey]=="object"&&C.parent[C.pkey]!==null&&(C.parent[c.$ref]=S)}}else{let w={};w.path=C.path.split("/$ref")[0],w.key=S,g.warn("Dereffing %s at %s",S,w.path),w.source=f,w.data=r(w.source,w.key),w.data===!1&&(w.data=r(c.master,w.key),w.source=c.master),w.data===!1&&g.warn("Missing $ref target",w.key),c.cache[S]=w,w.data=C.parent[C.pkey]=a(r(w.source,w.key),w.source,c),c.$ref&&typeof C.parent[C.pkey]=="object"&&C.parent[C.pkey]!==null&&(C.parent[C.pkey][c.$ref]=S),w.resolved=!0}}});return d.data}return ik={dereference:a},ik}var sk,uW;function lUe(){if(uW)return sk;uW=1,sk=a,a.default=a,a.stable=u,a.stableStringify=u;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(g,y,v,x){typeof x>"u"&&(x=o()),s(g,"",0,[],void 0,0,x);var C;try{n.length===0?C=JSON.stringify(g,y,v):C=JSON.stringify(g,f(y),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var S=r.pop();S.length===4?Object.defineProperty(S[0],S[1],S[3]):S[0][S[1]]=S[2]}}return C}function i(g,y,v,x){var C=Object.getOwnPropertyDescriptor(x,v);C.get!==void 0?C.configurable?(Object.defineProperty(x,v,{value:g}),r.push([x,v,y,C])):n.push([y,v,g]):(x[v]=g,r.push([x,v,y]))}function s(g,y,v,x,C,S,w){S+=1;var T;if(typeof g=="object"&&g!==null){for(T=0;T<x.length;T++)if(x[T]===g){i(t,g,y,C);return}if(typeof w.depthLimit<"u"&&S>w.depthLimit){i(e,g,y,C);return}if(typeof w.edgesLimit<"u"&&v+1>w.edgesLimit){i(e,g,y,C);return}if(x.push(g),Array.isArray(g))for(T=0;T<g.length;T++)s(g[T],T,T,x,g,S,w);else{var A=Object.keys(g);for(T=0;T<A.length;T++){var R=A[T];s(g[R],R,T,x,g,S,w)}}x.pop()}}function c(g,y){return g<y?-1:g>y?1:0}function u(g,y,v,x){typeof x>"u"&&(x=o());var C=d(g,"",0,[],void 0,0,x)||g,S;try{n.length===0?S=JSON.stringify(C,y,v):S=JSON.stringify(C,f(y),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 S}function d(g,y,v,x,C,S,w){S+=1;var T;if(typeof g=="object"&&g!==null){for(T=0;T<x.length;T++)if(x[T]===g){i(t,g,y,C);return}try{if(typeof g.toJSON=="function")return}catch{return}if(typeof w.depthLimit<"u"&&S>w.depthLimit){i(e,g,y,C);return}if(typeof w.edgesLimit<"u"&&v+1>w.edgesLimit){i(e,g,y,C);return}if(x.push(g),Array.isArray(g))for(T=0;T<g.length;T++)d(g[T],T,T,x,g,S,w);else{var A={},R=Object.keys(g).sort(c);for(T=0;T<R.length;T++){var L=R[T];d(g[L],L,T,x,g,S,w),A[L]=g[L]}if(typeof C<"u")r.push([C,y,g]),C[y]=A;else return A}x.pop()}}function f(g){return g=typeof g<"u"?g:function(y,v){return v},function(y,v){if(n.length>0)for(var x=0;x<n.length;x++){var C=n[x];if(C[1]===y&&C[0]===v){v=C[2],n.splice(x,1);break}}return g.call(this,y,v)}}return sk}var lk,dW;function hW(){if(dW)return lk;dW=1;var e={};const t=lUe(),r=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function n(C,S,w){return w.indexOf(C)===S}function o(C){return new Set(C).size!==C.length}function a(C){return new Set(C).size<=1}function i(C,S){function w(T,A){return t.stringify(T)===t.stringify(Object.assign({},T,A))}return w(C,S)&&w(S,C)}function s(C){let S=[];for(let w of C)S.find(function(T,A,R){return i(T,w)})||S.push(w);return S}function c(C){return C.length===s(C).length}function u(C){return C.find(function(S,w,T){return C.indexOf(S)<w})}function d(C){let S=0,w;if(C.length===0)return S;for(let T=0;T<C.length;T++)w=C.charCodeAt(T),S=(S<<5)-S+w,S|=0;return S}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(C,S){return S.toUpperCase()})};const f=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],g=["items","minItems","maxItems","uniqueItems"],y=["get","post","put","delete","patch","head","options","trace"];function v(C){C=C.replace("[]","Array");let S=C.split("/");return S[0]=S[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),S.join("/")}function x(C){return v(C.split("/").join("_"))}return lk={colour:r,uniqueOnly:n,hasDuplicates:o,allSame:a,distinctArray:c,firstDupe:u,hash:d,parameterTypeProperties:f,arrayProperties:g,httpMethods:y,sanitise:v,sanitiseAll:x},lk}var ck,fW;function cUe(){if(fW)return ck;fW=1;const e=db,t=ZN(),r=p3(),n=db,o=iUe(),a=Hb().jptr,i=G3().recurse,s=Wb().clone,c=sUe().dereference,u=V3().isRef,d=hW();function f(_){return[...new Set(_)]}function g(_,$,z,F,U){return new Promise(function(G,ee){e.readFile(_,$,function(le,V){le?z.ignoreIOErrors&&U?(z.verbose&&console.warn("FAILED",F),z.externalRefs[F].failed=!0,G(U)):ee(le):G(V)})})}function y(_,$,z,F,U,G){let ee=G.externalRefs[z+F].paths[0],le=r.parse(U),V={},ie=1;for(;ie;)ie=0,i(_,{identityDetection:!0},function(re,se,Z){if(u(re,se)){if(re[se].startsWith("#")){if(!V[re[se]]&&!re.$fixed){let q=s(a($,re[se]));if(G.verbose>1&&console.warn((q===!1?d.colour.red:d.colour.green)+"Fragment resolution",re[se],d.colour.normal),q===!1){if(Z.parent[Z.pkey]={},G.fatal){let ae=new Error("Fragment $ref resolution failed "+re[se]);if(G.promise)G.promise.reject(ae);else throw ae}}else ie++,Z.parent[Z.pkey]=q,V[re[se]]=Z.path.replace("/%24ref","")}else if(!re.$fixed){let q=(ee+"/"+V[re[se]]).split("/#/").join("/");Z.parent[Z.pkey]={$ref:q,"x-miro":re[se],$fixed:!0},G.verbose>1&&console.warn("Replacing with",q),ie++}}else if(le.protocol){let q=r.resolve(U,re[se]).toString();G.verbose>1&&console.warn(d.colour.yellow+"Rewriting external url ref",re[se],"as",q,d.colour.normal),re["x-miro"]=re[se],G.externalRefs[re[se]]&&(G.externalRefs[q]||(G.externalRefs[q]=G.externalRefs[re[se]]),G.externalRefs[q].failed=G.externalRefs[re[se]].failed),re[se]=q}else if(!re["x-miro"]){let q=r.resolve(U,re[se]).toString(),ae=!1;G.externalRefs[re[se]]&&(ae=G.externalRefs[re[se]].failed),ae||(G.verbose>1&&console.warn(d.colour.yellow+"Rewriting external ref",re[se],"as",q,d.colour.normal),re["x-miro"]=re[se],re[se]=q)}}});return i(_,{},function(re,se,Z){u(re,se)&&typeof re.$fixed<"u"&&delete re.$fixed}),G.verbose>1&&console.warn("Finished fragment resolution"),_}function v(_,$){if(!$.filters||!$.filters.length)return _;for(let z of $.filters)_=z(_,$);return _}function x(_,$){return _&&_.length>2?_:$&&$.length>2?$:"file:"}function C(_,$,z,F){var U=r.parse(z.source),G=z.source.split("\\").join("/").split("/");G.pop()||G.pop();let ee="",le=$.split("#");le.length>1&&(ee="#"+le[1],$=le[0]),G=G.join("/");let V=r.parse($),ie=x(V.protocol,U.protocol),re;if(ie==="file:"?re=t.resolve(G?G+"/":"",$):re=r.resolve(G?G+"/":"",$),z.cache[re]){z.verbose&&console.warn("CACHED",re,ee);let se=s(z.cache[re]),Z=z.externalRef=se;if(ee&&(Z=a(Z,ee),Z===!1&&(Z={},z.fatal))){let q=new Error("Cached $ref resolution failed "+re+ee);if(z.promise)z.promise.reject(q);else throw q}return Z=y(Z,se,$,ee,re,z),Z=v(Z,z),F(s(Z),re,z),Promise.resolve(Z)}if(z.verbose&&console.warn("GET",re,ee),z.handlers&&z.handlers[ie])return z.handlers[ie](G,$,ee,z).then(function(se){return z.externalRef=se,se=v(se,z),z.cache[re]=se,F(se,re,z),se}).catch(function(se){throw z.verbose&&console.warn(se),se});if(ie&&ie.startsWith("http")){const se=Object.assign({},z.fetchOptions,{agent:z.agent});return z.fetch(re,se).then(function(Z){if(Z.status!==200){if(z.ignoreIOErrors)return z.verbose&&console.warn("FAILED",$),z.externalRefs[$].failed=!0,'{"$ref":"'+$+'"}';throw new Error(`Received status code ${Z.status}: ${re}`)}return Z.text()}).then(function(Z){try{let q=o.parse(Z,{schema:"core",prettyErrors:!0});if(Z=z.externalRef=q,z.cache[re]=s(Z),ee&&(Z=a(Z,ee),Z===!1&&(Z={},z.fatal))){let ae=new Error("Remote $ref resolution failed "+re+ee);if(z.promise)z.promise.reject(ae);else throw ae}Z=y(Z,q,$,ee,re,z),Z=v(Z,z)}catch(q){if(z.verbose&&console.warn(q),z.promise&&z.fatal)z.promise.reject(q);else throw q}return F(Z,re,z),Z}).catch(function(Z){if(z.verbose&&console.warn(Z),z.cache[re]={},z.promise&&z.fatal)z.promise.reject(Z);else throw Z})}else{const se='{"$ref":"'+$+'"}';return g(re,z.encoding||"utf8",z,$,se).then(function(Z){try{let q=o.parse(Z,{schema:"core",prettyErrors:!0});if(Z=z.externalRef=q,z.cache[re]=s(Z),ee&&(Z=a(Z,ee),Z===!1&&(Z={},z.fatal))){let ae=new Error("File $ref resolution failed "+re+ee);if(z.promise)z.promise.reject(ae);else throw ae}Z=y(Z,q,$,ee,re,z),Z=v(Z,z)}catch(q){if(z.verbose&&console.warn(q),z.promise&&z.fatal)z.promise.reject(q);else throw q}return F(Z,re,z),Z}).catch(function(Z){if(z.verbose&&console.warn(Z),z.promise&&z.fatal)z.promise.reject(Z);else throw Z})}}function S(_){return new Promise(function($,z){function F(G,ee,le){if(G[ee]&&u(G[ee],"$ref")){let V=G[ee].$ref;if(!V.startsWith("#")){let ie="";if(!U[V]){let re=Object.keys(U).find(function(se,Z,q){return V.startsWith(se+"/")});re&&(_.verbose&&console.warn("Found potential subschema at",re),ie="/"+(V.split("#")[1]||"").replace(re.split("#")[1]||""),ie=ie.split("/undefined").join(""),V=re)}if(U[V]||(U[V]={resolved:!1,paths:[],extras:{},description:G[ee].description}),U[V].resolved){if(!U[V].failed)if(_.rewriteRefs){let re=U[V].resolvedAt;_.verbose>1&&console.warn("Rewriting ref",V,re),G[ee]["x-miro"]=V,G[ee].$ref=re+ie}else G[ee]=s(U[V].data)}else U[V].paths.push(le.path),U[V].extras[le.path]=ie}}}let U=_.externalRefs;if(_.resolver.depth>0&&_.source===_.resolver.base)return $(U);i(_.openapi.definitions,{identityDetection:!0,path:"#/definitions"},F),i(_.openapi.components,{identityDetection:!0,path:"#/components"},F),i(_.openapi,{identityDetection:!0},F),$(U)})}function w(_){return new Promise(function($,z){S(_).then(function(U){for(let G in U)if(!U[G].resolved){let ee=_.resolver.depth;ee>0&&ee++,_.resolver.actions[ee].push(function(){return C(_.openapi,G,_,function(le,V,ie){if(!U[G].resolved){let Z={};Z.context=U[G],Z.$ref=G,Z.original=s(le),Z.updated=le,Z.source=V,ie.externals.push(Z),U[G].resolved=!0}let re=Object.assign({},ie,{source:"",resolver:{actions:ie.resolver.actions,depth:ie.resolver.actions.length-1,base:ie.resolver.base}});ie.patch&&U[G].description&&!le.description&&typeof le=="object"&&(le.description=U[G].description),U[G].data=le;let se=f(U[G].paths);se=se.sort(function(Z,q){const ae=Z.startsWith("#/components/")||Z.startsWith("#/definitions/"),Y=q.startsWith("#/components/")||q.startsWith("#/definitions/");return ae&&!Y?-1:Y&&!ae?1:0});for(let Z of se)if(U[G].resolvedAt&&Z!==U[G].resolvedAt&&Z.indexOf("x-ms-examples/")<0)ie.verbose>1&&console.warn("Creating pointer to data at",Z),a(ie.openapi,Z,{$ref:U[G].resolvedAt+U[G].extras[Z],"x-miro":G+U[G].extras[Z]});else{U[G].resolvedAt?ie.verbose>1&&console.warn("Avoiding circular reference"):(U[G].resolvedAt=Z,ie.verbose>1&&console.warn("Creating initial clone of data at",Z));let q=s(le);a(ie.openapi,Z,q)}ie.resolver.actions[re.resolver.depth].length===0&&ie.resolver.actions[re.resolver.depth].push(function(){return w(re)})})})}}).catch(function(U){_.verbose&&console.warn(U),z(U)});let F={options:_};F.actions=_.resolver.actions[_.resolver.depth],$(F)})}const T=_=>_.reduce(($,z)=>$.then(F=>z().then(Array.prototype.concat.bind(F))),Promise.resolve([]));function A(_,$,z){_.resolver.actions.push([]),w(_).then(function(F){T(F.actions).then(function(){if(_.resolver.depth>=_.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),$(!0);_.resolver.depth++,_.resolver.actions[_.resolver.depth].length?setTimeout(function(){A(F.options,$,z)},0):(_.verbose>1&&console.warn(d.colour.yellow+"Finished external resolution!",d.colour.normal),_.resolveInternal&&(_.verbose>1&&console.warn(d.colour.yellow+"Starting internal resolution!",d.colour.normal),_.openapi=c(_.openapi,_.original,{verbose:_.verbose-1}),_.verbose>1&&console.warn(d.colour.yellow+"Finished internal resolution!",d.colour.normal)),i(_.openapi,{},function(U,G,ee){u(U,G)&&(_.preserveMiro||delete U["x-miro"])}),$(_))}).catch(function(U){_.verbose&&console.warn(U),z(U)})}).catch(function(F){_.verbose&&console.warn(F),z(F)})}function R(_){if(_.cache||(_.cache={}),_.fetch||(_.fetch=n),_.source){let $=r.parse(_.source);(!$.protocol||$.protocol.length<=2)&&(_.source=t.resolve(_.source))}_.externals=[],_.externalRefs={},_.rewriteRefs=!0,_.resolver={},_.resolver.depth=0,_.resolver.base=_.source,_.resolver.actions=[[]]}function L(_){return R(_),new Promise(function($,z){_.resolve?A(_,$,z):$(_)})}function N(_,$,z){return z||(z={}),z.openapi=_,z.source=$,z.resolve=!0,R(z),new Promise(function(F,U){A(z,F,U)})}return ck={optionalResolve:L,resolve:N},ck}var pk,mW;function pUe(){if(mW)return pk;mW=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(r,n,o,a){if(typeof o.depth>"u"&&(o=e()),r===null||typeof r>"u")return r;if(typeof r.$ref<"u"){let i={$ref:r.$ref};return o.allowRefSiblings&&r.description&&(i.description=r.description),a(i,n,o),i}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)),a(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,a)),r.additionalItems&&typeof r.additionalItems=="object"&&(o.property="additionalItems",t(r.additionalItems,r,o,a)),r.additionalProperties&&typeof r.additionalProperties=="object"&&(o.property="additionalProperties",t(r.additionalProperties,r,o,a)),r.properties)for(let i in r.properties){let s=r.properties[i];o.property="properties/"+i,t(s,r,o,a)}if(r.patternProperties)for(let i in r.patternProperties){let s=r.patternProperties[i];o.property="patternProperties/"+i,t(s,r,o,a)}if(r.allOf)for(let i in r.allOf){let s=r.allOf[i];o.property="allOf/"+i,t(s,r,o,a)}if(r.anyOf)for(let i in r.anyOf){let s=r.anyOf[i];o.property="anyOf/"+i,t(s,r,o,a)}if(r.oneOf)for(let i in r.oneOf){let s=r.oneOf[i];o.property="oneOf/"+i,t(s,r,o,a)}return r.not&&(o.property="not",t(r.not,r,o,a)),o.depth--,r}return pk={getDefaultState:e,walkSchema:t},pk}var gW={},uk={exports:{}},bW={},yW;function vW(){return yW||(yW=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(a){var i=r();if(!i)return!1;try{return i.responseType=a,i.responseType===a}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(a){return typeof a=="function"}t=null})(bW)),bW}var ly={},dk={exports:{}},cy={exports:{}},xW;function uUe(){if(xW)return cy.exports;xW=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(A,R,L){return Function.prototype.apply.call(A,R,L)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))}:r=function(A){return Object.getOwnPropertyNames(A)};function n(A){console&&console.warn&&console.warn(A)}var o=Number.isNaN||function(A){return A!==A};function a(){a.init.call(this)}cy.exports=a,cy.exports.once=S,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var i=10;function s(A){if(typeof A!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(A){if(typeof A!="number"||A<0||o(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");i=A}}),a.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},a.prototype.setMaxListeners=function(A){if(typeof A!="number"||A<0||o(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this};function c(A){return A._maxListeners===void 0?a.defaultMaxListeners:A._maxListeners}a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(A){for(var R=[],L=1;L<arguments.length;L++)R.push(arguments[L]);var N=A==="error",_=this._events;if(_!==void 0)N=N&&_.error===void 0;else if(!N)return!1;if(N){var $;if(R.length>0&&($=R[0]),$ instanceof Error)throw $;var z=new Error("Unhandled error."+($?" ("+$.message+")":""));throw z.context=$,z}var F=_[A];if(F===void 0)return!1;if(typeof F=="function")t(F,this,R);else for(var U=F.length,G=v(F,U),L=0;L<U;++L)t(G[L],this,R);return!0};function u(A,R,L,N){var _,$,z;if(s(L),$=A._events,$===void 0?($=A._events=Object.create(null),A._eventsCount=0):($.newListener!==void 0&&(A.emit("newListener",R,L.listener?L.listener:L),$=A._events),z=$[R]),z===void 0)z=$[R]=L,++A._eventsCount;else if(typeof z=="function"?z=$[R]=N?[L,z]:[z,L]:N?z.unshift(L):z.push(L),_=c(A),_>0&&z.length>_&&!z.warned){z.warned=!0;var F=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(R)+" listeners added. Use emitter.setMaxListeners() to increase limit");F.name="MaxListenersExceededWarning",F.emitter=A,F.type=R,F.count=z.length,n(F)}return A}a.prototype.addListener=function(A,R){return u(this,A,R,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(A,R){return u(this,A,R,!0)};function d(){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 f(A,R,L){var N={fired:!1,wrapFn:void 0,target:A,type:R,listener:L},_=d.bind(N);return _.listener=L,N.wrapFn=_,_}a.prototype.once=function(A,R){return s(R),this.on(A,f(this,A,R)),this},a.prototype.prependOnceListener=function(A,R){return s(R),this.prependListener(A,f(this,A,R)),this},a.prototype.removeListener=function(A,R){var L,N,_,$,z;if(s(R),N=this._events,N===void 0)return this;if(L=N[A],L===void 0)return this;if(L===R||L.listener===R)--this._eventsCount===0?this._events=Object.create(null):(delete N[A],N.removeListener&&this.emit("removeListener",A,L.listener||R));else if(typeof L!="function"){for(_=-1,$=L.length-1;$>=0;$--)if(L[$]===R||L[$].listener===R){z=L[$].listener,_=$;break}if(_<0)return this;_===0?L.shift():x(L,_),L.length===1&&(N[A]=L[0]),N.removeListener!==void 0&&this.emit("removeListener",A,z||R)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(A){var R,L,N;if(L=this._events,L===void 0)return this;if(L.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):L[A]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete L[A]),this;if(arguments.length===0){var _=Object.keys(L),$;for(N=0;N<_.length;++N)$=_[N],$!=="removeListener"&&this.removeAllListeners($);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(R=L[A],typeof R=="function")this.removeListener(A,R);else if(R!==void 0)for(N=R.length-1;N>=0;N--)this.removeListener(A,R[N]);return this};function g(A,R,L){var N=A._events;if(N===void 0)return[];var _=N[R];return _===void 0?[]:typeof _=="function"?L?[_.listener||_]:[_]:L?C(_):v(_,_.length)}a.prototype.listeners=function(A){return g(this,A,!0)},a.prototype.rawListeners=function(A){return g(this,A,!1)},a.listenerCount=function(A,R){return typeof A.listenerCount=="function"?A.listenerCount(R):y.call(A,R)},a.prototype.listenerCount=y;function y(A){var R=this._events;if(R!==void 0){var L=R[A];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function v(A,R){for(var L=new Array(R),N=0;N<R;++N)L[N]=A[N];return L}function x(A,R){for(;R+1<A.length;R++)A[R]=A[R+1];A.pop()}function C(A){for(var R=new Array(A.length),L=0;L<R.length;++L)R[L]=A[L].listener||A[L];return R}function S(A,R){return new Promise(function(L,N){function _(z){A.removeListener(R,$),N(z)}function $(){typeof A.removeListener=="function"&&A.removeListener("error",_),L([].slice.call(arguments))}T(A,R,$,{once:!0}),R!=="error"&&w(A,_,{once:!0})})}function w(A,R,L){typeof A.on=="function"&&T(A,"error",R,L)}function T(A,R,L,N){if(typeof A.on=="function")N.once?A.once(R,L):A.on(R,L);else if(typeof A.addEventListener=="function")A.addEventListener(R,function _($){N.once&&A.removeEventListener(R,_),L($)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A)}return cy.exports}var wW,SW;function CW(){return SW||(SW=1,wW=uUe().EventEmitter),wW}var kW={},lf={},EW;function dUe(){if(EW)return lf;EW=1,lf.byteLength=s,lf.toByteArray=u,lf.fromByteArray=g;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;t[45]=62,t[95]=63;function i(y){var v=y.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=y.indexOf("=");x===-1&&(x=v);var C=x===v?0:4-x%4;return[x,C]}function s(y){var v=i(y),x=v[0],C=v[1];return(x+C)*3/4-C}function c(y,v,x){return(v+x)*3/4-x}function u(y){var v,x=i(y),C=x[0],S=x[1],w=new r(c(y,C,S)),T=0,A=S>0?C-4:C,R;for(R=0;R<A;R+=4)v=t[y.charCodeAt(R)]<<18|t[y.charCodeAt(R+1)]<<12|t[y.charCodeAt(R+2)]<<6|t[y.charCodeAt(R+3)],w[T++]=v>>16&255,w[T++]=v>>8&255,w[T++]=v&255;return S===2&&(v=t[y.charCodeAt(R)]<<2|t[y.charCodeAt(R+1)]>>4,w[T++]=v&255),S===1&&(v=t[y.charCodeAt(R)]<<10|t[y.charCodeAt(R+1)]<<4|t[y.charCodeAt(R+2)]>>2,w[T++]=v>>8&255,w[T++]=v&255),w}function d(y){return e[y>>18&63]+e[y>>12&63]+e[y>>6&63]+e[y&63]}function f(y,v,x){for(var C,S=[],w=v;w<x;w+=3)C=(y[w]<<16&16711680)+(y[w+1]<<8&65280)+(y[w+2]&255),S.push(d(C));return S.join("")}function g(y){for(var v,x=y.length,C=x%3,S=[],w=16383,T=0,A=x-C;T<A;T+=w)S.push(f(y,T,T+w>A?A:T+w));return C===1?(v=y[x-1],S.push(e[v>>2]+e[v<<4&63]+"==")):C===2&&(v=(y[x-2]<<8)+y[x-1],S.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),S.join("")}return lf}var hk={},AW;function hUe(){return AW||(AW=1,hk.read=function(e,t,r,n,o){var a,i,s=o*8-n-1,c=(1<<s)-1,u=c>>1,d=-7,f=r?o-1:0,g=r?-1:1,y=e[t+f];for(f+=g,a=y&(1<<-d)-1,y>>=-d,d+=s;d>0;a=a*256+e[t+f],f+=g,d-=8);for(i=a&(1<<-d)-1,a>>=-d,d+=n;d>0;i=i*256+e[t+f],f+=g,d-=8);if(a===0)a=1-u;else{if(a===c)return i?NaN:(y?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-u}return(y?-1:1)*i*Math.pow(2,a-n)},hk.write=function(e,t,r,n,o,a){var i,s,c,u=a*8-o-1,d=(1<<u)-1,f=d>>1,g=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:a-1,v=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=d):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),i+f>=1?t+=g/c:t+=g*Math.pow(2,1-f),t*c>=2&&(i++,c/=2),i+f>=d?(s=0,i=d):i+f>=1?(s=(t*c-1)*Math.pow(2,o),i=i+f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),i=0));o>=8;e[r+y]=s&255,y+=v,s/=256,o-=8);for(i=i<<o|s,u+=o;u>0;e[r+y]=i&255,y+=v,i/=256,u-=8);e[r+y-v]|=x*128}),hk}var TW;function cf(){return TW||(TW=1,(function(e){const t=dUe(),r=hUe(),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=a(),!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 a(){try{const j=new Uint8Array(1),I={foo:function(){return 42}};return Object.setPrototypeOf(I,Uint8Array.prototype),Object.setPrototypeOf(j,I),j.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 i(j){if(j>o)throw new RangeError('The value "'+j+'" is invalid for option "size"');const I=new Uint8Array(j);return Object.setPrototypeOf(I,s.prototype),I}function s(j,I,B){if(typeof j=="number"){if(typeof I=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(j)}return c(j,I,B)}s.poolSize=8192;function c(j,I,B){if(typeof j=="string")return g(j,I);if(ArrayBuffer.isView(j))return v(j);if(j==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j);if(He(j,ArrayBuffer)||j&&He(j.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(He(j,SharedArrayBuffer)||j&&He(j.buffer,SharedArrayBuffer)))return x(j,I,B);if(typeof j=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const pe=j.valueOf&&j.valueOf();if(pe!=null&&pe!==j)return s.from(pe,I,B);const Ee=C(j);if(Ee)return Ee;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof j[Symbol.toPrimitive]=="function")return s.from(j[Symbol.toPrimitive]("string"),I,B);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j)}s.from=function(j,I,B){return c(j,I,B)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(j){if(typeof j!="number")throw new TypeError('"size" argument must be of type number');if(j<0)throw new RangeError('The value "'+j+'" is invalid for option "size"')}function d(j,I,B){return u(j),j<=0?i(j):I!==void 0?typeof B=="string"?i(j).fill(I,B):i(j).fill(I):i(j)}s.alloc=function(j,I,B){return d(j,I,B)};function f(j){return u(j),i(j<0?0:S(j)|0)}s.allocUnsafe=function(j){return f(j)},s.allocUnsafeSlow=function(j){return f(j)};function g(j,I){if((typeof I!="string"||I==="")&&(I="utf8"),!s.isEncoding(I))throw new TypeError("Unknown encoding: "+I);const B=T(j,I)|0;let pe=i(B);const Ee=pe.write(j,I);return Ee!==B&&(pe=pe.slice(0,Ee)),pe}function y(j){const I=j.length<0?0:S(j.length)|0,B=i(I);for(let pe=0;pe<I;pe+=1)B[pe]=j[pe]&255;return B}function v(j){if(He(j,Uint8Array)){const I=new Uint8Array(j);return x(I.buffer,I.byteOffset,I.byteLength)}return y(j)}function x(j,I,B){if(I<0||j.byteLength<I)throw new RangeError('"offset" is outside of buffer bounds');if(j.byteLength<I+(B||0))throw new RangeError('"length" is outside of buffer bounds');let pe;return I===void 0&&B===void 0?pe=new Uint8Array(j):B===void 0?pe=new Uint8Array(j,I):pe=new Uint8Array(j,I,B),Object.setPrototypeOf(pe,s.prototype),pe}function C(j){if(s.isBuffer(j)){const I=S(j.length)|0,B=i(I);return B.length===0||j.copy(B,0,0,I),B}if(j.length!==void 0)return typeof j.length!="number"||Ve(j.length)?i(0):y(j);if(j.type==="Buffer"&&Array.isArray(j.data))return y(j.data)}function S(j){if(j>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return j|0}function w(j){return+j!=j&&(j=0),s.alloc(+j)}s.isBuffer=function(j){return j!=null&&j._isBuffer===!0&&j!==s.prototype},s.compare=function(j,I){if(He(j,Uint8Array)&&(j=s.from(j,j.offset,j.byteLength)),He(I,Uint8Array)&&(I=s.from(I,I.offset,I.byteLength)),!s.isBuffer(j)||!s.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(j===I)return 0;let B=j.length,pe=I.length;for(let Ee=0,Re=Math.min(B,pe);Ee<Re;++Ee)if(j[Ee]!==I[Ee]){B=j[Ee],pe=I[Ee];break}return B<pe?-1:pe<B?1:0},s.isEncoding=function(j){switch(String(j).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(j,I){if(!Array.isArray(j))throw new TypeError('"list" argument must be an Array of Buffers');if(j.length===0)return s.alloc(0);let B;if(I===void 0)for(I=0,B=0;B<j.length;++B)I+=j[B].length;const pe=s.allocUnsafe(I);let Ee=0;for(B=0;B<j.length;++B){let Re=j[B];if(He(Re,Uint8Array))Ee+Re.length>pe.length?(s.isBuffer(Re)||(Re=s.from(Re)),Re.copy(pe,Ee)):Uint8Array.prototype.set.call(pe,Re,Ee);else if(s.isBuffer(Re))Re.copy(pe,Ee);else throw new TypeError('"list" argument must be an Array of Buffers');Ee+=Re.length}return pe};function T(j,I){if(s.isBuffer(j))return j.length;if(ArrayBuffer.isView(j)||He(j,ArrayBuffer))return j.byteLength;if(typeof j!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof j);const B=j.length,pe=arguments.length>2&&arguments[2]===!0;if(!pe&&B===0)return 0;let Ee=!1;for(;;)switch(I){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return ue(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B*2;case"hex":return B>>>1;case"base64":return Ke(j).length;default:if(Ee)return pe?-1:ue(j).length;I=(""+I).toLowerCase(),Ee=!0}}s.byteLength=T;function A(j,I,B){let pe=!1;if((I===void 0||I<0)&&(I=0),I>this.length||((B===void 0||B>this.length)&&(B=this.length),B<=0)||(B>>>=0,I>>>=0,B<=I))return"";for(j||(j="utf8");;)switch(j){case"hex":return se(this,I,B);case"utf8":case"utf-8":return ee(this,I,B);case"ascii":return ie(this,I,B);case"latin1":case"binary":return re(this,I,B);case"base64":return G(this,I,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,I,B);default:if(pe)throw new TypeError("Unknown encoding: "+j);j=(j+"").toLowerCase(),pe=!0}}s.prototype._isBuffer=!0;function R(j,I,B){const pe=j[I];j[I]=j[B],j[B]=pe}s.prototype.swap16=function(){const j=this.length;if(j%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let I=0;I<j;I+=2)R(this,I,I+1);return this},s.prototype.swap32=function(){const j=this.length;if(j%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let I=0;I<j;I+=4)R(this,I,I+3),R(this,I+1,I+2);return this},s.prototype.swap64=function(){const j=this.length;if(j%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let I=0;I<j;I+=8)R(this,I,I+7),R(this,I+1,I+6),R(this,I+2,I+5),R(this,I+3,I+4);return this},s.prototype.toString=function(){const j=this.length;return j===0?"":arguments.length===0?ee(this,0,j):A.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(j){if(!s.isBuffer(j))throw new TypeError("Argument must be a Buffer");return this===j?!0:s.compare(this,j)===0},s.prototype.inspect=function(){let j="";const I=e.INSPECT_MAX_BYTES;return j=this.toString("hex",0,I).replace(/(.{2})/g,"$1 ").trim(),this.length>I&&(j+=" ... "),"<Buffer "+j+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(j,I,B,pe,Ee){if(He(j,Uint8Array)&&(j=s.from(j,j.offset,j.byteLength)),!s.isBuffer(j))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof j);if(I===void 0&&(I=0),B===void 0&&(B=j?j.length:0),pe===void 0&&(pe=0),Ee===void 0&&(Ee=this.length),I<0||B>j.length||pe<0||Ee>this.length)throw new RangeError("out of range index");if(pe>=Ee&&I>=B)return 0;if(pe>=Ee)return-1;if(I>=B)return 1;if(I>>>=0,B>>>=0,pe>>>=0,Ee>>>=0,this===j)return 0;let Re=Ee-pe,Be=B-I;const it=Math.min(Re,Be),Ft=this.slice(pe,Ee),gt=j.slice(I,B);for(let Ot=0;Ot<it;++Ot)if(Ft[Ot]!==gt[Ot]){Re=Ft[Ot],Be=gt[Ot];break}return Re<Be?-1:Be<Re?1:0};function L(j,I,B,pe,Ee){if(j.length===0)return-1;if(typeof B=="string"?(pe=B,B=0):B>2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),B=+B,Ve(B)&&(B=Ee?0:j.length-1),B<0&&(B=j.length+B),B>=j.length){if(Ee)return-1;B=j.length-1}else if(B<0)if(Ee)B=0;else return-1;if(typeof I=="string"&&(I=s.from(I,pe)),s.isBuffer(I))return I.length===0?-1:N(j,I,B,pe,Ee);if(typeof I=="number")return I=I&255,typeof Uint8Array.prototype.indexOf=="function"?Ee?Uint8Array.prototype.indexOf.call(j,I,B):Uint8Array.prototype.lastIndexOf.call(j,I,B):N(j,[I],B,pe,Ee);throw new TypeError("val must be string, number or Buffer")}function N(j,I,B,pe,Ee){let Re=1,Be=j.length,it=I.length;if(pe!==void 0&&(pe=String(pe).toLowerCase(),pe==="ucs2"||pe==="ucs-2"||pe==="utf16le"||pe==="utf-16le")){if(j.length<2||I.length<2)return-1;Re=2,Be/=2,it/=2,B/=2}function Ft(Ot,It){return Re===1?Ot[It]:Ot.readUInt16BE(It*Re)}let gt;if(Ee){let Ot=-1;for(gt=B;gt<Be;gt++)if(Ft(j,gt)===Ft(I,Ot===-1?0:gt-Ot)){if(Ot===-1&&(Ot=gt),gt-Ot+1===it)return Ot*Re}else Ot!==-1&&(gt-=gt-Ot),Ot=-1}else for(B+it>Be&&(B=Be-it),gt=B;gt>=0;gt--){let Ot=!0;for(let It=0;It<it;It++)if(Ft(j,gt+It)!==Ft(I,It)){Ot=!1;break}if(Ot)return gt}return-1}s.prototype.includes=function(j,I,B){return this.indexOf(j,I,B)!==-1},s.prototype.indexOf=function(j,I,B){return L(this,j,I,B,!0)},s.prototype.lastIndexOf=function(j,I,B){return L(this,j,I,B,!1)};function _(j,I,B,pe){B=Number(B)||0;const Ee=j.length-B;pe?(pe=Number(pe),pe>Ee&&(pe=Ee)):pe=Ee;const Re=I.length;pe>Re/2&&(pe=Re/2);let Be;for(Be=0;Be<pe;++Be){const it=parseInt(I.substr(Be*2,2),16);if(Ve(it))return Be;j[B+Be]=it}return Be}function $(j,I,B,pe){return Je(ue(I,j.length-B),j,B,pe)}function z(j,I,B,pe){return Je(je(I),j,B,pe)}function F(j,I,B,pe){return Je(Ke(I),j,B,pe)}function U(j,I,B,pe){return Je(he(I,j.length-B),j,B,pe)}s.prototype.write=function(j,I,B,pe){if(I===void 0)pe="utf8",B=this.length,I=0;else if(B===void 0&&typeof I=="string")pe=I,B=this.length,I=0;else if(isFinite(I))I=I>>>0,isFinite(B)?(B=B>>>0,pe===void 0&&(pe="utf8")):(pe=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Ee=this.length-I;if((B===void 0||B>Ee)&&(B=Ee),j.length>0&&(B<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");pe||(pe="utf8");let Re=!1;for(;;)switch(pe){case"hex":return _(this,j,I,B);case"utf8":case"utf-8":return $(this,j,I,B);case"ascii":case"latin1":case"binary":return z(this,j,I,B);case"base64":return F(this,j,I,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,j,I,B);default:if(Re)throw new TypeError("Unknown encoding: "+pe);pe=(""+pe).toLowerCase(),Re=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function G(j,I,B){return I===0&&B===j.length?t.fromByteArray(j):t.fromByteArray(j.slice(I,B))}function ee(j,I,B){B=Math.min(j.length,B);const pe=[];let Ee=I;for(;Ee<B;){const Re=j[Ee];let Be=null,it=Re>239?4:Re>223?3:Re>191?2:1;if(Ee+it<=B){let Ft,gt,Ot,It;switch(it){case 1:Re<128&&(Be=Re);break;case 2:Ft=j[Ee+1],(Ft&192)===128&&(It=(Re&31)<<6|Ft&63,It>127&&(Be=It));break;case 3:Ft=j[Ee+1],gt=j[Ee+2],(Ft&192)===128&&(gt&192)===128&&(It=(Re&15)<<12|(Ft&63)<<6|gt&63,It>2047&&(It<55296||It>57343)&&(Be=It));break;case 4:Ft=j[Ee+1],gt=j[Ee+2],Ot=j[Ee+3],(Ft&192)===128&&(gt&192)===128&&(Ot&192)===128&&(It=(Re&15)<<18|(Ft&63)<<12|(gt&63)<<6|Ot&63,It>65535&&It<1114112&&(Be=It))}}Be===null?(Be=65533,it=1):Be>65535&&(Be-=65536,pe.push(Be>>>10&1023|55296),Be=56320|Be&1023),pe.push(Be),Ee+=it}return V(pe)}const le=4096;function V(j){const I=j.length;if(I<=le)return String.fromCharCode.apply(String,j);let B="",pe=0;for(;pe<I;)B+=String.fromCharCode.apply(String,j.slice(pe,pe+=le));return B}function ie(j,I,B){let pe="";B=Math.min(j.length,B);for(let Ee=I;Ee<B;++Ee)pe+=String.fromCharCode(j[Ee]&127);return pe}function re(j,I,B){let pe="";B=Math.min(j.length,B);for(let Ee=I;Ee<B;++Ee)pe+=String.fromCharCode(j[Ee]);return pe}function se(j,I,B){const pe=j.length;(!I||I<0)&&(I=0),(!B||B<0||B>pe)&&(B=pe);let Ee="";for(let Re=I;Re<B;++Re)Ee+=Xe[j[Re]];return Ee}function Z(j,I,B){const pe=j.slice(I,B);let Ee="";for(let Re=0;Re<pe.length-1;Re+=2)Ee+=String.fromCharCode(pe[Re]+pe[Re+1]*256);return Ee}s.prototype.slice=function(j,I){const B=this.length;j=~~j,I=I===void 0?B:~~I,j<0?(j+=B,j<0&&(j=0)):j>B&&(j=B),I<0?(I+=B,I<0&&(I=0)):I>B&&(I=B),I<j&&(I=j);const pe=this.subarray(j,I);return Object.setPrototypeOf(pe,s.prototype),pe};function q(j,I,B){if(j%1!==0||j<0)throw new RangeError("offset is not uint");if(j+I>B)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(j,I,B){j=j>>>0,I=I>>>0,B||q(j,I,this.length);let pe=this[j],Ee=1,Re=0;for(;++Re<I&&(Ee*=256);)pe+=this[j+Re]*Ee;return pe},s.prototype.readUintBE=s.prototype.readUIntBE=function(j,I,B){j=j>>>0,I=I>>>0,B||q(j,I,this.length);let pe=this[j+--I],Ee=1;for(;I>0&&(Ee*=256);)pe+=this[j+--I]*Ee;return pe},s.prototype.readUint8=s.prototype.readUInt8=function(j,I){return j=j>>>0,I||q(j,1,this.length),this[j]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(j,I){return j=j>>>0,I||q(j,2,this.length),this[j]|this[j+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(j,I){return j=j>>>0,I||q(j,2,this.length),this[j]<<8|this[j+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(j,I){return j=j>>>0,I||q(j,4,this.length),(this[j]|this[j+1]<<8|this[j+2]<<16)+this[j+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(j,I){return j=j>>>0,I||q(j,4,this.length),this[j]*16777216+(this[j+1]<<16|this[j+2]<<8|this[j+3])},s.prototype.readBigUInt64LE=ut(function(j){j=j>>>0,W(j,"offset");const I=this[j],B=this[j+7];(I===void 0||B===void 0)&&ge(j,this.length-8);const pe=I+this[++j]*2**8+this[++j]*2**16+this[++j]*2**24,Ee=this[++j]+this[++j]*2**8+this[++j]*2**16+B*2**24;return BigInt(pe)+(BigInt(Ee)<<BigInt(32))}),s.prototype.readBigUInt64BE=ut(function(j){j=j>>>0,W(j,"offset");const I=this[j],B=this[j+7];(I===void 0||B===void 0)&&ge(j,this.length-8);const pe=I*2**24+this[++j]*2**16+this[++j]*2**8+this[++j],Ee=this[++j]*2**24+this[++j]*2**16+this[++j]*2**8+B;return(BigInt(pe)<<BigInt(32))+BigInt(Ee)}),s.prototype.readIntLE=function(j,I,B){j=j>>>0,I=I>>>0,B||q(j,I,this.length);let pe=this[j],Ee=1,Re=0;for(;++Re<I&&(Ee*=256);)pe+=this[j+Re]*Ee;return Ee*=128,pe>=Ee&&(pe-=Math.pow(2,8*I)),pe},s.prototype.readIntBE=function(j,I,B){j=j>>>0,I=I>>>0,B||q(j,I,this.length);let pe=I,Ee=1,Re=this[j+--pe];for(;pe>0&&(Ee*=256);)Re+=this[j+--pe]*Ee;return Ee*=128,Re>=Ee&&(Re-=Math.pow(2,8*I)),Re},s.prototype.readInt8=function(j,I){return j=j>>>0,I||q(j,1,this.length),this[j]&128?(255-this[j]+1)*-1:this[j]},s.prototype.readInt16LE=function(j,I){j=j>>>0,I||q(j,2,this.length);const B=this[j]|this[j+1]<<8;return B&32768?B|4294901760:B},s.prototype.readInt16BE=function(j,I){j=j>>>0,I||q(j,2,this.length);const B=this[j+1]|this[j]<<8;return B&32768?B|4294901760:B},s.prototype.readInt32LE=function(j,I){return j=j>>>0,I||q(j,4,this.length),this[j]|this[j+1]<<8|this[j+2]<<16|this[j+3]<<24},s.prototype.readInt32BE=function(j,I){return j=j>>>0,I||q(j,4,this.length),this[j]<<24|this[j+1]<<16|this[j+2]<<8|this[j+3]},s.prototype.readBigInt64LE=ut(function(j){j=j>>>0,W(j,"offset");const I=this[j],B=this[j+7];(I===void 0||B===void 0)&&ge(j,this.length-8);const pe=this[j+4]+this[j+5]*2**8+this[j+6]*2**16+(B<<24);return(BigInt(pe)<<BigInt(32))+BigInt(I+this[++j]*2**8+this[++j]*2**16+this[++j]*2**24)}),s.prototype.readBigInt64BE=ut(function(j){j=j>>>0,W(j,"offset");const I=this[j],B=this[j+7];(I===void 0||B===void 0)&&ge(j,this.length-8);const pe=(I<<24)+this[++j]*2**16+this[++j]*2**8+this[++j];return(BigInt(pe)<<BigInt(32))+BigInt(this[++j]*2**24+this[++j]*2**16+this[++j]*2**8+B)}),s.prototype.readFloatLE=function(j,I){return j=j>>>0,I||q(j,4,this.length),r.read(this,j,!0,23,4)},s.prototype.readFloatBE=function(j,I){return j=j>>>0,I||q(j,4,this.length),r.read(this,j,!1,23,4)},s.prototype.readDoubleLE=function(j,I){return j=j>>>0,I||q(j,8,this.length),r.read(this,j,!0,52,8)},s.prototype.readDoubleBE=function(j,I){return j=j>>>0,I||q(j,8,this.length),r.read(this,j,!1,52,8)};function ae(j,I,B,pe,Ee,Re){if(!s.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(I>Ee||I<Re)throw new RangeError('"value" argument is out of bounds');if(B+pe>j.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(j,I,B,pe){if(j=+j,I=I>>>0,B=B>>>0,!pe){const Be=Math.pow(2,8*B)-1;ae(this,j,I,B,Be,0)}let Ee=1,Re=0;for(this[I]=j&255;++Re<B&&(Ee*=256);)this[I+Re]=j/Ee&255;return I+B},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(j,I,B,pe){if(j=+j,I=I>>>0,B=B>>>0,!pe){const Be=Math.pow(2,8*B)-1;ae(this,j,I,B,Be,0)}let Ee=B-1,Re=1;for(this[I+Ee]=j&255;--Ee>=0&&(Re*=256);)this[I+Ee]=j/Re&255;return I+B},s.prototype.writeUint8=s.prototype.writeUInt8=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,1,255,0),this[I]=j&255,I+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,2,65535,0),this[I]=j&255,this[I+1]=j>>>8,I+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,2,65535,0),this[I]=j>>>8,this[I+1]=j&255,I+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,4,4294967295,0),this[I+3]=j>>>24,this[I+2]=j>>>16,this[I+1]=j>>>8,this[I]=j&255,I+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,4,4294967295,0),this[I]=j>>>24,this[I+1]=j>>>16,this[I+2]=j>>>8,this[I+3]=j&255,I+4};function Y(j,I,B,pe,Ee){P(I,pe,Ee,j,B,7);let Re=Number(I&BigInt(4294967295));j[B++]=Re,Re=Re>>8,j[B++]=Re,Re=Re>>8,j[B++]=Re,Re=Re>>8,j[B++]=Re;let Be=Number(I>>BigInt(32)&BigInt(4294967295));return j[B++]=Be,Be=Be>>8,j[B++]=Be,Be=Be>>8,j[B++]=Be,Be=Be>>8,j[B++]=Be,B}function te(j,I,B,pe,Ee){P(I,pe,Ee,j,B,7);let Re=Number(I&BigInt(4294967295));j[B+7]=Re,Re=Re>>8,j[B+6]=Re,Re=Re>>8,j[B+5]=Re,Re=Re>>8,j[B+4]=Re;let Be=Number(I>>BigInt(32)&BigInt(4294967295));return j[B+3]=Be,Be=Be>>8,j[B+2]=Be,Be=Be>>8,j[B+1]=Be,Be=Be>>8,j[B]=Be,B+8}s.prototype.writeBigUInt64LE=ut(function(j,I=0){return Y(this,j,I,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=ut(function(j,I=0){return te(this,j,I,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(j,I,B,pe){if(j=+j,I=I>>>0,!pe){const it=Math.pow(2,8*B-1);ae(this,j,I,B,it-1,-it)}let Ee=0,Re=1,Be=0;for(this[I]=j&255;++Ee<B&&(Re*=256);)j<0&&Be===0&&this[I+Ee-1]!==0&&(Be=1),this[I+Ee]=(j/Re>>0)-Be&255;return I+B},s.prototype.writeIntBE=function(j,I,B,pe){if(j=+j,I=I>>>0,!pe){const it=Math.pow(2,8*B-1);ae(this,j,I,B,it-1,-it)}let Ee=B-1,Re=1,Be=0;for(this[I+Ee]=j&255;--Ee>=0&&(Re*=256);)j<0&&Be===0&&this[I+Ee+1]!==0&&(Be=1),this[I+Ee]=(j/Re>>0)-Be&255;return I+B},s.prototype.writeInt8=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,1,127,-128),j<0&&(j=255+j+1),this[I]=j&255,I+1},s.prototype.writeInt16LE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,2,32767,-32768),this[I]=j&255,this[I+1]=j>>>8,I+2},s.prototype.writeInt16BE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,2,32767,-32768),this[I]=j>>>8,this[I+1]=j&255,I+2},s.prototype.writeInt32LE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,4,2147483647,-2147483648),this[I]=j&255,this[I+1]=j>>>8,this[I+2]=j>>>16,this[I+3]=j>>>24,I+4},s.prototype.writeInt32BE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,4,2147483647,-2147483648),j<0&&(j=4294967295+j+1),this[I]=j>>>24,this[I+1]=j>>>16,this[I+2]=j>>>8,this[I+3]=j&255,I+4},s.prototype.writeBigInt64LE=ut(function(j,I=0){return Y(this,j,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=ut(function(j,I=0){return te(this,j,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function de(j,I,B,pe,Ee,Re){if(B+pe>j.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("Index out of range")}function Q(j,I,B,pe,Ee){return I=+I,B=B>>>0,Ee||de(j,I,B,4),r.write(j,I,B,pe,23,4),B+4}s.prototype.writeFloatLE=function(j,I,B){return Q(this,j,I,!0,B)},s.prototype.writeFloatBE=function(j,I,B){return Q(this,j,I,!1,B)};function oe(j,I,B,pe,Ee){return I=+I,B=B>>>0,Ee||de(j,I,B,8),r.write(j,I,B,pe,52,8),B+8}s.prototype.writeDoubleLE=function(j,I,B){return oe(this,j,I,!0,B)},s.prototype.writeDoubleBE=function(j,I,B){return oe(this,j,I,!1,B)},s.prototype.copy=function(j,I,B,pe){if(!s.isBuffer(j))throw new TypeError("argument should be a Buffer");if(B||(B=0),!pe&&pe!==0&&(pe=this.length),I>=j.length&&(I=j.length),I||(I=0),pe>0&&pe<B&&(pe=B),pe===B||j.length===0||this.length===0)return 0;if(I<0)throw new RangeError("targetStart out of bounds");if(B<0||B>=this.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("sourceEnd out of bounds");pe>this.length&&(pe=this.length),j.length-I<pe-B&&(pe=j.length-I+B);const Ee=pe-B;return this===j&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(I,B,pe):Uint8Array.prototype.set.call(j,this.subarray(B,pe),I),Ee},s.prototype.fill=function(j,I,B,pe){if(typeof j=="string"){if(typeof I=="string"?(pe=I,I=0,B=this.length):typeof B=="string"&&(pe=B,B=this.length),pe!==void 0&&typeof pe!="string")throw new TypeError("encoding must be a string");if(typeof pe=="string"&&!s.isEncoding(pe))throw new TypeError("Unknown encoding: "+pe);if(j.length===1){const Re=j.charCodeAt(0);(pe==="utf8"&&Re<128||pe==="latin1")&&(j=Re)}}else typeof j=="number"?j=j&255:typeof j=="boolean"&&(j=Number(j));if(I<0||this.length<I||this.length<B)throw new RangeError("Out of range index");if(B<=I)return this;I=I>>>0,B=B===void 0?this.length:B>>>0,j||(j=0);let Ee;if(typeof j=="number")for(Ee=I;Ee<B;++Ee)this[Ee]=j;else{const Re=s.isBuffer(j)?j:s.from(j,pe),Be=Re.length;if(Be===0)throw new TypeError('The value "'+j+'" is invalid for argument "value"');for(Ee=0;Ee<B-I;++Ee)this[Ee+I]=Re[Ee%Be]}return this};const H={};function ve(j,I,B){H[j]=class extends B{constructor(){super(),Object.defineProperty(this,"message",{value:I.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${j}]`,delete this.name}get code(){return j}set code(pe){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:pe,writable:!0})}toString(){return`${this.name} [${j}]: ${this.message}`}}}ve("ERR_BUFFER_OUT_OF_BOUNDS",function(j){return j?`${j} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ve("ERR_INVALID_ARG_TYPE",function(j,I){return`The "${j}" argument must be of type number. Received type ${typeof I}`},TypeError),ve("ERR_OUT_OF_RANGE",function(j,I,B){let pe=`The value of "${j}" is out of range.`,Ee=B;return Number.isInteger(B)&&Math.abs(B)>2**32?Ee=ke(String(B)):typeof B=="bigint"&&(Ee=String(B),(B>BigInt(2)**BigInt(32)||B<-(BigInt(2)**BigInt(32)))&&(Ee=ke(Ee)),Ee+="n"),pe+=` It must be ${I}. Received ${Ee}`,pe},RangeError);function ke(j){let I="",B=j.length;const pe=j[0]==="-"?1:0;for(;B>=pe+4;B-=3)I=`_${j.slice(B-3,B)}${I}`;return`${j.slice(0,B)}${I}`}function E(j,I,B){W(I,"offset"),(j[I]===void 0||j[I+B]===void 0)&&ge(I,j.length-(B+1))}function P(j,I,B,pe,Ee,Re){if(j>B||j<I){const Be=typeof I=="bigint"?"n":"";let it;throw I===0||I===BigInt(0)?it=`>= 0${Be} and < 2${Be} ** ${(Re+1)*8}${Be}`:it=`>= -(2${Be} ** ${(Re+1)*8-1}${Be}) and < 2 ** ${(Re+1)*8-1}${Be}`,new H.ERR_OUT_OF_RANGE("value",it,j)}E(pe,Ee,Re)}function W(j,I){if(typeof j!="number")throw new H.ERR_INVALID_ARG_TYPE(I,"number",j)}function ge(j,I,B){throw Math.floor(j)!==j?(W(j,B),new H.ERR_OUT_OF_RANGE("offset","an integer",j)):I<0?new H.ERR_BUFFER_OUT_OF_BOUNDS:new H.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${I}`,j)}const xe=/[^+/0-9A-Za-z-_]/g;function ce(j){if(j=j.split("=")[0],j=j.trim().replace(xe,""),j.length<2)return"";for(;j.length%4!==0;)j=j+"=";return j}function ue(j,I){I=I||1/0;let B;const pe=j.length;let Ee=null;const Re=[];for(let Be=0;Be<pe;++Be){if(B=j.charCodeAt(Be),B>55295&&B<57344){if(!Ee){if(B>56319){(I-=3)>-1&&Re.push(239,191,189);continue}else if(Be+1===pe){(I-=3)>-1&&Re.push(239,191,189);continue}Ee=B;continue}if(B<56320){(I-=3)>-1&&Re.push(239,191,189),Ee=B;continue}B=(Ee-55296<<10|B-56320)+65536}else Ee&&(I-=3)>-1&&Re.push(239,191,189);if(Ee=null,B<128){if((I-=1)<0)break;Re.push(B)}else if(B<2048){if((I-=2)<0)break;Re.push(B>>6|192,B&63|128)}else if(B<65536){if((I-=3)<0)break;Re.push(B>>12|224,B>>6&63|128,B&63|128)}else if(B<1114112){if((I-=4)<0)break;Re.push(B>>18|240,B>>12&63|128,B>>6&63|128,B&63|128)}else throw new Error("Invalid code point")}return Re}function je(j){const I=[];for(let B=0;B<j.length;++B)I.push(j.charCodeAt(B)&255);return I}function he(j,I){let B,pe,Ee;const Re=[];for(let Be=0;Be<j.length&&!((I-=2)<0);++Be)B=j.charCodeAt(Be),pe=B>>8,Ee=B%256,Re.push(Ee),Re.push(pe);return Re}function Ke(j){return t.toByteArray(ce(j))}function Je(j,I,B,pe){let Ee;for(Ee=0;Ee<pe&&!(Ee+B>=I.length||Ee>=j.length);++Ee)I[Ee+B]=j[Ee];return Ee}function He(j,I){return j instanceof I||j!=null&&j.constructor!=null&&j.constructor.name!=null&&j.constructor.name===I.name}function Ve(j){return j!==j}const Xe=(function(){const j="0123456789abcdef",I=new Array(256);for(let B=0;B<16;++B){const pe=B*16;for(let Ee=0;Ee<16;++Ee)I[pe+Ee]=j[B]+j[Ee]}return I})();function ut(j){return typeof BigInt>"u"?Fe:j}function Fe(){throw new Error("BigInt not supported")}})(kW)),kW}const _W=sa(pF);var fk,OW;function fUe(){if(OW)return fk;OW=1;function e(v,x){var C=Object.keys(v);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(v);x&&(S=S.filter(function(w){return Object.getOwnPropertyDescriptor(v,w).enumerable})),C.push.apply(C,S)}return C}function t(v){for(var x=1;x<arguments.length;x++){var C=arguments[x]!=null?arguments[x]:{};x%2?e(Object(C),!0).forEach(function(S){r(v,S,C[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(C)):e(Object(C)).forEach(function(S){Object.defineProperty(v,S,Object.getOwnPropertyDescriptor(C,S))})}return v}function r(v,x,C){return x=i(x),x in v?Object.defineProperty(v,x,{value:C,enumerable:!0,configurable:!0,writable:!0}):v[x]=C,v}function n(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function o(v,x){for(var C=0;C<x.length;C++){var S=x[C];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,i(S.key),S)}}function a(v,x,C){return x&&o(v.prototype,x),Object.defineProperty(v,"prototype",{writable:!1}),v}function i(v){var x=s(v,"string");return typeof x=="symbol"?x:String(x)}function s(v,x){if(typeof v!="object"||v===null)return v;var C=v[Symbol.toPrimitive];if(C!==void 0){var S=C.call(v,x);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}var c=cf(),u=c.Buffer,d=_W,f=d.inspect,g=f&&f.custom||"inspect";function y(v,x,C){u.prototype.copy.call(v,x,C)}return fk=(function(){function v(){n(this,v),this.head=null,this.tail=null,this.length=0}return a(v,[{key:"push",value:function(x){var C={data:x,next:null};this.length>0?this.tail.next=C:this.head=C,this.tail=C,++this.length}},{key:"unshift",value:function(x){var C={data:x,next:this.head};this.length===0&&(this.tail=C),this.head=C,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var C=this.head,S=""+C.data;C=C.next;)S+=x+C.data;return S}},{key:"concat",value:function(x){if(this.length===0)return u.alloc(0);for(var C=u.allocUnsafe(x>>>0),S=this.head,w=0;S;)y(S.data,C,w),w+=S.data.length,S=S.next;return C}},{key:"consume",value:function(x,C){var S;return x<this.head.data.length?(S=this.head.data.slice(0,x),this.head.data=this.head.data.slice(x)):x===this.head.data.length?S=this.shift():S=C?this._getString(x):this._getBuffer(x),S}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(x){var C=this.head,S=1,w=C.data;for(x-=w.length;C=C.next;){var T=C.data,A=x>T.length?T.length:x;if(A===T.length?w+=T:w+=T.slice(0,x),x-=A,x===0){A===T.length?(++S,C.next?this.head=C.next:this.head=this.tail=null):(this.head=C,C.data=T.slice(A));break}++S}return this.length-=S,w}},{key:"_getBuffer",value:function(x){var C=u.allocUnsafe(x),S=this.head,w=1;for(S.data.copy(C),x-=S.data.length;S=S.next;){var T=S.data,A=x>T.length?T.length:x;if(T.copy(C,C.length-x,0,A),x-=A,x===0){A===T.length?(++w,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=T.slice(A));break}++w}return this.length-=w,C}},{key:g,value:function(x,C){return f(this,t(t({},C),{},{depth:0,customInspect:!1}))}}]),v})(),fk}var mk,RW;function LW(){if(RW)return mk;RW=1;function e(i,s){var c=this,u=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return u||d?(s?s(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,i)):process.nextTick(o,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(f){!s&&f?c._writableState?c._writableState.errorEmitted?process.nextTick(r,c):(c._writableState.errorEmitted=!0,process.nextTick(t,c,f)):process.nextTick(t,c,f):s?(process.nextTick(r,c),s(f)):process.nextTick(r,c)}),this)}function t(i,s){o(i,s),r(i)}function r(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.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(i,s){i.emit("error",s)}function a(i,s){var c=i._readableState,u=i._writableState;c&&c.autoDestroy||u&&u.autoDestroy?i.destroy(s):i.emit("error",s)}return mk={destroy:e,undestroy:n,errorOrDestroy:a},mk}var gk={},jW;function cu(){if(jW)return gk;jW=1;function e(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,s.__proto__=c}var t={};function r(s,c,u){u||(u=Error);function d(g,y,v){return typeof c=="string"?c:c(g,y,v)}var f=(function(g){e(y,g);function y(v,x,C){return g.call(this,d(v,x,C))||this}return y})(u);f.prototype.name=u.name,f.prototype.code=s,t[s]=f}function n(s,c){if(Array.isArray(s)){var u=s.length;return s=s.map(function(d){return String(d)}),u>2?"one of ".concat(c," ").concat(s.slice(0,u-1).join(", "),", or ")+s[u-1]:u===2?"one of ".concat(c," ").concat(s[0]," or ").concat(s[1]):"of ".concat(c," ").concat(s[0])}else return"of ".concat(c," ").concat(String(s))}function o(s,c,u){return s.substr(0,c.length)===c}function a(s,c,u){return(u===void 0||u>s.length)&&(u=s.length),s.substring(u-c.length,u)===c}function i(s,c,u){return typeof u!="number"&&(u=0),u+c.length>s.length?!1:s.indexOf(c,u)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,c){return'The value "'+c+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,c,u){var d;typeof c=="string"&&o(c,"not ")?(d="must not be",c=c.replace(/^not /,"")):d="must be";var f;if(a(s," argument"))f="The ".concat(s," ").concat(d," ").concat(n(c,"type"));else{var g=i(s,".")?"property":"argument";f='The "'.concat(s,'" ').concat(g," ").concat(d," ").concat(n(c,"type"))}return f+=". Received type ".concat(typeof u),f},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"),gk.codes=t,gk}var bk,PW;function NW(){if(PW)return bk;PW=1;var e=cu().codes.ERR_INVALID_OPT_VALUE;function t(n,o,a){return n.highWaterMark!=null?n.highWaterMark:o?n[a]:null}function r(n,o,a,i){var s=t(o,i,a);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var c=i?a:"highWaterMark";throw new e(c,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return bk={getHighWaterMark:r},bk}var yk,IW;function mUe(){if(IW)return yk;IW=1,yk=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function a(){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 a}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 yk}var vk,$W;function DW(){if($W)return vk;$W=1,vk=_;function e(Q){var oe=this;this.next=null,this.entry=null,this.finish=function(){de(oe,Q)}}var t;_.WritableState=L;var r={deprecate:mUe()},n=CW(),o=cf().Buffer,a=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(Q){return o.from(Q)}function s(Q){return o.isBuffer(Q)||Q instanceof a}var c=LW(),u=NW(),d=u.getHighWaterMark,f=cu().codes,g=f.ERR_INVALID_ARG_TYPE,y=f.ERR_METHOD_NOT_IMPLEMENTED,v=f.ERR_MULTIPLE_CALLBACK,x=f.ERR_STREAM_CANNOT_PIPE,C=f.ERR_STREAM_DESTROYED,S=f.ERR_STREAM_NULL_VALUES,w=f.ERR_STREAM_WRITE_AFTER_END,T=f.ERR_UNKNOWN_ENCODING,A=c.errorOrDestroy;function R(){}function L(Q,oe,H){t=t||pu(),Q=Q||{},typeof H!="boolean"&&(H=oe instanceof t),this.objectMode=!!Q.objectMode,H&&(this.objectMode=this.objectMode||!!Q.writableObjectMode),this.highWaterMark=d(this,Q,"writableHighWaterMark",H),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ve=Q.decodeStrings===!1;this.decodeStrings=!ve,this.defaultEncoding=Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ke){V(oe,ke)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Q.emitClose!==!1,this.autoDestroy=!!Q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}L.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,oe=[];Q;)oe.push(Q),Q=Q.next;return oe},(function(){try{Object.defineProperty(L.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var N;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(N=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(Q){return N.call(this,Q)?!0:this!==_?!1:Q&&Q._writableState instanceof L}})):N=function(Q){return Q instanceof this};function _(Q){t=t||pu();var oe=this instanceof t;if(!oe&&!N.call(_,this))return new _(Q);this._writableState=new L(Q,this,oe),this.writable=!0,Q&&(typeof Q.write=="function"&&(this._write=Q.write),typeof Q.writev=="function"&&(this._writev=Q.writev),typeof Q.destroy=="function"&&(this._destroy=Q.destroy),typeof Q.final=="function"&&(this._final=Q.final)),n.call(this)}_.prototype.pipe=function(){A(this,new x)};function $(Q,oe){var H=new w;A(Q,H),process.nextTick(oe,H)}function z(Q,oe,H,ve){var ke;return H===null?ke=new S:typeof H!="string"&&!oe.objectMode&&(ke=new g("chunk",["string","Buffer"],H)),ke?(A(Q,ke),process.nextTick(ve,ke),!1):!0}_.prototype.write=function(Q,oe,H){var ve=this._writableState,ke=!1,E=!ve.objectMode&&s(Q);return E&&!o.isBuffer(Q)&&(Q=i(Q)),typeof oe=="function"&&(H=oe,oe=null),E?oe="buffer":oe||(oe=ve.defaultEncoding),typeof H!="function"&&(H=R),ve.ending?$(this,H):(E||z(this,ve,Q,H))&&(ve.pendingcb++,ke=U(this,ve,E,Q,oe,H)),ke},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var Q=this._writableState;Q.corked&&(Q.corked--,!Q.writing&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&se(this,Q))},_.prototype.setDefaultEncoding=function(Q){if(typeof Q=="string"&&(Q=Q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new T(Q);return this._writableState.defaultEncoding=Q,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function F(Q,oe,H){return!Q.objectMode&&Q.decodeStrings!==!1&&typeof oe=="string"&&(oe=o.from(oe,H)),oe}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function U(Q,oe,H,ve,ke,E){if(!H){var P=F(oe,ve,ke);ve!==P&&(H=!0,ke="buffer",ve=P)}var W=oe.objectMode?1:ve.length;oe.length+=W;var ge=oe.length<oe.highWaterMark;if(ge||(oe.needDrain=!0),oe.writing||oe.corked){var xe=oe.lastBufferedRequest;oe.lastBufferedRequest={chunk:ve,encoding:ke,isBuf:H,callback:E,next:null},xe?xe.next=oe.lastBufferedRequest:oe.bufferedRequest=oe.lastBufferedRequest,oe.bufferedRequestCount+=1}else G(Q,oe,!1,W,ve,ke,E);return ge}function G(Q,oe,H,ve,ke,E,P){oe.writelen=ve,oe.writecb=P,oe.writing=!0,oe.sync=!0,oe.destroyed?oe.onwrite(new C("write")):H?Q._writev(ke,oe.onwrite):Q._write(ke,E,oe.onwrite),oe.sync=!1}function ee(Q,oe,H,ve,ke){--oe.pendingcb,H?(process.nextTick(ke,ve),process.nextTick(Y,Q,oe),Q._writableState.errorEmitted=!0,A(Q,ve)):(ke(ve),Q._writableState.errorEmitted=!0,A(Q,ve),Y(Q,oe))}function le(Q){Q.writing=!1,Q.writecb=null,Q.length-=Q.writelen,Q.writelen=0}function V(Q,oe){var H=Q._writableState,ve=H.sync,ke=H.writecb;if(typeof ke!="function")throw new v;if(le(H),oe)ee(Q,H,ve,oe,ke);else{var E=Z(H)||Q.destroyed;!E&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&se(Q,H),ve?process.nextTick(ie,Q,H,E,ke):ie(Q,H,E,ke)}}function ie(Q,oe,H,ve){H||re(Q,oe),oe.pendingcb--,ve(),Y(Q,oe)}function re(Q,oe){oe.length===0&&oe.needDrain&&(oe.needDrain=!1,Q.emit("drain"))}function se(Q,oe){oe.bufferProcessing=!0;var H=oe.bufferedRequest;if(Q._writev&&H&&H.next){var ve=oe.bufferedRequestCount,ke=new Array(ve),E=oe.corkedRequestsFree;E.entry=H;for(var P=0,W=!0;H;)ke[P]=H,H.isBuf||(W=!1),H=H.next,P+=1;ke.allBuffers=W,G(Q,oe,!0,oe.length,ke,"",E.finish),oe.pendingcb++,oe.lastBufferedRequest=null,E.next?(oe.corkedRequestsFree=E.next,E.next=null):oe.corkedRequestsFree=new e(oe),oe.bufferedRequestCount=0}else{for(;H;){var ge=H.chunk,xe=H.encoding,ce=H.callback,ue=oe.objectMode?1:ge.length;if(G(Q,oe,!1,ue,ge,xe,ce),H=H.next,oe.bufferedRequestCount--,oe.writing)break}H===null&&(oe.lastBufferedRequest=null)}oe.bufferedRequest=H,oe.bufferProcessing=!1}_.prototype._write=function(Q,oe,H){H(new y("_write()"))},_.prototype._writev=null,_.prototype.end=function(Q,oe,H){var ve=this._writableState;return typeof Q=="function"?(H=Q,Q=null,oe=null):typeof oe=="function"&&(H=oe,oe=null),Q!=null&&this.write(Q,oe),ve.corked&&(ve.corked=1,this.uncork()),ve.ending||te(this,ve,H),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Z(Q){return Q.ending&&Q.length===0&&Q.bufferedRequest===null&&!Q.finished&&!Q.writing}function q(Q,oe){Q._final(function(H){oe.pendingcb--,H&&A(Q,H),oe.prefinished=!0,Q.emit("prefinish"),Y(Q,oe)})}function ae(Q,oe){!oe.prefinished&&!oe.finalCalled&&(typeof Q._final=="function"&&!oe.destroyed?(oe.pendingcb++,oe.finalCalled=!0,process.nextTick(q,Q,oe)):(oe.prefinished=!0,Q.emit("prefinish")))}function Y(Q,oe){var H=Z(oe);if(H&&(ae(Q,oe),oe.pendingcb===0&&(oe.finished=!0,Q.emit("finish"),oe.autoDestroy))){var ve=Q._readableState;(!ve||ve.autoDestroy&&ve.endEmitted)&&Q.destroy()}return H}function te(Q,oe,H){oe.ending=!0,Y(Q,oe),H&&(oe.finished?process.nextTick(H):Q.once("finish",H)),oe.ended=!0,Q.writable=!1}function de(Q,oe,H){var ve=Q.entry;for(Q.entry=null;ve;){var ke=ve.callback;oe.pendingcb--,ke(H),ve=ve.next}oe.corkedRequestsFree.next=Q}return Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Q){this._writableState&&(this._writableState.destroyed=Q)}}),_.prototype.destroy=c.destroy,_.prototype._undestroy=c.undestroy,_.prototype._destroy=function(Q,oe){oe(Q)},vk}var xk,MW;function pu(){if(MW)return xk;MW=1;var e=Object.keys||function(u){var d=[];for(var f in u)d.push(f);return d};xk=i;for(var t=GW(),r=DW(),n=e(r.prototype),o=0;o<n.length;o++){var a=n[o];i.prototype[a]||(i.prototype[a]=r.prototype[a])}function i(u){if(!(this instanceof i))return new i(u);t.call(this,u),r.call(this,u),this.allowHalfOpen=!0,u&&(u.readable===!1&&(this.readable=!1),u.writable===!1&&(this.writable=!1),u.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(i.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(i.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(c,this)}function c(u){u.end()}return Object.defineProperty(i.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),xk}var wk={},Sk={exports:{}},zW;function gUe(){return zW||(zW=1,(function(e,t){var r=cf(),n=r.Buffer;function o(i,s){for(var c in i)s[c]=i[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a);function a(i,s,c){return n(i,s,c)}a.prototype=Object.create(n.prototype),o(n,a),a.from=function(i,s,c){if(typeof i=="number")throw new TypeError("Argument must not be a number");return n(i,s,c)},a.alloc=function(i,s,c){if(typeof i!="number")throw new TypeError("Argument must be a number");var u=n(i);return s!==void 0?typeof c=="string"?u.fill(s,c):u.fill(s):u.fill(0),u},a.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return n(i)},a.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(i)}})(Sk,Sk.exports)),Sk.exports}var UW;function BW(){if(UW)return wk;UW=1;var e=gUe().Buffer,t=e.isEncoding||function(S){switch(S=""+S,S&&S.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(S){if(!S)return"utf8";for(var w;;)switch(S){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 S;default:if(w)return;S=(""+S).toLowerCase(),w=!0}}function n(S){var w=r(S);if(typeof w!="string"&&(e.isEncoding===t||!t(S)))throw new Error("Unknown encoding: "+S);return w||S}wk.StringDecoder=o;function o(S){this.encoding=n(S);var w;switch(this.encoding){case"utf16le":this.text=f,this.end=g,w=4;break;case"utf8":this.fillLast=c,w=4;break;case"base64":this.text=y,this.end=v,w=3;break;default:this.write=x,this.end=C;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(w)}o.prototype.write=function(S){if(S.length===0)return"";var w,T;if(this.lastNeed){if(w=this.fillLast(S),w===void 0)return"";T=this.lastNeed,this.lastNeed=0}else T=0;return T<S.length?w?w+this.text(S,T):this.text(S,T):w||""},o.prototype.end=d,o.prototype.text=u,o.prototype.fillLast=function(S){if(this.lastNeed<=S.length)return S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,S.length),this.lastNeed-=S.length};function a(S){return S<=127?0:S>>5===6?2:S>>4===14?3:S>>3===30?4:S>>6===2?-1:-2}function i(S,w,T){var A=w.length-1;if(A<T)return 0;var R=a(w[A]);return R>=0?(R>0&&(S.lastNeed=R-1),R):--A<T||R===-2?0:(R=a(w[A]),R>=0?(R>0&&(S.lastNeed=R-2),R):--A<T||R===-2?0:(R=a(w[A]),R>=0?(R>0&&(R===2?R=0:S.lastNeed=R-3),R):0))}function s(S,w,T){if((w[0]&192)!==128)return S.lastNeed=0,"\uFFFD";if(S.lastNeed>1&&w.length>1){if((w[1]&192)!==128)return S.lastNeed=1,"\uFFFD";if(S.lastNeed>2&&w.length>2&&(w[2]&192)!==128)return S.lastNeed=2,"\uFFFD"}}function c(S){var w=this.lastTotal-this.lastNeed,T=s(this,S);if(T!==void 0)return T;if(this.lastNeed<=S.length)return S.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,w,0,S.length),this.lastNeed-=S.length}function u(S,w){var T=i(this,S,w);if(!this.lastNeed)return S.toString("utf8",w);this.lastTotal=T;var A=S.length-(T-this.lastNeed);return S.copy(this.lastChar,0,A),S.toString("utf8",w,A)}function d(S){var w=S&&S.length?this.write(S):"";return this.lastNeed?w+"\uFFFD":w}function f(S,w){if((S.length-w)%2===0){var T=S.toString("utf16le",w);if(T){var A=T.charCodeAt(T.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1],T.slice(0,-1)}return T}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=S[S.length-1],S.toString("utf16le",w,S.length-1)}function g(S){var w=S&&S.length?this.write(S):"";if(this.lastNeed){var T=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,T)}return w}function y(S,w){var T=(S.length-w)%3;return T===0?S.toString("base64",w):(this.lastNeed=3-T,this.lastTotal=3,T===1?this.lastChar[0]=S[S.length-1]:(this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1]),S.toString("base64",w,S.length-T))}function v(S){var w=S&&S.length?this.write(S):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function x(S){return S.toString(this.encoding)}function C(S){return S&&S.length?this.write(S):""}return wk}var Ck,FW;function kk(){if(FW)return Ck;FW=1;var e=cu().codes.ERR_STREAM_PREMATURE_CLOSE;function t(a){var i=!1;return function(){if(!i){i=!0;for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];a.apply(this,c)}}}function r(){}function n(a){return a.setHeader&&typeof a.abort=="function"}function o(a,i,s){if(typeof i=="function")return o(a,null,i);i||(i={}),s=t(s||r);var c=i.readable||i.readable!==!1&&a.readable,u=i.writable||i.writable!==!1&&a.writable,d=function(){a.writable||g()},f=a._writableState&&a._writableState.finished,g=function(){u=!1,f=!0,c||s.call(a)},y=a._readableState&&a._readableState.endEmitted,v=function(){c=!1,y=!0,u||s.call(a)},x=function(w){s.call(a,w)},C=function(){var w;if(c&&!y)return(!a._readableState||!a._readableState.ended)&&(w=new e),s.call(a,w);if(u&&!f)return(!a._writableState||!a._writableState.ended)&&(w=new e),s.call(a,w)},S=function(){a.req.on("finish",g)};return n(a)?(a.on("complete",g),a.on("abort",C),a.req?S():a.on("request",S)):u&&!a._writableState&&(a.on("end",d),a.on("close",d)),a.on("end",v),a.on("finish",g),i.error!==!1&&a.on("error",x),a.on("close",C),function(){a.removeListener("complete",g),a.removeListener("abort",C),a.removeListener("request",S),a.req&&a.req.removeListener("finish",g),a.removeListener("end",d),a.removeListener("close",d),a.removeListener("finish",g),a.removeListener("end",v),a.removeListener("error",x),a.removeListener("close",C)}}return Ck=o,Ck}var Ek,qW;function bUe(){if(qW)return Ek;qW=1;var e;function t(T,A,R){return A=r(A),A in T?Object.defineProperty(T,A,{value:R,enumerable:!0,configurable:!0,writable:!0}):T[A]=R,T}function r(T){var A=n(T,"string");return typeof A=="symbol"?A:String(A)}function n(T,A){if(typeof T!="object"||T===null)return T;var R=T[Symbol.toPrimitive];if(R!==void 0){var L=R.call(T,A);if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(T)}var o=kk(),a=Symbol("lastResolve"),i=Symbol("lastReject"),s=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function g(T,A){return{value:T,done:A}}function y(T){var A=T[a];if(A!==null){var R=T[f].read();R!==null&&(T[u]=null,T[a]=null,T[i]=null,A(g(R,!1)))}}function v(T){process.nextTick(y,T)}function x(T,A){return function(R,L){T.then(function(){if(A[c]){R(g(void 0,!0));return}A[d](R,L)},L)}}var C=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var T=this,A=this[s];if(A!==null)return Promise.reject(A);if(this[c])return Promise.resolve(g(void 0,!0));if(this[f].destroyed)return new Promise(function(_,$){process.nextTick(function(){T[s]?$(T[s]):_(g(void 0,!0))})});var R=this[u],L;if(R)L=new Promise(x(R,this));else{var N=this[f].read();if(N!==null)return Promise.resolve(g(N,!1));L=new Promise(this[d])}return this[u]=L,L}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var T=this;return new Promise(function(A,R){T[f].destroy(null,function(L){if(L){R(L);return}A(g(void 0,!0))})})}),e),C),w=function(T){var A,R=Object.create(S,(A={},t(A,f,{value:T,writable:!0}),t(A,a,{value:null,writable:!0}),t(A,i,{value:null,writable:!0}),t(A,s,{value:null,writable:!0}),t(A,c,{value:T._readableState.endEmitted,writable:!0}),t(A,d,{value:function(L,N){var _=R[f].read();_?(R[u]=null,R[a]=null,R[i]=null,L(g(_,!1))):(R[a]=L,R[i]=N)},writable:!0}),A));return R[u]=null,o(T,function(L){if(L&&L.code!=="ERR_STREAM_PREMATURE_CLOSE"){var N=R[i];N!==null&&(R[u]=null,R[a]=null,R[i]=null,N(L)),R[s]=L;return}var _=R[a];_!==null&&(R[u]=null,R[a]=null,R[i]=null,_(g(void 0,!0))),R[c]=!0}),T.on("readable",v.bind(null,R)),R};return Ek=w,Ek}var VW,HW;function yUe(){return HW||(HW=1,VW=function(){throw new Error("Readable.from is not available in the browser")}),VW}var Ak,WW;function GW(){if(WW)return Ak;WW=1,Ak=$;var e;$.ReadableState=_;var t=function(E,P){return E.listeners(P).length},r=CW(),n=cf().Buffer,o=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(E){return n.from(E)}function i(E){return n.isBuffer(E)||E instanceof o}var s=_W,c;s&&s.debuglog?c=s.debuglog("stream"):c=function(){};var u=fUe(),d=LW(),f=NW(),g=f.getHighWaterMark,y=cu().codes,v=y.ERR_INVALID_ARG_TYPE,x=y.ERR_STREAM_PUSH_AFTER_EOF,C=y.ERR_METHOD_NOT_IMPLEMENTED,S=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,w,T,A,R=d.errorOrDestroy,L=["error","close","destroy","pause","resume"];function N(E,P,W){if(typeof E.prependListener=="function")return E.prependListener(P,W);!E._events||!E._events[P]?E.on(P,W):Array.isArray(E._events[P])?E._events[P].unshift(W):E._events[P]=[W,E._events[P]]}function _(E,P,W){e=e||pu(),E=E||{},typeof W!="boolean"&&(W=P instanceof e),this.objectMode=!!E.objectMode,W&&(this.objectMode=this.objectMode||!!E.readableObjectMode),this.highWaterMark=g(this,E,"readableHighWaterMark",W),this.buffer=new u,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=E.emitClose!==!1,this.autoDestroy=!!E.autoDestroy,this.destroyed=!1,this.defaultEncoding=E.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,E.encoding&&(w||(w=BW().StringDecoder),this.decoder=new w(E.encoding),this.encoding=E.encoding)}function $(E){if(e=e||pu(),!(this instanceof $))return new $(E);var P=this instanceof e;this._readableState=new _(E,this,P),this.readable=!0,E&&(typeof E.read=="function"&&(this._read=E.read),typeof E.destroy=="function"&&(this._destroy=E.destroy)),r.call(this)}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(E){this._readableState&&(this._readableState.destroyed=E)}}),$.prototype.destroy=d.destroy,$.prototype._undestroy=d.undestroy,$.prototype._destroy=function(E,P){P(E)},$.prototype.push=function(E,P){var W=this._readableState,ge;return W.objectMode?ge=!0:typeof E=="string"&&(P=P||W.defaultEncoding,P!==W.encoding&&(E=n.from(E,P),P=""),ge=!0),z(this,E,P,!1,ge)},$.prototype.unshift=function(E){return z(this,E,null,!0,!1)};function z(E,P,W,ge,xe){c("readableAddChunk",P);var ce=E._readableState;if(P===null)ce.reading=!1,V(E,ce);else{var ue;if(xe||(ue=U(ce,P)),ue)R(E,ue);else if(ce.objectMode||P&&P.length>0)if(typeof P!="string"&&!ce.objectMode&&Object.getPrototypeOf(P)!==n.prototype&&(P=a(P)),ge)ce.endEmitted?R(E,new S):F(E,ce,P,!0);else if(ce.ended)R(E,new x);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!W?(P=ce.decoder.write(P),ce.objectMode||P.length!==0?F(E,ce,P,!1):se(E,ce)):F(E,ce,P,!1)}else ge||(ce.reading=!1,se(E,ce))}return!ce.ended&&(ce.length<ce.highWaterMark||ce.length===0)}function F(E,P,W,ge){P.flowing&&P.length===0&&!P.sync?(P.awaitDrain=0,E.emit("data",W)):(P.length+=P.objectMode?1:W.length,ge?P.buffer.unshift(W):P.buffer.push(W),P.needReadable&&ie(E)),se(E,P)}function U(E,P){var W;return!i(P)&&typeof P!="string"&&P!==void 0&&!E.objectMode&&(W=new v("chunk",["string","Buffer","Uint8Array"],P)),W}$.prototype.isPaused=function(){return this._readableState.flowing===!1},$.prototype.setEncoding=function(E){w||(w=BW().StringDecoder);var P=new w(E);this._readableState.decoder=P,this._readableState.encoding=this._readableState.decoder.encoding;for(var W=this._readableState.buffer.head,ge="";W!==null;)ge+=P.write(W.data),W=W.next;return this._readableState.buffer.clear(),ge!==""&&this._readableState.buffer.push(ge),this._readableState.length=ge.length,this};var G=1073741824;function ee(E){return E>=G?E=G:(E--,E|=E>>>1,E|=E>>>2,E|=E>>>4,E|=E>>>8,E|=E>>>16,E++),E}function le(E,P){return E<=0||P.length===0&&P.ended?0:P.objectMode?1:E!==E?P.flowing&&P.length?P.buffer.head.data.length:P.length:(E>P.highWaterMark&&(P.highWaterMark=ee(E)),E<=P.length?E:P.ended?P.length:(P.needReadable=!0,0))}$.prototype.read=function(E){c("read",E),E=parseInt(E,10);var P=this._readableState,W=E;if(E!==0&&(P.emittedReadable=!1),E===0&&P.needReadable&&((P.highWaterMark!==0?P.length>=P.highWaterMark:P.length>0)||P.ended))return c("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?H(this):ie(this),null;if(E=le(E,P),E===0&&P.ended)return P.length===0&&H(this),null;var ge=P.needReadable;c("need readable",ge),(P.length===0||P.length-E<P.highWaterMark)&&(ge=!0,c("length less than watermark",ge)),P.ended||P.reading?(ge=!1,c("reading or ended",ge)):ge&&(c("do read"),P.reading=!0,P.sync=!0,P.length===0&&(P.needReadable=!0),this._read(P.highWaterMark),P.sync=!1,P.reading||(E=le(W,P)));var xe;return E>0?xe=oe(E,P):xe=null,xe===null?(P.needReadable=P.length<=P.highWaterMark,E=0):(P.length-=E,P.awaitDrain=0),P.length===0&&(P.ended||(P.needReadable=!0),W!==E&&P.ended&&H(this)),xe!==null&&this.emit("data",xe),xe};function V(E,P){if(c("onEofChunk"),!P.ended){if(P.decoder){var W=P.decoder.end();W&&W.length&&(P.buffer.push(W),P.length+=P.objectMode?1:W.length)}P.ended=!0,P.sync?ie(E):(P.needReadable=!1,P.emittedReadable||(P.emittedReadable=!0,re(E)))}}function ie(E){var P=E._readableState;c("emitReadable",P.needReadable,P.emittedReadable),P.needReadable=!1,P.emittedReadable||(c("emitReadable",P.flowing),P.emittedReadable=!0,process.nextTick(re,E))}function re(E){var P=E._readableState;c("emitReadable_",P.destroyed,P.length,P.ended),!P.destroyed&&(P.length||P.ended)&&(E.emit("readable"),P.emittedReadable=!1),P.needReadable=!P.flowing&&!P.ended&&P.length<=P.highWaterMark,Q(E)}function se(E,P){P.readingMore||(P.readingMore=!0,process.nextTick(Z,E,P))}function Z(E,P){for(;!P.reading&&!P.ended&&(P.length<P.highWaterMark||P.flowing&&P.length===0);){var W=P.length;if(c("maybeReadMore read 0"),E.read(0),W===P.length)break}P.readingMore=!1}$.prototype._read=function(E){R(this,new C("_read()"))},$.prototype.pipe=function(E,P){var W=this,ge=this._readableState;switch(ge.pipesCount){case 0:ge.pipes=E;break;case 1:ge.pipes=[ge.pipes,E];break;default:ge.pipes.push(E);break}ge.pipesCount+=1,c("pipe count=%d opts=%j",ge.pipesCount,P);var xe=(!P||P.end!==!1)&&E!==null&&E!==process.stderr,ce=xe?je:Fe;ge.endEmitted?process.nextTick(ce):W.once("end",ce),E.on("unpipe",ue);function ue(j,I){c("onunpipe"),j===W&&I&&I.hasUnpiped===!1&&(I.hasUnpiped=!0,Je())}function je(){c("onend"),E.end()}var he=q(W);E.on("drain",he);var Ke=!1;function Je(){c("cleanup"),E.removeListener("close",Xe),E.removeListener("finish",ut),E.removeListener("drain",he),E.removeListener("error",Ve),E.removeListener("unpipe",ue),W.removeListener("end",je),W.removeListener("end",Fe),W.removeListener("data",He),Ke=!0,ge.awaitDrain&&(!E._writableState||E._writableState.needDrain)&&he()}W.on("data",He);function He(j){c("ondata");var I=E.write(j);c("dest.write",I),I===!1&&((ge.pipesCount===1&&ge.pipes===E||ge.pipesCount>1&&ke(ge.pipes,E)!==-1)&&!Ke&&(c("false write response, pause",ge.awaitDrain),ge.awaitDrain++),W.pause())}function Ve(j){c("onerror",j),Fe(),E.removeListener("error",Ve),t(E,"error")===0&&R(E,j)}N(E,"error",Ve);function Xe(){E.removeListener("finish",ut),Fe()}E.once("close",Xe);function ut(){c("onfinish"),E.removeListener("close",Xe),Fe()}E.once("finish",ut);function Fe(){c("unpipe"),W.unpipe(E)}return E.emit("pipe",W),ge.flowing||(c("pipe resume"),W.resume()),E};function q(E){return function(){var P=E._readableState;c("pipeOnDrain",P.awaitDrain),P.awaitDrain&&P.awaitDrain--,P.awaitDrain===0&&t(E,"data")&&(P.flowing=!0,Q(E))}}$.prototype.unpipe=function(E){var P=this._readableState,W={hasUnpiped:!1};if(P.pipesCount===0)return this;if(P.pipesCount===1)return E&&E!==P.pipes?this:(E||(E=P.pipes),P.pipes=null,P.pipesCount=0,P.flowing=!1,E&&E.emit("unpipe",this,W),this);if(!E){var ge=P.pipes,xe=P.pipesCount;P.pipes=null,P.pipesCount=0,P.flowing=!1;for(var ce=0;ce<xe;ce++)ge[ce].emit("unpipe",this,{hasUnpiped:!1});return this}var ue=ke(P.pipes,E);return ue===-1?this:(P.pipes.splice(ue,1),P.pipesCount-=1,P.pipesCount===1&&(P.pipes=P.pipes[0]),E.emit("unpipe",this,W),this)},$.prototype.on=function(E,P){var W=r.prototype.on.call(this,E,P),ge=this._readableState;return E==="data"?(ge.readableListening=this.listenerCount("readable")>0,ge.flowing!==!1&&this.resume()):E==="readable"&&!ge.endEmitted&&!ge.readableListening&&(ge.readableListening=ge.needReadable=!0,ge.flowing=!1,ge.emittedReadable=!1,c("on readable",ge.length,ge.reading),ge.length?ie(this):ge.reading||process.nextTick(Y,this)),W},$.prototype.addListener=$.prototype.on,$.prototype.removeListener=function(E,P){var W=r.prototype.removeListener.call(this,E,P);return E==="readable"&&process.nextTick(ae,this),W},$.prototype.removeAllListeners=function(E){var P=r.prototype.removeAllListeners.apply(this,arguments);return(E==="readable"||E===void 0)&&process.nextTick(ae,this),P};function ae(E){var P=E._readableState;P.readableListening=E.listenerCount("readable")>0,P.resumeScheduled&&!P.paused?P.flowing=!0:E.listenerCount("data")>0&&E.resume()}function Y(E){c("readable nexttick read 0"),E.read(0)}$.prototype.resume=function(){var E=this._readableState;return E.flowing||(c("resume"),E.flowing=!E.readableListening,te(this,E)),E.paused=!1,this};function te(E,P){P.resumeScheduled||(P.resumeScheduled=!0,process.nextTick(de,E,P))}function de(E,P){c("resume",P.reading),P.reading||E.read(0),P.resumeScheduled=!1,E.emit("resume"),Q(E),P.flowing&&!P.reading&&E.read(0)}$.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Q(E){var P=E._readableState;for(c("flow",P.flowing);P.flowing&&E.read()!==null;);}$.prototype.wrap=function(E){var P=this,W=this._readableState,ge=!1;E.on("end",function(){if(c("wrapped end"),W.decoder&&!W.ended){var ue=W.decoder.end();ue&&ue.length&&P.push(ue)}P.push(null)}),E.on("data",function(ue){if(c("wrapped data"),W.decoder&&(ue=W.decoder.write(ue)),!(W.objectMode&&ue==null)&&!(!W.objectMode&&(!ue||!ue.length))){var je=P.push(ue);je||(ge=!0,E.pause())}});for(var xe in E)this[xe]===void 0&&typeof E[xe]=="function"&&(this[xe]=(function(ue){return function(){return E[ue].apply(E,arguments)}})(xe));for(var ce=0;ce<L.length;ce++)E.on(L[ce],this.emit.bind(this,L[ce]));return this._read=function(ue){c("wrapped _read",ue),ge&&(ge=!1,E.resume())},this},typeof Symbol=="function"&&($.prototype[Symbol.asyncIterator]=function(){return T===void 0&&(T=bUe()),T(this)}),Object.defineProperty($.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty($.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty($.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(E){this._readableState&&(this._readableState.flowing=E)}}),$._fromList=oe,Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function oe(E,P){if(P.length===0)return null;var W;return P.objectMode?W=P.buffer.shift():!E||E>=P.length?(P.decoder?W=P.buffer.join(""):P.buffer.length===1?W=P.buffer.first():W=P.buffer.concat(P.length),P.buffer.clear()):W=P.buffer.consume(E,P.decoder),W}function H(E){var P=E._readableState;c("endReadable",P.endEmitted),P.endEmitted||(P.ended=!0,process.nextTick(ve,P,E))}function ve(E,P){if(c("endReadableNT",E.endEmitted,E.length),!E.endEmitted&&E.length===0&&(E.endEmitted=!0,P.readable=!1,P.emit("end"),E.autoDestroy)){var W=P._writableState;(!W||W.autoDestroy&&W.finished)&&P.destroy()}}typeof Symbol=="function"&&($.from=function(E,P){return A===void 0&&(A=yUe()),A($,E,P)});function ke(E,P){for(var W=0,ge=E.length;W<ge;W++)if(E[W]===P)return W;return-1}return Ak}var Tk,YW;function JW(){if(YW)return Tk;YW=1,Tk=s;var e=cu().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,a=pu();function i(d,f){var g=this._transformState;g.transforming=!1;var y=g.writecb;if(y===null)return this.emit("error",new r);g.writechunk=null,g.writecb=null,f!=null&&this.push(f),y(d);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function s(d){if(!(this instanceof s))return new s(d);a.call(this,d),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",c)}function c(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,g){u(d,f,g)}):u(this,null,null)}s.prototype.push=function(d,f){return this._transformState.needTransform=!1,a.prototype.push.call(this,d,f)},s.prototype._transform=function(d,f,g){g(new t("_transform()"))},s.prototype._write=function(d,f,g){var y=this._transformState;if(y.writecb=g,y.writechunk=d,y.writeencoding=f,!y.transforming){var v=this._readableState;(y.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},s.prototype._read=function(d){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},s.prototype._destroy=function(d,f){a.prototype._destroy.call(this,d,function(g){f(g)})};function u(d,f,g){if(f)return d.emit("error",f);if(g!=null&&d.push(g),d._writableState.length)throw new o;if(d._transformState.transforming)throw new n;return d.push(null)}return Tk}var _k,KW;function vUe(){if(KW)return _k;KW=1,_k=t;var e=JW();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)},_k}var Ok,ZW;function xUe(){if(ZW)return Ok;ZW=1;var e;function t(g){var y=!1;return function(){y||(y=!0,g.apply(void 0,arguments))}}var r=cu().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function a(g){if(g)throw g}function i(g){return g.setHeader&&typeof g.abort=="function"}function s(g,y,v,x){x=t(x);var C=!1;g.on("close",function(){C=!0}),e===void 0&&(e=kk()),e(g,{readable:y,writable:v},function(w){if(w)return x(w);C=!0,x()});var S=!1;return function(w){if(!C&&!S){if(S=!0,i(g))return g.abort();if(typeof g.destroy=="function")return g.destroy();x(w||new o("pipe"))}}}function c(g){g()}function u(g,y){return g.pipe(y)}function d(g){return!g.length||typeof g[g.length-1]!="function"?a:g.pop()}function f(){for(var g=arguments.length,y=new Array(g),v=0;v<g;v++)y[v]=arguments[v];var x=d(y);if(Array.isArray(y[0])&&(y=y[0]),y.length<2)throw new n("streams");var C,S=y.map(function(w,T){var A=T<y.length-1,R=T>0;return s(w,A,R,function(L){C||(C=L),L&&S.forEach(c),!A&&(S.forEach(c),x(C))})});return y.reduce(u)}return Ok=f,Ok}var QW;function XW(){return QW||(QW=1,(function(e,t){t=e.exports=GW(),t.Stream=t,t.Readable=t,t.Writable=DW(),t.Duplex=pu(),t.Transform=JW(),t.PassThrough=vUe(),t.finished=kk(),t.pipeline=xUe()})(dk,dk.exports)),dk.exports}var eG;function tG(){if(eG)return ly;eG=1;var e=vW(),t=qw(),r=XW(),n=ly.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=ly.IncomingMessage=function(a,i,s,c){var u=this;if(r.Readable.call(u),u._mode=s,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){process.nextTick(function(){u.emit("close")})}),s==="fetch"){let x=function(){f.read().then(function(C){if(!u._destroyed){if(c(C.done),C.done){u.push(null);return}u.push(Buffer.from(C.value)),x()}}).catch(function(C){c(!0),u._destroyed||u.emit("error",C)})};if(u._fetchResponse=i,u.url=i.url,u.statusCode=i.status,u.statusMessage=i.statusText,i.headers.forEach(function(C,S){u.headers[S.toLowerCase()]=C,u.rawHeaders.push(S,C)}),e.writableStream){var d=new WritableStream({write:function(C){return c(!1),new Promise(function(S,w){u._destroyed?w():u.push(Buffer.from(C))?S():u._resumeFetch=S})},close:function(){c(!0),u._destroyed||u.push(null)},abort:function(C){c(!0),u._destroyed||u.emit("error",C)}});try{i.body.pipeTo(d).catch(function(C){c(!0),u._destroyed||u.emit("error",C)});return}catch{}}var f=i.body.getReader();x()}else{u._xhr=a,u._pos=0,u.url=a.responseURL,u.statusCode=a.status,u.statusMessage=a.statusText;var g=a.getAllResponseHeaders().split(/\r?\n/);if(g.forEach(function(x){var C=x.match(/^([^:]+):\s*(.*)/);if(C){var S=C[1].toLowerCase();S==="set-cookie"?(u.headers[S]===void 0&&(u.headers[S]=[]),u.headers[S].push(C[2])):u.headers[S]!==void 0?u.headers[S]+=", "+C[2]:u.headers[S]=C[2],u.rawHeaders.push(C[1],C[2])}}),u._charset="x-user-defined",!e.overrideMimeType){var y=u.rawHeaders["mime-type"];if(y){var v=y.match(/;\s*charset=([^;])(;|$)/);v&&(u._charset=v[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};return t(o,r.Readable),o.prototype._read=function(){var a=this,i=a._resumeFetch;i&&(a._resumeFetch=null,i())},o.prototype._onXHRProgress=function(a){var i=this,s=i._xhr,c=null;switch(i._mode){case"text":if(c=s.responseText,c.length>i._pos){var u=c.substr(i._pos);if(i._charset==="x-user-defined"){for(var d=Buffer.alloc(u.length),f=0;f<u.length;f++)d[f]=u.charCodeAt(f)&255;i.push(d)}else i.push(u,i._charset);i._pos=c.length}break;case"arraybuffer":if(s.readyState!==n.DONE||!s.response)break;c=s.response,i.push(Buffer.from(new Uint8Array(c)));break;case"moz-chunked-arraybuffer":if(c=s.response,s.readyState!==n.LOADING||!c)break;i.push(Buffer.from(new Uint8Array(c)));break;case"ms-stream":if(c=s.response,s.readyState!==n.LOADING)break;var g=new globalThis.MSStreamReader;g.onprogress=function(){g.result.byteLength>i._pos&&(i.push(Buffer.from(new Uint8Array(g.result.slice(i._pos)))),i._pos=g.result.byteLength)},g.onload=function(){a(!0),i.push(null)},g.readAsArrayBuffer(c);break}i._xhr.readyState===n.DONE&&i._mode!=="ms-stream"&&(a(!0),i.push(null))},ly}var rG;function wUe(){if(rG)return uk.exports;rG=1;var e=vW(),t=qw(),r=tG(),n=XW(),o=r.IncomingMessage,a=r.readyStates;function i(d,f){return e.fetch&&f?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&d?"arraybuffer":"text"}var s=uk.exports=function(d){var f=this;n.Writable.call(f),f._opts=d,f._body=[],f._headers={},d.auth&&f.setHeader("Authorization","Basic "+Buffer.from(d.auth).toString("base64")),Object.keys(d.headers).forEach(function(v){f.setHeader(v,d.headers[v])});var g,y=!0;if(d.mode==="disable-fetch"||"requestTimeout"in d&&!e.abortController)y=!1,g=!0;else if(d.mode==="prefer-streaming")g=!1;else if(d.mode==="allow-wrong-content-type")g=!e.overrideMimeType;else if(!d.mode||d.mode==="default"||d.mode==="prefer-fast")g=!0;else throw new Error("Invalid value for opts.mode");f._mode=i(g,y),f._fetchTimer=null,f._socketTimeout=null,f._socketTimer=null,f.on("finish",function(){f._onFinish()})};t(s,n.Writable),s.prototype.setHeader=function(d,f){var g=this,y=d.toLowerCase();u.indexOf(y)===-1&&(g._headers[y]={name:d,value:f})},s.prototype.getHeader=function(d){var f=this._headers[d.toLowerCase()];return f?f.value:null},s.prototype.removeHeader=function(d){var f=this;delete f._headers[d.toLowerCase()]},s.prototype._onFinish=function(){var d=this;if(!d._destroyed){var f=d._opts;"timeout"in f&&f.timeout!==0&&d.setTimeout(f.timeout);var g=d._headers,y=null;f.method!=="GET"&&f.method!=="HEAD"&&(y=new Blob(d._body,{type:(g["content-type"]||{}).value||""}));var v=[];if(Object.keys(g).forEach(function(w){var T=g[w].name,A=g[w].value;Array.isArray(A)?A.forEach(function(R){v.push([T,R])}):v.push([T,A])}),d._mode==="fetch"){var x=null;if(e.abortController){var C=new AbortController;x=C.signal,d._fetchAbortController=C,"requestTimeout"in f&&f.requestTimeout!==0&&(d._fetchTimer=globalThis.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},f.requestTimeout))}globalThis.fetch(d._opts.url,{method:d._opts.method,headers:v,body:y||void 0,mode:"cors",credentials:f.withCredentials?"include":"same-origin",signal:x}).then(function(w){d._fetchResponse=w,d._resetTimers(!1),d._connect()},function(w){d._resetTimers(!0),d._destroyed||d.emit("error",w)})}else{var S=d._xhr=new globalThis.XMLHttpRequest;try{S.open(d._opts.method,d._opts.url,!0)}catch(w){process.nextTick(function(){d.emit("error",w)});return}"responseType"in S&&(S.responseType=d._mode),"withCredentials"in S&&(S.withCredentials=!!f.withCredentials),d._mode==="text"&&"overrideMimeType"in S&&S.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in f&&(S.timeout=f.requestTimeout,S.ontimeout=function(){d.emit("requestTimeout")}),v.forEach(function(w){S.setRequestHeader(w[0],w[1])}),d._response=null,S.onreadystatechange=function(){switch(S.readyState){case a.LOADING:case a.DONE:d._onXHRProgress();break}},d._mode==="moz-chunked-arraybuffer"&&(S.onprogress=function(){d._onXHRProgress()}),S.onerror=function(){d._destroyed||(d._resetTimers(!0),d.emit("error",new Error("XHR error")))};try{S.send(y)}catch(w){process.nextTick(function(){d.emit("error",w)});return}}}};function c(d){try{var f=d.status;return f!==null&&f!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var d=this;d._resetTimers(!1),!(!c(d._xhr)||d._destroyed)&&(d._response||d._connect(),d._response._onXHRProgress(d._resetTimers.bind(d)))},s.prototype._connect=function(){var d=this;d._destroyed||(d._response=new o(d._xhr,d._fetchResponse,d._mode,d._resetTimers.bind(d)),d._response.on("error",function(f){d.emit("error",f)}),d.emit("response",d._response))},s.prototype._write=function(d,f,g){var y=this;y._body.push(d),g()},s.prototype._resetTimers=function(d){var f=this;globalThis.clearTimeout(f._socketTimer),f._socketTimer=null,d?(globalThis.clearTimeout(f._fetchTimer),f._fetchTimer=null):f._socketTimeout&&(f._socketTimer=globalThis.setTimeout(function(){f.emit("timeout")},f._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(d){var f=this;f._destroyed=!0,f._resetTimers(!0),f._response&&(f._response._destroyed=!0),f._xhr?f._xhr.abort():f._fetchAbortController&&f._fetchAbortController.abort(),d&&f.emit("error",d)},s.prototype.end=function(d,f,g){var y=this;typeof d=="function"&&(g=d,d=void 0),n.Writable.prototype.end.call(y,d,f,g)},s.prototype.setTimeout=function(d,f){var g=this;f&&g.once("timeout",f),g._socketTimeout=d,g._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var u=["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 uk.exports}var Rk,nG;function SUe(){if(nG)return Rk;nG=1,Rk=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n<arguments.length;n++){var o=arguments[n];for(var a in o)e.call(o,a)&&(r[a]=o[a])}return r}return Rk}var oG,aG;function CUe(){return aG||(aG=1,oG={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"}),oG}var iG;function kUe(){return iG||(iG=1,(function(e){var t=wUe(),r=tG(),n=SUe(),o=CUe(),a=p3(),i=e;i.request=function(s,c){typeof s=="string"?s=a.parse(s):s=n(s);var u=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",d=s.protocol||u,f=s.hostname||s.host,g=s.port,y=s.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),s.url=(f?d+"//"+f:"")+(g?":"+g:"")+y,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var v=new t(s);return c&&v.on("response",c),v},i.get=function(s,c){var u=i.request(s,c);return u.end(),u},i.ClientRequest=t,i.IncomingMessage=r.IncomingMessage,i.Agent=function(){},i.Agent.defaultMaxSockets=4,i.globalAgent=new i.Agent,i.STATUS_CODES=o,i.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"]})(gW)),gW}var sG,lG;function EUe(){return lG||(lG=1,sG={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},kUe().STATUS_CODES)}),sG}const AUe="7.0.8",TUe={version:AUe};var Lk,cG;function _Ue(){if(cG)return Lk;cG=1;const e=db,t=p3(),r=GDe(),n=db,o=eze,a=Hb(),i=a.jptr,s=V3().isRef,c=Wb().clone,u=Wb().circularClone,d=G3().recurse,f=cUe(),g=pUe(),y=hW(),v=EUe().statusCodes,x=TUe.version,C="3.0.0";let S;class w extends Error{constructor(P){super(P),this.name="S2OError"}}function T(E,P){let W=new w(E);if(W.options=P,P.promise)P.promise.reject(W);else throw W}function A(E,P,W){W.warnOnly?P[W.warnProperty||"x-s2o-warning"]=E:T(E,W)}function R(E,P,W){if(E.nullable&&W.patches++,E.discriminator&&typeof E.discriminator=="string"&&(E.discriminator={propertyName:E.discriminator}),E.items&&Array.isArray(E.items)&&(E.items.length===0?E.items={}:E.items.length===1?E.items=E.items[0]:E.items={anyOf:E.items}),E.type&&Array.isArray(E.type))if(W.patch){if(W.patches++,E.type.length===0)delete E.type;else{E.oneOf||(E.oneOf=[]);for(let ge of E.type){let xe={};if(ge==="null")E.nullable=!0;else{xe.type=ge;for(let ce of y.arrayProperties)typeof E.prop<"u"&&(xe[ce]=E[ce],delete E[ce])}xe.type&&E.oneOf.push(xe)}delete E.type,E.oneOf.length===0?delete E.oneOf:E.oneOf.length<2&&(E.type=E.oneOf[0].type,Object.keys(E.oneOf[0]).length>1&&A("Lost properties from oneOf",E,W),delete E.oneOf)}E.type&&Array.isArray(E.type)&&E.type.length===1&&(E.type=E.type[0])}else T("(Patchable) schema type must not be an array",W);E.type&&E.type==="null"&&(delete E.type,E.nullable=!0),E.type==="array"&&!E.items&&(E.items={}),E.type==="file"&&(E.type="string",E.format="binary"),typeof E.required=="boolean"&&(E.required&&E.name&&(typeof P.required>"u"&&(P.required=[]),Array.isArray(P.required)&&P.required.push(E.name)),delete E.required),E.xml&&typeof E.xml.namespace=="string"&&(E.xml.namespace||delete E.xml.namespace),typeof E.allowEmptyValue<"u"&&(W.patches++,delete E.allowEmptyValue)}function L(E,P){if(E["x-required"]&&Array.isArray(E["x-required"])&&(E.required||(E.required=[]),E.required=E.required.concat(E["x-required"]),delete E["x-required"]),E["x-anyOf"]&&(E.anyOf=E["x-anyOf"],delete E["x-anyOf"]),E["x-oneOf"]&&(E.oneOf=E["x-oneOf"],delete E["x-oneOf"]),E["x-not"]&&(E.not=E["x-not"],delete E["x-not"]),typeof E["x-nullable"]=="boolean"&&(E.nullable=E["x-nullable"],delete E["x-nullable"]),typeof E["x-discriminator"]=="object"&&typeof E["x-discriminator"].propertyName=="string"){E.discriminator=E["x-discriminator"],delete E["x-discriminator"];for(let W in E.discriminator.mapping){let ge=E.discriminator.mapping[W];ge.startsWith("#/definitions/")&&(E.discriminator.mapping[W]=ge.replace("#/definitions/","#/components/schemas/"))}}}function N(E,P){g.walkSchema(E,{},{},function(W,ge,xe){L(W),R(W,ge,P)})}function _(E){return E.indexOf("#")>=0?E=E.split("#")[1].split("/").pop():E=E.split("/").pop().split(".")[0],encodeURIComponent(y.sanitise(E))}function $(E,P,W){let ge=W.payload.options;if(s(E,P)){if(!E[P].startsWith("#/components/")){if(E[P]==="#/consumes")delete E[P],W.parent[W.pkey]=c(ge.openapi.consumes);else if(E[P]==="#/produces")delete E[P],W.parent[W.pkey]=c(ge.openapi.produces);else if(E[P].startsWith("#/definitions/")){let xe=E[P].replace("#/definitions/","").split("/");const ce=a.jpunescape(xe[0]);let ue=S.schemas[decodeURIComponent(ce)];ue?xe[0]=ue:A("Could not resolve reference "+E[P],E,ge),E[P]="#/components/schemas/"+xe.join("/")}else if(E[P].startsWith("#/parameters/"))E[P]="#/components/parameters/"+y.sanitise(E[P].replace("#/parameters/",""));else if(E[P].startsWith("#/responses/"))E[P]="#/components/responses/"+y.sanitise(E[P].replace("#/responses/",""));else if(E[P].startsWith("#")){let xe=c(a.jptr(ge.openapi,E[P]));if(xe===!1)A("direct $ref not found "+E[P],E,ge);else if(ge.refmap[E[P]])E[P]=ge.refmap[E[P]];else{let ce=E[P];ce=ce.replace("/properties/headers/",""),ce=ce.replace("/properties/responses/",""),ce=ce.replace("/properties/parameters/",""),ce=ce.replace("/properties/schemas/","");let ue="schemas",je=ce.lastIndexOf("/schema");if(ue=ce.indexOf("/headers/")>je?"headers":ce.indexOf("/responses/")>je?"responses":ce.indexOf("/example")>je?"examples":ce.indexOf("/x-")>je?"extensions":ce.indexOf("/parameters/")>je?"parameters":"schemas",ue==="schemas"&&N(xe,ge),ue!=="responses"&&ue!=="extensions"){let he=ue.substr(0,ue.length-1);he==="parameter"&&xe.name&&xe.name===y.sanitise(xe.name)&&(he=encodeURIComponent(xe.name));let Ke=1;for(E["x-miro"]&&(he=_(E["x-miro"]),Ke="");a.jptr(ge.openapi,"#/components/"+ue+"/"+he+Ke);)Ke=Ke===""?2:++Ke;let Je="#/components/"+ue+"/"+he+Ke,He="";ue==="examples"&&(xe={value:xe},He="/value"),a.jptr(ge.openapi,Je,xe),ge.refmap[E[P]]=Je+He,E[P]=Je+He}}}}if(delete E["x-miro"],Object.keys(E).length>1){const xe=E[P],ce=W.path.indexOf("/schema")>=0;ge.refSiblings==="preserve"||(ce&&ge.refSiblings==="allOf"?(delete E.$ref,W.parent[W.pkey]={allOf:[{$ref:xe},E]}):W.parent[W.pkey]={$ref:xe})}}if(P==="x-ms-odata"&&typeof E[P]=="string"&&E[P].startsWith("#/")){let xe=E[P].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ce=S.schemas[decodeURIComponent(xe[0])];ce?xe[0]=ce:A("Could not resolve reference "+E[P],E,ge),E[P]="#/components/schemas/"+xe.join("/")}}function z(E,P){for(let W in P.refmap)a.jptr(E,W,{$ref:P.refmap[W]})}function F(E){for(let P in E)for(let W in E[P]){let ge=y.sanitise(W);W!==ge&&(E[P][ge]=E[P][W],delete E[P][W])}}function U(E,P){if(E.type==="basic"&&(E.type="http",E.scheme="basic"),E.type==="oauth2"){let W={},ge=E.flow;E.flow==="application"&&(ge="clientCredentials"),E.flow==="accessCode"&&(ge="authorizationCode"),typeof E.authorizationUrl<"u"&&(W.authorizationUrl=E.authorizationUrl.split("?")[0].trim()||"/"),typeof E.tokenUrl=="string"&&(W.tokenUrl=E.tokenUrl.split("?")[0].trim()||"/"),W.scopes=E.scopes||{},E.flows={},E.flows[ge]=W,delete E.flow,delete E.authorizationUrl,delete E.tokenUrl,delete E.scopes,typeof E.name<"u"&&(P.patch?(P.patches++,delete E.name):T("(Patchable) oauth2 securitySchemes should not have name property",P))}}function G(E){return E&&!E["x-s2o-delete"]}function ee(E,P){if(E.$ref)E.$ref=E.$ref.replace("#/responses/","#/components/responses/");else{E.type&&!E.schema&&(E.schema={}),E.type&&(E.schema.type=E.type),E.items&&E.items.type!=="array"&&(E.items.collectionFormat!==E.collectionFormat&&A("Nested collectionFormats are not supported",E,P),delete E.items.collectionFormat),E.type==="array"?(E.collectionFormat==="ssv"?A("collectionFormat:ssv is no longer supported for headers",E,P):E.collectionFormat==="pipes"?A("collectionFormat:pipes is no longer supported for headers",E,P):E.collectionFormat==="multi"?E.explode=!0:E.collectionFormat==="tsv"?(A("collectionFormat:tsv is no longer supported",E,P),E["x-collectionFormat"]="tsv"):E.style="simple",delete E.collectionFormat):E.collectionFormat&&(P.patch?(P.patches++,delete E.collectionFormat):T("(Patchable) collectionFormat is only applicable to header.type array",P)),delete E.type;for(let W of y.parameterTypeProperties)typeof E[W]<"u"&&(E.schema[W]=E[W],delete E[W]);for(let W of y.arrayProperties)typeof E[W]<"u"&&(E.schema[W]=E[W],delete E[W])}}function le(E,P){if(E.$ref.indexOf("#/parameters/")>=0){let W=E.$ref.split("#/parameters/");E.$ref=W[0]+"#/components/parameters/"+y.sanitise(W[1])}E.$ref.indexOf("#/definitions/")>=0&&A("Definition used as parameter",E,P)}function V(E,P){let W={};for(let ge of Object.keys(E))W[ge]=E[ge],ge==="parameters"&&(W.requestBody={},P.rbname&&(W[P.rbname]=""));return W.requestBody={},W}function ie(E,P,W,ge,xe,ce,ue){let je={},he=!0,Ke;if(P&&P.consumes&&typeof P.consumes=="string")if(ue.patch)ue.patches++,P.consumes=[P.consumes];else return T("(Patchable) operation.consumes must be an array",ue);Array.isArray(ce.consumes)||delete ce.consumes;let Je=((P?P.consumes:null)||ce.consumes||[]).filter(y.uniqueOnly);if(E&&E.$ref&&typeof E.$ref=="string"){le(E,ue);let He=decodeURIComponent(E.$ref.replace("#/components/parameters/","")),Ve=!1,Xe=ce.components.parameters[He];if((!Xe||Xe["x-s2o-delete"])&&E.$ref.startsWith("#/")&&(E["x-s2o-delete"]=!0,Ve=!0),Ve){let ut=E.$ref,Fe=i(ce,E.$ref);!Fe&&ut.startsWith("#/")?A("Could not resolve reference "+ut,E,ue):Fe&&(E=Fe)}}if(E&&(E.name||E.in)){typeof E["x-deprecated"]=="boolean"&&(E.deprecated=E["x-deprecated"],delete E["x-deprecated"]),typeof E["x-example"]<"u"&&(E.example=E["x-example"],delete E["x-example"]),E.in!=="body"&&!E.type&&(ue.patch?(ue.patches++,E.type="string"):T("(Patchable) parameter.type is mandatory for non-body parameters",ue)),E.type&&typeof E.type=="object"&&E.type.$ref&&(E.type=i(ce,E.type.$ref)),E.type==="file"&&(E["x-s2o-originalType"]=E.type,Ke=E.type),E.description&&typeof E.description=="object"&&E.description.$ref&&(E.description=i(ce,E.description.$ref)),E.description===null&&delete E.description;let He=E.collectionFormat;if(E.type==="array"&&!He&&(He="csv"),He&&(E.type!=="array"&&(ue.patch?(ue.patches++,delete E.collectionFormat):T("(Patchable) collectionFormat is only applicable to param.type array",ue)),He==="csv"&&(E.in==="query"||E.in==="cookie")&&(E.style="form",E.explode=!1),He==="csv"&&(E.in==="path"||E.in==="header")&&(E.style="simple"),He==="ssv"&&(E.in==="query"?E.style="spaceDelimited":A("collectionFormat:ssv is no longer supported except for in:query parameters",E,ue)),He==="pipes"&&(E.in==="query"?E.style="pipeDelimited":A("collectionFormat:pipes is no longer supported except for in:query parameters",E,ue)),He==="multi"&&(E.explode=!0),He==="tsv"&&(A("collectionFormat:tsv is no longer supported",E,ue),E["x-collectionFormat"]="tsv"),delete E.collectionFormat),E.type&&E.type!=="body"&&E.in!=="formData")if(E.items&&E.schema)A("parameter has array,items and schema",E,ue);else{E.schema&&ue.patches++,(!E.schema||typeof E.schema!="object")&&(E.schema={}),E.schema.type=E.type,E.items&&(E.schema.items=E.items,delete E.items,d(E.schema.items,null,function(Ve,Xe,ut){Xe==="collectionFormat"&&typeof Ve[Xe]=="string"&&(He&&Ve[Xe]!==He&&A("Nested collectionFormats are not supported",E,ue),delete Ve[Xe])}));for(let Ve of y.parameterTypeProperties)typeof E[Ve]<"u"&&(E.schema[Ve]=E[Ve]),delete E[Ve]}E.schema&&N(E.schema,ue),E["x-ms-skip-url-encoding"]&&E.in==="query"&&(E.allowReserved=!0,delete E["x-ms-skip-url-encoding"])}if(E&&E.in==="formData"){he=!1,je.content={};let He="application/x-www-form-urlencoded";if(Je.length&&Je.indexOf("multipart/form-data")>=0&&(He="multipart/form-data"),je.content[He]={},E.schema)je.content[He].schema=E.schema,E.schema.$ref&&(je["x-s2o-name"]=decodeURIComponent(E.schema.$ref.replace("#/components/schemas/","")));else{je.content[He].schema={},je.content[He].schema.type="object",je.content[He].schema.properties={},je.content[He].schema.properties[E.name]={};let Ve=je.content[He].schema,Xe=je.content[He].schema.properties[E.name];E.description&&(Xe.description=E.description),E.example&&(Xe.example=E.example),E.type&&(Xe.type=E.type);for(let ut of y.parameterTypeProperties)typeof E[ut]<"u"&&(Xe[ut]=E[ut]);E.required===!0&&(Ve.required||(Ve.required=[]),Ve.required.push(E.name),je.required=!0),typeof E.default<"u"&&(Xe.default=E.default),Xe.properties&&(Xe.properties=E.properties),E.allOf&&(Xe.allOf=E.allOf),E.type==="array"&&E.items&&(Xe.items=E.items,Xe.items.collectionFormat&&delete Xe.items.collectionFormat),(Ke==="file"||E["x-s2o-originalType"]==="file")&&(Xe.type="string",Xe.format="binary"),re(E,Xe)}}else E&&E.type==="file"&&(E.required&&(je.required=E.required),je.content={},je.content["application/octet-stream"]={},je.content["application/octet-stream"].schema={},je.content["application/octet-stream"].schema.type="string",je.content["application/octet-stream"].schema.format="binary",re(E,je));if(E&&E.in==="body"){je.content={},E.name&&(je["x-s2o-name"]=(P&&P.operationId?y.sanitiseAll(P.operationId):"")+("_"+E.name).toCamelCase()),E.description&&(je.description=E.description),E.required&&(je.required=E.required),P&&ue.rbname&&E.name&&(P[ue.rbname]=E.name),E.schema&&E.schema.$ref?je["x-s2o-name"]=decodeURIComponent(E.schema.$ref.replace("#/components/schemas/","")):E.schema&&E.schema.type==="array"&&E.schema.items&&E.schema.items.$ref&&(je["x-s2o-name"]=decodeURIComponent(E.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),Je.length||Je.push("application/json");for(let He of Je)je.content[He]={},je.content[He].schema=c(E.schema||{}),N(je.content[He].schema,ue);re(E,je)}if(Object.keys(je).length>0&&(E["x-s2o-delete"]=!0,P))if(P.requestBody&&he){P.requestBody["x-s2o-overloaded"]=!0;let He=P.operationId||xe;A("Operation "+He+" has multiple requestBodies",P,ue)}else P.requestBody||(P=W[ge]=V(P,ue)),P.requestBody.content&&P.requestBody.content["multipart/form-data"]&&P.requestBody.content["multipart/form-data"].schema&&P.requestBody.content["multipart/form-data"].schema.properties&&je.content["multipart/form-data"]&&je.content["multipart/form-data"].schema&&je.content["multipart/form-data"].schema.properties?(P.requestBody.content["multipart/form-data"].schema.properties=Object.assign(P.requestBody.content["multipart/form-data"].schema.properties,je.content["multipart/form-data"].schema.properties),P.requestBody.content["multipart/form-data"].schema.required=(P.requestBody.content["multipart/form-data"].schema.required||[]).concat(je.content["multipart/form-data"].schema.required||[]),P.requestBody.content["multipart/form-data"].schema.required.length||delete P.requestBody.content["multipart/form-data"].schema.required):P.requestBody.content&&P.requestBody.content["application/x-www-form-urlencoded"]&&P.requestBody.content["application/x-www-form-urlencoded"].schema&&P.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&je.content["application/x-www-form-urlencoded"]&&je.content["application/x-www-form-urlencoded"].schema&&je.content["application/x-www-form-urlencoded"].schema.properties?(P.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(P.requestBody.content["application/x-www-form-urlencoded"].schema.properties,je.content["application/x-www-form-urlencoded"].schema.properties),P.requestBody.content["application/x-www-form-urlencoded"].schema.required=(P.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(je.content["application/x-www-form-urlencoded"].schema.required||[]),P.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete P.requestBody.content["application/x-www-form-urlencoded"].schema.required):(P.requestBody=Object.assign(P.requestBody,je),P.requestBody["x-s2o-name"]||(P.requestBody.schema&&P.requestBody.schema.$ref?P.requestBody["x-s2o-name"]=decodeURIComponent(P.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):P.operationId&&(P.requestBody["x-s2o-name"]=y.sanitiseAll(P.operationId))));if(E&&!E["x-s2o-delete"]){delete E.type;for(let He of y.parameterTypeProperties)delete E[He];E.in==="path"&&(typeof E.required>"u"||E.required!==!0)&&(ue.patch?(ue.patches++,E.required=!0):T("(Patchable) path parameters must be required:true ["+E.name+" in "+xe+"]",ue))}return P}function re(E,P){for(let W in E)W.startsWith("x-")&&!W.startsWith("x-s2o")&&(P[W]=E[W])}function se(E,P,W,ge,xe){if(!E)return!1;if(E.$ref&&typeof E.$ref=="string")E.$ref.indexOf("#/definitions/")>=0?A("definition used as response: "+E.$ref,E,xe):E.$ref.startsWith("#/responses/")&&(E.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(E.$ref.replace("#/responses/",""))));else{if((typeof E.description>"u"||E.description===null||E.description===""&&xe.patch)&&(xe.patch?typeof E=="object"&&!Array.isArray(E)&&(xe.patches++,E.description=v[E]||""):T("(Patchable) response.description is mandatory",xe)),typeof E.schema<"u"){if(N(E.schema,xe),E.schema.$ref&&typeof E.schema.$ref=="string"&&E.schema.$ref.startsWith("#/responses/")&&(E.schema.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(E.schema.$ref.replace("#/responses/","")))),W&&W.produces&&typeof W.produces=="string")if(xe.patch)xe.patches++,W.produces=[W.produces];else return T("(Patchable) operation.produces must be an array",xe);ge.produces&&!Array.isArray(ge.produces)&&delete ge.produces;let ce=((W?W.produces:null)||ge.produces||[]).filter(y.uniqueOnly);ce.length||ce.push("*/*"),E.content={};for(let ue of ce){if(E.content[ue]={},E.content[ue].schema=c(E.schema),E.examples&&E.examples[ue]){let je={};je.value=E.examples[ue],E.content[ue].examples={},E.content[ue].examples.response=je,delete E.examples[ue]}E.content[ue].schema.type==="file"&&(E.content[ue].schema={type:"string",format:"binary"})}delete E.schema}for(let ce in E.examples)E.content||(E.content={}),E.content[ce]||(E.content[ce]={}),E.content[ce].examples={},E.content[ce].examples.response={},E.content[ce].examples.response.value=E.examples[ce];if(delete E.examples,E.headers)for(let ce in E.headers)ce.toLowerCase()==="status code"?xe.patch?(xe.patches++,delete E.headers[ce]):T('(Patchable) "Status Code" is not a valid header',xe):ee(E.headers[ce],xe)}}function Z(E,P,W,ge,xe){for(let ce in E){let ue=E[ce];ue&&ue["x-trace"]&&typeof ue["x-trace"]=="object"&&(ue.trace=ue["x-trace"],delete ue["x-trace"]),ue&&ue["x-summary"]&&typeof ue["x-summary"]=="string"&&(ue.summary=ue["x-summary"],delete ue["x-summary"]),ue&&ue["x-description"]&&typeof ue["x-description"]=="string"&&(ue.description=ue["x-description"],delete ue["x-description"]),ue&&ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]);for(let je in ue)if(y.httpMethods.indexOf(je)>=0||je==="x-amazon-apigateway-any-method"){let he=ue[je];if(he&&he.parameters&&Array.isArray(he.parameters)){if(ue.parameters)for(let Ke of ue.parameters)typeof Ke.$ref=="string"&&(le(Ke,W),Ke=i(xe,Ke.$ref)),!he.parameters.find(function(Je,He,Ve){return Je.name===Ke.name&&Je.in===Ke.in})&&(Ke.in==="formData"||Ke.in==="body"||Ke.type==="file")&&(he=ie(Ke,he,ue,je,ce,xe,W),W.rbname&&he[W.rbname]===""&&delete he[W.rbname]);for(let Ke of he.parameters)he=ie(Ke,he,ue,je,je+":"+ce,xe,W);W.rbname&&he[W.rbname]===""&&delete he[W.rbname],W.debug||he.parameters&&(he.parameters=he.parameters.filter(G))}if(he&&he.security&&F(he.security),typeof he=="object"){if(!he.responses){let Ke={};Ke.description="Default response",he.responses={default:Ke}}for(let Ke in he.responses){let Je=he.responses[Ke];se(Je,Ke,he,xe,W)}}if(he&&he["x-servers"]&&Array.isArray(he["x-servers"]))he.servers=he["x-servers"],delete he["x-servers"];else if(he&&he.schemes&&he.schemes.length){for(let Ke of he.schemes)if((!xe.schemes||xe.schemes.indexOf(Ke)<0)&&(he.servers||(he.servers=[]),Array.isArray(xe.servers)))for(let Je of xe.servers){let He=c(Je),Ve=t.parse(He.url);Ve.protocol=Ke,He.url=Ve.format(),he.servers.push(He)}}if(W.debug&&(he["x-s2o-consumes"]=he.consumes||[],he["x-s2o-produces"]=he.produces||[]),he){if(delete he.consumes,delete he.produces,delete he.schemes,he["x-ms-examples"]){for(let Ke in he["x-ms-examples"]){let Je=he["x-ms-examples"][Ke],He=y.sanitiseAll(Ke);if(Je.parameters)for(let Ve in Je.parameters){let Xe=Je.parameters[Ve];for(let ut of(he.parameters||[]).concat(ue.parameters||[]))ut.$ref&&(ut=a.jptr(xe,ut.$ref)),ut.name===Ve&&!ut.example&&(ut.examples||(ut.examples={}),ut.examples[Ke]={value:Xe})}if(Je.responses)for(let Ve in Je.responses){if(Je.responses[Ve].headers)for(let Xe in Je.responses[Ve].headers){let ut=Je.responses[Ve].headers[Xe];for(let Fe in he.responses[Ve].headers)if(Fe===Xe){let j=he.responses[Ve].headers[Fe];j.example=ut}}if(Je.responses[Ve].body&&(xe.components.examples[He]={value:c(Je.responses[Ve].body)},he.responses[Ve]&&he.responses[Ve].content))for(let Xe in he.responses[Ve].content){let ut=he.responses[Ve].content[Xe];ut.examples||(ut.examples={}),ut.examples[Ke]={$ref:"#/components/examples/"+He}}}}delete he["x-ms-examples"]}if(he.parameters&&he.parameters.length===0&&delete he.parameters,he.requestBody){let Ke=he.operationId?y.sanitiseAll(he.operationId):y.sanitiseAll(je+ce).toCamelCase(),Je=y.sanitise(he.requestBody["x-s2o-name"]||Ke||"");delete he.requestBody["x-s2o-name"];let He=JSON.stringify(he.requestBody),Ve=y.hash(He);if(!ge[Ve]){let ut={};ut.name=Je,ut.body=he.requestBody,ut.refs=[],ge[Ve]=ut}let Xe="#/"+P+"/"+encodeURIComponent(a.jpescape(ce))+"/"+je+"/requestBody";ge[Ve].refs.push(Xe)}}}if(ue&&ue.parameters){for(let je in ue.parameters){let he=ue.parameters[je];ie(he,null,ue,null,ce,xe,W)}!W.debug&&Array.isArray(ue.parameters)&&(ue.parameters=ue.parameters.filter(G))}}}function q(E,P){let W={};S={schemas:{}},E.security&&F(E.security);for(let xe in E.components.securitySchemes){let ce=y.sanitise(xe);xe!==ce&&(E.components.securitySchemes[ce]&&T("Duplicate sanitised securityScheme name "+ce,P),E.components.securitySchemes[ce]=E.components.securitySchemes[xe],delete E.components.securitySchemes[xe]),U(E.components.securitySchemes[ce],P)}for(let xe in E.components.schemas){let ce=y.sanitiseAll(xe),ue="";if(xe!==ce){for(;E.components.schemas[ce+ue];)ue=ue?++ue:2;E.components.schemas[ce+ue]=E.components.schemas[xe],delete E.components.schemas[xe]}S.schemas[xe]=ce+ue,N(E.components.schemas[ce+ue],P)}P.refmap={},d(E,{payload:{options:P}},$),z(E,P);for(let xe in E.components.parameters){let ce=y.sanitise(xe);xe!==ce&&(E.components.parameters[ce]&&T("Duplicate sanitised parameter name "+ce,P),E.components.parameters[ce]=E.components.parameters[xe],delete E.components.parameters[xe]);let ue=E.components.parameters[ce];ie(ue,null,null,null,ce,E,P)}for(let xe in E.components.responses){let ce=y.sanitise(xe);xe!==ce&&(E.components.responses[ce]&&T("Duplicate sanitised response name "+ce,P),E.components.responses[ce]=E.components.responses[xe],delete E.components.responses[xe]);let ue=E.components.responses[ce];if(se(ue,ce,null,E,P),ue.headers)for(let je in ue.headers)je.toLowerCase()==="status code"?P.patch?(P.patches++,delete ue.headers[je]):T('(Patchable) "Status Code" is not a valid header',P):ee(ue.headers[je],P)}for(let xe in E.components.requestBodies){let ce=E.components.requestBodies[xe],ue=JSON.stringify(ce),je=y.hash(ue),he={};he.name=xe,he.body=ce,he.refs=[],W[je]=he}if(Z(E.paths,"paths",P,W,E),E["x-ms-paths"]&&Z(E["x-ms-paths"],"x-ms-paths",P,W,E),!P.debug)for(let xe in E.components.parameters)E.components.parameters[xe]["x-s2o-delete"]&&delete E.components.parameters[xe];P.debug&&(E["x-s2o-consumes"]=E.consumes||[],E["x-s2o-produces"]=E.produces||[]),delete E.consumes,delete E.produces,delete E.schemes;let ge=[];if(E.components.requestBodies={},!P.resolveInternal){let xe=1;for(let ce in W){let ue=W[ce];if(ue.refs.length>1){let je="";for(ue.name||(ue.name="requestBody",je=xe++);ge.indexOf(ue.name+je)>=0;)je=je?++je:2;ue.name=ue.name+je,ge.push(ue.name),E.components.requestBodies[ue.name]=c(ue.body);for(let he in ue.refs){let Ke={};Ke.$ref="#/components/requestBodies/"+ue.name,a.jptr(E,ue.refs[he],Ke)}}}}return E.components.responses&&Object.keys(E.components.responses).length===0&&delete E.components.responses,E.components.parameters&&Object.keys(E.components.parameters).length===0&&delete E.components.parameters,E.components.examples&&Object.keys(E.components.examples).length===0&&delete E.components.examples,E.components.requestBodies&&Object.keys(E.components.requestBodies).length===0&&delete E.components.requestBodies,E.components.securitySchemes&&Object.keys(E.components.securitySchemes).length===0&&delete E.components.securitySchemes,E.components.headers&&Object.keys(E.components.headers).length===0&&delete E.components.headers,E.components.schemas&&Object.keys(E.components.schemas).length===0&&delete E.components.schemas,E.components&&Object.keys(E.components).length===0&&delete E.components,E}function ae(E){return!E||!E.url||typeof E.url!="string"||(E.url=E.url.split("{{").join("{"),E.url=E.url.split("}}").join("}"),E.url.replace(/\{(.+?)\}/g,function(P,W){E.variables||(E.variables={}),E.variables[W]={default:"unknown"}})),E}function Y(E,P,W){if(typeof E.info>"u"||E.info===null)if(P.patch)P.patches++,E.info={version:"",title:""};else return W(new w("(Patchable) info object is mandatory"));if(typeof E.info!="object"||Array.isArray(E.info))return W(new w("info must be an object"));if(typeof E.info.title>"u"||E.info.title===null)if(P.patch)P.patches++,E.info.title="";else return W(new w("(Patchable) info.title cannot be null"));if(typeof E.info.version>"u"||E.info.version===null)if(P.patch)P.patches++,E.info.version="";else return W(new w("(Patchable) info.version cannot be null"));if(typeof E.info.version!="string")if(P.patch)P.patches++,E.info.version=E.info.version.toString();else return W(new w("(Patchable) info.version must be a string"));if(typeof E.info.logo<"u")if(P.patch)P.patches++,E.info["x-logo"]=E.info.logo,delete E.info.logo;else return W(new w("(Patchable) info should not have logo property"));if(typeof E.info.termsOfService<"u"){if(E.info.termsOfService===null)if(P.patch)P.patches++,E.info.termsOfService="";else return W(new w("(Patchable) info.termsOfService cannot be null"));try{new URL(E.info.termsOfService)}catch{if(P.patch)P.patches++,delete E.info.termsOfService;else return W(new w("(Patchable) info.termsOfService must be a URL"))}}}function te(E,P,W){if(typeof E.paths>"u")if(P.patch)P.patches++,E.paths={};else return W(new w("(Patchable) paths object is mandatory"))}function de(E,P){const W=new WeakSet;d(E,{identityDetection:!0},function(ge,xe,ce){typeof ge[xe]=="object"&&ge[xe]!==null&&(W.has(ge[xe])?P.anchors?ge[xe]=c(ge[xe]):T("YAML anchor or merge key at "+ce.path,P):W.add(ge[xe]))})}function Q(E,P,W){return r(W,new Promise(function(ge,xe){if(E||(E={}),P.original=E,P.text||(P.text=o.stringify(E)),P.externals=[],P.externalRefs={},P.rewriteRefs=!0,P.preserveMiro=!0,P.promise={},P.promise.resolve=ge,P.promise.reject=xe,P.patches=0,P.cache||(P.cache={}),P.source&&(P.cache[P.source]=P.original),de(E,P),E.openapi&&typeof E.openapi=="string"&&E.openapi.startsWith("3.")){P.openapi=u(E),Y(P.openapi,P,xe),te(P.openapi,P,xe),f.optionalResolve(P).then(function(){return P.direct?ge(P.openapi):ge(P)}).catch(function(ue){console.warn(ue),xe(ue)});return}if(!E.swagger||E.swagger!="2.0")return xe(new w("Unsupported swagger/OpenAPI version: "+(E.openapi?E.openapi:E.swagger)));let ce=P.openapi={};if(ce.openapi=typeof P.targetVersion=="string"&&P.targetVersion.startsWith("3.")?P.targetVersion:C,P.origin){ce["x-origin"]||(ce["x-origin"]=[]);let ue={};ue.url=P.source||P.origin,ue.format="swagger",ue.version=E.swagger,ue.converter={},ue.converter.url="https://github.com/mermade/oas-kit",ue.converter.version=x,ce["x-origin"].push(ue)}if(ce=Object.assign(ce,u(E)),delete ce.swagger,d(ce,{},function(ue,je,he){ue[je]===null&&!je.startsWith("x-")&&je!=="default"&&he.path.indexOf("/example")<0&&delete ue[je]}),E.host)for(let ue of Array.isArray(E.schemes)?E.schemes:[""]){let je={},he=(E.basePath||"").replace(/\/$/,"");je.url=(ue?ue+":":"")+"//"+E.host+he,ae(je),ce.servers||(ce.servers=[]),ce.servers.push(je)}else if(E.basePath){let ue={};ue.url=E.basePath,ae(ue),ce.servers||(ce.servers=[]),ce.servers.push(ue)}if(delete ce.host,delete ce.basePath,ce["x-servers"]&&Array.isArray(ce["x-servers"])&&(ce.servers=ce["x-servers"],delete ce["x-servers"]),E["x-ms-parameterized-host"]){let ue=E["x-ms-parameterized-host"],je={};je.url=ue.hostTemplate+(E.basePath?E.basePath:""),je.variables={};const he=je.url.match(/\{\w+\}/g);for(let Ke in ue.parameters){let Je=ue.parameters[Ke];Je.$ref&&(Je=c(i(ce,Je.$ref))),Ke.startsWith("x-")||(delete Je.required,delete Je.type,delete Je.in,typeof Je.default>"u"&&(Je.enum?Je.default=Je.enum[0]:Je.default="none"),Je.name||(Je.name=he[Ke].replace("{","").replace("}","")),je.variables[Je.name]=Je,delete Je.name)}ce.servers||(ce.servers=[]),ue.useSchemePrefix===!1?ce.servers.push(je):E.schemes.forEach(Ke=>{ce.servers.push(Object.assign({},je,{url:Ke+"://"+je.url}))}),delete ce["x-ms-parameterized-host"]}Y(ce,P,xe),te(ce,P,xe),typeof ce.consumes=="string"&&(ce.consumes=[ce.consumes]),typeof ce.produces=="string"&&(ce.produces=[ce.produces]),ce.components={},ce["x-callbacks"]&&(ce.components.callbacks=ce["x-callbacks"],delete ce["x-callbacks"]),ce.components.examples={},ce.components.headers={},ce["x-links"]&&(ce.components.links=ce["x-links"],delete ce["x-links"]),ce.components.parameters=ce.parameters||{},ce.components.responses=ce.responses||{},ce.components.requestBodies={},ce.components.securitySchemes=ce.securityDefinitions||{},ce.components.schemas=ce.definitions||{},delete ce.definitions,delete ce.responses,delete ce.parameters,delete ce.securityDefinitions,f.optionalResolve(P).then(function(){q(P.openapi,P),P.direct?ge(P.openapi):ge(P)}).catch(function(ue){console.warn(ue),xe(ue)})}))}function oe(E,P,W){return r(W,new Promise(function(ge,xe){let ce=null,ue=null;try{ce=JSON.parse(E),P.text=JSON.stringify(ce,null,2)}catch(je){ue=je;try{ce=o.parse(E,{schema:"core",prettyErrors:!0}),P.sourceYaml=!0,P.text=E}catch(he){ue=he}}ce?Q(ce,P).then(je=>ge(je)).catch(je=>xe(je)):xe(new w(ue?ue.message:"Could not parse string"))}))}function H(E,P,W){return r(W,new Promise(function(ge,xe){P.origin=!0,P.source||(P.source=E),P.verbose&&console.warn("GET "+E),P.fetch||(P.fetch=n);const ce=Object.assign({},P.fetchOptions,{agent:P.agent});P.fetch(E,ce).then(function(ue){if(ue.status!==200)throw new w(`Received status code ${ue.status}: ${E}`);return ue.text()}).then(function(ue){oe(ue,P).then(je=>ge(je)).catch(je=>xe(je))}).catch(function(ue){xe(ue)})}))}function ve(E,P,W){return r(W,new Promise(function(ge,xe){e.readFile(E,P.encoding||"utf8",function(ce,ue){ce?xe(ce):(P.sourceFile=E,oe(ue,P).then(je=>ge(je)).catch(je=>xe(je)))})}))}function ke(E,P,W){return r(W,new Promise(function(ge,xe){let ce="";E.on("data",function(ue){ce+=ue}).on("end",function(){oe(ce,P).then(ue=>ge(ue)).catch(ue=>xe(ue))})}))}return Lk={S2OError:w,targetVersion:C,convert:Q,convertObj:Q,convertUrl:H,convertStr:oe,convertFile:ve,convertStream:ke},Lk}var OUe=_Ue();const RUe=Ln(OUe);function LUe(e){return e.paths||(e.paths={}),new Promise((t,r)=>RUe.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(n,o)=>{if(n)return r(n);t(o?.openapi)}))}async function jUe(){try{return(await Qq())?.resolvedConfig.openapi||{}}catch{return{}}}async function PUe(e){const t=await Qq(),r={config:t,base:$a?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};$a&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?r.doc=NUe(e):r.ref=e;const{bundle:{parsed:n}}=await MDe(r);return n.swagger!==void 0?LUe(n):n}function NUe(e){return{source:{absoluteRef:""},parsed:e}}async function IUe(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 PUe(e||t);try{R4e(n)}catch{}return n}const $Ue=({options:e,definitionUrl:t,definition:r,activeSampleLanguage:n,children:o})=>{const[a,i]=D.useState(),[s,c]=D.useState(!0),[u,d]=D.useState(null),[f,g]=D.useState(e||{});D.useEffect(()=>{async function v(){c(!0);try{const x=await jUe();g({...e,...x}),d(await IUe(r,t,e))}catch(x){i(x.message)}}v()},[r,t,e]);const y=D.useMemo(()=>{if(u)return{definition:u,options:f,definitionUrl:t,activeSampleLanguage:n}},L4e([u,t,f]));return D.useEffect(()=>{y&&c(!1)},[y]),a||!y?null:s?To(e?.hideLoading,!1)?null:m.jsx(X_e,{color:"--loading-spinner-color"}):D.isValidElement(o)?D.cloneElement(o,{store:y}):null};function DUe({definition:e,definitionUrl:t,options:r={},activeItemId:n,activeSampleLanguage:o,activeDeepLink:a,router:i}){return m.jsx($Ue,{definition:e,definitionUrl:t,options:r,activeItemId:n,activeSampleLanguage:o,activeDeepLink:a,children:m.jsx(lF,{withCommonStyles:!0,router:i||"hash"})})}function MUe(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 zUe(e){const t=MUe(e),r={};for(const n in t){const o=n.replace(/-(.)/g,(a,i)=>i.toUpperCase());r[o]=t[n]}return r}function UUe(e,t=document.querySelector("redoc")){mv.hydrateRoot(t,m.jsx(lF,{store:e}),{onRecoverableError:(r,n)=>{r.message.includes("Minified React error #418")||console.error(r.message,n)}})}function pG(e,t={},r=gv("redoc")){if(r===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:n,...o}={...t,...zUe(r)};let a,i;typeof e=="string"?a=e:typeof e=="object"&&(i=e),mv.createRoot(r).render(D.createElement(DUe,{definition:i,definitionUrl:a,options:o,router:n??"hash"},["Loading..."]))}const BUe="3.24.0-next.7",FUe="f14d9cc9";function qUe(){const e=gv("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&pG(t,{},e)}qUe();export{jj as $,SJ as A,bt as B,yx as C,Vl as D,Um as E,Y2 as F,_p as G,WN as H,pB as I,Fa as J,ro as K,rp as L,tu as M,Vb as N,Ss as O,ap as P,HN as Q,Tt as R,Oi as S,Rs as T,ql as U,$P as V,zA as W,jn as X,zn as Y,Vo as Z,kg as _,ye as a,Yo as a$,Vx as a0,fP as a1,aP as a2,_P as a3,OP as a4,jP as a5,_2 as a6,Eh as a7,Cd as a8,ZS as a9,YB as aA,sA as aB,Ud as aC,qA as aD,FA as aE,Nn as aF,cb as aG,lb as aH,oq as aI,pb as aJ,sb as aK,qq as aL,ub as aM,TDe as aN,RDe as aO,mn as aP,cq as aQ,xq as aR,wq as aS,sDe as aT,aDe as aU,uy as aV,iDe as aW,cDe as aX,_q as aY,Tq as aZ,ZC as a_,Wm as aa,rz as ab,YU as ac,oB as ad,_U as ae,VS as af,CS as ag,Sr as ah,Kl as ai,Sm as aj,UU as ak,mv as al,io as am,aB as an,DB as ao,iB as ap,sB as aq,gB as ar,QN as as,Al as at,tx as au,Sx as av,KB as aw,GU as ax,WU as ay,JB as az,Rl as b,ur as b0,on as b1,Sq as b2,Cq as b3,lDe as b4,dy as b5,ib as b6,gc as b7,Zq as b8,QC as b9,Wq as bA,Yq as bB,pF as bC,Rq as bD,dDe as bE,uDe as bF,hu as bG,Hq as bH,e3 as bI,ac as bJ,Ms as bK,kq as bL,VC as bM,cF as bN,Oq as bO,cf as bP,sq as bQ,Bq as bR,s3 as bS,UUe as bT,pG as bU,FUe as bV,Fve as bW,Bve as bX,zve as bY,BUe as bZ,ic as ba,RLe as bb,jq as bc,oDe as bd,Sa as be,EDe as bf,XC as bg,Hp as bh,Xa as bi,Us as bj,Pq as bk,Qa as bl,i3 as bm,qC as bn,Fq as bo,nb as bp,LLe as bq,Aq as br,nq as bs,iq as bt,h$ as bu,zU as bv,tb as bw,ot as bx,nt as by,Eq as bz,Ln as c,cg as d,bx as e,be as f,mt as g,Hl as h,J0e as i,m as j,dr as k,np as l,ks as m,yh as n,Ol as o,br as p,BN as q,D as r,Az as s,vn as t,pr as u,kd as v,Xq as w,Ut as x,sg as y,vte as z};
12112
+ `}}_n(gu,"defaults",aW);function Xze(e,t=!0,r){r===void 0&&typeof t=="string"&&(r=t,t=!0);const n=Object.assign({},gu.defaults[oy.version],oy);return new bc(n).createNode(e,t,r)}class sy extends gu{constructor(t){super(Object.assign({},oy,t))}}function eUe(e,t){const r=[];let n;for(const o of Z3(e)){const a=new sy(t);a.parse(o,n),r.push(a),n=a}return r}function sW(e,t){const r=Z3(e),n=new sy(t).parse(r[0]);if(r.length>1){const o="Source contains multiple documents; please use YAML.parseAllDocuments()";n.errors.unshift(new St(r[1],o))}return n}function tUe(e,t){const r=sW(e,t);if(r.warnings.forEach(n=>HH(n)),r.errors.length>0)throw r.errors[0];return r.toJSON()}function rUe(e,t){const r=new sy(t);return r.contents=e,String(r)}const nUe={createNode:Xze,defaultOptions:oy,Document:sy,parse:tUe,parseAllDocuments:eUe,parseCST:Z3,parseDocument:sW,scalarOptions:Hze,stringify:rUe},oUe=Object.freeze(Object.defineProperty({__proto__:null,YAML:nUe},Symbol.toStringTag,{value:"Module"})),aUe=sa(oUe);var lW,cW;function iUe(){return cW||(cW=1,lW=aUe.YAML),lW}var ik,pW;function sUe(){if(pW)return ik;pW=1;const e=G3().recurse,t=Wb().shallowClone,r=Hb().jptr,n=V3().isRef;var o=function(i){return i&&i.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function a(i,s,c){c||(c={}),c.cache||(c.cache={}),c.state||(c.state={}),c.state.identityDetection=!0,c.depth=c.depth?c.depth+1:1;let u=c.depth>1?i:t(i),d={data:u},f=c.depth>1?s:t(s);c.master||(c.master=u);let g=o(c),y=1;for(;y>0;)y=0,e(d,c.state,function(v,x,C){if(n(v,x)){let S=v[x];if(y++,c.cache[S]){let w=c.cache[S];if(w.resolved)g.warn("Patching %s for %s",S,w.path),C.parent[C.pkey]=w.data,c.$ref&&typeof C.parent[C.pkey]=="object"&&C.parent[C.pkey]!==null&&(C.parent[C.pkey][c.$ref]=S);else{if(S===w.path)throw new Error(`Tight circle at ${w.path}`);g.warn("Unresolved ref"),C.parent[C.pkey]=r(w.source,w.path),C.parent[C.pkey]===!1&&(C.parent[C.pkey]=r(w.source,w.key)),c.$ref&&typeof C.parent[C.pkey]=="object"&&C.parent[C.pkey]!==null&&(C.parent[c.$ref]=S)}}else{let w={};w.path=C.path.split("/$ref")[0],w.key=S,g.warn("Dereffing %s at %s",S,w.path),w.source=f,w.data=r(w.source,w.key),w.data===!1&&(w.data=r(c.master,w.key),w.source=c.master),w.data===!1&&g.warn("Missing $ref target",w.key),c.cache[S]=w,w.data=C.parent[C.pkey]=a(r(w.source,w.key),w.source,c),c.$ref&&typeof C.parent[C.pkey]=="object"&&C.parent[C.pkey]!==null&&(C.parent[C.pkey][c.$ref]=S),w.resolved=!0}}});return d.data}return ik={dereference:a},ik}var sk,uW;function lUe(){if(uW)return sk;uW=1,sk=a,a.default=a,a.stable=u,a.stableStringify=u;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(g,y,v,x){typeof x>"u"&&(x=o()),s(g,"",0,[],void 0,0,x);var C;try{n.length===0?C=JSON.stringify(g,y,v):C=JSON.stringify(g,f(y),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var S=r.pop();S.length===4?Object.defineProperty(S[0],S[1],S[3]):S[0][S[1]]=S[2]}}return C}function i(g,y,v,x){var C=Object.getOwnPropertyDescriptor(x,v);C.get!==void 0?C.configurable?(Object.defineProperty(x,v,{value:g}),r.push([x,v,y,C])):n.push([y,v,g]):(x[v]=g,r.push([x,v,y]))}function s(g,y,v,x,C,S,w){S+=1;var T;if(typeof g=="object"&&g!==null){for(T=0;T<x.length;T++)if(x[T]===g){i(t,g,y,C);return}if(typeof w.depthLimit<"u"&&S>w.depthLimit){i(e,g,y,C);return}if(typeof w.edgesLimit<"u"&&v+1>w.edgesLimit){i(e,g,y,C);return}if(x.push(g),Array.isArray(g))for(T=0;T<g.length;T++)s(g[T],T,T,x,g,S,w);else{var A=Object.keys(g);for(T=0;T<A.length;T++){var R=A[T];s(g[R],R,T,x,g,S,w)}}x.pop()}}function c(g,y){return g<y?-1:g>y?1:0}function u(g,y,v,x){typeof x>"u"&&(x=o());var C=d(g,"",0,[],void 0,0,x)||g,S;try{n.length===0?S=JSON.stringify(C,y,v):S=JSON.stringify(C,f(y),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 S}function d(g,y,v,x,C,S,w){S+=1;var T;if(typeof g=="object"&&g!==null){for(T=0;T<x.length;T++)if(x[T]===g){i(t,g,y,C);return}try{if(typeof g.toJSON=="function")return}catch{return}if(typeof w.depthLimit<"u"&&S>w.depthLimit){i(e,g,y,C);return}if(typeof w.edgesLimit<"u"&&v+1>w.edgesLimit){i(e,g,y,C);return}if(x.push(g),Array.isArray(g))for(T=0;T<g.length;T++)d(g[T],T,T,x,g,S,w);else{var A={},R=Object.keys(g).sort(c);for(T=0;T<R.length;T++){var L=R[T];d(g[L],L,T,x,g,S,w),A[L]=g[L]}if(typeof C<"u")r.push([C,y,g]),C[y]=A;else return A}x.pop()}}function f(g){return g=typeof g<"u"?g:function(y,v){return v},function(y,v){if(n.length>0)for(var x=0;x<n.length;x++){var C=n[x];if(C[1]===y&&C[0]===v){v=C[2],n.splice(x,1);break}}return g.call(this,y,v)}}return sk}var lk,dW;function hW(){if(dW)return lk;dW=1;var e={};const t=lUe(),r=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function n(C,S,w){return w.indexOf(C)===S}function o(C){return new Set(C).size!==C.length}function a(C){return new Set(C).size<=1}function i(C,S){function w(T,A){return t.stringify(T)===t.stringify(Object.assign({},T,A))}return w(C,S)&&w(S,C)}function s(C){let S=[];for(let w of C)S.find(function(T,A,R){return i(T,w)})||S.push(w);return S}function c(C){return C.length===s(C).length}function u(C){return C.find(function(S,w,T){return C.indexOf(S)<w})}function d(C){let S=0,w;if(C.length===0)return S;for(let T=0;T<C.length;T++)w=C.charCodeAt(T),S=(S<<5)-S+w,S|=0;return S}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(C,S){return S.toUpperCase()})};const f=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],g=["items","minItems","maxItems","uniqueItems"],y=["get","post","put","delete","patch","head","options","trace"];function v(C){C=C.replace("[]","Array");let S=C.split("/");return S[0]=S[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),S.join("/")}function x(C){return v(C.split("/").join("_"))}return lk={colour:r,uniqueOnly:n,hasDuplicates:o,allSame:a,distinctArray:c,firstDupe:u,hash:d,parameterTypeProperties:f,arrayProperties:g,httpMethods:y,sanitise:v,sanitiseAll:x},lk}var ck,fW;function cUe(){if(fW)return ck;fW=1;const e=db,t=ZN(),r=p3(),n=db,o=iUe(),a=Hb().jptr,i=G3().recurse,s=Wb().clone,c=sUe().dereference,u=V3().isRef,d=hW();function f(_){return[...new Set(_)]}function g(_,$,z,F,U){return new Promise(function(G,ee){e.readFile(_,$,function(le,V){le?z.ignoreIOErrors&&U?(z.verbose&&console.warn("FAILED",F),z.externalRefs[F].failed=!0,G(U)):ee(le):G(V)})})}function y(_,$,z,F,U,G){let ee=G.externalRefs[z+F].paths[0],le=r.parse(U),V={},ie=1;for(;ie;)ie=0,i(_,{identityDetection:!0},function(re,se,Z){if(u(re,se)){if(re[se].startsWith("#")){if(!V[re[se]]&&!re.$fixed){let q=s(a($,re[se]));if(G.verbose>1&&console.warn((q===!1?d.colour.red:d.colour.green)+"Fragment resolution",re[se],d.colour.normal),q===!1){if(Z.parent[Z.pkey]={},G.fatal){let ae=new Error("Fragment $ref resolution failed "+re[se]);if(G.promise)G.promise.reject(ae);else throw ae}}else ie++,Z.parent[Z.pkey]=q,V[re[se]]=Z.path.replace("/%24ref","")}else if(!re.$fixed){let q=(ee+"/"+V[re[se]]).split("/#/").join("/");Z.parent[Z.pkey]={$ref:q,"x-miro":re[se],$fixed:!0},G.verbose>1&&console.warn("Replacing with",q),ie++}}else if(le.protocol){let q=r.resolve(U,re[se]).toString();G.verbose>1&&console.warn(d.colour.yellow+"Rewriting external url ref",re[se],"as",q,d.colour.normal),re["x-miro"]=re[se],G.externalRefs[re[se]]&&(G.externalRefs[q]||(G.externalRefs[q]=G.externalRefs[re[se]]),G.externalRefs[q].failed=G.externalRefs[re[se]].failed),re[se]=q}else if(!re["x-miro"]){let q=r.resolve(U,re[se]).toString(),ae=!1;G.externalRefs[re[se]]&&(ae=G.externalRefs[re[se]].failed),ae||(G.verbose>1&&console.warn(d.colour.yellow+"Rewriting external ref",re[se],"as",q,d.colour.normal),re["x-miro"]=re[se],re[se]=q)}}});return i(_,{},function(re,se,Z){u(re,se)&&typeof re.$fixed<"u"&&delete re.$fixed}),G.verbose>1&&console.warn("Finished fragment resolution"),_}function v(_,$){if(!$.filters||!$.filters.length)return _;for(let z of $.filters)_=z(_,$);return _}function x(_,$){return _&&_.length>2?_:$&&$.length>2?$:"file:"}function C(_,$,z,F){var U=r.parse(z.source),G=z.source.split("\\").join("/").split("/");G.pop()||G.pop();let ee="",le=$.split("#");le.length>1&&(ee="#"+le[1],$=le[0]),G=G.join("/");let V=r.parse($),ie=x(V.protocol,U.protocol),re;if(ie==="file:"?re=t.resolve(G?G+"/":"",$):re=r.resolve(G?G+"/":"",$),z.cache[re]){z.verbose&&console.warn("CACHED",re,ee);let se=s(z.cache[re]),Z=z.externalRef=se;if(ee&&(Z=a(Z,ee),Z===!1&&(Z={},z.fatal))){let q=new Error("Cached $ref resolution failed "+re+ee);if(z.promise)z.promise.reject(q);else throw q}return Z=y(Z,se,$,ee,re,z),Z=v(Z,z),F(s(Z),re,z),Promise.resolve(Z)}if(z.verbose&&console.warn("GET",re,ee),z.handlers&&z.handlers[ie])return z.handlers[ie](G,$,ee,z).then(function(se){return z.externalRef=se,se=v(se,z),z.cache[re]=se,F(se,re,z),se}).catch(function(se){throw z.verbose&&console.warn(se),se});if(ie&&ie.startsWith("http")){const se=Object.assign({},z.fetchOptions,{agent:z.agent});return z.fetch(re,se).then(function(Z){if(Z.status!==200){if(z.ignoreIOErrors)return z.verbose&&console.warn("FAILED",$),z.externalRefs[$].failed=!0,'{"$ref":"'+$+'"}';throw new Error(`Received status code ${Z.status}: ${re}`)}return Z.text()}).then(function(Z){try{let q=o.parse(Z,{schema:"core",prettyErrors:!0});if(Z=z.externalRef=q,z.cache[re]=s(Z),ee&&(Z=a(Z,ee),Z===!1&&(Z={},z.fatal))){let ae=new Error("Remote $ref resolution failed "+re+ee);if(z.promise)z.promise.reject(ae);else throw ae}Z=y(Z,q,$,ee,re,z),Z=v(Z,z)}catch(q){if(z.verbose&&console.warn(q),z.promise&&z.fatal)z.promise.reject(q);else throw q}return F(Z,re,z),Z}).catch(function(Z){if(z.verbose&&console.warn(Z),z.cache[re]={},z.promise&&z.fatal)z.promise.reject(Z);else throw Z})}else{const se='{"$ref":"'+$+'"}';return g(re,z.encoding||"utf8",z,$,se).then(function(Z){try{let q=o.parse(Z,{schema:"core",prettyErrors:!0});if(Z=z.externalRef=q,z.cache[re]=s(Z),ee&&(Z=a(Z,ee),Z===!1&&(Z={},z.fatal))){let ae=new Error("File $ref resolution failed "+re+ee);if(z.promise)z.promise.reject(ae);else throw ae}Z=y(Z,q,$,ee,re,z),Z=v(Z,z)}catch(q){if(z.verbose&&console.warn(q),z.promise&&z.fatal)z.promise.reject(q);else throw q}return F(Z,re,z),Z}).catch(function(Z){if(z.verbose&&console.warn(Z),z.promise&&z.fatal)z.promise.reject(Z);else throw Z})}}function S(_){return new Promise(function($,z){function F(G,ee,le){if(G[ee]&&u(G[ee],"$ref")){let V=G[ee].$ref;if(!V.startsWith("#")){let ie="";if(!U[V]){let re=Object.keys(U).find(function(se,Z,q){return V.startsWith(se+"/")});re&&(_.verbose&&console.warn("Found potential subschema at",re),ie="/"+(V.split("#")[1]||"").replace(re.split("#")[1]||""),ie=ie.split("/undefined").join(""),V=re)}if(U[V]||(U[V]={resolved:!1,paths:[],extras:{},description:G[ee].description}),U[V].resolved){if(!U[V].failed)if(_.rewriteRefs){let re=U[V].resolvedAt;_.verbose>1&&console.warn("Rewriting ref",V,re),G[ee]["x-miro"]=V,G[ee].$ref=re+ie}else G[ee]=s(U[V].data)}else U[V].paths.push(le.path),U[V].extras[le.path]=ie}}}let U=_.externalRefs;if(_.resolver.depth>0&&_.source===_.resolver.base)return $(U);i(_.openapi.definitions,{identityDetection:!0,path:"#/definitions"},F),i(_.openapi.components,{identityDetection:!0,path:"#/components"},F),i(_.openapi,{identityDetection:!0},F),$(U)})}function w(_){return new Promise(function($,z){S(_).then(function(U){for(let G in U)if(!U[G].resolved){let ee=_.resolver.depth;ee>0&&ee++,_.resolver.actions[ee].push(function(){return C(_.openapi,G,_,function(le,V,ie){if(!U[G].resolved){let Z={};Z.context=U[G],Z.$ref=G,Z.original=s(le),Z.updated=le,Z.source=V,ie.externals.push(Z),U[G].resolved=!0}let re=Object.assign({},ie,{source:"",resolver:{actions:ie.resolver.actions,depth:ie.resolver.actions.length-1,base:ie.resolver.base}});ie.patch&&U[G].description&&!le.description&&typeof le=="object"&&(le.description=U[G].description),U[G].data=le;let se=f(U[G].paths);se=se.sort(function(Z,q){const ae=Z.startsWith("#/components/")||Z.startsWith("#/definitions/"),Y=q.startsWith("#/components/")||q.startsWith("#/definitions/");return ae&&!Y?-1:Y&&!ae?1:0});for(let Z of se)if(U[G].resolvedAt&&Z!==U[G].resolvedAt&&Z.indexOf("x-ms-examples/")<0)ie.verbose>1&&console.warn("Creating pointer to data at",Z),a(ie.openapi,Z,{$ref:U[G].resolvedAt+U[G].extras[Z],"x-miro":G+U[G].extras[Z]});else{U[G].resolvedAt?ie.verbose>1&&console.warn("Avoiding circular reference"):(U[G].resolvedAt=Z,ie.verbose>1&&console.warn("Creating initial clone of data at",Z));let q=s(le);a(ie.openapi,Z,q)}ie.resolver.actions[re.resolver.depth].length===0&&ie.resolver.actions[re.resolver.depth].push(function(){return w(re)})})})}}).catch(function(U){_.verbose&&console.warn(U),z(U)});let F={options:_};F.actions=_.resolver.actions[_.resolver.depth],$(F)})}const T=_=>_.reduce(($,z)=>$.then(F=>z().then(Array.prototype.concat.bind(F))),Promise.resolve([]));function A(_,$,z){_.resolver.actions.push([]),w(_).then(function(F){T(F.actions).then(function(){if(_.resolver.depth>=_.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),$(!0);_.resolver.depth++,_.resolver.actions[_.resolver.depth].length?setTimeout(function(){A(F.options,$,z)},0):(_.verbose>1&&console.warn(d.colour.yellow+"Finished external resolution!",d.colour.normal),_.resolveInternal&&(_.verbose>1&&console.warn(d.colour.yellow+"Starting internal resolution!",d.colour.normal),_.openapi=c(_.openapi,_.original,{verbose:_.verbose-1}),_.verbose>1&&console.warn(d.colour.yellow+"Finished internal resolution!",d.colour.normal)),i(_.openapi,{},function(U,G,ee){u(U,G)&&(_.preserveMiro||delete U["x-miro"])}),$(_))}).catch(function(U){_.verbose&&console.warn(U),z(U)})}).catch(function(F){_.verbose&&console.warn(F),z(F)})}function R(_){if(_.cache||(_.cache={}),_.fetch||(_.fetch=n),_.source){let $=r.parse(_.source);(!$.protocol||$.protocol.length<=2)&&(_.source=t.resolve(_.source))}_.externals=[],_.externalRefs={},_.rewriteRefs=!0,_.resolver={},_.resolver.depth=0,_.resolver.base=_.source,_.resolver.actions=[[]]}function L(_){return R(_),new Promise(function($,z){_.resolve?A(_,$,z):$(_)})}function N(_,$,z){return z||(z={}),z.openapi=_,z.source=$,z.resolve=!0,R(z),new Promise(function(F,U){A(z,F,U)})}return ck={optionalResolve:L,resolve:N},ck}var pk,mW;function pUe(){if(mW)return pk;mW=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(r,n,o,a){if(typeof o.depth>"u"&&(o=e()),r===null||typeof r>"u")return r;if(typeof r.$ref<"u"){let i={$ref:r.$ref};return o.allowRefSiblings&&r.description&&(i.description=r.description),a(i,n,o),i}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)),a(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,a)),r.additionalItems&&typeof r.additionalItems=="object"&&(o.property="additionalItems",t(r.additionalItems,r,o,a)),r.additionalProperties&&typeof r.additionalProperties=="object"&&(o.property="additionalProperties",t(r.additionalProperties,r,o,a)),r.properties)for(let i in r.properties){let s=r.properties[i];o.property="properties/"+i,t(s,r,o,a)}if(r.patternProperties)for(let i in r.patternProperties){let s=r.patternProperties[i];o.property="patternProperties/"+i,t(s,r,o,a)}if(r.allOf)for(let i in r.allOf){let s=r.allOf[i];o.property="allOf/"+i,t(s,r,o,a)}if(r.anyOf)for(let i in r.anyOf){let s=r.anyOf[i];o.property="anyOf/"+i,t(s,r,o,a)}if(r.oneOf)for(let i in r.oneOf){let s=r.oneOf[i];o.property="oneOf/"+i,t(s,r,o,a)}return r.not&&(o.property="not",t(r.not,r,o,a)),o.depth--,r}return pk={getDefaultState:e,walkSchema:t},pk}var gW={},uk={exports:{}},bW={},yW;function vW(){return yW||(yW=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(a){var i=r();if(!i)return!1;try{return i.responseType=a,i.responseType===a}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(a){return typeof a=="function"}t=null})(bW)),bW}var ly={},dk={exports:{}},cy={exports:{}},xW;function uUe(){if(xW)return cy.exports;xW=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(A,R,L){return Function.prototype.apply.call(A,R,L)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))}:r=function(A){return Object.getOwnPropertyNames(A)};function n(A){console&&console.warn&&console.warn(A)}var o=Number.isNaN||function(A){return A!==A};function a(){a.init.call(this)}cy.exports=a,cy.exports.once=S,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var i=10;function s(A){if(typeof A!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(A){if(typeof A!="number"||A<0||o(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");i=A}}),a.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},a.prototype.setMaxListeners=function(A){if(typeof A!="number"||A<0||o(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this};function c(A){return A._maxListeners===void 0?a.defaultMaxListeners:A._maxListeners}a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(A){for(var R=[],L=1;L<arguments.length;L++)R.push(arguments[L]);var N=A==="error",_=this._events;if(_!==void 0)N=N&&_.error===void 0;else if(!N)return!1;if(N){var $;if(R.length>0&&($=R[0]),$ instanceof Error)throw $;var z=new Error("Unhandled error."+($?" ("+$.message+")":""));throw z.context=$,z}var F=_[A];if(F===void 0)return!1;if(typeof F=="function")t(F,this,R);else for(var U=F.length,G=v(F,U),L=0;L<U;++L)t(G[L],this,R);return!0};function u(A,R,L,N){var _,$,z;if(s(L),$=A._events,$===void 0?($=A._events=Object.create(null),A._eventsCount=0):($.newListener!==void 0&&(A.emit("newListener",R,L.listener?L.listener:L),$=A._events),z=$[R]),z===void 0)z=$[R]=L,++A._eventsCount;else if(typeof z=="function"?z=$[R]=N?[L,z]:[z,L]:N?z.unshift(L):z.push(L),_=c(A),_>0&&z.length>_&&!z.warned){z.warned=!0;var F=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(R)+" listeners added. Use emitter.setMaxListeners() to increase limit");F.name="MaxListenersExceededWarning",F.emitter=A,F.type=R,F.count=z.length,n(F)}return A}a.prototype.addListener=function(A,R){return u(this,A,R,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(A,R){return u(this,A,R,!0)};function d(){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 f(A,R,L){var N={fired:!1,wrapFn:void 0,target:A,type:R,listener:L},_=d.bind(N);return _.listener=L,N.wrapFn=_,_}a.prototype.once=function(A,R){return s(R),this.on(A,f(this,A,R)),this},a.prototype.prependOnceListener=function(A,R){return s(R),this.prependListener(A,f(this,A,R)),this},a.prototype.removeListener=function(A,R){var L,N,_,$,z;if(s(R),N=this._events,N===void 0)return this;if(L=N[A],L===void 0)return this;if(L===R||L.listener===R)--this._eventsCount===0?this._events=Object.create(null):(delete N[A],N.removeListener&&this.emit("removeListener",A,L.listener||R));else if(typeof L!="function"){for(_=-1,$=L.length-1;$>=0;$--)if(L[$]===R||L[$].listener===R){z=L[$].listener,_=$;break}if(_<0)return this;_===0?L.shift():x(L,_),L.length===1&&(N[A]=L[0]),N.removeListener!==void 0&&this.emit("removeListener",A,z||R)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(A){var R,L,N;if(L=this._events,L===void 0)return this;if(L.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):L[A]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete L[A]),this;if(arguments.length===0){var _=Object.keys(L),$;for(N=0;N<_.length;++N)$=_[N],$!=="removeListener"&&this.removeAllListeners($);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(R=L[A],typeof R=="function")this.removeListener(A,R);else if(R!==void 0)for(N=R.length-1;N>=0;N--)this.removeListener(A,R[N]);return this};function g(A,R,L){var N=A._events;if(N===void 0)return[];var _=N[R];return _===void 0?[]:typeof _=="function"?L?[_.listener||_]:[_]:L?C(_):v(_,_.length)}a.prototype.listeners=function(A){return g(this,A,!0)},a.prototype.rawListeners=function(A){return g(this,A,!1)},a.listenerCount=function(A,R){return typeof A.listenerCount=="function"?A.listenerCount(R):y.call(A,R)},a.prototype.listenerCount=y;function y(A){var R=this._events;if(R!==void 0){var L=R[A];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function v(A,R){for(var L=new Array(R),N=0;N<R;++N)L[N]=A[N];return L}function x(A,R){for(;R+1<A.length;R++)A[R]=A[R+1];A.pop()}function C(A){for(var R=new Array(A.length),L=0;L<R.length;++L)R[L]=A[L].listener||A[L];return R}function S(A,R){return new Promise(function(L,N){function _(z){A.removeListener(R,$),N(z)}function $(){typeof A.removeListener=="function"&&A.removeListener("error",_),L([].slice.call(arguments))}T(A,R,$,{once:!0}),R!=="error"&&w(A,_,{once:!0})})}function w(A,R,L){typeof A.on=="function"&&T(A,"error",R,L)}function T(A,R,L,N){if(typeof A.on=="function")N.once?A.once(R,L):A.on(R,L);else if(typeof A.addEventListener=="function")A.addEventListener(R,function _($){N.once&&A.removeEventListener(R,_),L($)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A)}return cy.exports}var wW,SW;function CW(){return SW||(SW=1,wW=uUe().EventEmitter),wW}var kW={},lf={},EW;function dUe(){if(EW)return lf;EW=1,lf.byteLength=s,lf.toByteArray=u,lf.fromByteArray=g;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;t[45]=62,t[95]=63;function i(y){var v=y.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=y.indexOf("=");x===-1&&(x=v);var C=x===v?0:4-x%4;return[x,C]}function s(y){var v=i(y),x=v[0],C=v[1];return(x+C)*3/4-C}function c(y,v,x){return(v+x)*3/4-x}function u(y){var v,x=i(y),C=x[0],S=x[1],w=new r(c(y,C,S)),T=0,A=S>0?C-4:C,R;for(R=0;R<A;R+=4)v=t[y.charCodeAt(R)]<<18|t[y.charCodeAt(R+1)]<<12|t[y.charCodeAt(R+2)]<<6|t[y.charCodeAt(R+3)],w[T++]=v>>16&255,w[T++]=v>>8&255,w[T++]=v&255;return S===2&&(v=t[y.charCodeAt(R)]<<2|t[y.charCodeAt(R+1)]>>4,w[T++]=v&255),S===1&&(v=t[y.charCodeAt(R)]<<10|t[y.charCodeAt(R+1)]<<4|t[y.charCodeAt(R+2)]>>2,w[T++]=v>>8&255,w[T++]=v&255),w}function d(y){return e[y>>18&63]+e[y>>12&63]+e[y>>6&63]+e[y&63]}function f(y,v,x){for(var C,S=[],w=v;w<x;w+=3)C=(y[w]<<16&16711680)+(y[w+1]<<8&65280)+(y[w+2]&255),S.push(d(C));return S.join("")}function g(y){for(var v,x=y.length,C=x%3,S=[],w=16383,T=0,A=x-C;T<A;T+=w)S.push(f(y,T,T+w>A?A:T+w));return C===1?(v=y[x-1],S.push(e[v>>2]+e[v<<4&63]+"==")):C===2&&(v=(y[x-2]<<8)+y[x-1],S.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),S.join("")}return lf}var hk={},AW;function hUe(){return AW||(AW=1,hk.read=function(e,t,r,n,o){var a,i,s=o*8-n-1,c=(1<<s)-1,u=c>>1,d=-7,f=r?o-1:0,g=r?-1:1,y=e[t+f];for(f+=g,a=y&(1<<-d)-1,y>>=-d,d+=s;d>0;a=a*256+e[t+f],f+=g,d-=8);for(i=a&(1<<-d)-1,a>>=-d,d+=n;d>0;i=i*256+e[t+f],f+=g,d-=8);if(a===0)a=1-u;else{if(a===c)return i?NaN:(y?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-u}return(y?-1:1)*i*Math.pow(2,a-n)},hk.write=function(e,t,r,n,o,a){var i,s,c,u=a*8-o-1,d=(1<<u)-1,f=d>>1,g=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:a-1,v=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=d):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),i+f>=1?t+=g/c:t+=g*Math.pow(2,1-f),t*c>=2&&(i++,c/=2),i+f>=d?(s=0,i=d):i+f>=1?(s=(t*c-1)*Math.pow(2,o),i=i+f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),i=0));o>=8;e[r+y]=s&255,y+=v,s/=256,o-=8);for(i=i<<o|s,u+=o;u>0;e[r+y]=i&255,y+=v,i/=256,u-=8);e[r+y-v]|=x*128}),hk}var TW;function cf(){return TW||(TW=1,(function(e){const t=dUe(),r=hUe(),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=a(),!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 a(){try{const j=new Uint8Array(1),I={foo:function(){return 42}};return Object.setPrototypeOf(I,Uint8Array.prototype),Object.setPrototypeOf(j,I),j.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 i(j){if(j>o)throw new RangeError('The value "'+j+'" is invalid for option "size"');const I=new Uint8Array(j);return Object.setPrototypeOf(I,s.prototype),I}function s(j,I,B){if(typeof j=="number"){if(typeof I=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(j)}return c(j,I,B)}s.poolSize=8192;function c(j,I,B){if(typeof j=="string")return g(j,I);if(ArrayBuffer.isView(j))return v(j);if(j==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j);if(He(j,ArrayBuffer)||j&&He(j.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(He(j,SharedArrayBuffer)||j&&He(j.buffer,SharedArrayBuffer)))return x(j,I,B);if(typeof j=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const pe=j.valueOf&&j.valueOf();if(pe!=null&&pe!==j)return s.from(pe,I,B);const Ee=C(j);if(Ee)return Ee;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof j[Symbol.toPrimitive]=="function")return s.from(j[Symbol.toPrimitive]("string"),I,B);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j)}s.from=function(j,I,B){return c(j,I,B)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(j){if(typeof j!="number")throw new TypeError('"size" argument must be of type number');if(j<0)throw new RangeError('The value "'+j+'" is invalid for option "size"')}function d(j,I,B){return u(j),j<=0?i(j):I!==void 0?typeof B=="string"?i(j).fill(I,B):i(j).fill(I):i(j)}s.alloc=function(j,I,B){return d(j,I,B)};function f(j){return u(j),i(j<0?0:S(j)|0)}s.allocUnsafe=function(j){return f(j)},s.allocUnsafeSlow=function(j){return f(j)};function g(j,I){if((typeof I!="string"||I==="")&&(I="utf8"),!s.isEncoding(I))throw new TypeError("Unknown encoding: "+I);const B=T(j,I)|0;let pe=i(B);const Ee=pe.write(j,I);return Ee!==B&&(pe=pe.slice(0,Ee)),pe}function y(j){const I=j.length<0?0:S(j.length)|0,B=i(I);for(let pe=0;pe<I;pe+=1)B[pe]=j[pe]&255;return B}function v(j){if(He(j,Uint8Array)){const I=new Uint8Array(j);return x(I.buffer,I.byteOffset,I.byteLength)}return y(j)}function x(j,I,B){if(I<0||j.byteLength<I)throw new RangeError('"offset" is outside of buffer bounds');if(j.byteLength<I+(B||0))throw new RangeError('"length" is outside of buffer bounds');let pe;return I===void 0&&B===void 0?pe=new Uint8Array(j):B===void 0?pe=new Uint8Array(j,I):pe=new Uint8Array(j,I,B),Object.setPrototypeOf(pe,s.prototype),pe}function C(j){if(s.isBuffer(j)){const I=S(j.length)|0,B=i(I);return B.length===0||j.copy(B,0,0,I),B}if(j.length!==void 0)return typeof j.length!="number"||Ve(j.length)?i(0):y(j);if(j.type==="Buffer"&&Array.isArray(j.data))return y(j.data)}function S(j){if(j>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return j|0}function w(j){return+j!=j&&(j=0),s.alloc(+j)}s.isBuffer=function(j){return j!=null&&j._isBuffer===!0&&j!==s.prototype},s.compare=function(j,I){if(He(j,Uint8Array)&&(j=s.from(j,j.offset,j.byteLength)),He(I,Uint8Array)&&(I=s.from(I,I.offset,I.byteLength)),!s.isBuffer(j)||!s.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(j===I)return 0;let B=j.length,pe=I.length;for(let Ee=0,Re=Math.min(B,pe);Ee<Re;++Ee)if(j[Ee]!==I[Ee]){B=j[Ee],pe=I[Ee];break}return B<pe?-1:pe<B?1:0},s.isEncoding=function(j){switch(String(j).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(j,I){if(!Array.isArray(j))throw new TypeError('"list" argument must be an Array of Buffers');if(j.length===0)return s.alloc(0);let B;if(I===void 0)for(I=0,B=0;B<j.length;++B)I+=j[B].length;const pe=s.allocUnsafe(I);let Ee=0;for(B=0;B<j.length;++B){let Re=j[B];if(He(Re,Uint8Array))Ee+Re.length>pe.length?(s.isBuffer(Re)||(Re=s.from(Re)),Re.copy(pe,Ee)):Uint8Array.prototype.set.call(pe,Re,Ee);else if(s.isBuffer(Re))Re.copy(pe,Ee);else throw new TypeError('"list" argument must be an Array of Buffers');Ee+=Re.length}return pe};function T(j,I){if(s.isBuffer(j))return j.length;if(ArrayBuffer.isView(j)||He(j,ArrayBuffer))return j.byteLength;if(typeof j!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof j);const B=j.length,pe=arguments.length>2&&arguments[2]===!0;if(!pe&&B===0)return 0;let Ee=!1;for(;;)switch(I){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return ue(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B*2;case"hex":return B>>>1;case"base64":return Ke(j).length;default:if(Ee)return pe?-1:ue(j).length;I=(""+I).toLowerCase(),Ee=!0}}s.byteLength=T;function A(j,I,B){let pe=!1;if((I===void 0||I<0)&&(I=0),I>this.length||((B===void 0||B>this.length)&&(B=this.length),B<=0)||(B>>>=0,I>>>=0,B<=I))return"";for(j||(j="utf8");;)switch(j){case"hex":return se(this,I,B);case"utf8":case"utf-8":return ee(this,I,B);case"ascii":return ie(this,I,B);case"latin1":case"binary":return re(this,I,B);case"base64":return G(this,I,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,I,B);default:if(pe)throw new TypeError("Unknown encoding: "+j);j=(j+"").toLowerCase(),pe=!0}}s.prototype._isBuffer=!0;function R(j,I,B){const pe=j[I];j[I]=j[B],j[B]=pe}s.prototype.swap16=function(){const j=this.length;if(j%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let I=0;I<j;I+=2)R(this,I,I+1);return this},s.prototype.swap32=function(){const j=this.length;if(j%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let I=0;I<j;I+=4)R(this,I,I+3),R(this,I+1,I+2);return this},s.prototype.swap64=function(){const j=this.length;if(j%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let I=0;I<j;I+=8)R(this,I,I+7),R(this,I+1,I+6),R(this,I+2,I+5),R(this,I+3,I+4);return this},s.prototype.toString=function(){const j=this.length;return j===0?"":arguments.length===0?ee(this,0,j):A.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(j){if(!s.isBuffer(j))throw new TypeError("Argument must be a Buffer");return this===j?!0:s.compare(this,j)===0},s.prototype.inspect=function(){let j="";const I=e.INSPECT_MAX_BYTES;return j=this.toString("hex",0,I).replace(/(.{2})/g,"$1 ").trim(),this.length>I&&(j+=" ... "),"<Buffer "+j+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(j,I,B,pe,Ee){if(He(j,Uint8Array)&&(j=s.from(j,j.offset,j.byteLength)),!s.isBuffer(j))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof j);if(I===void 0&&(I=0),B===void 0&&(B=j?j.length:0),pe===void 0&&(pe=0),Ee===void 0&&(Ee=this.length),I<0||B>j.length||pe<0||Ee>this.length)throw new RangeError("out of range index");if(pe>=Ee&&I>=B)return 0;if(pe>=Ee)return-1;if(I>=B)return 1;if(I>>>=0,B>>>=0,pe>>>=0,Ee>>>=0,this===j)return 0;let Re=Ee-pe,Be=B-I;const it=Math.min(Re,Be),Ft=this.slice(pe,Ee),gt=j.slice(I,B);for(let Ot=0;Ot<it;++Ot)if(Ft[Ot]!==gt[Ot]){Re=Ft[Ot],Be=gt[Ot];break}return Re<Be?-1:Be<Re?1:0};function L(j,I,B,pe,Ee){if(j.length===0)return-1;if(typeof B=="string"?(pe=B,B=0):B>2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),B=+B,Ve(B)&&(B=Ee?0:j.length-1),B<0&&(B=j.length+B),B>=j.length){if(Ee)return-1;B=j.length-1}else if(B<0)if(Ee)B=0;else return-1;if(typeof I=="string"&&(I=s.from(I,pe)),s.isBuffer(I))return I.length===0?-1:N(j,I,B,pe,Ee);if(typeof I=="number")return I=I&255,typeof Uint8Array.prototype.indexOf=="function"?Ee?Uint8Array.prototype.indexOf.call(j,I,B):Uint8Array.prototype.lastIndexOf.call(j,I,B):N(j,[I],B,pe,Ee);throw new TypeError("val must be string, number or Buffer")}function N(j,I,B,pe,Ee){let Re=1,Be=j.length,it=I.length;if(pe!==void 0&&(pe=String(pe).toLowerCase(),pe==="ucs2"||pe==="ucs-2"||pe==="utf16le"||pe==="utf-16le")){if(j.length<2||I.length<2)return-1;Re=2,Be/=2,it/=2,B/=2}function Ft(Ot,It){return Re===1?Ot[It]:Ot.readUInt16BE(It*Re)}let gt;if(Ee){let Ot=-1;for(gt=B;gt<Be;gt++)if(Ft(j,gt)===Ft(I,Ot===-1?0:gt-Ot)){if(Ot===-1&&(Ot=gt),gt-Ot+1===it)return Ot*Re}else Ot!==-1&&(gt-=gt-Ot),Ot=-1}else for(B+it>Be&&(B=Be-it),gt=B;gt>=0;gt--){let Ot=!0;for(let It=0;It<it;It++)if(Ft(j,gt+It)!==Ft(I,It)){Ot=!1;break}if(Ot)return gt}return-1}s.prototype.includes=function(j,I,B){return this.indexOf(j,I,B)!==-1},s.prototype.indexOf=function(j,I,B){return L(this,j,I,B,!0)},s.prototype.lastIndexOf=function(j,I,B){return L(this,j,I,B,!1)};function _(j,I,B,pe){B=Number(B)||0;const Ee=j.length-B;pe?(pe=Number(pe),pe>Ee&&(pe=Ee)):pe=Ee;const Re=I.length;pe>Re/2&&(pe=Re/2);let Be;for(Be=0;Be<pe;++Be){const it=parseInt(I.substr(Be*2,2),16);if(Ve(it))return Be;j[B+Be]=it}return Be}function $(j,I,B,pe){return Je(ue(I,j.length-B),j,B,pe)}function z(j,I,B,pe){return Je(je(I),j,B,pe)}function F(j,I,B,pe){return Je(Ke(I),j,B,pe)}function U(j,I,B,pe){return Je(he(I,j.length-B),j,B,pe)}s.prototype.write=function(j,I,B,pe){if(I===void 0)pe="utf8",B=this.length,I=0;else if(B===void 0&&typeof I=="string")pe=I,B=this.length,I=0;else if(isFinite(I))I=I>>>0,isFinite(B)?(B=B>>>0,pe===void 0&&(pe="utf8")):(pe=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Ee=this.length-I;if((B===void 0||B>Ee)&&(B=Ee),j.length>0&&(B<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");pe||(pe="utf8");let Re=!1;for(;;)switch(pe){case"hex":return _(this,j,I,B);case"utf8":case"utf-8":return $(this,j,I,B);case"ascii":case"latin1":case"binary":return z(this,j,I,B);case"base64":return F(this,j,I,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,j,I,B);default:if(Re)throw new TypeError("Unknown encoding: "+pe);pe=(""+pe).toLowerCase(),Re=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function G(j,I,B){return I===0&&B===j.length?t.fromByteArray(j):t.fromByteArray(j.slice(I,B))}function ee(j,I,B){B=Math.min(j.length,B);const pe=[];let Ee=I;for(;Ee<B;){const Re=j[Ee];let Be=null,it=Re>239?4:Re>223?3:Re>191?2:1;if(Ee+it<=B){let Ft,gt,Ot,It;switch(it){case 1:Re<128&&(Be=Re);break;case 2:Ft=j[Ee+1],(Ft&192)===128&&(It=(Re&31)<<6|Ft&63,It>127&&(Be=It));break;case 3:Ft=j[Ee+1],gt=j[Ee+2],(Ft&192)===128&&(gt&192)===128&&(It=(Re&15)<<12|(Ft&63)<<6|gt&63,It>2047&&(It<55296||It>57343)&&(Be=It));break;case 4:Ft=j[Ee+1],gt=j[Ee+2],Ot=j[Ee+3],(Ft&192)===128&&(gt&192)===128&&(Ot&192)===128&&(It=(Re&15)<<18|(Ft&63)<<12|(gt&63)<<6|Ot&63,It>65535&&It<1114112&&(Be=It))}}Be===null?(Be=65533,it=1):Be>65535&&(Be-=65536,pe.push(Be>>>10&1023|55296),Be=56320|Be&1023),pe.push(Be),Ee+=it}return V(pe)}const le=4096;function V(j){const I=j.length;if(I<=le)return String.fromCharCode.apply(String,j);let B="",pe=0;for(;pe<I;)B+=String.fromCharCode.apply(String,j.slice(pe,pe+=le));return B}function ie(j,I,B){let pe="";B=Math.min(j.length,B);for(let Ee=I;Ee<B;++Ee)pe+=String.fromCharCode(j[Ee]&127);return pe}function re(j,I,B){let pe="";B=Math.min(j.length,B);for(let Ee=I;Ee<B;++Ee)pe+=String.fromCharCode(j[Ee]);return pe}function se(j,I,B){const pe=j.length;(!I||I<0)&&(I=0),(!B||B<0||B>pe)&&(B=pe);let Ee="";for(let Re=I;Re<B;++Re)Ee+=Xe[j[Re]];return Ee}function Z(j,I,B){const pe=j.slice(I,B);let Ee="";for(let Re=0;Re<pe.length-1;Re+=2)Ee+=String.fromCharCode(pe[Re]+pe[Re+1]*256);return Ee}s.prototype.slice=function(j,I){const B=this.length;j=~~j,I=I===void 0?B:~~I,j<0?(j+=B,j<0&&(j=0)):j>B&&(j=B),I<0?(I+=B,I<0&&(I=0)):I>B&&(I=B),I<j&&(I=j);const pe=this.subarray(j,I);return Object.setPrototypeOf(pe,s.prototype),pe};function q(j,I,B){if(j%1!==0||j<0)throw new RangeError("offset is not uint");if(j+I>B)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(j,I,B){j=j>>>0,I=I>>>0,B||q(j,I,this.length);let pe=this[j],Ee=1,Re=0;for(;++Re<I&&(Ee*=256);)pe+=this[j+Re]*Ee;return pe},s.prototype.readUintBE=s.prototype.readUIntBE=function(j,I,B){j=j>>>0,I=I>>>0,B||q(j,I,this.length);let pe=this[j+--I],Ee=1;for(;I>0&&(Ee*=256);)pe+=this[j+--I]*Ee;return pe},s.prototype.readUint8=s.prototype.readUInt8=function(j,I){return j=j>>>0,I||q(j,1,this.length),this[j]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(j,I){return j=j>>>0,I||q(j,2,this.length),this[j]|this[j+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(j,I){return j=j>>>0,I||q(j,2,this.length),this[j]<<8|this[j+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(j,I){return j=j>>>0,I||q(j,4,this.length),(this[j]|this[j+1]<<8|this[j+2]<<16)+this[j+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(j,I){return j=j>>>0,I||q(j,4,this.length),this[j]*16777216+(this[j+1]<<16|this[j+2]<<8|this[j+3])},s.prototype.readBigUInt64LE=ut(function(j){j=j>>>0,W(j,"offset");const I=this[j],B=this[j+7];(I===void 0||B===void 0)&&ge(j,this.length-8);const pe=I+this[++j]*2**8+this[++j]*2**16+this[++j]*2**24,Ee=this[++j]+this[++j]*2**8+this[++j]*2**16+B*2**24;return BigInt(pe)+(BigInt(Ee)<<BigInt(32))}),s.prototype.readBigUInt64BE=ut(function(j){j=j>>>0,W(j,"offset");const I=this[j],B=this[j+7];(I===void 0||B===void 0)&&ge(j,this.length-8);const pe=I*2**24+this[++j]*2**16+this[++j]*2**8+this[++j],Ee=this[++j]*2**24+this[++j]*2**16+this[++j]*2**8+B;return(BigInt(pe)<<BigInt(32))+BigInt(Ee)}),s.prototype.readIntLE=function(j,I,B){j=j>>>0,I=I>>>0,B||q(j,I,this.length);let pe=this[j],Ee=1,Re=0;for(;++Re<I&&(Ee*=256);)pe+=this[j+Re]*Ee;return Ee*=128,pe>=Ee&&(pe-=Math.pow(2,8*I)),pe},s.prototype.readIntBE=function(j,I,B){j=j>>>0,I=I>>>0,B||q(j,I,this.length);let pe=I,Ee=1,Re=this[j+--pe];for(;pe>0&&(Ee*=256);)Re+=this[j+--pe]*Ee;return Ee*=128,Re>=Ee&&(Re-=Math.pow(2,8*I)),Re},s.prototype.readInt8=function(j,I){return j=j>>>0,I||q(j,1,this.length),this[j]&128?(255-this[j]+1)*-1:this[j]},s.prototype.readInt16LE=function(j,I){j=j>>>0,I||q(j,2,this.length);const B=this[j]|this[j+1]<<8;return B&32768?B|4294901760:B},s.prototype.readInt16BE=function(j,I){j=j>>>0,I||q(j,2,this.length);const B=this[j+1]|this[j]<<8;return B&32768?B|4294901760:B},s.prototype.readInt32LE=function(j,I){return j=j>>>0,I||q(j,4,this.length),this[j]|this[j+1]<<8|this[j+2]<<16|this[j+3]<<24},s.prototype.readInt32BE=function(j,I){return j=j>>>0,I||q(j,4,this.length),this[j]<<24|this[j+1]<<16|this[j+2]<<8|this[j+3]},s.prototype.readBigInt64LE=ut(function(j){j=j>>>0,W(j,"offset");const I=this[j],B=this[j+7];(I===void 0||B===void 0)&&ge(j,this.length-8);const pe=this[j+4]+this[j+5]*2**8+this[j+6]*2**16+(B<<24);return(BigInt(pe)<<BigInt(32))+BigInt(I+this[++j]*2**8+this[++j]*2**16+this[++j]*2**24)}),s.prototype.readBigInt64BE=ut(function(j){j=j>>>0,W(j,"offset");const I=this[j],B=this[j+7];(I===void 0||B===void 0)&&ge(j,this.length-8);const pe=(I<<24)+this[++j]*2**16+this[++j]*2**8+this[++j];return(BigInt(pe)<<BigInt(32))+BigInt(this[++j]*2**24+this[++j]*2**16+this[++j]*2**8+B)}),s.prototype.readFloatLE=function(j,I){return j=j>>>0,I||q(j,4,this.length),r.read(this,j,!0,23,4)},s.prototype.readFloatBE=function(j,I){return j=j>>>0,I||q(j,4,this.length),r.read(this,j,!1,23,4)},s.prototype.readDoubleLE=function(j,I){return j=j>>>0,I||q(j,8,this.length),r.read(this,j,!0,52,8)},s.prototype.readDoubleBE=function(j,I){return j=j>>>0,I||q(j,8,this.length),r.read(this,j,!1,52,8)};function ae(j,I,B,pe,Ee,Re){if(!s.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(I>Ee||I<Re)throw new RangeError('"value" argument is out of bounds');if(B+pe>j.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(j,I,B,pe){if(j=+j,I=I>>>0,B=B>>>0,!pe){const Be=Math.pow(2,8*B)-1;ae(this,j,I,B,Be,0)}let Ee=1,Re=0;for(this[I]=j&255;++Re<B&&(Ee*=256);)this[I+Re]=j/Ee&255;return I+B},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(j,I,B,pe){if(j=+j,I=I>>>0,B=B>>>0,!pe){const Be=Math.pow(2,8*B)-1;ae(this,j,I,B,Be,0)}let Ee=B-1,Re=1;for(this[I+Ee]=j&255;--Ee>=0&&(Re*=256);)this[I+Ee]=j/Re&255;return I+B},s.prototype.writeUint8=s.prototype.writeUInt8=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,1,255,0),this[I]=j&255,I+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,2,65535,0),this[I]=j&255,this[I+1]=j>>>8,I+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,2,65535,0),this[I]=j>>>8,this[I+1]=j&255,I+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,4,4294967295,0),this[I+3]=j>>>24,this[I+2]=j>>>16,this[I+1]=j>>>8,this[I]=j&255,I+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,4,4294967295,0),this[I]=j>>>24,this[I+1]=j>>>16,this[I+2]=j>>>8,this[I+3]=j&255,I+4};function Y(j,I,B,pe,Ee){P(I,pe,Ee,j,B,7);let Re=Number(I&BigInt(4294967295));j[B++]=Re,Re=Re>>8,j[B++]=Re,Re=Re>>8,j[B++]=Re,Re=Re>>8,j[B++]=Re;let Be=Number(I>>BigInt(32)&BigInt(4294967295));return j[B++]=Be,Be=Be>>8,j[B++]=Be,Be=Be>>8,j[B++]=Be,Be=Be>>8,j[B++]=Be,B}function te(j,I,B,pe,Ee){P(I,pe,Ee,j,B,7);let Re=Number(I&BigInt(4294967295));j[B+7]=Re,Re=Re>>8,j[B+6]=Re,Re=Re>>8,j[B+5]=Re,Re=Re>>8,j[B+4]=Re;let Be=Number(I>>BigInt(32)&BigInt(4294967295));return j[B+3]=Be,Be=Be>>8,j[B+2]=Be,Be=Be>>8,j[B+1]=Be,Be=Be>>8,j[B]=Be,B+8}s.prototype.writeBigUInt64LE=ut(function(j,I=0){return Y(this,j,I,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=ut(function(j,I=0){return te(this,j,I,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(j,I,B,pe){if(j=+j,I=I>>>0,!pe){const it=Math.pow(2,8*B-1);ae(this,j,I,B,it-1,-it)}let Ee=0,Re=1,Be=0;for(this[I]=j&255;++Ee<B&&(Re*=256);)j<0&&Be===0&&this[I+Ee-1]!==0&&(Be=1),this[I+Ee]=(j/Re>>0)-Be&255;return I+B},s.prototype.writeIntBE=function(j,I,B,pe){if(j=+j,I=I>>>0,!pe){const it=Math.pow(2,8*B-1);ae(this,j,I,B,it-1,-it)}let Ee=B-1,Re=1,Be=0;for(this[I+Ee]=j&255;--Ee>=0&&(Re*=256);)j<0&&Be===0&&this[I+Ee+1]!==0&&(Be=1),this[I+Ee]=(j/Re>>0)-Be&255;return I+B},s.prototype.writeInt8=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,1,127,-128),j<0&&(j=255+j+1),this[I]=j&255,I+1},s.prototype.writeInt16LE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,2,32767,-32768),this[I]=j&255,this[I+1]=j>>>8,I+2},s.prototype.writeInt16BE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,2,32767,-32768),this[I]=j>>>8,this[I+1]=j&255,I+2},s.prototype.writeInt32LE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,4,2147483647,-2147483648),this[I]=j&255,this[I+1]=j>>>8,this[I+2]=j>>>16,this[I+3]=j>>>24,I+4},s.prototype.writeInt32BE=function(j,I,B){return j=+j,I=I>>>0,B||ae(this,j,I,4,2147483647,-2147483648),j<0&&(j=4294967295+j+1),this[I]=j>>>24,this[I+1]=j>>>16,this[I+2]=j>>>8,this[I+3]=j&255,I+4},s.prototype.writeBigInt64LE=ut(function(j,I=0){return Y(this,j,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=ut(function(j,I=0){return te(this,j,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function de(j,I,B,pe,Ee,Re){if(B+pe>j.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("Index out of range")}function Q(j,I,B,pe,Ee){return I=+I,B=B>>>0,Ee||de(j,I,B,4),r.write(j,I,B,pe,23,4),B+4}s.prototype.writeFloatLE=function(j,I,B){return Q(this,j,I,!0,B)},s.prototype.writeFloatBE=function(j,I,B){return Q(this,j,I,!1,B)};function oe(j,I,B,pe,Ee){return I=+I,B=B>>>0,Ee||de(j,I,B,8),r.write(j,I,B,pe,52,8),B+8}s.prototype.writeDoubleLE=function(j,I,B){return oe(this,j,I,!0,B)},s.prototype.writeDoubleBE=function(j,I,B){return oe(this,j,I,!1,B)},s.prototype.copy=function(j,I,B,pe){if(!s.isBuffer(j))throw new TypeError("argument should be a Buffer");if(B||(B=0),!pe&&pe!==0&&(pe=this.length),I>=j.length&&(I=j.length),I||(I=0),pe>0&&pe<B&&(pe=B),pe===B||j.length===0||this.length===0)return 0;if(I<0)throw new RangeError("targetStart out of bounds");if(B<0||B>=this.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("sourceEnd out of bounds");pe>this.length&&(pe=this.length),j.length-I<pe-B&&(pe=j.length-I+B);const Ee=pe-B;return this===j&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(I,B,pe):Uint8Array.prototype.set.call(j,this.subarray(B,pe),I),Ee},s.prototype.fill=function(j,I,B,pe){if(typeof j=="string"){if(typeof I=="string"?(pe=I,I=0,B=this.length):typeof B=="string"&&(pe=B,B=this.length),pe!==void 0&&typeof pe!="string")throw new TypeError("encoding must be a string");if(typeof pe=="string"&&!s.isEncoding(pe))throw new TypeError("Unknown encoding: "+pe);if(j.length===1){const Re=j.charCodeAt(0);(pe==="utf8"&&Re<128||pe==="latin1")&&(j=Re)}}else typeof j=="number"?j=j&255:typeof j=="boolean"&&(j=Number(j));if(I<0||this.length<I||this.length<B)throw new RangeError("Out of range index");if(B<=I)return this;I=I>>>0,B=B===void 0?this.length:B>>>0,j||(j=0);let Ee;if(typeof j=="number")for(Ee=I;Ee<B;++Ee)this[Ee]=j;else{const Re=s.isBuffer(j)?j:s.from(j,pe),Be=Re.length;if(Be===0)throw new TypeError('The value "'+j+'" is invalid for argument "value"');for(Ee=0;Ee<B-I;++Ee)this[Ee+I]=Re[Ee%Be]}return this};const H={};function ve(j,I,B){H[j]=class extends B{constructor(){super(),Object.defineProperty(this,"message",{value:I.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${j}]`,delete this.name}get code(){return j}set code(pe){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:pe,writable:!0})}toString(){return`${this.name} [${j}]: ${this.message}`}}}ve("ERR_BUFFER_OUT_OF_BOUNDS",function(j){return j?`${j} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ve("ERR_INVALID_ARG_TYPE",function(j,I){return`The "${j}" argument must be of type number. Received type ${typeof I}`},TypeError),ve("ERR_OUT_OF_RANGE",function(j,I,B){let pe=`The value of "${j}" is out of range.`,Ee=B;return Number.isInteger(B)&&Math.abs(B)>2**32?Ee=ke(String(B)):typeof B=="bigint"&&(Ee=String(B),(B>BigInt(2)**BigInt(32)||B<-(BigInt(2)**BigInt(32)))&&(Ee=ke(Ee)),Ee+="n"),pe+=` It must be ${I}. Received ${Ee}`,pe},RangeError);function ke(j){let I="",B=j.length;const pe=j[0]==="-"?1:0;for(;B>=pe+4;B-=3)I=`_${j.slice(B-3,B)}${I}`;return`${j.slice(0,B)}${I}`}function E(j,I,B){W(I,"offset"),(j[I]===void 0||j[I+B]===void 0)&&ge(I,j.length-(B+1))}function P(j,I,B,pe,Ee,Re){if(j>B||j<I){const Be=typeof I=="bigint"?"n":"";let it;throw I===0||I===BigInt(0)?it=`>= 0${Be} and < 2${Be} ** ${(Re+1)*8}${Be}`:it=`>= -(2${Be} ** ${(Re+1)*8-1}${Be}) and < 2 ** ${(Re+1)*8-1}${Be}`,new H.ERR_OUT_OF_RANGE("value",it,j)}E(pe,Ee,Re)}function W(j,I){if(typeof j!="number")throw new H.ERR_INVALID_ARG_TYPE(I,"number",j)}function ge(j,I,B){throw Math.floor(j)!==j?(W(j,B),new H.ERR_OUT_OF_RANGE("offset","an integer",j)):I<0?new H.ERR_BUFFER_OUT_OF_BOUNDS:new H.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${I}`,j)}const xe=/[^+/0-9A-Za-z-_]/g;function ce(j){if(j=j.split("=")[0],j=j.trim().replace(xe,""),j.length<2)return"";for(;j.length%4!==0;)j=j+"=";return j}function ue(j,I){I=I||1/0;let B;const pe=j.length;let Ee=null;const Re=[];for(let Be=0;Be<pe;++Be){if(B=j.charCodeAt(Be),B>55295&&B<57344){if(!Ee){if(B>56319){(I-=3)>-1&&Re.push(239,191,189);continue}else if(Be+1===pe){(I-=3)>-1&&Re.push(239,191,189);continue}Ee=B;continue}if(B<56320){(I-=3)>-1&&Re.push(239,191,189),Ee=B;continue}B=(Ee-55296<<10|B-56320)+65536}else Ee&&(I-=3)>-1&&Re.push(239,191,189);if(Ee=null,B<128){if((I-=1)<0)break;Re.push(B)}else if(B<2048){if((I-=2)<0)break;Re.push(B>>6|192,B&63|128)}else if(B<65536){if((I-=3)<0)break;Re.push(B>>12|224,B>>6&63|128,B&63|128)}else if(B<1114112){if((I-=4)<0)break;Re.push(B>>18|240,B>>12&63|128,B>>6&63|128,B&63|128)}else throw new Error("Invalid code point")}return Re}function je(j){const I=[];for(let B=0;B<j.length;++B)I.push(j.charCodeAt(B)&255);return I}function he(j,I){let B,pe,Ee;const Re=[];for(let Be=0;Be<j.length&&!((I-=2)<0);++Be)B=j.charCodeAt(Be),pe=B>>8,Ee=B%256,Re.push(Ee),Re.push(pe);return Re}function Ke(j){return t.toByteArray(ce(j))}function Je(j,I,B,pe){let Ee;for(Ee=0;Ee<pe&&!(Ee+B>=I.length||Ee>=j.length);++Ee)I[Ee+B]=j[Ee];return Ee}function He(j,I){return j instanceof I||j!=null&&j.constructor!=null&&j.constructor.name!=null&&j.constructor.name===I.name}function Ve(j){return j!==j}const Xe=(function(){const j="0123456789abcdef",I=new Array(256);for(let B=0;B<16;++B){const pe=B*16;for(let Ee=0;Ee<16;++Ee)I[pe+Ee]=j[B]+j[Ee]}return I})();function ut(j){return typeof BigInt>"u"?Fe:j}function Fe(){throw new Error("BigInt not supported")}})(kW)),kW}const _W=sa(pF);var fk,OW;function fUe(){if(OW)return fk;OW=1;function e(v,x){var C=Object.keys(v);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(v);x&&(S=S.filter(function(w){return Object.getOwnPropertyDescriptor(v,w).enumerable})),C.push.apply(C,S)}return C}function t(v){for(var x=1;x<arguments.length;x++){var C=arguments[x]!=null?arguments[x]:{};x%2?e(Object(C),!0).forEach(function(S){r(v,S,C[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(C)):e(Object(C)).forEach(function(S){Object.defineProperty(v,S,Object.getOwnPropertyDescriptor(C,S))})}return v}function r(v,x,C){return x=i(x),x in v?Object.defineProperty(v,x,{value:C,enumerable:!0,configurable:!0,writable:!0}):v[x]=C,v}function n(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function o(v,x){for(var C=0;C<x.length;C++){var S=x[C];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,i(S.key),S)}}function a(v,x,C){return x&&o(v.prototype,x),Object.defineProperty(v,"prototype",{writable:!1}),v}function i(v){var x=s(v,"string");return typeof x=="symbol"?x:String(x)}function s(v,x){if(typeof v!="object"||v===null)return v;var C=v[Symbol.toPrimitive];if(C!==void 0){var S=C.call(v,x);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}var c=cf(),u=c.Buffer,d=_W,f=d.inspect,g=f&&f.custom||"inspect";function y(v,x,C){u.prototype.copy.call(v,x,C)}return fk=(function(){function v(){n(this,v),this.head=null,this.tail=null,this.length=0}return a(v,[{key:"push",value:function(x){var C={data:x,next:null};this.length>0?this.tail.next=C:this.head=C,this.tail=C,++this.length}},{key:"unshift",value:function(x){var C={data:x,next:this.head};this.length===0&&(this.tail=C),this.head=C,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var C=this.head,S=""+C.data;C=C.next;)S+=x+C.data;return S}},{key:"concat",value:function(x){if(this.length===0)return u.alloc(0);for(var C=u.allocUnsafe(x>>>0),S=this.head,w=0;S;)y(S.data,C,w),w+=S.data.length,S=S.next;return C}},{key:"consume",value:function(x,C){var S;return x<this.head.data.length?(S=this.head.data.slice(0,x),this.head.data=this.head.data.slice(x)):x===this.head.data.length?S=this.shift():S=C?this._getString(x):this._getBuffer(x),S}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(x){var C=this.head,S=1,w=C.data;for(x-=w.length;C=C.next;){var T=C.data,A=x>T.length?T.length:x;if(A===T.length?w+=T:w+=T.slice(0,x),x-=A,x===0){A===T.length?(++S,C.next?this.head=C.next:this.head=this.tail=null):(this.head=C,C.data=T.slice(A));break}++S}return this.length-=S,w}},{key:"_getBuffer",value:function(x){var C=u.allocUnsafe(x),S=this.head,w=1;for(S.data.copy(C),x-=S.data.length;S=S.next;){var T=S.data,A=x>T.length?T.length:x;if(T.copy(C,C.length-x,0,A),x-=A,x===0){A===T.length?(++w,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=T.slice(A));break}++w}return this.length-=w,C}},{key:g,value:function(x,C){return f(this,t(t({},C),{},{depth:0,customInspect:!1}))}}]),v})(),fk}var mk,RW;function LW(){if(RW)return mk;RW=1;function e(i,s){var c=this,u=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return u||d?(s?s(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,i)):process.nextTick(o,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(f){!s&&f?c._writableState?c._writableState.errorEmitted?process.nextTick(r,c):(c._writableState.errorEmitted=!0,process.nextTick(t,c,f)):process.nextTick(t,c,f):s?(process.nextTick(r,c),s(f)):process.nextTick(r,c)}),this)}function t(i,s){o(i,s),r(i)}function r(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.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(i,s){i.emit("error",s)}function a(i,s){var c=i._readableState,u=i._writableState;c&&c.autoDestroy||u&&u.autoDestroy?i.destroy(s):i.emit("error",s)}return mk={destroy:e,undestroy:n,errorOrDestroy:a},mk}var gk={},jW;function cu(){if(jW)return gk;jW=1;function e(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,s.__proto__=c}var t={};function r(s,c,u){u||(u=Error);function d(g,y,v){return typeof c=="string"?c:c(g,y,v)}var f=(function(g){e(y,g);function y(v,x,C){return g.call(this,d(v,x,C))||this}return y})(u);f.prototype.name=u.name,f.prototype.code=s,t[s]=f}function n(s,c){if(Array.isArray(s)){var u=s.length;return s=s.map(function(d){return String(d)}),u>2?"one of ".concat(c," ").concat(s.slice(0,u-1).join(", "),", or ")+s[u-1]:u===2?"one of ".concat(c," ").concat(s[0]," or ").concat(s[1]):"of ".concat(c," ").concat(s[0])}else return"of ".concat(c," ").concat(String(s))}function o(s,c,u){return s.substr(0,c.length)===c}function a(s,c,u){return(u===void 0||u>s.length)&&(u=s.length),s.substring(u-c.length,u)===c}function i(s,c,u){return typeof u!="number"&&(u=0),u+c.length>s.length?!1:s.indexOf(c,u)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,c){return'The value "'+c+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,c,u){var d;typeof c=="string"&&o(c,"not ")?(d="must not be",c=c.replace(/^not /,"")):d="must be";var f;if(a(s," argument"))f="The ".concat(s," ").concat(d," ").concat(n(c,"type"));else{var g=i(s,".")?"property":"argument";f='The "'.concat(s,'" ').concat(g," ").concat(d," ").concat(n(c,"type"))}return f+=". Received type ".concat(typeof u),f},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"),gk.codes=t,gk}var bk,PW;function NW(){if(PW)return bk;PW=1;var e=cu().codes.ERR_INVALID_OPT_VALUE;function t(n,o,a){return n.highWaterMark!=null?n.highWaterMark:o?n[a]:null}function r(n,o,a,i){var s=t(o,i,a);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var c=i?a:"highWaterMark";throw new e(c,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return bk={getHighWaterMark:r},bk}var yk,IW;function mUe(){if(IW)return yk;IW=1,yk=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function a(){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 a}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 yk}var vk,$W;function DW(){if($W)return vk;$W=1,vk=_;function e(Q){var oe=this;this.next=null,this.entry=null,this.finish=function(){de(oe,Q)}}var t;_.WritableState=L;var r={deprecate:mUe()},n=CW(),o=cf().Buffer,a=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(Q){return o.from(Q)}function s(Q){return o.isBuffer(Q)||Q instanceof a}var c=LW(),u=NW(),d=u.getHighWaterMark,f=cu().codes,g=f.ERR_INVALID_ARG_TYPE,y=f.ERR_METHOD_NOT_IMPLEMENTED,v=f.ERR_MULTIPLE_CALLBACK,x=f.ERR_STREAM_CANNOT_PIPE,C=f.ERR_STREAM_DESTROYED,S=f.ERR_STREAM_NULL_VALUES,w=f.ERR_STREAM_WRITE_AFTER_END,T=f.ERR_UNKNOWN_ENCODING,A=c.errorOrDestroy;function R(){}function L(Q,oe,H){t=t||pu(),Q=Q||{},typeof H!="boolean"&&(H=oe instanceof t),this.objectMode=!!Q.objectMode,H&&(this.objectMode=this.objectMode||!!Q.writableObjectMode),this.highWaterMark=d(this,Q,"writableHighWaterMark",H),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ve=Q.decodeStrings===!1;this.decodeStrings=!ve,this.defaultEncoding=Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ke){V(oe,ke)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Q.emitClose!==!1,this.autoDestroy=!!Q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}L.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,oe=[];Q;)oe.push(Q),Q=Q.next;return oe},(function(){try{Object.defineProperty(L.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var N;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(N=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(Q){return N.call(this,Q)?!0:this!==_?!1:Q&&Q._writableState instanceof L}})):N=function(Q){return Q instanceof this};function _(Q){t=t||pu();var oe=this instanceof t;if(!oe&&!N.call(_,this))return new _(Q);this._writableState=new L(Q,this,oe),this.writable=!0,Q&&(typeof Q.write=="function"&&(this._write=Q.write),typeof Q.writev=="function"&&(this._writev=Q.writev),typeof Q.destroy=="function"&&(this._destroy=Q.destroy),typeof Q.final=="function"&&(this._final=Q.final)),n.call(this)}_.prototype.pipe=function(){A(this,new x)};function $(Q,oe){var H=new w;A(Q,H),process.nextTick(oe,H)}function z(Q,oe,H,ve){var ke;return H===null?ke=new S:typeof H!="string"&&!oe.objectMode&&(ke=new g("chunk",["string","Buffer"],H)),ke?(A(Q,ke),process.nextTick(ve,ke),!1):!0}_.prototype.write=function(Q,oe,H){var ve=this._writableState,ke=!1,E=!ve.objectMode&&s(Q);return E&&!o.isBuffer(Q)&&(Q=i(Q)),typeof oe=="function"&&(H=oe,oe=null),E?oe="buffer":oe||(oe=ve.defaultEncoding),typeof H!="function"&&(H=R),ve.ending?$(this,H):(E||z(this,ve,Q,H))&&(ve.pendingcb++,ke=U(this,ve,E,Q,oe,H)),ke},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var Q=this._writableState;Q.corked&&(Q.corked--,!Q.writing&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&se(this,Q))},_.prototype.setDefaultEncoding=function(Q){if(typeof Q=="string"&&(Q=Q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new T(Q);return this._writableState.defaultEncoding=Q,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function F(Q,oe,H){return!Q.objectMode&&Q.decodeStrings!==!1&&typeof oe=="string"&&(oe=o.from(oe,H)),oe}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function U(Q,oe,H,ve,ke,E){if(!H){var P=F(oe,ve,ke);ve!==P&&(H=!0,ke="buffer",ve=P)}var W=oe.objectMode?1:ve.length;oe.length+=W;var ge=oe.length<oe.highWaterMark;if(ge||(oe.needDrain=!0),oe.writing||oe.corked){var xe=oe.lastBufferedRequest;oe.lastBufferedRequest={chunk:ve,encoding:ke,isBuf:H,callback:E,next:null},xe?xe.next=oe.lastBufferedRequest:oe.bufferedRequest=oe.lastBufferedRequest,oe.bufferedRequestCount+=1}else G(Q,oe,!1,W,ve,ke,E);return ge}function G(Q,oe,H,ve,ke,E,P){oe.writelen=ve,oe.writecb=P,oe.writing=!0,oe.sync=!0,oe.destroyed?oe.onwrite(new C("write")):H?Q._writev(ke,oe.onwrite):Q._write(ke,E,oe.onwrite),oe.sync=!1}function ee(Q,oe,H,ve,ke){--oe.pendingcb,H?(process.nextTick(ke,ve),process.nextTick(Y,Q,oe),Q._writableState.errorEmitted=!0,A(Q,ve)):(ke(ve),Q._writableState.errorEmitted=!0,A(Q,ve),Y(Q,oe))}function le(Q){Q.writing=!1,Q.writecb=null,Q.length-=Q.writelen,Q.writelen=0}function V(Q,oe){var H=Q._writableState,ve=H.sync,ke=H.writecb;if(typeof ke!="function")throw new v;if(le(H),oe)ee(Q,H,ve,oe,ke);else{var E=Z(H)||Q.destroyed;!E&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&se(Q,H),ve?process.nextTick(ie,Q,H,E,ke):ie(Q,H,E,ke)}}function ie(Q,oe,H,ve){H||re(Q,oe),oe.pendingcb--,ve(),Y(Q,oe)}function re(Q,oe){oe.length===0&&oe.needDrain&&(oe.needDrain=!1,Q.emit("drain"))}function se(Q,oe){oe.bufferProcessing=!0;var H=oe.bufferedRequest;if(Q._writev&&H&&H.next){var ve=oe.bufferedRequestCount,ke=new Array(ve),E=oe.corkedRequestsFree;E.entry=H;for(var P=0,W=!0;H;)ke[P]=H,H.isBuf||(W=!1),H=H.next,P+=1;ke.allBuffers=W,G(Q,oe,!0,oe.length,ke,"",E.finish),oe.pendingcb++,oe.lastBufferedRequest=null,E.next?(oe.corkedRequestsFree=E.next,E.next=null):oe.corkedRequestsFree=new e(oe),oe.bufferedRequestCount=0}else{for(;H;){var ge=H.chunk,xe=H.encoding,ce=H.callback,ue=oe.objectMode?1:ge.length;if(G(Q,oe,!1,ue,ge,xe,ce),H=H.next,oe.bufferedRequestCount--,oe.writing)break}H===null&&(oe.lastBufferedRequest=null)}oe.bufferedRequest=H,oe.bufferProcessing=!1}_.prototype._write=function(Q,oe,H){H(new y("_write()"))},_.prototype._writev=null,_.prototype.end=function(Q,oe,H){var ve=this._writableState;return typeof Q=="function"?(H=Q,Q=null,oe=null):typeof oe=="function"&&(H=oe,oe=null),Q!=null&&this.write(Q,oe),ve.corked&&(ve.corked=1,this.uncork()),ve.ending||te(this,ve,H),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Z(Q){return Q.ending&&Q.length===0&&Q.bufferedRequest===null&&!Q.finished&&!Q.writing}function q(Q,oe){Q._final(function(H){oe.pendingcb--,H&&A(Q,H),oe.prefinished=!0,Q.emit("prefinish"),Y(Q,oe)})}function ae(Q,oe){!oe.prefinished&&!oe.finalCalled&&(typeof Q._final=="function"&&!oe.destroyed?(oe.pendingcb++,oe.finalCalled=!0,process.nextTick(q,Q,oe)):(oe.prefinished=!0,Q.emit("prefinish")))}function Y(Q,oe){var H=Z(oe);if(H&&(ae(Q,oe),oe.pendingcb===0&&(oe.finished=!0,Q.emit("finish"),oe.autoDestroy))){var ve=Q._readableState;(!ve||ve.autoDestroy&&ve.endEmitted)&&Q.destroy()}return H}function te(Q,oe,H){oe.ending=!0,Y(Q,oe),H&&(oe.finished?process.nextTick(H):Q.once("finish",H)),oe.ended=!0,Q.writable=!1}function de(Q,oe,H){var ve=Q.entry;for(Q.entry=null;ve;){var ke=ve.callback;oe.pendingcb--,ke(H),ve=ve.next}oe.corkedRequestsFree.next=Q}return Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Q){this._writableState&&(this._writableState.destroyed=Q)}}),_.prototype.destroy=c.destroy,_.prototype._undestroy=c.undestroy,_.prototype._destroy=function(Q,oe){oe(Q)},vk}var xk,MW;function pu(){if(MW)return xk;MW=1;var e=Object.keys||function(u){var d=[];for(var f in u)d.push(f);return d};xk=i;for(var t=GW(),r=DW(),n=e(r.prototype),o=0;o<n.length;o++){var a=n[o];i.prototype[a]||(i.prototype[a]=r.prototype[a])}function i(u){if(!(this instanceof i))return new i(u);t.call(this,u),r.call(this,u),this.allowHalfOpen=!0,u&&(u.readable===!1&&(this.readable=!1),u.writable===!1&&(this.writable=!1),u.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(i.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(i.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(c,this)}function c(u){u.end()}return Object.defineProperty(i.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),xk}var wk={},Sk={exports:{}},zW;function gUe(){return zW||(zW=1,(function(e,t){var r=cf(),n=r.Buffer;function o(i,s){for(var c in i)s[c]=i[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a);function a(i,s,c){return n(i,s,c)}a.prototype=Object.create(n.prototype),o(n,a),a.from=function(i,s,c){if(typeof i=="number")throw new TypeError("Argument must not be a number");return n(i,s,c)},a.alloc=function(i,s,c){if(typeof i!="number")throw new TypeError("Argument must be a number");var u=n(i);return s!==void 0?typeof c=="string"?u.fill(s,c):u.fill(s):u.fill(0),u},a.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return n(i)},a.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(i)}})(Sk,Sk.exports)),Sk.exports}var UW;function BW(){if(UW)return wk;UW=1;var e=gUe().Buffer,t=e.isEncoding||function(S){switch(S=""+S,S&&S.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(S){if(!S)return"utf8";for(var w;;)switch(S){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 S;default:if(w)return;S=(""+S).toLowerCase(),w=!0}}function n(S){var w=r(S);if(typeof w!="string"&&(e.isEncoding===t||!t(S)))throw new Error("Unknown encoding: "+S);return w||S}wk.StringDecoder=o;function o(S){this.encoding=n(S);var w;switch(this.encoding){case"utf16le":this.text=f,this.end=g,w=4;break;case"utf8":this.fillLast=c,w=4;break;case"base64":this.text=y,this.end=v,w=3;break;default:this.write=x,this.end=C;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(w)}o.prototype.write=function(S){if(S.length===0)return"";var w,T;if(this.lastNeed){if(w=this.fillLast(S),w===void 0)return"";T=this.lastNeed,this.lastNeed=0}else T=0;return T<S.length?w?w+this.text(S,T):this.text(S,T):w||""},o.prototype.end=d,o.prototype.text=u,o.prototype.fillLast=function(S){if(this.lastNeed<=S.length)return S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,S.length),this.lastNeed-=S.length};function a(S){return S<=127?0:S>>5===6?2:S>>4===14?3:S>>3===30?4:S>>6===2?-1:-2}function i(S,w,T){var A=w.length-1;if(A<T)return 0;var R=a(w[A]);return R>=0?(R>0&&(S.lastNeed=R-1),R):--A<T||R===-2?0:(R=a(w[A]),R>=0?(R>0&&(S.lastNeed=R-2),R):--A<T||R===-2?0:(R=a(w[A]),R>=0?(R>0&&(R===2?R=0:S.lastNeed=R-3),R):0))}function s(S,w,T){if((w[0]&192)!==128)return S.lastNeed=0,"\uFFFD";if(S.lastNeed>1&&w.length>1){if((w[1]&192)!==128)return S.lastNeed=1,"\uFFFD";if(S.lastNeed>2&&w.length>2&&(w[2]&192)!==128)return S.lastNeed=2,"\uFFFD"}}function c(S){var w=this.lastTotal-this.lastNeed,T=s(this,S);if(T!==void 0)return T;if(this.lastNeed<=S.length)return S.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,w,0,S.length),this.lastNeed-=S.length}function u(S,w){var T=i(this,S,w);if(!this.lastNeed)return S.toString("utf8",w);this.lastTotal=T;var A=S.length-(T-this.lastNeed);return S.copy(this.lastChar,0,A),S.toString("utf8",w,A)}function d(S){var w=S&&S.length?this.write(S):"";return this.lastNeed?w+"\uFFFD":w}function f(S,w){if((S.length-w)%2===0){var T=S.toString("utf16le",w);if(T){var A=T.charCodeAt(T.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1],T.slice(0,-1)}return T}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=S[S.length-1],S.toString("utf16le",w,S.length-1)}function g(S){var w=S&&S.length?this.write(S):"";if(this.lastNeed){var T=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,T)}return w}function y(S,w){var T=(S.length-w)%3;return T===0?S.toString("base64",w):(this.lastNeed=3-T,this.lastTotal=3,T===1?this.lastChar[0]=S[S.length-1]:(this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1]),S.toString("base64",w,S.length-T))}function v(S){var w=S&&S.length?this.write(S):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function x(S){return S.toString(this.encoding)}function C(S){return S&&S.length?this.write(S):""}return wk}var Ck,FW;function kk(){if(FW)return Ck;FW=1;var e=cu().codes.ERR_STREAM_PREMATURE_CLOSE;function t(a){var i=!1;return function(){if(!i){i=!0;for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];a.apply(this,c)}}}function r(){}function n(a){return a.setHeader&&typeof a.abort=="function"}function o(a,i,s){if(typeof i=="function")return o(a,null,i);i||(i={}),s=t(s||r);var c=i.readable||i.readable!==!1&&a.readable,u=i.writable||i.writable!==!1&&a.writable,d=function(){a.writable||g()},f=a._writableState&&a._writableState.finished,g=function(){u=!1,f=!0,c||s.call(a)},y=a._readableState&&a._readableState.endEmitted,v=function(){c=!1,y=!0,u||s.call(a)},x=function(w){s.call(a,w)},C=function(){var w;if(c&&!y)return(!a._readableState||!a._readableState.ended)&&(w=new e),s.call(a,w);if(u&&!f)return(!a._writableState||!a._writableState.ended)&&(w=new e),s.call(a,w)},S=function(){a.req.on("finish",g)};return n(a)?(a.on("complete",g),a.on("abort",C),a.req?S():a.on("request",S)):u&&!a._writableState&&(a.on("end",d),a.on("close",d)),a.on("end",v),a.on("finish",g),i.error!==!1&&a.on("error",x),a.on("close",C),function(){a.removeListener("complete",g),a.removeListener("abort",C),a.removeListener("request",S),a.req&&a.req.removeListener("finish",g),a.removeListener("end",d),a.removeListener("close",d),a.removeListener("finish",g),a.removeListener("end",v),a.removeListener("error",x),a.removeListener("close",C)}}return Ck=o,Ck}var Ek,qW;function bUe(){if(qW)return Ek;qW=1;var e;function t(T,A,R){return A=r(A),A in T?Object.defineProperty(T,A,{value:R,enumerable:!0,configurable:!0,writable:!0}):T[A]=R,T}function r(T){var A=n(T,"string");return typeof A=="symbol"?A:String(A)}function n(T,A){if(typeof T!="object"||T===null)return T;var R=T[Symbol.toPrimitive];if(R!==void 0){var L=R.call(T,A);if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(T)}var o=kk(),a=Symbol("lastResolve"),i=Symbol("lastReject"),s=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function g(T,A){return{value:T,done:A}}function y(T){var A=T[a];if(A!==null){var R=T[f].read();R!==null&&(T[u]=null,T[a]=null,T[i]=null,A(g(R,!1)))}}function v(T){process.nextTick(y,T)}function x(T,A){return function(R,L){T.then(function(){if(A[c]){R(g(void 0,!0));return}A[d](R,L)},L)}}var C=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var T=this,A=this[s];if(A!==null)return Promise.reject(A);if(this[c])return Promise.resolve(g(void 0,!0));if(this[f].destroyed)return new Promise(function(_,$){process.nextTick(function(){T[s]?$(T[s]):_(g(void 0,!0))})});var R=this[u],L;if(R)L=new Promise(x(R,this));else{var N=this[f].read();if(N!==null)return Promise.resolve(g(N,!1));L=new Promise(this[d])}return this[u]=L,L}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var T=this;return new Promise(function(A,R){T[f].destroy(null,function(L){if(L){R(L);return}A(g(void 0,!0))})})}),e),C),w=function(T){var A,R=Object.create(S,(A={},t(A,f,{value:T,writable:!0}),t(A,a,{value:null,writable:!0}),t(A,i,{value:null,writable:!0}),t(A,s,{value:null,writable:!0}),t(A,c,{value:T._readableState.endEmitted,writable:!0}),t(A,d,{value:function(L,N){var _=R[f].read();_?(R[u]=null,R[a]=null,R[i]=null,L(g(_,!1))):(R[a]=L,R[i]=N)},writable:!0}),A));return R[u]=null,o(T,function(L){if(L&&L.code!=="ERR_STREAM_PREMATURE_CLOSE"){var N=R[i];N!==null&&(R[u]=null,R[a]=null,R[i]=null,N(L)),R[s]=L;return}var _=R[a];_!==null&&(R[u]=null,R[a]=null,R[i]=null,_(g(void 0,!0))),R[c]=!0}),T.on("readable",v.bind(null,R)),R};return Ek=w,Ek}var VW,HW;function yUe(){return HW||(HW=1,VW=function(){throw new Error("Readable.from is not available in the browser")}),VW}var Ak,WW;function GW(){if(WW)return Ak;WW=1,Ak=$;var e;$.ReadableState=_;var t=function(E,P){return E.listeners(P).length},r=CW(),n=cf().Buffer,o=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(E){return n.from(E)}function i(E){return n.isBuffer(E)||E instanceof o}var s=_W,c;s&&s.debuglog?c=s.debuglog("stream"):c=function(){};var u=fUe(),d=LW(),f=NW(),g=f.getHighWaterMark,y=cu().codes,v=y.ERR_INVALID_ARG_TYPE,x=y.ERR_STREAM_PUSH_AFTER_EOF,C=y.ERR_METHOD_NOT_IMPLEMENTED,S=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,w,T,A,R=d.errorOrDestroy,L=["error","close","destroy","pause","resume"];function N(E,P,W){if(typeof E.prependListener=="function")return E.prependListener(P,W);!E._events||!E._events[P]?E.on(P,W):Array.isArray(E._events[P])?E._events[P].unshift(W):E._events[P]=[W,E._events[P]]}function _(E,P,W){e=e||pu(),E=E||{},typeof W!="boolean"&&(W=P instanceof e),this.objectMode=!!E.objectMode,W&&(this.objectMode=this.objectMode||!!E.readableObjectMode),this.highWaterMark=g(this,E,"readableHighWaterMark",W),this.buffer=new u,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=E.emitClose!==!1,this.autoDestroy=!!E.autoDestroy,this.destroyed=!1,this.defaultEncoding=E.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,E.encoding&&(w||(w=BW().StringDecoder),this.decoder=new w(E.encoding),this.encoding=E.encoding)}function $(E){if(e=e||pu(),!(this instanceof $))return new $(E);var P=this instanceof e;this._readableState=new _(E,this,P),this.readable=!0,E&&(typeof E.read=="function"&&(this._read=E.read),typeof E.destroy=="function"&&(this._destroy=E.destroy)),r.call(this)}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(E){this._readableState&&(this._readableState.destroyed=E)}}),$.prototype.destroy=d.destroy,$.prototype._undestroy=d.undestroy,$.prototype._destroy=function(E,P){P(E)},$.prototype.push=function(E,P){var W=this._readableState,ge;return W.objectMode?ge=!0:typeof E=="string"&&(P=P||W.defaultEncoding,P!==W.encoding&&(E=n.from(E,P),P=""),ge=!0),z(this,E,P,!1,ge)},$.prototype.unshift=function(E){return z(this,E,null,!0,!1)};function z(E,P,W,ge,xe){c("readableAddChunk",P);var ce=E._readableState;if(P===null)ce.reading=!1,V(E,ce);else{var ue;if(xe||(ue=U(ce,P)),ue)R(E,ue);else if(ce.objectMode||P&&P.length>0)if(typeof P!="string"&&!ce.objectMode&&Object.getPrototypeOf(P)!==n.prototype&&(P=a(P)),ge)ce.endEmitted?R(E,new S):F(E,ce,P,!0);else if(ce.ended)R(E,new x);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!W?(P=ce.decoder.write(P),ce.objectMode||P.length!==0?F(E,ce,P,!1):se(E,ce)):F(E,ce,P,!1)}else ge||(ce.reading=!1,se(E,ce))}return!ce.ended&&(ce.length<ce.highWaterMark||ce.length===0)}function F(E,P,W,ge){P.flowing&&P.length===0&&!P.sync?(P.awaitDrain=0,E.emit("data",W)):(P.length+=P.objectMode?1:W.length,ge?P.buffer.unshift(W):P.buffer.push(W),P.needReadable&&ie(E)),se(E,P)}function U(E,P){var W;return!i(P)&&typeof P!="string"&&P!==void 0&&!E.objectMode&&(W=new v("chunk",["string","Buffer","Uint8Array"],P)),W}$.prototype.isPaused=function(){return this._readableState.flowing===!1},$.prototype.setEncoding=function(E){w||(w=BW().StringDecoder);var P=new w(E);this._readableState.decoder=P,this._readableState.encoding=this._readableState.decoder.encoding;for(var W=this._readableState.buffer.head,ge="";W!==null;)ge+=P.write(W.data),W=W.next;return this._readableState.buffer.clear(),ge!==""&&this._readableState.buffer.push(ge),this._readableState.length=ge.length,this};var G=1073741824;function ee(E){return E>=G?E=G:(E--,E|=E>>>1,E|=E>>>2,E|=E>>>4,E|=E>>>8,E|=E>>>16,E++),E}function le(E,P){return E<=0||P.length===0&&P.ended?0:P.objectMode?1:E!==E?P.flowing&&P.length?P.buffer.head.data.length:P.length:(E>P.highWaterMark&&(P.highWaterMark=ee(E)),E<=P.length?E:P.ended?P.length:(P.needReadable=!0,0))}$.prototype.read=function(E){c("read",E),E=parseInt(E,10);var P=this._readableState,W=E;if(E!==0&&(P.emittedReadable=!1),E===0&&P.needReadable&&((P.highWaterMark!==0?P.length>=P.highWaterMark:P.length>0)||P.ended))return c("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?H(this):ie(this),null;if(E=le(E,P),E===0&&P.ended)return P.length===0&&H(this),null;var ge=P.needReadable;c("need readable",ge),(P.length===0||P.length-E<P.highWaterMark)&&(ge=!0,c("length less than watermark",ge)),P.ended||P.reading?(ge=!1,c("reading or ended",ge)):ge&&(c("do read"),P.reading=!0,P.sync=!0,P.length===0&&(P.needReadable=!0),this._read(P.highWaterMark),P.sync=!1,P.reading||(E=le(W,P)));var xe;return E>0?xe=oe(E,P):xe=null,xe===null?(P.needReadable=P.length<=P.highWaterMark,E=0):(P.length-=E,P.awaitDrain=0),P.length===0&&(P.ended||(P.needReadable=!0),W!==E&&P.ended&&H(this)),xe!==null&&this.emit("data",xe),xe};function V(E,P){if(c("onEofChunk"),!P.ended){if(P.decoder){var W=P.decoder.end();W&&W.length&&(P.buffer.push(W),P.length+=P.objectMode?1:W.length)}P.ended=!0,P.sync?ie(E):(P.needReadable=!1,P.emittedReadable||(P.emittedReadable=!0,re(E)))}}function ie(E){var P=E._readableState;c("emitReadable",P.needReadable,P.emittedReadable),P.needReadable=!1,P.emittedReadable||(c("emitReadable",P.flowing),P.emittedReadable=!0,process.nextTick(re,E))}function re(E){var P=E._readableState;c("emitReadable_",P.destroyed,P.length,P.ended),!P.destroyed&&(P.length||P.ended)&&(E.emit("readable"),P.emittedReadable=!1),P.needReadable=!P.flowing&&!P.ended&&P.length<=P.highWaterMark,Q(E)}function se(E,P){P.readingMore||(P.readingMore=!0,process.nextTick(Z,E,P))}function Z(E,P){for(;!P.reading&&!P.ended&&(P.length<P.highWaterMark||P.flowing&&P.length===0);){var W=P.length;if(c("maybeReadMore read 0"),E.read(0),W===P.length)break}P.readingMore=!1}$.prototype._read=function(E){R(this,new C("_read()"))},$.prototype.pipe=function(E,P){var W=this,ge=this._readableState;switch(ge.pipesCount){case 0:ge.pipes=E;break;case 1:ge.pipes=[ge.pipes,E];break;default:ge.pipes.push(E);break}ge.pipesCount+=1,c("pipe count=%d opts=%j",ge.pipesCount,P);var xe=(!P||P.end!==!1)&&E!==null&&E!==process.stderr,ce=xe?je:Fe;ge.endEmitted?process.nextTick(ce):W.once("end",ce),E.on("unpipe",ue);function ue(j,I){c("onunpipe"),j===W&&I&&I.hasUnpiped===!1&&(I.hasUnpiped=!0,Je())}function je(){c("onend"),E.end()}var he=q(W);E.on("drain",he);var Ke=!1;function Je(){c("cleanup"),E.removeListener("close",Xe),E.removeListener("finish",ut),E.removeListener("drain",he),E.removeListener("error",Ve),E.removeListener("unpipe",ue),W.removeListener("end",je),W.removeListener("end",Fe),W.removeListener("data",He),Ke=!0,ge.awaitDrain&&(!E._writableState||E._writableState.needDrain)&&he()}W.on("data",He);function He(j){c("ondata");var I=E.write(j);c("dest.write",I),I===!1&&((ge.pipesCount===1&&ge.pipes===E||ge.pipesCount>1&&ke(ge.pipes,E)!==-1)&&!Ke&&(c("false write response, pause",ge.awaitDrain),ge.awaitDrain++),W.pause())}function Ve(j){c("onerror",j),Fe(),E.removeListener("error",Ve),t(E,"error")===0&&R(E,j)}N(E,"error",Ve);function Xe(){E.removeListener("finish",ut),Fe()}E.once("close",Xe);function ut(){c("onfinish"),E.removeListener("close",Xe),Fe()}E.once("finish",ut);function Fe(){c("unpipe"),W.unpipe(E)}return E.emit("pipe",W),ge.flowing||(c("pipe resume"),W.resume()),E};function q(E){return function(){var P=E._readableState;c("pipeOnDrain",P.awaitDrain),P.awaitDrain&&P.awaitDrain--,P.awaitDrain===0&&t(E,"data")&&(P.flowing=!0,Q(E))}}$.prototype.unpipe=function(E){var P=this._readableState,W={hasUnpiped:!1};if(P.pipesCount===0)return this;if(P.pipesCount===1)return E&&E!==P.pipes?this:(E||(E=P.pipes),P.pipes=null,P.pipesCount=0,P.flowing=!1,E&&E.emit("unpipe",this,W),this);if(!E){var ge=P.pipes,xe=P.pipesCount;P.pipes=null,P.pipesCount=0,P.flowing=!1;for(var ce=0;ce<xe;ce++)ge[ce].emit("unpipe",this,{hasUnpiped:!1});return this}var ue=ke(P.pipes,E);return ue===-1?this:(P.pipes.splice(ue,1),P.pipesCount-=1,P.pipesCount===1&&(P.pipes=P.pipes[0]),E.emit("unpipe",this,W),this)},$.prototype.on=function(E,P){var W=r.prototype.on.call(this,E,P),ge=this._readableState;return E==="data"?(ge.readableListening=this.listenerCount("readable")>0,ge.flowing!==!1&&this.resume()):E==="readable"&&!ge.endEmitted&&!ge.readableListening&&(ge.readableListening=ge.needReadable=!0,ge.flowing=!1,ge.emittedReadable=!1,c("on readable",ge.length,ge.reading),ge.length?ie(this):ge.reading||process.nextTick(Y,this)),W},$.prototype.addListener=$.prototype.on,$.prototype.removeListener=function(E,P){var W=r.prototype.removeListener.call(this,E,P);return E==="readable"&&process.nextTick(ae,this),W},$.prototype.removeAllListeners=function(E){var P=r.prototype.removeAllListeners.apply(this,arguments);return(E==="readable"||E===void 0)&&process.nextTick(ae,this),P};function ae(E){var P=E._readableState;P.readableListening=E.listenerCount("readable")>0,P.resumeScheduled&&!P.paused?P.flowing=!0:E.listenerCount("data")>0&&E.resume()}function Y(E){c("readable nexttick read 0"),E.read(0)}$.prototype.resume=function(){var E=this._readableState;return E.flowing||(c("resume"),E.flowing=!E.readableListening,te(this,E)),E.paused=!1,this};function te(E,P){P.resumeScheduled||(P.resumeScheduled=!0,process.nextTick(de,E,P))}function de(E,P){c("resume",P.reading),P.reading||E.read(0),P.resumeScheduled=!1,E.emit("resume"),Q(E),P.flowing&&!P.reading&&E.read(0)}$.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Q(E){var P=E._readableState;for(c("flow",P.flowing);P.flowing&&E.read()!==null;);}$.prototype.wrap=function(E){var P=this,W=this._readableState,ge=!1;E.on("end",function(){if(c("wrapped end"),W.decoder&&!W.ended){var ue=W.decoder.end();ue&&ue.length&&P.push(ue)}P.push(null)}),E.on("data",function(ue){if(c("wrapped data"),W.decoder&&(ue=W.decoder.write(ue)),!(W.objectMode&&ue==null)&&!(!W.objectMode&&(!ue||!ue.length))){var je=P.push(ue);je||(ge=!0,E.pause())}});for(var xe in E)this[xe]===void 0&&typeof E[xe]=="function"&&(this[xe]=(function(ue){return function(){return E[ue].apply(E,arguments)}})(xe));for(var ce=0;ce<L.length;ce++)E.on(L[ce],this.emit.bind(this,L[ce]));return this._read=function(ue){c("wrapped _read",ue),ge&&(ge=!1,E.resume())},this},typeof Symbol=="function"&&($.prototype[Symbol.asyncIterator]=function(){return T===void 0&&(T=bUe()),T(this)}),Object.defineProperty($.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty($.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty($.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(E){this._readableState&&(this._readableState.flowing=E)}}),$._fromList=oe,Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function oe(E,P){if(P.length===0)return null;var W;return P.objectMode?W=P.buffer.shift():!E||E>=P.length?(P.decoder?W=P.buffer.join(""):P.buffer.length===1?W=P.buffer.first():W=P.buffer.concat(P.length),P.buffer.clear()):W=P.buffer.consume(E,P.decoder),W}function H(E){var P=E._readableState;c("endReadable",P.endEmitted),P.endEmitted||(P.ended=!0,process.nextTick(ve,P,E))}function ve(E,P){if(c("endReadableNT",E.endEmitted,E.length),!E.endEmitted&&E.length===0&&(E.endEmitted=!0,P.readable=!1,P.emit("end"),E.autoDestroy)){var W=P._writableState;(!W||W.autoDestroy&&W.finished)&&P.destroy()}}typeof Symbol=="function"&&($.from=function(E,P){return A===void 0&&(A=yUe()),A($,E,P)});function ke(E,P){for(var W=0,ge=E.length;W<ge;W++)if(E[W]===P)return W;return-1}return Ak}var Tk,YW;function JW(){if(YW)return Tk;YW=1,Tk=s;var e=cu().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,a=pu();function i(d,f){var g=this._transformState;g.transforming=!1;var y=g.writecb;if(y===null)return this.emit("error",new r);g.writechunk=null,g.writecb=null,f!=null&&this.push(f),y(d);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function s(d){if(!(this instanceof s))return new s(d);a.call(this,d),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",c)}function c(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,g){u(d,f,g)}):u(this,null,null)}s.prototype.push=function(d,f){return this._transformState.needTransform=!1,a.prototype.push.call(this,d,f)},s.prototype._transform=function(d,f,g){g(new t("_transform()"))},s.prototype._write=function(d,f,g){var y=this._transformState;if(y.writecb=g,y.writechunk=d,y.writeencoding=f,!y.transforming){var v=this._readableState;(y.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},s.prototype._read=function(d){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},s.prototype._destroy=function(d,f){a.prototype._destroy.call(this,d,function(g){f(g)})};function u(d,f,g){if(f)return d.emit("error",f);if(g!=null&&d.push(g),d._writableState.length)throw new o;if(d._transformState.transforming)throw new n;return d.push(null)}return Tk}var _k,KW;function vUe(){if(KW)return _k;KW=1,_k=t;var e=JW();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)},_k}var Ok,ZW;function xUe(){if(ZW)return Ok;ZW=1;var e;function t(g){var y=!1;return function(){y||(y=!0,g.apply(void 0,arguments))}}var r=cu().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function a(g){if(g)throw g}function i(g){return g.setHeader&&typeof g.abort=="function"}function s(g,y,v,x){x=t(x);var C=!1;g.on("close",function(){C=!0}),e===void 0&&(e=kk()),e(g,{readable:y,writable:v},function(w){if(w)return x(w);C=!0,x()});var S=!1;return function(w){if(!C&&!S){if(S=!0,i(g))return g.abort();if(typeof g.destroy=="function")return g.destroy();x(w||new o("pipe"))}}}function c(g){g()}function u(g,y){return g.pipe(y)}function d(g){return!g.length||typeof g[g.length-1]!="function"?a:g.pop()}function f(){for(var g=arguments.length,y=new Array(g),v=0;v<g;v++)y[v]=arguments[v];var x=d(y);if(Array.isArray(y[0])&&(y=y[0]),y.length<2)throw new n("streams");var C,S=y.map(function(w,T){var A=T<y.length-1,R=T>0;return s(w,A,R,function(L){C||(C=L),L&&S.forEach(c),!A&&(S.forEach(c),x(C))})});return y.reduce(u)}return Ok=f,Ok}var QW;function XW(){return QW||(QW=1,(function(e,t){t=e.exports=GW(),t.Stream=t,t.Readable=t,t.Writable=DW(),t.Duplex=pu(),t.Transform=JW(),t.PassThrough=vUe(),t.finished=kk(),t.pipeline=xUe()})(dk,dk.exports)),dk.exports}var eG;function tG(){if(eG)return ly;eG=1;var e=vW(),t=qw(),r=XW(),n=ly.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=ly.IncomingMessage=function(a,i,s,c){var u=this;if(r.Readable.call(u),u._mode=s,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){process.nextTick(function(){u.emit("close")})}),s==="fetch"){let x=function(){f.read().then(function(C){if(!u._destroyed){if(c(C.done),C.done){u.push(null);return}u.push(Buffer.from(C.value)),x()}}).catch(function(C){c(!0),u._destroyed||u.emit("error",C)})};if(u._fetchResponse=i,u.url=i.url,u.statusCode=i.status,u.statusMessage=i.statusText,i.headers.forEach(function(C,S){u.headers[S.toLowerCase()]=C,u.rawHeaders.push(S,C)}),e.writableStream){var d=new WritableStream({write:function(C){return c(!1),new Promise(function(S,w){u._destroyed?w():u.push(Buffer.from(C))?S():u._resumeFetch=S})},close:function(){c(!0),u._destroyed||u.push(null)},abort:function(C){c(!0),u._destroyed||u.emit("error",C)}});try{i.body.pipeTo(d).catch(function(C){c(!0),u._destroyed||u.emit("error",C)});return}catch{}}var f=i.body.getReader();x()}else{u._xhr=a,u._pos=0,u.url=a.responseURL,u.statusCode=a.status,u.statusMessage=a.statusText;var g=a.getAllResponseHeaders().split(/\r?\n/);if(g.forEach(function(x){var C=x.match(/^([^:]+):\s*(.*)/);if(C){var S=C[1].toLowerCase();S==="set-cookie"?(u.headers[S]===void 0&&(u.headers[S]=[]),u.headers[S].push(C[2])):u.headers[S]!==void 0?u.headers[S]+=", "+C[2]:u.headers[S]=C[2],u.rawHeaders.push(C[1],C[2])}}),u._charset="x-user-defined",!e.overrideMimeType){var y=u.rawHeaders["mime-type"];if(y){var v=y.match(/;\s*charset=([^;])(;|$)/);v&&(u._charset=v[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};return t(o,r.Readable),o.prototype._read=function(){var a=this,i=a._resumeFetch;i&&(a._resumeFetch=null,i())},o.prototype._onXHRProgress=function(a){var i=this,s=i._xhr,c=null;switch(i._mode){case"text":if(c=s.responseText,c.length>i._pos){var u=c.substr(i._pos);if(i._charset==="x-user-defined"){for(var d=Buffer.alloc(u.length),f=0;f<u.length;f++)d[f]=u.charCodeAt(f)&255;i.push(d)}else i.push(u,i._charset);i._pos=c.length}break;case"arraybuffer":if(s.readyState!==n.DONE||!s.response)break;c=s.response,i.push(Buffer.from(new Uint8Array(c)));break;case"moz-chunked-arraybuffer":if(c=s.response,s.readyState!==n.LOADING||!c)break;i.push(Buffer.from(new Uint8Array(c)));break;case"ms-stream":if(c=s.response,s.readyState!==n.LOADING)break;var g=new globalThis.MSStreamReader;g.onprogress=function(){g.result.byteLength>i._pos&&(i.push(Buffer.from(new Uint8Array(g.result.slice(i._pos)))),i._pos=g.result.byteLength)},g.onload=function(){a(!0),i.push(null)},g.readAsArrayBuffer(c);break}i._xhr.readyState===n.DONE&&i._mode!=="ms-stream"&&(a(!0),i.push(null))},ly}var rG;function wUe(){if(rG)return uk.exports;rG=1;var e=vW(),t=qw(),r=tG(),n=XW(),o=r.IncomingMessage,a=r.readyStates;function i(d,f){return e.fetch&&f?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&d?"arraybuffer":"text"}var s=uk.exports=function(d){var f=this;n.Writable.call(f),f._opts=d,f._body=[],f._headers={},d.auth&&f.setHeader("Authorization","Basic "+Buffer.from(d.auth).toString("base64")),Object.keys(d.headers).forEach(function(v){f.setHeader(v,d.headers[v])});var g,y=!0;if(d.mode==="disable-fetch"||"requestTimeout"in d&&!e.abortController)y=!1,g=!0;else if(d.mode==="prefer-streaming")g=!1;else if(d.mode==="allow-wrong-content-type")g=!e.overrideMimeType;else if(!d.mode||d.mode==="default"||d.mode==="prefer-fast")g=!0;else throw new Error("Invalid value for opts.mode");f._mode=i(g,y),f._fetchTimer=null,f._socketTimeout=null,f._socketTimer=null,f.on("finish",function(){f._onFinish()})};t(s,n.Writable),s.prototype.setHeader=function(d,f){var g=this,y=d.toLowerCase();u.indexOf(y)===-1&&(g._headers[y]={name:d,value:f})},s.prototype.getHeader=function(d){var f=this._headers[d.toLowerCase()];return f?f.value:null},s.prototype.removeHeader=function(d){var f=this;delete f._headers[d.toLowerCase()]},s.prototype._onFinish=function(){var d=this;if(!d._destroyed){var f=d._opts;"timeout"in f&&f.timeout!==0&&d.setTimeout(f.timeout);var g=d._headers,y=null;f.method!=="GET"&&f.method!=="HEAD"&&(y=new Blob(d._body,{type:(g["content-type"]||{}).value||""}));var v=[];if(Object.keys(g).forEach(function(w){var T=g[w].name,A=g[w].value;Array.isArray(A)?A.forEach(function(R){v.push([T,R])}):v.push([T,A])}),d._mode==="fetch"){var x=null;if(e.abortController){var C=new AbortController;x=C.signal,d._fetchAbortController=C,"requestTimeout"in f&&f.requestTimeout!==0&&(d._fetchTimer=globalThis.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},f.requestTimeout))}globalThis.fetch(d._opts.url,{method:d._opts.method,headers:v,body:y||void 0,mode:"cors",credentials:f.withCredentials?"include":"same-origin",signal:x}).then(function(w){d._fetchResponse=w,d._resetTimers(!1),d._connect()},function(w){d._resetTimers(!0),d._destroyed||d.emit("error",w)})}else{var S=d._xhr=new globalThis.XMLHttpRequest;try{S.open(d._opts.method,d._opts.url,!0)}catch(w){process.nextTick(function(){d.emit("error",w)});return}"responseType"in S&&(S.responseType=d._mode),"withCredentials"in S&&(S.withCredentials=!!f.withCredentials),d._mode==="text"&&"overrideMimeType"in S&&S.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in f&&(S.timeout=f.requestTimeout,S.ontimeout=function(){d.emit("requestTimeout")}),v.forEach(function(w){S.setRequestHeader(w[0],w[1])}),d._response=null,S.onreadystatechange=function(){switch(S.readyState){case a.LOADING:case a.DONE:d._onXHRProgress();break}},d._mode==="moz-chunked-arraybuffer"&&(S.onprogress=function(){d._onXHRProgress()}),S.onerror=function(){d._destroyed||(d._resetTimers(!0),d.emit("error",new Error("XHR error")))};try{S.send(y)}catch(w){process.nextTick(function(){d.emit("error",w)});return}}}};function c(d){try{var f=d.status;return f!==null&&f!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var d=this;d._resetTimers(!1),!(!c(d._xhr)||d._destroyed)&&(d._response||d._connect(),d._response._onXHRProgress(d._resetTimers.bind(d)))},s.prototype._connect=function(){var d=this;d._destroyed||(d._response=new o(d._xhr,d._fetchResponse,d._mode,d._resetTimers.bind(d)),d._response.on("error",function(f){d.emit("error",f)}),d.emit("response",d._response))},s.prototype._write=function(d,f,g){var y=this;y._body.push(d),g()},s.prototype._resetTimers=function(d){var f=this;globalThis.clearTimeout(f._socketTimer),f._socketTimer=null,d?(globalThis.clearTimeout(f._fetchTimer),f._fetchTimer=null):f._socketTimeout&&(f._socketTimer=globalThis.setTimeout(function(){f.emit("timeout")},f._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(d){var f=this;f._destroyed=!0,f._resetTimers(!0),f._response&&(f._response._destroyed=!0),f._xhr?f._xhr.abort():f._fetchAbortController&&f._fetchAbortController.abort(),d&&f.emit("error",d)},s.prototype.end=function(d,f,g){var y=this;typeof d=="function"&&(g=d,d=void 0),n.Writable.prototype.end.call(y,d,f,g)},s.prototype.setTimeout=function(d,f){var g=this;f&&g.once("timeout",f),g._socketTimeout=d,g._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var u=["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 uk.exports}var Rk,nG;function SUe(){if(nG)return Rk;nG=1,Rk=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n<arguments.length;n++){var o=arguments[n];for(var a in o)e.call(o,a)&&(r[a]=o[a])}return r}return Rk}var oG,aG;function CUe(){return aG||(aG=1,oG={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"}),oG}var iG;function kUe(){return iG||(iG=1,(function(e){var t=wUe(),r=tG(),n=SUe(),o=CUe(),a=p3(),i=e;i.request=function(s,c){typeof s=="string"?s=a.parse(s):s=n(s);var u=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",d=s.protocol||u,f=s.hostname||s.host,g=s.port,y=s.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),s.url=(f?d+"//"+f:"")+(g?":"+g:"")+y,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var v=new t(s);return c&&v.on("response",c),v},i.get=function(s,c){var u=i.request(s,c);return u.end(),u},i.ClientRequest=t,i.IncomingMessage=r.IncomingMessage,i.Agent=function(){},i.Agent.defaultMaxSockets=4,i.globalAgent=new i.Agent,i.STATUS_CODES=o,i.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"]})(gW)),gW}var sG,lG;function EUe(){return lG||(lG=1,sG={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},kUe().STATUS_CODES)}),sG}const AUe="7.0.8",TUe={version:AUe};var Lk,cG;function _Ue(){if(cG)return Lk;cG=1;const e=db,t=p3(),r=GDe(),n=db,o=eze,a=Hb(),i=a.jptr,s=V3().isRef,c=Wb().clone,u=Wb().circularClone,d=G3().recurse,f=cUe(),g=pUe(),y=hW(),v=EUe().statusCodes,x=TUe.version,C="3.0.0";let S;class w extends Error{constructor(P){super(P),this.name="S2OError"}}function T(E,P){let W=new w(E);if(W.options=P,P.promise)P.promise.reject(W);else throw W}function A(E,P,W){W.warnOnly?P[W.warnProperty||"x-s2o-warning"]=E:T(E,W)}function R(E,P,W){if(E.nullable&&W.patches++,E.discriminator&&typeof E.discriminator=="string"&&(E.discriminator={propertyName:E.discriminator}),E.items&&Array.isArray(E.items)&&(E.items.length===0?E.items={}:E.items.length===1?E.items=E.items[0]:E.items={anyOf:E.items}),E.type&&Array.isArray(E.type))if(W.patch){if(W.patches++,E.type.length===0)delete E.type;else{E.oneOf||(E.oneOf=[]);for(let ge of E.type){let xe={};if(ge==="null")E.nullable=!0;else{xe.type=ge;for(let ce of y.arrayProperties)typeof E.prop<"u"&&(xe[ce]=E[ce],delete E[ce])}xe.type&&E.oneOf.push(xe)}delete E.type,E.oneOf.length===0?delete E.oneOf:E.oneOf.length<2&&(E.type=E.oneOf[0].type,Object.keys(E.oneOf[0]).length>1&&A("Lost properties from oneOf",E,W),delete E.oneOf)}E.type&&Array.isArray(E.type)&&E.type.length===1&&(E.type=E.type[0])}else T("(Patchable) schema type must not be an array",W);E.type&&E.type==="null"&&(delete E.type,E.nullable=!0),E.type==="array"&&!E.items&&(E.items={}),E.type==="file"&&(E.type="string",E.format="binary"),typeof E.required=="boolean"&&(E.required&&E.name&&(typeof P.required>"u"&&(P.required=[]),Array.isArray(P.required)&&P.required.push(E.name)),delete E.required),E.xml&&typeof E.xml.namespace=="string"&&(E.xml.namespace||delete E.xml.namespace),typeof E.allowEmptyValue<"u"&&(W.patches++,delete E.allowEmptyValue)}function L(E,P){if(E["x-required"]&&Array.isArray(E["x-required"])&&(E.required||(E.required=[]),E.required=E.required.concat(E["x-required"]),delete E["x-required"]),E["x-anyOf"]&&(E.anyOf=E["x-anyOf"],delete E["x-anyOf"]),E["x-oneOf"]&&(E.oneOf=E["x-oneOf"],delete E["x-oneOf"]),E["x-not"]&&(E.not=E["x-not"],delete E["x-not"]),typeof E["x-nullable"]=="boolean"&&(E.nullable=E["x-nullable"],delete E["x-nullable"]),typeof E["x-discriminator"]=="object"&&typeof E["x-discriminator"].propertyName=="string"){E.discriminator=E["x-discriminator"],delete E["x-discriminator"];for(let W in E.discriminator.mapping){let ge=E.discriminator.mapping[W];ge.startsWith("#/definitions/")&&(E.discriminator.mapping[W]=ge.replace("#/definitions/","#/components/schemas/"))}}}function N(E,P){g.walkSchema(E,{},{},function(W,ge,xe){L(W),R(W,ge,P)})}function _(E){return E.indexOf("#")>=0?E=E.split("#")[1].split("/").pop():E=E.split("/").pop().split(".")[0],encodeURIComponent(y.sanitise(E))}function $(E,P,W){let ge=W.payload.options;if(s(E,P)){if(!E[P].startsWith("#/components/")){if(E[P]==="#/consumes")delete E[P],W.parent[W.pkey]=c(ge.openapi.consumes);else if(E[P]==="#/produces")delete E[P],W.parent[W.pkey]=c(ge.openapi.produces);else if(E[P].startsWith("#/definitions/")){let xe=E[P].replace("#/definitions/","").split("/");const ce=a.jpunescape(xe[0]);let ue=S.schemas[decodeURIComponent(ce)];ue?xe[0]=ue:A("Could not resolve reference "+E[P],E,ge),E[P]="#/components/schemas/"+xe.join("/")}else if(E[P].startsWith("#/parameters/"))E[P]="#/components/parameters/"+y.sanitise(E[P].replace("#/parameters/",""));else if(E[P].startsWith("#/responses/"))E[P]="#/components/responses/"+y.sanitise(E[P].replace("#/responses/",""));else if(E[P].startsWith("#")){let xe=c(a.jptr(ge.openapi,E[P]));if(xe===!1)A("direct $ref not found "+E[P],E,ge);else if(ge.refmap[E[P]])E[P]=ge.refmap[E[P]];else{let ce=E[P];ce=ce.replace("/properties/headers/",""),ce=ce.replace("/properties/responses/",""),ce=ce.replace("/properties/parameters/",""),ce=ce.replace("/properties/schemas/","");let ue="schemas",je=ce.lastIndexOf("/schema");if(ue=ce.indexOf("/headers/")>je?"headers":ce.indexOf("/responses/")>je?"responses":ce.indexOf("/example")>je?"examples":ce.indexOf("/x-")>je?"extensions":ce.indexOf("/parameters/")>je?"parameters":"schemas",ue==="schemas"&&N(xe,ge),ue!=="responses"&&ue!=="extensions"){let he=ue.substr(0,ue.length-1);he==="parameter"&&xe.name&&xe.name===y.sanitise(xe.name)&&(he=encodeURIComponent(xe.name));let Ke=1;for(E["x-miro"]&&(he=_(E["x-miro"]),Ke="");a.jptr(ge.openapi,"#/components/"+ue+"/"+he+Ke);)Ke=Ke===""?2:++Ke;let Je="#/components/"+ue+"/"+he+Ke,He="";ue==="examples"&&(xe={value:xe},He="/value"),a.jptr(ge.openapi,Je,xe),ge.refmap[E[P]]=Je+He,E[P]=Je+He}}}}if(delete E["x-miro"],Object.keys(E).length>1){const xe=E[P],ce=W.path.indexOf("/schema")>=0;ge.refSiblings==="preserve"||(ce&&ge.refSiblings==="allOf"?(delete E.$ref,W.parent[W.pkey]={allOf:[{$ref:xe},E]}):W.parent[W.pkey]={$ref:xe})}}if(P==="x-ms-odata"&&typeof E[P]=="string"&&E[P].startsWith("#/")){let xe=E[P].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ce=S.schemas[decodeURIComponent(xe[0])];ce?xe[0]=ce:A("Could not resolve reference "+E[P],E,ge),E[P]="#/components/schemas/"+xe.join("/")}}function z(E,P){for(let W in P.refmap)a.jptr(E,W,{$ref:P.refmap[W]})}function F(E){for(let P in E)for(let W in E[P]){let ge=y.sanitise(W);W!==ge&&(E[P][ge]=E[P][W],delete E[P][W])}}function U(E,P){if(E.type==="basic"&&(E.type="http",E.scheme="basic"),E.type==="oauth2"){let W={},ge=E.flow;E.flow==="application"&&(ge="clientCredentials"),E.flow==="accessCode"&&(ge="authorizationCode"),typeof E.authorizationUrl<"u"&&(W.authorizationUrl=E.authorizationUrl.split("?")[0].trim()||"/"),typeof E.tokenUrl=="string"&&(W.tokenUrl=E.tokenUrl.split("?")[0].trim()||"/"),W.scopes=E.scopes||{},E.flows={},E.flows[ge]=W,delete E.flow,delete E.authorizationUrl,delete E.tokenUrl,delete E.scopes,typeof E.name<"u"&&(P.patch?(P.patches++,delete E.name):T("(Patchable) oauth2 securitySchemes should not have name property",P))}}function G(E){return E&&!E["x-s2o-delete"]}function ee(E,P){if(E.$ref)E.$ref=E.$ref.replace("#/responses/","#/components/responses/");else{E.type&&!E.schema&&(E.schema={}),E.type&&(E.schema.type=E.type),E.items&&E.items.type!=="array"&&(E.items.collectionFormat!==E.collectionFormat&&A("Nested collectionFormats are not supported",E,P),delete E.items.collectionFormat),E.type==="array"?(E.collectionFormat==="ssv"?A("collectionFormat:ssv is no longer supported for headers",E,P):E.collectionFormat==="pipes"?A("collectionFormat:pipes is no longer supported for headers",E,P):E.collectionFormat==="multi"?E.explode=!0:E.collectionFormat==="tsv"?(A("collectionFormat:tsv is no longer supported",E,P),E["x-collectionFormat"]="tsv"):E.style="simple",delete E.collectionFormat):E.collectionFormat&&(P.patch?(P.patches++,delete E.collectionFormat):T("(Patchable) collectionFormat is only applicable to header.type array",P)),delete E.type;for(let W of y.parameterTypeProperties)typeof E[W]<"u"&&(E.schema[W]=E[W],delete E[W]);for(let W of y.arrayProperties)typeof E[W]<"u"&&(E.schema[W]=E[W],delete E[W])}}function le(E,P){if(E.$ref.indexOf("#/parameters/")>=0){let W=E.$ref.split("#/parameters/");E.$ref=W[0]+"#/components/parameters/"+y.sanitise(W[1])}E.$ref.indexOf("#/definitions/")>=0&&A("Definition used as parameter",E,P)}function V(E,P){let W={};for(let ge of Object.keys(E))W[ge]=E[ge],ge==="parameters"&&(W.requestBody={},P.rbname&&(W[P.rbname]=""));return W.requestBody={},W}function ie(E,P,W,ge,xe,ce,ue){let je={},he=!0,Ke;if(P&&P.consumes&&typeof P.consumes=="string")if(ue.patch)ue.patches++,P.consumes=[P.consumes];else return T("(Patchable) operation.consumes must be an array",ue);Array.isArray(ce.consumes)||delete ce.consumes;let Je=((P?P.consumes:null)||ce.consumes||[]).filter(y.uniqueOnly);if(E&&E.$ref&&typeof E.$ref=="string"){le(E,ue);let He=decodeURIComponent(E.$ref.replace("#/components/parameters/","")),Ve=!1,Xe=ce.components.parameters[He];if((!Xe||Xe["x-s2o-delete"])&&E.$ref.startsWith("#/")&&(E["x-s2o-delete"]=!0,Ve=!0),Ve){let ut=E.$ref,Fe=i(ce,E.$ref);!Fe&&ut.startsWith("#/")?A("Could not resolve reference "+ut,E,ue):Fe&&(E=Fe)}}if(E&&(E.name||E.in)){typeof E["x-deprecated"]=="boolean"&&(E.deprecated=E["x-deprecated"],delete E["x-deprecated"]),typeof E["x-example"]<"u"&&(E.example=E["x-example"],delete E["x-example"]),E.in!=="body"&&!E.type&&(ue.patch?(ue.patches++,E.type="string"):T("(Patchable) parameter.type is mandatory for non-body parameters",ue)),E.type&&typeof E.type=="object"&&E.type.$ref&&(E.type=i(ce,E.type.$ref)),E.type==="file"&&(E["x-s2o-originalType"]=E.type,Ke=E.type),E.description&&typeof E.description=="object"&&E.description.$ref&&(E.description=i(ce,E.description.$ref)),E.description===null&&delete E.description;let He=E.collectionFormat;if(E.type==="array"&&!He&&(He="csv"),He&&(E.type!=="array"&&(ue.patch?(ue.patches++,delete E.collectionFormat):T("(Patchable) collectionFormat is only applicable to param.type array",ue)),He==="csv"&&(E.in==="query"||E.in==="cookie")&&(E.style="form",E.explode=!1),He==="csv"&&(E.in==="path"||E.in==="header")&&(E.style="simple"),He==="ssv"&&(E.in==="query"?E.style="spaceDelimited":A("collectionFormat:ssv is no longer supported except for in:query parameters",E,ue)),He==="pipes"&&(E.in==="query"?E.style="pipeDelimited":A("collectionFormat:pipes is no longer supported except for in:query parameters",E,ue)),He==="multi"&&(E.explode=!0),He==="tsv"&&(A("collectionFormat:tsv is no longer supported",E,ue),E["x-collectionFormat"]="tsv"),delete E.collectionFormat),E.type&&E.type!=="body"&&E.in!=="formData")if(E.items&&E.schema)A("parameter has array,items and schema",E,ue);else{E.schema&&ue.patches++,(!E.schema||typeof E.schema!="object")&&(E.schema={}),E.schema.type=E.type,E.items&&(E.schema.items=E.items,delete E.items,d(E.schema.items,null,function(Ve,Xe,ut){Xe==="collectionFormat"&&typeof Ve[Xe]=="string"&&(He&&Ve[Xe]!==He&&A("Nested collectionFormats are not supported",E,ue),delete Ve[Xe])}));for(let Ve of y.parameterTypeProperties)typeof E[Ve]<"u"&&(E.schema[Ve]=E[Ve]),delete E[Ve]}E.schema&&N(E.schema,ue),E["x-ms-skip-url-encoding"]&&E.in==="query"&&(E.allowReserved=!0,delete E["x-ms-skip-url-encoding"])}if(E&&E.in==="formData"){he=!1,je.content={};let He="application/x-www-form-urlencoded";if(Je.length&&Je.indexOf("multipart/form-data")>=0&&(He="multipart/form-data"),je.content[He]={},E.schema)je.content[He].schema=E.schema,E.schema.$ref&&(je["x-s2o-name"]=decodeURIComponent(E.schema.$ref.replace("#/components/schemas/","")));else{je.content[He].schema={},je.content[He].schema.type="object",je.content[He].schema.properties={},je.content[He].schema.properties[E.name]={};let Ve=je.content[He].schema,Xe=je.content[He].schema.properties[E.name];E.description&&(Xe.description=E.description),E.example&&(Xe.example=E.example),E.type&&(Xe.type=E.type);for(let ut of y.parameterTypeProperties)typeof E[ut]<"u"&&(Xe[ut]=E[ut]);E.required===!0&&(Ve.required||(Ve.required=[]),Ve.required.push(E.name),je.required=!0),typeof E.default<"u"&&(Xe.default=E.default),Xe.properties&&(Xe.properties=E.properties),E.allOf&&(Xe.allOf=E.allOf),E.type==="array"&&E.items&&(Xe.items=E.items,Xe.items.collectionFormat&&delete Xe.items.collectionFormat),(Ke==="file"||E["x-s2o-originalType"]==="file")&&(Xe.type="string",Xe.format="binary"),re(E,Xe)}}else E&&E.type==="file"&&(E.required&&(je.required=E.required),je.content={},je.content["application/octet-stream"]={},je.content["application/octet-stream"].schema={},je.content["application/octet-stream"].schema.type="string",je.content["application/octet-stream"].schema.format="binary",re(E,je));if(E&&E.in==="body"){je.content={},E.name&&(je["x-s2o-name"]=(P&&P.operationId?y.sanitiseAll(P.operationId):"")+("_"+E.name).toCamelCase()),E.description&&(je.description=E.description),E.required&&(je.required=E.required),P&&ue.rbname&&E.name&&(P[ue.rbname]=E.name),E.schema&&E.schema.$ref?je["x-s2o-name"]=decodeURIComponent(E.schema.$ref.replace("#/components/schemas/","")):E.schema&&E.schema.type==="array"&&E.schema.items&&E.schema.items.$ref&&(je["x-s2o-name"]=decodeURIComponent(E.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),Je.length||Je.push("application/json");for(let He of Je)je.content[He]={},je.content[He].schema=c(E.schema||{}),N(je.content[He].schema,ue);re(E,je)}if(Object.keys(je).length>0&&(E["x-s2o-delete"]=!0,P))if(P.requestBody&&he){P.requestBody["x-s2o-overloaded"]=!0;let He=P.operationId||xe;A("Operation "+He+" has multiple requestBodies",P,ue)}else P.requestBody||(P=W[ge]=V(P,ue)),P.requestBody.content&&P.requestBody.content["multipart/form-data"]&&P.requestBody.content["multipart/form-data"].schema&&P.requestBody.content["multipart/form-data"].schema.properties&&je.content["multipart/form-data"]&&je.content["multipart/form-data"].schema&&je.content["multipart/form-data"].schema.properties?(P.requestBody.content["multipart/form-data"].schema.properties=Object.assign(P.requestBody.content["multipart/form-data"].schema.properties,je.content["multipart/form-data"].schema.properties),P.requestBody.content["multipart/form-data"].schema.required=(P.requestBody.content["multipart/form-data"].schema.required||[]).concat(je.content["multipart/form-data"].schema.required||[]),P.requestBody.content["multipart/form-data"].schema.required.length||delete P.requestBody.content["multipart/form-data"].schema.required):P.requestBody.content&&P.requestBody.content["application/x-www-form-urlencoded"]&&P.requestBody.content["application/x-www-form-urlencoded"].schema&&P.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&je.content["application/x-www-form-urlencoded"]&&je.content["application/x-www-form-urlencoded"].schema&&je.content["application/x-www-form-urlencoded"].schema.properties?(P.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(P.requestBody.content["application/x-www-form-urlencoded"].schema.properties,je.content["application/x-www-form-urlencoded"].schema.properties),P.requestBody.content["application/x-www-form-urlencoded"].schema.required=(P.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(je.content["application/x-www-form-urlencoded"].schema.required||[]),P.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete P.requestBody.content["application/x-www-form-urlencoded"].schema.required):(P.requestBody=Object.assign(P.requestBody,je),P.requestBody["x-s2o-name"]||(P.requestBody.schema&&P.requestBody.schema.$ref?P.requestBody["x-s2o-name"]=decodeURIComponent(P.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):P.operationId&&(P.requestBody["x-s2o-name"]=y.sanitiseAll(P.operationId))));if(E&&!E["x-s2o-delete"]){delete E.type;for(let He of y.parameterTypeProperties)delete E[He];E.in==="path"&&(typeof E.required>"u"||E.required!==!0)&&(ue.patch?(ue.patches++,E.required=!0):T("(Patchable) path parameters must be required:true ["+E.name+" in "+xe+"]",ue))}return P}function re(E,P){for(let W in E)W.startsWith("x-")&&!W.startsWith("x-s2o")&&(P[W]=E[W])}function se(E,P,W,ge,xe){if(!E)return!1;if(E.$ref&&typeof E.$ref=="string")E.$ref.indexOf("#/definitions/")>=0?A("definition used as response: "+E.$ref,E,xe):E.$ref.startsWith("#/responses/")&&(E.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(E.$ref.replace("#/responses/",""))));else{if((typeof E.description>"u"||E.description===null||E.description===""&&xe.patch)&&(xe.patch?typeof E=="object"&&!Array.isArray(E)&&(xe.patches++,E.description=v[E]||""):T("(Patchable) response.description is mandatory",xe)),typeof E.schema<"u"){if(N(E.schema,xe),E.schema.$ref&&typeof E.schema.$ref=="string"&&E.schema.$ref.startsWith("#/responses/")&&(E.schema.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(E.schema.$ref.replace("#/responses/","")))),W&&W.produces&&typeof W.produces=="string")if(xe.patch)xe.patches++,W.produces=[W.produces];else return T("(Patchable) operation.produces must be an array",xe);ge.produces&&!Array.isArray(ge.produces)&&delete ge.produces;let ce=((W?W.produces:null)||ge.produces||[]).filter(y.uniqueOnly);ce.length||ce.push("*/*"),E.content={};for(let ue of ce){if(E.content[ue]={},E.content[ue].schema=c(E.schema),E.examples&&E.examples[ue]){let je={};je.value=E.examples[ue],E.content[ue].examples={},E.content[ue].examples.response=je,delete E.examples[ue]}E.content[ue].schema.type==="file"&&(E.content[ue].schema={type:"string",format:"binary"})}delete E.schema}for(let ce in E.examples)E.content||(E.content={}),E.content[ce]||(E.content[ce]={}),E.content[ce].examples={},E.content[ce].examples.response={},E.content[ce].examples.response.value=E.examples[ce];if(delete E.examples,E.headers)for(let ce in E.headers)ce.toLowerCase()==="status code"?xe.patch?(xe.patches++,delete E.headers[ce]):T('(Patchable) "Status Code" is not a valid header',xe):ee(E.headers[ce],xe)}}function Z(E,P,W,ge,xe){for(let ce in E){let ue=E[ce];ue&&ue["x-trace"]&&typeof ue["x-trace"]=="object"&&(ue.trace=ue["x-trace"],delete ue["x-trace"]),ue&&ue["x-summary"]&&typeof ue["x-summary"]=="string"&&(ue.summary=ue["x-summary"],delete ue["x-summary"]),ue&&ue["x-description"]&&typeof ue["x-description"]=="string"&&(ue.description=ue["x-description"],delete ue["x-description"]),ue&&ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]);for(let je in ue)if(y.httpMethods.indexOf(je)>=0||je==="x-amazon-apigateway-any-method"){let he=ue[je];if(he&&he.parameters&&Array.isArray(he.parameters)){if(ue.parameters)for(let Ke of ue.parameters)typeof Ke.$ref=="string"&&(le(Ke,W),Ke=i(xe,Ke.$ref)),!he.parameters.find(function(Je,He,Ve){return Je.name===Ke.name&&Je.in===Ke.in})&&(Ke.in==="formData"||Ke.in==="body"||Ke.type==="file")&&(he=ie(Ke,he,ue,je,ce,xe,W),W.rbname&&he[W.rbname]===""&&delete he[W.rbname]);for(let Ke of he.parameters)he=ie(Ke,he,ue,je,je+":"+ce,xe,W);W.rbname&&he[W.rbname]===""&&delete he[W.rbname],W.debug||he.parameters&&(he.parameters=he.parameters.filter(G))}if(he&&he.security&&F(he.security),typeof he=="object"){if(!he.responses){let Ke={};Ke.description="Default response",he.responses={default:Ke}}for(let Ke in he.responses){let Je=he.responses[Ke];se(Je,Ke,he,xe,W)}}if(he&&he["x-servers"]&&Array.isArray(he["x-servers"]))he.servers=he["x-servers"],delete he["x-servers"];else if(he&&he.schemes&&he.schemes.length){for(let Ke of he.schemes)if((!xe.schemes||xe.schemes.indexOf(Ke)<0)&&(he.servers||(he.servers=[]),Array.isArray(xe.servers)))for(let Je of xe.servers){let He=c(Je),Ve=t.parse(He.url);Ve.protocol=Ke,He.url=Ve.format(),he.servers.push(He)}}if(W.debug&&(he["x-s2o-consumes"]=he.consumes||[],he["x-s2o-produces"]=he.produces||[]),he){if(delete he.consumes,delete he.produces,delete he.schemes,he["x-ms-examples"]){for(let Ke in he["x-ms-examples"]){let Je=he["x-ms-examples"][Ke],He=y.sanitiseAll(Ke);if(Je.parameters)for(let Ve in Je.parameters){let Xe=Je.parameters[Ve];for(let ut of(he.parameters||[]).concat(ue.parameters||[]))ut.$ref&&(ut=a.jptr(xe,ut.$ref)),ut.name===Ve&&!ut.example&&(ut.examples||(ut.examples={}),ut.examples[Ke]={value:Xe})}if(Je.responses)for(let Ve in Je.responses){if(Je.responses[Ve].headers)for(let Xe in Je.responses[Ve].headers){let ut=Je.responses[Ve].headers[Xe];for(let Fe in he.responses[Ve].headers)if(Fe===Xe){let j=he.responses[Ve].headers[Fe];j.example=ut}}if(Je.responses[Ve].body&&(xe.components.examples[He]={value:c(Je.responses[Ve].body)},he.responses[Ve]&&he.responses[Ve].content))for(let Xe in he.responses[Ve].content){let ut=he.responses[Ve].content[Xe];ut.examples||(ut.examples={}),ut.examples[Ke]={$ref:"#/components/examples/"+He}}}}delete he["x-ms-examples"]}if(he.parameters&&he.parameters.length===0&&delete he.parameters,he.requestBody){let Ke=he.operationId?y.sanitiseAll(he.operationId):y.sanitiseAll(je+ce).toCamelCase(),Je=y.sanitise(he.requestBody["x-s2o-name"]||Ke||"");delete he.requestBody["x-s2o-name"];let He=JSON.stringify(he.requestBody),Ve=y.hash(He);if(!ge[Ve]){let ut={};ut.name=Je,ut.body=he.requestBody,ut.refs=[],ge[Ve]=ut}let Xe="#/"+P+"/"+encodeURIComponent(a.jpescape(ce))+"/"+je+"/requestBody";ge[Ve].refs.push(Xe)}}}if(ue&&ue.parameters){for(let je in ue.parameters){let he=ue.parameters[je];ie(he,null,ue,null,ce,xe,W)}!W.debug&&Array.isArray(ue.parameters)&&(ue.parameters=ue.parameters.filter(G))}}}function q(E,P){let W={};S={schemas:{}},E.security&&F(E.security);for(let xe in E.components.securitySchemes){let ce=y.sanitise(xe);xe!==ce&&(E.components.securitySchemes[ce]&&T("Duplicate sanitised securityScheme name "+ce,P),E.components.securitySchemes[ce]=E.components.securitySchemes[xe],delete E.components.securitySchemes[xe]),U(E.components.securitySchemes[ce],P)}for(let xe in E.components.schemas){let ce=y.sanitiseAll(xe),ue="";if(xe!==ce){for(;E.components.schemas[ce+ue];)ue=ue?++ue:2;E.components.schemas[ce+ue]=E.components.schemas[xe],delete E.components.schemas[xe]}S.schemas[xe]=ce+ue,N(E.components.schemas[ce+ue],P)}P.refmap={},d(E,{payload:{options:P}},$),z(E,P);for(let xe in E.components.parameters){let ce=y.sanitise(xe);xe!==ce&&(E.components.parameters[ce]&&T("Duplicate sanitised parameter name "+ce,P),E.components.parameters[ce]=E.components.parameters[xe],delete E.components.parameters[xe]);let ue=E.components.parameters[ce];ie(ue,null,null,null,ce,E,P)}for(let xe in E.components.responses){let ce=y.sanitise(xe);xe!==ce&&(E.components.responses[ce]&&T("Duplicate sanitised response name "+ce,P),E.components.responses[ce]=E.components.responses[xe],delete E.components.responses[xe]);let ue=E.components.responses[ce];if(se(ue,ce,null,E,P),ue.headers)for(let je in ue.headers)je.toLowerCase()==="status code"?P.patch?(P.patches++,delete ue.headers[je]):T('(Patchable) "Status Code" is not a valid header',P):ee(ue.headers[je],P)}for(let xe in E.components.requestBodies){let ce=E.components.requestBodies[xe],ue=JSON.stringify(ce),je=y.hash(ue),he={};he.name=xe,he.body=ce,he.refs=[],W[je]=he}if(Z(E.paths,"paths",P,W,E),E["x-ms-paths"]&&Z(E["x-ms-paths"],"x-ms-paths",P,W,E),!P.debug)for(let xe in E.components.parameters)E.components.parameters[xe]["x-s2o-delete"]&&delete E.components.parameters[xe];P.debug&&(E["x-s2o-consumes"]=E.consumes||[],E["x-s2o-produces"]=E.produces||[]),delete E.consumes,delete E.produces,delete E.schemes;let ge=[];if(E.components.requestBodies={},!P.resolveInternal){let xe=1;for(let ce in W){let ue=W[ce];if(ue.refs.length>1){let je="";for(ue.name||(ue.name="requestBody",je=xe++);ge.indexOf(ue.name+je)>=0;)je=je?++je:2;ue.name=ue.name+je,ge.push(ue.name),E.components.requestBodies[ue.name]=c(ue.body);for(let he in ue.refs){let Ke={};Ke.$ref="#/components/requestBodies/"+ue.name,a.jptr(E,ue.refs[he],Ke)}}}}return E.components.responses&&Object.keys(E.components.responses).length===0&&delete E.components.responses,E.components.parameters&&Object.keys(E.components.parameters).length===0&&delete E.components.parameters,E.components.examples&&Object.keys(E.components.examples).length===0&&delete E.components.examples,E.components.requestBodies&&Object.keys(E.components.requestBodies).length===0&&delete E.components.requestBodies,E.components.securitySchemes&&Object.keys(E.components.securitySchemes).length===0&&delete E.components.securitySchemes,E.components.headers&&Object.keys(E.components.headers).length===0&&delete E.components.headers,E.components.schemas&&Object.keys(E.components.schemas).length===0&&delete E.components.schemas,E.components&&Object.keys(E.components).length===0&&delete E.components,E}function ae(E){return!E||!E.url||typeof E.url!="string"||(E.url=E.url.split("{{").join("{"),E.url=E.url.split("}}").join("}"),E.url.replace(/\{(.+?)\}/g,function(P,W){E.variables||(E.variables={}),E.variables[W]={default:"unknown"}})),E}function Y(E,P,W){if(typeof E.info>"u"||E.info===null)if(P.patch)P.patches++,E.info={version:"",title:""};else return W(new w("(Patchable) info object is mandatory"));if(typeof E.info!="object"||Array.isArray(E.info))return W(new w("info must be an object"));if(typeof E.info.title>"u"||E.info.title===null)if(P.patch)P.patches++,E.info.title="";else return W(new w("(Patchable) info.title cannot be null"));if(typeof E.info.version>"u"||E.info.version===null)if(P.patch)P.patches++,E.info.version="";else return W(new w("(Patchable) info.version cannot be null"));if(typeof E.info.version!="string")if(P.patch)P.patches++,E.info.version=E.info.version.toString();else return W(new w("(Patchable) info.version must be a string"));if(typeof E.info.logo<"u")if(P.patch)P.patches++,E.info["x-logo"]=E.info.logo,delete E.info.logo;else return W(new w("(Patchable) info should not have logo property"));if(typeof E.info.termsOfService<"u"){if(E.info.termsOfService===null)if(P.patch)P.patches++,E.info.termsOfService="";else return W(new w("(Patchable) info.termsOfService cannot be null"));try{new URL(E.info.termsOfService)}catch{if(P.patch)P.patches++,delete E.info.termsOfService;else return W(new w("(Patchable) info.termsOfService must be a URL"))}}}function te(E,P,W){if(typeof E.paths>"u")if(P.patch)P.patches++,E.paths={};else return W(new w("(Patchable) paths object is mandatory"))}function de(E,P){const W=new WeakSet;d(E,{identityDetection:!0},function(ge,xe,ce){typeof ge[xe]=="object"&&ge[xe]!==null&&(W.has(ge[xe])?P.anchors?ge[xe]=c(ge[xe]):T("YAML anchor or merge key at "+ce.path,P):W.add(ge[xe]))})}function Q(E,P,W){return r(W,new Promise(function(ge,xe){if(E||(E={}),P.original=E,P.text||(P.text=o.stringify(E)),P.externals=[],P.externalRefs={},P.rewriteRefs=!0,P.preserveMiro=!0,P.promise={},P.promise.resolve=ge,P.promise.reject=xe,P.patches=0,P.cache||(P.cache={}),P.source&&(P.cache[P.source]=P.original),de(E,P),E.openapi&&typeof E.openapi=="string"&&E.openapi.startsWith("3.")){P.openapi=u(E),Y(P.openapi,P,xe),te(P.openapi,P,xe),f.optionalResolve(P).then(function(){return P.direct?ge(P.openapi):ge(P)}).catch(function(ue){console.warn(ue),xe(ue)});return}if(!E.swagger||E.swagger!="2.0")return xe(new w("Unsupported swagger/OpenAPI version: "+(E.openapi?E.openapi:E.swagger)));let ce=P.openapi={};if(ce.openapi=typeof P.targetVersion=="string"&&P.targetVersion.startsWith("3.")?P.targetVersion:C,P.origin){ce["x-origin"]||(ce["x-origin"]=[]);let ue={};ue.url=P.source||P.origin,ue.format="swagger",ue.version=E.swagger,ue.converter={},ue.converter.url="https://github.com/mermade/oas-kit",ue.converter.version=x,ce["x-origin"].push(ue)}if(ce=Object.assign(ce,u(E)),delete ce.swagger,d(ce,{},function(ue,je,he){ue[je]===null&&!je.startsWith("x-")&&je!=="default"&&he.path.indexOf("/example")<0&&delete ue[je]}),E.host)for(let ue of Array.isArray(E.schemes)?E.schemes:[""]){let je={},he=(E.basePath||"").replace(/\/$/,"");je.url=(ue?ue+":":"")+"//"+E.host+he,ae(je),ce.servers||(ce.servers=[]),ce.servers.push(je)}else if(E.basePath){let ue={};ue.url=E.basePath,ae(ue),ce.servers||(ce.servers=[]),ce.servers.push(ue)}if(delete ce.host,delete ce.basePath,ce["x-servers"]&&Array.isArray(ce["x-servers"])&&(ce.servers=ce["x-servers"],delete ce["x-servers"]),E["x-ms-parameterized-host"]){let ue=E["x-ms-parameterized-host"],je={};je.url=ue.hostTemplate+(E.basePath?E.basePath:""),je.variables={};const he=je.url.match(/\{\w+\}/g);for(let Ke in ue.parameters){let Je=ue.parameters[Ke];Je.$ref&&(Je=c(i(ce,Je.$ref))),Ke.startsWith("x-")||(delete Je.required,delete Je.type,delete Je.in,typeof Je.default>"u"&&(Je.enum?Je.default=Je.enum[0]:Je.default="none"),Je.name||(Je.name=he[Ke].replace("{","").replace("}","")),je.variables[Je.name]=Je,delete Je.name)}ce.servers||(ce.servers=[]),ue.useSchemePrefix===!1?ce.servers.push(je):E.schemes.forEach(Ke=>{ce.servers.push(Object.assign({},je,{url:Ke+"://"+je.url}))}),delete ce["x-ms-parameterized-host"]}Y(ce,P,xe),te(ce,P,xe),typeof ce.consumes=="string"&&(ce.consumes=[ce.consumes]),typeof ce.produces=="string"&&(ce.produces=[ce.produces]),ce.components={},ce["x-callbacks"]&&(ce.components.callbacks=ce["x-callbacks"],delete ce["x-callbacks"]),ce.components.examples={},ce.components.headers={},ce["x-links"]&&(ce.components.links=ce["x-links"],delete ce["x-links"]),ce.components.parameters=ce.parameters||{},ce.components.responses=ce.responses||{},ce.components.requestBodies={},ce.components.securitySchemes=ce.securityDefinitions||{},ce.components.schemas=ce.definitions||{},delete ce.definitions,delete ce.responses,delete ce.parameters,delete ce.securityDefinitions,f.optionalResolve(P).then(function(){q(P.openapi,P),P.direct?ge(P.openapi):ge(P)}).catch(function(ue){console.warn(ue),xe(ue)})}))}function oe(E,P,W){return r(W,new Promise(function(ge,xe){let ce=null,ue=null;try{ce=JSON.parse(E),P.text=JSON.stringify(ce,null,2)}catch(je){ue=je;try{ce=o.parse(E,{schema:"core",prettyErrors:!0}),P.sourceYaml=!0,P.text=E}catch(he){ue=he}}ce?Q(ce,P).then(je=>ge(je)).catch(je=>xe(je)):xe(new w(ue?ue.message:"Could not parse string"))}))}function H(E,P,W){return r(W,new Promise(function(ge,xe){P.origin=!0,P.source||(P.source=E),P.verbose&&console.warn("GET "+E),P.fetch||(P.fetch=n);const ce=Object.assign({},P.fetchOptions,{agent:P.agent});P.fetch(E,ce).then(function(ue){if(ue.status!==200)throw new w(`Received status code ${ue.status}: ${E}`);return ue.text()}).then(function(ue){oe(ue,P).then(je=>ge(je)).catch(je=>xe(je))}).catch(function(ue){xe(ue)})}))}function ve(E,P,W){return r(W,new Promise(function(ge,xe){e.readFile(E,P.encoding||"utf8",function(ce,ue){ce?xe(ce):(P.sourceFile=E,oe(ue,P).then(je=>ge(je)).catch(je=>xe(je)))})}))}function ke(E,P,W){return r(W,new Promise(function(ge,xe){let ce="";E.on("data",function(ue){ce+=ue}).on("end",function(){oe(ce,P).then(ue=>ge(ue)).catch(ue=>xe(ue))})}))}return Lk={S2OError:w,targetVersion:C,convert:Q,convertObj:Q,convertUrl:H,convertStr:oe,convertFile:ve,convertStream:ke},Lk}var OUe=_Ue();const RUe=Ln(OUe);function LUe(e){return e.paths||(e.paths={}),new Promise((t,r)=>RUe.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(n,o)=>{if(n)return r(n);t(o?.openapi)}))}async function jUe(){try{return(await Qq())?.resolvedConfig.openapi||{}}catch{return{}}}async function PUe(e){const t=await Qq(),r={config:t,base:$a?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};$a&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?r.doc=NUe(e):r.ref=e;const{bundle:{parsed:n}}=await MDe(r);return n.swagger!==void 0?LUe(n):n}function NUe(e){return{source:{absoluteRef:""},parsed:e}}async function IUe(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 PUe(e||t);try{R4e(n)}catch{}return n}const $Ue=({options:e,definitionUrl:t,definition:r,activeSampleLanguage:n,children:o})=>{const[a,i]=D.useState(),[s,c]=D.useState(!0),[u,d]=D.useState(null),[f,g]=D.useState(e||{});D.useEffect(()=>{async function v(){c(!0);try{const x=await jUe();g({...e,...x}),d(await IUe(r,t,e))}catch(x){i(x.message)}}v()},[r,t,e]);const y=D.useMemo(()=>{if(u)return{definition:u,options:f,definitionUrl:t,activeSampleLanguage:n}},L4e([u,t,f]));return D.useEffect(()=>{y&&c(!1)},[y]),a||!y?null:s?To(e?.hideLoading,!1)?null:m.jsx(X_e,{color:"--loading-spinner-color"}):D.isValidElement(o)?D.cloneElement(o,{store:y}):null};function DUe({definition:e,definitionUrl:t,options:r={},activeItemId:n,activeSampleLanguage:o,activeDeepLink:a,router:i}){return m.jsx($Ue,{definition:e,definitionUrl:t,options:r,activeItemId:n,activeSampleLanguage:o,activeDeepLink:a,children:m.jsx(lF,{withCommonStyles:!0,router:i||"hash"})})}function MUe(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 zUe(e){const t=MUe(e),r={};for(const n in t){const o=n.replace(/-(.)/g,(a,i)=>i.toUpperCase());r[o]=t[n]}return r}function UUe(e,t=document.querySelector("redoc")){mv.hydrateRoot(t,m.jsx(lF,{store:e}),{onRecoverableError:(r,n)=>{r.message.includes("Minified React error #418")||console.error(r.message,n)}})}function pG(e,t={},r=gv("redoc")){if(r===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:n,...o}={...t,...zUe(r)};let a,i;typeof e=="string"?a=e:typeof e=="object"&&(i=e),mv.createRoot(r).render(D.createElement(DUe,{definition:i,definitionUrl:a,options:o,router:n??"hash"},["Loading..."]))}const BUe="3.24.0-next.8",FUe="50b46a30";function qUe(){const e=gv("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&pG(t,{},e)}qUe();export{jj as $,SJ as A,bt as B,yx as C,Vl as D,Um as E,Y2 as F,_p as G,WN as H,pB as I,Fa as J,ro as K,rp as L,tu as M,Vb as N,Ss as O,ap as P,HN as Q,Tt as R,Oi as S,Rs as T,ql as U,$P as V,zA as W,jn as X,zn as Y,Vo as Z,kg as _,ye as a,Yo as a$,Vx as a0,fP as a1,aP as a2,_P as a3,OP as a4,jP as a5,_2 as a6,Eh as a7,Cd as a8,ZS as a9,YB as aA,sA as aB,Ud as aC,qA as aD,FA as aE,Nn as aF,cb as aG,lb as aH,oq as aI,pb as aJ,sb as aK,qq as aL,ub as aM,TDe as aN,RDe as aO,mn as aP,cq as aQ,xq as aR,wq as aS,sDe as aT,aDe as aU,uy as aV,iDe as aW,cDe as aX,_q as aY,Tq as aZ,ZC as a_,Wm as aa,rz as ab,YU as ac,oB as ad,_U as ae,VS as af,CS as ag,Sr as ah,Kl as ai,Sm as aj,UU as ak,io as al,mv as am,aB as an,DB as ao,iB as ap,sB as aq,gB as ar,QN as as,Al as at,tx as au,Sx as av,KB as aw,GU as ax,WU as ay,JB as az,Rl as b,ur as b0,on as b1,Sq as b2,Cq as b3,lDe as b4,dy as b5,ib as b6,gc as b7,Zq as b8,QC as b9,Wq as bA,Yq as bB,pF as bC,Rq as bD,dDe as bE,uDe as bF,hu as bG,Hq as bH,e3 as bI,ac as bJ,Ms as bK,kq as bL,VC as bM,cF as bN,Oq as bO,cf as bP,sq as bQ,Bq as bR,s3 as bS,UUe as bT,pG as bU,FUe as bV,Fve as bW,Bve as bX,zve as bY,BUe as bZ,ic as ba,RLe as bb,jq as bc,oDe as bd,Sa as be,EDe as bf,XC as bg,Hp as bh,Xa as bi,Us as bj,Pq as bk,Qa as bl,i3 as bm,qC as bn,Fq as bo,nb as bp,LLe as bq,Aq as br,nq as bs,iq as bt,h$ as bu,zU as bv,tb as bw,ot as bx,nt as by,Eq as bz,Ln as c,cg as d,bx as e,be as f,mt as g,Hl as h,J0e as i,m as j,dr as k,np as l,ks as m,yh as n,Ol as o,br as p,BN as q,D as r,Az as s,vn as t,pr as u,kd as v,Xq as w,Ut as x,sg as y,vte as z};